website-and-documentation/static/js/likec4-webcomponent.js
Stephan Lo 3239cfbc62 refactor(architecture): reorganize LikeC4 projects and consolidate webcomponents
Renamed resources/likec4 to resources/edp-likec4 to better reflect that this
directory contains the Enterprise Developer Platform architecture models,
not documentation platform architecture.

Extended element kinds in edp-likec4/models/spec.c4 to support documentation
platform modeling:
- Added person, tool, process, repository element kinds
- These allow modeling of documentation workflows and processes

Consolidated webcomponent generation:
- Combined both architecture projects (edp-likec4 and doc-likec4) into a
  single webcomponent output at static/js/likec4-webcomponent.js
- Updated Taskfile.yml to generate from edp-likec4 directory
- Removed duplicate webcomponent script loading in head-end.html
- Fixed CustomElementRegistry duplicate registration issue

Embedded TeleNeoOffice corporate fonts:
- Added font files to static/fonts/ and static/ root
- Required for correct rendering of diagrams in webcomponent
- Fonts are embedded in webcomponent but also served from Hugo static paths
- Fixed 404 errors for font loading

Updated architecture documentation:
- Fixed markdown linting issues (trailing spaces, fence spacing)
- Updated all references from resources/likec4 to resources/edp-likec4
- Enhanced setup.md with correct directory structure

This refactoring enables:
1. Clear separation between EDP architecture and documentation platform models
2. Single consolidated webcomponent containing all architecture views
3. Proper font loading for corporate branding in diagrams
4. Foundation for future architecture documentation expansion

Breaking changes: None (paths updated in documentation)
2025-11-07 11:50:17 +01:00

760 lines
3.1 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var LikeC4Views=(function(F6){"use strict";/* prettier-ignore-start */
/* eslint-disable */
/******************************************************************************
* This file was generated
* DO NOT EDIT MANUALLY!
******************************************************************************/
function w1e(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 vO(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var H6={exports:{}},h1={};/**
* @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 xO;function k1e(){if(xO)return h1;xO=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 h1.Fragment=r,h1.jsx=n,h1.jsxs=n,h1}var wO;function _1e(){return wO||(wO=1,H6.exports=k1e()),H6.exports}var y=_1e(),q6={exports:{}},Bt={};/**
* @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 kO;function E1e(){if(kO)return Bt;kO=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.iterator;function f(F){return F===null||typeof F!="object"?null:(F=p&&F[p]||F["@@iterator"],typeof F=="function"?F:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function w(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}w.prototype.isReactComponent={},w.prototype.setState=function(F,J){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,J,"setState")},w.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function k(){}k.prototype=w.prototype;function C(F,J,Q){this.props=F,this.context=J,this.refs=x,this.updater=Q||g}var _=C.prototype=new k;_.constructor=C,b(_,w.prototype),_.isPureReactComponent=!0;var T=Array.isArray,R={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function D(F,J,Q,z,W,X){return Q=X.ref,{$$typeof:e,type:F,key:J,ref:Q!==void 0?Q:null,props:X}}function N(F,J){return D(F.type,J,void 0,void 0,void 0,F.props)}function $(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function M(F){var J={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(Q){return J[Q]})}var j=/\/+/g;function L(F,J){return typeof F=="object"&&F!==null&&F.key!=null?M(""+F.key):J.toString(36)}function Y(){}function O(F){switch(F.status){case"fulfilled":return F.value;case"rejected":throw F.reason;default:switch(typeof F.status=="string"?F.then(Y,Y):(F.status="pending",F.then(function(J){F.status==="pending"&&(F.status="fulfilled",F.value=J)},function(J){F.status==="pending"&&(F.status="rejected",F.reason=J)})),F.status){case"fulfilled":return F.value;case"rejected":throw F.reason}}throw F}function U(F,J,Q,z,W){var X=typeof F;(X==="undefined"||X==="boolean")&&(F=null);var Z=!1;if(F===null)Z=!0;else switch(X){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(F.$$typeof){case e:case r:Z=!0;break;case d:return Z=F._init,U(Z(F._payload),J,Q,z,W)}}if(Z)return W=W(F),Z=z===""?"."+L(F,0):z,T(W)?(Q="",Z!=null&&(Q=Z.replace(j,"$&/")+"/"),U(W,J,Q,"",function(re){return re})):W!=null&&($(W)&&(W=N(W,Q+(W.key==null||F&&F.key===W.key?"":(""+W.key).replace(j,"$&/")+"/")+Z)),J.push(W)),1;Z=0;var oe=z===""?".":z+":";if(T(F))for(var ee=0;ee<F.length;ee++)z=F[ee],X=oe+L(z,ee),Z+=U(z,J,Q,X,W);else if(ee=f(F),typeof ee=="function")for(F=ee.call(F),ee=0;!(z=F.next()).done;)z=z.value,X=oe+L(z,ee++),Z+=U(z,J,Q,X,W);else if(X==="object"){if(typeof F.then=="function")return U(O(F),J,Q,z,W);throw J=String(F),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Z}function I(F,J,Q){if(F==null)return F;var z=[],W=0;return U(F,z,"","",function(X){return J.call(Q,X,W++)}),z}function q(F){if(F._status===-1){var J=F._result;J=J(),J.then(function(Q){(F._status===0||F._status===-1)&&(F._status=1,F._result=Q)},function(Q){(F._status===0||F._status===-1)&&(F._status=2,F._result=Q)}),F._status===-1&&(F._status=0,F._result=J)}if(F._status===1)return F._result.default;throw F._result}var V=typeof reportError=="function"?reportError:function(F){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof F=="object"&&F!==null&&typeof F.message=="string"?String(F.message):String(F),error:F});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",F);return}console.error(F)};function G(){}return Bt.Children={map:I,forEach:function(F,J,Q){I(F,function(){J.apply(this,arguments)},Q)},count:function(F){var J=0;return I(F,function(){J++}),J},toArray:function(F){return I(F,function(J){return J})||[]},only:function(F){if(!$(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},Bt.Component=w,Bt.Fragment=n,Bt.Profiler=a,Bt.PureComponent=C,Bt.StrictMode=o,Bt.Suspense=c,Bt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Bt.__COMPILER_RUNTIME={__proto__:null,c:function(F){return R.H.useMemoCache(F)}},Bt.cache=function(F){return function(){return F.apply(null,arguments)}},Bt.cloneElement=function(F,J,Q){if(F==null)throw Error("The argument must be a React element, but you passed "+F+".");var z=b({},F.props),W=F.key,X=void 0;if(J!=null)for(Z in J.ref!==void 0&&(X=void 0),J.key!==void 0&&(W=""+J.key),J)!A.call(J,Z)||Z==="key"||Z==="__self"||Z==="__source"||Z==="ref"&&J.ref===void 0||(z[Z]=J[Z]);var Z=arguments.length-2;if(Z===1)z.children=Q;else if(1<Z){for(var oe=Array(Z),ee=0;ee<Z;ee++)oe[ee]=arguments[ee+2];z.children=oe}return D(F.type,W,void 0,void 0,X,z)},Bt.createContext=function(F){return F={$$typeof:l,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null},F.Provider=F,F.Consumer={$$typeof:i,_context:F},F},Bt.createElement=function(F,J,Q){var z,W={},X=null;if(J!=null)for(z in J.key!==void 0&&(X=""+J.key),J)A.call(J,z)&&z!=="key"&&z!=="__self"&&z!=="__source"&&(W[z]=J[z]);var Z=arguments.length-2;if(Z===1)W.children=Q;else if(1<Z){for(var oe=Array(Z),ee=0;ee<Z;ee++)oe[ee]=arguments[ee+2];W.children=oe}if(F&&F.defaultProps)for(z in Z=F.defaultProps,Z)W[z]===void 0&&(W[z]=Z[z]);return D(F,X,void 0,void 0,null,W)},Bt.createRef=function(){return{current:null}},Bt.forwardRef=function(F){return{$$typeof:s,render:F}},Bt.isValidElement=$,Bt.lazy=function(F){return{$$typeof:d,_payload:{_status:-1,_result:F},_init:q}},Bt.memo=function(F,J){return{$$typeof:u,type:F,compare:J===void 0?null:J}},Bt.startTransition=function(F){var J=R.T,Q={};R.T=Q;try{var z=F(),W=R.S;W!==null&&W(Q,z),typeof z=="object"&&z!==null&&typeof z.then=="function"&&z.then(G,V)}catch(X){V(X)}finally{R.T=J}},Bt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Bt.use=function(F){return R.H.use(F)},Bt.useActionState=function(F,J,Q){return R.H.useActionState(F,J,Q)},Bt.useCallback=function(F,J){return R.H.useCallback(F,J)},Bt.useContext=function(F){return R.H.useContext(F)},Bt.useDebugValue=function(){},Bt.useDeferredValue=function(F,J){return R.H.useDeferredValue(F,J)},Bt.useEffect=function(F,J,Q){var z=R.H;if(typeof Q=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return z.useEffect(F,J)},Bt.useId=function(){return R.H.useId()},Bt.useImperativeHandle=function(F,J,Q){return R.H.useImperativeHandle(F,J,Q)},Bt.useInsertionEffect=function(F,J){return R.H.useInsertionEffect(F,J)},Bt.useLayoutEffect=function(F,J){return R.H.useLayoutEffect(F,J)},Bt.useMemo=function(F,J){return R.H.useMemo(F,J)},Bt.useOptimistic=function(F,J){return R.H.useOptimistic(F,J)},Bt.useReducer=function(F,J,Q){return R.H.useReducer(F,J,Q)},Bt.useRef=function(F){return R.H.useRef(F)},Bt.useState=function(F){return R.H.useState(F)},Bt.useSyncExternalStore=function(F,J,Q){return R.H.useSyncExternalStore(F,J,Q)},Bt.useTransition=function(){return R.H.useTransition()},Bt.version="19.1.1",Bt}var _O;function U6(){return _O||(_O=1,q6.exports=E1e()),q6.exports}var E=U6();const Xr=vO(E),Uv=w1e({__proto__:null,default:Xr},[E]);var V6={exports:{}},_o={};/**
* @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 EO;function S1e(){if(EO)return _o;EO=1;var e=U6();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 _o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,_o.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)},_o.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()}},_o.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))},_o.prefetchDNS=function(c){typeof c=="string"&&o.d.D(c)},_o.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})}},_o.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)},_o.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})}},_o.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)},_o.requestFormReset=function(c){o.d.r(c)},_o.unstable_batchedUpdates=function(c,u){return c(u)},_o.useFormState=function(c,u,d){return l.H.useFormState(c,u,d)},_o.useFormStatus=function(){return l.H.useHostTransitionStatus()},_o.version="19.1.1",_o}var SO;function CO(){if(SO)return V6.exports;SO=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(),V6.exports=S1e(),V6.exports}var Bi=CO();const TO=vO(Bi);function C1e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function ba(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return C1e(e,r,n);throw Error("Wrong number of arguments")}function _h(...e){return ba(T1e,e)}const T1e=(e,r)=>e.length>=r;function mt(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 Xa(e){throw new Error(`NonExhaustive value: ${e}`)}function cr(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:R1e,max:A1e}=Math,yd=(e,r=0,n=1)=>R1e(A1e(r,e),n),Y6=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]=yd(e[r],0,255)):r===3&&(e[r]=yd(e[r],0,1));return e},RO={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])RO[`[object ${e}]`]=e.toLowerCase();function Ft(e){return RO[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),Eh=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:Vv,min:AO,max:NO}=Math,Ka=e=>Math.round(e*100)/100,W6=e=>Math.round(e*100)/100,Ps=Vv*2,G6=Vv/3,N1e=Vv/180,D1e=180/Vv;function DO(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Ct={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=Eh(r),a=!1;if(!o){a=!0,Ct.sorted||(Ct.autodetect=Ct.autodetect.sort((i,l)=>l.p-i.p),Ct.sorted=!0);for(let i of Ct.autodetect)if(o=i.test(...r),o)break}if(Ct.format[o]){const i=Ct.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=Y6(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 P1e="3.1.2",Tt=(...e)=>new Be(...e);Tt.version=P1e;const Sh={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"},$1e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,M1e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,PO=e=>{if(e.match($1e)){(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(M1e)){(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:Yv}=Math,$O=(...e)=>{let[r,n,o,a]=$t(e,"rgba"),i=Eh(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Yv(r),n=Yv(n),o=Yv(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let c="0"+Yv(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=$O(this._rgb,"rgb");for(let r of Object.keys(Sh))if(Sh[r]===e)return r.toLowerCase();return e},Ct.format.named=e=>{if(e=e.toLowerCase(),Sh[e])return PO(Sh[e]);throw new Error("unknown color name: "+e)},Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&Sh[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 Ul={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}},O1e=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 $s(e){const r=O1e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Ul.labWhitePoint=e,Ul.Xn=r[0],Ul.Zn=r[1]}function f1(){return Ul.labWhitePoint}const X6=(...e)=>{e=$t(e,"lab");const[r,n,o]=e,[a,i,l]=I1e(r,n,o),[s,c,u]=MO(a,i,l);return[s,c,u,e.length>3?e[3]:1]},I1e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=Ul,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,_]},K6=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},MO=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=Ul,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=K6(_*i.m00+T*i.m10+R*i.m20),D=K6(_*i.m01+T*i.m11+R*i.m21),N=K6(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},Z6=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=OO(r,n,o),[c,u,d]=L1e(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function L1e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=Ul,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 Q6(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 OO=(e,r,n)=>{e=Q6(e/255),r=Q6(r/255),n=Q6(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=Ul;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 Z6(this._rgb)},Object.assign(Tt,{lab:(...e)=>new Be(...e,"lab"),getLabWhitePoint:f1,setLabWhitePoint:$s}),Ct.format.lab=X6,Ct.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]-=Ul.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:z1e}=Math,B1e=1e-7,j1e=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=j1e;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)<B1e||!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 F1e(...this._rgb.slice(0,3))};const F1e=(e,r,n)=>(e=J6(e),r=J6(r),n=J6(n),.2126*e+.7152*r+.0722*n),J6=e=>(e/=255,e<=.03928?e/12.92:z1e((e+.055)/1.055,2.4)),Eo={},Ch=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Eo[a]&&!o.length&&(a=Object.keys(Eo)[0]),!Eo[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)),Eo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Be.prototype.mix=Be.prototype.interpolate=function(e,r=.5,...n){return Ch(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:H1e,cos:q1e}=Math,IO=(...e)=>{let[r,n,o]=$t(e,"lch");return isNaN(o)&&(o=0),o=o*N1e,[r,q1e(o)*n,H1e(o)*n]},e_=(...e)=>{e=$t(e,"lch");const[r,n,o]=e,[a,i,l]=IO(r,n,o),[s,c,u]=X6(a,i,l);return[s,c,u,e.length>3?e[3]:1]},U1e=(...e)=>{const r=DO($t(e,"hcl"));return e_(...r)},{sqrt:V1e,atan2:Y1e,round:W1e}=Math,LO=(...e)=>{const[r,n,o]=$t(e,"lab"),a=V1e(n*n+o*o);let i=(Y1e(o,n)*D1e+360)%360;return W1e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},t_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=Z6(r,n,o),[c,u,d]=LO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};Be.prototype.lch=function(){return t_(this._rgb)},Be.prototype.hcl=function(){return DO(t_(this._rgb))},Object.assign(Tt,{lch:(...e)=>new Be(...e,"lch"),hcl:(...e)=>new Be(...e,"hcl")}),Ct.format.lch=e_,Ct.format.hcl=U1e,["lch","hcl"].forEach(e=>Ct.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]+=Ul.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 Ch(this,"white",e,...r)},Be.prototype.shade=function(e=.5,...r){return Ch(this,"black",e,...r)};const G1e=(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")};Eo.rgb=G1e;const{sqrt:r_,pow:Th}=Math,X1e=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new Be(r_(Th(o,2)*(1-n)+Th(l,2)*n),r_(Th(a,2)*(1-n)+Th(s,2)*n),r_(Th(i,2)*(1-n)+Th(c,2)*n),"rgb")};Eo.lrgb=X1e;const K1e=(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")};Eo.lab=K1e;const Rh=(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)},zO=(e,r,n)=>Rh(e,r,n,"lch");Eo.lch=zO,Eo.hcl=zO;const Z1e=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)},Q1e=(...e)=>{const[r,n,o]=$t(e,"rgb");return(r<<16)+(n<<8)+o};Be.prototype.num=function(){return Q1e(this._rgb)},Object.assign(Tt,{num:(...e)=>new Be(...e,"num")}),Ct.format.num=Z1e,Ct.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J1e=(e,r,n)=>{const o=e.num(),a=r.num();return new Be(o+n*(a-o),"num")};Eo.num=J1e;const{floor:e0e}=Math,t0e=(...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=e0e(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]},r0e=(...e)=>{const[r,n,o]=$t(e,"rgb"),a=AO(r,n,o),i=NO(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 r0e(this._rgb)};const n0e=(...e)=>new Be(...e,"hcg");Tt.hcg=n0e,Ct.format.hcg=t0e,Ct.autodetect.push({p:1,test:(...e)=>{if(e=$t(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const o0e=(e,r,n)=>Rh(e,r,n,"hcg");Eo.hcg=o0e;const{cos:Ah}=Math,a0e=(...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*Ah(Ps*r)/Ah(G6-Ps*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Ah(Ps*r)/Ah(G6-Ps*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*Ah(Ps*r)/Ah(G6-Ps*r))/3,a=1-(i+l)),a=yd(o*a*3),i=yd(o*i*3),l=yd(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:i0e,sqrt:l0e,acos:s0e}=Math,c0e=(...e)=>{let[r,n,o]=$t(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i0e(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/=l0e((r-n)*(r-n)+(r-o)*(n-o)),a=s0e(a),o>n&&(a=Ps-a),a/=Ps),[a*360,s,l]};Be.prototype.hsi=function(){return c0e(this._rgb)};const u0e=(...e)=>new Be(...e,"hsi");Tt.hsi=u0e,Ct.format.hsi=a0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const d0e=(e,r,n)=>Rh(e,r,n,"hsi");Eo.hsi=d0e;const n_=(...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]},BO=(...e)=>{e=$t(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=AO(r,n,o),i=NO(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 BO(this._rgb)};const p0e=(...e)=>new Be(...e,"hsl");Tt.hsl=p0e,Ct.format.hsl=n_,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const h0e=(e,r,n)=>Rh(e,r,n,"hsl");Eo.hsl=h0e;const{floor:f0e}=Math,m0e=(...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=f0e(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:g0e,max:y0e}=Math,b0e=(...e)=>{e=$t(e,"rgb");let[r,n,o]=e;const a=g0e(r,n,o),i=y0e(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 b0e(this._rgb)};const v0e=(...e)=>new Be(...e,"hsv");Tt.hsv=v0e,Ct.format.hsv=m0e,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const x0e=(e,r,n)=>Rh(e,r,n,"hsv");Eo.hsv=x0e;function Wv(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 o_=(...e)=>{e=$t(e,"lab");const[r,n,o,...a]=e,[i,l,s]=w0e([r,n,o]),[c,u,d]=MO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w0e(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=Wv(n,e);return Wv(r,o.map(a=>a**3))}const a_=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),i=OO(r,n,o);return[...k0e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k0e(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=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}Be.prototype.oklab=function(){return a_(this._rgb)},Object.assign(Tt,{oklab:(...e)=>new Be(...e,"oklab")}),Ct.format.oklab=o_,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const _0e=(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")};Eo.oklab=_0e;const E0e=(e,r,n)=>Rh(e,r,n,"oklch");Eo.oklch=E0e;const{pow:i_,sqrt:l_,PI:s_,cos:jO,sin:FO,atan2:S0e}=Math,C0e=(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 T0e(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*s_;c+=jO(f)*n[0],u+=FO(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*s_;c+=jO(x)*n[f+1],u+=FO(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=S0e(u/s[p],c/s[p])/s_*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)},T0e=(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]+=i_(s[0],2)*l,o[1]+=i_(s[1],2)*l,o[2]+=i_(s[2],2)*l,o[3]+=s[3]*l}return o[0]=l_(o[0]),o[1]=l_(o[1]),o[2]=l_(o[2]),o[3]>.9999999&&(o[3]=1),new Be(Y6(o))},{pow:R0e}=Math;function Gv(e){let r="rgb",n=Tt("#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"&&Tt.brewer&&Tt.brewer[D.toLowerCase()]&&(D=Tt.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]=Tt(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 $,M;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?M=D:s&&s.length>2?M=k(D)/(s.length-2):p!==d?M=(D-d)/(p-d):M=1,M=_(M),N||(M=C(M)),x!==1&&(M=R0e(M,x)),M=l[0]+M*(1-l[0]-l[1]),M=yd(M,0,1);const j=Math.floor(M*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(M<=Y){$=c[L];break}if(M>=Y&&L===i.length-1){$=c[L];break}if(M>Y&&M<i[L+1]){M=(M-Y)/(i[L+1]-Y),$=Tt.interpolate(c[L],c[L+1],M,r);break}}else Ft(c)==="function"&&($=c(M));b&&(g[j]=$)}return $};var R=()=>g={};w(e);const A=function(D){const N=Tt(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=Tt.analyze(a);D===0?s=[N.min,N.max]:s=Tt.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)),M=D.map(j=>(j-d)/(p-d));M.every((j,L)=>$[L]===j)||(_=j=>{if(j<=0||j>=1)return j;let L=0;for(;j>=M[L+1];)L++;const Y=(j-M[L])/(M[L+1]-M[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],M=T(1,!0).lab()[0],j=$>M;let L=T(N,!0).lab()[0];const Y=$+(M-$)*N;let O=L-Y,U=0,I=1,q=20;for(;Math.abs(O)>.01&&q-- >0;)(function(){return j&&(O*=-1),O<0?(U=N,N+=(I-N)*.5):(I=N,N+=(U-N)*.5),L=T(N,!0).lab()[0],O=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 M=a[0],j=a[1]-M;$=A0e(0,D).map(L=>A(M+L/(D-1)*j))}else{e=[];let M=[];if(s&&s.length>2)for(let j=1,L=s.length,Y=1<=L;Y?j<L:j>L;Y?j++:j--)M.push((s[j-1]+s[j])*.5);else M=a;$=M.map(j=>A(j))}return Tt[N]&&($=$.map(M=>M[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=Tt(D),A):n},A}function A0e(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 N0e=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},D0e=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=N0e(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},P0e=e=>{const r=D0e(e);return r.scale=()=>Gv(r),r},{round:HO}=Math;Be.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(HO)},Be.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:HO(r):r)},Object.assign(Tt,{rgb:(...e)=>new Be(...e,"rgb")}),Ct.format.rgb=(...e)=>{const r=$t(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Ct.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 ji=(e,r,n)=>{if(!ji[n])throw new Error("unknown blend mode "+n);return ji[n](e,r)},Hc=e=>(r,n)=>{const o=Tt(n).rgb(),a=Tt(r).rgb();return Tt.rgb(e(o,a))},qc=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},$0e=e=>e,M0e=(e,r)=>e*r/255,O0e=(e,r)=>e>r?r:e,I0e=(e,r)=>e>r?e:r,L0e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z0e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),B0e=(e,r)=>255*(1-(1-r/255)/(e/255)),j0e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);ji.normal=Hc(qc($0e)),ji.multiply=Hc(qc(M0e)),ji.screen=Hc(qc(L0e)),ji.overlay=Hc(qc(z0e)),ji.darken=Hc(qc(O0e)),ji.lighten=Hc(qc(I0e)),ji.dodge=Hc(qc(j0e)),ji.burn=Hc(qc(B0e));const{pow:F0e,sin:H0e,cos:q0e}=Math;function U0e(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=Ps*((e+120)/360+r*c),d=F0e(a[0]+l*c,o),f=(i!==0?n[0]+c*i:n)*d*(1-d)/2,g=q0e(u),b=H0e(u),x=d+f*(-.14861*g+1.78277*b),w=d+f*(-.29227*g-.90649*b),k=d+f*(1.97294*g);return Tt(Y6([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=()=>Tt.scale(s),s.hue(n),s}const V0e="0123456789abcdef",{floor:Y0e,random:W0e}=Math,G0e=()=>{let e="#";for(let r=0;r<6;r++)e+=V0e.charAt(Y0e(W0e()*16));return new Be(e,"hex")},{log:qO,pow:X0e,floor:K0e,abs:Z0e}=Math;function UO(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)=>VO(n,o,a),n}function VO(e,r="equal",n=7){Ft(e)=="array"&&(e=UO(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(X0e(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=K0e(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=Z0e(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 Q0e=(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 YO=.027,J0e=5e-4,eye=.1,WO=1.14,Xv=.022,GO=1.414,tye=(e,r)=>{e=new Be(e),r=new Be(r),e.alpha()<1&&(e=Ch(r,e,e.alpha(),"rgb"));const n=XO(...e.rgb()),o=XO(...r.rgb()),a=n>=Xv?n:n+Math.pow(Xv-n,GO),i=o>=Xv?o:o+Math.pow(Xv-o,GO),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<J0e?0:a<i?l*WO:s*WO;return(Math.abs(c)<eye?0:c>0?c-YO:c+YO)*100};function XO(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:Ms,pow:hn,min:rye,max:nye,atan2:KO,abs:ZO,cos:Kv,sin:QO,exp:oye,PI:JO}=Math;function aye(e,r,n=1,o=1,a=1){var i=function(z){return 360*z/(2*JO)},l=function(z){return 2*JO*z/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=Ms(hn(c,2)+hn(u,2)),x=Ms(hn(p,2)+hn(f,2)),w=(b+x)/2,k=.5*(1-Ms(hn(w,7)/(hn(w,7)+hn(25,7)))),C=c*(1+k),_=p*(1+k),T=Ms(hn(C,2)+hn(u,2)),R=Ms(hn(_,2)+hn(f,2)),A=(T+R)/2,D=i(KO(u,C)),N=i(KO(f,_)),$=D>=0?D:D+360,M=N>=0?N:N+360,j=ZO($-M)>180?($+M+360)/2:($+M)/2,L=1-.17*Kv(l(j-30))+.24*Kv(l(2*j))+.32*Kv(l(3*j+6))-.2*Kv(l(4*j-63));let Y=M-$;Y=ZO(Y)<=180?Y:M<=$?Y+360:Y-360,Y=2*Ms(T*R)*QO(l(Y)/2);const O=d-s,U=R-T,I=1+.015*hn(g-50,2)/Ms(20+hn(g-50,2)),q=1+.045*A,V=1+.015*A*L,G=30*oye(-hn((j-275)/25,2)),J=-(2*Ms(hn(A,7)/(hn(A,7)+hn(25,7))))*QO(2*l(G)),Q=Ms(hn(O/(n*I),2)+hn(U/(o*q),2)+hn(Y/(a*V),2)+J*(U/(o*q))*(Y/(a*V)));return nye(0,rye(100,Q))}function iye(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 lye=(...e)=>{try{return new Be(...e),!0}catch{return!1}},sye={cool(){return Gv([Tt.hsl(180,1,.9),Tt.hsl(250,.7,.4)])},hot(){return Gv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},c_={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"]},eI=Object.keys(c_),tI=new Map(eI.map(e=>[e.toLowerCase(),e])),cye=typeof Proxy=="function"?new Proxy(c_,{get(e,r){const n=r.toLowerCase();if(tI.has(n))return e[tI.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(eI)}}):c_,uye=(...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:rI}=Math,dye=(...e)=>{let[r,n,o]=$t(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-rI(r,rI(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 dye(this._rgb)},Object.assign(Tt,{cmyk:(...e)=>new Be(...e,"cmyk")}),Ct.format.cmyk=uye,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const pye=(...e)=>{const r=$t(e,"hsla");let n=Eh(e)||"lsa";return r[0]=Ka(r[0]||0)+"deg",r[1]=Ka(r[1]*100)+"%",r[2]=Ka(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(" ")})`},hye=(...e)=>{const r=$t(e,"lab");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=Ka(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},fye=(...e)=>{const r=$t(e,"lch");let n=Eh(e)||"lab";return r[0]=Ka(r[0])+"%",r[1]=Ka(r[1]),r[2]=isNaN(r[2])?"none":Ka(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(" ")})`},mye=(...e)=>{const r=$t(e,"lab");return r[0]=Ka(r[0]*100)+"%",r[1]=W6(r[1]),r[2]=W6(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},nI=(...e)=>{const[r,n,o,...a]=$t(e,"rgb"),[i,l,s]=a_(r,n,o),[c,u,d]=LO(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gye=(...e)=>{const r=$t(e,"lch");return r[0]=Ka(r[0]*100)+"%",r[1]=W6(r[1]),r[2]=isNaN(r[2])?"none":Ka(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:u_}=Math,yye=(...e)=>{const r=$t(e,"rgba");let n=Eh(e)||"rgb";if(n.substr(0,3)==="hsl")return pye(BO(r),n);if(n.substr(0,3)==="lab"){const o=f1();$s("d50");const a=hye(Z6(r),n);return $s(o),a}if(n.substr(0,3)==="lch"){const o=f1();$s("d50");const a=fye(t_(r),n);return $s(o),a}return n.substr(0,5)==="oklab"?mye(a_(r)):n.substr(0,5)==="oklch"?gye(nI(r)):(r[0]=u_(r[0]),r[1]=u_(r[1]),r[2]=u_(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(" ")})`)},oI=(...e)=>{e=$t(e,"lch");const[r,n,o,...a]=e,[i,l,s]=IO(r,n,o),[c,u,d]=o_(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},Os=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Za=/\s*/.source,Nh=/\s+/.source,d_=/\s*,\s*/.source,Qv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Dh=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,aI=new RegExp("^rgba?\\("+Za+[Os,Os,Os].join(Nh)+Dh+"\\)$"),iI=new RegExp("^rgb\\("+Za+[Os,Os,Os].join(d_)+Za+"\\)$"),lI=new RegExp("^rgba\\("+Za+[Os,Os,Os,Fi].join(d_)+Za+"\\)$"),sI=new RegExp("^hsla?\\("+Za+[Qv,Zv,Zv].join(Nh)+Dh+"\\)$"),cI=new RegExp("^hsl?\\("+Za+[Qv,Zv,Zv].join(d_)+Za+"\\)$"),uI=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,dI=new RegExp("^lab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),pI=new RegExp("^lch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),hI=new RegExp("^oklab\\("+Za+[Fi,Fi,Fi].join(Nh)+Dh+"\\)$"),fI=new RegExp("^oklch\\("+Za+[Fi,Fi,Qv].join(Nh)+Dh+"\\)$"),{round:mI}=Math,Ph=e=>e.map((r,n)=>n<=2?yd(mI(r),0,255):r),fn=(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,p_=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Ct.format.named)try{return Ct.format.named(e)}catch{}if((r=e.match(aI))||(r=e.match(iI))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+fn(jo(n[a],0),0,255);n=Ph(n);const o=r[4]!==void 0?+fn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(lI)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+fn(n[o],0,255);return n}if((r=e.match(sI))||(r=e.match(cI))){const n=r.slice(1,4);n[0]=+jo(n[0].replace("deg",""),0),n[1]=+fn(jo(n[1],0),0,100)*.01,n[2]=+fn(jo(n[2],0),0,100)*.01;const o=Ph(n_(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(uI)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=n_(n);for(let a=0;a<3;a++)o[a]=mI(o[a]);return o[3]=+r[4],o}if(r=e.match(dI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,100),n[1]=fn(jo(n[1],0),-125,125,!0),n[2]=fn(jo(n[2],0),-125,125,!0);const o=f1();$s("d50");const a=Ph(X6(n));$s(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(pI)){const n=r.slice(1,4);n[0]=fn(n[0],0,100),n[1]=fn(jo(n[1],0),0,150,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=f1();$s("d50");const a=Ph(e_(n));$s(o);const i=r[4]!==void 0?+fn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(hI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,1),n[1]=fn(jo(n[1],0),-.4,.4,!0),n[2]=fn(jo(n[2],0),-.4,.4,!0);const o=Ph(o_(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(fI)){const n=r.slice(1,4);n[0]=fn(jo(n[0],0),0,1),n[1]=fn(jo(n[1],0),0,.4,!1),n[2]=+jo(n[2].replace("deg",""),0);const o=Ph(oI(n)),a=r[4]!==void 0?+fn(r[4],0,1):1;return o[3]=a,o}};p_.test=e=>aI.test(e)||sI.test(e)||dI.test(e)||pI.test(e)||hI.test(e)||fI.test(e)||iI.test(e)||lI.test(e)||cI.test(e)||uI.test(e)||e==="transparent",Be.prototype.css=function(e){return yye(this._rgb,e)};const bye=(...e)=>new Be(...e,"css");Tt.css=bye,Ct.format.css=p_,Ct.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&p_.test(e))return"css"}}),Ct.format.gl=(...e)=>{const r=$t(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vye=(...e)=>new Be(...e,"gl");Tt.gl=vye,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 $O(this._rgb,e)};const xye=(...e)=>new Be(...e,"hex");Tt.hex=xye,Ct.format.hex=PO,Ct.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:Jv}=Math,gI=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*Jv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Jv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Jv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Jv(o),a=255),[n,o,a,1]},{round:wye}=Math,kye=(...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=gI(s);c[2]/c[0]>=o/n?i=s:a=s}return wye(s)};Be.prototype.temp=Be.prototype.kelvin=Be.prototype.temperature=function(){return kye(this._rgb)};const h_=(...e)=>new Be(...e,"temp");Object.assign(Tt,{temp:h_,kelvin:h_,temperature:h_}),Ct.format.temp=Ct.format.kelvin=Ct.format.temperature=gI,Be.prototype.oklch=function(){return nI(this._rgb)},Object.assign(Tt,{oklch:(...e)=>new Be(...e,"oklch")}),Ct.format.oklch=oI,Ct.autodetect.push({p:2,test:(...e)=>{if(e=$t(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Tt,{analyze:UO,average:C0e,bezier:P0e,blend:ji,brewer:cye,Color:Be,colors:Sh,contrast:Q0e,contrastAPCA:tye,cubehelix:U0e,deltaE:aye,distance:iye,input:Ct,interpolate:Ch,limits:VO,mix:Ch,random:G0e,scale:Gv,scales:sye,valid:lye});const f_=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],yI=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function _ye(e){const r=e.get("hsl.l");return f_.reduce((n,o)=>Math.abs(o-r)<Math.abs(n-r)?o:n)}function Eye(e){const r=Tt(e),n=_ye(r),o=f_.findIndex(i=>i===n),a=f_.map(i=>r.set("hsl.l",i)).map(i=>Tt(i)).map((i,l)=>{const s=yI[l]-yI[o];return s>=0?i.saturate(s):i.desaturate(s*-1)});return a[o]=Tt(e),{baseColorIndex:o,colors:a}}function Sye(e){return Eye(e).colors.map(r=>r.hex())}function Cye(...e){return ba(Tye,e)}function Tye(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function m_(...e){return ba(m1,e)}function m1(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 Rye(e,r);if(e instanceof Map)return Aye(e,r);if(e instanceof Set)return Nye(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)||!m1(o,r[n]))return!1;return!0}function Rye(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!m1(o,r[n]))return!1;return!0}function Aye(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!m1(o,r.get(n)))return!1;return!0}function Nye(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(m1(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const bI={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},vI={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},xI={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},Dye={primary:bI,blue:bI,secondary:vI,sky:vI,muted:xI,slate:xI,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"}},Pye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},wI={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},kI={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},_I={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},$ye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:kI,gray:Pye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:wI,primary:kI,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:_I,sky:_I,slate:wI},EI=60,SI=2,CI=1;function Mye(e){nt(Tt.valid(e),`Invalid color: ${e}`);const r=Sye(e),n=r[6],o=Oye(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 Oye(e){const r=Tt(e);let n=r.brighten(SI),o=r.darken(SI),a,i,l,s;do a=n,i=o,n=n.brighten(CI),o=o.darken(CI),l=Tt.contrastAPCA(r,n),s=Tt.contrastAPCA(r,o);while(Math.abs(l)<EI&&Math.abs(s)<EI&&(!m_(n,a)||!m_(o,i)));return Math.abs(l)>Math.abs(s)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Iye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Lye={colors:Cye(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:Dye[e],relationships:$ye[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 g_(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 y_(e,r,n=".",o){if(!g_(r))return y_(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]]:g_(l)&&g_(a[i])?a[i]=y_(l,a[i],(n?`${n}.`:"")+i.toString()):a[i]=l)}return a}function zye(e){return(...r)=>r.reduce((n,o)=>y_(n,o,""),{})}const Bye=zye();function e3({size:e,padding:r,textSize:n,...o},a=b_.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const b_={theme:Lye,defaults:{color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}}};let TI=class bO{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new bO(b_);static from(...r){return _h(r,1)?new bO(Bye(...r,b_)):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?cr(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=e3(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(!Tt.valid(r))throw new Error(`Invalid color value: "${r}"`);return cr(this,`compute-${r}`,()=>Mye(r))}equals(r){return r===this?!0:m_(this.config,r.config)}};function t3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uc(e){return typeof e=="string"}var v_={exports:{}},RI;function jye(){if(RI)return v_.exports;RI=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{v_.exports=e}catch{String.naturalCompare=e}return v_.exports}var Fye=jye();const AI=t3(Fye);function r3(e,r){return e===r?0:Uc(e)?Uc(r)?AI(e,r):1:Uc(r)?-1:0}function NI(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=AI(u,d);if(p!==0)return p}const s=a.length-i.length;return r?-1*s:s}}function x_(e){return e!=null&&typeof e=="string"}function n3(e){const r=e.lastIndexOf(".");return r>0?e.slice(0,r):null}function g1(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y1=e=>x_(e)?e:e.id;function qn(e,r){const n=y1(e);return r?y1(r).startsWith(n+"."):o=>{const a=y1(o);return n.startsWith(a+".")}}function DI(e,r){if(!r)return a=>DI(e,a);const n=y1(e),o=y1(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function PI(e,r){return n=>qn(e,n)}function o3(e){return(x_(e)?e:e.id).split(".").length}function b1(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 bd(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 Hye(e,r){let n=r;for(const o of e)qn(o,n)&&(n=o);return n!==r?n:null}function Vc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Hye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function $I(e,r){if(!e||x_(e)){const o=e??"asc";return a=>$I(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=r3(o.fqn[i],a.fqn[i]);if(l!==0)return l}return 0}).map(({item:o})=>o)}var a3={},MI;function qye(){return MI||(MI=1,a3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",a3.SYMBOL_SUPPORT=typeof Symbol<"u"),a3}var w_,OI;function Uye(){if(OI)return w_;OI=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"},w_=e,w_}var k_,II;function Vye(){if(II)return k_;II=1;var e=qye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return k_=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)},k_}var __,LI;function Yye(){if(LI)return __;LI=1;var e=Uye(),r=Vye();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,__}var Wye=Yye();const E_=t3(Wye);var S_,zI;function Gye(){if(zI)return S_;zI=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++}},S_=e,S_}var Xye=Gye();const so=t3(Xye);function i3(e){return e.summary??e.description}function l3(e){return e.description??e.summary}function Is(e){return!!e}const vd="@group";function Kye(e){return e.kind===vd}function BI(e,r){return nt(typeof e=="string"&&e!=""),"@"+e+"."+r}function Zye(e){return e.startsWith("@")}function Qye(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 v1(e){return e.startsWith("step-")}function jI(e){if(!v1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}const FI=-1,s3=0,x1=1,c3=2,C_=3,T_=4,R_=5,A_=6,HI=7,qI=8,UI=typeof self=="object"?self:globalThis,Jye=(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 s3:case FI:return n(l,a);case x1:{const s=n([],a);for(const c of l)s.push(o(c));return s}case c3:{const s=n({},a);for(const[c,u]of l)s[o(c)]=o(u);return s}case C_:return n(new Date(l),a);case T_:{const{source:s,flags:c}=l;return n(new RegExp(s,c),a)}case R_:{const s=n(new Map,a);for(const[c,u]of l)s.set(o(c),o(u));return s}case A_:{const s=n(new Set,a);for(const c of l)s.add(o(c));return s}case HI:{const{name:s,message:c}=l;return n(new UI[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 UI[i](l),a)};return o},VI=e=>Jye(new Map,e)(0),$h="",{toString:ebe}={},{keys:tbe}=Object,w1=e=>{const r=typeof e;if(r!=="object"||!e)return[s3,r];const n=ebe.call(e).slice(8,-1);switch(n){case"Array":return[x1,$h];case"Object":return[c3,$h];case"Date":return[C_,$h];case"RegExp":return[T_,$h];case"Map":return[R_,$h];case"Set":return[A_,$h];case"DataView":return[x1,n]}return n.includes("Array")?[x1,n]:n.includes("Error")?[HI,n]:[c3,n]},u3=([e,r])=>e===s3&&(r==="function"||r==="symbol"),rbe=(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]=w1(l);switch(s){case s3:{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([FI],l)}return a([s,d],l)}case x1:{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 c3:{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 tbe(l))(e||!u3(w1(l[f])))&&d.push([i(f),i(l[f])]);return p}case C_:return a([s,l.toISOString()],l);case T_:{const{source:d,flags:p}=l;return a([s,{source:d,flags:p}],l)}case R_:{const d=[],p=a([s,d],l);for(const[f,g]of l)(e||!(u3(w1(f))||u3(w1(g))))&&d.push([i(f),i(g)]);return p}case A_:{const d=[],p=a([s,d],l);for(const f of l)(e||!u3(w1(f)))&&d.push(i(f));return p}}const{message:u}=l;return a([s,{name:c,message:u}],l)};return i},YI=(e,{json:r,lossy:n}={})=>{const o=[];return rbe(!(r||n),!!r,new Map,o)(e),o},xd=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?VI(YI(e,r)):structuredClone(e):(e,r)=>VI(YI(e,r));function x6t(){}let k1=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};k1.prototype.normal={},k1.prototype.property={},k1.prototype.space=void 0;function WI(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new k1(n,o,r)}function _1(e){return e.toLowerCase()}let Go=class{constructor(r,n){this.attribute=n,this.property=r}};Go.prototype.attribute="",Go.prototype.booleanish=!1,Go.prototype.boolean=!1,Go.prototype.commaOrSpaceSeparated=!1,Go.prototype.commaSeparated=!1,Go.prototype.defined=!1,Go.prototype.mustUseProperty=!1,Go.prototype.number=!1,Go.prototype.overloadedBoolean=!1,Go.prototype.property="",Go.prototype.spaceSeparated=!1,Go.prototype.space=void 0;let nbe=0;const Mt=wd(),mn=wd(),GI=wd(),He=wd(),_r=wd(),Mh=wd(),va=wd();function wd(){return 2**++nbe}const N_={__proto__:null,boolean:Mt,booleanish:mn,commaOrSpaceSeparated:va,commaSeparated:Mh,number:He,overloadedBoolean:GI,spaceSeparated:_r},D_=Object.keys(N_);let P_=class extends Go{constructor(r,n,o,a){let i=-1;if(super(r,n),XI(this,"space",a),typeof o=="number")for(;++i<D_.length;){const l=D_[i];XI(this,D_[i],(o&N_[l])===N_[l])}}};P_.prototype.defined=!0;function XI(e,r,n){n&&(e[r]=n)}function Oh(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new P_(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 k1(r,n,e.space)}const KI=Oh({properties:{ariaActiveDescendant:null,ariaAtomic:mn,ariaAutoComplete:null,ariaBusy:mn,ariaChecked:mn,ariaColCount:He,ariaColIndex:He,ariaColSpan:He,ariaControls:_r,ariaCurrent:null,ariaDescribedBy:_r,ariaDetails:null,ariaDisabled:mn,ariaDropEffect:_r,ariaErrorMessage:null,ariaExpanded:mn,ariaFlowTo:_r,ariaGrabbed:mn,ariaHasPopup:null,ariaHidden:mn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:_r,ariaLevel:He,ariaLive:null,ariaModal:mn,ariaMultiLine:mn,ariaMultiSelectable:mn,ariaOrientation:null,ariaOwns:_r,ariaPlaceholder:null,ariaPosInSet:He,ariaPressed:mn,ariaReadOnly:mn,ariaRelevant:null,ariaRequired:mn,ariaRoleDescription:_r,ariaRowCount:He,ariaRowIndex:He,ariaRowSpan:He,ariaSelected:mn,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 ZI(e,r){return r in e?e[r]:r}function QI(e,r){return ZI(e,r.toLowerCase())}const obe=Oh({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Mh,acceptCharset:_r,accessKey:_r,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:_r,autoFocus:Mt,autoPlay:Mt,blocking:_r,capture:null,charSet:null,checked:Mt,cite:null,className:_r,cols:He,colSpan:null,content:null,contentEditable:mn,controls:Mt,controlsList:_r,coords:He|Mh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:GI,draggable:mn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:_r,height:He,hidden:Mt,high:He,href:null,hrefLang:null,htmlFor:_r,httpEquiv:_r,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:_r,itemRef:_r,itemScope:Mt,itemType:_r,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:_r,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:_r,required:Mt,reversed:Mt,rows:He,rowSpan:He,sandbox:_r,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:mn,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:mn,width:He,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:_r,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:mn,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:QI}),abe=Oh({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:va,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:_r,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:Mh,g2:Mh,glyphName:Mh,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:va,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:_r,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:He,pointsAtY:He,pointsAtZ:He,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:va,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:va,rev:va,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:va,requiredFeatures:va,requiredFonts:va,requiredFormats:va,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:va,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:va,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:va,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:ZI}),JI=Oh({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()}}),eL=Oh({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:QI}),tL=Oh({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),ibe=/[A-Z]/g,rL=/-[a-z]/g,lbe=/^data[-\w.:]+$/i;function $_(e,r){const n=_1(r);let o=r,a=Go;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&lbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(rL,cbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!rL.test(i)){let l=i.replace(ibe,sbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=P_}return new a(o,r)}function sbe(e){return"-"+e.toLowerCase()}function cbe(e){return e.charAt(1).toUpperCase()}const d3=WI([KI,obe,JI,eL,tL],"html"),E1=WI([KI,abe,JI,eL,tL],"svg");function nL(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 oL(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const aL=/[#.]/g;function ube(e,r){const n=e||"",o={};let a=0,i,l;for(;a<n.length;){aL.lastIndex=a;const s=aL.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 iL(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function lL(e){return e.join(" ").trim()}function sL(e,r,n){const o=n?fbe(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=ube(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,dbe(l))s.unshift(l);else for(const[p,f]of Object.entries(l))pbe(e,c.properties,p,f)}for(const u of s)M_(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function dbe(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 pbe(e,r,n,o){const a=$_(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=iL(o):a.commaSeparated?i=nL(o):a.commaOrSpaceSeparated?i=iL(nL(o).join(" ")):i=cL(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?hbe(o):String(o);if(Array.isArray(i)){const l=[];for(const s of i)l.push(cL(a,a.property,s));i=l}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function M_(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)M_(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?M_(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function cL(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 hbe(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function fbe(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const mbe=["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"],gbe=sL(d3,"div"),ybe=sL(E1,"g",mbe);function bbe(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=uL(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=uL(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 uL(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 kd={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/"},dL={}.hasOwnProperty,vbe=Object.prototype;function xbe(e,r){const n=r||{};return O_({file:n.file||void 0,location:!1,schema:n.space==="svg"?E1:d3,verbose:n.verbose||!1},e)}function O_(e,r){let n;switch(r.nodeName){case"#comment":{const o=r;return n={type:"comment",value:o.data},p3(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:pL(e,r.childNodes),data:{quirksMode:a}},e.file&&e.location){const i=String(e.file),l=bbe(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"},p3(e,o,n),n}case"#text":{const o=r;return n={type:"text",value:o.value},p3(e,o,n),n}default:return n=wbe(e,r),n}}function pL(e,r){let n=-1;const o=[];for(;++n<r.length;){const a=O_(e,r[n]);o.push(a)}return o}function wbe(e,r){const n=e.schema;e.schema=r.namespaceURI===kd.svg?E1:d3;let o=-1;const a={};for(;++o<r.attrs.length;){const s=r.attrs[o],c=(s.prefix?s.prefix+":":"")+s.name;dL.call(vbe,c)||(a[c]=s.value)}const l=(e.schema.space==="svg"?ybe:gbe)(r.tagName,a,pL(e,r.childNodes));if(p3(e,r,l),l.tagName==="template"){const s=r,c=s.sourceCodeLocation,u=c&&c.startTag&&Ih(c.startTag),d=c&&c.endTag&&Ih(c.endTag),p=O_(e,s.content);u&&d&&e.file&&(p.position={start:u.end,end:d.start}),l.content=p}return e.schema=n,l}function p3(e,r,n){if("sourceCodeLocation"in r&&r.sourceCodeLocation&&e.file){const o=kbe(e,n,r.sourceCodeLocation);o&&(e.location=!0,n.position=o)}}function kbe(e,r,n){const o=Ih(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)dL.call(n.attrs,l)&&(i[$_(e.schema,l).property]=Ih(n.attrs[l]));n.startTag;const s=Ih(n.startTag),c=n.endTag?Ih(n.endTag):void 0,u={opening:s};c&&(u.closing=c),u.properties=i,r.data={position:u}}}return o}function Ih(e){const r=hL({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=hL({line:e.endLine,column:e.endCol,offset:e.endOffset});return r||n?{start:r,end:n}:void 0}function hL(e){return e.line&&e.column?e:void 0}class S1{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}S1.prototype.property={},S1.prototype.normal={},S1.prototype.space=null;function fL(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 S1(n,o,r)}function I_(e){return e.toLowerCase()}class Qa{constructor(r,n){this.property=r,this.attribute=n}}Qa.prototype.space=null,Qa.prototype.boolean=!1,Qa.prototype.booleanish=!1,Qa.prototype.overloadedBoolean=!1,Qa.prototype.number=!1,Qa.prototype.commaSeparated=!1,Qa.prototype.spaceSeparated=!1,Qa.prototype.commaOrSpaceSeparated=!1,Qa.prototype.mustUseProperty=!1,Qa.prototype.defined=!1;let _be=0;const Ot=_d(),gn=_d(),mL=_d(),qe=_d(),Er=_d(),Lh=_d(),xa=_d();function _d(){return 2**++_be}const L_={__proto__:null,boolean:Ot,booleanish:gn,commaOrSpaceSeparated:xa,commaSeparated:Lh,number:qe,overloadedBoolean:mL,spaceSeparated:Er},z_=Object.keys(L_);class B_ extends Qa{constructor(r,n,o,a){let i=-1;if(super(r,n),gL(this,"space",a),typeof o=="number")for(;++i<z_.length;){const l=z_[i];gL(this,z_[i],(o&L_[l])===L_[l])}}}B_.prototype.defined=!0;function gL(e,r,n){n&&(e[r]=n)}const Ebe={}.hasOwnProperty;function zh(e){const r={},n={};let o;for(o in e.properties)if(Ebe.call(e.properties,o)){const a=e.properties[o],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[I_(o)]=o,n[I_(i.attribute)]=o}return new S1(r,n,e.space)}const yL=zh({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}}),bL=zh({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function vL(e,r){return r in e?e[r]:r}function xL(e,r){return vL(e,r.toLowerCase())}const wL=zh({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:xL,properties:{xmlns:null,xmlnsXLink:null}}),kL=zh({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:gn,ariaAutoComplete:null,ariaBusy:gn,ariaChecked:gn,ariaColCount:qe,ariaColIndex:qe,ariaColSpan:qe,ariaControls:Er,ariaCurrent:null,ariaDescribedBy:Er,ariaDetails:null,ariaDisabled:gn,ariaDropEffect:Er,ariaErrorMessage:null,ariaExpanded:gn,ariaFlowTo:Er,ariaGrabbed:gn,ariaHasPopup:null,ariaHidden:gn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Er,ariaLevel:qe,ariaLive:null,ariaModal:gn,ariaMultiLine:gn,ariaMultiSelectable:gn,ariaOrientation:null,ariaOwns:Er,ariaPlaceholder:null,ariaPosInSet:qe,ariaPressed:gn,ariaReadOnly:gn,ariaRelevant:null,ariaRequired:gn,ariaRoleDescription:Er,ariaRowCount:qe,ariaRowIndex:qe,ariaRowSpan:qe,ariaSelected:gn,ariaSetSize:qe,ariaSort:null,ariaValueMax:qe,ariaValueMin:qe,ariaValueNow:qe,ariaValueText:null,role:null}}),Sbe=zh({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:xL,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Lh,acceptCharset:Er,accessKey:Er,action:null,allow:null,allowFullScreen:Ot,allowPaymentRequest:Ot,allowUserMedia:Ot,alt:null,as:null,async:Ot,autoCapitalize:null,autoComplete:Er,autoFocus:Ot,autoPlay:Ot,blocking:Er,capture:null,charSet:null,checked:Ot,cite:null,className:Er,cols:qe,colSpan:null,content:null,contentEditable:gn,controls:Ot,controlsList:Er,coords:qe|Lh,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ot,defer:Ot,dir:null,dirName:null,disabled:Ot,download:mL,draggable:gn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ot,formTarget:null,headers:Er,height:qe,hidden:Ot,high:qe,href:null,hrefLang:null,htmlFor:Er,httpEquiv:Er,id:null,imageSizes:null,imageSrcSet:null,inert:Ot,inputMode:null,integrity:null,is:null,isMap:Ot,itemId:null,itemProp:Er,itemRef:Er,itemScope:Ot,itemType:Er,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:Er,placeholder:null,playsInline:Ot,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ot,referrerPolicy:null,rel:Er,required:Ot,reversed:Ot,rows:qe,rowSpan:qe,sandbox:Er,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:gn,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:gn,width:qe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Er,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:gn,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}}),Cbe=zh({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:vL,properties:{about:xa,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:Er,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:Lh,g2:Lh,glyphName:Lh,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:xa,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:Er,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:qe,pointsAtY:qe,pointsAtZ:qe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xa,rev:xa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xa,requiredFeatures:xa,requiredFonts:xa,requiredFormats:xa,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:xa,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:xa,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:xa,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}}),Tbe=/^data[-\w.:]+$/i,_L=/-[a-z]/g,Rbe=/[A-Z]/g;function Abe(e,r){const n=I_(r);let o=r,a=Qa;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Tbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_L,Dbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_L.test(i)){let l=i.replace(Rbe,Nbe);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=B_}return new a(o,r)}function Nbe(e){return"-"+e.toLowerCase()}function Dbe(e){return e.charAt(1).toUpperCase()}const Pbe=fL([bL,yL,wL,kL,Sbe],"html"),EL=fL([bL,yL,wL,kL,Cbe],"svg"),SL={}.hasOwnProperty;function j_(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&SL.call(a,e)){const c=String(a[e]);l=SL.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 $be={},Mbe={}.hasOwnProperty,CL=j_("type",{handlers:{root:Ibe,element:Fbe,text:Bbe,comment:jbe,doctype:zbe}});function Obe(e,r){const o=(r||$be).space;return CL(e,o==="svg"?EL:Pbe)}function Ibe(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=F_(e.children,n,r),Bh(e,n),n}function Lbe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=F_(e.children,n,r),Bh(e,n),n}function zbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Bh(e,r),r}function Bbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return Bh(e,r),r}function jbe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return Bh(e,r),r}function Fbe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=EL);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Mbe.call(e.properties,i)){const c=Hbe(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:kd[l],childNodes:[],parentNode:null};return s.childNodes=F_(e.children,s,o),Bh(e,s),e.tagName==="template"&&e.content&&(s.content=Lbe(e.content,o)),s}function Hbe(e,r,n){const o=Abe(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?oL(n):lL(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=kd[o.space]}return a}function F_(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=CL(e[o],n);i.parentNode=r,a.push(i)}return a}function Bh(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 TL=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],qbe=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]),Or="<22>";var ne;(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"})(ne||(ne={}));const Xo={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function RL(e){return e>=55296&&e<=57343}function Ube(e){return e>=56320&&e<=57343}function Vbe(e,r){return(e-55296)*1024+9216+r}function AL(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function NL(e){return e>=64976&&e<=65007||qbe.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 Ybe=65536;class Wbe{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=Ybe,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(Ube(n))return this.pos++,this._addGap(),Vbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ne.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,ne.EOF;const o=this.html.charCodeAt(n);return o===ne.CARRIAGE_RETURN?ne.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,ne.EOF;let r=this.html.charCodeAt(this.pos);return r===ne.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ne.LINE_FEED):r===ne.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,RL(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===ne.LINE_FEED||r===ne.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){AL(r)?this._err(Ee.controlCharacterInInputStream):NL(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 DL(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 PL=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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檈Ā;qim;拧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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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))),Gbe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var H_;const Xbe=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]]),Kbe=(H_=String.fromCodePoint)!==null&&H_!==void 0?H_: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 Zbe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Xbe.get(e))!==null&&r!==void 0?r:e}var Un;(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"})(Un||(Un={}));const Qbe=32;var Yc;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Yc||(Yc={}));function q_(e){return e>=Un.ZERO&&e<=Un.NINE}function Jbe(e){return e>=Un.UPPER_A&&e<=Un.UPPER_F||e>=Un.LOWER_A&&e<=Un.LOWER_F}function eve(e){return e>=Un.UPPER_A&&e<=Un.UPPER_Z||e>=Un.LOWER_A&&e<=Un.LOWER_Z||q_(e)}function tve(e){return e===Un.EQUALS||eve(e)}var Vn;(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"})(Vn||(Vn={}));var Ls;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ls||(Ls={}));let $L=class{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=Vn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ls.Strict}startEntity(r){this.decodeMode=r,this.state=Vn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Vn.EntityStart:return r.charCodeAt(n)===Un.NUM?(this.state=Vn.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Vn.NamedEntity,this.stateNamedEntity(r,n));case Vn.NumericStart:return this.stateNumericStart(r,n);case Vn.NumericDecimal:return this.stateNumericDecimal(r,n);case Vn.NumericHex:return this.stateNumericHex(r,n);case Vn.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Qbe)===Un.LOWER_X?(this.state=Vn.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Vn.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(q_(a)||Jbe(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(q_(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===Un.SEMI)this.consumed+=1;else if(this.decodeMode===Ls.Strict)return 0;return this.emitCodePoint(Zbe(this.result),this.consumed),this.errors&&(r!==Un.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&Yc.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const l=r.charCodeAt(n);if(this.treeIndex=rve(o,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===Ls.Attribute&&(i===0||tve(l))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&Yc.VALUE_LENGTH)>>14,i!==0){if(l===Un.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Ls.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]&Yc.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]&~Yc.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case Vn.NamedEntity:return this.result!==0&&(this.decodeMode!==Ls.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Vn.NumericDecimal:return this.emitNumericEntity(0,2);case Vn.NumericHex:return this.emitNumericEntity(0,3);case Vn.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Vn.EntityStart:return 0}}};function ML(e){let r="";const n=new $L(e,o=>r+=Kbe(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 rve(e,r,n,o){const a=(r&Yc.BRANCH_LENGTH)>>7,i=r&Yc.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}ML(PL),ML(Gbe);var $e;(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/"})($e||($e={}));var Ed;(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"})(Ed||(Ed={}));var Ja;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Ja||(Ja={}));var me;(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"})(me||(me={}));var H;(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"})(H||(H={}));const nve=new Map([[me.A,H.A],[me.ADDRESS,H.ADDRESS],[me.ANNOTATION_XML,H.ANNOTATION_XML],[me.APPLET,H.APPLET],[me.AREA,H.AREA],[me.ARTICLE,H.ARTICLE],[me.ASIDE,H.ASIDE],[me.B,H.B],[me.BASE,H.BASE],[me.BASEFONT,H.BASEFONT],[me.BGSOUND,H.BGSOUND],[me.BIG,H.BIG],[me.BLOCKQUOTE,H.BLOCKQUOTE],[me.BODY,H.BODY],[me.BR,H.BR],[me.BUTTON,H.BUTTON],[me.CAPTION,H.CAPTION],[me.CENTER,H.CENTER],[me.CODE,H.CODE],[me.COL,H.COL],[me.COLGROUP,H.COLGROUP],[me.DD,H.DD],[me.DESC,H.DESC],[me.DETAILS,H.DETAILS],[me.DIALOG,H.DIALOG],[me.DIR,H.DIR],[me.DIV,H.DIV],[me.DL,H.DL],[me.DT,H.DT],[me.EM,H.EM],[me.EMBED,H.EMBED],[me.FIELDSET,H.FIELDSET],[me.FIGCAPTION,H.FIGCAPTION],[me.FIGURE,H.FIGURE],[me.FONT,H.FONT],[me.FOOTER,H.FOOTER],[me.FOREIGN_OBJECT,H.FOREIGN_OBJECT],[me.FORM,H.FORM],[me.FRAME,H.FRAME],[me.FRAMESET,H.FRAMESET],[me.H1,H.H1],[me.H2,H.H2],[me.H3,H.H3],[me.H4,H.H4],[me.H5,H.H5],[me.H6,H.H6],[me.HEAD,H.HEAD],[me.HEADER,H.HEADER],[me.HGROUP,H.HGROUP],[me.HR,H.HR],[me.HTML,H.HTML],[me.I,H.I],[me.IMG,H.IMG],[me.IMAGE,H.IMAGE],[me.INPUT,H.INPUT],[me.IFRAME,H.IFRAME],[me.KEYGEN,H.KEYGEN],[me.LABEL,H.LABEL],[me.LI,H.LI],[me.LINK,H.LINK],[me.LISTING,H.LISTING],[me.MAIN,H.MAIN],[me.MALIGNMARK,H.MALIGNMARK],[me.MARQUEE,H.MARQUEE],[me.MATH,H.MATH],[me.MENU,H.MENU],[me.META,H.META],[me.MGLYPH,H.MGLYPH],[me.MI,H.MI],[me.MO,H.MO],[me.MN,H.MN],[me.MS,H.MS],[me.MTEXT,H.MTEXT],[me.NAV,H.NAV],[me.NOBR,H.NOBR],[me.NOFRAMES,H.NOFRAMES],[me.NOEMBED,H.NOEMBED],[me.NOSCRIPT,H.NOSCRIPT],[me.OBJECT,H.OBJECT],[me.OL,H.OL],[me.OPTGROUP,H.OPTGROUP],[me.OPTION,H.OPTION],[me.P,H.P],[me.PARAM,H.PARAM],[me.PLAINTEXT,H.PLAINTEXT],[me.PRE,H.PRE],[me.RB,H.RB],[me.RP,H.RP],[me.RT,H.RT],[me.RTC,H.RTC],[me.RUBY,H.RUBY],[me.S,H.S],[me.SCRIPT,H.SCRIPT],[me.SEARCH,H.SEARCH],[me.SECTION,H.SECTION],[me.SELECT,H.SELECT],[me.SOURCE,H.SOURCE],[me.SMALL,H.SMALL],[me.SPAN,H.SPAN],[me.STRIKE,H.STRIKE],[me.STRONG,H.STRONG],[me.STYLE,H.STYLE],[me.SUB,H.SUB],[me.SUMMARY,H.SUMMARY],[me.SUP,H.SUP],[me.TABLE,H.TABLE],[me.TBODY,H.TBODY],[me.TEMPLATE,H.TEMPLATE],[me.TEXTAREA,H.TEXTAREA],[me.TFOOT,H.TFOOT],[me.TD,H.TD],[me.TH,H.TH],[me.THEAD,H.THEAD],[me.TITLE,H.TITLE],[me.TR,H.TR],[me.TRACK,H.TRACK],[me.TT,H.TT],[me.U,H.U],[me.UL,H.UL],[me.SVG,H.SVG],[me.VAR,H.VAR],[me.WBR,H.WBR],[me.XMP,H.XMP]]);function jh(e){var r;return(r=nve.get(e))!==null&&r!==void 0?r:H.UNKNOWN}const Ie=H,ove={[$e.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]),[$e.MATHML]:new Set([Ie.MI,Ie.MO,Ie.MN,Ie.MS,Ie.MTEXT,Ie.ANNOTATION_XML]),[$e.SVG]:new Set([Ie.TITLE,Ie.FOREIGN_OBJECT,Ie.DESC]),[$e.XLINK]:new Set,[$e.XML]:new Set,[$e.XMLNS]:new Set},U_=new Set([Ie.H1,Ie.H2,Ie.H3,Ie.H4,Ie.H5,Ie.H6]);me.STYLE,me.SCRIPT,me.XMP,me.IFRAME,me.NOEMBED,me.NOFRAMES,me.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 on={DATA:ae.DATA,RCDATA:ae.RCDATA,RAWTEXT:ae.RAWTEXT,SCRIPT_DATA:ae.SCRIPT_DATA,PLAINTEXT:ae.PLAINTEXT,CDATA_SECTION:ae.CDATA_SECTION};function ave(e){return e>=ne.DIGIT_0&&e<=ne.DIGIT_9}function C1(e){return e>=ne.LATIN_CAPITAL_A&&e<=ne.LATIN_CAPITAL_Z}function ive(e){return e>=ne.LATIN_SMALL_A&&e<=ne.LATIN_SMALL_Z}function Wc(e){return ive(e)||C1(e)}function OL(e){return Wc(e)||ave(e)}function h3(e){return e+32}function IL(e){return e===ne.SPACE||e===ne.LINE_FEED||e===ne.TABULATION||e===ne.FORM_FEED}function LL(e){return IL(e)||e===ne.SOLIDUS||e===ne.GREATER_THAN_SIGN}function lve(e){return e===ne.NULL?Ee.nullCharacterReference:e>1114111?Ee.characterReferenceOutsideUnicodeRange:RL(e)?Ee.surrogateCharacterReference:NL(e)?Ee.noncharacterCharacterReference:AL(e)||e===ne.CARRIAGE_RETURN?Ee.controlCharacterReference:null}class sve{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 Wbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new $L(PL,(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=lve(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:H.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:Ht.END_TAG,tagName:"",tagID:H.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(DL(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=jh(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=IL(r)?Ht.WHITESPACE_CHARACTER:r===ne.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()?Ls.Attribute:Ls.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 ne.LESS_THAN_SIGN:{this.state=ae.TAG_OPEN;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitCodePoint(r);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case ne.AMPERSAND:{this._startCharacterReference();break}case ne.LESS_THAN_SIGN:{this.state=ae.RCDATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.RAWTEXT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(Wc(r))this._createStartTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.EXCLAMATION_MARK:{this.state=ae.MARKUP_DECLARATION_OPEN;break}case ne.SOLIDUS:{this.state=ae.END_TAG_OPEN;break}case ne.QUESTION_MARK:{this._err(Ee.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ae.BOGUS_COMMENT,this._stateBogusComment(r);break}case ne.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(Wc(r))this._createEndTagToken(),this.state=ae.TAG_NAME,this._stateTagName(r);else switch(r){case ne.GREATER_THAN_SIGN:{this._err(Ee.missingEndTagName),this.state=ae.DATA;break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.tagName+=Or;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(C1(r)?h3(r):r)}}_stateRcdataLessThanSign(r){r===ne.SOLIDUS?this.state=ae.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RCDATA,this._stateRcdata(r))}_stateRcdataEndTagOpen(r){Wc(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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ae.BEFORE_ATTRIBUTE_NAME,!1;case ne.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ae.SELF_CLOSING_START_TAG,!1;case ne.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===ne.SOLIDUS?this.state=ae.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ae.RAWTEXT,this._stateRawtext(r))}_stateRawtextEndTagOpen(r){Wc(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 ne.SOLIDUS:{this.state=ae.SCRIPT_DATA_END_TAG_OPEN;break}case ne.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){Wc(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===ne.HYPHEN_MINUS?(this.state=ae.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ae.SCRIPT_DATA,this._stateScriptData(r))}_stateScriptDataEscapeStartDash(r){r===ne.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 ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataEscapedDash(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedDashDash(r){switch(r){case ne.HYPHEN_MINUS:{this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case ne.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===ne.SOLIDUS?this.state=ae.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Wc(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){Wc(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(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Xo.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 ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDash(r){switch(r){case ne.HYPHEN_MINUS:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedDashDash(r){switch(r){case ne.HYPHEN_MINUS:{this._emitChars("-");break}case ne.LESS_THAN_SIGN:{this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case ne.GREATER_THAN_SIGN:{this.state=ae.SCRIPT_DATA,this._emitChars(">");break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Or);break}case ne.EOF:{this._err(Ee.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ae.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===ne.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(Xo.SCRIPT,!1)&&LL(this.preprocessor.peek(Xo.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n<Xo.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.SOLIDUS:case ne.GREATER_THAN_SIGN:case ne.EOF:{this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:case ne.SOLIDUS:case ne.GREATER_THAN_SIGN:case ne.EOF:{this._leaveAttrName(),this.state=ae.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(r);break}case ne.EQUALS_SIGN:{this._leaveAttrName(),this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case ne.QUOTATION_MARK:case ne.APOSTROPHE:case ne.LESS_THAN_SIGN:{this._err(Ee.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(r);break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.name+=Or;break}default:this.currentAttr.name+=String.fromCodePoint(C1(r)?h3(r):r)}}_stateAfterAttributeName(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.SOLIDUS:{this.state=ae.SELF_CLOSING_START_TAG;break}case ne.EQUALS_SIGN:{this.state=ae.BEFORE_ATTRIBUTE_VALUE;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ae.ATTRIBUTE_NAME,this._stateAttributeName(r)}}_stateBeforeAttributeValue(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{this.state=ae.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this.state=ae.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case ne.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 ne.QUOTATION_MARK:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Or;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueSingleQuoted(r){switch(r){case ne.APOSTROPHE:{this.state=ae.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Or;break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAttributeValueUnquoted(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.AMPERSAND:{this._startCharacterReference();break}case ne.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this.currentAttr.value+=Or;break}case ne.QUOTATION_MARK:case ne.APOSTROPHE:case ne.LESS_THAN_SIGN:case ne.EQUALS_SIGN:case ne.GRAVE_ACCENT:{this._err(Ee.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(r);break}case ne.EOF:{this._err(Ee.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(r)}}_stateAfterAttributeValueQuoted(r){switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this._leaveAttrValue(),this.state=ae.BEFORE_ATTRIBUTE_NAME;break}case ne.SOLIDUS:{this._leaveAttrValue(),this.state=ae.SELF_CLOSING_START_TAG;break}case ne.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.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 ne.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=ae.DATA,this.emitCurrentTagToken();break}case ne.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 ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Or;break}default:n.data+=String.fromCodePoint(r)}}_stateMarkupDeclarationOpen(r){this._consumeSequenceIfMatch(Xo.DASH_DASH,!0)?(this._createCommentToken(Xo.DASH_DASH.length+1),this.state=ae.COMMENT_START):this._consumeSequenceIfMatch(Xo.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Xo.DOCTYPE.length+1),this.state=ae.DOCTYPE):this._consumeSequenceIfMatch(Xo.CDATA_START,!0)?this.inForeignNode?this.state=ae.CDATA_SECTION:(this._err(Ee.cdataInHtmlContent),this._createCommentToken(Xo.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 ne.HYPHEN_MINUS:{this.state=ae.COMMENT_START_DASH;break}case ne.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 ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptClosingOfEmptyComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.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 ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END_DASH;break}case ne.LESS_THAN_SIGN:{n.data+="<",this.state=ae.COMMENT_LESS_THAN_SIGN;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.data+=Or;break}case ne.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 ne.EXCLAMATION_MARK:{n.data+="!",this.state=ae.COMMENT_LESS_THAN_SIGN_BANG;break}case ne.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=ae.COMMENT,this._stateComment(r)}}_stateCommentLessThanSignBang(r){r===ne.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ae.COMMENT,this._stateComment(r))}_stateCommentLessThanSignBangDash(r){r===ne.HYPHEN_MINUS?this.state=ae.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ae.COMMENT_END_DASH,this._stateCommentEndDash(r))}_stateCommentLessThanSignBangDashDash(r){r!==ne.GREATER_THAN_SIGN&&r!==ne.EOF&&this._err(Ee.nestedComment),this.state=ae.COMMENT_END,this._stateCommentEnd(r)}_stateCommentEndDash(r){const n=this.currentToken;switch(r){case ne.HYPHEN_MINUS:{this.state=ae.COMMENT_END;break}case ne.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 ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.EXCLAMATION_MARK:{this.state=ae.COMMENT_END_BANG;break}case ne.HYPHEN_MINUS:{n.data+="-";break}case ne.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 ne.HYPHEN_MINUS:{n.data+="--!",this.state=ae.COMMENT_END_DASH;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.incorrectlyClosedComment),this.state=ae.DATA,this.emitCurrentComment(n);break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_NAME;break}case ne.GREATER_THAN_SIGN:{this.state=ae.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(r);break}case ne.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(C1(r))this._createDoctypeToken(String.fromCharCode(h3(r))),this.state=ae.DOCTYPE_NAME;else switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.NULL:{this._err(Ee.unexpectedNullCharacter),this._createDoctypeToken(Or),this.state=ae.DOCTYPE_NAME;break}case ne.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 ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.AFTER_DOCTYPE_NAME;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.name+=Or;break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(C1(r)?h3(r):r)}}_stateAfterDoctypeName(r){const n=this.currentToken;switch(r){case ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.EOF:{this._err(Ee.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Xo.PUBLIC,!1)?this.state=ae.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xo.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.publicId="",this.state=ae.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.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 ne.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Or;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.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 ne.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.publicId+=Or;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case ne.GREATER_THAN_SIGN:{this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:{this.state=ae.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.QUOTATION_MARK:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{this._err(Ee.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.QUOTATION_MARK:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case ne.APOSTROPHE:{n.systemId="",this.state=ae.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=ae.DATA,this.emitCurrentDoctype(n);break}case ne.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 ne.QUOTATION_MARK:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Or;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.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 ne.APOSTROPHE:{this.state=ae.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter),n.systemId+=Or;break}case ne.GREATER_THAN_SIGN:{this._err(Ee.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.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 ne.SPACE:case ne.LINE_FEED:case ne.TABULATION:case ne.FORM_FEED:break;case ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.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 ne.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=ae.DATA;break}case ne.NULL:{this._err(Ee.unexpectedNullCharacter);break}case ne.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(r){switch(r){case ne.RIGHT_SQUARE_BRACKET:{this.state=ae.CDATA_SECTION_BRACKET;break}case ne.EOF:{this._err(Ee.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateCdataSectionBracket(r){r===ne.RIGHT_SQUARE_BRACKET?this.state=ae.CDATA_SECTION_END:(this._emitChars("]"),this.state=ae.CDATA_SECTION,this._stateCdataSection(r))}_stateCdataSectionEnd(r){switch(r){case ne.GREATER_THAN_SIGN:{this.state=ae.DATA;break}case ne.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(ne.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&OL(this.preprocessor.peek(1))?ae.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(r){OL(r)?this._flushCodePointConsumedAsCharacterReference(r):(r===ne.SEMICOLON&&this._err(Ee.unknownNamedCharacterReference),this.state=this.returnState,this._callState(r))}}const zL=new Set([H.DD,H.DT,H.LI,H.OPTGROUP,H.OPTION,H.P,H.RB,H.RP,H.RT,H.RTC]),BL=new Set([...zL,H.CAPTION,H.COLGROUP,H.TBODY,H.TD,H.TFOOT,H.TH,H.THEAD,H.TR]),f3=new Set([H.APPLET,H.CAPTION,H.HTML,H.MARQUEE,H.OBJECT,H.TABLE,H.TD,H.TEMPLATE,H.TH]),cve=new Set([...f3,H.OL,H.UL]),uve=new Set([...f3,H.BUTTON]),jL=new Set([H.ANNOTATION_XML,H.MI,H.MN,H.MO,H.MS,H.MTEXT]),FL=new Set([H.DESC,H.FOREIGN_OBJECT,H.TITLE]),dve=new Set([H.TR,H.TEMPLATE,H.HTML]),pve=new Set([H.TBODY,H.TFOOT,H.THEAD,H.TEMPLATE,H.HTML]),hve=new Set([H.TABLE,H.TEMPLATE,H.HTML]),fve=new Set([H.TD,H.TH]);class mve{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=H.UNKNOWN,this.current=r}_indexOf(r){return this.items.lastIndexOf(r,this.stackTop)}_isInTemplate(){return this.currentTagId===H.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===$e.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])!==$e.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(U_,$e.HTML)}popUntilTableCellPopped(){this.popUntilPopped(fve,$e.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(hve,$e.HTML)}clearBackToTableBodyContext(){this.clearBackTo(pve,$e.HTML)}clearBackToTableRowContext(){this.clearBackTo(dve,$e.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]===H.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]===H.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 $e.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case $e.SVG:{if(FL.has(a))return!1;break}case $e.MATHML:{if(jL.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,f3)}hasInListItemScope(r){return this.hasInDynamicScope(r,cve)}hasInButtonScope(r){return this.hasInDynamicScope(r,uve)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case $e.HTML:{if(U_.has(n))return!0;if(f3.has(n))return!1;break}case $e.SVG:{if(FL.has(n))return!1;break}case $e.MATHML:{if(jL.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$e.HTML)switch(this.tagIDs[n]){case r:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===$e.HTML)switch(this.tagIDs[r]){case H.TBODY:case H.THEAD:case H.TFOOT:return!0;case H.TABLE:case H.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===$e.HTML)switch(this.tagIDs[n]){case r:return!0;case H.OPTION:case H.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;zL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;BL.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&BL.has(this.currentTagId);)this.pop()}}const V_=3;var Vl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Vl||(Vl={}));const HL={type:Vl.Marker};class gve{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===Vl.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<V_)return;const n=this.treeAdapter.getAttrList(r),o=this._getNoahArkConditionCandidates(r,n);if(o.length<V_)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>=V_&&this.entries.splice(s.idx,1))}}insertMarker(){this.entries.unshift(HL)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:Vl.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:Vl.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(HL);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===Vl.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===Vl.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===Vl.Element&&n.element===r)}}const Gc={createDocument(){return{nodeName:"#document",mode:Ja.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};Gc.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(Gc.isTextNode(n)){n.value+=r;return}}Gc.appendChild(e,Gc.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&Gc.isTextNode(o)?o.value+=r:Gc.insertBefore(e,Gc.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}}},qL="html",yve="about:legacy-compat",bve="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",UL=["+//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//"],vve=[...UL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],xve=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),VL=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],wve=[...VL,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function YL(e,r){return r.some(n=>e.startsWith(n))}function kve(e){return e.name===qL&&e.publicId===null&&(e.systemId===null||e.systemId===yve)}function _ve(e){if(e.name!==qL)return Ja.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===bve)return Ja.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),xve.has(n))return Ja.QUIRKS;let o=r===null?vve:UL;if(YL(n,o))return Ja.QUIRKS;if(o=r===null?VL:wve,YL(n,o))return Ja.LIMITED_QUIRKS}return Ja.NO_QUIRKS}const WL={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Eve="definitionurl",Sve="definitionURL",Cve=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])),Tve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:$e.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:$e.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:$e.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:$e.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:$e.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:$e.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:$e.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:$e.XML}],["xml:space",{prefix:"xml",name:"space",namespace:$e.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:$e.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:$e.XMLNS}]]),Rve=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])),Ave=new Set([H.B,H.BIG,H.BLOCKQUOTE,H.BODY,H.BR,H.CENTER,H.CODE,H.DD,H.DIV,H.DL,H.DT,H.EM,H.EMBED,H.H1,H.H2,H.H3,H.H4,H.H5,H.H6,H.HEAD,H.HR,H.I,H.IMG,H.LI,H.LISTING,H.MENU,H.META,H.NOBR,H.OL,H.P,H.PRE,H.RUBY,H.S,H.SMALL,H.SPAN,H.STRONG,H.STRIKE,H.SUB,H.SUP,H.TABLE,H.TT,H.U,H.UL,H.VAR]);function Nve(e){const r=e.tagID;return r===H.FONT&&e.attrs.some(({name:o})=>o===Ed.COLOR||o===Ed.SIZE||o===Ed.FACE)||Ave.has(r)}function GL(e){for(let r=0;r<e.attrs.length;r++)if(e.attrs[r].name===Eve){e.attrs[r].name=Sve;break}}function XL(e){for(let r=0;r<e.attrs.length;r++){const n=Cve.get(e.attrs[r].name);n!=null&&(e.attrs[r].name=n)}}function Y_(e){for(let r=0;r<e.attrs.length;r++){const n=Tve.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 Dve(e){const r=Rve.get(e.tagName);r!=null&&(e.tagName=r,e.tagID=jh(e.tagName))}function Pve(e,r){return r===$e.MATHML&&(e===H.MI||e===H.MO||e===H.MN||e===H.MS||e===H.MTEXT)}function $ve(e,r,n){if(r===$e.MATHML&&e===H.ANNOTATION_XML){for(let o=0;o<n.length;o++)if(n[o].name===Ed.ENCODING){const a=n[o].value.toLowerCase();return a===WL.TEXT_HTML||a===WL.APPLICATION_XML}}return r===$e.SVG&&(e===H.FOREIGN_OBJECT||e===H.DESC||e===H.TITLE)}function Mve(e,r,n,o){return(!o||o===$e.HTML)&&$ve(e,r,n)||(!o||o===$e.MATHML)&&Pve(e,r)}const Ove="hidden",Ive=8,Lve=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 zve={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},KL=new Set([H.TABLE,H.TBODY,H.TFOOT,H.THEAD,H.TR]),ZL={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Gc,onParseError:null};class QL{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={...ZL,...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 sve(this.options,this),this.activeFormattingElements=new gve(this.treeAdapter),this.fragmentContextID=o?jh(this.treeAdapter.getTagName(o)):H.UNKNOWN,this._setContextModes(o??this.document,this.fragmentContextID),this.openElements=new mve(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={...ZL,...n};r??(r=o.treeAdapter.createElement(me.TEMPLATE,$e.HTML,[]));const a=o.treeAdapter.createElement("documentmock",$e.HTML,[]),i=new this(o,a,r);return i.fragmentContextID===H.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:zve,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)===$e.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,$e.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=on.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)===me.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==$e.HTML))switch(this.fragmentContextID){case H.TITLE:case H.TEXTAREA:{this.tokenizer.state=on.RCDATA;break}case H.STYLE:case H.XMP:case H.IFRAME:case H.NOEMBED:case H.NOFRAMES:case H.NOSCRIPT:{this.tokenizer.state=on.RAWTEXT;break}case H.SCRIPT:{this.tokenizer.state=on.SCRIPT_DATA;break}case H.PLAINTEXT:{this.tokenizer.state=on.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,$e.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,$e.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(me.HTML,$e.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,H.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===H.SVG&&this.treeAdapter.getTagName(n)===me.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===$e.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===H.MGLYPH||r.tagID===H.MALIGNMARK)&&!this._isIntegrationPoint(o,n,$e.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 Mve(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===Vl.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(H.P),this.openElements.popUntilTagNamePopped(H.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case H.TR:{this.insertionMode=le.IN_ROW;return}case H.TBODY:case H.THEAD:case H.TFOOT:{this.insertionMode=le.IN_TABLE_BODY;return}case H.CAPTION:{this.insertionMode=le.IN_CAPTION;return}case H.COLGROUP:{this.insertionMode=le.IN_COLUMN_GROUP;return}case H.TABLE:{this.insertionMode=le.IN_TABLE;return}case H.BODY:{this.insertionMode=le.IN_BODY;return}case H.FRAMESET:{this.insertionMode=le.IN_FRAMESET;return}case H.SELECT:{this._resetInsertionModeForSelect(r);return}case H.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case H.HTML:{this.insertionMode=this.headElement?le.AFTER_HEAD:le.BEFORE_HEAD;return}case H.TD:case H.TH:{if(r>0){this.insertionMode=le.IN_CELL;return}break}case H.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===H.TEMPLATE)break;if(o===H.TABLE){this.insertionMode=le.IN_SELECT_IN_TABLE;return}}this.insertionMode=le.IN_SELECT}_isElementCausesFosterParenting(r){return KL.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 H.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===$e.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case H.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 ove[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){fxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(this,r);break}case le.IN_BODY:case le.IN_CAPTION:case le.IN_CELL:case le.IN_TEMPLATE:{ez(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:{K_(this,r);break}case le.IN_TABLE_TEXT:{sz(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){hxe(this,r);return}switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(this,r);break}case le.TEXT:{this._insertCharacters(r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K_(this,r);break}case le.IN_COLUMN_GROUP:{y3(this,r);break}case le.AFTER_BODY:{x3(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){G_(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:{G_(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.AFTER_BODY:{Vve(this,r);break}case le.AFTER_AFTER_BODY:case le.AFTER_AFTER_FRAMESET:{Yve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case le.INITIAL:{Wve(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:{O1(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)?mxe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Gve(this,r);break}case le.BEFORE_HEAD:{Kve(this,r);break}case le.IN_HEAD:{Hi(this,r);break}case le.IN_HEAD_NO_SCRIPT:{Jve(this,r);break}case le.AFTER_HEAD:{t3e(this,r);break}case le.IN_BODY:{So(this,r);break}case le.IN_TABLE:{Fh(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_CAPTION:{Z3e(this,r);break}case le.IN_COLUMN_GROUP:{Z_(this,r);break}case le.IN_TABLE_BODY:{b3(this,r);break}case le.IN_ROW:{v3(this,r);break}case le.IN_CELL:{exe(this,r);break}case le.IN_SELECT:{dz(this,r);break}case le.IN_SELECT_IN_TABLE:{rxe(this,r);break}case le.IN_TEMPLATE:{oxe(this,r);break}case le.AFTER_BODY:{ixe(this,r);break}case le.IN_FRAMESET:{lxe(this,r);break}case le.AFTER_FRAMESET:{cxe(this,r);break}case le.AFTER_AFTER_BODY:{dxe(this,r);break}case le.AFTER_AFTER_FRAMESET:{pxe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?gxe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{Xve(this,r);break}case le.BEFORE_HEAD:{Zve(this,r);break}case le.IN_HEAD:{Qve(this,r);break}case le.IN_HEAD_NO_SCRIPT:{e3e(this,r);break}case le.AFTER_HEAD:{r3e(this,r);break}case le.IN_BODY:{g3(this,r);break}case le.TEXT:{F3e(this,r);break}case le.IN_TABLE:{$1(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_CAPTION:{Q3e(this,r);break}case le.IN_COLUMN_GROUP:{J3e(this,r);break}case le.IN_TABLE_BODY:{Q_(this,r);break}case le.IN_ROW:{uz(this,r);break}case le.IN_CELL:{txe(this,r);break}case le.IN_SELECT:{pz(this,r);break}case le.IN_SELECT_IN_TABLE:{nxe(this,r);break}case le.IN_TEMPLATE:{axe(this,r);break}case le.AFTER_BODY:{fz(this,r);break}case le.IN_FRAMESET:{sxe(this,r);break}case le.AFTER_FRAMESET:{uxe(this,r);break}case le.AFTER_AFTER_BODY:{w3(this,r);break}}}onEof(r){switch(this.insertionMode){case le.INITIAL:{T1(this,r);break}case le.BEFORE_HTML:{R1(this,r);break}case le.BEFORE_HEAD:{A1(this,r);break}case le.IN_HEAD:{N1(this,r);break}case le.IN_HEAD_NO_SCRIPT:{D1(this,r);break}case le.AFTER_HEAD:{P1(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:{iz(this,r);break}case le.TEXT:{H3e(this,r);break}case le.IN_TABLE_TEXT:{O1(this,r);break}case le.IN_TEMPLATE:{hz(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:{X_(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===ne.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:{JL(this,r);break}case le.IN_TABLE:case le.IN_TABLE_BODY:case le.IN_ROW:{K_(this,r);break}case le.IN_TABLE_TEXT:{lz(this,r);break}}}}function Bve(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):az(e,r),n}function jve(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 Fve(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>=Lve;!s||c?(c&&e.activeFormattingElements.removeEntry(s),e.openElements.remove(l)):(l=Hve(e,s),o===r&&(e.activeFormattingElements.bookmark=s),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(l,o),o=l)}return o}function Hve(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 qve(e,r,n){const o=e.treeAdapter.getTagName(r),a=jh(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===H.TEMPLATE&&i===$e.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function Uve(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 W_(e,r){for(let n=0;n<Ive;n++){const o=Bve(e,r);if(!o)break;const a=jve(e,o);if(!a)break;e.activeFormattingElements.bookmark=o;const i=Fve(e,a,o.element),l=e.openElements.getCommonAncestor(o.element);e.treeAdapter.detachNode(i),l&&qve(e,l,i),Uve(e,a,o)}}function G_(e,r){e._appendCommentNode(r,e.openElements.currentTmplContentOrNode)}function Vve(e,r){e._appendCommentNode(r,e.openElements.items[0])}function Yve(e,r){e._appendCommentNode(r,e.document)}function X_(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 Wve(e,r){e._setDocumentType(r);const n=r.forceQuirks?Ja.QUIRKS:_ve(r);kve(r)||e._err(r,Ee.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=le.BEFORE_HTML}function T1(e,r){e._err(r,Ee.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Ja.QUIRKS),e.insertionMode=le.BEFORE_HTML,e._processToken(r)}function Gve(e,r){r.tagID===H.HTML?(e._insertElement(r,$e.HTML),e.insertionMode=le.BEFORE_HEAD):R1(e,r)}function Xve(e,r){const n=r.tagID;(n===H.HTML||n===H.HEAD||n===H.BODY||n===H.BR)&&R1(e,r)}function R1(e,r){e._insertFakeRootElement(),e.insertionMode=le.BEFORE_HEAD,e._processToken(r)}function Kve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.HEAD:{e._insertElement(r,$e.HTML),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD;break}default:A1(e,r)}}function Zve(e,r){const n=r.tagID;n===H.HEAD||n===H.BODY||n===H.HTML||n===H.BR?A1(e,r):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function A1(e,r){e._insertFakeElement(me.HEAD,H.HEAD),e.headElement=e.openElements.current,e.insertionMode=le.IN_HEAD,e._processToken(r)}function Hi(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:{e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.TITLE:{e._switchToTextParsing(r,on.RCDATA);break}case H.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,on.RAWTEXT):(e._insertElement(r,$e.HTML),e.insertionMode=le.IN_HEAD_NO_SCRIPT);break}case H.NOFRAMES:case H.STYLE:{e._switchToTextParsing(r,on.RAWTEXT);break}case H.SCRIPT:{e._switchToTextParsing(r,on.SCRIPT_DATA);break}case H.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=le.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(le.IN_TEMPLATE);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:N1(e,r)}}function Qve(e,r){switch(r.tagID){case H.HEAD:{e.openElements.pop(),e.insertionMode=le.AFTER_HEAD;break}case H.BODY:case H.BR:case H.HTML:{N1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function Sd(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==H.TEMPLATE&&e._err(r,Ee.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ee.endTagWithoutMatchingOpenElement)}function N1(e,r){e.openElements.pop(),e.insertionMode=le.AFTER_HEAD,e._processToken(r)}function Jve(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BASEFONT:case H.BGSOUND:case H.HEAD:case H.LINK:case H.META:case H.NOFRAMES:case H.STYLE:{Hi(e,r);break}case H.NOSCRIPT:{e._err(r,Ee.nestedNoscriptInHead);break}default:D1(e,r)}}function e3e(e,r){switch(r.tagID){case H.NOSCRIPT:{e.openElements.pop(),e.insertionMode=le.IN_HEAD;break}case H.BR:{D1(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function D1(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 t3e(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.BODY:{e._insertElement(r,$e.HTML),e.framesetOk=!1,e.insertionMode=le.IN_BODY;break}case H.FRAMESET:{e._insertElement(r,$e.HTML),e.insertionMode=le.IN_FRAMESET;break}case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{e._err(r,Ee.abandonedHeadElementChild),e.openElements.push(e.headElement,H.HEAD),Hi(e,r),e.openElements.remove(e.headElement);break}case H.HEAD:{e._err(r,Ee.misplacedStartTagForHeadElement);break}default:P1(e,r)}}function r3e(e,r){switch(r.tagID){case H.BODY:case H.HTML:case H.BR:{P1(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:e._err(r,Ee.endTagWithoutMatchingOpenElement)}}function P1(e,r){e._insertFakeElement(me.BODY,H.BODY),e.insertionMode=le.IN_BODY,m3(e,r)}function m3(e,r){switch(r.type){case Ht.CHARACTER:{ez(e,r);break}case Ht.WHITESPACE_CHARACTER:{JL(e,r);break}case Ht.COMMENT:{G_(e,r);break}case Ht.START_TAG:{So(e,r);break}case Ht.END_TAG:{g3(e,r);break}case Ht.EOF:{iz(e,r);break}}}function JL(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function ez(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function n3e(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function o3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function a3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_FRAMESET)}function i3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML)}function l3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),U_.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,$e.HTML)}function s3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function c3e(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),n||(e.formElement=e.openElements.current))}function u3e(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===H.LI&&a===H.LI||(n===H.DD||n===H.DT)&&(a===H.DD||a===H.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==H.ADDRESS&&a!==H.DIV&&a!==H.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML)}function d3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.tokenizer.state=on.PLAINTEXT}function p3e(e,r){e.openElements.hasInScope(H.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.framesetOk=!1}function h3e(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(me.A);n&&(W_(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function f3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function m3e(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(H.NOBR)&&(W_(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,$e.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function g3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function y3e(e,r){e.treeAdapter.getDocumentMode(e.document)!==Ja.QUIRKS&&e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._insertElement(r,$e.HTML),e.framesetOk=!1,e.insertionMode=le.IN_TABLE}function tz(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,$e.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function rz(e){const r=DL(e,Ed.TYPE);return r!=null&&r.toLowerCase()===Ove}function b3e(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,$e.HTML),rz(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function v3e(e,r){e._appendElement(r,$e.HTML),r.ackSelfClosing=!0}function x3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._appendElement(r,$e.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function w3e(e,r){r.tagName=me.IMG,r.tagID=H.IMG,tz(e,r)}function k3e(e,r){e._insertElement(r,$e.HTML),e.skipNextNewLine=!0,e.tokenizer.state=on.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=le.TEXT}function _3e(e,r){e.openElements.hasInButtonScope(H.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function E3e(e,r){e.framesetOk=!1,e._switchToTextParsing(r,on.RAWTEXT)}function nz(e,r){e._switchToTextParsing(r,on.RAWTEXT)}function S3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.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 C3e(e,r){e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML)}function T3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,$e.HTML)}function R3e(e,r){e.openElements.hasInScope(H.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(H.RTC),e._insertElement(r,$e.HTML)}function A3e(e,r){e._reconstructActiveFormattingElements(),GL(r),Y_(r),r.selfClosing?e._appendElement(r,$e.MATHML):e._insertElement(r,$e.MATHML),r.ackSelfClosing=!0}function N3e(e,r){e._reconstructActiveFormattingElements(),XL(r),Y_(r),r.selfClosing?e._appendElement(r,$e.SVG):e._insertElement(r,$e.SVG),r.ackSelfClosing=!0}function oz(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,$e.HTML)}function So(e,r){switch(r.tagID){case H.I:case H.S:case H.B:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.SMALL:case H.STRIKE:case H.STRONG:{f3e(e,r);break}case H.A:{h3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{l3e(e,r);break}case H.P:case H.DL:case H.OL:case H.UL:case H.DIV:case H.DIR:case H.NAV:case H.MAIN:case H.MENU:case H.ASIDE:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.DETAILS:case H.ADDRESS:case H.ARTICLE:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{i3e(e,r);break}case H.LI:case H.DD:case H.DT:{u3e(e,r);break}case H.BR:case H.IMG:case H.WBR:case H.AREA:case H.EMBED:case H.KEYGEN:{tz(e,r);break}case H.HR:{x3e(e,r);break}case H.RB:case H.RTC:{T3e(e,r);break}case H.RT:case H.RP:{R3e(e,r);break}case H.PRE:case H.LISTING:{s3e(e,r);break}case H.XMP:{_3e(e,r);break}case H.SVG:{N3e(e,r);break}case H.HTML:{n3e(e,r);break}case H.BASE:case H.LINK:case H.META:case H.STYLE:case H.TITLE:case H.SCRIPT:case H.BGSOUND:case H.BASEFONT:case H.TEMPLATE:{Hi(e,r);break}case H.BODY:{o3e(e,r);break}case H.FORM:{c3e(e,r);break}case H.NOBR:{m3e(e,r);break}case H.MATH:{A3e(e,r);break}case H.TABLE:{y3e(e,r);break}case H.INPUT:{b3e(e,r);break}case H.PARAM:case H.TRACK:case H.SOURCE:{v3e(e,r);break}case H.IMAGE:{w3e(e,r);break}case H.BUTTON:{p3e(e,r);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{g3e(e,r);break}case H.IFRAME:{E3e(e,r);break}case H.SELECT:{S3e(e,r);break}case H.OPTION:case H.OPTGROUP:{C3e(e,r);break}case H.NOEMBED:case H.NOFRAMES:{nz(e,r);break}case H.FRAMESET:{a3e(e,r);break}case H.TEXTAREA:{k3e(e,r);break}case H.NOSCRIPT:{e.options.scriptingEnabled?nz(e,r):oz(e,r);break}case H.PLAINTEXT:{d3e(e,r);break}case H.COL:case H.TH:case H.TD:case H.TR:case H.HEAD:case H.FRAME:case H.TBODY:case H.TFOOT:case H.THEAD:case H.CAPTION:case H.COLGROUP:break;default:oz(e,r)}}function D3e(e,r){if(e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function P3e(e,r){e.openElements.hasInScope(H.BODY)&&(e.insertionMode=le.AFTER_BODY,fz(e,r))}function $3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function M3e(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(H.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(H.FORM):n&&e.openElements.remove(n))}function O3e(e){e.openElements.hasInButtonScope(H.P)||e._insertFakeElement(me.P,H.P),e._closePElement()}function I3e(e){e.openElements.hasInListItemScope(H.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(H.LI),e.openElements.popUntilTagNamePopped(H.LI))}function L3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function z3e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function B3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function j3e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(me.BR,H.BR),e.openElements.pop(),e.framesetOk=!1}function az(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!==H.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 g3(e,r){switch(r.tagID){case H.A:case H.B:case H.I:case H.S:case H.U:case H.EM:case H.TT:case H.BIG:case H.CODE:case H.FONT:case H.NOBR:case H.SMALL:case H.STRIKE:case H.STRONG:{W_(e,r);break}case H.P:{O3e(e);break}case H.DL:case H.UL:case H.OL:case H.DIR:case H.DIV:case H.NAV:case H.PRE:case H.MAIN:case H.MENU:case H.ASIDE:case H.BUTTON:case H.CENTER:case H.FIGURE:case H.FOOTER:case H.HEADER:case H.HGROUP:case H.DIALOG:case H.ADDRESS:case H.ARTICLE:case H.DETAILS:case H.SEARCH:case H.SECTION:case H.SUMMARY:case H.LISTING:case H.FIELDSET:case H.BLOCKQUOTE:case H.FIGCAPTION:{$3e(e,r);break}case H.LI:{I3e(e);break}case H.DD:case H.DT:{L3e(e,r);break}case H.H1:case H.H2:case H.H3:case H.H4:case H.H5:case H.H6:{z3e(e);break}case H.BR:{j3e(e);break}case H.BODY:{D3e(e,r);break}case H.HTML:{P3e(e,r);break}case H.FORM:{M3e(e);break}case H.APPLET:case H.OBJECT:case H.MARQUEE:{B3e(e,r);break}case H.TEMPLATE:{Sd(e,r);break}default:az(e,r)}}function iz(e,r){e.tmplInsertionModeStack.length>0?hz(e,r):X_(e,r)}function F3e(e,r){var n;r.tagID===H.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function H3e(e,r){e._err(r,Ee.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function K_(e,r){if(KL.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:{sz(e,r);break}case Ht.WHITESPACE_CHARACTER:{lz(e,r);break}}else M1(e,r)}function q3e(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_CAPTION}function U3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_COLUMN_GROUP}function V3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.COLGROUP,H.COLGROUP),e.insertionMode=le.IN_COLUMN_GROUP,Z_(e,r)}function Y3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_TABLE_BODY}function W3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(me.TBODY,H.TBODY),e.insertionMode=le.IN_TABLE_BODY,b3(e,r)}function G3e(e,r){e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function X3e(e,r){rz(r)?e._appendElement(r,$e.HTML):M1(e,r),r.ackSelfClosing=!0}function K3e(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,$e.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Fh(e,r){switch(r.tagID){case H.TD:case H.TH:case H.TR:{W3e(e,r);break}case H.STYLE:case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}case H.COL:{V3e(e,r);break}case H.FORM:{K3e(e,r);break}case H.TABLE:{G3e(e,r);break}case H.TBODY:case H.TFOOT:case H.THEAD:{Y3e(e,r);break}case H.INPUT:{X3e(e,r);break}case H.CAPTION:{q3e(e,r);break}case H.COLGROUP:{U3e(e,r);break}default:M1(e,r)}}function $1(e,r){switch(r.tagID){case H.TABLE:{e.openElements.hasInTableScope(H.TABLE)&&(e.openElements.popUntilTagNamePopped(H.TABLE),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:M1(e,r)}}function M1(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,m3(e,r),e.fosterParentingEnabled=n}function lz(e,r){e.pendingCharacterTokens.push(r)}function sz(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function O1(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)M1(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(r)}const cz=new Set([H.CAPTION,H.COL,H.COLGROUP,H.TBODY,H.TD,H.TFOOT,H.TH,H.THEAD,H.TR]);function Z3e(e,r){const n=r.tagID;cz.has(n)?e.openElements.hasInTableScope(H.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_TABLE,Fh(e,r)):So(e,r)}function Q3e(e,r){const n=r.tagID;switch(n){case H.CAPTION:case H.TABLE:{e.openElements.hasInTableScope(H.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(H.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_TABLE,n===H.TABLE&&$1(e,r));break}case H.BODY:case H.COL:case H.COLGROUP:case H.HTML:case H.TBODY:case H.TD:case H.TFOOT:case H.TH:case H.THEAD:case H.TR:break;default:g3(e,r)}}function Z_(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.COL:{e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.TEMPLATE:{Hi(e,r);break}default:y3(e,r)}}function J3e(e,r){switch(r.tagID){case H.COLGROUP:{e.openElements.currentTagId===H.COLGROUP&&(e.openElements.pop(),e.insertionMode=le.IN_TABLE);break}case H.TEMPLATE:{Sd(e,r);break}case H.COL:break;default:y3(e,r)}}function y3(e,r){e.openElements.currentTagId===H.COLGROUP&&(e.openElements.pop(),e.insertionMode=le.IN_TABLE,e._processToken(r))}function b3(e,r){switch(r.tagID){case H.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_ROW;break}case H.TH:case H.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(me.TR,H.TR),e.insertionMode=le.IN_ROW,v3(e,r);break}case H.CAPTION:case H.COL:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE,Fh(e,r));break}default:Fh(e,r)}}function Q_(e,r){const n=r.tagID;switch(r.tagID){case H.TBODY:case H.TFOOT:case H.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE);break}case H.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE,$1(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TD:case H.TH:case H.TR:break;default:$1(e,r)}}function v3(e,r){switch(r.tagID){case H.TH:case H.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(r,$e.HTML),e.insertionMode=le.IN_CELL,e.activeFormattingElements.insertMarker();break}case H.CAPTION:case H.COL:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:case H.TR:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,b3(e,r));break}default:Fh(e,r)}}function uz(e,r){switch(r.tagID){case H.TR:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY);break}case H.TABLE:{e.openElements.hasInTableScope(H.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,Q_(e,r));break}case H.TBODY:case H.TFOOT:case H.THEAD:{(e.openElements.hasInTableScope(r.tagID)||e.openElements.hasInTableScope(H.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=le.IN_TABLE_BODY,Q_(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:case H.TD:case H.TH:break;default:$1(e,r)}}function exe(e,r){const n=r.tagID;cz.has(n)?(e.openElements.hasInTableScope(H.TD)||e.openElements.hasInTableScope(H.TH))&&(e._closeTableCell(),v3(e,r)):So(e,r)}function txe(e,r){const n=r.tagID;switch(n){case H.TD:case H.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=le.IN_ROW);break}case H.TABLE:case H.TBODY:case H.TFOOT:case H.THEAD:case H.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),uz(e,r));break}case H.BODY:case H.CAPTION:case H.COL:case H.COLGROUP:case H.HTML:break;default:g3(e,r)}}function dz(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e._insertElement(r,$e.HTML);break}case H.OPTGROUP:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop(),e._insertElement(r,$e.HTML);break}case H.HR:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop(),e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.INPUT:case H.KEYGEN:case H.TEXTAREA:case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),r.tagID!==H.SELECT&&e._processStartTag(r));break}case H.SCRIPT:case H.TEMPLATE:{Hi(e,r);break}}}function pz(e,r){switch(r.tagID){case H.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===H.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===H.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===H.OPTGROUP&&e.openElements.pop();break}case H.OPTION:{e.openElements.currentTagId===H.OPTION&&e.openElements.pop();break}case H.SELECT:{e.openElements.hasInSelectScope(H.SELECT)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode());break}case H.TEMPLATE:{Sd(e,r);break}}}function rxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e._processStartTag(r)):dz(e,r)}function nxe(e,r){const n=r.tagID;n===H.CAPTION||n===H.TABLE||n===H.TBODY||n===H.TFOOT||n===H.THEAD||n===H.TR||n===H.TD||n===H.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(H.SELECT),e._resetInsertionMode(),e.onEndTag(r)):pz(e,r)}function oxe(e,r){switch(r.tagID){case H.BASE:case H.BASEFONT:case H.BGSOUND:case H.LINK:case H.META:case H.NOFRAMES:case H.SCRIPT:case H.STYLE:case H.TEMPLATE:case H.TITLE:{Hi(e,r);break}case H.CAPTION:case H.COLGROUP:case H.TBODY:case H.TFOOT:case H.THEAD:{e.tmplInsertionModeStack[0]=le.IN_TABLE,e.insertionMode=le.IN_TABLE,Fh(e,r);break}case H.COL:{e.tmplInsertionModeStack[0]=le.IN_COLUMN_GROUP,e.insertionMode=le.IN_COLUMN_GROUP,Z_(e,r);break}case H.TR:{e.tmplInsertionModeStack[0]=le.IN_TABLE_BODY,e.insertionMode=le.IN_TABLE_BODY,b3(e,r);break}case H.TD:case H.TH:{e.tmplInsertionModeStack[0]=le.IN_ROW,e.insertionMode=le.IN_ROW,v3(e,r);break}default:e.tmplInsertionModeStack[0]=le.IN_BODY,e.insertionMode=le.IN_BODY,So(e,r)}}function axe(e,r){r.tagID===H.TEMPLATE&&Sd(e,r)}function hz(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(H.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):X_(e,r)}function ixe(e,r){r.tagID===H.HTML?So(e,r):x3(e,r)}function fz(e,r){var n;if(r.tagID===H.HTML){if(e.fragmentContext||(e.insertionMode=le.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===H.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 x3(e,r)}function x3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function lxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.FRAMESET:{e._insertElement(r,$e.HTML);break}case H.FRAME:{e._appendElement(r,$e.HTML),r.ackSelfClosing=!0;break}case H.NOFRAMES:{Hi(e,r);break}}}function sxe(e,r){r.tagID===H.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==H.FRAMESET&&(e.insertionMode=le.AFTER_FRAMESET))}function cxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function uxe(e,r){r.tagID===H.HTML&&(e.insertionMode=le.AFTER_AFTER_FRAMESET)}function dxe(e,r){r.tagID===H.HTML?So(e,r):w3(e,r)}function w3(e,r){e.insertionMode=le.IN_BODY,m3(e,r)}function pxe(e,r){switch(r.tagID){case H.HTML:{So(e,r);break}case H.NOFRAMES:{Hi(e,r);break}}}function hxe(e,r){r.chars=Or,e._insertCharacters(r)}function fxe(e,r){e._insertCharacters(r),e.framesetOk=!1}function mz(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==$e.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function mxe(e,r){if(Nve(r))mz(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===$e.MATHML?GL(r):o===$e.SVG&&(Dve(r),XL(r)),Y_(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function gxe(e,r){if(r.tagID===H.P||r.tagID===H.BR){mz(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)===$e.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}me.AREA,me.BASE,me.BASEFONT,me.BGSOUND,me.BR,me.COL,me.EMBED,me.FRAME,me.HR,me.IMG,me.INPUT,me.KEYGEN,me.LINK,me.META,me.PARAM,me.SOURCE,me.TRACK,me.WBR;const k3=gz("end"),zs=gz("start");function gz(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 yz(e){const r=zs(e),n=k3(e);if(r&&n)return{start:r,end:n}}const _3=(function(e){if(e==null)return xxe;if(typeof e=="function")return E3(e);if(typeof e=="object")return Array.isArray(e)?yxe(e):bxe(e);if(typeof e=="string")return vxe(e);throw new Error("Expected function, string, or object as test")});function yxe(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=_3(e[n]);return E3(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function bxe(e){const r=e;return E3(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function vxe(e){return E3(r);function r(n){return n&&n.type===e}}function E3(e){return r;function r(n,o,a){return!!(wxe(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function xxe(){return!0}function wxe(e){return e!==null&&typeof e=="object"&&"type"in e}function w6t(e){return e}const bz=[],kxe=!0,J_=!1,_xe="skip";function vz(e,r,n,o){let a;typeof r=="function"&&typeof n!="function"?(o=n,n=r):a=r;const i=_3(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=bz,b,x,w;if((!r||i(c,u,d[d.length-1]||void 0))&&(g=Exe(n(c,d)),g[0]===J_))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==_xe)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]===J_)return b;x=typeof b[1]=="number"?b[1]:x+l}}return g}}}function Exe(e){return Array.isArray(e)?e:typeof e=="number"?[kxe,e]:e==null?bz:[e]}function e8(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),vz(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 Sxe=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Cxe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),xz={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function wz(e,r){const n=Ixe(e),o=j_("type",{handlers:{root:Txe,element:Rxe,text:Axe,comment:_z,doctype:Nxe,raw:Pxe},unknown:$xe}),a={parser:n?new QL(xz):QL.getFragmentParser(void 0,xz),handle(s){o(s,a)},stitches:!1,options:r||{}};o(e,a),Hh(a,zs());const i=n?a.parser.document:a.parser.getFragment(),l=xbe(i,{file:a.options.file});return a.stitches&&e8(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 kz(e,r){let n=-1;if(e)for(;++n<e.length;)r.handle(e[n])}function Txe(e,r){kz(e.children,r)}function Rxe(e,r){Mxe(e,r),kz(e.children,r),Oxe(e,r)}function Axe(e,r){r.parser.tokenizer.state>4&&(r.parser.tokenizer.state=0);const n={type:Ht.CHARACTER,chars:e.value,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Nxe(e,r){const n={type:Ht.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Dxe(e,r){r.stitches=!0;const n=Lxe(e);if("children"in e&&"children"in n){const o=wz({type:"root",children:e.children},r.options);n.children=o.children}_z({type:"comment",value:{stitch:n}},r)}function _z(e,r){const n=e.value,o={type:Ht.COMMENT,data:n,location:I1(e)};Hh(r,zs(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function Pxe(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,Ez(r,zs(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(Sxe,"&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 $xe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))Dxe(n,r);else{let o="";throw Cxe.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 Hh(e,r){Ez(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=on.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 Ez(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 Mxe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,zs(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:kd.html;a===kd.html&&n==="svg"&&(a=kd.svg);const i=Obe({...e,children:[]},{space:a===kd.svg?"svg":"html"}),l={type:Ht.START_TAG,tagName:n,tagID:jh(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:I1(e)};r.parser.currentToken=l,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Oxe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&TL.includes(n)||r.parser.tokenizer.state===on.PLAINTEXT)return;Hh(r,k3(e));const o={type:Ht.END_TAG,tagName:n,tagID:jh(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:I1(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===on.RCDATA||r.parser.tokenizer.state===on.RAWTEXT||r.parser.tokenizer.state===on.SCRIPT_DATA)&&(r.parser.tokenizer.state=on.DATA)}function Ixe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function I1(e){const r=zs(e)||{line:void 0,column:void 0,offset:void 0},n=k3(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 Lxe(e){return"children"in e?xd({...e,children:[]}):xd(e)}function zxe(e){return function(r,n){return wz(r,{...e,file:n})}}const Cd=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Sz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Cd,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Cd],h2:[["className","sr-only"]],img:[...Cd,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Cd,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Cd],table:[...Cd],ul:[...Cd,["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"]},Xc={}.hasOwnProperty;function Bxe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Sz,...r}:Sz,stack:[]},a=Cz(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Cz(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return jxe(e,n);case"doctype":return Fxe(e,n);case"element":return Hxe(e,n);case"root":return qxe(e,n);case"text":return Uxe(e,n)}}}function jxe(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 L1(i,r),i}}function Fxe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return L1(n,r),n}}function Hxe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Tz(e,r.children),a=Vxe(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&&Xc.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 L1(l,r),l}function qxe(e,r){const o={type:"root",children:Tz(e,r.children)};return L1(o,r),o}function Uxe(e,r){const o={type:"text",value:typeof r.value=="string"?r.value:""};return L1(o,r),o}function Tz(e,r){const n=[];if(Array.isArray(r)){const o=r;let a=-1;for(;++a<o.length;){const i=Cz(e,o[a]);i&&(Array.isArray(i)?n.push(...i):n.push(i))}}return n}function Vxe(e,r){const n=e.stack[e.stack.length-1],o=e.schema.attributes,a=e.schema.required,i=o&&Xc.call(o,n)?o[n]:void 0,l=o&&Xc.call(o,"*")?o["*"]:void 0,s=r&&typeof r=="object"?r:{},c={};let u;for(u in s)if(Xc.call(s,u)){const d=s[u];let p=Rz(e,Nz(i,u),u,d);p==null&&(p=Rz(e,Nz(l,u),u,d)),p!=null&&(c[u]=p)}if(a&&Xc.call(a,n)){const d=a[n];for(u in d)Xc.call(d,u)&&!Xc.call(c,u)&&(c[u]=d[u])}return c}function Rz(e,r,n,o){return r?Array.isArray(o)?Yxe(e,r,n,o):Az(e,r,n,o):void 0}function Yxe(e,r,n,o){let a=-1;const i=[];for(;++a<o.length;){const l=Az(e,r,n,o[a]);(typeof l=="number"||typeof l=="string")&&i.push(l)}return i}function Az(e,r,n,o){if(!(typeof o!="boolean"&&typeof o!="number"&&typeof o!="string")&&Wxe(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 Wxe(e,r,n){const o=e.schema.protocols&&Xc.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 L1(e,r){const n=yz(r);r.data&&(e.data=xd(r.data)),n&&(e.position=n)}function Nz(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 Gxe(e){return function(r){return Bxe(r,e)}}const Xxe=/["&'<>`]/g,Kxe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Zxe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Qxe=/[|\\{}()[\]^$+*?.]/g,Dz=new WeakMap;function Jxe(e,r){if(e=e.replace(r.subset?ewe(r.subset):Xxe,o),r.subset||r.escapeOnly)return e;return e.replace(Kxe,n).replace(Zxe,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 ewe(e){let r=Dz.get(e);return r||(r=twe(e),Dz.set(e,r)),r}function twe(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(Qxe,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const rwe=/[\dA-Fa-f]/;function nwe(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!rwe.test(String.fromCharCode(r))?o:o+";"}const owe=/\d/;function awe(e,r,n){const o="&#"+String(e);return n&&r&&!owe.test(String.fromCharCode(r))?o:o+";"}const iwe=["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"],t8={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:"€"},lwe=["cent","copy","divide","gt","lt","not","para","times"],Pz={}.hasOwnProperty,r8={};let S3;for(S3 in t8)Pz.call(t8,S3)&&(r8[t8[S3]]=S3);const swe=/[^\dA-Za-z]/;function cwe(e,r,n,o){const a=String.fromCharCode(e);if(Pz.call(r8,a)){const i=r8[a],l="&"+i;return n&&iwe.includes(i)&&!lwe.includes(i)&&(!o||r&&r!==61&&swe.test(String.fromCharCode(r)))?l:l+";"}return""}function uwe(e,r,n){let o=nwe(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=cwe(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=awe(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function qh(e,r){return Jxe(e,Object.assign({format:uwe},r))}const dwe=/^>|^->|<!--|-->|--!>|<!-$/g,pwe=[">"],hwe=["<",">"];function fwe(e,r,n,o){return o.settings.bogusComments?"<?"+qh(e.value,Object.assign({},o.settings.characterReferences,{subset:pwe}))+">":"<!--"+e.value.replace(dwe,a)+"-->";function a(i){return qh(i,Object.assign({},o.settings.characterReferences,{subset:hwe}))}}function mwe(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function C3(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 gwe=/[ \t\n\f\r]/g;function n8(e){return typeof e=="object"?e.type==="text"?$z(e.value):!1:$z(e)}function $z(e){return e.replace(gwe,"")===""}const Ln=Oz(1),Mz=Oz(-1),ywe=[];function Oz(e){return r;function r(n,o,a){const i=n?n.children:ywe;let l=(o||0)+e,s=i[l];if(!a)for(;s&&n8(s);)l+=e,s=i[l];return s}}const bwe={}.hasOwnProperty;function Iz(e){return r;function r(n,o,a){return bwe.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const o8=Iz({body:xwe,caption:a8,colgroup:a8,dd:Ewe,dt:_we,head:a8,html:vwe,li:kwe,optgroup:Swe,option:Cwe,p:wwe,rp:Lz,rt:Lz,tbody:Rwe,td:zz,tfoot:Awe,th:zz,thead:Twe,tr:Nwe});function a8(e,r,n){const o=Ln(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&n8(o.value.charAt(0)))}function vwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function xwe(e,r,n){const o=Ln(n,r);return!o||o.type!=="comment"}function wwe(e,r,n){const o=Ln(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 kwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="li"}function _we(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Ewe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function Lz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Swe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Cwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Twe(e,r,n){const o=Ln(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Rwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Awe(e,r,n){return!Ln(n,r)}function Nwe(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function zz(e,r,n){const o=Ln(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const Dwe=Iz({body:Mwe,colgroup:Owe,head:$we,html:Pwe,tbody:Iwe});function Pwe(e){const r=Ln(e,-1);return!r||r.type!=="comment"}function $we(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 Mwe(e){const r=Ln(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&n8(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function Owe(e,r,n){const o=Mz(n,r),a=Ln(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&o8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function Iwe(e,r,n){const o=Mz(n,r),a=Ln(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&o8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const T3={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 Lwe(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=E1);const u=zwe(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!Dwe(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||!o8(e,r,n))&&s.push("</"+e.tagName+">"),s.join("")}function zwe(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=Bwe(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 Bwe(e,r,n){const o=$_(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=qh(o.attribute,Object.assign({},e.settings.characterReferences,{subset:T3.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?oL:lL)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=qh(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:T3.unquoted[a][i]}))),s!==n&&(e.settings.quoteSmart&&C3(n,l)>C3(n,e.alternative)&&(l=e.alternative),s=l+qh(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?T3.single:T3.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const jwe=["<","&"];function Bz(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:qh(e.value,Object.assign({},o.settings.characterReferences,{subset:jwe}))}function Fwe(e,r,n,o){return o.settings.allowDangerousHtml?e.value:Bz(e,r,n,o)}function Hwe(e,r,n,o){return o.all(e)}const qwe=j_("type",{invalid:Uwe,unknown:Vwe,handlers:{comment:fwe,doctype:mwe,element:Lwe,raw:Fwe,root:Hwe,text:Bz}});function Uwe(e){throw new Error("Expected node, not `"+e+"`")}function Vwe(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Ywe={},Wwe={},Gwe=[];function Xwe(e,r){const n=r||Ywe,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:Kwe,all:Zwe,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||TL,characterReferences:n.characterReferences||Wwe,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?E1:d3,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kwe(e,r,n){return qwe(e,r,n,this)}function Zwe(e){const r=[],n=e&&e.children||Gwe;let o=-1;for(;++o<n.length;)r[o]=this.one(n[o],o,e);return r.join("")}function Qwe(e){const r=this,n={...r.data("settings"),...e};r.compiler=o;function o(a){return Xwe(a,n)}}const Fo=Kc(/[A-Za-z]/),Co=Kc(/[\dA-Za-z]/),Jwe=Kc(/[#-'*+\--9=?A-Z^-~]/);function R3(e){return e!==null&&(e<32||e===127)}const i8=Kc(/\d/),e2e=Kc(/[\dA-Fa-f]/),t2e=Kc(/[!-/:-@[-`{-~]/);function pt(e){return e!==null&&e<-2}function xr(e){return e!==null&&(e<0||e===32)}function Yt(e){return e===-2||e===-1||e===32}const A3=Kc(new RegExp("\\p{P}|\\p{S}","u")),Td=Kc(/\s/);function Kc(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function r2e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function n2e(e,r,n){const a=_3((n||{}).ignore||[]),i=o2e(r);let l=-1;for(;++l<i.length;)vz(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 o2e(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([a2e(a[0]),i2e(a[1])])}return r}function a2e(e){return typeof e=="string"?new RegExp(r2e(e),"g"):e}function i2e(e){return typeof e=="function"?e:function(){return e}}const l8="phrasing",s8=["autolink","link","image","label"];function l2e(){return{transforms:[f2e],enter:{literalAutolink:c2e,literalAutolinkEmail:c8,literalAutolinkHttp:c8,literalAutolinkWww:c8},exit:{literalAutolink:h2e,literalAutolinkEmail:p2e,literalAutolinkHttp:u2e,literalAutolinkWww:d2e}}}function s2e(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:l8,notInConstruct:s8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:l8,notInConstruct:s8},{character:":",before:"[ps]",after:"\\/",inConstruct:l8,notInConstruct:s8}]}}function c2e(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function c8(e){this.config.enter.autolinkProtocol.call(this,e)}function u2e(e){this.config.exit.autolinkProtocol.call(this,e)}function d2e(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 p2e(e){this.config.exit.autolinkEmail.call(this,e)}function h2e(e){this.exit(e)}function f2e(e){n2e(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,m2e],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),g2e]],{ignore:["link","linkReference"]})}function m2e(e,r,n,o,a){let i="";if(!jz(a)||(/^w/i.test(r)&&(n=r+n,r="",i="http://"),!y2e(n)))return!1;const l=b2e(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 g2e(e,r,n,o){return!jz(o,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+r+"@"+n,children:[{type:"text",value:r+"@"+n}]}}function y2e(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 b2e(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=C3(e,"(");let i=C3(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 jz(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Td(n)||A3(n))&&(!r||n!==47)}function qi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}Fz.peek=T2e;function v2e(){this.buffer()}function x2e(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function w2e(){this.buffer()}function k2e(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function _2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function E2e(e){this.exit(e)}function S2e(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=qi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function C2e(e){this.exit(e)}function T2e(){return"["}function Fz(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 R2e(){return{enter:{gfmFootnoteCallString:v2e,gfmFootnoteCall:x2e,gfmFootnoteDefinitionLabelString:w2e,gfmFootnoteDefinition:k2e},exit:{gfmFootnoteCallString:_2e,gfmFootnoteCall:E2e,gfmFootnoteDefinitionLabelString:S2e,gfmFootnoteDefinition:C2e}}}function A2e(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:Fz},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?Hz:N2e))),u(),c}}function N2e(e,r,n){return r===0?e:Hz(e,r,n)}function Hz(e,r,n){return(n?"":" ")+e}const D2e=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];qz.peek=I2e;function P2e(){return{canContainEols:["delete"],enter:{strikethrough:M2e},exit:{strikethrough:O2e}}}function $2e(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:D2e}],handlers:{delete:qz}}}function M2e(e){this.enter({type:"delete",children:[]},e)}function O2e(e){this.exit(e)}function qz(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 I2e(){return"~"}function L2e(e){return e.length}function z2e(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||L2e,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=B2e(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]=Uz(o[p]);else{const x=Uz(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 B2e(e){return e==null?"":String(e)}function Uz(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 j2e(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()),F2e);return a(),l}function F2e(e,r,n){return">"+(n?"":" ")+e}function H2e(e,r){return Vz(e,r.inConstruct,!0)&&!Vz(e,r.notInConstruct,!1)}function Vz(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 Yz(e,r,n,o){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
`&&H2e(n.stack,n.unsafe[a]))return/[ \t]/.test(o.before)?"":" ";return`\\
`}function q2e(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 U2e(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 V2e(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 Y2e(e,r,n,o){const a=V2e(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(U2e(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,W2e);return p(),f}const s=n.createTracker(o),c=a.repeat(Math.max(q2e(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 W2e(e,r,n){return(n?"":" ")+e}function u8(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 G2e(e,r,n,o){const a=u8(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 X2e(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 z1(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Uh(e){if(e===null||xr(e)||Td(e))return 1;if(A3(e))return 2}function N3(e,r,n){const o=Uh(e),a=Uh(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}}Wz.peek=K2e;function Wz(e,r,n,o){const a=X2e(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=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function K2e(e,r,n){return n.options.emphasis||"*"}const Z2e={};function D3(e,r){const n=r||Z2e,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Gz(e,o,a)}function Gz(e,r,n){if(Q2e(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 Xz(e.children,r,n)}return Array.isArray(e)?Xz(e,r,n):""}function Xz(e,r,n){const o=[];let a=-1;for(;++a<e.length;)o[a]=Gz(e[a],r,n);return o.join("")}function Q2e(e){return!!(e&&typeof e=="object")}function J2e(e,r){let n=!1;return e8(e,function(o){if("value"in o&&/\r?\n|\r/.test(o.value)||o.type==="break")return n=!0,J_}),!!((!e.depth||e.depth<3)&&D3(e)&&(r.options.setext||n))}function e4e(e,r,n,o){const a=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(o);if(J2e(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=z1(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),c(),s(),u}Kz.peek=t4e;function Kz(e){return e.value||""}function t4e(){return"<"}Zz.peek=r4e;function Zz(e,r,n,o){const a=u8(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 r4e(){return"!"}Qz.peek=n4e;function Qz(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 n4e(){return"!"}Jz.peek=o4e;function Jz(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 o4e(){return"`"}function eB(e,r){const n=D3(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))}tB.peek=a4e;function tB(e,r,n,o){const a=u8(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(o);let s,c;if(eB(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 a4e(e,r,n){return eB(e,n)?"<":"["}rB.peek=i4e;function rB(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 i4e(){return"["}function d8(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 l4e(e){const r=d8(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 s4e(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 nB(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 c4e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?s4e(n):d8(n);const s=e.ordered?l==="."?")":".":l4e(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),nB(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 u4e(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 d4e(e,r,n,o){const a=u4e(n);let i=n.bulletCurrent||d8(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 p4e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,o);return i(),a(),l}const h4e=_3(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function f4e(e,r,n,o){return(e.children.some(function(l){return h4e(l)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function m4e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}oB.peek=g4e;function oB(e,r,n,o){const a=m4e(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=N3(o.before.charCodeAt(o.before.length-1),u,a);d.inside&&(c=z1(u)+c.slice(1));const p=c.charCodeAt(c.length-1),f=N3(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+z1(p));const g=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:d.outside},s+c+g}function g4e(e,r,n){return n.options.strong||"*"}function y4e(e,r,n,o){return n.safe(e.value,o)}function b4e(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 v4e(e,r,n){const o=(nB(n)+(n.options.ruleSpaces?" ":"")).repeat(b4e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const aB={blockquote:j2e,break:Yz,code:Y2e,definition:G2e,emphasis:Wz,hardBreak:Yz,heading:e4e,html:Kz,image:Zz,imageReference:Qz,inlineCode:Jz,link:tB,linkReference:rB,list:c4e,listItem:d4e,paragraph:p4e,root:f4e,strong:oB,text:y4e,thematicBreak:v4e},iB={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:"IJ",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:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",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:"ij",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:"ʼn",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:""},x4e={}.hasOwnProperty;function p8(e){return x4e.call(iB,e)?iB[e]:!1}function lB(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?"<22>":String.fromCodePoint(n)}const w4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function k4e(e){return e.replace(w4e,_4e)}function _4e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return lB(n.slice(i?2:1),i?16:10)}return p8(n)||e}function E4e(){return{enter:{table:S4e,tableData:sB,tableHeader:sB,tableRow:T4e},exit:{codeText:R4e,table:C4e,tableData:h8,tableHeader:h8,tableRow:h8}}}function S4e(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 C4e(e){this.exit(e),this.data.inTable=void 0}function T4e(e){this.enter({type:"tableRow",children:[]},e)}function h8(e){this.exit(e)}function sB(e){this.enter({type:"tableCell",children:[]},e)}function R4e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,A4e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function A4e(e,r){return r==="|"?r:e}function N4e(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 z2e(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=aB.inlineCode(g,b,x);return x.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function D4e(){return{exit:{taskListCheckValueChecked:cB,taskListCheckValueUnchecked:cB,paragraph:$4e}}}function P4e(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:M4e}}}function cB(e){const r=this.stack[this.stack.length-2];r.type,r.checked=e.type==="taskListCheckValueChecked"}function $4e(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 M4e(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=aB.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 O4e(){return[l2e(),R2e(),P2e(),E4e(),D4e()]}function I4e(e){return{extensions:[s2e(),A2e(e),$2e(),N4e(e),P4e()]}}function wa(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 ei(e,r){return e.length>0?(wa(e,e.length,0,r),e):r}const uB={}.hasOwnProperty;function dB(e){const r={};let n=-1;for(;++n<e.length;)L4e(r,e[n]);return r}function L4e(e,r){let n;for(n in r){const a=(uB.call(e,n)?e[n]:void 0)||(e[n]={}),i=r[n];let l;if(i)for(l in i){uB.call(a,l)||(a[l]=[]);const s=i[l];z4e(a[l],Array.isArray(s)?s:s?[s]:[])}}}function z4e(e,r){let n=-1;const o=[];for(;++n<r.length;)(r[n].add==="after"?e:o).push(r[n]);wa(e,0,0,o)}const B4e={tokenize:V4e,partial:!0},pB={tokenize:Y4e,partial:!0},hB={tokenize:W4e,partial:!0},fB={tokenize:G4e,partial:!0},j4e={tokenize:X4e,partial:!0},mB={name:"wwwAutolink",tokenize:q4e,previous:yB},gB={name:"protocolAutolink",tokenize:U4e,previous:bB},Bs={name:"emailAutolink",tokenize:H4e,previous:vB},Yl={};function F4e(){return{text:Yl}}let Rd=48;for(;Rd<123;)Yl[Rd]=Bs,Rd++,Rd===58?Rd=65:Rd===91&&(Rd=97);Yl[43]=Bs,Yl[45]=Bs,Yl[46]=Bs,Yl[95]=Bs,Yl[72]=[Bs,gB],Yl[104]=[Bs,gB],Yl[87]=[Bs,mB],Yl[119]=[Bs,mB];function H4e(e,r,n){const o=this;let a,i;return l;function l(p){return!f8(p)||!vB.call(o,o.previous)||m8(o.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return f8(p)?(e.consume(p),s):p===64?(e.consume(p),c):n(p)}function c(p){return p===46?e.check(j4e,d,u)(p):p===45||p===95||Co(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 q4e(e,r,n){const o=this;return a;function a(l){return l!==87&&l!==119||!yB.call(o,o.previous)||m8(o.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(B4e,e.attempt(pB,e.attempt(hB,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(l)}}function U4e(e,r,n){const o=this;let a="",i=!1;return l;function l(p){return(p===72||p===104)&&bB.call(o,o.previous)&&!m8(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||R3(p)||xr(p)||Td(p)||A3(p)?n(p):e.attempt(pB,e.attempt(hB,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(p)}}function V4e(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 Y4e(e,r,n){let o,a,i;return l;function l(u){return u===46||u===95?e.check(fB,c,s)(u):u===null||xr(u)||Td(u)||u!==45&&A3(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 W4e(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(fB,r,i)(l):l===null||xr(l)||Td(l)?r(l):(e.consume(l),a)}function i(l){return l===41&&o++,e.consume(l),a}}function G4e(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||xr(s)||Td(s)?r(s):n(s)}function a(s){return s===null||s===40||s===91||xr(s)||Td(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 X4e(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return Co(i)?n(i):r(i)}}function yB(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xr(e)}function bB(e){return!Fo(e)}function vB(e){return!(e===47||f8(e))}function f8(e){return e===43||e===45||e===46||e===95||Co(e)}function m8(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 Vh(e){const r=[];let n=-1,o=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let l="";if(i===37&&Co(e.charCodeAt(n+1))&&Co(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="<22>"}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 P3(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 g8={name:"attention",resolveAll:K4e,tokenize:Z4e};function K4e(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};xB(p,-c),xB(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=ei(u,[["enter",e[o][1],r],["exit",e[o][1],r]])),u=ei(u,[["enter",a,r],["enter",l,r],["exit",l,r],["enter",i,r]]),u=ei(u,P3(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),u=ei(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=ei(u,[["enter",e[n][1],r],["exit",e[n][1],r]])):d=0,wa(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 Z4e(e,r){const n=this.parser.constructs.attentionMarkers.null,o=this.previous,a=Uh(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=Uh(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 xB(e,r){e.column+=r,e.offset+=r,e._bufferIndex+=r}const Q4e={name:"autolink",tokenize:J4e};function J4e(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||Co(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||Co(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||R3(g)?n(g):(e.consume(g),c)}function u(g){return g===64?(e.consume(g),d):Jwe(g)?(e.consume(g),u):n(g)}function d(g){return Co(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||Co(g))&&o++<63){const b=g===45?f:p;return e.consume(g),b}return n(g)}}function Qt(e,r,n,o){const a=o?o-1:Number.POSITIVE_INFINITY;let i=0;return l;function l(c){return Yt(c)?(e.enter(n),s(c)):r(c)}function s(c){return Yt(c)&&i++<a?(e.consume(c),s):(e.exit(n),r(c))}}const B1={partial:!0,tokenize:e5e};function e5e(e,r,n){return o;function o(i){return Yt(i)?Qt(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||pt(i)?r(i):n(i)}}const wB={continuation:{tokenize:r5e},exit:n5e,name:"blockQuote",tokenize:t5e};function t5e(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 Yt(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),r):(e.exit("blockQuotePrefix"),r(l))}}function r5e(e,r,n){const o=this;return a;function a(l){return Yt(l)?Qt(e,i,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):i(l)}function i(l){return e.attempt(wB,r,n)(l)}}function n5e(e){e.exit("blockQuote")}const kB={name:"characterEscape",tokenize:o5e};function o5e(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 t2e(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),r):n(i)}}const _B={name:"characterReference",tokenize:a5e};function a5e(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=Co,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=e2e,d):(e.enter("characterReferenceValue"),i=7,l=i8,d(p))}function d(p){if(p===59&&a){const f=e.exit("characterReferenceValue");return l===Co&&!p8(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 EB={partial:!0,tokenize:l5e},SB={concrete:!0,name:"codeFenced",tokenize:i5e};function i5e(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"),Yt(A)?Qt(e,p,"whitespace")(A):p(A))}function p(A){return A===null||pt(A)?(e.exit("codeFencedFence"),o.interrupt?r(A):e.check(EB,x,T)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(A))}function f(A){return A===null||pt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(A)):Yt(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Qt(e,g,"whitespace")(A)):A===96&&A===s?n(A):(e.consume(A),f)}function g(A){return A===null||pt(A)?p(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(A))}function b(A){return A===null||pt(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&&Yt(A)?Qt(e,C,"linePrefix",i+1)(A):C(A)}function C(A){return A===null||pt(A)?e.check(EB,x,T)(A):(e.enter("codeFlowValue"),_(A))}function _(A){return A===null||pt(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 M;function M(U){return A.enter("lineEnding"),A.consume(U),A.exit("lineEnding"),j}function j(U){return A.enter("codeFencedFence"),Yt(U)?Qt(A,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):L(U)}function L(U){return U===s?(A.enter("codeFencedFenceSequence"),Y(U)):N(U)}function Y(U){return U===s?($++,A.consume(U),Y):$>=l?(A.exit("codeFencedFenceSequence"),Yt(U)?Qt(A,O,"whitespace")(U):O(U)):N(U)}function O(U){return U===null||pt(U)?(A.exit("codeFencedFence"),D(U)):N(U)}}}function l5e(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 y8={name:"codeIndented",tokenize:c5e},s5e={partial:!0,tokenize:u5e};function c5e(e,r,n){const o=this;return a;function a(u){return e.enter("codeIndented"),Qt(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):pt(u)?e.attempt(s5e,l,c)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||pt(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),s)}function c(u){return e.exit("codeIndented"),r(u)}}function u5e(e,r,n){const o=this;return a;function a(l){return o.parser.lazy[o.now().line]?n(l):pt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Qt(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):pt(l)?a(l):n(l)}}const d5e={name:"codeText",previous:h5e,resolve:p5e,tokenize:f5e};function p5e(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 h5e(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function f5e(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)):pt(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||pt(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 m5e{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&&j1(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),j1(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),j1(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);j1(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-r,Number.POSITIVE_INFINITY);j1(this.left,n.reverse())}}}function j1(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 CB(e){const r={};let n=-1,o,a,i,l,s,c,u;const d=new m5e(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,g5e(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 wa(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function g5e(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 y5e={resolve:v5e,tokenize:x5e},b5e={partial:!0,tokenize:w5e};function v5e(e){return CB(e),e}function x5e(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):pt(s)?e.check(b5e,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 w5e(e,r,n){const o=this;return a;function a(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Qt(e,i,"linePrefix")}function i(l){if(l===null||pt(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 TB(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||R3(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||pt(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||xr(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||R3(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 RB(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):pt(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||pt(g)||s++>999?(e.exit("chunkString"),d(g)):(e.consume(g),c||(c=!Yt(g)),g===92?f:p)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function AB(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):pt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Qt(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===l||f===null||pt(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 F1(e,r){let n;return o;function o(a){return pt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Yt(a)?Qt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const k5e={name:"definition",tokenize:E5e},_5e={partial:!0,tokenize:S5e};function E5e(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),l(g)}function l(g){return RB.call(o,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=qi(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 xr(g)?F1(e,u)(g):u(g)}function u(g){return TB(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(_5e,p,p)(g)}function p(g){return Yt(g)?Qt(e,f,"whitespace")(g):f(g)}function f(g){return g===null||pt(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function S5e(e,r,n){return o;function o(s){return xr(s)?F1(e,a)(s):n(s)}function a(s){return AB(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Yt(s)?Qt(e,l,"whitespace")(s):l(s)}function l(s){return s===null||pt(s)?r(s):n(s)}}const C5e={name:"hardBreakEscape",tokenize:T5e};function T5e(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return pt(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const R5e={name:"headingAtx",resolve:A5e,tokenize:N5e};function A5e(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"},wa(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function N5e(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||xr(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),c(d)):d===null||pt(d)?(e.exit("atxHeading"),r(d)):Yt(d)?Qt(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||xr(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const D5e=["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"],NB=["pre","script","style","textarea"],P5e={concrete:!0,name:"htmlFlow",resolveTo:O5e,tokenize:I5e},$5e={partial:!0,tokenize:z5e},M5e={partial:!0,tokenize:L5e};function O5e(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 I5e(e,r,n){const o=this;let a,i,l,s,c;return u;function u(z){return d(z)}function d(z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(z),p}function p(z){return z===33?(e.consume(z),f):z===47?(e.consume(z),i=!0,x):z===63?(e.consume(z),a=3,o.interrupt?r:F):Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function f(z){return z===45?(e.consume(z),a=2,g):z===91?(e.consume(z),a=5,s=0,b):Fo(z)?(e.consume(z),a=4,o.interrupt?r:F):n(z)}function g(z){return z===45?(e.consume(z),o.interrupt?r:F):n(z)}function b(z){const W="CDATA[";return z===W.charCodeAt(s++)?(e.consume(z),s===W.length?o.interrupt?r:L:b):n(z)}function x(z){return Fo(z)?(e.consume(z),l=String.fromCharCode(z),w):n(z)}function w(z){if(z===null||z===47||z===62||xr(z)){const W=z===47,X=l.toLowerCase();return!W&&!i&&NB.includes(X)?(a=1,o.interrupt?r(z):L(z)):D5e.includes(l.toLowerCase())?(a=6,W?(e.consume(z),k):o.interrupt?r(z):L(z)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(z):i?C(z):_(z))}return z===45||Co(z)?(e.consume(z),l+=String.fromCharCode(z),w):n(z)}function k(z){return z===62?(e.consume(z),o.interrupt?r:L):n(z)}function C(z){return Yt(z)?(e.consume(z),C):M(z)}function _(z){return z===47?(e.consume(z),M):z===58||z===95||Fo(z)?(e.consume(z),T):Yt(z)?(e.consume(z),_):M(z)}function T(z){return z===45||z===46||z===58||z===95||Co(z)?(e.consume(z),T):R(z)}function R(z){return z===61?(e.consume(z),A):Yt(z)?(e.consume(z),R):_(z)}function A(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),c=z,D):Yt(z)?(e.consume(z),A):N(z)}function D(z){return z===c?(e.consume(z),c=null,$):z===null||pt(z)?n(z):(e.consume(z),D)}function N(z){return z===null||z===34||z===39||z===47||z===60||z===61||z===62||z===96||xr(z)?R(z):(e.consume(z),N)}function $(z){return z===47||z===62||Yt(z)?_(z):n(z)}function M(z){return z===62?(e.consume(z),j):n(z)}function j(z){return z===null||pt(z)?L(z):Yt(z)?(e.consume(z),j):n(z)}function L(z){return z===45&&a===2?(e.consume(z),I):z===60&&a===1?(e.consume(z),q):z===62&&a===4?(e.consume(z),J):z===63&&a===3?(e.consume(z),F):z===93&&a===5?(e.consume(z),G):pt(z)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check($5e,Q,Y)(z)):z===null||pt(z)?(e.exit("htmlFlowData"),Y(z)):(e.consume(z),L)}function Y(z){return e.check(M5e,O,Q)(z)}function O(z){return e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),U}function U(z){return z===null||pt(z)?Y(z):(e.enter("htmlFlowData"),L(z))}function I(z){return z===45?(e.consume(z),F):L(z)}function q(z){return z===47?(e.consume(z),l="",V):L(z)}function V(z){if(z===62){const W=l.toLowerCase();return NB.includes(W)?(e.consume(z),J):L(z)}return Fo(z)&&l.length<8?(e.consume(z),l+=String.fromCharCode(z),V):L(z)}function G(z){return z===93?(e.consume(z),F):L(z)}function F(z){return z===62?(e.consume(z),J):z===45&&a===2?(e.consume(z),F):L(z)}function J(z){return z===null||pt(z)?(e.exit("htmlFlowData"),Q(z)):(e.consume(z),J)}function Q(z){return e.exit("htmlFlow"),r(z)}}function L5e(e,r,n){const o=this;return a;function a(l){return pt(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 z5e(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(B1,r,n)}}const B5e={name:"htmlText",tokenize:j5e};function j5e(e,r,n){const o=this;let a,i,l;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),c}function c(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),R):F===63?(e.consume(F),_):Fo(F)?(e.consume(F),N):n(F)}function u(F){return F===45?(e.consume(F),d):F===91?(e.consume(F),i=0,b):Fo(F)?(e.consume(F),C):n(F)}function d(F){return F===45?(e.consume(F),g):n(F)}function p(F){return F===null?n(F):F===45?(e.consume(F),f):pt(F)?(l=p,q(F)):(e.consume(F),p)}function f(F){return F===45?(e.consume(F),g):p(F)}function g(F){return F===62?I(F):F===45?f(F):p(F)}function b(F){const J="CDATA[";return F===J.charCodeAt(i++)?(e.consume(F),i===J.length?x:b):n(F)}function x(F){return F===null?n(F):F===93?(e.consume(F),w):pt(F)?(l=x,q(F)):(e.consume(F),x)}function w(F){return F===93?(e.consume(F),k):x(F)}function k(F){return F===62?I(F):F===93?(e.consume(F),k):x(F)}function C(F){return F===null||F===62?I(F):pt(F)?(l=C,q(F)):(e.consume(F),C)}function _(F){return F===null?n(F):F===63?(e.consume(F),T):pt(F)?(l=_,q(F)):(e.consume(F),_)}function T(F){return F===62?I(F):_(F)}function R(F){return Fo(F)?(e.consume(F),A):n(F)}function A(F){return F===45||Co(F)?(e.consume(F),A):D(F)}function D(F){return pt(F)?(l=D,q(F)):Yt(F)?(e.consume(F),D):I(F)}function N(F){return F===45||Co(F)?(e.consume(F),N):F===47||F===62||xr(F)?$(F):n(F)}function $(F){return F===47?(e.consume(F),I):F===58||F===95||Fo(F)?(e.consume(F),M):pt(F)?(l=$,q(F)):Yt(F)?(e.consume(F),$):I(F)}function M(F){return F===45||F===46||F===58||F===95||Co(F)?(e.consume(F),M):j(F)}function j(F){return F===61?(e.consume(F),L):pt(F)?(l=j,q(F)):Yt(F)?(e.consume(F),j):$(F)}function L(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),a=F,Y):pt(F)?(l=L,q(F)):Yt(F)?(e.consume(F),L):(e.consume(F),O)}function Y(F){return F===a?(e.consume(F),a=void 0,U):F===null?n(F):pt(F)?(l=Y,q(F)):(e.consume(F),Y)}function O(F){return F===null||F===34||F===39||F===60||F===61||F===96?n(F):F===47||F===62||xr(F)?$(F):(e.consume(F),O)}function U(F){return F===47||F===62||xr(F)?$(F):n(F)}function I(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),r):n(F)}function q(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),V}function V(F){return Yt(F)?Qt(e,G,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):G(F)}function G(F){return e.enter("htmlTextData"),l(F)}}const b8={name:"labelEnd",resolveAll:U5e,resolveTo:V5e,tokenize:Y5e},F5e={tokenize:W5e},H5e={tokenize:G5e},q5e={tokenize:X5e};function U5e(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&&wa(e,0,e.length,n),e}function V5e(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=ei(s,e.slice(i+1,i+o+3)),s=ei(s,[["enter",d,r]]),s=ei(s,P3(r.parser.constructs.insideSpan.null,e.slice(i+o+4,l-3),r)),s=ei(s,[["exit",d,r],e[l-2],e[l-1],["exit",u,r]]),s=ei(s,e.slice(l+1)),s=ei(s,[["exit",c,r]]),wa(e,i,e.length,s),e}function Y5e(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(qi(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(F5e,d,l?d:p)(f):f===91?e.attempt(H5e,d,l?u:p)(f):l?d(f):p(f)}function u(f){return e.attempt(q5e,d,p)(f)}function d(f){return r(f)}function p(f){return i._balanced=!0,n(f)}}function W5e(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 xr(p)?F1(e,i)(p):i(p)}function i(p){return p===41?d(p):TB(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function l(p){return xr(p)?F1(e,c)(p):d(p)}function s(p){return n(p)}function c(p){return p===34||p===39||p===40?AB(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):d(p)}function u(p){return xr(p)?F1(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 G5e(e,r,n){const o=this;return a;function a(s){return RB.call(o,e,i,l,"reference","referenceMarker","referenceString")(s)}function i(s){return o.parser.defined.includes(qi(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?r(s):n(s)}function l(s){return n(s)}}function X5e(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 K5e={name:"labelStartImage",resolveAll:b8.resolveAll,tokenize:Z5e};function Z5e(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 Q5e={name:"labelStartLink",resolveAll:b8.resolveAll,tokenize:J5e};function J5e(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 v8={name:"lineEnding",tokenize:eke};function eke(e,r){return n;function n(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Qt(e,r,"linePrefix")}}const $3={name:"thematicBreak",tokenize:tke};function tke(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||pt(u))?(e.exit("thematicBreak"),r(u)):n(u)}function c(u){return u===a?(e.consume(u),o++,c):(e.exit("thematicBreakSequence"),Yt(u)?Qt(e,s,"whitespace")(u):s(u))}}const Ko={continuation:{tokenize:ake},exit:lke,name:"list",tokenize:oke},rke={partial:!0,tokenize:ske},nke={partial:!0,tokenize:ike};function oke(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:i8(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($3,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 i8(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(B1,o.interrupt?n:d,e.attempt(rke,f,p))}function d(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function p(g){return Yt(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 ake(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(B1,a,i);function a(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Qt(e,r,"listItemIndent",o.containerState.size+1)(s)}function i(s){return o.containerState.furtherBlankLines||!Yt(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(nke,r,l)(s))}function l(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Qt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function ike(e,r,n){const o=this;return Qt(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 lke(e){e.exit(this.containerState.type)}function ske(e,r,n){const o=this;return Qt(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!Yt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const DB={name:"setextUnderline",resolveTo:cke,tokenize:uke};function cke(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 uke(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"),Yt(u)?Qt(e,c,"lineSuffix")(u):c(u))}function c(u){return u===null||pt(u)?(e.exit("setextHeadingLine"),r(u)):n(u)}}const dke={tokenize:vke,partial:!0};function pke(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gke,continuation:{tokenize:yke},exit:bke}},text:{91:{name:"gfmFootnoteCall",tokenize:mke},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hke,resolveTo:fke}}}}function hke(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=qi(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 fke(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 mke(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||xr(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(qi(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(p)}return xr(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 gke(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||xr(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=qi(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return xr(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),Qt(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return r(b)}}function yke(e,r,n){return e.check(B1,r,e.attempt(dke,r,n))}function bke(e){e.exit("gfmFootnoteDefinition")}function vke(e,r,n){const o=this;return Qt(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 xke(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&&wa(f,f.length,0,P3(g,l.slice(u+1,c),s)),wa(f,f.length,0,[["exit",p,s],["enter",l[c][1],s],["exit",l[c][1],s],["exit",d,s]]),wa(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=Uh(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=Uh(b);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,s(b)}}}class wke{constructor(){this.map=[]}add(r,n,o){kke(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 kke(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 _ke(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 Eke(){return{flow:{null:{name:"table",tokenize:Ske,resolveAll:Cke}}}}function Ske(e,r,n){const o=this;let a=0,i=0,l;return s;function s(M){let j=o.events.length-1;for(;j>-1;){const O=o.events[j][1].type;if(O==="lineEnding"||O==="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(M):Y(M)}function c(M){return e.enter("tableHead"),e.enter("tableRow"),u(M)}function u(M){return M===124||(l=!0,i+=1),d(M)}function d(M){return M===null?n(M):pt(M)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(M),e.exit("lineEnding"),g):n(M):Yt(M)?Qt(e,d,"whitespace")(M):(i+=1,l&&(l=!1,a+=1),M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),l=!0,d):(e.enter("data"),p(M)))}function p(M){return M===null||M===124||xr(M)?(e.exit("data"),d(M)):(e.consume(M),M===92?f:p)}function f(M){return M===92||M===124?(e.consume(M),p):p(M)}function g(M){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(M):(e.enter("tableDelimiterRow"),l=!1,Yt(M)?Qt(e,b,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):b(M))}function b(M){return M===45||M===58?w(M):M===124?(l=!0,e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),x):R(M)}function x(M){return Yt(M)?Qt(e,w,"whitespace")(M):w(M)}function w(M){return M===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),k):M===45?(i+=1,k(M)):M===null||pt(M)?T(M):R(M)}function k(M){return M===45?(e.enter("tableDelimiterFiller"),C(M)):R(M)}function C(M){return M===45?(e.consume(M),C):M===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(M),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(M))}function _(M){return Yt(M)?Qt(e,T,"whitespace")(M):T(M)}function T(M){return M===124?b(M):M===null||pt(M)?!l||a!==i?R(M):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(M)):R(M)}function R(M){return n(M)}function A(M){return e.enter("tableRow"),D(M)}function D(M){return M===124?(e.enter("tableCellDivider"),e.consume(M),e.exit("tableCellDivider"),D):M===null||pt(M)?(e.exit("tableRow"),r(M)):Yt(M)?Qt(e,D,"whitespace")(M):(e.enter("data"),N(M))}function N(M){return M===null||M===124||xr(M)?(e.exit("data"),D(M)):(e.consume(M),M===92?$:N)}function $(M){return M===92||M===124?(e.consume(M),N):N(M)}}function Cke(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 wke;for(;++n<e.length;){const g=e[n],b=g[1];g[0]==="enter"?b.type==="tableHead"?(s=!1,c!==0&&(PB(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=M3(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=M3(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=M3(f,r,i,a,n,p)):l[1]!==0&&(p=M3(f,r,l,a,n,p)),a=0):a&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(l[3]=n)}for(c!==0&&PB(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=_ke(r.events,n))}return e}function M3(e,r,n,o,a,i){const l=o===1?"tableHeader":o===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(i.end=Object.assign({},Yh(r.events,n[0])),e.add(n[0],0,[["exit",i,r]]));const c=Yh(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=Yh(r.events,n[2]),d=Yh(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({},Yh(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function PB(e,r,n,o,a){const i=[],l=Yh(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 Yh(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const Tke={name:"tasklistCheck",tokenize:Ake};function Rke(){return{text:{91:Tke}}}function Ake(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 xr(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 pt(c)?r(c):Yt(c)?e.check({tokenize:Nke},r,n)(c):n(c)}}function Nke(e,r,n){return Qt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function Dke(e){return dB([F4e(),pke(),xke(e),Eke(),Rke()])}const Pke={};function $ke(e){const r=this,n=e||Pke,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(Dke(n)),i.push(O4e()),l.push(I4e(n))}const Mke={tokenize:Oke};function Oke(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"),Qt(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 pt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}const Ike={tokenize:Lke},$B={tokenize:zke};function Lke(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 wa(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($B,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($B,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 pt(_)?(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,$,M;for(;N--;)if(r.events[N][0]==="exit"&&r.events[N][1].type==="chunkFlow"){if($){M=r.events[N][1].end;break}$=!0}for(k(o),A=D;A<r.events.length;)r.events[A][1].end={...M},A++;wa(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 zke(e,r,n){return Qt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Bke={tokenize:jke};function jke(e){const r=this,n=e.attempt(B1,o,e.attempt(this.parser.constructs.flowInitial,a,Qt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(y5e,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 Fke={resolveAll:OB()},Hke=MB("string"),qke=MB("text");function MB(e){return{resolveAll:OB(e==="text"?Uke: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 OB(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 Uke(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 Vke={__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:k5e},disable:{null:[]},document:{42:Ko,43:Ko,45:Ko,48:Ko,49:Ko,50:Ko,51:Ko,52:Ko,53:Ko,54:Ko,55:Ko,56:Ko,57:Ko,62:wB},flow:{35:R5e,42:$3,45:[DB,$3],60:P5e,61:DB,95:$3,96:SB,126:SB},flowInitial:{[-2]:y8,[-1]:y8,32:y8},insideSpan:{null:[g8,Fke]},string:{38:_B,92:kB},text:{[-5]:v8,[-4]:v8,[-3]:v8,33:K5e,38:_B,42:g8,60:[Q4e,B5e],91:Q5e,92:[C5e,kB],93:b8,95:g8,96:d5e}};function Yke(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=ei(l,j),w(),l[l.length-1]!==null?[]:(N(r,0),u.events=P3(i,u.events,u),u.events)}function f(j,L){return Gke(g(j),L)}function g(j){return Wke(l,j)}function b(){const{_bufferIndex:j,_index:L,line:Y,column:O,offset:U}=o;return{_bufferIndex:j,_index:L,line:Y,column:O,offset:U}}function x(j){a[j.line]=j.column,M()}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){pt(j)?(o.line++,o.column=1,o.offset+=j===-3?2:1,M()):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(O,U,I){let q,V,G,F;return Array.isArray(O)?Q(O):"tokenize"in O?Q([O]):J(O);function J(Z){return oe;function oe(ee){const re=ee!==null&&Z[ee],pe=ee!==null&&Z.null,Ce=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(pe)?pe:pe?[pe]:[]];return Q(Ce)(ee)}}function Q(Z){return q=Z,V=0,Z.length===0?I:z(Z[V])}function z(Z){return oe;function oe(ee){return F=$(),G=Z,Z.partial||(u.currentConstruct=Z),Z.name&&u.parser.constructs.disable.null.includes(Z.name)?X():Z.tokenize.call(L?Object.assign(Object.create(u),L):u,c,W,X)(ee)}}function W(Z){return j(G,F),U}function X(Z){return F.restore(),++V<q.length?z(q[V]):I}}}function N(j,L){j.resolveAll&&!i.includes(j)&&i.push(j),j.resolve&&wa(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,O=u.events.length,U=Array.from(s);return{from:O,restore:I};function I(){o=j,u.previous=L,u.currentConstruct=Y,u.events.length=O,s=U,M()}}function M(){o.line in a&&o.column<2&&(o.column=a[o.line],o.offset+=a[o.line]-1)}}function Wke(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 Gke(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 Xke(e){const o={constructs:dB([Vke,...(e||{}).extensions||[]]),content:a(Mke),defined:[],document:a(Ike),flow:a(Bke),lazy:{},string:a(Hke),text:a(qke)};return o;function a(i){return l;function l(s){return Yke(o,i,s)}}}function Kke(e){for(;!CB(e););return e}const IB=/[\0\t\n\r]/g;function Zke(){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(IB.lastIndex=p,u=IB.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 H1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?LB(e.position):"start"in e||"end"in e?LB(e):"line"in e||"column"in e?x8(e):""}function x8(e){return zB(e&&e.line)+":"+zB(e&&e.column)}function LB(e){return x8(e&&e.start)+"-"+x8(e&&e.end)}function zB(e){return e&&typeof e=="number"?e:1}const BB={}.hasOwnProperty;function jB(e,r,n){return typeof r!="string"&&(n=r,r=void 0),Qke(n)(Kke(Xke(n).document().write(Zke()(e,r,!0))))}function Qke(e){const r={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(Qe),autolinkProtocol:$,autolinkEmail:$,atxHeading:i(Oe),blockQuote:i(pe),characterEscape:$,characterReference:$,codeFenced:i(Ce),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:i(Ce,l),codeText:i(ce,l),codeTextData:$,data:$,codeFlowValue:$,definition:i(de),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:i(be),hardBreakEscape:i(Xe),hardBreakTrailing:i(Xe),htmlFlow:i(Ge,l),htmlFlowData:$,htmlText:i(Ge,l),htmlTextData:$,image:i(_t),label:l,link:i(Qe),listItem:i(Ke),listItemValue:f,listOrdered:i(St,p),listUnordered:i(St),paragraph:i(We),reference:z,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:i(Oe),strong:i(st),thematicBreak:i(Pn)},exit:{atxHeading:c(),atxHeadingSequence:R,autolink:c(),autolinkEmail:re,autolinkProtocol:ee,blockQuote:c(),characterEscapeValue:M,characterReferenceMarkerHexadecimal:X,characterReferenceMarkerNumeric:X,characterReferenceValue:Z,characterReference:oe,codeFenced:c(w),codeFencedFence:x,codeFencedFenceInfo:g,codeFencedFenceMeta:b,codeFlowValue:M,codeIndented:c(k),codeText:c(U),codeTextData:M,data:M,definition:c(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:_,emphasis:c(),hardBreakEscape:c(L),hardBreakTrailing:c(L),htmlFlow:c(Y),htmlFlowData:M,htmlText:c(O),htmlTextData:M,image:c(q),label:G,labelText:V,lineEnding:j,link:c(I),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:W,resourceDestinationString:F,resourceTitleString:J,resource:Q,setextHeading:c(N),setextHeadingLineSequence:D,setextHeadingText:A,strong:c(),thematicBreak:c()}};FB(r,(e||{}).mdastExtensions||[]);const n={};return o;function o(_e){let we={type:"root",children:[]};const rt={stack:[we],tokenStack:[],config:r,enter:s,exit:u,buffer:l,resume:d,data:n},at=[];let Dt=-1;for(;++Dt<_e.length;)if(_e[Dt][1].type==="listOrdered"||_e[Dt][1].type==="listUnordered")if(_e[Dt][0]==="enter")at.push(Dt);else{const Wr=at.pop();Dt=a(_e,Wr,Dt)}for(Dt=-1;++Dt<_e.length;){const Wr=r[_e[Dt][0]];BB.call(Wr,_e[Dt][1].type)&&Wr[_e[Dt][1].type].call(Object.assign({sliceSerialize:_e[Dt][2].sliceSerialize},rt),_e[Dt][1])}if(rt.tokenStack.length>0){const Wr=rt.tokenStack[rt.tokenStack.length-1];(Wr[1]||HB).call(rt,void 0,Wr[0])}for(we.position={start:Zc(_e.length>0?_e[0][1].start:{line:1,column:1,offset:0}),end:Zc(_e.length>0?_e[_e.length-2][1].end:{line:1,column:1,offset:0})},Dt=-1;++Dt<r.transforms.length;)we=r.transforms[Dt](we)||we;return we}function a(_e,we,rt){let at=we-1,Dt=-1,Wr=!1,Pt,Tr,vo,$n;for(;++at<=rt;){const Fr=_e[at];switch(Fr[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Fr[0]==="enter"?Dt++:Dt--,$n=void 0;break}case"lineEndingBlank":{Fr[0]==="enter"&&(Pt&&!$n&&!Dt&&!vo&&(vo=at),$n=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$n=void 0}if(!Dt&&Fr[0]==="enter"&&Fr[1].type==="listItemPrefix"||Dt===-1&&Fr[0]==="exit"&&(Fr[1].type==="listUnordered"||Fr[1].type==="listOrdered")){if(Pt){let no=at;for(Tr=void 0;no--;){const ur=_e[no];if(ur[1].type==="lineEnding"||ur[1].type==="lineEndingBlank"){if(ur[0]==="exit")continue;Tr&&(_e[Tr][1].type="lineEndingBlank",Wr=!0),ur[1].type="lineEnding",Tr=no}else if(!(ur[1].type==="linePrefix"||ur[1].type==="blockQuotePrefix"||ur[1].type==="blockQuotePrefixWhitespace"||ur[1].type==="blockQuoteMarker"||ur[1].type==="listItemIndent"))break}vo&&(!Tr||vo<Tr)&&(Pt._spread=!0),Pt.end=Object.assign({},Tr?_e[Tr][1].start:Fr[1].end),_e.splice(Tr||at,0,["exit",Pt,Fr[2]]),at++,rt++}if(Fr[1].type==="listItemPrefix"){const no={type:"listItem",_spread:!1,start:Object.assign({},Fr[1].start),end:void 0};Pt=no,_e.splice(at,0,["enter",no,Fr[2]]),at++,rt++,vo=void 0,$n=!0}}}return _e[we][1]._spread=Wr,rt}function i(_e,we){return rt;function rt(at){s.call(this,_e(at),at),we&&we.call(this,at)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(_e,we,rt){this.stack[this.stack.length-1].children.push(_e),this.stack.push(_e),this.tokenStack.push([we,rt||void 0]),_e.position={start:Zc(we.start),end:void 0}}function c(_e){return we;function we(rt){_e&&_e.call(this,rt),u.call(this,rt)}}function u(_e,we){const rt=this.stack.pop(),at=this.tokenStack.pop();if(at)at[0].type!==_e.type&&(we?we.call(this,_e,at[0]):(at[1]||HB).call(this,_e,at[0]));else throw new Error("Cannot close `"+_e.type+"` ("+H1({start:_e.start,end:_e.end})+"): its not open");rt.position.end=Zc(_e.end)}function d(){return D3(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function f(_e){if(this.data.expectingFirstListItemValue){const we=this.stack[this.stack.length-2];we.start=Number.parseInt(this.sliceSerialize(_e),10),this.data.expectingFirstListItemValue=void 0}}function g(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.lang=_e}function b(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.meta=_e}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function k(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e.replace(/(\r?\n|\r)$/g,"")}function C(_e){const we=this.resume(),rt=this.stack[this.stack.length-1];rt.label=we,rt.identifier=qi(this.sliceSerialize(_e)).toLowerCase()}function _(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.title=_e}function T(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.url=_e}function R(_e){const we=this.stack[this.stack.length-1];if(!we.depth){const rt=this.sliceSerialize(_e).length;we.depth=rt}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function D(_e){const we=this.stack[this.stack.length-1];we.depth=this.sliceSerialize(_e).codePointAt(0)===61?1:2}function N(){this.data.setextHeadingSlurpLineEnding=void 0}function $(_e){const rt=this.stack[this.stack.length-1].children;let at=rt[rt.length-1];(!at||at.type!=="text")&&(at=Et(),at.position={start:Zc(_e.start),end:void 0},rt.push(at)),this.stack.push(at)}function M(_e){const we=this.stack.pop();we.value+=this.sliceSerialize(_e),we.position.end=Zc(_e.end)}function j(_e){const we=this.stack[this.stack.length-1];if(this.data.atHardBreak){const rt=we.children[we.children.length-1];rt.position.end=Zc(_e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&r.canContainEols.includes(we.type)&&($.call(this,_e),M.call(this,_e))}function L(){this.data.atHardBreak=!0}function Y(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function O(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function U(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.value=_e}function I(){const _e=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";_e.type+="Reference",_e.referenceType=we,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;this.data.referenceType=void 0}function q(){const _e=this.stack[this.stack.length-1];if(this.data.inReference){const we=this.data.referenceType||"shortcut";_e.type+="Reference",_e.referenceType=we,delete _e.url,delete _e.title}else delete _e.identifier,delete _e.label;this.data.referenceType=void 0}function V(_e){const we=this.sliceSerialize(_e),rt=this.stack[this.stack.length-2];rt.label=k4e(we),rt.identifier=qi(we).toLowerCase()}function G(){const _e=this.stack[this.stack.length-1],we=this.resume(),rt=this.stack[this.stack.length-1];if(this.data.inReference=!0,rt.type==="link"){const at=_e.children;rt.children=at}else rt.alt=we}function F(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.url=_e}function J(){const _e=this.resume(),we=this.stack[this.stack.length-1];we.title=_e}function Q(){this.data.inReference=void 0}function z(){this.data.referenceType="collapsed"}function W(_e){const we=this.resume(),rt=this.stack[this.stack.length-1];rt.label=we,rt.identifier=qi(this.sliceSerialize(_e)).toLowerCase(),this.data.referenceType="full"}function X(_e){this.data.characterReferenceType=_e.type}function Z(_e){const we=this.sliceSerialize(_e),rt=this.data.characterReferenceType;let at;rt?(at=lB(we,rt==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):at=p8(we);const Dt=this.stack[this.stack.length-1];Dt.value+=at}function oe(_e){const we=this.stack.pop();we.position.end=Zc(_e.end)}function ee(_e){M.call(this,_e);const we=this.stack[this.stack.length-1];we.url=this.sliceSerialize(_e)}function re(_e){M.call(this,_e);const we=this.stack[this.stack.length-1];we.url="mailto:"+this.sliceSerialize(_e)}function pe(){return{type:"blockquote",children:[]}}function Ce(){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 be(){return{type:"emphasis",children:[]}}function Oe(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function Ge(){return{type:"html",value:""}}function _t(){return{type:"image",title:null,url:"",alt:null}}function Qe(){return{type:"link",title:null,url:"",children:[]}}function St(_e){return{type:"list",ordered:_e.type==="listOrdered",start:null,spread:_e._spread,children:[]}}function Ke(_e){return{type:"listItem",spread:_e._spread,checked:null,children:[]}}function We(){return{type:"paragraph",children:[]}}function st(){return{type:"strong",children:[]}}function Et(){return{type:"text",value:""}}function Pn(){return{type:"thematicBreak"}}}function Zc(e){return{line:e.line,column:e.column,offset:e.offset}}function FB(e,r){let n=-1;for(;++n<r.length;){const o=r[n];Array.isArray(o)?FB(e,o):Jke(e,o)}}function Jke(e,r){let n;for(n in r)if(BB.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 HB(e,r){throw e?new Error("Cannot close `"+e.type+"` ("+H1({start:e.start,end:e.end})+"): a different token (`"+r.type+"`, "+H1({start:r.start,end:r.end})+") is open"):new Error("Cannot close document, a token (`"+r.type+"`, "+H1({start:r.start,end:r.end})+") is still open")}function e6e(e){const r=this;r.parser=n;function n(o){return jB(o,{...r.data("settings"),...e,extensions:r.data("micromarkExtensions")||[],mdastExtensions:r.data("fromMarkdownExtensions")||[]})}}function t6e(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 r6e(e,r){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(r,n),[e.applyData(r,n),{type:"text",value:`
`}]}function n6e(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 o6e(e,r){const n={type:"element",tagName:"del",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function a6e(e,r){const n={type:"element",tagName:"em",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function i6e(e,r){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",o=String(r.identifier).toUpperCase(),a=Vh(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 l6e(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 s6e(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 c6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return qB(e,r);const a={src:Vh(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 u6e(e,r){const n={src:Vh(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 d6e(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 p6e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return qB(e,r);const a={href:Vh(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 h6e(e,r){const n={href:Vh(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 f6e(e,r,n){const o=e.all(r),a=n?m6e(n):UB(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 m6e(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=UB(n[o])}return r}function UB(e){const r=e.spread;return r??e.children.length>1}function g6e(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 y6e(e,r){const n={type:"element",tagName:"p",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function b6e(e,r){const n={type:"root",children:e.wrap(e.all(r))};return e.patch(r,n),e.applyData(r,n)}function v6e(e,r){const n={type:"element",tagName:"strong",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function x6e(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=zs(r.children[1]),c=k3(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 w6e(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 k6e(e,r){const n={type:"element",tagName:"td",properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}const VB=9,YB=32;function _6e(e){const r=String(e),n=/\r?\n|\r/g;let o=n.exec(r),a=0;const i=[];for(;o;)i.push(WB(r.slice(a,o.index),a>0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(WB(r.slice(a),a>0,!1)),i.join("")}function WB(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===VB||i===YB;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===VB||i===YB;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function E6e(e,r){const n={type:"text",value:_6e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function S6e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const C6e={blockquote:t6e,break:r6e,code:n6e,delete:o6e,emphasis:a6e,footnoteReference:i6e,heading:l6e,html:s6e,imageReference:c6e,image:u6e,inlineCode:d6e,linkReference:p6e,link:h6e,listItem:f6e,list:g6e,paragraph:y6e,root:b6e,strong:v6e,table:x6e,tableCell:k6e,tableRow:w6e,text:E6e,thematicBreak:S6e,toml:O3,yaml:O3,definition:O3,footnoteDefinition:O3};function O3(){}function T6e(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 R6e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function A6e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||T6e,o=e.options.footnoteBackLabel||R6e,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=Vh(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:{...xd(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 w8={}.hasOwnProperty,N6e={};function D6e(e,r){const n=r||N6e,o=new Map,a=new Map,i=new Map,l={...C6e,...n.handlers},s={all:u,applyData:$6e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:P6e,wrap:O6e};return e8(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(w8.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=xd(w);return k.children=s.all(d),k}return xd(d)}return(s.options.unknownHandler||M6e)(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=GB(b.value)),!Array.isArray(b)&&b.type==="element")){const x=b.children[0];x&&x.type==="text"&&(x.value=GB(x.value))}Array.isArray(b)?p.push(...b):p.push(b)}}}return p}}function P6e(e,r){e.position&&(r.position=yz(e))}function $6e(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,xd(i)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function M6e(e,r){const n=r.data||{},o="value"in r&&!(w8.call(n,"hProperties")||w8.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 O6e(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 GB(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function XB(e,r){const n=D6e(e,r),o=n.one(e,void 0),a=A6e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:`
`},a),i}function I6e(e,r){return e&&"run"in e?async function(n,o){const a=XB(n,{file:o,...r});await e.run(a,o)}:function(n,o){return XB(n,{file:o,...e||r})}}function KB(e){if(e)throw e}var k8,ZB;function L6e(){if(ZB)return k8;ZB=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 k8=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},k8}var z6e=L6e();const _8=t3(z6e);function E8(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 B6e(){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?j6e(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 j6e(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 Zo=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=H1(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}};Zo.prototype.file="",Zo.prototype.name="",Zo.prototype.reason="",Zo.prototype.message="",Zo.prototype.stack="",Zo.prototype.column=void 0,Zo.prototype.line=void 0,Zo.prototype.ancestors=void 0,Zo.prototype.cause=void 0,Zo.prototype.fatal=void 0,Zo.prototype.place=void 0,Zo.prototype.ruleId=void 0,Zo.prototype.source=void 0;const Wl={basename:F6e,dirname:H6e,extname:q6e,join:U6e,sep:"/"};function F6e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');q1(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 H6e(e){if(q1(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 q6e(e){q1(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 U6e(...e){let r=-1,n;for(;++r<e.length;)q1(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":V6e(n)}function V6e(e){q1(e);const r=e.codePointAt(0)===47;let n=Y6e(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function Y6e(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 q1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const W6e={cwd:G6e};function G6e(){return"/"}function S8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function X6e(e){if(typeof e=="string")e=new URL(e);else if(!S8(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 K6e(e)}function K6e(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 C8=["history","path","basename","stem","extname","dirname"];let Z6e=class{constructor(r){let n;r?S8(r)?n={path:r}:typeof r=="string"||Q6e(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":W6e.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<C8.length;){const i=C8[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)C8.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?Wl.basename(this.path):void 0}set basename(r){R8(r,"basename"),T8(r,"basename"),this.path=Wl.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?Wl.dirname(this.path):void 0}set dirname(r){QB(this.basename,"dirname"),this.path=Wl.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?Wl.extname(this.path):void 0}set extname(r){if(T8(r,"extname"),QB(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=Wl.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){S8(r)&&(r=X6e(r)),R8(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?Wl.basename(this.path,this.extname):void 0}set stem(r){R8(r,"stem"),T8(r,"stem"),this.path=Wl.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 Zo(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 T8(e,r){if(e&&e.includes(Wl.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+Wl.sep+"`")}function R8(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function QB(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Q6e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const J6e=(function(e){const o=this.constructor.prototype,a=o[e],i=function(){return a.apply(i,arguments)};return Object.setPrototypeOf(i,o),i}),e_e={}.hasOwnProperty;let t_e=class x1e extends J6e{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=B6e()}copy(){const r=new x1e;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(_8(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?(D8("data",this.frozen),this.namespace[r]=n,this):e_e.call(this.namespace,r)&&this.namespace[r]||void 0:r?(D8("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=I3(r),o=this.parser||this.Parser;return A8("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),A8("process",this.parser||this.Parser),N8("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const s=I3(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);o_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(),A8("processSync",this.parser||this.Parser),N8("processSync",this.compiler||this.Compiler),this.process(r,a),ej("processSync","process",n),o;function a(i,l){n=!0,KB(i),o=l}}run(r,n,o){JB(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=I3(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),ej("runSync","run",o),a;function i(l,s){KB(l),a=s,o=!0}}stringify(r,n){this.freeze();const o=I3(n),a=this.compiler||this.Compiler;return N8("stringify",a),JB(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if(D8("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=_8(!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];E8(x)&&E8(g)&&(g=_8(!0,x,g)),o[f]=[u,g,...b]}}}};const r_e=new t_e().freeze();function A8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function N8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function D8(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 JB(e){if(!E8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ej(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function I3(e){return n_e(e)?e:new Z6e(e)}function n_e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function o_e(e){return typeof e=="string"||a_e(e)}function a_e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function i_e(){return r_e().use(e6e).use($ke).use(I6e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(zxe).use(Gxe).use(Qwe,{closeSelfClosing:!0,tightSelfClosing:!0})}function l_e(e){return String(i_e().processSync(e.trim())).trim()}function s_e(e){return D3(jB(e),{includeHtml:!1,includeImageAlt:!1})}function c_e(...e){return ba(u_e,e)}function u_e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function U1(e){return c_e(e,r=>r===void 0)}const d_e=Symbol.for("text"),p_e=Symbol.for("html"),Gl="";class Kt{static _cache=new WeakMap;static memoize(r,n,o){return cr(r,n,()=>Kt.from(o))}static from(r){if(r==null||r===Kt.EMPTY)return Kt.EMPTY;if(r instanceof Kt)return r;if(typeof r=="string")return r.trim()===Gl?Kt.EMPTY:new Kt({txt:r});if("isEmpty"in r&&r.isEmpty||"md"in r&&r.md.trim()===Gl||"txt"in r&&r.txt.trim()===Gl)return Kt.EMPTY;const n=r,o=Kt._cache.get(n);if(o)return o;const a=new Kt(n);return Kt._cache.set(n,a),a}static EMPTY=new class extends Kt{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Gl})}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()===Gl):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Gl,this.isMarkdown=!0):this.isEmpty=r.txt===Gl),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,d_e,()=>s_e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Xa(r)}get html(){if(this.isEmpty||this.$source===null)return Gl;const r=this.$source;return"txt"in r?r.txt:cr(this,p_e,()=>l_e(r.md))}equals(r){return this===r?!0:r instanceof Kt?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 tj(e){return r=>!e(r)}function h_e(...e){return ba(f_e,e)}const f_e=(e,r)=>r.every(n=>n(e));function m_e(...e){return ba(g_e,e)}const g_e=(e,r)=>r.some(n=>n(e));function y_e(e){return e==null}function rj(e,r){return e[V1]===r}const V1="_stage",Y1="_type";function b_e(e){return Is(e.kind)&&!Is(e.element)}function v_e(e){return"tag"in e}function x_e(e){return"kind"in e}function w_e(e){return"participant"in e}function k_e(e){return"not"in e}function __e(e){return"and"in e}function E_e(e){return"or"in e}function Ad(e){switch(!0){case w_e(e):{const r=e.participant,n=Ad(e.operator);return S_e(r,n)}case v_e(e):{if(Uc(e.tag)||"eq"in e.tag){const n=Uc(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 x_e(e):{if(Uc(e.kind)||"eq"in e.kind){const n=Uc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>y_e(n.kind)||n.kind!==r}case k_e(e):{const r=Ad(e.not);return tj(r)}case __e(e):{const r=e.and.map(Ad);return h_e(r)}case E_e(e):{const r=e.or.map(Ad);return m_e(r)}default:Xa(e)}}function S_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 W1;(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(Uc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return BI(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})(W1||(W1={}));function P8(e){return v1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var Qc;(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}=$8.fromPoints(s);return{x:c,y:u,width:d-c,height:p-u}}e.fromPoints=n;function o(...s){if(nt(_h(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})(Qc||(Qc={}));var $8;(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})($8||($8={}));function nj(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const oj={done:!1,hasNext:!1};function G1(e,...r){let n=e,o=r.map(i=>"lazy"in i?C_e(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!T_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(aj(c,l,i))break;let{isSingle:s}=i.at(-1);n=s?l[0]:l,a+=i.length}return n}function aj(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=oj,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(aj(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 C_e(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function T_e(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function ij(...e){return ba(R_e,e,A_e)}const R_e=(e,r)=>e.map(r),A_e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function N_e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var M8={},lj;function D_e(){return lj||(lj=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)}})(M8)),M8}var P_e=D_e();function O8(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function Wh(e,...r){let n=new Set;if(e.size===0)return n;let o=_h(r,2)?P_e.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function I8(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 $_e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function M_e(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 L3=e=>typeof e=="function";function Nd(e,r){const n=r??e;nt(L3(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function X1(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function sj(e){return e?cj(e):cj}function cj(e){for(const r of e)return r}function O_e(e,r){const n=e;nt(L3(n));function*o(a){for(const i of a)yield n(i)}return o}function K1(e){return e?Array.from(e):r=>Array.from(r)}function I_e(e){return e?new Set(e):r=>new Set(r)}function L_e(e,r){const n=r??e;nt(L3(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function z_e(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 B_e(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 j_e="LIKEC4_DELAY";function F_e(...e){let r=100;return e.length===2?r=B_e(e[0],e[1]):e.length===1&&(r=e[0]),new Promise(n=>{setTimeout(()=>{n(j_e)},r??100)})}function z3(e){const r=Vc([...e]),n=new Set(r),o=new Map(r.map(l=>[l._literalId,l])),a=new so(()=>null),i=r.reduce((l,s,c,u)=>(l.set(s,u.slice(c+1).filter(PI(s)).map(d=>(n.delete(d),d)).reduce((d,p)=>(d.some(qn(p))||(d.push(p),a.set(p,s)),d),[])),l),new so(()=>[]));return{sorted:r,byId:l=>mt(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 L8=(e,r)=>e.size>2&&r.size!==e.size?new Set(Vc([...z3(e).flatten(),...r])):e.size>1?new Set(Vc([...e])):e;function uj(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:L8(l,i.incomers),incoming:new Set(n.incoming),subjects:L8(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:L8(s,i.outgoers)}}function dj(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"'),H_e(e,a,r);const i=r.element(e),l=I_e(i.ascendingSiblings());return uj(i,l,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function H_e(e,r,n){const o=n.element(e);let a={incoming:K1(Nd(o.incoming(),s=>r.includesRelation(s.id))),outgoing:K1(Nd(o.outgoing(),s=>r.includesRelation(s.id)))};const i=PI(o),l=new Set([...o.ascendingSiblings(),...G1(r.elements(),O_e(s=>s.element),Nd(s=>s!==o&&i(s)))]);return uj(o,l,a)}var pj;(e=>{e.isInside=r=>n=>qn(r,n.source.id)&&qn(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||qn(r,o.source.id))&&(o.target.id===n||qn(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||qn(r,n.target.id))&&!qn(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||qn(r,n.source.id))&&!qn(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(pj||(pj={}));const q_e=Symbol.for("nodejs.util.inspect.custom");function U_e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return G1(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>G1(a,o),o)}throw Error("Wrong number of arguments")}function Gh(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function V_e(...e){return ba(Y_e,e)}const Y_e=e=>e.length===1?e[0]:void 0;function z8(...e){return U_e(W_e,e)}function W_e(){let e=new Set;return r=>e.has(r)?oj:(e.add(r),{done:!1,hasNext:!0,next:r})}class hj{get style(){return cr(this,"style",()=>U1({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 g1(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return Kt.memoize(this,"summary",i3(this.$node))}get description(){return Kt.memoize(this,"description",l3(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=b1(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 cr(this,Symbol.for("allOutgoing"),()=>Jc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>Jc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Gh(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class fj extends hj{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=o3(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return cr(this,Symbol.for("tags"),()=>z8([...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=V_e([...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 Wh(n,r)}}class mj extends hj{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=o3(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return cr(this,"style",()=>U1({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 cr(this,Symbol.for("tags"),()=>z8([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return Kt.memoize(this,"summary",i3(this.$instance)??i3(this.element.$element))}get description(){return Kt.memoize(this,"description",l3(this.$instance)??l3(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 G_e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return cr(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 X_e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b1(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 Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get description(){return Kt.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&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Jc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Jc}static from(r,n){return new Jc(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 Jc.from(Wh(this.model,r.model),Wh(this.deployment,r.deployment))}difference(r){return Jc.from(I8(this.model,r.model),I8(this.deployment,r.deployment))}union(r){return Jc.from(O8(this.model,r.model),O8(this.deployment,r.deployment))}}function gj(e,r){return n=>e.source===n.source&&e.target===n.target}function B8(e,r,n="directed"){if(e===r)return[];if(DI(e,r))return[];const o=Wh(e.allOutgoing,r.allIncoming),a=o.size>0?new ti(e,r,o):null;if(n==="directed")return a?[a]:[];const i=Wh(e.allIncoming,r.allOutgoing),l=i.size>0?new ti(r,e,i):null;return a&&l?[a,l]:a?[a]:l?[l]:[]}function yj(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 B8(e,i,n))l.source===e?o.push(l):a.push(l);return[...o,...a]}function K_e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...yj(n,a.slice(o+1),"both")),r),[])}const Z_e={__proto__:null,findConnection:B8,findConnectionsBetween:yj,findConnectionsWithin:K_e};class ti{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=M_e(`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()&&L_e(this.relations,tj(gj(this)))}get directRelations(){return new Set(Nd(this.relations,gj(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 ti(this.source,this.target,O8(this.relations,r.relations))}difference(r){return new ti(this.source,this.target,I8(this.relations,r.relations))}intersect(r){return nt(r instanceof ti,"Cannot intersect connection with different type"),new ti(this.source,this.target,Wh(this.relations,r.relations))}equals(r){nt(r instanceof ti,"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&&$_e(this.relations,n.relations)}update(r){return new ti(this.source,this.target,r)}[q_e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:ti,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 ti(this.target,this.source);const[n]=B8(this.target,this.source,"directed");return n??new ti(this.target,this.source,new Set)}}const bj={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function Q_e(e,r){let[n,...o]=r;if(!J_e(n)){let i=j8(...o);return e(n,i)}let a=j8(n,...o);return i=>e(i,a)}function j8(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=bj,l=r===void 0?void 0:j8(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 J_e(e){if(vj(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return vj(r)&&typeof n=="string"&&n in bj&&o.length===0}const vj=e=>typeof e=="function"&&e.length===1;function xj(...e){return ba(Object.entries,e)}function e8e(...e){return ba(t8e,e)}function t8e(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 r8e(e,r);if(e instanceof Set&&r instanceof Set)return n8e(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 r8e(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 n8e(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function o8e(...e){return ba(a8e,e)}const a8e=e=>e.at(-1);function i8e(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>wj(n,e,...r):wj(e,...r)}function wj(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function F8(...e){return ba(l8e,e)}function l8e(e,r){let n=[...e];return n.sort(r),n}function s8e(...e){return Q_e(c8e,e)}const c8e=(e,r)=>[...e].sort(r);function kj(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function B3(...e){return ba(Object.values,e)}class j3{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=Qye(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=o3(a)):(this.imported=null,this.hierarchyLevel=o3(this.id))}id;_literalId;hierarchyLevel;imported;get name(){return g1(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 cr(this,Symbol.for("tags"),()=>z8([...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&&!e8e(this.$element.summary,this.$element.description)}get summary(){return Kt.memoize(this,"summary",i3(this.$element))}get description(){return Kt.memoize(this,"description",l3(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return cr(this,Symbol.for("defaultView"),()=>sj(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return cr(this,"style",()=>U1({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 qn(this,r)}isDescendantOf(r){return qn(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?$I([...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 cr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return cr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return cr(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 cr(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 Is(sj(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Gh(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const hr=e=>typeof e=="string"?e:e.id,ka="/",H8=e=>{if(nt(!e.includes(`
`),"View title cannot contain newlines"),e.includes(ka)){const r=e.split(ka).map(n=>n.trim()).filter(n=>n.length>0);return _h(r,1)?r:[""]}return[e.trim()]},F3=e=>H8(e).join(ka),u8e=e=>{const r=H8(e);return _h(r,2)?r.slice(0,-1).join(ka):null},d8e=e=>e.includes(ka)?H8(e).pop()??e:e.trim();class p8e{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=B3(n.elements);for(const a of Vc(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 B3(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 so(()=>new Set);#a=new so(()=>new Set);#i=new Set;#n=new Map;#o=new so(()=>new Set);#l=new so(()=>new Set);#c=new so(()=>new Set);#s=new so(()=>new Set);#u=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof fj||r instanceof mj)return r;const n=hr(r);return mt(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=hr(r),o=this.#a.get(n);o&&(yield*o)}deploymentRef(r){if(W1.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return N_e(this.#u,`${n}@${o}`,()=>new G_e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(hr(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=hr(r);return this.#t.get(n)||null}children(r){const n=hr(r);return this.#r.get(n)}*siblings(r){const n=hr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=hr(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=hr(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=hr(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=b_e(r)?new fj(this,Object.freeze(r)):new mj(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=n3(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 X_e(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,...bd(o)])this.#c.get(a).add(n);for(const a of bd(n.source.id)){if(a===o)break;this.#l.get(a).add(n)}for(const a of bd(n.target.id)){if(a===o)break;this.#o.get(a).add(n)}return n}}class _j{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(W1.flatten(n.source)),this.target=r.element(W1.flatten(n.target));const o=b1(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 Is(this.$relationship.title)?this.$relationship.title:null}get technology(){return Is(this.$relationship.technology)?this.$relationship.technology:null}get description(){return Kt.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&&!Gh(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class h8e{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 Kt.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()?jI(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 v1(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 f8e{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 Kt.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 cr(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 Is(this.#e.modelRef)}hasDeployment(){return Is(this.#e.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return Kye(this.#e)}isTagged(r){return this.tags.includes(r)}}class q8{Aux;#e=new Set;#t=new Map;#r=new Map;#a=new Set;#i=new Set;#n=new Set;#o=new so(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 f8e(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 h8e(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?d8e(this.$view.title):null,this.viewPath=this.$view.title?F3(this.$view.title):this.$view.id}get _type(){return this.$view[Y1]}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 cr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return Kt.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=hr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.$view.id}`)}findNode(r){return this.#t.get(hr(r))??null}findNodeWithElement(r){const n=hr(r);return X1(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null}nodes(){return this.#t.values()}edge(r){const n=hr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.$view.id}`)}findEdge(r){return this.#r.get(hr(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(hr(r))}includesDeployment(r){return this.#i.has(hr(r))}includesRelation(r){return this.#n.has(hr(r))}isComputed(){return this.$view[V1]==="computed"}isDiagram(){return this.$view[V1]==="layouted"}isElementView(){return this.$view[Y1]==="element"}isScopedElementView(){return this.$view[Y1]==="element"&&Is(this.$view.viewOf)}isDeploymentView(){return this.$view[Y1]==="deployment"}isDynamicView(){return this.$view[Y1]==="dynamic"}}class H3{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=o8e(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"),cr(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"),Gh(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return cr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof H3&&r.push(n);return r})}get views(){return cr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof q8&&r.push(n);return r})}}class Dd{Aux;_elements=new Map;_parents=new Map;_children=new so(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new so(()=>new Set);_outgoing=new so(()=>new Set);_internal=new so(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new so(()=>new Set);_allTags=new so(()=>new Set);static fromParsed(r){return new Dd(r).asParsed}static create(r){return new Dd(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 Dd({[V1]: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 xj(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of xj(r.imports??{}))for(const a of Vc(o)){const i=this.addImportedElement(n,a);for(const l of i.tags)this._allTags.get(l).add(i)}for(const n of B3(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new p8e(this),rj(r,"computed")||rj(r,"layouted")){const n=NI(ka),o=G1(B3(r.views),ij(i=>({view:i,path:F3(i.title??i.id),folderPath:i.title&&u8e(i.title)||""})),F8((i,l)=>n(i.folderPath,l.folderPath))),a=i=>{let l=this._viewFolders.get(i);if(!l){const s=kj(i,ka);nt(_h(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 H3(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)||kj(i,ka).reduce((l,s)=>{const c=l.join(ka),u=Gh(c)?s:c+ka+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 q8(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 H3(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 cr(this,"styles",()=>TI.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[V1]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??cr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return cr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof j3)return r;const n=hr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(hr(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=hr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(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(hr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=hr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return mt(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=hr(r);return this._parents.get(n)||null}children(r){const n=hr(r);return this._children.get(n)}*siblings(r){const n=hr(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=hr(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=hr(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=hr(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 cr(this,"tags",()=>F8([...this._allTags.keys()],r3))}get tagsSortedByUsage(){return cr(this,"tagsSortedByUsage",()=>G1([...this._allTags.entries()],ij(([r,n])=>({tag:r,count:n.size,tagged:n})),F8((r,n)=>r3(r.tag,n.tag)),s8e([i8e("count"),"desc"])))}findByTag(r,n){return Nd(this._allTags.get(r),o=>n==="elements"?o instanceof j3:n==="views"?o instanceof q8:n==="relationships"?o instanceof _j:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Ad(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Ad(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 j3(this,Object.freeze(r));this._elements.set(n.id,n);const o=n3(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(!Zye(n.id),"Imported element already has global FQN");const o=BI(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new j3(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=n3(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=n3(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 _j(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=b1(o.id,a.id);if(i)for(const l of[i,...bd(i)])this._internal.get(l).add(n);for(const l of bd(o.id)){if(l===i)break;this._outgoing.get(l).add(n)}for(const l of bd(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:{}})})(Dd||(Dd={}));function q3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var m8e=e=>typeof e=="object"&&e!==null;function Pd(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var g8e=e=>e==="base";function y8e(e){return e.slice().filter(r=>!g8e(r))}function Ej(e){return String.fromCharCode(e+(e>25?39:97))}function b8e(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=Ej(n%52)+r;return Ej(n%52)+r}function v8e(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function x8e(e){return b8e(v8e(5381,e)>>>0)}var Sj=/\s*!(important)?/i;function w8e(e){return typeof e=="string"?Sj.test(e):!1}function k8e(e){return typeof e=="string"?e.replace(Sj,"").trim():e}function U8(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var co=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}},_8e=new Set(["__proto__","constructor","prototype"]);function V8(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(_8e.has(o))return;const a=r[o],i=n[o];q3(a)&&q3(i)?r[o]=V8(a,i):r[o]=i}),r),{})}var E8e=e=>e!=null;function Y8(e,r,n={}){const{stop:o,getKey:a}=n;function i(l,s=[]){if(m8e(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);E8e(g)&&(c[p]=g)}return c}return r(l,s)}return i(e)}function S8e(e,r){return Array.isArray(e)?e.map(n=>r(n)):q3(e)?Y8(e,n=>r(n)):r(e)}function C8e(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function Cj(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:l}=o;return Y8(e,s=>Array.isArray(s)?C8e(s,a.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>i?l(s):s:void 0})}var T8e={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},R8e=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function Tj(e){const{utility:r,hash:n,conditions:o=T8e}=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,x8e))}else c=[...o.finalize(l),a(s)].join(":");return c};return co(({base:l,...s}={})=>{const c=Object.assign(s,l),u=Cj(c,e),d=new Set;return Y8(u,(p,f)=>{if(p==null)return;const g=w8e(p),[b,...x]=o.shift(f),w=y8e(x),k=r.transform(b,k8e(R8e(p)));let C=i(w,k.className);g&&(C=`${C}!`),d.add(C)}),Array.from(d).join(" ")})}function A8e(...e){return e.flat().filter(r=>q3(r)&&Object.keys(Pd(r)).length>0)}function N8e(e){function r(a){const i=A8e(...a);return i.length===1?i:i.map(l=>Cj(l,e))}function n(...a){return V8(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:co(n),assignCss:o}}var D8e=/([A-Z])/g,P8e=/^ms-/,$8e=co(e=>e.startsWith("--")?e:e.replace(D8e,"-$1").replace(P8e,"-ms-").toLowerCase()),M8e=["min","max","clamp","calc"],O8e=new RegExp(`^(${M8e.join("|")})\\(.*\\)`),I8e=e=>typeof e=="string"&&O8e.test(e),L8e="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,%",z8e=`(?:${L8e.split(",").join("|")})`,B8e=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${z8e}$`),j8e=e=>typeof e=="string"&&B8e.test(e),F8e=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),Z1={map:S8e,isCssFunction:I8e,isCssVar:F8e,isCssUnit:j8e},Q1=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,Pd(r))},H8e=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?W8(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)},W8=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Yn(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 G8=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},Rj=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function q8e(e){return Rj.includes(e)?e.replace("html","").toLowerCase():e}function X8(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[q8e(r),n]))}X8.keys=Rj;const U8e="_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",Aj=new Set(U8e.split(",")),V8e=/^@|&|&$/;function Nj(e){return Aj.has(e)||V8e.test(e)}const Y8e=/^_/,W8e=/&|@/;function Dj(e){return e.map(r=>Aj.has(r)?r.replace(Y8e,""):W8e.test(r)?`[${U8(r.trim())}]`:r)}function Pj(e){return e.sort((r,n)=>{const o=Nj(r),a=Nj(n);return o&&!a?1:!o&&a?-1:0})}const G8e="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",$j=new Map,Mj=new Map;G8e.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");$j.set(r,o),a.length&&a.forEach(i=>{Mj.set(i==="1"?o:i,r)})});const Oj=e=>Mj.get(e)||e,Ij={conditions:{shift:Pj,finalize:Dj,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=Oj(e);return{className:`${$j.get(n)||$8e(n)}_${U8(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:Oj}},X8e=Tj(Ij),ye=(...e)=>X8e($d(...e));ye.raw=(...e)=>$d(...e);const{mergeCss:$d}=N8e(Ij);function Je(){let e="",r=0,n;for(;r<arguments.length;)(n=arguments[r++])&&typeof n=="string"&&(e&&(e+=" "),e+=n);return e}const Lj=e=>({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function J1(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=Lj(e),i=f=>({...o,...Pd(f)});function l(f={}){const g=i(f);let b={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(b=$d(b,n[w][k]));const x=K8(a,g);return $d(b,x)}function s(f){const g=Lj(f.config),b=G8(f.variantKeys,Object.keys(n));return J1({base:$d(r,g.base),variants:Object.fromEntries(b.map(x=>[x,$d(n[x],g.variants[x])])),defaultVariants:V8(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return ye(l(f))}const u=Object.keys(n);function d(f){return Yn(f,u)}const p=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(co(c),{__cva__:!0,variantMap:p,variantKeys:u,raw:l,config:e,merge:s,splitVariantProps:d,getVariantProps:i})}function K8(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=$d(n,o.css))}),n}function K8e(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 Z8e(e){const r=Object.entries(H8e(e)).map(([p,f])=>[p,J1(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 Yn(p,s)}const u=p=>({...n,...Pd(p)}),d=Object.fromEntries(Object.entries(l).map(([p,f])=>[p,Object.keys(f)]));return Object.assign(co(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 Q8e={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 yt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:c,className:u,children:d,...p},f)=>E.createElement("svg",{ref:f,...Q8e[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${r}`,u].join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...p},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,b])=>E.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 J8e=[["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"}]],zj=yt("outline","cylinder","Cylinder",J8e);/**
* @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:"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"}]],tEe=yt("outline","rectangular-prism","RectangularPrism",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 rEe=[["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"}]],nEe=yt("outline","reorder","Reorder",rEe);/**
* @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 oEe=[["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"}]],aEe=yt("outline","user","User",oEe);/**
* @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 iEe=[["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"}]],lEe=yt("outline","device-mobile","DeviceMobile",iEe);/**
* @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:"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"}]],cEe=yt("outline","browser","Browser",sEe),Z8=E.createContext(null);function uEe({value:e,children:r}){return E.useContext(Z8)?y.jsx(y.Fragment,{children:r}):y.jsx(Z8.Provider,{value:e,children:r})}function U3({element:e,className:r,style:n}){const o=E.useContext(Z8);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 dEe={browser:cEe,cylinder:zj,mobile:lEe,person:aEe,queue:nEe,rectangle:tEe,storage:zj};function pEe({element:e,className:r}){const n=y.jsx(U3,{element:e,className:r});if(n)return n;const o=dEe[e.shape];return y.jsx("div",{className:Je(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function Xh(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function Bj(e){const r=Xh(e);E.useEffect(()=>()=>{r.current()},[])}function V3(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),l=E.useRef(e),s=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return Bj(c),E.useEffect(()=>{l.current=e},r),E.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 hEe=()=>{},Y3=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function fEe(e){const r=Xh(e),n=E.useRef(0),o=E.useCallback(()=>{Y3&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return Bj(o),[E.useMemo(()=>{const a=(...i)=>{Y3&&(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 mEe=(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 jj(e,r,n=mEe,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||Y3&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function gEe(e,r,n,o=0){E.useEffect(V3(e,r,n,o),r)}function Fj(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const Q8=Y3?E.useLayoutEffect:E.useEffect;function yEe(e){E.useEffect(()=>{e()},[])}function Hj(e,r){const[n,o]=fEe(e);E.useEffect(()=>(n(),o),r)}const bEe=e=>(e+1)%Number.MAX_SAFE_INTEGER;function vEe(){const[,e]=E.useState(0);return E.useCallback(()=>{e(bEe)},[])}function qj(e,r){const n=Fj();E.useEffect(n?hEe:e,r)}const xEe=e=>{e&&clearTimeout(e)};function W3(e,r){const n=Xh(e),o=Xh(r),a=E.useRef(null),i=E.useCallback(()=>{xEe(a.current)},[]),l=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(l(),i),[r]),[i,l]}const Uj=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function an(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=an(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var wEe={value:()=>{}};function G3(){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 X3(n)}function X3(e){this._=e}function kEe(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}})}X3.prototype=G3.prototype={constructor:X3,on:function(e,r){var n=this._,o=kEe(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i<l;)if((a=(e=o[i]).type)&&(a=_Ee(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]=Vj(n[a],e.name,r);else if(r==null)for(a in n)n[a]=Vj(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 X3(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 _Ee(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function Vj(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=wEe,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var J8="http://www.w3.org/1999/xhtml";const Yj={svg:"http://www.w3.org/2000/svg",xhtml:J8,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function K3(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Yj.hasOwnProperty(r)?{space:Yj[r],local:e}:e}function EEe(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===J8&&r.documentElement.namespaceURI===J8?r.createElement(e):r.createElementNS(n,e)}}function SEe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Wj(e){var r=K3(e);return(r.local?SEe:EEe)(r)}function CEe(){}function eE(e){return e==null?CEe:function(){return this.querySelector(e)}}function TEe(e){typeof e!="function"&&(e=eE(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 _a(o,this._parents)}function REe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function AEe(){return[]}function Gj(e){return e==null?AEe:function(){return this.querySelectorAll(e)}}function NEe(e){return function(){return REe(e.apply(this,arguments))}}function DEe(e){typeof e=="function"?e=NEe(e):e=Gj(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 _a(o,a)}function Xj(e){return function(){return this.matches(e)}}function Kj(e){return function(r){return r.matches(e)}}var PEe=Array.prototype.find;function $Ee(e){return function(){return PEe.call(this.children,e)}}function MEe(){return this.firstElementChild}function OEe(e){return this.select(e==null?MEe:$Ee(typeof e=="function"?e:Kj(e)))}var IEe=Array.prototype.filter;function LEe(){return Array.from(this.children)}function zEe(e){return function(){return IEe.call(this.children,e)}}function BEe(e){return this.selectAll(e==null?LEe:zEe(typeof e=="function"?e:Kj(e)))}function jEe(e){typeof e!="function"&&(e=Xj(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 _a(o,this._parents)}function Zj(e){return new Array(e.length)}function FEe(){return new _a(this._enter||this._groups.map(Zj),this._parents)}function Z3(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}Z3.prototype={constructor:Z3,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 HEe(e){return function(){return e}}function qEe(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 Z3(e,i[l]);for(;l<c;++l)(s=r[l])&&(a[l]=s)}function UEe(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 Z3(e,i[s]);for(s=0;s<d;++s)(c=r[s])&&u.get(f[s])===c&&(a[s]=c)}function VEe(e){return e.__data__}function YEe(e,r){if(!arguments.length)return Array.from(this,VEe);var n=r?UEe:qEe,o=this._parents,a=this._groups;typeof e!="function"&&(e=HEe(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=WEe(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 _a(l,o),l._enter=s,l._exit=c,l}function WEe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function GEe(){return new _a(this._exit||this._groups.map(Zj),this._parents)}function XEe(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 KEe(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 _a(s,this._parents)}function ZEe(){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 QEe(e){e||(e=JEe);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 _a(a,this._parents).order()}function JEe(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function e9e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function t9e(){return Array.from(this)}function r9e(){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 n9e(){let e=0;for(const r of this)++e;return e}function o9e(){return!this.node()}function a9e(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 i9e(e){return function(){this.removeAttribute(e)}}function l9e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function s9e(e,r){return function(){this.setAttribute(e,r)}}function c9e(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function u9e(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function d9e(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 p9e(e,r){var n=K3(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?l9e:i9e:typeof r=="function"?n.local?d9e:u9e:n.local?c9e:s9e)(n,r))}function Qj(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function h9e(e){return function(){this.style.removeProperty(e)}}function f9e(e,r,n){return function(){this.style.setProperty(e,r,n)}}function m9e(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function g9e(e,r,n){return arguments.length>1?this.each((r==null?h9e:typeof r=="function"?m9e:f9e)(e,r,n??"")):Kh(this.node(),e)}function Kh(e,r){return e.style.getPropertyValue(r)||Qj(e).getComputedStyle(e,null).getPropertyValue(r)}function y9e(e){return function(){delete this[e]}}function b9e(e,r){return function(){this[e]=r}}function v9e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function x9e(e,r){return arguments.length>1?this.each((r==null?y9e:typeof r=="function"?v9e:b9e)(e,r)):this.node()[e]}function Jj(e){return e.trim().split(/^|\s+/)}function tE(e){return e.classList||new eF(e)}function eF(e){this._node=e,this._names=Jj(e.getAttribute("class")||"")}eF.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 tF(e,r){for(var n=tE(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function rF(e,r){for(var n=tE(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function w9e(e){return function(){tF(this,e)}}function k9e(e){return function(){rF(this,e)}}function _9e(e,r){return function(){(r.apply(this,arguments)?tF:rF)(this,e)}}function E9e(e,r){var n=Jj(e+"");if(arguments.length<2){for(var o=tE(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?_9e:r?w9e:k9e)(n,r))}function S9e(){this.textContent=""}function C9e(e){return function(){this.textContent=e}}function T9e(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function R9e(e){return arguments.length?this.each(e==null?S9e:(typeof e=="function"?T9e:C9e)(e)):this.node().textContent}function A9e(){this.innerHTML=""}function N9e(e){return function(){this.innerHTML=e}}function D9e(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function P9e(e){return arguments.length?this.each(e==null?A9e:(typeof e=="function"?D9e:N9e)(e)):this.node().innerHTML}function $9e(){this.nextSibling&&this.parentNode.appendChild(this)}function M9e(){return this.each($9e)}function O9e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function I9e(){return this.each(O9e)}function L9e(e){var r=typeof e=="function"?e:Wj(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function z9e(){return null}function B9e(e,r){var n=typeof e=="function"?e:Wj(e),o=r==null?z9e:typeof r=="function"?r:eE(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function j9e(){var e=this.parentNode;e&&e.removeChild(this)}function F9e(){return this.each(j9e)}function H9e(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function q9e(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function U9e(e){return this.select(e?q9e:H9e)}function V9e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Y9e(e){return function(r){e.call(this,r,this.__data__)}}function W9e(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 G9e(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 X9e(e,r,n){return function(){var o=this.__on,a,i=Y9e(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 K9e(e,r,n){var o=W9e(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?X9e:G9e,a=0;a<i;++a)this.each(s(o[a],r,n));return this}function nF(e,r,n){var o=Qj(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 Z9e(e,r){return function(){return nF(this,e,r)}}function Q9e(e,r){return function(){return nF(this,e,r.apply(this,arguments))}}function J9e(e,r){return this.each((typeof r=="function"?Q9e:Z9e)(e,r))}function*e7e(){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 oF=[null];function _a(e,r){this._groups=e,this._parents=r}function e0(){return new _a([[document.documentElement]],oF)}function t7e(){return this}_a.prototype=e0.prototype={constructor:_a,select:TEe,selectAll:DEe,selectChild:OEe,selectChildren:BEe,filter:jEe,data:YEe,enter:FEe,exit:GEe,join:XEe,merge:KEe,selection:t7e,order:ZEe,sort:QEe,call:e9e,nodes:t9e,node:r9e,size:n9e,empty:o9e,each:a9e,attr:p9e,style:g9e,property:x9e,classed:E9e,text:R9e,html:P9e,raise:M9e,lower:I9e,append:L9e,insert:B9e,remove:F9e,clone:U9e,datum:V9e,on:K9e,dispatch:J9e,[Symbol.iterator]:e7e};function Ea(e){return typeof e=="string"?new _a([[document.querySelector(e)]],[document.documentElement]):new _a([[e]],oF)}function r7e(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Ui(e,r){if(e=r7e(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 n7e={passive:!1},t0={capture:!0,passive:!1};function rE(e){e.stopImmediatePropagation()}function Zh(e){e.preventDefault(),e.stopImmediatePropagation()}function aF(e){var r=e.document.documentElement,n=Ea(e).on("dragstart.drag",Zh,t0);"onselectstart"in r?n.on("selectstart.drag",Zh,t0):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function iF(e,r){var n=e.document.documentElement,o=Ea(e).on("dragstart.drag",null);r&&(o.on("click.drag",Zh,t0),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 Q3=e=>()=>e;function nE(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}})}nE.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function o7e(e){return!e.ctrlKey&&!e.button}function a7e(){return this.parentNode}function i7e(e,r){return r??{x:e.x,y:e.y}}function l7e(){return navigator.maxTouchPoints||"ontouchstart"in this}function lF(){var e=o7e,r=a7e,n=i7e,o=l7e,a={},i=G3("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,n7e).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&&(Ea(T.view).on("mousemove.drag",b,t0).on("mouseup.drag",x,t0),aF(T.view),rE(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(Zh(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ea(T.view).on("mousemove.drag mouseup.drag",null),iF(T.view,u),Zh(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,$,M;for($=0;$<N;++$)(M=_(this,D,T,R,A[$].identifier,A[$]))&&(rE(T),M("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])&&(Zh(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])&&(rE(T),N("end",T,R[D]))}function _(T,R,A,D,N,$){var M=i.copy(),j=Ui($||A,R),L,Y,O;if((O=n.call(T,new nE("beforestart",{sourceEvent:A,target:f,identifier:N,active:l,x:j[0],y:j[1],dx:0,dy:0,dispatch:M}),D))!=null)return L=O.x-j[0]||0,Y=O.y-j[1]||0,function U(I,q,V){var G=j,F;switch(I){case"start":a[N]=U,F=l++;break;case"end":delete a[N],--l;case"drag":j=Ui(V||q,R),F=l;break}M.call(I,T,new nE(I,{sourceEvent:q,subject:O,target:f,identifier:N,active:F,x:j[0]+L,y:j[1]+Y,dx:j[0]-G[0],dy:j[1]-G[1],dispatch:M}),D)}}return f.filter=function(T){return arguments.length?(e=typeof T=="function"?T:Q3(!!T),f):e},f.container=function(T){return arguments.length?(r=typeof T=="function"?T:Q3(T),f):r},f.subject=function(T){return arguments.length?(n=typeof T=="function"?T:Q3(T),f):n},f.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:Q3(!!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 oE(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function sF(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function r0(){}var n0=.7,J3=1/n0,Qh="\\s*([+-]?\\d+)\\s*",o0="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Xl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",s7e=/^#([0-9a-f]{3,8})$/,c7e=new RegExp(`^rgb\\(${Qh},${Qh},${Qh}\\)$`),u7e=new RegExp(`^rgb\\(${Xl},${Xl},${Xl}\\)$`),d7e=new RegExp(`^rgba\\(${Qh},${Qh},${Qh},${o0}\\)$`),p7e=new RegExp(`^rgba\\(${Xl},${Xl},${Xl},${o0}\\)$`),h7e=new RegExp(`^hsl\\(${o0},${Xl},${Xl}\\)$`),f7e=new RegExp(`^hsla\\(${o0},${Xl},${Xl},${o0}\\)$`),cF={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};oE(r0,Md,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:uF,formatHex:uF,formatHex8:m7e,formatHsl:g7e,formatRgb:dF,toString:dF});function uF(){return this.rgb().formatHex()}function m7e(){return this.rgb().formatHex8()}function g7e(){return gF(this).formatHsl()}function dF(){return this.rgb().formatRgb()}function Md(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=s7e.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?pF(r):n===3?new Qo(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ex(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ex(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=c7e.exec(e))?new Qo(r[1],r[2],r[3],1):(r=u7e.exec(e))?new Qo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=d7e.exec(e))?ex(r[1],r[2],r[3],r[4]):(r=p7e.exec(e))?ex(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=h7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,1):(r=f7e.exec(e))?mF(r[1],r[2]/100,r[3]/100,r[4]):cF.hasOwnProperty(e)?pF(cF[e]):e==="transparent"?new Qo(NaN,NaN,NaN,0):null}function pF(e){return new Qo(e>>16&255,e>>8&255,e&255,1)}function ex(e,r,n,o){return o<=0&&(e=r=n=NaN),new Qo(e,r,n,o)}function y7e(e){return e instanceof r0||(e=Md(e)),e?(e=e.rgb(),new Qo(e.r,e.g,e.b,e.opacity)):new Qo}function aE(e,r,n,o){return arguments.length===1?y7e(e):new Qo(e,r,n,o??1)}function Qo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}oE(Qo,aE,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Qo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qo(Od(this.r),Od(this.g),Od(this.b),tx(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:hF,formatHex:hF,formatHex8:b7e,formatRgb:fF,toString:fF}));function hF(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}`}function b7e(){return`#${Id(this.r)}${Id(this.g)}${Id(this.b)}${Id((isNaN(this.opacity)?1:this.opacity)*255)}`}function fF(){const e=tx(this.opacity);return`${e===1?"rgb(":"rgba("}${Od(this.r)}, ${Od(this.g)}, ${Od(this.b)}${e===1?")":`, ${e})`}`}function tx(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Od(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Id(e){return e=Od(e),(e<16?"0":"")+e.toString(16)}function mF(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Vi(e,r,n,o)}function gF(e){if(e instanceof Vi)return new Vi(e.h,e.s,e.l,e.opacity);if(e instanceof r0||(e=Md(e)),!e)return new Vi;if(e instanceof Vi)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 Vi(l,s,c,e.opacity)}function v7e(e,r,n,o){return arguments.length===1?gF(e):new Vi(e,r,n,o??1)}function Vi(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}oE(Vi,v7e,sF(r0,{brighter(e){return e=e==null?J3:Math.pow(J3,e),new Vi(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?n0:Math.pow(n0,e),new Vi(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 Qo(iE(e>=240?e-240:e+120,a,o),iE(e,a,o),iE(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Vi(yF(this.h),rx(this.s),rx(this.l),tx(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=tx(this.opacity);return`${e===1?"hsl(":"hsla("}${yF(this.h)}, ${rx(this.s)*100}%, ${rx(this.l)*100}%${e===1?")":`, ${e})`}`}}));function yF(e){return e=(e||0)%360,e<0?e+360:e}function rx(e){return Math.max(0,Math.min(1,e||0))}function iE(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 lE=e=>()=>e;function x7e(e,r){return function(n){return e+n*r}}function w7e(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 k7e(e){return(e=+e)==1?bF:function(r,n){return n-r?w7e(r,n,e):lE(isNaN(r)?n:r)}}function bF(e,r){var n=r-e;return n?x7e(e,n):lE(isNaN(e)?r:e)}const nx=(function e(r){var n=k7e(r);function o(a,i){var l=n((a=aE(a)).r,(i=aE(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=bF(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 _7e(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 E7e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function S7e(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]=a0(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 C7e(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function Kl(e,r){return e=+e,r=+r,function(n){return e*(1-n)+r*n}}function T7e(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]=a0(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var sE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cE=new RegExp(sE.source,"g");function R7e(e){return function(){return e}}function A7e(e){return function(r){return e(r)+""}}function vF(e,r){var n=sE.lastIndex=cE.lastIndex=0,o,a,i,l=-1,s=[],c=[];for(e=e+"",r=r+"";(o=sE.exec(e))&&(a=cE.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:Kl(o,a)})),n=cE.lastIndex;return n<r.length&&(i=r.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?A7e(c[0].x):R7e(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 a0(e,r){var n=typeof r,o;return r==null||n==="boolean"?lE(r):(n==="number"?Kl:n==="string"?(o=Md(r))?(r=o,nx):vF:r instanceof Md?nx:r instanceof Date?C7e:E7e(r)?_7e:Array.isArray(r)?S7e:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?T7e:Kl)(e,r)}var xF=180/Math.PI,wF={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function kF(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)*xF,skewX:Math.atan(c)*xF,scaleX:l,scaleY:s}}var ox;function N7e(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?wF:kF(r.a,r.b,r.c,r.d,r.e,r.f)}function D7e(e){return e==null||(ox||(ox=document.createElementNS("http://www.w3.org/2000/svg","g")),ox.setAttribute("transform",e),!(e=ox.transform.baseVal.consolidate()))?wF:(e=e.matrix,kF(e.a,e.b,e.c,e.d,e.e,e.f))}function _F(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:Kl(u,p)},{i:x-2,x:Kl(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:Kl(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:Kl(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:Kl(u,p)},{i:x-2,x:Kl(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 P7e=_F(N7e,"px, ","px)","deg)"),$7e=_F(D7e,", ",")",")"),M7e=1e-12;function EF(e){return((e=Math.exp(e))+1/e)/2}function O7e(e){return((e=Math.exp(e))-1/e)/2}function I7e(e){return((e=Math.exp(2*e))-1)/(e+1)}const ax=(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<M7e)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,$=EF(R),M=u/(n*C)*($*I7e(r*N+R)-O7e(R));return[s+M*g,c+M*b,u*$/EF(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 Jh=0,i0=0,l0=0,SF=1e3,ix,s0,lx=0,Ld=0,sx=0,c0=typeof performance=="object"&&performance.now?performance:Date,CF=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function uE(){return Ld||(CF(L7e),Ld=c0.now()+sx)}function L7e(){Ld=0}function cx(){this._call=this._time=this._next=null}cx.prototype=TF.prototype={constructor:cx,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?uE():+n)+(r==null?0:+r),!this._next&&s0!==this&&(s0?s0._next=this:ix=this,s0=this),this._call=e,this._time=n,dE()},stop:function(){this._call&&(this._call=null,this._time=1/0,dE())}};function TF(e,r,n){var o=new cx;return o.restart(e,r,n),o}function z7e(){uE(),++Jh;for(var e=ix,r;e;)(r=Ld-e._time)>=0&&e._call.call(void 0,r),e=e._next;--Jh}function RF(){Ld=(lx=c0.now())+sx,Jh=i0=0;try{z7e()}finally{Jh=0,j7e(),Ld=0}}function B7e(){var e=c0.now(),r=e-lx;r>SF&&(sx-=r,lx=e)}function j7e(){for(var e,r=ix,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:ix=n);s0=e,dE(o)}function dE(e){if(!Jh){i0&&(i0=clearTimeout(i0));var r=e-Ld;r>24?(e<1/0&&(i0=setTimeout(RF,e-c0.now()-sx)),l0&&(l0=clearInterval(l0))):(l0||(lx=c0.now(),l0=setInterval(B7e,SF)),Jh=1,CF(RF))}}function AF(e,r,n){var o=new cx;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var F7e=G3("start","end","cancel","interrupt"),H7e=[],NF=0,DF=1,pE=2,ux=3,PF=4,hE=5,dx=6;function px(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;q7e(e,n,{name:r,index:o,group:a,on:F7e,tween:H7e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:NF})}function fE(e,r){var n=Yi(e,r);if(n.state>NF)throw new Error("too late; already scheduled");return n}function Zl(e,r){var n=Yi(e,r);if(n.state>ux)throw new Error("too late; already running");return n}function Yi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function q7e(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=TF(i,0,n.time);function i(u){n.state=DF,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!==DF)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===ux)return AF(l);g.state===PF?(g.state=dx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=dx,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(AF(function(){n.state===ux&&(n.state=PF,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=pE,n.on.call("start",e,e.__data__,n.index,n.group),n.state===pE){for(n.state=ux,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=hE,1),p=-1,f=a.length;++p<f;)a[p].call(e,d);n.state===hE&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=dx,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function hx(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>pE&&o.state<hE,o.state=dx,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[l]}i&&delete e.__transition}}function U7e(e){return this.each(function(){hx(this,e)})}function V7e(e,r){var n,o;return function(){var a=Zl(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 Y7e(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=Zl(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 W7e(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Yi(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?V7e:Y7e)(n,e,r))}function mE(e,r,n){var o=e._id;return e.each(function(){var a=Zl(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Yi(a,o).value[r]}}function $F(e,r){var n;return(typeof r=="number"?Kl:r instanceof Md?nx:(n=Md(r))?(r=n,nx):vF)(e,r)}function G7e(e){return function(){this.removeAttribute(e)}}function X7e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function K7e(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 Z7e(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 Q7e(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 J7e(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 eSe(e,r){var n=K3(e),o=n==="transform"?$7e:$F;return this.attrTween(e,typeof r=="function"?(n.local?J7e:Q7e)(n,o,mE(this,"attr."+e,r)):r==null?(n.local?X7e:G7e)(n):(n.local?Z7e:K7e)(n,o,r))}function tSe(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function rSe(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function nSe(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&rSe(e,i)),n}return a._value=r,a}function oSe(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="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=K3(e);return this.tween(n,(o.local?nSe:oSe)(o,r))}function iSe(e,r){return function(){fE(this,e).delay=+r.apply(this,arguments)}}function lSe(e,r){return r=+r,function(){fE(this,e).delay=r}}function sSe(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?iSe:lSe)(r,e)):Yi(this.node(),r).delay}function cSe(e,r){return function(){Zl(this,e).duration=+r.apply(this,arguments)}}function uSe(e,r){return r=+r,function(){Zl(this,e).duration=r}}function dSe(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?cSe:uSe)(r,e)):Yi(this.node(),r).duration}function pSe(e,r){if(typeof r!="function")throw new Error;return function(){Zl(this,e).ease=r}}function hSe(e){var r=this._id;return arguments.length?this.each(pSe(r,e)):Yi(this.node(),r).ease}function fSe(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;Zl(this,e).ease=n}}function mSe(e){if(typeof e!="function")throw new Error;return this.each(fSe(this._id,e))}function gSe(e){typeof e!="function"&&(e=Xj(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 js(o,this._parents,this._name,this._id)}function ySe(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 js(l,this._parents,this._name,this._id)}function bSe(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 vSe(e,r,n){var o,a,i=bSe(r)?fE:Zl;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function xSe(e,r){var n=this._id;return arguments.length<2?Yi(this.node(),n).on.on(e):this.each(vSe(n,e,r))}function wSe(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function kSe(){return this.on("end.remove",wSe(this._id))}function _Se(e){var r=this._name,n=this._id;typeof e!="function"&&(e=eE(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,px(u[f],r,n,f,u,Yi(d,n)));return new js(i,this._parents,r,n)}function ESe(e){var r=this._name,n=this._id;typeof e!="function"&&(e=Gj(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=Yi(d,n),x=0,w=f.length;x<w;++x)(g=f[x])&&px(g,r,n,x,f,b);i.push(f),l.push(d)}return new js(i,l,r,n)}var SSe=e0.prototype.constructor;function CSe(){return new SSe(this._groups,this._parents)}function TSe(e,r){var n,o,a;return function(){var i=Kh(this,e),l=(this.style.removeProperty(e),Kh(this,e));return i===l?null:i===n&&l===o?a:a=r(n=i,o=l)}}function MF(e){return function(){this.style.removeProperty(e)}}function RSe(e,r,n){var o,a=n+"",i;return function(){var l=Kh(this,e);return l===a?null:l===o?i:i=r(o=l,n)}}function ASe(e,r,n){var o,a,i;return function(){var l=Kh(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),Kh(this,e))),l===c?null:l===o&&c===a?i:(a=c,i=r(o=l,s))}}function NSe(e,r){var n,o,a,i="style."+r,l="end."+i,s;return function(){var c=Zl(this,e),u=c.on,d=c.value[i]==null?s||(s=MF(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(l,a=d),c.on=o}}function DSe(e,r,n){var o=(e+="")=="transform"?P7e:$F;return r==null?this.styleTween(e,TSe(e,o)).on("end.style."+e,MF(e)):typeof r=="function"?this.styleTween(e,ASe(e,o,mE(this,"style."+e,r))).each(NSe(this._id,e)):this.styleTween(e,RSe(e,o,r),n).on("end.style."+e,null)}function PSe(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function $Se(e,r,n){var o,a;function i(){var l=r.apply(this,arguments);return l!==a&&(o=(a=l)&&PSe(e,l,n)),o}return i._value=r,i}function MSe(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,$Se(e,r,n??""))}function OSe(e){return function(){this.textContent=e}}function ISe(e){return function(){var r=e(this);this.textContent=r??""}}function LSe(e){return this.tween("text",typeof e=="function"?ISe(mE(this,"text",e)):OSe(e==null?"":e+""))}function zSe(e){return function(r){this.textContent=e.call(this,r)}}function BSe(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&zSe(a)),r}return o._value=e,o}function jSe(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,BSe(e))}function FSe(){for(var e=this._name,r=this._id,n=OF(),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=Yi(c,r);px(c,e,n,u,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new js(o,this._parents,e,n)}function HSe(){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=Zl(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 qSe=0;function js(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function OF(){return++qSe}var Fs=e0.prototype;js.prototype={constructor:js,select:_Se,selectAll:ESe,selectChild:Fs.selectChild,selectChildren:Fs.selectChildren,filter:gSe,merge:ySe,selection:CSe,transition:FSe,call:Fs.call,nodes:Fs.nodes,node:Fs.node,size:Fs.size,empty:Fs.empty,each:Fs.each,on:xSe,attr:eSe,attrTween:aSe,style:DSe,styleTween:MSe,text:LSe,textTween:jSe,remove:kSe,tween:W7e,delay:sSe,duration:dSe,ease:hSe,easeVarying:mSe,end:HSe,[Symbol.iterator]:Fs[Symbol.iterator]};function USe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var VSe={time:null,delay:0,duration:250,ease:USe};function YSe(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 WSe(e){var r,n;e instanceof js?(r=e._id,e=e._name):(r=OF(),(n=VSe).time=uE(),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])&&px(c,e,r,u,l,n||YSe(c,r));return new js(o,this._parents,e,r)}e0.prototype.interrupt=U7e,e0.prototype.transition=WSe;const fx=e=>()=>e;function GSe(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 Hs(e,r,n){this.k=e,this.x=r,this.y=n}Hs.prototype={constructor:Hs,scale:function(e){return e===1?this:new Hs(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Hs(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 mx=new Hs(1,0,0);IF.prototype=Hs.prototype;function IF(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mx;return e.__zoom}function gE(e){e.stopImmediatePropagation()}function u0(e){e.preventDefault(),e.stopImmediatePropagation()}function XSe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function KSe(){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 LF(){return this.__zoom||mx}function ZSe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function QSe(){return navigator.maxTouchPoints||"ontouchstart"in this}function JSe(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 zF(){var e=XSe,r=KSe,n=JSe,o=ZSe,a=QSe,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=ax,u=G3("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(O){O.property("__zoom",LF).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).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(O,U,I,q){var V=O.selection?O.selection():O;V.property("__zoom",LF),O!==V?R(O,U,I,q):V.interrupt().each(function(){A(this,arguments).event(q).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},k.scaleBy=function(O,U,I,q){k.scaleTo(O,function(){var V=this.__zoom.k,G=typeof U=="function"?U.apply(this,arguments):U;return V*G},I,q)},k.scaleTo=function(O,U,I,q){k.transform(O,function(){var V=r.apply(this,arguments),G=this.__zoom,F=I==null?T(V):typeof I=="function"?I.apply(this,arguments):I,J=G.invert(F),Q=typeof U=="function"?U.apply(this,arguments):U;return n(_(C(G,Q),F,J),V,l)},I,q)},k.translateBy=function(O,U,I,q){k.transform(O,function(){return n(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof I=="function"?I.apply(this,arguments):I),r.apply(this,arguments),l)},null,q)},k.translateTo=function(O,U,I,q,V){k.transform(O,function(){var G=r.apply(this,arguments),F=this.__zoom,J=q==null?T(G):typeof q=="function"?q.apply(this,arguments):q;return n(mx.translate(J[0],J[1]).scale(F.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof I=="function"?-I.apply(this,arguments):-I),G,l)},q,V)};function C(O,U){return U=Math.max(i[0],Math.min(i[1],U)),U===O.k?O:new Hs(U,O.x,O.y)}function _(O,U,I){var q=U[0]-I[0]*O.k,V=U[1]-I[1]*O.k;return q===O.x&&V===O.y?O:new Hs(O.k,q,V)}function T(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function R(O,U,I,q){O.on("start.zoom",function(){A(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(q).end()}).tween("zoom",function(){var V=this,G=arguments,F=A(V,G).event(q),J=r.apply(V,G),Q=I==null?T(J):typeof I=="function"?I.apply(V,G):I,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=V.__zoom,X=typeof U=="function"?U.apply(V,G):U,Z=c(W.invert(Q).concat(z/W.k),X.invert(Q).concat(z/X.k));return function(oe){if(oe===1)oe=X;else{var ee=Z(oe),re=z/ee[2];oe=new Hs(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function A(O,U,I){return!I&&O.__zooming||new D(O,U)}function D(O,U){this.that=O,this.args=U,this.active=0,this.sourceEvent=null,this.extent=r.apply(O,U),this.taps=0}D.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,U){return this.mouse&&O!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var U=Ea(this.that).datum();u.call(O,this.that,new GSe(O,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),U)}};function N(O,...U){if(!e.apply(this,arguments))return;var I=A(this,U).event(O),q=this.__zoom,V=Math.max(i[0],Math.min(i[1],q.k*Math.pow(2,o.apply(this,arguments)))),G=Ui(O);if(I.wheel)(I.mouse[0][0]!==G[0]||I.mouse[0][1]!==G[1])&&(I.mouse[1]=q.invert(I.mouse[0]=G)),clearTimeout(I.wheel);else{if(q.k===V)return;I.mouse=[G,q.invert(G)],hx(this),I.start()}u0(O),I.wheel=setTimeout(F,b),I.zoom("mouse",n(_(C(q,V),I.mouse[0],I.mouse[1]),I.extent,l));function F(){I.wheel=null,I.end()}}function $(O,...U){if(f||!e.apply(this,arguments))return;var I=O.currentTarget,q=A(this,U,!0).event(O),V=Ea(O.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),G=Ui(O,I),F=O.clientX,J=O.clientY;aF(O.view),gE(O),q.mouse=[G,this.__zoom.invert(G)],hx(this),q.start();function Q(W){if(u0(W),!q.moved){var X=W.clientX-F,Z=W.clientY-J;q.moved=X*X+Z*Z>x}q.event(W).zoom("mouse",n(_(q.that.__zoom,q.mouse[0]=Ui(W,I),q.mouse[1]),q.extent,l))}function z(W){V.on("mousemove.zoom mouseup.zoom",null),iF(W.view,q.moved),u0(W),q.event(W).end()}}function M(O,...U){if(e.apply(this,arguments)){var I=this.__zoom,q=Ui(O.changedTouches?O.changedTouches[0]:O,this),V=I.invert(q),G=I.k*(O.shiftKey?.5:2),F=n(_(C(I,G),q,V),r.apply(this,U),l);u0(O),s>0?Ea(this).transition().duration(s).call(R,F,q,O):Ea(this).call(k.transform,F,q,O)}}function j(O,...U){if(e.apply(this,arguments)){var I=O.touches,q=I.length,V=A(this,U,O.changedTouches.length===q).event(O),G,F,J,Q;for(gE(O),F=0;F<q;++F)J=I[F],Q=Ui(J,this),Q=[Q,this.__zoom.invert(Q),J.identifier],V.touch0?!V.touch1&&V.touch0[2]!==Q[2]&&(V.touch1=Q,V.taps=0):(V.touch0=Q,G=!0,V.taps=1+!!d);d&&(d=clearTimeout(d)),G&&(V.taps<2&&(p=Q[0],d=setTimeout(function(){d=null},g)),hx(this),V.start())}}function L(O,...U){if(this.__zooming){var I=A(this,U).event(O),q=O.changedTouches,V=q.length,G,F,J,Q;for(u0(O),G=0;G<V;++G)F=q[G],J=Ui(F,this),I.touch0&&I.touch0[2]===F.identifier?I.touch0[0]=J:I.touch1&&I.touch1[2]===F.identifier&&(I.touch1[0]=J);if(F=I.that.__zoom,I.touch1){var z=I.touch0[0],W=I.touch0[1],X=I.touch1[0],Z=I.touch1[1],oe=(oe=X[0]-z[0])*oe+(oe=X[1]-z[1])*oe,ee=(ee=Z[0]-W[0])*ee+(ee=Z[1]-W[1])*ee;F=C(F,Math.sqrt(oe/ee)),J=[(z[0]+X[0])/2,(z[1]+X[1])/2],Q=[(W[0]+Z[0])/2,(W[1]+Z[1])/2]}else if(I.touch0)J=I.touch0[0],Q=I.touch0[1];else return;I.zoom("touch",n(_(F,J,Q),I.extent,l))}}function Y(O,...U){if(this.__zooming){var I=A(this,U).event(O),q=O.changedTouches,V=q.length,G,F;for(gE(O),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),G=0;G<V;++G)F=q[G],I.touch0&&I.touch0[2]===F.identifier?delete I.touch0:I.touch1&&I.touch1[2]===F.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(F=Ui(F,this),Math.hypot(p[0]-F[0],p[1]-F[1])<w)){var J=Ea(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return k.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:fx(+O),k):o},k.filter=function(O){return arguments.length?(e=typeof O=="function"?O:fx(!!O),k):e},k.touchable=function(O){return arguments.length?(a=typeof O=="function"?O:fx(!!O),k):a},k.extent=function(O){return arguments.length?(r=typeof O=="function"?O:fx([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),k):r},k.scaleExtent=function(O){return arguments.length?(i[0]=+O[0],i[1]=+O[1],k):[i[0],i[1]]},k.translateExtent=function(O){return arguments.length?(l[0][0]=+O[0][0],l[1][0]=+O[1][0],l[0][1]=+O[0][1],l[1][1]=+O[1][1],k):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},k.constrain=function(O){return arguments.length?(n=O,k):n},k.duration=function(O){return arguments.length?(s=+O,k):s},k.interpolate=function(O){return arguments.length?(c=O,k):c},k.on=function(){var O=u.on.apply(u,arguments);return O===u?k:O},k.clickDistance=function(O){return arguments.length?(x=(O=+O)*O,k):Math.sqrt(x)},k.tapDistance=function(O){return arguments.length?(w=+O,k):w},k}const Ql={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."},d0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],BF=["Enter"," ","Escape"],jF={"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 ef;(function(e){e.Strict="strict",e.Loose="loose"})(ef||(ef={}));var zd;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(zd||(zd={}));var p0;(function(e){e.Partial="partial",e.Full="full"})(p0||(p0={}));const FF={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var eu;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(eu||(eu={}));var gx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(gx||(gx={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const HF={[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 UF=e=>"id"in e&&"source"in e&&"target"in e,eCe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),yE=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),h0=(e,r=[0,0])=>{const{width:n,height:o}=Wn(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},VF=(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):yE(a)?a:r.nodeLookup.get(a.id));const s=l?bx(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return yx(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return f0(n)},tf=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=bx(o);n=yx(n,a)}}),f0(n)},bE=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...y0(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=m0(s,jd(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},tCe=(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 rCe(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 nCe({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=rCe(e,l),c=tf(s),u=tu(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 YF({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",Ql.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&af(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=af(p)?Bd(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",Ql.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 oCe({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=tCe(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 rf=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),Bd=(e={x:0,y:0},r,n)=>({x:rf(e.x,r[0][0],r[1][0]-(n?.width??0)),y:rf(e.y,r[0][1],r[1][1]-(n?.height??0))});function WF(e,r,n){const{width:o,height:a}=Wn(n),{x:i,y:l}=n.internals.positionAbsolute;return Bd(e,[[i,l],[i+o,l+a]],r)}const GF=(e,r,n)=>e<r?rf(Math.abs(e-r),1,r)/r:e>n?-rf(Math.abs(e-n),1,r)/r:0,XF=(e,r,n=15,o=40)=>{const a=GF(e.x,o,r.width-o)*n,i=GF(e.y,o,r.height-o)*n;return[a,i]},yx=(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)}),vE=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),f0=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),jd=(e,r=[0,0])=>{const{x:n,y:o}=yE(e)?e.internals.positionAbsolute:h0(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}},bx=(e,r=[0,0])=>{const{x:n,y:o}=yE(e)?e.internals.positionAbsolute:h0(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)}},vx=(e,r)=>f0(yx(vE(e),vE(r))),m0=(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)},KF=e=>Wi(e.width)&&Wi(e.height)&&Wi(e.x)&&Wi(e.y),Wi=e=>!isNaN(e)&&isFinite(e),aCe=(e,r)=>{},g0=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),y0=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?g0(s,l):s},xx=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function nf(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 iCe(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=nf(e,n),a=nf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=nf(e.top??e.y??0,n),a=nf(e.bottom??e.y??0,n),i=nf(e.left??e.x??0,r),l=nf(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 lCe(e,r,n,o,a,i){const{x:l,y:s}=xx(e,[r,n,o]),{x:c,y:u}=xx({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 tu=(e,r,n,o,a,i)=>{const l=iCe(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=rf(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=lCe(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}},of=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function af(e){return e!=null&&e!=="parent"}function Wn(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function ZF(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function QF(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 JF(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function sCe(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function cCe(e){return{...jF,...e||{}}}function b0(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Gi(e),s=y0({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?g0(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const xE=e=>({width:e.offsetWidth,height:e.offsetHeight}),eH=e=>e?.getRootNode?.()||window?.document,uCe=["INPUT","SELECT","TEXTAREA"];function tH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:uCe.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const rH=e=>"clientX"in e,Gi=(e,r)=>{const n=rH(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)}},nH=(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,...xE(l)}})};function oH({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 wx(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function aH({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-wx(r-o,i),n];case tt.Right:return[r+wx(o-r,i),n];case tt.Top:return[r,n-wx(n-a,i)];case tt.Bottom:return[r,n+wx(a-n,i)]}}function kx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:l=.25}){const[s,c]=aH({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=aH({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=oH({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 iH({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 dCe({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 pCe({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=yx(bx(e),bx(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 m0(l,f0(i))>0}const hCe=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,fCe=(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)),mCe=(e,r)=>{if(!e.source||!e.target)return r;let n;return UF(e)?n={...e}:n={...e,id:hCe(e)},fCe(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function lH({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=iH({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const sH={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},gCe=({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},cH=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function yCe({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:l}){const s=sH[r],c=sH[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=gCe({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]=iH({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],O=u[j]<d[j];(s[f]===1&&(!L&&Y||L&&O)||s[f]!==1&&(!L&&O||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)),M=Math.max(Math.abs(D.y-b[0].y),Math.abs(N.y-b[0].y));$>=M?(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 bCe(e,r,n,o){const a=Math.min(cH(e,r)/2,cH(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 _x({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]=yCe({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?_=bCe(p[C-1],k,p[C+1],l):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),f,g,b,x]}function uH(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function dH(e){const{sourceNode:r,targetNode:n}=e;if(!uH(r)||!uH(n))return null;const o=r.internals.handleBounds||pH(r.handles),a=n.internals.handleBounds||pH(n.handles),i=hH(o?.source??[],e.sourceHandle),l=hH(e.connectionMode===ef.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!l)return e.onError?.("008",Ql.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=v0(r,i,s),d=v0(n,l,c);return{sourceX:u.x,sourceY:u.y,targetX:d.x,targetY:d.y,sourcePosition:s,targetPosition:c}}function pH(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 v0(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??Wn(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 hH(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function wE(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function vCe(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=wE(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 xCe(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 kE={nodeOrigin:[0,0],nodeExtent:d0,elevateNodesOnSelect:!0,defaults:{}},wCe={...kE,checkEquality:!0};function _E(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function kCe(e,r,n){const o=_E(kE,n);for(const a of e.values())if(a.parentId)SE(a,e,r,o);else{const i=h0(a,o.nodeOrigin),l=af(a.extent)?a.extent:o.nodeExtent,s=Bd(i,l,Wn(a));a.internals.positionAbsolute=s}}function _Ce(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 EE(e,r,n,o){const a=_E(wCe,o);let i=e.length>0;const l=new Map(r),s=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=l.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=h0(c,a.nodeOrigin),p=af(c.extent)?c.extent:a.nodeExtent,f=Bd(d,p,Wn(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:f,handleBounds:_Ce(c,u),z:fH(c,s),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&SE(u,r,n,o)}return i}function ECe(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 SE(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:l}=_E(kE,o),s=e.parentId,c=r.get(s);if(!c){console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}ECe(e,n);const u=a?1e3:0,{x:d,y:p,z:f}=SCe(e,c,i,l,u),{positionAbsolute:g}=e.internals,b=d!==g.x||p!==g.y;(b||f!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:b?{x:d,y:p}:g,z:f}})}function fH(e,r){return(Wi(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function SCe(e,r,n,o,a){const{x:i,y:l}=r.internals.positionAbsolute,s=Wn(e),c=h0(e,n),u=af(e.extent)?Bd(c,e.extent,s):c;let d=Bd({x:i+u.x,y:l+u.y},o,s);e.extent==="parent"&&(d=WF(d,s,r));const p=fH(e,a),f=r.internals.z??0;return{x:d.x,y:d.y,z:f>=p?f+1:p}}function CE(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??jd(s),u=vx(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=Wn(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 CCe(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=xE(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=af(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=WF(C,b,r.get(g.parentId)):k&&(C=Bd(C,k,b));const _={...g,measured:b,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:nH("source",f.nodeElement,w,d,g.id),target:nH("target",f.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&SE(_,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:jd(_,a)}))}}if(p.length>0){const f=CE(p,r,n,a);c.push(...f)}return{changes:c,updatedInternals:s}}async function TCe({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 mH(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 gH(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}`;mH("source",c,d,e,a,l),mH("target",c,u,e,i,s),r.set(o.id,o)}}function yH(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:yH(n,r):!1}function bH(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 RCe(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!yH(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 TE({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 ACe({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=g0(i,r);return{x:l.x-i.x,y:l.y-i.y}}function NCe({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=Ea(T);function N({x:L,y:Y}){const{nodeLookup:O,nodeExtent:U,snapGrid:I,snapToGrid:q,nodeOrigin:V,onNodeDrag:G,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:L,y:Y};let z=!1;const W=s.size>1,X=W&&U?vE(tf(s)):null,Z=W&&q?ACe({dragItems:s,snapGrid:I,x:L,y:Y}):null;for(const[oe,ee]of s){if(!O.has(oe))continue;let re={x:L-ee.distance.x,y:Y-ee.distance.y};q&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:g0(re,I));let pe=null;if(W&&U&&!ee.extent&&X){const{positionAbsolute:de}=ee.internals,be=de.x-X.x+U[0][0],Oe=de.x+ee.measured.width-X.x2+U[1][0],Xe=de.y-X.y+U[0][1],Ge=de.y+ee.measured.height-X.y2+U[1][1];pe=[[be,Xe],[Oe,Ge]]}const{position:Ce,positionAbsolute:ce}=YF({nodeId:oe,nextPosition:re,nodeLookup:O,nodeExtent:pe||U,nodeOrigin:V,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(b=b||z,!!z&&(Q(s,!0),x&&(o||G||!A&&F))){const[oe,ee]=TE({nodeId:A,dragItems:s,nodeLookup:O});o?.(x,s,oe,ee),G?.(x,oe,ee),A||F?.(x,ee)}}async function $(){if(!d)return;const{transform:L,panBy:Y,autoPanSpeed:O,autoPanOnNodeDrag:U}=r();if(!U){c=!1,cancelAnimationFrame(l);return}const[I,q]=XF(u,d,O);(I!==0||q!==0)&&(i.x=(i.x??0)-I/L[2],i.y=(i.y??0)-q/L[2],await Y({x:I,y:q})&&N(i)),l=requestAnimationFrame($)}function M(L){const{nodeLookup:Y,multiSelectionActive:O,nodesDraggable:U,transform:I,snapGrid:q,snapToGrid:V,selectNodesOnDrag:G,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();p=!0,(!G||!R)&&!O&&A&&(Y.get(A)?.selected||Q()),R&&G&&A&&e?.(A);const z=b0(L.sourceEvent,{transform:I,snapGrid:q,snapToGrid:V,containerBounds:d});if(i=z,s=RCe(Y,U,z,A),s.size>0&&(n||F||!A&&J)){const[W,X]=TE({nodeId:A,dragItems:s,nodeLookup:Y});n?.(L.sourceEvent,s,W,X),F?.(L.sourceEvent,W,X),A||J?.(L.sourceEvent,X)}}const j=lF().clickDistance(D).on("start",L=>{const{domNode:Y,nodeDragThreshold:O,transform:U,snapGrid:I,snapToGrid:q}=r();d=Y?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,O===0&&M(L),i=b0(L.sourceEvent,{transform:U,snapGrid:I,snapToGrid:q,containerBounds:d}),u=Gi(L.sourceEvent,d)}).on("drag",L=>{const{autoPanOnNodeDrag:Y,transform:O,snapGrid:U,snapToGrid:I,nodeDragThreshold:q,nodeLookup:V}=r(),G=b0(L.sourceEvent,{transform:O,snapGrid:U,snapToGrid:I,containerBounds:d});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||A&&!V.has(A))&&(g=!0),!g){if(!c&&Y&&p&&(c=!0,$()),!p){const F=Gi(L.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>q&&M(L)}(i.x!==G.xSnapped||i.y!==G.ySnapped)&&s&&p&&(u=Gi(L.sourceEvent,d),N(G))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:Y,updateNodePositions:O,onNodeDragStop:U,onSelectionDragStop:I}=r();if(b&&(O(s,!1),b=!1),a||U||!A&&I){const[q,V]=TE({nodeId:A,dragItems:s,nodeLookup:Y,dragging:!1});a?.(L.sourceEvent,s,q,V),U?.(L.sourceEvent,q,V),A||I?.(L.sourceEvent,V)}}}).filter(L=>{const Y=L.target;return!L.button&&(!C||!bH(Y,`.${C}`,T))&&(!_||bH(Y,_,T))});f.call(j)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function DCe(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())m0(a,jd(i))>0&&o.push(i);return o}const PCe=250;function $Ce(e,r,n,o){let a=[],i=1/0;const l=DCe(e,n,r+PCe);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}=v0(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 vH(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,...v0(l,c,c.position,!0)}:c}function xH(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function MCe(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const wH=()=>!0;function OCe(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=wH,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:R,autoPanSpeed:A,dragThreshold:D=1,handleDomNode:N}){const $=eH(e.target);let M=0,j;const{x:L,y:Y}=Gi(e),O=xH(i,N),U=s?.getBoundingClientRect();let I=!1;if(!U||!O)return;const q=vH(a,O,o,c,r);if(!q)return;let V=Gi(e,U),G=!1,F=null,J=!1,Q=null;function z(){if(!d||!U)return;const[pe,Ce]=XF(V,U,A);f({x:pe,y:Ce}),M=requestAnimationFrame(z)}const W={...q,nodeId:a,type:O,position:q.position},X=c.get(a);let Z={inProgress:!0,isValid:null,from:v0(X,W,tt.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:X,to:V,toHandle:null,toPosition:HF[W.position],toNode:null};function oe(){I=!0,_(Z),b?.(e,{nodeId:a,handleId:o,handleType:O})}D===0&&oe();function ee(pe){if(!I){const{x:be,y:Oe}=Gi(pe),Xe=be-L,Ge=Oe-Y;if(!(Xe*Xe+Ge*Ge>D*D))return;oe()}if(!R()||!W){re(pe);return}const Ce=T();V=Gi(pe,U),j=$Ce(y0(V,Ce,!1,[1,1]),n,c,W),G||(z(),G=!0);const ce=kH(pe,{handle:j,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:$,lib:u,flowId:p,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=MCe(!!j,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?xx({x:ce.toHandle.x,y:ce.toHandle.y},Ce):V,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:HF[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&j&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(pe){if(!("touches"in pe&&pe.touches.length>0)){if(I){(j||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(pe,de),i&&C?.(pe,de)}g(),cancelAnimationFrame(M),G=!1,J=!1,F=null,Q=null,$.removeEventListener("mousemove",ee),$.removeEventListener("mouseup",re),$.removeEventListener("touchmove",ee),$.removeEventListener("touchend",re)}}$.addEventListener("mousemove",ee),$.addEventListener("mouseup",re),$.addEventListener("touchmove",ee),$.addEventListener("touchend",re)}function kH(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:u=wH,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}=Gi(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=xH(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===ef.Strict?p&&C==="source"||!p&&C==="target":_!==o||T!==a);k.isValid=N&&u(D),k.toHandle=vH(_,C,T,d,n,!0)}return k}const RE={onPointerDown:OCe,isValid:kH};function ICe({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ea(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&&of()?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=zF().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:Ui}}const LCe=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,Ex=e=>({x:e.x,y:e.y,zoom:e.k}),AE=({x:e,y:r,zoom:n})=>mx.translate(e,r).scale(n),lf=(e,r)=>e.target.closest(`.${r}`),_H=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),zCe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,NE=(e,r=0,n=zCe,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},EH=e=>{const r=e.ctrlKey&&of()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function BCe({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(lf(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=Ui(d),k=EH(d),C=p*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const f=d.deltaMode===1?20:1;let g=a===zd.Vertical?0:d.deltaX*f,b=a===zd.Horizontal?0:d.deltaY*f;!of()&&d.shiftKey&&a!==zd.Vertical&&(g=d.deltaY*f,b=0),o.translateBy(n,-(g/p)*i,-(b/p)*i,{internal:!0});const x=Ex(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,s?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function jCe({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=lf(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function FCe({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Ex(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 HCe({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,Ex(i.transform))}}function qCe({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&&LCe(e.prevViewport,l.transform))){const s=Ex(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function UCe({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"&&(lf(p,`${u}-flow__node`)||lf(p,`${u}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||d&&!b||lf(p,s)&&b||lf(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 VCe({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:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=zF().clickDistance(!Wi(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ea(e).call(f);_({x:i.x,y:i.y,zoom:rf(i.zoom,r,n)},[[0,0],[p.width,p.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(EH);function w(L,Y){return g?new Promise(O=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).transform(NE(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:Y,onPaneContextMenu:O,userSelectionActive:U,panOnScroll:I,panOnDrag:q,panOnScrollMode:V,panOnScrollSpeed:G,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:X,onTransformChange:Z,connectionInProgress:oe}){U&&!d.isZoomingOrPanning&&C();const ee=I&&!W&&!U?BCe({zoomPanValues:d,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:V,panOnScrollSpeed:G,zoomOnPinch:J,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}):jCe({noWheelClassName:L,preventScrolling:F,d3ZoomHandler:b});if(g.on("wheel.zoom",ee,{passive:!1}),!U){const pe=FCe({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:s});f.on("start",pe);const Ce=HCe({zoomPanValues:d,panOnDrag:q,onPaneContextMenu:!!O,onPanZoom:l,onTransformChange:Z});f.on("zoom",Ce);const ce=qCe({zoomPanValues:d,panOnDrag:q,panOnScroll:I,onPaneContextMenu:O,onPanZoomEnd:c,onDraggingChange:u});f.on("end",ce)}const re=UCe({zoomActivationKeyPressed:W,panOnDrag:q,zoomOnScroll:Q,panOnScroll:I,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:U,noPanClassName:Y,noWheelClassName:L,lib:X,connectionInProgress:oe});f.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,Y,O){const U=AE(L),I=f?.constrain()(U,Y,O);return I&&await w(I),new Promise(q=>q(I))}async function T(L,Y){const O=AE(L);return await w(O,Y),new Promise(U=>U(O))}function R(L){if(g){const Y=AE(L),O=g.property("__zoom");(O.k!==L.zoom||O.x!==L.x||O.y!==L.y)&&f?.transform(g,Y,null,{sync:!0})}}function A(){const L=g?IF(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(O=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).scaleTo(NE(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function N(L,Y){return g?new Promise(O=>{f?.interpolate(Y?.interpolate==="linear"?a0:ax).scaleBy(NE(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function $(L){f?.scaleExtent(L)}function M(L){f?.translateExtent(L)}function j(L){const Y=!Wi(L)||L<0?0:L;f?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:A,scaleTo:D,scaleBy:N,setScaleExtent:$,setTranslateExtent:M,syncViewport:R,setClickDistance:j}}var sf;(function(e){e.Line="line",e.Handle="handle"})(sf||(sf={}));function YCe({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 WCe(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 ru(e,r){return Math.max(0,r-e)}function nu(e,r){return Math.max(0,e-r)}function Sx(e,r,n){return Math.max(0,r-e,e-n)}function SH(e,r){return e?!r:r}function GCe(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 M=R+(c?-N:N),j=A+(u?-$:$),L=-i[0]*R,Y=-i[1]*A;let O=Sx(M,x,w),U=Sx(j,k,C);if(l){let V=0,G=0;c&&N<0?V=ru(_+N+L,l[0][0]):!c&&N>0&&(V=nu(_+M+L,l[1][0])),u&&$<0?G=ru(T+$+Y,l[0][1]):!u&&$>0&&(G=nu(T+j+Y,l[1][1])),O=Math.max(O,V),U=Math.max(U,G)}if(s){let V=0,G=0;c&&N>0?V=nu(_+N,s[0][0]):!c&&N<0&&(V=ru(_+M,s[1][0])),u&&$>0?G=nu(T+$,s[0][1]):!u&&$<0&&(G=ru(T+j,s[1][1])),O=Math.max(O,V),U=Math.max(U,G)}if(a){if(d){const V=Sx(M/D,k,C)*D;if(O=Math.max(O,V),l){let G=0;!c&&!u||c&&!u&&f?G=nu(T+Y+M/D,l[1][1])*D:G=ru(T+Y+(c?N:-N)/D,l[0][1])*D,O=Math.max(O,G)}if(s){let G=0;!c&&!u||c&&!u&&f?G=ru(T+M/D,s[1][1])*D:G=nu(T+(c?N:-N)/D,s[0][1])*D,O=Math.max(O,G)}}if(p){const V=Sx(j*D,x,w)/D;if(U=Math.max(U,V),l){let G=0;!c&&!u||u&&!c&&f?G=nu(_+j*D+L,l[1][0])/D:G=ru(_+(u?$:-$)*D+L,l[0][0])/D,U=Math.max(U,G)}if(s){let G=0;!c&&!u||u&&!c&&f?G=ru(_+j*D,s[1][0])/D:G=nu(_+(u?$:-$)*D,s[0][0])/D,U=Math.max(U,G)}}}$=$+($<0?U:-U),N=N+(N<0?O:-O),a&&(f?M>j*D?$=(SH(c,u)?-N:N)/D:N=(SH(c,u)?-$:$)*D:d?($=N/D,u=c):(N=$*D,c=u));const I=c?_+N:_,q=u?T+$:T;return{width:R+(c?-N:N),height:A+(u?-$:$),x:i[0]*N*(c?-1:1)+I,y:i[1]*$*(u?-1:1)+q}}const CH={width:0,height:0,x:0,y:0},XCe={...CH,pointerX:0,pointerY:0,aspectRatio:1};function KCe(e){return[[0,0],[e.measured.width,e.measured.height]]}function ZCe(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 QCe({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ea(e);function l({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:p,onResizeStart:f,onResize:g,onResizeEnd:b,shouldResize:x}){let w={...CH},k={...XCe};const C=WCe(c);let _,T=null,R=[],A,D,N,$=!1;const M=lF().on("start",j=>{const{nodeLookup:L,transform:Y,snapGrid:O,snapToGrid:U,nodeOrigin:I,paneDomNode:q}=n();if(_=L.get(r),!_)return;T=q?.getBoundingClientRect()??null;const{xSnapped:V,ySnapped:G}=b0(j.sourceEvent,{transform:Y,snapGrid:O,snapToGrid:U,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:V,pointerY:G,aspectRatio:w.width/w.height},A=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(A=L.get(_.parentId),D=A&&_.extent==="parent"?KCe(A):void 0),R=[],N=void 0;for(const[F,J]of L)if(J.parentId===r&&(R.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=ZCe(J,_,J.origin??I);N?N=[[Math.min(Q[0][0],N[0][0]),Math.min(Q[0][1],N[0][1])],[Math.max(Q[1][0],N[1][0]),Math.max(Q[1][1],N[1][1])]]:N=Q}f?.(j,{...w})}).on("drag",j=>{const{transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U}=n(),I=b0(j.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:O,containerBounds:T}),q=[];if(!_)return;const{x:V,y:G,width:F,height:J}=w,Q={},z=_.origin??U,{width:W,height:X,x:Z,y:oe}=GCe(k,C,I,u,d,z,D,N),ee=W!==F,re=X!==J,pe=Z!==V&&ee,Ce=oe!==G&&re;if(!pe&&!Ce&&!ee&&!re)return;if((pe||Ce||z[0]===1||z[1]===1)&&(Q.x=pe?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,R.length>0)){const be=Z-V,Oe=oe-G;for(const Xe of R)Xe.position={x:Xe.position.x-be+z[0]*(W-F),y:Xe.position.y-Oe+z[1]*(X-J)},q.push(Xe)}if((ee||re)&&(Q.width=ee&&(!p||p==="horizontal")?W:w.width,Q.height=re&&(!p||p==="vertical")?X:w.height,w.width=Q.width,w.height=Q.height),A&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x<be&&(w.x=be,k.x=k.x-(Q.x-be));const Oe=z[1]*(Q.height??0);Q.y&&Q.y<Oe&&(w.y=Oe,k.y=k.y-(Q.y-Oe))}const ce=YCe({width:w.width,prevWidth:F,height:w.height,prevHeight:J,affectsX:C.affectsX,affectsY:C.affectsY}),de={...w,direction:ce};x?.(j,de)!==!1&&($=!0,g?.(j,de),o(Q,q))}).on("end",j=>{$&&(b?.(j,{...w}),a?.({...w}),$=!1)});i.call(M)}function s(){i.on(".drag",null)}return{update:l,destroy:s}}function DE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var TH={exports:{}},PE={},RH={exports:{}},$E={};/**
* @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 AH;function JCe(){if(AH)return $E;AH=1;var e=Xr;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 $E.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,$E}var NH;function DH(){return NH||(NH=1,RH.exports=JCe()),RH.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 PH;function eTe(){if(PH)return PE;PH=1;var e=Xr,r=DH();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 PE.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},PE}var $H;function tTe(){return $H||($H=1,TH.exports=eTe()),TH.exports}var MH=tTe();const rTe=DE(MH),nTe={},OH=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:()=>{(nTe?"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},oTe=e=>e?OH(e):OH,{useDebugValue:aTe}=Xr,{useSyncExternalStoreWithSelector:iTe}=rTe,lTe=e=>e;function IH(e,r=lTe,n){const o=iTe(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return aTe(o),o}const LH=(e,r)=>{const n=oTe(e),o=(a,i=r)=>IH(n,a,i);return Object.assign(o,n),o},sTe=(e,r)=>e?LH(e,r):LH;function Ar(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 Cx=E.createContext(null),cTe=Cx.Provider,zH=Ql.error001();function Rt(e,r){const n=E.useContext(Cx);if(n===null)throw new Error(zH);return IH(n,e,r)}function fr(){const e=E.useContext(Cx);if(e===null)throw new Error(zH);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const BH={display:"none"},uTe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},jH="react-flow__node-desc",FH="react-flow__edge-desc",dTe="react-flow__aria-live",pTe=e=>e.ariaLiveMessage,hTe=e=>e.ariaLabelConfig;function fTe({rfId:e}){const r=Rt(pTe);return y.jsx("div",{id:`${dTe}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:uTe,children:r})}function mTe({rfId:e,disableKeyboardA11y:r}){const n=Rt(hTe);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${jH}-${e}`,style:BH,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${FH}-${e}`,style:BH,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(fTe,{rfId:e})]})}const ou=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const l=`${e}`.split("-");return y.jsx("div",{className:an(["react-flow__panel",n,...l]),style:o,ref:i,...a,children:r})});ou.displayName="Panel";function gTe({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(ou,{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 yTe=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}},Tx=e=>e.id;function bTe(e,r){return Ar(e.selectedNodes.map(Tx),r.selectedNodes.map(Tx))&&Ar(e.selectedEdges.map(Tx),r.selectedEdges.map(Tx))}function vTe({onSelectionChange:e}){const r=fr(),{selectedNodes:n,selectedEdges:o}=Rt(yTe,bTe);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const xTe=e=>!!e.onSelectionChangeHandlers;function wTe({onSelectionChange:e}){const r=Rt(xTe);return e||r?y.jsx(vTe,{onSelectionChange:e}):null}const HH=[0,0],kTe={x:0,y:0,zoom:1},_Te=["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"],qH=[..._Te,"rfId"],ETe=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}),UH={translateExtent:d0,nodeOrigin:HH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function STe(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:l,reset:s,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=Rt(ETe,Ar),d=fr();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{p.current=UH,s()}),[]);const p=E.useRef(UH);return E.useEffect(()=>{for(const f of qH){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:cCe(g)}):f==="fitView"?d.setState({fitViewQueued:g}):f==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[f]:g})))}p.current=e},qH.map(f=>e[f])),null}function VH(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function CTe(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=VH(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:VH()?.matches?"dark":"light"}const YH=typeof document<"u"?document:null;function x0(e=null,r={target:YH,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[l,s]=E.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 E.useEffect(()=>{const c=r?.target??YH,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)&&tH(g))return!1;const b=GH(g.code,s);if(i.current.add(g[b]),WH(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=GH(g.code,s);WH(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 WH(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function GH(e,r){return r.includes(e)?"code":"key"}const TTe=()=>{const e=fr();return E.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=tu(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 y0(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=xx(r,n);return{x:l.x+a,y:l.y+i}}}),[])};function XH(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)RTe(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 RTe(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 Rx(e,r){return XH(e,r)}function Ax(e,r){return XH(e,r)}function Fd(e,r){return{id:e,type:"select",selected:r}}function cf(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(Fd(i.id,l)))}return o}function KH({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 ZH(e){return{id:e.id,type:"remove"}}const QH=e=>eCe(e),ATe=e=>UF(e);function JH(e){return E.forwardRef(e)}const NTe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function eq(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>DTe(()=>n(a=>a+BigInt(1))));return NTe(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function DTe(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const tq=E.createContext(null);function PTe({children:e}){const r=fr(),n=E.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=KH({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=eq(n),a=E.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(KH({items:g,lookup:f}))},[]),i=eq(a),l=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(tq.Provider,{value:l,children:e})}function $Te(){const e=E.useContext(tq);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const MTe=e=>!!e.panZoom;function uf(){const e=TTe(),r=fr(),n=$Te(),o=Rt(MTe),a=E.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=QH(p)?p:f.get(p.id),x=b.parentId?QF(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 jd(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&&QH(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&&ATe(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 oCe({nodesToRemove:p,edgesToRemove:f,nodes:g,edges:b,onBeforeDelete:T}),D=A.length>0,N=R.length>0;if(D){const $=A.map(ZH);w?.(A),C($)}if(N){const $=R.map(ZH);x?.(R),k($)}return(N||D)&&_?.({nodes:R,edges:A}),{deletedNodes:R,deletedEdges:A}},getIntersectingNodes:(p,f=!0,g)=>{const b=KF(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 _=jd(w?k:C),T=m0(_,x);return f&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(p,f,g=!0)=>{const b=KF(p)?p:c(p);if(!b)return!1;const x=m0(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 VF(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??sCe();return r.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const rq=e=>e.selected,OTe=typeof window<"u"?window:void 0;function ITe({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=fr(),{deleteElements:o}=uf(),a=x0(e,{actInsideInputWithModifier:!1}),i=x0(r,{target:OTe});E.useEffect(()=>{if(a){const{edges:l,nodes:s}=n.getState();o({nodes:s.filter(rq),edges:l.filter(rq)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function LTe(e){const r=fr();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=xE(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",Ql.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 Nx={position:"absolute",width:"100%",height:"100%",top:0,left:0},zTe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function BTe({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=zd.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=fr(),R=E.useRef(null),{userSelectionActive:A,lib:D,connectionInProgress:N}=Rt(zTe,Ar),$=x0(f),M=E.useRef();LTe(R);const j=E.useCallback(L=>{k?.({x:L[0],y:L[1],zoom:L[2]}),C||T.setState({transform:L})},[k,C]);return E.useEffect(()=>{if(R.current){M.current=VCe({domNode:R.current,minZoom:d,maxZoom:p,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:U=>T.setState({paneDragging:U}),onPanZoomStart:(U,I)=>{const{onViewportChangeStart:q,onMoveStart:V}=T.getState();V?.(U,I),q?.(I)},onPanZoom:(U,I)=>{const{onViewportChange:q,onMove:V}=T.getState();V?.(U,I),q?.(I)},onPanZoomEnd:(U,I)=>{const{onViewportChangeEnd:q,onMoveEnd:V}=T.getState();V?.(U,I),q?.(I)}});const{x:L,y:Y,zoom:O}=M.current.getViewport();return T.setState({panZoom:M.current,transform:[L,Y,O],domNode:R.current.closest(".react-flow")}),()=>{M.current?.destroy()}}},[]),E.useEffect(()=>{M.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:Nx,children:b})}const jTe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function FTe(){const{userSelectionActive:e,userSelectionRect:r}=Rt(jTe,Ar);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 ME=(e,r)=>n=>{n.target===r.current&&e?.(n)},HTe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function qTe({isSelecting:e,selectionKeyPressed:r,selectionMode:n=p0.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=fr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=Rt(HTe,Ar),_=w&&(e||x),T=E.useRef(null),R=E.useRef(),A=E.useRef(new Set),D=E.useRef(new Set),N=E.useRef(!1),$=E.useRef(!1),M=q=>{if(N.current||C){N.current=!1;return}s?.(q),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},j=q=>{if(Array.isArray(o)&&o?.includes(2)){q.preventDefault();return}c?.(q)},L=u?q=>u(q):void 0,Y=q=>{const{resetSelectedElements:V,domNode:G}=b.getState();if(R.current=G?.getBoundingClientRect(),!w||!e||q.button!==0||q.target!==T.current||!R.current)return;q.target?.setPointerCapture?.(q.pointerId),$.current=!0,N.current=!1;const{x:F,y:J}=Gi(q.nativeEvent,R.current);V(),b.setState({userSelectionRect:{width:0,height:0,startX:F,startY:J,x:F,y:J}}),i?.(q)},O=q=>{const{userSelectionRect:V,transform:G,nodeLookup:F,edgeLookup:J,connectionLookup:Q,triggerNodeChanges:z,triggerEdgeChanges:W,defaultEdgeOptions:X}=b.getState();if(!R.current||!V)return;N.current=!0;const{x:Z,y:oe}=Gi(q.nativeEvent,R.current),{startX:ee,startY:re}=V,pe={startX:ee,startY:re,x:Z<ee?Z:ee,y:oe<re?oe:re,width:Math.abs(Z-ee),height:Math.abs(oe-re)},Ce=A.current,ce=D.current;A.current=new Set(bE(F,pe,G,n===p0.Partial,!0).map(be=>be.id)),D.current=new Set;const de=X?.selectable??!0;for(const be of A.current){const Oe=Q.get(be);if(Oe)for(const{edgeId:Xe}of Oe.values()){const Ge=J.get(Xe);Ge&&(Ge.selectable??de)&&D.current.add(Xe)}}if(!JF(Ce,A.current)){const be=cf(F,A.current,!0);z(be)}if(!JF(ce,D.current)){const be=cf(J,D.current);W(be)}b.setState({userSelectionRect:pe,userSelectionActive:!0,nodesSelectionActive:!1})},U=q=>{if(q.button!==0||!$.current)return;q.target?.releasePointerCapture?.(q.pointerId);const{userSelectionRect:V}=b.getState();!x&&V&&q.target===T.current&&M?.(q),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:A.current.size>0}),l?.(q),(r||a)&&(N.current=!1),$.current=!1},I=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:an(["react-flow__pane",{draggable:I,dragging:k,selection:e}]),onClick:_?void 0:ME(M,T),onContextMenu:ME(j,T),onWheel:ME(L,T),onPointerEnter:_?void 0:d,onPointerDown:_?Y:p,onPointerMove:_?O:p,onPointerUp:_?U:void 0,onPointerLeave:f,ref:T,style:Nx,children:[g,y.jsx(FTe,{})]})}function OE({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",Ql.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&l)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function nq({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:l}){const s=fr(),[c,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=NCe({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{OE({id:p,store:s,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.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 UTe=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function oq(){const e=fr();return E.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=UTe(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=g0(k,a));const{position:C,positionAbsolute:_}=YF({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 IE=E.createContext(null),VTe=IE.Provider;IE.Consumer;const LE=()=>E.useContext(IE),YTe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),WTe=(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===ef.Strict?s?.type!==n:e!==s?.nodeId||r!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:d&&u}};function GTe({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=fr(),k=LE(),{connectOnClick:C,noPanClassName:_,rfId:T}=Rt(YTe,Ar),{connectingFrom:R,connectingTo:A,clickConnecting:D,isPossibleEndHandle:N,connectionInProcess:$,clickConnectionInProcess:M,valid:j}=Rt(WTe(k,b,e),Ar);k||w.getState().onError?.("010",Ql.error010());const L=U=>{const{defaultEdgeOptions:I,onConnect:q,hasDefaultEdges:V}=w.getState(),G={...I,...U};if(V){const{edges:F,setEdges:J}=w.getState();J(mCe(G,F))}q?.(G),s?.(G)},Y=U=>{if(!k)return;const I=rH(U.nativeEvent);if(a&&(I&&U.button===0||!I)){const q=w.getState();RE.onPointerDown(U.nativeEvent,{handleDomNode:U.currentTarget,autoPanOnConnect:q.autoPanOnConnect,connectionMode:q.connectionMode,connectionRadius:q.connectionRadius,domNode:q.domNode,nodeLookup:q.nodeLookup,lib:q.lib,isTarget:x,handleId:b,nodeId:k,flowId:q.rfId,panBy:q.panBy,cancelConnection:q.cancelConnection,onConnectStart:q.onConnectStart,onConnectEnd:q.onConnectEnd,updateConnection:q.updateConnection,onConnect:L,isValidConnection:n||q.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:q.autoPanSpeed,dragThreshold:q.connectionDragThreshold})}I?d?.(U):p?.(U)},O=U=>{const{onClickConnectStart:I,onClickConnectEnd:q,connectionClickStartHandle:V,connectionMode:G,isValidConnection:F,lib:J,rfId:Q,nodeLookup:z,connection:W}=w.getState();if(!k||!V&&!a)return;if(!V){I?.(U.nativeEvent,{nodeId:k,handleId:b,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:b}});return}const X=eH(U.target),Z=n||F,{connection:oe,isValid:ee}=RE.isValid(U.nativeEvent,{handle:{nodeId:k,id:b,type:e},connectionMode:G,fromNodeId:V.nodeId,fromHandleId:V.id||null,fromType:V.type,isValidConnection:Z,flowId:Q,doc:X,lib:J,nodeLookup:z});ee&&oe&&L(oe);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,q?.(U,re),w.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":b,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${b}-${e}`,className:an(["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)&&($||M?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?O:void 0,ref:g,...f,children:c})}const uo=E.memo(JH(GTe));function XTe({data:e,isConnectable:r,sourcePosition:n=tt.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(uo,{type:"source",position:n,isConnectable:r})]})}function KTe({data:e,isConnectable:r,targetPosition:n=tt.Top,sourcePosition:o=tt.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(uo,{type:"source",position:o,isConnectable:r})]})}function ZTe(){return null}function QTe({data:e,isConnectable:r,targetPosition:n=tt.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(uo,{type:"target",position:n,isConnectable:r}),e?.label]})}const Dx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},aq={input:XTe,default:KTe,output:QTe,group:ZTe};function JTe(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}=tf(e.nodeLookup,{filter:i=>!!i.selected});return{width:Wi(r)?r:null,height:Wi(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 tRe({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=fr(),{width:a,height:i,transformString:l,userSelectionActive:s}=Rt(eRe,Ar),c=oq(),u=E.useRef(null);if(E.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),nq({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(Dx,f.key)&&(f.preventDefault(),c({direction:Dx[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:an(["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 iq=typeof window<"u"?window:void 0,rRe=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function lq({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:M,minZoom:j,maxZoom:L,preventScrolling:Y,onSelectionContextMenu:O,noWheelClassName:U,noPanClassName:I,disableKeyboardA11y:q,onViewportChange:V,isControlledViewport:G}){const{nodesSelectionActive:F,userSelectionActive:J}=Rt(rRe),Q=x0(u,{target:iq}),z=x0(x,{target:iq}),W=z||N,X=z||T,Z=d&&W!==!0,oe=Q||J||Z;return ITe({deleteKeyCode:c,multiSelectionKeyCode:b}),y.jsx(BTe,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:X,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:!Q&&W,defaultViewport:$,translateExtent:M,minZoom:j,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:U,noPanClassName:I,onViewportChange:V,isControlledViewport:G,paneClickDistance:s,children:y.jsxs(qTe,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,panOnDrag:W,isSelecting:!!oe,selectionMode:p,selectionKeyPressed:Q,selectionOnDrag:Z,children:[e,F&&y.jsx(tRe,{onSelectionContextMenu:O,noPanClassName:I,disableKeyboardA11y:q})]})})}lq.displayName="FlowRenderer";const nRe=E.memo(lq),oRe=e=>r=>e?bE(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 Rt(E.useCallback(oRe(e),[e]),Ar)}const iRe=e=>e.updateNodeInternals;function lRe(){const e=Rt(iRe),[r]=E.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 E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function sRe({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=fr(),i=E.useRef(null),l=E.useRef(null),s=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),u=E.useRef(r),d=n&&!!e.internals.handleBounds;return E.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]),E.useEffect(()=>()=>{l.current&&(o?.unobserve(l.current),l.current=null)},[]),E.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 cRe({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}=Rt(ee=>{const re=ee.nodeLookup.get(e),pe=ee.parentLookup.has(e);return{node:re,internals:re.internals,isParent:pe}},Ar);let A=_.type||"default",D=w?.[A]||aq[A];D===void 0&&(C?.("003",Ql.error003(A)),A="default",D=w?.default||aq.default);const N=!!(_.draggable||s&&typeof _.draggable>"u"),$=!!(_.selectable||c&&typeof _.selectable>"u"),M=!!(_.connectable||u&&typeof _.connectable>"u"),j=!!(_.focusable||d&&typeof _.focusable>"u"),L=fr(),Y=ZF(_),O=sRe({node:_,nodeType:A,hasDimensions:Y,resizeObserver:p}),U=nq({nodeRef:O,disabled:_.hidden||!N,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:$,nodeClickDistance:k}),I=oq();if(_.hidden)return null;const q=Wn(_),V=JTe(_),G=$||N||r||n||o||a,F=n?ee=>n(ee,{...T.userNode}):void 0,J=o?ee=>o(ee,{...T.userNode}):void 0,Q=a?ee=>a(ee,{...T.userNode}):void 0,z=i?ee=>i(ee,{...T.userNode}):void 0,W=l?ee=>l(ee,{...T.userNode}):void 0,X=ee=>{const{selectNodesOnDrag:re,nodeDragThreshold:pe}=L.getState();$&&(!re||!N||pe>0)&&OE({id:e,store:L,nodeRef:O}),r&&r(ee,{...T.userNode})},Z=ee=>{if(!(tH(ee.nativeEvent)||b)){if(BF.includes(ee.key)&&$){const re=ee.key==="Escape";OE({id:e,store:L,unselect:re,nodeRef:O})}else if(N&&_.selected&&Object.prototype.hasOwnProperty.call(Dx,ee.key)){ee.preventDefault();const{ariaLabelConfig:re}=L.getState();L.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),I({direction:Dx[ee.key],factor:ee.shiftKey?4:1})}}},oe=()=>{if(b||!O.current?.matches(":focus-visible"))return;const{transform:ee,width:re,height:pe,autoPanOnNodeFocus:Ce,setCenter:ce}=L.getState();Ce&&(bE(new Map([[e,_]]),{x:0,y:0,width:re,height:pe},ee,!0).length>0||ce(_.position.x+q.width/2,_.position.y+q.height/2,{zoom:ee[2]}))};return y.jsx("div",{className:an(["react-flow__node",`react-flow__node-${A}`,{[g]:N},_.className,{selected:_.selected,selectable:$,parent:R,draggable:N,dragging:U}]),ref:O,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:G?"all":"none",visibility:Y?"visible":"hidden",..._.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:J,onMouseLeave:Q,onContextMenu:z,onClick:X,onDoubleClick:W,onKeyDown:j?Z:void 0,tabIndex:j?0:void 0,onFocus:j?oe:void 0,role:_.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${jH}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(VTe,{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:M,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:U,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...q})})})}const uRe=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function sq(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=Rt(uRe,Ar),l=aRe(e.onlyRenderVisibleElements),s=lRe();return y.jsx("div",{className:"react-flow__nodes",style:Nx,children:l.map(c=>y.jsx(cRe,{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))})}sq.displayName="NodeRenderer";const dRe=E.memo(sq);function pRe(e){return Rt(E.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&&pCe({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Ar)}const hRe=({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"})},fRe=({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"})},cq={[gx.Arrow]:hRe,[gx.ArrowClosed]:fRe};function mRe(e){const r=fr();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(cq,e)?cq[e]:(r.getState().onError?.("009",Ql.error009(e)),null),[e])}const gRe=({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=mRe(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},uq=({defaultColor:e,rfId:r})=>{const n=Rt(i=>i.edges),o=Rt(i=>i.defaultEdgeOptions),a=E.useMemo(()=>vCe(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(gRe,{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};uq.displayName="MarkerDefinitions";var yRe=E.memo(uq);function dq({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]=E.useState({x:1,y:0,width:0,height:0}),g=an(["react-flow__edge-textwrapper",u]),b=E.useRef(null);return E.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}dq.displayName="EdgeText";const bRe=E.memo(dq);function Px({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:an(["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&&Wi(r)&&Wi(n)?y.jsx(bRe,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function pq({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 hq({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top}){const[l,s]=pq({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=pq({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,p,f,g]=oH({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 fq(e){return E.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]=hq({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s}),R=e.isInternal?void 0:r;return y.jsx(Px,{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 vRe=fq({isInternal:!1}),mq=fq({isInternal:!0});vRe.displayName="SimpleBezierEdge",mq.displayName="SimpleBezierEdgeInternal";function gq(e){return E.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]=_x({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(Px,{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 yq=gq({isInternal:!1}),bq=gq({isInternal:!0});yq.displayName="SmoothStepEdge",bq.displayName="SmoothStepEdgeInternal";function vq(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(yq,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const xRe=vq({isInternal:!1}),xq=vq({isInternal:!0});xRe.displayName="StepEdge",xq.displayName="StepEdgeInternal";function wq(e){return E.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]=lH({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(Px,{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 wRe=wq({isInternal:!1}),kq=wq({isInternal:!0});wRe.displayName="StraightEdge",kq.displayName="StraightEdgeInternal";function _q(e){return E.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]=kx({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s,curvature:k?.curvature}),A=e.isInternal?void 0:r;return y.jsx(Px,{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 kRe=_q({isInternal:!1}),Eq=_q({isInternal:!0});kRe.displayName="BezierEdge",Eq.displayName="BezierEdgeInternal";const Sq={default:Eq,straight:kq,step:xq,smoothstep:bq,simplebezier:mq},Cq={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},_Re=(e,r,n)=>n===tt.Left?e-r:n===tt.Right?e+r:e,ERe=(e,r,n)=>n===tt.Top?e-r:n===tt.Bottom?e+r:e,Tq="react-flow__edgeupdater";function Rq({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:an([Tq,`${Tq}-${s}`]),cx:_Re(r,o,e),cy:ERe(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function SRe({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=fr(),x=(T,R)=>{if(T.button!==0)return;const{autoPanOnConnect:A,domNode:D,isValidConnection:N,connectionMode:$,connectionRadius:M,lib:j,onConnectStart:L,onConnectEnd:Y,cancelConnection:O,nodeLookup:U,rfId:I,panBy:q,updateConnection:V}=b.getState(),G=R.type==="target",F=(z,W)=>{f(!1),p?.(z,n,R.type,W)},J=z=>u?.(n,z),Q=(z,W)=>{f(!0),d?.(T,n,R.type),L?.(z,W)};RE.onPointerDown(T.nativeEvent,{autoPanOnConnect:A,connectionMode:$,connectionRadius:M,domNode:D,handleId:R.id,nodeId:R.nodeId,nodeLookup:U,isTarget:G,edgeUpdaterType:R.type,lib:j,flowId:I,cancelConnection:O,panBy:q,isValidConnection:N,onConnect:J,onConnectStart:Q,onConnectEnd:Y,onReconnectEnd:F,updateConnection:V,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(Rq,{position:s,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(Rq,{position:c,centerX:i,centerY:l,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function CRe({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 _=Rt(ce=>ce.edgeLookup.get(e));const T=Rt(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let R=_.type||"default",A=x?.[R]||Sq[R];A===void 0&&(k?.("011",Ql.error011(R)),R="default",A=x?.default||Sq.default);const D=!!(_.focusable||r&&typeof _.focusable>"u"),N=typeof p<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),$=!!(_.selectable||o&&typeof _.selectable>"u"),M=E.useRef(null),[j,L]=E.useState(!1),[Y,O]=E.useState(!1),U=fr(),{zIndex:I,sourceX:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q}=Rt(E.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),be=ce.nodeLookup.get(_.target);if(!de||!be)return{zIndex:_.zIndex,...Cq};const Oe=dH({id:e,sourceNode:de,targetNode:be,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:dCe({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:be,elevateOnSelect:ce.elevateEdgesOnSelect}),...Oe||Cq}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Ar),z=E.useMemo(()=>_.markerStart?`url('#${wE(_.markerStart,b)}')`:void 0,[_.markerStart,b]),W=E.useMemo(()=>_.markerEnd?`url('#${wE(_.markerEnd,b)}')`:void 0,[_.markerEnd,b]);if(_.hidden||q===null||V===null||G===null||F===null)return null;const X=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:be,multiSelectionActive:Oe}=U.getState();$&&(U.setState({nodesSelectionActive:!1}),_.selected&&Oe?(be({nodes:[],edges:[_]}),M.current?.blur()):de([e])),a&&a(ce,_)},Z=i?ce=>{i(ce,{..._})}:void 0,oe=l?ce=>{l(ce,{..._})}:void 0,ee=s?ce=>{s(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,pe=u?ce=>{u(ce,{..._})}:void 0,Ce=ce=>{if(!C&&BF.includes(ce.key)&&$){const{unselectNodesAndEdges:de,addSelectedEdges:be}=U.getState();ce.key==="Escape"?(M.current?.blur(),de({edges:[_]})):be([e])}};return y.jsx("svg",{style:{zIndex:I},children:y.jsxs("g",{className:an(["react-flow__edge",`react-flow__edge-${R}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!$&&!a,updating:j,selectable:$}]),onClick:X,onDoubleClick:Z,onContextMenu:oe,onMouseEnter:ee,onMouseMove:re,onMouseLeave:pe,onKeyDown:D?Ce: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?`${FH}-${b}`:void 0,ref:M,..._.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:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:z,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),N&&y.jsx(SRe,{edge:_,isReconnectable:N,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,sourceX:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q,setUpdateHover:L,setReconnecting:O})]})})}const TRe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Aq({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:_}=Rt(TRe,Ar),T=pRe(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(yRe,{defaultColor:e,rfId:n}),T.map(R=>y.jsx(CRe,{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))]})}Aq.displayName="EdgeRenderer";const RRe=E.memo(Aq),ARe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function NRe({children:e}){const r=Rt(ARe);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function DRe(e){const r=uf(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const PRe=e=>e.panZoom?.syncViewport;function $Re(e){const r=Rt(PRe),n=fr();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function MRe(e){return e.connection.inProgress?{...e.connection,to:y0(e.connection.to,e.transform)}:{...e.connection}}function ORe(e){return MRe}function IRe(e){const r=ORe();return Rt(r,Ar)}const LRe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function zRe({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:l,isValid:s,inProgress:c}=Rt(LRe,Ar);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:an(["react-flow__connection",qF(s)]),children:y.jsx(Nq,{style:r,type:n,CustomComponent:o,isValid:s})})}):null}const Nq=({style:e,type:r=eu.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:l,fromHandle:s,fromPosition:c,to:u,toNode:d,toHandle:p,toPosition:f}=IRe();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 eu.Bezier:[g]=kx(b);break;case eu.SimpleBezier:[g]=hq(b);break;case eu.Step:[g]=_x({...b,borderRadius:0});break;case eu.SmoothStep:[g]=_x(b);break;default:[g]=lH(b)}return y.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};Nq.displayName="ConnectionLine";const BRe={};function Dq(e=BRe){E.useRef(e),fr(),E.useEffect(()=>{},[e])}function jRe(){fr(),E.useRef(!1),E.useEffect(()=>{},[])}function Pq({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:M,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:O,preventScrolling:U,defaultMarkerColor:I,zoomOnScroll:q,zoomOnPinch:V,panOnScroll:G,panOnScrollSpeed:F,panOnScrollMode:J,zoomOnDoubleClick:Q,panOnDrag:z,onPaneClick:W,onPaneMouseEnter:X,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneScroll:ee,onPaneContextMenu:re,paneClickDistance:pe,nodeClickDistance:Ce,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:Oe,reconnectRadius:Xe,onReconnect:Ge,onReconnectStart:_t,onReconnectEnd:Qe,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:st,nodeExtent:Et,rfId:Pn,viewport:_e,onViewportChange:we}){return Dq(e),Dq(r),jRe(),DRe(n),$Re(_e),y.jsx(nRe,{onPaneClick:W,onPaneMouseEnter:X,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneContextMenu:re,onPaneScroll:ee,paneClickDistance:pe,deleteKeyCode:N,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,elementsSelectable:M,zoomOnScroll:q,zoomOnPinch:V,zoomOnDoubleClick:Q,panOnScroll:G,panOnScrollSpeed:F,panOnScrollMode:J,panOnDrag:z,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:O,onSelectionContextMenu:p,preventScrolling:U,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:st,onViewportChange:we,isControlledViewport:!!_e,children:y.jsxs(NRe,{children:[y.jsx(RRe,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:l,onReconnect:Ge,onReconnectStart:_t,onReconnectEnd:Qe,onlyRenderVisibleElements:$,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:Oe,reconnectRadius:Xe,defaultMarkerColor:I,noPanClassName:We,disableKeyboardA11y:st,rfId:Pn}),y.jsx(zRe,{style:x,type:b,component:w,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(dRe,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Ce,onlyRenderVisibleElements:$,noPanClassName:We,noDragClassName:St,disableKeyboardA11y:st,nodeExtent:Et,rfId:Pn}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}Pq.displayName="GraphView";const FRe=E.memo(Pq),$q=({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??d0;gH(b,x,w);const T=EE(k,f,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let R=[0,0,1];if(l&&a&&i){const A=tf(f,{filter:M=>!!((M.width||M.initialWidth)&&(M.height||M.initialHeight))}),{x:D,y:N,zoom:$}=tu(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:d0,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:ef.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:{...FF},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:aCe,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:jF}},HRe=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p})=>sTe((f,g)=>{async function b(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:R,maxZoom:A}=g();w&&(await nCe({nodes:x,width:_,height:T,panZoom:w,minZoom:R,maxZoom:A},k),C?.resolve(!0),f({fitViewResolver:null}))}return{...$q({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=EE(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();gH(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:$}=CCe(x,k,C,_,T,R);$&&(kCe(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=CE(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=Rx(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=Ax(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=>Fd(A,!0));_(R);return}_(cf(C,new Set([...x]),!0)),T(cf(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Fd(A,!0));T(R);return}T(cf(k,new Set([...x]))),_(cf(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(M=>{const j=_.get(M.id);return j&&(j.selected=!1),Fd(M.id,!1)}),$=D.map(M=>Fd(M.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,Fd(D.id,!1)]:A,[]),R=x.reduce((A,D)=>D.selected?[...A,Fd(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]||(EE(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 TCe({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:{...FF}})},updateConnection:x=>{f({connection:x})},reset:()=>f({...$q()})}},Object.is);function $x({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]=E.useState(()=>HRe({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(cTe,{value:g,children:y.jsx(PTe,{children:f})})}function qRe({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 E.useContext(Cx)?y.jsx(y.Fragment,{children:e}):y.jsx($x,{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 URe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function VRe({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:M,onEdgesDelete:j,onDelete:L,onSelectionChange:Y,onSelectionDragStart:O,onSelectionDrag:U,onSelectionDragStop:I,onSelectionContextMenu:q,onSelectionStart:V,onSelectionEnd:G,onBeforeDelete:F,connectionMode:J,connectionLineType:Q=eu.Bezier,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:X,deleteKeyCode:Z="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:ee=!1,selectionMode:re=p0.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:Ce=of()?"Meta":"Control",zoomActivationKeyCode:ce=of()?"Meta":"Control",snapToGrid:de,snapGrid:be,onlyRenderVisibleElements:Oe=!1,selectNodesOnDrag:Xe,nodesDraggable:Ge,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,nodeOrigin:Ke=HH,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:Et=!0,defaultViewport:Pn=kTe,minZoom:_e=.5,maxZoom:we=2,translateExtent:rt=d0,preventScrolling:at=!0,nodeExtent:Dt,defaultMarkerColor:Wr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Tr=!0,panOnScroll:vo=!1,panOnScrollSpeed:$n=.5,panOnScrollMode:Fr=zd.Free,zoomOnDoubleClick:no=!0,panOnDrag:ur=!0,onPaneClick:ha,onPaneMouseEnter:_s,onPaneMouseMove:Qp,onPaneMouseLeave:Cc,onPaneScroll:qb,onPaneContextMenu:Sg,paneClickDistance:Hu=0,nodeClickDistance:Jp=0,children:eh,onReconnect:Cg,onReconnectStart:Ub,onReconnectEnd:Ti,onEdgeContextMenu:Mn,onEdgeDoubleClick:oo,onEdgeMouseEnter:Es,onEdgeMouseMove:th,onEdgeMouseLeave:Vb,reconnectRadius:Yb=10,onNodesChange:Tg,onEdgesChange:Tc,noDragClassName:rh="nodrag",noWheelClassName:Ss="nowheel",noPanClassName:Ri="nopan",fitView:zl,fitViewOptions:Ai,connectOnClick:tn,attributionPosition:Rg,proOptions:Ag,defaultEdgeOptions:Bl,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Wb,disableKeyboardA11y:qu=!1,autoPanOnConnect:Ng,autoPanOnNodeDrag:Gb,autoPanSpeed:Uu,connectionRadius:Vu,isValidConnection:Fa,onError:nh,style:Dg,id:Ni,nodeDragThreshold:oh,connectionDragThreshold:ah,viewport:Xb,onViewportChange:Pg,width:Lo,height:$g,colorMode:Kb="light",debug:Yu,onScroll:Wu,ariaLabelConfig:Gu,...Zb},zo){const jl=Ni||"1",Mg=CTe(Kb),ih=E.useCallback(Di=>{Di.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Wu?.(Di)},[Wu]);return y.jsx("div",{"data-testid":"rf__wrapper",...Zb,onScroll:ih,style:{...Dg,...URe},ref:zo,className:an(["react-flow",a,Mg]),id:Ni,role:"application",children:y.jsxs(qRe,{nodes:e,edges:r,width:Lo,height:$g,fitView:zl,fitViewOptions:Ai,minZoom:_e,maxZoom:we,nodeOrigin:Ke,nodeExtent:Dt,children:[y.jsx(FRe,{onInit:u,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,nodeTypes:i,edgeTypes:l,connectionLineType:Q,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:X,selectionKeyCode:oe,selectionOnDrag:ee,selectionMode:re,deleteKeyCode:Z,multiSelectionKeyCode:Ce,panActivationKeyCode:pe,zoomActivationKeyCode:ce,onlyRenderVisibleElements:Oe,defaultViewport:Pn,translateExtent:rt,minZoom:_e,maxZoom:we,preventScrolling:at,zoomOnScroll:Pt,zoomOnPinch:Tr,zoomOnDoubleClick:no,panOnScroll:vo,panOnScrollSpeed:$n,panOnScrollMode:Fr,panOnDrag:ur,onPaneClick:ha,onPaneMouseEnter:_s,onPaneMouseMove:Qp,onPaneMouseLeave:Cc,onPaneScroll:qb,onPaneContextMenu:Sg,paneClickDistance:Hu,nodeClickDistance:Jp,onSelectionContextMenu:q,onSelectionStart:V,onSelectionEnd:G,onReconnect:Cg,onReconnectStart:Ub,onReconnectEnd:Ti,onEdgeContextMenu:Mn,onEdgeDoubleClick:oo,onEdgeMouseEnter:Es,onEdgeMouseMove:th,onEdgeMouseLeave:Vb,reconnectRadius:Yb,defaultMarkerColor:Wr,noDragClassName:rh,noWheelClassName:Ss,noPanClassName:Ri,rfId:jl,disableKeyboardA11y:qu,nodeExtent:Dt,viewport:Xb,onViewportChange:Pg}),y.jsx(STe,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:Ge,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:Et,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Wb,minZoom:_e,maxZoom:we,nodeExtent:Dt,onNodesChange:Tg,onEdgesChange:Tc,snapToGrid:de,snapGrid:be,connectionMode:J,translateExtent:rt,connectOnClick:tn,defaultEdgeOptions:Bl,fitView:zl,fitViewOptions:Ai,onNodesDelete:M,onEdgesDelete:j,onDelete:L,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onSelectionDrag:U,onSelectionDragStart:O,onSelectionDragStop:I,onMove:d,onMoveStart:p,onMoveEnd:f,noPanClassName:Ri,nodeOrigin:Ke,rfId:jl,autoPanOnConnect:Ng,autoPanOnNodeDrag:Gb,autoPanSpeed:Uu,onError:nh,connectionRadius:Vu,isValidConnection:Fa,selectNodesOnDrag:Xe,nodeDragThreshold:oh,connectionDragThreshold:ah,onBeforeDelete:F,paneClickDistance:Hu,debug:Yu,ariaLabelConfig:Gu}),y.jsx(wTe,{onSelectionChange:Y}),eh,y.jsx(gTe,{proOptions:Ag,position:Rg}),y.jsx(mTe,{rfId:jl,disableKeyboardA11y:qu})]})})}var YRe=JH(VRe);const WRe=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function Mq({children:e}){const r=Rt(WRe);return r?Bi.createPortal(e,r):null}function GRe(e){return Rt(E.useCallback(r=>r.nodeLookup.get(e),[e]),Ar)}function XRe({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:an(["react-flow__background-pattern",n,o])})}function KRe({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:an(["react-flow__background-pattern","dots",r])})}var Xi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Xi||(Xi={}));const ZRe={[Xi.Dots]:1,[Xi.Lines]:1,[Xi.Cross]:6},QRe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Oq({id:e,variant:r=Xi.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:l,bgColor:s,style:c,className:u,patternClassName:d}){const p=E.useRef(null),{transform:f,patternId:g}=Rt(QRe,Ar),b=o||ZRe[r],x=r===Xi.Dots,w=r===Xi.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:an(["react-flow__background",u]),style:{...c,...Nx,"--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(KRe,{radius:_/2,className:d}):y.jsx(XRe,{dimensions:R,lineWidth:a,variant:r,className:d})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}Oq.displayName="Background";const Iq=E.memo(Oq);function JRe(){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 eAe(){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 nAe(){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 Mx({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:an(["react-flow__controls-button",r]),...n,children:e})}const oAe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Lq({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=fr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=Rt(oAe,Ar),{zoomIn:_,zoomOut:T,fitView:R}=uf(),A=()=>{_(),i?.()},D=()=>{T(),l?.()},N=()=>{R(a),s?.()},$=()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return y.jsxs(ou,{className:an(["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(Mx,{onClick:A,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(JRe,{})}),y.jsx(Mx,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:y.jsx(eAe,{})})]}),n&&y.jsx(Mx,{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(Mx,{className:"react-flow__controls-interactive",onClick:$,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?y.jsx(nAe,{}):y.jsx(rAe,{})}),d]})}Lq.displayName="Controls",E.memo(Lq);function aAe({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:an(["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 iAe=E.memo(aAe),lAe=e=>e.nodes.map(r=>r.id),zE=e=>e instanceof Function?e:()=>e;function sAe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=iAe,onClick:l}){const s=Rt(lAe,Ar),c=zE(r),u=zE(e),d=zE(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:s.map(f=>y.jsx(uAe,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:l,shapeRendering:p},f))})}function cAe({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}=Rt(b=>{const{internals:x}=b.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=Wn(w);return{node:w,x:k,y:C,width:_,height:T}},Ar);return!u||u.hidden||!ZF(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 uAe=E.memo(cAe);var dAe=E.memo(sAe);const pAe=200,hAe=150,fAe=e=>!e.hidden,mAe=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?vx(tf(e.nodeLookup,{filter:fAe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},gAe="react-flow__minimap-desc";function zq({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=fr(),A=E.useRef(null),{boundingRect:D,viewBB:N,rfId:$,panZoom:M,translateExtent:j,flowWidth:L,flowHeight:Y,ariaLabelConfig:O}=Rt(mAe,Ar),U=e?.width??pAe,I=e?.height??hAe,q=D.width/U,V=D.height/I,G=Math.max(q,V),F=G*U,J=G*I,Q=T*G,z=D.x-(F-D.width)/2-Q,W=D.y-(J-D.height)/2-Q,X=F+Q*2,Z=J+Q*2,oe=`${gAe}-${$}`,ee=E.useRef(0),re=E.useRef();ee.current=G,E.useEffect(()=>{if(A.current&&M)return re.current=ICe({domNode:A.current,panZoom:M,getTransform:()=>R.getState().transform,getViewScale:()=>ee.current}),()=>{re.current?.destroy()}},[M]),E.useEffect(()=>{re.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[be,Oe]=re.current?.pointer(de)||[0,0];g(de,{x:be,y:Oe})}:void 0,Ce=b?E.useCallback((de,be)=>{const Oe=R.getState().nodeLookup.get(be).internals.userNode;b(de,Oe)},[]):void 0,ce=k??O["minimap.ariaLabel"];return y.jsx(ou,{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*G: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:an(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:U,height:I,viewBox:`${z} ${W} ${X} ${Z}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:A,onClick:pe,children:[ce&&y.jsx("title",{id:oe,children:ce}),y.jsx(dAe,{onClick:Ce,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:l,nodeComponent:s}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Q},${W-Q}h${X+Q*2}v${Z+Q*2}h${-X-Q*2}z
M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}zq.displayName="MiniMap",E.memo(zq);const yAe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,bAe={[sf.Line]:"right",[sf.Handle]:"bottom-right"};function vAe({nodeId:e,position:r,variant:n=sf.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=LE(),_=typeof e=="string"?e:C,T=fr(),R=E.useRef(null),A=n===sf.Handle,D=Rt(E.useCallback(yAe(A&&g),[A,g]),Ar),N=E.useRef(null),$=r??bAe[n];E.useEffect(()=>{if(!(!R.current||!_))return N.current||(N.current=QCe({domNode:R.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U,domNode:I}=T.getState();return{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U,paneDomNode:I}},onChange:(j,L)=>{const{triggerNodeChanges:Y,nodeLookup:O,parentLookup:U,nodeOrigin:I}=T.getState(),q=[],V={x:j.x,y:j.y},G=O.get(_);if(G&&G.expandParent&&G.parentId){const F=G.origin??I,J=j.width??G.measured.width??0,Q=j.height??G.measured.height??0,z={id:G.id,parentId:G.parentId,rect:{width:J,height:Q,...QF({x:j.x??G.position.x,y:j.y??G.position.y},{width:J,height:Q},G.parentId,O,F)}},W=CE([z],O,U,I);q.push(...W),V.x=j.x?Math.max(F[0]*J,j.x):void 0,V.y=j.y?Math.max(F[1]*Q,j.y):void 0}if(V.x!==void 0&&V.y!==void 0){const F={id:_,type:"position",position:{...V}};q.push(F)}if(j.width!==void 0&&j.height!==void 0){const F={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};q.push(F)}for(const F of L){const J={...F,type:"position"};q.push(J)}Y(q)},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 M=$.split("-");return y.jsx("div",{className:an(["react-flow__resize-control","nodrag",...M,n,o]),ref:R,style:{...a,scale:D,...l&&{[A?"backgroundColor":"borderColor"]:l}},children:i})}E.memo(vAe);const xAe=e=>e.domNode?.querySelector(".react-flow__renderer");function wAe({children:e}){const r=Rt(xAe);return r?Bi.createPortal(e,r):null}const kAe=(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,_Ae=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(kAe(o,r.get(n)))return!1;return!0},EAe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function Bq({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=tt.Top,offset:l=10,align:s="center",...c}){const u=LE(),d=E.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=Rt(d,_Ae),{x:f,y:g,zoom:b,selectedNodesCount:x}=Rt(EAe,Ar);if(!(typeof a=="boolean"?a:p.size===1&&p.values().next().value?.selected&&x===1)||!p.size)return null;const w=tf(p),k=Array.from(p.values()),C=Math.max(...k.map(T=>T.internals.z+1)),_={position:"absolute",transform:xCe(w,{x:f,y:g,zoom:b},i,l,s),zIndex:C,...o};return y.jsx(wAe,{children:y.jsx("div",{style:_,className:an(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce((T,R)=>`${T}${R.id} `,"").trim(),children:r})})}var SAe=Object.getOwnPropertyNames,CAe=Object.getOwnPropertySymbols,TAe=Object.prototype.hasOwnProperty;function jq(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function Ox(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 Fq(e){return SAe(e).concat(CAe(e))}var RAe=Object.hasOwn||(function(e,r){return TAe.call(e,r)});function Hd(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var AAe="__v",NAe="__o",DAe="_owner",Hq=Object.getOwnPropertyDescriptor,qq=Object.keys;function PAe(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 $Ae(e,r){return Hd(e.getTime(),r.getTime())}function MAe(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function OAe(e,r){return e===r}function Uq(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 IAe=Hd;function LAe(e,r,n){var o=qq(e),a=o.length;if(qq(r).length!==a)return!1;for(;a-- >0;)if(!Yq(e,r,n,o[a]))return!1;return!0}function w0(e,r,n){var o=Fq(e),a=o.length;if(Fq(r).length!==a)return!1;for(var i,l,s;a-- >0;)if(i=o[a],!Yq(e,r,n,i)||(l=Hq(e,i),s=Hq(r,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function zAe(e,r){return Hd(e.valueOf(),r.valueOf())}function BAe(e,r){return e.source===r.source&&e.flags===r.flags}function Vq(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 jAe(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 FAe(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 Yq(e,r,n,o){return(o===DAe||o===NAe||o===AAe)&&(e.$$typeof||r.$$typeof)?!0:RAe(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var HAe="[object Arguments]",qAe="[object Boolean]",UAe="[object Date]",VAe="[object Error]",YAe="[object Map]",WAe="[object Number]",GAe="[object Object]",XAe="[object RegExp]",KAe="[object Set]",ZAe="[object String]",QAe="[object URL]",JAe=Array.isArray,Wq=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,Gq=Object.assign,eNe=Object.prototype.toString.call.bind(Object.prototype.toString);function tNe(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;return function(g,b,x){if(g===b)return!0;if(g==null||b==null)return!1;var w=typeof g;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?l(g,b,x):w==="function"?a(g,b,x):!1;var k=g.constructor;if(k!==b.constructor)return!1;if(k===Object)return s(g,b,x);if(JAe(g))return r(g,b,x);if(Wq!=null&&Wq(g))return p(g,b,x);if(k===Date)return n(g,b,x);if(k===RegExp)return u(g,b,x);if(k===Map)return i(g,b,x);if(k===Set)return d(g,b,x);var C=eNe(g);return C===UAe?n(g,b,x):C===XAe?u(g,b,x):C===YAe?i(g,b,x):C===KAe?d(g,b,x):C===GAe?typeof g.then!="function"&&typeof b.then!="function"&&s(g,b,x):C===QAe?f(g,b,x):C===VAe?o(g,b,x):C===HAe?s(g,b,x):C===qAe||C===WAe||C===ZAe?c(g,b,x):!1}}function rNe(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?w0:PAe,areDatesEqual:$Ae,areErrorsEqual:MAe,areFunctionsEqual:OAe,areMapsEqual:o?jq(Uq,w0):Uq,areNumbersEqual:IAe,areObjectsEqual:o?w0:LAe,arePrimitiveWrappersEqual:zAe,areRegExpsEqual:BAe,areSetsEqual:o?jq(Vq,w0):Vq,areTypedArraysEqual:o?w0:jAe,areUrlsEqual:FAe};if(n&&(a=Gq({},a,n(a))),r){var i=Ox(a.areArraysEqual),l=Ox(a.areMapsEqual),s=Ox(a.areObjectsEqual),c=Ox(a.areSetsEqual);a=Gq({},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 oNe(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=au();au({strict:!0}),au({circular:!0}),au({circular:!0,strict:!0});var Gn=au({createInternalComparator:function(){return Hd}});au({strict:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd}}),au({circular:!0,createInternalComparator:function(){return Hd},strict:!0});function au(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=rNe(e),c=tNe(s),u=o?o(c):nNe(c);return oNe({circular:n,comparator:c,createState:a,equals:u,strict:l})}function aNe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function lr(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return aNe(e,r,n);throw Error("Wrong number of arguments")}const iNe=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=Xq(r,n),a=e(o);return Xq(a,-n)};function Xq(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 lNe(...e){return lr(iNe(Math.ceil),e)}function Ki(...e){return lr(sNe,e)}const sNe=(e,{min:r,max:n})=>r!==void 0&&e<r?r:n!==void 0&&e>n?n:e;function cNe(...e){return lr(uNe,e)}const uNe=(e,r)=>[...e,...r],Ix={done:!1,hasNext:!1};function yn(e,...r){let n=e,o=r.map(i=>"lazy"in i?dNe(i):void 0),a=0;for(;a<r.length;){if(o[a]===void 0||!pNe(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(Kq(c,l,i))break;let{isSingle:s}=i.at(-1);n=s?l[0]:l,a+=i.length}return n}function Kq(e,r,n){if(n.length===0)return r.push(e),!1;let o=e,a=Ix,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(Kq(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 dNe(e){let{lazy:r,lazyArgs:n}=e,o=r(...n);return Object.assign(o,{isSingle:r.single??!1,index:0,items:[]})}function pNe(e){return typeof e=="string"||typeof e=="object"&&!!e&&Symbol.iterator in e}function hNe(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return yn(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>yn(a,o),o)}throw Error("Wrong number of arguments")}function To(...e){return lr(fNe,e)}const fNe=(e,r)=>e.length>=r,Zq={asc:(e,r)=>e>r,desc:(e,r)=>e<r};function mNe(e,r){let[n,...o]=r;if(!gNe(n)){let i=BE(...o);return e(n,i)}let a=BE(n,...o);return i=>e(i,a)}function BE(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=Zq,l=r===void 0?void 0:BE(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 gNe(e){if(Qq(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return Qq(r)&&typeof n=="string"&&n in Zq&&o.length===0}const Qq=e=>typeof e=="function"&&e.length===1;function jE(...e){return lr(Object.entries,e)}function df(...e){return lr(yNe,e,bNe)}const yNe=(e,r)=>e.filter(r),bNe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:Ix,Jq=e=>Object.assign(e,{single:!0});function Lx(...e){return lr(vNe,e,Jq(xNe))}const vNe=(e,r)=>e.find(r),xNe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:Ix;function pf(...e){return lr(wNe,e,Jq(kNe))}const wNe=([e])=>e,kNe=()=>_Ne,_Ne=e=>({hasNext:!0,next:e,done:!0});function ENe(...e){return lr(SNe,e,CNe)}const SNe=(e,r)=>e.flatMap(r),CNe=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 TNe(...e){return lr(RNe,e)}function RNe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function ANe(...e){return lr(NNe,e)}const NNe=(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 DNe(...e){return lr(k0,e)}function k0(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 PNe(e,r);if(e instanceof Map)return $Ne(e,r);if(e instanceof Set)return MNe(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)||!k0(o,r[n]))return!1;return!0}function PNe(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!k0(o,r[n]))return!1;return!0}function $Ne(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!k0(o,r.get(n)))return!1;return!0}function MNe(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(k0(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}function ONe(...e){return lr(INe,e)}function INe(e,r){for(let[n,o]of Object.entries(r))if(!Object.hasOwn(e,n)||!DNe(o,e[n]))return!1;return!0}function FE(e){return Array.isArray(e)}function eU(e){return typeof e=="boolean"}function HE(e){return e!==void 0}function iu(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 LNe(e){return e!==null}function tU(e){return e!=null}function rU(e){return e==null}function nU(e){return typeof e=="number"&&!Number.isNaN(e)}function qE(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function UE(e){return typeof e=="string"}function Sa(e){return!!e}function oU(...e){return lr(zNe,e)}const zNe=(e,r)=>e.join(r);function VE(...e){return lr(Object.keys,e)}function qd(...e){return lr(BNe,e)}const BNe=e=>e.at(-1);function Ro(...e){return lr(jNe,e,FNe)}const jNe=(e,r)=>e.map(r),FNe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function E0(...e){return lr(HNe,e)}function HNe(e,r){let n={};for(let[o,a]of e.entries()){let[i,l]=r(a,o,e);n[i]=l}return n}function qNe(...e){return lr(UNe,e)}function UNe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function aU(...e){return lr(iU,e)}function iU(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!qE(a))continue;let{[o]:i}=r;qE(i)&&(n[o]=iU(a,i))}return n}function Ud(...e){return lr(VNe,e)}function VNe(e,r){if(!To(r,1))return{...e};if(!To(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function zx(...e){return lr(YNe,e)}const YNe=e=>e.length===1?e[0]:void 0;function lU(...e){return lr(WNe,e)}const WNe=(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 sU(...e){return lr(GNe,e)}function GNe(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function XNe(...e){return lr(KNe,e)}function KNe(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function Ca(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>cU(n,e,...r):cU(e,...r)}function cU(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function ZNe(...e){return lr(QNe,e)}function QNe(e,r){let n=[];for(let o=e;o<r;o++)n.push(o);return n}function hf(...e){return lr(JNe,e)}const JNe=(e,r,n)=>e.reduce(r,n);function eDe(...e){return lr(tDe,e)}function tDe(e){return[...e].reverse()}function rDe(...e){return lr(nDe,e)}function nDe(e,r){let n=[...e];return n.sort(r),n}function Bx(...e){return mNe(oDe,e)}const oDe=(e,r)=>[...e].sort(r);function uU(...e){return lr(aDe,e)}function aDe(e,r){return r(e),e}function YE(...e){return hNe(iDe,e)}function iDe(){let e=new Set;return r=>e.has(r)?Ix:(e.add(r),{done:!1,hasNext:!0,next:r})}let Zi=[],lu=0;const jx=4;let lDe=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+jx;i<Zi.length;)Zi[i]===o?Zi.splice(i,jx):i+=jx;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){let i=!Zi.length;for(let l of r)Zi.push(l,n.value,o,a);if(i){for(lu=0;lu<Zi.length;lu+=jx)Zi[lu](Zi[lu+1],Zi[lu+2],Zi[lu+3]);Zi.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 Jl=function(){return Jl=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},Jl.apply(this,arguments)};function dU(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 sDe(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 Fx="right-scroll-bar-position",Hx="width-before-scroll-bar",cDe="with-scroll-bars-hidden",uDe="--removed-body-scroll-bar-size";function WE(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function dDe(e,r){var n=E.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 pDe=typeof window<"u"?E.useLayoutEffect:E.useEffect,pU=new WeakMap;function hDe(e,r){var n=dDe(null,function(o){return e.forEach(function(a){return WE(a,o)})});return pDe(function(){var o=pU.get(n);if(o){var a=new Set(o),i=new Set(e),l=n.current;a.forEach(function(s){i.has(s)||WE(s,null)}),i.forEach(function(s){a.has(s)||WE(s,l)})}pU.set(n,e)},[e]),n}function fDe(e){return e}function mDe(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 gDe(e){e===void 0&&(e={});var r=mDe(null);return r.options=Jl({async:!0,ssr:!1},e),r}var hU=function(e){var r=e.sideCar,n=dU(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 E.createElement(o,Jl({},n))};hU.isSideCarExport=!0;function yDe(e,r){return e.useMedium(r),hU}var fU=gDe(),GE=function(){},qx=E.forwardRef(function(e,r){var n=E.useRef(null),o=E.useState({onScrollCapture:GE,onWheelCapture:GE,onTouchMoveCapture:GE}),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=dU(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=f,A=hDe([n,r]),D=Jl(Jl({},T),a);return E.createElement(E.Fragment,null,d&&E.createElement(R,{sideCar:fU,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),l?E.cloneElement(E.Children.only(s),Jl(Jl({},D),{ref:A})):E.createElement(C,Jl({},D,{className:c,ref:A}),s))});qx.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},qx.classNames={fullWidth:Hx,zeroRight:Fx};var bDe=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function vDe(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=bDe();return r&&e.setAttribute("nonce",r),e}function xDe(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function wDe(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var kDe=function(){var e=0,r=null;return{add:function(n){e==0&&(r=vDe())&&(xDe(r,n),wDe(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},_De=function(){var e=kDe();return function(r,n){E.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},mU=function(){var e=_De(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},EDe={left:0,top:0,right:0,gap:0},XE=function(e){return parseInt(e||"",10)||0},SDe=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[XE(n),XE(o),XE(a)]},CDe=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return EDe;var r=SDe(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])}},TDe=mU(),ff="data-scroll-locked",RDe=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(cDe,` {
overflow: hidden `).concat(o,`;
padding-right: `).concat(s,"px ").concat(o,`;
}
body[`).concat(ff,`] {
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(Fx,` {
right: `).concat(s,"px ").concat(o,`;
}
.`).concat(Hx,` {
margin-right: `).concat(s,"px ").concat(o,`;
}
.`).concat(Fx," .").concat(Fx,` {
right: 0 `).concat(o,`;
}
.`).concat(Hx," .").concat(Hx,` {
margin-right: 0 `).concat(o,`;
}
body[`).concat(ff,`] {
`).concat(uDe,": ").concat(s,`px;
}
`)},gU=function(){var e=parseInt(document.body.getAttribute(ff)||"0",10);return isFinite(e)?e:0},ADe=function(){E.useEffect(function(){return document.body.setAttribute(ff,(gU()+1).toString()),function(){var e=gU()-1;e<=0?document.body.removeAttribute(ff):document.body.setAttribute(ff,e.toString())}},[])},NDe=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;ADe();var i=E.useMemo(function(){return CDe(a)},[a]);return E.createElement(TDe,{styles:RDe(i,!r,a,n?"":"!important")})},KE=!1;if(typeof window<"u")try{var Ux=Object.defineProperty({},"passive",{get:function(){return KE=!0,!0}});window.addEventListener("test",Ux,Ux),window.removeEventListener("test",Ux,Ux)}catch{KE=!1}var mf=KE?{passive:!1}:!1,DDe=function(e){return e.tagName==="TEXTAREA"},yU=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!DDe(e)&&n[r]==="visible")},PDe=function(e){return yU(e,"overflowY")},$De=function(e){return yU(e,"overflowX")},bU=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=vU(e,o);if(a){var i=xU(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},MDe=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},ODe=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},vU=function(e,r){return e==="v"?PDe(r):$De(r)},xU=function(e,r){return e==="v"?MDe(r):ODe(r)},IDe=function(e,r){return e==="h"&&r==="rtl"?-1:1},LDe=function(e,r,n,o,a){var i=IDe(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=xU(e,s),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&vU(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},Vx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},wU=function(e){return[e.deltaX,e.deltaY]},kU=function(e){return e&&"current"in e?e.current:e},zDe=function(e,r){return e[0]===r[0]&&e[1]===r[1]},BDe=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},jDe=0,gf=[];function FDe(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(jDe++)[0],i=E.useState(mU)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=sDe([e.lockRef.current],(e.shards||[]).map(kU)).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=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var k=Vx(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=bU(D,A);if(!N)return!0;if(N?R=D:(R=D==="v"?"h":"v",N=bU(D,A)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=R),!R)return!0;var $=o.current||R;return LDe($,w,x,$==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!gf.length||gf[gf.length-1]!==i)){var k="deltaY"in w?wU(w):Vx(w),C=r.current.filter(function(R){return R.name===w.type&&(R.target===w.target||w.target===R.shadowParent)&&zDe(R.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(l.current.shards||[]).map(kU).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=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:HDe(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=E.useCallback(function(x){n.current=Vx(x),o.current=void 0},[]),p=E.useCallback(function(x){u(x.type,wU(x),x.target,s(x,e.lockRef.current))},[]),f=E.useCallback(function(x){u(x.type,Vx(x),x.target,s(x,e.lockRef.current))},[]);E.useEffect(function(){return gf.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,mf),document.addEventListener("touchmove",c,mf),document.addEventListener("touchstart",d,mf),function(){gf=gf.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,mf),document.removeEventListener("touchmove",c,mf),document.removeEventListener("touchstart",d,mf)}},[]);var g=e.removeScrollBar,b=e.inert;return E.createElement(E.Fragment,null,b?E.createElement(i,{styles:BDe(a)}):null,g?E.createElement(NDe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function HDe(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const qDe=yDe(fU,FDe);var S0=E.forwardRef(function(e,r){return E.createElement(qx,Jl({},e,{ref:r,sideCar:qDe}))});S0.classNames=qx.classNames;function Ao(e){return Object.keys(e)}function ZE(e){return e&&typeof e=="object"&&!Array.isArray(e)}function QE(e,r){const n={...e},o=r;return ZE(e)&&ZE(r)&&Object.keys(r).forEach(a=>{ZE(o[a])&&a in e?n[a]=QE(n[a],o[a]):n[a]=o[a]}),n}function UDe(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function VDe(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function JE(e){const r=VDe(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 _U(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function EU(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?_U(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?_U(i):i}}return o}return n}const Ae=EU("rem",{shouldScale:!0}),SU=EU("em");function yf(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function CU(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 Qi(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function ri(e){const r=E.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function C0(e=null){const r=E.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function TU(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function bf(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function YDe(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 WDe(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 GDe(e,r,n){return bf(e,n)===bf(r,n)}function T0({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(bf(s.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>GDe(s.currentTarget,b,e)),u=c.findIndex(b=>s.currentTarget===b),d=WDe(u,c,o),p=YDe(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 XDe={app:100,modal:200,popover:300,overlay:400,max:9999};function Yx(e){return XDe[e]}const RU=()=>{};function KDe(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||RU:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function sr(e,r="size",n=!0){if(e!==void 0)return CU(e)?n?Ae(e):e:`var(--${r}-${e})`}function qs(e){return sr(e,"mantine-spacing")}function bn(e){return e===void 0?"var(--mantine-radius-default)":sr(e,"mantine-radius")}function No(e){return sr(e,"mantine-font-size")}function ZDe(e){return sr(e,"mantine-line-height",!1)}function AU(e){if(e)return sr(e,"mantine-shadow",!1)}function vn(e,r){return n=>{e?.(n),r?.(n)}}function QDe(e,r){return e in r?JE(r[e]):JE(e)}function NU(e,r){const n=e.map(o=>({value:o,px:QDe(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function R0(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function JDe(e,r,n){return n?Array.from(bf(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function su(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 e9(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function ePe(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 it(e){const r=E.useRef(e);return E.useEffect(()=>{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function vf(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=it(e),l=E.useRef(0),s=E.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 E.useEffect(()=>()=>{o?s.flush():s.cancel()},[s,o]),s}const tPe=["mousedown","touchstart"];function DU(e,r,n){const o=E.useRef(null),a=r||tPe;return E.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()}else o.current&&!o.current.contains(s)&&e()};return a.forEach(l=>document.addEventListener(l,i)),()=>{a.forEach(l=>document.removeEventListener(l,i))}},[o,e,n]),o}function rPe(e={timeout:2e3}){const[r,n]=E.useState(null),[o,a]=E.useState(!1),[i,l]=E.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 oPe(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function PU(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:oPe(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),nPe(i,l=>a(l.matches))}catch{return}},[e]),o||!1}function $U(e,r){return PU("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function aPe(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(null),l=E.useRef(!0),s=()=>window.clearTimeout(i.current);E.useEffect(()=>s,[]);const c=E.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 t9(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(!1),l=E.useRef(null),s=E.useRef(!1),c=E.useCallback(()=>window.clearTimeout(l.current),[]);return E.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]),E.useEffect(()=>(i.current=!0,c),[]),[o,c]}const A0=typeof document<"u"?E.useLayoutEffect:E.useEffect;function Vd(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function iPe({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return Vd(()=>{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 lPe=/input|select|textarea|button|object/,MU="a, input, select, textarea, button, object, [tabindex]";function sPe(e){return e.style.display==="none"}function cPe(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(sPe(r))return!1;r=r.parentNode}return!0}function OU(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function r9(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(OU(e));return(lPe.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&cPe(e)}function IU(e){const r=OU(e);return(Number.isNaN(r)||r>=0)&&r9(e)}function uPe(e){return Array.from(e.querySelectorAll(MU)).filter(IU)}function dPe(e,r){const n=uPe(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 LU(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const l=Array.from(a.querySelectorAll(MU));i=l.find(IU)||l.find(r9)||null,!i&&r9(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&dPe(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const pPe=Xr.useId||(()=>{});function hPe(){const e=pPe();return e?`mantine-${e.replace(/:/g,"")}`:""}function Ta(e){const r=hPe(),[n,o]=E.useState(r);return A0(()=>{o(e9())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function xf(e,r,n){E.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 mPe(e){try{return e&&JSON.parse(e)}catch{return e}}function gPe(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 zU(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=gPe(e);return function({key:l,defaultValue:s,getInitialValueInEffect:c=!0,sync:u=!0,deserialize:d=mPe,serialize:p=f=>fPe(f,r)}){const f=E.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]=E.useState(f(c)),x=E.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=E.useCallback(()=>{i(l),window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:s}}))},[]);return xf("storage",k=>{u&&k.storageArea===window[e]&&k.key===l&&b(d(k.newValue??void 0))}),xf(n,k=>{u&&k.detail.key===l&&b(k.detail.value)}),E.useEffect(()=>{s!==void 0&&g===void 0&&x(s)},[s,g,x]),E.useEffect(()=>{const k=f();k!==void 0&&x(k)},[l]),[g===void 0?s:g,x,w]}}function yPe(e){return zU("localStorage","use-local-storage")(e)}function bPe(e){return zU("sessionStorage","use-session-storage")(e)}function n9(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function BU(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=n9(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():n9(o,null)}),r.clear()}}}function Nr(...e){return E.useCallback(BU(...e),e)}function vPe(e){return{x:su(e.x,0,1),y:su(e.y,0,1)}}function jU(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[l,s]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.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=su((_-R.left)/R.width,0,1);e({x:n==="ltr"?A:1-A,y:su((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 Us({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(s,...c)=>{i(s),o?.(s,...c)},!1]}function FU(e,r){return PU("(prefers-reduced-motion: reduce)",e,r)}function xPe(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(!ePe(e[n],r[n]))return!1;return!0}function wPe(e){const r=E.useRef([]),n=E.useRef(0);return xPe(r.current,e)||(r.current=e,n.current+=1),[n.current]}function kPe(e,r){E.useEffect(e,wPe(r))}const HU={passive:!0};function _Pe(){const[e,r]=E.useState({width:0,height:0}),n=E.useCallback(()=>{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return xf("resize",n,HU),xf("orientationchange",n,HU),E.useEffect(n,[]),e}const EPe={" ":"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 Wx(e){const r=e.replace("Key","").toLowerCase();return EPe[e]||r}function SPe(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 CPe(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?Wx(b)===Wx(c):Wx(g??b)===Wx(c)))}function qU(e,r){return n=>CPe(SPe(e),n,r)}function o9(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{qU(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function TPe(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function RPe(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){E.useEffect(()=>{const o=a=>{e.forEach(([i,l,s={preventDefault:!0,usePhysicalKeys:!1}])=>{qU(i,s.usePhysicalKeys)(a)&&TPe(a,r,n)&&(s.preventDefault&&a.preventDefault(),l(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function a9(){const[e,r]=E.useState(!1),n=E.useRef(null),o=E.useCallback(()=>{r(!0)},[]),a=E.useCallback(()=>{r(!1)},[]);return{ref:E.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 APe(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(s=>s||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(s=>s&&(r.onClose?.(),!1))},[r.onClose]),l=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:l}]}function NPe(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function DPe({onBlur:e,onFocus:r}={}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(null),l=E.useCallback(d=>{o(d),a.current=d},[]),s=E.useCallback(d=>{a.current||(l(!0),r?.(d))},[r]),c=E.useCallback(d=>{a.current&&!NPe(d)&&(l(!1),e?.(d))},[e]),u=E.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 E.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",s),i.current.removeEventListener("focusout",c))},[]),{ref:u,focused:n}}function UU(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...l)=>{o.current||(o.current=window.setTimeout(()=>{e(l),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function VU(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.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 PPe(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function YU(e){const[r,n]=E.useState({history:[e],current:0}),o=E.useCallback(c=>n(u=>{const d=[...u.history.slice(0,u.current+1),c];return{history:d,current:d.length-1}}),[]),a=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.max(0,u.current-c)})),[]),i=E.useCallback((c=1)=>n(u=>({history:u.history,current:Math.min(u.history.length-1,u.current+c)})),[]),l=E.useCallback(()=>{n({history:[e],current:0})},[e]),s=E.useMemo(()=>({back:a,forward:i,reset:l,set:o}),[a,i,l,o]);return[r.history[r.current],s,r]}function $Pe(e,r){const n=it(e),o=E.useRef(null),a=E.useRef(null),i=E.useRef(!0),l=E.useRef(r),s=E.useRef(-1),c=()=>window.clearTimeout(s.current),u=E.useCallback((...f)=>{n(...f),o.current=f,a.current=f,i.current=!1},[n]),d=E.useCallback(()=>{o.current&&o.current!==a.current?(u(...o.current),s.current=window.setTimeout(d,l.current)):i.current=!0},[u]),p=E.useCallback((...f)=>{i.current?(u(...f),s.current=window.setTimeout(d,l.current)):o.current=f},[u,d]);return E.useEffect(()=>{l.current=r},[r]),[p,c]}function MPe(e,r){return $Pe(e,r)[0]}function OPe(){return typeof process<"u"&&process.env?"production":"development"}function WU(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 GU(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function Gx(e){const r=Xr.version;return typeof Xr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function XU(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=XU(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Ji(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=XU(e))&&(o&&(o+=" "),o+=r);return o}const IPe={};function LPe(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=Ji(r[o],a):r[o]=a})}),r}function Xx({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||IPe);return LPe(a)}function Kx({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 Zx=E.createContext(null);function cu(){const e=E.useContext(Zx);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function zPe(){return cu().cssVariablesResolver}function BPe(){return cu().classNamesPrefix}function Yd(){return cu().getStyleNonce}function jPe(){return cu().withStaticClasses}function FPe(){return cu().headless}function HPe(){return cu().stylesTransform?.sx}function qPe(){return cu().stylesTransform?.styles}function Qx(){return cu().env||"default"}function UPe(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function VPe(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 YPe(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 WPe(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 i9(e){return UPe(e)?VPe(e):e.startsWith("rgb")?YPe(e):e.startsWith("hsl")?WPe(e):{r:0,g:0,b:0,a:1}}function Jx(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=i9(e),l=1-r,s=c=>Math.round(c*l);return`rgba(${s(n)}, ${s(o)}, ${s(a)}, ${i})`}function N0(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function l9(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function GPe(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function XPe(e){if(e.startsWith("oklch("))return(GPe(e)||0)/100;const{r,g:n,b:o}=i9(e),a=r/255,i=n/255,l=o/255,s=l9(a),c=l9(i),u=l9(l);return .2126*s+.7152*c+.0722*u}function D0(e,r=.179){return e.startsWith("var(")?!1:XPe(e)>r}function uu({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:D0(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:D0(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:D0(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][N0(r,n||"light")];return{color:o,value:s,shade:i,isThemeColor:l,isLight:D0(s,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:D0(e,r.luminanceThreshold),shade:i,variable:void 0}}function Jo(e,r){const n=uu({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function s9(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Jo(n.from,r),a=Jo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function es(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}=i9(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const wf=es,KPe=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=uu({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:Jx(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:es(s,.1),hover:es(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ae(1)} solid transparent`}}return{background:es(e,.1),hover:es(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:es(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:es(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:es(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Ae(1)} solid transparent`}}return{background:"transparent",hover:es(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:Jx(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jx(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Ae(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Jx(r.white,.01),color:e,border:`${Ae(1)} solid transparent`}:n==="gradient"?{background:s9(o,r),hover:s9(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)`}:{}},ZPe={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"]},KU="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",c9={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:ZPe,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:KPe,autoContrast:!1,luminanceThreshold:.3,fontFamily:KU,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:KU,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 ZU(e){return e==="auto"||e==="dark"||e==="light"}function QPe({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 ZU(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&&ZU(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const JPe="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more https://mantine.dev/theming/colors/#primary-color",QU="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function u9(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function JU(e){if(!(e.primaryColor in e.colors))throw new Error(JPe);if(typeof e.primaryShade=="object"&&(!u9(e.primaryShade.dark)||!u9(e.primaryShade.light)))throw new Error(QU);if(typeof e.primaryShade=="number"&&!u9(e.primaryShade))throw new Error(QU)}function e$e(e,r){if(!r)return JU(e),e;const n=QE(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),JU(n),n}const d9=E.createContext(null),t$e=()=>E.useContext(d9)||c9;function po(){const e=E.useContext(d9);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 eV({theme:e,children:r,inherit:n=!0}){const o=t$e(),a=E.useMemo(()=>e$e(n?o:c9,e),[e,o,n]);return y.jsx(d9.Provider,{value:a,children:r})}eV.displayName="@mantine/core/MantineThemeProvider";function r$e(){const e=po(),r=Yd(),n=Ao(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),l=JE(e.breakpoints[a]),s=i?`${l-.1}px`:SU(l-.1),c=i?`${l}px`:SU(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 p9(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function h9(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function n$e(e,r){const n=p9(e.variables),o=n?h9(r,n):"",a=p9(e.dark),i=p9(e.light),l=a?h9(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",s=i?h9(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o}
${l}
${s}`}function f9({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&uu({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function tV(e,r){return f9({color:e.colors[e.primaryColor][N0(e,r)],theme:e,autoContrast:null})}function ew({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const s=N0(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`]:wf(e.colors[r][s],.1),[`--mantine-color-${o}-light-hover`]:wf(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`]:wf(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=N0(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`]:wf(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:wf(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`]:wf(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 o$e(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function kf(e,r,n){Ao(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const rV=e=>{const r=N0(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":tV(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":tV(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)"}};kf(o.variables,e.breakpoints,"breakpoint"),kf(o.variables,e.spacing,"spacing"),kf(o.variables,e.fontSizes,"font-size"),kf(o.variables,e.lineHeights,"line-height"),kf(o.variables,e.shadows,"shadow"),kf(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{o.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Ao(e.colors).forEach(i=>{const l=e.colors[i];if(o$e(l)){Object.assign(o.light,ew({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,ew({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,ew({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,ew({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return Ao(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 a$e({theme:e,generator:r}){const n=rV(e),o=r?.(e);return o?QE(n,o):n}const m9=rV(c9);function i$e(e){const r={variables:{},light:{},dark:{}};return Ao(e.variables).forEach(n=>{m9.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),Ao(e.light).forEach(n=>{m9.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),Ao(e.dark).forEach(n=>{m9.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function l$e(e){return`
${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function nV({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=po(),o=Yd(),a=zPe(),i=a$e({theme:n,generator:a}),l=e===":root"&&r,s=l?i$e(i):i,c=n$e(s,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${l?"":l$e(e)}`}}):null}nV.displayName="@mantine/CssVariables";function _f(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 s$e({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=E.useRef(null),[i,l]=E.useState(()=>e.get(r)),s=o||i,c=E.useCallback(d=>{o||(_f(d,n),l(d),e.set(d))},[e.set,s,o]),u=E.useCallback(()=>{l(r),_f(r,n),e.clear()},[e.clear,r]);return E.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),A0(()=>{_f(e.get(r),n)},[]),E.useEffect(()=>{if(o)return _f(o,n),()=>{};o===void 0&&_f(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const d=p=>{i==="auto"&&_f(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 c$e({respectReducedMotion:e,getRootElement:r}){A0(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function g9({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=QPe(),defaultColorScheme:d="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:g,stylesTransform:b,env:x}){const{colorScheme:w,setColorScheme:k,clearColorScheme:C}=s$e({defaultColorScheme:d,forceColorScheme:g,manager:u,getRootElement:p});return c$e({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:p}),y.jsx(Zx.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(eV,{theme:e,children:[l&&y.jsx(nV,{cssVariablesSelector:s,deduplicateCssVariables:i}),a&&y.jsx(r$e,{}),r]})})}g9.displayName="@mantine/core/MantineProvider";function y9({classNames:e,styles:r,props:n,stylesCtx:o}){const a=po();return{resolvedClassNames:Xx({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:Kx({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const u$e={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function d$e({theme:e,options:r,unstyled:n}){return Ji(r?.focusable&&!n&&(e.focusClassName||u$e[e.focusRing]),r?.active&&!n&&e.activeClassName)}function p$e({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return Xx({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function oV({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return Xx({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function h$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 m$e({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function g$e({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>Xx({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function y$e({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function b$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 Ji(d$e({theme:e,options:r,unstyled:s||g}),g$e({theme:e,themeName:n,selector:o,props:d,stylesCtx:p}),y$e({options:r,classes:l,selector:o,unstyled:s}),oV({selector:o,stylesCtx:p,theme:e,classNames:i,props:d}),oV({selector:o,stylesCtx:p,theme:e,classNames:b,props:d}),p$e({selector:o,stylesCtx:p,options:r,props:d,theme:e}),h$e({rootSelector:u,selector:o,className:c}),f$e({selector:o,classes:l,unstyled:s||g}),f&&!g&&m$e({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function v$e({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>Kx({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,l)=>({...i,...l}),{})}function b9({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...b9({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function x$e(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...yf(n[o])}}),r),{})}function w$e({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:l,headless:s}){return x$e([s?{}:r?.(n,o,a),...l.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function k$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&&v$e({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&Kx({theme:e,styles:s,props:a,stylesCtx:i})[n],...!f&&Kx({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...w$e({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:p}),...l===n?b9({style:c,theme:e}):null,...b9({style:o?.style,theme:e})}}function _$e({props:e,stylesCtx:r,themeName:n}){const o=po(),a=qPe()?.();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 bt({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=po(),b=BPe(),x=jPe(),w=FPe(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=_$e({props:n,stylesCtx:o,themeName:k});return(T,R)=>({className:b$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:k$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 E$e(e,r){return typeof e=="boolean"?e:r.autoContrast}function aV(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 S$e({keepTransitions:e}={}){const r=E.useRef(RU),n=E.useRef(-1),o=E.useContext(Zx),a=Yd(),i=E.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const l=p=>{o.setColorScheme(p),r.current=e?()=>{}:aV(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},s=()=>{o.clearColorScheme(),r.current=e?()=>{}:aV(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=$U("light",{getInitialValueInEffect:!1}),u=o.colorScheme==="auto"?c:o.colorScheme,d=E.useCallback(()=>l(u==="light"?"dark":"light"),[l,u]);return E.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:l,clearColorScheme:s,toggleColorScheme:d}}function ze(e,r,n){const o=po(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...yf(n)}}function v9(e){return Ao(e).reduce((r,n)=>e[n]!==void 0?`${r}${UDe(n)}:${e[n]};`:r,"").trim()}function C$e({selector:e,styles:r,media:n,container:o}){const a=r?v9(r):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${v9(s.styles)}}}`):[],l=Array.isArray(o)?o.map(s=>`@container ${s.query}{${e}{${v9(s.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${l.join("")}`.trim()}function tw(e){const r=Yd();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:C$e(e)}})}function iV(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:M,lts:j,ta:L,lh:Y,fs:O,tt:U,td:I,w:q,miw:V,maw:G,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:X,bga:Z,pos:oe,top:ee,left:re,bottom:pe,right:Ce,inset:ce,display:de,flex:be,hiddenFrom:Oe,visibleFrom:Xe,lightHidden:Ge,darkHidden:_t,sx:Qe,...St}=e;return{styleProps:yf({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:M,lts:j,ta:L,lh:Y,fs:O,tt:U,td:I,w:q,miw:V,maw:G,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:X,bga:Z,pos:oe,top:ee,left:re,bottom:pe,right:Ce,inset:ce,display:de,flex:be,bdrs:T,hiddenFrom:Oe,visibleFrom:Xe,lightHidden:Ge,darkHidden:_t,sx:Qe}),rest:St}}const T$e={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 x9(e,r){const n=uu({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 R$e(e,r){const n=uu({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:x9(e,r)}function A$e(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+=` ${x9(a.join(" "),r)}`),i.trim()}return e}const lV={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 N$e(e){return typeof e=="string"&&e in lV?lV[e]:e}const D$e=["h1","h2","h3","h4","h5","h6"];function P$e(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&D$e.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Ae(e):e}function $$e(e){return e}const M$e=["h1","h2","h3","h4","h5","h6"];function O$e(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&M$e.includes(e)?`var(--mantine-${e}-line-height)`:e}function I$e(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Ae(e):e}function L$e(e){return typeof e=="number"?Ae(e):e}function z$e(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 w9={color:x9,textColor:R$e,fontSize:P$e,spacing:z$e,radius:I$e,identity:$$e,size:L$e,lineHeight:O$e,fontFamily:N$e,border:A$e};function sV(e){return e.replace("(min-width: ","").replace("em)","")}function B$e({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(sV(o))-Number(sV(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function j$e(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function F$e(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function H$e(e){return typeof e=="object"&&e!==null?Ao(e).filter(r=>r!=="base"):[]}function q$e(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function cV({styleProps:e,data:r,theme:n}){return B$e(Ao(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=F$e(e[a]);if(!j$e(e[a]))return l.forEach(u=>{o.inlineStyles[u]=w9[i.type](s,n)}),o;o.hasResponsiveStyles=!0;const c=H$e(e[a]);return l.forEach(u=>{s!=null&&(o.styles[u]=w9[i.type](s,n)),c.forEach(d=>{const p=`(min-width: ${n.breakpoints[d]})`;o.media[p]={...o.media[p],[u]:w9[i.type](q$e(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function rw(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function k9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...k9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function uV(e){return e.startsWith("data-")?e:`data-${e}`}function U$e(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[uV(n)]=e[n]),r},{})}function dV(e){return e?typeof e=="string"?{[uV(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...dV(n)}),{}):U$e(e):null}function _9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,..._9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function V$e({theme:e,style:r,vars:n,styleProps:o}){const a=_9(r,e),i=_9(n,e);return{...a,...i,...o}}const pV=E.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=po(),w=e||"div",{styleProps:k,rest:C}=iV(g),_=HPe()?.()?.(k.sx),T=rw(),R=cV({styleProps:k,theme:x,data:T$e}),A={ref:b,style:V$e({theme:x,style:r,vars:n,styleProps:R.inlineStyles}),className:Ji(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":CU(l)?void 0:l||void 0,size:f,...dV(i),...C};return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(tw,{selector:`.${T}`,styles:R.styles,media:R.media}),typeof p=="function"?p(A):y.jsx(w,{...A})]})});pV.displayName="@mantine/core/Box";const Se=pV;function hV(e){return e}function Y$e(e){const r=e;return n=>{const o=E.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=E.forwardRef(e);return r.extend=hV,r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Xn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=hV,r}const W$e=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function du(){return E.useContext(W$e)}function G$e(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function E9(e){return e?.current?e.current.scrollHeight:"auto"}const nw=typeof window<"u"&&window.requestAnimationFrame,fV=0,X$e=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function K$e({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),l=X$e(a),[s,c]=E.useState(o?{}:l),u=b=>{Bi.flushSync(()=>c(b))},d=b=>{u(x=>({...x,...b}))};function p(b){const x=e||G$e(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}Vd(()=>{typeof nw=="function"&&nw(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),nw(()=>{const b=E9(i);d({...p(b),height:b})})}:()=>{const b=E9(i);d({...p(b),willChange:"height",height:b}),nw(()=>d({height:fV,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=E9(i);x===s.height?u({}):d({height:x}),n()}else s.height===fV&&(u(l),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:BU(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...s}};return Xr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const Z$e={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},mV=lt((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:l,onTransitionEnd:s,animateOpacity:c,keepMounted:u,...d}=ze("Collapse",Z$e,e),p=po(),f=FU(),g=p.respectReducedMotion&&f?0:a,b=K$e({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",...k9(l,p)},ref:r,...d}),children:n})});mV.displayName="@mantine/core/Collapse";function ow(){return typeof window<"u"}function Ef(e){return gV(e)?(e.nodeName||"").toLowerCase():"#document"}function ea(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function ts(e){var r;return(r=(gV(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function gV(e){return ow()?e instanceof Node||e instanceof ea(e).Node:!1}function Dr(e){return ow()?e instanceof Element||e instanceof ea(e).Element:!1}function Ra(e){return ow()?e instanceof HTMLElement||e instanceof ea(e).HTMLElement:!1}function S9(e){return!ow()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ea(e).ShadowRoot}const Q$e=new Set(["inline","contents"]);function P0(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=ni(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!Q$e.has(a)}const J$e=new Set(["table","td","th"]);function eMe(e){return J$e.has(Ef(e))}const tMe=[":popover-open",":modal"];function aw(e){return tMe.some(r=>{try{return e.matches(r)}catch{return!1}})}const rMe=["transform","translate","scale","rotate","perspective"],nMe=["transform","translate","scale","rotate","perspective","filter"],oMe=["paint","layout","strict","content"];function C9(e){const r=iw(),n=Dr(e)?ni(e):e;return rMe.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))||oMe.some(o=>(n.contain||"").includes(o))}function aMe(e){let r=Ys(e);for(;Ra(r)&&!Vs(r);){if(C9(r))return r;if(aw(r))return null;r=Ys(r)}return null}function iw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iMe=new Set(["html","body","#document"]);function Vs(e){return iMe.has(Ef(e))}function ni(e){return ea(e).getComputedStyle(e)}function lw(e){return Dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ys(e){if(Ef(e)==="html")return e;const r=e.assignedSlot||e.parentNode||S9(e)&&e.host||ts(e);return S9(r)?r.host:r}function yV(e){const r=Ys(e);return Vs(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ra(r)&&P0(r)?r:yV(r)}function Ws(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=yV(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),l=ea(a);if(i){const s=T9(l);return r.concat(l,l.visualViewport||[],P0(a)?a:[],s&&n?Ws(s):[])}return r.concat(a,Ws(a,[],n))}function T9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const bV=["top","right","bottom","left"],vV=["start","end"],xV=bV.reduce((e,r)=>e.concat(r,r+"-"+vV[0],r+"-"+vV[1]),[]),el=Math.min,Do=Math.max,sw=Math.round,cw=Math.floor,rs=e=>({x:e,y:e}),lMe={left:"right",right:"left",bottom:"top",top:"bottom"},sMe={start:"end",end:"start"};function R9(e,r,n){return Do(e,el(r,n))}function tl(e,r){return typeof e=="function"?e(r):e}function Aa(e){return e.split("-")[0]}function rl(e){return e.split("-")[1]}function A9(e){return e==="x"?"y":"x"}function N9(e){return e==="y"?"height":"width"}const cMe=new Set(["top","bottom"]);function nl(e){return cMe.has(Aa(e))?"y":"x"}function D9(e){return A9(nl(e))}function wV(e,r,n){n===void 0&&(n=!1);const o=rl(e),a=D9(e),i=N9(a);let l=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=dw(l)),[l,dw(l)]}function uMe(e){const r=dw(e);return[uw(e),r,uw(r)]}function uw(e){return e.replace(/start|end/g,r=>sMe[r])}const kV=["left","right"],_V=["right","left"],dMe=["top","bottom"],pMe=["bottom","top"];function hMe(e,r,n){switch(e){case"top":case"bottom":return n?r?_V:kV:r?kV:_V;case"left":case"right":return r?dMe:pMe;default:return[]}}function fMe(e,r,n,o){const a=rl(e);let i=hMe(Aa(e),n==="start",o);return a&&(i=i.map(l=>l+"-"+a),r&&(i=i.concat(i.map(uw)))),i}function dw(e){return e.replace(/left|right|bottom|top/g,r=>lMe[r])}function mMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function P9(e){return typeof e!="number"?mMe(e):{top:e,right:e,bottom:e,left:e}}function Sf(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 gMe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function yMe(){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 bMe(){return/apple/i.test(navigator.vendor)}function vMe(){return gMe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function xMe(){return yMe().includes("jsdom/")}const EV="data-floating-ui-focusable",wMe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function SV(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 $0(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&S9(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function Cf(e){return"composedPath"in e?e.composedPath()[0]:e.target}function $9(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 kMe(e){return e.matches("html,body")}function Wd(e){return e?.ownerDocument||document}function _Me(e){return Ra(e)&&e.matches(wMe)}function EMe(e){if(!e||xMe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function SMe(e){return e?e.hasAttribute(EV)?e:e.querySelector("["+EV+"]")||e:null}function pw(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,...pw(e,o.id,n)])}function CMe(e){return"nativeEvent"in e}function M9(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var TMe=typeof document<"u",RMe=function(){},ns=TMe?E.useLayoutEffect:RMe;const AMe={...Uv};function hw(e){const r=E.useRef(e);return ns(()=>{r.current=e}),r}const NMe=AMe.useInsertionEffect,DMe=NMe||(e=>e());function os(e){const r=E.useRef(()=>{});return DMe(()=>{r.current=e}),E.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 CV(e,r,n){let{reference:o,floating:a}=e;const i=nl(r),l=D9(r),s=N9(l),c=Aa(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(rl(r)){case"start":g[l]-=f*(n&&u?-1:1);break;case"end":g[l]+=f*(n&&u?-1:1);break}return g}const PMe=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}=CV(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}=CV(u,f,c)),x=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:g}};async function Tf(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}=tl(r,e),b=P9(g),x=s[f?p==="floating"?"reference":"floating":p],w=Sf(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=Sf(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 $Me=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}=tl(e,r)||{};if(u==null)return{};const p=P9(d),f={x:n,y:o},g=D9(a),b=N9(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,M=el(p[k],$),j=el(p[C],$),L=M,Y=D-x[b]-j,O=D/2-x[b]/2+N,U=R9(L,O,Y),I=!c.arrow&&rl(a)!=null&&O!==U&&i.reference[b]/2-(O<L?M:j)-x[b]/2<0,q=I?O<L?O-L:O-Y:0;return{[g]:f[g]+q,data:{[g]:U,centerOffset:O-U-q,...I&&{alignmentOffset:q}},reset:I}}});function MMe(e,r,n){return(e?[...n.filter(o=>rl(o)===e),...n.filter(o=>rl(o)!==e)]:n.filter(o=>Aa(o)===o)).filter(o=>e?rl(o)===e||(r?uw(o)!==o:!1):!0)}const OMe=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=xV,autoAlignment:g=!0,...b}=tl(e,r),x=p!==void 0||f===xV?MMe(p||null,g,f):f,w=await Tf(r,b),k=((n=l.autoPlacement)==null?void 0:n.index)||0,C=x[k];if(C==null)return{};const _=wV(C,i,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(s!==C)return{reset:{placement:x[0]}};const T=[w[Aa(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 M=rl($.placement);return[$.placement,M&&d?$.overflows.slice(0,2).reduce((j,L)=>j+L,0):$.overflows[0],$.overflows]}).sort(($,M)=>$[1]-M[1]),N=((a=D.filter($=>$[2].slice(0,rl($[0])?2:3).every(M=>M<=0))[0])==null?void 0:a[0])||D[0][0];return N!==s?{data:{index:k+1,overflows:R},reset:{placement:N}}:{}}}},IMe=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}=tl(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Aa(a),C=nl(s),_=Aa(s)===s,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=f||(_||!x?[dw(s)]:uMe(s)),A=b!=="none";!f&&A&&R.push(...fMe(s,x,b,T));const D=[s,...R],N=await Tf(r,w),$=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(N[k]),p){const O=wV(a,l,T);$.push(N[O[0]],N[O[1]])}if(M=[...M,{placement:a,overflows:$}],!$.every(O=>O<=0)){var j,L;const O=(((j=i.flip)==null?void 0:j.index)||0)+1,U=D[O];if(U&&(!(p==="alignment"&&C!==nl(U))||M.every(q=>nl(q.placement)===C?q.overflows[0]>0:!0)))return{data:{index:O,overflows:M},reset:{placement:U}};let I=(L=M.filter(q=>q.overflows[0]<=0).sort((q,V)=>q.overflows[1]-V.overflows[1])[0])==null?void 0:L.placement;if(!I)switch(g){case"bestFit":{var Y;const q=(Y=M.filter(V=>{if(A){const G=nl(V.placement);return G===C||G==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(G=>G>0).reduce((G,F)=>G+F,0)]).sort((V,G)=>V[1]-G[1])[0])==null?void 0:Y[0];q&&(I=q);break}case"initialPlacement":I=s;break}if(a!==I)return{reset:{placement:I}}}return{}}}};function TV(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function RV(e){return bV.some(r=>e[r]>=0)}const LMe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=tl(e,r);switch(o){case"referenceHidden":{const i=await Tf(r,{...a,elementContext:"reference"}),l=TV(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:RV(l)}}}case"escaped":{const i=await Tf(r,{...a,altBoundary:!0}),l=TV(i,n.floating);return{data:{escapedOffsets:l,escaped:RV(l)}}}default:return{}}}}};function AV(e){const r=el(...e.map(i=>i.left)),n=el(...e.map(i=>i.top)),o=Do(...e.map(i=>i.right)),a=Do(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function zMe(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=>Sf(AV(a)))}const BMe=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}=tl(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),p=zMe(d),f=Sf(AV(d)),g=P9(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(nl(n)==="y"){const M=p[0],j=p[p.length-1],L=Aa(n)==="top",Y=M.top,O=j.bottom,U=L?M.left:j.left,I=L?M.right:j.right,q=I-U,V=O-Y;return{top:Y,bottom:O,left:U,right:I,width:q,height:V,x:U,y:Y}}const w=Aa(n)==="left",k=Do(...p.map(M=>M.right)),C=el(...p.map(M=>M.left)),_=p.filter(M=>w?M.left===C:M.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}}:{}}}},NV=new Set(["left","top"]);async function jMe(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),l=Aa(n),s=rl(n),c=nl(n)==="y",u=NV.has(l)?-1:1,d=i&&c?-1:1,p=tl(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 FMe=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 jMe(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}}}}},HMe=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}=tl(e,r),u={x:n,y:o},d=await Tf(r,c),p=nl(Aa(a)),f=A9(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=R9(C,g,_)}if(l){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=b+d[w],_=b-d[k];b=R9(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}}}}}},qMe=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}=tl(e,r),d={x:n,y:o},p=nl(a),f=A9(p);let g=d[f],b=d[p];const x=tl(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=NV.has(Aa(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}}}},UMe=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}=tl(e,r),d=await Tf(r,u),p=Aa(a),f=rl(a),g=nl(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=el(x-d[w],C),R=el(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 M=Do(d.left,0),j=Do(d.right,0),L=Do(d.top,0),Y=Do(d.bottom,0);g?N=b-2*(M!==0||j!==0?M+j:Do(d.left,d.right)):D=x-2*(L!==0||Y!==0?L+Y:Do(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 DV(e){const r=ni(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Ra(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=sw(n)!==i||sw(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function O9(e){return Dr(e)?e:e.contextElement}function Rf(e){const r=O9(e);if(!Ra(r))return rs(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=DV(r);let l=(i?sw(n.width):n.width)/o,s=(i?sw(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const VMe=rs(0);function PV(e){const r=ea(e);return!iw()||!r.visualViewport?VMe:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function YMe(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ea(e)?!1:r}function Gd(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=O9(e);let l=rs(1);r&&(o?Dr(o)&&(l=Rf(o)):l=Rf(e));const s=YMe(i,n,o)?PV(i):rs(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=ea(i),g=o&&Dr(o)?ea(o):o;let b=f,x=T9(b);for(;x&&o&&g!==b;){const w=Rf(x),k=x.getBoundingClientRect(),C=ni(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=ea(x),x=T9(b)}}return Sf({width:d,height:p,x:c,y:u})}function fw(e,r){const n=lw(e).scrollLeft;return r?r.left+n:Gd(ts(e)).left+n}function $V(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-fw(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function WMe(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",l=ts(o),s=r?aw(r.floating):!1;if(o===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=rs(1);const d=rs(0),p=Ra(o);if((p||!p&&!i)&&((Ef(o)!=="body"||P0(l))&&(c=lw(o)),Ra(o))){const g=Gd(o);u=Rf(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const f=l&&!p&&!i?$V(l,c):rs(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 GMe(e){return Array.from(e.getClientRects())}function XMe(e){const r=ts(e),n=lw(e),o=e.ownerDocument.body,a=Do(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Do(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+fw(e);const s=-n.scrollTop;return ni(o).direction==="rtl"&&(l+=Do(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:l,y:s}}const MV=25;function KMe(e,r){const n=ea(e),o=ts(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=iw();(!d||d&&r==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=fw(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<=MV&&(i-=b)}else u<=MV&&(i+=u);return{width:i,height:l,x:s,y:c}}const ZMe=new Set(["absolute","fixed"]);function QMe(e,r){const n=Gd(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Ra(e)?Rf(e):rs(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 OV(e,r,n){let o;if(r==="viewport")o=KMe(e,n);else if(r==="document")o=XMe(ts(e));else if(Dr(r))o=QMe(r,n);else{const a=PV(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Sf(o)}function IV(e,r){const n=Ys(e);return n===r||!Dr(n)||Vs(n)?!1:ni(n).position==="fixed"||IV(n,r)}function JMe(e,r){const n=r.get(e);if(n)return n;let o=Ws(e,[],!1).filter(s=>Dr(s)&&Ef(s)!=="body"),a=null;const i=ni(e).position==="fixed";let l=i?Ys(e):e;for(;Dr(l)&&!Vs(l);){const s=ni(l),c=C9(l);!c&&s.position==="fixed"&&(a=null),(i?!c&&!a:!c&&s.position==="static"&&a&&ZMe.has(a.position)||P0(l)&&!c&&IV(e,l))?o=o.filter(u=>u!==l):a=s,l=Ys(l)}return r.set(e,o),o}function eOe(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?aw(r)?[]:JMe(r,this._c):[].concat(n),o],l=i[0],s=i.reduce((c,u)=>{const d=OV(r,u,a);return c.top=Do(d.top,c.top),c.right=el(d.right,c.right),c.bottom=el(d.bottom,c.bottom),c.left=Do(d.left,c.left),c},OV(r,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function tOe(e){const{width:r,height:n}=DV(e);return{width:r,height:n}}function rOe(e,r,n){const o=Ra(r),a=ts(r),i=n==="fixed",l=Gd(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=rs(0);function u(){c.x=fw(a)}if(o||!o&&!i)if((Ef(r)!=="body"||P0(a))&&(s=lw(r)),o){const g=Gd(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?$V(a,s):rs(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 I9(e){return ni(e).position==="static"}function LV(e,r){if(!Ra(e)||ni(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return ts(e)===n&&(n=n.ownerDocument.body),n}function zV(e,r){const n=ea(e);if(aw(e))return n;if(!Ra(e)){let a=Ys(e);for(;a&&!Vs(a);){if(Dr(a)&&!I9(a))return a;a=Ys(a)}return n}let o=LV(e,r);for(;o&&eMe(o)&&I9(o);)o=LV(o,r);return o&&Vs(o)&&I9(o)&&!C9(o)?n:o||aMe(e)||n}const nOe=async function(e){const r=this.getOffsetParent||zV,n=this.getDimensions,o=await n(e.floating);return{reference:rOe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function oOe(e){return ni(e).direction==="rtl"}const aOe={convertOffsetParentRelativeRectToViewportRelativeRect:WMe,getDocumentElement:ts,getClippingRect:eOe,getOffsetParent:zV,getElementRects:nOe,getClientRects:GMe,getDimensions:tOe,getScale:Rf,isElement:Dr,isRTL:oOe};function BV(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function iOe(e,r){let n=null,o;const a=ts(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=cw(p),x=cw(a.clientWidth-(d+f)),w=cw(a.clientHeight-(p+g)),k=cw(d),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:Do(0,el(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&&!BV(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 mw(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=O9(e),d=a||i?[...u?Ws(u):[],...Ws(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=u&&s?iOe(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?Gd(e):null;c&&w();function w(){const k=Gd(e);x&&!BV(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 jV=FMe,lOe=OMe,sOe=HMe,cOe=IMe,FV=UMe,HV=LMe,qV=$Me,uOe=BMe,dOe=qMe,UV=(e,r,n)=>{const o=new Map,a={platform:aOe,...n},i={...a.platform,_c:o};return PMe(e,r,{...a,platform:i})};var pOe=typeof document<"u",hOe=function(){},gw=pOe?E.useLayoutEffect:hOe;function yw(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(!yw(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)&&!yw(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function VV(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function YV(e,r){const n=VV(e);return Math.round(r*n)/n}function L9(e){const r=E.useRef(e);return gw(()=>{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]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=E.useState(o);yw(f,o)||g(o);const[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(V=>{V!==A.current&&(A.current=V,x(V))},[]),_=E.useCallback(V=>{V!==D.current&&(D.current=V,k(V))},[]),T=i||b,R=l||w,A=E.useRef(null),D=E.useRef(null),N=E.useRef(d),$=c!=null,M=L9(c),j=L9(a),L=L9(u),Y=E.useCallback(()=>{if(!A.current||!D.current)return;const V={placement:r,strategy:n,middleware:f};j.current&&(V.platform=j.current),UV(A.current,D.current,V).then(G=>{const F={...G,isPositioned:L.current!==!1};O.current&&!yw(N.current,F)&&(N.current=F,Bi.flushSync(()=>{p(F)}))})},[f,r,n,j,L]);gw(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(V=>({...V,isPositioned:!1})))},[u]);const O=E.useRef(!1);gw(()=>(O.current=!0,()=>{O.current=!1}),[]),gw(()=>{if(T&&(A.current=T),R&&(D.current=R),T&&R){if(M.current)return M.current(T,R,Y);Y()}},[T,R,Y,M,$]);const U=E.useMemo(()=>({reference:A,floating:D,setReference:C,setFloating:_}),[C,_]),I=E.useMemo(()=>({reference:T,floating:R}),[T,R]),q=E.useMemo(()=>{const V={position:n,left:0,top:0};if(!I.floating)return V;const G=YV(I.floating,d.x),F=YV(I.floating,d.y);return s?{...V,transform:"translate("+G+"px, "+F+"px)",...VV(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:F}},[n,s,I.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:U,elements:I,floatingStyles:q}),[d,Y,U,I,q])}const mOe=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?qV({element:o.current,padding:a}).fn(n):{}:o?qV({element:o,padding:a}).fn(n):{}}}},WV=(e,r)=>({...jV(e),options:[e,r]}),z9=(e,r)=>({...sOe(e),options:[e,r]}),GV=(e,r)=>({...dOe(e),options:[e,r]}),bw=(e,r)=>({...cOe(e),options:[e,r]}),gOe=(e,r)=>({...FV(e),options:[e,r]}),yOe=(e,r)=>({...HV(e),options:[e,r]}),M0=(e,r)=>({...uOe(e),options:[e,r]}),XV=(e,r)=>({...mOe(e),options:[e,r]});function KV(e){const r=E.useRef(void 0),n=E.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 E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const bOe="data-floating-ui-focusable",ZV="active",QV="selected",vOe={...Uv};let JV=!1,xOe=0;const eY=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+xOe++;function wOe(){const[e,r]=E.useState(()=>JV?eY():void 0);return ns(()=>{e==null&&r(eY())},[]),E.useEffect(()=>{JV=!0},[]),e}const kOe=vOe.useId,tY=kOe||wOe;function _Oe(){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 EOe=E.createContext(null),SOe=E.createContext(null),B9=()=>{var e;return((e=E.useContext(EOe))==null?void 0:e.id)||null},j9=()=>E.useContext(SOe);function F9(e){return"data-floating-ui-"+e}function oi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const rY=F9("safe-polygon");function vw(e,r,n){if(n&&!M9(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 H9(e){return typeof e=="function"?e():e}function nY(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=j9(),b=B9(),x=hw(u),w=hw(c),k=hw(n),C=hw(p),_=E.useRef(),T=E.useRef(-1),R=E.useRef(),A=E.useRef(-1),D=E.useRef(!0),N=E.useRef(!1),$=E.useRef(()=>{}),M=E.useRef(!1),j=os(()=>{var q;const V=(q=a.current.openEvent)==null?void 0:q.type;return V?.includes("mouse")&&V!=="mousedown"});E.useEffect(()=>{if(!s)return;function q(V){let{open:G}=V;G||(oi(T),oi(A),D.current=!0,M.current=!1)}return i.on("openchange",q),()=>{i.off("openchange",q)}},[s,i]),E.useEffect(()=>{if(!s||!x.current||!n)return;function q(G){j()&&o(!1,G,"hover")}const V=Wd(l.floating).documentElement;return V.addEventListener("mouseleave",q),()=>{V.removeEventListener("mouseleave",q)}},[l.floating,n,o,s,x,j]);const L=E.useCallback(function(q,V,G){V===void 0&&(V=!0),G===void 0&&(G="hover");const F=vw(w.current,"close",_.current);F&&!R.current?(oi(T),T.current=window.setTimeout(()=>o(!1,q,G),F)):V&&(oi(T),o(!1,q,G))},[w,o]),Y=os(()=>{$.current(),R.current=void 0}),O=os(()=>{if(N.current){const q=Wd(l.floating).body;q.style.pointerEvents="",q.removeAttribute(rY),N.current=!1}}),U=os(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!s)return;function q(Q){if(oi(T),D.current=!1,d&&!M9(_.current)||H9(C.current)>0&&!vw(w.current,"open"))return;const z=vw(w.current,"open",_.current);z?T.current=window.setTimeout(()=>{k.current||o(!0,Q,"hover")},z):n||o(!0,Q,"hover")}function V(Q){if(U()){O();return}$.current();const z=Wd(l.floating);if(oi(A),M.current=!1,x.current&&a.current.floatingContext){n||oi(T),R.current=x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){O(),Y(),U()||L(Q,!0,"safe-polygon")}});const W=R.current;z.addEventListener("mousemove",W),$.current=()=>{z.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!$0(l.floating,Q.relatedTarget))&&L(Q)}function G(Q){U()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){O(),Y(),U()||L(Q)}})(Q))}function F(){oi(T)}function J(Q){U()||L(Q,!1)}if(Dr(l.domReference)){const Q=l.domReference,z=l.floating;return n&&Q.addEventListener("mouseleave",G),f&&Q.addEventListener("mousemove",q,{once:!0}),Q.addEventListener("mouseenter",q),Q.addEventListener("mouseleave",V),z&&(z.addEventListener("mouseleave",G),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",J)),()=>{n&&Q.removeEventListener("mouseleave",G),f&&Q.removeEventListener("mousemove",q),Q.removeEventListener("mouseenter",q),Q.removeEventListener("mouseleave",V),z&&(z.removeEventListener("mouseleave",G),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",J))}}},[l,s,e,d,f,L,Y,O,o,n,k,g,w,x,a,U,C]),ns(()=>{var q;if(s&&n&&(q=x.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&j()){N.current=!0;const G=l.floating;if(Dr(l.domReference)&&G){var V;const F=Wd(l.floating).body;F.setAttribute(rY,"");const J=l.domReference,Q=g==null||(V=g.nodesRef.current.find(z=>z.id===b))==null||(V=V.context)==null?void 0:V.elements.floating;return Q&&(Q.style.pointerEvents=""),F.style.pointerEvents="none",J.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{F.style.pointerEvents="",J.style.pointerEvents="",G.style.pointerEvents=""}}}},[s,n,b,l,g,x,j]),ns(()=>{n||(_.current=void 0,M.current=!1,Y(),O())},[n,Y,O]),E.useEffect(()=>()=>{Y(),oi(T),oi(A),O()},[s,l.domReference,Y,O]);const I=E.useMemo(()=>{function q(V){_.current=V.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(V){const{nativeEvent:G}=V;function F(){!D.current&&!k.current&&o(!0,G,"hover")}d&&!M9(_.current)||n||H9(C.current)===0||M.current&&V.movementX**2+V.movementY**2<2||(oi(A),_.current==="touch"?F():(M.current=!0,A.current=window.setTimeout(F,H9(C.current))))}}},[d,o,n,k,C]);return E.useMemo(()=>s?{reference:I}:{},[s,I])}const q9=()=>{},oY=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:q9,setState:q9,isInstantPhase:!1}),COe=()=>E.useContext(oY);function aY(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=E.useRef(null),s=E.useCallback(c=>{i({currentId:c})},[]);return ns(()=>{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(oY.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:s}),[a,s]),children:r})}function iY(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:l=!0}=r,s=i??a,c=COe(),{currentId:u,setCurrentId:d,initialDelay:p,setState:f,timeoutMs:g}=c;return ns(()=>{l&&u&&(f({delay:{open:1,close:vw(p,"close")}}),u!==s&&o(!1))},[l,s,o,f,u,p]),ns(()=>{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]),ns(()=>{l&&(d===q9||!n||d(s))},[l,n,d,s]),c}const TOe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},ROe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},lY=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 sY(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=j9(),w=os(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=lY(g),{escapeKey:R,outsidePress:A}=lY(b),D=E.useRef(!1),N=os(O=>{var U;if(!n||!l||!s||O.key!=="Escape"||D.current)return;const I=(U=i.current.floatingContext)==null?void 0:U.nodeId,q=x?pw(x.nodesRef.current,I):[];if(!_&&(O.stopPropagation(),q.length>0)){let V=!0;if(q.forEach(G=>{var F;if((F=G.context)!=null&&F.open&&!G.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}o(!1,CMe(O)?O.nativeEvent:O,"escape-key")}),$=os(O=>{var U;const I=()=>{var q;N(O),(q=Cf(O))==null||q.removeEventListener("keydown",I)};(U=Cf(O))==null||U.addEventListener("keydown",I)}),M=os(O=>{var U;const I=i.current.insideReactTree;i.current.insideReactTree=!1;const q=C.current;if(C.current=!1,u==="click"&&q||I||typeof k=="function"&&!k(O))return;const V=Cf(O),G="["+F9("inert")+"]",F=Wd(a.floating).querySelectorAll(G);let J=Dr(V)?V:null;for(;J&&!Vs(J);){const X=Ys(J);if(Vs(X)||!Dr(X))break;J=X}if(F.length&&Dr(V)&&!kMe(V)&&!$0(V,a.floating)&&Array.from(F).every(X=>!$0(J,X)))return;if(Ra(V)&&Y){const X=Vs(V),Z=ni(V),oe=/auto|scroll/,ee=X||oe.test(Z.overflowX),re=X||oe.test(Z.overflowY),pe=ee&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,Ce=re&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,ce=Z.direction==="rtl",de=Ce&&(ce?O.offsetX<=V.offsetWidth-V.clientWidth:O.offsetX>V.clientWidth),be=pe&&O.offsetY>V.clientHeight;if(de||be)return}const Q=(U=i.current.floatingContext)==null?void 0:U.nodeId,z=x&&pw(x.nodesRef.current,Q).some(X=>{var Z;return $9(O,(Z=X.context)==null?void 0:Z.elements.floating)});if($9(O,a.floating)||$9(O,a.domReference)||z)return;const W=x?pw(x.nodesRef.current,Q):[];if(W.length>0){let X=!0;if(W.forEach(Z=>{var oe;if((oe=Z.context)!=null&&oe.open&&!Z.context.dataRef.current.__outsidePressBubbles){X=!1;return}}),!X)return}o(!1,O,"outside-press")}),j=os(O=>{var U;const I=()=>{var q;M(O),(q=Cf(O))==null||q.removeEventListener(u,I)};(U=Cf(O))==null||U.addEventListener(u,I)});E.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let O=-1;function U(F){o(!1,F,"ancestor-scroll")}function I(){window.clearTimeout(O),D.current=!0}function q(){O=window.setTimeout(()=>{D.current=!1},iw()?5:0)}const V=Wd(a.floating);s&&(V.addEventListener("keydown",R?$:N,R),V.addEventListener("compositionstart",I),V.addEventListener("compositionend",q)),k&&V.addEventListener(u,A?j:M,A);let G=[];return f&&(Dr(a.domReference)&&(G=Ws(a.domReference)),Dr(a.floating)&&(G=G.concat(Ws(a.floating))),!Dr(a.reference)&&a.reference&&a.reference.contextElement&&(G=G.concat(Ws(a.reference.contextElement)))),G=G.filter(F=>{var J;return F!==((J=V.defaultView)==null?void 0:J.visualViewport)}),G.forEach(F=>{F.addEventListener("scroll",U,{passive:!0})}),()=>{s&&(V.removeEventListener("keydown",R?$:N,R),V.removeEventListener("compositionstart",I),V.removeEventListener("compositionend",q)),k&&V.removeEventListener(u,A?j:M,A),G.forEach(F=>{F.removeEventListener("scroll",U)}),window.clearTimeout(O)}},[i,a,s,k,u,n,o,f,l,_,T,N,R,$,M,A,j]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const L=E.useMemo(()=>({onKeyDown:N,...d&&{[TOe[p]]:O=>{o(!1,O.nativeEvent,"reference-press")},...p!=="click"&&{onClick(O){o(!1,O.nativeEvent,"reference-press")}}}}),[N,o,d,p]),Y=E.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[ROe[u]]:()=>{i.current.insideReactTree=!0}}),[N,u,i]);return E.useMemo(()=>l?{reference:L,floating:Y}:{},[l,L,Y])}function AOe(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=tY(),i=E.useRef({}),[l]=E.useState(()=>_Oe()),s=B9()!=null,[c,u]=E.useState(o.reference),d=os((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=E.useMemo(()=>({setPositionReference:u}),[]),f=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:f,events:l,floatingId:a,refs:p}),[r,d,f,l,a,p])}function xw(e){e===void 0&&(e={});const{nodeId:r}=e,n=AOe({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,l]=E.useState(null),[s,c]=E.useState(null),u=a?.domReference||i,d=E.useRef(null),p=j9();ns(()=>{u&&(d.current=u)},[u]);const f=fOe({...e,elements:{...a,...s&&{reference:s}}}),g=E.useCallback(C=>{const _=Dr(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=E.useCallback(C=>{(Dr(C)||C===null)&&(d.current=C,l(C)),(Dr(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Dr(C))&&f.refs.setReference(C)},[f.refs]),x=E.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:d}),[f.refs,b,g]),w=E.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),k=E.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return ns(()=>{o.dataRef.current.floatingContext=k;const C=p?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function U9(){return vMe()&&bMe()}function NOe(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=E.useRef(!1),d=E.useRef(-1),p=E.useRef(!0);E.useEffect(()=>{if(!s)return;const g=ea(l.domReference);function b(){!n&&Ra(l.domReference)&&l.domReference===SV(Wd(l.domReference))&&(u.current=!0)}function x(){p.current=!0}function w(){p.current=!1}return g.addEventListener("blur",b),U9()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),U9()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[l.domReference,n,s]),E.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]),E.useEffect(()=>()=>{oi(d)},[]);const f=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const b=Cf(g.nativeEvent);if(c&&Dr(b)){if(U9()&&!g.relatedTarget){if(!p.current&&!_Me(b))return}else if(!EMe(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=Dr(b)&&b.hasAttribute(F9("focus-guard"))&&b.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=SV(l.domReference?l.domReference.ownerDocument:document);!b&&C===l.domReference||$0((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||$0(l.domReference,C)||w||o(!1,x,"focus")})}}),[i,l.domReference,o,c]);return E.useMemo(()=>s?{reference:f}:{},[s,f])}function V9(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[ZV]:l,[QV]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[bOe]:""},...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&&[ZV,QV].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 cY(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=E.useCallback(s=>V9(s,e,"reference"),r),i=E.useCallback(s=>V9(s,e,"floating"),n),l=E.useCallback(s=>V9(s,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:l}),[a,i,l])}const DOe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function uY(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=tY(),d=((n=i.domReference)==null?void 0:n.id)||u,p=E.useMemo(()=>{var k;return((k=SMe(i.floating))==null?void 0:k.id)||l},[i.floating,l]),f=(o=DOe.get(c))!=null?o:c,g=B9()!=null,b=E.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=E.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=E.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 E.useMemo(()=>s?{reference:b,floating:x,item:w}:{},[s,b,x,w])}const[POe,ai]=ri("ScrollArea.Root component was not found in tree");function Af(e,r){const n=it(r);A0(()=>{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 $Oe=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),[i,l]=E.useState(0),[s,c]=E.useState(0),u=!!(i&&s);return Af(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),Af(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}),MOe=E.forwardRef((e,r)=>{const n=ai(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx($Oe,{...e,ref:r}):null}),OOe={scrollHideDelay:1e3,type:"hover"},dY=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...l}=ze("ScrollAreaRoot",OOe,e),[s,c]=E.useState(null),[u,d]=E.useState(null),[p,f]=E.useState(null),[g,b]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[R,A]=E.useState(!1),[D,N]=E.useState(!1),$=Nr(r,M=>c(M));return y.jsx(POe,{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`}})})});dY.displayName="@mantine/core/ScrollAreaRoot";function pY(e,r){const n=e/r;return Number.isNaN(n)?0:n}function ww(e){const r=pY(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function hY(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 IOe(e,[r,n]){return Math.min(n,Math.max(r,e))}function fY(e,r,n="ltr"){const o=ww(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=IOe(e,c);return hY([0,l],[0,s])(u)}function LOe(e,r,n,o="ltr"){const a=ww(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 hY([c,u],p)(e)}function mY(e,r){return e>0&&e<r}function pu(e){return e?parseInt(e,10):0}function Xd(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[zOe,gY]=ri("ScrollAreaScrollbar was not found in tree"),yY=E.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=ai(),[g,b]=E.useState(null),x=Nr(r,N=>b(N)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=it(u),R=it(s),A=vf(d,10),D=N=>{if(w.current){const $=N.clientX-w.current.left,M=N.clientY-w.current.top;c({x:$,y:M})}};return E.useEffect(()=>{const N=$=>{const M=$.target;g?.contains(M)&&T($,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),E.useEffect(R,[n,R]),Af(g,A),Af(f.content,A),y.jsx(zOe,{value:{scrollbar:g,hasThumb:o,onThumbChange:it(a),onThumbPointerUp:it(i),onThumbPositionChange:R,onThumbPointerDown:it(l)},children:y.jsx("div",{...p,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:Xd(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:Xd(e.onPointerMove,D),onPointerUp:Xd(e.onPointerUp,N=>{const $=N.target;$.hasPointerCapture(N.pointerId)&&(N.preventDefault(),$.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),bY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=ai(),[s,c]=E.useState(),u=E.useRef(null),d=Nr(r,u,l.onScrollbarXChange);return E.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),y.jsx(yY,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${ww(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),mY(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:pu(s.paddingLeft),paddingEnd:pu(s.paddingRight)}})}})});bY.displayName="@mantine/core/ScrollAreaScrollbarX";const vY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=ai(),[s,c]=E.useState(),u=E.useRef(null),d=Nr(r,u,l.onScrollbarYChange);return E.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),y.jsx(yY,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${ww(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),mY(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:pu(s.paddingTop),paddingEnd:pu(s.paddingBottom)}})}})});vY.displayName="@mantine/core/ScrollAreaScrollbarY";const kw=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=du(),i=ai(),l=E.useRef(null),s=E.useRef(0),[c,u]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=pY(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)=>LOe(g,s.current,c,b);return n==="horizontal"?y.jsx(bY,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollLeft,b=fY(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(vY,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollTop,b=fY(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});kw.displayName="@mantine/core/ScrollAreaScrollbarVisible";const Y9=E.forwardRef((e,r)=>{const n=ai(),{forceMount:o,...a}=e,[i,l]=E.useState(!1),s=e.orientation==="horizontal",c=vf(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;l(s?u:d)}},10);return Af(n.viewport,c),Af(n.content,c),o||i?y.jsx(kw,{"data-state":i?"visible":"hidden",...a,ref:r}):null});Y9.displayName="@mantine/core/ScrollAreaScrollbarAuto";const xY=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),[i,l]=E.useState(!1);return E.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(Y9,{"data-state":i?"visible":"hidden",...o,ref:r}):null});xY.displayName="@mantine/core/ScrollAreaScrollbarHover";const BOe=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),i=e.orientation==="horizontal",[l,s]=E.useState("hidden"),c=vf(()=>s("idle"),100);return E.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay]),E.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(kw,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Xd(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Xd(e.onPointerLeave,()=>s("idle"))}):null}),W9=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=ai(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s=e.orientation==="horizontal";return E.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),a.type==="hover"?y.jsx(xY,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(BOe,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(Y9,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(kw,{...o,ref:r}):null});W9.displayName="@mantine/core/ScrollAreaScrollbar";function jOe(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 wY=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=ai(),i=gY(),{onThumbPositionChange:l}=i,s=Nr(r,d=>i.onThumbChange(d)),c=E.useRef(void 0),u=vf(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:d}=a;if(d){const p=()=>{if(u(),!c.current){const f=jOe(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:Xd(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:Xd(e.onPointerUp,i.onThumbPointerUp)})});wY.displayName="@mantine/core/ScrollAreaThumb";const G9=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=gY();return n||a.hasThumb?y.jsx(wY,{ref:r,...o}):null});G9.displayName="@mantine/core/ScrollAreaThumb";const kY=E.forwardRef(({children:e,style:r,...n},o)=>{const a=ai(),i=Nr(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})})});kY.displayName="@mantine/core/ScrollAreaViewport";var X9={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const _Y={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},FOe=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Ae(r),"--scrollarea-over-scroll-behavior":n}}),ol=lt((e,r)=>{const n=ze("ScrollArea",_Y,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]=E.useState(!1),[$,M]=E.useState(!1),[j,L]=E.useState(!1),Y=bt({name:"ScrollArea",props:n,classes:X9,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:R,vars:u,varsResolver:FOe}),O=E.useRef(null),U=KV([g,O]);return E.useEffect(()=>{if(!O.current||w!=="present")return;const I=O.current,q=new ResizeObserver(()=>{const{scrollHeight:V,clientHeight:G,scrollWidth:F,clientWidth:J}=I;M(V>G),L(F>J)});return q.observe(I),()=>q.disconnect()},[O,w]),y.jsxs(dY,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:p,ref:r,scrollbars:k,...Y("root"),...A,children:[y.jsx(kY,{...f,...Y("viewport",{style:f?.style}),ref:U,"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:I=>{f?.onScroll?.(I),b?.({x:I.currentTarget.scrollLeft,y:I.currentTarget.scrollTop});const{scrollTop:q,scrollHeight:V,clientHeight:G}=I.currentTarget;q-(V-G)>=-.6&&C?.(),q===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(W9,{...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(G9,{...Y("thumb")})}),(k==="xy"||k==="y")&&y.jsx(W9,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!$?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(G9,{...Y("thumb")})}),y.jsx(MOe,{...Y("corner"),"data-hovered":D||void 0,"data-hidden":d==="never"||void 0})]})});ol.displayName="@mantine/core/ScrollArea";const ta=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}=ze("ScrollAreaAutosize",_Y,e),A=E.useRef(null),D=KV([d,A]),[N,$]=E.useState(!1),M=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const j=A.current;if(!j)return;const L=()=>{const O=j.scrollHeight>j.clientHeight;O!==N&&(M.current?T?.(O):(M.current=!0,O&&T?.(!0)),$(O))};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(ol,{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})})})});ol.classes=X9,ta.displayName="@mantine/core/ScrollAreaAutosize",ta.classes=X9,ol.Autosize=ta;var EY={root:"m_87cf2631"};const HOe={__staticSelector:"UnstyledButton"},Pr=Xn((e,r)=>{const n=ze("UnstyledButton",HOe,e),{className:o,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:u,attributes:d,...p}=n,f=bt({name:i,props:n,classes:EY,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})});Pr.classes=EY,Pr.displayName="@mantine/core/UnstyledButton";var SY={root:"m_515a97f8"};const _w=lt((e,r)=>{const n=ze("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,attributes:u,...d}=n,p=bt({name:"VisuallyHidden",classes:SY,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})});_w.classes=SY,_w.displayName="@mantine/core/VisuallyHidden";var CY={root:"m_1b7284a3"};const qOe=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:bn(r),"--paper-shadow":AU(n)}}),Nf=Xn((e,r)=>{const n=ze("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=bt({name:"Paper",props:n,classes:CY,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:u,varsResolver:qOe});return y.jsx(Se,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});Nf.classes=CY,Nf.displayName="@mantine/core/Paper";function TY(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function RY(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 UOe={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function VOe({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",[UOe[c]]:o},p=-r/2;return c==="left"?{...d,...TY(u,l,n,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...TY(u,l,n,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...RY(u,i,n,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...RY(u,i,n,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Ew=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:l,arrowY:s,style:c,...u},d)=>{const{dir:p}=du();return i?y.jsx("div",{...u,ref:d,style:{...c,...VOe({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:p,arrowX:l,arrowY:s})}}):null});Ew.displayName="@mantine/core/FloatingArrow";function AY(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 NY={root:"m_9814e45f"};const YOe={zIndex:Yx("modal")},WOe=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:l})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&es(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Ae(a)})`:void 0,"--overlay-radius":i===void 0?void 0:bn(i),"--overlay-z-index":l?.toString()}}),K9=Xn((e,r)=>{const n=ze("Overlay",YOe,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=bt({name:"Overlay",props:n,classes:NY,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:WOe});return y.jsx(Se,{ref:r,...R("root"),mod:[{center:d,fixed:u},C],...T,children:p})});K9.classes=NY,K9.displayName="@mantine/core/Overlay";function Z9(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 GOe({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||Z9(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=Z9(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return Z9(n)}const XOe={reuseTargetNode:!0},O0=lt((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=ze("Portal",XOe,e),[l,s]=E.useState(!1),c=E.useRef(null);return A0(()=>(s(!0),c.current=GOe({target:o,reuseTargetNode:a,...i}),n9(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:Bi.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});O0.displayName="@mantine/core/Portal";const Df=lt(({withinPortal:e=!0,children:r,...n},o)=>Qx()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(O0,{ref:o,...n,children:r}));Df.displayName="@mantine/core/OptionalPortal";const I0=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Sw={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:{...I0("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...I0("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...I0("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...I0("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...I0("top"),common:{transformOrigin:"top right"}}},DY={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function KOe({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in Sw?{transitionProperty:Sw[e].transitionProperty,...a,...Sw[e].common,...Sw[e][DY[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[DY[r]]}}function ZOe({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s,enterDelay:c,exitDelay:u}){const d=po(),p=FU(),f=d.respectReducedMotion?p:!1,[g,b]=E.useState(f?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.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,M=f?0:D?e:r;b(M),M===0?(typeof N=="function"&&N(),typeof $=="function"&&$(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{TO.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")},M)})})},A=D=>{if(T(),typeof(D?c:u)!="number"){R(D);return}C.current=window.setTimeout(()=>{R(D)},D?c:u)};return Vd(()=>{A(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function hu({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=Qx(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=ZOe({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(KOe({transition:r,duration:b,state:x,timingFunction:w}))})}hu.displayName="@mantine/core/Transition";const[QOe,PY]=ri("Popover component was not found in the tree");function Cw({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=LU(r),i=Nr(a,o);return Qi(e)?E.cloneElement(e,{[n]:i}):e}function $Y(e){return y.jsx(_w,{tabIndex:-1,"data-autofocus":!0,...e})}Cw.displayName="@mantine/core/FocusTrap",$Y.displayName="@mantine/core/FocusTrapInitialFocus",Cw.InitialFocus=$Y;var MY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Gs=lt((e,r)=>{const n=ze("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:l,onKeyDownCapture:s,variant:c,classNames:u,styles:d,...p}=n,f=PY(),g=iPe({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Nr(r,f.floating);return f.disabled?null:y.jsx(Df,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(hu,{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(Cw,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Se,{...b,...p,variant:c,onKeyDownCapture:KDe(()=>{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(Ew,{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})})]})})})})});Gs.classes=MY,Gs.displayName="@mantine/core/PopoverDropdown";const JOe={refProp:"ref",popupType:"dialog"},fu=lt((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=ze("PopoverTarget",JOe,e);if(!Qi(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=PY(),c=Nr(s.reference,Gx(n),r),u=s.withRoles?{"aria-haspopup":a,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return E.cloneElement(n,{...l,...u,...s.targetProps,className:Ji(s.targetProps.className,l.className,n.props.className),[o]:c,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});fu.displayName="@mantine/core/PopoverTarget";function eIe(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 tIe(e,r,n){const o=eIe(e.middlewares),a=[WV(e.offset),yOe()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(z9(typeof o.shift=="boolean"?{limiter:GV(),padding:5}:{limiter:GV(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?bw():bw(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?M0():M0(o.inline)),a.push(XV({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(gOe({...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 rIe(e){const r=Qx(),[n,o]=Us({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},l=()=>{e.disabled||o(!n)},s=xw({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:tIe(e,()=>s,r),whileElementsMounted:e.keepMounted?void 0:mw});return E.useEffect(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return mw(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),Vd(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),Vd(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),Vd(()=>{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:Yx("popover"),__staticSelector:"Popover",width:"max-content"},oIe=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:bn(r),"--popover-shadow":AU(n)}});function mr(e){const r=ze("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:M,onClose:j,onDismiss:L,onOpen:Y,onChange:O,zIndex:U,radius:I,shadow:q,id:V,defaultOpened:G,__staticSelector:F,withRoles:J,disabled:Q,returnFocus:z,variant:W,keepMounted:X,vars:Z,floatingStrategy:oe,withOverlay:ee,overlayProps:re,hideDetached:pe,attributes:Ce,preventPositionChangeWhenVisible:ce,...de}=r,be=bt({name:F,props:r,classes:MY,classNames:_,styles:T,unstyled:C,attributes:Ce,rootSelector:"dropdown",vars:Z,varsResolver:oIe}),{resolvedStyles:Oe}=y9({classNames:_,styles:T,props:r}),[Xe,Ge]=E.useState(s??G??!1),_t=E.useRef(o),Qe=E.useRef(null),[St,Ke]=E.useState(null),[We,st]=E.useState(null),{dir:Et}=du(),Pn=Qx(),_e=Ta(V),we=rIe({middlewares:f,width:p,position:AY(Et,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:G,onChange:O,onOpen:Y,onClose:j,onDismiss:L,strategy:oe,dropdownVisible:Xe,setDropdownVisible:Ge,positionRef:_t,disabled:Q,preventPositionChangeWhenVisible:ce,keepMounted:X});DU(()=>{R&&(we.onClose(),L?.())},$,[St,We]);const rt=E.useCallback(Pt=>{Ke(Pt),we.floating.refs.setReference(Pt)},[we.floating.refs.setReference]),at=E.useCallback(Pt=>{st(Pt),we.floating.refs.setFloating(Pt)},[we.floating.refs.setFloating]),Dt=E.useCallback(()=>{c?.onExited?.(),u?.(),Ge(!1),_t.current=o},[c?.onExited,u]),Wr=E.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return y.jsxs(QOe,{value:{returnFocus:z,disabled:Q,controlled:we.controlled,reference:rt,floating:at,x:we.floating.x,y:we.floating.y,arrowX:we.floating?.middlewareData?.arrow?.x,arrowY:we.floating?.middlewareData?.arrow?.y,opened:we.opened,arrowRef:Qe,transitionProps:{...c,onExited:Dt,onEntered:Wr},width:p,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:we.floating.placement,trapFocus:M,withinPortal:A,portalProps:D,zIndex:U,radius:I,shadow:q,closeOnEscape:N,onDismiss:L,onClose:we.onClose,onToggle:we.onToggle,getTargetId:()=>`${_e}-target`,getDropdownId:()=>`${_e}-dropdown`,withRoles:J,targetProps:de,__staticSelector:F,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:X,getStyles:be,resolvedStyles:Oe,floatingStrategy:oe,referenceHidden:pe&&Pn!=="test"?we.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ee&&y.jsx(hu,{transition:"fade",mounted:we.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>y.jsx(Df,{withinPortal:A,children:y.jsx(K9,{...re,...be("overlay",{className:re?.className,style:[Pt,re?.style]})})})})]})}mr.Target=fu,mr.Dropdown=Gs,mr.displayName="@mantine/core/Popover",mr.extend=e=>e;var al={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 OY=E.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:Ji(al.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:al.bar}),y.jsx("span",{className:al.bar}),y.jsx("span",{className:al.bar})]}));OY.displayName="@mantine/core/Bars";const IY=E.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:Ji(al.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:al.dot}),y.jsx("span",{className:al.dot}),y.jsx("span",{className:al.dot})]}));IY.displayName="@mantine/core/Dots";const LY=E.forwardRef(({className:e,...r},n)=>y.jsx(Se,{component:"span",className:Ji(al.ovalLoader,e),...r,ref:n}));LY.displayName="@mantine/core/Oval";const zY={bars:OY,oval:LY,dots:IY},aIe={loaders:zY,type:"oval"},iIe=(e,{size:r,color:n})=>({root:{"--loader-size":sr(r,"loader-size"),"--loader-color":n?Jo(n,e):void 0}}),Pf=lt((e,r)=>{const n=ze("Loader",aIe,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=bt({name:"Loader",props:n,classes:al,className:s,style:c,classNames:u,styles:d,unstyled:p,attributes:x,vars:l,varsResolver:iIe});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})});Pf.defaultLoaders=zY,Pf.classes=al,Pf.displayName="@mantine/core/Loader";var $f={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const BY={orientation:"horizontal"},lIe=(e,{borderWidth:r})=>({group:{"--ai-border-width":Ae(r)}}),Tw=lt((e,r)=>{const n=ze("ActionIconGroup",BY,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=ze("ActionIconGroup",BY,e),x=bt({name:"ActionIconGroup",props:n,classes:$f,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:lIe,rootSelector:"group"});return y.jsx(Se,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});Tw.classes=$f,Tw.displayName="@mantine/core/ActionIconGroup";const sIe=(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":sr(l,"section-height"),"--section-padding-x":sr(l,"section-padding-x"),"--section-fz":No(l),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},Q9=lt((e,r)=>{const n=ze("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=bt({name:"ActionIconGroupSection",props:n,classes:$f,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:sIe,rootSelector:"groupSection"});return y.jsx(Se,{...x("groupSection"),ref:r,variant:u,...b})});Q9.classes=$f,Q9.displayName="@mantine/core/ActionIconGroupSection";const cIe=(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":sr(r,"ai-size"),"--ai-radius":n===void 0?void 0:bn(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}}},or=Xn((e,r)=>{const n=ze("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=bt({name:["ActionIcon",b],props:n,className:o,style:c,classes:$f,classNames:l,styles:s,unstyled:a,attributes:A,vars:w,varsResolver:cIe});return y.jsxs(Pr,{...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(hu,{mounted:u,transition:"slide-down",duration:150,children:$=>y.jsx(Se,{component:"span",...N("loader",{style:$}),"aria-hidden":!0,children:y.jsx(Pf,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),y.jsx(Se,{component:"span",mod:{loading:u},...N("icon"),children:k})]})});or.classes=$f,or.displayName="@mantine/core/ActionIcon",or.Group=Tw,or.GroupSection=Q9;const jY=E.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"})}));jY.displayName="@mantine/core/CloseIcon";var FY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const uIe={variant:"subtle"},dIe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":sr(r,"cb-size"),"--cb-radius":n===void 0?void 0:bn(n),"--cb-icon-size":Ae(o)}}),Kd=Xn((e,r)=>{const n=ze("CloseButton",uIe,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=bt({name:C||"CloseButton",props:n,className:s,style:u,classes:FY,classNames:c,styles:d,unstyled:p,attributes:k,vars:i,varsResolver:dIe});return y.jsxs(Pr,{ref:r,..._,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(jY,{}),a]})});Kd.classes=FY,Kd.displayName="@mantine/core/CloseButton";function pIe(e){return E.Children.toArray(e).filter(Boolean)}var HY={root:"m_4081bf90"};const hIe={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":qs(o),"--group-align":a,"--group-justify":i,"--group-wrap":l}}),qr=lt((e,r)=>{const n=ze("Group",hIe,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=pIe(c),A=R.length,D=qs(u??"md"),N={childWidth:`calc(${100/A}% - (${D} - ${D} / ${A}))`},$=bt({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:HY,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})});qr.classes=HY,qr.displayName="@mantine/core/Group";const[mIe,gIe]=C0({size:"sm"}),qY=lt((e,r)=>{const n=ze("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:l,styles:s,...c}=n,u=gIe(),{resolvedClassNames:d,resolvedStyles:p}=y9({classNames:l,styles:s,props:n});return y.jsx(Kd,{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})});qY.displayName="@mantine/core/InputClearButton";const yIe={xs:7,sm:8,md:10,lg:12,xl:15};function bIe({__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:yIe[a]},children:[i,n||o]}):n||i||o}const[vIe,Rw]=C0({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ii={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 xIe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${No(r)} - ${Ae(2)})`}}),Aw=lt((e,r)=>{const n=ze("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}=ze("InputDescription",null,n),x=Rw(),w=bt({name:["InputWrapper",d],props:n,classes:ii,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,rootSelector:"description",vars:c,varsResolver:xIe}),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})});Aw.classes=ii,Aw.displayName="@mantine/core/InputDescription";const wIe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${No(r)} - ${Ae(2)})`}}),Nw=lt((e,r)=>{const n=ze("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=bt({name:["InputWrapper",p],props:n,classes:ii,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,rootSelector:"error",vars:c,varsResolver:wIe}),w=Rw(),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})});Nw.classes=ii,Nw.displayName="@mantine/core/InputError";const UY={labelElement:"label"},kIe=(e,{size:r})=>({label:{"--input-label-size":No(r),"--input-asterisk-color":void 0}}),Dw=lt((e,r)=>{const n=ze("InputLabel",UY,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,..._}=ze("InputLabel",UY,n),T=bt({name:["InputWrapper",x],props:n,classes:ii,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,rootSelector:"label",vars:c,varsResolver:kIe}),R=Rw(),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:" *"})]})});Dw.classes=ii,Dw.displayName="@mantine/core/InputLabel";const J9=lt((e,r)=>{const n=ze("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=bt({name:["InputPlaceholder",u],props:n,classes:ii,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})});J9.classes=ii,J9.displayName="@mantine/core/InputPlaceholder";function _Ie(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 EIe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},SIe=(e,{size:r})=>({label:{"--input-label-size":No(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${No(r)} - ${Ae(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${No(r)} - ${Ae(2)})`}}),e7=lt((e,r)=>{const n=ze("InputWrapper",EIe,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:M,attributes:j,...L}=n,Y=bt({name:["InputWrapper",p],props:$||n,classes:ii,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:SIe}),O={size:u,variant:d,__staticSelector:p},U=Ta(D),I=typeof A=="boolean"?A:N,q=_?.id||`${U}-error`,V=C?.id||`${U}-description`,G=U,F=!!x&&typeof x!="boolean",J=!!w,Q=`${F?q:""} ${J?V:""}`,z=Q.trim().length>0?Q.trim():void 0,W=k?.id||`${U}-label`,X=b&&y.jsx(Dw,{labelElement:T,id:W,htmlFor:G,required:I,...O,...k,children:b},"label"),Z=J&&y.jsx(Aw,{...C,...O,size:C?.size||O.size,id:C?.id||V,children:w},"description"),oe=y.jsx(E.Fragment,{children:f(R)},"input"),ee=F&&E.createElement(Nw,{..._,...O,size:_?.size||O.size,key:"error",id:_?.id||q},x),re=g.map(pe=>{switch(pe){case"label":return X;case"input":return oe;case"description":return Z;case"error":return ee;default:return null}});return y.jsx(vIe,{value:{getStyles:Y,describedBy:z,inputId:G,labelId:W,..._Ie(g,{hasDescription:J,hasError:F})},children:y.jsx(Se,{ref:r,variant:d,size:u,mod:[{error:!!x},M],...Y("root"),...L,children:re})})});e7.classes=ii,e7.displayName="@mantine/core/InputWrapper";const CIe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},TIe=(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":sr(r.size,"input-height"),"--input-fz":No(r.size),"--input-radius":r.radius===void 0?void 0:bn(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?sr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Na=Xn((e,r)=>{const n=ze("Input",CIe,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:M,radius:j,id:L,withAria:Y,withErrorStyles:O,mod:U,inputSize:I,attributes:q,__clearSection:V,__clearable:G,__defaultRightSection:F,...J}=n,{styleProps:Q,rest:z}=iV(J),W=Rw(),X={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Z=bt({name:["Input",u],props:d||n,classes:ii,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:q,stylesCtx:X,rootSelector:"wrapper",vars:N,varsResolver:TIe}),oe=Y?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||L}:{},ee=bIe({__clearable:G,__clearSection:V,rightSection:C,__defaultRightSection:F,size:p});return y.jsx(mIe,{value:{size:p||"sm"},children:y.jsxs(Se,{...Z("wrapper"),...Q,...f,mod:[{error:!!g&&O,pointer:$,disabled:b,multiline:M,"data-with-right-section":!!ee,"data-with-left-section":!!x},U],variant:D,size:p,children:[x&&y.jsx("div",{...w,"data-position":"left",...Z("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Se,{component:"input",...z,...oe,ref:r,required:c,mod:{disabled:b,error:!!g&&O},variant:D,__size:I,...Z("input")}),ee&&y.jsx("div",{..._,"data-position":"right",...Z("section",{className:_?.className,style:_?.style}),children:ee})]})})});Na.classes=ii,Na.Wrapper=e7,Na.Label=Dw,Na.Error=Nw,Na.Description=Aw,Na.Placeholder=J9,Na.ClearButton=qY,Na.displayName="@mantine/core/Input";const RIe={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 VY={root:"m_8bffd616"};const Mf=Xn((e,r)=>{const n=ze("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=bt({name:"Flex",classes:VY,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c}),_=po(),T=rw(),R=cV({styleProps:{gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x},theme:_,data:RIe});return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(tw,{selector:`.${T}`,styles:R.styles,media:R.media}),y.jsx(Se,{ref:r,...C("root",{className:T,style:yf(R.inlineStyles)}),...k})]})});Mf.classes=VY,Mf.displayName="@mantine/core/Flex";function AIe(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 NIe({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,l]=E.useState(!1),[s,c]=E.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=pu(x.borderTopWidth)+pu(w.borderTopWidth),C=pu(x.borderLeftWidth)+pu(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=E.useRef(null),f=E.useRef(null);return E.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]),E.useEffect(()=>{if(r){const g=b=>{AIe(b.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),UU(()=>{OPe()!=="test"&&l(!0)},20,{autoInvoke:!0}),VU(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var YY={root:"m_96b553a6"};const DIe=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),Pw=lt((e,r)=>{const n=ze("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=bt({name:"FloatingIndicator",classes:YY,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:DIe}),k=E.useRef(null),{initialized:C,hidden:_}=NIe({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Nr(r,k);return!u||!d?null:y.jsx(Se,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});Pw.displayName="@mantine/core/FloatingIndicator",Pw.classes=YY;function WY({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.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 E.useEffect(()=>l,[]),{openDropdown:s,closeDropdown:c}}function t7({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"})})}t7.displayName="@mantine/core/AccordionChevron";var GY={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 PIe=(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:bn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},$w=lt((e,r)=>{const n=ze("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=bt({name:"Alert",classes:GY,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:PIe}),D=Ta(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":$,"aria-labelledby":N,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(Kd,{...A("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:s})]})})});$w.classes=GY,$w.displayName="@mantine/core/Alert";var XY={root:"m_b6d8b162"};function $Ie(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const MIe={inherit:!1},OIe=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":No(a),"--text-lh":ZDe(a),"--text-gradient":r==="gradient"?s9(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Jo(i,e):void 0}}),wt=Xn((e,r)=>{const n=ze("Text",MIe,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=bt({name:["Text",u],props:n,classes:XY,className:p,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:d,varsResolver:OIe});return y.jsx(Se,{...R("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":$Ie(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":l},k],size:C,...T})});wt.classes=XY,wt.displayName="@mantine/core/Text";var KY={root:"m_849cf0da"};const IIe={underline:"hover"},r7=Xn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...l}=ze("Anchor",IIe,e);return y.jsx(wt,{component:"a",ref:r,className:Ji({[KY.root]:!a},o),...l,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});r7.classes=KY,r7.displayName="@mantine/core/Anchor";var li={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 LIe={error:null},zIe=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":sr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Jo(n,e):void 0}}),n7=lt((e,r)=>{const n=ze("ComboboxChevron",LIe,e),{size:o,error:a,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,mod:p,...f}=n,g=bt({name:"ComboboxChevron",classes:li,props:n,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,varsResolver:zIe,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"})})});n7.classes=li,n7.displayName="@mantine/core/ComboboxChevron";const[BIe,si]=ri("Combobox component was not found in tree"),ZY=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(Na.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:l=>{l.preventDefault(),r?.(l)},onClick:l=>{o(),n?.(l)}}));ZY.displayName="@mantine/core/ComboboxClearButton";const Mw=lt((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:l,...s}=ze("ComboboxDropdown",null,e),c=si();return y.jsx(mr.Dropdown,{...s,ref:r,role:"presentation","data-hidden":l||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});Mw.classes=li,Mw.displayName="@mantine/core/ComboboxDropdown";const jIe={refProp:"ref"},QY=lt((e,r)=>{const{children:n,refProp:o}=ze("ComboboxDropdownTarget",jIe,e);if(si(),!Qi(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(mr.Target,{ref:r,refProp:o,children:n})});QY.displayName="@mantine/core/ComboboxDropdownTarget";const L0=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=ze("ComboboxEmpty",null,e),c=si();return y.jsx(Se,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...s})});L0.classes=li,L0.displayName="@mantine/core/ComboboxEmpty";function o7({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const l=si(),[s,c]=E.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 FIe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},JY=lt((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=ze("ComboboxEventsTarget",FIe,e);if(!Qi(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=si(),p=o7({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...p,...u,[o]:Nr(r,d.store.targetRef,Gx(n))})});JY.displayName="@mantine/core/ComboboxEventsTarget";const a7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=ze("ComboboxFooter",null,e),c=si();return y.jsx(Se,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});a7.classes=li,a7.displayName="@mantine/core/ComboboxFooter";const i7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,children:s,label:c,id:u,...d}=ze("ComboboxGroup",null,e),p=si(),f=Ta(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]})});i7.classes=li,i7.displayName="@mantine/core/ComboboxGroup";const l7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=ze("ComboboxHeader",null,e),c=si();return y.jsx(Se,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});l7.classes=li,l7.displayName="@mantine/core/ComboboxHeader";function eW({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}eW.displayName="@mantine/core/ComboboxHiddenInput";const z0=lt((e,r)=>{const n=ze("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=si(),C=E.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)}})});z0.classes=li,z0.displayName="@mantine/core/ComboboxOption";const Ow=lt((e,r)=>{const n=ze("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:l,id:s,onMouseDown:c,labelledBy:u,...d}=n,p=si(),f=Ta(s);return E.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)}})});Ow.classes=li,Ow.displayName="@mantine/core/ComboboxOptions";const HIe={withAriaAttributes:!0,withKeyboardNavigation:!0},s7=lt((e,r)=>{const n=ze("ComboboxSearch",HIe,e),{classNames:o,styles:a,unstyled:i,vars:l,withAriaAttributes:s,onKeyDown:c,withKeyboardNavigation:u,size:d,...p}=n,f=si(),g=f.getStyles("search"),b=o7({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(Na,{ref:Nr(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||f.size,...b,...p,__staticSelector:"Combobox"})});s7.classes=li,s7.displayName="@mantine/core/ComboboxSearch";const qIe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},c7=lt((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=ze("ComboboxTarget",qIe,e);if(!Qi(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=si(),p=o7({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=E.cloneElement(n,{...p,...u});return y.jsx(mr.Target,{ref:Nr(r,d.store.targetRef),children:f})});c7.displayName="@mantine/core/ComboboxTarget";function UIe(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 VIe(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 YIe(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function tW({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:l="instant"}={}){const[s,c]=Us({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=E.useRef(null),d=E.useRef(-1),p=E.useRef(null),f=E.useRef(null),g=E.useRef(-1),b=E.useRef(-1),x=E.useRef(-1),w=E.useCallback((I="unknown")=>{s||(c(!0),a?.(I))},[c,a,s]),k=E.useCallback((I="unknown")=>{s&&(c(!1),o?.(I))},[c,o,s]),C=E.useCallback((I="unknown")=>{s?k(I):w(I)},[k,w,s]),_=E.useCallback(()=>{const I=document.querySelector(`#${u.current} [data-combobox-selected]`);I?.removeAttribute("data-combobox-selected"),I?.removeAttribute("aria-selected")},[]),T=E.useCallback(I=>{const q=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!q)return null;const V=I>=q.length?0:I<0?q.length-1:I;return d.current=V,q?.[V]&&!q[V].hasAttribute("data-combobox-disabled")?(_(),q[V].setAttribute("data-combobox-selected","true"),q[V].setAttribute("aria-selected","true"),q[V].scrollIntoView({block:"nearest",behavior:l}),q[V].id):null},[l,_]),R=E.useCallback(()=>{const I=document.querySelector(`#${u.current} [data-combobox-active]`);if(I){const q=document.querySelectorAll(`#${u.current} [data-combobox-option]`),V=Array.from(q).findIndex(G=>G===I);return T(V)}return T(0)},[T]),A=E.useCallback(()=>T(VIe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),D=E.useCallback(()=>T(UIe(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),N=E.useCallback(()=>T(YIe(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),$=E.useCallback((I="selected",q)=>{x.current=window.setTimeout(()=>{const V=document.querySelectorAll(`#${u.current} [data-combobox-option]`),G=Array.from(V).findIndex(F=>F.hasAttribute(`data-combobox-${I}`));d.current=G,q?.scrollIntoView&&V[G]?.scrollIntoView({block:"nearest",behavior:l})},0)},[]),M=E.useCallback(()=>{d.current=-1,_()},[_]),j=E.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),L=E.useCallback(I=>{u.current=I},[]),Y=E.useCallback(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),O=E.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),U=E.useCallback(()=>d.current,[]);return E.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:U,selectOption:T,selectFirstOption:N,selectActiveOption:R,selectNextOption:A,selectPreviousOption:D,resetSelectedOption:M,updateSelectedOptionIndex:$,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:p,focusSearchInput:Y,targetRef:f,focusTarget:O}}const WIe={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},GIe=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":No(r),"--combobox-option-padding":sr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Ae(n),"--combobox-option-fz":No(r),"--combobox-option-padding":sr(r,"combobox-option-padding")}});function Kn(e){const r=ze("Combobox",WIe,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=tW(),C=l||k,_=bt({name:g||"Combobox",classes:li,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:s,varsResolver:GIe}),T=()=>{u?.(),C.closeDropdown()};return y.jsx(BIe,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(mr,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:R=>!R&&T(),withRoles:!1,unstyled:a,children:i})})}const XIe=e=>e;Kn.extend=XIe,Kn.classes=li,Kn.displayName="@mantine/core/Combobox",Kn.Target=c7,Kn.Dropdown=Mw,Kn.Options=Ow,Kn.Option=z0,Kn.Search=s7,Kn.Empty=L0,Kn.Chevron=n7,Kn.Footer=a7,Kn.Header=l7,Kn.EventsTarget=JY,Kn.DropdownTarget=QY,Kn.Group=i7,Kn.ClearButton=ZY,Kn.HiddenInput=eW;function rW({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 nW={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const KIe=(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":sr(i,"badge-height"),"--badge-padding-x":sr(i,"badge-padding-x"),"--badge-fz":sr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:bn(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"?Jo(n,e):void 0}}},Xs=Xn((e,r)=>{const n=ze("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=bt({name:"Badge",props:n,classes:nW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:KIe});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})]})});Xs.classes=nW,Xs.displayName="@mantine/core/Badge";var oW={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const ZIe={separator:"/"},QIe=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":qs(r)}}),Iw=lt((e,r)=>{const n=ze("Breadcrumbs",ZIe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,separator:d,separatorMargin:p,attributes:f,...g}=n,b=bt({name:"Breadcrumbs",classes:oW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,vars:c,varsResolver:QIe}),x=E.Children.toArray(u).reduce((w,k,C,_)=>{const T=Qi(k)?E.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Se,{...b("separator"),key:`separator-${C}`},d)),w},[]);return y.jsx(Se,{ref:r,...b("root"),...g,children:x})});Iw.classes=oW,Iw.displayName="@mantine/core/Breadcrumbs";var Of={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const aW={orientation:"horizontal"},JIe=(e,{borderWidth:r})=>({group:{"--button-border-width":Ae(r)}}),u7=lt((e,r)=>{const n=ze("ButtonGroup",aW,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=ze("ButtonGroup",aW,e),x=bt({name:"ButtonGroup",props:n,classes:Of,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:JIe,rootSelector:"group"});return y.jsx(Se,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});u7.classes=Of,u7.displayName="@mantine/core/ButtonGroup";const eLe=(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":sr(l,"section-height"),"--section-padding-x":sr(l,"section-padding-x"),"--section-fz":l?.includes("compact")?No(l.replace("compact-","")):No(l),"--section-radius":r===void 0?void 0:bn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},d7=lt((e,r)=>{const n=ze("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=bt({name:"ButtonGroupSection",props:n,classes:Of,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:eLe,rootSelector:"groupSection"});return y.jsx(Se,{...x("groupSection"),ref:r,variant:u,...b})});d7.classes=Of,d7.displayName="@mantine/core/ButtonGroupSection";const tLe={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Ae(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},rLe=(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":sr(i,"button-height"),"--button-padding-x":sr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?No(i.replace("compact-","")):No(i),"--button-radius":r===void 0?void 0:bn(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}}},Zn=Xn((e,r)=>{const n=ze("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,$=bt({name:"Button",props:n,classes:Of,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:rLe}),M=!!u,j=!!d;return y.jsxs(Pr,{ref:r,...$("root",{active:!s&&!b&&!T}),unstyled:_,variant:f,disabled:s||b,mod:[{disabled:s||T,loading:b,block:p,"with-left-section":M,"with-right-section":j},A],...N,children:[typeof b=="boolean"&&y.jsx(hu,{mounted:b,transition:tLe,duration:150,children:L=>y.jsx(Se,{component:"span",...$("loader",{style:L}),"aria-hidden":!0,children:y.jsx(Pf,{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})]})]})});Zn.classes=Of,Zn.displayName="@mantine/core/Button",Zn.Group=u7,Zn.GroupSection=d7;const[nLe,oLe]=ri("Card component was not found in tree");var p7={root:"m_e615b15f",section:"m_599a2148"};const Lw=Xn((e,r)=>{const n=ze("CardSection",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,withBorder:c,inheritPadding:u,mod:d,...p}=n,f=oLe();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})});Lw.classes=p7,Lw.displayName="@mantine/core/CardSection";const aLe=(e,{padding:r})=>({root:{"--card-padding":qs(r)}}),zw=Xn((e,r)=>{const n=ze("Card",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,padding:d,attributes:p,...f}=n,g=bt({name:"Card",props:n,classes:p7,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:aLe}),b=E.Children.toArray(u),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===Lw?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(nLe,{value:{getStyles:g},children:y.jsx(Nf,{ref:r,unstyled:s,...g("root"),...f,children:x})})});zw.classes=p7,zw.displayName="@mantine/core/Card",zw.Section=Lw;var iW={root:"m_b183c0a2"};const iLe=(e,{color:r})=>({root:{"--code-bg":r?Jo(r,e):void 0}}),Bw=lt((e,r)=>{const n=ze("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=bt({name:"Code",props:n,classes:iW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:iLe});return y.jsx(Se,{component:d?"pre":"code",variant:p,ref:r,mod:[{block:d},f],...x("root"),...b,dir:"ltr"})});Bw.classes=iW,Bw.displayName="@mantine/core/Code";var lW={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const sW={withShadow:!0},lLe=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:bn(r),"--cs-size":Ae(n)}}),B0=Xn((e,r)=>{const n=ze("ColorSwatch",sW,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}=ze("ColorSwatch",sW,n),k=bt({name:"ColorSwatch",props:n,classes:lW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:c,varsResolver:lLe});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})]})});B0.classes=lW,B0.displayName="@mantine/core/ColorSwatch";const sLe={timeout:1e3};function cW(e){const{children:r,timeout:n,value:o,...a}=ze("CopyButton",sLe,e),i=rPe({timeout:n});return y.jsx(y.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}cW.displayName="@mantine/core/CopyButton";var uW={root:"m_3eebeb36",label:"m_9e365f20"};const cLe={orientation:"horizontal"},uLe=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Jo(r,e):void 0,"--divider-border-style":n,"--divider-size":sr(o,"divider-size")}}),If=lt((e,r)=>{const n=ze("Divider",cLe,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=bt({name:"Divider",classes:uW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:uLe});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})})});If.classes=uW,If.displayName="@mantine/core/Divider";const[dW,pW]=ri("Grid component was not found in tree"),h7=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,hW=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":h7(e,r),fW=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},mW=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function dLe({span:e,order:r,offset:n,selector:o}){const a=po(),i=pW(),l=i.breakpoints||a.breakpoints,s=R0(e)===void 0?12:R0(e),c=yf({"--col-order":R0(r)?.toString(),"--col-flex-grow":fW(s,i.grow),"--col-flex-basis":h7(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":hW(s,i.columns,i.grow),"--col-offset":mW(R0(n),i.columns)}),u=Ao(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"]=fW(e[f],i.grow),p[f]["--col-flex-basis"]=h7(e[f],i.columns),p[f]["--col-width"]=e[f]==="content"?"auto":void 0,p[f]["--col-max-width"]=hW(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(p[f]["--col-offset"]=mW(n[f],i.columns)),p),{}),d=NU(Ao(u),l).filter(p=>Ao(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(tw,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var f7={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const pLe={span:12},Zd=lt((e,r)=>{const n=ze("GridCol",pLe,e),{classNames:o,className:a,style:i,styles:l,vars:s,span:c,order:u,offset:d,...p}=n,f=pW(),g=rw();return y.jsxs(y.Fragment,{children:[y.jsx(dLe,{selector:`.${g}`,span:c,order:u,offset:d}),y.jsx(Se,{ref:r,...f.getStyles("col",{className:Ji(a,g),style:i,classNames:o,styles:l}),...p})]})});Zd.classes=f7,Zd.displayName="@mantine/core/GridCol";function gW({gutter:e,selector:r,breakpoints:n,type:o}){const a=po(),i=n||a.breakpoints,l=yf({"--grid-gutter":qs(R0(e))}),s=Ao(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=qs(e[d])),u),{}),c=NU(Ao(s),i).filter(u=>Ao(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(tw,{styles:l,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const hLe={gutter:"md",grow:!1,columns:12},fLe=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),j0=lt((e,r)=>{const n=ze("Grid",hLe,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,_=bt({name:"Grid",classes:f7,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:k,vars:c,varsResolver:fLe}),T=rw();return w==="container"&&x?y.jsxs(dW,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(gW,{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(dW,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(gW,{selector:`.${T}`,...n}),y.jsx(Se,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});j0.classes=f7,j0.displayName="@mantine/core/Grid",j0.Col=Zd;function yW({color:e,theme:r,defaultShade:n}){const o=uu({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var bW={root:"m_bcb3f3c2"};const mLe={color:"yellow"},gLe=(e,{color:r})=>({root:{"--mark-bg-dark":yW({color:r,theme:e,defaultShade:5}),"--mark-bg-light":yW({color:r,theme:e,defaultShade:2})}}),m7=lt((e,r)=>{const n=ze("Mark",mLe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,variant:d,attributes:p,...f}=n,g=bt({name:"Mark",props:n,className:a,style:i,classes:bW,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:gLe});return y.jsx(Se,{component:"mark",ref:r,variant:d,...g("root"),...f})});m7.classes=bW,m7.displayName="@mantine/core/Mark";function vW(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function yLe(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(vW):vW(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 Ks=Xn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:l,...s}=ze("Highlight",null,e),c=yLe(o,a);return y.jsx(wt,{unstyled:n,ref:r,...s,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},p)=>d?y.jsx(m7,{unstyled:n,color:l,style:i,"data-highlight":u,children:u},p):y.jsx("span",{children:u},p))})});Ks.classes=wt.classes,Ks.displayName="@mantine/core/Highlight";const[bLe,xW]=ri("HoverCard component was not found in the tree"),wW=E.createContext(!1),vLe=wW.Provider,g7=()=>E.useContext(wW);function y7(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=ze("HoverCardDropdown",null,e),i=xW();if(g7()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(mr.Dropdown,{ref:i.floating,...c,onMouseEnter:vn(n,c.onMouseEnter),onMouseLeave:vn(o,c.onMouseLeave),...a,children:r})}const l=vn(n,i.openDropdown),s=vn(o,i.closeDropdown);return y.jsx(mr.Dropdown,{onMouseEnter:l,onMouseLeave:s,...a,children:r})}y7.displayName="@mantine/core/HoverCardDropdown";const xLe={openDelay:0,closeDelay:0};function b7(e){const{openDelay:r,closeDelay:n,children:o}=ze("HoverCardGroup",xLe,e);return y.jsx(vLe,{value:!0,children:y.jsx(aY,{delay:{open:r,close:n},children:o})})}b7.displayName="@mantine/core/HoverCardGroup",b7.extend=e=>e;const wLe={refProp:"ref"},v7=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=ze("HoverCardTarget",wLe,e);if(!Qi(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=xW();if(g7()&&l.getReferenceProps&&l.reference){const d=l.getReferenceProps();return y.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...d,ref:l.reference}}:{...d,ref:l.reference})})}const s=vn(n.props.onMouseEnter,l.openDropdown),c=vn(n.props.onMouseLeave,l.closeDropdown),u={onMouseEnter:s,onMouseLeave:c};return y.jsx(mr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:u}:u)})});v7.displayName="@mantine/core/HoverCardTarget";function kLe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=g7(),i=Ta(),l=E.useRef(-1),s=E.useRef(-1),c=E.useCallback(()=>{window.clearTimeout(l.current),window.clearTimeout(s.current)},[]),u=E.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:d,refs:p}=xw({open:o,onOpenChange:u}),{delay:f,setCurrentId:g}=iY(d,{id:i}),{getReferenceProps:b,getFloatingProps:x}=cY([nY(d,{enabled:!0,delay:a?f:{open:e.openDelay,close:e.closeDelay}}),uY(d,{role:"dialog"}),sY(d,{enabled:a})]),w=E.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=E.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 E.useEffect(()=>()=>c(),[c]),{opened:o,reference:p.setReference,floating:p.setFloating,getReferenceProps:b,getFloatingProps:x,openDropdown:w,closeDropdown:k}}const _Le={openDelay:0,closeDelay:150,initiallyOpened:!1};function Lf(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:l,...s}=ze("HoverCard",_Le,e),c=kLe({openDelay:a,closeDelay:i,defaultOpened:l,onOpen:n,onClose:o});return y.jsx(bLe,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:y.jsx(mr,{...s,opened:c.opened,__staticSelector:"HoverCard",children:r})})}Lf.displayName="@mantine/core/HoverCard",Lf.Target=v7,Lf.Dropdown=y7,Lf.Group=b7,Lf.extend=e=>e;var ELe=E.useLayoutEffect;const[SLe,mu]=ri("Menu component was not found in the tree");var gu={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const x7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=ze("MenuDivider",null,e),c=mu();return y.jsx(Se,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...s})});x7.classes=gu,x7.displayName="@mantine/core/MenuDivider";const F0=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=ze("MenuDropdown",null,e),f=E.useRef(null),g=mu(),b=vn(u,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=vn(s,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=vn(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(mr.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Nr(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]})});F0.classes=gu,F0.displayName="@mantine/core/MenuDropdown";const[CLe,jw]=C0(),H0=Xn((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}=ze("MenuItem",null,e),x=mu(),w=jw(),k=po(),{dir:C}=du(),_=E.useRef(null),T=b,R=vn(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?uu({color:s,theme:k}):null,N=vn(T.onKeyDown,$=>{$.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(Pr,{onMouseDown:$=>$.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Nr(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:R,onKeyDown:T0({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})]})});H0.classes=gu,H0.displayName="@mantine/core/MenuItem";const w7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=ze("MenuLabel",null,e),c=mu();return y.jsx(Se,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...s})});w7.classes=gu,w7.displayName="@mantine/core/MenuLabel";const k7=lt((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=ze("MenuSubDropdown",null,e),f=E.useRef(null),g=mu(),b=jw(),x=vn(s,b?.open),w=vn(c,b?.close);return y.jsx(mr.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Nr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});k7.classes=gu,k7.displayName="@mantine/core/MenuSubDropdown";const _7=Xn((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}=ze("MenuSubItem",null,e),x=mu(),w=jw(),k=po(),{dir:C}=du(),_=E.useRef(null),T=b,R=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,A=s?uu({color:s,theme:k}):null,D=vn(T.onKeyDown,j=>{j.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),j.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),N=vn(T.onClick,()=>{!f&&g&&x.closeDropdownImmediately()}),$=vn(T.onMouseEnter,w?.open),M=vn(T.onMouseLeave,w?.close);return y.jsxs(Pr,{onMouseDown:j=>j.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Nr(_,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:M,onClick:N,onKeyDown:T0({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(t7,{...x.getStyles("chevron"),size:14})})]})});_7.classes=gu,_7.displayName="@mantine/core/MenuSubItem";function kW({children:e,refProp:r}){if(!Qi(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 mu(),y.jsx(mr.Target,{refProp:r,popupType:"menu",children:e})}kW.displayName="@mantine/core/MenuSubTarget";const TLe={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function zf(e){const{children:r,closeDelay:n,...o}=ze("MenuSub",TLe,e),a=Ta(),[i,{open:l,close:s}]=APe(!1),c=jw(),{openDropdown:u,closeDropdown:d}=WY({open:l,close:s,closeDelay:n,openDelay:0});return y.jsx(CLe,{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(mr,{opened:i,...o,withinPortal:!1,withArrow:!1,id:a,children:r})})}zf.extend=e=>e,zf.displayName="@mantine/core/MenuSub",zf.Target=kW,zf.Dropdown=k7,zf.Item=_7;const RLe={refProp:"ref"},Fw=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=ze("MenuTarget",RLe,e);if(!Qi(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=mu(),l=n.props,s=vn(l.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=vn(l.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),u=vn(l.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(mr.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});Fw.displayName="@mantine/core/MenuTarget";const ALe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function ho(e){const r=ze("Menu",ALe,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,$=bt({name:"Menu",classes:gu,props:r,classNames:x,styles:w,unstyled:k,attributes:D}),[M,j]=Us({value:i,defaultValue:l,finalValue:!1,onChange:c}),[L,Y]=E.useState(!1),O=()=>{j(!1),Y(!1),M&&a?.()},U=()=>{j(!0),!M&&o?.()},I=()=>{M?O():U()},{openDropdown:q,closeDropdown:V}=WY({open:U,close:O,closeDelay:b,openDelay:g}),G=Q=>JDe("[data-menu-item]","[data-menu-dropdown]",Q),{resolvedClassNames:F,resolvedStyles:J}=y9({classNames:x,styles:w,props:r});return y.jsx(SLe,{value:{getStyles:$,opened:M,toggleDropdown:I,getItemIndex:G,openedViaClick:L,setOpenedViaClick:Y,closeOnItemClick:u,closeDropdown:f==="click"?O:V,openDropdown:f==="click"?U:q,closeDropdownImmediately:O,loop:d,trigger:f,unstyled:k,menuItemTabIndex:T,withInitialFocusPlaceholder:A},children:y.jsx(mr,{...N,opened:M,onChange:I,defaultOpened:l,trapFocus:R?!1:s,closeOnEscape:p,__staticSelector:"Menu",classNames:F,styles:J,unstyled:k,variant:C,keepMounted:R,children:n})})}ho.extend=e=>e,ho.withProps=Y$e(ho),ho.classes=gu,ho.displayName="@mantine/core/Menu",ho.Item=H0,ho.Label=w7,ho.Dropdown=F0,ho.Target=Fw,ho.Divider=x7,ho.Sub=zf;const[D6t,_W]=C0(),[NLe,DLe]=C0();var Hw={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const PLe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?sr(r):sr(n,"pg-gap")}}),E7=lt((e,r)=>{const n=ze("PillGroup",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,disabled:d,attributes:p,...f}=n,g=_W()?.size||u||void 0,b=bt({name:"PillGroup",classes:Hw,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:PLe,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})})});E7.classes=Hw,E7.displayName="@mantine/core/PillGroup";const $Le={variant:"default"},MLe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":sr(n,"pill-fz"),"--pill-height":sr(n,"pill-height"),"--pill-radius":r===void 0?void 0:bn(r)}}),qw=lt((e,r)=>{const n=ze("Pill",$Le,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=DLe(),R=_W(),A=x||T?.size||void 0,D=R?.variant==="filled"?"contrast":u||"default",N=bt({name:"Pill",classes:Hw,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,vars:c,varsResolver:MLe,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(Kd,{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?.($)}})]})});qw.classes=Hw,qw.displayName="@mantine/core/Pill",qw.Group=E7;var EW={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const OLe=(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":qs(o)}}},S7=Xn((e,r)=>{const n=ze("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,...$}=n,M=bt({name:"NavLink",props:n,classes:EW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:N,vars:c,varsResolver:OLe}),[j,L]=Us({value:u,defaultValue:d,finalValue:!1,onChange:p}),Y=!!f,O=U=>{$.onClick?.(U),Y&&(U.preventDefault(),L(!j))};return y.jsxs(y.Fragment,{children:[y.jsxs(Pr,{...M("root"),component:"a",ref:r,onClick:O,onKeyDown:U=>{$.onKeyDown?.(U),U.nativeEvent.code==="Space"&&Y&&(U.preventDefault(),L(!j))},unstyled:s,mod:[{disabled:b,active:g,expanded:j},D],...$,children:[x&&y.jsx(Se,{component:"span",...M("section"),mod:{position:"left"},children:x}),y.jsxs(Se,{...M("body"),mod:{"no-wrap":T},children:[y.jsx(Se,{component:"span",...M("label"),children:k}),y.jsx(Se,{component:"span",mod:{active:g},...M("description"),children:C})]}),(Y||w!==void 0)&&y.jsx(Se,{...M("section"),component:"span",mod:{rotate:j&&!_,position:"right"},children:Y?w!==void 0?w:y.jsx(t7,{...M("chevron")}):w})]}),Y&&y.jsx(mV,{in:j,...M("collapse"),children:y.jsx("div",{...M("children"),children:f})})]})});S7.classes=EW,S7.displayName="@mantine/core/NavLink";var SW={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const ILe={withCloseButton:!0},LLe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:bn(r),"--notification-color":n?Jo(n,e):void 0}}),Uw=lt((e,r)=>{const n=ze("Notification",ILe,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,$=bt({name:"Notification",classes:SW,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:LLe});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(Pf,{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(Kd,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...$("closeButton")})]})});Uw.classes=SW,Uw.displayName="@mantine/core/Notification";const zLe={duration:100,transition:"fade"};function CW(e,r){return{...zLe,...r,...e}}function BLe({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:l,y:s,elements:c,refs:u,update:d,placement:p}=xw({placement:r,middleware:[z9({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=E.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 E.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=Ws(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 Vw={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const jLe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Yx("popover")},FLe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:bn(r),"--tooltip-bg":n?Jo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),C7=lt((e,r)=>{const n=ze("TooltipFloating",jLe,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,$=po(),M=bt({name:"TooltipFloating",props:n,classes:Vw,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:O,boundaryRef:U,floating:I,setOpened:q}=BLe({offset:b,position:x,defaultOpened:_});if(!Qi(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 V=Nr(U,Gx(o),r),G=o.props,F=Q=>{G.onMouseEnter?.(Q),j(Q),q(!0)},J=Q=>{G.onMouseLeave?.(Q),q(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Df,{...A,withinPortal:i,children:y.jsx(Se,{...N,...M("tooltip",{style:{...k9(l,$),zIndex:k,display:!C&&O?"block":"none",top:(Y&&Math.round(Y))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:I,mod:{multiline:w},children:g})}),E.cloneElement(o,{...G,[a]:V,onMouseEnter:F,onMouseLeave:J})]})});C7.classes=Vw,C7.displayName="@mantine/core/TooltipFloating";const TW=E.createContext(!1),HLe=TW.Provider,qLe=()=>E.useContext(TW),ULe={openDelay:0,closeDelay:0};function Qd(e){const{openDelay:r,closeDelay:n,children:o}=ze("TooltipGroup",ULe,e);return y.jsx(HLe,{value:!0,children:y.jsx(aY,{delay:{open:r,close:n},children:o})})}Qd.displayName="@mantine/core/TooltipGroup",Qd.extend=e=>e;function VLe(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 YLe(e){const r=VLe(e.middlewares),n=[WV(e.offset)];return r.shift&&n.push(z9(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?bw():bw(r.flip)),n.push(XV({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?M0():M0(r.inline)):e.inline&&n.push(M0()),n}function WLe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=qLe(),i=Ta(),l=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:s,y:c,context:u,refs:d,placement:p,middlewareData:{arrow:{x:f,y:g}={}}}=xw({strategy:e.strategy,placement:e.position,open:o,onOpenChange:l,middleware:YLe(e),whileElementsMounted:mw}),{delay:b,currentId:x,setCurrentId:w}=iY(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=cY([nY(u,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),NOe(u,{enabled:e.events?.focus,visibleOnly:!0}),uY(u,{role:"tooltip"}),sY(u,{enabled:typeof e.opened>"u"})]);Vd(()=>{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 RW={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:Yx("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},GLe=(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:bn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},fo=lt((e,r)=>{const n=ze("Tooltip",RW,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:M,multiline:j,events:L,zIndex:Y,disabled:O,positionDependencies:U,onClick:I,onMouseEnter:q,onMouseLeave:V,inline:G,variant:F,keepMounted:J,vars:Q,portalProps:z,mod:W,floatingStrategy:X,middlewares:Z,autoContrast:oe,attributes:ee,target:re,...pe}=ze("Tooltip",RW,n),{dir:Ce}=du(),ce=E.useRef(null),de=WLe({position:AY(Ce,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:[...U,re??o],inline:G,strategy:X,middlewares:Z});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&de.reference(Qe)},[re,de]);const be=bt({name:"Tooltip",props:n,classes:Vw,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ee,rootSelector:"tooltip",vars:Q,varsResolver:GLe});if(!re&&!Qi(o))return null;if(re){const Qe=CW(M,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Df,{...z,withinPortal:f,children:y.jsx(hu,{...Qe,keepMounted:J,mounted:!O&&!!de.opened,duration:de.isGroupPhase?10:Qe.duration,children:St=>y.jsxs(Se,{...pe,"data-fixed":X==="fixed"||void 0,variant:F,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...St,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Ew,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...be("arrow")})]})})})})}const Oe=o,Xe=Oe.props,Ge=Nr(de.reference,Gx(Oe),r),_t=CW(M,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Df,{...z,withinPortal:f,children:y.jsx(hu,{..._t,keepMounted:J,mounted:!O&&!!de.opened,duration:de.isGroupPhase?10:_t.duration,children:Qe=>y.jsxs(Se,{...pe,"data-fixed":X==="fixed"||void 0,variant:F,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...Qe,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(Ew,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...be("arrow")})]})})}),E.cloneElement(Oe,de.getReferenceProps({onClick:I,onMouseEnter:q,onMouseLeave:V,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Ji(_,Xe.className),...Xe,[i]:Ge}))]})});fo.classes=Vw,fo.displayName="@mantine/core/Tooltip",fo.Floating=C7,fo.Group=Qd;var AW={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const XLe={withItemsBorders:!0},KLe=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:bn(r),"--sc-color":n?Jo(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":sr(a,"sc-padding"),"--sc-font-size":No(a)}}),q0=lt((e,r)=>{const n=ze("SegmentedControl",XLe,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:M,attributes:j,...L}=n,Y=bt({name:"SegmentedControl",props:n,classes:AW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:KLe}),O=po(),U=u.map(re=>typeof re=="string"?{label:re,value:re}:re),I=PPe(),[q,V]=E.useState(e9()),[G,F]=E.useState(null),[J,Q]=E.useState({}),z=(re,pe)=>{J[pe]=re,Q(J)},[W,X]=Us({value:d,defaultValue:p,finalValue:Array.isArray(u)?U.find(re=>!re.disabled)?.value??u[0]?.value??null:null,onChange:f}),Z=Ta(b),oe=U.map(re=>E.createElement(Se,{...Y("control"),mod:{active:W===re.value,orientation:C},key:re.value},E.createElement("input",{...Y("input"),disabled:x||re.disabled,type:"radio",name:Z,value:re.value,id:`${Z}-${re.value}`,checked:W===re.value,onChange:()=>!w&&X(re.value),"data-focus-ring":O.focusRing,key:`${re.value}-input`}),E.createElement(Se,{component:"label",...Y("label"),mod:{active:W===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${Z}-${re.value}`,ref:pe=>z(pe,re.value),__vars:{"--sc-label-color":T!==void 0?f9({color:T,theme:O,autoContrast:N}):void 0},key:`${re.value}-label`},y.jsx("span",{...Y("innerLabel"),children:re.label})))),ee=Nr(r,re=>F(re));return kPe(()=>{V(e9())},[u.length]),u.length===0?null:y.jsxs(Se,{...Y("root"),variant:D,size:g,ref:ee,mod:[{"full-width":k,orientation:C,initialized:I,"with-items-borders":$},M],...L,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&y.jsx(Pw,{target:J[W],parent:G,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},q),oe]})});q0.classes=AW,q0.displayName="@mantine/core/SegmentedControl";const[ZLe,Yw]=ri("SliderProvider was not found in tree"),NW=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...l},s)=>{const{getStyles:c}=Yw();return y.jsx(Se,{tabIndex:-1,variant:n,size:e,ref:s,...c("root"),...l})});NW.displayName="@mantine/core/SliderRoot";const DW=E.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}=Yw(),[_,T]=E.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(hu,{mounted:a!=null&&!!R,transition:"fade",duration:0,...c,children:A=>y.jsx("div",{...C("label",{style:A}),children:a})})]})});DW.displayName="@mantine/core/SliderThumb";function PW({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function QLe({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 $W({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:l}){const{getStyles:s}=Yw();if(!e)return null;const c=e.map((u,d)=>E.createElement(Se,{...s("markWrapper"),__vars:{"--mark-offset":`${PW({value:u.value,min:r,max:n})}%`},key:d},y.jsx(Se,{...s("mark"),mod:{filled:QLe({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})}$W.displayName="@mantine/core/SliderMarks";function MW({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:l,...s}){const{getStyles:c}=Yw();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($W,{...s,offset:a,disabled:o,inverted:i})]})})}MW.displayName="@mantine/core/SliderTrack";function JLe({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 Ww(e,r){return parseFloat(e.toFixed(r))}function eze(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function T7(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function R7(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function OW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function IW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var LW={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 tze={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"},rze=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":sr(r,"slider-size"),"--slider-color":n?Jo(n,e):void 0,"--slider-radius":a===void 0?void 0:bn(a),"--slider-thumb-size":o!==void 0?Ae(o):"calc(var(--slider-size) * 2)"}}),A7=lt((e,r)=>{const n=ze("Slider",tze,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:M,className:j,style:L,vars:Y,hiddenInputProps:O,restrictToMarks:U,thumbProps:I,attributes:q,...V}=n,G=bt({name:"Slider",props:n,classes:LW,classNames:o,className:j,styles:a,style:L,attributes:q,vars:Y,varsResolver:rze,unstyled:N}),{dir:F}=du(),[J,Q]=E.useState(!1),[z,W]=Us({value:typeof i=="number"?su(i,u,d):i,defaultValue:typeof b=="number"?su(b,u,d):b,finalValue:su(0,u,d),onChange:l}),X=E.useRef(z),Z=E.useRef(s);E.useEffect(()=>{Z.current=s},[s]);const oe=E.useRef(null),ee=E.useRef(null),[re,pe]=p||[u,d],Ce=PW({value:z,min:re,max:pe}),ce=$(z),de=typeof k=="function"?k(ce):k,be=g??eze(f),Oe=E.useCallback(({x:Ke})=>{if(!D){const We=JLe({value:Ke,min:re,max:pe,step:f,precision:be}),st=su(We,u,d);W(U&&w?.length?GU(st,w.map(Et=>Et.value)):st),X.current=st}},[D,u,d,re,pe,f,be,W,w,U]),Xe=E.useCallback(()=>{if(!D&&Z.current){const Ke=U&&w?.length?GU(X.current,w.map(We=>We.value)):X.current;Z.current(Ke)}},[D,w,U]),{ref:Ge,active:_t}=jU(Oe,{onScrubEnd:Xe},F),Qe=E.useCallback(Ke=>{!D&&Z.current&&Z.current(Ke)},[D]),St=Ke=>{if(!D)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=T7(z,w);W(st),Qe(st);break}const We=Ww(Math.min(Math.max(z+f,u),d),be);W(We),Qe(We);break}case"ArrowRight":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=F==="rtl"?R7(z,w):T7(z,w);W(st),Qe(st);break}const We=Ww(Math.min(Math.max(F==="rtl"?z-f:z+f,u),d),be);W(We),Qe(We);break}case"ArrowDown":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=R7(z,w);W(st),Qe(st);break}const We=Ww(Math.min(Math.max(z-f,u),d),be);W(We),Qe(We);break}case"ArrowLeft":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=F==="rtl"?T7(z,w):R7(z,w);W(st),Qe(st);break}const We=Ww(Math.min(Math.max(F==="rtl"?z+f:z-f,u),d),be);W(We),Qe(We);break}case"Home":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){W(OW(w)),Qe(OW(w));break}W(u),Qe(u);break}case"End":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){W(IW(w)),Qe(IW(w));break}W(d),Qe(d);break}}};return y.jsx(ZLe,{value:{getStyles:G},children:y.jsxs(NW,{...V,ref:Nr(r,oe),onKeyDownCapture:St,onMouseDownCapture:()=>oe.current?.focus(),size:c,disabled:D,children:[y.jsx(MW,{inverted:M,offset:0,filled:Ce,marks:w,min:re,max:pe,value:ce,disabled:D,containerProps:{ref:Ge,onMouseEnter:R?()=>Q(!0):void 0,onMouseLeave:R?()=>Q(!1):void 0},children:y.jsx(DW,{max:pe,min:re,value:ce,position:Ce,dragging:_t,label:de,ref:ee,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,isHovered:J,disabled:D,...I,children:A})}),y.jsx("input",{type:"hidden",name:x,value:ce,...O})]})})});A7.classes=LW,A7.displayName="@mantine/core/Slider";const N7=lt((e,r)=>{const{w:n,h:o,miw:a,mih:i,...l}=ze("Space",null,e);return y.jsx(Se,{ref:r,...l,w:n,miw:a??n,h:o,mih:i??o})});N7.displayName="@mantine/core/Space";var zW={root:"m_6d731127"};const nze={gap:"md",align:"stretch",justify:"flex-start"},oze=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":qs(r),"--stack-align":n,"--stack-justify":o}}),ra=lt((e,r)=>{const n=ze("Stack",nze,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=bt({name:"Stack",props:n,classes:zW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:oze});return y.jsx(Se,{ref:r,...x("root"),variant:f,...b})});ra.classes=zW,ra.displayName="@mantine/core/Stack";const[aze,D7]=ri("Tabs component was not found in the tree");var U0={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 V0=lt((e,r)=>{const n=ze("TabsList",null,e),{children:o,className:a,grow:i,justify:l,classNames:s,styles:c,style:u,mod:d,...p}=n,f=D7();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})});V0.classes=U0,V0.displayName="@mantine/core/TabsList";const Zs=lt((e,r)=>{const n=ze("TabsPanel",null,e),{children:o,className:a,value:i,classNames:l,styles:s,style:c,mod:u,keepMounted:d,...p}=n,f=D7(),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})});Zs.classes=U0,Zs.displayName="@mantine/core/TabsPanel";const Bf=lt((e,r)=>{const n=ze("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,_=po(),{dir:T}=du(),R=D7(),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(Pr,{...C,...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?Jo(p,_):void 0},onKeyDown:T0({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:R.activateTabWithKeyboard,loop:R.loop,orientation:R.orientation||"horizontal",dir:T,onKeyDown:u}),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})]})});Bf.classes=U0,Bf.displayName="@mantine/core/TabsTab";const BW="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",ize={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},lze=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":bn(r),"--tabs-color":Jo(n,e),"--tabs-text-color":E$e(o,e)?f9({color:n,theme:e,autoContrast:o}):void 0}}),Jd=lt((e,r)=>{const n=ze("Tabs",ize,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:M,...j}=n,L=Ta(u),[Y,O]=Us({value:a,defaultValue:o,finalValue:null,onChange:i}),U=bt({name:"Tabs",props:n,classes:U0,className:R,style:A,classNames:C,styles:_,unstyled:T,attributes:M,vars:D,varsResolver:lze});return y.jsx(aze,{value:{placement:w,value:Y,orientation:l,id:L,loop:c,activateTabWithKeyboard:d,getTabId:TU(`${L}-tab`,BW),getPanelId:TU(`${L}-panel`,BW),onChange:O,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:U},children:y.jsx(Se,{ref:r,id:L,variant:f,mod:[{orientation:l,inverted:l==="horizontal"&&x,placement:l==="vertical"&&w},$],...U("root"),...j,children:s})})});Jd.classes=U0,Jd.displayName="@mantine/core/Tabs",Jd.Tab=Bf,Jd.Panel=Zs,Jd.List=V0;var jW={root:"m_7341320d"};const sze=(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":sr(r,"ti-size"),"--ti-radius":n===void 0?void 0:bn(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}}},ci=lt((e,r)=>{const n=ze("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,autoContrast:u,attributes:d,...p}=n,f=bt({name:"ThemeIcon",classes:jW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,vars:c,varsResolver:sze});return y.jsx(Se,{ref:r,...f("root"),...p})});ci.classes=jW,ci.displayName="@mantine/core/ThemeIcon";const cze=["h1","h2","h3","h4","h5","h6"],uze=["xs","sm","md","lg","xl"];function dze(e,r){const n=r!==void 0?r:`h${e}`;return cze.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:uze.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 FW={root:"m_8a5d1357"};const pze={order:1},hze=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=dze(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}}},ep=lt((e,r)=>{const n=ze("Title",pze,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=bt({name:"Title",props:n,classes:FW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:u,varsResolver:hze});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});ep.classes=FW,ep.displayName="@mantine/core/Title";function HW(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 P7({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=E.useRef(null),b=(e.children||[]).map(_=>y.jsx(P7,{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&&bf(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=bf(_.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(HW(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(HW(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})]})}P7.displayName="@mantine/core/TreeNode";function Gw(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=Gw(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 qW(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=qW(e,n.children);if(o)return o}}return null}function Xw(e,r,n=[]){const o=qW(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?Xw(a.value,r,n):n.push(a.value)}),n):n}function UW(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...UW(n.children)):r.push(n.value),r),[])}function fze(e,r,n){return n.length===0?!1:n.includes(e)?!0:Gw(r,n).result.some(o=>o.value===e&&o.checked)}const mze=WU(fze);function gze(e,r,n){return n.length===0?!1:Gw(r,n).result.some(o=>o.value===e&&o.indeterminate)}const yze=WU(gze);function VW(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)&&VW(e,a.children,n,o)}),o}function bze(e,r){const n=[];return e.forEach(o=>n.push(...Xw(o,r))),Array.from(new Set(n))}function Y0({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[l,s]=E.useState([]),[c,u]=E.useState(n),[d,p]=E.useState(e),[f,g]=E.useState(r),[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(I=>{u(q=>VW(q,I,d)),g(q=>bze(q,I)),s(I)},[d,f]),_=E.useCallback(I=>{u(q=>{const V={...q,[I]:!q[I]};return V[I]?i?.(I):a?.(I),V})},[a,i]),T=E.useCallback(I=>{u(q=>(q[I]!==!1&&a?.(I),{...q,[I]:!1}))},[a]),R=E.useCallback(I=>{u(q=>(q[I]!==!0&&i?.(I),{...q,[I]:!0}))},[i]),A=E.useCallback(()=>{u(I=>{const q={...I};return Object.keys(q).forEach(V=>{q[V]=!0}),q})},[]),D=E.useCallback(()=>{u(I=>{const q={...I};return Object.keys(q).forEach(V=>{q[V]=!1}),q})},[]),N=E.useCallback(I=>p(q=>o?q.includes(I)?(x(null),q.filter(V=>V!==I)):(x(I),[...q,I]):q.includes(I)?(x(null),[]):(x(I),[I])),[]),$=E.useCallback(I=>{x(I),p(q=>o?q.includes(I)?q:[...q,I]:[I])},[]),M=E.useCallback(I=>{b===I&&x(null),p(q=>q.filter(V=>V!==I))},[]),j=E.useCallback(()=>{p([]),x(null)},[]),L=E.useCallback(I=>{const q=Xw(I,l);g(V=>Array.from(new Set([...V,...q])))},[l]),Y=E.useCallback(I=>{const q=Xw(I,l);g(V=>V.filter(G=>!q.includes(G)))},[l]),O=E.useCallback(()=>{g(()=>UW(l))},[l]),U=E.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:O,uncheckAllNodes:U,setCheckedState:g,toggleSelected:N,select:$,deselect:M,clearSelected:j,setSelectedState:p,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>Gw(l,f).result,isNodeChecked:I=>mze(I,l,f),isNodeIndeterminate:I=>yze(I,l,f)}}var YW={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function WW(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...WW(n.children)),r),[])}const vze={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},xze=(e,{levelOffset:r})=>({root:{"--level-offset":qs(r)}}),jf=lt((e,r)=>{const n=ze("Tree",vze,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=Y0(),A=p||R,D=bt({name:"Tree",classes:YW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:xze}),N=DU(()=>b&&A.clearSelected()),$=Nr(r,N),M=E.useMemo(()=>WW(u),[u]);E.useEffect(()=>{A.initialize(u)},[u]);const j=u.map((L,Y)=>y.jsx(P7,{node:L,getStyles:D,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:A,renderNode:f,flatValues:M,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})});jf.displayName="@mantine/core/Tree",jf.classes=YW;const $7=E.createContext(null);function GW(){const e=E.useContext($7);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function wze(){return GW().ref}function kze(){return GW().ref.current}const XW=E.createContext(null);function _ze(){const e=E.useContext(XW);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[Eze,Sze]=ri("PanningAtomSafeCtx is not provided");function Cze({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=E.useState(!1),l=E.useRef(null),s=E.useRef(null);s.current||(s.current=lDe(!1)),Q8(()=>{i(!0)},[]),E.useEffect(()=>s.current?.subscribe(u=>{l.current?.setAttribute("data-likec4-diagram-panning",u?"true":"false")}),[]);const c=E.useMemo(()=>({id:e,ref:l}),[e,l]);return y.jsx(Eze,{value:s.current,children:y.jsx(XW.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($7.Provider,{value:c,children:o})})})})}const W0=E.createContext(null),M7=E.createContext(null);function Tze({children:e}){return E.useContext(M7)?y.jsx(y.Fragment,{children:e}):null}function Rze(){return E.useContext(W0)}function Ho(){const e=E.useContext(W0);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function Aze(){const e=Ho(),[r,n]=E.useState(e.$data.specification);return E.useEffect(()=>{n(o=>ut(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const KW=E.createContext({}),Nze=["yellow","orange","amber","tomato","red","ruby","crimson","pink","pink","purple","violet","indigo","blue","teal","grass","lime"],Dze=e=>{const r=e.color;if(nj(e))return`
--colors-likec4-tag-bg: ${r};
--colors-likec4-tag-bg-hover: color-mix(in srgb, ${r}, var(--colors-likec4-mix-color) 20%);
`;if(!Nze.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 Pze(e,r){return!e||iu(e)?"":yn(jE(e),ENe(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,Dze(o),"}"]),oU(`
`))}function $ze({children:e,rootSelector:r}){const n=Aze().tags,o=Pze(n,r);return y.jsxs(KW.Provider,{value:n,children:[o!==""&&y.jsx(Mze,{stylesheet:o}),e]})}const Mze=E.memo(({stylesheet:e})=>{const r=Yd()?.();return y.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function Oze(e){return E.useContext(KW)[e]??{color:"tomato"}}function ZW(){return Ta().replace("mantine-","likec4-")}var Ize="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",Lze=Ize.split(","),zze="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",Bze=zze.split(",").concat(Lze),jze=new Map(Bze.map(e=>[e,!0])),Fze=/&|@/,QW=co(e=>jze.has(e)||e.startsWith("--")||Fze.test(e));const Hze=(e,r)=>!r.includes(e)&&!QW(e),qze=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,Uze=(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},Vze=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function O7(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:J1(r),a=n.shouldForwardProp||Hze,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=Uze(e.__cva__,o),c=qze(e,i),u=e.__base__||e,d=E.forwardRef(function(f,g){const{as:b=u,unstyled:x,children:w,...k}=f,C=E.useMemo(()=>Object.assign({},l,k),[k]),[_,T,R,A,D]=E.useMemo(()=>Yn(C,X8.keys,c,s.variantKeys,QW),[C]);function N(){const{css:j,...L}=A,Y=s.__getCompoundVariantCss__?.(R);return Je(s(R,!1),ye(Y,L,j),C.className)}function $(){const{css:j,...L}=A,Y=s.raw(R);return Je(ye(Y,L,j),C.className)}const M=()=>{if(x){const{css:j,...L}=A;return Je(ye(L,j),C.className)}return r.__recipe__?N():$()};return E.createElement(b,{ref:g,...T,...D,...X8(_),className:M()},w??C.children)}),p=Vze(u);return d.displayName=`styled.${p}`,d.__cva__=s,d.__base__=u,d.__shouldForwardProps__=i,d}function Yze(){const e=new Map;return new Proxy(O7,{apply(r,n,o){return O7(...o)},get(r,n){return e.has(n)||e.set(n,O7(n)),e.get(n)}})}const Qs=Yze(),JW={transform(e){return e}},Wze=(e={})=>{const r=Q1(JW,e);return JW.transform(r,Z1)},Ur=E.forwardRef(function(e,r){const[n,o]=Yn(e,[]),a=Wze(n),i={ref:r,...a,...o};return E.createElement(Qs.div,i)}),eG={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"}},I7=(e={})=>{const r=Q1(eG,e);return eG.transform(r,Z1)},G0=e=>ye(I7(e));G0.raw=I7;const Ff=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=I7(n),i={ref:r,...a,...o};return E.createElement(Qs.div,i)}),tG={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},L7=(e={})=>{const r=Q1(tG,e);return tG.transform(r,Z1)},qo=e=>ye(L7(e));qo.raw=L7;const xn=E.forwardRef(function(e,r){const[n,o]=Yn(e,["justify","gap"]),a=L7(n),i={ref:r,...a,...o};return E.createElement(Qs.div,i)}),rG={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},nG=(e={})=>{const r=Q1(rG,e);return rG.transform(r,Z1)},oG=e=>ye(nG(e));oG.raw=nG;const aG={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"}},iG=(e={})=>{const r=Q1(aG,e);return aG.transform(r,Z1)},lG=e=>ye(iG(e));lG.raw=iG;const Gze=E.createContext(null),z7={didCatch:!1,error:null};let B7=class extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=z7}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(z7)}}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&&Xze(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(z7)}}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=E.createElement(n,s);else if(o!==void 0)l=o;else throw i}return E.createElement(Gze.Provider,{value:{didCatch:a,error:i,resetErrorBoundary:this.resetErrorBoundary}},l)}};function Xze(){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 Kze=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Hf=yt("outline","x","X",Kze);function j7({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error";return y.jsx(Ur,{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(Uw,{icon:y.jsx(Hf,{style:{width:16,height:16}}),styles:{icon:{alignSelf:"flex-start"}},color:"red",title:"Oops, something went wrong",p:"xl",withCloseButton:!1,children:[y.jsx(ta,{maw:"100%",mah:400,children:y.jsx(Bw,{block:!0,children:n})}),y.jsx(qr,{gap:"xs",mt:"xl",children:y.jsx(Zn,{color:"gray",size:"xs",variant:"light",onClick:()=>r(),children:"Reset"})})]})})}function sG(e){return y.jsx(B7,{FallbackComponent:j7,onError:(r,n)=>{console.error(r,n)},...e})}function Zze(){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 Qze(){const e=Zze();if(e.__xstate__)return e.__xstate__}const Jze=e=>{if(typeof window>"u")return;const r=Qze();r&&r.register(e)};class cG{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 uG=".",eBe="",dG="",tBe="#",rBe="*",pG="xstate.init",nBe="xstate.error",X0="xstate.stop";function oBe(e,r){return{type:`xstate.after.${e}.${r}`}}function F7(e,r){return{type:`xstate.done.state.${e}`,output:r}}function aBe(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function hG(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function fG(e){return{type:pG,input:e}}function as(e){setTimeout(()=>{throw e})}const iBe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function mG(e,r){const n=gG(e),o=gG(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?mG(n[a],o[a]):!1)}function H7(e){if(vG(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 gG(e){if(jBe(e))return e.value;if(typeof e!="string")return e;const r=H7(e);return lBe(r)}function lBe(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 yG(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 bG(e){return vG(e)?e:[e]}function Js(e){return e===void 0?[]:bG(e)}function q7(e,r,n,o){return typeof e=="function"?e({context:r,event:n,self:o}):e}function vG(e){return Array.isArray(e)}function sBe(e){return e.type.startsWith("xstate.error.actor")}function qf(e){return bG(e).map(r=>typeof r>"u"||typeof r=="string"?{target:r}:r)}function xG(e){if(!(e===void 0||e===eBe))return Js(e)}function Kw(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 wG(e,r){return`${r}.${e}`}function U7(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 kG(e,r){return`${e.sessionId}.${r}`}let cBe=0;function uBe(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=kG(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=kG(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:${cBe++}`,_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),_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=Kw(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 V7=!1;const Y7=1;let na=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const dBe={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class pBe{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 cG(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=na.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={...dBe,...n},{clock:a,logger:i,parent:l,syncSnapshot:s,id:c,systemId:u,inspect:d}=o;this.system=l?l.system:uBe(this,{clock:a,logger:i}),d&&!l&&this.system.inspect(Kw(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){as(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=V7;try{V7=!0,p.exec(p.info,p.params)}finally{V7=g}};this._processingStatus===na.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){as(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){as(i)}this._stopProcedure(),this._complete(),this._doneEvent=aBe(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=Kw(r,n,o);if(this._processingStatus!==na.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){as(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)as(i);else try{a.error(i)}catch(l){as(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===na.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=na.Running;const r=fG(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===X0&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===na.Stopped?this:(this.mailbox.clear(),this._processingStatus===na.NotStarted?(this._processingStatus=na.Stopped,this):(this.mailbox.enqueue({type:X0}),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){as(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||as(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){as(i)}}this.observers.clear(),n&&as(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,hG(this.id,r))}_stopProcedure(){return this._processingStatus!==na.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new cG(this._process.bind(this)),this._processingStatus=na.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==na.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:Jze)(this)}toJSON(){return{xstate$$type:Y7,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[iBe](){return this}getSnapshot(){return this._snapshot}}function Uf(e,...[r]){return new pBe(e,r)}function hBe(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 oa(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=hBe,r.execute=fBe,r}function mBe(e,r,n,o,{id:a,systemId:i,src:l,input:s,syncSnapshot:c}){const u=typeof l=="string"?U7(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=Uf(u,{id:d,src:l,parent:e.self,syncSnapshot:c,systemId:i,input:f})),[np(r,{children:{...r.children,[d]:p}}),{id:a,systemId:i,actorRef:p,src:l,input:f},void 0]}function gBe(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==na.Stopped&&r.start()})}function Vf(...[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=mBe,i.execute=gBe,i}function yBe(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]),[np(r,{children:s}),l,void 0]}function bBe(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==na.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function yu(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=yBe,r.execute=bBe,r}function vBe(e,{context:r,event:n},{guards:o}){return o.every(a=>Yf(a,r,n,e))}function Zw(e){function r(n,o){return!1}return r.check=vBe,r.guards=e,r}function xBe(e,{context:r,event:n},{guards:o}){return o.some(a=>Yf(a,r,n,e))}function _G(e){function r(n,o){return!1}return r.check=xBe,r.guards=e,r}function Yf(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 Yf(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 W7=e=>e.type==="atomic"||e.type==="final";function Wf(e){return Object.values(e.states).filter(r=>r.type!=="history")}function K0(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 Qw(e){const r=new Set(e),n=SG(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))RG(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of Wf(o))if(a.type!=="history"&&!r.has(a)){const i=RG(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 EG(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(W7(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=EG(a,r);return o}function SG(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 CG(e,r){const n=Qw(r);return EG(e,SG(n))}function G7(e,r){return r.type==="compound"?Wf(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?Wf(r).every(n=>G7(e,n)):r.type==="final"}const Jw=e=>e[0]===tBe;function wBe(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===rBe)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 kBe(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=oBe(o,e.id),i=a.type;return e.entry.push(ln(a,{id:i,delay:o})),e.exit.push(oa(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 Js(i).map(c=>({...c,event:s,delay:l}))}).map(o=>{const{delay:a}=o;return{...tp(e,o.event,o),delay:a}})}function tp(e,r,n){const o=xG(n.target),a=n.reenter??!1,i=SBe(e,o),l={...n,actions:Js(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 _Be(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===dG)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,qf(o).map(a=>tp(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,qf(e.config.onDone).map(o=>tp(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,qf(n.onDone).map(a=>tp(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,qf(n.onError).map(a=>tp(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,qf(n.onSnapshot).map(a=>tp(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 EBe(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"?[]:Js(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function SBe(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(Jw(n))return e.machine.getStateNodeById(n);const o=n[0]===uG;if(o&&!e.parent)return e2(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return e2(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 TG(e){const r=xG(e.config.target);return r?{target:r.map(n=>typeof n=="string"?e2(e.parent,n):n)}:e.parent.initial}function rp(e){return e.type==="history"}function RG(e){const r=AG(e);for(const n of r)for(const o of K0(n,e))r.add(o);return r}function AG(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 Wf(o))n(a)}}return n(e),r}function Gf(e,r){if(Jw(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 e2(e,r){if(typeof r=="string"&&Jw(r))try{return e.machine.getStateNodeById(r)}catch{}const n=H7(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=Gf(o,a)}return o}function t2(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=>Gf(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const l=Gf(e,i);if(!l)return a;const s=t2(l,r[i]);return a.concat(s)},[]))}function CBe(e,r,n,o){const a=Gf(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function TBe(e,r,n,o){const a=Object.keys(r),i=Gf(e,a[0]),l=X7(i,r[a[0]],n,o);return!l||!l.length?e.next(n,o):l}function RBe(e,r,n,o){const a=[];for(const i of Object.keys(r)){const l=r[i];if(!l)continue;const s=Gf(e,i),c=X7(s,l,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function X7(e,r,n,o){return typeof r=="string"?CBe(e,r,n,o):Object.keys(r).length===1?TBe(e,r,n,o):RBe(e,r,n,o)}function ABe(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function bu(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function NBe(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 NG(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(NBe(Z7([a],r,n),Z7([s],r,n)))if(bu(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 DBe(e){const[r,...n]=e;for(const o of K0(r,void 0))if(n.every(a=>bu(a,o)))return o}function K7(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if(rp(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of K7(TG(o),r))n.add(a);else n.add(o);return[...n]}function DG(e,r){const n=K7(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||bu(a,e.source)))return e.source;const o=DBe(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function Z7(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=DG(a,n);a.reenter&&a.source===i&&o.add(i);for(const l of r)bu(l,i)&&o.add(l)}return[...o]}function PBe(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function Q7(e,r,n,o,a,i){if(!e.length)return r;const l=new Set(r._nodes);let s=r.historyValue;const c=NG(e,l,s);let u=r;a||([u,s]=IBe(u,o,n,c,l,s,i,n.actionExecutor)),u=Kf(u,o,n,c.flatMap(p=>p.actions),i,void 0),u=MBe(u,o,n,c,l,i,s,a);const d=[...l];u.status==="done"&&(u=Kf(u,o,n,d.sort((p,f)=>f.order-p.order).flatMap(p=>p.exit),i,void 0));try{return s===r.historyValue&&PBe(r._nodes,l)?u:np(u,{_nodes:d,historyValue:s})}catch(p){throw p}}function $Be(e,r,n,o,a){if(o.output===void 0)return;const i=F7(a.id,a.output!==void 0&&a.parent?q7(a.output,e.context,r,n.self):void 0);return q7(o.output,e.context,i,n.self)}function MBe(e,r,n,o,a,i,l,s){let c=e;const u=new Set,d=new Set;OBe(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(Vf(b.src,{...b,syncSnapshot:!!b.onSnapshot}));if(d.has(f)){const b=f.initial.actions;g.push(...b)}if(c=Kf(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(F7(b.id,f.output!==void 0?q7(f.output,c.context,r,n.self):void 0));x?.type==="parallel"&&!p.has(x)&&G7(a,x);)p.add(x),i.push(F7(x.id)),w=x,x=x.parent;if(x)continue;c=np(c,{status:"done",output:$Be(c,r,n,c.machine.root,w)})}}return c}function OBe(e,r,n,o){for(const a of e){const i=DG(a,r);for(const s of a.target||[])!rp(s)&&(a.source!==s||a.source!==i||a.reenter)&&(o.add(s),n.add(s)),Xf(s,r,n,o);const l=K7(a,r);for(const s of l){const c=K0(s,i);i?.type==="parallel"&&c.push(i),PG(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function Xf(e,r,n,o){if(rp(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),Xf(i,r,n,o);for(const i of a)J7(i,e.parent,o,r,n)}else{const a=TG(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),Xf(i,r,n,o);for(const i of a.target)J7(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;rp(a)||(o.add(a),n.add(a)),Xf(a,r,n,o),J7(a,e,o,r,n)}else if(e.type==="parallel")for(const a of Wf(e).filter(i=>!rp(i)))[...o].some(i=>bu(i,a))||(rp(a)||(o.add(a),n.add(a)),Xf(a,r,n,o))}function PG(e,r,n,o,a){for(const i of o)if((!a||bu(i,a))&&e.add(i),i.type==="parallel")for(const l of Wf(i).filter(s=>!rp(s)))[...e].some(s=>bu(s,l))||(e.add(l),Xf(l,r,n,e))}function J7(e,r,n,o,a){PG(n,o,a,K0(e,r))}function IBe(e,r,n,o,a,i,l,s){let c=e;const u=Z7(o,a,i);u.sort((p,f)=>f.order-p.order);let d;for(const p of u)for(const f of ABe(p)){let g;f.history==="deep"?g=b=>W7(b)&&bu(b,p):g=b=>b.parent===p,d??={...i},d[f.id]=Array.from(a).filter(g)}for(const p of u)c=Kf(c,r,n,[...p.exit,...p.invoke.map(f=>yu(f.id))],l,void 0),a.delete(p);return[c,d||i]}function LBe(e,r){return e.implementations.actions[r]}function $G(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:LBe(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=$G(s,r,n,w,a,i))}return s}function Kf(e,r,n,o,a,i){const l=i?[]:void 0,s=$G(e,r,n,o,{internalQueue:a,deferredActorIds:i},l);return l?.forEach(([c,u])=>{c.retryResolve(n,s,u)}),s}function eS(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===X0)return a=np(MG(a,r,n),{status:"stopped"}),l(a,r,[]),{snapshot:a,microstates:i};let s=r;if(s.type!==pG){const u=s,d=sBe(u),p=OG(u,a);if(d&&!p.length)return a=np(e,{status:"error",error:u.error}),l(a,u,[]),{snapshot:a,microstates:i};a=Q7(p,e,n,s,!1,o),l(a,u,p)}let c=!0;for(;a.status==="active";){let u=c?zBe(a,s):[];const d=u.length?a:void 0;if(!u.length){if(!o.length)break;s=o.shift(),u=OG(s,a)}a=Q7(u,a,n,s,!1,o),c=a!==d,l(a,s,u)}return a.status!=="active"&&MG(a,s,n),{snapshot:a,microstates:i}}function MG(e,r,n){return Kf(e,r,n,Object.values(e.children).map(o=>yu(o)),[],void 0)}function OG(e,r){return r.machine.getTransitionData(r,e)}function zBe(e,r){const n=new Set,o=e._nodes.filter(W7);for(const a of o)e:for(const i of[a].concat(K0(a,void 0)))if(i.always){for(const l of i.always)if(l.guard===void 0||Yf(l.guard,e.context,r,e)){n.add(l);break e}}return NG(Array.from(n),new Set(e._nodes),e.historyValue)}function BBe(e,r){const n=Qw(t2(e,r));return CG(e,[...n])}function jBe(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const FBe=function(e){return mG(e,this.value)},HBe=function(e){return this.tags.has(e)},qBe=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},UBe=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)}},VBe=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function r2(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:CG(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:FBe,hasTag:HBe,can:qBe,getMeta:VBe,toJSON:UBe}}function np(e,r={}){return r2({...e,...r},e.machine)}function YBe(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 WBe(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:IG(l),children:g,historyValue:YBe(f.historyValue)}}function IG(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:Y7,id:o.id};else{const a=IG(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function GBe(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 XBe(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 ln(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=GBe,n.execute=XBe,n}const LG=new WeakMap;function zG(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,l={receivers:void 0,dispose:void 0};LG.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=LG.get(o.self);return n.type===X0?(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 BG="xstate.promise.resolve",jG="xstate.promise.reject",n2=new WeakMap;function KBe(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case BG:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case jG:return{...r,status:"error",error:n.data,input:void 0};case X0:return n2.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;n2.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(l=>{n.getSnapshot().status==="active"&&(n2.delete(n),o._relay(n,n,{type:BG,data:l}))},l=>{n.getSnapshot().status==="active"&&(n2.delete(n),o._relay(n,n,{type:jG,data:l}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function ZBe(e,{machine:r,context:n},o,a){const i=(l,s)=>{if(typeof l=="string"){const c=U7(r,l);if(!c)throw new Error(`Actor logic '${l}' not implemented in machine '${r.id}'`);const u=Uf(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 Uf(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!==na.Stopped&&c.start()}),c}}function QBe(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:ZBe(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[np(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function et(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=QBe,r}const FG=new WeakMap;function Zf(e,r,n){let o=FG.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},FG.set(e,o)),o[r]}const JBe={},Z0=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class o2{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(uG),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?yG(this.config.states,(o,a)=>new o2(o,{_parent:this,_key:a,_machine:this.machine})):JBe,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=Js(this.config.entry).slice(),this.exit=Js(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=Js(r.tags).slice()}_initialize(){this.transitions=_Be(this),this.config.always&&(this.always=qf(this.config.always).map(r=>tp(this,dG,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(Z0),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(Z0),eventType:null})}:void 0,history:this.history,states:yG(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(Z0)})),entry:this.entry.map(Z0),exit:this.exit.map(Z0),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 Zf(this,"invoke",()=>Js(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??wG(this.id,n),l=typeof o=="string"?o:`xstate.invoke.${wG(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 Zf(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 Zf(this,"delayedTransitions",()=>kBe(this))}get initial(){return Zf(this,"initial",()=>EBe(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const l=Zf(this,`candidates-${o}`,()=>wBe(this,o));for(const s of l){const{guard:c}=s,u=r.context;let d=!1;try{d=!c||Yf(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 Zf(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 eje="#";class tS{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 o2(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 tS(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=BBe(this.root,r.value),o=Qw(t2(this.root,n));return r2({_nodes:[...o],context:r.context||{},children:{},status:G7(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return eS(r,n,o,[]).snapshot}microstep(r,n,o){return eS(r,n,o,[]).microstates}getTransitionData(r,n){return X7(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=r2({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?Kf(i,n,r,[et(({spawn:l,event:s,self:c})=>a({spawn:l,input:s.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=fG(n),a=[],i=this.getPreInitialState(r,o,a),l=Q7([{target:[...AG(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:s}=eS(l,o,r,a);return s}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=H7(r),o=n.slice(1),a=Jw(n[0])?n[0].slice(eje.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 e2(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return WBe(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"?U7(this,b):b;if(!x)return;const w=Uf(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 o2)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=r2({...r,children:o,_nodes:Array.from(Qw(t2(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===Y7){p[g]=f[b.id];continue}d(b,f)}}}}return d(c.context,o),c}}function tje(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function rje(e,{event:r}){e.defer(()=>e.emit(r))}function ui(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=tje,r.execute=rje,r}let rS=(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===rS.Parent?g=e.self._parent:f===rS.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 oje(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function aje(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?hG(e.self.id,o.data):o)})}function is(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=oje,o.execute=aje,o}function ije(e,r){return is(rS.Parent,e,r)}function lje(e,r,n,o,{collect:a}){const i=[],l=function(s){i.push(s)};return l.assign=(...s)=>{i.push(et(...s))},l.cancel=(...s)=>{i.push(oa(...s))},l.raise=(...s)=>{i.push(ln(...s))},l.sendTo=(...s)=>{i.push(is(...s))},l.sendParent=(...s)=>{i.push(ije(...s))},l.spawnChild=(...s)=>{i.push(Vf(...s))},l.stopChild=(...s)=>{i.push(yu(...s))},l.emit=(...s)=>{i.push(ui(...s))},a({context:n.context,event:n.event,enqueue:l,check:s=>Yf(s,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function sn(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=lje,r}function qt(e,r){const n=Js(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 sje(e,r){return new tS(e,r)}function ec({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{createMachine:i=>sje({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a})}}DH();const HG=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{HG(o,r)})};function cje(e){const r=[];HG(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 uje(e,...[r]){let[[n,o],a]=E.useState(()=>{const i=Uf(e,r);return[e.config,i]});if(e.config!==n){const i=Uf(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return ELe(()=>{o.logic.implementations=e.implementations}),o}function nS(e,...[r,n]){const o=uje(e,r);return E.useEffect(()=>{if(!n)return;const a=o.subscribe(Kw(n));return()=>{a.unsubscribe()}},[n]),E.useEffect(()=>(o.start(),()=>{cje(o)}),[o]),o}function dje(e,r){return e===r}function wn(e,r,n=dje){const o=E.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:l}=e.subscribe(i);return l},[e]),a=E.useCallback(()=>e?.getSnapshot(),[e]);return MH.useSyncExternalStoreWithSelector(o,a,a,r,n)}function tc(e){return{get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return e.get("diagram")??null},get searchActorRef(){return e.get("search")??null}}}function Qf(e,r){return e.view.nodes.find(n=>n.id===r)??null}function oS(e,r){return e.view.edges.find(n=>n.id===r)??null}function pje(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 hje=32;function fje(e){const r=mt(e.context.activeWalkthrough),n=mt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=mt(o.nodeLookup.get(n.source)),i=mt(o.nodeLookup.get(n.target)),l=VF([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,...Wn(c)})}return s??=mje(n,o),s?s=Qc.merge(s,l):s=l,{duration:350,bounds:Qc.expand(s,hje)}}function mje(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=dH({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?Qc.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}const aS=E.createContext(null);aS.displayName="DiagramActorSafeContext";const gje=aS.Provider,Jf=()=>{const e=E.useContext(aS);if(e===null)throw new Error("DiagramActorRef is not provided");return e};function Wt(){const e=Jf();return E.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=>Qf(e.getSnapshot().context,r),findEdge:r=>e.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>oS(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 qG(e,r=Gn){const n=Jf();return wn(n,it(e),r)}function Da(e,r=Gn,n){const o=Jf(),a=E.useCallback(i=>e(i.context),n??[]);return wn(o,a,r)}function il(e,r){const n=Jf(),o=E.useRef(r);o.current=r,E.useEffect(()=>{const a=n.on(e,i=>{o.current(i)});return()=>{a.unsubscribe()}},[n])}const yje=e=>e.children.overlays;function UG(){return qG(yje,Object.is)}const bje=e=>e.children.search??null;function vje(){return qG(bje,Object.is)}function iS(e,r){e.indexOf(r)===-1&&e.push(r)}function a2(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const rc=(e,r,n)=>n>r?r:n<e?e:n;let lS=()=>{};const nc={},VG=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function YG(e){return typeof e=="object"&&e!==null}const WG=e=>/^0[^.\s]+$/u.test(e);function sS(e){let r;return()=>(r===void 0&&(r=e()),r)}const di=e=>e,xje=(e,r)=>n=>r(e(n)),Q0=(...e)=>e.reduce(xje),em=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class cS{constructor(){this.subscriptions=[]}add(r){return iS(this.subscriptions,r),()=>a2(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 ll=e=>e*1e3,pi=e=>e/1e3;function GG(e,r){return r?e*(1e3/r):0}const wje=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},XG=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,kje=1e-7,_je=12;function Eje(e,r,n,o,a){let i,l,s=0;do l=r+(n-r)/2,i=XG(l,o,a)-e,i>0?n=l:r=l;while(Math.abs(i)>kje&&++s<_je);return l}function J0(e,r,n,o){if(e===r&&n===o)return di;const a=i=>Eje(i,0,1,e,n);return i=>i===0||i===1?i:XG(a(i),r,o)}const KG=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,ZG=e=>r=>1-e(1-r),QG=J0(.33,1.53,.69,.99),uS=ZG(QG),JG=KG(uS),eX=e=>(e*=2)<1?.5*uS(e):.5*(2-Math.pow(2,-10*(e-1))),dS=e=>1-Math.sin(Math.acos(e)),tX=ZG(dS),rX=KG(dS),Sje=J0(.42,0,1,1),Cje=J0(0,0,.58,1),nX=J0(.42,0,.58,1),oX=e=>Array.isArray(e)&&typeof e[0]!="number";function aX(e,r){return oX(e)?e[wje(0,e.length,r)]:e}const iX=e=>Array.isArray(e)&&typeof e[0]=="number",Tje={linear:di,easeIn:Sje,easeInOut:nX,easeOut:Cje,circIn:dS,circInOut:rX,circOut:tX,backIn:uS,backInOut:JG,backOut:QG,anticipate:eX},Rje=e=>typeof e=="string",lX=e=>{if(iX(e)){lS(e.length===4);const[r,n,o,a]=e;return J0(r,n,o,a)}else if(Rje(e))return Tje[e];return e},i2=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Aje(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 Nje=40;function sX(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=i2.reduce((k,C)=>(k[C]=Aje(i),k),{}),{setup:s,read:c,resolveKeyframes:u,preUpdate:d,update:p,preRender:f,render:g,postRender:b}=l,x=()=>{const k=nc.useManualTiming?a.timestamp:performance.now();n=!1,nc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,Nje),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:i2.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<i2.length;C++)l[i2[C]].cancel(k)},state:a,steps:l}}const{schedule:$r,cancel:vu,state:mo,steps:pS}=sX(typeof requestAnimationFrame<"u"?requestAnimationFrame:di,!0);let l2;function Dje(){l2=void 0}const aa={now:()=>(l2===void 0&&aa.set(mo.isProcessing||nc.useManualTiming?mo.timestamp:performance.now()),l2),set:e=>{l2=e,queueMicrotask(Dje)}},cX=e=>r=>typeof r=="string"&&r.startsWith(e),hS=cX("--"),Pje=cX("var(--"),fS=e=>Pje(e)?$je.test(e.split("/*")[0].trim()):!1,$je=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tm={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ey={...tm,transform:e=>rc(0,1,e)},s2={...tm,default:1},ty=e=>Math.round(e*1e5)/1e5,mS=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mje(e){return e==null}const Oje=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,gS=(e,r)=>n=>!!(typeof n=="string"&&Oje.test(n)&&n.startsWith(e)||r&&!Mje(n)&&Object.prototype.hasOwnProperty.call(n,r)),uX=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,l,s]=o.match(mS);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},Ije=e=>rc(0,255,e),yS={...tm,transform:e=>Math.round(Ije(e))},op={test:gS("rgb","red"),parse:uX("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+yS.transform(e)+", "+yS.transform(r)+", "+yS.transform(n)+", "+ty(ey.transform(o))+")"};function Lje(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 bS={test:gS("#"),parse:Lje,transform:op.transform},ry=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),xu=ry("deg"),ls=ry("%"),vt=ry("px"),zje=ry("vh"),Bje=ry("vw"),dX={...ls,parse:e=>ls.parse(e)/100,transform:e=>ls.transform(e*100)},rm={test:gS("hsl","hue"),parse:uX("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+ls.transform(ty(r))+", "+ls.transform(ty(n))+", "+ty(ey.transform(o))+")"},kn={test:e=>op.test(e)||bS.test(e)||rm.test(e),parse:e=>op.test(e)?op.parse(e):rm.test(e)?rm.parse(e):bS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?op.transform(e):rm.transform(e),getAnimatableNone:e=>{const r=kn.parse(e);return r.alpha=0,kn.transform(r)}},jje=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Fje(e){return isNaN(e)&&typeof e=="string"&&(e.match(mS)?.length||0)+(e.match(jje)?.length||0)>0}const pX="number",hX="color",Hje="var",qje="var(",fX="${}",Uje=/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 ny(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const l=r.replace(Uje,s=>(kn.test(s)?(o.color.push(i),a.push(hX),n.push(kn.parse(s))):s.startsWith(qje)?(o.var.push(i),a.push(Hje),n.push(s)):(o.number.push(i),a.push(pX),n.push(parseFloat(s))),++i,fX)).split(fX);return{values:n,split:l,indexes:o,types:a}}function mX(e){return ny(e).values}function gX(e){const{split:r,types:n}=ny(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===pX?i+=ty(a[l]):s===hX?i+=kn.transform(a[l]):i+=a[l]}return i}}const Vje=e=>typeof e=="number"?0:kn.test(e)?kn.getAnimatableNone(e):e;function Yje(e){const r=mX(e);return gX(e)(r.map(Vje))}const wu={test:Fje,parse:mX,createTransformer:gX,getAnimatableNone:Yje};function vS(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 Wje({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=vS(c,s,e+.3333333333333333),i=vS(c,s,e),l=vS(c,s,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:o}}function c2(e,r){return n=>n>0?r:e}const Ir=(e,r,n)=>e+(r-e)*n,xS=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},Gje=[bS,op,rm],Xje=e=>Gje.find(r=>r.test(e));function yX(e){const r=Xje(e);if(!r)return!1;let n=r.parse(e);return r===rm&&(n=Wje(n)),n}const bX=(e,r)=>{const n=yX(e),o=yX(r);if(!n||!o)return c2(e,r);const a={...n};return i=>(a.red=xS(n.red,o.red,i),a.green=xS(n.green,o.green,i),a.blue=xS(n.blue,o.blue,i),a.alpha=Ir(n.alpha,o.alpha,i),op.transform(a))},wS=new Set(["none","hidden"]);function Kje(e,r){return wS.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function Zje(e,r){return n=>Ir(e,r,n)}function kS(e){return typeof e=="number"?Zje:typeof e=="string"?fS(e)?c2:kn.test(e)?bX:eFe:Array.isArray(e)?vX:typeof e=="object"?kn.test(e)?bX:Qje:c2}function vX(e,r){const n=[...e],o=n.length,a=e.map((i,l)=>kS(i)(i,r[l]));return i=>{for(let l=0;l<o;l++)n[l]=a[l](i);return n}}function Qje(e,r){const n={...e,...r},o={};for(const a in n)e[a]!==void 0&&r[a]!==void 0&&(o[a]=kS(e[a])(e[a],r[a]));return a=>{for(const i in o)n[i]=o[i](a);return n}}function Jje(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 eFe=(e,r)=>{const n=wu.createTransformer(r),o=ny(e),a=ny(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?wS.has(e)&&!a.values.length||wS.has(r)&&!o.values.length?Kje(e,r):Q0(vX(Jje(o,a),a.values),n):c2(e,r)};function xX(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Ir(e,r,n):kS(e)(e,r)}const tFe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>$r.update(r,n),stop:()=>vu(r),now:()=>mo.isProcessing?mo.timestamp:aa.now()}},wX=(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)})`},u2=2e4;function _S(e){let r=0;const n=50;let o=e.next(r);for(;!o.done&&r<u2;)r+=n,o=e.next(r);return r>=u2?1/0:r}function kX(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(_S(o),u2);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:pi(a)}}const rFe=5;function _X(e,r,n){const o=Math.max(r-rFe,0);return GG(n-e(o),r-o)}const Kr={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},ES=.001;function nFe({duration:e=Kr.duration,bounce:r=Kr.bounce,velocity:n=Kr.velocity,mass:o=Kr.mass}){let a,i,l=1-r;l=rc(Kr.minDamping,Kr.maxDamping,l),e=rc(Kr.minDuration,Kr.maxDuration,pi(e)),l<1?(a=u=>{const d=u*l,p=d*e,f=d-n,g=SS(u,l),b=Math.exp(-p);return ES-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=SS(Math.pow(u,2),l);return(-a(u)+ES>0?-1:1)*((p-f)*g)/b}):(a=u=>{const d=Math.exp(-u*e),p=(u-n)*e+1;return-ES+d*p},i=u=>{const d=Math.exp(-u*e),p=(n-u)*(e*e);return d*p});const s=5/e,c=aFe(a,i,s);if(e=ll(e),isNaN(c))return{stiffness:Kr.stiffness,damping:Kr.damping,duration:e};{const u=Math.pow(c,2)*o;return{stiffness:u,damping:l*2*Math.sqrt(o*u),duration:e}}}const oFe=12;function aFe(e,r,n){let o=n;for(let a=1;a<oFe;a++)o=o-e(o)/r(o);return o}function SS(e,r){return e*Math.sqrt(1-r*r)}const iFe=["duration","bounce"],lFe=["stiffness","damping","mass"];function EX(e,r){return r.some(n=>e[n]!==void 0)}function sFe(e){let r={velocity:Kr.velocity,stiffness:Kr.stiffness,damping:Kr.damping,mass:Kr.mass,isResolvedFromDuration:!1,...e};if(!EX(e,lFe)&&EX(e,iFe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*rc(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:Kr.mass,stiffness:a,damping:i}}else{const n=nFe(e);r={...r,...n,mass:Kr.mass},r.isResolvedFromDuration=!0}return r}function oy(e=Kr.visualDuration,r=Kr.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}=sFe({...n,velocity:-pi(n.velocity||0)}),b=f||0,x=u/(2*Math.sqrt(c*d)),w=l-i,k=pi(Math.sqrt(c/d)),C=Math.abs(w)<5;o||(o=C?Kr.restSpeed.granular:Kr.restSpeed.default),a||(a=C?Kr.restDelta.granular:Kr.restDelta.default);let _;if(x<1){const R=SS(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?ll(b):_X(_,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(_S(T),u2),A=wX(D=>T.next(R*D).value,R,30);return R+"ms "+A},toTransition:()=>{}};return T}oy.applyToOptions=e=>{const r=kX(e,100,oy);return e.ease=r.ease,e.duration=ll(r.duration),e.type="keyframes",e};function CS({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),M=_(N);f.done=Math.abs($)<=u,f.value=f.done?k:M};let R,A;const D=N=>{g(f.value)&&(R=N,A=oy({keyframes:[f.value,b(f.value)],velocity:_X(_,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 cFe(e,r,n){const o=[],a=n||nc.mix||xX,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]||di:r;s=Q0(c,s)}o.push(s)}return o}function uFe(e,r,{clamp:n=!0,ease:o,mixer:a}={}){const i=e.length;if(lS(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=cFe(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=em(e[p],e[p+1],d);return s[p](f)};return n?d=>u(rc(e[0],e[i-1],d)):u}function SX(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=em(0,r,o);e.push(Ir(n,1,a))}}function CX(e){const r=[0];return SX(r,e.length-1),r}function dFe(e,r){return e.map(n=>n*r)}function pFe(e,r){return e.map(()=>r||nX).splice(0,e.length-1)}function ay({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=oX(o)?o.map(lX):lX(o),i={done:!1,value:r[0]},l=dFe(n&&n.length===r.length?n:CX(r),e),s=uFe(l,r,{ease:Array.isArray(a)?a:pFe(r,a)});return{calculatedDuration:e,next:c=>(i.value=s(c),i.done=c>=e,i)}}const hFe=e=>e!==null;function TS(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(hFe),l=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const fFe={decay:CS,inertia:CS,tween:ay,keyframes:ay,spring:oy};function TX(e){typeof e.type=="string"&&(e.type=fFe[e.type])}class RS{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 mFe=e=>e/100;class AS extends RS{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;TX(r);const{type:n=ay,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:l=0}=r;let{keyframes:s}=r;const c=n||ay;c!==ay&&typeof s[0]!="number"&&(this.mixKeyframes=Q0(mFe,xX(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=_S(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),M=N%1;!M&&N>=1&&(M=1),M===1&&$--,$=Math.min($,p+1),$%2&&(f==="reverse"?(M=1-M,g&&(M-=g/s)):f==="mirror"&&(T=l)),_=rc(0,1,M)*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!==CS&&(R.value=TS(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 pi(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+pi(r)}get time(){return pi(this.currentTime)}set time(r){r=ll(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=pi(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=tFe,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 gFe(e){for(let r=1;r<e.length;r++)e[r]??(e[r]=e[r-1])}const ap=e=>e*180/Math.PI,NS=e=>{const r=ap(Math.atan2(e[1],e[0]));return DS(r)},yFe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:NS,rotateZ:NS,skewX:e=>ap(Math.atan(e[1])),skewY:e=>ap(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},DS=e=>(e=e%360,e<0&&(e+=360),e),RX=NS,AX=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),NX=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bFe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:AX,scaleY:NX,scale:e=>(AX(e)+NX(e))/2,rotateX:e=>DS(ap(Math.atan2(e[6],e[5]))),rotateY:e=>DS(ap(Math.atan2(-e[2],e[0]))),rotateZ:RX,rotate:RX,skewX:e=>ap(Math.atan(e[4])),skewY:e=>ap(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function PS(e){return e.includes("scale")?1:0}function $S(e,r){if(!e||e==="none")return PS(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=bFe,a=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=yFe,a=s}if(!a)return PS(r);const i=o[r],l=a[1].split(",").map(xFe);return typeof i=="function"?i(l):l[i]}const vFe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return $S(n,r)};function xFe(e){return parseFloat(e.trim())}const nm=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],om=new Set(nm),DX=e=>e===tm||e===vt,wFe=new Set(["x","y","z"]),kFe=nm.filter(e=>!wFe.has(e));function _Fe(e){const r=[];return kFe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const ip={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})=>$S(r,"x"),y:(e,{transform:r})=>$S(r,"y")};ip.translateX=ip.x,ip.translateY=ip.y;const lp=new Set;let MS=!1,OS=!1,IS=!1;function PX(){if(OS){const e=Array.from(lp).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=_Fe(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)})}OS=!1,MS=!1,lp.forEach(e=>e.complete(IS)),lp.clear()}function $X(){lp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(OS=!0)})}function EFe(){IS=!0,$X(),PX(),IS=!1}class LS{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?(lp.add(this),MS||(MS=!0,$r.read($X),$r.resolveKeyframes(PX))):(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])}gFe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),lp.delete(this)}cancel(){this.state==="scheduled"&&(lp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const SFe=e=>e.startsWith("--");function CFe(e,r,n){SFe(r)?e.style.setProperty(r,n):e.style[r]=n}const TFe=sS(()=>window.ScrollTimeline!==void 0),RFe={};function AFe(e,r){const n=sS(e);return()=>RFe[r]??n()}const MX=AFe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,OX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iy([0,.65,.55,1]),circOut:iy([.55,0,1,.45]),backIn:iy([.31,.01,.66,-.59]),backOut:iy([.33,1.53,.69,.99])};function IX(e,r){if(e)return typeof e=="function"?MX()?wX(e,r):"ease-out":iX(e)?iy(e):Array.isArray(e)?e.map(n=>IX(n,r)||OX.easeOut):OX[e]}function NFe(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=IX(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 zS(e){return typeof e=="function"&&"applyToOptions"in e}function DFe({type:e,...r}){return zS(e)&&MX()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class PFe extends RS{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,lS(typeof r.type!="string");const u=DFe(r);this.animation=NFe(n,o,a,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=TS(a,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):CFe(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 pi(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+pi(r)}get time(){return pi(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=ll(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&&TFe()?(this.animation.timeline=r,di):n(this)}}const LX={anticipate:eX,backInOut:JG,circInOut:rX};function $Fe(e){return e in LX}function MFe(e){typeof e.ease=="string"&&$Fe(e.ease)&&(e.ease=LX[e.ease])}const zX=10;class OFe extends PFe{constructor(r){MFe(r),TX(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 AS({...l,autoplay:!1}),c=ll(this.finishedTime??this.time);n.setWithVelocity(s.sample(c-zX).value,s.sample(c).value,zX),s.stop()}}const BX=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wu.test(e)||e==="0")&&!e.startsWith("url("));function IFe(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 LFe(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=BX(a,r),s=BX(i,r);return!l||!s?!1:IFe(e)||(n==="spring"||zS(n))&&o}function BS(e){e.duration=0,e.type="keyframes"}const zFe=new Set(["opacity","clipPath","filter","transform"]),BFe=sS(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jFe(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 BFe()&&n&&zFe.has(n)&&(n!=="transform"||!c)&&!s&&!o&&a!=="mirror"&&i!==0&&l!=="inertia"}const FFe=40;class HFe extends RS{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||LS;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(),LFe(r,i,l,s)||((nc.instantAnimations||!c)&&d?.(TS(r,o,n)),r[0]=r[r.length-1],BS(o),o.repeat=0);const p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>FFe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},f=!u&&jFe(p)?new OFe({...p,element:p.motionValue.owner.current}):new AS(p);f.finished.then(()=>this.notifyFinished()).catch(di),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(),EFe()),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 qFe{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 jX(this.animations,"duration")}get iterationDuration(){return jX(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 jX(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 UFe extends qFe{then(r,n){return this.finished.finally(r).then(()=>{})}}const VFe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YFe(e){const r=VFe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function FX(e,r,n=1){const[o,a]=YFe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const l=i.trim();return VG(l)?parseFloat(l):l}return fS(a)?FX(a,r,n+1):a}function jS(e,r){return e?.[r]??e?.default??e}const HX=new Set(["width","height","top","left","right","bottom",...nm]),WFe={test:e=>e==="auto",parse:e=>e},qX=e=>r=>r.test(e),UX=[tm,vt,ls,xu,Bje,zje,WFe],VX=e=>UX.find(qX(e));function GFe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||WG(e):!0}const XFe=new Set(["brightness","contrast","saturate","opacity"]);function KFe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(mS)||[];if(!o)return e;const a=n.replace(o,"");let i=XFe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const ZFe=/\b([a-z-]*)\(.*?\)/gu,FS={...wu,getAnimatableNone:e=>{const r=e.match(ZFe);return r?r.map(KFe).join(" "):e}},YX={...tm,transform:Math.round},QFe={rotate:xu,rotateX:xu,rotateY:xu,rotateZ:xu,scale:s2,scaleX:s2,scaleY:s2,scaleZ:s2,skew:xu,skewX:xu,skewY:xu,distance:vt,translateX:vt,translateY:vt,translateZ:vt,x:vt,y:vt,z:vt,perspective:vt,transformPerspective:vt,opacity:ey,originX:dX,originY:dX,originZ:vt},HS={borderWidth:vt,borderTopWidth:vt,borderRightWidth:vt,borderBottomWidth:vt,borderLeftWidth:vt,borderRadius:vt,radius:vt,borderTopLeftRadius:vt,borderTopRightRadius:vt,borderBottomRightRadius:vt,borderBottomLeftRadius:vt,width:vt,maxWidth:vt,height:vt,maxHeight:vt,top:vt,right:vt,bottom:vt,left:vt,padding:vt,paddingTop:vt,paddingRight:vt,paddingBottom:vt,paddingLeft:vt,margin:vt,marginTop:vt,marginRight:vt,marginBottom:vt,marginLeft:vt,backgroundPositionX:vt,backgroundPositionY:vt,...QFe,zIndex:YX,fillOpacity:ey,strokeOpacity:ey,numOctaves:YX},JFe={...HS,color:kn,backgroundColor:kn,outlineColor:kn,fill:kn,stroke:kn,borderColor:kn,borderTopColor:kn,borderRightColor:kn,borderBottomColor:kn,borderLeftColor:kn,filter:FS,WebkitFilter:FS},WX=e=>JFe[e];function GX(e,r){let n=WX(e);return n!==FS&&(n=wu),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const eHe=new Set(["auto","none","0"]);function tHe(e,r,n){let o=0,a;for(;o<e.length&&!a;){const i=e[o];typeof i=="string"&&!eHe.has(i)&&ny(i).values.length&&(a=e[o]),o++}if(a&&n)for(const i of r)e[i]=GX(n,a)}class rHe extends LS{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(),fS(u))){const d=FX(u,n.current);d!==void 0&&(r[c]=d),c===r.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!HX.has(o)||r.length!==2)return;const[a,i]=r,l=VX(a),s=VX(i);if(l!==s)if(DX(l)&&DX(s))for(let c=0;c<r.length;c++){const u=r[c];typeof u=="string"&&(r[c]=parseFloat(u))}else ip[o]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:r,name:n}=this,o=[];for(let a=0;a<r.length;a++)(r[a]===null||GFe(r[a]))&&o.push(a);o.length&&tHe(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=ip[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]=ip[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 XX(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 KX=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function ZX(e){return YG(e)&&"offsetHeight"in e}const QX=30,nHe=e=>!isNaN(parseFloat(e));class oHe{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=nHe(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 cS);const o=this.events[r].add(n);return r==="change"?()=>{o(),$r.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>QX)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,QX);return GG(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 sp(e,r){return new oHe(e,r)}const{schedule:qS}=sX(queueMicrotask,!1),sl={x:!1,y:!1};function JX(){return sl.x||sl.y}function aHe(e){return e==="x"||e==="y"?sl[e]?null:(sl[e]=!0,()=>{sl[e]=!1}):sl.x||sl.y?null:(sl.x=sl.y=!0,()=>{sl.x=sl.y=!1})}function eK(e,r){const n=XX(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function tK(e){return!(e.pointerType==="touch"||JX())}function iHe(e,r,n={}){const[o,a,i]=eK(e,n),l=s=>{if(!tK(s))return;const{target:c}=s,u=r(c,s);if(typeof u!="function"||!c)return;const d=p=>{tK(p)&&(u(p),c.removeEventListener("pointerleave",d))};c.addEventListener("pointerleave",d,a)};return o.forEach(s=>{s.addEventListener("pointerenter",l,a)}),i}const rK=(e,r)=>r?e===r?!0:rK(e,r.parentElement):!1,US=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,lHe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function sHe(e){return lHe.has(e.tagName)||e.tabIndex!==-1}const d2=new WeakSet;function nK(e){return r=>{r.key==="Enter"&&e(r)}}function VS(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const cHe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=nK(()=>{if(d2.has(n))return;VS(n,"down");const a=nK(()=>{VS(n,"up")}),i=()=>VS(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 oK(e){return US(e)&&!JX()}function uHe(e,r,n={}){const[o,a,i]=eK(e,n),l=s=>{const c=s.currentTarget;if(!oK(s))return;d2.add(c);const u=r(c,s),d=(g,b)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),d2.has(c)&&d2.delete(c),oK(g)&&typeof u=="function"&&u(g,{success:b})},p=g=>{d(g,c===window||c===document||n.useGlobalTarget||rK(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),ZX(s)&&(s.addEventListener("focus",c=>cHe(c,a)),!sHe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function YS(e){return YG(e)&&"ownerSVGElement"in e}function aK(e){return YS(e)&&e.tagName==="svg"}const Qn=e=>!!(e&&e.getVelocity),dHe=[...UX,kn,wu],pHe=e=>dHe.find(qX(e));function WS(e){return typeof e=="object"&&!Array.isArray(e)}function iK(e,r,n,o){return typeof e=="string"&&WS(r)?XX(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function hHe(e,r,n){return e*(r+1)}function lK(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 fHe(e,r,n){for(let o=0;o<e.length;o++){const a=e[o];a.at>r&&a.at<n&&(a2(e,a),o--)}}function mHe(e,r,n,o,a,i){fHe(e,a,i);for(let l=0;l<r.length;l++)e.push({value:r[l],at:Ir(a,i,o[l]),easing:aX(n,l)})}function gHe(e,r){for(let n=0;n<e.length;n++)e[n]=e[n]/(r+1)}function yHe(e,r){return e.at===r.at?e.value===null?1:r.value===null?-1:0:e.at-r.at}const bHe="easeInOut";function vHe(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,lK(p,b.at,d,u));continue}let[x,w,k={}]=b;k.at!==void 0&&(p=lK(p,k.at,d,u));let C=0;const _=(T,R,A,D=0,N=0)=>{const $=xHe(T),{delay:M=0,times:j=CX($),type:L="keyframes",repeat:Y,repeatType:O,repeatDelay:U=0,...I}=R;let{ease:q=r.ease||"easeOut",duration:V}=R;const G=typeof M=="function"?M(D,N):M,F=$.length,J=zS(L)?L:a?.[L||"keyframes"];if(F<=2&&J){let X=100;if(F===2&&_He($)){const ee=$[1]-$[0];X=Math.abs(ee)}const Z={...I};V!==void 0&&(Z.duration=ll(V));const oe=kX(Z,X,J);q=oe.ease,V=oe.duration}V??(V=i);const Q=p+G;j.length===1&&j[0]===0&&(j[1]=1);const z=j.length-$.length;if(z>0&&SX(j,z),$.length===1&&$.unshift(null),Y){V=hHe(V,Y);const X=[...$],Z=[...j];q=Array.isArray(q)?[...q]:[q];const oe=[...q];for(let ee=0;ee<Y;ee++){$.push(...X);for(let re=0;re<X.length;re++)j.push(Z[re]+(ee+1)),q.push(re===0?"linear":aX(oe,re-1))}gHe(j,Y)}const W=Q+V;mHe(A,$,q,j,Q,W),C=Math.max(G+V,C),f=Math.max(W,f)};if(Qn(x)){const T=sK(x,s);_(w,k,cK("default",T))}else{const T=iK(x,w,o,c),R=T.length;for(let A=0;A<R;A++){w=w,k=k;const D=T[A],N=sK(D,s);for(const $ in w)_(w[$],wHe(k,$),cK($,N),A,R)}}d=p,p+=C}return s.forEach((g,b)=>{for(const x in g){const w=g[x];w.sort(yHe);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(em(0,f,A)),_.push(N||"easeOut")}C[0]!==0&&(C.unshift(0),k.unshift(k[0]),_.unshift(bHe)),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 sK(e,r){return!r.has(e)&&r.set(e,{}),r.get(e)}function cK(e,r){return r[e]||(r[e]=[]),r[e]}function xHe(e){return Array.isArray(e)?e:[e]}function wHe(e,r){return e&&e[r]?{...e,...e[r]}:{...e}}const kHe=e=>typeof e=="number",_He=e=>e.every(kHe),ly=new WeakMap,GS=e=>Array.isArray(e);function uK(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function XS(e,r,n,o){if(typeof r=="function"){const[a,i]=uK(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]=uK(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function am(e,r,n){const o=e.getProps();return XS(o,r,n!==void 0?n:o.custom,e)}function EHe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,sp(n))}function SHe(e){return GS(e)?e[e.length-1]||0:e}function CHe(e,r){const n=am(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const l in i){const s=SHe(i[l]);EHe(e,l,s)}}function THe(e){return!!(Qn(e)&&e.add)}function KS(e,r){const n=e.getValue("willChange");if(THe(n))return n.add(r);if(!n&&nc.WillChange){const o=new nc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const ZS=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),RHe="framerAppearId",dK="data-"+ZS(RHe);function pK(e){return e.props[dK]}const AHe=e=>e!==null;function NHe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(AHe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const DHe={type:"spring",stiffness:500,damping:25,restSpeed:10},PHe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),$He={type:"keyframes",duration:.8},MHe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},OHe=(e,{keyframes:r})=>r.length>2?$He:om.has(e)?e.startsWith("scale")?PHe(r[1]):DHe:MHe;function IHe({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 QS=(e,r,n,o={},a,i)=>l=>{const s=jS(o,e)||{},c=s.delay||o.delay||0;let{elapsed:u=0}=o;u=u-ll(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};IHe(s)||Object.assign(d,OHe(e,d)),d.duration&&(d.duration=ll(d.duration)),d.repeatDelay&&(d.repeatDelay=ll(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let p=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(BS(d),d.delay===0&&(p=!0)),(nc.instantAnimations||nc.skipAnimations)&&(p=!0,BS(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,p&&!i&&r.get()!==void 0){const f=NHe(d.keyframes,s);if(f!==void 0){$r.update(()=>{d.onUpdate(f),d.onComplete()});return}}return s.isSync?new AS(d):new HFe(d)};function LHe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function JS(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&&LHe(u,d))continue;const g={delay:n,...jS(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=pK(e);if(k){const C=window.MotionHandoffAnimation(k,d,$r);C!==null&&(g.startTime=C,x=!0)}}KS(e,d),p.start(QS(d,p,f,e.shouldReduceMotion&&HX.has(d)?{type:!1}:g,e,x));const w=p.animation;w&&c.push(w)}return l&&Promise.all(c).then(()=>{$r.update(()=>{l&&CHe(e,l)})}),c}function hK({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function zHe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function BHe(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 eC(e){return e===void 0||e===1}function tC({scale:e,scaleX:r,scaleY:n}){return!eC(e)||!eC(r)||!eC(n)}function cp(e){return tC(e)||fK(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function fK(e){return mK(e.x)||mK(e.y)}function mK(e){return e&&e!=="0%"}function p2(e,r,n){const o=e-n,a=r*o;return n+a}function gK(e,r,n,o,a){return a!==void 0&&(e=p2(e,a,o)),p2(e,n,o)+r}function rC(e,r=0,n=1,o,a){e.min=gK(e.min,r,n,o,a),e.max=gK(e.max,r,n,o,a)}function yK(e,{x:r,y:n}){rC(e.x,r.translate,r.scale,r.originPoint),rC(e.y,n.translate,n.scale,n.originPoint)}const bK=.999999999999,vK=1.0000000000001;function jHe(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&&lm(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),l&&(r.x*=l.x.scale,r.y*=l.y.scale,yK(e,l)),o&&cp(i.latestValues)&&lm(e,i.latestValues))}r.x<vK&&r.x>bK&&(r.x=1),r.y<vK&&r.y>bK&&(r.y=1)}function im(e,r){e.min=e.min+r,e.max=e.max+r}function xK(e,r,n,o,a=.5){const i=Ir(e.min,e.max,a);rC(e,r,n,i,o)}function lm(e,r){xK(e.x,r.x,r.scaleX,r.scale,r.originX),xK(e.y,r.y,r.scaleY,r.scale,r.originY)}function wK(e,r){return hK(BHe(e.getBoundingClientRect(),r))}function FHe(e,r,n){const o=wK(e,n),{scroll:a}=r;return a&&(im(o.x,a.offset.x),im(o.y,a.offset.y)),o}const kK={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"]},sm={};for(const e in kK)sm[e]={isEnabled:r=>kK[e].some(n=>!!r[n])};const _K=()=>({translate:0,scale:1,origin:0,originPoint:0}),cm=()=>({x:_K(),y:_K()}),EK=()=>({min:0,max:0}),Zr=()=>({x:EK(),y:EK()}),nC=typeof window<"u",h2={current:null},oC={current:!1};function SK(){if(oC.current=!0,!!nC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>h2.current=e.matches;e.addEventListener("change",r),r()}else h2.current=!1}function f2(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function sy(e){return typeof e=="string"||Array.isArray(e)}const aC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iC=["initial",...aC];function m2(e){return f2(e.animate)||iC.some(r=>sy(e[r]))}function CK(e){return!!(m2(e)||e.variants)}function HHe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(Qn(a))e.addValue(o,a);else if(Qn(i))e.addValue(o,sp(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,sp(l!==void 0?l:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const TK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class RK{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=LS,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,$r.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=m2(n),this.isVariantNode=CK(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&&Qn(g)&&g.set(c[f])}}mount(r){this.current=r,ly.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)),oC.current||SK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:h2.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vu(this.notifyUpdate),vu(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=om.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[r]=l,this.props.onUpdate&&$r.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 sm){const n=sm[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):Zr()}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<TK.length;o++){const a=TK[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=HHe(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=sp(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"&&(VG(o)||WG(o))?o=parseFloat(o):!pHe(o)&&wu.test(n)&&(o=GX(r,n)),this.setBaseTarget(r,Qn(o)?o.get():o)),Qn(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=XS(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&&!Qn(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 cS),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){qS.render(this.render)}}class AK extends RK{constructor(){super(...arguments),this.KeyframeResolver=rHe}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;Qn(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const qHe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},UHe=nm.length;function VHe(e,r,n){let o="",a=!0;for(let i=0;i<UHe;i++){const l=nm[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=KX(s,HS[l]);if(!c){a=!1;const d=qHe[l]||l;o+=`${d}(${u}) `}n&&(r[l]=u)}}return o=o.trim(),n?o=n(r,a?"":o):a&&(o="none"),o}function lC(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(om.has(c)){l=!0;continue}else if(hS(c)){a[c]=u;continue}else{const d=KX(u,HS[c]);c.startsWith("origin")?(s=!0,i[c]=d):o[c]=d}}if(r.transform||(l||n?o.transform=VHe(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 NK(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 cy={};function YHe(e){for(const r in e)cy[r]=e[r],hS(r)&&(cy[r].isCSSVariable=!0)}function DK(e,{layout:r,layoutId:n}){return om.has(e)||e.startsWith("origin")||(r||n!==void 0)&&(!!cy[e]||e==="opacity")}function sC(e,r,n){const{style:o}=e,a={};for(const i in o)(Qn(o[i])||r.style&&Qn(r.style[i])||DK(i,e)||n?.getValue(i)?.liveStyle!==void 0)&&(a[i]=o[i]);return a}function WHe(e){return window.getComputedStyle(e)}class PK extends AK{constructor(){super(...arguments),this.type="html",this.renderInstance=NK}readValueFromInstance(r,n){if(om.has(n))return this.projection?.isProjecting?PS(n):vFe(r,n);{const o=WHe(r),a=(hS(n)?o.getPropertyValue(n):o[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(r,{transformPagePoint:n}){return wK(r,n)}build(r,n,o){lC(r,n,o.transformTemplate)}scrapeMotionValuesFromProps(r,n,o){return sC(r,n,o)}}function GHe(e,r){return e in r}class XHe extends RK{constructor(){super(...arguments),this.type="object"}readValueFromInstance(r,n){if(GHe(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 Zr()}build(r,n){Object.assign(r.output,n)}renderInstance(r,{output:n}){Object.assign(r,n)}sortInstanceNodePosition(){return 0}}const KHe={offset:"stroke-dashoffset",array:"stroke-dasharray"},ZHe={offset:"strokeDashoffset",array:"strokeDasharray"};function QHe(e,r,n=1,o=0,a=!0){e.pathLength=1;const i=a?KHe:ZHe;e[i.offset]=vt.transform(-o);const l=vt.transform(r),s=vt.transform(n);e[i.array]=`${l} ${s}`}function $K(e,{attrX:r,attrY:n,attrScale:o,pathLength:a,pathSpacing:i=1,pathOffset:l=0,...s},c,u,d){if(lC(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&&QHe(p,a,i,l,!1)}const MK=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"]),OK=e=>typeof e=="string"&&e.toLowerCase()==="svg";function JHe(e,r,n,o){NK(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(MK.has(a)?a:ZS(a),r.attrs[a])}function IK(e,r,n){const o=sC(e,r,n);for(const a in e)if(Qn(e[a])||Qn(r[a])){const i=nm.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class LK extends AK{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Zr}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(om.has(n)){const o=WX(n);return o&&o.default||0}return n=MK.has(n)?n:ZS(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return IK(r,n,o)}build(r,n,o){$K(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){JHe(r,n,o,a)}mount(r){this.isSVGTag=OK(r.tagName),super.mount(r)}}function eqe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=YS(e)&&!aK(e)?new LK(r):new PK(r);n.mount(e),ly.set(e,n)}function tqe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new XHe(r);n.mount(e),ly.set(e,n)}function zK(e,r,n){const o=Qn(e)?e:sp(e);return o.start(QS("",o,r,n)),o.animation}function rqe(e,r){return Qn(e)||typeof e=="number"||typeof e=="string"&&!WS(r)}function BK(e,r,n,o){const a=[];if(rqe(e,r))a.push(zK(e,WS(r)&&r.default||r,n&&(n.default||n)));else{const i=iK(e,r,o),l=i.length;for(let s=0;s<l;s++){const c=i[s],u=c instanceof Element?eqe:tqe;ly.has(c)||u(c);const d=ly.get(c),p={...n};"delay"in p&&typeof p.delay=="function"&&(p.delay=p.delay(s,l)),a.push(...JS(d,{...r,transition:p},{}))}}return a}function nqe(e,r,n){const o=[];return vHe(e,r,n,{spring:oy}).forEach(({keyframes:a,transition:i},l)=>{o.push(...BK(l,a,i))}),o}function oqe(e){return Array.isArray(e)&&e.some(Array.isArray)}function aqe(e){function r(n,o,a){let i=[],l;if(oqe(n))i=nqe(n,o,e);else{const{onComplete:c,...u}=a||{};typeof c=="function"&&(l=c),i=BK(n,o,u,e)}const s=new UFe(i);return l&&s.finished.then(l),s}return r}const iqe=aqe();function lqe(e,r){const n=aa.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(vu(o),e(i-r))};return $r.setup(o,!0),()=>vu(o)}const jK=(e,r)=>Math.abs(e-r);function sqe(e,r){const n=jK(e.x,r.x),o=jK(e.y,r.y);return Math.sqrt(n**2+o**2)}const uy=E.createContext({});function um(e){const r=E.useRef(null);return r.current===null&&(r.current=e()),r.current}const cC=nC?E.useLayoutEffect:E.useEffect,g2=E.createContext(null),up=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function FK(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function cqe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=FK(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():FK(e[a],null)}}}}function uqe(...e){return E.useCallback(cqe(...e),e)}class dqe extends E.Component{getSnapshotBeforeUpdate(r){const n=this.props.childRef.current;if(n&&r.isPresent&&!this.props.isPresent){const o=n.offsetParent,a=ZX(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 pqe({children:e,isPresent:r,anchorX:n,root:o}){const a=E.useId(),i=E.useRef(null),l=E.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=E.useContext(up),c=uqe(i,e?.ref);return E.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(dqe,{isPresent:r,childRef:i,sizeRef:l,children:E.cloneElement(e,{ref:c})})}const hqe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:l,anchorX:s,root:c})=>{const u=um(fqe),d=E.useId();let p=!0,f=E.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}),E.useMemo(()=>{u.forEach((g,b)=>u.set(b,!1))},[n]),E.useEffect(()=>{!n&&!u.size&&o&&o()},[n]),l==="popLayout"&&(e=y.jsx(pqe,{isPresent:n,anchorX:s,root:c,children:e})),y.jsx(g2.Provider,{value:f,children:e})};function fqe(){return new Map}function HK(e=!0){const r=E.useContext(g2);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=E.useId();E.useEffect(()=>{if(e)return a(i)},[e]);const l=E.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,l]:[!0]}const y2=e=>e.key||"";function qK(e){const r=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&r.push(n)}),r}const Pa=({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]=HK(l),p=E.useMemo(()=>qK(e),[e]),f=l&&!u?[]:p.map(y2),g=E.useRef(!0),b=E.useRef(p),x=um(()=>new Map),[w,k]=E.useState(p),[C,_]=E.useState(p);cC(()=>{g.current=!1,b.current=p;for(let A=0;A<C.length;A++){const D=y2(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],$=y2(N);f.includes($)||(A.splice(D,0,N),T.push(N))}return i==="wait"&&T.length&&(A=T),_(qK(A)),k(p),null}const{forceRender:R}=E.useContext(uy);return y.jsx(y.Fragment,{children:C.map(A=>{const D=y2(A),N=l&&!u?!1:p===C||f.includes(D),$=()=>{if(x.has(D))x.set(D,!0);else return;let M=!0;x.forEach(j=>{j||(M=!1)}),M&&(R?.(),_(b.current),l&&d?.(),o&&o())};return y.jsx(hqe,{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)})})},mqe=E.createContext(null);function gqe(){const e=E.useRef(!1);return cC(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function yqe(){const e=gqe(),[r,n]=E.useState(0),o=E.useCallback(()=>{e.current&&n(r+1)},[r]);return[E.useCallback(()=>$r.postRender(o),[o]),r]}const bqe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function vqe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(bqe);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 UK=e=>e===!0,xqe=e=>UK(e===!0)||e==="id",dm=({children:e,id:r,inherit:n=!0})=>{const o=E.useContext(uy),a=E.useContext(mqe),[i,l]=yqe(),s=E.useRef(null),c=o.id||a;s.current===null&&(xqe(n)&&c&&(r=r?c+"-"+r:c),s.current={id:r,group:UK(n)&&o.group||vqe()});const u=E.useMemo(()=>({...s.current,forceRender:i}),[l]);return y.jsx(uy.Provider,{value:u,children:e})},uC=E.createContext({strict:!1});function dC(e){for(const r in e)sm[r]={...sm[r],...e[r]}}function wqe({children:e,features:r,strict:n=!1}){const[,o]=E.useState(!pC(r)),a=E.useRef(void 0);if(!pC(r)){const{renderer:i,...l}=r;a.current=i,dC(l)}return E.useEffect(()=>{pC(r)&&r().then(({renderer:i,...l})=>{dC(l),a.current=i,o(!0)})},[]),y.jsx(uC.Provider,{value:{renderer:a.current,strict:n},children:e})}function pC(e){return typeof e=="function"}const kqe=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 b2(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kqe.has(e)}let VK=e=>!b2(e);function YK(e){typeof e=="function"&&(VK=r=>r.startsWith("on")?!b2(r):e(r))}try{YK(require("@emotion/is-prop-valid").default)}catch{}function _qe(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(VK(a)||n===!0&&b2(a)||!r&&!b2(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function Eqe({children:e,isValidProp:r,...n}){r&&YK(r),n={...E.useContext(up),...n},n.isStatic=um(()=>n.isStatic);const o=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return y.jsx(up.Provider,{value:o,children:e})}const v2=E.createContext({});function Sqe(e,r){if(m2(e)){const{initial:n,animate:o}=e;return{initial:n===!1||sy(n)?n:void 0,animate:sy(o)?o:void 0}}return e.inherit!==!1?r:{}}function Cqe(e){const{initial:r,animate:n}=Sqe(e,E.useContext(v2));return E.useMemo(()=>({initial:r,animate:n}),[WK(r),WK(n)])}function WK(e){return Array.isArray(e)?e.join(" "):e}const hC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function GK(e,r,n){for(const o in r)!Qn(r[o])&&!DK(o,n)&&(e[o]=r[o])}function Tqe({transformTemplate:e},r){return E.useMemo(()=>{const n=hC();return lC(n,r,e),Object.assign({},n.vars,n.style)},[r])}function Rqe(e,r){const n=e.style||{},o={};return GK(o,n,e),Object.assign(o,Tqe(e,r)),o}function Aqe(e,r){const n={},o=Rqe(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 XK=()=>({...hC(),attrs:{}});function Nqe(e,r,n,o){const a=E.useMemo(()=>{const i=XK();return $K(i,r,OK(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};GK(i,e.style,e),a.style={...i,...a.style}}return a}const Dqe=["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 fC(e){return typeof e!="string"||e.includes("-")?!1:!!(Dqe.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pqe(e,r,n,{latestValues:o},a,i=!1){const l=(fC(e)?Nqe:Aqe)(r,o,a,e),s=_qe(r,typeof e=="string",i),c=e!==E.Fragment?{...s,...l,ref:n}:{},{children:u}=r,d=E.useMemo(()=>Qn(u)?u.get():u,[u]);return E.createElement(e,{...c,children:d})}function x2(e){return Qn(e)?e.get():e}function $qe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:Mqe(n,o,a,e),renderState:r()}}function Mqe(e,r,n,o){const a={},i=o(e,{});for(const f in i)a[f]=x2(i[f]);let{initial:l,animate:s}=e;const c=m2(e),u=CK(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"&&!f2(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g<f.length;g++){const b=XS(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 KK=e=>(r,n)=>{const o=E.useContext(v2),a=E.useContext(g2),i=()=>$qe(e,r,o,a);return n?i():um(i)},Oqe=KK({scrapeMotionValuesFromProps:sC,createRenderState:hC}),Iqe=KK({scrapeMotionValuesFromProps:IK,createRenderState:XK}),Lqe=Symbol.for("motionComponentSymbol");function pm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function zqe(e,r,n){return E.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):pm(n)&&(n.current=o))},[r])}const ZK=E.createContext({});function Bqe(e,r,n,o,a){const{visualElement:i}=E.useContext(v2),l=E.useContext(uC),s=E.useContext(g2),c=E.useContext(up).reducedMotion,u=E.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=E.useContext(ZK);d&&!d.projection&&a&&(d.type==="html"||d.type==="svg")&&jqe(u.current,n,a,p);const f=E.useRef(!1);E.useInsertionEffect(()=>{d&&f.current&&d.update(n,s)});const g=n[dK],b=E.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return cC(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),b.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!b.current&&d.animationState&&d.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),b.current=!1),d.enteringChildren=void 0)}),d}function jqe(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:QK(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!l||s&&pm(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:d,layoutScroll:c,layoutRoot:u})}function QK(e){if(e)return e.options.allowProjection!==!1?e.projection:QK(e.parent)}function w2(e,{forwardMotionProps:r=!1}={},n,o){n&&dC(n);const a=fC(e)?Iqe:Oqe;function i(s,c){let u;const d={...E.useContext(up),...s,layoutId:Fqe(s)},{isStatic:p}=d,f=Cqe(s),g=a(s,p);if(!p&&nC){Hqe();const b=qqe(d);u=b.MeasureLayout,f.visualElement=Bqe(e,g,d,o,b.ProjectionNode)}return y.jsxs(v2.Provider,{value:f,children:[u&&f.visualElement?y.jsx(u,{visualElement:f.visualElement,...d}):null,Pqe(e,s,zqe(g,f.visualElement,c),g,p,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=E.forwardRef(i);return l[Lqe]=e,l}function Fqe({layoutId:e}){const r=E.useContext(uy).id;return r&&e!==void 0?r+"-"+e:e}function Hqe(e,r){E.useContext(uC).strict}function qqe(e){const{drag:r,layout:n}=sm;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function Uqe(e,r){if(typeof Proxy>"u")return w2;const n=new Map,o=(i,l)=>w2(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,w2(l,void 0,e,r)),n.get(l))})}const cl=Uqe(),Vqe=(e,r)=>fC(e)?new LK(r):new PK(r,{allowProjection:e!==E.Fragment});function JK(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 mC(e,r,n={}){const o=am(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(JS(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:u=0,staggerChildren:d,staggerDirection:p}=a;return Yqe(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 Yqe(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(mC(c,r,{...l,delay:n+(typeof o=="function"?0:o)+JK(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(s)}function Wqe(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>mC(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=mC(e,r,n);else{const a=typeof r=="function"?am(e,r,n.custom):r;o=Promise.all(JS(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function eZ(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 Gqe=iC.length;function tZ(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?tZ(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const r={};for(let n=0;n<Gqe;n++){const o=iC[n],a=e.props[o];(sy(a)||a===!1)&&(r[o]=a)}return r}const Xqe=[...aC].reverse(),Kqe=aC.length;function Zqe(e){return r=>Promise.all(r.map(({animation:n,options:o})=>Wqe(e,n,o)))}function Qqe(e){let r=Zqe(e),n=rZ(),o=!0;const a=c=>(u,d)=>{const p=am(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=tZ(e.parent)||{},p=[],f=new Set;let g={},b=1/0;for(let w=0;w<Kqe;w++){const k=Xqe[w],C=n[k],_=u[k]!==void 0?u[k]:d[k],T=sy(_),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||f2(_)||typeof _=="boolean")continue;const D=Jqe(C.prevProp,_);let N=D||k===c&&C.isActive&&!A&&T||w>b&&T,$=!1;const M=Array.isArray(_)?_:[_];let j=M.reduce(a(k),{});R===!1&&(j={});const{prevResolvedValues:L={}}=C,Y={...L,...j},O=I=>{N=!0,f.has(I)&&($=!0,f.delete(I)),C.needsAnimating[I]=!0;const q=e.getValue(I);q&&(q.liveStyle=!1)};for(const I in Y){const q=j[I],V=L[I];if(g.hasOwnProperty(I))continue;let G=!1;GS(q)&&GS(V)?G=!eZ(q,V):G=q!==V,G?q!=null?O(I):f.add(I):q!==void 0&&f.has(I)?O(I):C.protectedKeys[I]=!0}C.prevProp=_,C.prevResolvedValues=j,C.isActive&&(g={...g,...j}),o&&e.blockInitialAnimation&&(N=!1);const U=A&&D;N&&(!U||$)&&p.push(...M.map(I=>{const q={type:k};if(typeof I=="string"&&o&&!U&&e.manuallyAnimateOnMount&&e.parent){const{parent:V}=e,G=am(V,I);if(V.enteringChildren&&G){const{delayChildren:F}=G.transition||{};q.delay=JK(V.enteringChildren,e,F)}}return{animation:I,options:q}}))}if(f.size){const w={};if(typeof u.initial!="boolean"){const k=am(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=rZ(),o=!0}}}function Jqe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!eZ(r,e):!1}function dp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rZ(){return{animate:dp(!0),whileInView:dp(),whileHover:dp(),whileTap:dp(),whileDrag:dp(),whileFocus:dp(),exit:dp()}}class ku{constructor(r){this.isMounted=!1,this.node=r}update(){}}class eUe extends ku{constructor(r){super(r),r.animationState||(r.animationState=Qqe(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();f2(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 tUe=0;class rUe extends ku{constructor(){super(...arguments),this.id=tUe++}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 nUe={animation:{Feature:eUe},exit:{Feature:rUe}};function dy(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function py(e){return{point:{x:e.pageX,y:e.pageY}}}const oUe=e=>r=>US(r)&&e(r,py(r));function hy(e,r,n,o){return dy(e,r,oUe(n),o)}const nZ=1e-4,aUe=1-nZ,iUe=1+nZ,oZ=.01,lUe=0-oZ,sUe=0+oZ;function Uo(e){return e.max-e.min}function cUe(e,r,n){return Math.abs(e-r)<=n}function aZ(e,r,n,o=.5){e.origin=o,e.originPoint=Ir(r.min,r.max,e.origin),e.scale=Uo(n)/Uo(r),e.translate=Ir(n.min,n.max,e.origin)-e.originPoint,(e.scale>=aUe&&e.scale<=iUe||isNaN(e.scale))&&(e.scale=1),(e.translate>=lUe&&e.translate<=sUe||isNaN(e.translate))&&(e.translate=0)}function fy(e,r,n,o){aZ(e.x,r.x,n.x,o?o.originX:void 0),aZ(e.y,r.y,n.y,o?o.originY:void 0)}function iZ(e,r,n){e.min=n.min+r.min,e.max=e.min+Uo(r)}function uUe(e,r,n){iZ(e.x,r.x,n.x),iZ(e.y,r.y,n.y)}function lZ(e,r,n){e.min=r.min-n.min,e.max=e.min+Uo(r)}function my(e,r,n){lZ(e.x,r.x,n.x),lZ(e.y,r.y,n.y)}function hi(e){return[e("x"),e("y")]}const sZ=({current:e})=>e?e.ownerDocument.defaultView:null;class cZ{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=yC(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=sqe(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!b)return;const{point:x}=f,{timestamp:w}=mo;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=gC(g,this.transformPagePoint),$r.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=yC(f.type==="pointercancel"?this.lastMoveEventInfo:gC(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(f,k),x&&x(f,k)},!US(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=l,this.contextWindow=a||window;const s=py(r),c=gC(s,this.transformPagePoint),{point:u}=c,{timestamp:d}=mo;this.history=[{...u,timestamp:d}];const{onSessionStart:p}=n;p&&p(r,yC(c,this.history)),this.removeListeners=Q0(hy(this.contextWindow,"pointermove",this.handlePointerMove),hy(this.contextWindow,"pointerup",this.handlePointerUp),hy(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),vu(this.updatePoint)}}function gC(e,r){return r?{point:r(e.point)}:e}function uZ(e,r){return{x:e.x-r.x,y:e.y-r.y}}function yC({point:e},r){return{point:e,delta:uZ(e,dZ(r)),offset:uZ(e,dUe(r)),velocity:pUe(r,.1)}}function dUe(e){return e[0]}function dZ(e){return e[e.length-1]}function pUe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=dZ(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>ll(r)));)n--;if(!o)return{x:0,y:0};const i=pi(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 hUe(e,{min:r,max:n},o){return r!==void 0&&e<r?e=o?Ir(r,e,o.min):Math.max(e,r):n!==void 0&&e>n&&(e=o?Ir(n,e,o.max):Math.min(e,n)),e}function pZ(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 fUe(e,{top:r,left:n,bottom:o,right:a}){return{x:pZ(e.x,n,a),y:pZ(e.y,r,o)}}function hZ(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 mUe(e,r){return{x:hZ(e.x,r.x),y:hZ(e.y,r.y)}}function gUe(e,r){let n=.5;const o=Uo(e),a=Uo(r);return a>o?n=em(r.min,r.max-o,e.min):o>a&&(n=em(e.min,e.max-a,r.min)),rc(0,1,n)}function yUe(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 bC=.35;function bUe(e=bC){return e===!1?e=0:e===!0&&(e=bC),{x:fZ(e,"left","right"),y:fZ(e,"top","bottom")}}function fZ(e,r,n){return{min:mZ(e,r),max:mZ(e,n)}}function mZ(e,r){return typeof e=="number"?e:e[r]||0}const vUe=new WeakMap;class xUe{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=Zr(),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(py(p).point)},l=(p,f)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=aHe(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),hi(k=>{let C=this.getAxisMotionValue(k).get()||0;if(ls.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const T=_.layout.layoutBox[k];T&&(C=Uo(T)*(parseFloat(C)/100))}}this.originPoint[k]=C}),x&&$r.postRender(()=>x(p,f)),KS(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=wUe(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=()=>hi(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:d}=this.getProps();this.panSession=new cZ(r,{onSessionStart:i,onStart:l,onMove:s,onSessionEnd:c,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:o,contextWindow:sZ(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&&$r.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||!k2(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let l=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(l=hUe(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&&pm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=fUe(o.layoutBox,r):this.constraints=!1,this.elastic=bUe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&hi(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=yUe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!pm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=FHe(o,a.root,this.visualElement.getTransformPagePoint());let l=mUe(a.layout.layoutBox,i);if(n){const s=n(zHe(l));this.hasMutatedConstraints=!!s,s&&(l=hK(s))}return l}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},u=hi(d=>{if(!k2(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 KS(this.visualElement,r),o.start(QS(r,o,0,n,this.visualElement,!1))}stopAnimation(){hi(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){hi(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){hi(n=>{const{drag:o}=this.getProps();if(!k2(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]-Ir(l,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!pm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};hi(l=>{const s=this.getAxisMotionValue(l);if(s&&this.constraints!==!1){const c=s.get();a[l]=gUe({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(),hi(l=>{if(!k2(l,r,null))return;const s=this.getAxisMotionValue(l),{min:c,max:u}=this.constraints[l];s.set(Ir(c,u,a[l]))})}addListeners(){if(!this.visualElement.current)return;vUe.set(this.visualElement,this);const r=this.visualElement.current,n=hy(r,"pointerdown",c=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();pm(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()),$r.read(o);const l=dy(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:u})=>{this.isDragging&&u&&(hi(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=bC,dragMomentum:s=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:l,dragMomentum:s}}}function k2(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function wUe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class kUe extends ku{constructor(r){super(r),this.removeGroupControls=di,this.removeListeners=di,this.controls=new xUe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||di}unmount(){this.removeGroupControls(),this.removeListeners()}}const gZ=e=>(r,n)=>{e&&$r.postRender(()=>e(r,n))};class _Ue extends ku{constructor(){super(...arguments),this.removePointerDownListener=di}onPointerDown(r){this.session=new cZ(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sZ(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:gZ(r),onStart:gZ(n),onMove:o,onEnd:(i,l)=>{delete this.session,a&&$r.postRender(()=>a(i,l))}}}mount(){this.removePointerDownListener=hy(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 _2={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function yZ(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const gy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(vt.test(e))e=parseFloat(e);else return e;const n=yZ(e,r.target.x),o=yZ(e,r.target.y);return`${n}% ${o}%`}},EUe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=wu.parse(e);if(a.length>5)return o;const i=wu.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=Ir(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 vC=!1;class SUe extends E.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;YHe(CUe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),vC&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),_2.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:l}=o;return l&&(l.isPresent=i,vC=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?l.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?l.promote():l.relegate()||$r.postRender(()=>{const s=l.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),qS.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;vC=!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 bZ(e){const[r,n]=HK(),o=E.useContext(uy);return y.jsx(SUe,{...e,layoutGroup:o,switchLayoutGroup:E.useContext(ZK),isPresent:r,safeToRemove:n})}const CUe={borderRadius:{...gy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:gy,borderTopRightRadius:gy,borderBottomLeftRadius:gy,borderBottomRightRadius:gy,boxShadow:EUe},TUe=(e,r)=>e.depth-r.depth;class RUe{constructor(){this.children=[],this.isDirty=!1}add(r){iS(this.children,r),this.isDirty=!0}remove(r){a2(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(TUe),this.isDirty=!1,this.children.forEach(r)}}const vZ=["TopLeft","TopRight","BottomLeft","BottomRight"],AUe=vZ.length,xZ=e=>typeof e=="string"?parseFloat(e):e,wZ=e=>typeof e=="number"||vt.test(e);function NUe(e,r,n,o,a,i){a?(e.opacity=Ir(0,n.opacity??1,DUe(o)),e.opacityExit=Ir(r.opacity??1,0,PUe(o))):i&&(e.opacity=Ir(r.opacity??1,n.opacity??1,o));for(let l=0;l<AUe;l++){const s=`border${vZ[l]}Radius`;let c=kZ(r,s),u=kZ(n,s);c===void 0&&u===void 0||(c||(c=0),u||(u=0),c===0||u===0||wZ(c)===wZ(u)?(e[s]=Math.max(Ir(xZ(c),xZ(u),o),0),(ls.test(u)||ls.test(c))&&(e[s]+="%")):e[s]=u)}(r.rotate||n.rotate)&&(e.rotate=Ir(r.rotate||0,n.rotate||0,o))}function kZ(e,r){return e[r]!==void 0?e[r]:e.borderRadius}const DUe=_Z(0,.5,tX),PUe=_Z(.5,.95,di);function _Z(e,r,n){return o=>o<e?0:o>r?1:n(em(e,r,o))}function EZ(e,r){e.min=r.min,e.max=r.max}function fi(e,r){EZ(e.x,r.x),EZ(e.y,r.y)}function SZ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function CZ(e,r,n,o,a){return e-=r,e=p2(e,1/n,o),a!==void 0&&(e=p2(e,1/a,o)),e}function $Ue(e,r=0,n=1,o=.5,a,i=e,l=e){if(ls.test(r)&&(r=parseFloat(r),r=Ir(l.min,l.max,r/100)-l.min),typeof r!="number")return;let s=Ir(i.min,i.max,o);e===i&&(s-=r),e.min=CZ(e.min,r,n,s,a),e.max=CZ(e.max,r,n,s,a)}function TZ(e,r,[n,o,a],i,l){$Ue(e,r[n],r[o],r[a],r.scale,i,l)}const MUe=["x","scaleX","originX"],OUe=["y","scaleY","originY"];function RZ(e,r,n,o){TZ(e.x,r,MUe,n?n.x:void 0,o?o.x:void 0),TZ(e.y,r,OUe,n?n.y:void 0,o?o.y:void 0)}function AZ(e){return e.translate===0&&e.scale===1}function NZ(e){return AZ(e.x)&&AZ(e.y)}function DZ(e,r){return e.min===r.min&&e.max===r.max}function IUe(e,r){return DZ(e.x,r.x)&&DZ(e.y,r.y)}function PZ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function $Z(e,r){return PZ(e.x,r.x)&&PZ(e.y,r.y)}function MZ(e){return Uo(e.x)/Uo(e.y)}function OZ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class LUe{constructor(){this.members=[]}add(r){iS(this.members,r),r.scheduleRender()}remove(r){if(a2(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 zUe(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 xC=["","X","Y","Z"],BUe=1e3;let jUe=0;function wC(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function IZ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=pK(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",$r,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&IZ(o)}function LZ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},l=r?.()){this.id=jUe++,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(qUe),this.nodes.forEach(WUe),this.nodes.forEach(GUe),this.nodes.forEach(UUe)},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 RUe)}addEventListener(i,l){return this.eventHandlers.has(i)||this.eventHandlers.set(i,new cS),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=YS(i)&&!aK(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;$r.read(()=>{d=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==d&&(d=f,this.root.updateBlockedByResize=!0,u&&u(),u=lqe(p,250),_2.hasAnimatedSinceResize&&(_2.hasAnimatedSinceResize=!1,this.nodes.forEach(jZ)))})}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()||JUe,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!$Z(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={...jS(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||jZ(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(),vu(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(XUe),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&&IZ(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(zZ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(BZ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(YUe),this.nodes.forEach(FUe),this.nodes.forEach(HUe)):this.nodes.forEach(BZ),this.clearAllSnapshots();const i=aa.now();mo.delta=rc(0,16.666666666666668,i-mo.timestamp),mo.timestamp=i,mo.isProcessing=!0,pS.update.process(mo),pS.preRender.process(mo),pS.render.process(mo),mo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,qS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(VUe),this.sharedNodes.forEach(KUe)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$r.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$r.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Uo(this.snapshot.measuredBox.x)&&!Uo(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=Zr(),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&&!NZ(this.projectionDelta),s=this.getTransformTemplate(),c=s?s(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;i&&this.instance&&(l||cp(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)),eVe(s),{animationId:this.root.animationId,measuredBox:l,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:i}=this.options;if(!i)return Zr();const l=i.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(tVe))){const{scroll:s}=this.root;s&&(im(l.x,s.offset.x),im(l.y,s.offset.y))}return l}removeElementScroll(i){const l=Zr();if(fi(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&&fi(l,i),im(l.x,u.offset.x),im(l.y,u.offset.y))}return l}applyTransform(i,l=!1){const s=Zr();fi(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&&lm(s,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),cp(u.latestValues)&&lm(s,u.latestValues)}return cp(this.latestValues)&&lm(s,this.latestValues),s}removeTransform(i){const l=Zr();fi(l,i);for(let s=0;s<this.path.length;s++){const c=this.path[s];if(!c.instance||!cp(c.latestValues))continue;tC(c.latestValues)&&c.updateSnapshot();const u=Zr(),d=c.measurePageBox();fi(u,d),RZ(l,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return cp(this.latestValues)&&RZ(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!==mo.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=mo.timestamp,!this.targetDelta&&!this.relativeTarget){const d=this.getClosestProjectingParent();d&&d.layout&&this.animationProgress!==1?(this.relativeParent=d,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Zr(),this.relativeTargetOrigin=Zr(),my(this.relativeTargetOrigin,this.layout.layoutBox,d.layout.layoutBox),fi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Zr(),this.targetWithTransforms=Zr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),uUe(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):fi(this.target,this.layout.layoutBox),yK(this.target,this.targetDelta)):fi(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=Zr(),this.relativeTargetOrigin=Zr(),my(this.relativeTargetOrigin,this.target,d.target),fi(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||tC(this.parent.latestValues)||fK(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===mo.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;fi(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,p=this.treeScale.y;jHe(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=Zr());const{target:f}=i;if(!f){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(SZ(this.prevProjectionDelta.x,this.projectionDelta.x),SZ(this.prevProjectionDelta.y,this.projectionDelta.y)),fy(this.projectionDelta,this.layoutCorrected,f,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==p||!OZ(this.projectionDelta.x,this.prevProjectionDelta.x)||!OZ(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=cm(),this.projectionDelta=cm(),this.projectionDeltaWithTransform=cm()}setAnimationOrigin(i,l=!1){const s=this.snapshot,c=s?s.latestValues:{},u={...this.latestValues},d=cm();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!l;const p=Zr(),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(QUe));this.animationProgress=0;let C;this.mixTargetDelta=_=>{const T=_/1e3;FZ(d.x,i.x,T),FZ(d.y,i.y,T),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(my(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),ZUe(this.relativeTarget,this.relativeTargetOrigin,p,T),C&&IUe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Zr()),fi(C,this.relativeTarget)),b&&(this.animationValues=u,NUe(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&&(vu(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$r.update(()=>{_2.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=sp(0)),this.currentAnimation=zK(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(BUe),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&&YZ(this.options.animationType,this.layout.layoutBox,c.layoutBox)){s=this.target||Zr();const d=Uo(this.layout.layoutBox.x);s.x.min=i.target.x.min,s.x.max=s.x.min+d;const p=Uo(this.layout.layoutBox.y);s.y.min=i.target.y.min,s.y.max=s.y.min+p}fi(l,s),lm(l,u),fy(this.projectionDeltaWithTransform,this.layoutCorrected,l,u)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new LUe),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&&wC("z",i,c,this.animationValues);for(let u=0;u<xC.length;u++)wC(`rotate${xC[u]}`,i,c,this.animationValues),wC(`skew${xC[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=x2(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=x2(l?.pointerEvents)||""),this.hasProjected&&!cp(this.latestValues)&&(i.transform=s?s({},""):"none",this.hasProjected=!1);return}i.visibility="";const u=c.animationValues||c.latestValues;this.applyTransformsToTarget();let d=zUe(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 cy){if(u[g]===void 0)continue;const{correct:b,applyTo:x,isCSSVariable:w}=cy[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?x2(l?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(i=>i.currentAnimation?.stop()),this.root.nodes.forEach(zZ),this.root.sharedNodes.clear()}}}function FUe(e){e.updateLayout()}function HUe(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"?hi(d=>{const p=i?r.measuredBox[d]:r.layoutBox[d],f=Uo(p);p.min=n[d].min,p.max=p.min+f}):YZ(a,r.layoutBox,n)&&hi(d=>{const p=i?r.measuredBox[d]:r.layoutBox[d],f=Uo(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=cm();fy(l,n,r.layoutBox);const s=cm();i?fy(s,e.applyTransform(o,!0),r.measuredBox):fy(s,n,r.layoutBox);const c=!NZ(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=Zr();my(g,r.layoutBox,p.layoutBox);const b=Zr();my(b,n,f.layoutBox),$Z(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 qUe(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 UUe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function VUe(e){e.clearSnapshot()}function zZ(e){e.clearMeasurements()}function BZ(e){e.isLayoutDirty=!1}function YUe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function jZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function WUe(e){e.resolveTargetDelta()}function GUe(e){e.calcProjection()}function XUe(e){e.resetSkewAndRotation()}function KUe(e){e.removeLeadSnapshot()}function FZ(e,r,n){e.translate=Ir(r.translate,0,n),e.scale=Ir(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function HZ(e,r,n,o){e.min=Ir(r.min,n.min,o),e.max=Ir(r.max,n.max,o)}function ZUe(e,r,n,o){HZ(e.x,r.x,n.x,o),HZ(e.y,r.y,n.y,o)}function QUe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const JUe={duration:.45,ease:[.4,0,.1,1]},qZ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),UZ=qZ("applewebkit/")&&!qZ("chrome/")?Math.round:di;function VZ(e){e.min=UZ(e.min),e.max=UZ(e.max)}function eVe(e){VZ(e.x),VZ(e.y)}function YZ(e,r,n){return e==="position"||e==="preserve-aspect"&&!cUe(MZ(r),MZ(n),.2)}function tVe(e){return e!==e.root&&e.scroll?.wasRoot}const rVe=LZ({attachResizeListener:(e,r)=>dy(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),kC={current:void 0},WZ=LZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!kC.current){const e=new rVe({});e.mount(window),e.setOptions({layoutScroll:!0}),kC.current=e}return kC.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),nVe={pan:{Feature:_Ue},drag:{Feature:kUe,ProjectionNode:WZ,MeasureLayout:bZ}};function GZ(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&&$r.postRender(()=>i(r,py(r)))}class oVe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=iHe(r,(n,o)=>(GZ(this.node,o,"Start"),a=>GZ(this.node,a,"End"))))}unmount(){}}class aVe extends ku{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=Q0(dy(this.node.current,"focus",()=>this.onFocus()),dy(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function XZ(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&&$r.postRender(()=>i(r,py(r)))}class iVe extends ku{mount(){const{current:r}=this.node;r&&(this.unmount=uHe(r,(n,o)=>(XZ(this.node,o,"Start"),(a,{success:i})=>XZ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const _C=new WeakMap,EC=new WeakMap,lVe=e=>{const r=_C.get(e.target);r&&r(e)},sVe=e=>{e.forEach(lVe)};function cVe({root:e,...r}){const n=e||document;EC.has(n)||EC.set(n,{});const o=EC.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(sVe,{root:e,...r})),o[a]}function uVe(e,r,n){const o=cVe(r);return _C.set(e,n),o.observe(e),()=>{_C.delete(e),o.unobserve(e)}}const dVe={some:0,all:1};class pVe extends ku{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:dVe[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 uVe(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(hVe(r,n))&&this.startObserver()}unmount(){}}function hVe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const fVe={inView:{Feature:pVe},tap:{Feature:iVe},focus:{Feature:aVe},hover:{Feature:oVe}},mVe={layout:{ProjectionNode:WZ,MeasureLayout:bZ}},gVe={renderer:Vqe,...nUe,...fVe},yVe={...gVe,...nVe,...mVe};function KZ(e){const r=um(()=>sp(e)),{isStatic:n}=E.useContext(up);if(n){const[,o]=E.useState(e);E.useEffect(()=>r.on("change",o),[])}return r}function bVe(){!oC.current&&SK();const[e]=E.useState(h2.current);return e}function ZZ(){const e=bVe(),{reducedMotion:r}=E.useContext(up);return r==="never"?!1:r==="always"?!0:e}class vVe{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 xVe=()=>new vVe;function wVe(){return um(xVe)}const SC=E.createContext(null);SC.displayName="ElementDetailsActorContext";const kVe=()=>{const e=E.useContext(SC);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},ul=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...Pd(a)});return{recipeFn:(a,i=!0)=>{const l=Tj({conditions:{shift:Pj,finalize:Dj,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,u)=>u(c.join(":")),transform:(c,u)=>(K8e(e,n,a,c),u==="__ignore__"?{className:e}:(u=U8(u),{className:`${e}--${c}_${u}`}))}}),s=o(a);if(i){const c=K8(n,s);return Je(l(s),ye(c))}return l(s)},getVariantProps:o,__getCompoundVariantCss__:a=>K8(n,o(a))}},oc=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>Je(e(...i),r(...i)),o=G8(e.variantKeys,r.variantKeys),a=o.reduce((i,l)=>(i[l]=G8(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 Yn(i,o)}})},CC=ul("action-btn",{size:"md",radius:"md",variant:"filled"},[]),QZ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},JZ=Object.keys(QZ),E2=Object.assign(co(CC.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:CC.__getCompoundVariantCss__,raw:e=>e,variantKeys:JZ,variantMap:QZ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,JZ)},getVariantProps:CC.getVariantProps}),TC=ul("likec4-compound-node",{},[]),eQ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},tQ=Object.keys(eQ),_Ve=Object.assign(co(TC.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:TC.__getCompoundVariantCss__,raw:e=>e,variantKeys:tQ,variantMap:eQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,tQ)},getVariantProps:TC.getVariantProps}),RC=ul("likec4-edge-action-btn",{},[]),rQ={},nQ=Object.keys(rQ),EVe=Object.assign(co(RC.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:RC.__getCompoundVariantCss__,raw:e=>e,variantKeys:nQ,variantMap:rQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,nQ)},getVariantProps:RC.getVariantProps}),AC=ul("likec4-element-node-data",{},[]),oQ={},aQ=Object.keys(oQ),SVe=Object.assign(co(AC.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:AC.__getCompoundVariantCss__,raw:e=>e,variantKeys:aQ,variantMap:oQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,aQ)},getVariantProps:AC.getVariantProps}),NC=ul("likec4-element-shape",{},[]),iQ={shapetype:["html","svg"]},lQ=Object.keys(iQ),sQ=Object.assign(co(NC.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:NC.__getCompoundVariantCss__,raw:e=>e,variantKeys:lQ,variantMap:iQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,lQ)},getVariantProps:NC.getVariantProps}),DC=ul("likec4-tag",{autoTextColor:!1},[]),cQ={autoTextColor:["false","true"]},uQ=Object.keys(cQ),CVe=Object.assign(co(DC.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:DC.__getCompoundVariantCss__,raw:e=>e,variantKeys:uQ,variantMap:cQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,uQ)},getVariantProps:DC.getVariantProps}),PC=ul("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),dQ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},pQ=Object.keys(dQ),TVe=Object.assign(co(PC.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:PC.__getCompoundVariantCss__,raw:e=>e,variantKeys:pQ,variantMap:dQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,pQ)},getVariantProps:PC.getVariantProps}),$C=ul("likec4-navigation-panel-icon",{variant:"default"},[]),hQ={variant:["default","filled"]},fQ=Object.keys(hQ),RVe=Object.assign(co($C.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:$C.__getCompoundVariantCss__,raw:e=>e,variantKeys:fQ,variantMap:hQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,fQ)},getVariantProps:$C.getVariantProps}),MC=ul("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),mQ={fullscreen:["false","true"],withBackdrop:["false","true"]},gQ=Object.keys(mQ),AVe=Object.assign(co(MC.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:MC.__getCompoundVariantCss__,raw:e=>e,variantKeys:gQ,variantMap:mQ,merge(e){return oc(this,e)},splitVariantProps(e){return Yn(e,gQ)},getVariantProps:MC.getVariantProps}),yQ={isStepEdge:!1,cursor:"default"},NVe=[],DVe=[["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"]],PVe=DVe.map(([e,r])=>[e,ul(r,yQ,W8(NVe,e))]),$Ve=co((e={})=>Object.fromEntries(PVe.map(([r,n])=>[r,n.recipeFn(e)]))),bQ=["cursor","isStepEdge"],MVe=e=>({...yQ,...Pd(e)}),OVe=Object.assign($Ve,{__recipe__:!1,__name__:"edgeLabel",raw:e=>e,classNameMap:{},variantKeys:bQ,variantMap:{cursor:["pointer","default"],isStepEdge:["false","true"]},splitVariantProps(e){return Yn(e,bQ)},getVariantProps:MVe}),vQ={truncateLabel:!1},IVe=[],LVe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],zVe=LVe.map(([e,r])=>[e,ul(r,vQ,W8(IVe,e))]),BVe=co((e={})=>Object.fromEntries(zVe.map(([r,n])=>[r,n.recipeFn(e)]))),xQ=["truncateLabel"],jVe=e=>({...vQ,...Pd(e)}),FVe=Object.assign(BVe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:xQ,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return Yn(e,xQ)},getVariantProps:jVe});function HVe(){return uf()}function OC(e,r){return Rt(it(e),Gn)}function IC(){return fr()}function wQ(e){return GRe(e)}const qVe=e=>Math.round(e.transform[2]*100)/100;function UVe(){return Rt(qVe)}const VVe=e=>e.transform[2]<.2;function YVe(){return Rt(VVe)}const{abs:yy,cos:ac,sin:hm,acos:WVe,atan2:by,sqrt:_u,pow:mi}=Math;function vy(e){return e<0?-mi(-e,.3333333333333333):mi(e,.3333333333333333)}const kQ=Math.PI,S2=2*kQ,Eu=kQ/2,GVe=1e-6,LC=Number.MAX_SAFE_INTEGER||9007199254740991,zC=Number.MIN_SAFE_INTEGER||-9007199254740991,XVe={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),_u(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],XVe],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 yy(e-r)<=(n||GVe)},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 by(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 _u(n*n+o*o)},closest:function(e,r){let n=mi(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=mi(e,r)+mi(1-e,r),o=n-1;return yy(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=mi(1-e,r),o=mi(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 Lr(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=LC,n=LC,o=zC,a=zC;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=LC,a=zC,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=-by(r.p2.y-o,r.p2.x-n),i=function(l){return{x:(l.x-n)*ac(a)-(l.y-o)*hm(a),y:(l.x-n)*hm(a)+(l.y-o)*ac(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,M=D-2*N+$;if(M!==0){const j=-_u(N*N-D*$),L=-D+N,Y=-(j+L)/M,O=-(-j+L)/M;return[Y,O].filter(a)}else if(N!==$&&M===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=_u(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,$=_u(N),M=-x/(2*$),j=M<-1?-1:M>1?1:M,L=WVe(j),Y=vy($),O=2*Y;return T=O*ac(L/3)-d/3,R=O*ac((L+S2)/3)-d/3,A=O*ac((L+2*S2)/3)-d/3,[T,R,A].filter(a)}else{if(k===0)return C=w<0?vy(-w):-vy(w),T=2*C-d/3,R=-C-d/3,[T,R].filter(a);{const D=_u(k);return C=vy(-w+D),_=vy(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=-_u(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=_u(mi(p.y*f.z-f.y*p.z,2)+mi(p.z*f.x-f.z*p.x,2)+mi(p.x*f.y-f.x*p.y,2)),l=mi(g+p.z*p.z,3/2)):(i=p.x*f.y-p.y*f.x,l=mi(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=(yy(x-u)+yy(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,yy(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*ac(Eu)-a*hm(Eu),c=o*hm(Eu)+a*ac(Eu),u=i*ac(Eu)-l*hm(Eu),d=i*hm(Eu)+l*ac(Eu),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=by(e.y-_.y,e.x-_.x),A=by(r.y-_.y,r.x-_.x),D=by(n.y-_.y,n.x-_.x),N;return R<D?((R>A||A>D)&&(R+=S2),R>D&&(N=D,D=R,R=N)):D<A&&A<R?(N=D,D=R,R=N):D+=S2,_.s=R,_.e=D,_.r=T,_},numberSort:function(e,r){return e-r}};class xy{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 xy(n)}}const{abs:wy,min:_Q,max:EQ,cos:KVe,sin:ZVe,acos:QVe,sqrt:ky}=Math,JVe=Math.PI;class Lr{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+wy(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 Lr(n,n,o);if(a===1)return new Lr(r,n,n);const i=Lr.getABC(2,r,n,o,a);return new Lr(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const l=Lr.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 Lr(r,T,R,o)}static getUtils(){return Ye}getUtils(){return Lr.getUtils()}static get PolyBezier(){return xy}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 Lr.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 Lr(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 Lr(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=ky(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=ky(n.x*n.x+n.y*n.y+n.z*n.z),i=ky(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=ky(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 Lr([o[0],o[3],o[5]]):new Lr([o[0],o[4],o[7],o[9]]),right:this.order===2?new Lr([o[5],o[4],o[2]]):new Lr([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 Lr(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),wy(QVe(o))<JVe/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,wy(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 Lr(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=ky(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 Lr(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 Lr(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,$,M;o===void 0&&(o=r,a=n),N={x:A.x+R.x*r,y:A.y+R.y*r},M={x:D.x+R.x*o,y:D.y+R.y*o},$={x:(N.x+M.x)/2,y:(N.y+M.y)/2};const j=[N,$,M];N={x:A.x-R.x*n,y:A.y-R.y*n},M={x:D.x-R.x*a,y:D.y-R.y*a},$={x:(N.x+M.x)/2,y:(N.y+M.y)/2};const L=[M,$,N],Y=Ye.makeline(L[2],j[0]),O=Ye.makeline(j[2],L[0]),U=[Y,new Lr(j),O,new Lr(L)];return new xy(U)}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(M){const j=N/D,L=(N+$)/D,Y=A-R;return Ye.map(M,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 xy(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 Lr&&(r=r.reduce()),this.curveintersects(this.reduce(),r,n)):this.selfintersects(n)}lineIntersects(r){const n=_Q(r.p1.x,r.p2.x),o=_Q(r.p1.y,r.p2.y),a=EQ(r.p1.x,r.p2.x),i=EQ(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 wy(u-c)+wy(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*KVe(u.e),y:u.y+u.r*ZVe(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 SQ(e){let[r,...n]=e.points;nt(r,"start should be defined");const o=[];for(;To(n,3);){const[a,i,l,...s]=n,c=new Lr(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 CQ=(e,r)=>Math.abs(e-r)<3.1;function _y(e,r){const[n,o]=FE(e)?e:[e.x,e.y],[a,i]=FE(r)?r:[r.x,r.y];return CQ(n,a)&&CQ(o,i)}function cn(e){return e.stopPropagation()}function eYe(e){const{width:r,height:n}=Wn(e);return{x:e.internals.positionAbsolute.x+r/2,y:e.internals.positionAbsolute.y+n/2}}function tYe(e){let[r,...n]=e;nt(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;To(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 C2=E.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const l=Oze(e);return y.jsxs(Ur,{ref:i,"data-likec4-tag":e,className:Je(CVe({autoTextColor:nj(l)}),n),...a,style:{cursor:r,...o},children:[y.jsx("span",{children:"#"}),y.jsx("span",{children:e})]})}),rYe=(e,r)=>e.data.width===r.data.width&&ut(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),Ey=E.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=a9(),{hovered:l,ref:s}=a9(),[c,u]=aPe(!1,o?120:300);E.useEffect(()=>{u(w=>w?o||a||l:o&&(a||l))},[a,l,o]);const d=UVe(),p=d>1.2,f=Wt(),g=w=>{f.send({type:"tag.highlight",tag:w})},b=E.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",qo({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:cn,children:r.map(w=>y.jsx(Ur,{"data-likec4-tag":w,className:ye({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(Bq,{isVisible:c,align:"start",position:tt.Bottom,children:y.jsx(xn,{ref:s,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:x},children:r.map(w=>y.jsx(C2,{tag:w,cursor:"pointer",className:ye({userSelect:"none",...p&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),f.openSearch(`#${w}`)},onMouseEnter:()=>g(w),onMouseLeave:b},w))})})]})},rYe);Ey.displayName="ElementTags";const nYe=E.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 oYe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],TQ=yt("outline","check","Check",oYe);/**
* @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 aYe=[["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=yt("outline","copy","Copy",aYe),RQ="https://github.com/",BC=E.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(RQ);return y.jsx(Xs,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?y.jsx(y.Fragment,{children:e.title}):null,rightSection:y.jsx(cW,{value:a,timeout:1500,children:({copy:l,copied:s})=>y.jsx(or,{className:ye({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(TQ,{}):y.jsx(iYe,{stroke:2.5})})}),...n,className:Je(r,"group"),classNames:{root:ye({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:ye({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:y.jsxs(Qs.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(nYe,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(RQ,""):a]})})});function AQ(){const e=E.useContext(M7);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const T2="--_blur",R2="--_opacity",lYe=ye({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(${T2})`,backgroundColor:`[rgb(36 36 36 / var(${R2}, 5%))]`}}),sYe=ye({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"}}),cYe=ye({flex:0,cursor:"move"}),uYe=ye({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),jC="40px",dYe=ye({flex:`0 0 ${jC}`,height:jC,width:jC,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"}}),A2="--view-title-color",N2="--icon-color",pYe=ye({width:"100%",background:"mantine.colors.body",borderRadius:"sm",padding:"[10px 8px]",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",[A2]:"{colors.mantine.colors.dark[1]}",_hover:{background:"mantine.colors.defaultHover",[N2]:"{colors.mantine.colors.dark[1]}",[A2]:"{colors.mantine.colors.defaultColor}"},_dark:{background:"mantine.colors.dark[6]"},_light:{[N2]:"{colors.mantine.colors.gray[6]}",[A2]:"{colors.mantine.colors.gray[7]}",_hover:{[N2]:"{colors.mantine.colors.gray[7]}"}},"& .mantine-ThemeIcon-root":{transition:"fast",color:`[var(${N2}, {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)"}}),hYe=ye({transition:"fast",color:`[var(${A2}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),fYe=ye({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),mYe=ye({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),gYe=ye({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]"}}}),yYe=ye({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"}}}),bYe=ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),vYe=ye({justifySelf:"end",textAlign:"right",userSelect:"none"}),xYe=ye({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]"}}),wYe=ye({"&[data-level='1']":{marginBottom:"sm"}}),kYe=ye({cursor:"default",marginTop:"0",marginBottom:"0"}),NQ=ye({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)"}}}),_Ye=Je(NQ),EYe=Je(NQ,ye({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 SYe=[["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"}]],FC=yt("outline","info-circle","InfoCircle",SYe);/**
* @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 CYe=[["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"}]],TYe=yt("outline","target","Target",CYe);/**
* @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 RYe=[["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"}]],gi=yt("outline","zoom-scan","ZoomScan",RYe),AYe=({node:e})=>y.jsxs(qr,{className:_Ye,gap:6,align:"baseline",wrap:"nowrap",children:[y.jsxs(wt,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),y.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})]}),NYe=({instance:e})=>{const r=Wt(),n=r.currentView.id,o=[...e.views()];return y.jsxs(qr,{className:EYe,gap:4,children:[y.jsx(ci,{color:"gray",variant:"transparent",size:"xs",flex:0,children:y.jsx(TYe,{stroke:1.2})}),y.jsx(wt,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),y.jsxs(Se,{onClick:cn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&y.jsx(Zn,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&y.jsxs(ho,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[y.jsx(ho.Target,{children:y.jsxs(Zn,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),y.jsx(ho.Dropdown,{children:o.map(a=>y.jsx(ho.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:y.jsx(ci,{size:"sm",variant:"transparent",color:"gray",children:y.jsx(gi,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:Ae(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},DYe=()=>{},PYe=E.memo(({elementFqn:e})=>{const r=Ho().element(e),n=[...r.deployments()],o=Y0({multiple:!1});o.setHoveredNode=DYe;const a=E.useMemo(()=>{let i=[],l=new Map;for(const s of r.deployments()){let c={label:y.jsx(NYe,{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(AYe,{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 E.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?y.jsx($w,{variant:"light",color:"gray",icon:y.jsx(FC,{}),children:"This element does not have any deployments"}):y.jsx(jf,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:wYe,label:kYe},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(Zn,{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})})}),$Ye=()=>{},DQ=(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]&&!Gn(o,r[n]))return!1;return!0};function D2(e,r,n,o){const a=Fj();jj(a?$Ye:e,r,DQ,o)}function MYe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Ki(Math.floor(e),{min:1,max:4})}let P2;function yi(e){return P2??=MYe(),P2<2?Math.round(e):Math.round(e*P2)/P2}function OYe(e){switch(e){case"dots":return Xi.Dots;case"lines":return Xi.Lines;case"cross":return Xi.Cross;default:Xa(e)}}function IYe({background:e}){return typeof e=="string"?y.jsx(Iq,{variant:OYe(e),size:2,gap:20}):y.jsx(Iq,{...e})}const dl={Compound:1,Edge:20,Element:20,Max:30},pl=.05,HC=3,$2={default:"16px",withControls:{top:"50px",left:"16px",right:"16px",bottom:"16px"}},PQ=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function LYe(e,r){return r!==void 0?PQ(e,r):n=>PQ(n,e)}const $Q=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function zYe(e,r){return r!==void 0?$Q(e,r):n=>$Q(n,e)}function MQ(e,r){return ONe(e.data,r)?e:{...e,data:{...e.data,...r}}}function BYe(e,r){return r!==void 0?MQ(e,r):n=>MQ(n,e)}const Jt={setDimmed:LYe,setHovered:zYe,setData:BYe};function qC({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=YVe(),N=IC(),{colorScheme:$}=S$e();return p||(p=$==="auto"?"system":$),y.jsxs(YRe,{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?HC:1,minZoom:l?pl:1,fitView:g,fitViewOptions:{minZoom:pl,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:it((M,{x:j,y:L,zoom:Y})=>{const O=yi(j),U=yi(L);(j!==O||L!==U)&&N.setState({transform:[O,U,Y]}),w?.(M,{x:O,y:U,zoom:Y})}),onNodeMouseEnter:it((M,j)=>{if(k){k(M,j);return}j.data.hovered||o([{id:j.id,type:"replace",item:Jt.setHovered(j,!0)}])}),onNodeMouseLeave:it((M,j)=>{if(C){C(M,j);return}j.data.hovered&&o([{id:j.id,type:"replace",item:Jt.setHovered(j,!1)}])}),onEdgeMouseEnter:it((M,j)=>{if(_){_(M,j);return}j.data.hovered||n([{id:j.id,type:"replace",item:Jt.setHovered(j,!0)}])}),onEdgeMouseLeave:it((M,j)=>{if(T){T(M,j);return}j.data.hovered&&n([{id:j.id,type:"replace",item:Jt.setHovered(j,!1)}])}),onNodeDoubleClick:cn,onEdgeDoubleClick:cn,...R,children:[A&&y.jsx(IYe,{background:u}),x&&y.jsx(FYe,{onViewportResize:x}),d]})}const jYe=({width:e,height:r})=>(e||1)*(r||1),FYe=({onViewportResize:e})=>{const r=Rt(jYe);return D2(e,[r]),null},OQ=E.createContext(null);function IQ(){return mt(E.useContext(OQ),"No RelationshipsBrowserActorContext")}function M2(e,r=Gn){const n=IQ();return wn(n,it(e),r)}function Sy(){const e=IQ();return E.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 UC,LQ;function VC(){if(LQ)return UC;LQ=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 UC=o,UC}var zQ,BQ;function HYe(){return BQ||(BQ=1,zQ="2.2.4"),zQ}var jQ,FQ;function qYe(){return FQ||(FQ=1,jQ={Graph:VC(),version:HYe()}),jQ}var YC,HQ;function UYe(){if(HQ)return YC;HQ=1;var e=VC();YC={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 YC}var WC,qQ;function VYe(){if(qQ)return WC;qQ=1,WC=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 WC}var GC,UQ;function VQ(){if(UQ)return GC;UQ=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 GC=e,GC}var XC,YQ;function WQ(){if(YQ)return XC;YQ=1;var e=VQ();XC=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 XC}var KC,GQ;function YYe(){if(GQ)return KC;GQ=1;var e=WQ();KC=r;function r(n,o,a){return n.nodes().reduce(function(i,l){return i[l]=e(n,l,o,a),i},{})}return KC}var ZC,XQ;function KQ(){if(XQ)return ZC;XQ=1,ZC=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 ZC}var QC,ZQ;function WYe(){if(ZQ)return QC;ZQ=1;var e=KQ();QC=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return QC}var JC,QQ;function GYe(){if(QQ)return JC;QQ=1,JC=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 JC}var eT,JQ;function eJ(){if(JQ)return eT;JQ=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 eT=e,e.CycleException=r,eT}var tT,tJ;function XYe(){if(tJ)return tT;tJ=1;var e=eJ();tT=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return tT}var rT,rJ;function nJ(){if(rJ)return rT;rJ=1,rT=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 rT}var nT,oJ;function KYe(){if(oJ)return nT;oJ=1;var e=nJ();nT=r;function r(n,o){return e(n,o,"post")}return nT}var oT,aJ;function ZYe(){if(aJ)return oT;aJ=1;var e=nJ();oT=r;function r(n,o){return e(n,o,"pre")}return oT}var aT,iJ;function QYe(){if(iJ)return aT;iJ=1;var e=VC(),r=VQ();aT=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 aT}var lJ,sJ;function JYe(){return sJ||(sJ=1,lJ={components:VYe(),dijkstra:WQ(),dijkstraAll:YYe(),findCycles:WYe(),floydWarshall:GYe(),isAcyclic:XYe(),postorder:KYe(),preorder:ZYe(),prim:QYe(),tarjan:KQ(),topsort:eJ()}),lJ}var iT,cJ;function hl(){if(cJ)return iT;cJ=1;var e=qYe();return iT={Graph:e.Graph,json:UYe(),alg:JYe(),version:e.version},iT}var lT,uJ;function eWe(){if(uJ)return lT;uJ=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 lT=e,lT}var sT,dJ;function tWe(){if(dJ)return sT;dJ=1;let e=hl().Graph,r=eWe();sT=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 sT}var cT,pJ;function _n(){if(pJ)return cT;pJ=1;let e=hl().Graph;cT={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,$,M,j){for(var L=j;N.hasNode(L);)L=_(j);return M.dummy=$,N.setNode(L,M),L}function n(N){let $=new e().setGraph(N.graph());return N.nodes().forEach(M=>$.setNode(M,N.node(M))),N.edges().forEach(M=>{let j=$.edge(M.v,M.w)||{weight:0,minlen:1},L=N.edge(M);$.setEdge(M.v,M.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(M=>{N.children(M).length||$.setNode(M,N.node(M))}),N.edges().forEach(M=>{$.setEdge(M,N.edge(M))}),$}function a(N){let $=N.nodes().map(M=>{let j={};return N.outEdges(M).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(M=>{let j={};return N.inEdges(M).forEach(L=>{j[L.v]=(j[L.v]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function l(N,$){let M=N.x,j=N.y,L=$.x-M,Y=$.y-j,O=N.width/2,U=N.height/2;if(!L&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let I,q;return Math.abs(Y)*O>Math.abs(L)*U?(Y<0&&(U=-U),I=U*L/Y,q=U):(L<0&&(O=-O),I=O,q=O*Y/L),{x:M+I,y:j+q}}function s(N){let $=T(b(N)+1).map(()=>[]);return N.nodes().forEach(M=>{let j=N.node(M),L=j.rank;L!==void 0&&($[L][j.order]=M)}),$}function c(N){let $=N.nodes().map(j=>{let L=N.node(j).rank;return L===void 0?Number.MAX_VALUE:L}),M=g(Math.min,$);N.nodes().forEach(j=>{let L=N.node(j);Object.hasOwn(L,"rank")&&(L.rank-=M)})}function u(N){let $=N.nodes().map(O=>N.node(O).rank),M=g(Math.min,$),j=[];N.nodes().forEach(O=>{let U=N.node(O).rank-M;j[U]||(j[U]=[]),j[U].push(O)});let L=0,Y=N.graph().nodeRankFactor;Array.from(j).forEach((O,U)=>{O===void 0&&U%Y!==0?--L:O!==void 0&&L&&O.forEach(I=>N.node(I).rank+=L)})}function d(N,$,M,j){let L={width:0,height:0};return arguments.length>=4&&(L.rank=M,L.order=j),r(N,"border",L,$)}function p(N,$=f){const M=[];for(let j=0;j<N.length;j+=$){const L=N.slice(j,j+$);M.push(L)}return M}const f=65535;function g(N,$){if($.length>f){const M=p($);return N.apply(null,M.map(j=>N.apply(null,j)))}else return N.apply(null,$)}function b(N){const $=N.nodes().map(M=>{let j=N.node(M).rank;return j===void 0?Number.MIN_VALUE:j});return g(Math.max,$)}function x(N,$){let M={lhs:[],rhs:[]};return N.forEach(j=>{$(j)?M.lhs.push(j):M.rhs.push(j)}),M}function w(N,$){let M=Date.now();try{return $()}finally{console.log(N+" time: "+(Date.now()-M)+"ms")}}function k(N,$){return $()}let C=0;function _(N){var $=++C;return N+(""+$)}function T(N,$,M=1){$==null&&($=N,N=0);let j=Y=>Y<$;M<0&&(j=Y=>$<Y);const L=[];for(let Y=N;j(Y);Y+=M)L.push(Y);return L}function R(N,$){const M={};for(const j of $)N[j]!==void 0&&(M[j]=N[j]);return M}function A(N,$){let M=$;return typeof $=="string"&&(M=j=>j[$]),Object.entries(N).reduce((j,[L,Y])=>(j[L]=M(Y,L),j),{})}function D(N,$){return N.reduce((M,j,L)=>(M[j]=$[L],M),{})}return cT}var uT,hJ;function rWe(){if(hJ)return uT;hJ=1;let e=tWe(),r=_n().uniqueId;uT={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 uT}var dT,fJ;function nWe(){if(fJ)return dT;fJ=1;let e=_n();dT={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 dT}var pT,mJ;function O2(){if(mJ)return pT;mJ=1;const{applyWithChunking:e}=_n();pT={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 pT}var hT,gJ;function yJ(){if(gJ)return hT;gJ=1;var e=hl().Graph,r=O2().slack;hT=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 hT}var fT,bJ;function oWe(){if(bJ)return fT;bJ=1;var e=yJ(),r=O2().slack,n=O2().longestPath,o=hl().alg.preorder,a=hl().alg.postorder,i=_n().simplify;fT=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(M=>{var j=M.v===T,L=j?M.w:M.v;if(L!==A){var Y=j===D,O=_.edge(M).weight;if($+=Y?O:-O,w(C,T,L)){var U=C.edge(T,L).cutvalue;$+=Y?-U:U}}}),$}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,M=!1;D.lim>N.lim&&($=N,M=!0);var j=_.edges().filter(L=>M===k(C,C.node(L.v),$)&&M!==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 fT}var mT,vJ;function aWe(){if(vJ)return mT;vJ=1;var e=O2(),r=e.longestPath,n=yJ(),o=oWe();mT=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 mT}var gT,xJ;function iWe(){if(xJ)return gT;xJ=1,gT=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 gT}var yT,wJ;function lWe(){if(wJ)return yT;wJ=1;let e=_n();yT={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 yT}var bT,kJ;function sWe(){if(kJ)return bT;kJ=1;let e=_n();bT=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 bT}var vT,_J;function cWe(){if(_J)return vT;_J=1,vT={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 vT}var xT,EJ;function uWe(){if(EJ)return xT;EJ=1;let e=_n();xT=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 xT}var wT,SJ;function dWe(){if(SJ)return wT;SJ=1;let e=_n().zipObject;wT=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 wT}var kT,CJ;function pWe(){if(CJ)return kT;CJ=1,kT=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 kT}var _T,TJ;function hWe(){if(TJ)return _T;TJ=1;let e=_n();_T=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 _T}var ET,RJ;function fWe(){if(RJ)return ET;RJ=1;let e=_n();ET=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 ET}var ST,AJ;function mWe(){if(AJ)return ST;AJ=1;let e=pWe(),r=hWe(),n=fWe();ST=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 ST}var CT,NJ;function gWe(){if(NJ)return CT;NJ=1;let e=hl().Graph,r=_n();CT=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 CT}var TT,DJ;function yWe(){if(DJ)return TT;DJ=1,TT=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 TT}var RT,PJ;function bWe(){if(PJ)return RT;PJ=1;let e=uWe(),r=dWe(),n=mWe(),o=gWe(),a=yWe(),i=hl().Graph,l=_n();RT=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 RT}var AT,$J;function vWe(){if($J)return AT;$J=1;let e=hl().Graph,r=_n();AT={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((M,j)=>{let L=a(w,M),Y=L?w.node(L).order:N;(L||M===$)&&(R.slice(D,j+1).forEach(O=>{w.predecessors(O).forEach(U=>{let I=w.node(U),q=I.order;(q<A||Y<q)&&!(I.dummy&&w.node(O).dummy)&&i(C,U,O)})}),D=j+1,A=Y)}),R}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(R,A,D,N,$){let M;r.range(A,D).forEach(j=>{M=R[j],w.node(M).dummy&&w.predecessors(M).forEach(L=>{let Y=w.node(L);Y.dummy&&(Y.order<N||Y.order>$)&&i(C,L,M)})})}function T(R,A){let D=-1,N,$=0;return A.forEach((M,j)=>{if(w.node(M).dummy==="border"){let L=w.predecessors(M);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 M=_($);if(M.length){M=M.sort((L,Y)=>A[L]-A[Y]);let j=(M.length-1)/2;for(let L=Math.floor(j),Y=Math.ceil(j);L<=Y;++L){let O=M[L];R[$]===$&&N<A[O]&&!l(C,$,O)&&(R[O]=$,R[$]=T[$]=T[O],N=A[O])}}})}),{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(),O=Y.pop(),U={};for(;O;)U[O]?j(O):(U[O]=!0,Y.push(O),Y=Y.concat(L(O))),O=Y.pop()}function $(j){R[j]=A.inEdges(j).reduce((L,Y)=>Math.max(L,R[Y.v]+A.edge(Y)),0)}function M(j){let L=A.outEdges(j).reduce((O,U)=>Math.min(O,R[U.w]-A.edge(U)),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(M,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 M=C[$];if(T.setNode(M),N){var j=C[N],L=T.edge(j,M);T.setEdge(j,M,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),M=_-r.applyWithChunking(Math.min,$);A!=="l"&&(M=T-r.applyWithChunking(Math.max,$)),M&&(w[D]=r.mapValues(N,j=>j+M))})})}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),M=c(w,T,$.root,$.align,D==="r");D==="r"&&(M=r.mapValues(M,j=>-j)),_[A+D]=M})});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 AT}var NT,MJ;function xWe(){if(MJ)return NT;MJ=1;let e=_n(),r=vWe().positionX;NT=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 NT}var DT,OJ;function wWe(){if(OJ)return DT;OJ=1;let e=rWe(),r=nWe(),n=aWe(),o=_n().normalizeRanks,a=iWe(),i=_n().removeEmptyRanks,l=lWe(),s=sWe(),c=cWe(),u=bWe(),d=xWe(),p=_n(),f=hl().Graph;DT=g;function g(z,W){let X=W&&W.debugTiming?p.time:p.notime;X("layout",()=>{let Z=X(" buildLayoutGraph",()=>N(z));X(" runLayout",()=>b(Z,X,W)),X(" updateInputGraph",()=>x(z,Z))})}function b(z,W,X){W(" makeSpaceForEdgeLabels",()=>$(z)),W(" removeSelfEdges",()=>V(z)),W(" acyclic",()=>e.run(z)),W(" nestingGraph.run",()=>l.run(z)),W(" rank",()=>n(p.asNonCompoundGraph(z))),W(" injectEdgeLabelProxies",()=>M(z)),W(" removeEmptyRanks",()=>i(z)),W(" nestingGraph.cleanup",()=>l.cleanup(z)),W(" normalizeRanks",()=>o(z)),W(" assignRankMinMax",()=>j(z)),W(" removeEdgeLabelProxies",()=>L(z)),W(" normalize.run",()=>r.run(z)),W(" parentDummyChains",()=>a(z)),W(" addBorderSegments",()=>s(z)),W(" order",()=>u(z,X)),W(" insertSelfEdges",()=>G(z)),W(" adjustCoordinateSystem",()=>c.adjust(z)),W(" position",()=>d(z)),W(" positionSelfEdges",()=>F(z)),W(" removeBorderNodes",()=>q(z)),W(" normalize.undo",()=>r.undo(z)),W(" fixupEdgeLabelCoords",()=>U(z)),W(" undoCoordinateSystem",()=>c.undo(z)),W(" translateGraph",()=>Y(z)),W(" assignNodeIntersects",()=>O(z)),W(" reversePoints",()=>I(z)),W(" acyclic.undo",()=>e.undo(z))}function x(z,W){z.nodes().forEach(X=>{let Z=z.node(X),oe=W.node(X);Z&&(Z.x=oe.x,Z.y=oe.y,Z.rank=oe.rank,W.children(X).length&&(Z.width=oe.width,Z.height=oe.height))}),z.edges().forEach(X=>{let Z=z.edge(X),oe=W.edge(X);Z.points=oe.points,Object.hasOwn(oe,"x")&&(Z.x=oe.x,Z.y=oe.y)}),z.graph().width=W.graph().width,z.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(z){let W=new f({multigraph:!0,compound:!0}),X=Q(z.graph());return W.setGraph(Object.assign({},k,J(X,w),p.pick(X,C))),z.nodes().forEach(Z=>{let oe=Q(z.node(Z));const ee=J(oe,_);Object.keys(T).forEach(re=>{ee[re]===void 0&&(ee[re]=T[re])}),W.setNode(Z,ee),W.setParent(Z,z.parent(Z))}),z.edges().forEach(Z=>{let oe=Q(z.edge(Z));W.setEdge(Z,Object.assign({},A,J(oe,R),p.pick(oe,D)))}),W}function $(z){let W=z.graph();W.ranksep/=2,z.edges().forEach(X=>{let Z=z.edge(X);Z.minlen*=2,Z.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Z.width+=Z.labeloffset:Z.height+=Z.labeloffset)})}function M(z){z.edges().forEach(W=>{let X=z.edge(W);if(X.width&&X.height){let Z=z.node(W.v),oe={rank:(z.node(W.w).rank-Z.rank)/2+Z.rank,e:W};p.addDummyNode(z,"edge-proxy",oe,"_ep")}})}function j(z){let W=0;z.nodes().forEach(X=>{let Z=z.node(X);Z.borderTop&&(Z.minRank=z.node(Z.borderTop).rank,Z.maxRank=z.node(Z.borderBottom).rank,W=Math.max(W,Z.maxRank))}),z.graph().maxRank=W}function L(z){z.nodes().forEach(W=>{let X=z.node(W);X.dummy==="edge-proxy"&&(z.edge(X.e).labelRank=X.rank,z.removeNode(W))})}function Y(z){let W=Number.POSITIVE_INFINITY,X=0,Z=Number.POSITIVE_INFINITY,oe=0,ee=z.graph(),re=ee.marginx||0,pe=ee.marginy||0;function Ce(ce){let de=ce.x,be=ce.y,Oe=ce.width,Xe=ce.height;W=Math.min(W,de-Oe/2),X=Math.max(X,de+Oe/2),Z=Math.min(Z,be-Xe/2),oe=Math.max(oe,be+Xe/2)}z.nodes().forEach(ce=>Ce(z.node(ce))),z.edges().forEach(ce=>{let de=z.edge(ce);Object.hasOwn(de,"x")&&Ce(de)}),W-=re,Z-=pe,z.nodes().forEach(ce=>{let de=z.node(ce);de.x-=W,de.y-=Z}),z.edges().forEach(ce=>{let de=z.edge(ce);de.points.forEach(be=>{be.x-=W,be.y-=Z}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=Z)}),ee.width=X-W+re,ee.height=oe-Z+pe}function O(z){z.edges().forEach(W=>{let X=z.edge(W),Z=z.node(W.v),oe=z.node(W.w),ee,re;X.points?(ee=X.points[0],re=X.points[X.points.length-1]):(X.points=[],ee=oe,re=Z),X.points.unshift(p.intersectRect(Z,ee)),X.points.push(p.intersectRect(oe,re))})}function U(z){z.edges().forEach(W=>{let X=z.edge(W);if(Object.hasOwn(X,"x"))switch((X.labelpos==="l"||X.labelpos==="r")&&(X.width-=X.labeloffset),X.labelpos){case"l":X.x-=X.width/2+X.labeloffset;break;case"r":X.x+=X.width/2+X.labeloffset;break}})}function I(z){z.edges().forEach(W=>{let X=z.edge(W);X.reversed&&X.points.reverse()})}function q(z){z.nodes().forEach(W=>{if(z.children(W).length){let X=z.node(W),Z=z.node(X.borderTop),oe=z.node(X.borderBottom),ee=z.node(X.borderLeft[X.borderLeft.length-1]),re=z.node(X.borderRight[X.borderRight.length-1]);X.width=Math.abs(re.x-ee.x),X.height=Math.abs(oe.y-Z.y),X.x=ee.x+X.width/2,X.y=Z.y+X.height/2}}),z.nodes().forEach(W=>{z.node(W).dummy==="border"&&z.removeNode(W)})}function V(z){z.edges().forEach(W=>{if(W.v===W.w){var X=z.node(W.v);X.selfEdges||(X.selfEdges=[]),X.selfEdges.push({e:W,label:z.edge(W)}),z.removeEdge(W)}})}function G(z){var W=p.buildLayerMatrix(z);W.forEach(X=>{var Z=0;X.forEach((oe,ee)=>{var re=z.node(oe);re.order=ee+Z,(re.selfEdges||[]).forEach(pe=>{p.addDummyNode(z,"selfedge",{width:pe.label.width,height:pe.label.height,rank:re.rank,order:ee+ ++Z,e:pe.e,label:pe.label},"_se")}),delete re.selfEdges})})}function F(z){z.nodes().forEach(W=>{var X=z.node(W);if(X.dummy==="selfedge"){var Z=z.node(X.e.v),oe=Z.x+Z.width/2,ee=Z.y,re=X.x-oe,pe=Z.height/2;z.setEdge(X.e,X.label),z.removeNode(W),X.label.points=[{x:oe+2*re/3,y:ee-pe},{x:oe+5*re/6,y:ee-pe},{x:oe+re,y:ee},{x:oe+5*re/6,y:ee+pe},{x:oe+2*re/3,y:ee+pe}],X.label.x=X.x,X.label.y=X.y}})}function J(z,W){return p.mapValues(p.pick(z,W),Number)}function Q(z){var W={};return z&&Object.entries(z).forEach(([X,Z])=>{typeof X=="string"&&(X=X.toLowerCase()),W[X]=Z}),W}return DT}var PT,IJ;function kWe(){if(IJ)return PT;IJ=1;let e=_n(),r=hl().Graph;PT={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 PT}var LJ,zJ;function _We(){return zJ||(zJ=1,LJ="1.1.5"),LJ}var BJ,jJ;function EWe(){return jJ||(jJ=1,BJ={graphlib:hl(),layout:wWe(),debug:kWe(),util:{time:_n().time,notime:_n().notime},version:_We()}),BJ}var SWe=EWe();const I2=DE(SWe),go={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 CWe(){const e=new I2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...go.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...go.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const $T="-port";function MT(e,r,n){const o=new so(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=z3(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,u=l?`${c}${$T}`:c;o.set(s,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:l,portId:u,inPorts:[],outPorts:[],width:go.nodeWidth,height:go.nodeHeight}),l&&(n.setNode(u,{element:i,portId:u,isCompound:l,inPorts:[],outPorts:[],width:go.nodeWidth-go.dagre.ranksep,height:go.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 TWe(e){return I2.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 L2;(e=>{e.Empty="@empty"})(L2||(L2={}));function RWe(e,r){const n=CWe(),o=MT("incomers",e.incomers,n),a=MT("subjects",e.subjects,n),i=MT("outgoers",e.outgoers,n),l=[];yn(cNe(yn(K1(e.incoming),Ro(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}))),yn(K1(e.outgoing),Ro(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})))),Ro(T=>({...T,expr:`${T.source.id}->${T.target.id}`})),ANe(Ca("expr")),TNe(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,{...go.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:Ro(T,Ca("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:go.nodeWidth,height:go.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:go.nodeWidth,height:go.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,{...go.edgeLabel,width:c>25?800:400});const u=TWe(n),d=yn(s,df(T=>T.id===T.portId),E0(T=>[T.id,u(T.id)]));function p(T){return d[T]??=yn(n.children(T)??[],df(R=>!R.endsWith($T)),Ro(R=>p(R)),uU(R=>{nt(R.length>0,`Node ${T} has no nested nodes`)}),hf((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-go.compound.paddingTop,A=A+go.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)=>yn(A,Ro((D,N)=>({port:T+"_"+R+N,topY:p(D).position.y})),Bx(Ca("topY")),Ro(Ca("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:M,height:j}=p(T);if(!R){if(j=Math.min(C.height,300),$.y=C.position.y+C.height/2-j/2,N==="incomers")M=C.position.x-go.emptyNodeOffset-$.x;else{const V=$.x+M;$.x=C.position.x+C.width+go.emptyNodeOffset,M=V-$.x}return{id:T,parent:null,x:$.x,y:$.y,title:"empty node",description:Kt.EMPTY,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:L2.Empty,level:0,labelBBox:{x:$.x,y:$.y,width:M,height:j},children:[],width:M,height:j,column:N,ports:{in:[],out:[]},existsInCurrentView:!1}}const L=n.parent(T),Y=(n.children(T)??[]).filter(V=>!V.endsWith($T));x=Math.min(x,$.x),w=Math.min(w,$.y);const O=r?X1(R.scopedViews(),V=>V.id!==r.id)?.id??null:null,U=r?.findNodeWithElement(R.id),I=r&&!U?X1(R.ancestors(),V=>!!r.findNodeWithElement(V.id))?.id:null,q=U??(I&&r?.findNodeWithElement(I));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:q?.color??R.color,shape:U?.shape??R.shape,icon:U?.icon??R.icon??"none",modelRef:R.id,kind:R.kind,level:f(T),labelBBox:{x:$.x,y:$.y,width:M,height:j},style:Ud({...(U??q)?.style,...R.$element.style},["color","shape","icon"]),navigateTo:O,...Y.length>0&&{depth:g(T)},children:Y,width:M,height:j,column:N,ports:{in:b(T,"in",A),out:b(T,"out",D)},existsInCurrentView:!!U}});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:M,target:j,targetFqn:L,relations:Y,sourceHandle:O,targetHandle:U}=mt(Lx(l,F=>F.name===D)),I=zx(Y),q=I?.title??"untitled",V=Y.length>1,G=zx(YE(Y.flatMap(F=>F.navigateTo?.id?F.navigateTo.id:[])));return T.push(U1({id:N,sourceFqn:M,source:$,sourceHandle:O,targetFqn:L,target:j,targetHandle:U,label:V?`${Y.length} relationships`:q,navigateTo:G,color:I?.color??"gray",existsInCurrentView:!r||Y.every(F=>r.includesRelation(F.id)),points:A.points.map(F=>[F.x,F.y]),line:I?.line??"dashed",head:I?.head,tail:I?.tail,relations:Y.map(F=>F.id),parent:null})),T},[])}}function AWe(e,r,n){const o=Ho();return E.useMemo(()=>{const a=r?o.findView(r):null,i=RWe(dj(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,dj])}const Cy=(e,r)=>r3(e.label,r.label);function OT(e){return{label:e.title,value:e.id,children:[...e.children()].map(OT).sort(Cy)}}function NWe(e){const r=Ho();return E.useMemo(()=>e?[...r.view(e).roots()].map(OT).sort(Cy):[...r.roots()].map(OT).sort(Cy),[r,e??null])}const DWe=ye({margin:"0"}),PWe=ye({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),FJ=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),$We=Object.freeze(Object.defineProperty({__proto__:null,label:PWe,node:DWe,scrollArea:FJ},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 MWe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],IT=yt("outline","selector","Selector",MWe);/**
* @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 OWe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],pp=yt("outline","chevron-right","ChevronRight",OWe),IWe=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}},LWe=()=>{},zWe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:l}=M2(IWe),s=E.useRef(null),c=E.useRef(null),u=Ho().findElement(r),d=NWe(o==="view"&&n?n:void 0),p=Y0({multiple:!1});return p.setHoveredNode=LWe,E.useEffect(()=>{bd(r).reverse().forEach(f=>{p.expand(f)}),p.select(r)},[r]),y.jsxs(qr,{ref:s,gap:"xs",pos:"relative",children:[i&&y.jsxs(qr,{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(mr,{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(fu,{children:y.jsx(Zn,{size:"xs",variant:"default",maw:250,rightSection:y.jsx(IT,{size:16}),children:y.jsx(wt,{fz:"xs",fw:"500",truncate:!0,children:u?.title??"???"})})}),y.jsx(Gs,{p:0,miw:250,maw:400,children:y.jsx(ta,{scrollbars:"y",type:"never",viewportRef:c,className:FJ,children:y.jsx(jf,{allowRangeSelection:!1,selectOnClick:!1,tree:p,data:d,classNames:$We,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(qr,{gap:2,wrap:"nowrap",...x,py:"3",children:[y.jsx(or,{variant:"subtle",size:18,c:"dimmed",style:{visibility:w?"visible":"hidden"},children:y.jsx(pp,{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(wt,{fz:"sm",fw:g?"600":"400",truncate:"end",children:f.label})})]})})})})]})})]}),l&&y.jsxs(qr,{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(fo,{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(q0,{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}]})})})]})]})}),z2=(e,r)=>Math.abs(e-r)<2.5,BWe=(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)&&z2(e.sourceX,r.sourceX)&&z2(e.sourceY,r.sourceY)&&z2(e.targetX,r.targetX)&&z2(e.targetY,r.targetY)&&ut(e.data,r.data);function LT(e){return E.memo(e,BWe)}const jWe=["Controls","ReadOnly","FocusMode","NavigateTo","ElementDetails","RelationshipDetails","RelationshipBrowser","Search","NavigationButtons","Notations","DynamicViewWalkthrough","EdgeEditing","FitView","Vscode","ElementTags"],HJ=E0(jWe,e=>[`enable${e}`,!1]),zT=E.createContext(HJ),FWe=e=>{let{enableReadOnly:r,enableEdgeEditing:n,...o}=e;return r&&(n=!1),{enableReadOnly:r,enableEdgeEditing:n,...o}};function hp({children:e,features:r,overrides:n}){const o=E.useContext(zT),[a,i]=E.useState(o);return E.useEffect(()=>{i(l=>{const s=FWe({...o,...r,...n});return Gn(l,s)?l:s})},[o,r,n]),y.jsx(zT.Provider,{value:a,children:e})}hp.Overlays=({children:e})=>y.jsx(hp,{overrides:{enableControls:!1,enableReadOnly:!0,enableEdgeEditing:!1},children:e});function wr(){return E.useContext(zT)}function HWe({feature:e,children:r,and:n=!0}){return wr()[`enable${e}`]===!0&&n?y.jsx(y.Fragment,{children:r}):null}function BT(e,r){return w2(e,r)}const fl=BT("button"),Qr=BT("div"),qWe=BT("span"),Ty=E.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=v1(e)?jI(e):null,f=OVe({isStepEdge:p!==null,cursor:i||p!==null?"pointer":"default"}),g=Sa(r)||Sa(n);return y.jsxs(Qr,{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(Ur,{className:f.stepNumber,children:p}),g&&y.jsxs(Ur,{className:f.labelContents,children:[Sa(r)&&y.jsx(Ur,{className:Je(f.labelText,ye({lineClamp:5})),children:r}),Sa(n)&&y.jsx(Ur,{className:f.labelTechnology,children:"[ "+n+" ]"}),c]})]})});Ty.displayName="EdgeLabel";function B2({icon:e,onClick:r}){return y.jsx(or,{className:Je("nodrag nopan",EVe()),onPointerDownCapture:cn,onClick:r,role:"button",onDoubleClick:cn,children:e??y.jsx(gi,{})})}const UWe=".react-flow__edge.selected",VWe=ye({_reduceGraphics:{transition:"none"}}),YWe=ye({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}}}),WWe=ye({fill:"[var(--xy-edge-stroke)]",stroke:"[var(--xy-edge-stroke)]"}),GWe=ye({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(${UWe}, [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 Ry({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,VWe,"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 XWe=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"})}),KWe=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})}),ZWe=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})}),QWe=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"})}),JWe=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"})}),eGe=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"})}),tGe=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})}),rGe=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})}),qJ={Arrow:KWe,Crow:ZWe,OArrow:QWe,Open:XWe,Diamond:JWe,ODiamond:eGe,Dot:tGe,ODot:rGe};function UJ(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:Xa(e)}}const Ay=E.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=UJ(o),g=UJ(a??"normal");n==="back"&&([f,g]=[g,f]);const b=f?qJ[f]:null,x=g?qJ[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",ye({fill:"none"})),d,style:{strokeWidth:s??10,stroke:"currentcolor",strokeOpacity:0}}),y.jsxs("g",{className:WWe,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",YWe),d,style:l,strokeLinecap:"round"}),y.jsx("path",{ref:p,className:Je("react-flow__edge-path",i&&"react-flow__edge-interaction",GWe),d,style:l,strokeWidth:u,strokeLinecap:"round",strokeDasharray:C,markerStart:b?`url(#start${e})`:void 0,markerEnd:x?`url(#end${e})`:void 0})]})]})});Ay.displayName="EdgePath";const VJ=e=>{if(e!==void 0)return nU(e)?`${Math.round(e)}px`:e};function j2({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=OC(E.useCallback(x=>x.edgeLookup.get(e)?.zIndex??dl.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(Mq,{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(${VJ(f)}, ${VJ(g)}) ${b||""}`},children:u},e)})}const nGe=LT(e=>{const r=Sy(),{enableNavigateTo:n}=wr(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[l,s,c]=kx(e),u=Wt(),d=a.length>1||!i,p=d?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let f=y.jsx(Ty,{edgeProps:p,className:ye({transition:"fast"}),children:n&&o&&y.jsx(B2,{...e,onClick:g=>{g.stopPropagation(),u.navigateTo(o)}})});return i||(f=y.jsx(fo,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:f})),y.jsxs(Ry,{...p,children:[y.jsx(Ay,{edgeProps:p,svgPath:l,...d&&{strokeWidth:5}}),y.jsx(j2,{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})]})}),oGe=ye({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function aGe({data:{column:e}}){return y.jsx(Se,{className:oGe,children:y.jsxs(wt,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const iGe=e=>e.context.view.id;function F2(){const e=Jf();return wn(e,iGe)}/**
* @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 lGe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],sGe=yt("outline","bolt","Bolt",lGe),cGe=qo({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),uGe=qo({gap:"1.5",justifyContent:"center",alignItems:"center"});function H2({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=Ta();return n.length?y.jsx(Ur,{className:cGe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:y.jsx(Qr,{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",uGe),children:n.map((a,i)=>y.jsx(or,{component:fl,className:E2({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:cn,children:a.icon||y.jsx(sGe,{})},`${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 dGe=[["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"}]],Ny=yt("outline","transform","Transform",dGe);/**
* @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 pGe=[["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"}]],fm=yt("outline","file-symlink","FileSymlink",pGe),hGe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=F2(),i=Sy(),l=M2(d=>d.context.subject),s=[],{navigateTo:c,fqn:u}=e.data;return c&&r&&a!==c&&s.push({key:"navigate",icon:y.jsx(gi,{}),onClick:d=>{d.stopPropagation(),o.navigateTo(c)}}),u!==l&&s.push({key:"relationships",icon:y.jsx(Ny,{}),onClick:d=>{d.stopPropagation(),i.navigateTo(u,e.id)}}),n&&s.push({key:"goToSource",icon:y.jsx(fm,{}),onClick:d=>{d.stopPropagation(),o.openSource({element:u})}}),y.jsx(H2,{buttons:s,...e})};function Dy({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...l}){let s=Ki(n.style.opacity??100,{min:0,max:100});const c=s<99,u=65,d=u+Ki((100-u)*(s/100),{min:0,max:100-u}),p=_Ve({isTransparent:c,inverseColor:s<60,borderStyle:n.style.border??(c?"dashed":"none")}),f=Ki(n.depth??1,{min:1,max:5});return y.jsx(Qr,{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 Py({data:e}){const r=U3({element:e,className:"likec4-compound-icon"});return y.jsxs("div",{className:"likec4-compound-title-container",children:[r,y.jsx(wt,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const YJ=J1({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 fGe=[["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"}]],jT=yt("outline","id","Id",fGe);function WJ({data:{hovered:e=!1},icon:r,onClick:n}){const o=t9(e,e?130:0)[0]&&e;return y.jsx(Qr,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:y.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),E2({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??y.jsx(jT,{stroke:1.8,style:{width:"75%"}})})})}const mGe=ye({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"}}),mm=E.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}=e3(a.style??{});return y.jsx(Qr,{ref:u,className:Je(mGe,"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})});mm.displayName="ElementNodeContainer";function GJ(e,r,n=.065){const o=Math.round(e/2),a=o,i=yi(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 XJ(e,r,n=.185){const o=r,a=Math.round(o/2),i=yi(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 fp={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 KJ({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-fp.width-6,y:n-fp.height,width:fp.width,height:fp.height,viewBox:`0 0 ${fp.width} ${fp.height}`,"data-likec4-fill":"mix-stroke",children:y.jsx("path",{strokeWidth:0,d:fp.path})})]});case"queue":{const{path:o,rx:a,ry:i}=XJ(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}=GJ(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 Xa(e)}}function gGe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=y.jsx("path",{d:XJ(r,n).path});break;case"storage":case"cylinder":{o=y.jsx("path",{d:GJ(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 yGe({multiple:e,withOutLine:r}){return y.jsxs("div",{className:sQ({shapetype:"html"}),children:[e&&y.jsx("div",{className:"likec4-shape-multiple"}),r&&y.jsx("div",{className:"likec4-shape-outline"})]})}function gm({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(yGe,{multiple:l,withOutLine:o});const s=sQ({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(KJ,{shape:e.shape,w:a,h:i})}),y.jsxs("svg",{className:s,viewBox:`0 0 ${a} ${i}`,children:[o&&y.jsx(gGe,{shape:e.shape,w:a,h:i}),y.jsx(KJ,{shape:e.shape,w:a,h:i})]})]})}const mp=E.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(wt,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return y.jsx(Ur,{ref:u,...c,className:Je(TVe({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})});mp.displayName="Markdown";const ZJ=E.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,ref:n,className:Je(e,SVe(),"likec4-element")})),QJ=({data:e,...r})=>y.jsx(U3,{element:e,...r}),JJ=E.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,className:Je(e,"likec4-element-node-content"),ref:n})),eee=E.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=e3(r),l=i==="sm"||i==="xs";return y.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:l?2:3,ref:a,children:e})}),tee=E.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return Sa(i)?y.jsx(wt,{component:"div",...o,className:Je(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),ree=E.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e?.nonEmpty)return null;const{size:i}=e3(r),l=i==="sm"||i==="xs";return y.jsx(mp,{...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 ml({iconSize:e,data:r}){return y.jsxs(ZJ,{style:nU(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[y.jsx(QJ,{data:r}),y.jsxs(JJ,{children:[y.jsx(eee,{data:r}),y.jsx(tee,{data:r}),y.jsx(ree,{data:r})]})]})}ml.Root=ZJ,ml.Icon=QJ,ml.Content=JJ,ml.Title=eee,ml.Technology=tee,ml.Description=ree;const bGe=ye({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 FT({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){const a=Ta();return y.jsx(Ur,{className:Je(bGe,"details-button"),children:y.jsx(or,{className:Je("nodrag nopan",E2({variant:"transparent"})),component:fl,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:cn,children:n??y.jsx(jT,{stroke:1.8,style:{width:"75%"}})},a)})}const vGe=e=>{const r=Wt();return y.jsx(FT,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function xGe(e){const{enableElementTags:r}=wr();return y.jsxs(mm,{layoutId:e.id,nodeProps:e,children:[y.jsx(gm,{...e}),y.jsx(ml,{...e}),r&&y.jsx(Ey,{...e}),y.jsx(vGe,{...e}),y.jsx(hGe,{...e}),y.jsx(kGe,{...e})]},e.id)}function wGe(e){const r=Wt();return y.jsxs(Dy,{layoutId:e.id,nodeProps:e,children:[y.jsx(Py,{...e}),y.jsx(WJ,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),y.jsx(_Ge,{...e})]},e.id)}const kGe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(uo,{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(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),_Ge=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(uo,{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 EGe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],nee=yt("outline","chevron-left","ChevronLeft",EGe),SGe={element:xGe,compound:wGe,empty:aGe},CGe={relationship:nGe};function oee({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),y.jsx(OQ.Provider,{value:e,children:y.jsx($x,{...r.current,children:y.jsx(dm,{id:e.sessionId,inherit:!1,children:y.jsx(Pa,{children:y.jsx(AGe,{})})})})})}const TGe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),RGe=(e,r)=>e.isActive===r.isActive&&Gn(e.nodes,r.nodes)&&Gn(e.edges,r.edges),AGe=E.memo(()=>{const e=Sy(),{isActive:r,nodes:n,edges:o}=M2(TGe,RGe);return y.jsx(qC,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:SGe,edgeTypes:CGe,fitView:!1,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,pannable:!0,zoomable:!0,children:y.jsx(DGe,{})})}),NGe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),DGe=E.memo(()=>{const e=Sy(),{subjectId:r,viewId:n,scope:o,closeable:a}=M2(NGe),i=fr(),l=uf();E.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]);const s=AWe(r,n,o),[c,u,{history:d,current:p}]=YU(r);E.useEffect(()=>{c!==r&&u.set(r)},[r]),E.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),Hj(()=>{e.updateView(s)},[s,e]);const f=p>0,g=p+1<d.length;return y.jsxs(y.Fragment,{children:[y.jsx(PGe,{hasStepBack:f,hasStepForward:g,onStepBack:()=>u.back(),onStepForward:()=>u.forward()}),a&&y.jsx(ou,{position:"top-right",children:y.jsx(or,{variant:"default",color:"gray",onClick:b=>{b.stopPropagation(),e.close()},children:y.jsx(Hf,{})})})]})}),PGe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>y.jsx(ou,{position:"top-left",children:y.jsxs(qr,{gap:4,wrap:"nowrap",children:[y.jsxs(Pa,{mode:"popLayout",children:[e&&y.jsx(cl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:y.jsx(nee,{})})},"back"),r&&y.jsx(cl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:y.jsx(pp,{})})},"forward")]}),y.jsx(zWe,{})]})}),$Ge=ye({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)"}),MGe=ye({_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]"}}}),OGe=ye({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]"}});ye({_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]"}}}),ye({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 IGe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],ym=yt("outline","arrow-right","ArrowRight",IGe);/**
* @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 LGe=[["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"}]],aee=yt("outline","external-link","ExternalLink",LGe),zGe=fo.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function BGe({node:e,element:r}){const n=UG(),o=kVe(),a=wn(o,d=>d.children[`${o.id}-relationships`]),i=[...r.incoming()].map(d=>d.id),l=[...r.outgoing()].map(d=>d.id),s=e?YE([...e.incoming()].flatMap(d=>d.$edge.relations)):[],c=e?YE([...e.outgoing()].flatMap(d=>d.$edge.relations)):[],u=[...i,...l].filter(d=>!s.includes(d)&&!c.includes(d)).length;return y.jsxs(ra,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+l.length>0&&y.jsxs(qr,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Se,{children:y.jsxs(qr,{gap:8,mb:4,wrap:"nowrap",children:[y.jsx(iee,{title:"incoming",total:i.length,included:s.length}),y.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(ym,{style:{width:16}})}),y.jsx(wt,{className:$Ge,children:g1(r.id)}),y.jsx(ci,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(ym,{style:{width:16}})}),y.jsx(iee,{title:"outgoing",total:l.length,included:c.length})]})}),u>0&&y.jsx(zGe,{label:"Current view does not include some relationships",children:y.jsxs(qr,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[y.jsx(FC,{style:{width:14}}),y.jsxs(wt,{fz:"sm",children:[u," relationship",u>1?"s are":" is"," hidden"]})]})})]}),y.jsx(Se,{className:OGe,children:a&&y.jsxs(y.Fragment,{children:[y.jsx(oee,{actorRef:a}),y.jsx(Se,{pos:"absolute",top:12,right:12,children:y.jsx(or,{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(aee,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function iee({title:e,total:r,included:n}){return y.jsx(Nf,{withBorder:!0,shadow:"none",className:MGe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:y.jsxs(ra,{gap:4,align:"flex-end",children:[y.jsx(wt,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),y.jsx(wt,{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 jGe=ye({marginTop:"sm",marginBottom:"sm"}),FGe=ye({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)"}}}),HT=({element:e})=>y.jsx(Se,{className:FGe,children:y.jsx(wt,{component:"div",fz:"sm",fw:"500",children:e.title})}),HGe=()=>{};function qGe({element:e}){const r=Y0({multiple:!1});r.setHoveredNode=HGe;const n=E.useMemo(()=>{let o=1;const a=l=>({label:l,value:`msg${o++}`,type:"message",children:[]}),i={label:y.jsx(HT,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(l=>({label:y.jsx(HT,{type:"descedant",element:l}),value:l.id,element:l,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(y.jsx(qw,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((l,s)=>({label:y.jsx(HT,{type:"ancestor",element:s}),value:s.id,element:s,type:"ancestor",children:[l]}),i)]},[e]);return E.useEffect(()=>{r.expandAllNodes()},[n]),y.jsxs(y.Fragment,{children:[y.jsxs($w,{variant:"light",color:"orange",title:"In development",icon:y.jsx(FC,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",y.jsx(r7,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),y.jsx(jf,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:jGe},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 UGe=[["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"}]],qT=yt("outline","stack-2","Stack2",UGe),lee=If.withProps({mb:8,labelPosition:"left",variant:"dashed"}),see=fo.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),cee=wt.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),$y=wt.withProps({component:"div",fz:"xs",c:"dimmed",className:vYe}),bm=24,VGe=["Properties","Relationships","Views","Structure","Deployments"];function YGe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,l]=E.useState(!1),s=_Pe(),c=s.width||window.innerWidth||1200,u=s.height||window.innerHeight||800,[d,p]=bPe({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),f=Wt(),g=AQ(),b=r?g.findNode(r):g.findNodeWithElement(o),x=g.$model.element(o),[w,k]=yn([...x.views()],Ro(Q=>Q.$view),lU(Q=>Q._type==="element"&&Q.viewOf===o));let C=b?.navigateTo?.$view??x.defaultView?.$view??null;C?.id===e&&(C=null);const _=zx(x.links),T=wVe(),R=(b?.$node.children?.length??0)>0,A=Math.min(700,c-bm*2),D=Math.min(650,u-bm*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,M=Math.round(Ki(N.x-A/2,{min:bm,max:c-A-bm})),j=Math.round(Ki(N.y-(R?0:60),{min:bm,max:u-D-bm})),L=Ki((N.x-M)/A,{min:.1,max:.9}),Y=Ki((N.y-j)/D,{min:.1,max:.9}),O=KZ(A),U=KZ(D);D2(()=>{O.set(A),U.set(D)},[A,D]);const I=E.useCallback((Q,z)=>{O.set(Math.max(O.get()+z.delta.x,320)),U.set(Math.max(U.get()+z.delta.y,300))},[]),q=E.useRef(null),V=Xh(a),G=V3(()=>{V.current()},[],50),F=b?.$node.notation??null,J=U3({element:{id:o,title:x.title,icon:b?.icon??x.icon},className:dYe});return W3(()=>{q.current?.open||q.current?.showModal()},20),W3(()=>{l(!0)},220),y.jsx(cl.dialog,{ref:q,className:Je(lYe,S0.classNames.fullWidth),layout:!0,initial:{[T2]:"0px",[R2]:"5%"},animate:{[T2]:"3px",[R2]:"60%"},exit:{[T2]:"0px",[R2]:"0%",transition:{duration:.1}},onClick:Q=>{Q.stopPropagation(),Q.target?.nodeName?.toUpperCase()==="DIALOG"&&q.current?.close()},onDoubleClick:cn,onPointerDown:cn,onClose:Q=>{Q.stopPropagation(),G()},children:y.jsx(S0,{forwardProps:!0,removeScrollBar:!1,children:y.jsxs(cl.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:T,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":b?.color??x.color,className:sYe,initial:{top:j,left:M,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:O,height:U},children:[y.jsxs("div",{className:cYe,onPointerDown:Q=>T.start(Q),children:[y.jsxs(xn,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[y.jsxs(xn,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[J,y.jsxs("div",{children:[y.jsx(wt,{component:"div",className:uYe,children:x.title}),F&&y.jsx(wt,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:F})]})]}),y.jsx(Kd,{size:"lg",onClick:Q=>{Q.stopPropagation(),G()}})]}),y.jsxs(xn,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[y.jsxs("div",{children:[y.jsx(cee,{children:"kind"}),y.jsx(Xs,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:Q=>{Q.stopPropagation(),f.openSearch(`kind:${x.kind}`)},children:x.kind})]}),y.jsxs("div",{style:{flex:1},children:[y.jsx(cee,{children:"tags"}),y.jsxs(Mf,{gap:4,flex:1,mt:6,wrap:"wrap",children:[x.tags.map(Q=>y.jsx(C2,{tag:Q,cursor:"pointer",onClick:z=>{z.stopPropagation(),f.openSearch(`#${Q}`)}},Q)),x.tags.length===0&&y.jsx(Xs,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),y.jsxs(Tw,{style:{alignSelf:"flex-start"},children:[_&&y.jsx(or,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:y.jsx(aee,{stroke:1.6,style:{width:"65%"}})}),y.jsx(HWe,{feature:"Vscode",children:y.jsx(see,{label:"Open source",children:y.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),f.openSource({element:x.id})},children:y.jsx(fm,{stroke:1.8,style:{width:"62%"}})})})}),C&&y.jsx(see,{label:"Open default view",children:y.jsx(or,{size:"lg",variant:"default",radius:"sm",onClick:Q=>{Q.stopPropagation(),f.navigateTo(C.id,r??void 0)},children:y.jsx(gi,{style:{width:"70%"}})})})]})]})]}),y.jsxs(Jd,{value:d,onChange:Q=>p(Q),variant:"none",classNames:{root:fYe,list:mYe,tab:gYe,panel:yYe},children:[y.jsx(V0,{children:VGe.map(Q=>y.jsx(Bf,{value:Q,children:Q},Q))}),y.jsx(Zs,{value:"Properties",children:y.jsx(ol,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:y.jsxs(Se,{className:bYe,pt:"xs",children:[x.hasSummary&&y.jsxs(y.Fragment,{children:[y.jsx($y,{children:"summary"}),y.jsx(mp,{value:x.summary})]}),y.jsxs(y.Fragment,{children:[y.jsx($y,{children:"description"}),y.jsx(mp,{value:x.description,emptyText:"no description"})]}),x.technology&&y.jsx(WGe,{title:"technology",children:x.technology}),x.links.length>0&&y.jsxs(y.Fragment,{children:[y.jsx($y,{children:"links"}),y.jsx(xn,{gap:"xs",flexWrap:"wrap",children:x.links.map((Q,z)=>y.jsx(BC,{value:Q},z))})]}),x.$element.metadata&&y.jsx(GGe,{value:x.$element.metadata})]})})}),y.jsx(Zs,{value:"Relationships",children:y.jsx(hp,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&d==="Relationships"&&y.jsx(BGe,{element:x,node:b??null})})}),y.jsx(Zs,{value:"Views",children:y.jsx(ol,{scrollbars:"y",type:"auto",children:y.jsxs(ra,{gap:"lg",children:[w.length>0&&y.jsxs(Se,{children:[y.jsx(lee,{label:"views of the element (scoped)"}),y.jsx(ra,{gap:"sm",children:w.map(Q=>y.jsx(uee,{view:Q,onNavigateTo:z=>f.navigateTo(z,r??void 0)},Q.id))})]}),k.length>0&&y.jsxs(Se,{children:[y.jsx(lee,{label:"views including this element"}),y.jsx(ra,{gap:"sm",children:k.map(Q=>y.jsx(uee,{view:Q,onNavigateTo:z=>f.navigateTo(z,r??void 0)},Q.id))})]})]})})}),y.jsx(Zs,{value:"Structure",children:y.jsx(ol,{scrollbars:"y",type:"auto",children:y.jsx(qGe,{element:x})})}),y.jsx(Zs,{value:"Deployments",children:y.jsx(ol,{scrollbars:"y",type:"auto",children:y.jsx(PYe,{elementFqn:x.id})})})]}),y.jsx(cl.div,{className:xYe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:I,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const uee=({view:e,onNavigateTo:r})=>y.jsx(Pr,{className:pYe,onClick:n=>r(e.id,n),children:y.jsxs(qr,{gap:6,align:"start",wrap:"nowrap",children:[y.jsx(ci,{size:"sm",variant:"transparent",children:e._type==="deployment"?y.jsx(qT,{stroke:1.8}):y.jsx(gi,{stroke:1.8})}),y.jsx(Se,{children:y.jsx(wt,{component:"div",className:hYe,lineClamp:1,children:e.title||"untitled"})})]})});function WGe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return y.jsxs(y.Fragment,{children:[y.jsx($y,{children:e}),y.jsx(wt,{component:"div",...rU(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function GGe({value:e}){return y.jsxs(y.Fragment,{children:[y.jsx($y,{children:"metadata"}),y.jsx(Se,{className:ye({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[4px 4px]",alignItems:"baseline",justifyItems:"stretch",paddingRight:"xxs"}),children:jE(e).map(([r,n])=>y.jsxs("div",{style:{display:"contents"},className:"group",children:[y.jsxs("div",{className:ye({fontSize:"sm",fontWeight:500,justifySelf:"end",whiteSpace:"nowrap"}),children:[r,":"]}),y.jsx("div",{className:ye({}),children:y.jsx(ol.Autosize,{type:"auto",mah:200,classNames:{root:ye({transitionProperty:"all",transitionDuration:"fast",transitionTimingFunction:"inOut",rounded:"sm",color:"mantine.colors.gray[8]",_dark:{color:"mantine.colors.dark[1]"},_groupHover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover"}}),viewport:ye({overscrollBehavior:"none"})},children:y.jsx("div",{className:ye({fontSize:"sm",padding:"xxs",whiteSpace:"pre",fontFamily:"mono",userSelect:"all"}),children:n})})})]},r))})]})}function XGe({actorRef:e,onClose:r}){const n=wn(e,it(o=>({viewId:o.context.currentView.id,fromNode:o.context.initiatedFrom.node,rectFromNode:o.context.initiatedFrom.clientRect,fqn:o.context.subject})),Gn);return y.jsx(SC.Provider,{value:e,children:y.jsx(YGe,{onClose:r,...n})})}const q2="--_blur",U2="--_opacity",KGe="--_level",My=E.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]=E.useState(c===0),g=LU(p),b=E.useRef(null),x=E.useRef(!1),w=ZZ()!==!0,k=E.useRef(e);k.current=e;const C=V3(()=>{x.current||(x.current=!0,k.current())},[],50);E.useLayoutEffect(()=>{b.current?.open||b.current?.showModal()},[]),W3(()=>{f(!0)},c>0?c:void 0);const _=AVe({fullscreen:i,withBackdrop:l});let T=o>0?"50%":"60%";return s?.opacity!==void 0&&(T=`${s.opacity*100}%`),y.jsx(cl.dialog,{ref:Nr(b,g,d),className:Je(n?.dialog,r,_,i&&S0.classNames.fullWidth),layout:!0,style:{[KGe]:o},...w?{initial:{[q2]:"0px",[U2]:"0%",scale:.95,originY:0,translateY:-20,opacity:0},animate:{[q2]:o>0?"4px":"8px",[U2]:T,scale:1,opacity:1,translateY:0,transition:{delay:.075}},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1},[q2]:"0px",[U2]:"0%"}}:{initial:{[q2]:"8px",[U2]:T}},onClick:R=>{if(R.stopPropagation(),R.target?.nodeName?.toUpperCase()==="DIALOG"){b.current?.close();return}},onCancel:R=>{R.preventDefault(),R.stopPropagation(),C()},onDoubleClick:cn,onPointerDown:cn,onClose:R=>{R.stopPropagation(),C()},...u,children:y.jsx(S0,{forwardProps:!0,children:y.jsx("div",{className:Je(n?.body,"likec4-overlay-body"),children:p&&y.jsx(y.Fragment,{children:a})})})})});My.displayName="Overlay";const V2=(e,r)=>e.size>2&&r.size!==e.size?new Set(Vc([...z3(e).flatten(),...r])):e.size>1?new Set(Vc([...e])):e;function ZGe(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||!To(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:V2(n,i.sources),targets:V2(a,i.targets),relationships:o}}function QGe({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]=Z_e.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(qn(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(qn(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:V2(n,i.sources),targets:V2(a,i.targets),relationships:o}}const dee=E.createContext(null);function UT(){return mt(E.useContext(dee),"No RelationshipDetailsActorContext")}function pee(e,r=Gn){const n=it(e),o=UT();return wn(o,n,r)}function VT(){const e=UT();return E.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 gl={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function JGe(){const e=new I2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...gl.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...gl.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const YT="-port";function hee(e,r,n){const o=new so(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=z3(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,u=l?`${c}${YT}`:c;o.set(s,{id:c,portId:u}),n.setNode(c,{column:e,element:i,isCompound:l,portId:u,inPorts:[],outPorts:[],width:gl.nodeWidth,height:gl.nodeHeight}),l&&(n.setNode(u,{element:i,portId:u,isCompound:l,inPorts:[],outPorts:[],width:gl.nodeWidth-gl.dagre.ranksep,height:gl.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 eXe(e){return I2.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 tXe(e,r){const n=JGe(),o=hee("sources",e.sources,n),a=hee("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,{...gl.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,{...gl.edgeLabel,width:s>10?800:400});const c=eXe(n),u=yn(l,df(k=>k.id===k.portId),E0(k=>[k.id,c(k.id)]));function d(k){return u[k]??=yn(n.children(k)??[],df(C=>!C.endsWith(YT)),Ro(C=>d(C)),uU(C=>{nt(C.length>0,`Node ${k} has no nested nodes`)}),hf((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-gl.compound.paddingTop,_=_+gl.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,_)=>yn(_,Ro((T,R)=>({port:k+"_"+C+R,topY:d(T).position.y})),Bx(Ca("topY")),Ro(Ca("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),M=(n.children(k)??[]).filter(U=>!U.endsWith(YT));b=Math.min(b,A.x),x=Math.min(x,A.y);const j=r?X1(C.scopedViews(),U=>U.id!==r.id)?.id??null:null,L=r?.findNodeWithElement(C.id),Y=r&&!L?X1(C.ancestors(),U=>!!r.findNodeWithElement(U.id))?.id:null,O=L??(Y&&r?.findNodeWithElement(Y));return U1({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:O?.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:Ud({...(L??O)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:j,...M.length>0&&{depth:f(k)},children:M,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:M}=Lx(i,U=>U.name===T),j=N.title??"untitled",L=N.navigateTo?.id??null,Y=N.description??null,O=N.technology??null;return k.push({id:R,source:A,sourceHandle:$,target:D,targetHandle:M,label:j,color:N.color,...L&&{navigateTo:L},...Y&&{description:Y},...O&&{technology:O},points:_.points.map(U=>[U.x,U.y]),line:N.line,relationId:N.id,parent:null}),k},[])}}const WT=ye.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"}}),fee=ye({paddingLeft:"1",gridColumn:1},WT),rXe=ye({gridColumn:2},WT),mee=ye({gridColumn:3,paddingRight:"1"},WT),gee="likec4-edge-label",nXe=Je(gee,ye({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"}})),oXe=ye({display:"contents",[`&:last-child .${gee}`]:{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"}}),aXe=ye({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});ye({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const iXe=ye({maxHeight:["70vh","calc(100cqh - 70px)"]}),lXe=({edge:e,view:r})=>{const n=VT(),o=E.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(mr,{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(fu,{children:y.jsxs(Zn,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:y.jsx(IT,{size:16}),children:[y.jsx(Se,{className:fee,maw:160,p:0,mod:{"likec4-color":a.color},children:y.jsx(wt,{component:"span",truncate:!0,children:a.title})}),y.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(ym,{style:{width:"80%"}})}),y.jsx(Se,{className:mee,maw:160,p:0,mod:{"likec4-color":i.color},children:y.jsx(wt,{component:"span",truncate:!0,children:i.title})})]})}),y.jsx(Gs,{p:0,miw:250,maw:400,children:y.jsx(ta,{className:iXe,scrollbars:"y",type:"never",viewportRef:o,children:y.jsx(Se,{className:aXe,p:"xs",maw:400,children:l.map(s=>y.jsxs("div",{className:oXe,"data-selected":s.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(s.id)},children:[y.jsx(Se,{className:fee,mod:{"edge-id":s.id,"likec4-color":s.source.color},children:y.jsx(wt,{component:"span",truncate:!0,children:s.source.title})}),y.jsx(Se,{className:rXe,children:y.jsx(ci,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(ym,{style:{width:"80%"}})})}),y.jsx(Se,{className:mee,mod:{"likec4-color":s.target.color},children:y.jsx(wt,{component:"span",truncate:!0,children:s.target.title})}),y.jsx(Se,{className:nXe,children:y.jsx(wt,{component:"span",truncate:!0,children:s.label||"untitled"})})]},s.id))})})})]})},sXe=LT(e=>{const{enableNavigateTo:r}=wr(),{data:{navigateTo:n}}=e,[o,a,i]=kx(e),l=Wt();return y.jsxs(Ry,{...e,children:[y.jsx(Ay,{edgeProps:e,svgPath:o}),y.jsx(j2,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:y.jsx(Ty,{edgeProps:e,children:r&&n&&y.jsx(B2,{...e,onClick:s=>{s.stopPropagation(),l.navigateTo(n)}})})})]})}),cXe=e=>{const{enableNavigateTo:r,enableVscode:n}=wr(),o=Wt(),a=F2(),i=[],{navigateTo:l,fqn:s}=e.data;return l&&r&&a!==l&&i.push({key:"navigate",icon:y.jsx(gi,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(l)}}),s&&i.push({key:"relationships",icon:y.jsx(Ny,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(s)}}),s&&n&&i.push({key:"goToSource",icon:y.jsx(fm,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:s})}}),y.jsx(H2,{buttons:i,...e})};function uXe(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 yee=Symbol.for("isMemoized");function ic(e){if(e.hasOwnProperty(yee))return e;const r=E.memo(e,uXe);return r.displayName="Node",Object.defineProperty(r,yee,{enumerable:!1,writable:!1,value:!0}),r}const bee=e=>{const r=Wt();return y.jsx(FT,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},dXe=ic(e=>{const{enableElementTags:r}=wr();return y.jsxs(mm,{nodeProps:e,children:[y.jsx(gm,{...e}),y.jsx(ml,{...e}),r&&y.jsx(Ey,{...e}),y.jsx(bee,{...e}),y.jsx(cXe,{...e}),y.jsx(hXe,{...e})]})}),pXe=ic(e=>y.jsxs(Dy,{nodeProps:e,children:[y.jsx(bee,{...e}),y.jsx(Py,{...e}),y.jsx(fXe,{...e})]})),hXe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(uo,{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(uo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),fXe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(uo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(uo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),mXe={element:dXe,compound:pXe},gXe={relationship:sXe};function yXe({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),y.jsx(dee.Provider,{value:e,children:y.jsx($x,{...r.current,children:y.jsx(dm,{id:e.sessionId,inherit:!1,children:y.jsxs(Pa,{children:[y.jsx(wXe,{},"xyflow"),y.jsx(vXe,{},"sync")]})})})})}const bXe=e=>({...e.context.subject,viewId:e.context.viewId}),vXe=E.memo(()=>{const e=UT(),r=wn(e,bXe,ut),n=Ho(),o=n.findView(r.viewId)??null,a=E.useMemo(()=>{let s;if("edgeId"in r&&Sa(r.edgeId)){nt(o,`view ${r.viewId} not found`);const c=mt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);s=ZGe([c.id],o)}else if(r.source&&r.target)s=QGe({source:n.element(r.source),target:n.element(r.target)});else return null;return tXe(s,o)},[r,o,n]),i=fr(),l=uf();return E.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]),E.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),xXe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),wXe=E.memo(()=>{const e=VT(),{initialized:r,nodes:n,edges:o}=pee(xXe,ut);return y.jsxs(qC,{id:e.rootElementId,nodes:n,edges:o,className:Je(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:mXe,edgeTypes:gXe,onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,fitView:!1,pannable:!0,zoomable:!0,children:[y.jsx(_Xe,{}),y.jsx(ou,{position:"top-right",children:y.jsx(or,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:y.jsx(Hf,{})})})]})}),kXe=({context:e})=>({subject:e.subject,viewId:e.viewId}),_Xe=E.memo(()=>{const{subject:e,viewId:r}=pee(kXe,ut),n=Ho().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&Sa(e.edgeId)?o.find(i=>i.id===e.edgeId):Lx(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||Lx(o,i=>(i.source.element?.id===e.source||qn(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||qn(i.target.element?.id??"__",e.target??"__")));return a?y.jsx(EXe,{edge:a.$edge,view:n.$view}):null}),EXe=({edge:e,view:r})=>{const n=VT(),o=e.id,[a,i,{history:l,current:s}]=YU(e.id);E.useEffect(()=>{a!==o&&i.set(o)},[o]),E.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=s>0,u=s+1<l.length;return y.jsx(ou,{position:"top-left",children:y.jsx(qr,{gap:4,wrap:"nowrap",children:y.jsxs(Pa,{mode:"popLayout",children:[c&&y.jsx(cl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(or,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.back()},children:y.jsx(nee,{})})},"back"),u&&y.jsx(cl.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(or,{variant:"default",color:"gray",onClick:d=>{d.stopPropagation(),i.forward()},children:y.jsx(pp,{})})},"forward"),y.jsx(qr,{gap:"xs",wrap:"nowrap",ml:"sm",children:y.jsx(lXe,{edge:e,view:r})})]})})})},SXe=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:Xa(r)}}).filter(tU),CXe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function TXe({overlaysActorRef:e}){const r=OC(c=>c.domNode),n=E.useMemo(()=>r?.querySelector(".react-flow__renderer")??null,[r]),o=wn(e,SXe,CXe),a=ZZ()??!1,i=o.some(c=>c.type==="elementDetails");E.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(My,{overlayLevel:u,onClose:()=>l(c.actorRef),children:y.jsx(oee,{actorRef:c.actorRef})},c.actorRef.sessionId);case"relationshipDetails":return y.jsx(My,{overlayLevel:u,onClose:()=>l(c.actorRef),children:y.jsx(yXe,{actorRef:c.actorRef})},c.actorRef.sessionId);case"elementDetails":return y.jsx(XGe,{actorRef:c.actorRef,onClose:()=>l(c.actorRef)},c.actorRef.sessionId);default:Xa(c)}});return y.jsx(hp.Overlays,{children:y.jsx(B7,{FallbackComponent:j7,onReset:()=>e.send({type:"close.all"}),children:y.jsx(dm,{children:y.jsx(Pa,{children:s})})})})}const[RXe,Su]=ri("SearchActorContext"),AXe=e=>e.context.searchValue;function NXe(){const e=Su(),r=wn(e,AXe),n=E.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const DXe=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function GT(){const e=Su();return E.useDeferredValue(wn(e,DXe))}function PXe(){const e=Su();return E.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const $Xe=e=>e.context.pickViewFor;function MXe(){const e=Su();return wn(e,$Xe)}const XT=ye.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),Y2=".mantine-Tree-node:focus > .mantine-Tree-label &",OXe=ye.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:{...XT,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:XT,[Y2]:XT,_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]"}}}),W2="likec4-focusable",G2={ref:"var(--likec4-icon-size, 24px)"},IXe=ye.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[Y2]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${G2.ref}`,height:G2.ref,width:G2.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":G2.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),LXe=ye.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"}},[Y2]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),vee=ye.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[Y2]:{color:"mantine.colors.primary[0]"}}),zXe=ye.raw(vee,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),BXe=ye({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"}),xee=Z8e({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:OXe,icon:IXe,title:LXe,description:zXe,descriptionColor:vee}}),KT="@container likec4-tree (max-width: 450px)",jXe=ye({outline:"none",marginBottom:"2"}),FXe=ye(oG.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),HXe=ye({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),qXe=ye({marginTop:"2"}),UXe=ye({color:"mantine.colors.dimmed"}),VXe=ye({[KT]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),YXe=ye({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"}}),WXe=ye({"--likec4-icon-size":"24px",[KT]:{"--likec4-icon-size":"18px"}}),GXe=ye({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[KT]:{display:"none"}});function bi(e){e.stopPropagation(),e.preventDefault()}function wee(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function Oy(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 X2(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] .${W2}`)?.focus()}function kee(e,r,n=`.${W2}`){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 XXe="likec4-view-btn",KXe=Je(ye({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),XXe);ye({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const _ee=()=>y.jsx(Ur,{className:BXe,children:"Nothing found"}),ZXe=E.memo(()=>{const e=E.useRef(null);let r=[...Ho().views()],n=GT();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(ra,{ref:e,renderRoot:o=>y.jsx(Qr,{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=kee(e.current,"elements",".likec4-element-button");let l=i.length>1?i.find((s,c,u)=>wee(s)>a||c===u.length-1):null;l??=pf(i),l&&(o.stopPropagation(),l.focus());return}},children:[r.length===0&&y.jsx(_ee,{}),r.length>0&&y.jsx(_w,{children:y.jsx(Pr,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),Oy(e.current)}})}),r.map((o,a)=>y.jsx(Qr,{layoutId:`@view${o.id}`,children:y.jsx(ZT,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),K2=xee();function ZT({className:e,view:r,loop:n=!1,search:o,...a}){const i=Su(),l=Wt(),s=F2(),c=r.id===s,u=()=>{i.send({type:"close"}),setTimeout(()=>{l.navigateTo(r.id)},100)};return y.jsxs(Pr,{...a,className:Je(K2.root,"group",W2,KXe,e),"data-likec4-view":r.id,...c&&{"data-disabled":!0},onClick:d=>{d.stopPropagation(),u()},onKeyDown:T0({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(ci,{variant:"transparent",className:K2.icon,children:r.isDeploymentView()?y.jsx(qT,{stroke:1.8}):y.jsx(gi,{stroke:1.8})}),y.jsxs(Ur,{style:{flexGrow:1},children:[y.jsxs(qr,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Ks,{component:"div",highlight:o,className:K2.title,children:r.title||"untitled"}),c&&y.jsx(Xs,{size:"xs",fz:9,radius:"sm",children:"current"})]}),y.jsx(Ks,{highlight:r.description.nonEmpty?o:"",component:"div",className:K2.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const vm=xee(),QXe=E.memo(()=>{const e=Ho(),r=GT(),n=E.useMemo(()=>{const a=r.split(".");let i;iu(a)||a[0]==="kind:"?i=e.elements():i=Nd(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}=yn([...i],Vc,hf((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=>qn(g.value,p.value));return f?(f.children.push(p),f.children.length>1&&f.children.sort(Cy)):u.roots.push(p),u.all.push(p),u},{all:[],roots:[]}));return{all:s,byid:l,roots:c.sort(Cy)}},[e,r]),o=Eee();return n.all.length===0?y.jsx(_ee,{}):y.jsx(eKe,{data:n,handleClick:o})}),JXe=()=>{};function eKe({data:{all:e,byid:r,roots:n},handleClick:o}){const a=Y0({multiple:!1});a.setHoveredNode=JXe,E.useEffect(()=>{a.collapseAllNodes();for(const l of e)l.children.length>0&&a.expand(l.value)},[e]);const i=it(l=>{const s=l.target,c=s.getAttribute("data-value"),u=!!c&&r[c];if(u){if(l.key==="ArrowUp"){c===n[0]?.value&&(bi(l),Oy(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=kee(s,"views");let f=p.length>1?p.find((g,b,x)=>wee(g)>d||b===x.length-1):null;f??=pf(p),f&&(bi(l),f.focus());return}if(l.key===" "||l.key==="Enter"){bi(l),o(u.element);return}}});return y.jsx(jf,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:FXe,node:Je(W2,jXe),label:HXe,subtree:qXe},onKeyDownCapture:i,renderNode:tKe})}function tKe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,l=pEe({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:Je(vm.icon,WXe)}),s=[...a.views()],c=Eee(),u=`@tree.${e.value}`;return y.jsxs(Qr,{layoutId:u,...r,children:[y.jsx(or,{variant:"transparent",size:16,tabIndex:-1,className:Je(UXe),style:{visibility:n?"visible":"hidden"},children:y.jsx(pp,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),y.jsxs(Pr,{component:fl,layout:!0,tabIndex:-1,"data-value":a.id,className:Je(vm.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(qr,{gap:"xs",wrap:"nowrap",align:"center",className:VXe,children:[y.jsx(Ks,{component:"div",highlight:i,className:vm.title,children:e.label}),y.jsx(fo,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:y.jsx(Ks,{component:"div",highlight:i,className:Je(YXe,vm.descriptionColor),children:g1(a.id)})})]}),y.jsx(Ks,{component:"div",highlight:i,className:vm.description,lineClamp:1,children:a.summary.text||"No description"})]}),y.jsx(wt,{component:"div",className:Je(GXe,vm.descriptionColor),fz:"xs",children:s.length===0?"No views":y.jsxs(y.Fragment,{children:[s.length," view",s.length>1?"s":""]})})]})]})}function Eee(){const e=Wt(),r=Su();return it(n=>{const o=[...n.views()];if(o.length===0)return;const a=zx(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 rKe=ye({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"}}}),nKe=ye({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)]"}}),oKe=ye({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),See=ye({marginTop:"2","& + &":{marginTop:"[32px]"}});ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function aKe({elementFqn:e}){const r=Su(),n=Ho().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 xf("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(Qr,{className:nKe,onClick:l=>{l.stopPropagation(),i()}},"pickview-backdrop"),y.jsx(Cw,{children:y.jsxs(Qr,{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:oKe,"data-likec4-search-views":!0,children:[y.jsxs(qr,{px:"sm",py:"md",justify:"space-between",children:[y.jsx(ep,{order:2,lh:1,children:"Select view"}),y.jsx(or,{size:"md",variant:"default",onClick:l=>{l.stopPropagation(),i()},children:y.jsx(Hf,{})})]}),y.jsxs(ta,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&y.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[y.jsx(ep,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((l,s)=>y.jsx(ZT,{view:l,search:"",loop:!0,mod:{autofocus:s===0}},l.id))]}),a.length>0&&y.jsxs(ra,{gap:"sm",px:"sm",className:See,children:[y.jsx(ep,{order:6,c:"dimmed",children:"views including this element"}),a.map((l,s)=>y.jsx(ZT,{view:l,search:"",loop:!0,mod:{autofocus:s===0&&o.length===0}},l.id))]})]})]},"pickview")})]})}function iKe(){const e=E.useRef(null);let r=Ho().tagsSortedByUsage,n=PXe(),o=GT(),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(xn,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[y.jsx(xn,{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(C2,{tag:l,className:ye({userSelect:"none",cursor:"pointer"}),onClick:s=>{s.stopPropagation(),n(`#${l}`),setTimeout(()=>{X2(e.current)},350)}},l))}),i&&y.jsx(Zn,{size:"compact-xs",variant:"light",onClick:l=>{l.stopPropagation(),n(""),Oy(e.current)},rightSection:y.jsx(Hf,{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 lKe=[["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"}]],QT=yt("outline","search","Search",lKe);function Cee(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const sKe=["#","kind:"],cKe=E.memo(()=>{const e=Su(),r=Ho(),n=E.useRef(null),{ref:o,focused:a}=DPe(),[i,l]=NXe(),s=tW({scrollBehavior:"smooth",loop:!1});xf("keydown",d=>{try{!a&&(d.key==="Backspace"||d.key.startsWith("Arrow")||d.key.match(new RegExp("^\\p{L}$","u")))&&Oy(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(L0,{children:"No tags found"},"empty-tags")]):(u=r.tags.some(f=>f.toLocaleLowerCase()===d),c=p.map(f=>y.jsxs(z0,{value:`#${f}`,children:[y.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),f]},f)));break}case i.startsWith("kind:"):case Cee(i):{const d=i.length>5?i.slice(5).toLocaleLowerCase():"";let p=VE(r.specification.elements);d&&(p=p.filter(f=>f.toLocaleLowerCase().includes(d))),p.length===0?(u=!1,c=[y.jsx(L0,{children:"No kinds found"},"empty-kinds")]):(u=p.some(f=>f.toLocaleLowerCase()===d),c=p.map(f=>y.jsxs(z0,{value:`kind:${f}`,children:[y.jsx(wt,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),f]},f)));break}}return y.jsxs(Kn,{onOptionSubmit:d=>{l(d),s.resetSelectedOption(),sKe.includes(d)||(s.closeDropdown(),setTimeout(()=>{X2(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:s,withinPortal:!1,children:[y.jsx(c7,{children:y.jsx(Na,{ref:Nr(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:rKe},size:"lg",value:i,leftSection:y.jsx(QT,{style:{width:Ae(20)},stroke:2}),rightSection:y.jsx(Na.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(),bi(d);case c.length===1:return s.selectFirstOption()&&s.clickSelectedOption(),bi(d);case Cee(i):return l("kind:"),bi(d)}return}if(d.key==="Backspace"&&s.dropdownOpened){if(i==="kind:")return l(""),s.resetSelectedOption(),bi(d);if(i.startsWith("kind:")&&u)return l("kind:"),s.resetSelectedOption(),bi(d);if(i.startsWith("#")&&u)return l("#"),s.resetSelectedOption(),bi(d)}if(d.key==="Escape"&&s.dropdownOpened&&c.length>0){bi(d),s.closeDropdown();return}if(d.key==="ArrowUp"&&s.dropdownOpened&&i===""&&s.getSelectedOptionIndex()===0){s.closeDropdown(),bi(d);return}if(d.key==="ArrowDown"&&(!s.dropdownOpened||c.length===0||u||i===""&&s.getSelectedOptionIndex()===c.length-1)){s.closeDropdown(),bi(d),X2(n.current);return}}})}),y.jsx(Mw,{hidden:c.length===0,style:{minWidth:300},children:y.jsx(Ow,{children:y.jsx(ta,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),uKe=ye({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),dKe=ye({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]"}),pKe=e=>!e.matches("inactive");function hKe({searchActorRef:e}){const r=wn(e,pKe),n=()=>{e.send({type:"open"})},o=it(()=>{e.send({type:"close"})});return RPe([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),y.jsx(RXe,{value:e,children:y.jsx(hp.Overlays,{children:y.jsx(B7,{FallbackComponent:j7,onReset:o,children:y.jsx(Pa,{children:r&&y.jsx(My,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:uKe,body:dKe},openDelay:0,onClose:o,"data-likec4-search":"true",children:y.jsx(fKe,{searchActorRef:e})})})})})})}const Tee=ye({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),fKe=({searchActorRef:e})=>{const r=E.useRef(null),n=MXe();return W3(()=>{Sa(e.getSnapshot().context.openedWithSearch)&&X2(r.current)},150),y.jsxs(Ur,{ref:r,display:"contents",children:[y.jsx(qr,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),Oy(r.current)},children:y.jsxs(Ff,{flex:1,px:"sm",children:[y.jsx(cKe,{}),y.jsx(iKe,{})]})}),y.jsxs(j0,{children:[y.jsx(Zd,{span:6,children:y.jsx(ep,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),y.jsx(Zd,{span:6,children:y.jsx(ep,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),y.jsxs(j0,{className:ye({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[y.jsx(Zd,{span:6,children:y.jsx(ol,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:y.jsx(Pa,{children:y.jsx(dm,{id:"likec4-search-elements",children:y.jsx(QXe,{})})})})}),y.jsx(Zd,{span:6,children:y.jsx(ol,{type:"scroll",className:Tee,pr:"xs",scrollbars:"y",children:y.jsx(Pa,{children:y.jsx(dm,{id:"likec4-search-views",children:y.jsx(ZXe,{})})})})})]}),n&&y.jsx(aKe,{elementFqn:n})]})};function mKe({children:e}){const r=E.useContext($7);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return y.jsx(O0,{target:r.ref.current??`#${r.id}`,children:e})}const Ree={onChange:null,onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null},JT=VE(Ree),Aee=E.createContext({...E0(JT,e=>[e,null]),handlersRef:{current:Ree}});function gKe({handlers:e,children:r}){const n=Xh(e),o=JT.map(i=>_0(e[i])),a=E.useMemo(()=>({...E0(JT,i=>n.current[i]?[i,(...l)=>n.current[i]?.(...l)]:[i,null]),handlersRef:n}),[n,...o]);return y.jsx(Aee.Provider,{value:a,children:r})}function lc(){return E.useContext(Aee)}const yKe=ec({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":et(({context:e,event:r})=>(qt(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":et(()=>({openTimeout:800})),"decrease open timeout":et(()=>({openTimeout:300})),"reset edgeId":et({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"}}}}}}}),bKe=yKe,Nee=ye({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)"}}),vKe=ye({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function xKe(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 wKe=E.memo(()=>{const e=Ho(),r=nS(bKe),n=Wt(),{viewId:o,selected:a}=Da(xKe),i=wn(r,g=>g.hasTag("opened")?g.context.edgeId:null);il("navigateTo",()=>{r.send({type:"close"})}),il("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),il("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),il("edgeEditingStarted",()=>{r.send({type:"close"})}),il("walkthroughStarted",()=>{r.send({type:"close"})}),E.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const l=E.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=E.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}=Da(g=>{const b=i?oS(g,i):null,x=b?Qf(g,b.source):null,w=b?Qf(g,b.target):null;return{diagramEdge:b,sourceNode:x,targetNode:w}},Gn,[i]);if(!c||!u||!d||iu(c.relations))return null;const[p,f]=yn(c.relations,Ro(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}}),df(Sa),lU(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(mKe,{children:y.jsx(_Ke,{viewId:o,direct:p,nested:f,diagramEdge:c,sourceNode:u,targetNode:d,onMouseEnter:l,onMouseLeave:s})})}),kKe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??null,eR=8,_Ke=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:l,onMouseLeave:s})=>{const c=E.useRef(null),{enableNavigateTo:u,enableVscode:d}=wr(),{onOpenSource:p}=lc(),f=wze(),[g,b]=E.useState(null);E.useLayoutEffect(()=>{b(kKe(r.id,f.current))},[r]),E.useEffect(()=>{const k=g,C=c.current;if(!k||!C)return;let _=!1;const T=mw(k,C,()=>{UV(k,C,{placement:"bottom-start",middleware:[jV(4),lOe({crossAxis:!0,padding:eR,allowedPlacements:["bottom-start","top-start","right-start","right-end","left-end"]}),FV({padding:eR,apply({availableHeight:R,availableWidth:A,elements:D}){_||Object.assign(D.floating.style,{maxWidth:`${Ki(yi(A),{min:200,max:400})}px`,maxHeight:`${Ki(yi(R),{min:0,max:500})}px`})}}),HV({padding:eR*2})]}).then(({x:R,y:A,middlewareData:D})=>{_||(C.style.transform=`translate(${yi(R)}px, ${yi(A)}px)`,C.style.visibility=D.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{_=!0,T()}},[g]);const x=Wt(),w=E.useCallback((k,C)=>y.jsxs(E.Fragment,{children:[C>0&&y.jsx(If,{}),y.jsx(EKe,{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(ta,{ref:c,onMouseEnter:l,onMouseLeave:s,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:180}},className:Je(ye({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:y.jsxs(Ff,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[y.jsx(Zn,{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(xm,{children:"DIRECT RELATIONSHIPS"}),n.map(w)]}),o.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(xm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(w)]})]})})},EKe=E.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},l)=>{const s=Dee(r,"source",n),c=Dee(r,"target",o),u=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,d=r.links;return y.jsxs(Ff,{ref:l,className:lG({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(xn,{gap:"0.5",children:y.jsxs(Qd,{openDelay:200,children:[y.jsx(Z2,{label:s.full,offset:2,position:"top-start",children:y.jsx(wt,{component:"div","data-likec4-color":n.color,className:Nee,children:s.short})}),y.jsx(ym,{stroke:2.5,size:"11px",opacity:.65}),y.jsx(Z2,{label:c.full,offset:2,position:"top-start",children:y.jsx(wt,{component:"div","data-likec4-color":o.color,className:Nee,children:c.short})}),u&&y.jsx(Z2,{label:"Open dynamic view",children:y.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:p=>{p.stopPropagation(),a?.(u)},style:{alignSelf:"flex-end"},role:"button",children:y.jsx(gi,{size:"80%",stroke:2})})}),i&&y.jsx(Z2,{label:"Open source",children:y.jsx(or,{size:"sm",radius:"sm",variant:"default",onClick:p=>{p.stopPropagation(),i()},role:"button",children:y.jsx(fm,{size:"80%",stroke:2})})})]})}),y.jsx(Ur,{className:vKe,children:r.title||"untitled"}),r.kind&&y.jsxs(xn,{gap:"2",children:[y.jsx(xm,{children:"kind"}),y.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.kind})]}),r.technology&&y.jsxs(xn,{gap:"2",children:[y.jsx(xm,{children:"technology"}),y.jsx(wt,{size:"xs",className:ye({userSelect:"all"}),children:r.technology})]}),r.description.nonEmpty&&y.jsxs(y.Fragment,{children:[y.jsx(xm,{children:"description"}),y.jsx(Ur,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:y.jsx(mp,{value:r.description,fontSize:"sm"})})]}),d.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(xm,{children:"links"}),y.jsx(xn,{gap:"1",flexWrap:"wrap",children:d.map(p=>y.jsx(BC,{size:"sm",value:p},p.url))})]})]})}),xm=Qs("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),Z2=fo.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function Dee(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=g1(o)+a.slice(o.length);return{full:a,short:i}}function wm(){const e=kze();return E.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const SKe=ec({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":et({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":et({activatedBy:"click"}),"update selected folder":et(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(qt(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":et({selectedFolder:({context:e})=>e.viewModel.folder.path}),"update inputs":et(({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":et({searchQuery:""}),"update search query":et(({event:e})=>(qt(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":ui(({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})=>!iu(e.searchQuery),"search query is empty":({context:e})=>iu(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",ln({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"}}}}}}}),CKe=SKe,tR=E.createContext(null);tR.displayName="NavigationPanelActorSafeContext";const TKe=tR.Provider,rR=()=>{const e=E.useContext(tR);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function Pee(e,r=Gn){const n=rR();return wn(n,e,r)}function RKe(e,r=Gn){return Pee(n=>e(n.context),r)}function Iy(){const e=rR();return E.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 $ee=fo.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),Mee=()=>y.jsx(ci,{variant:"transparent",size:16,className:ye({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:y.jsx(pp,{})});Iw.withProps({separator:y.jsx(Mee,{}),separatorMargin:4});const gp=E.forwardRef(({variant:e="default",className:r,disabled:n=!1,...o},a)=>y.jsx(or,{size:"md",variant:"transparent",radius:"sm",component:fl,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...o,className:Je(r,RVe({variant:e})),ref:a})),Q2=J1({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"}}}}}),AKe=E.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:ye({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"})]})),NKe=E.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"})})),DKe=()=>{const e=Iy(),{onBurgerMenuClick:r}=lc();return y.jsx(Qr,{layout:"position",children:y.jsxs(Pr,{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",qo({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[y.jsx(AKe,{className:ye({display:{base:"none","@/md":"block"}})}),y.jsx(NKe,{className:ye({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 PKe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],$Ke=yt("outline","arrow-left","ArrowLeft",PKe),MKe=()=>{const e=Wt(),{hasStepBack:r,hasStepForward:n}=Da(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex<o.navigationHistory.history.length-1}));return y.jsxs(Qr,{layout:"position",className:qo({gap:"0.5"}),children:[y.jsx(gp,{disabled:!r,onClick:o=>{o.stopPropagation(),e.navigate("back")},children:y.jsx($Ke,{size:14})}),y.jsx(gp,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:y.jsx(ym,{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 OKe=[["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"}]],IKe=yt("outline","link","Link",OKe),LKe=({context:e})=>{const r=e.viewModel;return{id:r.id,title:r.titleOrUntitled,description:r.description,tags:r.tags,links:r.links}},zKe=e=>{const[r,n]=E.useState(!1),o=Pee(LKe),a=wm();return y.jsxs(mr,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[y.jsx(BKe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&y.jsx(jKe,{data:o,onClose:()=>n(!1)})]})},BKe=({linksCount:e,onOpen:r})=>y.jsx(mr.Target,{children:y.jsxs(Pr,{component:fl,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:Je("group",qo({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(jT,{size:16,stroke:1.8}),e>0&&y.jsxs(xn,{gap:"[1px]",children:[y.jsx(IKe,{size:14,stroke:2}),y.jsx(Ur,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),Oee=Qs("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),jKe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const l=Wt();return il("paneClick",i),il("nodeClick",i),y.jsxs(mr.Dropdown,{className:Je("nowheel nopan nodrag",G0({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(wt,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),y.jsxs(xn,{alignItems:"flex-start",mt:"1",children:[y.jsx(FKe,{label:"id",value:e}),y.jsx(xn,{gap:"xs",flexWrap:"wrap",children:o.map(s=>y.jsx(C2,{tag:s,cursor:"pointer",onClick:c=>{c.stopPropagation(),l.openSearch(`#${s}`)}},s))})]})]}),a.length>0&&y.jsxs("section",{className:qo({alignItems:"baseline"}),children:[y.jsx(Oee,{children:"Links"}),y.jsx(xn,{gap:"xs",flexWrap:"wrap",children:a.map((s,c)=>y.jsx(BC,{value:s},`${c}-${s.url}`))})]}),n.isEmpty&&y.jsx(wt,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&y.jsxs("section",{children:[y.jsx(Oee,{children:"Description"}),y.jsx(mp,{value:n,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})]})},FKe=({label:e,value:r})=>y.jsxs(xn,{gap:"0.5",children:[y.jsx(HKe,{children:e}),y.jsx(Xs,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:ye({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:ye({overflow:"visible"}),section:ye({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),HKe=Qs("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),qKe=()=>{const e=F2(),{enableVscode:r}=wr(),{onOpenSource:n}=lc();return r?y.jsx($ee,{label:"Open View Source",children:y.jsx(gp,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:y.jsx(fm,{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 UKe=[["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"}]],VKe=yt("outline","lock","Lock",UKe);/**
* @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 YKe=[["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"}]],WKe=yt("outline","lock-open-2","LockOpen2",YKe),GKe=e=>({visible:e.features.enableReadOnly!==!0,isReadOnly:e.toggledFeatures.enableReadOnly??e.features.enableReadOnly}),XKe=()=>{const{visible:e,isReadOnly:r}=Da(GKe),n=Wt();return e?y.jsxs(Pr,{component:fl,layout:"position",onClick:o=>{o.stopPropagation(),n.toggleFeature("ReadOnly")},whileTap:{translateY:1},className:Je("group",qo({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(VKe,{size:14,stroke:2}):y.jsx(WKe,{size:14,stroke:2}),r&&y.jsx(Qr,{className:ye({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 KKe=[["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"}]],ZKe=yt("filled","player-play-filled","PlayerPlayFilled",KKe),Iee=E.forwardRef((e,r)=>y.jsx(Zn,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:fl,layoutId:"trigger-dynamic-walkthrough",className:ye({flexShrink:0})}));function QKe(){const e=Wt(),r=Iy();return y.jsx($ee,{label:"Start Dynamic View Walkthrough",children:y.jsx(Iee,{onClick:n=>{n.stopPropagation(),r.closeDropdown(),e.startWalkthrough()},size:"compact-xs",h:26,classNames:{label:ye({display:{base:"none","@/md":"[inherit]"}}),section:ye({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:y.jsx(ZKe,{size:10}),children:"Start"})})}function JKe({value:e,onChange:r}){return y.jsx(Qr,{layout:"position",children:y.jsx(q0,{size:"xs",value:e,component:Qr,onChange:n=>{nt(n==="diagram"||n==="sequence","Invalid dynamic view variant"),r(n)},classNames:{label:ye({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})})}function eZe(){const e=Da(n=>n.dynamicViewVariant),r=Wt();return y.jsxs(y.Fragment,{children:[y.jsx(JKe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}},"dynamic-view-mode-switcher"),y.jsx(QKe,{},"trigger-dynamic-walkthrough")]})}function tZe(){const e=Wt(),r=of();return y.jsxs(Pr,{component:fl,layout:"position",onClick:n=>{n.stopPropagation(),e.openSearch()},whileTap:{scale:.95,translateY:1},className:Je("group",qo({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(QT,{size:14,stroke:2.5}),y.jsx(Ur,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:r?"⌘ + K":"Ctrl + K"})]})}const rZe=({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()}},nZe=()=>{const e=Iy(),{enableSearch:r,enableNavigationButtons:n,enableDynamicViewWalkthrough:o}=wr(),{folders:a,viewTitle:i,isDynamicView:l}=wn(e.actorRef,rZe,ut),s=a.flatMap(({folderPath:u,title:d},p)=>[y.jsx(Pr,{component:fl,className:Je(Q2({dimmed:!0,truncate:!0}),"mantine-active",ye({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(Mee,{},`separator-${p}`)]),c=y.jsx(Pr,{component:fl,className:Je("mantine-active",Q2({truncate:!0}),ye({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(Pa,{propagate:!0,children:[y.jsx(DKe,{},"burger-button"),n&&y.jsx(MKe,{},"nav-buttons"),y.jsxs(Qr,{layout:"position",className:qo({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[s,c]},"breadcrumbs"),y.jsxs(Qr,{layout:"position",className:qo({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[y.jsx(zKe,{onOpen:()=>e.closeDropdown()}),y.jsx(qKe,{}),y.jsx(XKe,{})]},"actions"),o&&l&&y.jsx(eZe,{},"dynamic-view-controls"),r&&y.jsx(tZe,{},"search-control")]})},nR=E.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>y.jsx(S7,{...n,component:"button",classNames:FVe({truncateLabel:r}),className:Je("group","mantine-active",e),ref:o}));nR.displayName="NavigationLink";const oZe=E.createContext(null),aZe=[],iZe=()=>{},lZe={projects:aZe,onProjectChange:iZe};function sZe(){return E.useContext(oZe)??lZe}function cZe(){const e=E.useContext(W0);if(!e)throw new Error("No LikeC4ModelContext found");return e.projectId}/**
* @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:"M6 9l6 6l6 -6",key:"svg-0"}]],dZe=yt("outline","chevron-down","ChevronDown",uZe);function pZe(e){const{projects:r,onProjectChange:n}=sZe(),o=cZe();return r.length<=1?null:y.jsxs(xn,{gap:"0.5",alignItems:"baseline",children:[y.jsx(Ur,{css:{fontWeight:"400",fontSize:"xxs",color:"mantine.colors.dimmed",userSelect:"none"},children:"Project"}),y.jsxs(ho,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[y.jsx(Fw,{children:y.jsx(Zn,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:ye({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:ye({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:y.jsx(dZe,{opacity:.5,size:12,stroke:1.5}),...e,children:o})}),y.jsx(F0,{children:r.map(({id:a,title:i})=>y.jsx(H0,{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 hZe=[["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"}]],fZe=yt("filled","direction-sign-filled","DirectionSignFilled",hZe);/**
* @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 mZe=[["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"}]],gZe=yt("filled","star-filled","StarFilled",mZe);/**
* @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:"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"}]],bZe=yt("filled","folder-filled","FolderFilled",yZe),Lee=T0({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function vZe(){const e=Iy(),r=wn(e.actorRef,a=>a.context.searchQuery);il("paneClick",()=>{e.closeDropdown()}),il("nodeClick",()=>{e.closeDropdown()});const n=MPe(a=>{e.send({type:"searchQuery.change",value:a})},250),o=r.trim().length>=2;return y.jsxs(Gs,{className:Je("nowheel",G0({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(pZe,{}),y.jsx(xn,{gap:"xs",children:y.jsx(NZe,{value:r,onChange:n,"data-likec4-focusable":!0,onKeyDown:Lee})}),y.jsx(ta,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:ye({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:o?y.jsx(wZe,{searchQuery:F3(r).toLowerCase()}):y.jsx(TZe,{})})]})}const xZe=NI(ka);function wZe({searchQuery:e}){const r=Ho(),n=Iy(),o=e.includes(ka),a=yn(r.views(),Nd(l=>o&&l.$view.title?F3(l.$view.title).toLowerCase().includes(e):l.id.toLowerCase().includes(e)||!!l.title?.toLowerCase().includes(e)),z_e(20),K1(),rDe((l,s)=>xZe(l.folder.path,s.folder.path)));if(a.length===0)return y.jsx("div",{children:"no results"});const i=o?e.split(ka):e;return y.jsx(ta,{scrollbars:"xy",offsetScrollbars:!1,className:ye({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:y.jsx(Ff,{gap:"0.5",children:a.map(l=>y.jsx(_Ze,{view:l,highlight:i,onClick:s=>{s.stopPropagation(),n.selectView(l.id)},"data-likec4-focusable":!0,onKeyDown:Lee},l.id))})})}const kZe=qo({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!"}}),zee=ye({_groupFocus:{color:"[inherit!]",transition:"none"}});function _Ze({view:e,highlight:r,...n}){const o=e.folder,a=jee[e.id==="index"?"index":e._type],i=y.jsx(Ks,{component:"div",className:Je(zee,Q2({truncate:!0}),ye({"& > 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",kZe);if(o.isRoot)return y.jsxs(Pr,{...n,className:l,children:[a,i]});const s=o.breadcrumbs.map(c=>y.jsx(Ks,{component:"div",className:Je(ye({_groupHover:{color:"mantine.colors.dimmed"}}),zee,Q2({dimmed:!0,truncate:!0})),maw:170,highlight:FE(r)?r:[],children:c.title},c.path));return s.push(y.jsxs(xn,{gap:"[4px]",children:[a,i]})),y.jsxs(Pr,{...n,className:l,children:[Bee,y.jsx(Iw,{separator:y.jsx(pp,{size:12,stroke:1.5}),separatorMargin:3,children:s})]})}const EZe=y.jsx(pp,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),Bee=y.jsx(bZe,{size:16,className:ye({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),J2=ye({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),jee={index:y.jsx(gZe,{size:16,className:J2}),element:y.jsx(gi,{size:18,stroke:2,className:J2}),deployment:y.jsx(qT,{size:16,stroke:1.5,className:J2}),dynamic:y.jsx(fZe,{size:18,className:J2})},SZe=ta.withProps({scrollbars:"y",className:ye({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function Fee(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 CZe=e=>{const r=e.viewModel.$model,n=[Fee(r.rootViewFolder,e)],o=r.viewFolder(e.selectedFolder);if(!o.isRoot)for(const a of o.breadcrumbs)n.push(Fee(a,e));return n};function TZe(){const e=RKe(CZe,ut);return y.jsx(xn,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&y.jsx(If,{orientation:"vertical"},"divider"+n),y.jsx(RZe,{data:r,isLast:n==e.length-1},r.folderPath)])})}function RZe({data:e,isLast:r}){const n=E.useRef(null),o=rR(),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 yEe(()=>{r&&n.current&&n.current.scrollIntoView({inline:"nearest",behavior:"smooth"})}),y.jsx(Ur,{mb:"1",ref:n,children:y.jsx(SZe,{children:y.jsx(Ff,{gap:"0.5",children:e.items.map((i,l)=>y.jsx(AZe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${l}`))})})})}function AZe({columnItem:e,...r}){switch(e.type){case"folder":return y.jsx(nR,{variant:"light",active:e.selected,label:e.title,leftSection:Bee,rightSection:EZe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return y.jsx(nR,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:jee[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Xa(e)}}function NZe({onKeyDown:e,...r}){const[n,o]=Us({...r,finalValue:""});return y.jsx(Na,{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:ye({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:ye({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:y.jsx(QT,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!r.value||iu(r.value)?null:y.jsx(Zn,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:a=>{a.stopPropagation(),o("")},children:"clear"})})}const DZe=Qs("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function PZe(e){const r=LNe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&Sa(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n<e.xyedges.length-1,hasPrevious:r&&n>0,notes:r?e.xyedges[n]?.data?.notes??Kt.EMPTY:null}}const $Ze=()=>{const{notes:e}=Da(PZe);return!e||e.isEmpty?null:y.jsx(Qs.div,{position:"relative",children:y.jsxs(ta,{className:Je("nowheel nopan nodrag",G0({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(DZe,{children:"Notes"}),y.jsx(mp,{value:e,fontSize:"sm",emptyText:"No description",className:ye({userSelect:"all"})})]})})},e4=fo.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 MZe=[["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"}]],OZe=yt("outline","focus-centered","FocusCentered",MZe),IZe=()=>{const e=Wt();return y.jsx(e4,{label:"Center camera",children:y.jsx(gp,{onClick:()=>e.fitDiagram(),children:y.jsx(OZe,{})})})};ye({gap:"xxs",_empty:{display:"none"}}),ye({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"}}}),ye({shadow:{base:"md",_whenPanning:"none"}}),ye({"& .tabler-icon":{width:"65%",height:"65%"}});const t4=ye({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),LZe=ye({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]"}}),zZe=ye({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),BZe=ye({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 jZe=[["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"}]],FZe=yt("outline","layout-dashboard","LayoutDashboard",jZe),HZe=e=>({viewId:e.view.id,autoLayout:e.view.autoLayout}),qZe=()=>{const{onChange:e}=lc(),r=Wt(),[n,o]=E.useState(null),[a,i]=E.useState({}),{autoLayout:l,viewId:s}=Da(HZe),{ref:c,hovered:u}=a9(),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(mr,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[y.jsx(fu,{children:y.jsx(e4,{label:"Change Auto Layout",children:y.jsx(gp,{children:y.jsx(FZe,{})})})}),y.jsx(Gs,{className:"likec4-top-left-panel",p:8,pt:6,opacity:u?.6:1,children:y.jsxs(Se,{pos:"relative",ref:o,children:[y.jsx(Pw,{target:a[l.direction],parent:n,className:LZe}),y.jsx(Se,{mb:10,children:y.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),y.jsxs(Mf,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[y.jsx(Pr,{className:t4,ref:d("TB"),onClick:p("TB"),children:"Top-Bottom"}),y.jsx(Pr,{className:t4,ref:d("BT"),onClick:p("BT"),children:"Bottom-Top"}),y.jsx(Pr,{className:t4,ref:d("LR"),onClick:p("LR"),children:"Left-Right"}),y.jsx(Pr,{className:t4,ref:d("RL"),onClick:p("RL"),children:"Right-Left"})]}),y.jsx(Se,{my:10,children:y.jsx(wt,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),y.jsx(UZe,{ref:c,isVertical:l.direction==="TB"||l.direction==="BT",nodeSep:l.nodeSep,rankSep:l.rankSep,onChange:f},s)]})})]})},km=400,UZe=E.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=V3(({x:f,y:g})=>{e||([f,g]=[g,f]),o(Math.round(f*km),Math.round(g*km))},[o,e],250,2e3),[l,s]=Us({defaultValue:vPe({x:(r??100)/km,y:(n??120)/km}),onChange:i}),{ref:c}=jU(s);let u=Math.round(l.x*km),d=Math.round(l.y*km);e||([u,d]=[d,u]);const p=Nr(c,a);return y.jsxs(Se,{ref:p,className:zZe,pt:"100%",children:[y.jsx(Se,{className:BZe,style:{left:`${l.x*100}%`,top:`${l.y*100}%`}}),y.jsx(Se,{pos:"absolute",left:2,bottom:2,children:y.jsxs(wt,{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 VZe=[["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"}]],Hee=yt("outline","alert-triangle","AlertTriangle",VZe),YZe=()=>{const e=wm();return Da(r=>r.view.hasLayoutDrift??!1)?y.jsxs(Lf,{position:"right-start",openDelay:200,closeDelay:100,...e,children:[y.jsx(v7,{children:y.jsx(or,{color:"orange",c:"orange",className:ye({bg:"mantine.colors.orange.light"}),children:y.jsx(Hee,{})})}),y.jsx(y7,{p:"0",children:y.jsxs(Uw,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Manual layout issues",children:[y.jsxs(wt,{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(wt,{mt:"xs",size:"sm",lh:"xs",children:["Update view predicates or remove ",y.jsx(Bw,{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 WZe=[["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"}]],GZe=yt("outline","layout-collage","LayoutCollage",WZe);/**
* @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 XZe=[["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"}]],qee=yt("outline","layout-board-split","LayoutBoardSplit",XZe);/**
* @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 KZe=[["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"}]],ZZe=yt("outline","layout-align-left","LayoutAlignLeft",KZe);/**
* @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 QZe=[["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"}]],JZe=yt("outline","layout-align-center","LayoutAlignCenter",QZe);/**
* @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:"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"}]],tQe=yt("outline","layout-align-right","LayoutAlignRight",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 rQe=[["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"}]],nQe=yt("outline","layout-align-top","LayoutAlignTop",rQe);/**
* @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"}]],aQe=yt("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 iQe=[["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=yt("outline","layout-align-bottom","LayoutAlignBottom",iQe);/**
* @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 sQe=[["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"}]],cQe=yt("outline","route-off","RouteOff",sQe),sc=({label:e,icon:r,onClick:n})=>y.jsx(e4,{label:e,withinPortal:!1,position:"top",children:y.jsx(gp,{classNames:{root:"action-icon",icon:ye({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),uQe=e=>{const r=Wt(),n=wm();return y.jsxs(mr,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...n,...e,children:[y.jsx(fu,{children:y.jsx(e4,{label:"Manual layouting tools",children:y.jsx(gp,{children:y.jsx(GZe,{})})})}),y.jsx(Gs,{className:qo({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:y.jsxs(Qd,{children:[y.jsx(sc,{label:"Align in columns",icon:y.jsx(qee,{}),onClick:o=>{o.stopPropagation(),r.align("Column")}}),y.jsx(sc,{label:"Align left",icon:y.jsx(ZZe,{}),onClick:o=>{o.stopPropagation(),r.align("Left")}}),y.jsx(sc,{label:"Align center",icon:y.jsx(JZe,{}),onClick:o=>{o.stopPropagation(),r.align("Center")}}),y.jsx(sc,{label:"Align right",icon:y.jsx(tQe,{}),onClick:o=>{o.stopPropagation(),r.align("Right")}}),y.jsx(sc,{label:"Align in rows",icon:y.jsx(qee,{style:{transform:"rotate(90deg)"}}),onClick:o=>{o.stopPropagation(),r.align("Row")}}),y.jsx(sc,{label:"Align top",icon:y.jsx(nQe,{}),onClick:o=>{o.stopPropagation(),r.align("Top")}}),y.jsx(sc,{label:"Align middle",icon:y.jsx(aQe,{}),onClick:o=>{o.stopPropagation(),r.align("Middle")}}),y.jsx(sc,{label:"Align bottom",icon:y.jsx(lQe,{}),onClick:o=>{o.stopPropagation(),r.align("Bottom")}}),y.jsx(sc,{label:"Reset all control points",icon:y.jsx(cQe,{}),onClick:o=>{o.stopPropagation(),r.resetEdgeControlPoints()}})]})})]})};function dQe(){const{enableReadOnly:e}=wr();return y.jsx(Pa,{children:!e&&y.jsx(Qr,{layout:"position",className:G0({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(Qd,{openDelay:600,closeDelay:120,children:[y.jsx(qZe,{}),y.jsx(uQe,{}),y.jsx(YZe,{}),y.jsx(IZe,{})]})})})}/**
* @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 pQe=[["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"}]],hQe=yt("filled","player-stop-filled","PlayerStopFilled",pQe);/**
* @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 fQe=[["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"}]],mQe=yt("filled","player-skip-back-filled","PlayerSkipBackFilled",fQe);/**
* @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 gQe=[["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"}]],yQe=yt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",gQe),Uee=Zn.withProps({component:fl,variant:"light",size:"xs",fw:"500"}),bQe=()=>{const{portalProps:e}=wm();return y.jsx(O0,{...e,children:y.jsx(Ur,{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 vQe(){const e=Wt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=Da(l=>{const s=l.xyedges.findIndex(c=>c.id===l.activeWalkthrough?.stepId);return{isParallel:Sa(l.activeWalkthrough?.parallelPrefix),hasNext:s<l.xyedges.length-1,hasPrevious:s>0,currentStep:s+1,totalSteps:l.xyedges.length}});return y.jsxs(Pa,{propagate:!0,children:[y.jsx(Iee,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:l=>{l.stopPropagation(),e.stopWalkthrough()},rightSection:y.jsx(hQe,{size:10}),children:"Stop"},"stop-walkthrough"),y.jsx(Uee,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:y.jsx(mQe,{size:10}),children:"Previous"},"prev"),y.jsx(Xs,{component:Qr,size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:y.jsx(Qr,{className:ye({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:ye({alignItems:"baseline"}),children:y.jsxs(qWe,{children:[a," / ",i]})},"step-badge"),y.jsx(Uee,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:y.jsx(yQe,{size:10}),children:"Next"},"next"),r&&y.jsx(bQe,{},"parallel-frame")]})}const Vee=E.memo(()=>{const e=Jf(),r=AQ(),n=nS(CKe,{input:{viewModel:r}});return E.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(Ff,{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(TKe,{value:n,children:[y.jsx(xQe,{actor:n}),y.jsx(dQe,{}),y.jsx($Ze,{})]})})});Vee.displayName="NavigationPanel";const xQe=({actor:e})=>{const r=wn(e,o=>o.hasTag("active")),n=wm();return y.jsxs(mr,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:!0,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[y.jsx(wQe,{actor:e}),r&&y.jsx(vZe,{})]})},wQe=({actor:e})=>{const r=Da(n=>n.activeWalkthrough!==null);return y.jsx(dm,{children:y.jsx(fu,{children:y.jsx(Qr,{layout:!0,className:qo({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",paddingRight:"md",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:y.jsx(Pa,{mode:"popLayout",children:r?y.jsx(vQe,{}):y.jsx(nZe,{})})})})})},oR=ye({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content"}),kQe=ye({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),_Qe=ye({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"}}),EQe=ye({padding:"xxs"}),SQe=ye({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"}}});ye({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 CQe=ye({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 TQe=[["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"}]],RQe=yt("outline","help-circle","HelpCircle",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:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],NQe=yt("outline","arrow-down-right","ArrowDownRight",AQe),DQe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=E.useState(null),l=Wt(),s=300,c=200;return y.jsx(zw,{shadow:"none",px:"xs",py:"sm",className:Je(SQe),"data-likec4-color":n,onMouseEnter:()=>{i(null),l.highlightNotation(e)},onMouseLeave:()=>{i(null),l.unhighlightNotation()},children:y.jsxs(qr,{gap:"sm",align:"stretch",wrap:"nowrap",children:[y.jsx(Se,{flex:"0 0 70px",style:{position:"relative",width:70,height:lNe(70*(c/s),0)},children:y.jsx(gm,{data:{shape:o,width:s,height:c}})}),y.jsxs(ra,{gap:4,flex:1,children:[y.jsx(qr,{gap:4,flex:"0 0 auto",children:e.kinds.map(u=>y.jsx(Xs,{className:Je(CQe),onMouseEnter:()=>{i(u),l.highlightNotation(e,u)},onMouseLeave:()=>{i(null),l.highlightNotation(e)},opacity:tU(a)&&a!==u?.25:1,children:u},u))}),y.jsx(wt,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},PQe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[],isVisible:!0}),$Qe=E.memo(()=>{const e=OC(c=>c.height),{id:r,notations:n,isVisible:o}=Da(PQe),[a,i]=yPe({key:"notation-webview-collapsed",defaultValue:!0}),l=n.length>0,s=wm();return y.jsxs(Pa,{children:[!l&&o&&y.jsx(cl.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:oR,children:y.jsx(fo,{label:"View has no notations",color:"orange",...s,children:y.jsx(ci,{size:"lg",variant:"light",color:"orange",radius:"md",children:y.jsx(Hee,{})})})},"empty"),l&&o&&a&&y.jsx(cl.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:oR,children:y.jsx(fo,{label:"Show notation",color:"dark",fz:"xs",...s,children:y.jsx(or,{size:"lg",variant:"default",color:"gray",className:kQe,onClick:()=>i(!1),children:y.jsx(RQe,{stroke:1.5})})})},"collapsed"),l&&o&&!a&&y.jsx(cl.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:Je("react-flow__panel",oR),style:{transformOrigin:"bottom right"},children:y.jsx(Nf,{radius:"sm",withBorder:!0,shadow:"lg",className:_Qe,children:y.jsxs(Jd,{defaultValue:"first",radius:"xs",children:[y.jsxs(V0,{children:[y.jsx(or,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>i(!0),children:y.jsx(NQe,{stroke:2})}),y.jsx(Bf,{value:"first",fz:"xs",children:"Elements"}),y.jsx(Bf,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),y.jsx(Zs,{value:"first",className:EQe,hidden:a,children:y.jsx(ta,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:y.jsx(ra,{gap:0,children:n.map((c,u)=>y.jsx(DQe,{value:c},u))})})})]})})},r)]})}),Yee=E.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o}=wr(),a=vEe(),i=UG(),l=vje();return y.jsxs(sG,{onReset:a,children:[e&&y.jsx(Tze,{children:y.jsx(Vee,{})}),i&&y.jsx(TXe,{overlaysActorRef:i}),r&&y.jsx($Qe,{}),n&&l&&y.jsx(hKe,{searchActorRef:l}),o&&y.jsx(wKe,{})]})});Yee.displayName="DiagramUI";function _m(e){return function(){return e}}const Wee=1e-12,aR=Math.PI,iR=2*aR,yp=1e-6,MQe=iR-yp;function Gee(e){this._+=e[0];for(let r=1,n=e.length;r<n;++r)this._+=arguments[r]+e[r]}function OQe(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return Gee;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 IQe{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?Gee:OQe(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>yp)if(!(Math.abs(p*c-u*d)>yp)||!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((aR-Math.acos((x+f-w)/(2*k*C)))/2),T=_/C,R=_/k;Math.abs(T-1)>yp&&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)>yp||Math.abs(this._y1-d)>yp)&&this._append`L${u},${d}`,o&&(f<0&&(f=f%iR+iR),f>MQe?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>yp&&this._append`A${o},${o},0,${+(f>=aR)},${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 LQe(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 IQe(r)}function zQe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xee(e){this._context=e}Xee.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 BQe(e){return new Xee(e)}function jQe(e){return e[0]}function FQe(e){return e[1]}function HQe(e,r){var n=_m(!0),o=null,a=BQe,i=null,l=LQe(s);e=typeof e=="function"?e:e===void 0?jQe:_m(e),r=typeof r=="function"?r:r===void 0?FQe:_m(r);function s(c){var u,d=(c=zQe(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:_m(+c),s):e},s.y=function(c){return arguments.length?(r=typeof c=="function"?c:_m(+c),s):r},s.defined=function(c){return arguments.length?(n=typeof c=="function"?c:_m(!!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 lR(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 sR(e,r){this._context=e,this._k=(1-r)/6}sR.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:lR(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:lR(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 sR(o,r)}return n.tension=function(o){return e(+o)},n})(0);function cR(e,r){this._context=e,this._k=(1-r)/6}cR.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:lR(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 cR(o,r)}return n.tension=function(o){return e(+o)},n})(0);function Kee(e,r,n){var o=e._x1,a=e._y1,i=e._x2,l=e._y2;if(e._l01_a>Wee){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>Wee){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 Zee(e,r){this._context=e,this._alpha=r}Zee.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:Kee(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 Zee(o,r):new sR(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function Qee(e,r){this._context=e,this._alpha=r}Qee.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:Kee(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 qQe=(function e(r){function n(o){return r?new Qee(o,r):new cR(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 bp(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 bp(e){return ia.create(e)}const UQe=".react-flow__edge.selected",VQe=ye({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:"normal"}),YQe=ye({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(${UQe}, [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}}),WQe=ye({cursor:"grabbing","& *":{cursor:"grabbing !important"},"& .react-flow__edge-interaction":{cursor:"grabbing !important"}});function GQe(e){const{width:r,height:n}=Wn(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:o+r/2,y:a+n/2}}function r4(e,r,n=0){const o=GQe(e),{width:a,height:i}=Wn(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 bp(l).mul(u).add(o)}const XQe=HQe().curve(qQe).x(e=>e.x).y(e=>e.y),KQe=LT(e=>{const[r,n]=E.useState(!1),o=IC(),a=HVe(),i=Wt(),{enableNavigateTo:l,enableEdgeEditing:s}=wr(),{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,$=mt(wQ(u),`source node ${u} not found`),M=mt(wQ(f),`target node ${f} not found`),j=Sa(A.controlPoints)||!_y($.internals.positionAbsolute,$.data)||!_y(M.internals.positionAbsolute,M.data);let L=A.controlPoints??SQ(e.data),Y;if(j){const W={x:d,y:p},X={x:g,y:b},Z=6,oe=A.dir==="back"?[X,r4(M,pf(L)??W,Z),...L,r4($,qd(L)??X,Z),W]:[W,r4($,pf(L)??X,Z),...L,r4(M,qd(L)??W,Z),X];Y=mt(XQe(oe))}else Y=tYe(k);let O=T?.x??0,U=T?.y??0;const[I,q]=E.useState({x:R?.x??O,y:R?.y??U}),V=E.useRef(null);E.useEffect(()=>{const W=V.current;if(!W)return;const X=W.getPointAtLength(W.getTotalLength()*.5),Z={x:yi(X.x),y:yi(X.y)};q(oe=>_y(oe,Z)?oe:Z)},[Y]),gEe(()=>{!T||T.x===I.x&&T.y===I.y||i.updateEdgeData(c,{labelXY:{x:I.x,y:I.y}})},[I],50,300),(j||r)&&(O=I.x,U=I.y);const G=(W,X,Z)=>{const{addSelectedEdges:oe}=o.getState();oe([c]);const ee=i.cancelSaveManualLayout();X.stopPropagation();let re=!1,pe={x:X.clientX,y:X.clientY};const Ce=be=>{const Oe={x:be.clientX,y:be.clientY};if(!_y(pe,Oe)){n(!0),re||(i.send({type:"xyflow.edgeEditingStarted",edge:e.data}),re=!0),pe=Oe;const{x:Xe,y:Ge}=a.screenToFlowPosition(pe,{snapToGrid:!1}),_t=L.slice();_t[W]={x:yi(Xe),y:yi(Ge)},i.updateEdgeData(c,{controlPoints:_t})}be.stopPropagation()},ce=be=>{Z.removeEventListener("pointermove",Ce,{capture:!0}),re&&be.stopPropagation(),(re||ee)&&i.scheduleSaveManualLayout(),n(!1)},de=be=>{be.stopPropagation(),be.preventDefault()};Z.addEventListener("pointermove",Ce,{capture:!0}),Z.addEventListener("pointerup",ce,{once:!0,capture:!0}),Z.addEventListener("click",de,{capture:!0,once:!0})},F=(W,X,Z)=>{if(L.length<=1)return;const oe=ee=>{const re=L.slice();re.splice(W,1),ee.stopPropagation(),setTimeout(()=>{i.updateEdgeData(c,{controlPoints:re}),i.scheduleSaveManualLayout()},10)};Z.addEventListener("pointerup",oe,{once:!0,capture:!0}),X.stopPropagation()},J=(W,X)=>{const{domNode:Z}=o.getState();if(!(!Z||X.pointerType!=="mouse"))switch(X.button){case 0:G(W,X,Z);break;case 2:F(W,X,Z);break}},Q=W=>{const{domNode:X}=o.getState();if(!X||W.pointerType!=="mouse"||W.button!==2)return;const Z=[new ia(d,p),...L.map(bp)||[],new ia(g,b)];let oe={x:W.clientX,y:W.clientY};const ee=bp(a.screenToFlowPosition(oe,{snapToGrid:!1}));let re=0,pe=1/0;for(let ce=0;ce<Z.length-1;ce++){const de=Z[ce],be=Z[ce+1],Oe=be.sub(de),Xe=ee.sub(de),Ge=ee.sub(be);if(Oe.dot(Xe)*Oe.dot(Ge)<0){const _t=Math.abs(Oe.cross(Xe).abs()/Oe.abs());_t<pe&&(pe=_t,re=ce)}}const Ce=L.slice()||[];Ce.splice(re,0,ee),i.updateEdgeData(c,{controlPoints:Ce}),i.scheduleSaveManualLayout(),W.stopPropagation()};let z=dl.Edge;return(C||_)&&(z=dl.Element+1),y.jsxs(y.Fragment,{children:[y.jsxs(Ry,{...e,className:Je(r&&WQe),children:[y.jsx(Ay,{edgeProps:e,svgPath:Y,ref:V,...s&&{onEdgePointerDown:Q}}),y.jsx(j2,{edgeProps:e,labelPosition:{x:O,y:U,translate:j?"translate(-50%, 0)":void 0},children:y.jsx(Ty,{edgeProps:e,children:N&&y.jsx(B2,{onClick:W=>{W.stopPropagation(),i.navigateTo(N)}})})})]}),s&&L.length>0&&(x||C||r)&&y.jsx(Mq,{children:y.jsx(Ry,{component:"svg",className:VQe,...e,style:{...D,zIndex:z},children:y.jsx("g",{onContextMenu:W=>{W.preventDefault(),W.stopPropagation()},children:L.map((W,X)=>y.jsx("circle",{onPointerDown:Z=>J(X,Z),className:Je("nodrag nopan",YQe),cx:Math.round(W.x),cy:Math.round(W.y),r:3},"controlPoints"+w+"#"+X))})})})]})}),n4=16;function ZQe(e){const r=Wt(),{navigateTo:n}=e.data,o=e.source===e.target,a=e.sourceX>e.targetX,[i]=_x({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+n4;break;case a:l=e.sourceX-n4;break;default:l=e.sourceX+n4;break}return y.jsxs(Ry,{...e,children:[y.jsx(Ay,{edgeProps:e,svgPath:i}),y.jsx(j2,{edgeProps:e,labelPosition:{x:l,y:e.sourceY+(o?0:n4),translate:a?"translate(-100%, 0)":void 0},children:y.jsx(Ty,{edgeProps:e,children:n&&y.jsx(B2,{onClick:s=>{s.stopPropagation(),r.navigateTo(n)}})})})]})}const Jee=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{navigateTo:i,modelFqn:l}=r.data;let s=E.useMemo(()=>{const c=[];return i&&n&&c.push({key:"navigate",icon:y.jsx(gi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(i,r.data.id)}}),o&&c.push({key:"relationships",icon:y.jsx(Ny,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(l)}}),c},[n,o,a,l,i,r.data.id]);return e&&To(e,1)&&(s=[...s,...e]),y.jsx(H2,{...r,buttons:s})},QQe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=wr(),a=Wt(),{id:i,navigateTo:l,modelFqn:s}=r.data;let c=E.useMemo(()=>{const u=[];return l&&n&&u.push({key:"navigate",icon:y.jsx(gi,{}),onClick:d=>{d.stopPropagation(),a.navigateTo(l,i)}}),o&&s&&u.push({key:"relationships",icon:y.jsx(Ny,{}),onClick:d=>{d.stopPropagation(),a.openRelationshipsBrowser(s)}}),u},[n,o,a,s,l,i]);return e&&To(e,1)&&(c=[...c,...e]),y.jsx(H2,{...r,buttons:c})};function JQe({data:{hovered:e=!1},icon:r,onClick:n}){const o=t9(e,e?130:0)[0]&&e;return y.jsx(Qr,{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:cn,children:y.jsx(or,{className:Je("nodrag nopan",YJ({delay:e&&!o}),E2({variant:"transparent"})),onClick:n,onDoubleClick:cn,children:r??y.jsx(gi,{stroke:2})})})}const ete=e=>{const{enableNavigateTo:r}=wr(),n=Wt(),{navigateTo:o}=e.data;return o&&r?y.jsx(JQe,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null},tte=["primary","secondary","muted"],rte=fo.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function o4(e,r){const{onChange:n}=lc(),o=Wt(),[a,i]=E.useState(null),l=it(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=it(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 a4({fqn:e}){const r=Wt();return y.jsx(rte,{label:"Browse relationships",children:y.jsx(or,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:y.jsx(Ny,{stroke:2,style:{width:"72%",height:"72%"}})})})}function i4(e){const{onOpenSource:r}=lc();return r?y.jsx(rte,{label:"Open source",children:y.jsx(or,{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(fm,{stroke:1.8,style:{width:"70%"}})})}):null}function nte(){const e=E.useContext(W0);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??TI.DEFAULT,[n,o]=E.useState(r);return E.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}function l4({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:l}=nte();return y.jsxs(mr,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[y.jsx(fu,{children:y.jsx(Zn,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:y.jsx(B0,{color:l.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),y.jsxs(Gs,{p:"xs",children:[y.jsx(eJe,{theme:l,elementColor:e,onColorPreview:n,onChange:s=>a({color:s})}),o&&y.jsxs(y.Fragment,{children:[y.jsx(N7,{h:"xs"}),y.jsx(If,{label:"opacity",labelPosition:"left"}),y.jsx(N7,{h:"xs"}),y.jsx(tJe,{elementOpacity:r,onOpacityChange:s=>{a({opacity:s})}})]})]})]})}function eJe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=l=>s=>{s.stopPropagation(),n(null),r!==l&&o(l)},i=VE(e.colors).filter(l=>!tte.includes(l));return y.jsx(ra,{gap:2,onMouseLeave:()=>n(null),children:y.jsxs(Qd,{openDelay:1e3,closeDelay:300,children:[y.jsx(Mf,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:tte.map(l=>y.jsx(fo,{label:l,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(B0,{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(rW,{style:{width:Ae(10),height:Ae(10)}})})},l))}),y.jsx(Mf,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(l=>y.jsx(fo,{label:l,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(B0,{color:e.colors[l].elements.fill,size:18,onMouseEnter:()=>n(l),onClick:a(l),style:{color:"#fff",cursor:"pointer"},children:r===l&&y.jsx(rW,{style:{width:Ae(10),height:Ae(10)}})})},l))})]})})}function tJe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=E.useState(e);return qj(()=>{o(e)},[e]),y.jsx(A7,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const rJe=ye({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),nJe=()=>Da(e=>e.xynodes.filter(r=>r.selected).length);function s4({title:e,children:r,nodeProps:n,...o}){const a=nJe(),{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]=t9(c,u);return d?y.jsx(Bq,{isVisible:!l,offset:4,...o,children:y.jsx(Nf,{className:Je("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:cn,onPointerDown:cn,onClick:cn,onDoubleClick:cn,withBorder:!0,children:y.jsxs(ra,{gap:"6px",children:[y.jsx(Se,{px:"4px",children:y.jsx(wt,{className:rJe,children:e})}),y.jsx(qr,{gap:4,children:r})]})})}):null}function oJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=o4(a,e),c=o?.opacity??100;return y.jsxs(s4,{nodeProps:e,title:a,align:"start",children:[y.jsx(l4,{elementColor:i,onColorPreview:l,isOpacityEditable:!0,elementOpacity:c,onChange:s,position:"left-start"}),y.jsx(ote,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:s}),r&&y.jsx(i4,{elementId:a}),n&&y.jsx(a4,{fqn:a})]})}function aJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=o4(o,e);return y.jsxs(s4,{nodeProps:e,title:o,align:"start",children:[y.jsx(l4,{elementColor:l,onColorPreview:s,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),y.jsx(ote,{elementBorderStyle:a?.border,onChange:c}),r&&y.jsx(i4,{deploymentId:o}),n&&i&&y.jsx(a4,{fqn:i})]})}function ote({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=E.useState(e);return E.useEffect(()=>{o(e)},[e]),y.jsx(Se,{children:y.jsx(q0,{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 iJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=o4(a,e);return y.jsxs(s4,{nodeProps:e,title:a,align:"start",children:[y.jsx(ate,{elementShape:o,onChange:s}),y.jsx(l4,{elementColor:i,onColorPreview:l,onChange:s,position:"right-end"}),r&&y.jsx(i4,{elementId:a}),n&&y.jsx(a4,{fqn:a})]})}function lJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=wr(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=o4(a,e);return y.jsxs(s4,{nodeProps:e,title:a,align:"start",children:[y.jsx(ate,{elementShape:o,onChange:c}),y.jsx(l4,{elementColor:l,onColorPreview:s,onChange:c,position:"right-end"}),r&&y.jsx(i4,{deploymentId:a}),n&&i&&y.jsx(a4,{fqn:i})]})}function ate({elementShape:e,onChange:r}){return y.jsxs(ho,{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(Fw,{children:y.jsx(Zn,{variant:"light",color:"gray",size:"compact-xs",rightSection:y.jsx(IT,{size:12}),children:e})}),y.jsx(F0,{onDoubleClick:cn,onClick:cn,children:Iye.map(n=>y.jsx(H0,{fz:12,fw:500,value:n,rightSection:e===n?y.jsx(TQ,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const c4={top:"50%",left:"50%",right:"unset",bottom:"unset",visibility:"hidden",width:5,height:5,transform:"translate(-50%, -50%)"},Ly=()=>y.jsxs(y.Fragment,{children:[y.jsx(uo,{type:"target",position:tt.Top,style:c4}),y.jsx(uo,{type:"target",position:tt.Left,style:c4}),y.jsx(uo,{type:"source",position:tt.Right,style:c4}),y.jsx(uo,{type:"source",position:tt.Bottom,style:c4})]});function uR(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:y.jsx(FT,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function ite(e){const{enableElementDetails:r}=wr(),n=Wt(),o=e.data.modelFqn;return!r||!o?null:y.jsx(WJ,{...e,onClick:a=>{a.stopPropagation(),n.openElementDetails(o,e.id)}})}function sJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return y.jsxs(mm,{nodeProps:e,children:[y.jsx(gm,{...e}),y.jsx(ml,{...e}),r&&y.jsx(Ey,{...e}),y.jsx(Jee,{...e}),y.jsx(uR,{...e}),!n&&y.jsx(iJe,{...e}),y.jsx(Ly,{})]})}function cJe(e){const{enableElementTags:r,enableReadOnly:n}=wr();return y.jsxs(mm,{nodeProps:e,children:[y.jsx(gm,{...e}),y.jsx(ml,{...e}),r&&y.jsx(Ey,{...e}),y.jsx(QQe,{...e}),y.jsx(uR,{...e}),!n&&y.jsx(lJe,{...e}),y.jsx(Ly,{})]})}function uJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return y.jsxs(Dy,{nodeProps:e,children:[y.jsx(Py,{...e}),y.jsx(ete,{...e}),r&&y.jsx(ite,{...e}),!n&&y.jsx(oJe,{...e}),y.jsx(Ly,{})]})}function dJe(e){const{enableElementDetails:r,enableReadOnly:n}=wr();return y.jsxs(Dy,{nodeProps:e,children:[y.jsx(Py,{...e}),y.jsx(ete,{...e}),r&&y.jsx(ite,{...e}),!n&&y.jsx(aJe,{...e}),y.jsx(Ly,{})]})}function pJe(e){return y.jsxs(Dy,{nodeProps:e,children:[y.jsx(Py,{...e}),y.jsx(Ly,{})]})}const hJe={left:tt.Left,right:tt.Right,top:tt.Top,bottom:tt.Bottom},fJe=({data:e,port:r})=>y.jsxs(y.Fragment,{children:[y.jsx(Ur,{"data-likec4-color":e.color,className:ye({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(uo,{id:r.id,type:r.type,position:hJe[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)"}})]}),mJe=e=>Sa(e.modelFqn);function gJe(e){const r=e.data,{positionAbsoluteY:n,data:{viewHeight:o,hovered:a=!1,ports:i}}=e;return y.jsxs(y.Fragment,{children:[y.jsx(Ur,{"data-likec4-color":"gray",className:ye({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(mm,{nodeProps:e,children:[y.jsx(gm,{...e}),y.jsx(ml,{...e}),mJe(r)&&y.jsxs(y.Fragment,{children:[y.jsx(Jee,{...e,data:r}),y.jsx(uR,{...e,data:r})]})]}),i.map(l=>y.jsx(fJe,{port:l,data:e.data},l.id))]})}function yJe(e){return y.jsx(Ur,{"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 vp={ElementNode:sJe,DeploymentNode:cJe,CompoundElementNode:uJe,CompoundDeploymentNode:dJe,ViewGroupNode:pJe,SequenceActorNode:gJe,SequenceParallelArea:yJe},lte={RelationshipEdge:KQe,SequenceStepEdge:ZQe};class Em{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}=Wn(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),n&&n.children.push(this)}}class dR extends Em{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class bJe extends Em{constructor(r,n=null){super(r,n),this.parent=n}}function ste(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 dR(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 bJe(g,b))}const c=[...a.values()];u(c);function u(g){for(const b of g){if(!(b instanceof dR))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-Em.LeftPadding,b.minY=x.minY-Em.TopPadding,b.maxX=x.maxX+Em.RightPadding,b.maxY=x.maxY+Em.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 dR&&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=mt(a.get(b)),w=mt(g.get(b));x.positionAbsolute=w.internals.positionAbsolute}d()}))}return{rects:a,updateXYFlowNodes:d,onMove:f}}function vJe(){const e=IC(),r=Wt(),n=E.useRef(void 0);return E.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=yn(Array.from(c.values()),df(d=>d.draggable!==!1&&(d.dragging===!0||d.id===s.id||d.selected===!0)));To(u,1)&&(n.current=ste(e,Ro(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 xJe={relationship:lte.RelationshipEdge,"seq-step":lte.SequenceStepEdge},Cu={element:ic(vp.ElementNode),deployment:ic(vp.DeploymentNode),"compound-element":ic(vp.CompoundElementNode),"compound-deployment":ic(vp.CompoundDeploymentNode),"view-group":ic(vp.ViewGroupNode),"seq-actor":ic(vp.SequenceActorNode),"seq-parallel":ic(vp.SequenceParallelArea)};function wJe(e){return!e||iu(e)?Cu:{element:e.element??Cu.element,deployment:e.deployment??Cu.deployment,"compound-element":e.compoundElement??Cu["compound-element"],"compound-deployment":e.compoundDeployment??Cu["compound-deployment"],"view-group":e.viewGroup??Cu["view-group"],"seq-actor":e.seqActor??Cu["seq-actor"],"seq-parallel":e.seqParallel??Cu["seq-parallel"]}}const kJe=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}}}),_Je=(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)&&Gn(e.nodes,r.nodes)&&Gn(e.edges,r.edges)&&Gn(e.viewport??null,r.viewport??null);function EJe({background:e="dots",nodesDraggable:r=!1,nodesSelectable:n=!1,reactFlowProps:o={},children:a,renderNodes:i}){const l=Wt(),{initialized:s,nodes:c,edges:u,enableReadOnly:d,enableFitView:p,...f}=Da(kJe,_Je),{onNodeContextMenu:g,onCanvasContextMenu:b,onEdgeContextMenu:x,onNodeClick:w,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=lc(),T=!d,R=_ze(),A=vJe(),D=Sze(),N=UU(()=>{D.set(!0)},R?120:400),$=vf(()=>{N.clear(),D.get()&&D.set(!1)},R?350:200),M=it(O=>{O&&(D.get()||N.start(),$())}),j=it((O,U)=>{N.clear(),l.send({type:"xyflow.viewportMoved",viewport:U,manually:!!O})}),L=it(()=>{l.send({type:"xyflow.resized"})}),Y=Uj(()=>wJe(i),[i],DQ);return D2(()=>{console.warn("renderNodes changed - this might degrade performance")},[Y]),y.jsx(qC,{nodes:c,edges:u,className:Je(s?"initialized":"not-initialized"),nodeTypes:Y,edgeTypes:xJe,onNodesChange:it(O=>{l.send({type:"xyflow.applyNodeChanges",changes:O})}),onEdgesChange:it(O=>{l.send({type:"xyflow.applyEdgeChanges",changes:O})}),background:s?e:"transparent",fitView:!1,onNodeClick:it((O,U)=>{O.stopPropagation(),l.send({type:"xyflow.nodeClick",node:U}),w?.(l.findDiagramNode(U.id),O)}),onEdgeClick:it((O,U)=>{O.stopPropagation(),l.send({type:"xyflow.edgeClick",edge:U}),k?.(l.findDiagramEdge(U.id),O)}),onPaneClick:it(O=>{O.stopPropagation(),l.send({type:"xyflow.paneClick"}),C?.(O)}),onDoubleClick:it(O=>{O.stopPropagation(),O.preventDefault(),l.send({type:"xyflow.paneDblClick"}),_?.(O)}),onNodeMouseEnter:it((O,U)=>{O.stopPropagation(),U.data.hovered||l.send({type:"xyflow.nodeMouseEnter",node:U})}),onNodeMouseLeave:it((O,U)=>{O.stopPropagation(),U.data.hovered&&l.send({type:"xyflow.nodeMouseLeave",node:U})}),onEdgeMouseEnter:it((O,U)=>{O.stopPropagation(),U.data.hovered||l.send({type:"xyflow.edgeMouseEnter",edge:U,event:O})}),onEdgeMouseLeave:it((O,U)=>{O.stopPropagation(),U.data.hovered&&l.send({type:"xyflow.edgeMouseLeave",edge:U,event:O})}),onMove:M,onMoveEnd:j,onInit:it(O=>{l.send({type:"xyflow.init",instance:O})}),onNodeContextMenu:it((O,U)=>{const I=mt(l.findDiagramNode(U.id),`diagramNode ${U.id} not found`);g?.(I,O)}),onEdgeContextMenu:it((O,U)=>{const I=mt(l.findDiagramEdge(U.id),`diagramEdge ${U.id} not found`);x?.(I,O)}),onPaneContextMenu:it(O=>{b?.(O)}),...p&&{onViewportResize:L},nodesDraggable:T&&r,nodesSelectable:n,edgesFocusable:!1,...T&&r&&A,...f,...o,children:a})}function SJe(e){const{view:r,nodesSelectable:n}=e,o=[],a=[],i=new Map,l=E_.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=Ad(e.where);s=f=>p({...sU(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=>mt(i.get(p),`Node not found: ${p}`);let d;for(;d=l.dequeue();){const{node:p,parent:f}=d,g=To(p.children,1)||p.kind==vd;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!==vd,focusable:n&&p.kind!==vd,deletable:!1,position:b,zIndex:g?dl.Compound:dl.Element,style:{width:p.width,height:p.height},initialWidth:p.width,initialHeight:p.height,hidden:p.kind!==vd&&!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:Kt.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===vd){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(!To(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:dl.Edge,selectable:n,hidden:!s(p),deletable:!1,data:{id:p.id,label:p.label,technology:p.technology,notes:Kt.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 cte={parallel:1,actor:10},u4={default:"gray",active:"amber"};function CJe(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,l=[],s=[],c=u=>mt(e.nodes.find(d=>d.id===u));for(const u of o)l.push(TJe(u,c(u.origin),e));for(const u of a)l.push(RJe(u,e));for(const u of r)l.push(AJe(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(NJe(u,d))}return{bounds:i,xynodes:l,xyedges:s}}function TJe({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 RJe({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:u4.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:Kt.EMPTY,viewId:i.id,parallelPrefix:e},zIndex:cte.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 AJe({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:Kt.from(l.description),viewHeight:s.height,viewId:c.id,ports:i},deletable:!1,selectable:!0,zIndex:cte.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function NJe({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:Kt.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 DJe({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:l}=o&&e==="sequence"?CJe(n):SJe(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 ute(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:{...Ud(o,["hidden","zIndex"]),...n,data:n.data}:n})}function dte(e,r){return HE(r)?ute(e,r):(r=e,n=>ute(n,r))}function pte(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}=Wn(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:{...Ud(o,["measured","parentId","hidden","zIndex"]),...n,width:n.initialWidth,height:n.initialHeight,data:n.data}}return n})}function pR(e,r){return HE(r)?pte(e,r):(r=e,n=>pte(n,r))}const hR={top:"40px",bottom:"16px",left:"16px",right:"16px"};function hte(e){const r=[],n=[],o=new Map,a=E_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>mt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,u=To(s.children,1)||s.kind==vd;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?dl.Compound:dl.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===L2.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(!To(s.points,2)){console.error("edge should have at least 2 points",s);continue}if(!To(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 fte=e=>e.find(r=>r.data.column==="subjects"&&rU(r.parentId)),PJe=KBe(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=hte(s),f=()=>{const{nodes:N,edges:$}=l.getState();return{xynodes:pR(N,p.xynodes),xyedges:dte($,p.xyedges)}},g=mt(r._parent);let b=i.getZoom();const x=Math.max(b,1),w=tu(s.bounds,u,d,pl,x,hR),k=p.xynodes.find(N=>N.type!=="empty"&&N.data.column==="subjects"&&N.data.fqn===o)??fte(p.xynodes),C=fte(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=eYe(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=pR(c,c.flatMap(N=>D.has(N.id)?[]:N.id!==_.id?{...N,data:{...N.data,dimmed:N.data.column==="subjects"?"immediate":!0}}:{...Ud(N,["parentId"]),position:{x:A.x-N.initialWidth/2,y:A.y-N.initialHeight/2},zIndex:dl.Max,hidden:!1,data:{...N.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await F_e(120),p.xynodes=p.xynodes.map(Jt.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()}),$Je=ec({actors:{layouter:PJe},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":et(({event:e})=>(qt(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),"update.view":et(({event:e})=>(qt(e,"update.view"),{layouted:e.layouted,...hte(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=tu(o,s,c,pl,l,hR);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:pl,maxZoom:l,padding:hR,...n>0&&{duration:n}}).catch(console.error)},"xyflow.applyNodeChanges":et(({context:e,event:r})=>(qt(r,"xyflow.applyNodeChanges"),{xynodes:Rx(r.changes,e.xynodes)})),"xyflow.applyEdgeChanges":et(({context:e,event:r})=>(qt(r,"xyflow.applyEdgeChanges"),{xyedges:Ax(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}},ln({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:sn(({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:sn(({event:e,context:r,system:n,enqueue:o})=>{(e.edge.selected||e.edge.data.relations.length>1)&&o.sendTo(tc(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn})})},"navigate.to":{actions:[et({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:et({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"},fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),ln({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:"xyflow.init"},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[et({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?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),ln({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),ln({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:Jt.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:sn(({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:mt(e.xyflow),xystore:mt(e.xystore),update:mt(e.layouted)}),onDone:{target:"idle",actions:sn(({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:et({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final"}},exit:et({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]})}),mte=$Je,MJe=ec({actors:{relationshipsBrowserLogic:mte}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:Vf("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:[is(({self:e})=>`${e.id}-relationships`,{type:"close"}),yu(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:et({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),OJe=MJe;function IJe(e){const r=[],n=[],o=new Map,a=E_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>mt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,u=To(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?dl.Compound:dl.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:Kt.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:Kt.from(f),...p&&{technology:p}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function gte(e){return"edgeId"in e?(nt(UE(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const LJe=ec({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=tu(o,s,c,pl,l,.1);a.setViewport(u,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:pl,maxZoom:l,padding:.1,...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:et(({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:et(({context:e,event:r})=>{qt(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=IJe(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:pR(e.xynodes,n),xyedges:dte(e.xyedges,o),bounds:Gn(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:gte(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}},ln({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[et({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?Jt.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?Jt.setDimmed(o,"immediate"):o)}}),oa("undim.edges"),oa("dim.nonhovered.edges"),ln({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[et({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?Jt.setHovered(n,!1):n)}),oa("dim.nonhovered.edges"),ln({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:et({xyedges:({context:e})=>e.xyedges.map(r=>Jt.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:et({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>Jt.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(Jt.setDimmed(!1))})},"xyflow.selectionChange":{actions:sn(({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",oa("fitDiagram"),ln({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),ln({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:et({xynodes:({context:e,event:r})=>Rx(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Ax(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"navigate.to":{actions:et({subject:({event:e})=>gte(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:et({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"xyflow.resized":{actions:[oa("fitDiagram"),ln({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),zJe=LJe,BJe=zG(({sendBack:e})=>{const r=o9([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),jJe=ec({actors:{relationshipDetails:zJe,elementDetails:OJe,relationshipsBrowser:mte,hotkey:BJe},actions:{closeLastOverlay:sn(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=qd(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),closeSpecificOverlay:sn(({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:sn(({context:e,enqueue:r})=>{for(const{id:n}of eDe(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),openElementDetails:sn(({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:sn(({context:e,enqueue:r,event:n})=>{qt(n,"open.relationshipDetails");const o=qd(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:sn(({context:e,enqueue:r,event:n})=>{qt(n,"open.relationshipsBrowser");const o=qd(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:Vf("hotkey",{id:"hotkey"}),stopListeningToEsc:yu("hotkey")},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(qt(r,"close"),UE(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>qd(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>qd(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"]}),FJe=jJe,HJe=ec({actions:{"change searchValue":et({searchValue:({event:e,context:r})=>(qt(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":et({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:[et({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:et({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),qJe=HJe;class yte{}class Sm extends yte{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 UJe extends yte{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=yn(r,Bx(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 Bx(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[yn(Array.from(r.nodePositions),Ro(([o,a])=>{const i=n.get(o);return nt(i,`Could not find original rect for node ${o}`),[sU(i,["x","y"]),a]}),Ro(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),hf((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 VJe(e){switch(e){case"Left":return new Sm(r=>Math.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new Sm(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new Sm(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new Sm(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new Sm(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new Sm(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function bte(e){const{width:r,height:n}=Wn(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function YJe(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return VJe(e);case"Column":case"Row":return new UJe(e);default:Xa(e)}}function WJe(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 vte({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}=Wn(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:{...Ud(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:{...Ud(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 GJe(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),Jt.setData(l,{dimmed:!1,active:!0})):Jt.setData(l,{dimmed:!0,active:!1}));return{xynodes:r.map(l=>Jt.setDimmed(l,!a.has(l.id))),xyedges:i}}function xte({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?mt(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?mt(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 XJe({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 KJe({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 ZJe({context:e,event:r}){return qt(r,"update.nodeData"),{xynodes:e.xynodes.map(n=>{if(n.id!==r.nodeId)return n;const o=aU(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function QJe({context:e,event:r}){return qt(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=aU(n.data,r.data);return ut(o,n.data)?n:{...n,data:o}})}}function JJe({context:e}){const{xynodes:r}=e;function n(i,l){const s=bp({x:i.width||0,y:i.height||0});let c=bp(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 bp(s).mul(d).add(l)}return{xyedges:e.xyedges.map(i=>!i.data.controlPoints||iu(i.data.controlPoints)?i:{...i,data:{...i.data,controlPoints:o(i)}})}}function eet({context:e}){const{stepId:r,parallelPrefix:n}=mt(e.activeWalkthrough,"activeWalkthrough is null"),o=mt(e.xyedges.find(a=>a.id===r));return{xyedges:e.xyedges.map(a=>{const i=r===a.id||!!n&&a.id.startsWith(n);return Jt.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"?Jt.setData(a,{color:n===a.data.parallelPrefix?u4.active:u4.default,dimmed:i}):Jt.setDimmed(a,i)})}}const tet=zG(({sendBack:e})=>{const r=o9([["Escape",o=>{o.stopPropagation(),e({type:"key.esc"})},{preventDefault:!0}]]),n=o9([["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})}}),fR="likec4:diagram:toggledFeatures",wte={read(){try{let e=sessionStorage.getItem(fR);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${fR}:`,e),null}},write(e){return sessionStorage.setItem(fR,JSON.stringify(XNe(e,eU))),e}},ret=ec({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:net(e.parent.getSnapshot().context)})},target:"synced"},{target:"stopped"}]}},synced:{tags:"ready",on:{sync:{target:"pending"}}},stopped:{entry:et({parent:null}),type:"final"}},on:{synced:{target:".synced"},stop:{target:".stopped"}}}),kte=ret;function net(e){const{view:r,xystore:n,xyflow:o}=e,{nodeLookup:a}=n.getState(),i=new Set;let l;const s=hf([...a.values()],(u,d)=>{const p=Wn(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?vx(l,f):f,u},{}),c=hf(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=SQ(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),To(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=f0({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?vx(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 oet=ec({actors:{syncManualLayoutActorLogic:kte,hotkeyActorLogic:tet,overlaysActorLogic:FJe,searchActorLogic:qJe},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;Xa(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":ui(({context:e})=>({type:"navigateTo",viewId:mt(e.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView})),"assign lastClickedNode":et(({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),{lastClickedNode:WJe({context:e,event:r})})),"assign: focusedNode":et(({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":et(()=>({lastClickedNode:null})),"open source of focused or last clicked node":sn(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=Qf(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}=mt(e.xystore).getState(),c=Math.max(1,s[2]),u=tu(n,a,i,pl,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?fje({context:e}):pje({context:e}),{width:a,height:i,panZoom:l,transform:s}=mt(e.xystore).getState(),c=Math.max(1,s[2]),u=tu(n,a,i,pl,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=mt(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=mt(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(!To(l,2)){console.warn("At least 2 nodes must be selected to align");return}const s=ste(o,l),c=YJe(n),u=l.map(d=>({node:mt(a.get(d)),rect:mt(s.rects.get(d))}));c.computeLayout(u.map(({node:d})=>bte(d)));for(const{rect:d,node:p}of u)d.positionAbsolute={...d.positionAbsolute,...c.applyPosition(bte(p))};s.updateXYFlowNodes()},"ensure overlays actor state":sn(({enqueue:e,context:{features:r},system:n})=>{const o=r.enableElementDetails||r.enableRelationshipDetails||r.enableRelationshipBrowser,a=tc(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":sn(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=tc(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),updateFeatures:et(({event:e})=>(qt(e,"update.features"),{features:{...e.features}})),updateInputs:et(({event:e})=>(qt(e,"update.inputs"),{...e.inputs})),closeSearch:is(({system:e})=>tc(e).searchActorRef,{type:"close"}),closeAllOverlays:is(({system:e})=>tc(e).overlaysActorRef,{type:"close.all"}),startSyncLayout:et(({context:e,spawn:r,self:n})=>({syncLayoutActorRef:r("syncManualLayoutActorLogic",{id:"syncLayout",input:{parent:n,viewId:e.view.id}})})),stopSyncLayout:sn(({context:e,enqueue:r})=>{r.sendTo(e.syncLayoutActorRef,{type:"stop"}),r.stopChild(e.syncLayoutActorRef),r.assign({syncLayoutActorRef:null})}),onNodeMouseEnter:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!0):n)})),onNodeMouseLeave:et(({context:e},r)=>({xynodes:e.xynodes.map(n=>n.id===r.node.id?Jt.setHovered(n,!1):n)})),onEdgeMouseEnter:sn(({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=Jt.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),onEdgeMouseLeave:sn(({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=Jt.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),"focus on nodes and edges":et(GJe),"notations.highlight":et(({context:e},r)=>{const n=r.kind?[r.kind]:r.notation.kinds;return{xynodes:e.xynodes.map(o=>{const a=Qf(e,o.id);return a&&a.notation===r.notation.title&&a.shape===r.notation.shape&&a.color===r.notation.color&&n.includes(a.kind)?Jt.setDimmed(o,!1):Jt.setDimmed(o,"immediate")}),xyedges:e.xyedges.map(Jt.setDimmed("immediate"))}}),"tag.highlight":et(({context:e,event:r})=>(qt(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?Jt.setDimmed(n,!1):Jt.setDimmed(n,!0))})),"undim everything":et(({context:e})=>({xynodes:e.xynodes.map(Jt.setDimmed(!1)),xyedges:e.xyedges.map(Jt.setData({dimmed:!1,active:!1}))})),"update active walkthrough":et(eet),"open element details":is(({system:e})=>tc(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=mt(e.lastClickedNode).id;const s=mt(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=jd(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":ui(({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":ui(({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":ui(()=>({type:"walkthroughStopped"})),"emit: edgeEditingStarted":ui(({context:e,event:r})=>(qt(r,"xyflow.edgeEditingStarted"),{type:"edgeEditingStarted",edge:mt(e.xyedges.find(n=>n.id===r.edge.id),`Edge ${r.edge.id} not found`)})),"emit: paneClick":ui(()=>({type:"paneClick"})),"emit: nodeClick":ui(({context:e,event:r})=>(qt(r,"xyflow.nodeClick"),{type:"nodeClick",node:mt(Qf(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),"emit: edgeClick":ui(({context:e,event:r})=>(qt(r,"xyflow.edgeClick"),{type:"edgeClick",edge:mt(oS(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),"emit: initialized":ui(({context:e})=>(nt(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),"emit: openSource":ui((e,r)=>({type:"openSource",params:r})),"assign: dynamicViewVariant":et(({event:e})=>(qt(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant}))}}).createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...HJ},toggledFeatures:wte.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:et(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:et(({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}},et(({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:et({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:et(XJe),target:"#navigating"},"navigate.forward":{guard:({context:e})=>e.navigationHistory.currentIndex<e.navigationHistory.history.length-1,actions:et(KJe),target:"#navigating"},"layout.align":{guard:"not readonly",actions:[{type:"layout.align",params:({event:e})=>({mode:e.mode})},ln({type:"saveManualLayout.schedule"})]},"layout.resetEdgeControlPoints":{guard:"not readonly",actions:[et(JJe),ln({type:"saveManualLayout.schedule"})]},"xyflow.resized":{guard:({context:e})=>e.features.enableFitView&&!e.viewportChangedManually,actions:[oa("fitDiagram"),ln({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"open.elementDetails":{guard:"enabled: ElementDetails",actions:"open element details"},"open.relationshipsBrowser":{actions:is(({system:e})=>tc(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:is(({system:e})=>tc(e).overlaysActorRef,({context:e,event:r})=>({type:"open.relationshipDetails",viewId:e.view.id,...r.params}))},"open.source":{actions:{type:"emit: openSource",params:Ca("event")}},"walkthrough.start":{guard:"is dynamic view",target:".walkthrough"},"toggle.feature":{actions:et({toggledFeatures:({context:e,event:r})=>wte.write({...e.toggledFeatures,[`enable${r.feature}`]:r.forceValue??!(e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`])})})},"xyflow.nodeMouseEnter":{actions:{type:"onNodeMouseEnter",params:Ca("event")}},"xyflow.nodeMouseLeave":{actions:{type:"onNodeMouseLeave",params:Ca("event")}},"xyflow.edgeMouseEnter":{actions:"onEdgeMouseEnter"},"xyflow.edgeMouseLeave":{actions:"onEdgeMouseLeave"},"notations.highlight":{actions:{type:"notations.highlight",params:Ca("event")}},"notations.unhighlight":{actions:"undim everything"},"tag.highlight":{actions:"tag.highlight"},"tag.unhighlight":{actions:"undim everything"},"saveManualLayout.*":{guard:"not readonly",actions:is(e=>e.context.syncLayoutActorRef,({event:e})=>{if(e.type==="saveManualLayout.schedule")return{type:"sync"};if(e.type==="saveManualLayout.cancel")return{type:"cancel"};Xa(e)})},"open.search":{guard:"enabled: Search",actions:is(({system:e})=>tc(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))}},exit:[oa("fitDiagram")],states:{idle:{id:"idle",on:{"xyflow.nodeClick":[{guard:Zw(["enabled: FocusMode","click: node has connections",_G(["click: same node","click: selected node"])]),actions:["assign lastClickedNode","assign: focusedNode","emit: nodeClick"],target:"focused"},{guard:Zw(["enabled: ElementDetails","click: node has modelFqn",_G(["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:Zw(["is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[ln(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),"emit: edgeClick"]}}},focused:{entry:["focus on nodes and edges",et(e=>({viewportBeforeFocus:{...e.context.viewport}})),"open source of focused or last clicked node",Vf("hotkeyActorLogic",{id:"hotkey"}),"xyflow:fitFocusedBounds"],exit:sn(({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:Zw(["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",ln(({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:[Vf("hotkeyActorLogic",{id:"hotkey"}),et({viewportBeforeFocus:({context:e})=>e.viewport,activeWalkthrough:({context:e,event:r})=>{qt(r,"walkthrough.start");const n=r.stepId??pf(e.xyedges).id;return{stepId:n,parallelPrefix:P8(n)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStarted"],exit:sn(({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"?Jt.setData(n,{color:u4.default}):n)}),e("undim everything"),e.assign({activeWalkthrough:null,viewportBeforeFocus:null}),e("emit: walkthroughStopped")}),on:{"key.esc":{target:"idle"},"key.arrow.left":{actions:ln({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:ln({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[et(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(l=>l.id===n),a=Ki(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:P8(i)}}}),"update active walkthrough","xyflow:fitFocusedBounds","emit: walkthroughStep"]},"xyflow.edgeClick":{actions:[et(({event:e,context:r})=>!v1(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:P8(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:ln(({event:e})=>e,{delay:50}),target:"idle"}}}}},navigating:{id:"navigating",entry:["closeAllOverlays","closeSearch","stopSyncLayout","trigger:NavigateTo"],on:{"update.view":{actions:sn(({enqueue:e,context:r,event:n})=>{const{fromNode:o,toNode:a}=Ete(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:Qc.center(n.view.bounds)}),e.assign(xte),e.assign({...vte({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:et({xynodes:({context:e,event:r})=>Rx(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:et({xyedges:({context:e,event:r})=>Ax(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:et({viewportChangedManually:(({event:e})=>e.manually),viewport:(({event:e})=>e.viewport)})},"xyflow.edgeEditingStarted":{actions:"emit: edgeEditingStarted"},fitDiagram:{guard:"enabled: FitView",actions:{type:"xyflow:fitDiagram",params:Ca("event")}},"update.nodeData":{actions:et(ZJe)},"update.edgeData":{actions:et(QJe)},"update.view":{actions:[et(xte),sn(({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}=Ete(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:Qc.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:Qc.center(i.bounds)})}e.assign({...vte({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",oa("fitDiagram"),yu("hotkey"),yu("overlays"),yu("search"),et({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},syncLayoutActorRef:null})]});function _te(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:Xa(e)}}function Ete(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(l=>l.id===n),a=o&&_te(o),i=a&&r.xynodes.find(l=>_te(l)===a);return{fromNode:o,toNode:i}}const aet=oet,iet=e=>e.context.dynamicViewVariant;function set({view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,where:i,children:l,dynamicViewVariant:s}){const{handlersRef:c}=lc(),u=fr(),d=E.useRef(null);d.current||(d.current=aet.provide({actors:{syncManualLayoutActorLogic:kte.provide({actions:{"trigger:OnChange":((x,w)=>{c.current.onChange?.(w)})}})}}));const p=nS(d.current,{id:"diagram",systemId:"diagram",input:{xystore:u,view:e,zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a,dynamicViewVariant:s}}),f=wr();jj(()=>{p.send({type:"update.features",features:f})},[f],Gn),E.useEffect(()=>{p.send({type:"update.inputs",inputs:{zoomable:r,pannable:n,fitViewPadding:o,nodesSelectable:a}})},[r,n,o,a]);const g=wn(p,iet),b=E.useMemo(()=>DJe({view:e,where:i,nodesSelectable:a,dynamicViewVariant:g}),[e,i,a,g]);return Hj(()=>{p.send({type:"update.view",...b})},[p,b]),D2(()=>{s&&p.send({type:"switch.dynamicViewVariant",variant:s})},[s]),y.jsxs(gje,{value:p,children:[y.jsx(sG,{children:y.jsx(uet,{actorRef:p,children:l})}),y.jsx(det,{actorRef:p})]})}const cet=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 uet({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=wn(r,cet,ut),a=Ho().findView(n);return y.jsx(M7.Provider,{value:a,children:y.jsx(hp,{overrides:o,children:e})})}function det({actorRef:e}){const r=Wt(),{onNavigateTo:n,onOpenSource:o,handlersRef:a}=lc();il("openSource",({params:l})=>o?.(l)),il("navigateTo",({viewId:l})=>n?.(l));const i=E.useRef(!1);return E.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 d4={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 d4.hue2rgb(i,a,e+1/3)*255;case"g":return d4.hue2rgb(i,a,e)*255;case"b":return d4.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}}},pet={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},het={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},At={channel:d4,lang:pet,unit:het},Tu={};for(let e=0;e<=255;e++)Tu[e]=At.unit.dec2hex(e);const Po={ALL:0,RGB:1,HSL:2};class fet{constructor(){this.type=Po.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=Po.ALL}is(r){return this.type===r}}class met{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new fet}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=Po.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=At.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=At.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=At.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=At.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=At.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=At.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),At.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),At.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is(Po.HSL)&&n!==void 0?n:(this._ensureHSL(),At.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),At.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),At.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is(Po.RGB)&&n!==void 0?n:(this._ensureRGB(),At.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(Po.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Po.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Po.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Po.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Po.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Po.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const p4=new met({r:0,g:0,b:0,a:0},"transparent"),Cm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Cm.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 p4.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?`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}${Tu[Math.round(a*255)]}`:`#${Tu[Math.round(r)]}${Tu[Math.round(n)]}${Tu[Math.round(o)]}`}},xp={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(xp.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return At.channel.clamp.h(parseFloat(n)*.9);case"rad":return At.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return At.channel.clamp.h(parseFloat(n)*360)}}return At.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(xp.re);if(!n)return;const[,o,a,i,l,s]=n;return p4.set({h:xp._hue2deg(o),s:At.channel.clamp.s(parseFloat(a)),l:At.channel.clamp.l(parseFloat(i)),a:l?At.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(${At.lang.round(r)}, ${At.lang.round(n)}%, ${At.lang.round(o)}%, ${a})`:`hsl(${At.lang.round(r)}, ${At.lang.round(n)}%, ${At.lang.round(o)}%)`}},zy={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=zy.colors[e];if(r)return Cm.parse(r)},stringify:e=>{const r=Cm.stringify(e);for(const n in zy.colors)if(zy.colors[n]===r)return n}},By={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(By.re);if(!n)return;const[,o,a,i,l,s,c,u,d]=n;return p4.set({r:At.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:At.channel.clamp.g(l?parseFloat(i)*2.55:parseFloat(i)),b:At.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:u?At.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(${At.lang.round(r)}, ${At.lang.round(n)}, ${At.lang.round(o)}, ${At.lang.round(a)})`:`rgb(${At.lang.round(r)}, ${At.lang.round(n)}, ${At.lang.round(o)})`}},yl={format:{keyword:zy,hex:Cm,rgb:By,rgba:By,hsl:xp,hsla:xp},parse:e=>{if(typeof e!="string")return e;const r=Cm.parse(e)||By.parse(e)||xp.parse(e)||zy.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Po.HSL)||e.data.r===void 0?xp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?By.stringify(e):Cm.stringify(e)},Ste=(e,r)=>{const n=yl.parse(e);for(const o in r)n[o]=At.channel.clamp[o](r[o]);return yl.stringify(n)},get=(e,r,n=0,o=1)=>{if(typeof e!="number")return Ste(e,{a:r});const a=p4.set({r:At.channel.clamp.r(e),g:At.channel.clamp.g(r),b:At.channel.clamp.b(n),a:At.channel.clamp.a(o)});return yl.stringify(a)},Cte=e=>yl.format.hex.stringify(yl.parse(e)),Tte=e=>yl.format.rgba.stringify(yl.parse(e)),yet=(e,r)=>{const n=yl.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return Ste(e,o)},Rte=(e,r,n=50)=>{const{r:o,g:a,b:i,a:l}=yl.parse(e),{r:s,g:c,b:u,a:d}=yl.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,_)},Ate=(e,r)=>{const n=yl.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],At.channel.max[i]);return yet(e,o)},Nte=e=>`[data-mantine-color-scheme="${e}"]`,Dte=Nte("dark"),bet=Nte("light"),vet=5,xet=(e,r,n,o)=>{const a=s=>Cte(Ate(s,{l:-22-5*o,s:-10-6*o})),i=s=>Cte(Ate(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)};
}
${Dte} ${l} {
--likec4-palette-fill: ${a(n.elements.fill)};
--likec4-palette-stroke: ${a(n.elements.stroke)};
}
`.trim()};function wet(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};
}
${bet} ${i} {
--likec4-palette-relation-stroke-selected: ${Tte(Rte(a.line,"black",85))};
}
${Dte} ${i} {
--likec4-palette-relation-stroke-selected: ${Tte(Rte(a.line,"white",70))};
}
`.trim(),...ZNe(1,vet+1).map(l=>xet(e,r,n,l))].join(`
`)}function ket(e,r){return yn(r.colors,jE(),Ro(([n,o])=>wet(e,n,o)),oU(`
`))}const _et=E.memo(({id:e})=>{const r=`#${e}`,n=Yd()?.(),{theme:o}=nte(),a=ket(r,o);return y.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})});function Pte(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function $te({children:e}){const r=E.useContext(Zx);return E.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?y.jsx(y.Fragment,{children:e}):y.jsx(g9,{defaultColorScheme:"auto",children:e})}$te.displayName="EnsureMantine";const mR=({reducedMotion:e="user",children:r})=>{const n=Yd()?.();return y.jsx(wqe,{features:yVe,strict:!0,children:y.jsx(Eqe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Mte({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?$2.withControls:$2.default,pannable:C=!0,zoomable:_=!0,background:T="dots",enableElementTags:R=!1,enableFocusMode:A=!1,enableElementDetails:D=!1,enableRelationshipDetails:N=!1,enableRelationshipBrowser:$=!1,nodesDraggable:M=!b,nodesSelectable:j=!b||A||!!l||!!s,showNotations:L=!0,showNavigationButtons:Y=!!l,enableDynamicViewWalkthrough:O=!1,dynamicViewVariant:U,enableSearch:I=!1,initialWidth:q,initialHeight:V,experimentalEdgeEditing:G=!b,reduceGraphics:F="auto",renderIcon:J,where:Q,reactFlowProps:z,renderNodes:W,children:X}){const Z=ZW(),oe=E.useRef(null),ee=Pte(f,U),re=Eet(k);oe.current==null&&(oe.current={defaultEdges:[],defaultNodes:[],initialWidth:q??ee.width,initialHeight:V??ee.height,initialFitViewOptions:{maxZoom:HC,minZoom:pl,padding:re},initialMaxZoom:HC,initialMinZoom:pl});const pe=F==="auto"?C&&(ee.width??1)*(ee.height??1)>6e6&&f.nodes.some(Ce=>Ce.children?.length>0):F;return y.jsx($te,{children:y.jsx(mR,{...pe&&{reducedMotion:"always"},children:y.jsx(uEe,{value:J??null,children:y.jsx(hp,{features:{enableFitView:w,enableReadOnly:b,enableFocusMode:A,enableNavigateTo:!!l,enableElementDetails:D,enableRelationshipDetails:N,enableRelationshipBrowser:$,enableSearch:I,enableNavigationButtons:Y&&!!l,enableDynamicViewWalkthrough:f._type==="dynamic"&&O,enableEdgeEditing:G,enableNotations:L,enableVscode:!!u,enableControls:x,enableElementTags:R},children:y.jsxs(gKe,{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(_et,{id:Z}),y.jsx($ze,{rootSelector:`#${Z}`,children:y.jsx(Cze,{id:Z,className:g,reduceGraphics:pe,children:y.jsx($x,{fitView:w,...oe.current,children:y.jsxs(set,{view:f,zoomable:_,pannable:C,fitViewPadding:re,nodesSelectable:j,where:Q??null,dynamicViewVariant:U,children:[y.jsx(EJe,{nodesDraggable:M,nodesSelectable:j,background:T,reactFlowProps:z,renderNodes:W,children:X}),y.jsx(Yee,{})]})})})})]})})})})})}const Ote=e=>typeof e=="number"?`${e}px`:e;function Eet(e){return Uj(()=>qE(e)?qNe(e,Ote):Ote(e),[e],ut)}function Cet({children:e,likec4model:r}){return y.jsx(W0.Provider,{value:r,children:e})}const gR=({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})}),Tet=({viewId:e})=>y.jsxs(gR,{children:["View ",y.jsx("code",{children:e})," not found"]}),Ret=e=>{throw new Error("LikeC4View is not available SSR")};var Ite={exports:{}},yR,Lte;function Aet(){if(Lte)return yR;Lte=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return yR=e,yR}var bR,zte;function Net(){if(zte)return bR;zte=1;var e=Aet();function r(){}function n(){}return n.resetWarningCache=r,bR=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},bR}var Bte;function Det(){return Bte||(Bte=1,Ite.exports=Net()()),Ite.exports}var Pet=Det();const bl=DE(Pet);var $et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jte(e,r){return e(r={exports:{}},r.exports),r.exports}var Met=jte((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})($et)})).decamelize,Oet=function(e){if(Array.isArray(e))return e},Iet=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}},Fte=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},Let=function(e,r){if(e){if(typeof e=="string")return Fte(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)?Fte(e,r):void 0}},zet=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.`)},Bet=function(e,r){return Oet(e)||Iet(e,r)||Let(e,r)||zet()},Hte=jte((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})),jet=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},qte=function(e,r){if(e==null)return{};var n,o,a=jet(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},Fet=E.createContext(null);function Ute(e){var r=e.children,n=r===void 0?"":r,o=qte(e,["children"]);return typeof n!="string"&&(n=Ret()),Xr.createElement("template",Hte({},o,{dangerouslySetInnerHTML:{__html:n}}))}function Vte(e){var r=e.root,n=e.children;return Bi.createPortal(n===void 0?null:n,r)}function Het(e){var r=E.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=qte(n,["mode","delegatesFocus","styleSheets","ssr","children"]),w=(i=E.useRef((a=o)&&a.current),E.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=E.useState(null),C=Bet(k,2),_=C[0],T=C[1],R="node_".concat(s).concat(u);return E.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 M=$.error,j=$.styleSheets,L=$.root;switch(M.name){case"NotSupportedError":j.length>0&&(L.adoptedStyleSheets=j);break;default:throw M}})({error:N,styleSheets:p,root:_})}}),[o,w,p]),Xr.createElement(Xr.Fragment,null,Xr.createElement(e.tag,Hte({key:R,ref:w},x),(_||g)&&Xr.createElement(Fet.Provider,{value:_},g?Xr.createElement(Ute,{shadowroot:s,shadowrootmode:s},e.render({root:_,ssr:g,children:b})):Xr.createElement(Vte,{root:_},e.render({root:_,ssr:g,children:b})))))}));return r.propTypes={mode:bl.oneOf(["open","closed"]),delegatesFocus:bl.bool,styleSheets:bl.arrayOf(bl.instanceOf(globalThis.CSSStyleSheet)),ssr:bl.bool,children:bl.node},r}Ute.propTypes={children:bl.oneOfType([bl.string,bl.node])},Vte.propTypes={root:bl.object.isRequired,children:bl.node};var vR=new Map;function qet(){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=Met(a,{separator:"-"}),l="".concat(r,"-").concat(i);return vR.has(l)||vR.set(l,Het({tag:i,render:n})),vR.get(l)}})}var Uet=qet();const Vet='@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}',Yte=`@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-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(var(--input-right-section-size) * 1.55)}[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_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(var(--input-right-section-size) * 1.55)}.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);--checkbox-icon-color: var(--mantine-color-white);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-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);--checkbox-icon-color: var(--mantine-color-white)}.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-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-style-position:inside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0}.m_abbac491:where([data-with-padding]){padding-inline-start:var(--mantine-spacing-md)}.m_abb6bec2{white-space:nowrap;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_\\[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}.p_xs{padding:var(--spacing-xs)}.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_\\[4px_4px\\]{gap:4px 4px}.ovs-b_none{overscroll-behavior:none}.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))}.bdr_xs{border-radius:var(--radii-xs)}.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}.trs-prop_all{--transition-prop: all;transition-property:all}.trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}.c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}.white-space_pre{white-space:pre}.ff_mono{font-family:var(--fonts-mono)}.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}.tov_ellipsis{text-overflow:ellipsis}.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)}.pr_xxs{padding-right:var(--spacing-xxs)}.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\\: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\\])}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.defaultHover{background:var(--colors-mantine-colors-default-hover)}.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)}.group:is(:hover,[data-hover]) .groupHover\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.\\[\\&\\: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)}.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}}}`,Yet={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:O0.extend({defaultProps:{reuseTargetNode:!0}})}};ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Wet(e,r){const[n,o]=E.useState([]);return Q8(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),UE(r)&&a.setAttribute("nonce",r),_0(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(Vet)),document.head.appendChild(a)}},[e]),Q8(()=>{const a=new CSSStyleSheet;return a.replaceSync(Yte.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("")}},[Yte]),n}const Wte=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=pf(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function Get(e){const r=$U(),[n,o]=E.useState(Wte);return VU(vf(()=>o(Wte),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}function Xet(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()}const Ket=Uet.div;function Zet({children:e,theme:r=Yet,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...l}){const s=Get(a),c=ZW(),u=Xet(c,i),d=E.useRef(null),p=Wet(n,o),f=E.useCallback(()=>d.current??void 0,[d]);let g,b;return HE(o)&&(typeof o=="string"?(b=o,g=()=>o):typeof o=="function"&&(b=o(),g=o)),y.jsxs(y.Fragment,{children:[y.jsx("style",{type:"text/css",nonce:b,dangerouslySetInnerHTML:{__html:u}}),y.jsx(Ket,{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(g9,{...a&&{forceColorScheme:a},defaultColorScheme:s,getRootElement:f,...g&&{getStyleNonce:g},cssVariablesSelector:".likec4-shadow-root",theme:r,children:y.jsx(mR,{children:e})})})})]})}const Qet=ye({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function Jet({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,showNotations: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 $=Rze(),[M,j]=E.useState(null),L=it(()=>{j(e)});if(!$)return y.jsx(gR,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const Y=$.findView(e)?.$view;if(!Y)return y.jsx(Tet,{viewId:e});if(Y._stage!=="layouted")return y.jsxs(gR,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const O=M?$.findView(M)?.$view:null,U=(Y.notation?.nodes??[]).length>0;p??=U;const I=u!==!1,q=eU(u)?{}:u,V=Pte(Y,N.dynamicViewVariant);return y.jsx(Zet,{injectFontCss:l,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?V:!1,className:Je("likec4-view",r),style:T,children:y.jsxs(mR,{children:[y.jsx(Mte,{view:Y,readonly:!0,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:$2.default,showNotations:p,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",I&&Qet),enableSearch:!1,...I&&{onCanvasClick:L,onNodeClick:L},reactFlowProps:R,renderNodes:A,children:D,...N}),O&&y.jsxs(My,{openDelay:0,onClose:()=>j(null),children:[y.jsx(Mte,{view:O,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,fitView:!0,...N,fitViewPadding:$2.withControls,...q,showNotations:q.showNotations??p,renderNodes:A}),y.jsx(Se,{pos:"absolute",top:"1rem",right:"1rem",children:y.jsx(or,{variant:"default",color:"gray",onClick:G=>{G.stopPropagation(),j(null)},children:y.jsx(Hf,{})})})]})]})})}var ett=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"})]}),ttt=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"})}),rtt=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"})]})}),ntt=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"})]}),att=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"})]}),itt=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"})}),stt=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"})]}),ctt=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"})}),utt=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"})]})}),dtt=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"})]}),ptt=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"})}),htt=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 ftt={"tech:elasticsearch":ett,"tech:git":ttt,"tech:github":rtt,"tech:go":ntt,"tech:grafana":ott,"tech:java":att,"tech:kubernetes":itt,"tech:nginx":ltt,"tech:postgresql":stt,"tech:prometheus":ctt,"tech:react":utt,"tech:redis":dtt,"tech:spark":ptt,"tech:swagger":htt};function mtt(e){const r=ftt[e.node.icon??""];return r?y.jsx(r,e):null}function gtt(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Gte(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return gtt(e,r,n);throw Error("Wrong number of arguments")}function ytt(...e){return Gte(btt,e)}function btt(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Xte(...e){return Gte(jy,e)}function jy(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 vtt(e,r);if(e instanceof Map)return xtt(e,r);if(e instanceof Set)return wtt(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)||!jy(o,r[n]))return!1;return!0}function vtt(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!jy(o,r[n]))return!1;return!0}function xtt(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!jy(o,r.get(n)))return!1;return!0}function wtt(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(jy(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let vl=[],Ru=0;const h4=4;let f4=0,Kte=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=Ru+h4;i<vl.length;)vl[i]===o?vl.splice(i,h4):i+=h4;let a=r.indexOf(o);~a&&(r.splice(a,1),--n.lc||n.off())}},notify(o,a){f4++;let i=!vl.length;for(let l of r)vl.push(l,n.value,o,a);if(i){for(Ru=0;Ru<vl.length;Ru+=h4)vl[Ru](vl[Ru+1],vl[Ru+2],vl[Ru+3]);vl.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 ktt=5,m4=6,g4=10;let _tt=(e,r,n,o)=>(e.events=e.events||{},e.events[n+g4]||(e.events[n+g4]=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+g4](),delete e.events[n+g4])}),Ett=1e3,Stt=(e,r)=>_tt(e,n=>{let o=r(n);o&&e.events[m4].push(o)},ktt,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[m4]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[m4])i();e.events[m4]=[]}},Ett)},()=>{e.listen=o,e.off=a}}),Ctt=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===f4)return;a=f4;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=f4)}},l=Kte(void 0),s=l.get;l.get=()=>(i(),s());let c=i;return Stt(l,()=>{let u=e.map(d=>d.listen(c));return i(),()=>{for(let d of u)d()}}),l},Zte=(e,r)=>Ctt(e,r);function Ttt(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 xR=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function Qte(e,{keys:r,deps:n=[e,r]}={}){let o=E.useRef();o.current=e.get();let a=E.useCallback(l=>(xR(o,l)(e.value),r?.length>0?Ttt(e,r,xR(o,l)):e.listen(xR(o,l))),n),i=()=>o.current;return E.useSyncExternalStore(a,i,i)}const Rtt=e=>{const r=Zte(e,s=>Dd.create(s));function n(s){const c=e.get();if(Xte(c,s))return;const u={...s,views:ytt(s.views,d=>{const p=c.views[d.id];return Xte(p,d)?p:d})};e.set(u)}const o=Zte(e,s=>Object.values(s.views));function a(){return Qte(r)}function i(){return Qte(o)}function l(s){const[c,u]=E.useState(e.value?.views[s]??null);return E.useEffect(()=>e.subscribe(d=>{u(d.views[s]??null)}),[s]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:l}},Att=Kte({_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"}}},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"},"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"}},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:"66b801a2ed640c3a6f0eab5db32a9746ced71379",bounds:{x:0,y:0,width:3254,height:2009},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:810,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:482,y:810,width:333,height:180,labelBBox:{x:18,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:1092,y:810,width:320,height:180,labelBBox:{x:72,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:1723,y:810,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:530,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:472,y:530,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:1072,y:530,width:359,height:180,labelBBox:{x:47,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:1829,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:2343,y:935,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:192,width:320,height:180,labelBBox:{x:34,y:44,width:252,height:85}},{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:2343,y:1718,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:489,y:1709,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:489,y:0,width:320,height:180,labelBBox:{x:25,y:54,width:271,height:66}},{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:1091,y:1816,width:321,height:180,labelBBox:{x:47,y:35,width:259,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:1088,y:0,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:1024,y:1030,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:1748,y:142,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:1092,y:1194,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:1064,y:1524,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:1716,y:1091,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:1748,y:1144,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:1703,y:1471,width:410,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:1735,y:1524,width:346,height:180,labelBBox:{x:46,y:53,width:284,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:2343,y:1215,width:320,height:180,labelBBox:{x:19,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:2934,y:1215,width:320,height:180,labelBBox:{x:92,y:53,width:137,height:67}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",dotpos:"e,1091.7,1877.6 808.78,1827.3 892.7,1842.2 995.77,1860.5 1081.3,1875.7",points:[[809,1827],[893,1842],[996,1861],[1081,1876]],labelBBox:{x:913,y:1817,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,489.02,1838.9 329.05,1879.1 377.18,1867 430.23,1853.7 479,1841.5",points:[[329,1879],[377,1867],[430,1854],[479,1841]],labelBBox:{x:390,y:1836,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,1091.5,1932 329.12,1945.8 375.04,1952.4 425.33,1958.5 471.88,1961.8 628.93,1972.9 669.02,1972.1 826.13,1961.8 910.47,1956.3 1003.6,1944.7 1081.2,1933.5",points:[[329,1946],[375,1952],[425,1959],[472,1962],[629,1973],[669,1972],[826,1962],[910,1956],[1004,1945],[1081,1933]],labelBBox:{x:573,y:1939,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,2934.4,1229.4 2663.4,1100.6 2744.3,1139.1 2842.8,1185.9 2925,1225",points:[[2663,1101],[2744,1139],[2843,1186],[2925,1225]],labelBBox:{x:2753,y:1108,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,2934.4,1305 2663.4,1305 2744,1305 2842,1305 2924,1305",points:[[2663,1305],[2744,1305],[2842,1305],[2924,1305]],labelBBox:{x:2714,y:1282,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,489.02,153.9 329.05,218.2 377.28,198.81 430.45,177.45 479.31,157.81",points:[[329,218],[377,199],[430,177],[479,158]],labelBBox:{x:393,y:162,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,1747.9,236.58 329.04,277.43 655.96,268.02 1401.9,246.54 1737.6,236.87",points:[[329,277],[656,268],[1402,247],[1738,237]],labelBBox:{x:877,y:235,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,1088.5,90 808.78,90 891.7,90 993.3,90 1078.2,90",points:[[809,90],[892,90],[993,90],[1078,90]],labelBBox:{x:933,y:66,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,809.02,127.94 1088.5,127.27 1063.8,131.64 1038.5,135.39 1014.4,137.8 953.26,143.91 937.26,144.19 876.13,137.8 857.61,135.86 838.37,133.06 819.29,129.76",points:[[1089,127],[1064,132],[1039,135],[1014,138],[953,144],[937,144],[876,138],[858,136],[838,133],[819,130]],labelBBox:{x:933,y:114,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,1748.1,197.49 1416.1,125.37 1514.2,146.68 1638.8,173.76 1738,195.29",points:[[1416,125],[1514,147],[1639,174],[1738,195]],labelBBox:{x:1528,y:121,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,1748.1,1246.2 1412,1271.9 1510.6,1264.3 1637.3,1254.6 1737.8,1246.9",points:[[1412,1272],[1511,1264],[1637,1255],[1738,1247]],labelBBox:{x:1507,y:1230,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,2343.5,1286 2067.6,1253 2149.5,1262.8 2249.6,1274.8 2333.1,1284.8",points:[[2068,1253],[2150,1263],[2250,1275],[2333,1285]],labelBBox:{x:2162,y:1241,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2021.4,1703.8 2343.7,1809.9 2285,1806.5 2218.9,1797.7 2161.3,1777.8 2115.4,1762 2069.6,1736.1 2029.8,1709.5",points:[[2344,1810],[2285,1806],[2219,1798],[2161,1778],[2115,1762],[2070,1736],[2030,1709]],labelBBox:{x:2202,y:1755,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,1828.8,1703.7 1413,1895 1494.1,1884.4 1592.4,1863.9 1672.9,1823.8 1728.3,1796.2 1780.5,1751.9 1821.5,1711",points:[[1413,1895],[1494,1884],[1592,1864],[1673,1824],[1728,1796],[1781,1752],[1822,1711]],labelBBox:{x:1542,y:1801,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,1734.6,1527 1412,1364.1 1506.6,1411.9 1627,1472.7 1725.4,1522.4",points:[[1412,1364],[1507,1412],[1627,1473],[1725,1522]],labelBBox:{x:1506,y:1387,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,1734.7,1614 1440.2,1614 1529.4,1614 1635.7,1614 1724.3,1614",points:[[1440,1614],[1529,1614],[1636,1614],[1724,1614]],labelBBox:{x:1491,y:1591,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,1907.9,1524.4 1907.9,1324 1907.9,1381.1 1907.9,1455 1907.9,1514",points:[[1908,1324],[1908,1381],[1908,1455],[1908,1514]],labelBBox:{x:1792,y:1412,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,2343.4,1751 2081.1,1666.2 2147.6,1686.8 2224.2,1711 2293.3,1734 2306.4,1738.4 2319.9,1742.9 2333.5,1747.6",points:[[2081,1666],[2148,1687],[2224,1711],[2293,1734],[2306,1738],[2320,1743],[2334,1748]],labelBBox:{x:2179,y:1670,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,2934.5,1372.6 2080.9,1589.2 2235.1,1565 2466.7,1523.6 2663.4,1467.8 2751.3,1442.8 2846.6,1407.7 2925,1376.4",points:[[2081,1589],[2235,1565],[2467,1524],[2663,1468],[2751,1443],[2847,1408],[2925,1376]],labelBBox:{x:2433,y:1445,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,2343.4,1376.4 2057.1,1524.1 2091,1504.4 2127.1,1484 2161.3,1466 2216.8,1436.7 2278.6,1406.7 2334.2,1380.7",points:[[2057,1524],[2091,1504],[2127,1484],[2161,1466],[2217,1437],[2279,1407],[2334,1381]],labelBBox:{x:2195,y:1378,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,1907.9,1323.8 1907.9,1524.2 1907.9,1460.8 1907.9,1397.4 1907.9,1334",points:[[1908,1524],[1908,1461],[1908,1397],[1908,1334]],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:"db1ab2ca9c27120b84803fa873d31f10380e5692",bounds:{x:0,y:0,width:4330,height:2726},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:1044,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:653,y:1044,width:520,height:290,labelBBox:{x:53,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:1423,y:1044,width:520,height:290,labelBBox:{x:136,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:2236,y:1044,width:520,height:290,labelBBox:{x:72,y:46,width:407,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:654,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:653,y:654,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:1423,y:654,width:520,height:290,labelBBox:{x:79,y:58,width:391,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:2436,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:3019,y:1114,width:520,height:290,labelBBox:{x:114,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:233,width:520,height:290,labelBBox:{x:84,y:83,width:352,height:115}},{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:3019,y:2117,width:520,height:290,labelBBox:{x:68,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:653,y:2246,width:520,height:290,labelBBox:{x:146,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:653,y:0,width:520,height:290,labelBBox:{x:72,y:96,width:378,height:89}},{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:1423,y:2380,width:520,height:290,labelBBox:{x:105,y:71,width:339,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:1423,y:0,width:520,height:290,labelBBox:{x:56,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:1372,y:1374,width:1456,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:2236,y:183,width:520,height:290,labelBBox:{x:101,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:1423,y:1538,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:1412,y:1978,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:2204,y:1435,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:2236,y:1488,width:520,height:290,labelBBox:{x:128,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:2204,y:1925,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:2236,y:1978,width:520,height:290,labelBBox:{x:89,y:96,width:373,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:3019,y:1504,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:3810,y:1504,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,1422.9,2479.8 1173.3,2436.2 1250.5,2449.7 1335.2,2464.5 1413,2478.1",points:[[1173,2436],[1250,2450],[1335,2465],[1413,2478]],labelBBox:{x:1260,y:2423,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,653.31,2466.6 519.84,2505.5 560.42,2493.7 602.44,2481.4 643.24,2469.5",points:[[520,2506],[560,2494],[602,2481],[643,2470]],labelBBox:{x:571,y:2463,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,1422.8,2576.1 519.89,2602 564.36,2604.8 610.14,2607.3 653.29,2608.8 884.28,2617 942.98,2627.7 1173.3,2608.8 1251.4,2602.4 1335.5,2590.6 1412.5,2577.8",points:[[520,2602],[564,2605],[610,2607],[653,2609],[884,2617],[943,2628],[1173,2609],[1251,2602],[1336,2591],[1412,2578]],labelBBox:{x:837,y:2586,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,3809.6,1521 3538.4,1387 3622.4,1428.5 3715.7,1474.6 3800.4,1516.5",points:[[3538,1387],[3622,1428],[3716,1475],[3800,1516]],labelBBox:{x:3628,y:1396,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,3809.6,1649 3538.4,1649 3622,1649 3714.8,1649 3799.1,1649",points:[[3538,1649],[3622,1649],[3715,1649],[3799,1649]],labelBBox:{x:3590,y:1626,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"1ndqohb",source:"documentor",target:"docPlatform",label:"[...]",dotpos:"e,653.31,237.67 519.84,285.42 560.5,270.87 602.62,255.8 643.5,241.18",points:[[520,285],[561,271],[603,256],[644,241]],labelBBox:{x:574,y:237,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,2236.7,333.8 519.79,372.22 946.34,362.67 1792.9,343.73 2226.2,334.03",points:[[520,372],[946,363],[1793,344],[2226,334]],labelBBox:{x:1224,y:330,width:136,height:18},parent:null,relations:["otinu1"],color:"gray",line:"dashed",head:"normal"},{id:"jw1mqa",source:"docPlatform",target:"cicdPipeline",label:"[...]",dotpos:"e,1422.9,145.01 1173.3,145.01 1250.3,145.01 1334.9,145.01 1412.5,145.01",points:[[1173,145],[1250,145],[1335,145],[1413,145]],labelBBox:{x:1280,y:121,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,1173.2,188.03 1422.8,188.41 1357.8,194.8 1288.1,197.78 1223.3,192.81 1210.3,191.8 1197,190.57 1183.5,189.15",points:[[1423,188],[1358,195],[1288,198],[1223,193],[1210,192],[1197,191],[1184,189]],labelBBox:{x:1280,y:169,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,2236.5,269.65 1942.4,203.35 2033,223.77 2134.9,246.74 2226.3,267.34",points:[[1942,203],[2033,224],[2135,247],[2226,267]],labelBBox:{x:2042,y:194,width:107,height:18},parent:null,relations:["1hae5vm"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,2236.5,1649 1942.4,1667.1 2033,1661.5 2134.9,1655.2 2226.3,1649.6",points:[[1942,1667],[2033,1661],[2135,1655],[2226,1650]],labelBBox:{x:2020,y:1629,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,3018.7,1643.7 2756.3,1638.3 2837.2,1640 2926.6,1641.8 3008.2,1643.5",points:[[2756,1638],[2837,1640],[2927,1642],[3008,1643]],labelBBox:{x:2837,y:1617,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2756.1,2249.3 3018.5,2287.4 2958.2,2287.9 2894.7,2284 2836.4,2271.8 2813,2266.9 2789.3,2260.3 2765.8,2252.6",points:[[3018,2287],[2958,2288],[2895,2284],[2836,2272],[2813,2267],[2789,2260],[2766,2253]],labelBBox:{x:2877,y:2249,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,2353.2,2267.8 1942.5,2477.6 2023.5,2456.7 2111.2,2427.6 2186.3,2387.8 2242.6,2357.9 2297.6,2316.2 2345.3,2274.8",points:[[1943,2478],[2023,2457],[2111,2428],[2186,2388],[2243,2358],[2298,2316],[2345,2275]],labelBBox:{x:2056,y:2365,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,2236.5,1982.7 1942.4,1823.3 2033.4,1872.6 2135.7,1928 2227.4,1977.7",points:[[1942,1823],[2033,1873],[2136,1928],[2227,1978]],labelBBox:{x:2020,y:1834,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,2236.4,2123 1953.7,2123 2041.3,2123 2138.5,2123 2226,2123",points:[[1954,2123],[2041,2123],[2138,2123],[2226,2123]],labelBBox:{x:2005,y:2100,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,2496.3,1978.3 2496.3,1777.8 2496.3,1837.6 2496.3,1907 2496.3,1967.8",points:[[2496,1778],[2496,1838],[2496,1907],[2496,1968]],labelBBox:{x:2380,y:1866,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,3018.7,2215.9 2756.3,2169.1 2837.4,2183.6 2927,2199.6 3008.7,2214.1",points:[[2756,2169],[2837,2184],[2927,2200],[3009,2214]],labelBBox:{x:2854,y:2161,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,3809.6,1764.4 2756.3,2070.5 2968.8,2024.8 3276.3,1952.4 3538.5,1866.8 3624.9,1838.6 3717.1,1802.8 3800,1768.4",points:[[2756,2071],[2969,2025],[3276,1952],[3539,1867],[3625,1839],[3717,1803],[3800,1768]],labelBBox:{x:3208,y:1844,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,3018.7,1765.3 2673.9,1978.3 2724.9,1939.4 2781.6,1898.8 2836.4,1865 2890.8,1831.4 2951.2,1799 3009.4,1769.9",points:[[2674,1978],[2725,1939],[2782,1899],[2836,1865],[2891,1831],[2951,1799],[3009,1770]],labelBBox:{x:2870,y:1769,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,2496.3,1777.9 2496.3,1978 2496.3,1914.7 2496.3,1851.4 2496.3,1788",points:[[2496,1978],[2496,1915],[2496,1851],[2496,1788]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],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:Ntt}=Rtt(Att);function Dtt({children:e}){const r=Ntt();return y.jsx(Cet,{likec4model:r,children:e})}function Ptt(e){return y.jsx(Dtt,{children:y.jsx(Jet,{renderIcon:mtt,...e})})}var wR={exports:{}},Fy={},kR={exports:{}},_R={};/**
* @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 Jte;function $tt(){return Jte||(Jte=1,(function(e){function r(I,q){var V=I.length;I.push(q);e:for(;0<V;){var G=V-1>>>1,F=I[G];if(0<a(F,q))I[G]=q,I[V]=F,V=G;else break e}}function n(I){return I.length===0?null:I[0]}function o(I){if(I.length===0)return null;var q=I[0],V=I.pop();if(V!==q){I[0]=V;e:for(var G=0,F=I.length,J=F>>>1;G<J;){var Q=2*(G+1)-1,z=I[Q],W=Q+1,X=I[W];if(0>a(z,V))W<F&&0>a(X,z)?(I[G]=X,I[W]=V,G=W):(I[G]=z,I[Q]=V,G=Q);else if(W<F&&0>a(X,V))I[G]=X,I[W]=V,G=W;else break e}}return q}function a(I,q){var V=I.sortIndex-q.sortIndex;return V!==0?V:I.id-q.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(I){for(var q=n(u);q!==null;){if(q.callback===null)o(u);else if(q.startTime<=I)o(u),q.sortIndex=q.expirationTime,r(c,q);else break;q=n(u)}}function R(I){if(x=!1,T(I),!b)if(n(c)!==null)b=!0,A||(A=!0,L());else{var q=n(u);q!==null&&U(R,q.startTime-I)}}var A=!1,D=-1,N=5,$=-1;function M(){return w?!0:!(e.unstable_now()-$<N)}function j(){if(w=!1,A){var I=e.unstable_now();$=I;var q=!0;try{e:{b=!1,x&&(x=!1,C(D),D=-1),g=!0;var V=f;try{t:{for(T(I),p=n(c);p!==null&&!(p.expirationTime>I&&M());){var G=p.callback;if(typeof G=="function"){p.callback=null,f=p.priorityLevel;var F=G(p.expirationTime<=I);if(I=e.unstable_now(),typeof F=="function"){p.callback=F,T(I),q=!0;break t}p===n(c)&&o(c),T(I)}else o(c);p=n(c)}if(p!==null)q=!0;else{var J=n(u);J!==null&&U(R,J.startTime-I),q=!1}}break e}finally{p=null,f=V,g=!1}q=void 0}}finally{q?L():A=!1}}}var L;if(typeof _=="function")L=function(){_(j)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,O=Y.port2;Y.port1.onmessage=j,L=function(){O.postMessage(null)}}else L=function(){k(j,0)};function U(I,q){D=k(function(){I(e.unstable_now())},q)}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(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(I){switch(f){case 1:case 2:case 3:var q=3;break;default:q=f}var V=f;f=q;try{return I()}finally{f=V}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(I,q){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var V=f;f=I;try{return q()}finally{f=V}},e.unstable_scheduleCallback=function(I,q,V){var G=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?G+V:G):V=G,I){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=V+F,I={id:d++,callback:q,priorityLevel:I,startTime:V,expirationTime:F,sortIndex:-1},V>G?(I.sortIndex=V,r(u,I),n(c)===null&&I===n(u)&&(x?(C(D),D=-1):x=!0,U(R,V-G))):(I.sortIndex=F,r(c,I),b||g||(b=!0,A||(A=!0,L()))),I},e.unstable_shouldYield=M,e.unstable_wrapCallback=function(I){var q=f;return function(){var V=f;f=q;try{return I.apply(this,arguments)}finally{f=V}}}})(_R)),_R}var ere;function Mtt(){return ere||(ere=1,kR.exports=$tt()),kR.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 tre;function Ott(){if(tre)return Fy;tre=1;var e=Mtt(),r=U6(),n=CO();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(i(h)!==h)throw Error(o(188))}function c(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,S=m;;){var P=v.return;if(P===null)break;var B=P.alternate;if(B===null){if(S=P.return,S!==null){v=S;continue}break}if(P.child===B.child){for(B=P.child;B;){if(B===v)return s(P),h;if(B===S)return s(P),m;B=B.sibling}throw Error(o(188))}if(v.return!==S.return)v=P,S=B;else{for(var K=!1,te=P.child;te;){if(te===v){K=!0,v=P,S=B;break}if(te===S){K=!0,S=P,v=B;break}te=te.sibling}if(!K){for(te=B.child;te;){if(te===v){K=!0,v=B,S=P;break}if(te===S){K=!0,S=B,v=P;break}te=te.sibling}if(!K)throw Error(o(189))}}if(v.alternate!==S)throw Error(o(190))}if(v.tag!==3)throw Error(o(188));return v.stateNode.current===v?h:m}function u(h){var m=h.tag;if(m===5||m===26||m===27||m===6)return h;for(h=h.child;h!==null;){if(m=u(h),m!==null)return m;h=h.sibling}return null}var d=Object.assign,p=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),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"),M=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 O(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 b:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case R:return"Suspense";case A:return"SuspenseList";case $:return"Activity"}if(typeof h=="object")switch(h.$$typeof){case g:return"Portal";case _:return(h.displayName||"Context")+".Provider";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:O(h.type)||"Memo";case N:m=h._payload,h=h._init;try{return O(h(m))}catch{}}return null}var U=Array.isArray,I=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},G=[],F=-1;function J(h){return{current:h}}function Q(h){0>F||(h.current=G[F],G[F]=null,F--)}function z(h,m){F++,G[F]=h.current,h.current=m}var W=J(null),X=J(null),Z=J(null),oe=J(null);function ee(h,m){switch(z(Z,m),z(X,h),z(W,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?Gge(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=Gge(m),h=Xge(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}Q(W),z(W,h)}function re(){Q(W),Q(X),Q(Z)}function pe(h){h.memoizedState!==null&&z(oe,h);var m=W.current,v=Xge(m,h.type);m!==v&&(z(X,h),z(W,v))}function Ce(h){X.current===h&&(Q(W),Q(X)),oe.current===h&&(Q(oe),Bv._currentValue=V)}var ce=Object.prototype.hasOwnProperty,de=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,Oe=e.unstable_shouldYield,Xe=e.unstable_requestPaint,Ge=e.unstable_now,_t=e.unstable_getCurrentPriorityLevel,Qe=e.unstable_ImmediatePriority,St=e.unstable_UserBlockingPriority,Ke=e.unstable_NormalPriority,We=e.unstable_LowPriority,st=e.unstable_IdlePriority,Et=e.log,Pn=e.unstable_setDisableYieldValue,_e=null,we=null;function rt(h){if(typeof Et=="function"&&Pn(h),we&&typeof we.setStrictMode=="function")try{we.setStrictMode(_e,h)}catch{}}var at=Math.clz32?Math.clz32:Pt,Dt=Math.log,Wr=Math.LN2;function Pt(h){return h>>>=0,h===0?32:31-(Dt(h)/Wr|0)|0}var Tr=256,vo=4194304;function $n(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:case 262144:case 524288:case 1048576:case 2097152:return h&4194048;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 Fr(h,m,v){var S=h.pendingLanes;if(S===0)return 0;var P=0,B=h.suspendedLanes,K=h.pingedLanes;h=h.warmLanes;var te=S&134217727;return te!==0?(S=te&~B,S!==0?P=$n(S):(K&=te,K!==0?P=$n(K):v||(v=te&~h,v!==0&&(P=$n(v))))):(te=S&~B,te!==0?P=$n(te):K!==0?P=$n(K):v||(v=S&~h,v!==0&&(P=$n(v)))),P===0?0:m!==0&&m!==P&&(m&B)===0&&(B=P&-P,v=m&-m,B>=v||B===32&&(v&4194048)!==0)?m:P}function no(h,m){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&m)===0}function ur(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 ha(){var h=Tr;return Tr<<=1,(Tr&4194048)===0&&(Tr=256),h}function _s(){var h=vo;return vo<<=1,(vo&62914560)===0&&(vo=4194304),h}function Qp(h){for(var m=[],v=0;31>v;v++)m.push(h);return m}function Cc(h,m){h.pendingLanes|=m,m!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function qb(h,m,v,S,P,B){var K=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 te=h.entanglements,se=h.expirationTimes,ge=h.hiddenUpdates;for(v=K&~v;0<v;){var Te=31-at(v),Ne=1<<Te;te[Te]=0,se[Te]=-1;var ve=ge[Te];if(ve!==null)for(ge[Te]=null,Te=0;Te<ve.length;Te++){var ke=ve[Te];ke!==null&&(ke.lane&=-536870913)}v&=~Ne}S!==0&&Sg(h,S,0),B!==0&&P===0&&h.tag!==0&&(h.suspendedLanes|=B&~(K&~m))}function Sg(h,m,v){h.pendingLanes|=m,h.suspendedLanes&=~m;var S=31-at(m);h.entangledLanes|=m,h.entanglements[S]=h.entanglements[S]|1073741824|v&4194090}function Hu(h,m){var v=h.entangledLanes|=m;for(h=h.entanglements;v;){var S=31-at(v),P=1<<S;P&m|h[S]&m&&(h[S]|=m),v&=~P}}function Jp(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 eh(h){return h&=-h,2<h?8<h?(h&134217727)!==0?32:268435456:8:2}function Cg(){var h=q.p;return h!==0?h:(h=window.event,h===void 0?32:f1e(h.type))}function Ub(h,m){var v=q.p;try{return q.p=h,m()}finally{q.p=v}}var Ti=Math.random().toString(36).slice(2),Mn="__reactFiber$"+Ti,oo="__reactProps$"+Ti,Es="__reactContainer$"+Ti,th="__reactEvents$"+Ti,Vb="__reactListeners$"+Ti,Yb="__reactHandles$"+Ti,Tg="__reactResources$"+Ti,Tc="__reactMarker$"+Ti;function rh(h){delete h[Mn],delete h[oo],delete h[th],delete h[Vb],delete h[Yb]}function Ss(h){var m=h[Mn];if(m)return m;for(var v=h.parentNode;v;){if(m=v[Es]||v[Mn]){if(v=m.alternate,m.child!==null||v!==null&&v.child!==null)for(h=Jge(h);h!==null;){if(v=h[Mn])return v;h=Jge(h)}return m}h=v,v=h.parentNode}return null}function Ri(h){if(h=h[Mn]||h[Es]){var m=h.tag;if(m===5||m===6||m===13||m===26||m===27||m===3)return h}return null}function zl(h){var m=h.tag;if(m===5||m===26||m===27||m===6)return h.stateNode;throw Error(o(33))}function Ai(h){var m=h[Tg];return m||(m=h[Tg]={hoistableStyles:new Map,hoistableScripts:new Map}),m}function tn(h){h[Tc]=!0}var Rg=new Set,Ag={};function Bl(h,m){Cs(h,m),Cs(h+"Capture",m)}function Cs(h,m){for(Ag[h]=m,h=0;h<m.length;h++)Rg.add(m[h])}var Wb=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]*$"),qu={},Ng={};function Gb(h){return ce.call(Ng,h)?!0:ce.call(qu,h)?!1:Wb.test(h)?Ng[h]=!0:(qu[h]=!0,!1)}function Uu(h,m,v){if(Gb(m))if(v===null)h.removeAttribute(m);else{switch(typeof v){case"undefined":case"function":case"symbol":h.removeAttribute(m);return;case"boolean":var S=m.toLowerCase().slice(0,5);if(S!=="data-"&&S!=="aria-"){h.removeAttribute(m);return}}h.setAttribute(m,""+v)}}function Vu(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 Fa(h,m,v,S){if(S===null)h.removeAttribute(v);else{switch(typeof S){case"undefined":case"function":case"symbol":case"boolean":h.removeAttribute(v);return}h.setAttributeNS(m,v,""+S)}}var nh,Dg;function Ni(h){if(nh===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);nh=m&&m[1]||"",Dg=-1<v.stack.indexOf(`
at`)?" (<anonymous>)":-1<v.stack.indexOf("@")?"@unknown:0:0":""}return`
`+nh+h+Dg}var oh=!1;function ah(h,m){if(!h||oh)return"";oh=!0;var v=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var S={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 ve=ke}Reflect.construct(h,[],Ne)}else{try{Ne.call()}catch(ke){ve=ke}h.call(Ne.prototype)}}else{try{throw Error()}catch(ke){ve=ke}(Ne=h())&&typeof Ne.catch=="function"&&Ne.catch(function(){})}}catch(ke){if(ke&&ve&&typeof ke.stack=="string")return[ke.stack,ve.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var P=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");P&&P.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var B=S.DetermineComponentFrameRoot(),K=B[0],te=B[1];if(K&&te){var se=K.split(`
`),ge=te.split(`
`);for(P=S=0;S<se.length&&!se[S].includes("DetermineComponentFrameRoot");)S++;for(;P<ge.length&&!ge[P].includes("DetermineComponentFrameRoot");)P++;if(S===se.length||P===ge.length)for(S=se.length-1,P=ge.length-1;1<=S&&0<=P&&se[S]!==ge[P];)P--;for(;1<=S&&0<=P;S--,P--)if(se[S]!==ge[P]){if(S!==1||P!==1)do if(S--,P--,0>P||se[S]!==ge[P]){var Te=`
`+se[S].replace(" at new "," at ");return h.displayName&&Te.includes("<anonymous>")&&(Te=Te.replace("<anonymous>",h.displayName)),Te}while(1<=S&&0<=P);break}}}finally{oh=!1,Error.prepareStackTrace=v}return(v=h?h.displayName||h.name:"")?Ni(v):""}function Xb(h){switch(h.tag){case 26:case 27:case 5:return Ni(h.type);case 16:return Ni("Lazy");case 13:return Ni("Suspense");case 19:return Ni("SuspenseList");case 0:case 15:return ah(h.type,!1);case 11:return ah(h.type.render,!1);case 1:return ah(h.type,!0);case 31:return Ni("Activity");default:return""}}function Pg(h){try{var m="";do m+=Xb(h),h=h.return;while(h);return m}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}function Lo(h){switch(typeof h){case"bigint":case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function $g(h){var m=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function Kb(h){var m=$g(h)?"checked":"value",v=Object.getOwnPropertyDescriptor(h.constructor.prototype,m),S=""+h[m];if(!h.hasOwnProperty(m)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var P=v.get,B=v.set;return Object.defineProperty(h,m,{configurable:!0,get:function(){return P.call(this)},set:function(K){S=""+K,B.call(this,K)}}),Object.defineProperty(h,m,{enumerable:v.enumerable}),{getValue:function(){return S},setValue:function(K){S=""+K},stopTracking:function(){h._valueTracker=null,delete h[m]}}}}function Yu(h){h._valueTracker||(h._valueTracker=Kb(h))}function Wu(h){if(!h)return!1;var m=h._valueTracker;if(!m)return!0;var v=m.getValue(),S="";return h&&(S=$g(h)?h.checked?"true":"false":h.value),h=S,h!==v?(m.setValue(h),!0):!1}function Gu(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 Zb=/[\n"\\]/g;function zo(h){return h.replace(Zb,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function jl(h,m,v,S,P,B,K,te){h.name="",K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?h.type=K:h.removeAttribute("type"),m!=null?K==="number"?(m===0&&h.value===""||h.value!=m)&&(h.value=""+Lo(m)):h.value!==""+Lo(m)&&(h.value=""+Lo(m)):K!=="submit"&&K!=="reset"||h.removeAttribute("value"),m!=null?ih(h,K,Lo(m)):v!=null?ih(h,K,Lo(v)):S!=null&&h.removeAttribute("value"),P==null&&B!=null&&(h.defaultChecked=!!B),P!=null&&(h.checked=P&&typeof P!="function"&&typeof P!="symbol"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?h.name=""+Lo(te):h.removeAttribute("name")}function Mg(h,m,v,S,P,B,K,te){if(B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(h.type=B),m!=null||v!=null){if(!(B!=="submit"&&B!=="reset"||m!=null))return;v=v!=null?""+Lo(v):"",m=m!=null?""+Lo(m):v,te||m===h.value||(h.value=m),h.defaultValue=m}S=S??P,S=typeof S!="function"&&typeof S!="symbol"&&!!S,h.checked=te?h.checked:!!S,h.defaultChecked=!!S,K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"&&(h.name=K)}function ih(h,m,v){m==="number"&&Gu(h.ownerDocument)===h||h.defaultValue===""+v||(h.defaultValue=""+v)}function Di(h,m,v,S){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&&S&&(h[v].defaultSelected=!0)}else{for(v=""+Lo(v),m=null,P=0;P<h.length;P++){if(h[P].value===v){h[P].selected=!0,S&&(h[P].defaultSelected=!0);return}m!==null||h[P].disabled||(m=h[P])}m!==null&&(m.selected=!0)}}function Yhe(h,m,v){if(m!=null&&(m=""+Lo(m),m!==h.value&&(h.value=m),v==null)){h.defaultValue!==m&&(h.defaultValue=m);return}h.defaultValue=v!=null?""+Lo(v):""}function Whe(h,m,v,S){if(m==null){if(S!=null){if(v!=null)throw Error(o(92));if(U(S)){if(1<S.length)throw Error(o(93));S=S[0]}v=S}v==null&&(v=""),m=v}v=Lo(m),h.defaultValue=v,S=h.textContent,S===v&&S!==""&&S!==null&&(h.value=S)}function Og(h,m){if(m){var v=h.firstChild;if(v&&v===h.lastChild&&v.nodeType===3){v.nodeValue=m;return}}h.textContent=m}var l5t=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 Ghe(h,m,v){var S=m.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?S?h.setProperty(m,""):m==="float"?h.cssFloat="":h[m]="":S?h.setProperty(m,v):typeof v!="number"||v===0||l5t.has(m)?m==="float"?h.cssFloat=v:h[m]=(""+v).trim():h[m]=v+"px"}function Xhe(h,m,v){if(m!=null&&typeof m!="object")throw Error(o(62));if(h=h.style,v!=null){for(var S in v)!v.hasOwnProperty(S)||m!=null&&m.hasOwnProperty(S)||(S.indexOf("--")===0?h.setProperty(S,""):S==="float"?h.cssFloat="":h[S]="");for(var P in m)S=m[P],m.hasOwnProperty(P)&&v[P]!==S&&Ghe(h,P,S)}else for(var B in m)m.hasOwnProperty(B)&&Ghe(h,B,m[B])}function y$(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 s5t=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"]]),c5t=/^[\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 Ok(h){return c5t.test(""+h)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":h}var b$=null;function v$(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var Ig=null,Lg=null;function Khe(h){var m=Ri(h);if(m&&(h=m.stateNode)){var v=h[oo]||null;e:switch(h=m.stateNode,m.type){case"input":if(jl(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="'+zo(""+m)+'"][type="radio"]'),m=0;m<v.length;m++){var S=v[m];if(S!==h&&S.form===h.form){var P=S[oo]||null;if(!P)throw Error(o(90));jl(S,P.value,P.defaultValue,P.defaultValue,P.checked,P.defaultChecked,P.type,P.name)}}for(m=0;m<v.length;m++)S=v[m],S.form===h.form&&Wu(S)}break e;case"textarea":Yhe(h,v.value,v.defaultValue);break e;case"select":m=v.value,m!=null&&Di(h,!!v.multiple,m,!1)}}}var x$=!1;function Zhe(h,m,v){if(x$)return h(m,v);x$=!0;try{var S=h(m);return S}finally{if(x$=!1,(Ig!==null||Lg!==null)&&(x6(),Ig&&(m=Ig,h=Lg,Lg=Ig=null,Khe(m),h)))for(m=0;m<h.length;m++)Khe(h[m])}}function Qb(h,m){var v=h.stateNode;if(v===null)return null;var S=v[oo]||null;if(S===null)return null;v=S[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":(S=!S.disabled)||(h=h.type,S=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!S;break e;default:h=!1}if(h)return null;if(v&&typeof v!="function")throw Error(o(231,m,typeof v));return v}var Rc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w$=!1;if(Rc)try{var Jb={};Object.defineProperty(Jb,"passive",{get:function(){w$=!0}}),window.addEventListener("test",Jb,Jb),window.removeEventListener("test",Jb,Jb)}catch{w$=!1}var Xu=null,k$=null,Ik=null;function Qhe(){if(Ik)return Ik;var h,m=k$,v=m.length,S,P="value"in Xu?Xu.value:Xu.textContent,B=P.length;for(h=0;h<v&&m[h]===P[h];h++);var K=v-h;for(S=1;S<=K&&m[v-S]===P[B-S];S++);return Ik=P.slice(h,1<S?1-S:void 0)}function Lk(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 zk(){return!0}function Jhe(){return!1}function fa(h){function m(v,S,P,B,K){this._reactName=v,this._targetInst=P,this.type=S,this.nativeEvent=B,this.target=K,this.currentTarget=null;for(var te in h)h.hasOwnProperty(te)&&(v=h[te],this[te]=v?v(B):B[te]);return this.isDefaultPrevented=(B.defaultPrevented!=null?B.defaultPrevented:B.returnValue===!1)?zk:Jhe,this.isPropagationStopped=Jhe,this}return d(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=zk)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=zk)},persist:function(){},isPersistent:zk}),m}var lh={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bk=fa(lh),ev=d({},lh,{view:0,detail:0}),u5t=fa(ev),_$,E$,tv,jk=d({},ev,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:C$,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!==tv&&(tv&&h.type==="mousemove"?(_$=h.screenX-tv.screenX,E$=h.screenY-tv.screenY):E$=_$=0,tv=h),_$)},movementY:function(h){return"movementY"in h?h.movementY:E$}}),efe=fa(jk),d5t=d({},jk,{dataTransfer:0}),p5t=fa(d5t),h5t=d({},ev,{relatedTarget:0}),S$=fa(h5t),f5t=d({},lh,{animationName:0,elapsedTime:0,pseudoElement:0}),m5t=fa(f5t),g5t=d({},lh,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),y5t=fa(g5t),b5t=d({},lh,{data:0}),tfe=fa(b5t),v5t={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},x5t={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"},w5t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k5t(h){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(h):(h=w5t[h])?!!m[h]:!1}function C$(){return k5t}var _5t=d({},ev,{key:function(h){if(h.key){var m=v5t[h.key]||h.key;if(m!=="Unidentified")return m}return h.type==="keypress"?(h=Lk(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?x5t[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:C$,charCode:function(h){return h.type==="keypress"?Lk(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?Lk(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),E5t=fa(_5t),S5t=d({},jk,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rfe=fa(S5t),C5t=d({},ev,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:C$}),T5t=fa(C5t),R5t=d({},lh,{propertyName:0,elapsedTime:0,pseudoElement:0}),A5t=fa(R5t),N5t=d({},jk,{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}),D5t=fa(N5t),P5t=d({},lh,{newState:0,oldState:0}),$5t=fa(P5t),M5t=[9,13,27,32],T$=Rc&&"CompositionEvent"in window,rv=null;Rc&&"documentMode"in document&&(rv=document.documentMode);var O5t=Rc&&"TextEvent"in window&&!rv,nfe=Rc&&(!T$||rv&&8<rv&&11>=rv),ofe=" ",afe=!1;function ife(h,m){switch(h){case"keyup":return M5t.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lfe(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var zg=!1;function I5t(h,m){switch(h){case"compositionend":return lfe(m);case"keypress":return m.which!==32?null:(afe=!0,ofe);case"textInput":return h=m.data,h===ofe&&afe?null:h;default:return null}}function L5t(h,m){if(zg)return h==="compositionend"||!T$&&ife(h,m)?(h=Qhe(),Ik=k$=Xu=null,zg=!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 nfe&&m.locale!=="ko"?null:m.data;default:return null}}var z5t={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"?!!z5t[h.type]:m==="textarea"}function cfe(h,m,v,S){Ig?Lg?Lg.push(S):Lg=[S]:Ig=S,m=C6(m,"onChange"),0<m.length&&(v=new Bk("onChange","change",null,v,S),h.push({event:v,listeners:m}))}var nv=null,ov=null;function B5t(h){qge(h,0)}function Fk(h){var m=zl(h);if(Wu(m))return h}function ufe(h,m){if(h==="change")return m}var dfe=!1;if(Rc){var R$;if(Rc){var A$="oninput"in document;if(!A$){var pfe=document.createElement("div");pfe.setAttribute("oninput","return;"),A$=typeof pfe.oninput=="function"}R$=A$}else R$=!1;dfe=R$&&(!document.documentMode||9<document.documentMode)}function hfe(){nv&&(nv.detachEvent("onpropertychange",ffe),ov=nv=null)}function ffe(h){if(h.propertyName==="value"&&Fk(ov)){var m=[];cfe(m,ov,h,v$(h)),Zhe(B5t,m)}}function j5t(h,m,v){h==="focusin"?(hfe(),nv=m,ov=v,nv.attachEvent("onpropertychange",ffe)):h==="focusout"&&hfe()}function F5t(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return Fk(ov)}function H5t(h,m){if(h==="click")return Fk(m)}function q5t(h,m){if(h==="input"||h==="change")return Fk(m)}function U5t(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var Ha=typeof Object.is=="function"?Object.is:U5t;function av(h,m){if(Ha(h,m))return!0;if(typeof h!="object"||h===null||typeof m!="object"||m===null)return!1;var v=Object.keys(h),S=Object.keys(m);if(v.length!==S.length)return!1;for(S=0;S<v.length;S++){var P=v[S];if(!ce.call(m,P)||!Ha(h[P],m[P]))return!1}return!0}function mfe(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function gfe(h,m){var v=mfe(h);h=0;for(var S;v;){if(v.nodeType===3){if(S=h+v.textContent.length,h<=m&&S>=m)return{node:v,offset:m-h};h=S}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=mfe(v)}}function yfe(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?yfe(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function bfe(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var m=Gu(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=Gu(h.document)}return m}function N$(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 V5t=Rc&&"documentMode"in document&&11>=document.documentMode,Bg=null,D$=null,iv=null,P$=!1;function vfe(h,m,v){var S=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;P$||Bg==null||Bg!==Gu(S)||(S=Bg,"selectionStart"in S&&N$(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),iv&&av(iv,S)||(iv=S,S=C6(D$,"onSelect"),0<S.length&&(m=new Bk("onSelect","select",null,m,v),h.push({event:m,listeners:S}),m.target=Bg)))}function sh(h,m){var v={};return v[h.toLowerCase()]=m.toLowerCase(),v["Webkit"+h]="webkit"+m,v["Moz"+h]="moz"+m,v}var jg={animationend:sh("Animation","AnimationEnd"),animationiteration:sh("Animation","AnimationIteration"),animationstart:sh("Animation","AnimationStart"),transitionrun:sh("Transition","TransitionRun"),transitionstart:sh("Transition","TransitionStart"),transitioncancel:sh("Transition","TransitionCancel"),transitionend:sh("Transition","TransitionEnd")},$$={},xfe={};Rc&&(xfe=document.createElement("div").style,"AnimationEvent"in window||(delete jg.animationend.animation,delete jg.animationiteration.animation,delete jg.animationstart.animation),"TransitionEvent"in window||delete jg.transitionend.transition);function ch(h){if($$[h])return $$[h];if(!jg[h])return h;var m=jg[h],v;for(v in m)if(m.hasOwnProperty(v)&&v in xfe)return $$[h]=m[v];return h}var wfe=ch("animationend"),kfe=ch("animationiteration"),_fe=ch("animationstart"),Y5t=ch("transitionrun"),W5t=ch("transitionstart"),G5t=ch("transitioncancel"),Efe=ch("transitionend"),Sfe=new Map,M$="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(" ");M$.push("scrollEnd");function Fl(h,m){Sfe.set(h,m),Bl(m,[h])}var Cfe=new WeakMap;function Pi(h,m){if(typeof h=="object"&&h!==null){var v=Cfe.get(h);return v!==void 0?v:(m={value:h,source:m,stack:Pg(m)},Cfe.set(h,m),m)}return{value:h,source:m,stack:Pg(m)}}var $i=[],Fg=0,O$=0;function Hk(){for(var h=Fg,m=O$=Fg=0;m<h;){var v=$i[m];$i[m++]=null;var S=$i[m];$i[m++]=null;var P=$i[m];$i[m++]=null;var B=$i[m];if($i[m++]=null,S!==null&&P!==null){var K=S.pending;K===null?P.next=P:(P.next=K.next,K.next=P),S.pending=P}B!==0&&Tfe(v,P,B)}}function qk(h,m,v,S){$i[Fg++]=h,$i[Fg++]=m,$i[Fg++]=v,$i[Fg++]=S,O$|=S,h.lanes|=S,h=h.alternate,h!==null&&(h.lanes|=S)}function I$(h,m,v,S){return qk(h,m,v,S),Uk(h)}function Hg(h,m){return qk(h,null,null,m),Uk(h)}function Tfe(h,m,v){h.lanes|=v;var S=h.alternate;S!==null&&(S.lanes|=v);for(var P=!1,B=h.return;B!==null;)B.childLanes|=v,S=B.alternate,S!==null&&(S.childLanes|=v),B.tag===22&&(h=B.stateNode,h===null||h._visibility&1||(P=!0)),h=B,B=B.return;return h.tag===3?(B=h.stateNode,P&&m!==null&&(P=31-at(v),h=B.hiddenUpdates,S=h[P],S===null?h[P]=[m]:S.push(m),m.lane=v|536870912),B):null}function Uk(h){if(50<Dv)throw Dv=0,HM=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 X5t(h,m,v,S){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=S,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function qa(h,m,v,S){return new X5t(h,m,v,S)}function L$(h){return h=h.prototype,!(!h||!h.isReactComponent)}function Ac(h,m){var v=h.alternate;return v===null?(v=qa(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 Rfe(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 Vk(h,m,v,S,P,B){var K=0;if(S=h,typeof h=="function")L$(h)&&(K=1);else if(typeof h=="string")K=Zkt(h,v,W.current)?26:h==="html"||h==="head"||h==="body"?27:5;else e:switch(h){case $:return h=qa(31,v,m,P),h.elementType=$,h.lanes=B,h;case b:return uh(v.children,P,B,m);case x:K=8,P|=24;break;case w:return h=qa(12,v,m,P|2),h.elementType=w,h.lanes=B,h;case R:return h=qa(13,v,m,P),h.elementType=R,h.lanes=B,h;case A:return h=qa(19,v,m,P),h.elementType=A,h.lanes=B,h;default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case k:case _:K=10;break e;case C:K=9;break e;case T:K=11;break e;case D:K=14;break e;case N:K=16,S=null;break e}K=29,v=Error(o(130,h===null?"null":typeof h,"")),S=null}return m=qa(K,v,m,P),m.elementType=h,m.type=S,m.lanes=B,m}function uh(h,m,v,S){return h=qa(7,h,S,m),h.lanes=v,h}function z$(h,m,v){return h=qa(6,h,null,m),h.lanes=v,h}function B$(h,m,v){return m=qa(4,h.children!==null?h.children:[],h.key,m),m.lanes=v,m.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},m}var Ug=[],Vg=0,Yk=null,Wk=0,Mi=[],Oi=0,dh=null,Nc=1,Dc="";function ph(h,m){Ug[Vg++]=Wk,Ug[Vg++]=Yk,Yk=h,Wk=m}function Afe(h,m,v){Mi[Oi++]=Nc,Mi[Oi++]=Dc,Mi[Oi++]=dh,dh=h;var S=Nc;h=Dc;var P=32-at(S)-1;S&=~(1<<P),v+=1;var B=32-at(m)+P;if(30<B){var K=P-P%5;B=(S&(1<<K)-1).toString(32),S>>=K,P-=K,Nc=1<<32-at(m)+P|v<<P|S,Dc=B+h}else Nc=1<<B|v<<P|S,Dc=h}function j$(h){h.return!==null&&(ph(h,1),Afe(h,1,0))}function F$(h){for(;h===Yk;)Yk=Ug[--Vg],Ug[Vg]=null,Wk=Ug[--Vg],Ug[Vg]=null;for(;h===dh;)dh=Mi[--Oi],Mi[Oi]=null,Dc=Mi[--Oi],Mi[Oi]=null,Nc=Mi[--Oi],Mi[Oi]=null}var Wo=null,rn=null,ir=!1,hh=null,Ts=!1,H$=Error(o(519));function fh(h){var m=Error(o(418,""));throw cv(Pi(m,h)),H$}function Nfe(h){var m=h.stateNode,v=h.type,S=h.memoizedProps;switch(m[Mn]=h,m[oo]=S,v){case"dialog":Xt("cancel",m),Xt("close",m);break;case"iframe":case"object":case"embed":Xt("load",m);break;case"video":case"audio":for(v=0;v<$v.length;v++)Xt($v[v],m);break;case"source":Xt("error",m);break;case"img":case"image":case"link":Xt("error",m),Xt("load",m);break;case"details":Xt("toggle",m);break;case"input":Xt("invalid",m),Mg(m,S.value,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name,!0),Yu(m);break;case"select":Xt("invalid",m);break;case"textarea":Xt("invalid",m),Whe(m,S.value,S.defaultValue,S.children),Yu(m)}v=S.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||m.textContent===""+v||S.suppressHydrationWarning===!0||Wge(m.textContent,v)?(S.popover!=null&&(Xt("beforetoggle",m),Xt("toggle",m)),S.onScroll!=null&&Xt("scroll",m),S.onScrollEnd!=null&&Xt("scrollend",m),S.onClick!=null&&(m.onclick=T6),m=!0):m=!1,m||fh(h)}function Dfe(h){for(Wo=h.return;Wo;)switch(Wo.tag){case 5:case 13:Ts=!1;return;case 27:case 3:Ts=!0;return;default:Wo=Wo.return}}function lv(h){if(h!==Wo)return!1;if(!ir)return Dfe(h),ir=!0,!1;var m=h.tag,v;if((v=m!==3&&m!==27)&&((v=m===5)&&(v=h.type,v=!(v!=="form"&&v!=="button")||oO(h.type,h.memoizedProps)),v=!v),v&&rn&&fh(h),Dfe(h),m===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(317));e:{for(h=h.nextSibling,m=0;h;){if(h.nodeType===8)if(v=h.data,v==="/$"){if(m===0){rn=ql(h.nextSibling);break e}m--}else v!=="$"&&v!=="$!"&&v!=="$?"||m++;h=h.nextSibling}rn=null}}else m===27?(m=rn,dd(h.type)?(h=sO,sO=null,rn=h):rn=m):rn=Wo?ql(h.stateNode.nextSibling):null;return!0}function sv(){rn=Wo=null,ir=!1}function Pfe(){var h=hh;return h!==null&&(ya===null?ya=h:ya.push.apply(ya,h),hh=null),h}function cv(h){hh===null?hh=[h]:hh.push(h)}var q$=J(null),mh=null,Pc=null;function Ku(h,m,v){z(q$,m._currentValue),m._currentValue=v}function $c(h){h._currentValue=q$.current,Q(q$)}function U$(h,m,v){for(;h!==null;){var S=h.alternate;if((h.childLanes&m)!==m?(h.childLanes|=m,S!==null&&(S.childLanes|=m)):S!==null&&(S.childLanes&m)!==m&&(S.childLanes|=m),h===v)break;h=h.return}}function V$(h,m,v,S){var P=h.child;for(P!==null&&(P.return=h);P!==null;){var B=P.dependencies;if(B!==null){var K=P.child;B=B.firstContext;e:for(;B!==null;){var te=B;B=P;for(var se=0;se<m.length;se++)if(te.context===m[se]){B.lanes|=v,te=B.alternate,te!==null&&(te.lanes|=v),U$(B.return,v,h),S||(K=null);break e}B=te.next}}else if(P.tag===18){if(K=P.return,K===null)throw Error(o(341));K.lanes|=v,B=K.alternate,B!==null&&(B.lanes|=v),U$(K,v,h),K=null}else K=P.child;if(K!==null)K.return=P;else for(K=P;K!==null;){if(K===h){K=null;break}if(P=K.sibling,P!==null){P.return=K.return,K=P;break}K=K.return}P=K}}function uv(h,m,v,S){h=null;for(var P=m,B=!1;P!==null;){if(!B){if((P.flags&524288)!==0)B=!0;else if((P.flags&262144)!==0)break}if(P.tag===10){var K=P.alternate;if(K===null)throw Error(o(387));if(K=K.memoizedProps,K!==null){var te=P.type;Ha(P.pendingProps.value,K.value)||(h!==null?h.push(te):h=[te])}}else if(P===oe.current){if(K=P.alternate,K===null)throw Error(o(387));K.memoizedState.memoizedState!==P.memoizedState.memoizedState&&(h!==null?h.push(Bv):h=[Bv])}P=P.return}h!==null&&V$(m,h,v,S),m.flags|=262144}function Gk(h){for(h=h.firstContext;h!==null;){if(!Ha(h.context._currentValue,h.memoizedValue))return!0;h=h.next}return!1}function gh(h){mh=h,Pc=null,h=h.dependencies,h!==null&&(h.firstContext=null)}function Bo(h){return $fe(mh,h)}function Xk(h,m){return mh===null&&gh(h),$fe(h,m)}function $fe(h,m){var v=m._currentValue;if(m={context:m,memoizedValue:v,next:null},Pc===null){if(h===null)throw Error(o(308));Pc=m,h.dependencies={lanes:0,firstContext:m},h.flags|=524288}else Pc=Pc.next=m;return v}var K5t=typeof AbortController<"u"?AbortController:function(){var h=[],m=this.signal={aborted:!1,addEventListener:function(v,S){h.push(S)}};this.abort=function(){m.aborted=!0,h.forEach(function(v){return v()})}},Z5t=e.unstable_scheduleCallback,Q5t=e.unstable_NormalPriority,Fn={$$typeof:_,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Y$(){return{controller:new K5t,data:new Map,refCount:0}}function dv(h){h.refCount--,h.refCount===0&&Z5t(Q5t,function(){h.controller.abort()})}var pv=null,W$=0,Yg=0,Wg=null;function J5t(h,m){if(pv===null){var v=pv=[];W$=0,Yg=XM(),Wg={status:"pending",value:void 0,then:function(S){v.push(S)}}}return W$++,m.then(Mfe,Mfe),m}function Mfe(){if(--W$===0&&pv!==null){Wg!==null&&(Wg.status="fulfilled");var h=pv;pv=null,Yg=0,Wg=null;for(var m=0;m<h.length;m++)(0,h[m])()}}function ekt(h,m){var v=[],S={status:"pending",value:null,reason:null,then:function(P){v.push(P)}};return h.then(function(){S.status="fulfilled",S.value=m;for(var P=0;P<v.length;P++)(0,v[P])(m)},function(P){for(S.status="rejected",S.reason=P,P=0;P<v.length;P++)(0,v[P])(void 0)}),S}var Ofe=I.S;I.S=function(h,m){typeof m=="object"&&m!==null&&typeof m.then=="function"&&J5t(h,m),Ofe!==null&&Ofe(h,m)};var yh=J(null);function G$(){var h=yh.current;return h!==null?h:Rr.pooledCache}function Kk(h,m){m===null?z(yh,yh.current):z(yh,m.pool)}function Ife(){var h=G$();return h===null?null:{parent:Fn._currentValue,pool:h}}var hv=Error(o(460)),Lfe=Error(o(474)),Zk=Error(o(542)),X$={then:function(){}};function zfe(h){return h=h.status,h==="fulfilled"||h==="rejected"}function Qk(){}function Bfe(h,m,v){switch(v=h[v],v===void 0?h.push(m):v!==m&&(m.then(Qk,Qk),m=v),m.status){case"fulfilled":return m.value;case"rejected":throw h=m.reason,Ffe(h),h;default:if(typeof m.status=="string")m.then(Qk,Qk);else{if(h=Rr,h!==null&&100<h.shellSuspendCounter)throw Error(o(482));h=m,h.status="pending",h.then(function(S){if(m.status==="pending"){var P=m;P.status="fulfilled",P.value=S}},function(S){if(m.status==="pending"){var P=m;P.status="rejected",P.reason=S}})}switch(m.status){case"fulfilled":return m.value;case"rejected":throw h=m.reason,Ffe(h),h}throw fv=m,hv}}var fv=null;function jfe(){if(fv===null)throw Error(o(459));var h=fv;return fv=null,h}function Ffe(h){if(h===hv||h===Zk)throw Error(o(483))}var Zu=!1;function K$(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Z$(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 Qu(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function Ju(h,m,v){var S=h.updateQueue;if(S===null)return null;if(S=S.shared,(dr&2)!==0){var P=S.pending;return P===null?m.next=m:(m.next=P.next,P.next=m),S.pending=m,m=Uk(h),Tfe(h,null,v),m}return qk(h,S,m,v),Uk(h)}function mv(h,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194048)!==0)){var S=m.lanes;S&=h.pendingLanes,v|=S,m.lanes=v,Hu(h,v)}}function Q$(h,m){var v=h.updateQueue,S=h.alternate;if(S!==null&&(S=S.updateQueue,v===S)){var P=null,B=null;if(v=v.firstBaseUpdate,v!==null){do{var K={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};B===null?P=B=K:B=B.next=K,v=v.next}while(v!==null);B===null?P=B=m:B=B.next=m}else P=B=m;v={baseState:S.baseState,firstBaseUpdate:P,lastBaseUpdate:B,shared:S.shared,callbacks:S.callbacks},h.updateQueue=v;return}h=v.lastBaseUpdate,h===null?v.firstBaseUpdate=m:h.next=m,v.lastBaseUpdate=m}var J$=!1;function gv(){if(J$){var h=Wg;if(h!==null)throw h}}function yv(h,m,v,S){J$=!1;var P=h.updateQueue;Zu=!1;var B=P.firstBaseUpdate,K=P.lastBaseUpdate,te=P.shared.pending;if(te!==null){P.shared.pending=null;var se=te,ge=se.next;se.next=null,K===null?B=ge:K.next=ge,K=se;var Te=h.alternate;Te!==null&&(Te=Te.updateQueue,te=Te.lastBaseUpdate,te!==K&&(te===null?Te.firstBaseUpdate=ge:te.next=ge,Te.lastBaseUpdate=se))}if(B!==null){var Ne=P.baseState;K=0,Te=ge=se=null,te=B;do{var ve=te.lane&-536870913,ke=ve!==te.lane;if(ke?(rr&ve)===ve:(S&ve)===ve){ve!==0&&ve===Yg&&(J$=!0),Te!==null&&(Te=Te.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var xt=h,ft=te;ve=m;var vr=v;switch(ft.tag){case 1:if(xt=ft.payload,typeof xt=="function"){Ne=xt.call(vr,Ne,ve);break e}Ne=xt;break e;case 3:xt.flags=xt.flags&-65537|128;case 0:if(xt=ft.payload,ve=typeof xt=="function"?xt.call(vr,Ne,ve):xt,ve==null)break e;Ne=d({},Ne,ve);break e;case 2:Zu=!0}}ve=te.callback,ve!==null&&(h.flags|=64,ke&&(h.flags|=8192),ke=P.callbacks,ke===null?P.callbacks=[ve]:ke.push(ve))}else ke={lane:ve,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Te===null?(ge=Te=ke,se=Ne):Te=Te.next=ke,K|=ve;if(te=te.next,te===null){if(te=P.shared.pending,te===null)break;ke=te,te=ke.next,ke.next=null,P.lastBaseUpdate=ke,P.shared.pending=null}}while(!0);Te===null&&(se=Ne),P.baseState=se,P.firstBaseUpdate=ge,P.lastBaseUpdate=Te,B===null&&(P.shared.lanes=0),ld|=K,h.lanes=K,h.memoizedState=Ne}}function Hfe(h,m){if(typeof h!="function")throw Error(o(191,h));h.call(m)}function qfe(h,m){var v=h.callbacks;if(v!==null)for(h.callbacks=null,h=0;h<v.length;h++)Hfe(v[h],m)}var Gg=J(null),Jk=J(0);function Ufe(h,m){h=jc,z(Jk,h),z(Gg,m),jc=h|m.baseLanes}function eM(){z(Jk,jc),z(Gg,Gg.current)}function tM(){jc=Jk.current,Q(Gg),Q(Jk)}var ed=0,jt=null,yr=null,On=null,e6=!1,Xg=!1,bh=!1,t6=0,bv=0,Kg=null,tkt=0;function dn(){throw Error(o(321))}function rM(h,m){if(m===null)return!1;for(var v=0;v<m.length&&v<h.length;v++)if(!Ha(h[v],m[v]))return!1;return!0}function nM(h,m,v,S,P,B){return ed=B,jt=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,I.H=h===null||h.memoizedState===null?Tme:Rme,bh=!1,B=v(S,P),bh=!1,Xg&&(B=Yfe(m,v,S,P)),Vfe(h),B}function Vfe(h){I.H=l6;var m=yr!==null&&yr.next!==null;if(ed=0,On=yr=jt=null,e6=!1,bv=0,Kg=null,m)throw Error(o(300));h===null||ao||(h=h.dependencies,h!==null&&Gk(h)&&(ao=!0))}function Yfe(h,m,v,S){jt=h;var P=0;do{if(Xg&&(Kg=null),bv=0,Xg=!1,25<=P)throw Error(o(301));if(P+=1,On=yr=null,h.updateQueue!=null){var B=h.updateQueue;B.lastEffect=null,B.events=null,B.stores=null,B.memoCache!=null&&(B.memoCache.index=0)}I.H=skt,B=m(v,S)}while(Xg);return B}function rkt(){var h=I.H,m=h.useState()[0];return m=typeof m.then=="function"?vv(m):m,h=h.useState()[0],(yr!==null?yr.memoizedState:null)!==h&&(jt.flags|=1024),m}function oM(){var h=t6!==0;return t6=0,h}function aM(h,m,v){m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~v}function iM(h){if(e6){for(h=h.memoizedState;h!==null;){var m=h.queue;m!==null&&(m.pending=null),h=h.next}e6=!1}ed=0,On=yr=jt=null,Xg=!1,bv=t6=0,Kg=null}function ma(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return On===null?jt.memoizedState=On=h:On=On.next=h,On}function In(){if(yr===null){var h=jt.alternate;h=h!==null?h.memoizedState:null}else h=yr.next;var m=On===null?jt.memoizedState:On.next;if(m!==null)On=m,yr=h;else{if(h===null)throw jt.alternate===null?Error(o(467)):Error(o(310));yr=h,h={memoizedState:yr.memoizedState,baseState:yr.baseState,baseQueue:yr.baseQueue,queue:yr.queue,next:null},On===null?jt.memoizedState=On=h:On=On.next=h}return On}function lM(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vv(h){var m=bv;return bv+=1,Kg===null&&(Kg=[]),h=Bfe(Kg,h,m),m=jt,(On===null?m.memoizedState:On.next)===null&&(m=m.alternate,I.H=m===null||m.memoizedState===null?Tme:Rme),h}function r6(h){if(h!==null&&typeof h=="object"){if(typeof h.then=="function")return vv(h);if(h.$$typeof===_)return Bo(h)}throw Error(o(438,String(h)))}function sM(h){var m=null,v=jt.updateQueue;if(v!==null&&(m=v.memoCache),m==null){var S=jt.alternate;S!==null&&(S=S.updateQueue,S!==null&&(S=S.memoCache,S!=null&&(m={data:S.data.map(function(P){return P.slice()}),index:0})))}if(m==null&&(m={data:[],index:0}),v===null&&(v=lM(),jt.updateQueue=v),v.memoCache=m,v=m.data[m.index],v===void 0)for(v=m.data[m.index]=Array(h),S=0;S<h;S++)v[S]=M;return m.index++,v}function Mc(h,m){return typeof m=="function"?m(h):m}function n6(h){var m=In();return cM(m,yr,h)}function cM(h,m,v){var S=h.queue;if(S===null)throw Error(o(311));S.lastRenderedReducer=v;var P=h.baseQueue,B=S.pending;if(B!==null){if(P!==null){var K=P.next;P.next=B.next,B.next=K}m.baseQueue=P=B,S.pending=null}if(B=h.baseState,P===null)h.memoizedState=B;else{m=P.next;var te=K=null,se=null,ge=m,Te=!1;do{var Ne=ge.lane&-536870913;if(Ne!==ge.lane?(rr&Ne)===Ne:(ed&Ne)===Ne){var ve=ge.revertLane;if(ve===0)se!==null&&(se=se.next={lane:0,revertLane:0,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null}),Ne===Yg&&(Te=!0);else if((ed&ve)===ve){ge=ge.next,ve===Yg&&(Te=!0);continue}else Ne={lane:0,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},se===null?(te=se=Ne,K=B):se=se.next=Ne,jt.lanes|=ve,ld|=ve;Ne=ge.action,bh&&v(B,Ne),B=ge.hasEagerState?ge.eagerState:v(B,Ne)}else ve={lane:Ne,revertLane:ge.revertLane,action:ge.action,hasEagerState:ge.hasEagerState,eagerState:ge.eagerState,next:null},se===null?(te=se=ve,K=B):se=se.next=ve,jt.lanes|=Ne,ld|=Ne;ge=ge.next}while(ge!==null&&ge!==m);if(se===null?K=B:se.next=te,!Ha(B,h.memoizedState)&&(ao=!0,Te&&(v=Wg,v!==null)))throw v;h.memoizedState=B,h.baseState=K,h.baseQueue=se,S.lastRenderedState=B}return P===null&&(S.lanes=0),[h.memoizedState,S.dispatch]}function uM(h){var m=In(),v=m.queue;if(v===null)throw Error(o(311));v.lastRenderedReducer=h;var S=v.dispatch,P=v.pending,B=m.memoizedState;if(P!==null){v.pending=null;var K=P=P.next;do B=h(B,K.action),K=K.next;while(K!==P);Ha(B,m.memoizedState)||(ao=!0),m.memoizedState=B,m.baseQueue===null&&(m.baseState=B),v.lastRenderedState=B}return[B,S]}function Wfe(h,m,v){var S=jt,P=In(),B=ir;if(B){if(v===void 0)throw Error(o(407));v=v()}else v=m();var K=!Ha((yr||P).memoizedState,v);K&&(P.memoizedState=v,ao=!0),P=P.queue;var te=Kfe.bind(null,S,P,h);if(xv(2048,8,te,[h]),P.getSnapshot!==m||K||On!==null&&On.memoizedState.tag&1){if(S.flags|=2048,Zg(9,o6(),Xfe.bind(null,S,P,v,m),null),Rr===null)throw Error(o(349));B||(ed&124)!==0||Gfe(S,m,v)}return v}function Gfe(h,m,v){h.flags|=16384,h={getSnapshot:m,value:v},m=jt.updateQueue,m===null?(m=lM(),jt.updateQueue=m,m.stores=[h]):(v=m.stores,v===null?m.stores=[h]:v.push(h))}function Xfe(h,m,v,S){m.value=v,m.getSnapshot=S,Zfe(m)&&Qfe(h)}function Kfe(h,m,v){return v(function(){Zfe(m)&&Qfe(h)})}function Zfe(h){var m=h.getSnapshot;h=h.value;try{var v=m();return!Ha(h,v)}catch{return!0}}function Qfe(h){var m=Hg(h,2);m!==null&&Ga(m,h,2)}function dM(h){var m=ma();if(typeof h=="function"){var v=h;if(h=v(),bh){rt(!0);try{v()}finally{rt(!1)}}}return m.memoizedState=m.baseState=h,m.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mc,lastRenderedState:h},m}function Jfe(h,m,v,S){return h.baseState=v,cM(h,yr,typeof S=="function"?S:Mc)}function nkt(h,m,v,S,P){if(i6(h))throw Error(o(485));if(h=m.action,h!==null){var B={payload:P,action:h,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(K){B.listeners.push(K)}};I.T!==null?v(!0):B.isTransition=!1,S(B),v=m.pending,v===null?(B.next=m.pending=B,eme(m,B)):(B.next=v.next,m.pending=v.next=B)}}function eme(h,m){var v=m.action,S=m.payload,P=h.state;if(m.isTransition){var B=I.T,K={};I.T=K;try{var te=v(P,S),se=I.S;se!==null&&se(K,te),tme(h,m,te)}catch(ge){pM(h,m,ge)}finally{I.T=B}}else try{B=v(P,S),tme(h,m,B)}catch(ge){pM(h,m,ge)}}function tme(h,m,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(S){rme(h,m,S)},function(S){return pM(h,m,S)}):rme(h,m,v)}function rme(h,m,v){m.status="fulfilled",m.value=v,nme(m),h.state=v,m=h.pending,m!==null&&(v=m.next,v===m?h.pending=null:(v=v.next,m.next=v,eme(h,v)))}function pM(h,m,v){var S=h.pending;if(h.pending=null,S!==null){S=S.next;do m.status="rejected",m.reason=v,nme(m),m=m.next;while(m!==S)}h.action=null}function nme(h){h=h.listeners;for(var m=0;m<h.length;m++)(0,h[m])()}function ome(h,m){return m}function ame(h,m){if(ir){var v=Rr.formState;if(v!==null){e:{var S=jt;if(ir){if(rn){t:{for(var P=rn,B=Ts;P.nodeType!==8;){if(!B){P=null;break t}if(P=ql(P.nextSibling),P===null){P=null;break t}}B=P.data,P=B==="F!"||B==="F"?P:null}if(P){rn=ql(P.nextSibling),S=P.data==="F!";break e}}fh(S)}S=!1}S&&(m=v[0])}}return v=ma(),v.memoizedState=v.baseState=m,S={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ome,lastRenderedState:m},v.queue=S,v=Eme.bind(null,jt,S),S.dispatch=v,S=dM(!1),B=yM.bind(null,jt,!1,S.queue),S=ma(),P={state:m,dispatch:null,action:h,pending:null},S.queue=P,v=nkt.bind(null,jt,P,B,v),P.dispatch=v,S.memoizedState=h,[m,v,!1]}function ime(h){var m=In();return lme(m,yr,h)}function lme(h,m,v){if(m=cM(h,m,ome)[0],h=n6(Mc)[0],typeof m=="object"&&m!==null&&typeof m.then=="function")try{var S=vv(m)}catch(K){throw K===hv?Zk:K}else S=m;m=In();var P=m.queue,B=P.dispatch;return v!==m.memoizedState&&(jt.flags|=2048,Zg(9,o6(),okt.bind(null,P,v),null)),[S,B,h]}function okt(h,m){h.action=m}function sme(h){var m=In(),v=yr;if(v!==null)return lme(m,v,h);In(),m=m.memoizedState,v=In();var S=v.queue.dispatch;return v.memoizedState=h,[m,S,!1]}function Zg(h,m,v,S){return h={tag:h,create:v,deps:S,inst:m,next:null},m=jt.updateQueue,m===null&&(m=lM(),jt.updateQueue=m),v=m.lastEffect,v===null?m.lastEffect=h.next=h:(S=v.next,v.next=h,h.next=S,m.lastEffect=h),h}function o6(){return{destroy:void 0,resource:void 0}}function cme(){return In().memoizedState}function a6(h,m,v,S){var P=ma();S=S===void 0?null:S,jt.flags|=h,P.memoizedState=Zg(1|m,o6(),v,S)}function xv(h,m,v,S){var P=In();S=S===void 0?null:S;var B=P.memoizedState.inst;yr!==null&&S!==null&&rM(S,yr.memoizedState.deps)?P.memoizedState=Zg(m,B,v,S):(jt.flags|=h,P.memoizedState=Zg(1|m,B,v,S))}function ume(h,m){a6(8390656,8,h,m)}function dme(h,m){xv(2048,8,h,m)}function pme(h,m){return xv(4,2,h,m)}function hme(h,m){return xv(4,4,h,m)}function fme(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 mme(h,m,v){v=v!=null?v.concat([h]):null,xv(4,4,fme.bind(null,m,h),v)}function hM(){}function gme(h,m){var v=In();m=m===void 0?null:m;var S=v.memoizedState;return m!==null&&rM(m,S[1])?S[0]:(v.memoizedState=[h,m],h)}function yme(h,m){var v=In();m=m===void 0?null:m;var S=v.memoizedState;if(m!==null&&rM(m,S[1]))return S[0];if(S=h(),bh){rt(!0);try{h()}finally{rt(!1)}}return v.memoizedState=[S,m],S}function fM(h,m,v){return v===void 0||(ed&1073741824)!==0?h.memoizedState=m:(h.memoizedState=v,h=xge(),jt.lanes|=h,ld|=h,v)}function bme(h,m,v,S){return Ha(v,m)?v:Gg.current!==null?(h=fM(h,v,S),Ha(h,m)||(ao=!0),h):(ed&42)===0?(ao=!0,h.memoizedState=v):(h=xge(),jt.lanes|=h,ld|=h,m)}function vme(h,m,v,S,P){var B=q.p;q.p=B!==0&&8>B?B:8;var K=I.T,te={};I.T=te,yM(h,!1,m,v);try{var se=P(),ge=I.S;if(ge!==null&&ge(te,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var Te=ekt(se,S);wv(h,m,Te,Wa(h))}else wv(h,m,S,Wa(h))}catch(Ne){wv(h,m,{then:function(){},status:"rejected",reason:Ne},Wa())}finally{q.p=B,I.T=K}}function akt(){}function mM(h,m,v,S){if(h.tag!==5)throw Error(o(476));var P=xme(h).queue;vme(h,P,m,V,v===null?akt:function(){return wme(h),v(S)})}function xme(h){var m=h.memoizedState;if(m!==null)return m;m={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mc,lastRenderedState:V},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Mc,lastRenderedState:v},next:null},h.memoizedState=m,h=h.alternate,h!==null&&(h.memoizedState=m),m}function wme(h){var m=xme(h).next.queue;wv(h,m,{},Wa())}function gM(){return Bo(Bv)}function kme(){return In().memoizedState}function _me(){return In().memoizedState}function ikt(h){for(var m=h.return;m!==null;){switch(m.tag){case 24:case 3:var v=Wa();h=Qu(v);var S=Ju(m,h,v);S!==null&&(Ga(S,m,v),mv(S,m,v)),m={cache:Y$()},h.payload=m;return}m=m.return}}function lkt(h,m,v){var S=Wa();v={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null},i6(h)?Sme(m,v):(v=I$(h,m,v,S),v!==null&&(Ga(v,h,S),Cme(v,m,S)))}function Eme(h,m,v){var S=Wa();wv(h,m,v,S)}function wv(h,m,v,S){var P={lane:S,revertLane:0,action:v,hasEagerState:!1,eagerState:null,next:null};if(i6(h))Sme(m,P);else{var B=h.alternate;if(h.lanes===0&&(B===null||B.lanes===0)&&(B=m.lastRenderedReducer,B!==null))try{var K=m.lastRenderedState,te=B(K,v);if(P.hasEagerState=!0,P.eagerState=te,Ha(te,K))return qk(h,m,P,0),Rr===null&&Hk(),!1}catch{}finally{}if(v=I$(h,m,P,S),v!==null)return Ga(v,h,S),Cme(v,m,S),!0}return!1}function yM(h,m,v,S){if(S={lane:2,revertLane:XM(),action:S,hasEagerState:!1,eagerState:null,next:null},i6(h)){if(m)throw Error(o(479))}else m=I$(h,v,S,2),m!==null&&Ga(m,h,2)}function i6(h){var m=h.alternate;return h===jt||m!==null&&m===jt}function Sme(h,m){Xg=e6=!0;var v=h.pending;v===null?m.next=m:(m.next=v.next,v.next=m),h.pending=m}function Cme(h,m,v){if((v&4194048)!==0){var S=m.lanes;S&=h.pendingLanes,v|=S,m.lanes=v,Hu(h,v)}}var l6={readContext:Bo,use:r6,useCallback:dn,useContext:dn,useEffect:dn,useImperativeHandle:dn,useLayoutEffect:dn,useInsertionEffect:dn,useMemo:dn,useReducer:dn,useRef:dn,useState:dn,useDebugValue:dn,useDeferredValue:dn,useTransition:dn,useSyncExternalStore:dn,useId:dn,useHostTransitionStatus:dn,useFormState:dn,useActionState:dn,useOptimistic:dn,useMemoCache:dn,useCacheRefresh:dn},Tme={readContext:Bo,use:r6,useCallback:function(h,m){return ma().memoizedState=[h,m===void 0?null:m],h},useContext:Bo,useEffect:ume,useImperativeHandle:function(h,m,v){v=v!=null?v.concat([h]):null,a6(4194308,4,fme.bind(null,m,h),v)},useLayoutEffect:function(h,m){return a6(4194308,4,h,m)},useInsertionEffect:function(h,m){a6(4,2,h,m)},useMemo:function(h,m){var v=ma();m=m===void 0?null:m;var S=h();if(bh){rt(!0);try{h()}finally{rt(!1)}}return v.memoizedState=[S,m],S},useReducer:function(h,m,v){var S=ma();if(v!==void 0){var P=v(m);if(bh){rt(!0);try{v(m)}finally{rt(!1)}}}else P=m;return S.memoizedState=S.baseState=P,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:P},S.queue=h,h=h.dispatch=lkt.bind(null,jt,h),[S.memoizedState,h]},useRef:function(h){var m=ma();return h={current:h},m.memoizedState=h},useState:function(h){h=dM(h);var m=h.queue,v=Eme.bind(null,jt,m);return m.dispatch=v,[h.memoizedState,v]},useDebugValue:hM,useDeferredValue:function(h,m){var v=ma();return fM(v,h,m)},useTransition:function(){var h=dM(!1);return h=vme.bind(null,jt,h.queue,!0,!1),ma().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,m,v){var S=jt,P=ma();if(ir){if(v===void 0)throw Error(o(407));v=v()}else{if(v=m(),Rr===null)throw Error(o(349));(rr&124)!==0||Gfe(S,m,v)}P.memoizedState=v;var B={value:v,getSnapshot:m};return P.queue=B,ume(Kfe.bind(null,S,B,h),[h]),S.flags|=2048,Zg(9,o6(),Xfe.bind(null,S,B,v,m),null),v},useId:function(){var h=ma(),m=Rr.identifierPrefix;if(ir){var v=Dc,S=Nc;v=(S&~(1<<32-at(S)-1)).toString(32)+v,m="«"+m+"R"+v,v=t6++,0<v&&(m+="H"+v.toString(32)),m+="»"}else v=tkt++,m="«"+m+"r"+v.toString(32)+"»";return h.memoizedState=m},useHostTransitionStatus:gM,useFormState:ame,useActionState:ame,useOptimistic:function(h){var m=ma();m.memoizedState=m.baseState=h;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return m.queue=v,m=yM.bind(null,jt,!0,v),v.dispatch=m,[h,m]},useMemoCache:sM,useCacheRefresh:function(){return ma().memoizedState=ikt.bind(null,jt)}},Rme={readContext:Bo,use:r6,useCallback:gme,useContext:Bo,useEffect:dme,useImperativeHandle:mme,useInsertionEffect:pme,useLayoutEffect:hme,useMemo:yme,useReducer:n6,useRef:cme,useState:function(){return n6(Mc)},useDebugValue:hM,useDeferredValue:function(h,m){var v=In();return bme(v,yr.memoizedState,h,m)},useTransition:function(){var h=n6(Mc)[0],m=In().memoizedState;return[typeof h=="boolean"?h:vv(h),m]},useSyncExternalStore:Wfe,useId:kme,useHostTransitionStatus:gM,useFormState:ime,useActionState:ime,useOptimistic:function(h,m){var v=In();return Jfe(v,yr,h,m)},useMemoCache:sM,useCacheRefresh:_me},skt={readContext:Bo,use:r6,useCallback:gme,useContext:Bo,useEffect:dme,useImperativeHandle:mme,useInsertionEffect:pme,useLayoutEffect:hme,useMemo:yme,useReducer:uM,useRef:cme,useState:function(){return uM(Mc)},useDebugValue:hM,useDeferredValue:function(h,m){var v=In();return yr===null?fM(v,h,m):bme(v,yr.memoizedState,h,m)},useTransition:function(){var h=uM(Mc)[0],m=In().memoizedState;return[typeof h=="boolean"?h:vv(h),m]},useSyncExternalStore:Wfe,useId:kme,useHostTransitionStatus:gM,useFormState:sme,useActionState:sme,useOptimistic:function(h,m){var v=In();return yr!==null?Jfe(v,yr,h,m):(v.baseState=h,[h,v.queue.dispatch])},useMemoCache:sM,useCacheRefresh:_me},Qg=null,kv=0;function s6(h){var m=kv;return kv+=1,Qg===null&&(Qg=[]),Bfe(Qg,h,m)}function _v(h,m){m=m.props.ref,h.ref=m!==void 0?m:null}function c6(h,m){throw m.$$typeof===p?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){var m=h._init;return m(h._payload)}function Nme(h){function m(he,ue){if(h){var fe=he.deletions;fe===null?(he.deletions=[ue],he.flags|=16):fe.push(ue)}}function v(he,ue){if(!h)return null;for(;ue!==null;)m(he,ue),ue=ue.sibling;return null}function S(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=Ac(he,ue),he.index=0,he.sibling=null,he}function B(he,ue,fe){return he.index=fe,h?(fe=he.alternate,fe!==null?(fe=fe.index,fe<ue?(he.flags|=67108866,ue):fe):(he.flags|=67108866,ue)):(he.flags|=1048576,ue)}function K(he){return h&&he.alternate===null&&(he.flags|=67108866),he}function te(he,ue,fe,Re){return ue===null||ue.tag!==6?(ue=z$(fe,he.mode,Re),ue.return=he,ue):(ue=P(ue,fe),ue.return=he,ue)}function se(he,ue,fe,Re){var ot=fe.type;return ot===b?Te(he,ue,fe.props.children,Re,fe.key):ue!==null&&(ue.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===N&&Ame(ot)===ue.type)?(ue=P(ue,fe.props),_v(ue,fe),ue.return=he,ue):(ue=Vk(fe.type,fe.key,fe.props,null,he.mode,Re),_v(ue,fe),ue.return=he,ue)}function ge(he,ue,fe,Re){return ue===null||ue.tag!==4||ue.stateNode.containerInfo!==fe.containerInfo||ue.stateNode.implementation!==fe.implementation?(ue=B$(fe,he.mode,Re),ue.return=he,ue):(ue=P(ue,fe.children||[]),ue.return=he,ue)}function Te(he,ue,fe,Re,ot){return ue===null||ue.tag!==7?(ue=uh(fe,he.mode,Re,ot),ue.return=he,ue):(ue=P(ue,fe),ue.return=he,ue)}function Ne(he,ue,fe){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return ue=z$(""+ue,he.mode,fe),ue.return=he,ue;if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case f:return fe=Vk(ue.type,ue.key,ue.props,null,he.mode,fe),_v(fe,ue),fe.return=he,fe;case g:return ue=B$(ue,he.mode,fe),ue.return=he,ue;case N:var Re=ue._init;return ue=Re(ue._payload),Ne(he,ue,fe)}if(U(ue)||L(ue))return ue=uh(ue,he.mode,fe,null),ue.return=he,ue;if(typeof ue.then=="function")return Ne(he,s6(ue),fe);if(ue.$$typeof===_)return Ne(he,Xk(he,ue),fe);c6(he,ue)}return null}function ve(he,ue,fe,Re){var ot=ue!==null?ue.key:null;if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return ot!==null?null:te(he,ue,""+fe,Re);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case f:return fe.key===ot?se(he,ue,fe,Re):null;case g:return fe.key===ot?ge(he,ue,fe,Re):null;case N:return ot=fe._init,fe=ot(fe._payload),ve(he,ue,fe,Re)}if(U(fe)||L(fe))return ot!==null?null:Te(he,ue,fe,Re,null);if(typeof fe.then=="function")return ve(he,ue,s6(fe),Re);if(fe.$$typeof===_)return ve(he,ue,Xk(he,fe),Re);c6(he,fe)}return null}function ke(he,ue,fe,Re,ot){if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return he=he.get(fe)||null,te(ue,he,""+Re,ot);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case f:return he=he.get(Re.key===null?fe:Re.key)||null,se(ue,he,Re,ot);case g:return he=he.get(Re.key===null?fe:Re.key)||null,ge(ue,he,Re,ot);case N:var Vt=Re._init;return Re=Vt(Re._payload),ke(he,ue,fe,Re,ot)}if(U(Re)||L(Re))return he=he.get(fe)||null,Te(ue,he,Re,ot,null);if(typeof Re.then=="function")return ke(he,ue,fe,s6(Re),ot);if(Re.$$typeof===_)return ke(he,ue,fe,Xk(ue,Re),ot);c6(ue,Re)}return null}function xt(he,ue,fe,Re){for(var ot=null,Vt=null,ct=ue,gt=ue=0,lo=null;ct!==null&&gt<fe.length;gt++){ct.index>gt?(lo=ct,ct=null):lo=ct.sibling;var ar=ve(he,ct,fe[gt],Re);if(ar===null){ct===null&&(ct=lo);break}h&&ct&&ar.alternate===null&&m(he,ct),ue=B(ar,ue,gt),Vt===null?ot=ar:Vt.sibling=ar,Vt=ar,ct=lo}if(gt===fe.length)return v(he,ct),ir&&ph(he,gt),ot;if(ct===null){for(;gt<fe.length;gt++)ct=Ne(he,fe[gt],Re),ct!==null&&(ue=B(ct,ue,gt),Vt===null?ot=ct:Vt.sibling=ct,Vt=ct);return ir&&ph(he,gt),ot}for(ct=S(ct);gt<fe.length;gt++)lo=ke(ct,he,gt,fe[gt],Re),lo!==null&&(h&&lo.alternate!==null&&ct.delete(lo.key===null?gt:lo.key),ue=B(lo,ue,gt),Vt===null?ot=lo:Vt.sibling=lo,Vt=lo);return h&&ct.forEach(function(gd){return m(he,gd)}),ir&&ph(he,gt),ot}function ft(he,ue,fe,Re){if(fe==null)throw Error(o(151));for(var ot=null,Vt=null,ct=ue,gt=ue=0,lo=null,ar=fe.next();ct!==null&&!ar.done;gt++,ar=fe.next()){ct.index>gt?(lo=ct,ct=null):lo=ct.sibling;var gd=ve(he,ct,ar.value,Re);if(gd===null){ct===null&&(ct=lo);break}h&&ct&&gd.alternate===null&&m(he,ct),ue=B(gd,ue,gt),Vt===null?ot=gd:Vt.sibling=gd,Vt=gd,ct=lo}if(ar.done)return v(he,ct),ir&&ph(he,gt),ot;if(ct===null){for(;!ar.done;gt++,ar=fe.next())ar=Ne(he,ar.value,Re),ar!==null&&(ue=B(ar,ue,gt),Vt===null?ot=ar:Vt.sibling=ar,Vt=ar);return ir&&ph(he,gt),ot}for(ct=S(ct);!ar.done;gt++,ar=fe.next())ar=ke(ct,he,gt,ar.value,Re),ar!==null&&(h&&ar.alternate!==null&&ct.delete(ar.key===null?gt:ar.key),ue=B(ar,ue,gt),Vt===null?ot=ar:Vt.sibling=ar,Vt=ar);return h&&ct.forEach(function(c6t){return m(he,c6t)}),ir&&ph(he,gt),ot}function vr(he,ue,fe,Re){if(typeof fe=="object"&&fe!==null&&fe.type===b&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case f:e:{for(var ot=fe.key;ue!==null;){if(ue.key===ot){if(ot=fe.type,ot===b){if(ue.tag===7){v(he,ue.sibling),Re=P(ue,fe.props.children),Re.return=he,he=Re;break e}}else if(ue.elementType===ot||typeof ot=="object"&&ot!==null&&ot.$$typeof===N&&Ame(ot)===ue.type){v(he,ue.sibling),Re=P(ue,fe.props),_v(Re,fe),Re.return=he,he=Re;break e}v(he,ue);break}else m(he,ue);ue=ue.sibling}fe.type===b?(Re=uh(fe.props.children,he.mode,Re,fe.key),Re.return=he,he=Re):(Re=Vk(fe.type,fe.key,fe.props,null,he.mode,Re),_v(Re,fe),Re.return=he,he=Re)}return K(he);case g:e:{for(ot=fe.key;ue!==null;){if(ue.key===ot)if(ue.tag===4&&ue.stateNode.containerInfo===fe.containerInfo&&ue.stateNode.implementation===fe.implementation){v(he,ue.sibling),Re=P(ue,fe.children||[]),Re.return=he,he=Re;break e}else{v(he,ue);break}else m(he,ue);ue=ue.sibling}Re=B$(fe,he.mode,Re),Re.return=he,he=Re}return K(he);case N:return ot=fe._init,fe=ot(fe._payload),vr(he,ue,fe,Re)}if(U(fe))return xt(he,ue,fe,Re);if(L(fe)){if(ot=L(fe),typeof ot!="function")throw Error(o(150));return fe=ot.call(fe),ft(he,ue,fe,Re)}if(typeof fe.then=="function")return vr(he,ue,s6(fe),Re);if(fe.$$typeof===_)return vr(he,ue,Xk(he,fe),Re);c6(he,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,ue!==null&&ue.tag===6?(v(he,ue.sibling),Re=P(ue,fe),Re.return=he,he=Re):(v(he,ue),Re=z$(fe,he.mode,Re),Re.return=he,he=Re),K(he)):v(he,ue)}return function(he,ue,fe,Re){try{kv=0;var ot=vr(he,ue,fe,Re);return Qg=null,ot}catch(ct){if(ct===hv||ct===Zk)throw ct;var Vt=qa(29,ct,null,he.mode);return Vt.lanes=Re,Vt.return=he,Vt}finally{}}}var Jg=Nme(!0),Dme=Nme(!1),Ii=J(null),Rs=null;function td(h){var m=h.alternate;z(Hn,Hn.current&1),z(Ii,h),Rs===null&&(m===null||Gg.current!==null||m.memoizedState!==null)&&(Rs=h)}function Pme(h){if(h.tag===22){if(z(Hn,Hn.current),z(Ii,h),Rs===null){var m=h.alternate;m!==null&&m.memoizedState!==null&&(Rs=h)}}else rd()}function rd(){z(Hn,Hn.current),z(Ii,Ii.current)}function Oc(h){Q(Ii),Rs===h&&(Rs=null),Q(Hn)}var Hn=J(0);function u6(h){for(var m=h;m!==null;){if(m.tag===13){var v=m.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||v.data==="$?"||lO(v)))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){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}function bM(h,m,v,S){m=h.memoizedState,v=v(S,m),v=v==null?m:d({},m,v),h.memoizedState=v,h.lanes===0&&(h.updateQueue.baseState=v)}var vM={enqueueSetState:function(h,m,v){h=h._reactInternals;var S=Wa(),P=Qu(S);P.payload=m,v!=null&&(P.callback=v),m=Ju(h,P,S),m!==null&&(Ga(m,h,S),mv(m,h,S))},enqueueReplaceState:function(h,m,v){h=h._reactInternals;var S=Wa(),P=Qu(S);P.tag=1,P.payload=m,v!=null&&(P.callback=v),m=Ju(h,P,S),m!==null&&(Ga(m,h,S),mv(m,h,S))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var v=Wa(),S=Qu(v);S.tag=2,m!=null&&(S.callback=m),m=Ju(h,S,v),m!==null&&(Ga(m,h,v),mv(m,h,v))}};function $me(h,m,v,S,P,B,K){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(S,B,K):m.prototype&&m.prototype.isPureReactComponent?!av(v,S)||!av(P,B):!0}function Mme(h,m,v,S){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(v,S),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(v,S),m.state!==h&&vM.enqueueReplaceState(m,m.state,null)}function vh(h,m){var v=m;if("ref"in m){v={};for(var S in m)S!=="ref"&&(v[S]=m[S])}if(h=h.defaultProps){v===m&&(v=d({},v));for(var P in h)v[P]===void 0&&(v[P]=h[P])}return v}var d6=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)};function Ome(h){d6(h)}function Ime(h){console.error(h)}function Lme(h){d6(h)}function p6(h,m){try{var v=h.onUncaughtError;v(m.value,{componentStack:m.stack})}catch(S){setTimeout(function(){throw S})}}function zme(h,m,v){try{var S=h.onCaughtError;S(v.value,{componentStack:v.stack,errorBoundary:m.tag===1?m.stateNode:null})}catch(P){setTimeout(function(){throw P})}}function xM(h,m,v){return v=Qu(v),v.tag=3,v.payload={element:null},v.callback=function(){p6(h,m)},v}function Bme(h){return h=Qu(h),h.tag=3,h}function jme(h,m,v,S){var P=v.type.getDerivedStateFromError;if(typeof P=="function"){var B=S.value;h.payload=function(){return P(B)},h.callback=function(){zme(m,v,S)}}var K=v.stateNode;K!==null&&typeof K.componentDidCatch=="function"&&(h.callback=function(){zme(m,v,S),typeof P!="function"&&(sd===null?sd=new Set([this]):sd.add(this));var te=S.stack;this.componentDidCatch(S.value,{componentStack:te!==null?te:""})})}function ckt(h,m,v,S,P){if(v.flags|=32768,S!==null&&typeof S=="object"&&typeof S.then=="function"){if(m=v.alternate,m!==null&&uv(m,v,P,!0),v=Ii.current,v!==null){switch(v.tag){case 13:return Rs===null?UM():v.alternate===null&&nn===0&&(nn=3),v.flags&=-257,v.flags|=65536,v.lanes=P,S===X$?v.flags|=16384:(m=v.updateQueue,m===null?v.updateQueue=new Set([S]):m.add(S),YM(h,S,P)),!1;case 22:return v.flags|=65536,S===X$?v.flags|=16384:(m=v.updateQueue,m===null?(m={transitions:null,markerInstances:null,retryQueue:new Set([S])},v.updateQueue=m):(v=m.retryQueue,v===null?m.retryQueue=new Set([S]):v.add(S)),YM(h,S,P)),!1}throw Error(o(435,v.tag))}return YM(h,S,P),UM(),!1}if(ir)return m=Ii.current,m!==null?((m.flags&65536)===0&&(m.flags|=256),m.flags|=65536,m.lanes=P,S!==H$&&(h=Error(o(422),{cause:S}),cv(Pi(h,v)))):(S!==H$&&(m=Error(o(423),{cause:S}),cv(Pi(m,v))),h=h.current.alternate,h.flags|=65536,P&=-P,h.lanes|=P,S=Pi(S,v),P=xM(h.stateNode,S,P),Q$(h,P),nn!==4&&(nn=2)),!1;var B=Error(o(520),{cause:S});if(B=Pi(B,v),Nv===null?Nv=[B]:Nv.push(B),nn!==4&&(nn=2),m===null)return!0;S=Pi(S,v),v=m;do{switch(v.tag){case 3:return v.flags|=65536,h=P&-P,v.lanes|=h,h=xM(v.stateNode,S,h),Q$(v,h),!1;case 1:if(m=v.type,B=v.stateNode,(v.flags&128)===0&&(typeof m.getDerivedStateFromError=="function"||B!==null&&typeof B.componentDidCatch=="function"&&(sd===null||!sd.has(B))))return v.flags|=65536,P&=-P,v.lanes|=P,P=Bme(P),jme(P,h,v,S),Q$(v,P),!1}v=v.return}while(v!==null);return!1}var Fme=Error(o(461)),ao=!1;function xo(h,m,v,S){m.child=h===null?Dme(m,null,v,S):Jg(m,h.child,v,S)}function Hme(h,m,v,S,P){v=v.render;var B=m.ref;if("ref"in S){var K={};for(var te in S)te!=="ref"&&(K[te]=S[te])}else K=S;return gh(m),S=nM(h,m,v,K,B,P),te=oM(),h!==null&&!ao?(aM(h,m,P),Ic(h,m,P)):(ir&&te&&j$(m),m.flags|=1,xo(h,m,S,P),m.child)}function qme(h,m,v,S,P){if(h===null){var B=v.type;return typeof B=="function"&&!L$(B)&&B.defaultProps===void 0&&v.compare===null?(m.tag=15,m.type=B,Ume(h,m,B,S,P)):(h=Vk(v.type,null,S,m,m.mode,P),h.ref=m.ref,h.return=m,m.child=h)}if(B=h.child,!RM(h,P)){var K=B.memoizedProps;if(v=v.compare,v=v!==null?v:av,v(K,S)&&h.ref===m.ref)return Ic(h,m,P)}return m.flags|=1,h=Ac(B,S),h.ref=m.ref,h.return=m,m.child=h}function Ume(h,m,v,S,P){if(h!==null){var B=h.memoizedProps;if(av(B,S)&&h.ref===m.ref)if(ao=!1,m.pendingProps=S=B,RM(h,P))(h.flags&131072)!==0&&(ao=!0);else return m.lanes=h.lanes,Ic(h,m,P)}return wM(h,m,v,S,P)}function Vme(h,m,v){var S=m.pendingProps,P=S.children,B=h!==null?h.memoizedState:null;if(S.mode==="hidden"){if((m.flags&128)!==0){if(S=B!==null?B.baseLanes|v:v,h!==null){for(P=m.child=h.child,B=0;P!==null;)B=B|P.lanes|P.childLanes,P=P.sibling;m.childLanes=B&~S}else m.childLanes=0,m.child=null;return Yme(h,m,S,v)}if((v&536870912)!==0)m.memoizedState={baseLanes:0,cachePool:null},h!==null&&Kk(m,B!==null?B.cachePool:null),B!==null?Ufe(m,B):eM(),Pme(m);else return m.lanes=m.childLanes=536870912,Yme(h,m,B!==null?B.baseLanes|v:v,v)}else B!==null?(Kk(m,B.cachePool),Ufe(m,B),rd(),m.memoizedState=null):(h!==null&&Kk(m,null),eM(),rd());return xo(h,m,P,v),m.child}function Yme(h,m,v,S){var P=G$();return P=P===null?null:{parent:Fn._currentValue,pool:P},m.memoizedState={baseLanes:v,cachePool:P},h!==null&&Kk(m,null),eM(),Pme(m),h!==null&&uv(h,m,S,!0),null}function h6(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 wM(h,m,v,S,P){return gh(m),v=nM(h,m,v,S,void 0,P),S=oM(),h!==null&&!ao?(aM(h,m,P),Ic(h,m,P)):(ir&&S&&j$(m),m.flags|=1,xo(h,m,v,P),m.child)}function Wme(h,m,v,S,P,B){return gh(m),m.updateQueue=null,v=Yfe(m,S,v,P),Vfe(h),S=oM(),h!==null&&!ao?(aM(h,m,B),Ic(h,m,B)):(ir&&S&&j$(m),m.flags|=1,xo(h,m,v,B),m.child)}function Gme(h,m,v,S,P){if(gh(m),m.stateNode===null){var B=qg,K=v.contextType;typeof K=="object"&&K!==null&&(B=Bo(K)),B=new v(S,B),m.memoizedState=B.state!==null&&B.state!==void 0?B.state:null,B.updater=vM,m.stateNode=B,B._reactInternals=m,B=m.stateNode,B.props=S,B.state=m.memoizedState,B.refs={},K$(m),K=v.contextType,B.context=typeof K=="object"&&K!==null?Bo(K):qg,B.state=m.memoizedState,K=v.getDerivedStateFromProps,typeof K=="function"&&(bM(m,v,K,S),B.state=m.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof B.getSnapshotBeforeUpdate=="function"||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(K=B.state,typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount(),K!==B.state&&vM.enqueueReplaceState(B,B.state,null),yv(m,S,B,P),gv(),B.state=m.memoizedState),typeof B.componentDidMount=="function"&&(m.flags|=4194308),S=!0}else if(h===null){B=m.stateNode;var te=m.memoizedProps,se=vh(v,te);B.props=se;var ge=B.context,Te=v.contextType;K=qg,typeof Te=="object"&&Te!==null&&(K=Bo(Te));var Ne=v.getDerivedStateFromProps;Te=typeof Ne=="function"||typeof B.getSnapshotBeforeUpdate=="function",te=m.pendingProps!==te,Te||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(te||ge!==K)&&Mme(m,B,S,K),Zu=!1;var ve=m.memoizedState;B.state=ve,yv(m,S,B,P),gv(),ge=m.memoizedState,te||ve!==ge||Zu?(typeof Ne=="function"&&(bM(m,v,Ne,S),ge=m.memoizedState),(se=Zu||$me(m,v,se,S,ve,ge,K))?(Te||typeof B.UNSAFE_componentWillMount!="function"&&typeof B.componentWillMount!="function"||(typeof B.componentWillMount=="function"&&B.componentWillMount(),typeof B.UNSAFE_componentWillMount=="function"&&B.UNSAFE_componentWillMount()),typeof B.componentDidMount=="function"&&(m.flags|=4194308)):(typeof B.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=S,m.memoizedState=ge),B.props=S,B.state=ge,B.context=K,S=se):(typeof B.componentDidMount=="function"&&(m.flags|=4194308),S=!1)}else{B=m.stateNode,Z$(h,m),K=m.memoizedProps,Te=vh(v,K),B.props=Te,Ne=m.pendingProps,ve=B.context,ge=v.contextType,se=qg,typeof ge=="object"&&ge!==null&&(se=Bo(ge)),te=v.getDerivedStateFromProps,(ge=typeof te=="function"||typeof B.getSnapshotBeforeUpdate=="function")||typeof B.UNSAFE_componentWillReceiveProps!="function"&&typeof B.componentWillReceiveProps!="function"||(K!==Ne||ve!==se)&&Mme(m,B,S,se),Zu=!1,ve=m.memoizedState,B.state=ve,yv(m,S,B,P),gv();var ke=m.memoizedState;K!==Ne||ve!==ke||Zu||h!==null&&h.dependencies!==null&&Gk(h.dependencies)?(typeof te=="function"&&(bM(m,v,te,S),ke=m.memoizedState),(Te=Zu||$me(m,v,Te,S,ve,ke,se)||h!==null&&h.dependencies!==null&&Gk(h.dependencies))?(ge||typeof B.UNSAFE_componentWillUpdate!="function"&&typeof B.componentWillUpdate!="function"||(typeof B.componentWillUpdate=="function"&&B.componentWillUpdate(S,ke,se),typeof B.UNSAFE_componentWillUpdate=="function"&&B.UNSAFE_componentWillUpdate(S,ke,se)),typeof B.componentDidUpdate=="function"&&(m.flags|=4),typeof B.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof B.componentDidUpdate!="function"||K===h.memoizedProps&&ve===h.memoizedState||(m.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||K===h.memoizedProps&&ve===h.memoizedState||(m.flags|=1024),m.memoizedProps=S,m.memoizedState=ke),B.props=S,B.state=ke,B.context=se,S=Te):(typeof B.componentDidUpdate!="function"||K===h.memoizedProps&&ve===h.memoizedState||(m.flags|=4),typeof B.getSnapshotBeforeUpdate!="function"||K===h.memoizedProps&&ve===h.memoizedState||(m.flags|=1024),S=!1)}return B=S,h6(h,m),S=(m.flags&128)!==0,B||S?(B=m.stateNode,v=S&&typeof v.getDerivedStateFromError!="function"?null:B.render(),m.flags|=1,h!==null&&S?(m.child=Jg(m,h.child,null,P),m.child=Jg(m,null,v,P)):xo(h,m,v,P),m.memoizedState=B.state,h=m.child):h=Ic(h,m,P),h}function Xme(h,m,v,S){return sv(),m.flags|=256,xo(h,m,v,S),m.child}var kM={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _M(h){return{baseLanes:h,cachePool:Ife()}}function EM(h,m,v){return h=h!==null?h.childLanes&~v:0,m&&(h|=Li),h}function Kme(h,m,v){var S=m.pendingProps,P=!1,B=(m.flags&128)!==0,K;if((K=B)||(K=h!==null&&h.memoizedState===null?!1:(Hn.current&2)!==0),K&&(P=!0,m.flags&=-129),K=(m.flags&32)!==0,m.flags&=-33,h===null){if(ir){if(P?td(m):rd(),ir){var te=rn,se;if(se=te){e:{for(se=te,te=Ts;se.nodeType!==8;){if(!te){te=null;break e}if(se=ql(se.nextSibling),se===null){te=null;break e}}te=se}te!==null?(m.memoizedState={dehydrated:te,treeContext:dh!==null?{id:Nc,overflow:Dc}:null,retryLane:536870912,hydrationErrors:null},se=qa(18,null,null,0),se.stateNode=te,se.return=m,m.child=se,Wo=m,rn=null,se=!0):se=!1}se||fh(m)}if(te=m.memoizedState,te!==null&&(te=te.dehydrated,te!==null))return lO(te)?m.lanes=32:m.lanes=536870912,null;Oc(m)}return te=S.children,S=S.fallback,P?(rd(),P=m.mode,te=f6({mode:"hidden",children:te},P),S=uh(S,P,v,null),te.return=m,S.return=m,te.sibling=S,m.child=te,P=m.child,P.memoizedState=_M(v),P.childLanes=EM(h,K,v),m.memoizedState=kM,S):(td(m),SM(m,te))}if(se=h.memoizedState,se!==null&&(te=se.dehydrated,te!==null)){if(B)m.flags&256?(td(m),m.flags&=-257,m=CM(h,m,v)):m.memoizedState!==null?(rd(),m.child=h.child,m.flags|=128,m=null):(rd(),P=S.fallback,te=m.mode,S=f6({mode:"visible",children:S.children},te),P=uh(P,te,v,null),P.flags|=2,S.return=m,P.return=m,S.sibling=P,m.child=S,Jg(m,h.child,null,v),S=m.child,S.memoizedState=_M(v),S.childLanes=EM(h,K,v),m.memoizedState=kM,m=P);else if(td(m),lO(te)){if(K=te.nextSibling&&te.nextSibling.dataset,K)var ge=K.dgst;K=ge,S=Error(o(419)),S.stack="",S.digest=K,cv({value:S,source:null,stack:null}),m=CM(h,m,v)}else if(ao||uv(h,m,v,!1),K=(v&h.childLanes)!==0,ao||K){if(K=Rr,K!==null&&(S=v&-v,S=(S&42)!==0?1:Jp(S),S=(S&(K.suspendedLanes|v))!==0?0:S,S!==0&&S!==se.retryLane))throw se.retryLane=S,Hg(h,S),Ga(K,h,S),Fme;te.data==="$?"||UM(),m=CM(h,m,v)}else te.data==="$?"?(m.flags|=192,m.child=h.child,m=null):(h=se.treeContext,rn=ql(te.nextSibling),Wo=m,ir=!0,hh=null,Ts=!1,h!==null&&(Mi[Oi++]=Nc,Mi[Oi++]=Dc,Mi[Oi++]=dh,Nc=h.id,Dc=h.overflow,dh=m),m=SM(m,S.children),m.flags|=4096);return m}return P?(rd(),P=S.fallback,te=m.mode,se=h.child,ge=se.sibling,S=Ac(se,{mode:"hidden",children:S.children}),S.subtreeFlags=se.subtreeFlags&65011712,ge!==null?P=Ac(ge,P):(P=uh(P,te,v,null),P.flags|=2),P.return=m,S.return=m,S.sibling=P,m.child=S,S=P,P=m.child,te=h.child.memoizedState,te===null?te=_M(v):(se=te.cachePool,se!==null?(ge=Fn._currentValue,se=se.parent!==ge?{parent:ge,pool:ge}:se):se=Ife(),te={baseLanes:te.baseLanes|v,cachePool:se}),P.memoizedState=te,P.childLanes=EM(h,K,v),m.memoizedState=kM,S):(td(m),v=h.child,h=v.sibling,v=Ac(v,{mode:"visible",children:S.children}),v.return=m,v.sibling=null,h!==null&&(K=m.deletions,K===null?(m.deletions=[h],m.flags|=16):K.push(h)),m.child=v,m.memoizedState=null,v)}function SM(h,m){return m=f6({mode:"visible",children:m},h.mode),m.return=h,h.child=m}function f6(h,m){return h=qa(22,h,null,m),h.lanes=0,h.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},h}function CM(h,m,v){return Jg(m,h.child,null,v),h=SM(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function Zme(h,m,v){h.lanes|=m;var S=h.alternate;S!==null&&(S.lanes|=m),U$(h.return,m,v)}function TM(h,m,v,S,P){var B=h.memoizedState;B===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:S,tail:v,tailMode:P}:(B.isBackwards=m,B.rendering=null,B.renderingStartTime=0,B.last=S,B.tail=v,B.tailMode=P)}function Qme(h,m,v){var S=m.pendingProps,P=S.revealOrder,B=S.tail;if(xo(h,m,S.children,v),S=Hn.current,(S&2)!==0)S=S&1|2,m.flags|=128;else{if(h!==null&&(h.flags&128)!==0)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&Zme(h,v,m);else if(h.tag===19)Zme(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}S&=1}switch(z(Hn,S),P){case"forwards":for(v=m.child,P=null;v!==null;)h=v.alternate,h!==null&&u6(h)===null&&(P=v),v=v.sibling;v=P,v===null?(P=m.child,m.child=null):(P=v.sibling,v.sibling=null),TM(m,!1,P,v,B);break;case"backwards":for(v=null,P=m.child,m.child=null;P!==null;){if(h=P.alternate,h!==null&&u6(h)===null){m.child=P;break}h=P.sibling,P.sibling=v,v=P,P=h}TM(m,!0,v,null,B);break;case"together":TM(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Ic(h,m,v){if(h!==null&&(m.dependencies=h.dependencies),ld|=m.lanes,(v&m.childLanes)===0)if(h!==null){if(uv(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=Ac(h,h.pendingProps),m.child=v,v.return=m;h.sibling!==null;)h=h.sibling,v=v.sibling=Ac(h,h.pendingProps),v.return=m;v.sibling=null}return m.child}function RM(h,m){return(h.lanes&m)!==0?!0:(h=h.dependencies,!!(h!==null&&Gk(h)))}function ukt(h,m,v){switch(m.tag){case 3:ee(m,m.stateNode.containerInfo),Ku(m,Fn,h.memoizedState.cache),sv();break;case 27:case 5:pe(m);break;case 4:ee(m,m.stateNode.containerInfo);break;case 10:Ku(m,m.type,m.memoizedProps.value);break;case 13:var S=m.memoizedState;if(S!==null)return S.dehydrated!==null?(td(m),m.flags|=128,null):(v&m.child.childLanes)!==0?Kme(h,m,v):(td(m),h=Ic(h,m,v),h!==null?h.sibling:null);td(m);break;case 19:var P=(h.flags&128)!==0;if(S=(v&m.childLanes)!==0,S||(uv(h,m,v,!1),S=(v&m.childLanes)!==0),P){if(S)return Qme(h,m,v);m.flags|=128}if(P=m.memoizedState,P!==null&&(P.rendering=null,P.tail=null,P.lastEffect=null),z(Hn,Hn.current),S)break;return null;case 22:case 23:return m.lanes=0,Vme(h,m,v);case 24:Ku(m,Fn,h.memoizedState.cache)}return Ic(h,m,v)}function Jme(h,m,v){if(h!==null)if(h.memoizedProps!==m.pendingProps)ao=!0;else{if(!RM(h,v)&&(m.flags&128)===0)return ao=!1,ukt(h,m,v);ao=(h.flags&131072)!==0}else ao=!1,ir&&(m.flags&1048576)!==0&&Afe(m,Wk,m.index);switch(m.lanes=0,m.tag){case 16:e:{h=m.pendingProps;var S=m.elementType,P=S._init;if(S=P(S._payload),m.type=S,typeof S=="function")L$(S)?(h=vh(S,h),m.tag=1,m=Gme(null,m,S,h,v)):(m.tag=0,m=wM(null,m,S,h,v));else{if(S!=null){if(P=S.$$typeof,P===T){m.tag=11,m=Hme(null,m,S,h,v);break e}else if(P===D){m.tag=14,m=qme(null,m,S,h,v);break e}}throw m=O(S)||S,Error(o(306,m,""))}}return m;case 0:return wM(h,m,m.type,m.pendingProps,v);case 1:return S=m.type,P=vh(S,m.pendingProps),Gme(h,m,S,P,v);case 3:e:{if(ee(m,m.stateNode.containerInfo),h===null)throw Error(o(387));S=m.pendingProps;var B=m.memoizedState;P=B.element,Z$(h,m),yv(m,S,null,v);var K=m.memoizedState;if(S=K.cache,Ku(m,Fn,S),S!==B.cache&&V$(m,[Fn],v,!0),gv(),S=K.element,B.isDehydrated)if(B={element:S,isDehydrated:!1,cache:K.cache},m.updateQueue.baseState=B,m.memoizedState=B,m.flags&256){m=Xme(h,m,S,v);break e}else if(S!==P){P=Pi(Error(o(424)),m),cv(P),m=Xme(h,m,S,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(rn=ql(h.firstChild),Wo=m,ir=!0,hh=null,Ts=!0,v=Dme(m,null,S,v),m.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(sv(),S===P){m=Ic(h,m,v);break e}xo(h,m,S,v)}m=m.child}return m;case 26:return h6(h,m),h===null?(v=n1e(m.type,null,m.pendingProps,null))?m.memoizedState=v:ir||(v=m.type,h=m.pendingProps,S=R6(Z.current).createElement(v),S[Mn]=m,S[oo]=h,ko(S,v,h),tn(S),m.stateNode=S):m.memoizedState=n1e(m.type,h.memoizedProps,m.pendingProps,h.memoizedState),null;case 27:return pe(m),h===null&&ir&&(S=m.stateNode=e1e(m.type,m.pendingProps,Z.current),Wo=m,Ts=!0,P=rn,dd(m.type)?(sO=P,rn=ql(S.firstChild)):rn=P),xo(h,m,m.pendingProps.children,v),h6(h,m),h===null&&(m.flags|=4194304),m.child;case 5:return h===null&&ir&&((P=S=rn)&&(S=zkt(S,m.type,m.pendingProps,Ts),S!==null?(m.stateNode=S,Wo=m,rn=ql(S.firstChild),Ts=!1,P=!0):P=!1),P||fh(m)),pe(m),P=m.type,B=m.pendingProps,K=h!==null?h.memoizedProps:null,S=B.children,oO(P,B)?S=null:K!==null&&oO(P,K)&&(m.flags|=32),m.memoizedState!==null&&(P=nM(h,m,rkt,null,null,v),Bv._currentValue=P),h6(h,m),xo(h,m,S,v),m.child;case 6:return h===null&&ir&&((h=v=rn)&&(v=Bkt(v,m.pendingProps,Ts),v!==null?(m.stateNode=v,Wo=m,rn=null,h=!0):h=!1),h||fh(m)),null;case 13:return Kme(h,m,v);case 4:return ee(m,m.stateNode.containerInfo),S=m.pendingProps,h===null?m.child=Jg(m,null,S,v):xo(h,m,S,v),m.child;case 11:return Hme(h,m,m.type,m.pendingProps,v);case 7:return xo(h,m,m.pendingProps,v),m.child;case 8:return xo(h,m,m.pendingProps.children,v),m.child;case 12:return xo(h,m,m.pendingProps.children,v),m.child;case 10:return S=m.pendingProps,Ku(m,m.type,S.value),xo(h,m,S.children,v),m.child;case 9:return P=m.type._context,S=m.pendingProps.children,gh(m),P=Bo(P),S=S(P),m.flags|=1,xo(h,m,S,v),m.child;case 14:return qme(h,m,m.type,m.pendingProps,v);case 15:return Ume(h,m,m.type,m.pendingProps,v);case 19:return Qme(h,m,v);case 31:return S=m.pendingProps,v=m.mode,S={mode:S.mode,children:S.children},h===null?(v=f6(S,v),v.ref=m.ref,m.child=v,v.return=m,m=v):(v=Ac(h.child,S),v.ref=m.ref,m.child=v,v.return=m,m=v),m;case 22:return Vme(h,m,v);case 24:return gh(m),S=Bo(Fn),h===null?(P=G$(),P===null&&(P=Rr,B=Y$(),P.pooledCache=B,B.refCount++,B!==null&&(P.pooledCacheLanes|=v),P=B),m.memoizedState={parent:S,cache:P},K$(m),Ku(m,Fn,P)):((h.lanes&v)!==0&&(Z$(h,m),yv(m,null,null,v),gv()),P=h.memoizedState,B=m.memoizedState,P.parent!==S?(P={parent:S,cache:S},m.memoizedState=P,m.lanes===0&&(m.memoizedState=m.updateQueue.baseState=P),Ku(m,Fn,S)):(S=B.cache,Ku(m,Fn,S),S!==P.cache&&V$(m,[Fn],v,!0))),xo(h,m,m.pendingProps.children,v),m.child;case 29:throw m.pendingProps}throw Error(o(156,m.tag))}function Lc(h){h.flags|=4}function ege(h,m){if(m.type!=="stylesheet"||(m.state.loading&4)!==0)h.flags&=-16777217;else if(h.flags|=16777216,!s1e(m)){if(m=Ii.current,m!==null&&((rr&4194048)===rr?Rs!==null:(rr&62914560)!==rr&&(rr&536870912)===0||m!==Rs))throw fv=X$,Lfe;h.flags|=8192}}function m6(h,m){m!==null&&(h.flags|=4),h.flags&16384&&(m=h.tag!==22?_s():536870912,h.lanes|=m,n1|=m)}function Ev(h,m){if(!ir)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 S=null;v!==null;)v.alternate!==null&&(S=v),v=v.sibling;S===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:S.sibling=null}}function Gr(h){var m=h.alternate!==null&&h.alternate.child===h.child,v=0,S=0;if(m)for(var P=h.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags&65011712,S|=P.flags&65011712,P.return=h,P=P.sibling;else for(P=h.child;P!==null;)v|=P.lanes|P.childLanes,S|=P.subtreeFlags,S|=P.flags,P.return=h,P=P.sibling;return h.subtreeFlags|=S,h.childLanes=v,m}function dkt(h,m,v){var S=m.pendingProps;switch(F$(m),m.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Gr(m),null;case 1:return Gr(m),null;case 3:return v=m.stateNode,S=null,h!==null&&(S=h.memoizedState.cache),m.memoizedState.cache!==S&&(m.flags|=2048),$c(Fn),re(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(h===null||h.child===null)&&(lv(m)?Lc(m):h===null||h.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,Pfe())),Gr(m),null;case 26:return v=m.memoizedState,h===null?(Lc(m),v!==null?(Gr(m),ege(m,v)):(Gr(m),m.flags&=-16777217)):v?v!==h.memoizedState?(Lc(m),Gr(m),ege(m,v)):(Gr(m),m.flags&=-16777217):(h.memoizedProps!==S&&Lc(m),Gr(m),m.flags&=-16777217),null;case 27:Ce(m),v=Z.current;var P=m.type;if(h!==null&&m.stateNode!=null)h.memoizedProps!==S&&Lc(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Gr(m),null}h=W.current,lv(m)?Nfe(m):(h=e1e(P,S,v),m.stateNode=h,Lc(m))}return Gr(m),null;case 5:if(Ce(m),v=m.type,h!==null&&m.stateNode!=null)h.memoizedProps!==S&&Lc(m);else{if(!S){if(m.stateNode===null)throw Error(o(166));return Gr(m),null}if(h=W.current,lv(m))Nfe(m);else{switch(P=R6(Z.current),h){case 1:h=P.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:h=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":h=P.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":h=P.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":h=P.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof S.is=="string"?P.createElement("select",{is:S.is}):P.createElement("select"),S.multiple?h.multiple=!0:S.size&&(h.size=S.size);break;default:h=typeof S.is=="string"?P.createElement(v,{is:S.is}):P.createElement(v)}}h[Mn]=m,h[oo]=S;e:for(P=m.child;P!==null;){if(P.tag===5||P.tag===6)h.appendChild(P.stateNode);else if(P.tag!==4&&P.tag!==27&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===m)break e;for(;P.sibling===null;){if(P.return===null||P.return===m)break e;P=P.return}P.sibling.return=P.return,P=P.sibling}m.stateNode=h;e:switch(ko(h,v,S),v){case"button":case"input":case"select":case"textarea":h=!!S.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Lc(m)}}return Gr(m),m.flags&=-16777217,null;case 6:if(h&&m.stateNode!=null)h.memoizedProps!==S&&Lc(m);else{if(typeof S!="string"&&m.stateNode===null)throw Error(o(166));if(h=Z.current,lv(m)){if(h=m.stateNode,v=m.memoizedProps,S=null,P=Wo,P!==null)switch(P.tag){case 27:case 5:S=P.memoizedProps}h[Mn]=m,h=!!(h.nodeValue===v||S!==null&&S.suppressHydrationWarning===!0||Wge(h.nodeValue,v)),h||fh(m)}else h=R6(h).createTextNode(S),h[Mn]=m,m.stateNode=h}return Gr(m),null;case 13:if(S=m.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(P=lv(m),S!==null&&S.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 sv(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Gr(m),P=!1}else P=Pfe(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=P),P=!0;if(!P)return m.flags&256?(Oc(m),m):(Oc(m),null)}if(Oc(m),(m.flags&128)!==0)return m.lanes=v,m;if(v=S!==null,h=h!==null&&h.memoizedState!==null,v){S=m.child,P=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&(P=S.alternate.memoizedState.cachePool.pool);var B=null;S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(B=S.memoizedState.cachePool.pool),B!==P&&(S.flags|=2048)}return v!==h&&v&&(m.child.flags|=8192),m6(m,m.updateQueue),Gr(m),null;case 4:return re(),h===null&&JM(m.stateNode.containerInfo),Gr(m),null;case 10:return $c(m.type),Gr(m),null;case 19:if(Q(Hn),P=m.memoizedState,P===null)return Gr(m),null;if(S=(m.flags&128)!==0,B=P.rendering,B===null)if(S)Ev(P,!1);else{if(nn!==0||h!==null&&(h.flags&128)!==0)for(h=m.child;h!==null;){if(B=u6(h),B!==null){for(m.flags|=128,Ev(P,!1),h=B.updateQueue,m.updateQueue=h,m6(m,h),m.subtreeFlags=0,h=v,v=m.child;v!==null;)Rfe(v,h),v=v.sibling;return z(Hn,Hn.current&1|2),m.child}h=h.sibling}P.tail!==null&&Ge()>b6&&(m.flags|=128,S=!0,Ev(P,!1),m.lanes=4194304)}else{if(!S)if(h=u6(B),h!==null){if(m.flags|=128,S=!0,h=h.updateQueue,m.updateQueue=h,m6(m,h),Ev(P,!0),P.tail===null&&P.tailMode==="hidden"&&!B.alternate&&!ir)return Gr(m),null}else 2*Ge()-P.renderingStartTime>b6&&v!==536870912&&(m.flags|=128,S=!0,Ev(P,!1),m.lanes=4194304);P.isBackwards?(B.sibling=m.child,m.child=B):(h=P.last,h!==null?h.sibling=B:m.child=B,P.last=B)}return P.tail!==null?(m=P.tail,P.rendering=m,P.tail=m.sibling,P.renderingStartTime=Ge(),m.sibling=null,h=Hn.current,z(Hn,S?h&1|2:h&1),m):(Gr(m),null);case 22:case 23:return Oc(m),tM(),S=m.memoizedState!==null,h!==null?h.memoizedState!==null!==S&&(m.flags|=8192):S&&(m.flags|=8192),S?(v&536870912)!==0&&(m.flags&128)===0&&(Gr(m),m.subtreeFlags&6&&(m.flags|=8192)):Gr(m),v=m.updateQueue,v!==null&&m6(m,v.retryQueue),v=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(v=h.memoizedState.cachePool.pool),S=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==v&&(m.flags|=2048),h!==null&&Q(yh),null;case 24:return v=null,h!==null&&(v=h.memoizedState.cache),m.memoizedState.cache!==v&&(m.flags|=2048),$c(Fn),Gr(m),null;case 25:return null;case 30:return null}throw Error(o(156,m.tag))}function pkt(h,m){switch(F$(m),m.tag){case 1:return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return $c(Fn),re(),h=m.flags,(h&65536)!==0&&(h&128)===0?(m.flags=h&-65537|128,m):null;case 26:case 27:case 5:return Ce(m),null;case 13:if(Oc(m),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(o(340));sv()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Q(Hn),null;case 4:return re(),null;case 10:return $c(m.type),null;case 22:case 23:return Oc(m),tM(),h!==null&&Q(yh),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 24:return $c(Fn),null;case 25:return null;default:return null}}function tge(h,m){switch(F$(m),m.tag){case 3:$c(Fn),re();break;case 26:case 27:case 5:Ce(m);break;case 4:re();break;case 13:Oc(m);break;case 19:Q(Hn);break;case 10:$c(m.type);break;case 22:case 23:Oc(m),tM(),h!==null&&Q(yh);break;case 24:$c(Fn)}}function Sv(h,m){try{var v=m.updateQueue,S=v!==null?v.lastEffect:null;if(S!==null){var P=S.next;v=P;do{if((v.tag&h)===h){S=void 0;var B=v.create,K=v.inst;S=B(),K.destroy=S}v=v.next}while(v!==P)}}catch(te){kr(m,m.return,te)}}function nd(h,m,v){try{var S=m.updateQueue,P=S!==null?S.lastEffect:null;if(P!==null){var B=P.next;S=B;do{if((S.tag&h)===h){var K=S.inst,te=K.destroy;if(te!==void 0){K.destroy=void 0,P=m;var se=v,ge=te;try{ge()}catch(Te){kr(P,se,Te)}}}S=S.next}while(S!==B)}}catch(Te){kr(m,m.return,Te)}}function rge(h){var m=h.updateQueue;if(m!==null){var v=h.stateNode;try{qfe(m,v)}catch(S){kr(h,h.return,S)}}}function nge(h,m,v){v.props=vh(h.type,h.memoizedProps),v.state=h.memoizedState;try{v.componentWillUnmount()}catch(S){kr(h,m,S)}}function Cv(h,m){try{var v=h.ref;if(v!==null){switch(h.tag){case 26:case 27:case 5:var S=h.stateNode;break;case 30:S=h.stateNode;break;default:S=h.stateNode}typeof v=="function"?h.refCleanup=v(S):v.current=S}}catch(P){kr(h,m,P)}}function As(h,m){var v=h.ref,S=h.refCleanup;if(v!==null)if(typeof S=="function")try{S()}catch(P){kr(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){kr(h,m,P)}else v.current=null}function oge(h){var m=h.type,v=h.memoizedProps,S=h.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":v.autoFocus&&S.focus();break e;case"img":v.src?S.src=v.src:v.srcSet&&(S.srcset=v.srcSet)}}catch(P){kr(h,h.return,P)}}function AM(h,m,v){try{var S=h.stateNode;$kt(S,h.type,v,m),S[oo]=m}catch(P){kr(h,h.return,P)}}function age(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&dd(h.type)||h.tag===4}function NM(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||age(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&&dd(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 DM(h,m,v){var S=h.tag;if(S===5||S===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=T6));else if(S!==4&&(S===27&&dd(h.type)&&(v=h.stateNode,m=null),h=h.child,h!==null))for(DM(h,m,v),h=h.sibling;h!==null;)DM(h,m,v),h=h.sibling}function g6(h,m,v){var S=h.tag;if(S===5||S===6)h=h.stateNode,m?v.insertBefore(h,m):v.appendChild(h);else if(S!==4&&(S===27&&dd(h.type)&&(v=h.stateNode),h=h.child,h!==null))for(g6(h,m,v),h=h.sibling;h!==null;)g6(h,m,v),h=h.sibling}function ige(h){var m=h.stateNode,v=h.memoizedProps;try{for(var S=h.type,P=m.attributes;P.length;)m.removeAttributeNode(P[0]);ko(m,S,v),m[Mn]=h,m[oo]=v}catch(B){kr(h,h.return,B)}}var zc=!1,pn=!1,PM=!1,lge=typeof WeakSet=="function"?WeakSet:Set,io=null;function hkt(h,m){if(h=h.containerInfo,rO=M6,h=bfe(h),N$(h)){if("selectionStart"in h)var v={start:h.selectionStart,end:h.selectionEnd};else e:{v=(v=h.ownerDocument)&&v.defaultView||window;var S=v.getSelection&&v.getSelection();if(S&&S.rangeCount!==0){v=S.anchorNode;var P=S.anchorOffset,B=S.focusNode;S=S.focusOffset;try{v.nodeType,B.nodeType}catch{v=null;break e}var K=0,te=-1,se=-1,ge=0,Te=0,Ne=h,ve=null;t:for(;;){for(var ke;Ne!==v||P!==0&&Ne.nodeType!==3||(te=K+P),Ne!==B||S!==0&&Ne.nodeType!==3||(se=K+S),Ne.nodeType===3&&(K+=Ne.nodeValue.length),(ke=Ne.firstChild)!==null;)ve=Ne,Ne=ke;for(;;){if(Ne===h)break t;if(ve===v&&++ge===P&&(te=K),ve===B&&++Te===S&&(se=K),(ke=Ne.nextSibling)!==null)break;Ne=ve,ve=Ne.parentNode}Ne=ke}v=te===-1||se===-1?null:{start:te,end:se}}else v=null}v=v||{start:0,end:0}}else v=null;for(nO={focusedElem:h,selectionRange:v},M6=!1,io=m;io!==null;)if(m=io,h=m.child,(m.subtreeFlags&1024)!==0&&h!==null)h.return=m,io=h;else for(;io!==null;){switch(m=io,B=m.alternate,h=m.flags,m.tag){case 0:break;case 11:case 15:break;case 1:if((h&1024)!==0&&B!==null){h=void 0,v=m,P=B.memoizedProps,B=B.memoizedState,S=v.stateNode;try{var xt=vh(v.type,P,v.elementType===v.type);h=S.getSnapshotBeforeUpdate(xt,B),S.__reactInternalSnapshotBeforeUpdate=h}catch(ft){kr(v,v.return,ft)}}break;case 3:if((h&1024)!==0){if(h=m.stateNode.containerInfo,v=h.nodeType,v===9)iO(h);else if(v===1)switch(h.nodeName){case"HEAD":case"HTML":case"BODY":iO(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,io=h;break}io=m.return}}function sge(h,m,v){var S=v.flags;switch(v.tag){case 0:case 11:case 15:od(h,v),S&4&&Sv(5,v);break;case 1:if(od(h,v),S&4)if(h=v.stateNode,m===null)try{h.componentDidMount()}catch(K){kr(v,v.return,K)}else{var P=vh(v.type,m.memoizedProps);m=m.memoizedState;try{h.componentDidUpdate(P,m,h.__reactInternalSnapshotBeforeUpdate)}catch(K){kr(v,v.return,K)}}S&64&&rge(v),S&512&&Cv(v,v.return);break;case 3:if(od(h,v),S&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{qfe(h,m)}catch(K){kr(v,v.return,K)}}break;case 27:m===null&&S&4&&ige(v);case 26:case 5:od(h,v),m===null&&S&4&&oge(v),S&512&&Cv(v,v.return);break;case 12:od(h,v);break;case 13:od(h,v),S&4&&dge(h,v),S&64&&(h=v.memoizedState,h!==null&&(h=h.dehydrated,h!==null&&(v=kkt.bind(null,v),jkt(h,v))));break;case 22:if(S=v.memoizedState!==null||zc,!S){m=m!==null&&m.memoizedState!==null||pn,P=zc;var B=pn;zc=S,(pn=m)&&!B?ad(h,v,(v.subtreeFlags&8772)!==0):od(h,v),zc=P,pn=B}break;case 30:break;default:od(h,v)}}function cge(h){var m=h.alternate;m!==null&&(h.alternate=null,cge(m)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(m=h.stateNode,m!==null&&rh(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 Hr=null,ga=!1;function Bc(h,m,v){for(v=v.child;v!==null;)uge(h,m,v),v=v.sibling}function uge(h,m,v){if(we&&typeof we.onCommitFiberUnmount=="function")try{we.onCommitFiberUnmount(_e,v)}catch{}switch(v.tag){case 26:pn||As(v,m),Bc(h,m,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:pn||As(v,m);var S=Hr,P=ga;dd(v.type)&&(Hr=v.stateNode,ga=!1),Bc(h,m,v),Ov(v.stateNode),Hr=S,ga=P;break;case 5:pn||As(v,m);case 6:if(S=Hr,P=ga,Hr=null,Bc(h,m,v),Hr=S,ga=P,Hr!==null)if(ga)try{(Hr.nodeType===9?Hr.body:Hr.nodeName==="HTML"?Hr.ownerDocument.body:Hr).removeChild(v.stateNode)}catch(B){kr(v,m,B)}else try{Hr.removeChild(v.stateNode)}catch(B){kr(v,m,B)}break;case 18:Hr!==null&&(ga?(h=Hr,Qge(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,v.stateNode),qv(h)):Qge(Hr,v.stateNode));break;case 4:S=Hr,P=ga,Hr=v.stateNode.containerInfo,ga=!0,Bc(h,m,v),Hr=S,ga=P;break;case 0:case 11:case 14:case 15:pn||nd(2,v,m),pn||nd(4,v,m),Bc(h,m,v);break;case 1:pn||(As(v,m),S=v.stateNode,typeof S.componentWillUnmount=="function"&&nge(v,m,S)),Bc(h,m,v);break;case 21:Bc(h,m,v);break;case 22:pn=(S=pn)||v.memoizedState!==null,Bc(h,m,v),pn=S;break;default:Bc(h,m,v)}}function dge(h,m){if(m.memoizedState===null&&(h=m.alternate,h!==null&&(h=h.memoizedState,h!==null&&(h=h.dehydrated,h!==null))))try{qv(h)}catch(v){kr(m,m.return,v)}}function fkt(h){switch(h.tag){case 13:case 19:var m=h.stateNode;return m===null&&(m=h.stateNode=new lge),m;case 22:return h=h.stateNode,m=h._retryCache,m===null&&(m=h._retryCache=new lge),m;default:throw Error(o(435,h.tag))}}function $M(h,m){var v=fkt(h);m.forEach(function(S){var P=_kt.bind(null,h,S);v.has(S)||(v.add(S),S.then(P,P))})}function Ua(h,m){var v=m.deletions;if(v!==null)for(var S=0;S<v.length;S++){var P=v[S],B=h,K=m,te=K;e:for(;te!==null;){switch(te.tag){case 27:if(dd(te.type)){Hr=te.stateNode,ga=!1;break e}break;case 5:Hr=te.stateNode,ga=!1;break e;case 3:case 4:Hr=te.stateNode.containerInfo,ga=!0;break e}te=te.return}if(Hr===null)throw Error(o(160));uge(B,K,P),Hr=null,ga=!1,B=P.alternate,B!==null&&(B.return=null),P.return=null}if(m.subtreeFlags&13878)for(m=m.child;m!==null;)pge(m,h),m=m.sibling}var Hl=null;function pge(h,m){var v=h.alternate,S=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:Ua(m,h),Va(h),S&4&&(nd(3,h,h.return),Sv(3,h),nd(5,h,h.return));break;case 1:Ua(m,h),Va(h),S&512&&(pn||v===null||As(v,v.return)),S&64&&zc&&(h=h.updateQueue,h!==null&&(S=h.callbacks,S!==null&&(v=h.shared.hiddenCallbacks,h.shared.hiddenCallbacks=v===null?S:v.concat(S))));break;case 26:var P=Hl;if(Ua(m,h),Va(h),S&512&&(pn||v===null||As(v,v.return)),S&4){var B=v!==null?v.memoizedState:null;if(S=h.memoizedState,v===null)if(S===null)if(h.stateNode===null){e:{S=h.type,v=h.memoizedProps,P=P.ownerDocument||P;t:switch(S){case"title":B=P.getElementsByTagName("title")[0],(!B||B[Tc]||B[Mn]||B.namespaceURI==="http://www.w3.org/2000/svg"||B.hasAttribute("itemprop"))&&(B=P.createElement(S),P.head.insertBefore(B,P.querySelector("head > title"))),ko(B,S,v),B[Mn]=h,tn(B),S=B;break e;case"link":var K=i1e("link","href",P).get(S+(v.href||""));if(K){for(var te=0;te<K.length;te++)if(B=K[te],B.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&B.getAttribute("rel")===(v.rel==null?null:v.rel)&&B.getAttribute("title")===(v.title==null?null:v.title)&&B.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){K.splice(te,1);break t}}B=P.createElement(S),ko(B,S,v),P.head.appendChild(B);break;case"meta":if(K=i1e("meta","content",P).get(S+(v.content||""))){for(te=0;te<K.length;te++)if(B=K[te],B.getAttribute("content")===(v.content==null?null:""+v.content)&&B.getAttribute("name")===(v.name==null?null:v.name)&&B.getAttribute("property")===(v.property==null?null:v.property)&&B.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&B.getAttribute("charset")===(v.charSet==null?null:v.charSet)){K.splice(te,1);break t}}B=P.createElement(S),ko(B,S,v),P.head.appendChild(B);break;default:throw Error(o(468,S))}B[Mn]=h,tn(B),S=B}h.stateNode=S}else l1e(P,h.type,h.stateNode);else h.stateNode=a1e(P,S,h.memoizedProps);else B!==S?(B===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):B.count--,S===null?l1e(P,h.type,h.stateNode):a1e(P,S,h.memoizedProps)):S===null&&h.stateNode!==null&&AM(h,h.memoizedProps,v.memoizedProps)}break;case 27:Ua(m,h),Va(h),S&512&&(pn||v===null||As(v,v.return)),v!==null&&S&4&&AM(h,h.memoizedProps,v.memoizedProps);break;case 5:if(Ua(m,h),Va(h),S&512&&(pn||v===null||As(v,v.return)),h.flags&32){P=h.stateNode;try{Og(P,"")}catch(ke){kr(h,h.return,ke)}}S&4&&h.stateNode!=null&&(P=h.memoizedProps,AM(h,P,v!==null?v.memoizedProps:P)),S&1024&&(PM=!0);break;case 6:if(Ua(m,h),Va(h),S&4){if(h.stateNode===null)throw Error(o(162));S=h.memoizedProps,v=h.stateNode;try{v.nodeValue=S}catch(ke){kr(h,h.return,ke)}}break;case 3:if(D6=null,P=Hl,Hl=A6(m.containerInfo),Ua(m,h),Hl=P,Va(h),S&4&&v!==null&&v.memoizedState.isDehydrated)try{qv(m.containerInfo)}catch(ke){kr(h,h.return,ke)}PM&&(PM=!1,hge(h));break;case 4:S=Hl,Hl=A6(h.stateNode.containerInfo),Ua(m,h),Va(h),Hl=S;break;case 12:Ua(m,h),Va(h);break;case 13:Ua(m,h),Va(h),h.child.flags&8192&&h.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(BM=Ge()),S&4&&(S=h.updateQueue,S!==null&&(h.updateQueue=null,$M(h,S)));break;case 22:P=h.memoizedState!==null;var se=v!==null&&v.memoizedState!==null,ge=zc,Te=pn;if(zc=ge||P,pn=Te||se,Ua(m,h),pn=Te,zc=ge,Va(h),S&8192)e:for(m=h.stateNode,m._visibility=P?m._visibility&-2:m._visibility|1,P&&(v===null||se||zc||pn||xh(h)),v=null,m=h;;){if(m.tag===5||m.tag===26){if(v===null){se=v=m;try{if(B=se.stateNode,P)K=B.style,typeof K.setProperty=="function"?K.setProperty("display","none","important"):K.display="none";else{te=se.stateNode;var Ne=se.memoizedProps.style,ve=Ne!=null&&Ne.hasOwnProperty("display")?Ne.display:null;te.style.display=ve==null||typeof ve=="boolean"?"":(""+ve).trim()}}catch(ke){kr(se,se.return,ke)}}}else if(m.tag===6){if(v===null){se=m;try{se.stateNode.nodeValue=P?"":se.memoizedProps}catch(ke){kr(se,se.return,ke)}}}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}S&4&&(S=h.updateQueue,S!==null&&(v=S.retryQueue,v!==null&&(S.retryQueue=null,$M(h,v))));break;case 19:Ua(m,h),Va(h),S&4&&(S=h.updateQueue,S!==null&&(h.updateQueue=null,$M(h,S)));break;case 30:break;case 21:break;default:Ua(m,h),Va(h)}}function Va(h){var m=h.flags;if(m&2){try{for(var v,S=h.return;S!==null;){if(age(S)){v=S;break}S=S.return}if(v==null)throw Error(o(160));switch(v.tag){case 27:var P=v.stateNode,B=NM(h);g6(h,B,P);break;case 5:var K=v.stateNode;v.flags&32&&(Og(K,""),v.flags&=-33);var te=NM(h);g6(h,te,K);break;case 3:case 4:var se=v.stateNode.containerInfo,ge=NM(h);DM(h,ge,se);break;default:throw Error(o(161))}}catch(Te){kr(h,h.return,Te)}h.flags&=-3}m&4096&&(h.flags&=-4097)}function hge(h){if(h.subtreeFlags&1024)for(h=h.child;h!==null;){var m=h;hge(m),m.tag===5&&m.flags&1024&&m.stateNode.reset(),h=h.sibling}}function od(h,m){if(m.subtreeFlags&8772)for(m=m.child;m!==null;)sge(h,m.alternate,m),m=m.sibling}function xh(h){for(h=h.child;h!==null;){var m=h;switch(m.tag){case 0:case 11:case 14:case 15:nd(4,m,m.return),xh(m);break;case 1:As(m,m.return);var v=m.stateNode;typeof v.componentWillUnmount=="function"&&nge(m,m.return,v),xh(m);break;case 27:Ov(m.stateNode);case 26:case 5:As(m,m.return),xh(m);break;case 22:m.memoizedState===null&&xh(m);break;case 30:xh(m);break;default:xh(m)}h=h.sibling}}function ad(h,m,v){for(v=v&&(m.subtreeFlags&8772)!==0,m=m.child;m!==null;){var S=m.alternate,P=h,B=m,K=B.flags;switch(B.tag){case 0:case 11:case 15:ad(P,B,v),Sv(4,B);break;case 1:if(ad(P,B,v),S=B,P=S.stateNode,typeof P.componentDidMount=="function")try{P.componentDidMount()}catch(ge){kr(S,S.return,ge)}if(S=B,P=S.updateQueue,P!==null){var te=S.stateNode;try{var se=P.shared.hiddenCallbacks;if(se!==null)for(P.shared.hiddenCallbacks=null,P=0;P<se.length;P++)Hfe(se[P],te)}catch(ge){kr(S,S.return,ge)}}v&&K&64&&rge(B),Cv(B,B.return);break;case 27:ige(B);case 26:case 5:ad(P,B,v),v&&S===null&&K&4&&oge(B),Cv(B,B.return);break;case 12:ad(P,B,v);break;case 13:ad(P,B,v),v&&K&4&&dge(P,B);break;case 22:B.memoizedState===null&&ad(P,B,v),Cv(B,B.return);break;case 30:break;default:ad(P,B,v)}m=m.sibling}}function MM(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&&dv(v))}function OM(h,m){h=null,m.alternate!==null&&(h=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==h&&(m.refCount++,h!=null&&dv(h))}function Ns(h,m,v,S){if(m.subtreeFlags&10256)for(m=m.child;m!==null;)fge(h,m,v,S),m=m.sibling}function fge(h,m,v,S){var P=m.flags;switch(m.tag){case 0:case 11:case 15:Ns(h,m,v,S),P&2048&&Sv(9,m);break;case 1:Ns(h,m,v,S);break;case 3:Ns(h,m,v,S),P&2048&&(h=null,m.alternate!==null&&(h=m.alternate.memoizedState.cache),m=m.memoizedState.cache,m!==h&&(m.refCount++,h!=null&&dv(h)));break;case 12:if(P&2048){Ns(h,m,v,S),h=m.stateNode;try{var B=m.memoizedProps,K=B.id,te=B.onPostCommit;typeof te=="function"&&te(K,m.alternate===null?"mount":"update",h.passiveEffectDuration,-0)}catch(se){kr(m,m.return,se)}}else Ns(h,m,v,S);break;case 13:Ns(h,m,v,S);break;case 23:break;case 22:B=m.stateNode,K=m.alternate,m.memoizedState!==null?B._visibility&2?Ns(h,m,v,S):Tv(h,m):B._visibility&2?Ns(h,m,v,S):(B._visibility|=2,e1(h,m,v,S,(m.subtreeFlags&10256)!==0)),P&2048&&MM(K,m);break;case 24:Ns(h,m,v,S),P&2048&&OM(m.alternate,m);break;default:Ns(h,m,v,S)}}function e1(h,m,v,S,P){for(P=P&&(m.subtreeFlags&10256)!==0,m=m.child;m!==null;){var B=h,K=m,te=v,se=S,ge=K.flags;switch(K.tag){case 0:case 11:case 15:e1(B,K,te,se,P),Sv(8,K);break;case 23:break;case 22:var Te=K.stateNode;K.memoizedState!==null?Te._visibility&2?e1(B,K,te,se,P):Tv(B,K):(Te._visibility|=2,e1(B,K,te,se,P)),P&&ge&2048&&MM(K.alternate,K);break;case 24:e1(B,K,te,se,P),P&&ge&2048&&OM(K.alternate,K);break;default:e1(B,K,te,se,P)}m=m.sibling}}function Tv(h,m){if(m.subtreeFlags&10256)for(m=m.child;m!==null;){var v=h,S=m,P=S.flags;switch(S.tag){case 22:Tv(v,S),P&2048&&MM(S.alternate,S);break;case 24:Tv(v,S),P&2048&&OM(S.alternate,S);break;default:Tv(v,S)}m=m.sibling}}var Rv=8192;function t1(h){if(h.subtreeFlags&Rv)for(h=h.child;h!==null;)mge(h),h=h.sibling}function mge(h){switch(h.tag){case 26:t1(h),h.flags&Rv&&h.memoizedState!==null&&Jkt(Hl,h.memoizedState,h.memoizedProps);break;case 5:t1(h);break;case 3:case 4:var m=Hl;Hl=A6(h.stateNode.containerInfo),t1(h),Hl=m;break;case 22:h.memoizedState===null&&(m=h.alternate,m!==null&&m.memoizedState!==null?(m=Rv,Rv=16777216,t1(h),Rv=m):t1(h));break;default:t1(h)}}function gge(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 Av(h){var m=h.deletions;if((h.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var S=m[v];io=S,bge(S,h)}gge(h)}if(h.subtreeFlags&10256)for(h=h.child;h!==null;)yge(h),h=h.sibling}function yge(h){switch(h.tag){case 0:case 11:case 15:Av(h),h.flags&2048&&nd(9,h,h.return);break;case 3:Av(h);break;case 12:Av(h);break;case 22:var m=h.stateNode;h.memoizedState!==null&&m._visibility&2&&(h.return===null||h.return.tag!==13)?(m._visibility&=-3,y6(h)):Av(h);break;default:Av(h)}}function y6(h){var m=h.deletions;if((h.flags&16)!==0){if(m!==null)for(var v=0;v<m.length;v++){var S=m[v];io=S,bge(S,h)}gge(h)}for(h=h.child;h!==null;){switch(m=h,m.tag){case 0:case 11:case 15:nd(8,m,m.return),y6(m);break;case 22:v=m.stateNode,v._visibility&2&&(v._visibility&=-3,y6(m));break;default:y6(m)}h=h.sibling}}function bge(h,m){for(;io!==null;){var v=io;switch(v.tag){case 0:case 11:case 15:nd(8,v,m);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var S=v.memoizedState.cachePool.pool;S!=null&&S.refCount++}break;case 24:dv(v.memoizedState.cache)}if(S=v.child,S!==null)S.return=v,io=S;else e:for(v=h;io!==null;){S=io;var P=S.sibling,B=S.return;if(cge(S),S===v){io=null;break e}if(P!==null){P.return=B,io=P;break e}io=B}}}var mkt={getCacheForType:function(h){var m=Bo(Fn),v=m.data.get(h);return v===void 0&&(v=h(),m.data.set(h,v)),v}},gkt=typeof WeakMap=="function"?WeakMap:Map,dr=0,Rr=null,Gt=null,rr=0,pr=0,Ya=null,id=!1,r1=!1,IM=!1,jc=0,nn=0,ld=0,wh=0,LM=0,Li=0,n1=0,Nv=null,ya=null,zM=!1,BM=0,b6=1/0,v6=null,sd=null,wo=0,cd=null,o1=null,a1=0,jM=0,FM=null,vge=null,Dv=0,HM=null;function Wa(){if((dr&2)!==0&&rr!==0)return rr&-rr;if(I.T!==null){var h=Yg;return h!==0?h:XM()}return Cg()}function xge(){Li===0&&(Li=(rr&536870912)===0||ir?ha():536870912);var h=Ii.current;return h!==null&&(h.flags|=32),Li}function Ga(h,m,v){(h===Rr&&(pr===2||pr===9)||h.cancelPendingCommit!==null)&&(i1(h,0),ud(h,rr,Li,!1)),Cc(h,v),((dr&2)===0||h!==Rr)&&(h===Rr&&((dr&2)===0&&(wh|=v),nn===4&&ud(h,rr,Li,!1)),Ds(h))}function wge(h,m,v){if((dr&6)!==0)throw Error(o(327));var S=!v&&(m&124)===0&&(m&h.expiredLanes)===0||no(h,m),P=S?vkt(h,m):VM(h,m,!0),B=S;do{if(P===0){r1&&!S&&ud(h,m,0,!1);break}else{if(v=h.current.alternate,B&&!ykt(v)){P=VM(h,m,!1),B=!1;continue}if(P===2){if(B=m,h.errorRecoveryDisabledLanes&B)var K=0;else K=h.pendingLanes&-536870913,K=K!==0?K:K&536870912?536870912:0;if(K!==0){m=K;e:{var te=h;P=Nv;var se=te.current.memoizedState.isDehydrated;if(se&&(i1(te,K).flags|=256),K=VM(te,K,!1),K!==2){if(IM&&!se){te.errorRecoveryDisabledLanes|=B,wh|=B,P=4;break e}B=ya,ya=P,B!==null&&(ya===null?ya=B:ya.push.apply(ya,B))}P=K}if(B=!1,P!==2)continue}}if(P===1){i1(h,0),ud(h,m,0,!0);break}e:{switch(S=h,B=P,B){case 0:case 1:throw Error(o(345));case 4:if((m&4194048)!==m)break;case 6:ud(S,m,Li,!id);break e;case 2:ya=null;break;case 3:case 5:break;default:throw Error(o(329))}if((m&62914560)===m&&(P=BM+300-Ge(),10<P)){if(ud(S,m,Li,!id),Fr(S,0,!0)!==0)break e;S.timeoutHandle=Kge(kge.bind(null,S,v,ya,v6,zM,m,Li,wh,n1,id,B,2,-0,0),P);break e}kge(S,v,ya,v6,zM,m,Li,wh,n1,id,B,0,-0,0)}}break}while(!0);Ds(h)}function kge(h,m,v,S,P,B,K,te,se,ge,Te,Ne,ve,ke){if(h.timeoutHandle=-1,Ne=m.subtreeFlags,(Ne&8192||(Ne&16785408)===16785408)&&(zv={stylesheets:null,count:0,unsuspend:Qkt},mge(m),Ne=e6t(),Ne!==null)){h.cancelPendingCommit=Ne(Age.bind(null,h,m,B,v,S,P,K,te,se,Te,1,ve,ke)),ud(h,B,K,!ge);return}Age(h,m,B,v,S,P,K,te,se)}function ykt(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 S=0;S<v.length;S++){var P=v[S],B=P.getSnapshot;P=P.value;try{if(!Ha(B(),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 ud(h,m,v,S){m&=~LM,m&=~wh,h.suspendedLanes|=m,h.pingedLanes&=~m,S&&(h.warmLanes|=m),S=h.expirationTimes;for(var P=m;0<P;){var B=31-at(P),K=1<<B;S[B]=-1,P&=~K}v!==0&&Sg(h,v,m)}function x6(){return(dr&6)===0?(Pv(0),!1):!0}function qM(){if(Gt!==null){if(pr===0)var h=Gt.return;else h=Gt,Pc=mh=null,iM(h),Qg=null,kv=0,h=Gt;for(;h!==null;)tge(h.alternate,h),h=h.return;Gt=null}}function i1(h,m){var v=h.timeoutHandle;v!==-1&&(h.timeoutHandle=-1,Okt(v)),v=h.cancelPendingCommit,v!==null&&(h.cancelPendingCommit=null,v()),qM(),Rr=h,Gt=v=Ac(h.current,null),rr=m,pr=0,Ya=null,id=!1,r1=no(h,m),IM=!1,n1=Li=LM=wh=ld=nn=0,ya=Nv=null,zM=!1,(m&8)!==0&&(m|=m&32);var S=h.entangledLanes;if(S!==0)for(h=h.entanglements,S&=m;0<S;){var P=31-at(S),B=1<<P;m|=h[P],S&=~B}return jc=m,Hk(),v}function _ge(h,m){jt=null,I.H=l6,m===hv||m===Zk?(m=jfe(),pr=3):m===Lfe?(m=jfe(),pr=4):pr=m===Fme?8:m!==null&&typeof m=="object"&&typeof m.then=="function"?6:1,Ya=m,Gt===null&&(nn=1,p6(h,Pi(m,h.current)))}function Ege(){var h=I.H;return I.H=l6,h===null?l6:h}function Sge(){var h=I.A;return I.A=mkt,h}function UM(){nn=4,id||(rr&4194048)!==rr&&Ii.current!==null||(r1=!0),(ld&134217727)===0&&(wh&134217727)===0||Rr===null||ud(Rr,rr,Li,!1)}function VM(h,m,v){var S=dr;dr|=2;var P=Ege(),B=Sge();(Rr!==h||rr!==m)&&(v6=null,i1(h,m)),m=!1;var K=nn;e:do try{if(pr!==0&&Gt!==null){var te=Gt,se=Ya;switch(pr){case 8:qM(),K=6;break e;case 3:case 2:case 9:case 6:Ii.current===null&&(m=!0);var ge=pr;if(pr=0,Ya=null,l1(h,te,se,ge),v&&r1){K=0;break e}break;default:ge=pr,pr=0,Ya=null,l1(h,te,se,ge)}}bkt(),K=nn;break}catch(Te){_ge(h,Te)}while(!0);return m&&h.shellSuspendCounter++,Pc=mh=null,dr=S,I.H=P,I.A=B,Gt===null&&(Rr=null,rr=0,Hk()),K}function bkt(){for(;Gt!==null;)Cge(Gt)}function vkt(h,m){var v=dr;dr|=2;var S=Ege(),P=Sge();Rr!==h||rr!==m?(v6=null,b6=Ge()+500,i1(h,m)):r1=no(h,m);e:do try{if(pr!==0&&Gt!==null){m=Gt;var B=Ya;t:switch(pr){case 1:pr=0,Ya=null,l1(h,m,B,1);break;case 2:case 9:if(zfe(B)){pr=0,Ya=null,Tge(m);break}m=function(){pr!==2&&pr!==9||Rr!==h||(pr=7),Ds(h)},B.then(m,m);break e;case 3:pr=7;break e;case 4:pr=5;break e;case 7:zfe(B)?(pr=0,Ya=null,Tge(m)):(pr=0,Ya=null,l1(h,m,B,7));break;case 5:var K=null;switch(Gt.tag){case 26:K=Gt.memoizedState;case 5:case 27:var te=Gt;if(!K||s1e(K)){pr=0,Ya=null;var se=te.sibling;if(se!==null)Gt=se;else{var ge=te.return;ge!==null?(Gt=ge,w6(ge)):Gt=null}break t}}pr=0,Ya=null,l1(h,m,B,5);break;case 6:pr=0,Ya=null,l1(h,m,B,6);break;case 8:qM(),nn=6;break e;default:throw Error(o(462))}}xkt();break}catch(Te){_ge(h,Te)}while(!0);return Pc=mh=null,I.H=S,I.A=P,dr=v,Gt!==null?0:(Rr=null,rr=0,Hk(),nn)}function xkt(){for(;Gt!==null&&!Oe();)Cge(Gt)}function Cge(h){var m=Jme(h.alternate,h,jc);h.memoizedProps=h.pendingProps,m===null?w6(h):Gt=m}function Tge(h){var m=h,v=m.alternate;switch(m.tag){case 15:case 0:m=Wme(v,m,m.pendingProps,m.type,void 0,rr);break;case 11:m=Wme(v,m,m.pendingProps,m.type.render,m.ref,rr);break;case 5:iM(m);default:tge(v,m),m=Gt=Rfe(m,jc),m=Jme(v,m,jc)}h.memoizedProps=h.pendingProps,m===null?w6(h):Gt=m}function l1(h,m,v,S){Pc=mh=null,iM(m),Qg=null,kv=0;var P=m.return;try{if(ckt(h,P,m,v,rr)){nn=1,p6(h,Pi(v,h.current)),Gt=null;return}}catch(B){if(P!==null)throw Gt=P,B;nn=1,p6(h,Pi(v,h.current)),Gt=null;return}m.flags&32768?(ir||S===1?h=!0:r1||(rr&536870912)!==0?h=!1:(id=h=!0,(S===2||S===9||S===3||S===6)&&(S=Ii.current,S!==null&&S.tag===13&&(S.flags|=16384))),Rge(m,h)):w6(m)}function w6(h){var m=h;do{if((m.flags&32768)!==0){Rge(m,id);return}h=m.return;var v=dkt(m.alternate,m,jc);if(v!==null){Gt=v;return}if(m=m.sibling,m!==null){Gt=m;return}Gt=m=h}while(m!==null);nn===0&&(nn=5)}function Rge(h,m){do{var v=pkt(h.alternate,h);if(v!==null){v.flags&=32767,Gt=v;return}if(v=h.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!m&&(h=h.sibling,h!==null)){Gt=h;return}Gt=h=v}while(h!==null);nn=6,Gt=null}function Age(h,m,v,S,P,B,K,te,se){h.cancelPendingCommit=null;do k6();while(wo!==0);if((dr&6)!==0)throw Error(o(327));if(m!==null){if(m===h.current)throw Error(o(177));if(B=m.lanes|m.childLanes,B|=O$,qb(h,v,B,K,te,se),h===Rr&&(Gt=Rr=null,rr=0),o1=m,cd=h,a1=v,jM=B,FM=P,vge=S,(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?(h.callbackNode=null,h.callbackPriority=0,Ekt(Ke,function(){return Mge(),null})):(h.callbackNode=null,h.callbackPriority=0),S=(m.flags&13878)!==0,(m.subtreeFlags&13878)!==0||S){S=I.T,I.T=null,P=q.p,q.p=2,K=dr,dr|=4;try{hkt(h,m,v)}finally{dr=K,q.p=P,I.T=S}}wo=1,Nge(),Dge(),Pge()}}function Nge(){if(wo===1){wo=0;var h=cd,m=o1,v=(m.flags&13878)!==0;if((m.subtreeFlags&13878)!==0||v){v=I.T,I.T=null;var S=q.p;q.p=2;var P=dr;dr|=4;try{pge(m,h);var B=nO,K=bfe(h.containerInfo),te=B.focusedElem,se=B.selectionRange;if(K!==te&&te&&te.ownerDocument&&yfe(te.ownerDocument.documentElement,te)){if(se!==null&&N$(te)){var ge=se.start,Te=se.end;if(Te===void 0&&(Te=ge),"selectionStart"in te)te.selectionStart=ge,te.selectionEnd=Math.min(Te,te.value.length);else{var Ne=te.ownerDocument||document,ve=Ne&&Ne.defaultView||window;if(ve.getSelection){var ke=ve.getSelection(),xt=te.textContent.length,ft=Math.min(se.start,xt),vr=se.end===void 0?ft:Math.min(se.end,xt);!ke.extend&&ft>vr&&(K=vr,vr=ft,ft=K);var he=gfe(te,ft),ue=gfe(te,vr);if(he&&ue&&(ke.rangeCount!==1||ke.anchorNode!==he.node||ke.anchorOffset!==he.offset||ke.focusNode!==ue.node||ke.focusOffset!==ue.offset)){var fe=Ne.createRange();fe.setStart(he.node,he.offset),ke.removeAllRanges(),ft>vr?(ke.addRange(fe),ke.extend(ue.node,ue.offset)):(fe.setEnd(ue.node,ue.offset),ke.addRange(fe))}}}}for(Ne=[],ke=te;ke=ke.parentNode;)ke.nodeType===1&&Ne.push({element:ke,left:ke.scrollLeft,top:ke.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te<Ne.length;te++){var Re=Ne[te];Re.element.scrollLeft=Re.left,Re.element.scrollTop=Re.top}}M6=!!rO,nO=rO=null}finally{dr=P,q.p=S,I.T=v}}h.current=m,wo=2}}function Dge(){if(wo===2){wo=0;var h=cd,m=o1,v=(m.flags&8772)!==0;if((m.subtreeFlags&8772)!==0||v){v=I.T,I.T=null;var S=q.p;q.p=2;var P=dr;dr|=4;try{sge(h,m.alternate,m)}finally{dr=P,q.p=S,I.T=v}}wo=3}}function Pge(){if(wo===4||wo===3){wo=0,Xe();var h=cd,m=o1,v=a1,S=vge;(m.subtreeFlags&10256)!==0||(m.flags&10256)!==0?wo=5:(wo=0,o1=cd=null,$ge(h,h.pendingLanes));var P=h.pendingLanes;if(P===0&&(sd=null),eh(v),m=m.stateNode,we&&typeof we.onCommitFiberRoot=="function")try{we.onCommitFiberRoot(_e,m,void 0,(m.current.flags&128)===128)}catch{}if(S!==null){m=I.T,P=q.p,q.p=2,I.T=null;try{for(var B=h.onRecoverableError,K=0;K<S.length;K++){var te=S[K];B(te.value,{componentStack:te.stack})}}finally{I.T=m,q.p=P}}(a1&3)!==0&&k6(),Ds(h),P=h.pendingLanes,(v&4194090)!==0&&(P&42)!==0?h===HM?Dv++:(Dv=0,HM=h):Dv=0,Pv(0)}}function $ge(h,m){(h.pooledCacheLanes&=m)===0&&(m=h.pooledCache,m!=null&&(h.pooledCache=null,dv(m)))}function k6(h){return Nge(),Dge(),Pge(),Mge()}function Mge(){if(wo!==5)return!1;var h=cd,m=jM;jM=0;var v=eh(a1),S=I.T,P=q.p;try{q.p=32>v?32:v,I.T=null,v=FM,FM=null;var B=cd,K=a1;if(wo=0,o1=cd=null,a1=0,(dr&6)!==0)throw Error(o(331));var te=dr;if(dr|=4,yge(B.current),fge(B,B.current,K,v),dr=te,Pv(0,!1),we&&typeof we.onPostCommitFiberRoot=="function")try{we.onPostCommitFiberRoot(_e,B)}catch{}return!0}finally{q.p=P,I.T=S,$ge(h,m)}}function Oge(h,m,v){m=Pi(v,m),m=xM(h.stateNode,m,2),h=Ju(h,m,2),h!==null&&(Cc(h,2),Ds(h))}function kr(h,m,v){if(h.tag===3)Oge(h,h,v);else for(;m!==null;){if(m.tag===3){Oge(m,h,v);break}else if(m.tag===1){var S=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(sd===null||!sd.has(S))){h=Pi(v,h),v=Bme(2),S=Ju(m,v,2),S!==null&&(jme(v,S,m,h),Cc(S,2),Ds(S));break}}m=m.return}}function YM(h,m,v){var S=h.pingCache;if(S===null){S=h.pingCache=new gkt;var P=new Set;S.set(m,P)}else P=S.get(m),P===void 0&&(P=new Set,S.set(m,P));P.has(v)||(IM=!0,P.add(v),h=wkt.bind(null,h,m,v),m.then(h,h))}function wkt(h,m,v){var S=h.pingCache;S!==null&&S.delete(m),h.pingedLanes|=h.suspendedLanes&v,h.warmLanes&=~v,Rr===h&&(rr&v)===v&&(nn===4||nn===3&&(rr&62914560)===rr&&300>Ge()-BM?(dr&2)===0&&i1(h,0):LM|=v,n1===rr&&(n1=0)),Ds(h)}function Ige(h,m){m===0&&(m=_s()),h=Hg(h,m),h!==null&&(Cc(h,m),Ds(h))}function kkt(h){var m=h.memoizedState,v=0;m!==null&&(v=m.retryLane),Ige(h,v)}function _kt(h,m){var v=0;switch(h.tag){case 13:var S=h.stateNode,P=h.memoizedState;P!==null&&(v=P.retryLane);break;case 19:S=h.stateNode;break;case 22:S=h.stateNode._retryCache;break;default:throw Error(o(314))}S!==null&&S.delete(m),Ige(h,v)}function Ekt(h,m){return de(h,m)}var _6=null,s1=null,WM=!1,E6=!1,GM=!1,kh=0;function Ds(h){h!==s1&&h.next===null&&(s1===null?_6=s1=h:s1=s1.next=h),E6=!0,WM||(WM=!0,Ckt())}function Pv(h,m){if(!GM&&E6){GM=!0;do for(var v=!1,S=_6;S!==null;){if(h!==0){var P=S.pendingLanes;if(P===0)var B=0;else{var K=S.suspendedLanes,te=S.pingedLanes;B=(1<<31-at(42|h)+1)-1,B&=P&~(K&~te),B=B&201326741?B&201326741|1:B?B|2:0}B!==0&&(v=!0,jge(S,B))}else B=rr,B=Fr(S,S===Rr?B:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(B&3)===0||no(S,B)||(v=!0,jge(S,B));S=S.next}while(v);GM=!1}}function Skt(){Lge()}function Lge(){E6=WM=!1;var h=0;kh!==0&&(Mkt()&&(h=kh),kh=0);for(var m=Ge(),v=null,S=_6;S!==null;){var P=S.next,B=zge(S,m);B===0?(S.next=null,v===null?_6=P:v.next=P,P===null&&(s1=v)):(v=S,(h!==0||(B&3)!==0)&&(E6=!0)),S=P}Pv(h)}function zge(h,m){for(var v=h.suspendedLanes,S=h.pingedLanes,P=h.expirationTimes,B=h.pendingLanes&-62914561;0<B;){var K=31-at(B),te=1<<K,se=P[K];se===-1?((te&v)===0||(te&S)!==0)&&(P[K]=ur(te,m)):se<=m&&(h.expiredLanes|=te),B&=~te}if(m=Rr,v=rr,v=Fr(h,h===m?v:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),S=h.callbackNode,v===0||h===m&&(pr===2||pr===9)||h.cancelPendingCommit!==null)return S!==null&&S!==null&&be(S),h.callbackNode=null,h.callbackPriority=0;if((v&3)===0||no(h,v)){if(m=v&-v,m===h.callbackPriority)return m;switch(S!==null&&be(S),eh(v)){case 2:case 8:v=St;break;case 32:v=Ke;break;case 268435456:v=st;break;default:v=Ke}return S=Bge.bind(null,h),v=de(v,S),h.callbackPriority=m,h.callbackNode=v,m}return S!==null&&S!==null&&be(S),h.callbackPriority=2,h.callbackNode=null,2}function Bge(h,m){if(wo!==0&&wo!==5)return h.callbackNode=null,h.callbackPriority=0,null;var v=h.callbackNode;if(k6()&&h.callbackNode!==v)return null;var S=rr;return S=Fr(h,h===Rr?S:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),S===0?null:(wge(h,S,m),zge(h,Ge()),h.callbackNode!=null&&h.callbackNode===v?Bge.bind(null,h):null)}function jge(h,m){if(k6())return null;wge(h,m,!0)}function Ckt(){Ikt(function(){(dr&6)!==0?de(Qe,Skt):Lge()})}function XM(){return kh===0&&(kh=ha()),kh}function Fge(h){return h==null||typeof h=="symbol"||typeof h=="boolean"?null:typeof h=="function"?h:Ok(""+h)}function Hge(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 Tkt(h,m,v,S,P){if(m==="submit"&&v&&v.stateNode===P){var B=Fge((P[oo]||null).action),K=S.submitter;K&&(m=(m=K[oo]||null)?Fge(m.formAction):K.getAttribute("formAction"),m!==null&&(B=m,K=null));var te=new Bk("action","action",null,S,P);h.push({event:te,listeners:[{instance:null,listener:function(){if(S.defaultPrevented){if(kh!==0){var se=K?Hge(P,K):new FormData(P);mM(v,{pending:!0,data:se,method:P.method,action:B},null,se)}}else typeof B=="function"&&(te.preventDefault(),se=K?Hge(P,K):new FormData(P),mM(v,{pending:!0,data:se,method:P.method,action:B},B,se))},currentTarget:P}]})}}for(var KM=0;KM<M$.length;KM++){var ZM=M$[KM],Rkt=ZM.toLowerCase(),Akt=ZM[0].toUpperCase()+ZM.slice(1);Fl(Rkt,"on"+Akt)}Fl(wfe,"onAnimationEnd"),Fl(kfe,"onAnimationIteration"),Fl(_fe,"onAnimationStart"),Fl("dblclick","onDoubleClick"),Fl("focusin","onFocus"),Fl("focusout","onBlur"),Fl(Y5t,"onTransitionRun"),Fl(W5t,"onTransitionStart"),Fl(G5t,"onTransitionCancel"),Fl(Efe,"onTransitionEnd"),Cs("onMouseEnter",["mouseout","mouseover"]),Cs("onMouseLeave",["mouseout","mouseover"]),Cs("onPointerEnter",["pointerout","pointerover"]),Cs("onPointerLeave",["pointerout","pointerover"]),Bl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $v="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(" "),Nkt=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($v));function qge(h,m){m=(m&4)!==0;for(var v=0;v<h.length;v++){var S=h[v],P=S.event;S=S.listeners;e:{var B=void 0;if(m)for(var K=S.length-1;0<=K;K--){var te=S[K],se=te.instance,ge=te.currentTarget;if(te=te.listener,se!==B&&P.isPropagationStopped())break e;B=te,P.currentTarget=ge;try{B(P)}catch(Te){d6(Te)}P.currentTarget=null,B=se}else for(K=0;K<S.length;K++){if(te=S[K],se=te.instance,ge=te.currentTarget,te=te.listener,se!==B&&P.isPropagationStopped())break e;B=te,P.currentTarget=ge;try{B(P)}catch(Te){d6(Te)}P.currentTarget=null,B=se}}}}function Xt(h,m){var v=m[th];v===void 0&&(v=m[th]=new Set);var S=h+"__bubble";v.has(S)||(Uge(m,h,2,!1),v.add(S))}function QM(h,m,v){var S=0;m&&(S|=4),Uge(v,h,S,m)}var S6="_reactListening"+Math.random().toString(36).slice(2);function JM(h){if(!h[S6]){h[S6]=!0,Rg.forEach(function(v){v!=="selectionchange"&&(Nkt.has(v)||QM(v,!1,h),QM(v,!0,h))});var m=h.nodeType===9?h:h.ownerDocument;m===null||m[S6]||(m[S6]=!0,QM("selectionchange",!1,m))}}function Uge(h,m,v,S){switch(f1e(m)){case 2:var P=n6t;break;case 8:P=o6t;break;default:P=hO}v=P.bind(null,m,v,h),P=void 0,!w$||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(P=!0),S?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 eO(h,m,v,S,P){var B=S;if((m&1)===0&&(m&2)===0&&S!==null)e:for(;;){if(S===null)return;var K=S.tag;if(K===3||K===4){var te=S.stateNode.containerInfo;if(te===P)break;if(K===4)for(K=S.return;K!==null;){var se=K.tag;if((se===3||se===4)&&K.stateNode.containerInfo===P)return;K=K.return}for(;te!==null;){if(K=Ss(te),K===null)return;if(se=K.tag,se===5||se===6||se===26||se===27){S=B=K;continue e}te=te.parentNode}}S=S.return}Zhe(function(){var ge=B,Te=v$(v),Ne=[];e:{var ve=Sfe.get(h);if(ve!==void 0){var ke=Bk,xt=h;switch(h){case"keypress":if(Lk(v)===0)break e;case"keydown":case"keyup":ke=E5t;break;case"focusin":xt="focus",ke=S$;break;case"focusout":xt="blur",ke=S$;break;case"beforeblur":case"afterblur":ke=S$;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=efe;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ke=p5t;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ke=T5t;break;case wfe:case kfe:case _fe:ke=m5t;break;case Efe:ke=A5t;break;case"scroll":case"scrollend":ke=u5t;break;case"wheel":ke=D5t;break;case"copy":case"cut":case"paste":ke=y5t;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ke=rfe;break;case"toggle":case"beforetoggle":ke=$5t}var ft=(m&4)!==0,vr=!ft&&(h==="scroll"||h==="scrollend"),he=ft?ve!==null?ve+"Capture":null:ve;ft=[];for(var ue=ge,fe;ue!==null;){var Re=ue;if(fe=Re.stateNode,Re=Re.tag,Re!==5&&Re!==26&&Re!==27||fe===null||he===null||(Re=Qb(ue,he),Re!=null&&ft.push(Mv(ue,Re,fe))),vr)break;ue=ue.return}0<ft.length&&(ve=new ke(ve,xt,null,v,Te),Ne.push({event:ve,listeners:ft}))}}if((m&7)===0){e:{if(ve=h==="mouseover"||h==="pointerover",ke=h==="mouseout"||h==="pointerout",ve&&v!==b$&&(xt=v.relatedTarget||v.fromElement)&&(Ss(xt)||xt[Es]))break e;if((ke||ve)&&(ve=Te.window===Te?Te:(ve=Te.ownerDocument)?ve.defaultView||ve.parentWindow:window,ke?(xt=v.relatedTarget||v.toElement,ke=ge,xt=xt?Ss(xt):null,xt!==null&&(vr=i(xt),ft=xt.tag,xt!==vr||ft!==5&&ft!==27&&ft!==6)&&(xt=null)):(ke=null,xt=ge),ke!==xt)){if(ft=efe,Re="onMouseLeave",he="onMouseEnter",ue="mouse",(h==="pointerout"||h==="pointerover")&&(ft=rfe,Re="onPointerLeave",he="onPointerEnter",ue="pointer"),vr=ke==null?ve:zl(ke),fe=xt==null?ve:zl(xt),ve=new ft(Re,ue+"leave",ke,v,Te),ve.target=vr,ve.relatedTarget=fe,Re=null,Ss(Te)===ge&&(ft=new ft(he,ue+"enter",xt,v,Te),ft.target=fe,ft.relatedTarget=vr,Re=ft),vr=Re,ke&&xt)t:{for(ft=ke,he=xt,ue=0,fe=ft;fe;fe=c1(fe))ue++;for(fe=0,Re=he;Re;Re=c1(Re))fe++;for(;0<ue-fe;)ft=c1(ft),ue--;for(;0<fe-ue;)he=c1(he),fe--;for(;ue--;){if(ft===he||he!==null&&ft===he.alternate)break t;ft=c1(ft),he=c1(he)}ft=null}else ft=null;ke!==null&&Vge(Ne,ve,ke,ft,!1),xt!==null&&vr!==null&&Vge(Ne,vr,xt,ft,!0)}}e:{if(ve=ge?zl(ge):window,ke=ve.nodeName&&ve.nodeName.toLowerCase(),ke==="select"||ke==="input"&&ve.type==="file")var ot=ufe;else if(sfe(ve))if(dfe)ot=q5t;else{ot=F5t;var Vt=j5t}else ke=ve.nodeName,!ke||ke.toLowerCase()!=="input"||ve.type!=="checkbox"&&ve.type!=="radio"?ge&&y$(ge.elementType)&&(ot=ufe):ot=H5t;if(ot&&(ot=ot(h,ge))){cfe(Ne,ot,v,Te);break e}Vt&&Vt(h,ve,ge),h==="focusout"&&ge&&ve.type==="number"&&ge.memoizedProps.value!=null&&ih(ve,"number",ve.value)}switch(Vt=ge?zl(ge):window,h){case"focusin":(sfe(Vt)||Vt.contentEditable==="true")&&(Bg=Vt,D$=ge,iv=null);break;case"focusout":iv=D$=Bg=null;break;case"mousedown":P$=!0;break;case"contextmenu":case"mouseup":case"dragend":P$=!1,vfe(Ne,v,Te);break;case"selectionchange":if(V5t)break;case"keydown":case"keyup":vfe(Ne,v,Te)}var ct;if(T$)e:{switch(h){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else zg?ife(h,v)&&(gt="onCompositionEnd"):h==="keydown"&&v.keyCode===229&&(gt="onCompositionStart");gt&&(nfe&&v.locale!=="ko"&&(zg||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&zg&&(ct=Qhe()):(Xu=Te,k$="value"in Xu?Xu.value:Xu.textContent,zg=!0)),Vt=C6(ge,gt),0<Vt.length&&(gt=new tfe(gt,h,null,v,Te),Ne.push({event:gt,listeners:Vt}),ct?gt.data=ct:(ct=lfe(v),ct!==null&&(gt.data=ct)))),(ct=O5t?I5t(h,v):L5t(h,v))&&(gt=C6(ge,"onBeforeInput"),0<gt.length&&(Vt=new tfe("onBeforeInput","beforeinput",null,v,Te),Ne.push({event:Vt,listeners:gt}),Vt.data=ct)),Tkt(Ne,h,ge,v,Te)}qge(Ne,m)})}function Mv(h,m,v){return{instance:h,listener:m,currentTarget:v}}function C6(h,m){for(var v=m+"Capture",S=[];h!==null;){var P=h,B=P.stateNode;if(P=P.tag,P!==5&&P!==26&&P!==27||B===null||(P=Qb(h,v),P!=null&&S.unshift(Mv(h,P,B)),P=Qb(h,m),P!=null&&S.push(Mv(h,P,B))),h.tag===3)return S;h=h.return}return[]}function c1(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5&&h.tag!==27);return h||null}function Vge(h,m,v,S,P){for(var B=m._reactName,K=[];v!==null&&v!==S;){var te=v,se=te.alternate,ge=te.stateNode;if(te=te.tag,se!==null&&se===S)break;te!==5&&te!==26&&te!==27||ge===null||(se=ge,P?(ge=Qb(v,B),ge!=null&&K.unshift(Mv(v,ge,se))):P||(ge=Qb(v,B),ge!=null&&K.push(Mv(v,ge,se)))),v=v.return}K.length!==0&&h.push({event:m,listeners:K})}var Dkt=/\r\n?/g,Pkt=/\u0000|\uFFFD/g;function Yge(h){return(typeof h=="string"?h:""+h).replace(Dkt,`
`).replace(Pkt,"")}function Wge(h,m){return m=Yge(m),Yge(h)===m}function T6(){}function br(h,m,v,S,P,B){switch(v){case"children":typeof S=="string"?m==="body"||m==="textarea"&&S===""||Og(h,S):(typeof S=="number"||typeof S=="bigint")&&m!=="body"&&Og(h,""+S);break;case"className":Vu(h,"class",S);break;case"tabIndex":Vu(h,"tabindex",S);break;case"dir":case"role":case"viewBox":case"width":case"height":Vu(h,v,S);break;case"style":Xhe(h,S,B);break;case"data":if(m!=="object"){Vu(h,"data",S);break}case"src":case"href":if(S===""&&(m!=="a"||v!=="href")){h.removeAttribute(v);break}if(S==null||typeof S=="function"||typeof S=="symbol"||typeof S=="boolean"){h.removeAttribute(v);break}S=Ok(""+S),h.setAttribute(v,S);break;case"action":case"formAction":if(typeof S=="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 B=="function"&&(v==="formAction"?(m!=="input"&&br(h,m,"name",P.name,P,null),br(h,m,"formEncType",P.formEncType,P,null),br(h,m,"formMethod",P.formMethod,P,null),br(h,m,"formTarget",P.formTarget,P,null)):(br(h,m,"encType",P.encType,P,null),br(h,m,"method",P.method,P,null),br(h,m,"target",P.target,P,null)));if(S==null||typeof S=="symbol"||typeof S=="boolean"){h.removeAttribute(v);break}S=Ok(""+S),h.setAttribute(v,S);break;case"onClick":S!=null&&(h.onclick=T6);break;case"onScroll":S!=null&&Xt("scroll",h);break;case"onScrollEnd":S!=null&&Xt("scrollend",h);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(o(61));if(v=S.__html,v!=null){if(P.children!=null)throw Error(o(60));h.innerHTML=v}}break;case"multiple":h.multiple=S&&typeof S!="function"&&typeof S!="symbol";break;case"muted":h.muted=S&&typeof S!="function"&&typeof S!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(S==null||typeof S=="function"||typeof S=="boolean"||typeof S=="symbol"){h.removeAttribute("xlink:href");break}v=Ok(""+S),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":S!=null&&typeof S!="function"&&typeof S!="symbol"?h.setAttribute(v,""+S):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":S&&typeof S!="function"&&typeof S!="symbol"?h.setAttribute(v,""):h.removeAttribute(v);break;case"capture":case"download":S===!0?h.setAttribute(v,""):S!==!1&&S!=null&&typeof S!="function"&&typeof S!="symbol"?h.setAttribute(v,S):h.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":S!=null&&typeof S!="function"&&typeof S!="symbol"&&!isNaN(S)&&1<=S?h.setAttribute(v,S):h.removeAttribute(v);break;case"rowSpan":case"start":S==null||typeof S=="function"||typeof S=="symbol"||isNaN(S)?h.removeAttribute(v):h.setAttribute(v,S);break;case"popover":Xt("beforetoggle",h),Xt("toggle",h),Uu(h,"popover",S);break;case"xlinkActuate":Fa(h,"http://www.w3.org/1999/xlink","xlink:actuate",S);break;case"xlinkArcrole":Fa(h,"http://www.w3.org/1999/xlink","xlink:arcrole",S);break;case"xlinkRole":Fa(h,"http://www.w3.org/1999/xlink","xlink:role",S);break;case"xlinkShow":Fa(h,"http://www.w3.org/1999/xlink","xlink:show",S);break;case"xlinkTitle":Fa(h,"http://www.w3.org/1999/xlink","xlink:title",S);break;case"xlinkType":Fa(h,"http://www.w3.org/1999/xlink","xlink:type",S);break;case"xmlBase":Fa(h,"http://www.w3.org/XML/1998/namespace","xml:base",S);break;case"xmlLang":Fa(h,"http://www.w3.org/XML/1998/namespace","xml:lang",S);break;case"xmlSpace":Fa(h,"http://www.w3.org/XML/1998/namespace","xml:space",S);break;case"is":Uu(h,"is",S);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=s5t.get(v)||v,Uu(h,v,S))}}function tO(h,m,v,S,P,B){switch(v){case"style":Xhe(h,S,B);break;case"dangerouslySetInnerHTML":if(S!=null){if(typeof S!="object"||!("__html"in S))throw Error(o(61));if(v=S.__html,v!=null){if(P.children!=null)throw Error(o(60));h.innerHTML=v}}break;case"children":typeof S=="string"?Og(h,S):(typeof S=="number"||typeof S=="bigint")&&Og(h,""+S);break;case"onScroll":S!=null&&Xt("scroll",h);break;case"onScrollEnd":S!=null&&Xt("scrollend",h);break;case"onClick":S!=null&&(h.onclick=T6);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ag.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(P=v.endsWith("Capture"),m=v.slice(2,P?v.length-7:void 0),B=h[oo]||null,B=B!=null?B[v]:null,typeof B=="function"&&h.removeEventListener(m,B,P),typeof S=="function")){typeof B!="function"&&B!==null&&(v in h?h[v]=null:h.hasAttribute(v)&&h.removeAttribute(v)),h.addEventListener(m,S,P);break e}v in h?h[v]=S:S===!0?h.setAttribute(v,""):Uu(h,v,S)}}}function ko(h,m,v){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",h),Xt("load",h);var S=!1,P=!1,B;for(B in v)if(v.hasOwnProperty(B)){var K=v[B];if(K!=null)switch(B){case"src":S=!0;break;case"srcSet":P=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:br(h,m,B,K,v,null)}}P&&br(h,m,"srcSet",v.srcSet,v,null),S&&br(h,m,"src",v.src,v,null);return;case"input":Xt("invalid",h);var te=B=K=P=null,se=null,ge=null;for(S in v)if(v.hasOwnProperty(S)){var Te=v[S];if(Te!=null)switch(S){case"name":P=Te;break;case"type":K=Te;break;case"checked":se=Te;break;case"defaultChecked":ge=Te;break;case"value":B=Te;break;case"defaultValue":te=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(o(137,m));break;default:br(h,m,S,Te,v,null)}}Mg(h,B,te,se,ge,K,P,!1),Yu(h);return;case"select":Xt("invalid",h),S=K=B=null;for(P in v)if(v.hasOwnProperty(P)&&(te=v[P],te!=null))switch(P){case"value":B=te;break;case"defaultValue":K=te;break;case"multiple":S=te;default:br(h,m,P,te,v,null)}m=B,v=K,h.multiple=!!S,m!=null?Di(h,!!S,m,!1):v!=null&&Di(h,!!S,v,!0);return;case"textarea":Xt("invalid",h),B=P=S=null;for(K in v)if(v.hasOwnProperty(K)&&(te=v[K],te!=null))switch(K){case"value":S=te;break;case"defaultValue":P=te;break;case"children":B=te;break;case"dangerouslySetInnerHTML":if(te!=null)throw Error(o(91));break;default:br(h,m,K,te,v,null)}Whe(h,S,P,B),Yu(h);return;case"option":for(se in v)if(v.hasOwnProperty(se)&&(S=v[se],S!=null))switch(se){case"selected":h.selected=S&&typeof S!="function"&&typeof S!="symbol";break;default:br(h,m,se,S,v,null)}return;case"dialog":Xt("beforetoggle",h),Xt("toggle",h),Xt("cancel",h),Xt("close",h);break;case"iframe":case"object":Xt("load",h);break;case"video":case"audio":for(S=0;S<$v.length;S++)Xt($v[S],h);break;case"image":Xt("error",h),Xt("load",h);break;case"details":Xt("toggle",h);break;case"embed":case"source":case"link":Xt("error",h),Xt("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(ge in v)if(v.hasOwnProperty(ge)&&(S=v[ge],S!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,m));default:br(h,m,ge,S,v,null)}return;default:if(y$(m)){for(Te in v)v.hasOwnProperty(Te)&&(S=v[Te],S!==void 0&&tO(h,m,Te,S,v,void 0));return}}for(te in v)v.hasOwnProperty(te)&&(S=v[te],S!=null&&br(h,m,te,S,v,null))}function $kt(h,m,v,S){switch(m){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var P=null,B=null,K=null,te=null,se=null,ge=null,Te=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:S.hasOwnProperty(ke)||br(h,m,ke,null,S,Ne)}}for(var ve in S){var ke=S[ve];if(Ne=v[ve],S.hasOwnProperty(ve)&&(ke!=null||Ne!=null))switch(ve){case"type":B=ke;break;case"name":P=ke;break;case"checked":ge=ke;break;case"defaultChecked":Te=ke;break;case"value":K=ke;break;case"defaultValue":te=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(o(137,m));break;default:ke!==Ne&&br(h,m,ve,ke,S,Ne)}}jl(h,K,te,se,ge,Te,B,P);return;case"select":ke=K=te=ve=null;for(B in v)if(se=v[B],v.hasOwnProperty(B)&&se!=null)switch(B){case"value":break;case"multiple":ke=se;default:S.hasOwnProperty(B)||br(h,m,B,null,S,se)}for(P in S)if(B=S[P],se=v[P],S.hasOwnProperty(P)&&(B!=null||se!=null))switch(P){case"value":ve=B;break;case"defaultValue":te=B;break;case"multiple":K=B;default:B!==se&&br(h,m,P,B,S,se)}m=te,v=K,S=ke,ve!=null?Di(h,!!v,ve,!1):!!S!=!!v&&(m!=null?Di(h,!!v,m,!0):Di(h,!!v,v?[]:"",!1));return;case"textarea":ke=ve=null;for(te in v)if(P=v[te],v.hasOwnProperty(te)&&P!=null&&!S.hasOwnProperty(te))switch(te){case"value":break;case"children":break;default:br(h,m,te,null,S,P)}for(K in S)if(P=S[K],B=v[K],S.hasOwnProperty(K)&&(P!=null||B!=null))switch(K){case"value":ve=P;break;case"defaultValue":ke=P;break;case"children":break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(o(91));break;default:P!==B&&br(h,m,K,P,S,B)}Yhe(h,ve,ke);return;case"option":for(var xt in v)if(ve=v[xt],v.hasOwnProperty(xt)&&ve!=null&&!S.hasOwnProperty(xt))switch(xt){case"selected":h.selected=!1;break;default:br(h,m,xt,null,S,ve)}for(se in S)if(ve=S[se],ke=v[se],S.hasOwnProperty(se)&&ve!==ke&&(ve!=null||ke!=null))switch(se){case"selected":h.selected=ve&&typeof ve!="function"&&typeof ve!="symbol";break;default:br(h,m,se,ve,S,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 ft in v)ve=v[ft],v.hasOwnProperty(ft)&&ve!=null&&!S.hasOwnProperty(ft)&&br(h,m,ft,null,S,ve);for(ge in S)if(ve=S[ge],ke=v[ge],S.hasOwnProperty(ge)&&ve!==ke&&(ve!=null||ke!=null))switch(ge){case"children":case"dangerouslySetInnerHTML":if(ve!=null)throw Error(o(137,m));break;default:br(h,m,ge,ve,S,ke)}return;default:if(y$(m)){for(var vr in v)ve=v[vr],v.hasOwnProperty(vr)&&ve!==void 0&&!S.hasOwnProperty(vr)&&tO(h,m,vr,void 0,S,ve);for(Te in S)ve=S[Te],ke=v[Te],!S.hasOwnProperty(Te)||ve===ke||ve===void 0&&ke===void 0||tO(h,m,Te,ve,S,ke);return}}for(var he in v)ve=v[he],v.hasOwnProperty(he)&&ve!=null&&!S.hasOwnProperty(he)&&br(h,m,he,null,S,ve);for(Ne in S)ve=S[Ne],ke=v[Ne],!S.hasOwnProperty(Ne)||ve===ke||ve==null&&ke==null||br(h,m,Ne,ve,S,ke)}var rO=null,nO=null;function R6(h){return h.nodeType===9?h:h.ownerDocument}function Gge(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 Xge(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 oO(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 aO=null;function Mkt(){var h=window.event;return h&&h.type==="popstate"?h===aO?!1:(aO=h,!0):(aO=null,!1)}var Kge=typeof setTimeout=="function"?setTimeout:void 0,Okt=typeof clearTimeout=="function"?clearTimeout:void 0,Zge=typeof Promise=="function"?Promise:void 0,Ikt=typeof queueMicrotask=="function"?queueMicrotask:typeof Zge<"u"?function(h){return Zge.resolve(null).then(h).catch(Lkt)}:Kge;function Lkt(h){setTimeout(function(){throw h})}function dd(h){return h==="head"}function Qge(h,m){var v=m,S=0,P=0;do{var B=v.nextSibling;if(h.removeChild(v),B&&B.nodeType===8)if(v=B.data,v==="/$"){if(0<S&&8>S){v=S;var K=h.ownerDocument;if(v&1&&Ov(K.documentElement),v&2&&Ov(K.body),v&4)for(v=K.head,Ov(v),K=v.firstChild;K;){var te=K.nextSibling,se=K.nodeName;K[Tc]||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&K.rel.toLowerCase()==="stylesheet"||v.removeChild(K),K=te}}if(P===0){h.removeChild(B),qv(m);return}P--}else v==="$"||v==="$?"||v==="$!"?P++:S=v.charCodeAt(0)-48;else S=0;v=B}while(v);qv(m)}function iO(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":iO(v),rh(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}h.removeChild(v)}}function zkt(h,m,v,S){for(;h.nodeType===1;){var P=v;if(h.nodeName.toLowerCase()!==m.toLowerCase()){if(!S&&(h.nodeName!=="INPUT"||h.type!=="hidden"))break}else if(S){if(!h[Tc])switch(m){case"meta":if(!h.hasAttribute("itemprop"))break;return h;case"link":if(B=h.getAttribute("rel"),B==="stylesheet"&&h.hasAttribute("data-precedence"))break;if(B!==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(B=h.getAttribute("src"),(B!==(P.src==null?null:P.src)||h.getAttribute("type")!==(P.type==null?null:P.type)||h.getAttribute("crossorigin")!==(P.crossOrigin==null?null:P.crossOrigin))&&B&&h.hasAttribute("async")&&!h.hasAttribute("itemprop"))break;return h;default:return h}}else if(m==="input"&&h.type==="hidden"){var B=P.name==null?null:""+P.name;if(P.type==="hidden"&&h.getAttribute("name")===B)return h}else return h;if(h=ql(h.nextSibling),h===null)break}return null}function Bkt(h,m,v){if(m==="")return null;for(;h.nodeType!==3;)if((h.nodeType!==1||h.nodeName!=="INPUT"||h.type!=="hidden")&&!v||(h=ql(h.nextSibling),h===null))return null;return h}function lO(h){return h.data==="$!"||h.data==="$?"&&h.ownerDocument.readyState==="complete"}function jkt(h,m){var v=h.ownerDocument;if(h.data!=="$?"||v.readyState==="complete")m();else{var S=function(){m(),v.removeEventListener("DOMContentLoaded",S)};v.addEventListener("DOMContentLoaded",S),h._reactRetry=S}}function ql(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==="F!"||m==="F")break;if(m==="/$")return null}}return h}var sO=null;function Jge(h){h=h.previousSibling;for(var m=0;h;){if(h.nodeType===8){var v=h.data;if(v==="$"||v==="$!"||v==="$?"){if(m===0)return h;m--}else v==="/$"&&m++}h=h.previousSibling}return null}function e1e(h,m,v){switch(m=R6(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 Ov(h){for(var m=h.attributes;m.length;)h.removeAttributeNode(m[0]);rh(h)}var zi=new Map,t1e=new Set;function A6(h){return typeof h.getRootNode=="function"?h.getRootNode():h.nodeType===9?h:h.ownerDocument}var Fc=q.d;q.d={f:Fkt,r:Hkt,D:qkt,C:Ukt,L:Vkt,m:Ykt,X:Gkt,S:Wkt,M:Xkt};function Fkt(){var h=Fc.f(),m=x6();return h||m}function Hkt(h){var m=Ri(h);m!==null&&m.tag===5&&m.type==="form"?wme(m):Fc.r(h)}var u1=typeof document>"u"?null:document;function r1e(h,m,v){var S=u1;if(S&&typeof m=="string"&&m){var P=zo(m);P='link[rel="'+h+'"][href="'+P+'"]',typeof v=="string"&&(P+='[crossorigin="'+v+'"]'),t1e.has(P)||(t1e.add(P),h={rel:h,crossOrigin:v,href:m},S.querySelector(P)===null&&(m=S.createElement("link"),ko(m,"link",h),tn(m),S.head.appendChild(m)))}}function qkt(h){Fc.D(h),r1e("dns-prefetch",h,null)}function Ukt(h,m){Fc.C(h,m),r1e("preconnect",h,m)}function Vkt(h,m,v){Fc.L(h,m,v);var S=u1;if(S&&h&&m){var P='link[rel="preload"][as="'+zo(m)+'"]';m==="image"&&v&&v.imageSrcSet?(P+='[imagesrcset="'+zo(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(P+='[imagesizes="'+zo(v.imageSizes)+'"]')):P+='[href="'+zo(h)+'"]';var B=P;switch(m){case"style":B=d1(h);break;case"script":B=p1(h)}zi.has(B)||(h=d({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:h,as:m},v),zi.set(B,h),S.querySelector(P)!==null||m==="style"&&S.querySelector(Iv(B))||m==="script"&&S.querySelector(Lv(B))||(m=S.createElement("link"),ko(m,"link",h),tn(m),S.head.appendChild(m)))}}function Ykt(h,m){Fc.m(h,m);var v=u1;if(v&&h){var S=m&&typeof m.as=="string"?m.as:"script",P='link[rel="modulepreload"][as="'+zo(S)+'"][href="'+zo(h)+'"]',B=P;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":B=p1(h)}if(!zi.has(B)&&(h=d({rel:"modulepreload",href:h},m),zi.set(B,h),v.querySelector(P)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Lv(B)))return}S=v.createElement("link"),ko(S,"link",h),tn(S),v.head.appendChild(S)}}}function Wkt(h,m,v){Fc.S(h,m,v);var S=u1;if(S&&h){var P=Ai(S).hoistableStyles,B=d1(h);m=m||"default";var K=P.get(B);if(!K){var te={loading:0,preload:null};if(K=S.querySelector(Iv(B)))te.loading=5;else{h=d({rel:"stylesheet",href:h,"data-precedence":m},v),(v=zi.get(B))&&cO(h,v);var se=K=S.createElement("link");tn(se),ko(se,"link",h),se._p=new Promise(function(ge,Te){se.onload=ge,se.onerror=Te}),se.addEventListener("load",function(){te.loading|=1}),se.addEventListener("error",function(){te.loading|=2}),te.loading|=4,N6(K,m,S)}K={type:"stylesheet",instance:K,count:1,state:te},P.set(B,K)}}}function Gkt(h,m){Fc.X(h,m);var v=u1;if(v&&h){var S=Ai(v).hoistableScripts,P=p1(h),B=S.get(P);B||(B=v.querySelector(Lv(P)),B||(h=d({src:h,async:!0},m),(m=zi.get(P))&&uO(h,m),B=v.createElement("script"),tn(B),ko(B,"link",h),v.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},S.set(P,B))}}function Xkt(h,m){Fc.M(h,m);var v=u1;if(v&&h){var S=Ai(v).hoistableScripts,P=p1(h),B=S.get(P);B||(B=v.querySelector(Lv(P)),B||(h=d({src:h,async:!0,type:"module"},m),(m=zi.get(P))&&uO(h,m),B=v.createElement("script"),tn(B),ko(B,"link",h),v.head.appendChild(B)),B={type:"script",instance:B,count:1,state:null},S.set(P,B))}}function n1e(h,m,v,S){var P=(P=Z.current)?A6(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=d1(v.href),v=Ai(P).hoistableStyles,S=v.get(m),S||(S={type:"style",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){h=d1(v.href);var B=Ai(P).hoistableStyles,K=B.get(h);if(K||(P=P.ownerDocument||P,K={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},B.set(h,K),(B=P.querySelector(Iv(h)))&&!B._p&&(K.instance=B,K.state.loading=5),zi.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},zi.set(h,v),B||Kkt(P,h,v,K.state))),m&&S===null)throw Error(o(528,""));return K}if(m&&S!==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=p1(v),v=Ai(P).hoistableScripts,S=v.get(m),S||(S={type:"script",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,h))}}function d1(h){return'href="'+zo(h)+'"'}function Iv(h){return'link[rel="stylesheet"]['+h+"]"}function o1e(h){return d({},h,{"data-precedence":h.precedence,precedence:null})}function Kkt(h,m,v,S){h.querySelector('link[rel="preload"][as="style"]['+m+"]")?S.loading=1:(m=h.createElement("link"),S.preload=m,m.addEventListener("load",function(){return S.loading|=1}),m.addEventListener("error",function(){return S.loading|=2}),ko(m,"link",v),tn(m),h.head.appendChild(m))}function p1(h){return'[src="'+zo(h)+'"]'}function Lv(h){return"script[async]"+h}function a1e(h,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var S=h.querySelector('style[data-href~="'+zo(v.href)+'"]');if(S)return m.instance=S,tn(S),S;var P=d({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return S=(h.ownerDocument||h).createElement("style"),tn(S),ko(S,"style",P),N6(S,v.precedence,h),m.instance=S;case"stylesheet":P=d1(v.href);var B=h.querySelector(Iv(P));if(B)return m.state.loading|=4,m.instance=B,tn(B),B;S=o1e(v),(P=zi.get(P))&&cO(S,P),B=(h.ownerDocument||h).createElement("link"),tn(B);var K=B;return K._p=new Promise(function(te,se){K.onload=te,K.onerror=se}),ko(B,"link",S),m.state.loading|=4,N6(B,v.precedence,h),m.instance=B;case"script":return B=p1(v.src),(P=h.querySelector(Lv(B)))?(m.instance=P,tn(P),P):(S=v,(P=zi.get(B))&&(S=d({},v),uO(S,P)),h=h.ownerDocument||h,P=h.createElement("script"),tn(P),ko(P,"link",S),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&&(S=m.instance,m.state.loading|=4,N6(S,v.precedence,h));return m.instance}function N6(h,m,v){for(var S=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),P=S.length?S[S.length-1]:null,B=P,K=0;K<S.length;K++){var te=S[K];if(te.dataset.precedence===m)B=te;else if(B!==P)break}B?B.parentNode.insertBefore(h,B.nextSibling):(m=v.nodeType===9?v.head:v,m.insertBefore(h,m.firstChild))}function cO(h,m){h.crossOrigin==null&&(h.crossOrigin=m.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=m.referrerPolicy),h.title==null&&(h.title=m.title)}function uO(h,m){h.crossOrigin==null&&(h.crossOrigin=m.crossOrigin),h.referrerPolicy==null&&(h.referrerPolicy=m.referrerPolicy),h.integrity==null&&(h.integrity=m.integrity)}var D6=null;function i1e(h,m,v){if(D6===null){var S=new Map,P=D6=new Map;P.set(v,S)}else P=D6,S=P.get(v),S||(S=new Map,P.set(v,S));if(S.has(h))return S;for(S.set(h,null),v=v.getElementsByTagName(h),P=0;P<v.length;P++){var B=v[P];if(!(B[Tc]||B[Mn]||h==="link"&&B.getAttribute("rel")==="stylesheet")&&B.namespaceURI!=="http://www.w3.org/2000/svg"){var K=B.getAttribute(m)||"";K=h+K;var te=S.get(K);te?te.push(B):S.set(K,[B])}}return S}function l1e(h,m,v){h=h.ownerDocument||h,h.head.insertBefore(v,m==="title"?h.querySelector("head > title"):null)}function Zkt(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 s1e(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}var zv=null;function Qkt(){}function Jkt(h,m,v){if(zv===null)throw Error(o(475));var S=zv;if(m.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var P=d1(v.href),B=h.querySelector(Iv(P));if(B){h=B._p,h!==null&&typeof h=="object"&&typeof h.then=="function"&&(S.count++,S=P6.bind(S),h.then(S,S)),m.state.loading|=4,m.instance=B,tn(B);return}B=h.ownerDocument||h,v=o1e(v),(P=zi.get(P))&&cO(v,P),B=B.createElement("link"),tn(B);var K=B;K._p=new Promise(function(te,se){K.onload=te,K.onerror=se}),ko(B,"link",v),m.instance=B}S.stylesheets===null&&(S.stylesheets=new Map),S.stylesheets.set(m,h),(h=m.state.preload)&&(m.state.loading&3)===0&&(S.count++,m=P6.bind(S),h.addEventListener("load",m),h.addEventListener("error",m))}}function e6t(){if(zv===null)throw Error(o(475));var h=zv;return h.stylesheets&&h.count===0&&dO(h,h.stylesheets),0<h.count?function(m){var v=setTimeout(function(){if(h.stylesheets&&dO(h,h.stylesheets),h.unsuspend){var S=h.unsuspend;h.unsuspend=null,S()}},6e4);return h.unsuspend=m,function(){h.unsuspend=null,clearTimeout(v)}}:null}function P6(){if(this.count--,this.count===0){if(this.stylesheets)dO(this,this.stylesheets);else if(this.unsuspend){var h=this.unsuspend;this.unsuspend=null,h()}}}var $6=null;function dO(h,m){h.stylesheets=null,h.unsuspend!==null&&(h.count++,$6=new Map,m.forEach(t6t,h),$6=null,P6.call(h))}function t6t(h,m){if(!(m.state.loading&4)){var v=$6.get(h);if(v)var S=v.get(null);else{v=new Map,$6.set(h,v);for(var P=h.querySelectorAll("link[data-precedence],style[data-precedence]"),B=0;B<P.length;B++){var K=P[B];(K.nodeName==="LINK"||K.getAttribute("media")!=="not all")&&(v.set(K.dataset.precedence,K),S=K)}S&&v.set(null,S)}P=m.instance,K=P.getAttribute("data-precedence"),B=v.get(K)||S,B===S&&v.set(null,P),v.set(K,P),this.count++,S=P6.bind(this),P.addEventListener("load",S),P.addEventListener("error",S),B?B.parentNode.insertBefore(P,B.nextSibling):(h=h.nodeType===9?h.head:h,h.insertBefore(P,h.firstChild)),m.state.loading|=4}}var Bv={$$typeof:_,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function r6t(h,m,v,S,P,B,K,te){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=Qp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qp(0),this.hiddenUpdates=Qp(null),this.identifierPrefix=S,this.onUncaughtError=P,this.onCaughtError=B,this.onRecoverableError=K,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function c1e(h,m,v,S,P,B,K,te,se,ge,Te,Ne){return h=new r6t(h,m,v,K,te,se,ge,Ne),m=1,B===!0&&(m|=24),B=qa(3,null,null,m),h.current=B,B.stateNode=h,m=Y$(),m.refCount++,h.pooledCache=m,m.refCount++,B.memoizedState={element:S,isDehydrated:v,cache:m},K$(B),h}function u1e(h){return h?(h=qg,h):qg}function d1e(h,m,v,S,P,B){P=u1e(P),S.context===null?S.context=P:S.pendingContext=P,S=Qu(m),S.payload={element:v},B=B===void 0?null:B,B!==null&&(S.callback=B),v=Ju(h,S,m),v!==null&&(Ga(v,h,m),mv(v,h,m))}function p1e(h,m){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var v=h.retryLane;h.retryLane=v!==0&&v<m?v:m}}function pO(h,m){p1e(h,m),(h=h.alternate)&&p1e(h,m)}function h1e(h){if(h.tag===13){var m=Hg(h,67108864);m!==null&&Ga(m,h,67108864),pO(h,67108864)}}var M6=!0;function n6t(h,m,v,S){var P=I.T;I.T=null;var B=q.p;try{q.p=2,hO(h,m,v,S)}finally{q.p=B,I.T=P}}function o6t(h,m,v,S){var P=I.T;I.T=null;var B=q.p;try{q.p=8,hO(h,m,v,S)}finally{q.p=B,I.T=P}}function hO(h,m,v,S){if(M6){var P=fO(S);if(P===null)eO(h,m,S,O6,v),m1e(h,S);else if(i6t(P,h,m,v,S))S.stopPropagation();else if(m1e(h,S),m&4&&-1<a6t.indexOf(h)){for(;P!==null;){var B=Ri(P);if(B!==null)switch(B.tag){case 3:if(B=B.stateNode,B.current.memoizedState.isDehydrated){var K=$n(B.pendingLanes);if(K!==0){var te=B;for(te.pendingLanes|=2,te.entangledLanes|=2;K;){var se=1<<31-at(K);te.entanglements[1]|=se,K&=~se}Ds(B),(dr&6)===0&&(b6=Ge()+500,Pv(0))}}break;case 13:te=Hg(B,2),te!==null&&Ga(te,B,2),x6(),pO(B,2)}if(B=fO(S),B===null&&eO(h,m,S,O6,v),B===P)break;P=B}P!==null&&S.stopPropagation()}else eO(h,m,S,null,v)}}function fO(h){return h=v$(h),mO(h)}var O6=null;function mO(h){if(O6=null,h=Ss(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===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;h=null}else m!==h&&(h=null)}}return O6=h,null}function f1e(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(_t()){case Qe:return 2;case St:return 8;case Ke:case We:return 32;case st:return 268435456;default:return 32}default:return 32}}var gO=!1,pd=null,hd=null,fd=null,jv=new Map,Fv=new Map,md=[],a6t="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 m1e(h,m){switch(h){case"focusin":case"focusout":pd=null;break;case"dragenter":case"dragleave":hd=null;break;case"mouseover":case"mouseout":fd=null;break;case"pointerover":case"pointerout":jv.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fv.delete(m.pointerId)}}function Hv(h,m,v,S,P,B){return h===null||h.nativeEvent!==B?(h={blockedOn:m,domEventName:v,eventSystemFlags:S,nativeEvent:B,targetContainers:[P]},m!==null&&(m=Ri(m),m!==null&&h1e(m)),h):(h.eventSystemFlags|=S,m=h.targetContainers,P!==null&&m.indexOf(P)===-1&&m.push(P),h)}function i6t(h,m,v,S,P){switch(m){case"focusin":return pd=Hv(pd,h,m,v,S,P),!0;case"dragenter":return hd=Hv(hd,h,m,v,S,P),!0;case"mouseover":return fd=Hv(fd,h,m,v,S,P),!0;case"pointerover":var B=P.pointerId;return jv.set(B,Hv(jv.get(B)||null,h,m,v,S,P)),!0;case"gotpointercapture":return B=P.pointerId,Fv.set(B,Hv(Fv.get(B)||null,h,m,v,S,P)),!0}return!1}function g1e(h){var m=Ss(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,Ub(h.priority,function(){if(v.tag===13){var S=Wa();S=Jp(S);var P=Hg(v,S);P!==null&&Ga(P,v,S),pO(v,S)}});return}}else if(m===3&&v.stateNode.current.memoizedState.isDehydrated){h.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}h.blockedOn=null}function I6(h){if(h.blockedOn!==null)return!1;for(var m=h.targetContainers;0<m.length;){var v=fO(h.nativeEvent);if(v===null){v=h.nativeEvent;var S=new v.constructor(v.type,v);b$=S,v.target.dispatchEvent(S),b$=null}else return m=Ri(v),m!==null&&h1e(m),h.blockedOn=v,!1;m.shift()}return!0}function y1e(h,m,v){I6(h)&&v.delete(m)}function l6t(){gO=!1,pd!==null&&I6(pd)&&(pd=null),hd!==null&&I6(hd)&&(hd=null),fd!==null&&I6(fd)&&(fd=null),jv.forEach(y1e),Fv.forEach(y1e)}function L6(h,m){h.blockedOn===m&&(h.blockedOn=null,gO||(gO=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l6t)))}var z6=null;function b1e(h){z6!==h&&(z6=h,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){z6===h&&(z6=null);for(var m=0;m<h.length;m+=3){var v=h[m],S=h[m+1],P=h[m+2];if(typeof S!="function"){if(mO(S||v)===null)continue;break}var B=Ri(v);B!==null&&(h.splice(m,3),m-=3,mM(B,{pending:!0,data:P,method:v.method,action:S},S,P))}}))}function qv(h){function m(se){return L6(se,h)}pd!==null&&L6(pd,h),hd!==null&&L6(hd,h),fd!==null&&L6(fd,h),jv.forEach(m),Fv.forEach(m);for(var v=0;v<md.length;v++){var S=md[v];S.blockedOn===h&&(S.blockedOn=null)}for(;0<md.length&&(v=md[0],v.blockedOn===null);)g1e(v),v.blockedOn===null&&md.shift();if(v=(h.ownerDocument||h).$$reactFormReplay,v!=null)for(S=0;S<v.length;S+=3){var P=v[S],B=v[S+1],K=P[oo]||null;if(typeof B=="function")K||b1e(v);else if(K){var te=null;if(B&&B.hasAttribute("formAction")){if(P=B,K=B[oo]||null)te=K.formAction;else if(mO(P)!==null)continue}else te=K.action;typeof te=="function"?v[S+1]=te:(v.splice(S,3),S-=3),b1e(v)}}}function yO(h){this._internalRoot=h}B6.prototype.render=yO.prototype.render=function(h){var m=this._internalRoot;if(m===null)throw Error(o(409));var v=m.current,S=Wa();d1e(v,S,h,m,null,null)},B6.prototype.unmount=yO.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var m=h.containerInfo;d1e(h.current,2,null,h,null,null),x6(),m[Es]=null}};function B6(h){this._internalRoot=h}B6.prototype.unstable_scheduleHydration=function(h){if(h){var m=Cg();h={blockedOn:null,target:h,priority:m};for(var v=0;v<md.length&&m!==0&&m<md[v].priority;v++);md.splice(v,0,h),v===0&&g1e(h)}};var v1e=r.version;if(v1e!=="19.1.1")throw Error(o(527,v1e,"19.1.1"));q.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=c(m),h=h!==null?u(h):null,h=h===null?null:h.stateNode,h};var s6t={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var j6=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!j6.isDisabled&&j6.supportsFiber)try{_e=j6.inject(s6t),we=j6}catch{}}return Fy.createRoot=function(h,m){if(!a(h))throw Error(o(299));var v=!1,S="",P=Ome,B=Ime,K=Lme,te=null;return m!=null&&(m.unstable_strictMode===!0&&(v=!0),m.identifierPrefix!==void 0&&(S=m.identifierPrefix),m.onUncaughtError!==void 0&&(P=m.onUncaughtError),m.onCaughtError!==void 0&&(B=m.onCaughtError),m.onRecoverableError!==void 0&&(K=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(te=m.unstable_transitionCallbacks)),m=c1e(h,1,!1,null,null,v,S,P,B,K,te,null),h[Es]=m.current,JM(h),new yO(m)},Fy.hydrateRoot=function(h,m,v){if(!a(h))throw Error(o(299));var S=!1,P="",B=Ome,K=Ime,te=Lme,se=null,ge=null;return v!=null&&(v.unstable_strictMode===!0&&(S=!0),v.identifierPrefix!==void 0&&(P=v.identifierPrefix),v.onUncaughtError!==void 0&&(B=v.onUncaughtError),v.onCaughtError!==void 0&&(K=v.onCaughtError),v.onRecoverableError!==void 0&&(te=v.onRecoverableError),v.unstable_transitionCallbacks!==void 0&&(se=v.unstable_transitionCallbacks),v.formState!==void 0&&(ge=v.formState)),m=c1e(h,1,!0,m,v??null,S,P,B,K,te,se,ge),m.context=u1e(null),v=m.current,S=Wa(),S=Jp(S),P=Qu(S),P.callback=null,Ju(v,P,S),v=S,m.current.lanes=v,Cc(m,v),Ds(m),h[Es]=m.current,JM(h),new B6(m)},Fy.version="19.1.1",Fy}var rre;function Itt(){if(rre)return wR.exports;rre=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(),wR.exports=Ott(),wR.exports}var Ltt=Itt();const ztt={View:"likec4-view"};let ER="/";ER.endsWith("/")||(ER=ER+"/");var ss=function(){return ss=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},ss.apply(this,arguments)};function nre(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 Btt(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 y4="right-scroll-bar-position",b4="width-before-scroll-bar",jtt="with-scroll-bars-hidden",Ftt="--removed-body-scroll-bar-size";function SR(e,r){return typeof e=="function"?e(r):e&&(e.current=r),e}function Htt(e,r){var n=E.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 qtt=typeof window<"u"?E.useLayoutEffect:E.useEffect,ore=new WeakMap;function Utt(e,r){var n=Htt(null,function(o){return e.forEach(function(a){return SR(a,o)})});return qtt(function(){var o=ore.get(n);if(o){var a=new Set(o),i=new Set(e),l=n.current;a.forEach(function(s){i.has(s)||SR(s,null)}),i.forEach(function(s){a.has(s)||SR(s,l)})}ore.set(n,e)},[e]),n}function Vtt(e){return e}function Ytt(e,r){r===void 0&&(r=Vtt);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 Wtt(e){e===void 0&&(e={});var r=Ytt(null);return r.options=ss({async:!0,ssr:!1},e),r}var are=function(e){var r=e.sideCar,n=nre(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 E.createElement(o,ss({},n))};are.isSideCarExport=!0;function Gtt(e,r){return e.useMedium(r),are}var ire=Wtt(),CR=function(){},v4=E.forwardRef(function(e,r){var n=E.useRef(null),o=E.useState({onScrollCapture:CR,onWheelCapture:CR,onTouchMoveCapture:CR}),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=nre(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=f,A=Utt([n,r]),D=ss(ss({},T),a);return E.createElement(E.Fragment,null,d&&E.createElement(R,{sideCar:ire,removeScrollBar:u,shards:p,noRelative:g,noIsolation:b,inert:x,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:_}),l?E.cloneElement(E.Children.only(s),ss(ss({},D),{ref:A})):E.createElement(C,ss({},D,{className:c,ref:A}),s))});v4.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v4.classNames={fullWidth:b4,zeroRight:y4};var Xtt=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Ktt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var r=Xtt();return r&&e.setAttribute("nonce",r),e}function Ztt(e,r){e.styleSheet?e.styleSheet.cssText=r:e.appendChild(document.createTextNode(r))}function Qtt(e){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(e)}var Jtt=function(){var e=0,r=null;return{add:function(n){e==0&&(r=Ktt())&&(Ztt(r,n),Qtt(r)),e++},remove:function(){e--,!e&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},ert=function(){var e=Jtt();return function(r,n){E.useEffect(function(){return e.add(r),function(){e.remove()}},[r&&n])}},lre=function(){var e=ert(),r=function(n){var o=n.styles,a=n.dynamic;return e(o,a),null};return r},trt={left:0,top:0,right:0,gap:0},TR=function(e){return parseInt(e||"",10)||0},rrt=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[TR(n),TR(o),TR(a)]},nrt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return trt;var r=rrt(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=lre(),Tm="data-scroll-locked",art=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(jtt,` {
overflow: hidden `).concat(o,`;
padding-right: `).concat(s,"px ").concat(o,`;
}
body[`).concat(Tm,`] {
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(y4,` {
right: `).concat(s,"px ").concat(o,`;
}
.`).concat(b4,` {
margin-right: `).concat(s,"px ").concat(o,`;
}
.`).concat(y4," .").concat(y4,` {
right: 0 `).concat(o,`;
}
.`).concat(b4," .").concat(b4,` {
margin-right: 0 `).concat(o,`;
}
body[`).concat(Tm,`] {
`).concat(Ftt,": ").concat(s,`px;
}
`)},sre=function(){var e=parseInt(document.body.getAttribute(Tm)||"0",10);return isFinite(e)?e:0},irt=function(){E.useEffect(function(){return document.body.setAttribute(Tm,(sre()+1).toString()),function(){var e=sre()-1;e<=0?document.body.removeAttribute(Tm):document.body.setAttribute(Tm,e.toString())}},[])},lrt=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;irt();var i=E.useMemo(function(){return nrt(a)},[a]);return E.createElement(ort,{styles:art(i,!r,a,n?"":"!important")})},RR=!1;if(typeof window<"u")try{var x4=Object.defineProperty({},"passive",{get:function(){return RR=!0,!0}});window.addEventListener("test",x4,x4),window.removeEventListener("test",x4,x4)}catch{RR=!1}var Rm=RR?{passive:!1}:!1,srt=function(e){return e.tagName==="TEXTAREA"},cre=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!srt(e)&&n[r]==="visible")},crt=function(e){return cre(e,"overflowY")},urt=function(e){return cre(e,"overflowX")},ure=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=dre(e,o);if(a){var i=pre(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},drt=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},prt=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},dre=function(e,r){return e==="v"?crt(r):urt(r)},pre=function(e,r){return e==="v"?drt(r):prt(r)},hrt=function(e,r){return e==="h"&&r==="rtl"?-1:1},frt=function(e,r,n,o,a){var i=hrt(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=pre(e,s),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&dre(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},w4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hre=function(e){return[e.deltaX,e.deltaY]},fre=function(e){return e&&"current"in e?e.current:e},mrt=function(e,r){return e[0]===r[0]&&e[1]===r[1]},grt=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},yrt=0,Am=[];function brt(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(yrt++)[0],i=E.useState(lre)[0],l=E.useRef(e);E.useEffect(function(){l.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=Btt([e.lockRef.current],(e.shards||[]).map(fre)).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=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var k=w4(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=ure(D,A);if(!N)return!0;if(N?R=D:(R=D==="v"?"h":"v",N=ure(D,A)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=R),!R)return!0;var $=o.current||R;return frt($,w,x,$==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!Am.length||Am[Am.length-1]!==i)){var k="deltaY"in w?hre(w):w4(w),C=r.current.filter(function(R){return R.name===w.type&&(R.target===w.target||w.target===R.shadowParent)&&mrt(R.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(l.current.shards||[]).map(fre).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=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:vrt(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),d=E.useCallback(function(x){n.current=w4(x),o.current=void 0},[]),p=E.useCallback(function(x){u(x.type,hre(x),x.target,s(x,e.lockRef.current))},[]),f=E.useCallback(function(x){u(x.type,w4(x),x.target,s(x,e.lockRef.current))},[]);E.useEffect(function(){return Am.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Rm),document.addEventListener("touchmove",c,Rm),document.addEventListener("touchstart",d,Rm),function(){Am=Am.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Rm),document.removeEventListener("touchmove",c,Rm),document.removeEventListener("touchstart",d,Rm)}},[]);var g=e.removeScrollBar,b=e.inert;return E.createElement(E.Fragment,null,b?E.createElement(i,{styles:grt(a)}):null,g?E.createElement(lrt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vrt(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const xrt=Gtt(ire,brt);var mre=E.forwardRef(function(e,r){return E.createElement(v4,ss({},e,{ref:r,sideCar:xrt}))});mre.classNames=v4.classNames;function $o(e){return Object.keys(e)}function wrt(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function krt(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function k4(e){const r=krt(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 gre(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function yre(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?gre(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?gre(i):i}}return o}return n}const Fe=yre("rem",{shouldScale:!0});yre("em");function Au(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function bre(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 xl(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function $a(e){const r=E.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function Nm(e=null){const r=E.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function vre(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function Hy(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function _rt(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 Ert(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 Srt(e,r,n){return Hy(e,n)===Hy(r,n)}function AR({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(Hy(s.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>Srt(s.currentTarget,b,e)),u=c.findIndex(b=>s.currentTarget===b),d=Ert(u,c,o),p=_rt(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 Crt={app:100,modal:200,popover:300,overlay:400,max:9999};function wl(e){return Crt[e]}const Trt=()=>{};function Rrt(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||Trt:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function er(e,r="size",n=!0){if(e!==void 0)return bre(e)?n?Fe(e):e:`var(--${r}-${e})`}function Jn(e){return er(e,"mantine-spacing")}function un(e){return e===void 0?"var(--mantine-radius-default)":er(e,"mantine-radius")}function Mo(e){return er(e,"mantine-font-size")}function Art(e){return er(e,"mantine-line-height",!1)}function NR(e){if(e)return er(e,"mantine-shadow",!1)}function En(e,r){return n=>{e?.(n),r?.(n)}}function Nrt(e,r){return e in r?k4(r[e]):k4(e)}function DR(e,r){const n=e.map(o=>({value:o,px:Nrt(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function kl(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Dm(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 PR(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Drt(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 wp(e){const r=E.useRef(e);return E.useEffect(()=>{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function _4(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=wp(e),l=E.useRef(0),s=E.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 E.useEffect(()=>()=>{o?s.flush():s.cancel()},[s,o]),s}const Prt=["mousedown","touchstart"];function xre(e,r,n){const o=E.useRef(null),a=r||Prt;return E.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()}else o.current&&!o.current.contains(s)&&e()};return a.forEach(l=>document.addEventListener(l,i)),()=>{a.forEach(l=>document.removeEventListener(l,i))}},[o,e,n]),o}function $rt(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function Mrt(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Ort(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:Mrt(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),$rt(i,l=>a(l.matches))}catch{return}},[e]),o||!1}const $R=typeof document<"u"?E.useLayoutEffect:E.useEffect;function kp(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function wre({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return kp(()=>{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 Irt=/input|select|textarea|button|object/,kre="a, input, select, textarea, button, object, [tabindex]";function Lrt(e){return e.style.display==="none"}function zrt(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(Lrt(r))return!1;r=r.parentNode}return!0}function _re(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function MR(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(_re(e));return(Irt.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&zrt(e)}function Ere(e){const r=_re(e);return(Number.isNaN(r)||r>=0)&&MR(e)}function Brt(e){return Array.from(e.querySelectorAll(kre)).filter(Ere)}function jrt(e,r){const n=Brt(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 Frt(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const l=Array.from(a.querySelectorAll(kre));i=l.find(Ere)||l.find(MR)||null,!i&&MR(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&jrt(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const Hrt=Xr.useId||(()=>{});function qrt(){const e=Hrt();return e?`mantine-${e.replace(/:/g,"")}`:""}function _l(e){const r=qrt(),[n,o]=E.useState(r);return $R(()=>{o(PR())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function Urt(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function OR(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function Sre(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=OR(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():OR(o,null)}),r.clear()}}}function Jr(...e){return E.useCallback(Sre(...e),e)}function Vrt(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[l,s]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.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=Dm((_-R.left)/R.width,0,1);e({x:n==="ltr"?A:1-A,y:Dm((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 Nu({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(s,...c)=>{i(s),o?.(s,...c)},!1]}function IR(e,r){return Ort("(prefers-reduced-motion: reduce)",e,r)}function Yrt(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(!Drt(e[n],r[n]))return!1;return!0}function Wrt(e){const r=E.useRef([]),n=E.useRef(0);return Yrt(r.current,e)||(r.current=e,n.current+=1),[n.current]}function Grt(e,r){E.useEffect(e,Wrt(r))}function Xrt(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(s=>s||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(s=>s&&(r.onClose?.(),!1))},[r.onClose]),l=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:l}]}function Krt(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...l)=>{o.current||(o.current=window.setTimeout(()=>{e(l),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function Zrt(e){const r=E.useRef(void 0);return E.useEffect(()=>{r.current=e},[e]),r.current}function Qrt(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.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 Jrt(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function ent(){return typeof process<"u"&&process.env?"production":"development"}function Cre(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 Tre(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e)<Math.abs(n-e)?o:n)}function E4(e){const r=Xr.version;return typeof Xr.version!="string"||r.startsWith("18.")?e?.ref:e?.props?.ref}function Rre(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=Rre(e[r]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function eo(){for(var e,r,n=0,o="",a=arguments.length;n<a;n++)(e=arguments[n])&&(r=Rre(e))&&(o&&(o+=" "),o+=r);return o}const tnt={};function rnt(e){const r={};return e.forEach(n=>{Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=eo(r[o],a):r[o]=a})}),r}function S4({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||tnt);return rnt(a)}function C4({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 nnt=E.createContext(null);function _p(){const e=E.useContext(nnt);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function ont(){return _p().classNamesPrefix}function ant(){return _p().getStyleNonce}function int(){return _p().withStaticClasses}function lnt(){return _p().headless}function snt(){return _p().stylesTransform?.sx}function cnt(){return _p().stylesTransform?.styles}function T4(){return _p().env||"default"}function unt(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function dnt(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 pnt(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 hnt(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 Are(e){return unt(e)?dnt(e):e.startsWith("rgb")?pnt(e):e.startsWith("hsl")?hnt(e):{r:0,g:0,b:0,a:1}}function qy(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function LR(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function fnt(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function mnt(e){if(e.startsWith("oklch("))return(fnt(e)||0)/100;const{r,g:n,b:o}=Are(e),a=r/255,i=n/255,l=o/255,s=LR(a),c=LR(i),u=LR(l);return .2126*s+.7152*c+.0722*u}function Uy(e,r=.179){return e.startsWith("var(")?!1:mnt(e)>r}function Ep({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:Uy(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:Uy(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:Uy(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][qy(r,n||"light")];return{color:o,value:s,shade:i,isThemeColor:l,isLight:Uy(s,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:Uy(e,r.luminanceThreshold),shade:i,variable:void 0}}function Vo(e,r){const n=Ep({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function gnt(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Vo(n.from,r),a=Vo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function Nre(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}=Are(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const Pm=Nre,ynt={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"]},Dre="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",bnt={scale:1,fontSmoothing:!0,white:"#fff",black:"#000",colors:ynt,primaryShade:{light:6,dark:8},primaryColor:"blue",autoContrast:!1,luminanceThreshold:.3,fontFamily:Dre,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",cursorType:"default",defaultRadius:"sm",headings:{fontFamily:Dre,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)}`}},vnt=E.createContext(null);function yo(){const e=E.useContext(vnt);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 zR({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&Ep({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Pre(e,r){return zR({color:e.colors[e.primaryColor][qy(e,r)],theme:e,autoContrast:null})}function R4({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const s=qy(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`]:Pm(e.colors[r][s],.1),[`--mantine-color-${o}-light-hover`]:Pm(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`]:Pm(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=qy(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`]:Pm(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:Pm(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`]:Pm(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 xnt(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function $m(e,r,n){$o(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}(e=>{const r=qy(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":Pre(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":Pre(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)"}};$m(o.variables,e.breakpoints,"breakpoint"),$m(o.variables,e.spacing,"spacing"),$m(o.variables,e.fontSizes,"font-size"),$m(o.variables,e.lineHeights,"line-height"),$m(o.variables,e.shadows,"shadow"),$m(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{o.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),$o(e.colors).forEach(i=>{const l=e.colors[i];if(xnt(l)){Object.assign(o.light,R4({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,R4({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,R4({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,R4({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return $o(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})(bnt);function BR({classNames:e,styles:r,props:n,stylesCtx:o}){const a=yo();return{resolvedClassNames:S4({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:C4({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const wnt={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function knt({theme:e,options:r,unstyled:n}){return eo(r?.focusable&&!n&&(e.focusClassName||wnt[e.focusRing]),r?.active&&!n&&e.activeClassName)}function _nt({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return S4({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function $re({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return S4({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function Ent({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function Snt({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function Cnt({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function Tnt({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>S4({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function Rnt({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function Ant({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 eo(knt({theme:e,options:r,unstyled:s||g}),Tnt({theme:e,themeName:n,selector:o,props:d,stylesCtx:p}),Rnt({options:r,classes:l,selector:o,unstyled:s}),$re({selector:o,stylesCtx:p,theme:e,classNames:i,props:d}),$re({selector:o,stylesCtx:p,theme:e,classNames:b,props:d}),_nt({selector:o,stylesCtx:p,options:r,props:d,theme:e}),Ent({rootSelector:u,selector:o,className:c}),Snt({selector:o,classes:l,unstyled:s||g}),f&&!g&&Cnt({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function Nnt({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>C4({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,l)=>({...i,...l}),{})}function jR({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...jR({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function Dnt(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Au(n[o])}}),r),{})}function Pnt({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:l,headless:s}){return Dnt([s?{}:r?.(n,o,a),...l.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function $nt({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&&Nnt({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&C4({theme:e,styles:s,props:a,stylesCtx:i})[n],...!f&&C4({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...Pnt({theme:e,props:a,stylesCtx:i,vars:u,varsResolver:d,selector:n,themeName:r,headless:p}),...l===n?jR({style:c,theme:e}):null,...jR({style:o?.style,theme:e})}}function Mnt({props:e,stylesCtx:r,themeName:n}){const o=yo(),a=cnt()?.();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 dt({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=yo(),b=ont(),x=int(),w=lnt(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=Mnt({props:n,stylesCtx:o,themeName:k});return(T,R)=>({className:Ant({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:$nt({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 Ont(e,r){return typeof e=="boolean"?e:r.autoContrast}function De(e,r,n){const o=yo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Au(n)}}function FR(e){return $o(e).reduce((r,n)=>e[n]!==void 0?`${r}${wrt(n)}:${e[n]};`:r,"").trim()}function Int({selector:e,styles:r,media:n,container:o}){const a=r?FR(r):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${FR(s.styles)}}}`):[],l=Array.isArray(o)?o.map(s=>`@container ${s.query}{${e}{${FR(s.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${l.join("")}`.trim()}function Mm(e){const r=ant();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:Int(e)}})}function HR(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:M,lts:j,ta:L,lh:Y,fs:O,tt:U,td:I,w:q,miw:V,maw:G,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:X,bga:Z,pos:oe,top:ee,left:re,bottom:pe,right:Ce,inset:ce,display:de,flex:be,hiddenFrom:Oe,visibleFrom:Xe,lightHidden:Ge,darkHidden:_t,sx:Qe,...St}=e;return{styleProps:Au({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:M,lts:j,ta:L,lh:Y,fs:O,tt:U,td:I,w:q,miw:V,maw:G,h:F,mih:J,mah:Q,bgsz:z,bgp:W,bgr:X,bga:Z,pos:oe,top:ee,left:re,bottom:pe,right:Ce,inset:ce,display:de,flex:be,bdrs:T,hiddenFrom:Oe,visibleFrom:Xe,lightHidden:Ge,darkHidden:_t,sx:Qe}),rest:St}}const Lnt={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 qR(e,r){const n=Ep({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 znt(e,r){const n=Ep({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:qR(e,r)}function Bnt(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+=` ${qR(a.join(" "),r)}`),i.trim()}return e}const Mre={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 jnt(e){return typeof e=="string"&&e in Mre?Mre[e]:e}const Fnt=["h1","h2","h3","h4","h5","h6"];function Hnt(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&Fnt.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Fe(e):e}function qnt(e){return e}const Unt=["h1","h2","h3","h4","h5","h6"];function Vnt(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Unt.includes(e)?`var(--mantine-${e}-line-height)`:e}function Ynt(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Fe(e):e}function Wnt(e){return typeof e=="number"?Fe(e):e}function Gnt(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 UR={color:qR,textColor:znt,fontSize:Hnt,spacing:Gnt,radius:Ynt,identity:qnt,size:Wnt,lineHeight:Vnt,fontFamily:jnt,border:Bnt};function Ore(e){return e.replace("(min-width: ","").replace("em)","")}function Xnt({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(Ore(o))-Number(Ore(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function Knt(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function Znt(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Qnt(e){return typeof e=="object"&&e!==null?$o(e).filter(r=>r!=="base"):[]}function Jnt(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function Ire({styleProps:e,data:r,theme:n}){return Xnt($o(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=Znt(e[a]);if(!Knt(e[a]))return l.forEach(u=>{o.inlineStyles[u]=UR[i.type](s,n)}),o;o.hasResponsiveStyles=!0;const c=Qnt(e[a]);return l.forEach(u=>{s!=null&&(o.styles[u]=UR[i.type](s,n)),c.forEach(d=>{const p=`(min-width: ${n.breakpoints[d]})`;o.media[p]={...o.media[p],[u]:UR[i.type](Jnt(e[a],d),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function Vy(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function VR(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...VR(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Lre(e){return e.startsWith("data-")?e:`data-${e}`}function eot(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[Lre(n)]=e[n]),r},{})}function zre(e){return e?typeof e=="string"?{[Lre(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...zre(n)}),{}):eot(e):null}function YR(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...YR(o,r)}),{}):typeof e=="function"?e(r):e??{}}function tot({theme:e,style:r,vars:n,styleProps:o}){const a=YR(r,e),i=YR(n,e);return{...a,...i,...o}}const Bre=E.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=yo(),w=e||"div",{styleProps:k,rest:C}=HR(g),_=snt()?.()?.(k.sx),T=Vy(),R=Ire({styleProps:k,theme:x,data:Lnt}),A={ref:b,style:tot({theme:x,style:r,vars:n,styleProps:R.inlineStyles}),className:eo(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":bre(l)?void 0:l||void 0,size:f,...zre(i),...C};return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(Mm,{selector:`.${T}`,styles:R.styles,media:R.media}),typeof p=="function"?p(A):y.jsx(w,{...A})]})});Bre.displayName="@mantine/core/Box";const Me=Bre;function jre(e){return e}function Ze(e){const r=E.forwardRef(e);return r.extend=jre,r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function zn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=jre,r}const rot=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function cc(){return E.useContext(rot)}function not(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function WR(e){return e?.current?e.current.scrollHeight:"auto"}const A4=typeof window<"u"&&window.requestAnimationFrame,Fre=0,oot=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function aot({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),l=oot(a),[s,c]=E.useState(o?{}:l),u=b=>{Bi.flushSync(()=>c(b))},d=b=>{u(x=>({...x,...b}))};function p(b){const x=e||not(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}kp(()=>{typeof A4=="function"&&A4(o?()=>{d({willChange:"height",display:"block",overflow:"hidden"}),A4(()=>{const b=WR(i);d({...p(b),height:b})})}:()=>{const b=WR(i);d({...p(b),willChange:"height",height:b}),A4(()=>d({height:Fre,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=WR(i);x===s.height?u({}):d({height:x}),n()}else s.height===Fre&&(u(l),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:Sre(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...s}};return Xr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const iot={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Hre=Ze((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:l,onTransitionEnd:s,animateOpacity:c,keepMounted:u,...d}=De("Collapse",iot,e),p=yo(),f=IR(),g=p.respectReducedMotion&&f?0:a,b=aot({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:s,keepMounted:u});return g===0?o?y.jsx(Me,{...d,children:n}):null:y.jsx(Me,{...b({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...VR(l,p)},ref:r,...d}),children:n})});Hre.displayName="@mantine/core/Collapse";function N4(){return typeof window<"u"}function Om(e){return qre(e)?(e.nodeName||"").toLowerCase():"#document"}function la(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function cs(e){var r;return(r=(qre(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function qre(e){return N4()?e instanceof Node||e instanceof la(e).Node:!1}function Mr(e){return N4()?e instanceof Element||e instanceof la(e).Element:!1}function Ma(e){return N4()?e instanceof HTMLElement||e instanceof la(e).HTMLElement:!1}function GR(e){return!N4()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof la(e).ShadowRoot}const lot=new Set(["inline","contents"]);function Yy(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=vi(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!lot.has(a)}const sot=new Set(["table","td","th"]);function cot(e){return sot.has(Om(e))}const uot=[":popover-open",":modal"];function D4(e){return uot.some(r=>{try{return e.matches(r)}catch{return!1}})}const dot=["transform","translate","scale","rotate","perspective"],pot=["transform","translate","scale","rotate","perspective","filter"],hot=["paint","layout","strict","content"];function XR(e){const r=P4(),n=Mr(e)?vi(e):e;return dot.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)||pot.some(o=>(n.willChange||"").includes(o))||hot.some(o=>(n.contain||"").includes(o))}function fot(e){let r=dc(e);for(;Ma(r)&&!uc(r);){if(XR(r))return r;if(D4(r))return null;r=dc(r)}return null}function P4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const mot=new Set(["html","body","#document"]);function uc(e){return mot.has(Om(e))}function vi(e){return la(e).getComputedStyle(e)}function $4(e){return Mr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dc(e){if(Om(e)==="html")return e;const r=e.assignedSlot||e.parentNode||GR(e)&&e.host||cs(e);return GR(r)?r.host:r}function Ure(e){const r=dc(e);return uc(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ma(r)&&Yy(r)?r:Ure(r)}function pc(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=Ure(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),l=la(a);if(i){const s=KR(l);return r.concat(l,l.visualViewport||[],Yy(a)?a:[],s&&n?pc(s):[])}return r.concat(a,pc(a,[],n))}function KR(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const got=["top","right","bottom","left"],El=Math.min,Oo=Math.max,M4=Math.round,O4=Math.floor,us=e=>({x:e,y:e}),yot={left:"right",right:"left",bottom:"top",top:"bottom"},bot={start:"end",end:"start"};function ZR(e,r,n){return Oo(e,El(r,n))}function ds(e,r){return typeof e=="function"?e(r):e}function Sl(e){return e.split("-")[0]}function Im(e){return e.split("-")[1]}function QR(e){return e==="x"?"y":"x"}function JR(e){return e==="y"?"height":"width"}const vot=new Set(["top","bottom"]);function Cl(e){return vot.has(Sl(e))?"y":"x"}function eA(e){return QR(Cl(e))}function xot(e,r,n){n===void 0&&(n=!1);const o=Im(e),a=eA(e),i=JR(a);let l=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=I4(l)),[l,I4(l)]}function wot(e){const r=I4(e);return[tA(e),r,tA(r)]}function tA(e){return e.replace(/start|end/g,r=>bot[r])}const Vre=["left","right"],Yre=["right","left"],kot=["top","bottom"],_ot=["bottom","top"];function Eot(e,r,n){switch(e){case"top":case"bottom":return n?r?Yre:Vre:r?Vre:Yre;case"left":case"right":return r?kot:_ot;default:return[]}}function Sot(e,r,n,o){const a=Im(e);let i=Eot(Sl(e),n==="start",o);return a&&(i=i.map(l=>l+"-"+a),r&&(i=i.concat(i.map(tA)))),i}function I4(e){return e.replace(/left|right|bottom|top/g,r=>yot[r])}function Cot(e){return{top:0,right:0,bottom:0,left:0,...e}}function rA(e){return typeof e!="number"?Cot(e):{top:e,right:e,bottom:e,left:e}}function Lm(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 Tot(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function Rot(){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 Aot(){return/apple/i.test(navigator.vendor)}function Not(){return Tot().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Dot(){return Rot().includes("jsdom/")}const Wre="data-floating-ui-focusable",Pot="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Gre(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 Wy(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&GR(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function zm(e){return"composedPath"in e?e.composedPath()[0]:e.target}function nA(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 $ot(e){return e.matches("html,body")}function Sp(e){return e?.ownerDocument||document}function Mot(e){return Ma(e)&&e.matches(Pot)}function Oot(e){if(!e||Dot())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Iot(e){return e?e.hasAttribute(Wre)?e:e.querySelector("["+Wre+"]")||e:null}function L4(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,...L4(e,o.id,n)])}function Lot(e){return"nativeEvent"in e}function oA(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var zot=typeof document<"u",Bot=function(){},ps=zot?E.useLayoutEffect:Bot;const jot={...Uv};function z4(e){const r=E.useRef(e);return ps(()=>{r.current=e}),r}const Fot=jot.useInsertionEffect,Hot=Fot||(e=>e());function hs(e){const r=E.useRef(()=>{});return Hot(()=>{r.current=e}),E.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 Xre(e,r,n){let{reference:o,floating:a}=e;const i=Cl(r),l=eA(r),s=JR(l),c=Sl(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(Im(r)){case"start":g[l]-=f*(n&&u?-1:1);break;case"end":g[l]+=f*(n&&u?-1:1);break}return g}const qot=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}=Xre(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}=Xre(u,f,c)),x=-1)}return{x:d,y:p,placement:f,strategy:a,middlewareData:g}};async function Gy(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}=ds(r,e),b=rA(g),x=s[f?p==="floating"?"reference":"floating":p],w=Lm(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=Lm(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 Uot=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}=ds(e,r)||{};if(u==null)return{};const p=rA(d),f={x:n,y:o},g=eA(a),b=JR(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,M=El(p[k],$),j=El(p[C],$),L=M,Y=D-x[b]-j,O=D/2-x[b]/2+N,U=ZR(L,O,Y),I=!c.arrow&&Im(a)!=null&&O!==U&&i.reference[b]/2-(O<L?M:j)-x[b]/2<0,q=I?O<L?O-L:O-Y:0;return{[g]:f[g]+q,data:{[g]:U,centerOffset:O-U-q,...I&&{alignmentOffset:q}},reset:I}}}),Vot=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}=ds(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Sl(a),C=Cl(s),_=Sl(s)===s,T=await(c.isRTL==null?void 0:c.isRTL(u.floating)),R=f||(_||!x?[I4(s)]:wot(s)),A=b!=="none";!f&&A&&R.push(...Sot(s,x,b,T));const D=[s,...R],N=await Gy(r,w),$=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(d&&$.push(N[k]),p){const O=xot(a,l,T);$.push(N[O[0]],N[O[1]])}if(M=[...M,{placement:a,overflows:$}],!$.every(O=>O<=0)){var j,L;const O=(((j=i.flip)==null?void 0:j.index)||0)+1,U=D[O];if(U&&(!(p==="alignment"&&C!==Cl(U))||M.every(q=>Cl(q.placement)===C?q.overflows[0]>0:!0)))return{data:{index:O,overflows:M},reset:{placement:U}};let I=(L=M.filter(q=>q.overflows[0]<=0).sort((q,V)=>q.overflows[1]-V.overflows[1])[0])==null?void 0:L.placement;if(!I)switch(g){case"bestFit":{var Y;const q=(Y=M.filter(V=>{if(A){const G=Cl(V.placement);return G===C||G==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(G=>G>0).reduce((G,F)=>G+F,0)]).sort((V,G)=>V[1]-G[1])[0])==null?void 0:Y[0];q&&(I=q);break}case"initialPlacement":I=s;break}if(a!==I)return{reset:{placement:I}}}return{}}}};function Kre(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Zre(e){return got.some(r=>e[r]>=0)}const Yot=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=ds(e,r);switch(o){case"referenceHidden":{const i=await Gy(r,{...a,elementContext:"reference"}),l=Kre(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Zre(l)}}}case"escaped":{const i=await Gy(r,{...a,altBoundary:!0}),l=Kre(i,n.floating);return{data:{escapedOffsets:l,escaped:Zre(l)}}}default:return{}}}}};function Qre(e){const r=El(...e.map(i=>i.left)),n=El(...e.map(i=>i.top)),o=Oo(...e.map(i=>i.right)),a=Oo(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function Wot(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=>Lm(Qre(a)))}const Got=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}=ds(e,r),d=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),p=Wot(d),f=Lm(Qre(d)),g=rA(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(Cl(n)==="y"){const M=p[0],j=p[p.length-1],L=Sl(n)==="top",Y=M.top,O=j.bottom,U=L?M.left:j.left,I=L?M.right:j.right,q=I-U,V=O-Y;return{top:Y,bottom:O,left:U,right:I,width:q,height:V,x:U,y:Y}}const w=Sl(n)==="left",k=Oo(...p.map(M=>M.right)),C=El(...p.map(M=>M.left)),_=p.filter(M=>w?M.left===C:M.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}}:{}}}},Jre=new Set(["left","top"]);async function Xot(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),l=Sl(n),s=Im(n),c=Cl(n)==="y",u=Jre.has(l)?-1:1,d=i&&c?-1:1,p=ds(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 Kot=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 Xot(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}}}}},Zot=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}=ds(e,r),u={x:n,y:o},d=await Gy(r,c),p=Cl(Sl(a)),f=QR(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=ZR(C,g,_)}if(l){const w=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=b+d[w],_=b-d[k];b=ZR(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}}}}}},Qot=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}=ds(e,r),d={x:n,y:o},p=Cl(a),f=QR(p);let g=d[f],b=d[p];const x=ds(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=Jre.has(Sl(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}}}},Jot=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}=ds(e,r),d=await Gy(r,u),p=Sl(a),f=Im(a),g=Cl(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=El(x-d[w],C),R=El(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 M=Oo(d.left,0),j=Oo(d.right,0),L=Oo(d.top,0),Y=Oo(d.bottom,0);g?N=b-2*(M!==0||j!==0?M+j:Oo(d.left,d.right)):D=x-2*(L!==0||Y!==0?L+Y:Oo(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 ene(e){const r=vi(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Ma(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=M4(n)!==i||M4(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function aA(e){return Mr(e)?e:e.contextElement}function Bm(e){const r=aA(e);if(!Ma(r))return us(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=ene(r);let l=(i?M4(n.width):n.width)/o,s=(i?M4(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const eat=us(0);function tne(e){const r=la(e);return!P4()||!r.visualViewport?eat:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tat(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==la(e)?!1:r}function Cp(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=aA(e);let l=us(1);r&&(o?Mr(o)&&(l=Bm(o)):l=Bm(e));const s=tat(i,n,o)?tne(i):us(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&&Mr(o)?la(o):o;let b=f,x=KR(b);for(;x&&o&&g!==b;){const w=Bm(x),k=x.getBoundingClientRect(),C=vi(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=KR(b)}}return Lm({width:d,height:p,x:c,y:u})}function B4(e,r){const n=$4(e).scrollLeft;return r?r.left+n:Cp(cs(e)).left+n}function rne(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-B4(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function rat(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",l=cs(o),s=r?D4(r.floating):!1;if(o===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},u=us(1);const d=us(0),p=Ma(o);if((p||!p&&!i)&&((Om(o)!=="body"||Yy(l))&&(c=$4(o)),Ma(o))){const g=Cp(o);u=Bm(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const f=l&&!p&&!i?rne(l,c):us(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 nat(e){return Array.from(e.getClientRects())}function oat(e){const r=cs(e),n=$4(e),o=e.ownerDocument.body,a=Oo(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Oo(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+B4(e);const s=-n.scrollTop;return vi(o).direction==="rtl"&&(l+=Oo(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:l,y:s}}const nne=25;function aat(e,r){const n=la(e),o=cs(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=P4();(!d||d&&r==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=B4(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<=nne&&(i-=b)}else u<=nne&&(i+=u);return{width:i,height:l,x:s,y:c}}const iat=new Set(["absolute","fixed"]);function lat(e,r){const n=Cp(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Ma(e)?Bm(e):us(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 one(e,r,n){let o;if(r==="viewport")o=aat(e,n);else if(r==="document")o=oat(cs(e));else if(Mr(r))o=lat(r,n);else{const a=tne(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Lm(o)}function ane(e,r){const n=dc(e);return n===r||!Mr(n)||uc(n)?!1:vi(n).position==="fixed"||ane(n,r)}function sat(e,r){const n=r.get(e);if(n)return n;let o=pc(e,[],!1).filter(s=>Mr(s)&&Om(s)!=="body"),a=null;const i=vi(e).position==="fixed";let l=i?dc(e):e;for(;Mr(l)&&!uc(l);){const s=vi(l),c=XR(l);!c&&s.position==="fixed"&&(a=null),(i?!c&&!a:!c&&s.position==="static"&&a&&iat.has(a.position)||Yy(l)&&!c&&ane(e,l))?o=o.filter(u=>u!==l):a=s,l=dc(l)}return r.set(e,o),o}function cat(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?D4(r)?[]:sat(r,this._c):[].concat(n),o],l=i[0],s=i.reduce((c,u)=>{const d=one(r,u,a);return c.top=Oo(d.top,c.top),c.right=El(d.right,c.right),c.bottom=El(d.bottom,c.bottom),c.left=Oo(d.left,c.left),c},one(r,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function uat(e){const{width:r,height:n}=ene(e);return{width:r,height:n}}function dat(e,r,n){const o=Ma(r),a=cs(r),i=n==="fixed",l=Cp(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=us(0);function u(){c.x=B4(a)}if(o||!o&&!i)if((Om(r)!=="body"||Yy(a))&&(s=$4(r)),o){const g=Cp(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?rne(a,s):us(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 iA(e){return vi(e).position==="static"}function ine(e,r){if(!Ma(e)||vi(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return cs(e)===n&&(n=n.ownerDocument.body),n}function lne(e,r){const n=la(e);if(D4(e))return n;if(!Ma(e)){let a=dc(e);for(;a&&!uc(a);){if(Mr(a)&&!iA(a))return a;a=dc(a)}return n}let o=ine(e,r);for(;o&&cot(o)&&iA(o);)o=ine(o,r);return o&&uc(o)&&iA(o)&&!XR(o)?n:o||fot(e)||n}const pat=async function(e){const r=this.getOffsetParent||lne,n=this.getDimensions,o=await n(e.floating);return{reference:dat(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function hat(e){return vi(e).direction==="rtl"}const fat={convertOffsetParentRelativeRectToViewportRelativeRect:rat,getDocumentElement:cs,getClippingRect:cat,getOffsetParent:lne,getElementRects:pat,getClientRects:nat,getDimensions:uat,getScale:Bm,isElement:Mr,isRTL:hat};function sne(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function mat(e,r){let n=null,o;const a=cs(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=O4(p),x=O4(a.clientWidth-(d+f)),w=O4(a.clientHeight-(p+g)),k=O4(d),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:Oo(0,El(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&&!sne(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 lA(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=aA(e),d=a||i?[...u?pc(u):[],...pc(r)]:[];d.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=u&&s?mat(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?Cp(e):null;c&&w();function w(){const k=Cp(e);x&&!sne(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 gat=Kot,yat=Zot,bat=Vot,vat=Jot,xat=Yot,cne=Uot,wat=Got,kat=Qot,_at=(e,r,n)=>{const o=new Map,a={platform:fat,...n},i={...a.platform,_c:o};return qot(e,r,{...a,platform:i})};var Eat=typeof document<"u",Sat=function(){},j4=Eat?E.useLayoutEffect:Sat;function F4(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(!F4(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)&&!F4(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function une(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function dne(e,r){const n=une(e);return Math.round(r*n)/n}function sA(e){const r=E.useRef(e);return j4(()=>{r.current=e}),r}function Cat(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]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=E.useState(o);F4(f,o)||g(o);const[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(V=>{V!==A.current&&(A.current=V,x(V))},[]),_=E.useCallback(V=>{V!==D.current&&(D.current=V,k(V))},[]),T=i||b,R=l||w,A=E.useRef(null),D=E.useRef(null),N=E.useRef(d),$=c!=null,M=sA(c),j=sA(a),L=sA(u),Y=E.useCallback(()=>{if(!A.current||!D.current)return;const V={placement:r,strategy:n,middleware:f};j.current&&(V.platform=j.current),_at(A.current,D.current,V).then(G=>{const F={...G,isPositioned:L.current!==!1};O.current&&!F4(N.current,F)&&(N.current=F,Bi.flushSync(()=>{p(F)}))})},[f,r,n,j,L]);j4(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(V=>({...V,isPositioned:!1})))},[u]);const O=E.useRef(!1);j4(()=>(O.current=!0,()=>{O.current=!1}),[]),j4(()=>{if(T&&(A.current=T),R&&(D.current=R),T&&R){if(M.current)return M.current(T,R,Y);Y()}},[T,R,Y,M,$]);const U=E.useMemo(()=>({reference:A,floating:D,setReference:C,setFloating:_}),[C,_]),I=E.useMemo(()=>({reference:T,floating:R}),[T,R]),q=E.useMemo(()=>{const V={position:n,left:0,top:0};if(!I.floating)return V;const G=dne(I.floating,d.x),F=dne(I.floating,d.y);return s?{...V,transform:"translate("+G+"px, "+F+"px)",...une(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:F}},[n,s,I.floating,d.x,d.y]);return E.useMemo(()=>({...d,update:Y,refs:U,elements:I,floatingStyles:q}),[d,Y,U,I,q])}const Tat=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?cne({element:o.current,padding:a}).fn(n):{}:o?cne({element:o,padding:a}).fn(n):{}}}},pne=(e,r)=>({...gat(e),options:[e,r]}),cA=(e,r)=>({...yat(e),options:[e,r]}),hne=(e,r)=>({...kat(e),options:[e,r]}),H4=(e,r)=>({...bat(e),options:[e,r]}),Rat=(e,r)=>({...vat(e),options:[e,r]}),Aat=(e,r)=>({...xat(e),options:[e,r]}),Xy=(e,r)=>({...wat(e),options:[e,r]}),fne=(e,r)=>({...Tat(e),options:[e,r]});function mne(e){const r=E.useRef(void 0),n=E.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 E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const Nat="data-floating-ui-focusable",gne="active",yne="selected",Dat={...Uv};let bne=!1,Pat=0;const vne=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Pat++;function $at(){const[e,r]=E.useState(()=>bne?vne():void 0);return ps(()=>{e==null&&r(vne())},[]),E.useEffect(()=>{bne=!0},[]),e}const Mat=Dat.useId,xne=Mat||$at;function Oat(){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 Iat=E.createContext(null),Lat=E.createContext(null),uA=()=>{var e;return((e=E.useContext(Iat))==null?void 0:e.id)||null},dA=()=>E.useContext(Lat);function pA(e){return"data-floating-ui-"+e}function xi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const wne=pA("safe-polygon");function q4(e,r,n){if(n&&!oA(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 hA(e){return typeof e=="function"?e():e}function zat(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=dA(),b=uA(),x=z4(u),w=z4(c),k=z4(n),C=z4(p),_=E.useRef(),T=E.useRef(-1),R=E.useRef(),A=E.useRef(-1),D=E.useRef(!0),N=E.useRef(!1),$=E.useRef(()=>{}),M=E.useRef(!1),j=hs(()=>{var q;const V=(q=a.current.openEvent)==null?void 0:q.type;return V?.includes("mouse")&&V!=="mousedown"});E.useEffect(()=>{if(!s)return;function q(V){let{open:G}=V;G||(xi(T),xi(A),D.current=!0,M.current=!1)}return i.on("openchange",q),()=>{i.off("openchange",q)}},[s,i]),E.useEffect(()=>{if(!s||!x.current||!n)return;function q(G){j()&&o(!1,G,"hover")}const V=Sp(l.floating).documentElement;return V.addEventListener("mouseleave",q),()=>{V.removeEventListener("mouseleave",q)}},[l.floating,n,o,s,x,j]);const L=E.useCallback(function(q,V,G){V===void 0&&(V=!0),G===void 0&&(G="hover");const F=q4(w.current,"close",_.current);F&&!R.current?(xi(T),T.current=window.setTimeout(()=>o(!1,q,G),F)):V&&(xi(T),o(!1,q,G))},[w,o]),Y=hs(()=>{$.current(),R.current=void 0}),O=hs(()=>{if(N.current){const q=Sp(l.floating).body;q.style.pointerEvents="",q.removeAttribute(wne),N.current=!1}}),U=hs(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!s)return;function q(Q){if(xi(T),D.current=!1,d&&!oA(_.current)||hA(C.current)>0&&!q4(w.current,"open"))return;const z=q4(w.current,"open",_.current);z?T.current=window.setTimeout(()=>{k.current||o(!0,Q,"hover")},z):n||o(!0,Q,"hover")}function V(Q){if(U()){O();return}$.current();const z=Sp(l.floating);if(xi(A),M.current=!1,x.current&&a.current.floatingContext){n||xi(T),R.current=x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){O(),Y(),U()||L(Q,!0,"safe-polygon")}});const W=R.current;z.addEventListener("mousemove",W),$.current=()=>{z.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!Wy(l.floating,Q.relatedTarget))&&L(Q)}function G(Q){U()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:Q.clientX,y:Q.clientY,onClose(){O(),Y(),U()||L(Q)}})(Q))}function F(){xi(T)}function J(Q){U()||L(Q,!1)}if(Mr(l.domReference)){const Q=l.domReference,z=l.floating;return n&&Q.addEventListener("mouseleave",G),f&&Q.addEventListener("mousemove",q,{once:!0}),Q.addEventListener("mouseenter",q),Q.addEventListener("mouseleave",V),z&&(z.addEventListener("mouseleave",G),z.addEventListener("mouseenter",F),z.addEventListener("mouseleave",J)),()=>{n&&Q.removeEventListener("mouseleave",G),f&&Q.removeEventListener("mousemove",q),Q.removeEventListener("mouseenter",q),Q.removeEventListener("mouseleave",V),z&&(z.removeEventListener("mouseleave",G),z.removeEventListener("mouseenter",F),z.removeEventListener("mouseleave",J))}}},[l,s,e,d,f,L,Y,O,o,n,k,g,w,x,a,U,C]),ps(()=>{var q;if(s&&n&&(q=x.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&j()){N.current=!0;const G=l.floating;if(Mr(l.domReference)&&G){var V;const F=Sp(l.floating).body;F.setAttribute(wne,"");const J=l.domReference,Q=g==null||(V=g.nodesRef.current.find(z=>z.id===b))==null||(V=V.context)==null?void 0:V.elements.floating;return Q&&(Q.style.pointerEvents=""),F.style.pointerEvents="none",J.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{F.style.pointerEvents="",J.style.pointerEvents="",G.style.pointerEvents=""}}}},[s,n,b,l,g,x,j]),ps(()=>{n||(_.current=void 0,M.current=!1,Y(),O())},[n,Y,O]),E.useEffect(()=>()=>{Y(),xi(T),xi(A),O()},[s,l.domReference,Y,O]);const I=E.useMemo(()=>{function q(V){_.current=V.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(V){const{nativeEvent:G}=V;function F(){!D.current&&!k.current&&o(!0,G,"hover")}d&&!oA(_.current)||n||hA(C.current)===0||M.current&&V.movementX**2+V.movementY**2<2||(xi(A),_.current==="touch"?F():(M.current=!0,A.current=window.setTimeout(F,hA(C.current))))}}},[d,o,n,k,C]);return E.useMemo(()=>s?{reference:I}:{},[s,I])}const fA=()=>{},kne=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:fA,setState:fA,isInstantPhase:!1}),Bat=()=>E.useContext(kne);function _ne(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,u)=>({...c,...u}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=E.useRef(null),s=E.useCallback(c=>{i({currentId:c})},[]);return ps(()=>{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(kne.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:s}),[a,s]),children:r})}function jat(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:l=!0}=r,s=i??a,c=Bat(),{currentId:u,setCurrentId:d,initialDelay:p,setState:f,timeoutMs:g}=c;return ps(()=>{l&&u&&(f({delay:{open:1,close:q4(p,"close")}}),u!==s&&o(!1))},[l,s,o,f,u,p]),ps(()=>{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]),ps(()=>{l&&(d===fA||!n||d(s))},[l,n,d,s]),c}const Fat={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},Hat={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},Ene=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 qat(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=dA(),w=hs(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=Ene(g),{escapeKey:R,outsidePress:A}=Ene(b),D=E.useRef(!1),N=hs(O=>{var U;if(!n||!l||!s||O.key!=="Escape"||D.current)return;const I=(U=i.current.floatingContext)==null?void 0:U.nodeId,q=x?L4(x.nodesRef.current,I):[];if(!_&&(O.stopPropagation(),q.length>0)){let V=!0;if(q.forEach(G=>{var F;if((F=G.context)!=null&&F.open&&!G.context.dataRef.current.__escapeKeyBubbles){V=!1;return}}),!V)return}o(!1,Lot(O)?O.nativeEvent:O,"escape-key")}),$=hs(O=>{var U;const I=()=>{var q;N(O),(q=zm(O))==null||q.removeEventListener("keydown",I)};(U=zm(O))==null||U.addEventListener("keydown",I)}),M=hs(O=>{var U;const I=i.current.insideReactTree;i.current.insideReactTree=!1;const q=C.current;if(C.current=!1,u==="click"&&q||I||typeof k=="function"&&!k(O))return;const V=zm(O),G="["+pA("inert")+"]",F=Sp(a.floating).querySelectorAll(G);let J=Mr(V)?V:null;for(;J&&!uc(J);){const X=dc(J);if(uc(X)||!Mr(X))break;J=X}if(F.length&&Mr(V)&&!$ot(V)&&!Wy(V,a.floating)&&Array.from(F).every(X=>!Wy(J,X)))return;if(Ma(V)&&Y){const X=uc(V),Z=vi(V),oe=/auto|scroll/,ee=X||oe.test(Z.overflowX),re=X||oe.test(Z.overflowY),pe=ee&&V.clientWidth>0&&V.scrollWidth>V.clientWidth,Ce=re&&V.clientHeight>0&&V.scrollHeight>V.clientHeight,ce=Z.direction==="rtl",de=Ce&&(ce?O.offsetX<=V.offsetWidth-V.clientWidth:O.offsetX>V.clientWidth),be=pe&&O.offsetY>V.clientHeight;if(de||be)return}const Q=(U=i.current.floatingContext)==null?void 0:U.nodeId,z=x&&L4(x.nodesRef.current,Q).some(X=>{var Z;return nA(O,(Z=X.context)==null?void 0:Z.elements.floating)});if(nA(O,a.floating)||nA(O,a.domReference)||z)return;const W=x?L4(x.nodesRef.current,Q):[];if(W.length>0){let X=!0;if(W.forEach(Z=>{var oe;if((oe=Z.context)!=null&&oe.open&&!Z.context.dataRef.current.__outsidePressBubbles){X=!1;return}}),!X)return}o(!1,O,"outside-press")}),j=hs(O=>{var U;const I=()=>{var q;M(O),(q=zm(O))==null||q.removeEventListener(u,I)};(U=zm(O))==null||U.addEventListener(u,I)});E.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let O=-1;function U(F){o(!1,F,"ancestor-scroll")}function I(){window.clearTimeout(O),D.current=!0}function q(){O=window.setTimeout(()=>{D.current=!1},P4()?5:0)}const V=Sp(a.floating);s&&(V.addEventListener("keydown",R?$:N,R),V.addEventListener("compositionstart",I),V.addEventListener("compositionend",q)),k&&V.addEventListener(u,A?j:M,A);let G=[];return f&&(Mr(a.domReference)&&(G=pc(a.domReference)),Mr(a.floating)&&(G=G.concat(pc(a.floating))),!Mr(a.reference)&&a.reference&&a.reference.contextElement&&(G=G.concat(pc(a.reference.contextElement)))),G=G.filter(F=>{var J;return F!==((J=V.defaultView)==null?void 0:J.visualViewport)}),G.forEach(F=>{F.addEventListener("scroll",U,{passive:!0})}),()=>{s&&(V.removeEventListener("keydown",R?$:N,R),V.removeEventListener("compositionstart",I),V.removeEventListener("compositionend",q)),k&&V.removeEventListener(u,A?j:M,A),G.forEach(F=>{F.removeEventListener("scroll",U)}),window.clearTimeout(O)}},[i,a,s,k,u,n,o,f,l,_,T,N,R,$,M,A,j]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,u]);const L=E.useMemo(()=>({onKeyDown:N,...d&&{[Fat[p]]:O=>{o(!1,O.nativeEvent,"reference-press")},...p!=="click"&&{onClick(O){o(!1,O.nativeEvent,"reference-press")}}}}),[N,o,d,p]),Y=E.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[Hat[u]]:()=>{i.current.insideReactTree=!0}}),[N,u,i]);return E.useMemo(()=>l?{reference:L,floating:Y}:{},[l,L,Y])}function Uat(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=xne(),i=E.useRef({}),[l]=E.useState(()=>Oat()),s=uA()!=null,[c,u]=E.useState(o.reference),d=hs((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=E.useMemo(()=>({setPositionReference:u}),[]),f=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:d,elements:f,events:l,floatingId:a,refs:p}),[r,d,f,l,a,p])}function mA(e){e===void 0&&(e={});const{nodeId:r}=e,n=Uat({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,l]=E.useState(null),[s,c]=E.useState(null),u=a?.domReference||i,d=E.useRef(null),p=dA();ps(()=>{u&&(d.current=u)},[u]);const f=Cat({...e,elements:{...a,...s&&{reference:s}}}),g=E.useCallback(C=>{const _=Mr(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=E.useCallback(C=>{(Mr(C)||C===null)&&(d.current=C,l(C)),(Mr(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Mr(C))&&f.refs.setReference(C)},[f.refs]),x=E.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:d}),[f.refs,b,g]),w=E.useMemo(()=>({...f.elements,domReference:u}),[f.elements,u]),k=E.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return ps(()=>{o.dataRef.current.floatingContext=k;const C=p?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function gA(){return Not()&&Aot()}function Vat(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=E.useRef(!1),d=E.useRef(-1),p=E.useRef(!0);E.useEffect(()=>{if(!s)return;const g=la(l.domReference);function b(){!n&&Ma(l.domReference)&&l.domReference===Gre(Sp(l.domReference))&&(u.current=!0)}function x(){p.current=!0}function w(){p.current=!1}return g.addEventListener("blur",b),gA()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),gA()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[l.domReference,n,s]),E.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]),E.useEffect(()=>()=>{xi(d)},[]);const f=E.useMemo(()=>({onMouseLeave(){u.current=!1},onFocus(g){if(u.current)return;const b=zm(g.nativeEvent);if(c&&Mr(b)){if(gA()&&!g.relatedTarget){if(!p.current&&!Mot(b))return}else if(!Oot(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){u.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=Mr(b)&&b.hasAttribute(pA("focus-guard"))&&b.getAttribute("data-type")==="outside";d.current=window.setTimeout(()=>{var k;const C=Gre(l.domReference?l.domReference.ownerDocument:document);!b&&C===l.domReference||Wy((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||Wy(l.domReference,C)||w||o(!1,x,"focus")})}}),[i,l.domReference,o,c]);return E.useMemo(()=>s?{reference:f}:{},[s,f])}function yA(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[gne]:l,[yne]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[Nat]:""},...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&&[gne,yne].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 Yat(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=E.useCallback(s=>yA(s,e,"reference"),r),i=E.useCallback(s=>yA(s,e,"floating"),n),l=E.useCallback(s=>yA(s,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:l}),[a,i,l])}const Wat=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Gat(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=xne(),d=((n=i.domReference)==null?void 0:n.id)||u,p=E.useMemo(()=>{var k;return((k=Iot(i.floating))==null?void 0:k.id)||l},[i.floating,l]),f=(o=Wat.get(c))!=null?o:c,g=uA()!=null,b=E.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=E.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=E.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 E.useMemo(()=>s?{reference:b,floating:x,item:w}:{},[s,b,x,w])}const[Xat,wi]=$a("ScrollArea.Root component was not found in tree");function jm(e,r){const n=wp(r);$R(()=>{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 Kat=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=wi(),[i,l]=E.useState(0),[s,c]=E.useState(0),u=!!(i&&s);return jm(a.scrollbarX,()=>{const d=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(d),c(d)}),jm(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}),Zat=E.forwardRef((e,r)=>{const n=wi(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(Kat,{...e,ref:r}):null}),Qat={scrollHideDelay:1e3,type:"hover"},Sne=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...l}=De("ScrollAreaRoot",Qat,e),[s,c]=E.useState(null),[u,d]=E.useState(null),[p,f]=E.useState(null),[g,b]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[R,A]=E.useState(!1),[D,N]=E.useState(!1),$=Jr(r,M=>c(M));return y.jsx(Xat,{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(Me,{...l,ref:$,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});Sne.displayName="@mantine/core/ScrollAreaRoot";function Cne(e,r){const n=e/r;return Number.isNaN(n)?0:n}function U4(e){const r=Cne(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function Tne(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 Jat(e,[r,n]){return Math.min(n,Math.max(r,e))}function Rne(e,r,n="ltr"){const o=U4(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=Jat(e,c);return Tne([0,l],[0,s])(u)}function eit(e,r,n,o="ltr"){const a=U4(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 Tne([c,u],p)(e)}function Ane(e,r){return e>0&&e<r}function Du(e){return e?parseInt(e,10):0}function Tp(e,r,{checkForDefaultPrevented:n=!0}={}){return o=>{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[tit,Nne]=$a("ScrollAreaScrollbar was not found in tree"),Dne=E.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=wi(),[g,b]=E.useState(null),x=Jr(r,N=>b(N)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=wp(u),R=wp(s),A=_4(d,10),D=N=>{if(w.current){const $=N.clientX-w.current.left,M=N.clientY-w.current.top;c({x:$,y:M})}};return E.useEffect(()=>{const N=$=>{const M=$.target;g?.contains(M)&&T($,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),E.useEffect(R,[n,R]),jm(g,A),jm(f.content,A),y.jsx(tit,{value:{scrollbar:g,hasThumb:o,onThumbChange:wp(a),onThumbPointerUp:wp(i),onThumbPositionChange:R,onThumbPointerDown:wp(l)},children:y.jsx("div",{...p,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:Tp(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:Tp(e.onPointerMove,D),onPointerUp:Tp(e.onPointerUp,N=>{const $=N.target;$.hasPointerCapture(N.pointerId)&&(N.preventDefault(),$.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),Pne=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=wi(),[s,c]=E.useState(),u=E.useRef(null),d=Jr(r,u,l.onScrollbarXChange);return E.useEffect(()=>{u.current&&c(getComputedStyle(u.current))},[u]),y.jsx(Dne,{"data-orientation":"horizontal",...i,ref:d,sizes:n,style:{...a,"--sa-thumb-width":`${U4(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),Ane(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:Du(s.paddingLeft),paddingEnd:Du(s.paddingRight)}})}})});Pne.displayName="@mantine/core/ScrollAreaScrollbarX";const $ne=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=wi(),[s,c]=E.useState(),u=E.useRef(null),d=Jr(r,u,l.onScrollbarYChange);return E.useEffect(()=>{u.current&&c(window.getComputedStyle(u.current))},[]),y.jsx(Dne,{...i,"data-orientation":"vertical",ref:d,sizes:n,style:{"--sa-thumb-height":`${U4(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),Ane(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:Du(s.paddingTop),paddingEnd:Du(s.paddingBottom)}})}})});$ne.displayName="@mantine/core/ScrollAreaScrollbarY";const V4=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=cc(),i=wi(),l=E.useRef(null),s=E.useRef(0),[c,u]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),d=Cne(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)=>eit(g,s.current,c,b);return n==="horizontal"?y.jsx(Pne,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollLeft,b=Rne(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($ne,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollTop,b=Rne(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});V4.displayName="@mantine/core/ScrollAreaScrollbarVisible";const bA=E.forwardRef((e,r)=>{const n=wi(),{forceMount:o,...a}=e,[i,l]=E.useState(!1),s=e.orientation==="horizontal",c=_4(()=>{if(n.viewport){const u=n.viewport.offsetWidth<n.viewport.scrollWidth,d=n.viewport.offsetHeight<n.viewport.scrollHeight;l(s?u:d)}},10);return jm(n.viewport,c),jm(n.content,c),o||i?y.jsx(V4,{"data-state":i?"visible":"hidden",...a,ref:r}):null});bA.displayName="@mantine/core/ScrollAreaScrollbarAuto";const Mne=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),[i,l]=E.useState(!1);return E.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(bA,{"data-state":i?"visible":"hidden",...o,ref:r}):null});Mne.displayName="@mantine/core/ScrollAreaScrollbarHover";const rit=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),i=e.orientation==="horizontal",[l,s]=E.useState("hidden"),c=_4(()=>s("idle"),100);return E.useEffect(()=>{if(l==="idle"){const u=window.setTimeout(()=>s("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(u)}},[l,a.scrollHideDelay]),E.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(V4,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Tp(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Tp(e.onPointerLeave,()=>s("idle"))}):null}),vA=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s=e.orientation==="horizontal";return E.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),a.type==="hover"?y.jsx(Mne,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(rit,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(bA,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(V4,{...o,ref:r}):null});vA.displayName="@mantine/core/ScrollAreaScrollbar";function nit(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 One=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=wi(),i=Nne(),{onThumbPositionChange:l}=i,s=Jr(r,d=>i.onThumbChange(d)),c=E.useRef(void 0),u=_4(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:d}=a;if(d){const p=()=>{if(u(),!c.current){const f=nit(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:Tp(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:Tp(e.onPointerUp,i.onThumbPointerUp)})});One.displayName="@mantine/core/ScrollAreaThumb";const xA=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Nne();return n||a.hasThumb?y.jsx(One,{ref:r,...o}):null});xA.displayName="@mantine/core/ScrollAreaThumb";const Ine=E.forwardRef(({children:e,style:r,...n},o)=>{const a=wi(),i=Jr(o,a.onViewportChange);return y.jsx(Me,{...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})})});Ine.displayName="@mantine/core/ScrollAreaViewport";var wA={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Lne={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},oit=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Fe(r),"--scrollarea-over-scroll-behavior":n}}),Rp=Ze((e,r)=>{const n=De("ScrollArea",Lne,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]=E.useState(!1),[$,M]=E.useState(!1),[j,L]=E.useState(!1),Y=dt({name:"ScrollArea",props:n,classes:wA,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:R,vars:u,varsResolver:oit}),O=E.useRef(null),U=mne([g,O]);return E.useEffect(()=>{if(!O.current||w!=="present")return;const I=O.current,q=new ResizeObserver(()=>{const{scrollHeight:V,clientHeight:G,scrollWidth:F,clientWidth:J}=I;M(V>G),L(F>J)});return q.observe(I),()=>q.disconnect()},[O,w]),y.jsxs(Sne,{getStyles:Y,type:d==="never"?"always":d,scrollHideDelay:p,ref:r,scrollbars:k,...Y("root"),...A,children:[y.jsx(Ine,{...f,...Y("viewport",{style:f?.style}),ref:U,"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:I=>{f?.onScroll?.(I),b?.({x:I.currentTarget.scrollLeft,y:I.currentTarget.scrollTop});const{scrollTop:q,scrollHeight:V,clientHeight:G}=I.currentTarget;q-(V-G)>=-.6&&C?.(),q===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(vA,{...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(xA,{...Y("thumb")})}),(k==="xy"||k==="y")&&y.jsx(vA,{...Y("scrollbar"),orientation:"vertical","data-hidden":d==="never"||w==="present"&&!$?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(xA,{...Y("thumb")})}),y.jsx(Zat,{...Y("corner"),"data-hovered":D||void 0,"data-hidden":d==="never"||void 0})]})});Rp.displayName="@mantine/core/ScrollArea";const kA=Ze((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}=De("ScrollAreaAutosize",Lne,e),A=E.useRef(null),D=mne([d,A]),[N,$]=E.useState(!1),M=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const j=A.current;if(!j)return;const L=()=>{const O=j.scrollHeight>j.clientHeight;O!==N&&(M.current?T?.(O):(M.current=!0,O&&T?.(!0)),$(O))};L();const Y=new ResizeObserver(L);return Y.observe(j),()=>Y.disconnect()},[T,N]),y.jsx(Me,{...R,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:y.jsx(Me,{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(Rp,{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})})})});Rp.classes=wA,kA.displayName="@mantine/core/ScrollAreaAutosize",kA.classes=wA,Rp.Autosize=kA;var zne={root:"m_87cf2631"};const ait={__staticSelector:"UnstyledButton"},fs=zn((e,r)=>{const n=De("UnstyledButton",ait,e),{className:o,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:u,attributes:d,...p}=n,f=dt({name:i,props:n,classes:zne,className:o,style:u,classNames:s,styles:c,unstyled:l,attributes:d});return y.jsx(Me,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...p})});fs.classes=zne,fs.displayName="@mantine/core/UnstyledButton";var Bne={root:"m_515a97f8"};const _A=Ze((e,r)=>{const n=De("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,attributes:u,...d}=n,p=dt({name:"VisuallyHidden",classes:Bne,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:u});return y.jsx(Me,{component:"span",ref:r,...p("root"),...d})});_A.classes=Bne,_A.displayName="@mantine/core/VisuallyHidden";var jne={root:"m_1b7284a3"};const iit=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:un(r),"--paper-shadow":NR(n)}}),Y4=zn((e,r)=>{const n=De("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=dt({name:"Paper",props:n,classes:jne,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:u,varsResolver:iit});return y.jsx(Me,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});Y4.classes=jne,Y4.displayName="@mantine/core/Paper";function Fne(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Hne(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 sit({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,...Fne(u,l,n,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...d,...Fne(u,l,n,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...d,...Hne(u,i,n,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...d,...Hne(u,i,n,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const W4=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:l,arrowY:s,style:c,...u},d)=>{const{dir:p}=cc();return i?y.jsx("div",{...u,ref:d,style:{...c,...sit({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:p,arrowX:l,arrowY:s})}}):null});W4.displayName="@mantine/core/FloatingArrow";function qne(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 Une={root:"m_9814e45f"};const cit={zIndex:wl("modal")},uit=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:l})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&Nre(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Fe(a)})`:void 0,"--overlay-radius":i===void 0?void 0:un(i),"--overlay-z-index":l?.toString()}}),Fm=zn((e,r)=>{const n=De("Overlay",cit,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=dt({name:"Overlay",props:n,classes:Une,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:uit});return y.jsx(Me,{ref:r,...R("root"),mod:[{center:d,fixed:u},C],...T,children:p})});Fm.classes=Une,Fm.displayName="@mantine/core/Overlay";function EA(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 dit({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||EA(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=EA(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return EA(n)}const pit={reuseTargetNode:!0},Vne=Ze((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=De("Portal",pit,e),[l,s]=E.useState(!1),c=E.useRef(null);return $R(()=>(s(!0),c.current=dit({target:o,reuseTargetNode:a,...i}),OR(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:Bi.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});Vne.displayName="@mantine/core/Portal";const Ap=Ze(({withinPortal:e=!0,children:r,...n},o)=>T4()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(Vne,{ref:o,...n,children:r}));Ap.displayName="@mantine/core/OptionalPortal";const Ky=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),G4={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:{...Ky("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...Ky("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...Ky("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...Ky("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...Ky("top"),common:{transformOrigin:"top right"}}},Yne={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function hit({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",willChange:"transform, opacity",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in G4?{transitionProperty:G4[e].transitionProperty,...a,...G4[e].common,...G4[e][Yne[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[Yne[r]]}}function fit({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s,enterDelay:c,exitDelay:u}){const d=yo(),p=IR(),f=d.respectReducedMotion?p:!1,[g,b]=E.useState(f?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.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,M=f?0:D?e:r;b(M),M===0?(typeof N=="function"&&N(),typeof $=="function"&&$(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{TO.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")},M)})})},A=D=>{if(T(),typeof(D?c:u)!="number"){R(D);return}C.current=window.setTimeout(()=>{R(D)},D?c:u)};return kp(()=>{A(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function Tl({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=T4(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=fit({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(hit({transition:r,duration:b,state:x,timingFunction:w}))})}Tl.displayName="@mantine/core/Transition";const[mit,Wne]=$a("Popover component was not found in the tree");function X4({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=Frt(r),i=Jr(a,o);return xl(e)?E.cloneElement(e,{[n]:i}):e}function Gne(e){return y.jsx(_A,{tabIndex:-1,"data-autofocus":!0,...e})}X4.displayName="@mantine/core/FocusTrap",Gne.displayName="@mantine/core/FocusTrapInitialFocus",X4.InitialFocus=Gne;var Xne={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const SA=Ze((e,r)=>{const n=De("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:l,onKeyDownCapture:s,variant:c,classNames:u,styles:d,...p}=n,f=Wne(),g=wre({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Jr(r,f.floating);return f.disabled?null:y.jsx(Ap,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(Tl,{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(X4,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Me,{...b,...p,variant:c,onKeyDownCapture:Rrt(()=>{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(W4,{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})})]})})})})});SA.classes=Xne,SA.displayName="@mantine/core/PopoverDropdown";const git={refProp:"ref",popupType:"dialog"},Kne=Ze((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=De("PopoverTarget",git,e);if(!xl(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=Wne(),c=Jr(s.reference,E4(n),r),u=s.withRoles?{"aria-haspopup":a,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return E.cloneElement(n,{...l,...u,...s.targetProps,className:eo(s.targetProps.className,l.className,n.props.className),[o]:c,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});Kne.displayName="@mantine/core/PopoverTarget";function yit(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 bit(e,r,n){const o=yit(e.middlewares),a=[pne(e.offset),Aat()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(cA(typeof o.shift=="boolean"?{limiter:hne(),padding:5}:{limiter:hne(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?H4():H4(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?Xy():Xy(o.inline)),a.push(fne({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(Rat({...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 vit(e){const r=T4(),[n,o]=Nu({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},l=()=>{e.disabled||o(!n)},s=mA({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:bit(e,()=>s,r),whileElementsMounted:e.keepMounted?void 0:lA});return E.useEffect(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return lA(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),kp(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),kp(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),kp(()=>{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 xit={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:wl("popover"),__staticSelector:"Popover",width:"max-content"},wit=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:un(r),"--popover-shadow":NR(n)}});function bo(e){const r=De("Popover",xit,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:M,onClose:j,onDismiss:L,onOpen:Y,onChange:O,zIndex:U,radius:I,shadow:q,id:V,defaultOpened:G,__staticSelector:F,withRoles:J,disabled:Q,returnFocus:z,variant:W,keepMounted:X,vars:Z,floatingStrategy:oe,withOverlay:ee,overlayProps:re,hideDetached:pe,attributes:Ce,preventPositionChangeWhenVisible:ce,...de}=r,be=dt({name:F,props:r,classes:Xne,classNames:_,styles:T,unstyled:C,attributes:Ce,rootSelector:"dropdown",vars:Z,varsResolver:wit}),{resolvedStyles:Oe}=BR({classNames:_,styles:T,props:r}),[Xe,Ge]=E.useState(s??G??!1),_t=E.useRef(o),Qe=E.useRef(null),[St,Ke]=E.useState(null),[We,st]=E.useState(null),{dir:Et}=cc(),Pn=T4(),_e=_l(V),we=vit({middlewares:f,width:p,position:qne(Et,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:G,onChange:O,onOpen:Y,onClose:j,onDismiss:L,strategy:oe,dropdownVisible:Xe,setDropdownVisible:Ge,positionRef:_t,disabled:Q,preventPositionChangeWhenVisible:ce,keepMounted:X});xre(()=>{R&&(we.onClose(),L?.())},$,[St,We]);const rt=E.useCallback(Pt=>{Ke(Pt),we.floating.refs.setReference(Pt)},[we.floating.refs.setReference]),at=E.useCallback(Pt=>{st(Pt),we.floating.refs.setFloating(Pt)},[we.floating.refs.setFloating]),Dt=E.useCallback(()=>{c?.onExited?.(),u?.(),Ge(!1),_t.current=o},[c?.onExited,u]),Wr=E.useCallback(()=>{c?.onEntered?.(),d?.()},[c?.onEntered,d]);return y.jsxs(mit,{value:{returnFocus:z,disabled:Q,controlled:we.controlled,reference:rt,floating:at,x:we.floating.x,y:we.floating.y,arrowX:we.floating?.middlewareData?.arrow?.x,arrowY:we.floating?.middlewareData?.arrow?.y,opened:we.opened,arrowRef:Qe,transitionProps:{...c,onExited:Dt,onEntered:Wr},width:p,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:we.floating.placement,trapFocus:M,withinPortal:A,portalProps:D,zIndex:U,radius:I,shadow:q,closeOnEscape:N,onDismiss:L,onClose:we.onClose,onToggle:we.onToggle,getTargetId:()=>`${_e}-target`,getDropdownId:()=>`${_e}-dropdown`,withRoles:J,targetProps:de,__staticSelector:F,classNames:_,styles:T,unstyled:C,variant:W,keepMounted:X,getStyles:be,resolvedStyles:Oe,floatingStrategy:oe,referenceHidden:pe&&Pn!=="test"?we.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ee&&y.jsx(Tl,{transition:"fade",mounted:we.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:Pt=>y.jsx(Ap,{withinPortal:A,children:y.jsx(Fm,{...re,...be("overlay",{className:re?.className,style:[Pt,re?.style]})})})})]})}bo.Target=Kne,bo.Dropdown=SA,bo.displayName="@mantine/core/Popover",bo.extend=e=>e;var Rl={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 Zne=E.forwardRef(({className:e,...r},n)=>y.jsxs(Me,{component:"span",className:eo(Rl.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Rl.bar}),y.jsx("span",{className:Rl.bar}),y.jsx("span",{className:Rl.bar})]}));Zne.displayName="@mantine/core/Bars";const Qne=E.forwardRef(({className:e,...r},n)=>y.jsxs(Me,{component:"span",className:eo(Rl.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Rl.dot}),y.jsx("span",{className:Rl.dot}),y.jsx("span",{className:Rl.dot})]}));Qne.displayName="@mantine/core/Dots";const Jne=E.forwardRef(({className:e,...r},n)=>y.jsx(Me,{component:"span",className:eo(Rl.ovalLoader,e),...r,ref:n}));Jne.displayName="@mantine/core/Oval";const eoe={bars:Zne,oval:Jne,dots:Qne},kit={loaders:eoe,type:"oval"},_it=(e,{size:r,color:n})=>({root:{"--loader-size":er(r,"loader-size"),"--loader-color":n?Vo(n,e):void 0}}),Np=Ze((e,r)=>{const n=De("Loader",kit,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=dt({name:"Loader",props:n,classes:Rl,className:s,style:c,classNames:u,styles:d,unstyled:p,attributes:x,vars:l,varsResolver:_it});return b?y.jsx(Me,{...k("root"),ref:r,...w,children:b}):y.jsx(Me,{...k("root"),ref:r,component:f[i],variant:g,size:o,...w})});Np.defaultLoaders=eoe,Np.classes=Rl,Np.displayName="@mantine/core/Loader";var Hm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const toe={orientation:"horizontal"},Eit=(e,{borderWidth:r})=>({group:{"--ai-border-width":Fe(r)}}),CA=Ze((e,r)=>{const n=De("ActionIconGroup",toe,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=De("ActionIconGroup",toe,e),x=dt({name:"ActionIconGroup",props:n,classes:Hm,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:Eit,rootSelector:"group"});return y.jsx(Me,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});CA.classes=Hm,CA.displayName="@mantine/core/ActionIconGroup";const Sit=(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":er(l,"section-height"),"--section-padding-x":er(l,"section-padding-x"),"--section-fz":Mo(l),"--section-radius":r===void 0?void 0:un(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},TA=Ze((e,r)=>{const n=De("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=dt({name:"ActionIconGroupSection",props:n,classes:Hm,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Sit,rootSelector:"groupSection"});return y.jsx(Me,{...x("groupSection"),ref:r,variant:u,...b})});TA.classes=Hm,TA.displayName="@mantine/core/ActionIconGroupSection";const Cit=(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":er(r,"ai-size"),"--ai-radius":n===void 0?void 0:un(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}}},K4=zn((e,r)=>{const n=De("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=dt({name:["ActionIcon",b],props:n,className:o,style:c,classes:Hm,classNames:l,styles:s,unstyled:a,attributes:A,vars:w,varsResolver:Cit});return y.jsxs(fs,{...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(Tl,{mounted:u,transition:"slide-down",duration:150,children:$=>y.jsx(Me,{component:"span",...N("loader",{style:$}),"aria-hidden":!0,children:y.jsx(Np,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...d})})}),y.jsx(Me,{component:"span",mod:{loading:u},...N("icon"),children:k})]})});K4.classes=Hm,K4.displayName="@mantine/core/ActionIcon",K4.Group=CA,K4.GroupSection=TA;const roe=E.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"})}));roe.displayName="@mantine/core/CloseIcon";var noe={root:"m_86a44da5","root--subtle":"m_220c80f2"};const Tit={variant:"subtle"},Rit=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":er(r,"cb-size"),"--cb-radius":n===void 0?void 0:un(n),"--cb-icon-size":Fe(o)}}),Dp=zn((e,r)=>{const n=De("CloseButton",Tit,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=dt({name:C||"CloseButton",props:n,className:s,style:u,classes:noe,classNames:c,styles:d,unstyled:p,attributes:k,vars:i,varsResolver:Rit});return y.jsxs(fs,{ref:r,..._,unstyled:p,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(roe,{}),a]})});Dp.classes=noe,Dp.displayName="@mantine/core/CloseButton";function Ait(e){return E.Children.toArray(e).filter(Boolean)}var ooe={root:"m_4081bf90"};const Nit={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Dit=(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":Jn(o),"--group-align":a,"--group-justify":i,"--group-wrap":l}}),aoe=Ze((e,r)=>{const n=De("Group",Nit,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=Ait(c),A=R.length,D=Jn(u??"md"),N={childWidth:`calc(${100/A}% - (${D} - ${D} / ${A}))`},$=dt({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:ooe,classNames:o,styles:l,unstyled:s,attributes:_,vars:x,varsResolver:Dit});return y.jsx(Me,{...$("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:R})});aoe.classes=ooe,aoe.displayName="@mantine/core/Group";const[Pit,hc]=$a("ModalBase component was not found in tree");function $it({opened:e,transitionDuration:r}){const[n,o]=E.useState(e),a=E.useRef(-1),i=IR()?0:r;return E.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 Mit({id:e,transitionProps:r,opened:n,trapFocus:o,closeOnEscape:a,onClose:i,returnFocus:l}){const s=_l(e),[c,u]=E.useState(!1),[d,p]=E.useState(!1),f=typeof r?.duration=="number"?r?.duration:200,g=$it({opened:n,transitionDuration:f});return Urt("keydown",b=>{b.key==="Escape"&&a&&!b.isComposing&&n&&b.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),wre({opened:n,shouldReturnFocus:o&&l}),{_id:s,titleMounted:c,bodyMounted:d,shouldLockScroll:g,setTitleMounted:u,setBodyMounted:p}}const RA=E.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:M,setTitleMounted:j,setBodyMounted:L}=Mit({id:o,transitionProps:a,opened:r,trapFocus:s,closeOnEscape:c,onClose:n,returnFocus:u}),{key:Y,...O}=T||{};return y.jsx(Ap,{...f,withinPortal:p,children:y.jsx(Pit,{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(mre,{enabled:M&&g,...O,children:y.jsx(Me,{ref:A,...R,__vars:{...C,"--mb-z-index":(x||wl("modal")).toString(),"--mb-shadow":NR(w),"--mb-padding":Jn(k)},children:b})},Y)})})});RA.displayName="@mantine/core/ModalBase";function Oit(){const e=hc();return E.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var qm={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const AA=E.forwardRef(({className:e,...r},n)=>{const o=Oit(),a=hc();return y.jsx(Me,{ref:n,...r,id:o,className:eo({[qm.body]:!a.unstyled},e)})});AA.displayName="@mantine/core/ModalBaseBody";const ioe=E.forwardRef(({className:e,onClick:r,...n},o)=>{const a=hc();return y.jsx(Dp,{ref:o,...n,onClick:i=>{a.onClose(),r?.(i)},className:eo({[qm.close]:!a.unstyled},e),unstyled:a.unstyled})});ioe.displayName="@mantine/core/ModalBaseCloseButton";const NA=E.forwardRef(({transitionProps:e,className:r,innerProps:n,onKeyDown:o,style:a,...i},l)=>{const s=hc();return y.jsx(Tl,{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:eo({[qm.inner]:!s.unstyled},n.className),children:y.jsx(X4,{active:s.opened&&s.trapFocus,innerRef:l,children:y.jsx(Y4,{...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:eo({[qm.content]:!s.unstyled},r),unstyled:s.unstyled,children:i.children})})})})});NA.displayName="@mantine/core/ModalBaseContent";const loe=E.forwardRef(({className:e,...r},n)=>{const o=hc();return y.jsx(Me,{component:"header",ref:n,className:eo({[qm.header]:!o.unstyled},e),...r})});loe.displayName="@mantine/core/ModalBaseHeader";const Iit={duration:200,timingFunction:"ease",transition:"fade"};function Lit(e){const r=hc();return{...Iit,...r.transitionProps,...e}}const DA=E.forwardRef(({onClick:e,transitionProps:r,style:n,visible:o,...a},i)=>{const l=hc(),s=Lit(r);return y.jsx(Tl,{mounted:o!==void 0?o:l.opened,...s,transition:"fade",children:c=>y.jsx(Fm,{ref:i,fixed:!0,style:[n,c],zIndex:l.zIndex,unstyled:l.unstyled,onClick:u=>{e?.(u),l.closeOnClickOutside&&l.onClose()},...a})})});DA.displayName="@mantine/core/ModalBaseOverlay";function zit(){const e=hc();return E.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const soe=E.forwardRef(({className:e,...r},n)=>{const o=zit(),a=hc();return y.jsx(Me,{component:"h2",ref:n,className:eo({[qm.title]:!a.unstyled},e),...r,id:o})});soe.displayName="@mantine/core/ModalBaseTitle";function coe({children:e}){return y.jsx(y.Fragment,{children:e})}const[Bit,jit]=Nm({size:"sm"}),uoe=Ze((e,r)=>{const n=De("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:l,styles:s,...c}=n,u=jit(),{resolvedClassNames:d,resolvedStyles:p}=BR({classNames:l,styles:s,props:n});return y.jsx(Dp,{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})});uoe.displayName="@mantine/core/InputClearButton";const Fit={xs:7,sm:8,md:10,lg:12,xl:15};function Hit({__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:Fit[a]},children:[i,n||o]}):n||i||o}const[qit,Z4]=Nm({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ki={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 Uit=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Mo(r)} - ${Fe(2)})`}}),Q4=Ze((e,r)=>{const n=De("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}=De("InputDescription",null,n),x=Z4(),w=dt({name:["InputWrapper",d],props:n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,rootSelector:"description",vars:c,varsResolver:Uit}),k=p&&x?.getStyles||w;return y.jsx(Me,{component:"p",ref:r,variant:g,size:u,...k("description",x?.getStyles?{className:a,style:i}:void 0),...b})});Q4.classes=ki,Q4.displayName="@mantine/core/InputDescription";const Vit=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Mo(r)} - ${Fe(2)})`}}),J4=Ze((e,r)=>{const n=De("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=dt({name:["InputWrapper",p],props:n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,rootSelector:"error",vars:c,varsResolver:Vit}),w=Z4(),k=f&&w?.getStyles||x;return y.jsx(Me,{component:"p",ref:r,variant:g,size:u,...k("error",w?.getStyles?{className:a,style:i}:void 0),...b})});J4.classes=ki,J4.displayName="@mantine/core/InputError";const doe={labelElement:"label"},Yit=(e,{size:r})=>({label:{"--input-label-size":Mo(r),"--input-asterisk-color":void 0}}),e5=Ze((e,r)=>{const n=De("InputLabel",doe,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,..._}=De("InputLabel",doe,n),T=dt({name:["InputWrapper",x],props:n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,rootSelector:"label",vars:c,varsResolver:Yit}),R=Z4(),A=R?.getStyles||T;return y.jsxs(Me,{...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:" *"})]})});e5.classes=ki,e5.displayName="@mantine/core/InputLabel";const PA=Ze((e,r)=>{const n=De("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=dt({name:["InputPlaceholder",u],props:n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,rootSelector:"placeholder"});return y.jsx(Me,{...x("placeholder"),mod:[{error:!!p},f],component:"span",variant:d,ref:r,...b})});PA.classes=ki,PA.displayName="@mantine/core/InputPlaceholder";function Wit(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 Git={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Xit=(e,{size:r})=>({label:{"--input-label-size":Mo(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Mo(r)} - ${Fe(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Mo(r)} - ${Fe(2)})`}}),$A=Ze((e,r)=>{const n=De("InputWrapper",Git,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:M,attributes:j,...L}=n,Y=dt({name:["InputWrapper",p],props:$||n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:Xit}),O={size:u,variant:d,__staticSelector:p},U=_l(D),I=typeof A=="boolean"?A:N,q=_?.id||`${U}-error`,V=C?.id||`${U}-description`,G=U,F=!!x&&typeof x!="boolean",J=!!w,Q=`${F?q:""} ${J?V:""}`,z=Q.trim().length>0?Q.trim():void 0,W=k?.id||`${U}-label`,X=b&&y.jsx(e5,{labelElement:T,id:W,htmlFor:G,required:I,...O,...k,children:b},"label"),Z=J&&y.jsx(Q4,{...C,...O,size:C?.size||O.size,id:C?.id||V,children:w},"description"),oe=y.jsx(E.Fragment,{children:f(R)},"input"),ee=F&&E.createElement(J4,{..._,...O,size:_?.size||O.size,key:"error",id:_?.id||q},x),re=g.map(pe=>{switch(pe){case"label":return X;case"input":return oe;case"description":return Z;case"error":return ee;default:return null}});return y.jsx(qit,{value:{getStyles:Y,describedBy:z,inputId:G,labelId:W,...Wit(g,{hasDescription:J,hasError:F})},children:y.jsx(Me,{ref:r,variant:d,size:u,mod:[{error:!!x},M],...Y("root"),...L,children:re})})});$A.classes=ki,$A.displayName="@mantine/core/InputWrapper";const Kit={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},Zit=(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":er(r.size,"input-height"),"--input-fz":Mo(r.size),"--input-radius":r.radius===void 0?void 0:un(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?er(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),sa=zn((e,r)=>{const n=De("Input",Kit,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:M,radius:j,id:L,withAria:Y,withErrorStyles:O,mod:U,inputSize:I,attributes:q,__clearSection:V,__clearable:G,__defaultRightSection:F,...J}=n,{styleProps:Q,rest:z}=HR(J),W=Z4(),X={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Z=dt({name:["Input",u],props:d||n,classes:ki,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:q,stylesCtx:X,rootSelector:"wrapper",vars:N,varsResolver:Zit}),oe=Y?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||L}:{},ee=Hit({__clearable:G,__clearSection:V,rightSection:C,__defaultRightSection:F,size:p});return y.jsx(Bit,{value:{size:p||"sm"},children:y.jsxs(Me,{...Z("wrapper"),...Q,...f,mod:[{error:!!g&&O,pointer:$,disabled:b,multiline:M,"data-with-right-section":!!ee,"data-with-left-section":!!x},U],variant:D,size:p,children:[x&&y.jsx("div",{...w,"data-position":"left",...Z("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Me,{component:"input",...z,...oe,ref:r,required:c,mod:{disabled:b,error:!!g&&O},variant:D,__size:I,...Z("input")}),ee&&y.jsx("div",{..._,"data-position":"right",...Z("section",{className:_?.className,style:_?.style}),children:ee})]})})});sa.classes=ki,sa.Wrapper=$A,sa.Label=e5,sa.Error=J4,sa.Description=Q4,sa.Placeholder=PA,sa.ClearButton=uoe,sa.displayName="@mantine/core/Input";function Qit(e,r,n){const o=De(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:M,attributes:j,...L}=o,{styleProps:Y,rest:O}=HR(L),U={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:M,attributes:j,...k};return{...O,classNames:c,styles:u,unstyled:p,wrapperProps:{...U,...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 Jit={__staticSelector:"InputBase",withAria:!0,size:"sm"},t5=zn((e,r)=>{const{inputProps:n,wrapperProps:o,...a}=Qit("InputBase",Jit,e);return y.jsx(sa.Wrapper,{...o,children:y.jsx(sa,{...n,...a,ref:r})})});t5.classes={...sa.classes,...sa.Wrapper.classes},t5.displayName="@mantine/core/InputBase";const elt={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 poe={root:"m_8bffd616"};const hoe=zn((e,r)=>{const n=De("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=dt({name:"Flex",classes:poe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c}),_=yo(),T=Vy(),R=Ire({styleProps:{gap:u,rowGap:d,columnGap:p,align:f,justify:g,wrap:b,direction:x},theme:_,data:elt});return y.jsxs(y.Fragment,{children:[R.hasResponsiveStyles&&y.jsx(Mm,{selector:`.${T}`,styles:R.styles,media:R.media}),y.jsx(Me,{ref:r,...C("root",{className:T,style:Au(R.inlineStyles)}),...k})]})});hoe.classes=poe,hoe.displayName="@mantine/core/Flex";function tlt(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 rlt({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,l]=E.useState(!1),[s,c]=E.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=Du(x.borderTopWidth)+Du(w.borderTopWidth),C=Du(x.borderLeftWidth)+Du(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=E.useRef(null),f=E.useRef(null);return E.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]),E.useEffect(()=>{if(r){const g=b=>{tlt(b.target,r)&&(d(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),Krt(()=>{ent()!=="test"&&l(!0)},20,{autoInvoke:!0}),Qrt(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&d()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var foe={root:"m_96b553a6"};const nlt=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),MA=Ze((e,r)=>{const n=De("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=dt({name:"FloatingIndicator",classes:foe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:nlt}),k=E.useRef(null),{initialized:C,hidden:_}=rlt({target:u,parent:d,ref:k,displayAfterTransitionEnd:g}),T=Jr(r,k);return!u||!d?null:y.jsx(Me,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});MA.displayName="@mantine/core/FloatingIndicator",MA.classes=foe;function olt({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.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 E.useEffect(()=>l,[]),{openDropdown:s,closeDropdown:c}}function OA({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"})})}OA.displayName="@mantine/core/AccordionChevron";var moe={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 alt=(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:un(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},goe=Ze((e,r)=>{const n=De("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=dt({name:"Alert",classes:moe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:alt}),D=_l(g),N=p&&`${D}-title`||void 0,$=`${D}-body`;return y.jsx(Me,{id:D,...A("root",{variant:C}),variant:C,ref:r,...R,role:"alert","aria-describedby":$,"aria-labelledby":N,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(Dp,{...A("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:s})]})})});goe.classes=moe,goe.displayName="@mantine/core/Alert";var yoe={root:"m_b6d8b162"};function ilt(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const llt={inherit:!1},slt=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Mo(a),"--text-lh":Art(a),"--text-gradient":r==="gradient"?gnt(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Vo(i,e):void 0}}),Zy=zn((e,r)=>{const n=De("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=dt({name:["Text",u],props:n,classes:yoe,className:p,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:d,varsResolver:slt});return y.jsx(Me,{...R("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":ilt(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":l},k],size:C,...T})});Zy.classes=yoe,Zy.displayName="@mantine/core/Text";var boe={root:"m_849cf0da"};const clt={underline:"hover"},voe=zn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...l}=De("Anchor",clt,e);return y.jsx(Zy,{component:"a",ref:r,className:eo({[boe.root]:!a},o),...l,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});voe.classes=boe,voe.displayName="@mantine/core/Anchor";function xoe(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=>xoe(r))}:e}function ult(e){return e?e.map(r=>xoe(r)):[]}function woe(e){return e.reduce((r,n)=>"group"in n?{...r,...woe(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 dlt={error:null},plt=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":er(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Vo(n,e):void 0}}),IA=Ze((e,r)=>{const n=De("ComboboxChevron",dlt,e),{size:o,error:a,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,mod:p,...f}=n,g=dt({name:"ComboboxChevron",classes:ca,props:n,style:i,className:l,classNames:s,styles:c,unstyled:u,vars:d,varsResolver:plt,rootSelector:"chevron"});return y.jsx(Me,{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"})})});IA.classes=ca,IA.displayName="@mantine/core/ComboboxChevron";const[hlt,_i]=$a("Combobox component was not found in tree"),koe=E.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)}}));koe.displayName="@mantine/core/ComboboxClearButton";const LA=Ze((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:l,...s}=De("ComboboxDropdown",null,e),c=_i();return y.jsx(bo.Dropdown,{...s,ref:r,role:"presentation","data-hidden":l||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});LA.classes=ca,LA.displayName="@mantine/core/ComboboxDropdown";const flt={refProp:"ref"},_oe=Ze((e,r)=>{const{children:n,refProp:o}=De("ComboboxDropdownTarget",flt,e);if(_i(),!xl(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(bo.Target,{ref:r,refProp:o,children:n})});_oe.displayName="@mantine/core/ComboboxDropdownTarget";const zA=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=De("ComboboxEmpty",null,e),c=_i();return y.jsx(Me,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...s})});zA.classes=ca,zA.displayName="@mantine/core/ComboboxEmpty";function BA({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const l=_i(),[s,c]=E.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 mlt={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Eoe=Ze((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=De("ComboboxEventsTarget",mlt,e);if(!xl(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=_i(),p=BA({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...p,...u,[o]:Jr(r,d.store.targetRef,E4(n))})});Eoe.displayName="@mantine/core/ComboboxEventsTarget";const jA=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=De("ComboboxFooter",null,e),c=_i();return y.jsx(Me,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});jA.classes=ca,jA.displayName="@mantine/core/ComboboxFooter";const FA=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,children:s,label:c,id:u,...d}=De("ComboboxGroup",null,e),p=_i(),f=_l(u);return y.jsxs(Me,{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]})});FA.classes=ca,FA.displayName="@mantine/core/ComboboxGroup";const HA=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=De("ComboboxHeader",null,e),c=_i();return y.jsx(Me,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:u=>{u.preventDefault()}})});HA.classes=ca,HA.displayName="@mantine/core/ComboboxHeader";function Soe({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}Soe.displayName="@mantine/core/ComboboxHiddenInput";const qA=Ze((e,r)=>{const n=De("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=_i(),C=E.useId(),_=u||C;return y.jsx(Me,{...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)}})});qA.classes=ca,qA.displayName="@mantine/core/ComboboxOption";const UA=Ze((e,r)=>{const n=De("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:l,id:s,onMouseDown:c,labelledBy:u,...d}=n,p=_i(),f=_l(s);return E.useEffect(()=>{p.store.setListId(f)},[f]),y.jsx(Me,{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)}})});UA.classes=ca,UA.displayName="@mantine/core/ComboboxOptions";const glt={withAriaAttributes:!0,withKeyboardNavigation:!0},VA=Ze((e,r)=>{const n=De("ComboboxSearch",glt,e),{classNames:o,styles:a,unstyled:i,vars:l,withAriaAttributes:s,onKeyDown:c,withKeyboardNavigation:u,size:d,...p}=n,f=_i(),g=f.getStyles("search"),b=BA({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:u,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(sa,{ref:Jr(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:d||f.size,...b,...p,__staticSelector:"Combobox"})});VA.classes=ca,VA.displayName="@mantine/core/ComboboxSearch";const ylt={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},Coe=Ze((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...u}=De("ComboboxTarget",ylt,e);if(!xl(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=_i(),p=BA({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=E.cloneElement(n,{...p,...u});return y.jsx(bo.Target,{ref:Jr(r,d.store.targetRef),children:f})});Coe.displayName="@mantine/core/ComboboxTarget";function blt(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 vlt(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 xlt(e){for(let r=0;r<e.length;r+=1)if(!e[r].hasAttribute("data-combobox-disabled"))return r;return-1}function Toe({defaultOpened:e,opened:r,onOpenedChange:n,onDropdownClose:o,onDropdownOpen:a,loop:i=!0,scrollBehavior:l="instant"}={}){const[s,c]=Nu({value:r,defaultValue:e,finalValue:!1,onChange:n}),u=E.useRef(null),d=E.useRef(-1),p=E.useRef(null),f=E.useRef(null),g=E.useRef(-1),b=E.useRef(-1),x=E.useRef(-1),w=E.useCallback((I="unknown")=>{s||(c(!0),a?.(I))},[c,a,s]),k=E.useCallback((I="unknown")=>{s&&(c(!1),o?.(I))},[c,o,s]),C=E.useCallback((I="unknown")=>{s?k(I):w(I)},[k,w,s]),_=E.useCallback(()=>{const I=document.querySelector(`#${u.current} [data-combobox-selected]`);I?.removeAttribute("data-combobox-selected"),I?.removeAttribute("aria-selected")},[]),T=E.useCallback(I=>{const q=document.getElementById(u.current)?.querySelectorAll("[data-combobox-option]");if(!q)return null;const V=I>=q.length?0:I<0?q.length-1:I;return d.current=V,q?.[V]&&!q[V].hasAttribute("data-combobox-disabled")?(_(),q[V].setAttribute("data-combobox-selected","true"),q[V].setAttribute("aria-selected","true"),q[V].scrollIntoView({block:"nearest",behavior:l}),q[V].id):null},[l,_]),R=E.useCallback(()=>{const I=document.querySelector(`#${u.current} [data-combobox-active]`);if(I){const q=document.querySelectorAll(`#${u.current} [data-combobox-option]`),V=Array.from(q).findIndex(G=>G===I);return T(V)}return T(0)},[T]),A=E.useCallback(()=>T(vlt(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),D=E.useCallback(()=>T(blt(d.current,document.querySelectorAll(`#${u.current} [data-combobox-option]`),i)),[T,i]),N=E.useCallback(()=>T(xlt(document.querySelectorAll(`#${u.current} [data-combobox-option]`))),[T]),$=E.useCallback((I="selected",q)=>{x.current=window.setTimeout(()=>{const V=document.querySelectorAll(`#${u.current} [data-combobox-option]`),G=Array.from(V).findIndex(F=>F.hasAttribute(`data-combobox-${I}`));d.current=G,q?.scrollIntoView&&V[G]?.scrollIntoView({block:"nearest",behavior:l})},0)},[]),M=E.useCallback(()=>{d.current=-1,_()},[_]),j=E.useCallback(()=>{document.querySelectorAll(`#${u.current} [data-combobox-option]`)?.[d.current]?.click()},[]),L=E.useCallback(I=>{u.current=I},[]),Y=E.useCallback(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),O=E.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),U=E.useCallback(()=>d.current,[]);return E.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:U,selectOption:T,selectFirstOption:N,selectActiveOption:R,selectNextOption:A,selectPreviousOption:D,resetSelectedOption:M,updateSelectedOptionIndex:$,listId:u.current,setListId:L,clickSelectedOption:j,searchRef:p,focusSearchInput:Y,targetRef:f,focusTarget:O}}const wlt={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},klt=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Mo(r),"--combobox-option-padding":er(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Fe(n),"--combobox-option-fz":Mo(r),"--combobox-option-padding":er(r,"combobox-option-padding")}});function gr(e){const r=De("Combobox",wlt,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=Toe(),C=l||k,_=dt({name:g||"Combobox",classes:ca,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:s,varsResolver:klt}),T=()=>{u?.(),C.closeDropdown()};return y.jsx(hlt,{value:{getStyles:_,store:C,onOptionSubmit:c,size:d,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(bo,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:R=>!R&&T(),withRoles:!1,unstyled:a,children:i})})}const _lt=e=>e;gr.extend=_lt,gr.classes=ca,gr.displayName="@mantine/core/Combobox",gr.Target=Coe,gr.Dropdown=LA,gr.Options=UA,gr.Option=qA,gr.Search=VA,gr.Empty=zA,gr.Chevron=IA,gr.Footer=jA,gr.Header=HA,gr.EventsTarget=Eoe,gr.DropdownTarget=_oe,gr.Group=FA,gr.ClearButton=koe,gr.HiddenInput=Soe;function Elt({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 Qy(e){return"group"in e}function Roe({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;Qy(l)&&a.push({group:l.group,items:Roe({options:l.items,search:r,limit:n-a.length})}),Qy(l)||l.label.toLowerCase().includes(o)&&a.push(l)}return a}function Slt(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 Aoe(e,r=new Set){if(Array.isArray(e))for(const n of e)if(Qy(n))Aoe(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 Clt(e,r){return Array.isArray(e)?e.includes(r):e===r}function Noe({data:e,withCheckIcon:r,value:n,checkIconPosition:o,unstyled:a,renderOption:i}){if(!Qy(e)){const s=Clt(n,e.value),c=r&&s&&y.jsx(Elt,{className:ca.optionsDropdownCheckIcon}),u=y.jsxs(y.Fragment,{children:[o==="left"&&c,y.jsx("span",{children:e.label}),o==="right"&&c]});return y.jsx(gr.Option,{value:e.value,disabled:e.disabled,className:eo({[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(Noe,{data:s,value:n,unstyled:a,withCheckIcon:r,checkIconPosition:o,renderOption:i},s.value));return y.jsx(gr.Group,{label:e.group,children:l})}function Tlt({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}){Aoe(e);const C=typeof a=="string"?(o||Roe)({options:e,search:c?a:"",limit:i??1/0}):e,_=Slt(C),T=C.map(R=>y.jsx(Noe,{data:R,withCheckIcon:u,value:d,checkIconPosition:p,unstyled:g,renderOption:x},Qy(R)?R.group:R.value));return y.jsx(gr.Dropdown,{hidden:r||n&&_,"data-composed":!0,children:y.jsxs(gr.Options,{labelledBy:b,"aria-label":k,children:[s?y.jsx(Rp.Autosize,{mah:l??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:T}):T,_&&f&&y.jsx(gr.Empty,{children:f})]})})}var Doe={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const Rlt=(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":er(i,"badge-height"),"--badge-padding-x":er(i,"badge-padding-x"),"--badge-fz":er(i,"badge-fz"),"--badge-radius":r===void 0?void 0:un(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"?Vo(n,e):void 0}}},Poe=zn((e,r)=>{const n=De("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=dt({name:"Badge",props:n,classes:Doe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:T,vars:c,varsResolver:Rlt});return y.jsxs(Me,{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})]})});Poe.classes=Doe,Poe.displayName="@mantine/core/Badge";var $oe={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const Alt={separator:"/"},Nlt=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Jn(r)}}),Moe=Ze((e,r)=>{const n=De("Breadcrumbs",Alt,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,separator:d,separatorMargin:p,attributes:f,...g}=n,b=dt({name:"Breadcrumbs",classes:$oe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,vars:c,varsResolver:Nlt}),x=E.Children.toArray(u).reduce((w,k,C,_)=>{const T=xl(k)?E.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Me,{...b("separator"),key:`separator-${C}`},d)),w},[]);return y.jsx(Me,{ref:r,...b("root"),...g,children:x})});Moe.classes=$oe,Moe.displayName="@mantine/core/Breadcrumbs";var Ooe={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Dlt=(e,{color:r,size:n,lineSize:o,transitionDuration:a,transitionTimingFunction:i})=>({root:{"--burger-color":r?Vo(r,e):void 0,"--burger-size":er(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}}),Ioe=Ze((e,r)=>{const n=De("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=dt({name:"Burger",classes:Ooe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:Dlt});return y.jsxs(fs,{...w("root"),ref:r,...x,children:[y.jsx(Me,{mod:["reduce-motion",{opened:u}],...w("burger")}),d]})});Ioe.classes=Ooe,Ioe.displayName="@mantine/core/Burger";var Um={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Loe={orientation:"horizontal"},Plt=(e,{borderWidth:r})=>({group:{"--button-border-width":Fe(r)}}),YA=Ze((e,r)=>{const n=De("ButtonGroup",Loe,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:u,borderWidth:d,variant:p,mod:f,attributes:g,...b}=De("ButtonGroup",Loe,e),x=dt({name:"ButtonGroup",props:n,classes:Um,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:u,varsResolver:Plt,rootSelector:"group"});return y.jsx(Me,{...x("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...b})});YA.classes=Um,YA.displayName="@mantine/core/ButtonGroup";const $lt=(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":er(l,"section-height"),"--section-padding-x":er(l,"section-padding-x"),"--section-fz":l?.includes("compact")?Mo(l.replace("compact-","")):Mo(l),"--section-radius":r===void 0?void 0:un(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},WA=Ze((e,r)=>{const n=De("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=dt({name:"ButtonGroupSection",props:n,classes:Um,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:$lt,rootSelector:"groupSection"});return y.jsx(Me,{...x("groupSection"),ref:r,variant:u,...b})});WA.classes=Um,WA.displayName="@mantine/core/ButtonGroupSection";const Mlt={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Fe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},Olt=(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":er(i,"button-height"),"--button-padding-x":er(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Mo(i.replace("compact-","")):Mo(i),"--button-radius":r===void 0?void 0:un(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}}},r5=zn((e,r)=>{const n=De("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,$=dt({name:"Button",props:n,classes:Um,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:Olt}),M=!!u,j=!!d;return y.jsxs(fs,{ref:r,...$("root",{active:!s&&!b&&!T}),unstyled:_,variant:f,disabled:s||b,mod:[{disabled:s||T,loading:b,block:p,"with-left-section":M,"with-right-section":j},A],...N,children:[typeof b=="boolean"&&y.jsx(Tl,{mounted:b,transition:Mlt,duration:150,children:L=>y.jsx(Me,{component:"span",...$("loader",{style:L}),"aria-hidden":!0,children:y.jsx(Np,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),y.jsxs("span",{...$("inner"),children:[u&&y.jsx(Me,{component:"span",...$("section"),mod:{position:"left"},children:u}),y.jsx(Me,{component:"span",mod:{loading:b},...$("label"),children:c}),d&&y.jsx(Me,{component:"span",...$("section"),mod:{position:"right"},children:d})]})]})});r5.classes=Um,r5.displayName="@mantine/core/Button",r5.Group=YA,r5.GroupSection=WA;const[Ilt,Llt]=$a("Card component was not found in tree");var GA={root:"m_e615b15f",section:"m_599a2148"};const n5=zn((e,r)=>{const n=De("CardSection",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,withBorder:c,inheritPadding:u,mod:d,...p}=n,f=Llt();return y.jsx(Me,{ref:r,mod:[{"with-border":c,"inherit-padding":u},d],...f.getStyles("section",{className:a,style:i,styles:l,classNames:o}),...p})});n5.classes=GA,n5.displayName="@mantine/core/CardSection";const zlt=(e,{padding:r})=>({root:{"--card-padding":Jn(r)}}),XA=zn((e,r)=>{const n=De("Card",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:u,padding:d,attributes:p,...f}=n,g=dt({name:"Card",props:n,classes:GA,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:zlt}),b=E.Children.toArray(u),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===n5?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(Ilt,{value:{getStyles:g},children:y.jsx(Y4,{ref:r,unstyled:s,...g("root"),...f,children:x})})});XA.classes=GA,XA.displayName="@mantine/core/Card",XA.Section=n5;var zoe={root:"m_b183c0a2"};const Blt=(e,{color:r})=>({root:{"--code-bg":r?Vo(r,e):void 0}}),Boe=Ze((e,r)=>{const n=De("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=dt({name:"Code",props:n,classes:zoe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Blt});return y.jsx(Me,{component:d?"pre":"code",variant:p,ref:r,mod:[{block:d},f],...x("root"),...b,dir:"ltr"})});Boe.classes=zoe,Boe.displayName="@mantine/core/Code";var joe={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const Foe={withShadow:!0},jlt=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:un(r),"--cs-size":Fe(n)}}),Hoe=zn((e,r)=>{const n=De("ColorSwatch",Foe,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}=De("ColorSwatch",Foe,n),k=dt({name:"ColorSwatch",props:n,classes:joe,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:c,varsResolver:jlt});return y.jsxs(Me,{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})]})});Hoe.classes=joe,Hoe.displayName="@mantine/core/ColorSwatch";var qoe={root:"m_7485cace"};const Flt=(e,{size:r,fluid:n})=>({root:{"--container-size":n?void 0:er(r,"container-size")}}),Uoe=Ze((e,r)=>{const n=De("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=dt({name:"Container",classes:qoe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:Flt});return y.jsx(Me,{ref:r,mod:[{fluid:u,strategy:f||"block"},d],...b("root"),...g})});Uoe.classes=qoe,Uoe.displayName="@mantine/core/Container";var Voe={root:"m_3eebeb36",label:"m_9e365f20"};const Hlt={orientation:"horizontal"},qlt=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Vo(r,e):void 0,"--divider-border-style":n,"--divider-size":er(o,"divider-size")}}),Yoe=Ze((e,r)=>{const n=De("Divider",Hlt,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=dt({name:"Divider",classes:Voe,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:qlt});return y.jsx(Me,{ref:r,mod:[{orientation:d,"with-label":!!p},g],...w("root"),...x,role:"separator",children:p&&y.jsx(Me,{component:"span",mod:{position:f},...w("label"),children:p})})});Yoe.classes=Voe,Yoe.displayName="@mantine/core/Divider";const[Ult,Vm]=$a("Drawer component was not found in tree");var fc={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const o5=Ze((e,r)=>{const n=De("DrawerBody",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Vm();return y.jsx(AA,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:l,className:a}),...c})});o5.classes=fc,o5.displayName="@mantine/core/DrawerBody";const a5=Ze((e,r)=>{const n=De("DrawerCloseButton",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Vm();return y.jsx(ioe,{ref:r,...u.getStyles("close",{classNames:o,style:i,styles:l,className:a}),...c})});a5.classes=fc,a5.displayName="@mantine/core/DrawerCloseButton";const i5=Ze((e,r)=>{const n=De("DrawerContent",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,children:c,radius:u,__hidden:d,...p}=n,f=Vm(),g=f.scrollAreaComponent||coe;return y.jsx(NA,{...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})})});i5.classes=fc,i5.displayName="@mantine/core/DrawerContent";const l5=Ze((e,r)=>{const n=De("DrawerHeader",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Vm();return y.jsx(loe,{ref:r,...u.getStyles("header",{classNames:o,style:i,styles:l,className:a}),...c})});l5.classes=fc,l5.displayName="@mantine/core/DrawerHeader";const s5=Ze((e,r)=>{const n=De("DrawerOverlay",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Vm();return y.jsx(DA,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:l,className:a}),...c})});s5.classes=fc,s5.displayName="@mantine/core/DrawerOverlay";function Vlt(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function Ylt(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const Wlt={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},Glt={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},Xlt={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wl("modal"),position:"left"},Klt=(e,{position:r,size:n,offset:o})=>({root:{"--drawer-size":er(n,"drawer-size"),"--drawer-flex":Ylt(r),"--drawer-height":r==="left"||r==="right"?void 0:"var(--drawer-size)","--drawer-align":Vlt(r),"--drawer-justify":r==="right"?"flex-end":void 0,"--drawer-offset":Fe(o)}}),c5=Ze((e,r)=>{const n=De("DrawerRoot",Xlt,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}=cc(),w=dt({name:"Drawer",classes:fc,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:Klt}),k=(x==="rtl"?Glt:Wlt)[d];return y.jsx(Ult,{value:{scrollAreaComponent:u,getStyles:w,radius:f},children:y.jsx(RA,{ref:r,...w("root"),transitionProps:{transition:k,...p},"data-offset-scrollbars":u===Rp.Autosize||void 0,unstyled:s,...b})})});c5.classes=fc,c5.displayName="@mantine/core/DrawerRoot";const[Zlt,Qlt]=Nm();function Woe({children:e}){const[r,n]=E.useState([]),[o,a]=E.useState(wl("modal"));return y.jsx(Zlt,{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})}Woe.displayName="@mantine/core/DrawerStack";const u5=Ze((e,r)=>{const n=De("DrawerTitle",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=Vm();return y.jsx(soe,{ref:r,...u.getStyles("title",{classNames:o,style:i,styles:l,className:a}),...c})});u5.classes=fc,u5.displayName="@mantine/core/DrawerTitle";const Jlt={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wl("modal"),withOverlay:!0,withCloseButton:!0},ms=Ze((e,r)=>{const{title:n,withOverlay:o,overlayProps:a,withCloseButton:i,closeButtonProps:l,children:s,opened:c,stackId:u,zIndex:d,...p}=De("Drawer",Jlt,e),f=Qlt(),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 E.useEffect(()=>{f&&u&&(c?f.addModal(u,d||wl("modal")):f.removeModal(u))},[c,u,d]),y.jsxs(c5,{ref:r,opened:c,zIndex:f&&u?f.getZIndex(u):d,...p,...b,children:[o&&y.jsx(s5,{visible:x,transitionProps:f&&u?{duration:0}:void 0,...a}),y.jsxs(i5,{__hidden:f&&u&&c?u!==f.currentId:!1,children:[g&&y.jsxs(l5,{children:[n&&y.jsx(u5,{children:n}),i&&y.jsx(a5,{...l})]}),y.jsx(o5,{children:s})]})]})});ms.classes=fc,ms.displayName="@mantine/core/Drawer",ms.Root=c5,ms.Overlay=s5,ms.Content=i5,ms.Body=o5,ms.Header=l5,ms.Title=u5,ms.CloseButton=a5,ms.Stack=Woe;const[Goe,Xoe]=$a("Grid component was not found in tree"),KA=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,Koe=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":KA(e,r),Zoe=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},Qoe=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function est({span:e,order:r,offset:n,selector:o}){const a=yo(),i=Xoe(),l=i.breakpoints||a.breakpoints,s=kl(e)===void 0?12:kl(e),c=Au({"--col-order":kl(r)?.toString(),"--col-flex-grow":Zoe(s,i.grow),"--col-flex-basis":KA(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":Koe(s,i.columns,i.grow),"--col-offset":Qoe(kl(n),i.columns)}),u=$o(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"]=Zoe(e[f],i.grow),p[f]["--col-flex-basis"]=KA(e[f],i.columns),p[f]["--col-width"]=e[f]==="content"?"auto":void 0,p[f]["--col-max-width"]=Koe(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(p[f]["--col-offset"]=Qoe(n[f],i.columns)),p),{}),d=DR($o(u),l).filter(p=>$o(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(Mm,{styles:c,media:i.type==="container"?void 0:d,container:i.type==="container"?d:void 0,selector:o})}var ZA={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const tst={span:12},QA=Ze((e,r)=>{const n=De("GridCol",tst,e),{classNames:o,className:a,style:i,styles:l,vars:s,span:c,order:u,offset:d,...p}=n,f=Xoe(),g=Vy();return y.jsxs(y.Fragment,{children:[y.jsx(est,{selector:`.${g}`,span:c,order:u,offset:d}),y.jsx(Me,{ref:r,...f.getStyles("col",{className:eo(a,g),style:i,classNames:o,styles:l}),...p})]})});QA.classes=ZA,QA.displayName="@mantine/core/GridCol";function Joe({gutter:e,selector:r,breakpoints:n,type:o}){const a=yo(),i=n||a.breakpoints,l=Au({"--grid-gutter":Jn(kl(e))}),s=$o(i).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--grid-gutter"]=Jn(e[d])),u),{}),c=DR($o(s),i).filter(u=>$o(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(Mm,{styles:l,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const rst={gutter:"md",grow:!1,columns:12},nst=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),JA=Ze((e,r)=>{const n=De("Grid",rst,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,_=dt({name:"Grid",classes:ZA,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:k,vars:c,varsResolver:nst}),T=Vy();return w==="container"&&x?y.jsxs(Goe,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(Joe,{selector:`.${T}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Me,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})})]}):y.jsxs(Goe,{value:{getStyles:_,grow:u,columns:p,breakpoints:x,type:w},children:[y.jsx(Joe,{selector:`.${T}`,...n}),y.jsx(Me,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});JA.classes=ZA,JA.displayName="@mantine/core/Grid",JA.Col=QA;function eae({color:e,theme:r,defaultShade:n}){const o=Ep({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var tae={root:"m_bcb3f3c2"};const ost={color:"yellow"},ast=(e,{color:r})=>({root:{"--mark-bg-dark":eae({color:r,theme:e,defaultShade:5}),"--mark-bg-light":eae({color:r,theme:e,defaultShade:2})}}),eN=Ze((e,r)=>{const n=De("Mark",ost,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:u,variant:d,attributes:p,...f}=n,g=dt({name:"Mark",props:n,className:a,style:i,classes:tae,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:ast});return y.jsx(Me,{component:"mark",ref:r,variant:d,...g("root"),...f})});eN.classes=tae,eN.displayName="@mantine/core/Mark";function rae(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function ist(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(rae):rae(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 nae=zn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:l,...s}=De("Highlight",null,e),c=ist(o,a);return y.jsx(Zy,{unstyled:n,ref:r,...s,__staticSelector:"Highlight",children:c.map(({chunk:u,highlighted:d},p)=>d?y.jsx(eN,{unstyled:n,color:l,style:i,"data-highlight":u,children:u},p):y.jsx("span",{children:u},p))})});nae.classes=Zy.classes,nae.displayName="@mantine/core/Highlight";const[W6t,oae]=$a("HoverCard component was not found in the tree"),aae=E.createContext(!1),lst=aae.Provider,iae=()=>E.useContext(aae);function sst(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=De("HoverCardDropdown",null,e),i=oae();if(iae()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(bo.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(bo.Dropdown,{onMouseEnter:l,onMouseLeave:s,...a,children:r})}sst.displayName="@mantine/core/HoverCardDropdown";const cst={openDelay:0,closeDelay:0};function lae(e){const{openDelay:r,closeDelay:n,children:o}=De("HoverCardGroup",cst,e);return y.jsx(lst,{value:!0,children:y.jsx(_ne,{delay:{open:r,close:n},children:o})})}lae.displayName="@mantine/core/HoverCardGroup",lae.extend=e=>e;const ust={refProp:"ref"},dst=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=De("HoverCardTarget",ust,e);if(!xl(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=oae();if(iae()&&l.getReferenceProps&&l.reference){const d=l.getReferenceProps();return y.jsx(bo.Target,{refProp:o,ref:r,...i,children:E.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(bo.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:u}:u)})});dst.displayName="@mantine/core/HoverCardTarget";function sae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cae={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const uae={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:wl("overlay")},pst=(e,{zIndex:r})=>({root:{"--lo-z-index":r?.toString()}}),dae=Ze((e,r)=>{const n=De("LoadingOverlay",uae,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=yo(),k=dt({name:"LoadingOverlay",classes:cae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:b,vars:c,varsResolver:pst}),C={...uae.overlayProps,...p};return y.jsx(Tl,{transition:"fade",...u,mounted:!!f,children:_=>y.jsxs(Me,{...k("root",{style:_}),ref:r,...x,children:[y.jsx(Np,{...k("loader"),unstyled:s,...d}),y.jsx(Fm,{...C,...k("overlay"),darkHidden:!0,unstyled:s,color:p?.color||w.white}),y.jsx(Fm,{...C,...k("overlay"),lightHidden:!0,unstyled:s,color:p?.color||w.colors.dark[5]})]})})});dae.classes=cae,dae.displayName="@mantine/core/LoadingOverlay";const[G6t,Pu]=$a("Menu component was not found in the tree");var Ym={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const pae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=De("MenuDivider",null,e),c=Pu();return y.jsx(Me,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...s})});pae.classes=Ym,pae.displayName="@mantine/core/MenuDivider";const hae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=De("MenuDropdown",null,e),f=E.useRef(null),g=Pu(),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(bo.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Jr(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]})});hae.classes=Ym,hae.displayName="@mantine/core/MenuDropdown";const[hst,d5]=Nm(),fae=zn((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}=De("MenuItem",null,e),x=Pu(),w=d5(),k=yo(),{dir:C}=cc(),_=E.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?Ep({color:s,theme:k}):null,N=En(T.onKeyDown,$=>{$.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(fs,{onMouseDown:$=>$.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Jr(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:R,onKeyDown:AR({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})]})});fae.classes=Ym,fae.displayName="@mantine/core/MenuItem";const mae=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=De("MenuLabel",null,e),c=Pu();return y.jsx(Me,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...s})});mae.classes=Ym,mae.displayName="@mantine/core/MenuLabel";const tN=Ze((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:u,children:d,...p}=De("MenuSubDropdown",null,e),f=E.useRef(null),g=Pu(),b=d5(),x=En(s,b?.open),w=En(c,b?.close);return y.jsx(bo.Dropdown,{...p,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Jr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:d})});tN.classes=Ym,tN.displayName="@mantine/core/MenuSubDropdown";const rN=zn((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}=De("MenuSubItem",null,e),x=Pu(),w=d5(),k=yo(),{dir:C}=cc(),_=E.useRef(null),T=b,R=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,A=s?Ep({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),M=En(T.onMouseLeave,w?.close);return y.jsxs(fs,{onMouseDown:j=>j.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Jr(_,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:M,onClick:N,onKeyDown:AR({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(OA,{...x.getStyles("chevron"),size:14})})]})});rN.classes=Ym,rN.displayName="@mantine/core/MenuSubItem";function gae({children:e,refProp:r}){if(!xl(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 Pu(),y.jsx(bo.Target,{refProp:r,popupType:"menu",children:e})}gae.displayName="@mantine/core/MenuSubTarget";const fst={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function Jy(e){const{children:r,closeDelay:n,...o}=De("MenuSub",fst,e),a=_l(),[i,{open:l,close:s}]=Xrt(!1),c=d5(),{openDropdown:u,closeDropdown:d}=olt({open:l,close:s,closeDelay:n,openDelay:0});return y.jsx(hst,{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(bo,{opened:i,...o,withinPortal:!1,withArrow:!1,id:a,children:r})})}Jy.extend=e=>e,Jy.displayName="@mantine/core/MenuSub",Jy.Target=gae,Jy.Dropdown=tN,Jy.Item=rN;const mst={refProp:"ref"},gst=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=De("MenuTarget",mst,e);if(!xl(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=Pu(),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(bo.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:u,"data-expanded":i.opened?!0:void 0})})});gst.displayName="@mantine/core/MenuTarget";const[yst,nN]=$a("Modal component was not found in tree");var eb={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const yae=Ze((e,r)=>{const n=De("ModalBody",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=nN();return y.jsx(AA,{ref:r,...u.getStyles("body",{classNames:o,style:i,styles:l,className:a}),...c})});yae.classes=eb,yae.displayName="@mantine/core/ModalBody";const bae=Ze((e,r)=>{const n=De("ModalContent",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,children:c,__hidden:u,...d}=n,p=nN(),f=p.scrollAreaComponent||coe;return y.jsx(NA,{...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})})});bae.classes=eb,bae.displayName="@mantine/core/ModalContent";const vae=Ze((e,r)=>{const n=De("ModalOverlay",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,...c}=n,u=nN();return y.jsx(DA,{ref:r,...u.getStyles("overlay",{classNames:o,style:i,styles:l,className:a}),...c})});vae.classes=eb,vae.displayName="@mantine/core/ModalOverlay";const bst={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:wl("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},vst=(e,{radius:r,size:n,yOffset:o,xOffset:a})=>({root:{"--modal-radius":r===void 0?void 0:un(r),"--modal-size":er(n,"modal-size"),"--modal-y-offset":Fe(o),"--modal-x-offset":Fe(a)}}),xae=Ze((e,r)=>{const n=De("ModalRoot",bst,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=dt({name:x,classes:eb,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c,varsResolver:vst});return y.jsx(yst,{value:{yOffset:u,scrollAreaComponent:d,getStyles:C,fullScreen:f},children:y.jsx(RA,{ref:r,...C("root"),"data-full-screen":f||void 0,"data-centered":g||void 0,"data-offset-scrollbars":d===Rp.Autosize||void 0,unstyled:s,...k})})});xae.classes=eb,xae.displayName="@mantine/core/ModalRoot";const[X6t,wae]=Nm(),[xst,wst]=Nm();var p5={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const kst=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?er(r):er(n,"pg-gap")}}),oN=Ze((e,r)=>{const n=De("PillGroup",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:u,disabled:d,attributes:p,...f}=n,g=wae()?.size||u||void 0,b=dt({name:"PillGroup",classes:p5,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:kst,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(xst,{value:{size:g,disabled:d},children:y.jsx(Me,{ref:r,size:g,...b("group"),...f})})});oN.classes=p5,oN.displayName="@mantine/core/PillGroup";const _st={variant:"default"},Est=(e,{radius:r},{size:n})=>({root:{"--pill-fz":er(n,"pill-fz"),"--pill-height":er(n,"pill-height"),"--pill-radius":r===void 0?void 0:un(r)}}),aN=Ze((e,r)=>{const n=De("Pill",_st,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=wst(),R=wae(),A=x||T?.size||void 0,D=R?.variant==="filled"?"contrast":u||"default",N=dt({name:"Pill",classes:p5,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,vars:c,varsResolver:Est,stylesCtx:{size:A}});return y.jsxs(Me,{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(Dp,{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?.($)}})]})});aN.classes=p5,aN.displayName="@mantine/core/Pill",aN.Group=oN;var kae={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const Sst=(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":Jn(o)}}},_ae=zn((e,r)=>{const n=De("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,...$}=n,M=dt({name:"NavLink",props:n,classes:kae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:N,vars:c,varsResolver:Sst}),[j,L]=Nu({value:u,defaultValue:d,finalValue:!1,onChange:p}),Y=!!f,O=U=>{$.onClick?.(U),Y&&(U.preventDefault(),L(!j))};return y.jsxs(y.Fragment,{children:[y.jsxs(fs,{...M("root"),component:"a",ref:r,onClick:O,onKeyDown:U=>{$.onKeyDown?.(U),U.nativeEvent.code==="Space"&&Y&&(U.preventDefault(),L(!j))},unstyled:s,mod:[{disabled:b,active:g,expanded:j},D],...$,children:[x&&y.jsx(Me,{component:"span",...M("section"),mod:{position:"left"},children:x}),y.jsxs(Me,{...M("body"),mod:{"no-wrap":T},children:[y.jsx(Me,{component:"span",...M("label"),children:k}),y.jsx(Me,{component:"span",mod:{active:g},...M("description"),children:C})]}),(Y||w!==void 0)&&y.jsx(Me,{...M("section"),component:"span",mod:{rotate:j&&!_,position:"right"},children:Y?w!==void 0?w:y.jsx(OA,{...M("chevron")}):w})]}),Y&&y.jsx(Hre,{in:j,...M("collapse"),children:y.jsx("div",{...M("children"),children:f})})]})});_ae.classes=kae,_ae.displayName="@mantine/core/NavLink";var Eae={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const Cst={withCloseButton:!0},Tst=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:un(r),"--notification-color":n?Vo(n,e):void 0}}),Sae=Ze((e,r)=>{const n=De("Notification",Cst,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,$=dt({name:"Notification",classes:Eae,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:Tst});return y.jsxs(Me,{...$("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(Np,{size:28,color:a,...R,...$("loader")}),y.jsxs("div",{...$("body"),children:[u&&y.jsx("div",{...$("title"),children:u}),y.jsx(Me,{...$("description"),mod:{"data-with-title":!!u},children:p})]}),s&&y.jsx(Dp,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...$("closeButton")})]})});Sae.classes=Eae,Sae.displayName="@mantine/core/Notification";const Rst={duration:100,transition:"fade"};function Cae(e,r){return{...Rst,...r,...e}}function Ast({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:l,y:s,elements:c,refs:u,update:d,placement:p}=mA({placement:r,middleware:[cA({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=E.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 E.useEffect(()=>{if(u.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=pc(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 h5={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const Nst={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:wl("popover")},Dst=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:un(r),"--tooltip-bg":n?Vo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),iN=Ze((e,r)=>{const n=De("TooltipFloating",Nst,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,$=yo(),M=dt({name:"TooltipFloating",props:n,classes:h5,className:s,style:l,classNames:c,styles:u,unstyled:d,attributes:D,rootSelector:"tooltip",vars:R,varsResolver:Dst}),{handleMouseMove:j,x:L,y:Y,opened:O,boundaryRef:U,floating:I,setOpened:q}=Ast({offset:b,position:x,defaultOpened:_});if(!xl(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 V=Jr(U,E4(o),r),G=o.props,F=Q=>{G.onMouseEnter?.(Q),j(Q),q(!0)},J=Q=>{G.onMouseLeave?.(Q),q(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(Ap,{...A,withinPortal:i,children:y.jsx(Me,{...N,...M("tooltip",{style:{...VR(l,$),zIndex:k,display:!C&&O?"block":"none",top:(Y&&Math.round(Y))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:I,mod:{multiline:w},children:g})}),E.cloneElement(o,{...G,[a]:V,onMouseEnter:F,onMouseLeave:J})]})});iN.classes=h5,iN.displayName="@mantine/core/TooltipFloating";const Tae=E.createContext(!1),Pst=Tae.Provider,$st=()=>E.useContext(Tae),Mst={openDelay:0,closeDelay:0};function lN(e){const{openDelay:r,closeDelay:n,children:o}=De("TooltipGroup",Mst,e);return y.jsx(Pst,{value:!0,children:y.jsx(_ne,{delay:{open:r,close:n},children:o})})}lN.displayName="@mantine/core/TooltipGroup",lN.extend=e=>e;function Ost(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 Ist(e){const r=Ost(e.middlewares),n=[pne(e.offset)];return r.shift&&n.push(cA(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?H4():H4(r.flip)),n.push(fne({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?Xy():Xy(r.inline)):e.inline&&n.push(Xy()),n}function Lst(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=$st(),i=_l(),l=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:s,y:c,context:u,refs:d,placement:p,middlewareData:{arrow:{x:f,y:g}={}}}=mA({strategy:e.strategy,placement:e.position,open:o,onOpenChange:l,middleware:Ist(e),whileElementsMounted:lA}),{delay:b,currentId:x,setCurrentId:w}=jat(u,{id:i}),{getReferenceProps:k,getFloatingProps:C}=Yat([zat(u,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),Vat(u,{enabled:e.events?.focus,visibleOnly:!0}),Gat(u,{role:"tooltip"}),qat(u,{enabled:typeof e.opened>"u"})]);kp(()=>{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 Rae={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:wl("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},zst=(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:un(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},f5=Ze((e,r)=>{const n=De("Tooltip",Rae,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:M,multiline:j,events:L,zIndex:Y,disabled:O,positionDependencies:U,onClick:I,onMouseEnter:q,onMouseLeave:V,inline:G,variant:F,keepMounted:J,vars:Q,portalProps:z,mod:W,floatingStrategy:X,middlewares:Z,autoContrast:oe,attributes:ee,target:re,...pe}=De("Tooltip",Rae,n),{dir:Ce}=cc(),ce=E.useRef(null),de=Lst({position:qne(Ce,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:[...U,re??o],inline:G,strategy:X,middlewares:Z});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&de.reference(Qe)},[re,de]);const be=dt({name:"Tooltip",props:n,classes:h5,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ee,rootSelector:"tooltip",vars:Q,varsResolver:zst});if(!re&&!xl(o))return null;if(re){const Qe=Cae(M,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(Ap,{...z,withinPortal:f,children:y.jsx(Tl,{...Qe,keepMounted:J,mounted:!O&&!!de.opened,duration:de.isGroupPhase?10:Qe.duration,children:St=>y.jsxs(Me,{...pe,"data-fixed":X==="fixed"||void 0,variant:F,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...St,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(W4,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...be("arrow")})]})})})})}const Oe=o,Xe=Oe.props,Ge=Jr(de.reference,E4(Oe),r),_t=Cae(M,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(Ap,{...z,withinPortal:f,children:y.jsx(Tl,{..._t,keepMounted:J,mounted:!O&&!!de.opened,duration:de.isGroupPhase?10:_t.duration,children:Qe=>y.jsxs(Me,{...pe,"data-fixed":X==="fixed"||void 0,variant:F,mod:[{multiline:j},W],...de.getFloatingProps({ref:de.floating,className:be("tooltip").className,style:{...be("tooltip").style,...Qe,zIndex:Y,top:de.y??0,left:de.x??0}}),children:[l,y.jsx(W4,{ref:ce,arrowX:de.arrowX,arrowY:de.arrowY,visible:T,position:de.placement,arrowSize:R,arrowOffset:A,arrowRadius:D,arrowPosition:N,...be("arrow")})]})})}),E.cloneElement(Oe,de.getReferenceProps({onClick:I,onMouseEnter:q,onMouseLeave:V,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:eo(_,Xe.className),...Xe,[i]:Ge}))]})});f5.classes=h5,f5.displayName="@mantine/core/Tooltip",f5.Floating=iN,f5.Group=lN;var Aae={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const Bst={withItemsBorders:!0},jst=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:un(r),"--sc-color":n?Vo(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":er(a,"sc-padding"),"--sc-font-size":Mo(a)}}),Nae=Ze((e,r)=>{const n=De("SegmentedControl",Bst,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:M,attributes:j,...L}=n,Y=dt({name:"SegmentedControl",props:n,classes:Aae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:j,vars:c,varsResolver:jst}),O=yo(),U=u.map(re=>typeof re=="string"?{label:re,value:re}:re),I=Jrt(),[q,V]=E.useState(PR()),[G,F]=E.useState(null),[J,Q]=E.useState({}),z=(re,pe)=>{J[pe]=re,Q(J)},[W,X]=Nu({value:d,defaultValue:p,finalValue:Array.isArray(u)?U.find(re=>!re.disabled)?.value??u[0]?.value??null:null,onChange:f}),Z=_l(b),oe=U.map(re=>E.createElement(Me,{...Y("control"),mod:{active:W===re.value,orientation:C},key:re.value},E.createElement("input",{...Y("input"),disabled:x||re.disabled,type:"radio",name:Z,value:re.value,id:`${Z}-${re.value}`,checked:W===re.value,onChange:()=>!w&&X(re.value),"data-focus-ring":O.focusRing,key:`${re.value}-input`}),E.createElement(Me,{component:"label",...Y("label"),mod:{active:W===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${Z}-${re.value}`,ref:pe=>z(pe,re.value),__vars:{"--sc-label-color":T!==void 0?zR({color:T,theme:O,autoContrast:N}):void 0},key:`${re.value}-label`},y.jsx("span",{...Y("innerLabel"),children:re.label})))),ee=Jr(r,re=>F(re));return Grt(()=>{V(PR())},[u.length]),u.length===0?null:y.jsxs(Me,{...Y("root"),variant:D,size:g,ref:ee,mod:[{"full-width":k,orientation:C,initialized:I,"with-items-borders":$},M],...L,role:"radiogroup","data-disabled":x,children:[typeof W=="string"&&y.jsx(MA,{target:J[W],parent:G,component:"span",transitionDuration:"var(--sc-transition-duration)",...Y("indicator")},q),oe]})});Nae.classes=Aae,Nae.displayName="@mantine/core/SegmentedControl";const Fst={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},Dae=Ze((e,r)=>{const n=De("Select",Fst,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:M,size:j,searchable:L,rightSection:Y,checkIconPosition:O,withCheckIcon:U,nothingFoundMessage:I,name:q,form:V,searchValue:G,defaultSearchValue:F,onSearchChange:J,allowDeselect:Q,error:z,rightSectionPointerEvents:W,id:X,clearable:Z,clearButtonProps:oe,hiddenInputProps:ee,renderOption:re,onClear:pe,autoComplete:Ce,scrollAreaProps:ce,__defaultRightSection:de,__clearSection:be,__clearable:Oe,chevronColor:Xe,autoSelectOnBlur:Ge,attributes:_t,...Qe}=n,St=E.useMemo(()=>ult(x),[x]),Ke=E.useRef({}),We=E.useMemo(()=>woe(St),[St]),st=_l(X),[Et,Pn,_e]=Nu({value:w,defaultValue:k,finalValue:null,onChange:b}),we=typeof Et=="string"?Et in We?We[Et]:Ke.current[Et]:void 0,rt=Zrt(we),[at,Dt,Wr]=Nu({value:G,defaultValue:F,finalValue:we?we.label:"",onChange:J}),Pt=Toe({opened:s,defaultOpened:c,onDropdownOpen:()=>{d?.(),Pt.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{u?.(),setTimeout(Pt.resetSelectedOption,0)}}),Tr=ur=>{Dt(ur),Pt.resetSelectedOption()},{resolvedClassNames:vo,resolvedStyles:$n}=BR({props:n,styles:a,classNames:o});E.useEffect(()=>{C&&Pt.selectFirstOption()},[C,at]),E.useEffect(()=>{w===null&&Tr(""),typeof w=="string"&&we&&(rt?.value!==we.value||rt?.label!==we.label)&&Tr(we.label)},[w,we]),E.useEffect(()=>{!_e&&!Wr&&Tr(typeof Et=="string"?Et in We?We[Et]?.label:Ke.current[Et]?.label||"":"")},[We,Et]),E.useEffect(()=>{Et&&Et in We&&(Ke.current[Et]=We[Et])},[We,Et]);const Fr=y.jsx(gr.ClearButton,{...oe,onClear:()=>{Pn(null,null),Tr(""),pe?.()}}),no=Z&&!!Et&&!A&&!R;return y.jsxs(y.Fragment,{children:[y.jsxs(gr,{store:Pt,__staticSelector:"Select",classNames:vo,styles:$n,unstyled:i,readOnly:R,size:j,attributes:_t,keepMounted:Ge,onOptionSubmit:ur=>{_?.(ur);const ha=Q&&We[ur].value===Et?null:We[ur],_s=ha?ha.value:null;_s!==Et&&Pn(_s,ha),!_e&&Tr(typeof _s=="string"&&ha?.label||""),Pt.closeDropdown()},...T,children:[y.jsx(gr.Target,{targetType:L?"input":"button",autoComplete:Ce,children:y.jsx(t5,{id:st,ref:r,__defaultRightSection:y.jsx(gr.Chevron,{size:j,error:z,unstyled:i,color:Xe}),__clearSection:Fr,__clearable:no,rightSection:Y,rightSectionPointerEvents:W||"none",...Qe,size:j,__staticSelector:"Select",disabled:A,readOnly:R||!L,value:at,onChange:ur=>{Tr(ur.currentTarget.value),Pt.openDropdown(),C&&Pt.selectFirstOption()},onFocus:ur=>{L&&Pt.openDropdown(),p?.(ur)},onBlur:ur=>{Ge&&Pt.clickSelectedOption(),L&&Pt.closeDropdown();const ha=typeof Et=="string"&&(Et in We?We[Et]:Ke.current[Et]);Tr(ha&&ha.label||""),f?.(ur)},onClick:ur=>{L?Pt.openDropdown():Pt.toggleDropdown(),g?.(ur)},classNames:vo,styles:$n,unstyled:i,pointer:!L,error:z,attributes:_t})}),y.jsx(Tlt,{data:St,hidden:R||A,filter:D,search:at,limit:N,hiddenWhenEmpty:!I,withScrollArea:$,maxDropdownHeight:M,filterOptions:!!L&&we?.label!==at,value:Et,checkIconPosition:O,withCheckIcon:U,nothingFoundMessage:I,unstyled:i,labelId:Qe.label?`${st}-label`:void 0,"aria-label":Qe.label?void 0:Qe["aria-label"],renderOption:re,scrollAreaProps:ce})]}),y.jsx(gr.HiddenInput,{value:Et,name:q,form:V,disabled:A,...ee})]})});Dae.classes={...t5.classes,...gr.classes},Dae.displayName="@mantine/core/Select";function Hst({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=yo(),i=r===void 0?e:r,l=Au({"--sg-spacing-x":Jn(kl(e)),"--sg-spacing-y":Jn(kl(i)),"--sg-cols":kl(n)?.toString()}),s=$o(a.breakpoints).reduce((u,d)=>(u[d]||(u[d]={}),typeof e=="object"&&e[d]!==void 0&&(u[d]["--sg-spacing-x"]=Jn(e[d])),typeof i=="object"&&i[d]!==void 0&&(u[d]["--sg-spacing-y"]=Jn(i[d])),typeof n=="object"&&n[d]!==void 0&&(u[d]["--sg-cols"]=n[d]),u),{}),c=DR($o(s),a.breakpoints).filter(u=>$o(s[u.value]).length>0).map(u=>({query:`(min-width: ${a.breakpoints[u.value]})`,styles:s[u.value]}));return y.jsx(Mm,{styles:l,media:c,selector:o})}function sN(e){return typeof e=="object"&&e!==null?$o(e):[]}function qst(e){return e.sort((r,n)=>k4(r)-k4(n))}function Ust({spacing:e,verticalSpacing:r,cols:n}){const o=Array.from(new Set([...sN(e),...sN(r),...sN(n)]));return qst(o)}function Vst({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=r===void 0?e:r,i=Au({"--sg-spacing-x":Jn(kl(e)),"--sg-spacing-y":Jn(kl(a)),"--sg-cols":kl(n)?.toString()}),l=Ust({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"]=Jn(e[d])),typeof a=="object"&&a[d]!==void 0&&(u[d]["--sg-spacing-y"]=Jn(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(Mm,{styles:i,container:c,selector:o})}var Pae={container:"m_925c2d2c",root:"m_2415a157"};const Yst={cols:1,spacing:"md",type:"media"},$ae=Ze((e,r)=>{const n=De("SimpleGrid",Yst,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=dt({name:"SimpleGrid",classes:Pae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c}),w=Vy();return f==="container"?y.jsxs(y.Fragment,{children:[y.jsx(Vst,{...n,selector:`.${w}`}),y.jsx("div",{...x("container"),children:y.jsx(Me,{ref:r,...x("root",{className:w}),...b})})]}):y.jsxs(y.Fragment,{children:[y.jsx(Hst,{...n,selector:`.${w}`}),y.jsx(Me,{ref:r,...x("root",{className:w}),...b})]})});$ae.classes=Pae,$ae.displayName="@mantine/core/SimpleGrid";const[Wst,m5]=$a("SliderProvider was not found in tree"),Mae=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...l},s)=>{const{getStyles:c}=m5();return y.jsx(Me,{tabIndex:-1,variant:n,size:e,ref:s,...c("root"),...l})});Mae.displayName="@mantine/core/SliderRoot";const Oae=E.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}=m5(),[_,T]=E.useState(!1),R=u||i||_||g&&b;return y.jsxs(Me,{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(Tl,{mounted:a!=null&&!!R,transition:"fade",duration:0,...c,children:A=>y.jsx("div",{...C("label",{style:A}),children:a})})]})});Oae.displayName="@mantine/core/SliderThumb";function Iae({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function Gst({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 Lae({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:l}){const{getStyles:s}=m5();if(!e)return null;const c=e.map((u,d)=>E.createElement(Me,{...s("markWrapper"),__vars:{"--mark-offset":`${Iae({value:u.value,min:r,max:n})}%`},key:d},y.jsx(Me,{...s("mark"),mod:{filled:Gst({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})}Lae.displayName="@mantine/core/SliderMarks";function zae({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:l,...s}){const{getStyles:c}=m5();return y.jsx(Me,{...c("trackContainer"),mod:{disabled:o},...l,children:y.jsxs(Me,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Me,{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(Lae,{...s,offset:a,disabled:o,inverted:i})]})})}zae.displayName="@mantine/core/SliderTrack";function Xst({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 g5(e,r){return parseFloat(e.toFixed(r))}function Kst(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function cN(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function uN(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.value<e);return n?n.value:e}function Bae(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[0].value:0}function jae(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var Fae={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 Zst={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"},Qst=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":er(r,"slider-size"),"--slider-color":n?Vo(n,e):void 0,"--slider-radius":a===void 0?void 0:un(a),"--slider-thumb-size":o!==void 0?Fe(o):"calc(var(--slider-size) * 2)"}}),Hae=Ze((e,r)=>{const n=De("Slider",Zst,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:M,className:j,style:L,vars:Y,hiddenInputProps:O,restrictToMarks:U,thumbProps:I,attributes:q,...V}=n,G=dt({name:"Slider",props:n,classes:Fae,classNames:o,className:j,styles:a,style:L,attributes:q,vars:Y,varsResolver:Qst,unstyled:N}),{dir:F}=cc(),[J,Q]=E.useState(!1),[z,W]=Nu({value:typeof i=="number"?Dm(i,u,d):i,defaultValue:typeof b=="number"?Dm(b,u,d):b,finalValue:Dm(0,u,d),onChange:l}),X=E.useRef(z),Z=E.useRef(s);E.useEffect(()=>{Z.current=s},[s]);const oe=E.useRef(null),ee=E.useRef(null),[re,pe]=p||[u,d],Ce=Iae({value:z,min:re,max:pe}),ce=$(z),de=typeof k=="function"?k(ce):k,be=g??Kst(f),Oe=E.useCallback(({x:Ke})=>{if(!D){const We=Xst({value:Ke,min:re,max:pe,step:f,precision:be}),st=Dm(We,u,d);W(U&&w?.length?Tre(st,w.map(Et=>Et.value)):st),X.current=st}},[D,u,d,re,pe,f,be,W,w,U]),Xe=E.useCallback(()=>{if(!D&&Z.current){const Ke=U&&w?.length?Tre(X.current,w.map(We=>We.value)):X.current;Z.current(Ke)}},[D,w,U]),{ref:Ge,active:_t}=Vrt(Oe,{onScrubEnd:Xe},F),Qe=E.useCallback(Ke=>{!D&&Z.current&&Z.current(Ke)},[D]),St=Ke=>{if(!D)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=cN(z,w);W(st),Qe(st);break}const We=g5(Math.min(Math.max(z+f,u),d),be);W(We),Qe(We);break}case"ArrowRight":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=F==="rtl"?uN(z,w):cN(z,w);W(st),Qe(st);break}const We=g5(Math.min(Math.max(F==="rtl"?z-f:z+f,u),d),be);W(We),Qe(We);break}case"ArrowDown":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=uN(z,w);W(st),Qe(st);break}const We=g5(Math.min(Math.max(z-f,u),d),be);W(We),Qe(We);break}case"ArrowLeft":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){const st=F==="rtl"?cN(z,w):uN(z,w);W(st),Qe(st);break}const We=g5(Math.min(Math.max(F==="rtl"?z+f:z-f,u),d),be);W(We),Qe(We);break}case"Home":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){W(Bae(w)),Qe(Bae(w));break}W(u),Qe(u);break}case"End":{if(Ke.preventDefault(),ee.current?.focus(),U&&w){W(jae(w)),Qe(jae(w));break}W(d),Qe(d);break}}};return y.jsx(Wst,{value:{getStyles:G},children:y.jsxs(Mae,{...V,ref:Jr(r,oe),onKeyDownCapture:St,onMouseDownCapture:()=>oe.current?.focus(),size:c,disabled:D,children:[y.jsx(zae,{inverted:M,offset:0,filled:Ce,marks:w,min:re,max:pe,value:ce,disabled:D,containerProps:{ref:Ge,onMouseEnter:R?()=>Q(!0):void 0,onMouseLeave:R?()=>Q(!1):void 0},children:y.jsx(Oae,{max:pe,min:re,value:ce,position:Ce,dragging:_t,label:de,ref:ee,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:R,isHovered:J,disabled:D,...I,children:A})}),y.jsx("input",{type:"hidden",name:x,value:ce,...O})]})})});Hae.classes=Fae,Hae.displayName="@mantine/core/Slider";const Jst=Ze((e,r)=>{const{w:n,h:o,miw:a,mih:i,...l}=De("Space",null,e);return y.jsx(Me,{ref:r,...l,w:n,miw:a??n,h:o,mih:i??o})});Jst.displayName="@mantine/core/Space";var qae={root:"m_6d731127"};const ect={gap:"md",align:"stretch",justify:"flex-start"},tct=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Jn(r),"--stack-align":n,"--stack-justify":o}}),Uae=Ze((e,r)=>{const n=De("Stack",ect,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=dt({name:"Stack",props:n,classes:qae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:tct});return y.jsx(Me,{ref:r,...x("root"),variant:f,...b})});Uae.classes=qae,Uae.displayName="@mantine/core/Stack";const[rct,dN]=$a("Tabs component was not found in the tree");var tb={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 pN=Ze((e,r)=>{const n=De("TabsList",null,e),{children:o,className:a,grow:i,justify:l,classNames:s,styles:c,style:u,mod:d,...p}=n,f=dN();return y.jsx(Me,{...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})});pN.classes=tb,pN.displayName="@mantine/core/TabsList";const hN=Ze((e,r)=>{const n=De("TabsPanel",null,e),{children:o,className:a,value:i,classNames:l,styles:s,style:c,mod:u,keepMounted:d,...p}=n,f=dN(),g=f.value===i,b=f.keepMounted||d||g?o:null;return y.jsx(Me,{...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})});hN.classes=tb,hN.displayName="@mantine/core/TabsPanel";const fN=Ze((e,r)=>{const n=De("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,_=yo(),{dir:T}=cc(),R=dN(),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(fs,{...C,...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?Vo(p,_):void 0},onKeyDown:AR({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:R.activateTabWithKeyboard,loop:R.loop,orientation:R.orientation||"horizontal",dir:T,onKeyDown:u}),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})]})});fN.classes=tb,fN.displayName="@mantine/core/TabsTab";const Vae="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",nct={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},oct=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":un(r),"--tabs-color":Vo(n,e),"--tabs-text-color":Ont(o,e)?zR({color:n,theme:e,autoContrast:o}):void 0}}),rb=Ze((e,r)=>{const n=De("Tabs",nct,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:M,...j}=n,L=_l(u),[Y,O]=Nu({value:a,defaultValue:o,finalValue:null,onChange:i}),U=dt({name:"Tabs",props:n,classes:tb,className:R,style:A,classNames:C,styles:_,unstyled:T,attributes:M,vars:D,varsResolver:oct});return y.jsx(rct,{value:{placement:w,value:Y,orientation:l,id:L,loop:c,activateTabWithKeyboard:d,getTabId:vre(`${L}-tab`,Vae),getPanelId:vre(`${L}-panel`,Vae),onChange:O,allowTabDeactivation:p,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:U},children:y.jsx(Me,{ref:r,id:L,variant:f,mod:[{orientation:l,inverted:l==="horizontal"&&x,placement:l==="vertical"&&w},$],...U("root"),...j,children:s})})});rb.classes=tb,rb.displayName="@mantine/core/Tabs",rb.Tab=fN,rb.Panel=hN,rb.List=pN;var Yae={root:"m_7341320d"};const act=(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":er(r,"ti-size"),"--ti-radius":n===void 0?void 0:un(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}}},Wae=Ze((e,r)=>{const n=De("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,autoContrast:u,attributes:d,...p}=n,f=dt({name:"ThemeIcon",classes:Yae,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d,vars:c,varsResolver:act});return y.jsx(Me,{ref:r,...f("root"),...p})});Wae.classes=Yae,Wae.displayName="@mantine/core/ThemeIcon";const ict=["h1","h2","h3","h4","h5","h6"],lct=["xs","sm","md","lg","xl"];function sct(e,r){const n=r!==void 0?r:`h${e}`;return ict.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 Gae={root:"m_8a5d1357"};const cct={order:1},uct=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=sct(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}}},Xae=Ze((e,r)=>{const n=De("Title",cct,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=dt({name:"Title",props:n,classes:Gae,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:u,varsResolver:uct});return[1,2,3,4,5,6].includes(c)?y.jsx(Me,{...k("root"),component:`h${c}`,variant:p,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},b],size:d,...w}):null});Xae.classes=Gae,Xae.displayName="@mantine/core/Title";function Kae(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 mN({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=E.useRef(null),b=(e.children||[]).map(_=>y.jsx(mN,{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&&Hy(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=Hy(_.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(Kae(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(Kae(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(Me,{component:"ul",role:"group",...r("subtree"),"data-level":s,children:b})]})}mN.displayName="@mantine/core/TreeNode";function y5(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=y5(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 Zae(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=Zae(e,n.children);if(o)return o}}return null}function b5(e,r,n=[]){const o=Zae(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?b5(a.value,r,n):n.push(a.value)}),n):n}function Qae(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...Qae(n.children)):r.push(n.value),r),[])}function dct(e,r,n){return n.length===0?!1:n.includes(e)?!0:y5(r,n).result.some(o=>o.value===e&&o.checked)}const pct=Cre(dct);function hct(e,r,n){return n.length===0?!1:y5(r,n).result.some(o=>o.value===e&&o.indeterminate)}const fct=Cre(hct);function Jae(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)&&Jae(e,a.children,n,o)}),o}function mct(e,r){const n=[];return e.forEach(o=>n.push(...b5(o,r))),Array.from(new Set(n))}function gct({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[l,s]=E.useState([]),[c,u]=E.useState(n),[d,p]=E.useState(e),[f,g]=E.useState(r),[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(I=>{u(q=>Jae(q,I,d)),g(q=>mct(q,I)),s(I)},[d,f]),_=E.useCallback(I=>{u(q=>{const V={...q,[I]:!q[I]};return V[I]?i?.(I):a?.(I),V})},[a,i]),T=E.useCallback(I=>{u(q=>(q[I]!==!1&&a?.(I),{...q,[I]:!1}))},[a]),R=E.useCallback(I=>{u(q=>(q[I]!==!0&&i?.(I),{...q,[I]:!0}))},[i]),A=E.useCallback(()=>{u(I=>{const q={...I};return Object.keys(q).forEach(V=>{q[V]=!0}),q})},[]),D=E.useCallback(()=>{u(I=>{const q={...I};return Object.keys(q).forEach(V=>{q[V]=!1}),q})},[]),N=E.useCallback(I=>p(q=>o?q.includes(I)?(x(null),q.filter(V=>V!==I)):(x(I),[...q,I]):q.includes(I)?(x(null),[]):(x(I),[I])),[]),$=E.useCallback(I=>{x(I),p(q=>o?q.includes(I)?q:[...q,I]:[I])},[]),M=E.useCallback(I=>{b===I&&x(null),p(q=>q.filter(V=>V!==I))},[]),j=E.useCallback(()=>{p([]),x(null)},[]),L=E.useCallback(I=>{const q=b5(I,l);g(V=>Array.from(new Set([...V,...q])))},[l]),Y=E.useCallback(I=>{const q=b5(I,l);g(V=>V.filter(G=>!q.includes(G)))},[l]),O=E.useCallback(()=>{g(()=>Qae(l))},[l]),U=E.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:O,uncheckAllNodes:U,setCheckedState:g,toggleSelected:N,select:$,deselect:M,clearSelected:j,setSelectedState:p,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>y5(l,f).result,isNodeChecked:I=>pct(I,l,f),isNodeIndeterminate:I=>fct(I,l,f)}}var eie={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function tie(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...tie(n.children)),r),[])}const yct={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},bct=(e,{levelOffset:r})=>({root:{"--level-offset":Jn(r)}}),rie=Ze((e,r)=>{const n=De("Tree",yct,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=gct(),A=p||R,D=dt({name:"Tree",classes:eie,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:bct}),N=xre(()=>b&&A.clearSelected()),$=Jr(r,N),M=E.useMemo(()=>tie(u),[u]);E.useEffect(()=>{A.initialize(u)},[u]);const j=u.map((L,Y)=>y.jsx(mN,{node:L,getStyles:D,rootIndex:Y,expandOnClick:d,selectOnClick:g,controller:A,renderNode:f,flatValues:M,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},L.value));return y.jsx(Me,{component:"ul",ref:$,...D("root"),...T,role:"tree","aria-multiselectable":A.multiple,"data-tree-root":!0,children:j})});rie.displayName="@mantine/core/Tree",rie.classes=eie;var vct="Invariant failed";function v5(e,r){if(!e)throw new Error(vct)}function xct(e){return typeof e=="function"}function nie(e,r){return xct(e)?e(r):e}function wct(e,r){return r.reduce((n,o)=>(n[o]=e[o],n),{})}function oie(e,r){if(e===r)return e;const n=r,o=iie(e)&&iie(n);if(o||x5(e)&&x5(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]=oie(e[p],n[p]),c[p]===e[p]&&e[p]!==void 0&&u++)}return i===s&&u===i?e:c}return n}function x5(e){if(!aie(e))return!1;const r=e.constructor;if(typeof r>"u")return!0;const n=r.prototype;return!(!aie(n)||!n.hasOwnProperty("isPrototypeOf"))}function aie(e){return Object.prototype.toString.call(e)==="[object Object]"}function iie(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function lie(e,r){let n=Object.keys(e);return r&&(n=n.filter(o=>e[o]!==void 0)),n}function gN(e,r,n){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(x5(e)&&x5(r)){const o=n?.ignoreUndefined??!0,a=lie(e,o),i=lie(r,o);return!n?.partial&&a.length!==i.length?!1:i.every(l=>gN(e[l],r[l],n))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((o,a)=>!gN(o,r[a],n)):!1}function kct(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 w5(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function _ct(e,r,n){return w5(e,n)===w5(r,n)}function k5(e){return!!e?.isNotFound}const sie="tsr-scroll-restoration-v1_3";let cie=!1;try{cie=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}cie&&JSON.parse(window.sessionStorage.getItem(sie)||"null");const uie=e=>e.state.key||e.href;function Ect(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 die="__root__";function Sct(e){return!!e?.isRedirect}function Cct(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 Tct="Error preloading route! ☝️";function pie(e){const r=e.errorComponent??yN;return y.jsx(Rct,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?E.createElement(r,{error:n,reset:o}):e.children})}class Rct extends E.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 yN({error:e}){const[r,n]=E.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 hie={exports:{}},bN={},fie={exports:{}},vN={};/**
* @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 mie;function Act(){if(mie)return vN;mie=1;var e=Xr;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 vN.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,vN}var gie;function Nct(){return gie||(gie=1,fie.exports=Act()),fie.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 yie;function Dct(){if(yie)return bN;yie=1;var e=Xr,r=Nct();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 bN.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},bN}var bie;function Pct(){return bie||(bie=1,hie.exports=Dct()),hie.exports}var vie=Pct();const $ct=sae(vie);function Mct(e,r=n=>n){return vie.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,Oct)}function Oct(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 xN=E.createContext(null);function Ict(){return typeof document>"u"?xN:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=xN,xN)}function Pp(e){const r=E.useContext(Ict());return e?.warn,r}function Al(e){const r=Pp({warn:e?.router===void 0}),n=e?.router||r,o=E.useRef(void 0);return Mct(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=oie(o.current,e.select(a));return o.current=i,i}return e.select(a)}return a})}const xie=E.createContext(void 0);E.createContext(void 0);function Lct(e){const r=Al({select:n=>`not-found-${n.location.pathname}-${n.status}`});return y.jsx(pie,{getResetKey:()=>r,onCatch:(n,o)=>{var a;if(k5(n))(a=e.onCatch)==null||a.call(e,n,o);else throw n},errorComponent:({error:n})=>{var o;if(k5(n))return(o=e.fallback)==null?void 0:o.call(e,n);throw n},children:e.children})}function zct(){return y.jsx("p",{children:"Not Found"})}function wN(e){return y.jsx(y.Fragment,{children:e.children})}function wie(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(zct,{})}var kN,kie;function Bct(){if(kie)return kN;kie=1;const e={},r=e.hasOwnProperty,n=(N,$)=>{for(const M in N)r.call(N,M)&&$(M,N[M])},o=(N,$)=>($&&n($,(M,j)=>{N[M]=j}),N),a=(N,$)=>{const M=N.length;let j=-1;for(;++j<M;)$(N[j])},i=N=>"\\u"+("0000"+N).slice(-4),l=(N,$)=>{let M=N.toString(16);return $?M:M.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 M=()=>{q=I,++$.indentLevel,I=$.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"?"`":"'",O=$.compact,U=$.lowercaseHex;let I=$.indent.repeat($.indentLevel),q="";const V=$.__inline1__,G=$.__inline2__,F=O?"":`
`;let J,Q=!0;const z=$.numbers=="binary",W=$.numbers=="octal",X=$.numbers=="decimal",Z=$.numbers=="hexadecimal";if(L&&N&&b(N.toJSON)&&(N=N.toJSON()),!p(N)){if(x(N))return N.size==0?"new Map()":(O||($.__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 J=[],$.wrap=!0,V&&($.__inline1__=!1,$.__inline2__=!0),G||M(),a(N,ee=>{Q=!1,G&&($.__inline2__=!1),J.push((O||G?"":I)+D(ee,$))}),Q?"[]":G?"["+J.join(", ")+"]":"["+F+J.join(","+F)+F+(O?"":q)+"]";if(f(N)||g(N)){if(L)return JSON.stringify(Number(N));let ee;if(X)ee=String(N);else if(Z){let re=N.toString(16);U||(re=re.toUpperCase()),ee="0x"+re}else z?ee="0b"+N.toString(2):W&&(ee="0o"+N.toString(8));return g(N)?ee+"n":ee}else return g(N)?L?JSON.stringify(Number(N)):N+"n":d(N)?(J=[],$.wrap=!0,M(),n(N,(ee,re)=>{Q=!1,J.push((O?"":I)+D(ee,$)+":"+(O?"":" ")+D(re,$))}),Q?"{}":"{"+F+J.join(","+F)+F+(O?"":q)+"}"):L?JSON.stringify(N)||"null":String(N)}const oe=$.escapeEverything?R:A;return J=N.replace(oe,(ee,re,pe,Ce,ce,de)=>{if(re){if($.minimal)return re;const Oe=re.charCodeAt(0),Xe=re.charCodeAt(1);if($.es6){const Ge=(Oe-55296)*1024+Xe-56320+65536;return"\\u{"+l(Ge,U)+"}"}return i(l(Oe,U))+i(l(Xe,U))}if(pe)return i(l(pe.charCodeAt(0),U));if(ee=="\0"&&!L&&!_.test(de.charAt(ce+1)))return"\\0";if(Ce)return Ce==Y||$.escapeEverything?"\\"+Ce:Ce;if(C.test(ee))return k[ee];if($.minimal&&!T.test(ee))return ee;const be=l(ee.charCodeAt(0),U);return L||be.length>2?i(be):"\\x"+("00"+be).slice(-2)}),Y=="`"&&(J=J.replace(/\$\{/g,"\\${")),$.isScriptContext&&(J=J.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,L?"\\u003C!--":"\\x3C!--")),$.wrap&&(J=Y+J+Y),J};return D.version="3.0.2",kN=D,kN}Bct();function jct({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 Fct(){const e=Pp(),r=(e.options.getScrollRestorationKey||uie)(e.latestLocation),n=r!==uie(e.latestLocation)?r:null;return!e.isScrollRestoring||!e.isServer?null:y.jsx(jct,{children:`(${Ect.toString()})(${JSON.stringify(sie)},${JSON.stringify(n)}, undefined, true)`,log:!1})}const Hct=E.memo(function({matchId:e}){var r,n;const o=Pp(),a=Al({select:w=>{var k;return(k=w.matches.find(C=>C.id===e))==null?void 0:k.routeId}});v5(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))?E.Suspense:wN,f=c?pie:wN,g=d?Lct:wN,b=Al({select:w=>w.loadedAt}),x=Al({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(xie.Provider,{value:e,children:y.jsx(p,{fallback:s,children:y.jsx(f,{getResetKey:()=>b,errorComponent:c||yN,onCatch:(w,k)=>{if(k5(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 E.createElement(d,w)},children:y.jsx(Uct,{matchId:e})})})})}),x===die&&o.options.scrollRestoration?y.jsxs(y.Fragment,{children:[y.jsx(qct,{}),y.jsx(Fct,{})]}):null]})});function qct(){var e;const r=Pp(),n=E.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",...Cct(r.state)}),n.current=r.state.resolvedLocation)}},(e=r.state.resolvedLocation)==null?void 0:e.state.key)}const Uct=E.memo(function({matchId:e}){var r,n,o;const a=Pp(),{match:i,key:l,routeId:s}=Al({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:wct(g,["id","status","error"])}},structuralSharing:!0}),c=a.routesById[s],u=E.useMemo(()=>{const p=c.options.component??a.options.defaultComponent;return p?y.jsx(p,{},l):y.jsx(Vct,{})},[l,c.options.component,a.options.defaultComponent]),d=(c.options.errorComponent??a.options.defaultErrorComponent)||yN;if(i.status==="notFound")return v5(k5(i.error)),wie(a,c,i.error);if(i.status==="redirected")throw v5(Sct(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=kct();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}),Vct=E.memo(function(){const e=Pp(),r=E.useContext(xie),n=Al({select:c=>{var u;return(u=c.matches.find(d=>d.id===r))==null?void 0:u.routeId}}),o=e.routesById[n],a=Al({select:c=>{const u=c.matches.find(d=>d.id===r);return v5(u),u.globalNotFound}}),i=Al({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 wie(e,o,void 0);if(!i)return null;const l=y.jsx(Hct,{matchId:i}),s=e.options.defaultPendingComponent?y.jsx(e.options.defaultPendingComponent,{}):null;return r===die?y.jsx(E.Suspense,{fallback:s,children:l}):l}),Yct=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Wct(e,r,n={},o={}){const a=E.useRef(typeof IntersectionObserver=="function"),i=E.useRef(null);return E.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 Gct(e){const r=E.useRef(null);return E.useImperativeHandle(e,()=>r.current,[]),r}function Xct(e){return Al({select:r=>{const n=r.matches;return e?.select?e.select(n):n},structuralSharing:e?.structuralSharing})}function Kct(e,r){const n=Pp(),[o,a]=E.useState(!1),i=E.useRef(!1),l=Gct(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:M,onTouchStart:j,ignoreBlocker:L,...Y}=e,{params:O,search:U,hash:I,state:q,mask:V,reloadDocument:G,...F}=Y,J=E.useMemo(()=>{try{return new URL(`${d}`),"external"}catch{}return"internal"},[d]),Q=Al({select:Ke=>Ke.location.search,structuralSharing:!0}),z=Xct({select:Ke=>{var We;return e.from??((We=Ke[Ke.length-1])==null?void 0:We.fullPath)}}),W=E.useMemo(()=>({...e,from:z}),[e,z]),X=E.useMemo(()=>n.buildLocation(W),[n,W,Q]),Z=E.useMemo(()=>W.reloadDocument?!1:p??n.options.defaultPreload,[n.options.defaultPreload,p,W.reloadDocument]),oe=f??n.options.defaultPreloadDelay??0,ee=Al({select:Ke=>{if(u?.exact){if(!_ct(Ke.location.pathname,X.pathname,n.basepath))return!1}else{const We=w5(Ke.location.pathname,n.basepath).split("/");if(!w5(X.pathname,n.basepath).split("/").every((st,Et)=>st===We[Et]))return!1}return(u?.includeSearch??!0)&&!gN(Ke.location.search,X.search,{partial:!u?.exact,ignoreUndefined:!u?.explicitUndefined})?!1:u?.includeHash?Ke.location.hash===X.hash:!0}}),re=E.useCallback(()=>{n.preloadRoute(W).catch(Ke=>{console.warn(Ke),console.warn(Tct)})},[W,n]),pe=E.useCallback(Ke=>{Ke?.isIntersecting&&re()},[re]);if(Wct(l,pe,{rootMargin:"100px"},{disabled:!!T||Z!=="viewport"}),Yct(()=>{i.current||!T&&Z==="render"&&(re(),i.current=!0)},[T,re,Z]),J==="external")return{...F,ref:l,type:J,href:d,...C&&{children:C},..._&&{target:_},...T&&{disabled:T},...R&&{style:R},...A&&{className:A},...D&&{onClick:D},...N&&{onFocus:N},...$&&{onMouseEnter:$},...M&&{onMouseLeave:M},...j&&{onTouchStart:j}};const Ce=Ke=>{if(!T&&!Zct(Ke)&&!Ke.defaultPrevented&&(!_||_==="_self")&&Ke.button===0){Ke.preventDefault(),Bi.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=Ke=>{T||Z&&re()},de=ce,be=Ke=>{if(T)return;const We=Ke.target||{};if(Z){if(We.preloadTimeout)return;We.preloadTimeout=setTimeout(()=>{We.preloadTimeout=null,re()},oe)}},Oe=Ke=>{if(T)return;const We=Ke.target||{};We.preloadTimeout&&(clearTimeout(We.preloadTimeout),We.preloadTimeout=null)},Xe=Ke=>We=>{var st;(st=We.persist)==null||st.call(We),Ke.filter(Boolean).forEach(Et=>{We.defaultPrevented||Et(We)})},Ge=ee?nie(s,{})??{}:{},_t=ee?{}:nie(c,{}),Qe=[A,Ge.className,_t.className].filter(Boolean).join(" "),St={...R,...Ge.style,..._t.style};return{...F,...Ge,..._t,href:T?void 0:X.maskedLocation?n.history.createHref(X.maskedLocation.href):n.history.createHref(X.href),ref:l,onClick:Xe([D,Ce]),onFocus:Xe([N,ce]),onMouseEnter:Xe([$,be]),onMouseLeave:Xe([M,Oe]),onTouchStart:Xe([j,de]),disabled:!!T,target:_,...Object.keys(St).length&&{style:St},...Qe&&{className:Qe},...T&&{role:"link","aria-disabled":!0},...ee&&{"data-status":"active","aria-current":"page"},...o&&{"data-transitioning":"transitioning"}}}E.forwardRef((e,r)=>{const{_asChild:n,...o}=e,{type:a,ref:i,...l}=Kct(o,r),s=typeof o.children=="function"?o.children({isActive:l["data-status"]==="active"}):o.children;return typeof n>"u"&&delete l.disabled,E.createElement(n||"a",{...l,ref:i},s)});function Zct(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Sn(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=Sn(e[n]))!==""&&(r+=(r&&" ")+o);else for(let n in e)e[n]&&(r+=(r&&" ")+n);return r}var Qct={value:()=>{}};function _5(){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 E5(n)}function E5(e){this._=e}function Jct(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}})}E5.prototype=_5.prototype={constructor:E5,on:function(e,r){var n=this._,o=Jct(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i<l;)if((a=(e=o[i]).type)&&(a=eut(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]=_ie(n[a],e.name,r);else if(r==null)for(a in n)n[a]=_ie(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 E5(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 eut(e,r){for(var n=0,o=e.length,a;n<o;++n)if((a=e[n]).name===r)return a.value}function _ie(e,r,n){for(var o=0,a=e.length;o<a;++o)if(e[o].name===r){e[o]=Qct,e=e.slice(0,o).concat(e.slice(o+1));break}return n!=null&&e.push({name:r,value:n}),e}var _N="http://www.w3.org/1999/xhtml";const Eie={svg:"http://www.w3.org/2000/svg",xhtml:_N,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function S5(e){var r=e+="",n=r.indexOf(":");return n>=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Eie.hasOwnProperty(r)?{space:Eie[r],local:e}:e}function tut(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===_N&&r.documentElement.namespaceURI===_N?r.createElement(e):r.createElementNS(n,e)}}function rut(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Sie(e){var r=S5(e);return(r.local?rut:tut)(r)}function nut(){}function EN(e){return e==null?nut:function(){return this.querySelector(e)}}function out(e){typeof e!="function"&&(e=EN(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 Oa(o,this._parents)}function aut(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function iut(){return[]}function Cie(e){return e==null?iut:function(){return this.querySelectorAll(e)}}function lut(e){return function(){return aut(e.apply(this,arguments))}}function sut(e){typeof e=="function"?e=lut(e):e=Cie(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 Oa(o,a)}function Tie(e){return function(){return this.matches(e)}}function Rie(e){return function(r){return r.matches(e)}}var cut=Array.prototype.find;function uut(e){return function(){return cut.call(this.children,e)}}function dut(){return this.firstElementChild}function put(e){return this.select(e==null?dut:uut(typeof e=="function"?e:Rie(e)))}var hut=Array.prototype.filter;function fut(){return Array.from(this.children)}function mut(e){return function(){return hut.call(this.children,e)}}function gut(e){return this.selectAll(e==null?fut:mut(typeof e=="function"?e:Rie(e)))}function yut(e){typeof e!="function"&&(e=Tie(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 Oa(o,this._parents)}function Aie(e){return new Array(e.length)}function but(){return new Oa(this._enter||this._groups.map(Aie),this._parents)}function C5(e,r){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=r}C5.prototype={constructor:C5,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 vut(e){return function(){return e}}function xut(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 C5(e,i[l]);for(;l<c;++l)(s=r[l])&&(a[l]=s)}function wut(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 C5(e,i[s]);for(s=0;s<d;++s)(c=r[s])&&u.get(f[s])===c&&(a[s]=c)}function kut(e){return e.__data__}function _ut(e,r){if(!arguments.length)return Array.from(this,kut);var n=r?wut:xut,o=this._parents,a=this._groups;typeof e!="function"&&(e=vut(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=Eut(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 Oa(l,o),l._enter=s,l._exit=c,l}function Eut(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Sut(){return new Oa(this._exit||this._groups.map(Aie),this._parents)}function Cut(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 Tut(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 Oa(s,this._parents)}function Rut(){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 Aut(e){e||(e=Nut);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 Oa(a,this._parents).order()}function Nut(e,r){return e<r?-1:e>r?1:e>=r?0:NaN}function Dut(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Put(){return Array.from(this)}function $ut(){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 Mut(){let e=0;for(const r of this)++e;return e}function Out(){return!this.node()}function Iut(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 Lut(e){return function(){this.removeAttribute(e)}}function zut(e){return function(){this.removeAttributeNS(e.space,e.local)}}function But(e,r){return function(){this.setAttribute(e,r)}}function jut(e,r){return function(){this.setAttributeNS(e.space,e.local,r)}}function Fut(e,r){return function(){var n=r.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Hut(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 qut(e,r){var n=S5(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?zut:Lut:typeof r=="function"?n.local?Hut:Fut:n.local?jut:But)(n,r))}function Nie(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Uut(e){return function(){this.style.removeProperty(e)}}function Vut(e,r,n){return function(){this.style.setProperty(e,r,n)}}function Yut(e,r,n){return function(){var o=r.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,n)}}function Wut(e,r,n){return arguments.length>1?this.each((r==null?Uut:typeof r=="function"?Yut:Vut)(e,r,n??"")):Wm(this.node(),e)}function Wm(e,r){return e.style.getPropertyValue(r)||Nie(e).getComputedStyle(e,null).getPropertyValue(r)}function Gut(e){return function(){delete this[e]}}function Xut(e,r){return function(){this[e]=r}}function Kut(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Zut(e,r){return arguments.length>1?this.each((r==null?Gut:typeof r=="function"?Kut:Xut)(e,r)):this.node()[e]}function Die(e){return e.trim().split(/^|\s+/)}function SN(e){return e.classList||new Pie(e)}function Pie(e){this._node=e,this._names=Die(e.getAttribute("class")||"")}Pie.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 $ie(e,r){for(var n=SN(e),o=-1,a=r.length;++o<a;)n.add(r[o])}function Mie(e,r){for(var n=SN(e),o=-1,a=r.length;++o<a;)n.remove(r[o])}function Qut(e){return function(){$ie(this,e)}}function Jut(e){return function(){Mie(this,e)}}function edt(e,r){return function(){(r.apply(this,arguments)?$ie:Mie)(this,e)}}function tdt(e,r){var n=Die(e+"");if(arguments.length<2){for(var o=SN(this.node()),a=-1,i=n.length;++a<i;)if(!o.contains(n[a]))return!1;return!0}return this.each((typeof r=="function"?edt:r?Qut:Jut)(n,r))}function rdt(){this.textContent=""}function ndt(e){return function(){this.textContent=e}}function odt(e){return function(){var r=e.apply(this,arguments);this.textContent=r??""}}function adt(e){return arguments.length?this.each(e==null?rdt:(typeof e=="function"?odt:ndt)(e)):this.node().textContent}function idt(){this.innerHTML=""}function ldt(e){return function(){this.innerHTML=e}}function sdt(e){return function(){var r=e.apply(this,arguments);this.innerHTML=r??""}}function cdt(e){return arguments.length?this.each(e==null?idt:(typeof e=="function"?sdt:ldt)(e)):this.node().innerHTML}function udt(){this.nextSibling&&this.parentNode.appendChild(this)}function ddt(){return this.each(udt)}function pdt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hdt(){return this.each(pdt)}function fdt(e){var r=typeof e=="function"?e:Sie(e);return this.select(function(){return this.appendChild(r.apply(this,arguments))})}function mdt(){return null}function gdt(e,r){var n=typeof e=="function"?e:Sie(e),o=r==null?mdt:typeof r=="function"?r:EN(r);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})}function ydt(){var e=this.parentNode;e&&e.removeChild(this)}function bdt(){return this.each(ydt)}function vdt(){var e=this.cloneNode(!1),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function xdt(){var e=this.cloneNode(!0),r=this.parentNode;return r?r.insertBefore(e,this.nextSibling):e}function wdt(e){return this.select(e?xdt:vdt)}function kdt(e){return arguments.length?this.property("__data__",e):this.node().__data__}function _dt(e){return function(r){e.call(this,r,this.__data__)}}function Edt(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 Sdt(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 Cdt(e,r,n){return function(){var o=this.__on,a,i=_dt(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 Tdt(e,r,n){var o=Edt(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?Cdt:Sdt,a=0;a<i;++a)this.each(s(o[a],r,n));return this}function Oie(e,r,n){var o=Nie(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 Rdt(e,r){return function(){return Oie(this,e,r)}}function Adt(e,r){return function(){return Oie(this,e,r.apply(this,arguments))}}function Ndt(e,r){return this.each((typeof r=="function"?Adt:Rdt)(e,r))}function*Ddt(){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 Iie=[null];function Oa(e,r){this._groups=e,this._parents=r}function nb(){return new Oa([[document.documentElement]],Iie)}function Pdt(){return this}Oa.prototype=nb.prototype={constructor:Oa,select:out,selectAll:sut,selectChild:put,selectChildren:gut,filter:yut,data:_ut,enter:but,exit:Sut,join:Cut,merge:Tut,selection:Pdt,order:Rut,sort:Aut,call:Dut,nodes:Put,node:$ut,size:Mut,empty:Out,each:Iut,attr:qut,style:Wut,property:Zut,classed:tdt,text:adt,html:cdt,raise:ddt,lower:hdt,append:fdt,insert:gdt,remove:bdt,clone:wdt,datum:kdt,on:Tdt,dispatch:Ndt,[Symbol.iterator]:Ddt};function Ia(e){return typeof e=="string"?new Oa([[document.querySelector(e)]],[document.documentElement]):new Oa([[e]],Iie)}function $dt(e){let r;for(;r=e.sourceEvent;)e=r;return e}function Nl(e,r){if(e=$dt(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 Mdt={passive:!1},ob={capture:!0,passive:!1};function CN(e){e.stopImmediatePropagation()}function Gm(e){e.preventDefault(),e.stopImmediatePropagation()}function Lie(e){var r=e.document.documentElement,n=Ia(e).on("dragstart.drag",Gm,ob);"onselectstart"in r?n.on("selectstart.drag",Gm,ob):(r.__noselect=r.style.MozUserSelect,r.style.MozUserSelect="none")}function zie(e,r){var n=e.document.documentElement,o=Ia(e).on("dragstart.drag",null);r&&(o.on("click.drag",Gm,ob),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 T5=e=>()=>e;function TN(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}})}TN.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Odt(e){return!e.ctrlKey&&!e.button}function Idt(){return this.parentNode}function Ldt(e,r){return r??{x:e.x,y:e.y}}function zdt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Bie(){var e=Odt,r=Idt,n=Ldt,o=zdt,a={},i=_5("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,Mdt).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&&(Ia(T.view).on("mousemove.drag",b,ob).on("mouseup.drag",x,ob),Lie(T.view),CN(T),u=!1,s=T.clientX,c=T.clientY,A("start",T))}}function b(T){if(Gm(T),!u){var R=T.clientX-s,A=T.clientY-c;u=R*R+A*A>p}a.mouse("drag",T)}function x(T){Ia(T.view).on("mousemove.drag mouseup.drag",null),zie(T.view,u),Gm(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,$,M;for($=0;$<N;++$)(M=_(this,D,T,R,A[$].identifier,A[$]))&&(CN(T),M("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])&&(Gm(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])&&(CN(T),N("end",T,R[D]))}function _(T,R,A,D,N,$){var M=i.copy(),j=Nl($||A,R),L,Y,O;if((O=n.call(T,new TN("beforestart",{sourceEvent:A,target:f,identifier:N,active:l,x:j[0],y:j[1],dx:0,dy:0,dispatch:M}),D))!=null)return L=O.x-j[0]||0,Y=O.y-j[1]||0,function U(I,q,V){var G=j,F;switch(I){case"start":a[N]=U,F=l++;break;case"end":delete a[N],--l;case"drag":j=Nl(V||q,R),F=l;break}M.call(I,T,new TN(I,{sourceEvent:q,subject:O,target:f,identifier:N,active:F,x:j[0]+L,y:j[1]+Y,dx:j[0]-G[0],dy:j[1]-G[1],dispatch:M}),D)}}return f.filter=function(T){return arguments.length?(e=typeof T=="function"?T:T5(!!T),f):e},f.container=function(T){return arguments.length?(r=typeof T=="function"?T:T5(T),f):r},f.subject=function(T){return arguments.length?(n=typeof T=="function"?T:T5(T),f):n},f.touchable=function(T){return arguments.length?(o=typeof T=="function"?T:T5(!!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 RN(e,r,n){e.prototype=r.prototype=n,n.constructor=e}function jie(e,r){var n=Object.create(e.prototype);for(var o in r)n[o]=r[o];return n}function ab(){}var ib=.7,R5=1/ib,Xm="\\s*([+-]?\\d+)\\s*",lb="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",gs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Bdt=/^#([0-9a-f]{3,8})$/,jdt=new RegExp(`^rgb\\(${Xm},${Xm},${Xm}\\)$`),Fdt=new RegExp(`^rgb\\(${gs},${gs},${gs}\\)$`),Hdt=new RegExp(`^rgba\\(${Xm},${Xm},${Xm},${lb}\\)$`),qdt=new RegExp(`^rgba\\(${gs},${gs},${gs},${lb}\\)$`),Udt=new RegExp(`^hsl\\(${lb},${gs},${gs}\\)$`),Vdt=new RegExp(`^hsla\\(${lb},${gs},${gs},${lb}\\)$`),Fie={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};RN(ab,$p,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hie,formatHex:Hie,formatHex8:Ydt,formatHsl:Wdt,formatRgb:qie,toString:qie});function Hie(){return this.rgb().formatHex()}function Ydt(){return this.rgb().formatHex8()}function Wdt(){return Gie(this).formatHsl()}function qie(){return this.rgb().formatRgb()}function $p(e){var r,n;return e=(e+"").trim().toLowerCase(),(r=Bdt.exec(e))?(n=r[1].length,r=parseInt(r[1],16),n===6?Uie(r):n===3?new ua(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?A5(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?A5(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=jdt.exec(e))?new ua(r[1],r[2],r[3],1):(r=Fdt.exec(e))?new ua(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=Hdt.exec(e))?A5(r[1],r[2],r[3],r[4]):(r=qdt.exec(e))?A5(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=Udt.exec(e))?Wie(r[1],r[2]/100,r[3]/100,1):(r=Vdt.exec(e))?Wie(r[1],r[2]/100,r[3]/100,r[4]):Fie.hasOwnProperty(e)?Uie(Fie[e]):e==="transparent"?new ua(NaN,NaN,NaN,0):null}function Uie(e){return new ua(e>>16&255,e>>8&255,e&255,1)}function A5(e,r,n,o){return o<=0&&(e=r=n=NaN),new ua(e,r,n,o)}function Gdt(e){return e instanceof ab||(e=$p(e)),e?(e=e.rgb(),new ua(e.r,e.g,e.b,e.opacity)):new ua}function AN(e,r,n,o){return arguments.length===1?Gdt(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}RN(ua,AN,jie(ab,{brighter(e){return e=e==null?R5:Math.pow(R5,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ib:Math.pow(ib,e),new ua(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ua(Mp(this.r),Mp(this.g),Mp(this.b),N5(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:Vie,formatHex:Vie,formatHex8:Xdt,formatRgb:Yie,toString:Yie}));function Vie(){return`#${Op(this.r)}${Op(this.g)}${Op(this.b)}`}function Xdt(){return`#${Op(this.r)}${Op(this.g)}${Op(this.b)}${Op((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yie(){const e=N5(this.opacity);return`${e===1?"rgb(":"rgba("}${Mp(this.r)}, ${Mp(this.g)}, ${Mp(this.b)}${e===1?")":`, ${e})`}`}function N5(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Mp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Op(e){return e=Mp(e),(e<16?"0":"")+e.toString(16)}function Wie(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Dl(e,r,n,o)}function Gie(e){if(e instanceof Dl)return new Dl(e.h,e.s,e.l,e.opacity);if(e instanceof ab||(e=$p(e)),!e)return new Dl;if(e instanceof Dl)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 Dl(l,s,c,e.opacity)}function Kdt(e,r,n,o){return arguments.length===1?Gie(e):new Dl(e,r,n,o??1)}function Dl(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}RN(Dl,Kdt,jie(ab,{brighter(e){return e=e==null?R5:Math.pow(R5,e),new Dl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ib:Math.pow(ib,e),new Dl(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(NN(e>=240?e-240:e+120,a,o),NN(e,a,o),NN(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Dl(Xie(this.h),D5(this.s),D5(this.l),N5(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=N5(this.opacity);return`${e===1?"hsl(":"hsla("}${Xie(this.h)}, ${D5(this.s)*100}%, ${D5(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Xie(e){return e=(e||0)%360,e<0?e+360:e}function D5(e){return Math.max(0,Math.min(1,e||0))}function NN(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 DN=e=>()=>e;function Zdt(e,r){return function(n){return e+n*r}}function Qdt(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 Jdt(e){return(e=+e)==1?Kie:function(r,n){return n-r?Qdt(r,n,e):DN(isNaN(r)?n:r)}}function Kie(e,r){var n=r-e;return n?Zdt(e,n):DN(isNaN(e)?r:e)}const P5=(function e(r){var n=Jdt(r);function o(a,i){var l=n((a=AN(a)).r,(i=AN(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),u=Kie(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 ept(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 tpt(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function rpt(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]=sb(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 npt(e,r){var n=new Date;return e=+e,r=+r,function(o){return n.setTime(e*(1-o)+r*o),n}}function ys(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]=sb(e[a],r[a]):o[a]=r[a];return function(i){for(a in n)o[a]=n[a](i);return o}}var PN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$N=new RegExp(PN.source,"g");function apt(e){return function(){return e}}function ipt(e){return function(r){return e(r)+""}}function Zie(e,r){var n=PN.lastIndex=$N.lastIndex=0,o,a,i,l=-1,s=[],c=[];for(e=e+"",r=r+"";(o=PN.exec(e))&&(a=$N.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:ys(o,a)})),n=$N.lastIndex;return n<r.length&&(i=r.slice(n),s[l]?s[l]+=i:s[++l]=i),s.length<2?c[0]?ipt(c[0].x):apt(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 sb(e,r){var n=typeof r,o;return r==null||n==="boolean"?DN(r):(n==="number"?ys:n==="string"?(o=$p(r))?(r=o,P5):Zie:r instanceof $p?P5:r instanceof Date?npt:tpt(r)?ept:Array.isArray(r)?rpt:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?opt:ys)(e,r)}var Qie=180/Math.PI,Jie={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ele(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)*Qie,skewX:Math.atan(c)*Qie,scaleX:l,scaleY:s}}var $5;function lpt(e){const r=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return r.isIdentity?Jie:ele(r.a,r.b,r.c,r.d,r.e,r.f)}function spt(e){return e==null||($5||($5=document.createElementNS("http://www.w3.org/2000/svg","g")),$5.setAttribute("transform",e),!(e=$5.transform.baseVal.consolidate()))?Jie:(e=e.matrix,ele(e.a,e.b,e.c,e.d,e.e,e.f))}function tle(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:ys(u,p)},{i:x-2,x:ys(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:ys(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:ys(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:ys(u,p)},{i:x-2,x:ys(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 cpt=tle(lpt,"px, ","px)","deg)"),upt=tle(spt,", ",")",")"),dpt=1e-12;function rle(e){return((e=Math.exp(e))+1/e)/2}function ppt(e){return((e=Math.exp(e))-1/e)/2}function hpt(e){return((e=Math.exp(2*e))-1)/(e+1)}const M5=(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<dpt)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,$=rle(R),M=u/(n*C)*($*hpt(r*N+R)-ppt(R));return[s+M*g,c+M*b,u*$/rle(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 Km=0,cb=0,ub=0,nle=1e3,O5,db,I5=0,Ip=0,L5=0,pb=typeof performance=="object"&&performance.now?performance:Date,ole=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function MN(){return Ip||(ole(fpt),Ip=pb.now()+L5)}function fpt(){Ip=0}function z5(){this._call=this._time=this._next=null}z5.prototype=ale.prototype={constructor:z5,restart:function(e,r,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?MN():+n)+(r==null?0:+r),!this._next&&db!==this&&(db?db._next=this:O5=this,db=this),this._call=e,this._time=n,ON()},stop:function(){this._call&&(this._call=null,this._time=1/0,ON())}};function ale(e,r,n){var o=new z5;return o.restart(e,r,n),o}function mpt(){MN(),++Km;for(var e=O5,r;e;)(r=Ip-e._time)>=0&&e._call.call(void 0,r),e=e._next;--Km}function ile(){Ip=(I5=pb.now())+L5,Km=cb=0;try{mpt()}finally{Km=0,ypt(),Ip=0}}function gpt(){var e=pb.now(),r=e-I5;r>nle&&(L5-=r,I5=e)}function ypt(){for(var e,r=O5,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:O5=n);db=e,ON(o)}function ON(e){if(!Km){cb&&(cb=clearTimeout(cb));var r=e-Ip;r>24?(e<1/0&&(cb=setTimeout(ile,e-pb.now()-L5)),ub&&(ub=clearInterval(ub))):(ub||(I5=pb.now(),ub=setInterval(gpt,nle)),Km=1,ole(ile))}}function lle(e,r,n){var o=new z5;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var bpt=_5("start","end","cancel","interrupt"),vpt=[],sle=0,cle=1,IN=2,B5=3,ule=4,LN=5,j5=6;function F5(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;xpt(e,n,{name:r,index:o,group:a,on:bpt,tween:vpt,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:sle})}function zN(e,r){var n=Pl(e,r);if(n.state>sle)throw new Error("too late; already scheduled");return n}function bs(e,r){var n=Pl(e,r);if(n.state>B5)throw new Error("too late; already running");return n}function Pl(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function xpt(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=ale(i,0,n.time);function i(u){n.state=cle,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!==cle)return c();for(d in o)if(g=o[d],g.name===n.name){if(g.state===B5)return lle(l);g.state===ule?(g.state=j5,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[d]):+d<r&&(g.state=j5,g.timer.stop(),g.on.call("cancel",e,e.__data__,g.index,g.group),delete o[d])}if(lle(function(){n.state===B5&&(n.state=ule,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=IN,n.on.call("start",e,e.__data__,n.index,n.group),n.state===IN){for(n.state=B5,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=LN,1),p=-1,f=a.length;++p<f;)a[p].call(e,d);n.state===LN&&(n.on.call("end",e,e.__data__,n.index,n.group),c())}function c(){n.state=j5,n.timer.stop(),delete o[r];for(var u in o)return;delete e.__transition}}function H5(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>IN&&o.state<LN,o.state=j5,o.timer.stop(),o.on.call(a?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete n[l]}i&&delete e.__transition}}function wpt(e){return this.each(function(){H5(this,e)})}function kpt(e,r){var n,o;return function(){var a=bs(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 _pt(e,r,n){var o,a;if(typeof n!="function")throw new Error;return function(){var i=bs(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 Ept(e,r){var n=this._id;if(e+="",arguments.length<2){for(var o=Pl(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?kpt:_pt)(n,e,r))}function BN(e,r,n){var o=e._id;return e.each(function(){var a=bs(this,o);(a.value||(a.value={}))[r]=n.apply(this,arguments)}),function(a){return Pl(a,o).value[r]}}function dle(e,r){var n;return(typeof r=="number"?ys:r instanceof $p?P5:(n=$p(r))?(r=n,P5):Zie)(e,r)}function Spt(e){return function(){this.removeAttribute(e)}}function Cpt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Tpt(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 Rpt(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 Apt(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 Npt(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 Dpt(e,r){var n=S5(e),o=n==="transform"?upt:dle;return this.attrTween(e,typeof r=="function"?(n.local?Npt:Apt)(n,o,BN(this,"attr."+e,r)):r==null?(n.local?Cpt:Spt)(n):(n.local?Rpt:Tpt)(n,o,r))}function Ppt(e,r){return function(n){this.setAttribute(e,r.call(this,n))}}function $pt(e,r){return function(n){this.setAttributeNS(e.space,e.local,r.call(this,n))}}function Mpt(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&$pt(e,i)),n}return a._value=r,a}function Opt(e,r){var n,o;function a(){var i=r.apply(this,arguments);return i!==o&&(n=(o=i)&&Ppt(e,i)),n}return a._value=r,a}function Ipt(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=S5(e);return this.tween(n,(o.local?Mpt:Opt)(o,r))}function Lpt(e,r){return function(){zN(this,e).delay=+r.apply(this,arguments)}}function zpt(e,r){return r=+r,function(){zN(this,e).delay=r}}function Bpt(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?Lpt:zpt)(r,e)):Pl(this.node(),r).delay}function jpt(e,r){return function(){bs(this,e).duration=+r.apply(this,arguments)}}function Fpt(e,r){return r=+r,function(){bs(this,e).duration=r}}function Hpt(e){var r=this._id;return arguments.length?this.each((typeof e=="function"?jpt:Fpt)(r,e)):Pl(this.node(),r).duration}function qpt(e,r){if(typeof r!="function")throw new Error;return function(){bs(this,e).ease=r}}function Upt(e){var r=this._id;return arguments.length?this.each(qpt(r,e)):Pl(this.node(),r).ease}function Vpt(e,r){return function(){var n=r.apply(this,arguments);if(typeof n!="function")throw new Error;bs(this,e).ease=n}}function Ypt(e){if(typeof e!="function")throw new Error;return this.each(Vpt(this._id,e))}function Wpt(e){typeof e!="function"&&(e=Tie(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 mc(o,this._parents,this._name,this._id)}function Gpt(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 mc(l,this._parents,this._name,this._id)}function Xpt(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 Kpt(e,r,n){var o,a,i=Xpt(r)?zN:bs;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function Zpt(e,r){var n=this._id;return arguments.length<2?Pl(this.node(),n).on.on(e):this.each(Kpt(n,e,r))}function Qpt(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function Jpt(){return this.on("end.remove",Qpt(this._id))}function eht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=EN(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,F5(u[f],r,n,f,u,Pl(d,n)));return new mc(i,this._parents,r,n)}function tht(e){var r=this._name,n=this._id;typeof e!="function"&&(e=Cie(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=Pl(d,n),x=0,w=f.length;x<w;++x)(g=f[x])&&F5(g,r,n,x,f,b);i.push(f),l.push(d)}return new mc(i,l,r,n)}var rht=nb.prototype.constructor;function nht(){return new rht(this._groups,this._parents)}function oht(e,r){var n,o,a;return function(){var i=Wm(this,e),l=(this.style.removeProperty(e),Wm(this,e));return i===l?null:i===n&&l===o?a:a=r(n=i,o=l)}}function ple(e){return function(){this.style.removeProperty(e)}}function aht(e,r,n){var o,a=n+"",i;return function(){var l=Wm(this,e);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=Wm(this,e),s=n(this),c=s+"";return s==null&&(c=s=(this.style.removeProperty(e),Wm(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=bs(this,e),u=c.on,d=c.value[i]==null?s||(s=ple(r)):void 0;(u!==n||a!==d)&&(o=(n=u).copy()).on(l,a=d),c.on=o}}function sht(e,r,n){var o=(e+="")=="transform"?cpt:dle;return r==null?this.styleTween(e,oht(e,o)).on("end.style."+e,ple(e)):typeof r=="function"?this.styleTween(e,iht(e,o,BN(this,"style."+e,r))).each(lht(this._id,e)):this.styleTween(e,aht(e,o,r),n).on("end.style."+e,null)}function cht(e,r,n){return function(o){this.style.setProperty(e,r.call(this,o),n)}}function uht(e,r,n){var o,a;function i(){var l=r.apply(this,arguments);return l!==a&&(o=(a=l)&&cht(e,l,n)),o}return i._value=r,i}function dht(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,uht(e,r,n??""))}function pht(e){return function(){this.textContent=e}}function hht(e){return function(){var r=e(this);this.textContent=r??""}}function fht(e){return this.tween("text",typeof e=="function"?hht(BN(this,"text",e)):pht(e==null?"":e+""))}function mht(e){return function(r){this.textContent=e.call(this,r)}}function ght(e){var r,n;function o(){var a=e.apply(this,arguments);return a!==n&&(r=(n=a)&&mht(a)),r}return o._value=e,o}function yht(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,ght(e))}function bht(){for(var e=this._name,r=this._id,n=hle(),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=Pl(c,r);F5(c,e,n,u,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new mc(o,this._parents,e,n)}function vht(){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=bs(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 xht=0;function mc(e,r,n,o){this._groups=e,this._parents=r,this._name=n,this._id=o}function hle(){return++xht}var gc=nb.prototype;mc.prototype={constructor:mc,select:eht,selectAll:tht,selectChild:gc.selectChild,selectChildren:gc.selectChildren,filter:Wpt,merge:Gpt,selection:nht,transition:bht,call:gc.call,nodes:gc.nodes,node:gc.node,size:gc.size,empty:gc.empty,each:gc.each,on:Zpt,attr:Dpt,attrTween:Ipt,style:sht,styleTween:dht,text:fht,textTween:yht,remove:Jpt,tween:Ept,delay:Bpt,duration:Hpt,ease:Upt,easeVarying:Ypt,end:vht,[Symbol.iterator]:gc[Symbol.iterator]};function wht(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var kht={time:null,delay:0,duration:250,ease:wht};function _ht(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 Eht(e){var r,n;e instanceof mc?(r=e._id,e=e._name):(r=hle(),(n=kht).time=MN(),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])&&F5(c,e,r,u,l,n||_ht(c,r));return new mc(o,this._parents,e,r)}nb.prototype.interrupt=wpt,nb.prototype.transition=Eht;const q5=e=>()=>e;function Sht(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 yc(e,r,n){this.k=e,this.x=r,this.y=n}yc.prototype={constructor:yc,scale:function(e){return e===1?this:new yc(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new yc(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 U5=new yc(1,0,0);fle.prototype=yc.prototype;function fle(e){for(;!e.__zoom;)if(!(e=e.parentNode))return U5;return e.__zoom}function jN(e){e.stopImmediatePropagation()}function hb(e){e.preventDefault(),e.stopImmediatePropagation()}function Cht(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Tht(){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 mle(){return this.__zoom||U5}function Rht(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Aht(){return navigator.maxTouchPoints||"ontouchstart"in this}function Nht(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 gle(){var e=Cht,r=Tht,n=Nht,o=Rht,a=Aht,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=M5,u=_5("start","zoom","end"),d,p,f,g=500,b=150,x=0,w=10;function k(O){O.property("__zoom",mle).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",$).on("dblclick.zoom",M).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(O,U,I,q){var V=O.selection?O.selection():O;V.property("__zoom",mle),O!==V?R(O,U,I,q):V.interrupt().each(function(){A(this,arguments).event(q).start().zoom(null,typeof U=="function"?U.apply(this,arguments):U).end()})},k.scaleBy=function(O,U,I,q){k.scaleTo(O,function(){var V=this.__zoom.k,G=typeof U=="function"?U.apply(this,arguments):U;return V*G},I,q)},k.scaleTo=function(O,U,I,q){k.transform(O,function(){var V=r.apply(this,arguments),G=this.__zoom,F=I==null?T(V):typeof I=="function"?I.apply(this,arguments):I,J=G.invert(F),Q=typeof U=="function"?U.apply(this,arguments):U;return n(_(C(G,Q),F,J),V,l)},I,q)},k.translateBy=function(O,U,I,q){k.transform(O,function(){return n(this.__zoom.translate(typeof U=="function"?U.apply(this,arguments):U,typeof I=="function"?I.apply(this,arguments):I),r.apply(this,arguments),l)},null,q)},k.translateTo=function(O,U,I,q,V){k.transform(O,function(){var G=r.apply(this,arguments),F=this.__zoom,J=q==null?T(G):typeof q=="function"?q.apply(this,arguments):q;return n(U5.translate(J[0],J[1]).scale(F.k).translate(typeof U=="function"?-U.apply(this,arguments):-U,typeof I=="function"?-I.apply(this,arguments):-I),G,l)},q,V)};function C(O,U){return U=Math.max(i[0],Math.min(i[1],U)),U===O.k?O:new yc(U,O.x,O.y)}function _(O,U,I){var q=U[0]-I[0]*O.k,V=U[1]-I[1]*O.k;return q===O.x&&V===O.y?O:new yc(O.k,q,V)}function T(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function R(O,U,I,q){O.on("start.zoom",function(){A(this,arguments).event(q).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(q).end()}).tween("zoom",function(){var V=this,G=arguments,F=A(V,G).event(q),J=r.apply(V,G),Q=I==null?T(J):typeof I=="function"?I.apply(V,G):I,z=Math.max(J[1][0]-J[0][0],J[1][1]-J[0][1]),W=V.__zoom,X=typeof U=="function"?U.apply(V,G):U,Z=c(W.invert(Q).concat(z/W.k),X.invert(Q).concat(z/X.k));return function(oe){if(oe===1)oe=X;else{var ee=Z(oe),re=z/ee[2];oe=new yc(re,Q[0]-ee[0]*re,Q[1]-ee[1]*re)}F.zoom(null,oe)}})}function A(O,U,I){return!I&&O.__zooming||new D(O,U)}function D(O,U){this.that=O,this.args=U,this.active=0,this.sourceEvent=null,this.extent=r.apply(O,U),this.taps=0}D.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,U){return this.mouse&&O!=="mouse"&&(this.mouse[1]=U.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=U.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=U.invert(this.touch1[0])),this.that.__zoom=U,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var U=Ia(this.that).datum();u.call(O,this.that,new Sht(O,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:u}),U)}};function N(O,...U){if(!e.apply(this,arguments))return;var I=A(this,U).event(O),q=this.__zoom,V=Math.max(i[0],Math.min(i[1],q.k*Math.pow(2,o.apply(this,arguments)))),G=Nl(O);if(I.wheel)(I.mouse[0][0]!==G[0]||I.mouse[0][1]!==G[1])&&(I.mouse[1]=q.invert(I.mouse[0]=G)),clearTimeout(I.wheel);else{if(q.k===V)return;I.mouse=[G,q.invert(G)],H5(this),I.start()}hb(O),I.wheel=setTimeout(F,b),I.zoom("mouse",n(_(C(q,V),I.mouse[0],I.mouse[1]),I.extent,l));function F(){I.wheel=null,I.end()}}function $(O,...U){if(f||!e.apply(this,arguments))return;var I=O.currentTarget,q=A(this,U,!0).event(O),V=Ia(O.view).on("mousemove.zoom",Q,!0).on("mouseup.zoom",z,!0),G=Nl(O,I),F=O.clientX,J=O.clientY;Lie(O.view),jN(O),q.mouse=[G,this.__zoom.invert(G)],H5(this),q.start();function Q(W){if(hb(W),!q.moved){var X=W.clientX-F,Z=W.clientY-J;q.moved=X*X+Z*Z>x}q.event(W).zoom("mouse",n(_(q.that.__zoom,q.mouse[0]=Nl(W,I),q.mouse[1]),q.extent,l))}function z(W){V.on("mousemove.zoom mouseup.zoom",null),zie(W.view,q.moved),hb(W),q.event(W).end()}}function M(O,...U){if(e.apply(this,arguments)){var I=this.__zoom,q=Nl(O.changedTouches?O.changedTouches[0]:O,this),V=I.invert(q),G=I.k*(O.shiftKey?.5:2),F=n(_(C(I,G),q,V),r.apply(this,U),l);hb(O),s>0?Ia(this).transition().duration(s).call(R,F,q,O):Ia(this).call(k.transform,F,q,O)}}function j(O,...U){if(e.apply(this,arguments)){var I=O.touches,q=I.length,V=A(this,U,O.changedTouches.length===q).event(O),G,F,J,Q;for(jN(O),F=0;F<q;++F)J=I[F],Q=Nl(J,this),Q=[Q,this.__zoom.invert(Q),J.identifier],V.touch0?!V.touch1&&V.touch0[2]!==Q[2]&&(V.touch1=Q,V.taps=0):(V.touch0=Q,G=!0,V.taps=1+!!d);d&&(d=clearTimeout(d)),G&&(V.taps<2&&(p=Q[0],d=setTimeout(function(){d=null},g)),H5(this),V.start())}}function L(O,...U){if(this.__zooming){var I=A(this,U).event(O),q=O.changedTouches,V=q.length,G,F,J,Q;for(hb(O),G=0;G<V;++G)F=q[G],J=Nl(F,this),I.touch0&&I.touch0[2]===F.identifier?I.touch0[0]=J:I.touch1&&I.touch1[2]===F.identifier&&(I.touch1[0]=J);if(F=I.that.__zoom,I.touch1){var z=I.touch0[0],W=I.touch0[1],X=I.touch1[0],Z=I.touch1[1],oe=(oe=X[0]-z[0])*oe+(oe=X[1]-z[1])*oe,ee=(ee=Z[0]-W[0])*ee+(ee=Z[1]-W[1])*ee;F=C(F,Math.sqrt(oe/ee)),J=[(z[0]+X[0])/2,(z[1]+X[1])/2],Q=[(W[0]+Z[0])/2,(W[1]+Z[1])/2]}else if(I.touch0)J=I.touch0[0],Q=I.touch0[1];else return;I.zoom("touch",n(_(F,J,Q),I.extent,l))}}function Y(O,...U){if(this.__zooming){var I=A(this,U).event(O),q=O.changedTouches,V=q.length,G,F;for(jN(O),f&&clearTimeout(f),f=setTimeout(function(){f=null},g),G=0;G<V;++G)F=q[G],I.touch0&&I.touch0[2]===F.identifier?delete I.touch0:I.touch1&&I.touch1[2]===F.identifier&&delete I.touch1;if(I.touch1&&!I.touch0&&(I.touch0=I.touch1,delete I.touch1),I.touch0)I.touch0[1]=this.__zoom.invert(I.touch0[0]);else if(I.end(),I.taps===2&&(F=Nl(F,this),Math.hypot(p[0]-F[0],p[1]-F[1])<w)){var J=Ia(this).on("dblclick.zoom");J&&J.apply(this,arguments)}}}return k.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:q5(+O),k):o},k.filter=function(O){return arguments.length?(e=typeof O=="function"?O:q5(!!O),k):e},k.touchable=function(O){return arguments.length?(a=typeof O=="function"?O:q5(!!O),k):a},k.extent=function(O){return arguments.length?(r=typeof O=="function"?O:q5([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),k):r},k.scaleExtent=function(O){return arguments.length?(i[0]=+O[0],i[1]=+O[1],k):[i[0],i[1]]},k.translateExtent=function(O){return arguments.length?(l[0][0]=+O[0][0],l[1][0]=+O[1][0],l[0][1]=+O[0][1],l[1][1]=+O[1][1],k):[[l[0][0],l[0][1]],[l[1][0],l[1][1]]]},k.constrain=function(O){return arguments.length?(n=O,k):n},k.duration=function(O){return arguments.length?(s=+O,k):s},k.interpolate=function(O){return arguments.length?(c=O,k):c},k.on=function(){var O=u.on.apply(u,arguments);return O===u?k:O},k.clickDistance=function(O){return arguments.length?(x=(O=+O)*O,k):Math.sqrt(x)},k.tapDistance=function(O){return arguments.length?(w=+O,k):w},k}const vs={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."},fb=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],yle=["Enter"," ","Escape"],ble={"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 Zm;(function(e){e.Strict="strict",e.Loose="loose"})(Zm||(Zm={}));var Lp;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Lp||(Lp={}));var mb;(function(e){e.Partial="partial",e.Full="full"})(mb||(mb={}));const vle={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var $u;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})($u||($u={}));var V5;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(V5||(V5={}));var ht;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ht||(ht={}));const xle={[ht.Left]:ht.Right,[ht.Right]:ht.Left,[ht.Top]:ht.Bottom,[ht.Bottom]:ht.Top};function wle(e){return e===null?null:e?"valid":"invalid"}const kle=e=>"id"in e&&"source"in e&&"target"in e,Dht=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),FN=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),gb=(e,r=[0,0])=>{const{width:n,height:o}=bc(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},Pht=(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):FN(a)?a:r.nodeLookup.get(a.id));const s=l?G5(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return Y5(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return W5(n)},yb=(e,r={})=>{if(e.size===0)return{x:0,y:0,width:0,height:0};let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0};return e.forEach(o=>{if(r.filter===void 0||r.filter(o)){const a=G5(o);n=Y5(n,a)}}),W5(n)},HN=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...xb(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=bb(s,Jm(u)),w=(g??0)*(b??0),k=i&&x>0;(!u.internals.handleBounds||k||x>=w||u.dragging)&&c.push(u)}return c},$ht=(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 Mht(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 Oht({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=Mht(e,l),c=yb(s),u=UN(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 _le({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",vs.error005());else{const g=s.measured.width,b=s.measured.height;g&&b&&(p=[[c,u],[c+g,u+b]])}else s&&tg(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=tg(p)?zp(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",vs.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 Iht({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=$ht(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 Qm=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),zp=(e={x:0,y:0},r,n)=>({x:Qm(e.x,r[0][0],r[1][0]-(n?.width??0)),y:Qm(e.y,r[0][1],r[1][1]-(n?.height??0))});function Ele(e,r,n){const{width:o,height:a}=bc(n),{x:i,y:l}=n.internals.positionAbsolute;return zp(e,[[i,l],[i+o,l+a]],r)}const Sle=(e,r,n)=>e<r?Qm(Math.abs(e-r),1,r)/r:e>n?-Qm(Math.abs(e-n),1,r)/r:0,Cle=(e,r,n=15,o=40)=>{const a=Sle(e.x,o,r.width-o)*n,i=Sle(e.y,o,r.height-o)*n;return[a,i]},Y5=(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)}),qN=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),W5=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Jm=(e,r=[0,0])=>{const{x:n,y:o}=FN(e)?e.internals.positionAbsolute:gb(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}},G5=(e,r=[0,0])=>{const{x:n,y:o}=FN(e)?e.internals.positionAbsolute:gb(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)}},Tle=(e,r)=>W5(Y5(qN(e),qN(r))),bb=(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)},Rle=e=>$l(e.width)&&$l(e.height)&&$l(e.x)&&$l(e.y),$l=e=>!isNaN(e)&&isFinite(e),Lht=(e,r)=>{},vb=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),xb=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?vb(s,l):s},X5=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function eg(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 zht(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=eg(e,n),a=eg(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=eg(e.top??e.y??0,n),a=eg(e.bottom??e.y??0,n),i=eg(e.left??e.x??0,r),l=eg(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 Bht(e,r,n,o,a,i){const{x:l,y:s}=X5(e,[r,n,o]),{x:c,y:u}=X5({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 UN=(e,r,n,o,a,i)=>{const l=zht(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,u=Math.min(s,c),d=Qm(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=Bht(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}},wb=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function tg(e){return e!=null&&e!=="parent"}function bc(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function Ale(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function Nle(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 Dle(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function jht(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function Fht(e){return{...ble,...e||{}}}function kb(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Ml(e),s=xb({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:u}=n?vb(s,r):s;return{xSnapped:c,ySnapped:u,...s}}const VN=e=>({width:e.offsetWidth,height:e.offsetHeight}),Ple=e=>e?.getRootNode?.()||window?.document,Hht=["INPUT","SELECT","TEXTAREA"];function $le(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:Hht.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const Mle=e=>"clientX"in e,Ml=(e,r)=>{const n=Mle(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)}},Ole=(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,...VN(l)}})};function Ile({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 K5(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function Lle({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case ht.Left:return[r-K5(r-o,i),n];case ht.Right:return[r+K5(o-r,i),n];case ht.Top:return[r,n-K5(n-a,i)];case ht.Bottom:return[r,n+K5(a-n,i)]}}function zle({sourceX:e,sourceY:r,sourcePosition:n=ht.Bottom,targetX:o,targetY:a,targetPosition:i=ht.Top,curvature:l=.25}){const[s,c]=Lle({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[u,d]=Lle({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,b]=Ile({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 Ble({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 qht({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 Uht({sourceNode:e,targetNode:r,width:n,height:o,transform:a}){const i=Y5(G5(e),G5(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 bb(l,W5(i))>0}const Vht=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,Yht=(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)),Wht=(e,r)=>{if(!e.source||!e.target)return r;let n;return kle(e)?n={...e}:n={...e,id:Vht(e)},Yht(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function jle({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=Ble({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const Fle={[ht.Left]:{x:-1,y:0},[ht.Right]:{x:1,y:0},[ht.Top]:{x:0,y:-1},[ht.Bottom]:{x:0,y:1}},Ght=({source:e,sourcePosition:r=ht.Bottom,target:n})=>r===ht.Left||r===ht.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},Hle=(e,r)=>Math.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function Xht({source:e,sourcePosition:r=ht.Bottom,target:n,targetPosition:o=ht.Top,center:a,offset:i,stepPosition:l}){const s=Fle[r],c=Fle[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=Ght({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]=Ble({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],O=u[j]<d[j];(s[f]===1&&(!L&&Y||L&&O)||s[f]!==1&&(!L&&O||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)),M=Math.max(Math.abs(D.y-b[0].y),Math.abs(N.y-b[0].y));$>=M?(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 Kht(e,r,n,o){const a=Math.min(Hle(e,r)/2,Hle(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 YN({sourceX:e,sourceY:r,sourcePosition:n=ht.Bottom,targetX:o,targetY:a,targetPosition:i=ht.Top,borderRadius:l=5,centerX:s,centerY:c,offset:u=20,stepPosition:d=.5}){const[p,f,g,b,x]=Xht({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?_=Kht(p[C-1],k,p[C+1],l):_=`${C===0?"M":"L"}${k.x} ${k.y}`,w+=_,w},""),f,g,b,x]}function qle(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Zht(e){const{sourceNode:r,targetNode:n}=e;if(!qle(r)||!qle(n))return null;const o=r.internals.handleBounds||Ule(r.handles),a=n.internals.handleBounds||Ule(n.handles),i=Vle(o?.source??[],e.sourceHandle),l=Vle(e.connectionMode===Zm.Strict?a?.target??[]:(a?.target??[]).concat(a?.source??[]),e.targetHandle);if(!i||!l)return e.onError?.("008",vs.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const s=i?.position||ht.Bottom,c=l?.position||ht.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 Ule(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=ht.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??bc(e);if(o)return{x:a+l/2,y:i+s/2};switch(r?.position??n){case ht.Top:return{x:a+l/2,y:i};case ht.Right:return{x:a+l,y:i+s/2};case ht.Bottom:return{x:a+l/2,y:i+s};case ht.Left:return{x:a,y:i+s/2}}}function Vle(e,r){return e&&(r?e.find(n=>n.id===r):e[0])||null}function WN(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function Qht(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=WN(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 GN={nodeOrigin:[0,0],nodeExtent:fb,elevateNodesOnSelect:!0,defaults:{}},Jht={...GN,checkEquality:!0};function XN(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function eft(e,r,n){const o=XN(GN,n);for(const a of e.values())if(a.parentId)ZN(a,e,r,o);else{const i=gb(a,o.nodeOrigin),l=tg(a.extent)?a.extent:o.nodeExtent,s=zp(i,l,bc(a));a.internals.positionAbsolute=s}}function tft(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 KN(e,r,n,o){const a=XN(Jht,o);let i=e.length>0;const l=new Map(r),s=a?.elevateNodesOnSelect?1e3:0;r.clear(),n.clear();for(const c of e){let u=l.get(c.id);if(a.checkEquality&&c===u?.internals.userNode)r.set(c.id,u);else{const d=gb(c,a.nodeOrigin),p=tg(c.extent)?c.extent:a.nodeExtent,f=zp(d,p,bc(c));u={...a.defaults,...c,measured:{width:c.measured?.width,height:c.measured?.height},internals:{positionAbsolute:f,handleBounds:tft(c,u),z:Yle(c,s),userNode:c}},r.set(c.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(i=!1),c.parentId&&ZN(u,r,n,o)}return i}function rft(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 ZN(e,r,n,o){const{elevateNodesOnSelect:a,nodeOrigin:i,nodeExtent:l}=XN(GN,o),s=e.parentId,c=r.get(s);if(!c){console.warn(`Parent node ${s} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}rft(e,n);const u=a?1e3:0,{x:d,y:p,z:f}=nft(e,c,i,l,u),{positionAbsolute:g}=e.internals,b=d!==g.x||p!==g.y;(b||f!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:b?{x:d,y:p}:g,z:f}})}function Yle(e,r){return($l(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function nft(e,r,n,o,a){const{x:i,y:l}=r.internals.positionAbsolute,s=bc(e),c=gb(e,n),u=tg(e.extent)?zp(c,e.extent,s):c;let d=zp({x:i+u.x,y:l+u.y},o,s);e.extent==="parent"&&(d=Ele(d,s,r));const p=Yle(e,a),f=r.internals.z??0;return{x:d.x,y:d.y,z:f>=p?f+1:p}}function QN(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??Jm(s),u=Tle(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=bc(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 oft(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=VN(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=tg(g.extent)?g.extent:i;let{positionAbsolute:C}=g.internals;g.parentId&&g.extent==="parent"?C=Ele(C,b,r.get(g.parentId)):k&&(C=zp(C,k,b));const _={...g,measured:b,internals:{...g.internals,positionAbsolute:C,handleBounds:{source:Ole("source",f.nodeElement,w,d,g.id),target:Ole("target",f.nodeElement,w,d,g.id)}}};r.set(g.id,_),g.parentId&&ZN(_,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:Jm(_,a)}))}}if(p.length>0){const f=QN(p,r,n,a);c.push(...f)}return{changes:c,updatedInternals:s}}async function aft({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 Wle(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 Gle(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}`;Wle("source",c,d,e,a,l),Wle("target",c,u,e,i,s),r.set(o.id,o)}}function Xle(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:Xle(n,r):!1}function Kle(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 ift(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!Xle(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 JN({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 lft({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=vb(i,r);return{x:l.x-i.x,y:l.y-i.y}}function sft({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=Ia(T);function N({x:L,y:Y}){const{nodeLookup:O,nodeExtent:U,snapGrid:I,snapToGrid:q,nodeOrigin:V,onNodeDrag:G,onSelectionDrag:F,onError:J,updateNodePositions:Q}=r();i={x:L,y:Y};let z=!1;const W=s.size>1,X=W&&U?qN(yb(s)):null,Z=W&&q?lft({dragItems:s,snapGrid:I,x:L,y:Y}):null;for(const[oe,ee]of s){if(!O.has(oe))continue;let re={x:L-ee.distance.x,y:Y-ee.distance.y};q&&(re=Z?{x:Math.round(re.x+Z.x),y:Math.round(re.y+Z.y)}:vb(re,I));let pe=null;if(W&&U&&!ee.extent&&X){const{positionAbsolute:de}=ee.internals,be=de.x-X.x+U[0][0],Oe=de.x+ee.measured.width-X.x2+U[1][0],Xe=de.y-X.y+U[0][1],Ge=de.y+ee.measured.height-X.y2+U[1][1];pe=[[be,Xe],[Oe,Ge]]}const{position:Ce,positionAbsolute:ce}=_le({nodeId:oe,nextPosition:re,nodeLookup:O,nodeExtent:pe||U,nodeOrigin:V,onError:J});z=z||ee.position.x!==Ce.x||ee.position.y!==Ce.y,ee.position=Ce,ee.internals.positionAbsolute=ce}if(b=b||z,!!z&&(Q(s,!0),x&&(o||G||!A&&F))){const[oe,ee]=JN({nodeId:A,dragItems:s,nodeLookup:O});o?.(x,s,oe,ee),G?.(x,oe,ee),A||F?.(x,ee)}}async function $(){if(!d)return;const{transform:L,panBy:Y,autoPanSpeed:O,autoPanOnNodeDrag:U}=r();if(!U){c=!1,cancelAnimationFrame(l);return}const[I,q]=Cle(u,d,O);(I!==0||q!==0)&&(i.x=(i.x??0)-I/L[2],i.y=(i.y??0)-q/L[2],await Y({x:I,y:q})&&N(i)),l=requestAnimationFrame($)}function M(L){const{nodeLookup:Y,multiSelectionActive:O,nodesDraggable:U,transform:I,snapGrid:q,snapToGrid:V,selectNodesOnDrag:G,onNodeDragStart:F,onSelectionDragStart:J,unselectNodesAndEdges:Q}=r();p=!0,(!G||!R)&&!O&&A&&(Y.get(A)?.selected||Q()),R&&G&&A&&e?.(A);const z=kb(L.sourceEvent,{transform:I,snapGrid:q,snapToGrid:V,containerBounds:d});if(i=z,s=ift(Y,U,z,A),s.size>0&&(n||F||!A&&J)){const[W,X]=JN({nodeId:A,dragItems:s,nodeLookup:Y});n?.(L.sourceEvent,s,W,X),F?.(L.sourceEvent,W,X),A||J?.(L.sourceEvent,X)}}const j=Bie().clickDistance(D).on("start",L=>{const{domNode:Y,nodeDragThreshold:O,transform:U,snapGrid:I,snapToGrid:q}=r();d=Y?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,O===0&&M(L),i=kb(L.sourceEvent,{transform:U,snapGrid:I,snapToGrid:q,containerBounds:d}),u=Ml(L.sourceEvent,d)}).on("drag",L=>{const{autoPanOnNodeDrag:Y,transform:O,snapGrid:U,snapToGrid:I,nodeDragThreshold:q,nodeLookup:V}=r(),G=kb(L.sourceEvent,{transform:O,snapGrid:U,snapToGrid:I,containerBounds:d});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||A&&!V.has(A))&&(g=!0),!g){if(!c&&Y&&p&&(c=!0,$()),!p){const F=Ml(L.sourceEvent,d),J=F.x-u.x,Q=F.y-u.y;Math.sqrt(J*J+Q*Q)>q&&M(L)}(i.x!==G.xSnapped||i.y!==G.ySnapped)&&s&&p&&(u=Ml(L.sourceEvent,d),N(G))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:Y,updateNodePositions:O,onNodeDragStop:U,onSelectionDragStop:I}=r();if(b&&(O(s,!1),b=!1),a||U||!A&&I){const[q,V]=JN({nodeId:A,dragItems:s,nodeLookup:Y,dragging:!1});a?.(L.sourceEvent,s,q,V),U?.(L.sourceEvent,q,V),A||I?.(L.sourceEvent,V)}}}).filter(L=>{const Y=L.target;return!L.button&&(!C||!Kle(Y,`.${C}`,T))&&(!_||Kle(Y,_,T))});f.call(j)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function cft(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())bb(a,Jm(i))>0&&o.push(i);return o}const uft=250;function dft(e,r,n,o){let a=[],i=1/0;const l=cft(e,n,r+uft);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 Zle(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 Qle(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function pft(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const Jle=()=>!0;function hft(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=Jle,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:R,autoPanSpeed:A,dragThreshold:D=1,handleDomNode:N}){const $=Ple(e.target);let M=0,j;const{x:L,y:Y}=Ml(e),O=Qle(i,N),U=s?.getBoundingClientRect();let I=!1;if(!U||!O)return;const q=Zle(a,O,o,c,r);if(!q)return;let V=Ml(e,U),G=!1,F=null,J=!1,Q=null;function z(){if(!d||!U)return;const[pe,Ce]=Cle(V,U,A);f({x:pe,y:Ce}),M=requestAnimationFrame(z)}const W={...q,nodeId:a,type:O,position:q.position},X=c.get(a);let Z={inProgress:!0,isValid:null,from:_b(X,W,ht.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:X,to:V,toHandle:null,toPosition:xle[W.position],toNode:null};function oe(){I=!0,_(Z),b?.(e,{nodeId:a,handleId:o,handleType:O})}D===0&&oe();function ee(pe){if(!I){const{x:be,y:Oe}=Ml(pe),Xe=be-L,Ge=Oe-Y;if(!(Xe*Xe+Ge*Ge>D*D))return;oe()}if(!R()||!W){re(pe);return}const Ce=T();V=Ml(pe,U),j=dft(xb(V,Ce,!1,[1,1]),n,c,W),G||(z(),G=!0);const ce=ese(pe,{handle:j,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:$,lib:u,flowId:p,nodeLookup:c});Q=ce.handleDomNode,F=ce.connection,J=pft(!!j,ce.isValid);const de={...Z,isValid:J,to:ce.toHandle&&J?X5({x:ce.toHandle.x,y:ce.toHandle.y},Ce):V,toHandle:ce.toHandle,toPosition:J&&ce.toHandle?ce.toHandle.position:xle[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null};J&&j&&Z.toHandle&&de.toHandle&&Z.toHandle.type===de.toHandle.type&&Z.toHandle.nodeId===de.toHandle.nodeId&&Z.toHandle.id===de.toHandle.id&&Z.to.x===de.to.x&&Z.to.y===de.to.y||(_(de),Z=de)}function re(pe){if(!("touches"in pe&&pe.touches.length>0)){if(I){(j||Q)&&F&&J&&x?.(F);const{inProgress:Ce,...ce}=Z,de={...ce,toPosition:Z.toHandle?Z.toPosition:null};w?.(pe,de),i&&C?.(pe,de)}g(),cancelAnimationFrame(M),G=!1,J=!1,F=null,Q=null,$.removeEventListener("mousemove",ee),$.removeEventListener("mouseup",re),$.removeEventListener("touchmove",ee),$.removeEventListener("touchend",re)}}$.addEventListener("mousemove",ee),$.addEventListener("mouseup",re),$.addEventListener("touchmove",ee),$.addEventListener("touchend",re)}function ese(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:u=Jle,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}=Ml(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=Qle(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===Zm.Strict?p&&C==="source"||!p&&C==="target":_!==o||T!==a);k.isValid=N&&u(D),k.toHandle=Zle(_,C,T,d,n,!0)}return k}const eD={onPointerDown:hft,isValid:ese};function fft({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=Ia(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&&wb()?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=gle().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:Nl}}const mft=(e,r)=>e.x!==r.x||e.y!==r.y||e.zoom!==r.k,Z5=e=>({x:e.x,y:e.y,zoom:e.k}),tD=({x:e,y:r,zoom:n})=>U5.translate(e,r).scale(n),rg=(e,r)=>e.target.closest(`.${r}`),tse=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),gft=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,rD=(e,r=0,n=gft,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},rse=e=>{const r=e.ctrlKey&&wb()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function yft({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:u}){return d=>{if(rg(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=Nl(d),k=rse(d),C=p*Math.pow(2,k);o.scaleTo(n,C,w,d);return}const f=d.deltaMode===1?20:1;let g=a===Lp.Vertical?0:d.deltaX*f,b=a===Lp.Horizontal?0:d.deltaY*f;!wb()&&d.shiftKey&&a!==Lp.Vertical&&(g=d.deltaY*f,b=0),o.translateBy(n,-(g/p)*i,-(b/p)*i,{internal:!0});const x=Z5(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,s?.(d,x)),e.isPanScrolling&&(c?.(d,x),e.panScrollTimeout=setTimeout(()=>{u?.(d,x),e.isPanScrolling=!1},150))}}function bft({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=rg(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function vft({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Z5(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 xft({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&tse(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Z5(i.transform))}}function wft({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&tse(r,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&i(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),a&&mft(e.prevViewport,l.transform))){const s=Z5(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function kft({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"&&(rg(p,`${u}-flow__node`)||rg(p,`${u}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||d&&!b||rg(p,s)&&b||rg(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 _ft({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:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},p=e.getBoundingClientRect(),f=gle().clickDistance(!$l(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=Ia(e).call(f);_({x:i.x,y:i.y,zoom:Qm(i.zoom,r,n)},[[0,0],[p.width,p.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(rse);function w(L,Y){return g?new Promise(O=>{f?.interpolate(Y?.interpolate==="linear"?sb:M5).transform(rD(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:Y,onPaneContextMenu:O,userSelectionActive:U,panOnScroll:I,panOnDrag:q,panOnScrollMode:V,panOnScrollSpeed:G,preventScrolling:F,zoomOnPinch:J,zoomOnScroll:Q,zoomOnDoubleClick:z,zoomActivationKeyPressed:W,lib:X,onTransformChange:Z,connectionInProgress:oe}){U&&!d.isZoomingOrPanning&&C();const ee=I&&!W&&!U?yft({zoomPanValues:d,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:V,panOnScrollSpeed:G,zoomOnPinch:J,onPanZoomStart:s,onPanZoom:l,onPanZoomEnd:c}):bft({noWheelClassName:L,preventScrolling:F,d3ZoomHandler:b});if(g.on("wheel.zoom",ee,{passive:!1}),!U){const pe=vft({zoomPanValues:d,onDraggingChange:u,onPanZoomStart:s});f.on("start",pe);const Ce=xft({zoomPanValues:d,panOnDrag:q,onPaneContextMenu:!!O,onPanZoom:l,onTransformChange:Z});f.on("zoom",Ce);const ce=wft({zoomPanValues:d,panOnDrag:q,panOnScroll:I,onPaneContextMenu:O,onPanZoomEnd:c,onDraggingChange:u});f.on("end",ce)}const re=kft({zoomActivationKeyPressed:W,panOnDrag:q,zoomOnScroll:Q,panOnScroll:I,zoomOnDoubleClick:z,zoomOnPinch:J,userSelectionActive:U,noPanClassName:Y,noWheelClassName:L,lib:X,connectionInProgress:oe});f.filter(re),z?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,Y,O){const U=tD(L),I=f?.constrain()(U,Y,O);return I&&await w(I),new Promise(q=>q(I))}async function T(L,Y){const O=tD(L);return await w(O,Y),new Promise(U=>U(O))}function R(L){if(g){const Y=tD(L),O=g.property("__zoom");(O.k!==L.zoom||O.x!==L.x||O.y!==L.y)&&f?.transform(g,Y,null,{sync:!0})}}function A(){const L=g?fle(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(O=>{f?.interpolate(Y?.interpolate==="linear"?sb:M5).scaleTo(rD(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function N(L,Y){return g?new Promise(O=>{f?.interpolate(Y?.interpolate==="linear"?sb:M5).scaleBy(rD(g,Y?.duration,Y?.ease,()=>O(!0)),L)}):Promise.resolve(!1)}function $(L){f?.scaleExtent(L)}function M(L){f?.translateExtent(L)}function j(L){const Y=!$l(L)||L<0?0:L;f?.clickDistance(Y)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:A,scaleTo:D,scaleBy:N,setScaleExtent:$,setTranslateExtent:M,syncViewport:R,setClickDistance:j}}var ng;(function(e){e.Line="line",e.Handle="handle"})(ng||(ng={}));function Eft({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 Sft(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 Mu(e,r){return Math.max(0,r-e)}function Ou(e,r){return Math.max(0,e-r)}function Q5(e,r,n){return Math.max(0,r-e,e-n)}function nse(e,r){return e?!r:r}function Cft(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 M=R+(c?-N:N),j=A+(u?-$:$),L=-i[0]*R,Y=-i[1]*A;let O=Q5(M,x,w),U=Q5(j,k,C);if(l){let V=0,G=0;c&&N<0?V=Mu(_+N+L,l[0][0]):!c&&N>0&&(V=Ou(_+M+L,l[1][0])),u&&$<0?G=Mu(T+$+Y,l[0][1]):!u&&$>0&&(G=Ou(T+j+Y,l[1][1])),O=Math.max(O,V),U=Math.max(U,G)}if(s){let V=0,G=0;c&&N>0?V=Ou(_+N,s[0][0]):!c&&N<0&&(V=Mu(_+M,s[1][0])),u&&$>0?G=Ou(T+$,s[0][1]):!u&&$<0&&(G=Mu(T+j,s[1][1])),O=Math.max(O,V),U=Math.max(U,G)}if(a){if(d){const V=Q5(M/D,k,C)*D;if(O=Math.max(O,V),l){let G=0;!c&&!u||c&&!u&&f?G=Ou(T+Y+M/D,l[1][1])*D:G=Mu(T+Y+(c?N:-N)/D,l[0][1])*D,O=Math.max(O,G)}if(s){let G=0;!c&&!u||c&&!u&&f?G=Mu(T+M/D,s[1][1])*D:G=Ou(T+(c?N:-N)/D,s[0][1])*D,O=Math.max(O,G)}}if(p){const V=Q5(j*D,x,w)/D;if(U=Math.max(U,V),l){let G=0;!c&&!u||u&&!c&&f?G=Ou(_+j*D+L,l[1][0])/D:G=Mu(_+(u?$:-$)*D+L,l[0][0])/D,U=Math.max(U,G)}if(s){let G=0;!c&&!u||u&&!c&&f?G=Mu(_+j*D,s[1][0])/D:G=Ou(_+(u?$:-$)*D,s[0][0])/D,U=Math.max(U,G)}}}$=$+($<0?U:-U),N=N+(N<0?O:-O),a&&(f?M>j*D?$=(nse(c,u)?-N:N)/D:N=(nse(c,u)?-$:$)*D:d?($=N/D,u=c):(N=$*D,c=u));const I=c?_+N:_,q=u?T+$:T;return{width:R+(c?-N:N),height:A+(u?-$:$),x:i[0]*N*(c?-1:1)+I,y:i[1]*$*(u?-1:1)+q}}const ose={width:0,height:0,x:0,y:0},Tft={...ose,pointerX:0,pointerY:0,aspectRatio:1};function Rft(e){return[[0,0],[e.measured.width,e.measured.height]]}function Aft(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 Nft({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=Ia(e);function l({controlPosition:c,boundaries:u,keepAspectRatio:d,resizeDirection:p,onResizeStart:f,onResize:g,onResizeEnd:b,shouldResize:x}){let w={...ose},k={...Tft};const C=Sft(c);let _,T=null,R=[],A,D,N,$=!1;const M=Bie().on("start",j=>{const{nodeLookup:L,transform:Y,snapGrid:O,snapToGrid:U,nodeOrigin:I,paneDomNode:q}=n();if(_=L.get(r),!_)return;T=q?.getBoundingClientRect()??null;const{xSnapped:V,ySnapped:G}=kb(j.sourceEvent,{transform:Y,snapGrid:O,snapToGrid:U,containerBounds:T});w={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},k={...w,pointerX:V,pointerY:G,aspectRatio:w.width/w.height},A=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(A=L.get(_.parentId),D=A&&_.extent==="parent"?Rft(A):void 0),R=[],N=void 0;for(const[F,J]of L)if(J.parentId===r&&(R.push({id:F,position:{...J.position},extent:J.extent}),J.extent==="parent"||J.expandParent)){const Q=Aft(J,_,J.origin??I);N?N=[[Math.min(Q[0][0],N[0][0]),Math.min(Q[0][1],N[0][1])],[Math.max(Q[1][0],N[1][0]),Math.max(Q[1][1],N[1][1])]]:N=Q}f?.(j,{...w})}).on("drag",j=>{const{transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U}=n(),I=kb(j.sourceEvent,{transform:L,snapGrid:Y,snapToGrid:O,containerBounds:T}),q=[];if(!_)return;const{x:V,y:G,width:F,height:J}=w,Q={},z=_.origin??U,{width:W,height:X,x:Z,y:oe}=Cft(k,C,I,u,d,z,D,N),ee=W!==F,re=X!==J,pe=Z!==V&&ee,Ce=oe!==G&&re;if(!pe&&!Ce&&!ee&&!re)return;if((pe||Ce||z[0]===1||z[1]===1)&&(Q.x=pe?Z:w.x,Q.y=Ce?oe:w.y,w.x=Q.x,w.y=Q.y,R.length>0)){const be=Z-V,Oe=oe-G;for(const Xe of R)Xe.position={x:Xe.position.x-be+z[0]*(W-F),y:Xe.position.y-Oe+z[1]*(X-J)},q.push(Xe)}if((ee||re)&&(Q.width=ee&&(!p||p==="horizontal")?W:w.width,Q.height=re&&(!p||p==="vertical")?X:w.height,w.width=Q.width,w.height=Q.height),A&&_.expandParent){const be=z[0]*(Q.width??0);Q.x&&Q.x<be&&(w.x=be,k.x=k.x-(Q.x-be));const Oe=z[1]*(Q.height??0);Q.y&&Q.y<Oe&&(w.y=Oe,k.y=k.y-(Q.y-Oe))}const ce=Eft({width:w.width,prevWidth:F,height:w.height,prevHeight:J,affectsX:C.affectsX,affectsY:C.affectsY}),de={...w,direction:ce};x?.(j,de)!==!1&&($=!0,g?.(j,de),o(Q,q))}).on("end",j=>{$&&(b?.(j,{...w}),a?.({...w}),$=!1)});i.call(M)}function s(){i.on(".drag",null)}return{update:l,destroy:s}}const Dft={},ase=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:()=>{(Dft?"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},Pft=e=>e?ase(e):ase,{useDebugValue:$ft}=Xr,{useSyncExternalStoreWithSelector:Mft}=$ct,Oft=e=>e;function ise(e,r=Oft,n){const o=Mft(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return $ft(o),o}const lse=(e,r)=>{const n=Pft(e),o=(a,i=r)=>ise(n,a,i);return Object.assign(o,n),o},Ift=(e,r)=>e?lse(e,r):lse;function Vr(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 J5=E.createContext(null),Lft=J5.Provider,sse=vs.error001();function tr(e,r){const n=E.useContext(J5);if(n===null)throw new Error(sse);return ise(n,e,r)}function zr(){const e=E.useContext(J5);if(e===null)throw new Error(sse);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const cse={display:"none"},zft={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},use="react-flow__node-desc",dse="react-flow__edge-desc",Bft="react-flow__aria-live",jft=e=>e.ariaLiveMessage,Fft=e=>e.ariaLabelConfig;function Hft({rfId:e}){const r=tr(jft);return y.jsx("div",{id:`${Bft}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:zft,children:r})}function qft({rfId:e,disableKeyboardA11y:r}){const n=tr(Fft);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${use}-${e}`,style:cse,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${dse}-${e}`,style:cse,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(Hft,{rfId:e})]})}const ek=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const l=`${e}`.split("-");return y.jsx("div",{className:Sn(["react-flow__panel",n,...l]),style:o,ref:i,...a,children:r})});ek.displayName="Panel";function Uft({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(ek,{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 Vft=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}},tk=e=>e.id;function Yft(e,r){return Vr(e.selectedNodes.map(tk),r.selectedNodes.map(tk))&&Vr(e.selectedEdges.map(tk),r.selectedEdges.map(tk))}function Wft({onSelectionChange:e}){const r=zr(),{selectedNodes:n,selectedEdges:o}=tr(Vft,Yft);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const Gft=e=>!!e.onSelectionChangeHandlers;function Xft({onSelectionChange:e}){const r=tr(Gft);return e||r?y.jsx(Wft,{onSelectionChange:e}):null}const pse=[0,0],Kft={x:0,y:0,zoom:1},Zft=["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"],hse=[...Zft,"rfId"],Qft=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}),fse={translateExtent:fb,nodeOrigin:pse,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function Jft(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:l,reset:s,setDefaultNodesAndEdges:c,setPaneClickDistance:u}=tr(Qft,Vr),d=zr();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{p.current=fse,s()}),[]);const p=E.useRef(fse);return E.useEffect(()=>{for(const f of hse){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:Fht(g)}):f==="fitView"?d.setState({fitViewQueued:g}):f==="fitViewOptions"?d.setState({fitViewOptions:g}):d.setState({[f]:g})))}p.current=e},hse.map(f=>e[f])),null}function mse(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function emt(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=mse(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:mse()?.matches?"dark":"light"}const gse=typeof document<"u"?document:null;function Eb(e=null,r={target:gse,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[l,s]=E.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 E.useEffect(()=>{const c=r?.target??gse,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)&&$le(g))return!1;const b=bse(g.code,s);if(i.current.add(g[b]),yse(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=bse(g.code,s);yse(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 yse(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function bse(e,r){return r.includes(e)?"code":"key"}const tmt=()=>{const e=zr();return E.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=UN(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 xb(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=X5(r,n);return{x:l.x+a,y:l.y+i}}}),[])};function vse(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)rmt(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 rmt(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 nmt(e,r){return vse(e,r)}function omt(e,r){return vse(e,r)}function Bp(e,r){return{id:e,type:"select",selected:r}}function og(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(Bp(i.id,l)))}return o}function xse({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 wse(e){return{id:e.id,type:"remove"}}const kse=e=>Dht(e),amt=e=>kle(e);function _se(e){return E.forwardRef(e)}const imt=typeof window<"u"?E.useLayoutEffect:E.useEffect;function Ese(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>lmt(()=>n(a=>a+BigInt(1))));return imt(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function lmt(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const Sse=E.createContext(null);function smt({children:e}){const r=zr(),n=E.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=xse({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=Ese(n),a=E.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(xse({items:g,lookup:f}))},[]),i=Ese(a),l=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(Sse.Provider,{value:l,children:e})}function cmt(){const e=E.useContext(Sse);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const umt=e=>!!e.panZoom;function nD(){const e=tmt(),r=zr(),n=cmt(),o=tr(umt),a=E.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=kse(p)?p:f.get(p.id),x=b.parentId?Nle(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 Jm(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&&kse(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&&amt(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 Iht({nodesToRemove:p,edgesToRemove:f,nodes:g,edges:b,onBeforeDelete:T}),D=A.length>0,N=R.length>0;if(D){const $=A.map(wse);w?.(A),C($)}if(N){const $=R.map(wse);x?.(R),k($)}return(N||D)&&_?.({nodes:R,edges:A}),{deletedNodes:R,deletedEdges:A}},getIntersectingNodes:(p,f=!0,g)=>{const b=Rle(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 _=Jm(w?k:C),T=bb(_,x);return f&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(p,f,g=!0)=>{const b=Rle(p)?p:c(p);if(!b)return!1;const x=bb(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 Pht(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??jht();return r.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const Cse=e=>e.selected,dmt=typeof window<"u"?window:void 0;function pmt({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=zr(),{deleteElements:o}=nD(),a=Eb(e,{actInsideInputWithModifier:!1}),i=Eb(r,{target:dmt});E.useEffect(()=>{if(a){const{edges:l,nodes:s}=n.getState();o({nodes:s.filter(Cse),edges:l.filter(Cse)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function hmt(e){const r=zr();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=VN(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",vs.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 rk={position:"absolute",width:"100%",height:"100%",top:0,left:0},fmt=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function mmt({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Lp.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=zr(),R=E.useRef(null),{userSelectionActive:A,lib:D,connectionInProgress:N}=tr(fmt,Vr),$=Eb(f),M=E.useRef();hmt(R);const j=E.useCallback(L=>{k?.({x:L[0],y:L[1],zoom:L[2]}),C||T.setState({transform:L})},[k,C]);return E.useEffect(()=>{if(R.current){M.current=_ft({domNode:R.current,minZoom:d,maxZoom:p,translateExtent:u,viewport:c,paneClickDistance:_,onDraggingChange:U=>T.setState({paneDragging:U}),onPanZoomStart:(U,I)=>{const{onViewportChangeStart:q,onMoveStart:V}=T.getState();V?.(U,I),q?.(I)},onPanZoom:(U,I)=>{const{onViewportChange:q,onMove:V}=T.getState();V?.(U,I),q?.(I)},onPanZoomEnd:(U,I)=>{const{onViewportChangeEnd:q,onMoveEnd:V}=T.getState();V?.(U,I),q?.(I)}});const{x:L,y:Y,zoom:O}=M.current.getViewport();return T.setState({panZoom:M.current,transform:[L,Y,O],domNode:R.current.closest(".react-flow")}),()=>{M.current?.destroy()}}},[]),E.useEffect(()=>{M.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:rk,children:b})}const gmt=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function ymt(){const{userSelectionActive:e,userSelectionRect:r}=tr(gmt,Vr);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 oD=(e,r)=>n=>{n.target===r.current&&e?.(n)},bmt=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function vmt({isSelecting:e,selectionKeyPressed:r,selectionMode:n=mb.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=zr(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=tr(bmt,Vr),_=w&&(e||x),T=E.useRef(null),R=E.useRef(),A=E.useRef(new Set),D=E.useRef(new Set),N=E.useRef(!1),$=E.useRef(!1),M=q=>{if(N.current||C){N.current=!1;return}s?.(q),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},j=q=>{if(Array.isArray(o)&&o?.includes(2)){q.preventDefault();return}c?.(q)},L=u?q=>u(q):void 0,Y=q=>{const{resetSelectedElements:V,domNode:G}=b.getState();if(R.current=G?.getBoundingClientRect(),!w||!e||q.button!==0||q.target!==T.current||!R.current)return;q.target?.setPointerCapture?.(q.pointerId),$.current=!0,N.current=!1;const{x:F,y:J}=Ml(q.nativeEvent,R.current);V(),b.setState({userSelectionRect:{width:0,height:0,startX:F,startY:J,x:F,y:J}}),i?.(q)},O=q=>{const{userSelectionRect:V,transform:G,nodeLookup:F,edgeLookup:J,connectionLookup:Q,triggerNodeChanges:z,triggerEdgeChanges:W,defaultEdgeOptions:X}=b.getState();if(!R.current||!V)return;N.current=!0;const{x:Z,y:oe}=Ml(q.nativeEvent,R.current),{startX:ee,startY:re}=V,pe={startX:ee,startY:re,x:Z<ee?Z:ee,y:oe<re?oe:re,width:Math.abs(Z-ee),height:Math.abs(oe-re)},Ce=A.current,ce=D.current;A.current=new Set(HN(F,pe,G,n===mb.Partial,!0).map(be=>be.id)),D.current=new Set;const de=X?.selectable??!0;for(const be of A.current){const Oe=Q.get(be);if(Oe)for(const{edgeId:Xe}of Oe.values()){const Ge=J.get(Xe);Ge&&(Ge.selectable??de)&&D.current.add(Xe)}}if(!Dle(Ce,A.current)){const be=og(F,A.current,!0);z(be)}if(!Dle(ce,D.current)){const be=og(J,D.current);W(be)}b.setState({userSelectionRect:pe,userSelectionActive:!0,nodesSelectionActive:!1})},U=q=>{if(q.button!==0||!$.current)return;q.target?.releasePointerCapture?.(q.pointerId);const{userSelectionRect:V}=b.getState();!x&&V&&q.target===T.current&&M?.(q),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:A.current.size>0}),l?.(q),(r||a)&&(N.current=!1),$.current=!1},I=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:Sn(["react-flow__pane",{draggable:I,dragging:k,selection:e}]),onClick:_?void 0:oD(M,T),onContextMenu:oD(j,T),onWheel:oD(L,T),onPointerEnter:_?void 0:d,onPointerDown:_?Y:p,onPointerMove:_?O:p,onPointerUp:_?U:void 0,onPointerLeave:f,ref:T,style:rk,children:[g,y.jsx(ymt,{})]})}function aD({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",vs.error012(e));return}r.setState({nodesSelectionActive:!1}),u.selected?(n||u.selected&&l)&&(i({nodes:[u],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function Tse({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:l}){const s=zr(),[c,u]=E.useState(!1),d=E.useRef();return E.useEffect(()=>{d.current=sft({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{aD({id:p,store:s,nodeRef:e})},onDragStart:()=>{u(!0)},onDragStop:()=>{u(!1)}})},[]),E.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 xmt=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function Rse(){const e=zr();return E.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=xmt(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=vb(k,a));const{position:C,positionAbsolute:_}=_le({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 iD=E.createContext(null),wmt=iD.Provider;iD.Consumer;const Ase=()=>E.useContext(iD),kmt=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),_mt=(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===Zm.Strict?s?.type!==n:e!==s?.nodeId||r!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:d&&u}};function Emt({type:e="source",position:r=ht.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=zr(),k=Ase(),{connectOnClick:C,noPanClassName:_,rfId:T}=tr(kmt,Vr),{connectingFrom:R,connectingTo:A,clickConnecting:D,isPossibleEndHandle:N,connectionInProcess:$,clickConnectionInProcess:M,valid:j}=tr(_mt(k,b,e),Vr);k||w.getState().onError?.("010",vs.error010());const L=U=>{const{defaultEdgeOptions:I,onConnect:q,hasDefaultEdges:V}=w.getState(),G={...I,...U};if(V){const{edges:F,setEdges:J}=w.getState();J(Wht(G,F))}q?.(G),s?.(G)},Y=U=>{if(!k)return;const I=Mle(U.nativeEvent);if(a&&(I&&U.button===0||!I)){const q=w.getState();eD.onPointerDown(U.nativeEvent,{handleDomNode:U.currentTarget,autoPanOnConnect:q.autoPanOnConnect,connectionMode:q.connectionMode,connectionRadius:q.connectionRadius,domNode:q.domNode,nodeLookup:q.nodeLookup,lib:q.lib,isTarget:x,handleId:b,nodeId:k,flowId:q.rfId,panBy:q.panBy,cancelConnection:q.cancelConnection,onConnectStart:q.onConnectStart,onConnectEnd:q.onConnectEnd,updateConnection:q.updateConnection,onConnect:L,isValidConnection:n||q.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:q.autoPanSpeed,dragThreshold:q.connectionDragThreshold})}I?d?.(U):p?.(U)},O=U=>{const{onClickConnectStart:I,onClickConnectEnd:q,connectionClickStartHandle:V,connectionMode:G,isValidConnection:F,lib:J,rfId:Q,nodeLookup:z,connection:W}=w.getState();if(!k||!V&&!a)return;if(!V){I?.(U.nativeEvent,{nodeId:k,handleId:b,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:b}});return}const X=Ple(U.target),Z=n||F,{connection:oe,isValid:ee}=eD.isValid(U.nativeEvent,{handle:{nodeId:k,id:b,type:e},connectionMode:G,fromNodeId:V.nodeId,fromHandleId:V.id||null,fromType:V.type,isValidConnection:Z,flowId:Q,doc:X,lib:J,nodeLookup:z});ee&&oe&&L(oe);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,q?.(U,re),w.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":b,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${b}-${e}`,className:Sn(["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)&&($||M?i:a)}]),onMouseDown:Y,onTouchStart:Y,onClick:C?O:void 0,ref:g,...f,children:c})}const nk=E.memo(_se(Emt));function Smt({data:e,isConnectable:r,sourcePosition:n=ht.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(nk,{type:"source",position:n,isConnectable:r})]})}function Cmt({data:e,isConnectable:r,targetPosition:n=ht.Top,sourcePosition:o=ht.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(nk,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(nk,{type:"source",position:o,isConnectable:r})]})}function Tmt(){return null}function Rmt({data:e,isConnectable:r,targetPosition:n=ht.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(nk,{type:"target",position:n,isConnectable:r}),e?.label]})}const ok={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},Nse={input:Smt,default:Cmt,output:Rmt,group:Tmt};function Amt(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 Nmt=e=>{const{width:r,height:n,x:o,y:a}=yb(e.nodeLookup,{filter:i=>!!i.selected});return{width:$l(r)?r:null,height:$l(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 Dmt({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=zr(),{width:a,height:i,transformString:l,userSelectionActive:s}=tr(Nmt,Vr),c=Rse(),u=E.useRef(null);if(E.useEffect(()=>{n||u.current?.focus({preventScroll:!0})},[n]),Tse({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(ok,f.key)&&(f.preventDefault(),c({direction:ok[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:Sn(["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 Dse=typeof window<"u"?window:void 0,Pmt=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Pse({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:M,minZoom:j,maxZoom:L,preventScrolling:Y,onSelectionContextMenu:O,noWheelClassName:U,noPanClassName:I,disableKeyboardA11y:q,onViewportChange:V,isControlledViewport:G}){const{nodesSelectionActive:F,userSelectionActive:J}=tr(Pmt),Q=Eb(u,{target:Dse}),z=Eb(x,{target:Dse}),W=z||N,X=z||T,Z=d&&W!==!0,oe=Q||J||Z;return pmt({deleteKeyCode:c,multiSelectionKeyCode:b}),y.jsx(mmt,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:X,panOnScrollSpeed:R,panOnScrollMode:A,zoomOnDoubleClick:D,panOnDrag:!Q&&W,defaultViewport:$,translateExtent:M,minZoom:j,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:Y,noWheelClassName:U,noPanClassName:I,onViewportChange:V,isControlledViewport:G,paneClickDistance:s,children:y.jsxs(vmt,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,panOnDrag:W,isSelecting:!!oe,selectionMode:p,selectionKeyPressed:Q,selectionOnDrag:Z,children:[e,F&&y.jsx(Dmt,{onSelectionContextMenu:O,noPanClassName:I,disableKeyboardA11y:q})]})})}Pse.displayName="FlowRenderer";const $mt=E.memo(Pse),Mmt=e=>r=>e?HN(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 Omt(e){return tr(E.useCallback(Mmt(e),[e]),Vr)}const Imt=e=>e.updateNodeInternals;function Lmt(){const e=tr(Imt),[r]=E.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 E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function zmt({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=zr(),i=E.useRef(null),l=E.useRef(null),s=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),u=E.useRef(r),d=n&&!!e.internals.handleBounds;return E.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]),E.useEffect(()=>()=>{l.current&&(o?.unobserve(l.current),l.current=null)},[]),E.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 Bmt({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}=tr(ee=>{const re=ee.nodeLookup.get(e),pe=ee.parentLookup.has(e);return{node:re,internals:re.internals,isParent:pe}},Vr);let A=_.type||"default",D=w?.[A]||Nse[A];D===void 0&&(C?.("003",vs.error003(A)),A="default",D=w?.default||Nse.default);const N=!!(_.draggable||s&&typeof _.draggable>"u"),$=!!(_.selectable||c&&typeof _.selectable>"u"),M=!!(_.connectable||u&&typeof _.connectable>"u"),j=!!(_.focusable||d&&typeof _.focusable>"u"),L=zr(),Y=Ale(_),O=zmt({node:_,nodeType:A,hasDimensions:Y,resizeObserver:p}),U=Tse({nodeRef:O,disabled:_.hidden||!N,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:$,nodeClickDistance:k}),I=Rse();if(_.hidden)return null;const q=bc(_),V=Amt(_),G=$||N||r||n||o||a,F=n?ee=>n(ee,{...T.userNode}):void 0,J=o?ee=>o(ee,{...T.userNode}):void 0,Q=a?ee=>a(ee,{...T.userNode}):void 0,z=i?ee=>i(ee,{...T.userNode}):void 0,W=l?ee=>l(ee,{...T.userNode}):void 0,X=ee=>{const{selectNodesOnDrag:re,nodeDragThreshold:pe}=L.getState();$&&(!re||!N||pe>0)&&aD({id:e,store:L,nodeRef:O}),r&&r(ee,{...T.userNode})},Z=ee=>{if(!($le(ee.nativeEvent)||b)){if(yle.includes(ee.key)&&$){const re=ee.key==="Escape";aD({id:e,store:L,unselect:re,nodeRef:O})}else if(N&&_.selected&&Object.prototype.hasOwnProperty.call(ok,ee.key)){ee.preventDefault();const{ariaLabelConfig:re}=L.getState();L.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ee.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),I({direction:ok[ee.key],factor:ee.shiftKey?4:1})}}},oe=()=>{if(b||!O.current?.matches(":focus-visible"))return;const{transform:ee,width:re,height:pe,autoPanOnNodeFocus:Ce,setCenter:ce}=L.getState();Ce&&(HN(new Map([[e,_]]),{x:0,y:0,width:re,height:pe},ee,!0).length>0||ce(_.position.x+q.width/2,_.position.y+q.height/2,{zoom:ee[2]}))};return y.jsx("div",{className:Sn(["react-flow__node",`react-flow__node-${A}`,{[g]:N},_.className,{selected:_.selected,selectable:$,parent:R,draggable:N,dragging:U}]),ref:O,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:G?"all":"none",visibility:Y?"visible":"hidden",..._.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:F,onMouseMove:J,onMouseLeave:Q,onContextMenu:z,onClick:X,onDoubleClick:W,onKeyDown:j?Z:void 0,tabIndex:j?0:void 0,onFocus:j?oe:void 0,role:_.ariaRole??(j?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${use}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(wmt,{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:M,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:U,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...q})})})}const jmt=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function $se(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=tr(jmt,Vr),l=Omt(e.onlyRenderVisibleElements),s=Lmt();return y.jsx("div",{className:"react-flow__nodes",style:rk,children:l.map(c=>y.jsx(Bmt,{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))})}$se.displayName="NodeRenderer";const Fmt=E.memo($se);function Hmt(e){return tr(E.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&&Uht({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Vr)}const qmt=({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"})},Umt=({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"})},Mse={[V5.Arrow]:qmt,[V5.ArrowClosed]:Umt};function Vmt(e){const r=zr();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(Mse,e)?Mse[e]:(r.getState().onError?.("009",vs.error009(e)),null),[e])}const Ymt=({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=Vmt(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},Ose=({defaultColor:e,rfId:r})=>{const n=tr(i=>i.edges),o=tr(i=>i.defaultEdgeOptions),a=E.useMemo(()=>Qht(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(Ymt,{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};Ose.displayName="MarkerDefinitions";var Wmt=E.memo(Ose);function Ise({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]=E.useState({x:1,y:0,width:0,height:0}),g=Sn(["react-flow__edge-textwrapper",u]),b=E.useRef(null);return E.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}Ise.displayName="EdgeText";const Gmt=E.memo(Ise);function ak({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:Sn(["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&&$l(r)&&$l(n)?y.jsx(Gmt,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function Lse({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===ht.Left||e===ht.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function zse({sourceX:e,sourceY:r,sourcePosition:n=ht.Bottom,targetX:o,targetY:a,targetPosition:i=ht.Top}){const[l,s]=Lse({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,u]=Lse({pos:i,x1:o,y1:a,x2:e,y2:r}),[d,p,f,g]=Ile({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 Bse(e){return E.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]=zse({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s}),R=e.isInternal?void 0:r;return y.jsx(ak,{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 Xmt=Bse({isInternal:!1}),jse=Bse({isInternal:!0});Xmt.displayName="SimpleBezierEdge",jse.displayName="SimpleBezierEdgeInternal";function Fse(e){return E.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=ht.Bottom,targetPosition:b=ht.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,R]=YN({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(ak,{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 Hse=Fse({isInternal:!1}),qse=Fse({isInternal:!0});Hse.displayName="SmoothStepEdge",qse.displayName="SmoothStepEdgeInternal";function Use(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(Hse,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const Kmt=Use({isInternal:!1}),Vse=Use({isInternal:!0});Kmt.displayName="StepEdge",Vse.displayName="StepEdgeInternal";function Yse(e){return E.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]=jle({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(ak,{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 Zmt=Yse({isInternal:!1}),Wse=Yse({isInternal:!0});Zmt.displayName="StraightEdge",Wse.displayName="StraightEdgeInternal";function Gse(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l=ht.Bottom,targetPosition:s=ht.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]=zle({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s,curvature:k?.curvature}),A=e.isInternal?void 0:r;return y.jsx(ak,{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 Qmt=Gse({isInternal:!1}),Xse=Gse({isInternal:!0});Qmt.displayName="BezierEdge",Xse.displayName="BezierEdgeInternal";const Kse={default:Xse,straight:Wse,step:Vse,smoothstep:qse,simplebezier:jse},Zse={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},Jmt=(e,r,n)=>n===ht.Left?e-r:n===ht.Right?e+r:e,egt=(e,r,n)=>n===ht.Top?e-r:n===ht.Bottom?e+r:e,Qse="react-flow__edgeupdater";function Jse({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:Sn([Qse,`${Qse}-${s}`]),cx:Jmt(r,o,e),cy:egt(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function tgt({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=zr(),x=(T,R)=>{if(T.button!==0)return;const{autoPanOnConnect:A,domNode:D,isValidConnection:N,connectionMode:$,connectionRadius:M,lib:j,onConnectStart:L,onConnectEnd:Y,cancelConnection:O,nodeLookup:U,rfId:I,panBy:q,updateConnection:V}=b.getState(),G=R.type==="target",F=(z,W)=>{f(!1),p?.(z,n,R.type,W)},J=z=>u?.(n,z),Q=(z,W)=>{f(!0),d?.(T,n,R.type),L?.(z,W)};eD.onPointerDown(T.nativeEvent,{autoPanOnConnect:A,connectionMode:$,connectionRadius:M,domNode:D,handleId:R.id,nodeId:R.nodeId,nodeLookup:U,isTarget:G,edgeUpdaterType:R.type,lib:j,flowId:I,cancelConnection:O,panBy:q,isValidConnection:N,onConnect:J,onConnectStart:Q,onConnectEnd:Y,onReconnectEnd:F,updateConnection:V,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(Jse,{position:s,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(Jse,{position:c,centerX:i,centerY:l,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function rgt({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 _=tr(ce=>ce.edgeLookup.get(e));const T=tr(ce=>ce.defaultEdgeOptions);_=T?{...T,..._}:_;let R=_.type||"default",A=x?.[R]||Kse[R];A===void 0&&(k?.("011",vs.error011(R)),R="default",A=x?.default||Kse.default);const D=!!(_.focusable||r&&typeof _.focusable>"u"),N=typeof p<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),$=!!(_.selectable||o&&typeof _.selectable>"u"),M=E.useRef(null),[j,L]=E.useState(!1),[Y,O]=E.useState(!1),U=zr(),{zIndex:I,sourceX:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q}=tr(E.useCallback(ce=>{const de=ce.nodeLookup.get(_.source),be=ce.nodeLookup.get(_.target);if(!de||!be)return{zIndex:_.zIndex,...Zse};const Oe=Zht({id:e,sourceNode:de,targetNode:be,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:qht({selected:_.selected,zIndex:_.zIndex,sourceNode:de,targetNode:be,elevateOnSelect:ce.elevateEdgesOnSelect}),...Oe||Zse}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Vr),z=E.useMemo(()=>_.markerStart?`url('#${WN(_.markerStart,b)}')`:void 0,[_.markerStart,b]),W=E.useMemo(()=>_.markerEnd?`url('#${WN(_.markerEnd,b)}')`:void 0,[_.markerEnd,b]);if(_.hidden||q===null||V===null||G===null||F===null)return null;const X=ce=>{const{addSelectedEdges:de,unselectNodesAndEdges:be,multiSelectionActive:Oe}=U.getState();$&&(U.setState({nodesSelectionActive:!1}),_.selected&&Oe?(be({nodes:[],edges:[_]}),M.current?.blur()):de([e])),a&&a(ce,_)},Z=i?ce=>{i(ce,{..._})}:void 0,oe=l?ce=>{l(ce,{..._})}:void 0,ee=s?ce=>{s(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,pe=u?ce=>{u(ce,{..._})}:void 0,Ce=ce=>{if(!C&&yle.includes(ce.key)&&$){const{unselectNodesAndEdges:de,addSelectedEdges:be}=U.getState();ce.key==="Escape"?(M.current?.blur(),de({edges:[_]})):be([e])}};return y.jsx("svg",{style:{zIndex:I},children:y.jsxs("g",{className:Sn(["react-flow__edge",`react-flow__edge-${R}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!$&&!a,updating:j,selectable:$}]),onClick:X,onDoubleClick:Z,onContextMenu:oe,onMouseEnter:ee,onMouseMove:re,onMouseLeave:pe,onKeyDown:D?Ce: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?`${dse}-${b}`:void 0,ref:M,..._.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:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:z,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),N&&y.jsx(tgt,{edge:_,isReconnectable:N,reconnectRadius:d,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,sourceX:q,sourceY:V,targetX:G,targetY:F,sourcePosition:J,targetPosition:Q,setUpdateHover:L,setReconnecting:O})]})})}const ngt=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function ece({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:_}=tr(ngt,Vr),T=Hmt(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(Wmt,{defaultColor:e,rfId:n}),T.map(R=>y.jsx(rgt,{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))]})}ece.displayName="EdgeRenderer";const ogt=E.memo(ece),agt=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function igt({children:e}){const r=tr(agt);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function lgt(e){const r=nD(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const sgt=e=>e.panZoom?.syncViewport;function cgt(e){const r=tr(sgt),n=zr();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function ugt(e){return e.connection.inProgress?{...e.connection,to:xb(e.connection.to,e.transform)}:{...e.connection}}function dgt(e){return ugt}function pgt(e){const r=dgt();return tr(r,Vr)}const hgt=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function fgt({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:l,isValid:s,inProgress:c}=tr(hgt,Vr);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:Sn(["react-flow__connection",wle(s)]),children:y.jsx(tce,{style:r,type:n,CustomComponent:o,isValid:s})})}):null}const tce=({style:e,type:r=$u.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:l,fromHandle:s,fromPosition:c,to:u,toNode:d,toHandle:p,toPosition:f}=pgt();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:wle(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 $u.Bezier:[g]=zle(b);break;case $u.SimpleBezier:[g]=zse(b);break;case $u.Step:[g]=YN({...b,borderRadius:0});break;case $u.SmoothStep:[g]=YN(b);break;default:[g]=jle(b)}return y.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};tce.displayName="ConnectionLine";const mgt={};function rce(e=mgt){E.useRef(e),zr(),E.useEffect(()=>{},[e])}function ggt(){zr(),E.useRef(!1),E.useEffect(()=>{},[])}function nce({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:M,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:O,preventScrolling:U,defaultMarkerColor:I,zoomOnScroll:q,zoomOnPinch:V,panOnScroll:G,panOnScrollSpeed:F,panOnScrollMode:J,zoomOnDoubleClick:Q,panOnDrag:z,onPaneClick:W,onPaneMouseEnter:X,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneScroll:ee,onPaneContextMenu:re,paneClickDistance:pe,nodeClickDistance:Ce,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:Oe,reconnectRadius:Xe,onReconnect:Ge,onReconnectStart:_t,onReconnectEnd:Qe,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:st,nodeExtent:Et,rfId:Pn,viewport:_e,onViewportChange:we}){return rce(e),rce(r),ggt(),lgt(n),cgt(_e),y.jsx($mt,{onPaneClick:W,onPaneMouseEnter:X,onPaneMouseMove:Z,onPaneMouseLeave:oe,onPaneContextMenu:re,onPaneScroll:ee,paneClickDistance:pe,deleteKeyCode:N,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:R,panActivationKeyCode:A,zoomActivationKeyCode:D,elementsSelectable:M,zoomOnScroll:q,zoomOnPinch:V,zoomOnDoubleClick:Q,panOnScroll:G,panOnScrollSpeed:F,panOnScrollMode:J,panOnDrag:z,defaultViewport:j,translateExtent:L,minZoom:Y,maxZoom:O,onSelectionContextMenu:p,preventScrolling:U,noDragClassName:St,noWheelClassName:Ke,noPanClassName:We,disableKeyboardA11y:st,onViewportChange:we,isControlledViewport:!!_e,children:y.jsxs(igt,{children:[y.jsx(ogt,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:l,onReconnect:Ge,onReconnectStart:_t,onReconnectEnd:Qe,onlyRenderVisibleElements:$,onEdgeContextMenu:ce,onEdgeMouseEnter:de,onEdgeMouseMove:be,onEdgeMouseLeave:Oe,reconnectRadius:Xe,defaultMarkerColor:I,noPanClassName:We,disableKeyboardA11y:st,rfId:Pn}),y.jsx(fgt,{style:x,type:b,component:w,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(Fmt,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:u,onNodeContextMenu:d,nodeClickDistance:Ce,onlyRenderVisibleElements:$,noPanClassName:We,noDragClassName:St,disableKeyboardA11y:st,nodeExtent:Et,rfId:Pn}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}nce.displayName="GraphView";const ygt=E.memo(nce),oce=({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??fb;Gle(b,x,w);const T=KN(k,f,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let R=[0,0,1];if(l&&a&&i){const A=yb(f,{filter:M=>!!((M.width||M.initialWidth)&&(M.height||M.initialHeight))}),{x:D,y:N,zoom:$}=UN(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:fb,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Zm.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:{...vle},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:Lht,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:ble}},bgt=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:u,nodeOrigin:d,nodeExtent:p})=>Ift((f,g)=>{async function b(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:R,maxZoom:A}=g();w&&(await Oht({nodes:x,width:_,height:T,panZoom:w,minZoom:R,maxZoom:A},k),C?.resolve(!0),f({fitViewResolver:null}))}return{...oce({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=KN(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();Gle(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:$}=oft(x,k,C,_,T,R);$&&(eft(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=QN(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=nmt(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=omt(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=>Bp(A,!0));_(R);return}_(og(C,new Set([...x]),!0)),T(og(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const R=x.map(A=>Bp(A,!0));T(R);return}T(og(k,new Set([...x]))),_(og(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(M=>{const j=_.get(M.id);return j&&(j.selected=!1),Bp(M.id,!1)}),$=D.map(M=>Bp(M.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,Bp(D.id,!1)]:A,[]),R=x.reduce((A,D)=>D.selected?[...A,Bp(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]||(KN(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 aft({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:{...vle}})},updateConnection:x=>{f({connection:x})},reset:()=>f({...oce()})}},Object.is);function vgt({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]=E.useState(()=>bgt({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(Lft,{value:g,children:y.jsx(smt,{children:f})})}function xgt({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 E.useContext(J5)?y.jsx(y.Fragment,{children:e}):y.jsx(vgt,{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 wgt={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function kgt({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:M,onEdgesDelete:j,onDelete:L,onSelectionChange:Y,onSelectionDragStart:O,onSelectionDrag:U,onSelectionDragStop:I,onSelectionContextMenu:q,onSelectionStart:V,onSelectionEnd:G,onBeforeDelete:F,connectionMode:J,connectionLineType:Q=$u.Bezier,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:X,deleteKeyCode:Z="Backspace",selectionKeyCode:oe="Shift",selectionOnDrag:ee=!1,selectionMode:re=mb.Full,panActivationKeyCode:pe="Space",multiSelectionKeyCode:Ce=wb()?"Meta":"Control",zoomActivationKeyCode:ce=wb()?"Meta":"Control",snapToGrid:de,snapGrid:be,onlyRenderVisibleElements:Oe=!1,selectNodesOnDrag:Xe,nodesDraggable:Ge,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,nodeOrigin:Ke=pse,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:Et=!0,defaultViewport:Pn=Kft,minZoom:_e=.5,maxZoom:we=2,translateExtent:rt=fb,preventScrolling:at=!0,nodeExtent:Dt,defaultMarkerColor:Wr="#b1b1b7",zoomOnScroll:Pt=!0,zoomOnPinch:Tr=!0,panOnScroll:vo=!1,panOnScrollSpeed:$n=.5,panOnScrollMode:Fr=Lp.Free,zoomOnDoubleClick:no=!0,panOnDrag:ur=!0,onPaneClick:ha,onPaneMouseEnter:_s,onPaneMouseMove:Qp,onPaneMouseLeave:Cc,onPaneScroll:qb,onPaneContextMenu:Sg,paneClickDistance:Hu=0,nodeClickDistance:Jp=0,children:eh,onReconnect:Cg,onReconnectStart:Ub,onReconnectEnd:Ti,onEdgeContextMenu:Mn,onEdgeDoubleClick:oo,onEdgeMouseEnter:Es,onEdgeMouseMove:th,onEdgeMouseLeave:Vb,reconnectRadius:Yb=10,onNodesChange:Tg,onEdgesChange:Tc,noDragClassName:rh="nodrag",noWheelClassName:Ss="nowheel",noPanClassName:Ri="nopan",fitView:zl,fitViewOptions:Ai,connectOnClick:tn,attributionPosition:Rg,proOptions:Ag,defaultEdgeOptions:Bl,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Wb,disableKeyboardA11y:qu=!1,autoPanOnConnect:Ng,autoPanOnNodeDrag:Gb,autoPanSpeed:Uu,connectionRadius:Vu,isValidConnection:Fa,onError:nh,style:Dg,id:Ni,nodeDragThreshold:oh,connectionDragThreshold:ah,viewport:Xb,onViewportChange:Pg,width:Lo,height:$g,colorMode:Kb="light",debug:Yu,onScroll:Wu,ariaLabelConfig:Gu,...Zb},zo){const jl=Ni||"1",Mg=emt(Kb),ih=E.useCallback(Di=>{Di.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Wu?.(Di)},[Wu]);return y.jsx("div",{"data-testid":"rf__wrapper",...Zb,onScroll:ih,style:{...Dg,...wgt},ref:zo,className:Sn(["react-flow",a,Mg]),id:Ni,role:"application",children:y.jsxs(xgt,{nodes:e,edges:r,width:Lo,height:$g,fitView:zl,fitViewOptions:Ai,minZoom:_e,maxZoom:we,nodeOrigin:Ke,nodeExtent:Dt,children:[y.jsx(ygt,{onInit:u,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:R,onNodeDoubleClick:A,nodeTypes:i,edgeTypes:l,connectionLineType:Q,connectionLineStyle:z,connectionLineComponent:W,connectionLineContainerStyle:X,selectionKeyCode:oe,selectionOnDrag:ee,selectionMode:re,deleteKeyCode:Z,multiSelectionKeyCode:Ce,panActivationKeyCode:pe,zoomActivationKeyCode:ce,onlyRenderVisibleElements:Oe,defaultViewport:Pn,translateExtent:rt,minZoom:_e,maxZoom:we,preventScrolling:at,zoomOnScroll:Pt,zoomOnPinch:Tr,zoomOnDoubleClick:no,panOnScroll:vo,panOnScrollSpeed:$n,panOnScrollMode:Fr,panOnDrag:ur,onPaneClick:ha,onPaneMouseEnter:_s,onPaneMouseMove:Qp,onPaneMouseLeave:Cc,onPaneScroll:qb,onPaneContextMenu:Sg,paneClickDistance:Hu,nodeClickDistance:Jp,onSelectionContextMenu:q,onSelectionStart:V,onSelectionEnd:G,onReconnect:Cg,onReconnectStart:Ub,onReconnectEnd:Ti,onEdgeContextMenu:Mn,onEdgeDoubleClick:oo,onEdgeMouseEnter:Es,onEdgeMouseMove:th,onEdgeMouseLeave:Vb,reconnectRadius:Yb,defaultMarkerColor:Wr,noDragClassName:rh,noWheelClassName:Ss,noPanClassName:Ri,rfId:jl,disableKeyboardA11y:qu,nodeExtent:Dt,viewport:Xb,onViewportChange:Pg}),y.jsx(Jft,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:Ge,autoPanOnNodeFocus:_t,nodesConnectable:Qe,nodesFocusable:St,edgesFocusable:We,edgesReconnectable:st,elementsSelectable:Et,elevateNodesOnSelect:Cs,elevateEdgesOnSelect:Wb,minZoom:_e,maxZoom:we,nodeExtent:Dt,onNodesChange:Tg,onEdgesChange:Tc,snapToGrid:de,snapGrid:be,connectionMode:J,translateExtent:rt,connectOnClick:tn,defaultEdgeOptions:Bl,fitView:zl,fitViewOptions:Ai,onNodesDelete:M,onEdgesDelete:j,onDelete:L,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:$,onSelectionDrag:U,onSelectionDragStart:O,onSelectionDragStop:I,onMove:d,onMoveStart:p,onMoveEnd:f,noPanClassName:Ri,nodeOrigin:Ke,rfId:jl,autoPanOnConnect:Ng,autoPanOnNodeDrag:Gb,autoPanSpeed:Uu,onError:nh,connectionRadius:Vu,isValidConnection:Fa,selectNodesOnDrag:Xe,nodeDragThreshold:oh,connectionDragThreshold:ah,onBeforeDelete:F,paneClickDistance:Hu,debug:Yu,ariaLabelConfig:Gu}),y.jsx(Xft,{onSelectionChange:Y}),eh,y.jsx(Uft,{proOptions:Ag,position:Rg}),y.jsx(qft,{rfId:jl,disableKeyboardA11y:qu})]})})}_se(kgt);function _gt({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:Sn(["react-flow__background-pattern",n,o])})}function Egt({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:Sn(["react-flow__background-pattern","dots",r])})}var Iu;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Iu||(Iu={}));const Sgt={[Iu.Dots]:1,[Iu.Lines]:1,[Iu.Cross]:6},Cgt=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function ace({id:e,variant:r=Iu.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:l,bgColor:s,style:c,className:u,patternClassName:d}){const p=E.useRef(null),{transform:f,patternId:g}=tr(Cgt,Vr),b=o||Sgt[r],x=r===Iu.Dots,w=r===Iu.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:Sn(["react-flow__background",u]),style:{...c,...rk,"--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(Egt,{radius:_/2,className:d}):y.jsx(_gt,{dimensions:R,lineWidth:a,variant:r,className:d})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}ace.displayName="Background",E.memo(ace);function Tgt(){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 Rgt(){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 Agt(){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 Ngt(){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 Dgt(){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 ik({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:Sn(["react-flow__controls-button",r]),...n,children:e})}const Pgt=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function ice({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=zr(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=tr(Pgt,Vr),{zoomIn:_,zoomOut:T,fitView:R}=nD(),A=()=>{_(),i?.()},D=()=>{T(),l?.()},N=()=>{R(a),s?.()},$=()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return y.jsxs(ek,{className:Sn(["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(ik,{onClick:A,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(Tgt,{})}),y.jsx(ik,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:y.jsx(Rgt,{})})]}),n&&y.jsx(ik,{className:"react-flow__controls-fitview",onClick:N,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:y.jsx(Agt,{})}),o&&y.jsx(ik,{className:"react-flow__controls-interactive",onClick:$,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?y.jsx(Dgt,{}):y.jsx(Ngt,{})}),d]})}ice.displayName="Controls",E.memo(ice);function $gt({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:Sn(["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 Mgt=E.memo($gt),Ogt=e=>e.nodes.map(r=>r.id),lD=e=>e instanceof Function?e:()=>e;function Igt({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=Mgt,onClick:l}){const s=tr(Ogt,Vr),c=lD(r),u=lD(e),d=lD(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:s.map(f=>y.jsx(zgt,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:u,nodeClassNameFunc:d,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:l,shapeRendering:p},f))})}function Lgt({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}=tr(b=>{const{internals:x}=b.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=bc(w);return{node:w,x:k,y:C,width:_,height:T}},Vr);return!u||u.hidden||!Ale(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 zgt=E.memo(Lgt);var Bgt=E.memo(Igt);const jgt=200,Fgt=150,Hgt=e=>!e.hidden,qgt=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?Tle(yb(e.nodeLookup,{filter:Hgt}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},Ugt="react-flow__minimap-desc";function lce({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=zr(),A=E.useRef(null),{boundingRect:D,viewBB:N,rfId:$,panZoom:M,translateExtent:j,flowWidth:L,flowHeight:Y,ariaLabelConfig:O}=tr(qgt,Vr),U=e?.width??jgt,I=e?.height??Fgt,q=D.width/U,V=D.height/I,G=Math.max(q,V),F=G*U,J=G*I,Q=T*G,z=D.x-(F-D.width)/2-Q,W=D.y-(J-D.height)/2-Q,X=F+Q*2,Z=J+Q*2,oe=`${Ugt}-${$}`,ee=E.useRef(0),re=E.useRef();ee.current=G,E.useEffect(()=>{if(A.current&&M)return re.current=fft({domNode:A.current,panZoom:M,getTransform:()=>R.getState().transform,getViewScale:()=>ee.current}),()=>{re.current?.destroy()}},[M]),E.useEffect(()=>{re.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[be,Oe]=re.current?.pointer(de)||[0,0];g(de,{x:be,y:Oe})}:void 0,Ce=b?E.useCallback((de,be)=>{const Oe=R.getState().nodeLookup.get(be).internals.userNode;b(de,Oe)},[]):void 0,ce=k??O["minimap.ariaLabel"];return y.jsx(ek,{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*G: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:Sn(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:U,height:I,viewBox:`${z} ${W} ${X} ${Z}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":oe,ref:A,onClick:pe,children:[ce&&y.jsx("title",{id:oe,children:ce}),y.jsx(Bgt,{onClick:Ce,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:l,nodeComponent:s}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${z-Q},${W-Q}h${X+Q*2}v${Z+Q*2}h${-X-Q*2}z
M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}lce.displayName="MiniMap",E.memo(lce);const Vgt=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,Ygt={[ng.Line]:"right",[ng.Handle]:"bottom-right"};function Wgt({nodeId:e,position:r,variant:n=ng.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=Ase(),_=typeof e=="string"?e:C,T=zr(),R=E.useRef(null),A=n===ng.Handle,D=tr(E.useCallback(Vgt(A&&g),[A,g]),Vr),N=E.useRef(null),$=r??Ygt[n];E.useEffect(()=>{if(!(!R.current||!_))return N.current||(N.current=Nft({domNode:R.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U,domNode:I}=T.getState();return{nodeLookup:j,transform:L,snapGrid:Y,snapToGrid:O,nodeOrigin:U,paneDomNode:I}},onChange:(j,L)=>{const{triggerNodeChanges:Y,nodeLookup:O,parentLookup:U,nodeOrigin:I}=T.getState(),q=[],V={x:j.x,y:j.y},G=O.get(_);if(G&&G.expandParent&&G.parentId){const F=G.origin??I,J=j.width??G.measured.width??0,Q=j.height??G.measured.height??0,z={id:G.id,parentId:G.parentId,rect:{width:J,height:Q,...Nle({x:j.x??G.position.x,y:j.y??G.position.y},{width:J,height:Q},G.parentId,O,F)}},W=QN([z],O,U,I);q.push(...W),V.x=j.x?Math.max(F[0]*J,j.x):void 0,V.y=j.y?Math.max(F[1]*Q,j.y):void 0}if(V.x!==void 0&&V.y!==void 0){const F={id:_,type:"position",position:{...V}};q.push(F)}if(j.width!==void 0&&j.height!==void 0){const F={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:j.width,height:j.height}};q.push(F)}for(const F of L){const J={...F,type:"position"};q.push(J)}Y(q)},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 M=$.split("-");return y.jsx("div",{className:Sn(["react-flow__resize-control","nodrag",...M,n,o]),ref:R,style:{...a,scale:D,...l&&{[A?"backgroundColor":"borderColor"]:l}},children:i})}E.memo(Wgt);var Ggt=Object.getOwnPropertyNames,Xgt=Object.getOwnPropertySymbols,Kgt=Object.prototype.hasOwnProperty;function sce(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function lk(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 cce(e){return Ggt(e).concat(Xgt(e))}var Zgt=Object.hasOwn||(function(e,r){return Kgt.call(e,r)});function jp(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var Qgt="__v",Jgt="__o",e1t="_owner",uce=Object.getOwnPropertyDescriptor,dce=Object.keys;function t1t(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 r1t(e,r){return jp(e.getTime(),r.getTime())}function n1t(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function o1t(e,r){return e===r}function pce(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 a1t=jp;function i1t(e,r,n){var o=dce(e),a=o.length;if(dce(r).length!==a)return!1;for(;a-- >0;)if(!fce(e,r,n,o[a]))return!1;return!0}function Sb(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],!fce(e,r,n,i)||(l=uce(e,i),s=uce(r,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function l1t(e,r){return jp(e.valueOf(),r.valueOf())}function s1t(e,r){return e.source===r.source&&e.flags===r.flags}function hce(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 c1t(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 u1t(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 fce(e,r,n,o){return(o===e1t||o===Jgt||o===Qgt)&&(e.$$typeof||r.$$typeof)?!0:Zgt(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var d1t="[object Arguments]",p1t="[object Boolean]",h1t="[object Date]",f1t="[object Error]",m1t="[object Map]",g1t="[object Number]",y1t="[object Object]",b1t="[object RegExp]",v1t="[object Set]",x1t="[object String]",w1t="[object URL]",k1t=Array.isArray,mce=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,gce=Object.assign,_1t=Object.prototype.toString.call.bind(Object.prototype.toString);function E1t(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;return function(g,b,x){if(g===b)return!0;if(g==null||b==null)return!1;var w=typeof g;if(w!==typeof b)return!1;if(w!=="object")return w==="number"?l(g,b,x):w==="function"?a(g,b,x):!1;var k=g.constructor;if(k!==b.constructor)return!1;if(k===Object)return s(g,b,x);if(k1t(g))return r(g,b,x);if(mce!=null&&mce(g))return p(g,b,x);if(k===Date)return n(g,b,x);if(k===RegExp)return u(g,b,x);if(k===Map)return i(g,b,x);if(k===Set)return d(g,b,x);var C=_1t(g);return C===h1t?n(g,b,x):C===b1t?u(g,b,x):C===m1t?i(g,b,x):C===v1t?d(g,b,x):C===y1t?typeof g.then!="function"&&typeof b.then!="function"&&s(g,b,x):C===w1t?f(g,b,x):C===f1t?o(g,b,x):C===d1t?s(g,b,x):C===p1t||C===g1t||C===x1t?c(g,b,x):!1}}function S1t(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?Sb:t1t,areDatesEqual:r1t,areErrorsEqual:n1t,areFunctionsEqual:o1t,areMapsEqual:o?sce(pce,Sb):pce,areNumbersEqual:a1t,areObjectsEqual:o?Sb:i1t,arePrimitiveWrappersEqual:l1t,areRegExpsEqual:s1t,areSetsEqual:o?sce(hce,Sb):hce,areTypedArraysEqual:o?Sb:c1t,areUrlsEqual:u1t};if(n&&(a=gce({},a,n(a))),r){var i=lk(a.areArraysEqual),l=lk(a.areMapsEqual),s=lk(a.areObjectsEqual),c=lk(a.areSetsEqual);a=gce({},a,{areArraysEqual:i,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:c})}return a}function C1t(e){return function(r,n,o,a,i,l,s){return e(r,n,s)}}function T1t(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)}}Lu(),Lu({strict:!0}),Lu({circular:!0}),Lu({circular:!0,strict:!0}),Lu({createInternalComparator:function(){return jp}}),Lu({strict:!0,createInternalComparator:function(){return jp}}),Lu({circular:!0,createInternalComparator:function(){return jp}}),Lu({circular:!0,createInternalComparator:function(){return jp},strict:!0});function Lu(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=S1t(e),c=E1t(s),u=o?o(c):C1t(c);return T1t({circular:n,comparator:c,createState:a,equals:u,strict:l})}const{min:R1t,max:A1t}=Math,Fp=(e,r=0,n=1)=>R1t(A1t(r,e),n),sD=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]=Fp(e[r],0,255)):r===3&&(e[r]=Fp(e[r],0,1));return e},yce={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])yce[`[object ${e}]`]=e.toLowerCase();function Ut(e){return yce[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),ag=e=>{if(e.length<2)return null;const r=e.length-1;return Ut(e[r])=="string"?e[r].toLowerCase():null},{PI:sk,min:bce,max:vce}=Math,Ei=e=>Math.round(e*100)/100,cD=e=>Math.round(e*100)/100,vc=sk*2,uD=sk/3,N1t=sk/180,D1t=180/sk;function xce(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const Nt={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=ag(e),o=!1;if(!n){o=!0,Nt.sorted||(Nt.autodetect=Nt.autodetect.sort((a,i)=>i.p-a.p),Nt.sorted=!0);for(let a of Nt.autodetect)if(n=a.test(...e),n)break}if(Nt.format[n]){const a=Nt.format[n].apply(null,o?e:e.slice(0,-1));r._rgb=sD(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 P1t="3.1.2",Zt=(...e)=>new je(...e);Zt.version=P1t;const ig={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"},$1t=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,M1t=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,wce=e=>{if(e.match($1t)){(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(M1t)){(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:ck}=Math,kce=(...e)=>{let[r,n,o,a]=It(e,"rgba"),i=ag(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=ck(r),n=ck(n),o=ck(o);let l="000000"+(r<<16|n<<8|o).toString(16);l=l.substr(l.length-6);let s="0"+ck(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=kce(this._rgb,"rgb");for(let r of Object.keys(ig))if(ig[r]===e)return r.toLowerCase();return e},Nt.format.named=e=>{if(e=e.toLowerCase(),ig[e])return wce(ig[e]);throw new Error("unknown color name: "+e)},Nt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ut(e)==="string"&&ig[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 xs={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}},O1t=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 xc(e){const r=O1t.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);xs.labWhitePoint=e,xs.Xn=r[0],xs.Zn=r[1]}function Cb(){return xs.labWhitePoint}const dD=(...e)=>{e=It(e,"lab");const[r,n,o]=e,[a,i,l]=I1t(r,n,o),[s,c,u]=_ce(a,i,l);return[s,c,u,e.length>3?e[3]:1]},I1t=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=xs,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,_]},pD=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},_ce=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:u}=xs,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=pD(_*i.m00+T*i.m10+R*i.m20),D=pD(_*i.m01+T*i.m11+R*i.m21),N=pD(_*i.m02+T*i.m12+R*i.m22);return[A*255,D*255,N*255]},hD=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=Ece(r,n,o),[c,u,d]=L1t(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function L1t(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=xs,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 fD(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 Ece=(e,r,n)=>{e=fD(e/255),r=fD(r/255),n=fD(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:u,Bs:d,Cs:p}=xs;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 hD(this._rgb)},Object.assign(Zt,{lab:(...e)=>new je(...e,"lab"),getLabWhitePoint:Cb,setLabWhitePoint:xc}),Nt.format.lab=dD,Nt.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]-=xs.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:z1t}=Math,B1t=1e-7,j1t=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=j1t;const a=(l,s)=>{const c=l.interpolate(s,.5,r),u=c.luminance();return Math.abs(e-u)<B1t||!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 F1t(...this._rgb.slice(0,3))};const F1t=(e,r,n)=>(e=mD(e),r=mD(r),n=mD(n),.2126*e+.7152*r+.0722*n),mD=e=>(e/=255,e<=.03928?e/12.92:z1t((e+.055)/1.055,2.4)),Io={},lg=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!Io[a]&&!o.length&&(a=Object.keys(Io)[0]),!Io[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)),Io[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};je.prototype.mix=je.prototype.interpolate=function(e,r=.5,...n){return lg(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:H1t,cos:q1t}=Math,Sce=(...e)=>{let[r,n,o]=It(e,"lch");return isNaN(o)&&(o=0),o=o*N1t,[r,q1t(o)*n,H1t(o)*n]},gD=(...e)=>{e=It(e,"lch");const[r,n,o]=e,[a,i,l]=Sce(r,n,o),[s,c,u]=dD(a,i,l);return[s,c,u,e.length>3?e[3]:1]},U1t=(...e)=>{const r=xce(It(e,"hcl"));return gD(...r)},{sqrt:V1t,atan2:Y1t,round:W1t}=Math,Cce=(...e)=>{const[r,n,o]=It(e,"lab"),a=V1t(n*n+o*o);let i=(Y1t(o,n)*D1t+360)%360;return W1t(a*1e4)===0&&(i=Number.NaN),[r,a,i]},yD=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=hD(r,n,o),[c,u,d]=Cce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};je.prototype.lch=function(){return yD(this._rgb)},je.prototype.hcl=function(){return xce(yD(this._rgb))},Object.assign(Zt,{lch:(...e)=>new je(...e,"lch"),hcl:(...e)=>new je(...e,"hcl")}),Nt.format.lch=gD,Nt.format.hcl=U1t,["lch","hcl"].forEach(e=>Nt.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]+=xs.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 lg(this,"white",e,...r)},je.prototype.shade=function(e=.5,...r){return lg(this,"black",e,...r)};const G1t=(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")};Io.rgb=G1t;const{sqrt:bD,pow:sg}=Math,X1t=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new je(bD(sg(o,2)*(1-n)+sg(l,2)*n),bD(sg(a,2)*(1-n)+sg(s,2)*n),bD(sg(i,2)*(1-n)+sg(c,2)*n),"rgb")};Io.lrgb=X1t;const K1t=(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")};Io.lab=K1t;const cg=(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)},Tce=(e,r,n)=>cg(e,r,n,"lch");Io.lch=Tce,Io.hcl=Tce;const Z1t=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)},Q1t=(...e)=>{const[r,n,o]=It(e,"rgb");return(r<<16)+(n<<8)+o};je.prototype.num=function(){return Q1t(this._rgb)},Object.assign(Zt,{num:(...e)=>new je(...e,"num")}),Nt.format.num=Z1t,Nt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ut(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const J1t=(e,r,n)=>{const o=e.num(),a=r.num();return new je(o+n*(a-o),"num")};Io.num=J1t;const{floor:e0t}=Math,t0t=(...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=e0t(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]},r0t=(...e)=>{const[r,n,o]=It(e,"rgb"),a=bce(r,n,o),i=vce(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 r0t(this._rgb)};const n0t=(...e)=>new je(...e,"hcg");Zt.hcg=n0t,Nt.format.hcg=t0t,Nt.autodetect.push({p:1,test:(...e)=>{if(e=It(e,"hcg"),Ut(e)==="array"&&e.length===3)return"hcg"}});const o0t=(e,r,n)=>cg(e,r,n,"hcg");Io.hcg=o0t;const{cos:ug}=Math,a0t=(...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*ug(vc*r)/ug(uD-vc*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*ug(vc*r)/ug(uD-vc*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*ug(vc*r)/ug(uD-vc*r))/3,a=1-(i+l)),a=Fp(o*a*3),i=Fp(o*i*3),l=Fp(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:i0t,sqrt:l0t,acos:s0t}=Math,c0t=(...e)=>{let[r,n,o]=It(e,"rgb");r/=255,n/=255,o/=255;let a;const i=i0t(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/=l0t((r-n)*(r-n)+(r-o)*(n-o)),a=s0t(a),o>n&&(a=vc-a),a/=vc),[a*360,s,l]};je.prototype.hsi=function(){return c0t(this._rgb)};const u0t=(...e)=>new je(...e,"hsi");Zt.hsi=u0t,Nt.format.hsi=a0t,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsi"),Ut(e)==="array"&&e.length===3)return"hsi"}});const d0t=(e,r,n)=>cg(e,r,n,"hsi");Io.hsi=d0t;const vD=(...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]},Rce=(...e)=>{e=It(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=bce(r,n,o),i=vce(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 Rce(this._rgb)};const p0t=(...e)=>new je(...e,"hsl");Zt.hsl=p0t,Nt.format.hsl=vD,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsl"),Ut(e)==="array"&&e.length===3)return"hsl"}});const h0t=(e,r,n)=>cg(e,r,n,"hsl");Io.hsl=h0t;const{floor:f0t}=Math,m0t=(...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=f0t(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:g0t,max:y0t}=Math,b0t=(...e)=>{e=It(e,"rgb");let[r,n,o]=e;const a=g0t(r,n,o),i=y0t(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 b0t(this._rgb)};const v0t=(...e)=>new je(...e,"hsv");Zt.hsv=v0t,Nt.format.hsv=m0t,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"hsv"),Ut(e)==="array"&&e.length===3)return"hsv"}});const x0t=(e,r,n)=>cg(e,r,n,"hsv");Io.hsv=x0t;function uk(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 xD=(...e)=>{e=It(e,"lab");const[r,n,o,...a]=e,[i,l,s]=w0t([r,n,o]),[c,u,d]=_ce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]};function w0t(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=uk(n,e);return uk(r,o.map(a=>a**3))}const wD=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),i=Ece(r,n,o);return[...k0t(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function k0t(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=uk(r,e);return uk(n,o.map(a=>Math.cbrt(a)))}je.prototype.oklab=function(){return wD(this._rgb)},Object.assign(Zt,{oklab:(...e)=>new je(...e,"oklab")}),Nt.format.oklab=xD,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"oklab"),Ut(e)==="array"&&e.length===3)return"oklab"}});const _0t=(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")};Io.oklab=_0t;const E0t=(e,r,n)=>cg(e,r,n,"oklch");Io.oklch=E0t;const{pow:kD,sqrt:_D,PI:ED,cos:Ace,sin:Nce,atan2:S0t}=Math,C0t=(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 T0t(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*ED;c+=Ace(f)*n[0],u+=Nce(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*ED;c+=Ace(x)*n[f+1],u+=Nce(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=S0t(u/s[p],c/s[p])/ED*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)},T0t=(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]+=kD(s[0],2)*l,o[1]+=kD(s[1],2)*l,o[2]+=kD(s[2],2)*l,o[3]+=s[3]*l}return o[0]=_D(o[0]),o[1]=_D(o[1]),o[2]=_D(o[2]),o[3]>.9999999&&(o[3]=1),new je(sD(o))},{pow:R0t}=Math;function dk(e){let r="rgb",n=Zt("#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"&&Zt.brewer&&Zt.brewer[D.toLowerCase()]&&(D=Zt.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]=Zt(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 $,M;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?M=D:s&&s.length>2?M=k(D)/(s.length-2):p!==d?M=(D-d)/(p-d):M=1,M=_(M),N||(M=C(M)),x!==1&&(M=R0t(M,x)),M=l[0]+M*(1-l[0]-l[1]),M=Fp(M,0,1);const j=Math.floor(M*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(M<=Y){$=c[L];break}if(M>=Y&&L===i.length-1){$=c[L];break}if(M>Y&&M<i[L+1]){M=(M-Y)/(i[L+1]-Y),$=Zt.interpolate(c[L],c[L+1],M,r);break}}else Ut(c)==="function"&&($=c(M));b&&(g[j]=$)}return $};var R=()=>g={};w(e);const A=function(D){const N=Zt(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=Zt.analyze(a);D===0?s=[N.min,N.max]:s=Zt.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)),M=D.map(j=>(j-d)/(p-d));M.every((j,L)=>$[L]===j)||(_=j=>{if(j<=0||j>=1)return j;let L=0;for(;j>=M[L+1];)L++;const Y=(j-M[L])/(M[L+1]-M[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],M=T(1,!0).lab()[0],j=$>M;let L=T(N,!0).lab()[0];const Y=$+(M-$)*N;let O=L-Y,U=0,I=1,q=20;for(;Math.abs(O)>.01&&q-- >0;)(function(){return j&&(O*=-1),O<0?(U=N,N+=(I-N)*.5):(I=N,N+=(U-N)*.5),L=T(N,!0).lab()[0],O=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 M=a[0],j=a[1]-M;$=A0t(0,D).map(L=>A(M+L/(D-1)*j))}else{e=[];let M=[];if(s&&s.length>2)for(let j=1,L=s.length,Y=1<=L;Y?j<L:j>L;Y?j++:j--)M.push((s[j-1]+s[j])*.5);else M=a;$=M.map(j=>A(j))}return Zt[N]&&($=$.map(M=>M[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=Zt(D),A):n},A}function A0t(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 N0t=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},D0t=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=N0t(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},P0t=e=>{const r=D0t(e);return r.scale=()=>dk(r),r},{round:Dce}=Math;je.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(Dce)},je.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:Dce(r):r)},Object.assign(Zt,{rgb:(...e)=>new je(...e,"rgb")}),Nt.format.rgb=(...e)=>{const r=It(e,"rgba");return r[3]===void 0&&(r[3]=1),r},Nt.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 Ol=(e,r,n)=>{if(!Ol[n])throw new Error("unknown blend mode "+n);return Ol[n](e,r)},zu=e=>(r,n)=>{const o=Zt(n).rgb(),a=Zt(r).rgb();return Zt.rgb(e(o,a))},Bu=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},$0t=e=>e,M0t=(e,r)=>e*r/255,O0t=(e,r)=>e>r?r:e,I0t=(e,r)=>e>r?e:r,L0t=(e,r)=>255*(1-(1-e/255)*(1-r/255)),z0t=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),B0t=(e,r)=>255*(1-(1-r/255)/(e/255)),j0t=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Ol.normal=zu(Bu($0t)),Ol.multiply=zu(Bu(M0t)),Ol.screen=zu(Bu(L0t)),Ol.overlay=zu(Bu(z0t)),Ol.darken=zu(Bu(O0t)),Ol.lighten=zu(Bu(I0t)),Ol.dodge=zu(Bu(j0t)),Ol.burn=zu(Bu(B0t));const{pow:F0t,sin:H0t,cos:q0t}=Math;function U0t(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=vc*((e+120)/360+r*c),d=F0t(a[0]+l*c,o),p=(i!==0?n[0]+c*i:n)*d*(1-d)/2,f=q0t(u),g=H0t(u),b=d+p*(-.14861*f+1.78277*g),x=d+p*(-.29227*f-.90649*g),w=d+p*(1.97294*f);return Zt(sD([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=()=>Zt.scale(s),s.hue(n),s}const V0t="0123456789abcdef",{floor:Y0t,random:W0t}=Math,G0t=()=>{let e="#";for(let r=0;r<6;r++)e+=V0t.charAt(Y0t(W0t()*16));return new je(e,"hex")},{log:Pce,pow:X0t,floor:K0t,abs:Z0t}=Math;function $ce(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)=>Mce(n,o,a),n}function Mce(e,r="equal",n=7){Ut(e)=="array"&&(e=$ce(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*Pce(o),c=Math.LOG10E*Pce(a);l.push(o);for(let u=1;u<n;u++)l.push(X0t(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=K0t(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=Z0t(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 Q0t=(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 Oce=.027,J0t=5e-4,eyt=.1,Ice=1.14,pk=.022,Lce=1.414,tyt=(e,r)=>{e=new je(e),r=new je(r),e.alpha()<1&&(e=lg(r,e,e.alpha(),"rgb"));const n=zce(...e.rgb()),o=zce(...r.rgb()),a=n>=pk?n:n+Math.pow(pk-n,Lce),i=o>=pk?o:o+Math.pow(pk-o,Lce),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)<J0t?0:a<i?l*Ice:s*Ice;return(Math.abs(c)<eyt?0:c>0?c-Oce:c+Oce)*100};function zce(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:wc,pow:Cn,min:ryt,max:nyt,atan2:Bce,abs:jce,cos:hk,sin:Fce,exp:oyt,PI:Hce}=Math;function ayt(e,r,n=1,o=1,a=1){var i=function(Q){return 360*Q/(2*Hce)},l=function(Q){return 2*Hce*Q/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=wc(Cn(c,2)+Cn(u,2)),x=wc(Cn(p,2)+Cn(f,2)),w=(b+x)/2,k=.5*(1-wc(Cn(w,7)/(Cn(w,7)+Cn(25,7)))),C=c*(1+k),_=p*(1+k),T=wc(Cn(C,2)+Cn(u,2)),R=wc(Cn(_,2)+Cn(f,2)),A=(T+R)/2,D=i(Bce(u,C)),N=i(Bce(f,_)),$=D>=0?D:D+360,M=N>=0?N:N+360,j=jce($-M)>180?($+M+360)/2:($+M)/2,L=1-.17*hk(l(j-30))+.24*hk(l(2*j))+.32*hk(l(3*j+6))-.2*hk(l(4*j-63));let Y=M-$;Y=jce(Y)<=180?Y:M<=$?Y+360:Y-360,Y=2*wc(T*R)*Fce(l(Y)/2);const O=d-s,U=R-T,I=1+.015*Cn(g-50,2)/wc(20+Cn(g-50,2)),q=1+.045*A,V=1+.015*A*L,G=30*oyt(-Cn((j-275)/25,2)),F=-(2*wc(Cn(A,7)/(Cn(A,7)+Cn(25,7))))*Fce(2*l(G)),J=wc(Cn(O/(n*I),2)+Cn(U/(o*q),2)+Cn(Y/(a*V),2)+F*(U/(o*q))*(Y/(a*V)));return nyt(0,ryt(100,J))}function iyt(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 lyt=(...e)=>{try{return new je(...e),!0}catch{return!1}},syt={cool(){return dk([Zt.hsl(180,1,.9),Zt.hsl(250,.7,.4)])},hot(){return dk(["#000","#f00","#ff0","#fff"]).mode("rgb")}},SD={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"]},qce=Object.keys(SD),Uce=new Map(qce.map(e=>[e.toLowerCase(),e])),cyt=typeof Proxy=="function"?new Proxy(SD,{get(e,r){const n=r.toLowerCase();if(Uce.has(n))return e[Uce.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(qce)}}):SD,uyt=(...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:Vce}=Math,dyt=(...e)=>{let[r,n,o]=It(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-Vce(r,Vce(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 dyt(this._rgb)},Object.assign(Zt,{cmyk:(...e)=>new je(...e,"cmyk")}),Nt.format.cmyk=uyt,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"cmyk"),Ut(e)==="array"&&e.length===4)return"cmyk"}});const pyt=(...e)=>{const r=It(e,"hsla");let n=ag(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(" ")})`},hyt=(...e)=>{const r=It(e,"lab");let n=ag(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(" ")})`},fyt=(...e)=>{const r=It(e,"lch");let n=ag(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(" ")})`},myt=(...e)=>{const r=It(e,"lab");return r[0]=Ei(r[0]*100)+"%",r[1]=cD(r[1]),r[2]=cD(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},Yce=(...e)=>{const[r,n,o,...a]=It(e,"rgb"),[i,l,s]=wD(r,n,o),[c,u,d]=Cce(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},gyt=(...e)=>{const r=It(e,"lch");return r[0]=Ei(r[0]*100)+"%",r[1]=cD(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:CD}=Math,yyt=(...e)=>{const r=It(e,"rgba");let n=ag(e)||"rgb";if(n.substr(0,3)==="hsl")return pyt(Rce(r),n);if(n.substr(0,3)==="lab"){const o=Cb();xc("d50");const a=hyt(hD(r),n);return xc(o),a}if(n.substr(0,3)==="lch"){const o=Cb();xc("d50");const a=fyt(yD(r),n);return xc(o),a}return n.substr(0,5)==="oklab"?myt(wD(r)):n.substr(0,5)==="oklch"?gyt(Yce(r)):(r[0]=CD(r[0]),r[1]=CD(r[1]),r[2]=CD(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(" ")})`)},Wce=(...e)=>{e=It(e,"lch");const[r,n,o,...a]=e,[i,l,s]=Sce(r,n,o),[c,u,d]=xD(i,l,s);return[c,u,d,...a.length>0&&a[0]<1?[a[0]]:[]]},kc=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Il=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,fk=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Si=/\s*/.source,dg=/\s+/.source,TD=/\s*,\s*/.source,mk=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,pg=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,Gce=new RegExp("^rgba?\\("+Si+[kc,kc,kc].join(dg)+pg+"\\)$"),Xce=new RegExp("^rgb\\("+Si+[kc,kc,kc].join(TD)+Si+"\\)$"),Kce=new RegExp("^rgba\\("+Si+[kc,kc,kc,Il].join(TD)+Si+"\\)$"),Zce=new RegExp("^hsla?\\("+Si+[mk,fk,fk].join(dg)+pg+"\\)$"),Qce=new RegExp("^hsl?\\("+Si+[mk,fk,fk].join(TD)+Si+"\\)$"),Jce=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,eue=new RegExp("^lab\\("+Si+[Il,Il,Il].join(dg)+pg+"\\)$"),tue=new RegExp("^lch\\("+Si+[Il,Il,mk].join(dg)+pg+"\\)$"),rue=new RegExp("^oklab\\("+Si+[Il,Il,Il].join(dg)+pg+"\\)$"),nue=new RegExp("^oklch\\("+Si+[Il,Il,mk].join(dg)+pg+"\\)$"),{round:oue}=Math,hg=e=>e.map((r,n)=>n<=2?Fp(oue(r),0,255):r),Tn=(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),Yo=(e,r)=>e==="none"?r:e,RD=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(Nt.format.named)try{return Nt.format.named(e)}catch{}if((r=e.match(Gce))||(r=e.match(Xce))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+Tn(Yo(n[a],0),0,255);n=hg(n);const o=r[4]!==void 0?+Tn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(Kce)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+Tn(n[o],0,255);return n}if((r=e.match(Zce))||(r=e.match(Qce))){const n=r.slice(1,4);n[0]=+Yo(n[0].replace("deg",""),0),n[1]=+Tn(Yo(n[1],0),0,100)*.01,n[2]=+Tn(Yo(n[2],0),0,100)*.01;const o=hg(vD(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(Jce)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=vD(n);for(let a=0;a<3;a++)o[a]=oue(o[a]);return o[3]=+r[4],o}if(r=e.match(eue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,100),n[1]=Tn(Yo(n[1],0),-125,125,!0),n[2]=Tn(Yo(n[2],0),-125,125,!0);const o=Cb();xc("d50");const a=hg(dD(n));xc(o);const i=r[4]!==void 0?+Tn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(tue)){const n=r.slice(1,4);n[0]=Tn(n[0],0,100),n[1]=Tn(Yo(n[1],0),0,150,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=Cb();xc("d50");const a=hg(gD(n));xc(o);const i=r[4]!==void 0?+Tn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(rue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,1),n[1]=Tn(Yo(n[1],0),-.4,.4,!0),n[2]=Tn(Yo(n[2],0),-.4,.4,!0);const o=hg(xD(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(nue)){const n=r.slice(1,4);n[0]=Tn(Yo(n[0],0),0,1),n[1]=Tn(Yo(n[1],0),0,.4,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=hg(Wce(n)),a=r[4]!==void 0?+Tn(r[4],0,1):1;return o[3]=a,o}};RD.test=e=>Gce.test(e)||Zce.test(e)||eue.test(e)||tue.test(e)||rue.test(e)||nue.test(e)||Xce.test(e)||Kce.test(e)||Qce.test(e)||Jce.test(e)||e==="transparent",je.prototype.css=function(e){return yyt(this._rgb,e)};const byt=(...e)=>new je(...e,"css");Zt.css=byt,Nt.format.css=RD,Nt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ut(e)==="string"&&RD.test(e))return"css"}}),Nt.format.gl=(...e)=>{const r=It(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const vyt=(...e)=>new je(...e,"gl");Zt.gl=vyt,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 kce(this._rgb,e)};const xyt=(...e)=>new je(...e,"hex");Zt.hex=xyt,Nt.format.hex=wce,Nt.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:gk}=Math,aue=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*gk(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*gk(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*gk(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*gk(o),a=255),[n,o,a,1]},{round:wyt}=Math,kyt=(...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=aue(s);c[2]/c[0]>=o/n?i=s:a=s}return wyt(s)};je.prototype.temp=je.prototype.kelvin=je.prototype.temperature=function(){return kyt(this._rgb)};const AD=(...e)=>new je(...e,"temp");Object.assign(Zt,{temp:AD,kelvin:AD,temperature:AD}),Nt.format.temp=Nt.format.kelvin=Nt.format.temperature=aue,je.prototype.oklch=function(){return Yce(this._rgb)},Object.assign(Zt,{oklch:(...e)=>new je(...e,"oklch")}),Nt.format.oklch=Wce,Nt.autodetect.push({p:2,test:(...e)=>{if(e=It(e,"oklch"),Ut(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Zt,{analyze:$ce,average:C0t,bezier:P0t,blend:Ol,brewer:cyt,Color:je,colors:ig,contrast:Q0t,contrastAPCA:tyt,cubehelix:U0t,deltaE:ayt,distance:iyt,input:Nt,interpolate:lg,limits:Mce,mix:lg,random:G0t,scale:dk,scales:syt,valid:lyt});var ND={exports:{}},iue;function _yt(){if(iue)return ND.exports;iue=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{ND.exports=e}catch{String.naturalCompare=e}return ND.exports}_yt();let Tb=class{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};Tb.prototype.normal={},Tb.prototype.property={},Tb.prototype.space=void 0;function lue(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new Tb(n,o,r)}function Rb(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 Eyt=0;const Lt=Hp(),Rn=Hp(),sue=Hp(),Ue=Hp(),Sr=Hp(),fg=Hp(),La=Hp();function Hp(){return 2**++Eyt}const DD=Object.freeze(Object.defineProperty({__proto__:null,boolean:Lt,booleanish:Rn,commaOrSpaceSeparated:La,commaSeparated:fg,number:Ue,overloadedBoolean:sue,spaceSeparated:Sr},Symbol.toStringTag,{value:"Module"})),PD=Object.keys(DD);let $D=class extends da{constructor(e,r,n,o){let a=-1;if(super(e,r),cue(this,"space",o),typeof n=="number")for(;++a<PD.length;){const i=PD[a];cue(this,PD[a],(n&DD[i])===DD[i])}}};$D.prototype.defined=!0;function cue(e,r,n){n&&(e[r]=n)}function mg(e){const r={},n={};for(const[o,a]of Object.entries(e.properties)){const i=new $D(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[Rb(o)]=o,n[Rb(i.attribute)]=o}return new Tb(r,n,e.space)}const uue=mg({properties:{ariaActiveDescendant:null,ariaAtomic:Rn,ariaAutoComplete:null,ariaBusy:Rn,ariaChecked:Rn,ariaColCount:Ue,ariaColIndex:Ue,ariaColSpan:Ue,ariaControls:Sr,ariaCurrent:null,ariaDescribedBy:Sr,ariaDetails:null,ariaDisabled:Rn,ariaDropEffect:Sr,ariaErrorMessage:null,ariaExpanded:Rn,ariaFlowTo:Sr,ariaGrabbed:Rn,ariaHasPopup:null,ariaHidden:Rn,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Sr,ariaLevel:Ue,ariaLive:null,ariaModal:Rn,ariaMultiLine:Rn,ariaMultiSelectable:Rn,ariaOrientation:null,ariaOwns:Sr,ariaPlaceholder:null,ariaPosInSet:Ue,ariaPressed:Rn,ariaReadOnly:Rn,ariaRelevant:null,ariaRequired:Rn,ariaRoleDescription:Sr,ariaRowCount:Ue,ariaRowIndex:Ue,ariaRowSpan:Ue,ariaSelected:Rn,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 due(e,r){return r in e?e[r]:r}function pue(e,r){return due(e,r.toLowerCase())}const Syt=mg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fg,acceptCharset:Sr,accessKey:Sr,action:null,allow:null,allowFullScreen:Lt,allowPaymentRequest:Lt,allowUserMedia:Lt,alt:null,as:null,async:Lt,autoCapitalize:null,autoComplete:Sr,autoFocus:Lt,autoPlay:Lt,blocking:Sr,capture:null,charSet:null,checked:Lt,cite:null,className:Sr,cols:Ue,colSpan:null,content:null,contentEditable:Rn,controls:Lt,controlsList:Sr,coords:Ue|fg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Lt,defer:Lt,dir:null,dirName:null,disabled:Lt,download:sue,draggable:Rn,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Lt,formTarget:null,headers:Sr,height:Ue,hidden:Lt,high:Ue,href:null,hrefLang:null,htmlFor:Sr,httpEquiv:Sr,id:null,imageSizes:null,imageSrcSet:null,inert:Lt,inputMode:null,integrity:null,is:null,isMap:Lt,itemId:null,itemProp:Sr,itemRef:Sr,itemScope:Lt,itemType:Sr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Lt,low:Ue,manifest:null,max:null,maxLength:Ue,media:null,method:null,min:null,minLength:Ue,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:Ue,pattern:null,ping:Sr,placeholder:null,playsInline:Lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Lt,referrerPolicy:null,rel:Sr,required:Lt,reversed:Lt,rows:Ue,rowSpan:Ue,sandbox:Sr,scope:null,scoped:Lt,seamless:Lt,selected:Lt,shadowRootClonable:Lt,shadowRootDelegatesFocus:Lt,shadowRootMode:null,shape:null,size:Ue,sizes:null,slot:null,span:Ue,spellCheck:Rn,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:Lt,useMap:null,value:Rn,width:Ue,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Sr,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:Lt,declare:Lt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ue,leftMargin:Ue,link:null,longDesc:null,lowSrc:null,marginHeight:Ue,marginWidth:Ue,noResize:Lt,noHref:Lt,noShade:Lt,noWrap:Lt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ue,rules:null,scheme:null,scrolling:Rn,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:Lt,disableRemotePlayback:Lt,prefix:null,property:null,results:Ue,security:null,unselectable:null},space:"html",transform:pue}),Cyt=mg({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:La,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:Sr,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:Lt,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:fg,g2:fg,glyphName:fg,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:La,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:Sr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ue,pointsAtY:Ue,pointsAtZ:Ue,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:La,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:La,rev:La,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:La,requiredFeatures:La,requiredFonts:La,requiredFormats:La,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:La,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:La,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:La,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:due}),hue=mg({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()}}),fue=mg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pue}),mue=mg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()}}),Tyt=/[A-Z]/g,gue=/-[a-z]/g,Ryt=/^data[-\w.:]+$/i;function yue(e,r){const n=Rb(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"&&Ryt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(gue,Nyt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!gue.test(i)){let l=i.replace(Tyt,Ayt);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=$D}return new a(o,r)}function Ayt(e){return"-"+e.toLowerCase()}function Nyt(e){return e.charAt(1).toUpperCase()}const Dyt=lue([uue,Syt,hue,fue,mue],"html"),bue=lue([uue,Cyt,hue,fue,mue],"svg");function vue(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 xue(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const wue=/[#.]/g;function Pyt(e,r){const n=e||"",o={};let a=0,i,l;for(;a<n.length;){wue.lastIndex=a;const s=wue.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 kue(e){const r=String(e||"").trim();return r?r.split(/[ \t\n\r\f]+/g):[]}function _ue(e){return e.join(" ").trim()}function Eue(e,r,n){const o=n?Iyt(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=Pyt(i,r);const u=c.tagName.toLowerCase(),d=o?o.get(u):void 0;if(c.tagName=d||u,$yt(l))s.unshift(l);else for(const[p,f]of Object.entries(l))Myt(e,c.properties,p,f)}for(const u of s)MD(c.children,u);return c.type==="element"&&c.tagName==="template"&&(c.content={type:"root",children:c.children},c.children=[]),c}return a}function $yt(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 Myt(e,r,n,o){const a=yue(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=kue(o):a.commaSeparated?i=vue(o):a.commaOrSpaceSeparated?i=kue(vue(o).join(" ")):i=Sue(a,a.property,o):Array.isArray(o)?i=[...o]:i=a.property==="style"?Oyt(o):String(o);if(Array.isArray(i)){const l=[];for(const s of i)l.push(Sue(a,a.property,s));i=l}a.property==="className"&&Array.isArray(r.className)&&(i=r.className.concat(i)),r[a.property]=i}}function MD(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)MD(e,n);else if(typeof r=="object"&&"type"in r)r.type==="root"?MD(e,r.children):e.push(r);else throw new Error("Expected node, nodes, or string, got `"+r+"`")}function Sue(e,r,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Rb(n)===Rb(r)))return!0}return n}function Oyt(e){const r=[];for(const[n,o]of Object.entries(e))r.push([n,o].join(": "));return r.join("; ")}function Iyt(e){const r=new Map;for(const n of e)r.set(n.toLowerCase(),n);return r}const Lyt=["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"];Eue(Dyt,"div"),Eue(bue,"g",Lyt);const Cue={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 Ab{constructor(r,n,o){this.property=r,this.normal=n,o&&(this.space=o)}}Ab.prototype.property={},Ab.prototype.normal={},Ab.prototype.space=null;function Tue(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 Ab(n,o,r)}function OD(e){return e.toLowerCase()}class Ci{constructor(r,n){this.property=r,this.attribute=n}}Ci.prototype.space=null,Ci.prototype.boolean=!1,Ci.prototype.booleanish=!1,Ci.prototype.overloadedBoolean=!1,Ci.prototype.number=!1,Ci.prototype.commaSeparated=!1,Ci.prototype.spaceSeparated=!1,Ci.prototype.commaOrSpaceSeparated=!1,Ci.prototype.mustUseProperty=!1,Ci.prototype.defined=!1;let zyt=0;const zt=qp(),An=qp(),Rue=qp(),Ve=qp(),Cr=qp(),gg=qp(),za=qp();function qp(){return 2**++zyt}const ID=Object.freeze(Object.defineProperty({__proto__:null,boolean:zt,booleanish:An,commaOrSpaceSeparated:za,commaSeparated:gg,number:Ve,overloadedBoolean:Rue,spaceSeparated:Cr},Symbol.toStringTag,{value:"Module"})),LD=Object.keys(ID);class zD extends Ci{constructor(r,n,o,a){let i=-1;if(super(r,n),Aue(this,"space",a),typeof o=="number")for(;++i<LD.length;){const l=LD[i];Aue(this,LD[i],(o&ID[l])===ID[l])}}}zD.prototype.defined=!0;function Aue(e,r,n){n&&(e[r]=n)}const Byt={}.hasOwnProperty;function yg(e){const r={},n={};let o;for(o in e.properties)if(Byt.call(e.properties,o)){const a=e.properties[o],i=new zD(o,e.transform(e.attributes||{},o),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(o)&&(i.mustUseProperty=!0),r[o]=i,n[OD(o)]=o,n[OD(i.attribute)]=o}return new Ab(r,n,e.space)}const Nue=yg({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}}),Due=yg({space:"xml",transform(e,r){return"xml:"+r.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Pue(e,r){return r in e?e[r]:r}function $ue(e,r){return Pue(e,r.toLowerCase())}const Mue=yg({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:$ue,properties:{xmlns:null,xmlnsXLink:null}}),Oue=yg({transform(e,r){return r==="role"?r:"aria-"+r.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:An,ariaAutoComplete:null,ariaBusy:An,ariaChecked:An,ariaColCount:Ve,ariaColIndex:Ve,ariaColSpan:Ve,ariaControls:Cr,ariaCurrent:null,ariaDescribedBy:Cr,ariaDetails:null,ariaDisabled:An,ariaDropEffect:Cr,ariaErrorMessage:null,ariaExpanded:An,ariaFlowTo:Cr,ariaGrabbed:An,ariaHasPopup:null,ariaHidden:An,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Cr,ariaLevel:Ve,ariaLive:null,ariaModal:An,ariaMultiLine:An,ariaMultiSelectable:An,ariaOrientation:null,ariaOwns:Cr,ariaPlaceholder:null,ariaPosInSet:Ve,ariaPressed:An,ariaReadOnly:An,ariaRelevant:null,ariaRequired:An,ariaRoleDescription:Cr,ariaRowCount:Ve,ariaRowIndex:Ve,ariaRowSpan:Ve,ariaSelected:An,ariaSetSize:Ve,ariaSort:null,ariaValueMax:Ve,ariaValueMin:Ve,ariaValueNow:Ve,ariaValueText:null,role:null}}),jyt=yg({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:$ue,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:gg,acceptCharset:Cr,accessKey:Cr,action:null,allow:null,allowFullScreen:zt,allowPaymentRequest:zt,allowUserMedia:zt,alt:null,as:null,async:zt,autoCapitalize:null,autoComplete:Cr,autoFocus:zt,autoPlay:zt,blocking:Cr,capture:null,charSet:null,checked:zt,cite:null,className:Cr,cols:Ve,colSpan:null,content:null,contentEditable:An,controls:zt,controlsList:Cr,coords:Ve|gg,crossOrigin:null,data:null,dateTime:null,decoding:null,default:zt,defer:zt,dir:null,dirName:null,disabled:zt,download:Rue,draggable:An,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:zt,formTarget:null,headers:Cr,height:Ve,hidden:zt,high:Ve,href:null,hrefLang:null,htmlFor:Cr,httpEquiv:Cr,id:null,imageSizes:null,imageSrcSet:null,inert:zt,inputMode:null,integrity:null,is:null,isMap:zt,itemId:null,itemProp:Cr,itemRef:Cr,itemScope:zt,itemType:Cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:zt,low:Ve,manifest:null,max:null,maxLength:Ve,media:null,method:null,min:null,minLength:Ve,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:Ve,pattern:null,ping:Cr,placeholder:null,playsInline:zt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:zt,referrerPolicy:null,rel:Cr,required:zt,reversed:zt,rows:Ve,rowSpan:Ve,sandbox:Cr,scope:null,scoped:zt,seamless:zt,selected:zt,shadowRootClonable:zt,shadowRootDelegatesFocus:zt,shadowRootMode:null,shape:null,size:Ve,sizes:null,slot:null,span:Ve,spellCheck:An,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:zt,useMap:null,value:An,width:Ve,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Cr,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:zt,declare:zt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ve,leftMargin:Ve,link:null,longDesc:null,lowSrc:null,marginHeight:Ve,marginWidth:Ve,noResize:zt,noHref:zt,noShade:zt,noWrap:zt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ve,rules:null,scheme:null,scrolling:An,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:zt,disableRemotePlayback:zt,prefix:null,property:null,results:Ve,security:null,unselectable:null}}),Fyt=yg({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:Pue,properties:{about:za,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:Cr,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:zt,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:gg,g2:gg,glyphName:gg,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:za,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:Cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ve,pointsAtY:Ve,pointsAtZ:Ve,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:za,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:za,rev:za,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:za,requiredFeatures:za,requiredFonts:za,requiredFormats:za,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:za,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:za,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:za,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}}),Hyt=/^data[-\w.:]+$/i,Iue=/-[a-z]/g,qyt=/[A-Z]/g;function Uyt(e,r){const n=OD(r);let o=r,a=Ci;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Hyt.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(Iue,Yyt);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!Iue.test(i)){let l=i.replace(qyt,Vyt);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=zD}return new a(o,r)}function Vyt(e){return"-"+e.toLowerCase()}function Yyt(e){return e.charAt(1).toUpperCase()}Tue([Due,Nue,Mue,Oue,jyt],"html");const Wyt=Tue([Due,Nue,Mue,Oue,Fyt],"svg"),Lue={}.hasOwnProperty;function zue(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&Lue.call(a,e)){const c=String(a[e]);l=Lue.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 Gyt={}.hasOwnProperty,Xyt=zue("type",{handlers:{root:Kyt,element:tbt,text:Jyt,comment:ebt,doctype:Qyt}});function Kyt(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=BD(e.children,n,r),bg(e,n),n}function Zyt(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=BD(e.children,n,r),bg(e,n),n}function Qyt(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return bg(e,r),r}function Jyt(e){const r={nodeName:"#text",value:e.value,parentNode:null};return bg(e,r),r}function ebt(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return bg(e,r),r}function tbt(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=Wyt);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Gyt.call(e.properties,i)){const c=rbt(o,i,e.properties[i]);c&&a.push(c)}}const l=o.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Cue[l],childNodes:[],parentNode:null};return s.childNodes=BD(e.children,s,o),bg(e,s),e.tagName==="template"&&e.content&&(s.content=Zyt(e.content,o)),s}function rbt(e,r,n){const o=Uyt(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?xue(n):_ue(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=Cue[o.space]}return a}function BD(e,r,n){let o=-1;const a=[];if(e)for(;++o<e.length;){const i=Xyt(e[o],n);i.parentNode=r,a.push(i)}return a}function bg(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 Bue;(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"})(Bue||(Bue={}));var jue;(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"})(jue||(jue={}));var Fue;(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"})(Fue||(Fue={}));const nbt=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ȀDMPTLJNjǑǖ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;扐blè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;戥ǹ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ቻ኉Dzኀ\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;䅻Dzᕔ\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ƀ;oș᳊᳔ndĀ;ș᳑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;ẝẤijạả;怄;怅怃Ā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ῦῪ \0llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱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檈Ā;qim;拧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⧓ସdz⧟\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᪠ⵒⵗLjⵚ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㚆㚝㚵㚼Dz㚋\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))),obt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var jD;const abt=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]]),ibt=(jD=String.fromCodePoint)!==null&&jD!==void 0?jD: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 lbt(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=abt.get(e))!==null&&r!==void 0?r:e}var to;(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"})(to||(to={}));const sbt=32;var ju;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ju||(ju={}));function FD(e){return e>=to.ZERO&&e<=to.NINE}function cbt(e){return e>=to.UPPER_A&&e<=to.UPPER_F||e>=to.LOWER_A&&e<=to.LOWER_F}function ubt(e){return e>=to.UPPER_A&&e<=to.UPPER_Z||e>=to.LOWER_A&&e<=to.LOWER_Z||FD(e)}function dbt(e){return e===to.EQUALS||ubt(e)}var ro;(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"})(ro||(ro={}));var Up;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Up||(Up={}));class pbt{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=ro.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Up.Strict}startEntity(r){this.decodeMode=r,this.state=ro.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case ro.EntityStart:return r.charCodeAt(n)===to.NUM?(this.state=ro.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=ro.NamedEntity,this.stateNamedEntity(r,n));case ro.NumericStart:return this.stateNumericStart(r,n);case ro.NumericDecimal:return this.stateNumericDecimal(r,n);case ro.NumericHex:return this.stateNumericHex(r,n);case ro.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|sbt)===to.LOWER_X?(this.state=ro.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=ro.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(FD(a)||cbt(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(FD(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===to.SEMI)this.consumed+=1;else if(this.decodeMode===Up.Strict)return 0;return this.emitCodePoint(lbt(this.result),this.consumed),this.errors&&(r!==to.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&ju.VALUE_LENGTH)>>14;for(;n<r.length;n++,this.excess++){const l=r.charCodeAt(n);if(this.treeIndex=hbt(o,a,this.treeIndex+Math.max(1,i),l),this.treeIndex<0)return this.result===0||this.decodeMode===Up.Attribute&&(i===0||dbt(l))?0:this.emitNotTerminatedNamedEntity();if(a=o[this.treeIndex],i=(a&ju.VALUE_LENGTH)>>14,i!==0){if(l===to.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==Up.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]&ju.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]&~ju.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case ro.NamedEntity:return this.result!==0&&(this.decodeMode!==Up.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ro.NumericDecimal:return this.emitNumericEntity(0,2);case ro.NumericHex:return this.emitNumericEntity(0,3);case ro.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ro.EntityStart:return 0}}}function Hue(e){let r="";const n=new pbt(e,o=>r+=ibt(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 hbt(e,r,n,o){const a=(r&ju.BRANCH_LENGTH)>>7,i=r&ju.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}Hue(nbt),Hue(obt);var Bn;(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/"})(Bn||(Bn={}));var que;(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"})(que||(que={}));var Uue;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Uue||(Uue={}));var xe;(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"})(xe||(xe={}));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={})),xe.A,ie.A,xe.ADDRESS,ie.ADDRESS,xe.ANNOTATION_XML,ie.ANNOTATION_XML,xe.APPLET,ie.APPLET,xe.AREA,ie.AREA,xe.ARTICLE,ie.ARTICLE,xe.ASIDE,ie.ASIDE,xe.B,ie.B,xe.BASE,ie.BASE,xe.BASEFONT,ie.BASEFONT,xe.BGSOUND,ie.BGSOUND,xe.BIG,ie.BIG,xe.BLOCKQUOTE,ie.BLOCKQUOTE,xe.BODY,ie.BODY,xe.BR,ie.BR,xe.BUTTON,ie.BUTTON,xe.CAPTION,ie.CAPTION,xe.CENTER,ie.CENTER,xe.CODE,ie.CODE,xe.COL,ie.COL,xe.COLGROUP,ie.COLGROUP,xe.DD,ie.DD,xe.DESC,ie.DESC,xe.DETAILS,ie.DETAILS,xe.DIALOG,ie.DIALOG,xe.DIR,ie.DIR,xe.DIV,ie.DIV,xe.DL,ie.DL,xe.DT,ie.DT,xe.EM,ie.EM,xe.EMBED,ie.EMBED,xe.FIELDSET,ie.FIELDSET,xe.FIGCAPTION,ie.FIGCAPTION,xe.FIGURE,ie.FIGURE,xe.FONT,ie.FONT,xe.FOOTER,ie.FOOTER,xe.FOREIGN_OBJECT,ie.FOREIGN_OBJECT,xe.FORM,ie.FORM,xe.FRAME,ie.FRAME,xe.FRAMESET,ie.FRAMESET,xe.H1,ie.H1,xe.H2,ie.H2,xe.H3,ie.H3,xe.H4,ie.H4,xe.H5,ie.H5,xe.H6,ie.H6,xe.HEAD,ie.HEAD,xe.HEADER,ie.HEADER,xe.HGROUP,ie.HGROUP,xe.HR,ie.HR,xe.HTML,ie.HTML,xe.I,ie.I,xe.IMG,ie.IMG,xe.IMAGE,ie.IMAGE,xe.INPUT,ie.INPUT,xe.IFRAME,ie.IFRAME,xe.KEYGEN,ie.KEYGEN,xe.LABEL,ie.LABEL,xe.LI,ie.LI,xe.LINK,ie.LINK,xe.LISTING,ie.LISTING,xe.MAIN,ie.MAIN,xe.MALIGNMARK,ie.MALIGNMARK,xe.MARQUEE,ie.MARQUEE,xe.MATH,ie.MATH,xe.MENU,ie.MENU,xe.META,ie.META,xe.MGLYPH,ie.MGLYPH,xe.MI,ie.MI,xe.MO,ie.MO,xe.MN,ie.MN,xe.MS,ie.MS,xe.MTEXT,ie.MTEXT,xe.NAV,ie.NAV,xe.NOBR,ie.NOBR,xe.NOFRAMES,ie.NOFRAMES,xe.NOEMBED,ie.NOEMBED,xe.NOSCRIPT,ie.NOSCRIPT,xe.OBJECT,ie.OBJECT,xe.OL,ie.OL,xe.OPTGROUP,ie.OPTGROUP,xe.OPTION,ie.OPTION,xe.P,ie.P,xe.PARAM,ie.PARAM,xe.PLAINTEXT,ie.PLAINTEXT,xe.PRE,ie.PRE,xe.RB,ie.RB,xe.RP,ie.RP,xe.RT,ie.RT,xe.RTC,ie.RTC,xe.RUBY,ie.RUBY,xe.S,ie.S,xe.SCRIPT,ie.SCRIPT,xe.SEARCH,ie.SEARCH,xe.SECTION,ie.SECTION,xe.SELECT,ie.SELECT,xe.SOURCE,ie.SOURCE,xe.SMALL,ie.SMALL,xe.SPAN,ie.SPAN,xe.STRIKE,ie.STRIKE,xe.STRONG,ie.STRONG,xe.STYLE,ie.STYLE,xe.SUB,ie.SUB,xe.SUMMARY,ie.SUMMARY,xe.SUP,ie.SUP,xe.TABLE,ie.TABLE,xe.TBODY,ie.TBODY,xe.TEMPLATE,ie.TEMPLATE,xe.TEXTAREA,ie.TEXTAREA,xe.TFOOT,ie.TFOOT,xe.TD,ie.TD,xe.TH,ie.TH,xe.THEAD,ie.THEAD,xe.TITLE,ie.TITLE,xe.TR,ie.TR,xe.TRACK,ie.TRACK,xe.TT,ie.TT,xe.U,ie.U,xe.UL,ie.UL,xe.SVG,ie.SVG,xe.VAR,ie.VAR,xe.WBR,ie.WBR,xe.XMP,ie.XMP;const Le=ie;Bn.HTML+"",Le.ADDRESS,Le.APPLET,Le.AREA,Le.ARTICLE,Le.ASIDE,Le.BASE,Le.BASEFONT,Le.BGSOUND,Le.BLOCKQUOTE,Le.BODY,Le.BR,Le.BUTTON,Le.CAPTION,Le.CENTER,Le.COL,Le.COLGROUP,Le.DD,Le.DETAILS,Le.DIR,Le.DIV,Le.DL,Le.DT,Le.EMBED,Le.FIELDSET,Le.FIGCAPTION,Le.FIGURE,Le.FOOTER,Le.FORM,Le.FRAME,Le.FRAMESET,Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,Le.HEAD,Le.HEADER,Le.HGROUP,Le.HR,Le.HTML,Le.IFRAME,Le.IMG,Le.INPUT,Le.LI,Le.LINK,Le.LISTING,Le.MAIN,Le.MARQUEE,Le.MENU,Le.META,Le.NAV,Le.NOEMBED,Le.NOFRAMES,Le.NOSCRIPT,Le.OBJECT,Le.OL,Le.P,Le.PARAM,Le.PLAINTEXT,Le.PRE,Le.SCRIPT,Le.SECTION,Le.SELECT,Le.SOURCE,Le.STYLE,Le.SUMMARY,Le.TABLE,Le.TBODY,Le.TD,Le.TEMPLATE,Le.TEXTAREA,Le.TFOOT,Le.TH,Le.THEAD,Le.TITLE,Le.TR,Le.TRACK,Le.UL,Le.WBR,Le.XMP,Bn.MATHML+"",Le.MI,Le.MO,Le.MN,Le.MS,Le.MTEXT,Le.ANNOTATION_XML,Bn.SVG+"",Le.TITLE,Le.FOREIGN_OBJECT,Le.DESC,Bn.XLINK+"",Bn.XML+"",Bn.XMLNS+"",Le.H1,Le.H2,Le.H3,Le.H4,Le.H5,Le.H6,xe.STYLE,xe.SCRIPT,xe.XMP,xe.IFRAME,xe.NOEMBED,xe.NOFRAMES,xe.PLAINTEXT;var Fu;(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"})(Fu||(Fu={})),Fu.DATA,Fu.RCDATA,Fu.RAWTEXT,Fu.SCRIPT_DATA,Fu.PLAINTEXT,Fu.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 Vue=new Set([ie.APPLET,ie.CAPTION,ie.HTML,ie.MARQUEE,ie.OBJECT,ie.TABLE,ie.TD,ie.TEMPLATE,ie.TH]);[...Vue,ie.OL,ie.UL],[...Vue,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 HD;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(HD||(HD={})),HD.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])),Bn.XLINK,Bn.XLINK,Bn.XLINK,Bn.XLINK,Bn.XLINK,Bn.XLINK,Bn.XLINK,Bn.XML,Bn.XML,Bn.XMLNS,Bn.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 Yue;(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"})(Yue||(Yue={})),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,xe.AREA,xe.BASE,xe.BASEFONT,xe.BGSOUND,xe.BR,xe.COL,xe.EMBED,xe.FRAME,xe.HR,xe.IMG,xe.INPUT,xe.KEYGEN,xe.LINK,xe.META,xe.PARAM,xe.SOURCE,xe.TRACK,xe.WBR;const Wue=(function(e){if(e==null)return ybt;if(typeof e=="function")return yk(e);if(typeof e=="object")return Array.isArray(e)?fbt(e):mbt(e);if(typeof e=="string")return gbt(e);throw new Error("Expected function, string, or object as test")});function fbt(e){const r=[];let n=-1;for(;++n<e.length;)r[n]=Wue(e[n]);return yk(o);function o(...a){let i=-1;for(;++i<r.length;)if(r[i].apply(this,a))return!0;return!1}}function mbt(e){const r=e;return yk(n);function n(o){const a=o;let i;for(i in e)if(a[i]!==r[i])return!1;return!0}}function gbt(e){return yk(r);function r(n){return n&&n.type===e}}function yk(e){return r;function r(n,o,a){return!!(bbt(n)&&e.call(this,n,typeof o=="number"?o:void 0,a||void 0))}}function ybt(){return!0}function bbt(e){return e!==null&&typeof e=="object"&&"type"in e}const vbt=/["&'<>`]/g,xbt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,wbt=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,kbt=/[|\\{}()[\]^$+*?.]/g,Gue=new WeakMap;function _bt(e,r){if(e=e.replace(r.subset?Ebt(r.subset):vbt,o),r.subset||r.escapeOnly)return e;return e.replace(xbt,n).replace(wbt,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 Ebt(e){let r=Gue.get(e);return r||(r=Sbt(e),Gue.set(e,r)),r}function Sbt(e){const r=[];let n=-1;for(;++n<e.length;)r.push(e[n].replace(kbt,"\\$&"));return new RegExp("(?:"+r.join("|")+")","g")}const Cbt=/[\dA-Fa-f]/;function Tbt(e,r,n){const o="&#x"+e.toString(16).toUpperCase();return n&&r&&!Cbt.test(String.fromCharCode(r))?o:o+";"}const Rbt=/\d/;function Abt(e,r,n){const o="&#"+String(e);return n&&r&&!Rbt.test(String.fromCharCode(r))?o:o+";"}const Nbt=["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"],qD={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:"€"},Dbt=["cent","copy","divide","gt","lt","not","para","times"],Xue={}.hasOwnProperty,UD={};let bk;for(bk in qD)Xue.call(qD,bk)&&(UD[qD[bk]]=bk);const Pbt=/[^\dA-Za-z]/;function $bt(e,r,n,o){const a=String.fromCharCode(e);if(Xue.call(UD,a)){const i=UD[a],l="&"+i;return n&&Nbt.includes(i)&&!Dbt.includes(i)&&(!o||r&&r!==61&&Pbt.test(String.fromCharCode(r)))?l:l+";"}return""}function Mbt(e,r,n){let o=Tbt(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=$bt(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Abt(e,r,n.omitOptionalSemicolons);i.length<o.length&&(o=i)}return a&&(!n.useShortestReferences||a.length<o.length)?a:o}function vg(e,r){return _bt(e,Object.assign({format:Mbt},r))}const Obt=/^>|^->|<!--|-->|--!>|<!-$/g,Ibt=[">"],Lbt=["<",">"];function zbt(e,r,n,o){return o.settings.bogusComments?"<?"+vg(e.value,Object.assign({},o.settings.characterReferences,{subset:Ibt}))+">":"<!--"+e.value.replace(Obt,a)+"-->";function a(i){return vg(i,Object.assign({},o.settings.characterReferences,{subset:Lbt}))}}function Bbt(e,r,n,o){return"<!"+(o.settings.upperDoctype?"DOCTYPE":"doctype")+(o.settings.tightDoctype?"":" ")+"html>"}function Kue(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 jbt=/[ \t\n\f\r]/g;function VD(e){return typeof e=="object"?e.type==="text"?Zue(e.value):!1:Zue(e)}function Zue(e){return e.replace(jbt,"")===""}const jn=Jue(1),Que=Jue(-1),Fbt=[];function Jue(e){return r;function r(n,o,a){const i=n?n.children:Fbt;let l=(o||0)+e,s=i[l];if(!a)for(;s&&VD(s);)l+=e,s=i[l];return s}}const Hbt={}.hasOwnProperty;function ede(e){return r;function r(n,o,a){return Hbt.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const YD=ede({body:Ubt,caption:WD,colgroup:WD,dd:Gbt,dt:Wbt,head:WD,html:qbt,li:Ybt,optgroup:Xbt,option:Kbt,p:Vbt,rp:tde,rt:tde,tbody:Qbt,td:rde,tfoot:Jbt,th:rde,thead:Zbt,tr:evt});function WD(e,r,n){const o=jn(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&VD(o.value.charAt(0)))}function qbt(e,r,n){const o=jn(n,r);return!o||o.type!=="comment"}function Ubt(e,r,n){const o=jn(n,r);return!o||o.type!=="comment"}function Vbt(e,r,n){const o=jn(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 Ybt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&o.tagName==="li"}function Wbt(e,r,n){const o=jn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function Gbt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function tde(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function Xbt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function Kbt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function Zbt(e,r,n){const o=jn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function Qbt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function Jbt(e,r,n){return!jn(n,r)}function evt(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function rde(e,r,n){const o=jn(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const tvt=ede({body:ovt,colgroup:avt,head:nvt,html:rvt,tbody:ivt});function rvt(e){const r=jn(e,-1);return!r||r.type!=="comment"}function nvt(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 ovt(e){const r=jn(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&VD(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function avt(e,r,n){const o=Que(n,r),a=jn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&YD(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function ivt(e,r,n){const o=Que(n,r),a=jn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&YD(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const vk={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 lvt(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=bue);const u=svt(o,e.properties),d=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,d&&(l=!1),(u||!i||!tvt(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||!YD(e,r,n))&&s.push("</"+e.tagName+">"),s.join("")}function svt(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=cvt(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 cvt(e,r,n){const o=yue(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=vg(o.attribute,Object.assign({},e.settings.characterReferences,{subset:vk.name[a][i]}));return n===!0||(n=Array.isArray(n)?(o.commaSeparated?xue:_ue)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?c:(e.settings.preferUnquoted&&(s=vg(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:vk.unquoted[a][i]}))),s!==n&&(e.settings.quoteSmart&&Kue(n,l)>Kue(n,e.alternative)&&(l=e.alternative),s=l+vg(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?vk.single:vk.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const uvt=["<","&"];function nde(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:vg(e.value,Object.assign({},o.settings.characterReferences,{subset:uvt}))}function dvt(e,r,n,o){return o.settings.allowDangerousHtml?e.value:nde(e,r,n,o)}function pvt(e,r,n,o){return o.all(e)}zue("type",{invalid:hvt,unknown:fvt,handlers:{comment:zbt,doctype:Bbt,element:lvt,raw:dvt,root:pvt,text:nde}});function hvt(e){throw new Error("Expected node, not `"+e+"`")}function fvt(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const Nb=xk(/[A-Za-z]/),GD=xk(/[\dA-Za-z]/);function mvt(e){return e!==null&&(e<32||e===127)}function xg(e){return e!==null&&(e<0||e===32)}const ode=xk(new RegExp("\\p{P}|\\p{S}","u")),Db=xk(/\s/);function xk(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}Wue(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gvt(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 yvt={tokenize:kvt,partial:!0},ade={tokenize:_vt,partial:!0},ide={tokenize:Evt,partial:!0},lde={tokenize:Svt,partial:!0},bvt={tokenize:Cvt,partial:!0},sde={name:"wwwAutolink",tokenize:xvt,previous:ude},cde={name:"protocolAutolink",tokenize:wvt,previous:dde},_c={name:"emailAutolink",tokenize:vvt,previous:pde},Ec={};let Vp=48;for(;Vp<123;)Ec[Vp]=_c,Vp++,Vp===58?Vp=65:Vp===91&&(Vp=97);Ec[43]=_c,Ec[45]=_c,Ec[46]=_c,Ec[95]=_c,Ec[72]=[_c,cde],Ec[104]=[_c,cde],Ec[87]=[_c,sde],Ec[119]=[_c,sde];function vvt(e,r,n){const o=this;let a,i;return l;function l(p){return!XD(p)||!pde.call(o,o.previous)||KD(o.events)?n(p):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(p))}function s(p){return XD(p)?(e.consume(p),s):p===64?(e.consume(p),c):n(p)}function c(p){return p===46?e.check(bvt,d,u)(p):p===45||p===95||GD(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&&Nb(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),r(p)):n(p)}}function xvt(e,r,n){const o=this;return a;function a(l){return l!==87&&l!==119||!ude.call(o,o.previous)||KD(o.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(yvt,e.attempt(ade,e.attempt(ide,i),n),n)(l))}function i(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),r(l)}}function wvt(e,r,n){const o=this;let a="",i=!1;return l;function l(p){return(p===72||p===104)&&dde.call(o,o.previous)&&!KD(o.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(p),e.consume(p),s):n(p)}function s(p){if(Nb(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||mvt(p)||xg(p)||Db(p)||ode(p)?n(p):e.attempt(ade,e.attempt(ide,d),n)(p)}function d(p){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),r(p)}}function kvt(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 _vt(e,r,n){let o,a,i;return l;function l(u){return u===46||u===95?e.check(lde,c,s)(u):u===null||xg(u)||Db(u)||u!==45&&ode(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 Evt(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(lde,r,i)(l):l===null||xg(l)||Db(l)?r(l):(e.consume(l),a)}function i(l){return l===41&&o++,e.consume(l),a}}function Svt(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||xg(s)||Db(s)?r(s):n(s)}function a(s){return s===null||s===40||s===91||xg(s)||Db(s)?r(s):o(s)}function i(s){return Nb(s)?l(s):n(s)}function l(s){return s===59?(e.consume(s),o):Nb(s)?(e.consume(s),l):n(s)}}function Cvt(e,r,n){return o;function o(i){return e.consume(i),a}function a(i){return GD(i)?n(i):r(i)}}function ude(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xg(e)}function dde(e){return!Nb(e)}function pde(e){return!(e===47||XD(e))}function XD(e){return e===43||e===45||e===46||e===95||GD(e)}function KD(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 hde={resolveAll:Tvt};function Tvt(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&&gvt(e,0,e.length,n),e}hde.resolveAll,hde.resolveAll;function Rvt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?fde(e.position):"start"in e||"end"in e?fde(e):"line"in e||"column"in e?ZD(e):""}function ZD(e){return mde(e&&e.line)+":"+mde(e&&e.column)}function fde(e){return ZD(e&&e.start)+"-"+ZD(e&&e.end)}function mde(e){return e&&typeof e=="number"?e:1}function gde(e){if(e)throw e}var QD,yde;function Avt(){if(yde)return QD;yde=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 QD=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},QD}var Nvt=Avt();const JD=sae(Nvt);function eP(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 Dvt(){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?Pvt(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 Pvt(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=Rvt(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 ws={basename:$vt,dirname:Mvt,extname:Ovt,join:Ivt,sep:"/"};function $vt(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');Pb(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 Mvt(e){if(Pb(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 Ovt(e){Pb(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 Ivt(...e){let r=-1,n;for(;++r<e.length;)Pb(e[r]),e[r]&&(n=n===void 0?e[r]:n+"/"+e[r]);return n===void 0?".":Lvt(n)}function Lvt(e){Pb(e);const r=e.codePointAt(0)===47;let n=zvt(e,!r);return n.length===0&&!r&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function zvt(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 Pb(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bvt={cwd:jvt};function jvt(){return"/"}function tP(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Fvt(e){if(typeof e=="string")e=new URL(e);else if(!tP(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 Hvt(e)}function Hvt(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 rP=["history","path","basename","stem","extname","dirname"];class qvt{constructor(r){let n;r?tP(r)?n={path:r}:typeof r=="string"||Uvt(r)?n={value:r}:n=r:n={},this.cwd="cwd"in n?"":Bvt.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<rP.length;){const i=rP[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)rP.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?ws.basename(this.path):void 0}set basename(r){oP(r,"basename"),nP(r,"basename"),this.path=ws.join(this.dirname||"",r)}get dirname(){return typeof this.path=="string"?ws.dirname(this.path):void 0}set dirname(r){bde(this.basename,"dirname"),this.path=ws.join(r||"",this.basename)}get extname(){return typeof this.path=="string"?ws.extname(this.path):void 0}set extname(r){if(nP(r,"extname"),bde(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=ws.join(this.dirname,this.stem+(r||""))}get path(){return this.history[this.history.length-1]}set path(r){tP(r)&&(r=Fvt(r)),oP(r,"path"),this.path!==r&&this.history.push(r)}get stem(){return typeof this.path=="string"?ws.basename(this.path,this.extname):void 0}set stem(r){oP(r,"stem"),nP(r,"stem"),this.path=ws.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 nP(e,r){if(e&&e.includes(ws.sep))throw new Error("`"+r+"` cannot be a path: did not expect `"+ws.sep+"`")}function oP(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function bde(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}function Uvt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vvt=(function(e){const r=this.constructor.prototype,n=r[e],o=function(){return n.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Yvt={}.hasOwnProperty;class aP extends Vvt{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=Dvt()}copy(){const r=new aP;let n=-1;for(;++n<this.attachers.length;){const o=this.attachers[n];r.use(...o)}return r.data(JD(!0,{},this.namespace)),r}data(r,n){return typeof r=="string"?arguments.length===2?(sP("data",this.frozen),this.namespace[r]=n,this):Yvt.call(this.namespace,r)&&this.namespace[r]||void 0:r?(sP("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=wk(r),o=this.parser||this.Parser;return iP("parse",o),o(String(n),n)}process(r,n){const o=this;return this.freeze(),iP("process",this.parser||this.Parser),lP("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(i,l){const s=wk(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);Gvt(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(),iP("processSync",this.parser||this.Parser),lP("processSync",this.compiler||this.Compiler),this.process(r,a),xde("processSync","process",n),o;function a(i,l){n=!0,gde(i),o=l}}run(r,n,o){vde(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=wk(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),xde("runSync","run",o),a;function i(l,s){gde(l),a=s,o=!0}}stringify(r,n){this.freeze();const o=wk(n),a=this.compiler||this.Compiler;return lP("stringify",a),vde(r),a(r,o)}use(r,...n){const o=this.attachers,a=this.namespace;if(sP("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=JD(!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];eP(x)&&eP(g)&&(g=JD(!0,x,g)),o[f]=[u,g,...b]}}}}new aP().freeze();function iP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function lP(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function sP(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 vde(e){if(!eP(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function xde(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function wk(e){return Wvt(e)?e:new qvt(e)}function Wvt(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gvt(e){return typeof e=="string"||Xvt(e)}function Xvt(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}E.createContext({});const wde=(e,r,n)=>n>r?r:n<e?e:n,Kvt=e=>e,kk={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},kde={...kk,transform:e=>wde(0,1,e)};({...kk});const $b=e=>Math.round(e*1e5)/1e5,_de=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Zvt(e){return e==null}const Qvt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cP=(e,r)=>n=>!!(typeof n=="string"&&Qvt.test(n)&&n.startsWith(e)||r&&!Zvt(n)&&Object.prototype.hasOwnProperty.call(n,r)),Ede=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,l,s]=o.match(_de);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},Jvt=e=>wde(0,255,e),uP={...kk,transform:e=>Math.round(Jvt(e))},Mb={test:cP("rgb","red"),parse:Ede("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+uP.transform(e)+", "+uP.transform(r)+", "+uP.transform(n)+", "+$b(kde.transform(o))+")"};function e3t(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 Sde={test:cP("#"),parse:e3t,transform:Mb.transform},t3t=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),dP=t3t("%");({...dP});const _k={test:cP("hsl","hue"),parse:Ede("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+dP.transform($b(r))+", "+dP.transform($b(n))+", "+$b(kde.transform(o))+")"},Yp={test:e=>Mb.test(e)||Sde.test(e)||_k.test(e),parse:e=>Mb.test(e)?Mb.parse(e):_k.test(e)?_k.parse(e):Sde.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Mb.transform(e):_k.transform(e),getAnimatableNone:e=>{const r=Yp.parse(e);return r.alpha=0,Yp.transform(r)}},r3t=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function n3t(e){return isNaN(e)&&typeof e=="string"&&(e.match(_de)?.length||0)+(e.match(r3t)?.length||0)>0}const Cde="number",Tde="color",o3t="var",a3t="var(",Rde="${}",i3t=/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 Ade(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const l=r.replace(i3t,s=>(Yp.test(s)?(o.color.push(i),a.push(Tde),n.push(Yp.parse(s))):s.startsWith(a3t)?(o.var.push(i),a.push(o3t),n.push(s)):(o.number.push(i),a.push(Cde),n.push(parseFloat(s))),++i,Rde)).split(Rde);return{values:n,split:l,indexes:o,types:a}}function Nde(e){return Ade(e).values}function Dde(e){const{split:r,types:n}=Ade(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===Cde?i+=$b(a[l]):s===Tde?i+=Yp.transform(a[l]):i+=a[l]}return i}}const l3t=e=>typeof e=="number"?0:Yp.test(e)?Yp.getAnimatableNone(e):e;function s3t(e){const r=Nde(e);return Dde(e)(r.map(l3t))}const c3t={test:n3t,parse:Nde,createTransformer:Dde,getAnimatableNone:s3t},Pde=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"];new Set(Pde);const u3t=new Set(["x","y","z"]);Pde.filter(e=>!u3t.has(e)),{...c3t},{...kk},E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),E.createContext(null),E.createContext({strict:!1});function a_t(e){}try{(void 0).default}catch{}""+(e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase())("framerAppearId"),E.createContext({});const $de=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e);$de("applewebkit/")&&$de("chrome/"),E.createContext(null);var pP,Mde;function hP(){if(Mde)return pP;Mde=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 pP=o,pP}var Ode,Ide;function d3t(){return Ide||(Ide=1,Ode="2.2.4"),Ode}var Lde,zde;function p3t(){return zde||(zde=1,Lde={Graph:hP(),version:d3t()}),Lde}var fP,Bde;function h3t(){if(Bde)return fP;Bde=1;var e=hP();fP={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 fP}var mP,jde;function f3t(){if(jde)return mP;jde=1,mP=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 mP}var gP,Fde;function Hde(){if(Fde)return gP;Fde=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 gP=e,gP}var yP,qde;function Ude(){if(qde)return yP;qde=1;var e=Hde();yP=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 yP}var bP,Vde;function m3t(){if(Vde)return bP;Vde=1;var e=Ude();bP=r;function r(n,o,a){return n.nodes().reduce(function(i,l){return i[l]=e(n,l,o,a),i},{})}return bP}var vP,Yde;function Wde(){if(Yde)return vP;Yde=1,vP=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 vP}var xP,Gde;function g3t(){if(Gde)return xP;Gde=1;var e=Wde();xP=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return xP}var wP,Xde;function y3t(){if(Xde)return wP;Xde=1,wP=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 wP}var kP,Kde;function Zde(){if(Kde)return kP;Kde=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 kP=e,e.CycleException=r,kP}var _P,Qde;function b3t(){if(Qde)return _P;Qde=1;var e=Zde();_P=r;function r(n){try{e(n)}catch(o){if(o instanceof e.CycleException)return!1;throw o}return!0}return _P}var EP,Jde;function epe(){if(Jde)return EP;Jde=1,EP=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 EP}var SP,tpe;function v3t(){if(tpe)return SP;tpe=1;var e=epe();SP=r;function r(n,o){return e(n,o,"post")}return SP}var CP,rpe;function x3t(){if(rpe)return CP;rpe=1;var e=epe();CP=r;function r(n,o){return e(n,o,"pre")}return CP}var TP,npe;function w3t(){if(npe)return TP;npe=1;var e=hP(),r=Hde();TP=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 TP}var ope,ape;function k3t(){return ape||(ape=1,ope={components:f3t(),dijkstra:Ude(),dijkstraAll:m3t(),findCycles:g3t(),floydWarshall:y3t(),isAcyclic:b3t(),postorder:v3t(),preorder:x3t(),prim:w3t(),tarjan:Wde(),topsort:Zde()}),ope}var RP,ipe;function Ll(){if(ipe)return RP;ipe=1;var e=p3t();return RP={Graph:e.Graph,json:h3t(),alg:k3t(),version:e.version},RP}var AP,lpe;function _3t(){if(lpe)return AP;lpe=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 AP=e,AP}var NP,spe;function E3t(){if(spe)return NP;spe=1;let e=Ll().Graph,r=_3t();NP=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 NP}var DP,cpe;function Nn(){if(cpe)return DP;cpe=1;let e=Ll().Graph;DP={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,$,M,j){for(var L=j;N.hasNode(L);)L=_(j);return M.dummy=$,N.setNode(L,M),L}function n(N){let $=new e().setGraph(N.graph());return N.nodes().forEach(M=>$.setNode(M,N.node(M))),N.edges().forEach(M=>{let j=$.edge(M.v,M.w)||{weight:0,minlen:1},L=N.edge(M);$.setEdge(M.v,M.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(M=>{N.children(M).length||$.setNode(M,N.node(M))}),N.edges().forEach(M=>{$.setEdge(M,N.edge(M))}),$}function a(N){let $=N.nodes().map(M=>{let j={};return N.outEdges(M).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(M=>{let j={};return N.inEdges(M).forEach(L=>{j[L.v]=(j[L.v]||0)+N.edge(L).weight}),j});return D(N.nodes(),$)}function l(N,$){let M=N.x,j=N.y,L=$.x-M,Y=$.y-j,O=N.width/2,U=N.height/2;if(!L&&!Y)throw new Error("Not possible to find intersection inside of the rectangle");let I,q;return Math.abs(Y)*O>Math.abs(L)*U?(Y<0&&(U=-U),I=U*L/Y,q=U):(L<0&&(O=-O),I=O,q=O*Y/L),{x:M+I,y:j+q}}function s(N){let $=T(b(N)+1).map(()=>[]);return N.nodes().forEach(M=>{let j=N.node(M),L=j.rank;L!==void 0&&($[L][j.order]=M)}),$}function c(N){let $=N.nodes().map(j=>{let L=N.node(j).rank;return L===void 0?Number.MAX_VALUE:L}),M=g(Math.min,$);N.nodes().forEach(j=>{let L=N.node(j);Object.hasOwn(L,"rank")&&(L.rank-=M)})}function u(N){let $=N.nodes().map(O=>N.node(O).rank),M=g(Math.min,$),j=[];N.nodes().forEach(O=>{let U=N.node(O).rank-M;j[U]||(j[U]=[]),j[U].push(O)});let L=0,Y=N.graph().nodeRankFactor;Array.from(j).forEach((O,U)=>{O===void 0&&U%Y!==0?--L:O!==void 0&&L&&O.forEach(I=>N.node(I).rank+=L)})}function d(N,$,M,j){let L={width:0,height:0};return arguments.length>=4&&(L.rank=M,L.order=j),r(N,"border",L,$)}function p(N,$=f){const M=[];for(let j=0;j<N.length;j+=$){const L=N.slice(j,j+$);M.push(L)}return M}const f=65535;function g(N,$){if($.length>f){const M=p($);return N.apply(null,M.map(j=>N.apply(null,j)))}else return N.apply(null,$)}function b(N){const $=N.nodes().map(M=>{let j=N.node(M).rank;return j===void 0?Number.MIN_VALUE:j});return g(Math.max,$)}function x(N,$){let M={lhs:[],rhs:[]};return N.forEach(j=>{$(j)?M.lhs.push(j):M.rhs.push(j)}),M}function w(N,$){let M=Date.now();try{return $()}finally{console.log(N+" time: "+(Date.now()-M)+"ms")}}function k(N,$){return $()}let C=0;function _(N){var $=++C;return N+(""+$)}function T(N,$,M=1){$==null&&($=N,N=0);let j=Y=>Y<$;M<0&&(j=Y=>$<Y);const L=[];for(let Y=N;j(Y);Y+=M)L.push(Y);return L}function R(N,$){const M={};for(const j of $)N[j]!==void 0&&(M[j]=N[j]);return M}function A(N,$){let M=$;return typeof $=="string"&&(M=j=>j[$]),Object.entries(N).reduce((j,[L,Y])=>(j[L]=M(Y,L),j),{})}function D(N,$){return N.reduce((M,j,L)=>(M[j]=$[L],M),{})}return DP}var PP,upe;function S3t(){if(upe)return PP;upe=1;let e=E3t(),r=Nn().uniqueId;PP={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 PP}var $P,dpe;function C3t(){if(dpe)return $P;dpe=1;let e=Nn();$P={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 $P}var MP,ppe;function Ek(){if(ppe)return MP;ppe=1;const{applyWithChunking:e}=Nn();MP={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 MP}var OP,hpe;function fpe(){if(hpe)return OP;hpe=1;var e=Ll().Graph,r=Ek().slack;OP=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 OP}var IP,mpe;function T3t(){if(mpe)return IP;mpe=1;var e=fpe(),r=Ek().slack,n=Ek().longestPath,o=Ll().alg.preorder,a=Ll().alg.postorder,i=Nn().simplify;IP=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(M=>{var j=M.v===T,L=j?M.w:M.v;if(L!==A){var Y=j===D,O=_.edge(M).weight;if($+=Y?O:-O,w(C,T,L)){var U=C.edge(T,L).cutvalue;$+=Y?-U:U}}}),$}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,M=!1;D.lim>N.lim&&($=N,M=!0);var j=_.edges().filter(L=>M===k(C,C.node(L.v),$)&&M!==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 IP}var LP,gpe;function R3t(){if(gpe)return LP;gpe=1;var e=Ek(),r=e.longestPath,n=fpe(),o=T3t();LP=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 LP}var zP,ype;function A3t(){if(ype)return zP;ype=1,zP=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 zP}var BP,bpe;function N3t(){if(bpe)return BP;bpe=1;let e=Nn();BP={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 BP}var jP,vpe;function D3t(){if(vpe)return jP;vpe=1;let e=Nn();jP=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 jP}var FP,xpe;function P3t(){if(xpe)return FP;xpe=1,FP={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 FP}var HP,wpe;function $3t(){if(wpe)return HP;wpe=1;let e=Nn();HP=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 HP}var qP,kpe;function M3t(){if(kpe)return qP;kpe=1;let e=Nn().zipObject;qP=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 qP}var UP,_pe;function O3t(){if(_pe)return UP;_pe=1,UP=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 UP}var VP,Epe;function I3t(){if(Epe)return VP;Epe=1;let e=Nn();VP=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 VP}var YP,Spe;function L3t(){if(Spe)return YP;Spe=1;let e=Nn();YP=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 YP}var WP,Cpe;function z3t(){if(Cpe)return WP;Cpe=1;let e=O3t(),r=I3t(),n=L3t();WP=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 WP}var GP,Tpe;function B3t(){if(Tpe)return GP;Tpe=1;let e=Ll().Graph,r=Nn();GP=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 GP}var XP,Rpe;function j3t(){if(Rpe)return XP;Rpe=1,XP=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 XP}var KP,Ape;function F3t(){if(Ape)return KP;Ape=1;let e=$3t(),r=M3t(),n=z3t(),o=B3t(),a=j3t(),i=Ll().Graph,l=Nn();KP=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 KP}var ZP,Npe;function H3t(){if(Npe)return ZP;Npe=1;let e=Ll().Graph,r=Nn();ZP={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((M,j)=>{let L=a(w,M),Y=L?w.node(L).order:N;(L||M===$)&&(R.slice(D,j+1).forEach(O=>{w.predecessors(O).forEach(U=>{let I=w.node(U),q=I.order;(q<A||Y<q)&&!(I.dummy&&w.node(O).dummy)&&i(C,U,O)})}),D=j+1,A=Y)}),R}return k.length&&k.reduce(_),C}function o(w,k){let C={};function _(R,A,D,N,$){let M;r.range(A,D).forEach(j=>{M=R[j],w.node(M).dummy&&w.predecessors(M).forEach(L=>{let Y=w.node(L);Y.dummy&&(Y.order<N||Y.order>$)&&i(C,L,M)})})}function T(R,A){let D=-1,N,$=0;return A.forEach((M,j)=>{if(w.node(M).dummy==="border"){let L=w.predecessors(M);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 M=_($);if(M.length){M=M.sort((L,Y)=>A[L]-A[Y]);let j=(M.length-1)/2;for(let L=Math.floor(j),Y=Math.ceil(j);L<=Y;++L){let O=M[L];R[$]===$&&N<A[O]&&!l(C,$,O)&&(R[O]=$,R[$]=T[$]=T[O],N=A[O])}}})}),{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(),O=Y.pop(),U={};for(;O;)U[O]?j(O):(U[O]=!0,Y.push(O),Y=Y.concat(L(O))),O=Y.pop()}function $(j){R[j]=A.inEdges(j).reduce((L,Y)=>Math.max(L,R[Y.v]+A.edge(Y)),0)}function M(j){let L=A.outEdges(j).reduce((O,U)=>Math.min(O,R[U.w]-A.edge(U)),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(M,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 M=C[$];if(T.setNode(M),N){var j=C[N],L=T.edge(j,M);T.setEdge(j,M,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),M=_-r.applyWithChunking(Math.min,$);A!=="l"&&(M=T-r.applyWithChunking(Math.max,$)),M&&(w[D]=r.mapValues(N,j=>j+M))})})}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),M=c(w,T,$.root,$.align,D==="r");D==="r"&&(M=r.mapValues(M,j=>-j)),_[A+D]=M})});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 ZP}var QP,Dpe;function q3t(){if(Dpe)return QP;Dpe=1;let e=Nn(),r=H3t().positionX;QP=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 QP}var JP,Ppe;function U3t(){if(Ppe)return JP;Ppe=1;let e=S3t(),r=C3t(),n=R3t(),o=Nn().normalizeRanks,a=A3t(),i=Nn().removeEmptyRanks,l=N3t(),s=D3t(),c=P3t(),u=F3t(),d=q3t(),p=Nn(),f=Ll().Graph;JP=g;function g(z,W){let X=W&&W.debugTiming?p.time:p.notime;X("layout",()=>{let Z=X(" buildLayoutGraph",()=>N(z));X(" runLayout",()=>b(Z,X,W)),X(" updateInputGraph",()=>x(z,Z))})}function b(z,W,X){W(" makeSpaceForEdgeLabels",()=>$(z)),W(" removeSelfEdges",()=>V(z)),W(" acyclic",()=>e.run(z)),W(" nestingGraph.run",()=>l.run(z)),W(" rank",()=>n(p.asNonCompoundGraph(z))),W(" injectEdgeLabelProxies",()=>M(z)),W(" removeEmptyRanks",()=>i(z)),W(" nestingGraph.cleanup",()=>l.cleanup(z)),W(" normalizeRanks",()=>o(z)),W(" assignRankMinMax",()=>j(z)),W(" removeEdgeLabelProxies",()=>L(z)),W(" normalize.run",()=>r.run(z)),W(" parentDummyChains",()=>a(z)),W(" addBorderSegments",()=>s(z)),W(" order",()=>u(z,X)),W(" insertSelfEdges",()=>G(z)),W(" adjustCoordinateSystem",()=>c.adjust(z)),W(" position",()=>d(z)),W(" positionSelfEdges",()=>F(z)),W(" removeBorderNodes",()=>q(z)),W(" normalize.undo",()=>r.undo(z)),W(" fixupEdgeLabelCoords",()=>U(z)),W(" undoCoordinateSystem",()=>c.undo(z)),W(" translateGraph",()=>Y(z)),W(" assignNodeIntersects",()=>O(z)),W(" reversePoints",()=>I(z)),W(" acyclic.undo",()=>e.undo(z))}function x(z,W){z.nodes().forEach(X=>{let Z=z.node(X),oe=W.node(X);Z&&(Z.x=oe.x,Z.y=oe.y,Z.rank=oe.rank,W.children(X).length&&(Z.width=oe.width,Z.height=oe.height))}),z.edges().forEach(X=>{let Z=z.edge(X),oe=W.edge(X);Z.points=oe.points,Object.hasOwn(oe,"x")&&(Z.x=oe.x,Z.y=oe.y)}),z.graph().width=W.graph().width,z.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(z){let W=new f({multigraph:!0,compound:!0}),X=Q(z.graph());return W.setGraph(Object.assign({},k,J(X,w),p.pick(X,C))),z.nodes().forEach(Z=>{let oe=Q(z.node(Z));const ee=J(oe,_);Object.keys(T).forEach(re=>{ee[re]===void 0&&(ee[re]=T[re])}),W.setNode(Z,ee),W.setParent(Z,z.parent(Z))}),z.edges().forEach(Z=>{let oe=Q(z.edge(Z));W.setEdge(Z,Object.assign({},A,J(oe,R),p.pick(oe,D)))}),W}function $(z){let W=z.graph();W.ranksep/=2,z.edges().forEach(X=>{let Z=z.edge(X);Z.minlen*=2,Z.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Z.width+=Z.labeloffset:Z.height+=Z.labeloffset)})}function M(z){z.edges().forEach(W=>{let X=z.edge(W);if(X.width&&X.height){let Z=z.node(W.v),oe={rank:(z.node(W.w).rank-Z.rank)/2+Z.rank,e:W};p.addDummyNode(z,"edge-proxy",oe,"_ep")}})}function j(z){let W=0;z.nodes().forEach(X=>{let Z=z.node(X);Z.borderTop&&(Z.minRank=z.node(Z.borderTop).rank,Z.maxRank=z.node(Z.borderBottom).rank,W=Math.max(W,Z.maxRank))}),z.graph().maxRank=W}function L(z){z.nodes().forEach(W=>{let X=z.node(W);X.dummy==="edge-proxy"&&(z.edge(X.e).labelRank=X.rank,z.removeNode(W))})}function Y(z){let W=Number.POSITIVE_INFINITY,X=0,Z=Number.POSITIVE_INFINITY,oe=0,ee=z.graph(),re=ee.marginx||0,pe=ee.marginy||0;function Ce(ce){let de=ce.x,be=ce.y,Oe=ce.width,Xe=ce.height;W=Math.min(W,de-Oe/2),X=Math.max(X,de+Oe/2),Z=Math.min(Z,be-Xe/2),oe=Math.max(oe,be+Xe/2)}z.nodes().forEach(ce=>Ce(z.node(ce))),z.edges().forEach(ce=>{let de=z.edge(ce);Object.hasOwn(de,"x")&&Ce(de)}),W-=re,Z-=pe,z.nodes().forEach(ce=>{let de=z.node(ce);de.x-=W,de.y-=Z}),z.edges().forEach(ce=>{let de=z.edge(ce);de.points.forEach(be=>{be.x-=W,be.y-=Z}),Object.hasOwn(de,"x")&&(de.x-=W),Object.hasOwn(de,"y")&&(de.y-=Z)}),ee.width=X-W+re,ee.height=oe-Z+pe}function O(z){z.edges().forEach(W=>{let X=z.edge(W),Z=z.node(W.v),oe=z.node(W.w),ee,re;X.points?(ee=X.points[0],re=X.points[X.points.length-1]):(X.points=[],ee=oe,re=Z),X.points.unshift(p.intersectRect(Z,ee)),X.points.push(p.intersectRect(oe,re))})}function U(z){z.edges().forEach(W=>{let X=z.edge(W);if(Object.hasOwn(X,"x"))switch((X.labelpos==="l"||X.labelpos==="r")&&(X.width-=X.labeloffset),X.labelpos){case"l":X.x-=X.width/2+X.labeloffset;break;case"r":X.x+=X.width/2+X.labeloffset;break}})}function I(z){z.edges().forEach(W=>{let X=z.edge(W);X.reversed&&X.points.reverse()})}function q(z){z.nodes().forEach(W=>{if(z.children(W).length){let X=z.node(W),Z=z.node(X.borderTop),oe=z.node(X.borderBottom),ee=z.node(X.borderLeft[X.borderLeft.length-1]),re=z.node(X.borderRight[X.borderRight.length-1]);X.width=Math.abs(re.x-ee.x),X.height=Math.abs(oe.y-Z.y),X.x=ee.x+X.width/2,X.y=Z.y+X.height/2}}),z.nodes().forEach(W=>{z.node(W).dummy==="border"&&z.removeNode(W)})}function V(z){z.edges().forEach(W=>{if(W.v===W.w){var X=z.node(W.v);X.selfEdges||(X.selfEdges=[]),X.selfEdges.push({e:W,label:z.edge(W)}),z.removeEdge(W)}})}function G(z){var W=p.buildLayerMatrix(z);W.forEach(X=>{var Z=0;X.forEach((oe,ee)=>{var re=z.node(oe);re.order=ee+Z,(re.selfEdges||[]).forEach(pe=>{p.addDummyNode(z,"selfedge",{width:pe.label.width,height:pe.label.height,rank:re.rank,order:ee+ ++Z,e:pe.e,label:pe.label},"_se")}),delete re.selfEdges})})}function F(z){z.nodes().forEach(W=>{var X=z.node(W);if(X.dummy==="selfedge"){var Z=z.node(X.e.v),oe=Z.x+Z.width/2,ee=Z.y,re=X.x-oe,pe=Z.height/2;z.setEdge(X.e,X.label),z.removeNode(W),X.label.points=[{x:oe+2*re/3,y:ee-pe},{x:oe+5*re/6,y:ee-pe},{x:oe+re,y:ee},{x:oe+5*re/6,y:ee+pe},{x:oe+2*re/3,y:ee+pe}],X.label.x=X.x,X.label.y=X.y}})}function J(z,W){return p.mapValues(p.pick(z,W),Number)}function Q(z){var W={};return z&&Object.entries(z).forEach(([X,Z])=>{typeof X=="string"&&(X=X.toLowerCase()),W[X]=Z}),W}return JP}var e$,$pe;function V3t(){if($pe)return e$;$pe=1;let e=Nn(),r=Ll().Graph;e$={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 e$}var Mpe,Ope;function Y3t(){return Ope||(Ope=1,Mpe="1.1.5"),Mpe}var Ipe,Lpe;function W3t(){return Lpe||(Lpe=1,Ipe={graphlib:Ll(),layout:U3t(),debug:V3t(),util:{time:Nn().time,notime:Nn().notime},version:Y3t()}),Ipe}W3t();const zpe=1e-12;function t$(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 r$(e,r){this._context=e,this._k=(1-r)/6}r$.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:t$(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:t$(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 r$(o,r)}return n.tension=function(o){return e(+o)},n})(0);function n$(e,r){this._context=e,this._k=(1-r)/6}n$.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:t$(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 n$(o,r)}return n.tension=function(o){return e(+o)},n})(0);function Bpe(e,r,n){var o=e._x1,a=e._y1,i=e._x2,l=e._y2;if(e._l01_a>zpe){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>zpe){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 jpe(e,r){this._context=e,this._alpha=r}jpe.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:Bpe(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 jpe(o,r):new r$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function Fpe(e,r){this._context=e,this._alpha=r}Fpe.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:Bpe(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 Fpe(o,r):new n$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);const G3t={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},X3t={unit:G3t};for(let e=0;e<=255;e++)X3t.unit.dec2hex(e);const K3t=typeof window<"u",o$=E.createContext(null);o$.displayName="PanelGroupContext";const Ba={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"},a$=10,wg=K3t?E.useLayoutEffect:()=>{},Hpe=E.useId,Z3t=typeof Hpe=="function"?Hpe:()=>null;let Q3t=0;function qpe(e=null){const r=Z3t(),n=E.useRef(e||r||null);return n.current===null&&(n.current=""+Q3t++),e??n.current}function Upe({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=E.useContext(o$);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:M}=w,j=qpe(l),L=E.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});E.useRef({didLogMissingDefaultSizeWarning:!1}),wg(()=>{const{callbacks:O,constraints:U}=L.current,I={...U};L.current.id=j,L.current.idIsFromProps=l!==void 0,L.current.order=f,O.onCollapse=u,O.onExpand=d,O.onResize=p,U.collapsedSize=n,U.collapsible=o,U.defaultSize=a,U.maxSize=s,U.minSize=c,(I.collapsedSize!==U.collapsedSize||I.collapsible!==U.collapsible||I.maxSize!==U.maxSize||I.minSize!==U.minSize)&&D(L.current,I)}),wg(()=>{const O=L.current;return N(O),()=>{M(O)}},[f,j,N,M]),E.useImperativeHandle(i,()=>({collapse:()=>{k(L.current)},expand:O=>{C(L.current,O)},getId(){return j},getSize(){return _(L.current)},isCollapsed(){return A(L.current)},isExpanded(){return!A(L.current)},resize:O=>{$(L.current,O)}}),[k,C,_,A,j,$]);const Y=T(L.current,a);return E.createElement(b,{...x,children:e,className:r,id:j,style:{...Y,...g},[Ba.groupId]:R,[Ba.panel]:"",[Ba.panelCollapsible]:o||void 0,[Ba.panelId]:j,[Ba.panelSize]:parseFloat(""+Y.flexGrow).toFixed(1)})}const J3t=E.forwardRef((e,r)=>E.createElement(Upe,{...e,forwardedRef:r}));Upe.displayName="Panel",J3t.displayName="forwardRef(Panel)";function Vpe(e){return e.type==="keydown"}function Ype(e){return e.type.startsWith("pointer")}function Wpe(e){return e.type.startsWith("mouse")}function ext(e){if(Ype(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(Wpe(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}function txt(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}const rxt=1,nxt=2,oxt=4,axt=8;txt();let ixt=new Map;function i$(e,r){ixt.set(e,r)}function lxt(){const[e,r]=E.useState(0);return E.useCallback(()=>r(n=>n+1),[])}function nr(e,r){if(!e)throw console.error(r),Error(r)}function Wp(e,r,n=a$){return e.toFixed(n)===r.toFixed(n)?0:e>r?1:-1}function Sc(e,r,n=a$){return Wp(e,r,n)===0}function ja(e,r,n){return Wp(e,r,n)===0}function sxt(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(!ja(a,i,n))return!1}return!0}function kg({panelConstraints:e,panelIndex:r,size:n}){const o=e[r];nr(o!=null,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:i,maxSize:l=100,minSize:s=0}=o;if(Wp(n,s)<0)if(i){const c=(a+s)/2;Wp(n,c)<0?n=a:n=s}else n=s;return n=Math.min(l,n),n=parseFloat(n.toFixed(a$)),n}function Ob({delta:e,initialLayout:r,panelConstraints:n,pivotIndices:o,prevLayout:a,trigger:i}){if(ja(e,0))return r;const l=[...r],[s,c]=o;nr(s!=null,"Invalid first pivot index"),nr(c!=null,"Invalid second pivot index");let u=0;if(i==="keyboard"){{const p=e<0?c:s,f=n[p];nr(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(nr(w!=null,`Previous layout not found for panel index ${p}`),ja(w,g)){const k=x-w;Wp(k,Math.abs(e))>0&&(e=e<0?0-k:k)}}}{const p=e<0?s:c,f=n[p];nr(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(nr(w!=null,`Previous layout not found for panel index ${p}`),ja(w,x)){const k=w-g;Wp(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];nr(x!=null,`Previous layout not found for panel index ${f}`);const w=kg({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];nr(g!=null,`Previous layout not found for panel index ${p}`);const b=g-f,x=kg({panelConstraints:n,panelIndex:p,size:b});if(!ja(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(sxt(a,l))return a;{const p=e<0?c:s,f=r[p];nr(f!=null,`Previous layout not found for panel index ${p}`);const g=f+u,b=kg({panelConstraints:n,panelIndex:p,size:g});if(l[p]=b,!ja(b,g)){let x=g-b,w=e<0?c:s;for(;w>=0&&w<n.length;){const k=l[w];nr(k!=null,`Previous layout not found for panel index ${w}`);const C=k+x,_=kg({panelConstraints:n,panelIndex:w,size:C});if(ja(k,_)||(x-=_-k,l[w]=_),ja(x,0))break;e>0?w--:w++}}}const d=l.reduce((p,f)=>f+p,0);return ja(d,100)?l:a}function cxt({layout:e,panelsArray:r,pivotIndices:n}){let o=0,a=100,i=0,l=0;const s=n[0];nr(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 Sk(e,r=document){return Array.from(r.querySelectorAll(`[${Ba.resizeHandleId}][data-panel-group-id="${e}"]`))}function uxt(e,r,n=document){return Sk(e,n).findIndex(a=>a.getAttribute(Ba.resizeHandleId)===r)??null}function Gpe(e,r,n){const o=uxt(e,r,n);return o!=null?[o,o+1]:[-1,-1]}function dxt(e){return e instanceof HTMLElement?!0:typeof e=="object"&&e!==null&&"tagName"in e&&"getAttribute"in e}function Xpe(e,r=document){return dxt(r)&&r.dataset.panelGroupId==e?r:r.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`)||null}function l$(e,r=document){return r.querySelector(`[${Ba.resizeHandleId}="${e}"]`)||null}function pxt(e,r,n,o=document){var a,i,l,s;const c=l$(r,o),u=Sk(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 hxt({committedValuesRef:e,eagerValuesRef:r,groupId:n,layout:o,panelDataArray:a,panelGroupElement:i,setLayout:l}){E.useRef({didWarnAboutMissingResizeHandle:!1}),wg(()=>{if(!i)return;const s=Sk(n,i);for(let c=0;c<a.length-1;c++){const{valueMax:u,valueMin:d,valueNow:p}=cxt({layout:o,panelsArray:a,pivotIndices:[c,c+1]}),f=s[c];if(f!=null){const g=a[c];nr(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]),E.useEffect(()=>{if(!i)return;const s=r.current;nr(s,"Eager values not found");const{panelDataArray:c}=s,u=Xpe(n,i);nr(u!=null,`No group found for id "${n}"`);const d=Sk(n,i);nr(d,`No resize handles found for group id "${n}"`);const p=d.map(f=>{const g=f.getAttribute(Ba.resizeHandleId);nr(g,"Resize handle element has no handle id attribute");const[b,x]=pxt(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];nr(_,`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=Ob({delta:ja(T,R)?D-R:R-T,initialLayout:o,panelConstraints:c.map($=>$.constraints),pivotIndices:Gpe(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 Kpe(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 Zpe(e,r){const n=e==="horizontal",{x:o,y:a}=ext(r);return n?o:a}function fxt(e,r,n,o,a){const i=n==="horizontal",l=l$(r,a);nr(l,`No resize handle element found for id "${r}"`);const s=l.getAttribute(Ba.groupId);nr(s,"Resize handle element has no group id attribute");let{initialCursorPosition:c}=o;const u=Zpe(n,e),d=Xpe(s,a);nr(d,`No group element found for id "${s}"`);const p=d.getBoundingClientRect(),f=i?p.width:p.height;return(u-c)/f*100}function mxt(e,r,n,o,a,i){if(Vpe(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:fxt(e,r,n,o,i)}function gxt({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];nr(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];nr(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 _g(e,r,n){r.forEach((o,a)=>{const i=e[a];nr(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||Sc(p,u))&&!Sc(o,u)&&g(),f&&(p==null||!Sc(p,u))&&Sc(o,u)&&f())}})}function Ck(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 yxt({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 bxt(e,r=10){let n=null;return(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{e(...o)},r)}}function Qpe(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 Jpe(e){return`react-resizable-panels:${e}`}function ehe(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 the(e,r){try{const n=Jpe(e),o=r.getItem(n);if(o){const a=JSON.parse(o);if(typeof a=="object"&&a!=null)return a}}catch{}return null}function vxt(e,r,n){var o,a;const i=(o=the(e,n))!==null&&o!==void 0?o:{},l=ehe(r);return(a=i[l])!==null&&a!==void 0?a:null}function xxt(e,r,n,o,a){var i;const l=Jpe(e),s=ehe(r),c=(i=the(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 rhe({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(!ja(o,100)&&n.length>0)for(let i=0;i<r.length;i++){const l=n[i];nr(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];nr(l!=null,`No layout data found for index ${i}`);const s=kg({panelConstraints:r,panelIndex:i,size:l});l!=s&&(a+=l-s,n[i]=s)}if(!ja(a,0))for(let i=0;i<r.length;i++){const l=n[i];nr(l!=null,`No layout data found for index ${i}`);const s=l+a,c=kg({panelConstraints:r,panelIndex:i,size:s});if(l!==c&&(a-=c-l,n[i]=c,ja(a,0)))break}return n}const wxt=100,Ib={getItem:e=>(Qpe(Ib),Ib.getItem(e)),setItem:(e,r)=>{Qpe(Ib),Ib.setItem(e,r)}},nhe={};function ohe({autoSaveId:e=null,children:r,className:n="",direction:o,forwardedRef:a,id:i=null,onLayout:l=null,keyboardResizeBy:s=null,storage:c=Ib,style:u,tagName:d="div",...p}){const f=qpe(i),g=E.useRef(null),[b,x]=E.useState(null),[w,k]=E.useState([]),C=lxt(),_=E.useRef({}),T=E.useRef(new Map),R=E.useRef(0),A=E.useRef({autoSaveId:e,direction:o,dragState:b,id:f,keyboardResizeBy:s,onLayout:l,storage:c}),D=E.useRef({layout:w,panelDataArray:[],panelDataArrayChanged:!1});E.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),E.useImperativeHandle(a,()=>({getId:()=>A.current.id,getLayout:()=>{const{layout:z}=D.current;return z},setLayout:z=>{const{onLayout:W}=A.current,{layout:X,panelDataArray:Z}=D.current,oe=rhe({layout:z,panelConstraints:Z.map(ee=>ee.constraints)});Kpe(X,oe)||(k(oe),D.current.layout=oe,W&&W(oe),_g(Z,oe,_.current))}}),[]),wg(()=>{A.current.autoSaveId=e,A.current.direction=o,A.current.dragState=b,A.current.id=f,A.current.onLayout=l,A.current.storage=c}),hxt({committedValuesRef:A,eagerValuesRef:D,groupId:f,layout:w,panelDataArray:D.current.panelDataArray,setLayout:k,panelGroupElement:g.current}),E.useEffect(()=>{const{panelDataArray:z}=D.current;if(e){if(w.length===0||w.length!==z.length)return;let W=nhe[e];W==null&&(W=bxt(xxt,wxt),nhe[e]=W);const X=[...z],Z=new Map(T.current);W(e,X,Z,w,c)}},[e,w,c]),E.useEffect(()=>{});const N=E.useCallback(z=>{const{onLayout:W}=A.current,{layout:X,panelDataArray:Z}=D.current;if(z.constraints.collapsible){const oe=Z.map(Ce=>Ce.constraints),{collapsedSize:ee=0,panelSize:re,pivotIndices:pe}=Gp(Z,z,X);if(nr(re!=null,`Panel size not found for panel "${z.id}"`),!Sc(re,ee)){T.current.set(z.id,re);const Ce=Eg(Z,z)===Z.length-1?re-ee:ee-re,ce=Ob({delta:Ce,initialLayout:X,panelConstraints:oe,pivotIndices:pe,prevLayout:X,trigger:"imperative-api"});Ck(X,ce)||(k(ce),D.current.layout=ce,W&&W(ce),_g(Z,ce,_.current))}}},[]),$=E.useCallback((z,W)=>{const{onLayout:X}=A.current,{layout:Z,panelDataArray:oe}=D.current;if(z.constraints.collapsible){const ee=oe.map(be=>be.constraints),{collapsedSize:re=0,panelSize:pe=0,minSize:Ce=0,pivotIndices:ce}=Gp(oe,z,Z),de=W??Ce;if(Sc(pe,re)){const be=T.current.get(z.id),Oe=be!=null&&be>=de?be:de,Xe=Eg(oe,z)===oe.length-1?pe-Oe:Oe-pe,Ge=Ob({delta:Xe,initialLayout:Z,panelConstraints:ee,pivotIndices:ce,prevLayout:Z,trigger:"imperative-api"});Ck(Z,Ge)||(k(Ge),D.current.layout=Ge,X&&X(Ge),_g(oe,Ge,_.current))}}},[]),M=E.useCallback(z=>{const{layout:W,panelDataArray:X}=D.current,{panelSize:Z}=Gp(X,z,W);return nr(Z!=null,`Panel size not found for panel "${z.id}"`),Z},[]),j=E.useCallback((z,W)=>{const{panelDataArray:X}=D.current,Z=Eg(X,z);return yxt({defaultSize:W,dragState:b,layout:w,panelData:X,panelIndex:Z})},[b,w]),L=E.useCallback(z=>{const{layout:W,panelDataArray:X}=D.current,{collapsedSize:Z=0,collapsible:oe,panelSize:ee}=Gp(X,z,W);return nr(ee!=null,`Panel size not found for panel "${z.id}"`),oe===!0&&Sc(ee,Z)},[]),Y=E.useCallback(z=>{const{layout:W,panelDataArray:X}=D.current,{collapsedSize:Z=0,collapsible:oe,panelSize:ee}=Gp(X,z,W);return nr(ee!=null,`Panel size not found for panel "${z.id}"`),!oe||Wp(ee,Z)>0},[]),O=E.useCallback(z=>{const{panelDataArray:W}=D.current;W.push(z),W.sort((X,Z)=>{const oe=X.order,ee=Z.order;return oe==null&&ee==null?0:oe==null?-1:ee==null?1:oe-ee}),D.current.panelDataArrayChanged=!0,C()},[C]);wg(()=>{if(D.current.panelDataArrayChanged){D.current.panelDataArrayChanged=!1;const{autoSaveId:z,onLayout:W,storage:X}=A.current,{layout:Z,panelDataArray:oe}=D.current;let ee=null;if(z){const pe=vxt(z,oe,X);pe&&(T.current=new Map(Object.entries(pe.expandToSizes)),ee=pe.layout)}ee==null&&(ee=gxt({panelDataArray:oe}));const re=rhe({layout:ee,panelConstraints:oe.map(pe=>pe.constraints)});Kpe(Z,re)||(k(re),D.current.layout=re,W&&W(re),_g(oe,re,_.current))}}),wg(()=>{const z=D.current;return()=>{z.layout=[]}},[]);const U=E.useCallback(z=>{let W=!1;const X=g.current;return X&&window.getComputedStyle(X,null).getPropertyValue("direction")==="rtl"&&(W=!0),function(Z){Z.preventDefault();const oe=g.current;if(!oe)return()=>null;const{direction:ee,dragState:re,id:pe,keyboardResizeBy:Ce,onLayout:ce}=A.current,{layout:de,panelDataArray:be}=D.current,{initialLayout:Oe}=re??{},Xe=Gpe(pe,z,oe);let Ge=mxt(Z,z,ee,re,Ce,oe);const _t=ee==="horizontal";_t&&W&&(Ge=-Ge);const Qe=be.map(We=>We.constraints),St=Ob({delta:Ge,initialLayout:Oe??de,panelConstraints:Qe,pivotIndices:Xe,prevLayout:de,trigger:Vpe(Z)?"keyboard":"mouse-or-touch"}),Ke=!Ck(de,St);(Ype(Z)||Wpe(Z))&&R.current!=Ge&&(R.current=Ge,!Ke&&Ge!==0?_t?i$(z,Ge<0?rxt:nxt):i$(z,Ge<0?oxt:axt):i$(z,0)),Ke&&(k(St),D.current.layout=St,ce&&ce(St),_g(be,St,_.current))}},[]),I=E.useCallback((z,W)=>{const{onLayout:X}=A.current,{layout:Z,panelDataArray:oe}=D.current,ee=oe.map(de=>de.constraints),{panelSize:re,pivotIndices:pe}=Gp(oe,z,Z);nr(re!=null,`Panel size not found for panel "${z.id}"`);const Ce=Eg(oe,z)===oe.length-1?re-W:W-re,ce=Ob({delta:Ce,initialLayout:Z,panelConstraints:ee,pivotIndices:pe,prevLayout:Z,trigger:"imperative-api"});Ck(Z,ce)||(k(ce),D.current.layout=ce,X&&X(ce),_g(oe,ce,_.current))},[]),q=E.useCallback((z,W)=>{const{layout:X,panelDataArray:Z}=D.current,{collapsedSize:oe=0,collapsible:ee}=W,{collapsedSize:re=0,collapsible:pe,maxSize:Ce=100,minSize:ce=0}=z.constraints,{panelSize:de}=Gp(Z,z,X);de!=null&&(ee&&pe&&Sc(de,oe)?Sc(oe,re)||I(z,re):de<ce?I(z,ce):de>Ce&&I(z,Ce))},[I]),V=E.useCallback((z,W)=>{const{direction:X}=A.current,{layout:Z}=D.current;if(!g.current)return;const oe=l$(z,g.current);nr(oe,`Drag handle element not found for id "${z}"`);const ee=Zpe(X,W);x({dragHandleId:z,dragHandleRect:oe.getBoundingClientRect(),initialCursorPosition:ee,initialLayout:Z})},[]),G=E.useCallback(()=>{x(null)},[]),F=E.useCallback(z=>{const{panelDataArray:W}=D.current,X=Eg(W,z);X>=0&&(W.splice(X,1),delete _.current[z.id],D.current.panelDataArrayChanged=!0,C())},[C]),J=E.useMemo(()=>({collapsePanel:N,direction:o,dragState:b,expandPanel:$,getPanelSize:M,getPanelStyle:j,groupId:f,isPanelCollapsed:L,isPanelExpanded:Y,reevaluatePanelConstraints:q,registerPanel:O,registerResizeHandle:U,resizePanel:I,startDragging:V,stopDragging:G,unregisterPanel:F,panelGroupElement:g.current}),[N,b,o,$,M,j,f,L,Y,q,O,U,I,V,G,F]),Q={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return E.createElement(o$.Provider,{value:J},E.createElement(d,{...p,children:r,className:n,id:i,ref:g,style:{...Q,...u},[Ba.group]:"",[Ba.groupDirection]:o,[Ba.groupId]:f}))}const kxt=E.forwardRef((e,r)=>E.createElement(ohe,{...e,forwardedRef:r}));ohe.displayName="PanelGroup",kxt.displayName="forwardRef(PanelGroup)";function Eg(e,r){return e.findIndex(n=>n===r||n.id===r.id)}function Gp(e,r,n){const o=Eg(e,r),a=o===e.length-1?[o-1,o]:[o,o+1],i=n[o];return{...r.constraints,panelSize:i,pivotIndices:a}}function Pe(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 Lb extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const ahe={};function Xp(e){return ahe}function _xt(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 Ext(e,r){return typeof r=="bigint"?r.toString():r}function ihe(e){return{get value(){{const r=e();return Object.defineProperty(this,"value",{value:r}),r}}}}function s$(e){return e==null}function c$(e){const r=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(r,n)}function Br(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 u$(e,r,n){Object.defineProperty(e,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}function zb(e){return JSON.stringify(e)}const lhe=Error.captureStackTrace?Error.captureStackTrace:(...e)=>{};function d$(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Sxt=ihe(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function p$(e){if(d$(e)===!1)return!1;const r=e.constructor;if(r===void 0)return!0;const n=r.prototype;return!(d$(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}const Cxt=new Set(["string","number","symbol"]);function Bb(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Kp(e,r,n){const o=new e._zod.constr(r??e._zod.def);return(!r||n?.parent)&&(o._zod.parent=e),o}function kt(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 Txt(e){return Object.keys(e).filter(r=>e[r]._zod.optin==="optional"&&e[r]._zod.optout==="optional")}function Rxt(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 Kp(e,{...e._zod.def,shape:n,checks:[]})}function Axt(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 Kp(e,{...e._zod.def,shape:n,checks:[]})}function Nxt(e,r){if(!p$(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 u$(this,"shape",o),o},checks:[]};return Kp(e,n)}function Dxt(e,r){return Kp(e,{...e._zod.def,get shape(){const n={...e._zod.def.shape,...r._zod.def.shape};return u$(this,"shape",n),n},catchall:r._zod.def.catchall,checks:[]})}function Pxt(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 Kp(r,{...r._zod.def,shape:a,checks:[]})}function $xt(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 Kp(r,{...r._zod.def,shape:a,checks:[]})}function jb(e,r=0){for(let n=r;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function h$(e,r){return r.map(n=>{var o;return(o=n).path??(o.path=[]),n.path.unshift(e),n})}function Tk(e){return typeof e=="string"?e:e?.message}function Zp(e,r,n){const o={...e,path:e.path??[]};if(!e.message){const a=Tk(e.inst?._zod.def?.error?.(e))??Tk(r?.error?.(e))??Tk(n.customError?.(e))??Tk(n.localeError?.(e))??"Invalid input";o.message=a}return delete o.inst,delete o.continue,r?.reportInput||delete o.input,o}function f$(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Fb(...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,Ext,2)},enumerable:!0}),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},che=Pe("$ZodError",she),uhe=Pe("$ZodError",she,{Parent:Error});function Mxt(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 dhe(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 Oxt=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 Lb;if(l.issues.length){const s=new(a?.Err??e)(l.issues.map(c=>Zp(c,i,Xp())));throw lhe(s,a?.callee),s}return l.value},Ixt=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=>Zp(c,i,Xp())));throw lhe(s,a?.callee),s}return l.value},phe=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 Lb;return i.issues.length?{success:!1,error:new(e??che)(i.issues.map(l=>Zp(l,a,Xp())))}:{success:!0,data:i.value}},Lxt=phe(uhe),hhe=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=>Zp(l,a,Xp())))}:{success:!0,data:i.value}},zxt=hhe(uhe),Bxt=/^[cC][^\s-]{8,}$/,jxt=/^[0-9a-z]+$/,Fxt=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Hxt=/^[0-9a-vA-V]{20}$/,qxt=/^[A-Za-z0-9]{27}$/,Uxt=/^[a-zA-Z0-9_-]{21}$/,Vxt=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Yxt=/^([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})$/,fhe=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)$/,Wxt=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Gxt="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Xxt(){return new RegExp(Gxt,"u")}const Kxt=/^(?:(?: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])$/,Zxt=/^(([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})$/,Qxt=/^((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])$/,Jxt=/^(([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])$/,ewt=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,mhe=/^[A-Za-z0-9_-]*$/,twt=/^([a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+$/,rwt=/^\+(?:[0-9]){6,14}[0-9]$/,ghe="(?:(?:\\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])))",nwt=new RegExp(`^${ghe}$`);function yhe(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 owt(e){return new RegExp(`^${yhe(e)}$`)}function awt(e){const r=yhe({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(`^${ghe}T(?:${o})$`)}const iwt=e=>{const r=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${r}$`)},lwt=/true|false/i,swt=/^[^A-Z]*$/,cwt=/^[^a-z]*$/,ks=Pe("$ZodCheck",(e,r)=>{var n;e._zod??(e._zod={}),e._zod.def=r,(n=e._zod).onattach??(n.onattach=[])}),uwt=Pe("$ZodCheckMaxLength",(e,r)=>{var n;ks.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!s$(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=f$(a);o.issues.push({origin:i,code:"too_big",maximum:r.maximum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),dwt=Pe("$ZodCheckMinLength",(e,r)=>{var n;ks.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!s$(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=f$(a);o.issues.push({origin:i,code:"too_small",minimum:r.minimum,inclusive:!0,input:a,inst:e,continue:!r.abort})}}),pwt=Pe("$ZodCheckLengthEquals",(e,r)=>{var n;ks.init(e,r),(n=e._zod.def).when??(n.when=o=>{const a=o.value;return!s$(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=f$(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})}}),Rk=Pe("$ZodCheckStringFormat",(e,r)=>{var n,o;ks.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=()=>{})}),hwt=Pe("$ZodCheckRegex",(e,r)=>{Rk.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})}}),fwt=Pe("$ZodCheckLowerCase",(e,r)=>{r.pattern??(r.pattern=swt),Rk.init(e,r)}),mwt=Pe("$ZodCheckUpperCase",(e,r)=>{r.pattern??(r.pattern=cwt),Rk.init(e,r)}),gwt=Pe("$ZodCheckIncludes",(e,r)=>{ks.init(e,r);const n=Bb(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})}}),ywt=Pe("$ZodCheckStartsWith",(e,r)=>{ks.init(e,r);const n=new RegExp(`^${Bb(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})}}),bwt=Pe("$ZodCheckEndsWith",(e,r)=>{ks.init(e,r);const n=new RegExp(`.*${Bb(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})}}),vwt=Pe("$ZodCheckOverwrite",(e,r)=>{ks.init(e,r),e._zod.check=n=>{n.value=r.tx(n.value)}});class xwt{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 wwt={major:4,minor:0,patch:0},en=Pe("$ZodType",(e,r)=>{var n;e??(e={}),e._zod.def=r,e._zod.bag=e._zod.bag||{},e._zod.version=wwt;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=jb(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 Lb;if(u||f instanceof Promise)u=(u??Promise.resolve()).then(async()=>{await f,i.issues.length!==p&&(c||(c=jb(i,p)))});else{if(i.issues.length===p)continue;c||(c=jb(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 Lb;return s.then(c=>a(c,o,l))}return a(s,o,l)}}e["~standard"]={validate:a=>{try{const i=Lxt(e,a);return i.success?{value:i.data}:{issues:i.error?.issues}}catch{return zxt(e,a).then(i=>i.success?{value:i.data}:{issues:i.error?.issues})}},vendor:"zod",version:1}}),Ak=Pe("$ZodString",(e,r)=>{en.init(e,r),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??iwt(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}}),jr=Pe("$ZodStringFormat",(e,r)=>{Rk.init(e,r),Ak.init(e,r)}),kwt=Pe("$ZodGUID",(e,r)=>{r.pattern??(r.pattern=Yxt),jr.init(e,r)}),_wt=Pe("$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=fhe(n))}else r.pattern??(r.pattern=fhe());jr.init(e,r)}),Ewt=Pe("$ZodEmail",(e,r)=>{r.pattern??(r.pattern=Wxt),jr.init(e,r)}),Swt=Pe("$ZodURL",(e,r)=>{jr.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:twt.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})}}}),Cwt=Pe("$ZodEmoji",(e,r)=>{r.pattern??(r.pattern=Xxt()),jr.init(e,r)}),Twt=Pe("$ZodNanoID",(e,r)=>{r.pattern??(r.pattern=Uxt),jr.init(e,r)}),Rwt=Pe("$ZodCUID",(e,r)=>{r.pattern??(r.pattern=Bxt),jr.init(e,r)}),Awt=Pe("$ZodCUID2",(e,r)=>{r.pattern??(r.pattern=jxt),jr.init(e,r)}),Nwt=Pe("$ZodULID",(e,r)=>{r.pattern??(r.pattern=Fxt),jr.init(e,r)}),Dwt=Pe("$ZodXID",(e,r)=>{r.pattern??(r.pattern=Hxt),jr.init(e,r)}),Pwt=Pe("$ZodKSUID",(e,r)=>{r.pattern??(r.pattern=qxt),jr.init(e,r)}),$wt=Pe("$ZodISODateTime",(e,r)=>{r.pattern??(r.pattern=awt(r)),jr.init(e,r)}),Mwt=Pe("$ZodISODate",(e,r)=>{r.pattern??(r.pattern=nwt),jr.init(e,r)}),Owt=Pe("$ZodISOTime",(e,r)=>{r.pattern??(r.pattern=owt(r)),jr.init(e,r)}),Iwt=Pe("$ZodISODuration",(e,r)=>{r.pattern??(r.pattern=Vxt),jr.init(e,r)}),Lwt=Pe("$ZodIPv4",(e,r)=>{r.pattern??(r.pattern=Kxt),jr.init(e,r),e._zod.onattach.push(n=>{const o=n._zod.bag;o.format="ipv4"})}),zwt=Pe("$ZodIPv6",(e,r)=>{r.pattern??(r.pattern=Zxt),jr.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})}}}),Bwt=Pe("$ZodCIDRv4",(e,r)=>{r.pattern??(r.pattern=Qxt),jr.init(e,r)}),jwt=Pe("$ZodCIDRv6",(e,r)=>{r.pattern??(r.pattern=Jxt),jr.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 bhe(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Fwt=Pe("$ZodBase64",(e,r)=>{r.pattern??(r.pattern=ewt),jr.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{bhe(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!r.abort})}});function Hwt(e){if(!mhe.test(e))return!1;const r=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),n=r.padEnd(Math.ceil(r.length/4)*4,"=");return bhe(n)}const qwt=Pe("$ZodBase64URL",(e,r)=>{r.pattern??(r.pattern=mhe),jr.init(e,r),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{Hwt(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!r.abort})}}),Uwt=Pe("$ZodE164",(e,r)=>{r.pattern??(r.pattern=rwt),jr.init(e,r)});function Vwt(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 Ywt=Pe("$ZodJWT",(e,r)=>{jr.init(e,r),e._zod.check=n=>{Vwt(n.value,r.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!r.abort})}}),vhe=Pe("$ZodBoolean",(e,r)=>{en.init(e,r),e._zod.pattern=lwt,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}}),Wwt=Pe("$ZodUnknown",(e,r)=>{en.init(e,r),e._zod.parse=n=>n}),Gwt=Pe("$ZodNever",(e,r)=>{en.init(e,r),e._zod.parse=(n,o)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function xhe(e,r,n){e.issues.length&&r.issues.push(...h$(n,e.issues)),r.value[n]=e.value}const Xwt=Pe("$ZodArray",(e,r)=>{en.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=>xhe(u,n,l))):xhe(c,n,l)}return i.length?Promise.all(i).then(()=>n):n}});function Nk(e,r,n){e.issues.length&&r.issues.push(...h$(n,e.issues)),r.value[n]=e.value}function whe(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(...h$(n,e.issues)):e.value===void 0?n in o&&(r.value[n]=void 0):r.value[n]=e.value}const Kwt=Pe("$ZodObject",(e,r)=>{en.init(e,r);const n=ihe(()=>{const d=Object.keys(r.shape);for(const f of d)if(!(r.shape[f]instanceof en))throw new Error(`Invalid element at key "${f}": expected a Zod schema`);const p=Txt(r.shape);return{shape:r.shape,keys:d,keySet:new Set(d),numKeys:d.length,optionalKeys:new Set(p)}});Br(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 xwt(["shape","payload","ctx"]),f=n.value,g=k=>{const C=zb(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 _=zb(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 ? [${zb(k)}, ...iss.path] : [${zb(k)}]
})));`),p.write(`newResult[${zb(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=d$,l=!ahe.jitless,s=l&&Sxt.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?whe(D,d,_,f):Nk(D,d,_))):A?whe(R,d,_,f):Nk(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=>Nk(T,d,C))):Nk(_,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 khe(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=>Zp(i,o,Xp())))}),r}const Zwt=Pe("$ZodUnion",(e,r)=>{en.init(e,r),Br(e._zod,"optin",()=>r.options.some(n=>n._zod.optin==="optional")?"optional":void 0),Br(e._zod,"optout",()=>r.options.some(n=>n._zod.optout==="optional")?"optional":void 0),Br(e._zod,"values",()=>{if(r.options.every(n=>n._zod.values))return new Set(r.options.flatMap(n=>Array.from(n._zod.values)))}),Br(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=>c$(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=>khe(l,n,e,o)):khe(i,n,e,o)}}),Qwt=Pe("$ZodIntersection",(e,r)=>{en.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])=>_he(n,s,c)):_he(n,i,l)}});function m$(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(p$(e)&&p$(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=m$(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=m$(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 _he(e,r,n){if(r.issues.length&&e.issues.push(...r.issues),n.issues.length&&e.issues.push(...n.issues),jb(e))return e;const o=m$(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 Jwt=Pe("$ZodEnum",(e,r)=>{en.init(e,r);const n=_xt(r.entries);e._zod.values=new Set(n),e._zod.pattern=new RegExp(`^(${n.filter(o=>Cxt.has(typeof o)).map(o=>typeof o=="string"?Bb(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}}),e2t=Pe("$ZodLiteral",(e,r)=>{en.init(e,r),e._zod.values=new Set(r.values),e._zod.pattern=new RegExp(`^(${r.values.map(n=>typeof n=="string"?Bb(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}}),Ehe=Pe("$ZodTransform",(e,r)=>{en.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 Lb;return n.value=a,n}}),t2t=Pe("$ZodOptional",(e,r)=>{en.init(e,r),e._zod.optin="optional",e._zod.optout="optional",Br(e._zod,"values",()=>r.innerType._zod.values?new Set([...r.innerType._zod.values,void 0]):void 0),Br(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${c$(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)}),r2t=Pe("$ZodNullable",(e,r)=>{en.init(e,r),Br(e._zod,"optin",()=>r.innerType._zod.optin),Br(e._zod,"optout",()=>r.innerType._zod.optout),Br(e._zod,"pattern",()=>{const n=r.innerType._zod.pattern;return n?new RegExp(`^(${c$(n.source)}|null)$`):void 0}),Br(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)}),n2t=Pe("$ZodDefault",(e,r)=>{en.init(e,r),e._zod.optin="optional",Br(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=>She(i,r)):She(a,r)}});function She(e,r){return e.value===void 0&&(e.value=r.defaultValue),e}const o2t=Pe("$ZodPrefault",(e,r)=>{en.init(e,r),e._zod.optin="optional",Br(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))}),a2t=Pe("$ZodNonOptional",(e,r)=>{en.init(e,r),Br(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=>Che(i,e)):Che(a,e)}});function Che(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 i2t=Pe("$ZodCatch",(e,r)=>{en.init(e,r),e._zod.optin="optional",Br(e._zod,"optout",()=>r.innerType._zod.optout),Br(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=>Zp(l,o,Xp()))},input:n.value}),n.issues=[]),n)):(n.value=a.value,a.issues.length&&(n.value=r.catchValue({...n,error:{issues:a.issues.map(i=>Zp(i,o,Xp()))},input:n.value}),n.issues=[]),n)}}),The=Pe("$ZodPipe",(e,r)=>{en.init(e,r),Br(e._zod,"values",()=>r.in._zod.values),Br(e._zod,"optin",()=>r.in._zod.optin),Br(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=>Rhe(i,r,o)):Rhe(a,r,o)}});function Rhe(e,r,n){return jb(e)?e:r.out._zod.run({value:e.value,issues:e.issues},n)}const l2t=Pe("$ZodReadonly",(e,r)=>{en.init(e,r),Br(e._zod,"propValues",()=>r.innerType._zod.propValues),Br(e._zod,"values",()=>r.innerType._zod.values),Br(e._zod,"optin",()=>r.innerType._zod.optin),Br(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(Ahe):Ahe(a)}});function Ahe(e){return e.value=Object.freeze(e.value),e}const s2t=Pe("$ZodCustom",(e,r)=>{ks.init(e,r),en.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=>Nhe(i,n,o,e));Nhe(a,n,o,e)}});function Nhe(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(Fb(a))}}class c2t{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 u2t(){return new c2t}const Dk=u2t();function d2t(e,r){return new e({type:"string",...kt(r)})}function p2t(e,r){return new e({type:"string",format:"email",check:"string_format",abort:!1,...kt(r)})}function Dhe(e,r){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...kt(r)})}function h2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...kt(r)})}function f2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...kt(r)})}function m2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...kt(r)})}function g2t(e,r){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...kt(r)})}function y2t(e,r){return new e({type:"string",format:"url",check:"string_format",abort:!1,...kt(r)})}function b2t(e,r){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...kt(r)})}function v2t(e,r){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...kt(r)})}function x2t(e,r){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...kt(r)})}function w2t(e,r){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...kt(r)})}function k2t(e,r){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...kt(r)})}function _2t(e,r){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...kt(r)})}function E2t(e,r){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...kt(r)})}function S2t(e,r){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...kt(r)})}function C2t(e,r){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...kt(r)})}function T2t(e,r){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...kt(r)})}function R2t(e,r){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...kt(r)})}function A2t(e,r){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...kt(r)})}function N2t(e,r){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...kt(r)})}function D2t(e,r){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...kt(r)})}function P2t(e,r){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...kt(r)})}function $2t(e,r){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...kt(r)})}function M2t(e,r){return new e({type:"string",format:"date",check:"string_format",...kt(r)})}function O2t(e,r){return new e({type:"string",format:"time",check:"string_format",precision:null,...kt(r)})}function I2t(e,r){return new e({type:"string",format:"duration",check:"string_format",...kt(r)})}function L2t(e){return new e({type:"unknown"})}function z2t(e,r){return new e({type:"never",...kt(r)})}function Phe(e,r){return new uwt({check:"max_length",...kt(r),maximum:e})}function Pk(e,r){return new dwt({check:"min_length",...kt(r),minimum:e})}function $he(e,r){return new pwt({check:"length_equals",...kt(r),length:e})}function B2t(e,r){return new hwt({check:"string_format",format:"regex",...kt(r),pattern:e})}function j2t(e){return new fwt({check:"string_format",format:"lowercase",...kt(e)})}function F2t(e){return new mwt({check:"string_format",format:"uppercase",...kt(e)})}function H2t(e,r){return new gwt({check:"string_format",format:"includes",...kt(r),includes:e})}function q2t(e,r){return new ywt({check:"string_format",format:"starts_with",...kt(r),prefix:e})}function U2t(e,r){return new bwt({check:"string_format",format:"ends_with",...kt(r),suffix:e})}function Hb(e){return new vwt({check:"overwrite",tx:e})}function V2t(e){return Hb(r=>r.normalize(e))}function Y2t(){return Hb(e=>e.trim())}function W2t(){return Hb(e=>e.toLowerCase())}function G2t(){return Hb(e=>e.toUpperCase())}function X2t(e,r,n){return new e({type:"array",element:r,...kt(n)})}function K2t(e,r,n){return new e({type:"custom",check:"custom",fn:r,...kt(n)})}function Z2t(e,r){const n=kt(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??The,c=e.Boolean??vhe,u=e.String??Ak,d=e.Transform??Ehe,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 Q2t=Pe("ZodISODateTime",(e,r)=>{$wt.init(e,r),Yr.init(e,r)});function J2t(e){return $2t(Q2t,e)}const e4t=Pe("ZodISODate",(e,r)=>{Mwt.init(e,r),Yr.init(e,r)});function t4t(e){return M2t(e4t,e)}const r4t=Pe("ZodISOTime",(e,r)=>{Owt.init(e,r),Yr.init(e,r)});function n4t(e){return O2t(r4t,e)}const o4t=Pe("ZodISODuration",(e,r)=>{Iwt.init(e,r),Yr.init(e,r)});function a4t(e){return I2t(o4t,e)}const i4t=(e,r)=>{che.init(e,r),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>dhe(e,n)},flatten:{value:n=>Mxt(e,n)},addIssue:{value:n=>e.issues.push(n)},addIssues:{value:n=>e.issues.push(...n)},isEmpty:{get(){return e.issues.length===0}}})},$k=Pe("ZodError",i4t,{Parent:Error}),l4t=Oxt($k),s4t=Ixt($k),c4t=phe($k),u4t=hhe($k),Dn=Pe("ZodType",(e,r)=>(en.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)=>Kp(e,n,o),e.brand=()=>e,e.register=((n,o)=>(n.add(e,o),e)),e.parse=(n,o)=>l4t(e,n,o,{callee:e.parse}),e.safeParse=(n,o)=>c4t(e,n,o),e.parseAsync=async(n,o)=>s4t(e,n,o,{callee:e.parseAsync}),e.safeParseAsync=async(n,o)=>u4t(e,n,o),e.spa=e.safeParseAsync,e.refine=(n,o)=>e.check(n5t(n,o)),e.superRefine=n=>e.check(o5t(n)),e.overwrite=n=>e.check(Hb(n)),e.optional=()=>jhe(e),e.nullable=()=>Fhe(e),e.nullish=()=>jhe(Fhe(e)),e.nonoptional=n=>K4t(e,n),e.array=()=>M4t(e),e.or=n=>z4t([e,n]),e.and=n=>j4t(e,n),e.transform=n=>Uhe(e,U4t(n)),e.default=n=>W4t(e,n),e.prefault=n=>X4t(e,n),e.catch=n=>Q4t(e,n),e.pipe=n=>Uhe(e,n),e.readonly=()=>e5t(e),e.describe=n=>{const o=e.clone();return Dk.add(o,{description:n}),o},Object.defineProperty(e,"description",{get(){return Dk.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Dk.get(e);const o=e.clone();return Dk.add(o,n[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),Mhe=Pe("_ZodString",(e,r)=>{Ak.init(e,r),Dn.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(B2t(...o)),e.includes=(...o)=>e.check(H2t(...o)),e.startsWith=(...o)=>e.check(q2t(...o)),e.endsWith=(...o)=>e.check(U2t(...o)),e.min=(...o)=>e.check(Pk(...o)),e.max=(...o)=>e.check(Phe(...o)),e.length=(...o)=>e.check($he(...o)),e.nonempty=(...o)=>e.check(Pk(1,...o)),e.lowercase=o=>e.check(j2t(o)),e.uppercase=o=>e.check(F2t(o)),e.trim=()=>e.check(Y2t()),e.normalize=(...o)=>e.check(V2t(...o)),e.toLowerCase=()=>e.check(W2t()),e.toUpperCase=()=>e.check(G2t())}),Ohe=Pe("ZodString",(e,r)=>{Ak.init(e,r),Mhe.init(e,r),e.email=n=>e.check(p2t(p4t,n)),e.url=n=>e.check(y2t(h4t,n)),e.jwt=n=>e.check(P2t(R4t,n)),e.emoji=n=>e.check(b2t(f4t,n)),e.guid=n=>e.check(Dhe(Ihe,n)),e.uuid=n=>e.check(h2t(Mk,n)),e.uuidv4=n=>e.check(f2t(Mk,n)),e.uuidv6=n=>e.check(m2t(Mk,n)),e.uuidv7=n=>e.check(g2t(Mk,n)),e.nanoid=n=>e.check(v2t(m4t,n)),e.guid=n=>e.check(Dhe(Ihe,n)),e.cuid=n=>e.check(x2t(g4t,n)),e.cuid2=n=>e.check(w2t(y4t,n)),e.ulid=n=>e.check(k2t(b4t,n)),e.base64=n=>e.check(A2t(S4t,n)),e.base64url=n=>e.check(N2t(C4t,n)),e.xid=n=>e.check(_2t(v4t,n)),e.ksuid=n=>e.check(E2t(x4t,n)),e.ipv4=n=>e.check(S2t(w4t,n)),e.ipv6=n=>e.check(C2t(k4t,n)),e.cidrv4=n=>e.check(T2t(_4t,n)),e.cidrv6=n=>e.check(R2t(E4t,n)),e.e164=n=>e.check(D2t(T4t,n)),e.datetime=n=>e.check(J2t(n)),e.date=n=>e.check(t4t(n)),e.time=n=>e.check(n4t(n)),e.duration=n=>e.check(a4t(n))});function d4t(e){return d2t(Ohe,e)}const Yr=Pe("ZodStringFormat",(e,r)=>{jr.init(e,r),Mhe.init(e,r)}),p4t=Pe("ZodEmail",(e,r)=>{Ewt.init(e,r),Yr.init(e,r)}),Ihe=Pe("ZodGUID",(e,r)=>{kwt.init(e,r),Yr.init(e,r)}),Mk=Pe("ZodUUID",(e,r)=>{_wt.init(e,r),Yr.init(e,r)}),h4t=Pe("ZodURL",(e,r)=>{Swt.init(e,r),Yr.init(e,r)}),f4t=Pe("ZodEmoji",(e,r)=>{Cwt.init(e,r),Yr.init(e,r)}),m4t=Pe("ZodNanoID",(e,r)=>{Twt.init(e,r),Yr.init(e,r)}),g4t=Pe("ZodCUID",(e,r)=>{Rwt.init(e,r),Yr.init(e,r)}),y4t=Pe("ZodCUID2",(e,r)=>{Awt.init(e,r),Yr.init(e,r)}),b4t=Pe("ZodULID",(e,r)=>{Nwt.init(e,r),Yr.init(e,r)}),v4t=Pe("ZodXID",(e,r)=>{Dwt.init(e,r),Yr.init(e,r)}),x4t=Pe("ZodKSUID",(e,r)=>{Pwt.init(e,r),Yr.init(e,r)}),w4t=Pe("ZodIPv4",(e,r)=>{Lwt.init(e,r),Yr.init(e,r)}),k4t=Pe("ZodIPv6",(e,r)=>{zwt.init(e,r),Yr.init(e,r)}),_4t=Pe("ZodCIDRv4",(e,r)=>{Bwt.init(e,r),Yr.init(e,r)}),E4t=Pe("ZodCIDRv6",(e,r)=>{jwt.init(e,r),Yr.init(e,r)}),S4t=Pe("ZodBase64",(e,r)=>{Fwt.init(e,r),Yr.init(e,r)}),C4t=Pe("ZodBase64URL",(e,r)=>{qwt.init(e,r),Yr.init(e,r)}),T4t=Pe("ZodE164",(e,r)=>{Uwt.init(e,r),Yr.init(e,r)}),R4t=Pe("ZodJWT",(e,r)=>{Ywt.init(e,r),Yr.init(e,r)}),A4t=Pe("ZodBoolean",(e,r)=>{vhe.init(e,r),Dn.init(e,r)}),N4t=Pe("ZodUnknown",(e,r)=>{Wwt.init(e,r),Dn.init(e,r)});function Lhe(){return L2t(N4t)}const D4t=Pe("ZodNever",(e,r)=>{Gwt.init(e,r),Dn.init(e,r)});function P4t(e){return z2t(D4t,e)}const $4t=Pe("ZodArray",(e,r)=>{Xwt.init(e,r),Dn.init(e,r),e.element=r.element,e.min=(n,o)=>e.check(Pk(n,o)),e.nonempty=n=>e.check(Pk(1,n)),e.max=(n,o)=>e.check(Phe(n,o)),e.length=(n,o)=>e.check($he(n,o)),e.unwrap=()=>e.element});function M4t(e,r){return X2t($4t,e,r)}const O4t=Pe("ZodObject",(e,r)=>{Kwt.init(e,r),Dn.init(e,r),Br(e,"shape",()=>r.shape),e.keyof=()=>F4t(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Lhe()}),e.loose=()=>e.clone({...e._zod.def,catchall:Lhe()}),e.strict=()=>e.clone({...e._zod.def,catchall:P4t()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Nxt(e,n),e.merge=n=>Dxt(e,n),e.pick=n=>Rxt(e,n),e.omit=n=>Axt(e,n),e.partial=(...n)=>Pxt(Bhe,e,n[0]),e.required=(...n)=>$xt(Hhe,e,n[0])});function I4t(e,r){const n={type:"object",get shape(){return u$(this,"shape",{...e}),this.shape},...kt(r)};return new O4t(n)}const L4t=Pe("ZodUnion",(e,r)=>{Zwt.init(e,r),Dn.init(e,r),e.options=r.options});function z4t(e,r){return new L4t({type:"union",options:e,...kt(r)})}const B4t=Pe("ZodIntersection",(e,r)=>{Qwt.init(e,r),Dn.init(e,r)});function j4t(e,r){return new B4t({type:"intersection",left:e,right:r})}const g$=Pe("ZodEnum",(e,r)=>{Jwt.init(e,r),Dn.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 g$({...r,checks:[],...kt(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 g$({...r,checks:[],...kt(a),entries:i})}});function F4t(e,r){const n=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new g$({type:"enum",entries:n,...kt(r)})}const H4t=Pe("ZodLiteral",(e,r)=>{e2t.init(e,r),Dn.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 q4t(e,r){return new H4t({type:"literal",values:Array.isArray(e)?e:[e],...kt(r)})}const zhe=Pe("ZodTransform",(e,r)=>{Ehe.init(e,r),Dn.init(e,r),e._zod.parse=(n,o)=>{n.addIssue=i=>{if(typeof i=="string")n.issues.push(Fb(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(Fb(l))}};const a=r.transform(n.value,n);return a instanceof Promise?a.then(i=>(n.value=i,n)):(n.value=a,n)}});function U4t(e){return new zhe({type:"transform",transform:e})}const Bhe=Pe("ZodOptional",(e,r)=>{t2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function jhe(e){return new Bhe({type:"optional",innerType:e})}const V4t=Pe("ZodNullable",(e,r)=>{r2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function Fhe(e){return new V4t({type:"nullable",innerType:e})}const Y4t=Pe("ZodDefault",(e,r)=>{n2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function W4t(e,r){return new Y4t({type:"default",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const G4t=Pe("ZodPrefault",(e,r)=>{o2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function X4t(e,r){return new G4t({type:"prefault",innerType:e,get defaultValue(){return typeof r=="function"?r():r}})}const Hhe=Pe("ZodNonOptional",(e,r)=>{a2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType});function K4t(e,r){return new Hhe({type:"nonoptional",innerType:e,...kt(r)})}const Z4t=Pe("ZodCatch",(e,r)=>{i2t.init(e,r),Dn.init(e,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Q4t(e,r){return new Z4t({type:"catch",innerType:e,catchValue:typeof r=="function"?r:()=>r})}const qhe=Pe("ZodPipe",(e,r)=>{The.init(e,r),Dn.init(e,r),e.in=r.in,e.out=r.out});function Uhe(e,r){return new qhe({type:"pipe",in:e,out:r})}const J4t=Pe("ZodReadonly",(e,r)=>{l2t.init(e,r),Dn.init(e,r)});function e5t(e){return new J4t({type:"readonly",innerType:e})}const t5t=Pe("ZodCustom",(e,r)=>{s2t.init(e,r),Dn.init(e,r)});function r5t(e){const r=new ks({check:"custom"});return r._zod.check=e,r}function n5t(e,r={}){return K2t(t5t,e,r)}function o5t(e){const r=r5t(n=>(n.addIssue=o=>{if(typeof o=="string")n.issues.push(Fb(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(Fb(a))}},e(n.value,n)));return r}const a5t=(...e)=>Z2t({Pipe:qhe,Boolean:A4t,String:Ohe,Transform:zhe},...e),i5t=I4t({viewId:d4t().default("index"),browser:a5t().default(!0),dynamicViewVariant:q4t(["diagram","sequence"]).optional()});class Vhe 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=i5t.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",dhe(r.error)),{viewId:"index"})}render(){const r=this.getProps();this.updateHostCss(),this.root??=Ltt.createRoot(this.shadow),this.root.render(y.jsx(Ptt,{...r}))}attributeChangedCallback(r){this.root&&this.render()}}return customElements.define(ztt.View,Vhe),F6.LikeC4View=Vhe,Object.defineProperty(F6,Symbol.toStringTag,{value:"Module"}),F6})({});
/* prettier-ignore-end */