@linkdlab/funcnodes_react_flow 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser_index.d.ts +8 -0
- package/dist/frontend/assets/fontawsome.d.ts +21 -0
- package/dist/frontend/assets/mui.d.ts +8 -0
- package/dist/frontend/datarenderer/data_renderer_overlay.d.ts +3 -0
- package/dist/frontend/datarenderer/default_data_overlay_views.d.ts +6 -0
- package/dist/frontend/datarenderer/default_data_preview_renderer.d.ts +5 -0
- package/dist/frontend/datarenderer/default_data_view_renderer.d.ts +13 -0
- package/dist/frontend/datarenderer/default_handle_previews.d.ts +4 -0
- package/dist/frontend/datarenderer/default_inline_renderer.d.ts +5 -0
- package/dist/frontend/datarenderer/default_input_renderer.d.ts +17 -0
- package/dist/frontend/datarenderer/default_output_renderer.d.ts +9 -0
- package/dist/frontend/datarenderer/images.d.ts +19 -0
- package/dist/frontend/datarenderer/rendermappings.d.ts +204 -0
- package/dist/frontend/dialog.d.ts +20 -0
- package/dist/frontend/edge.d.ts +4 -0
- package/dist/frontend/funcnodesreactflow/index.d.ts +8 -0
- package/dist/frontend/funcnodesreactflow/react_flow_layer.d.ts +7 -0
- package/dist/frontend/header/index.d.ts +4 -0
- package/dist/frontend/index.d.ts +0 -0
- package/dist/frontend/layout/components.d.ts +36 -0
- package/dist/frontend/layout/fullscreenelement.d.ts +17 -0
- package/dist/frontend/layout/smoothexpand.d.ts +22 -0
- package/dist/frontend/lib.d.ts +10 -0
- package/dist/frontend/node/body_data_renderer.d.ts +3 -0
- package/dist/frontend/node/index.d.ts +4 -0
- package/dist/frontend/node/io/handle_renderer.d.ts +3 -0
- package/dist/frontend/node/io/index.d.ts +3 -0
- package/dist/frontend/node/io/io.d.ts +15 -0
- package/dist/frontend/node/io/iodataoverlay.d.ts +10 -0
- package/dist/frontend/node/io/nodeinput.d.ts +10 -0
- package/dist/frontend/node/io/nodeoutput.d.ts +6 -0
- package/dist/frontend/node/node.d.ts +25 -0
- package/dist/frontend/node/nodesettings.d.ts +3 -0
- package/dist/frontend/utils/colorpicker.d.ts +22 -0
- package/dist/frontend/utils/jsondata.d.ts +5 -0
- package/dist/frontend/utils/progressbar.d.ts +46 -0
- package/dist/frontend/utils/select.d.ts +17 -0
- package/dist/frontend/utils/table.d.ts +10 -0
- package/dist/funcnodes/datastructures.d.ts +51 -0
- package/dist/funcnodes/funcnodesworker.d.ts +147 -0
- package/dist/funcnodes/index.d.ts +4 -0
- package/dist/funcnodes/websocketworker.d.ts +45 -0
- package/dist/funcnodes/workermanager.d.ts +34 -0
- package/dist/funcnodes_react_flow.css +1 -0
- package/dist/index.cjs.js +865 -0
- package/dist/index.d.ts +16 -1224
- package/dist/index.es.js +40601 -0
- package/dist/index.umd.js +865 -0
- package/dist/plugin/helper.d.ts +2 -0
- package/dist/plugin/index.d.ts +7 -0
- package/dist/plugin/v0/index.d.ts +2 -0
- package/dist/plugin/v1/index.d.ts +2 -0
- package/dist/plugin/v1/upgrader.d.ts +34 -0
- package/dist/states/edge.d.ts +7 -0
- package/dist/states/edge.t.d.ts +16 -0
- package/dist/states/fnrfzst.d.ts +9 -0
- package/dist/states/fnrfzst.t.d.ts +182 -0
- package/dist/states/index.d.ts +7 -0
- package/dist/states/lib.d.ts +3 -0
- package/dist/states/lib.t.d.ts +45 -0
- package/dist/states/node/newnode.d.ts +4 -0
- package/dist/states/node/update_funcs.d.ts +9 -0
- package/dist/states/node/update_io.d.ts +3 -0
- package/dist/states/node/update_node.d.ts +6 -0
- package/dist/states/nodespace.d.ts +3 -0
- package/dist/states/nodespace.t.d.ts +16 -0
- package/dist/states/reactflow.d.ts +8 -0
- package/dist/states/reactflow.t.d.ts +11 -0
- package/dist/types/versioned/v0/index.d.ts +5 -0
- package/dist/types/versioned/v0/io.t.d.ts +29 -0
- package/dist/types/versioned/v0/node.t.d.ts +75 -0
- package/dist/types/versioned/v0/plugins.t.d.ts +37 -0
- package/dist/types/versioned/v0/rendering.t.d.ts +42 -0
- package/dist/types/versioned/v0/rendermappings.t.d.ts +27 -0
- package/dist/types/versioned/v1/index.d.ts +5 -0
- package/dist/types/versioned/v1/io.t.d.ts +51 -0
- package/dist/types/versioned/v1/node.t.d.ts +64 -0
- package/dist/types/versioned/v1/plugins.t.d.ts +39 -0
- package/dist/types/versioned/v1/rendering.t.d.ts +1 -0
- package/dist/types/versioned/v1/rendermappings.t.d.ts +53 -0
- package/dist/types/versioned/versions.t.d.ts +3 -0
- package/dist/utils/autolayout/force.d.ts +2 -0
- package/dist/utils/autolayout/index.d.ts +2 -0
- package/dist/utils/autolayout/txt.d.ts +15 -0
- package/dist/utils/data.d.ts +12 -0
- package/dist/utils/debugger.d.ts +5 -0
- package/dist/utils/helperfunctions.d.ts +16 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/logger.d.ts +26 -0
- package/dist/utils/objects.d.ts +142 -0
- package/package.json +36 -70
- package/dist/esm/index.esm.mjs +0 -105
- package/dist/esm/index.esm.mjs.map +0 -1
- package/dist/style.css +0 -1
- package/dist/umd/index.umd.js +0 -105
- package/dist/umd/index.umd.js.map +0 -1
|
@@ -0,0 +1,865 @@
|
|
|
1
|
+
"use strict";var m2=Object.defineProperty;var y2=(e,t,n)=>t in e?m2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ti=(e,t,n)=>y2(e,typeof t!="symbol"?t+"":t,n);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("react"),pd=require("react-dom");function db(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const k=db(N),hd=db(pd);function gl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Is={exports:{}},ni={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ch;function b2(){if(Ch)return ni;Ch=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var s=null;if(i!==void 0&&(s=""+i),o.key!==void 0&&(s=""+o.key),"key"in o){i={};for(var a in o)a!=="key"&&(i[a]=o[a])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:s,ref:o!==void 0?o:null,props:i}}return ni.Fragment=t,ni.jsx=n,ni.jsxs=n,ni}var ri={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var _h;function v2(){return _h||(_h=1,process.env.NODE_ENV!=="production"&&function(){function e(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===w?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case h:return"Fragment";case m:return"Profiler";case y:return"StrictMode";case S:return"Suspense";case E:return"SuspenseList";case M:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case g:return"Portal";case v:return(_.displayName||"Context")+".Provider";case x:return(_._context.displayName||"Context")+".Consumer";case C:var G=_.render;return _=_.displayName,_||(_=G.displayName||G.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case I:return G=_.displayName||null,G!==null?G:e(_.type)||"Memo";case P:G=_._payload,_=_._init;try{return e(_(G))}catch{}}return null}function t(_){return""+_}function n(_){try{t(_);var G=!1}catch{G=!0}if(G){G=console;var $=G.error,T=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return $.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",T),t(_)}}function r(_){if(_===h)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===P)return"<...>";try{var G=e(_);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function o(){var _=R.A;return _===null?null:_.getOwner()}function i(){return Error("react-stack-top-frame")}function s(_){if(O.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function a(_,G){function $(){j||(j=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}$.isReactWarning=!0,Object.defineProperty(_,"key",{get:$,configurable:!0})}function l(){var _=e(this.type);return D[_]||(D[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function c(_,G,$,T,H,J,W,X){return $=J.ref,_={$$typeof:p,type:_,key:G,props:J,_owner:H},($!==void 0?$:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:W}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:X}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function u(_,G,$,T,H,J,W,X){var U=G.children;if(U!==void 0)if(T)if(L(U)){for(T=0;T<U.length;T++)f(U[T]);Object.freeze&&Object.freeze(U)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else f(U);if(O.call(G,"key")){U=e(_);var Q=Object.keys(G).filter(function(oe){return oe!=="key"});T=0<Q.length?"{key: someKey, "+Q.join(": ..., ")+": ...}":"{key: someKey}",F[U+T]||(Q=0<Q.length?"{"+Q.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
18
|
+
let props = %s;
|
|
19
|
+
<%s {...props} />
|
|
20
|
+
React keys must be passed directly to JSX without using spread:
|
|
21
|
+
let props = %s;
|
|
22
|
+
<%s key={someKey} {...props} />`,T,U,Q,U),F[U+T]=!0)}if(U=null,$!==void 0&&(n($),U=""+$),s(G)&&(n(G.key),U=""+G.key),"key"in G){$={};for(var ne in G)ne!=="key"&&($[ne]=G[ne])}else $=G;return U&&a($,typeof _=="function"?_.displayName||_.name||"Unknown":_),c(_,U,J,H,o(),$,W,X)}function f(_){typeof _=="object"&&_!==null&&_.$$typeof===p&&_._store&&(_._store.validated=1)}var d=N,p=Symbol.for("react.transitional.element"),g=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),v=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),w=Symbol.for("react.client.reference"),R=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,O=Object.prototype.hasOwnProperty,L=Array.isArray,A=console.createTask?console.createTask:function(){return null};d={"react-stack-bottom-frame":function(_){return _()}};var j,D={},z=d["react-stack-bottom-frame"].bind(d,i)(),V=A(r(i)),F={};ri.Fragment=h,ri.jsx=function(_,G,$,T,H){var J=1e4>R.recentlyCreatedOwnerStacks++;return u(_,G,$,!1,T,H,J?Error("react-stack-top-frame"):z,J?A(r(_)):V)},ri.jsxs=function(_,G,$,T,H){var J=1e4>R.recentlyCreatedOwnerStacks++;return u(_,G,$,!0,T,H,J?Error("react-stack-top-frame"):z,J?A(r(_)):V)}}()),ri}var Sh;function x2(){return Sh||(Sh=1,process.env.NODE_ENV==="production"?Is.exports=b2():Is.exports=v2()),Is.exports}var b=x2();const w2={},Eh=e=>{let t;const n=new Set,r=(u,f)=>{const d=typeof u=="function"?u(t):u;if(!Object.is(d,t)){const p=t;t=f??(typeof d!="object"||d===null)?d:Object.assign({},t,d),n.forEach(g=>g(t,p))}},o=()=>t,l={setState:r,getState:o,getInitialState:()=>c,subscribe:u=>(n.add(u),()=>n.delete(u)),destroy:()=>{(w2?"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()}},c=t=e(r,o,l);return l},pb=e=>e?Eh(e):Eh;var ks={exports:{}},Ic={},As={exports:{}},kc={};/**
|
|
23
|
+
* @license React
|
|
24
|
+
* use-sync-external-store-shim.production.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/var Ih;function C2(){if(Ih)return kc;Ih=1;var e=N;function t(f,d){return f===d&&(f!==0||1/f===1/d)||f!==f&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(f,d){var p=d(),g=r({inst:{value:p,getSnapshot:d}}),h=g[0].inst,y=g[1];return i(function(){h.value=p,h.getSnapshot=d,l(h)&&y({inst:h})},[f,p,d]),o(function(){return l(h)&&y({inst:h}),f(function(){l(h)&&y({inst:h})})},[f]),s(p),p}function l(f){var d=f.getSnapshot;f=f.value;try{var p=d();return!n(f,p)}catch{return!0}}function c(f,d){return d()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:a;return kc.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,kc}var Ac={};/**
|
|
31
|
+
* @license React
|
|
32
|
+
* use-sync-external-store-shim.development.js
|
|
33
|
+
*
|
|
34
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
35
|
+
*
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
38
|
+
*/var kh;function _2(){return kh||(kh=1,process.env.NODE_ENV!=="production"&&function(){function e(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}function t(p,g){u||o.startTransition===void 0||(u=!0,console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var h=g();if(!f){var y=g();i(h,y)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),f=!0)}y=s({inst:{value:h,getSnapshot:g}});var m=y[0].inst,x=y[1];return l(function(){m.value=h,m.getSnapshot=g,n(m)&&x({inst:m})},[p,h,g]),a(function(){return n(m)&&x({inst:m}),p(function(){n(m)&&x({inst:m})})},[p]),c(h),h}function n(p){var g=p.getSnapshot;p=p.value;try{var h=g();return!i(p,h)}catch{return!0}}function r(p,g){return g()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var o=N,i=typeof Object.is=="function"?Object.is:e,s=o.useState,a=o.useEffect,l=o.useLayoutEffect,c=o.useDebugValue,u=!1,f=!1,d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?r:t;Ac.useSyncExternalStore=o.useSyncExternalStore!==void 0?o.useSyncExternalStore:d,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Ac}var Ah;function hb(){return Ah||(Ah=1,process.env.NODE_ENV==="production"?As.exports=C2():As.exports=_2()),As.exports}/**
|
|
39
|
+
* @license React
|
|
40
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
41
|
+
*
|
|
42
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the MIT license found in the
|
|
45
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/var Rh;function S2(){if(Rh)return Ic;Rh=1;var e=N,t=hb();function n(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,l=e.useDebugValue;return Ic.useSyncExternalStoreWithSelector=function(c,u,f,d,p){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function m(E){if(!x){if(x=!0,v=E,E=d(E),p!==void 0&&h.hasValue){var I=h.value;if(p(I,E))return C=I}return C=E}if(I=C,r(v,E))return I;var P=d(E);return p!==void 0&&p(I,P)?(v=E,I):(v=E,C=P)}var x=!1,v,C,S=f===void 0?null:f;return[function(){return m(u())},S===null?void 0:function(){return m(S())}]},[u,f,d,p]);var y=o(c,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=y},[y]),l(y),y},Ic}var Rc={};/**
|
|
47
|
+
* @license React
|
|
48
|
+
* use-sync-external-store-shim/with-selector.development.js
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the MIT license found in the
|
|
53
|
+
* LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/var Th;function E2(){return Th||(Th=1,process.env.NODE_ENV!=="production"&&function(){function e(c,u){return c===u&&(c!==0||1/c===1/u)||c!==c&&u!==u}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=N,n=hb(),r=typeof Object.is=="function"?Object.is:e,o=n.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,l=t.useDebugValue;Rc.useSyncExternalStoreWithSelector=function(c,u,f,d,p){var g=i(null);if(g.current===null){var h={hasValue:!1,value:null};g.current=h}else h=g.current;g=a(function(){function m(E){if(!x){if(x=!0,v=E,E=d(E),p!==void 0&&h.hasValue){var I=h.value;if(p(I,E))return C=I}return C=E}if(I=C,r(v,E))return I;var P=d(E);return p!==void 0&&p(I,P)?(v=E,I):(v=E,C=P)}var x=!1,v,C,S=f===void 0?null:f;return[function(){return m(u())},S===null?void 0:function(){return m(S())}]},[u,f,d,p]);var y=o(c,g[0],g[1]);return s(function(){h.hasValue=!0,h.value=y},[y]),l(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),Rc}var Nh;function I2(){return Nh||(Nh=1,process.env.NODE_ENV==="production"?ks.exports=S2():ks.exports=E2()),ks.exports}var k2=I2();const gb=gl(k2),mb={},{useDebugValue:A2}=N,{useSyncExternalStoreWithSelector:R2}=gb;let Ph=!1;const T2=e=>e;function N2(e,t=T2,n){(mb?"production":void 0)!=="production"&&n&&!Ph&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Ph=!0);const r=R2(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return A2(r),r}const Oh=e=>{(mb?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?pb(e):e,n=(r,o)=>N2(t,r,o);return Object.assign(n,t),n},dt=e=>e?Oh(e):Oh,P2=()=>({libstate:dt((e,t)=>({lib:{shelves:[]},external_worker:[],set:n=>e(r=>({...r,...n})),get_lib:()=>t().lib,get_external_worker:()=>t().external_worker}))}),O2=({})=>{const e=new Map;return{nodesstates:e,get_node:(t,n=!0)=>{const r=e.get(t);if(!r&&n){const o=e.keys();throw new Error(`Node ${t} not found, available nodes: ${Array.from(o)}`)}return r}}};function lr(e){return Object.prototype.toString.call(e)==="[object Object]"}function gd(e,t){if(e===t)return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null||e.constructor!==t.constructor)return!1;if(e.constructor===Object||e.constructor===Array){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!r.includes(o)||!gd(e[o],t[o]))return!1}return e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!0}const qt=(e,t)=>{let n=!1;if(!lr(e))throw new Error("Target must be a plain object not"+typeof e);if(!lr(t))throw new Error("Source must be a plain object not"+typeof t);const r={...e};return Object.keys(t).forEach(o=>{const i=t[o],s=e[o];if(lr(i)&&lr(s)){const{new_obj:a,change:l}=qt(s,i);l&&(n=!0,r[o]=a)}else gd(s,i)||(n=!0,r[o]=i)}),{new_obj:r,change:n}},es=(e,t)=>{let n=!1;if(!lr(e))throw new Error("Target must be a plain object");if(!lr(t))throw new Error("Source must be a plain object");const r={...e};return Object.keys(t).forEach(o=>{const i=t[o],s=e[o];if(!(s===void 0&&i===void 0)){if(s===void 0){n=!0,r[o]=i;return}if(lr(i)&&lr(s)){const{new_obj:a,change:l}=es(s,i);l&&(n=!0,r[o]=a)}}}),{new_obj:r,change:n}},fn=(e,t)=>t===void 0?[e,!1]:[t,e!==t];function yb(e,t){throw new Error("Unhandled case: "+e+" with: "+JSON.stringify(t))}const bb=e=>{e.io===void 0&&(e.io={});let t=e.io,n=e.io_order;if(n===void 0)if(Array.isArray(t)){n=t.map(o=>o.id);const r={};for(const o of t)r[o.id]=o;t=r}else n=Object.keys(e.io);else if(Array.isArray(t)){const r={};for(const o of t)r[o.id]=o,n.includes(o.id)||n.push(o.id);t=r}else for(const r in t)n.includes(r)||n.push(r);return{...e,io_order:n,io:t}},M2=(e,t)=>{const n=e.getState(),r={},o=bb(t),i=Object.keys(o);for(const s of i)switch(s){case"id":{const[a,l]=fn(n[s],o[s]);l&&(r[s]=a);break}case"node_id":{const[a,l]=fn(n[s],o[s]);l&&(r[s]=a);break}case"node_name":{const[a,l]=fn(n[s],o[s]);l&&(r[s]=a);break}case"name":{const[a,l]=fn(n[s],o[s]);l&&(r[s]=a);break}case"in_trigger":{n[s].setState(!!o[s]);break}case"error":{o[s]!==n[s]&&(r[s]=o[s]);break}case"render_options":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}case"io_order":{const[a,l]=((c,u)=>u===void 0?[c,!1]:[u,!gd(c,u)])(n[s],o[s]);l&&(r[s]=a);break}case"io":{const a=n[s],l=o[s];if(l===void 0||a===void 0)break;for(const c in l){if(a[c]===void 0){console.error("io key not found in oldvalue:",c,"allowed:",a,"for update:",o);continue}a[c].update(l[c])}break}case"progress":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s].getState(),o[s]);l&&n[s].setState(a);break}case"description":{r[s]=o[s];break}case"properties":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}case"status":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s],o[s]);l&&(r[s]=a);break}default:try{yb(s,o[s])}catch(a){console.error(a)}}Object.keys(r).length>0&&e.setState(r)},Mh=(e,t)=>{e.properties=e.properties||{},t.pos&&(e.properties["frontend:pos"]=t.pos),t.size&&(e.properties["frontend:size"]=t.size),t.collapsed!==void 0&&(e.properties["frontend:collapsed"]=!!t.collapsed)},D2=(e,t)=>{const n=e.getState(),r={},o={},i=Object.keys(t);for(const s of i)switch(s){case"name":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"id":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"connected":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"does_trigger":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"hidden":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"full_id":{const[a,l]=fn(n[s],t[s]);l&&(r[s]=a);break}case"is_input":break;case"node":break;case"type":break;case"value":{o.preview=t[s];break}case"fullvalue":{o.full=t[s];break}case"render_options":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s],t[s]);l&&(r[s]=a);break}case"value_options":{const[a,l]=((c,u)=>{if(u===void 0)return[c,!1];if(c===void 0)return[u,u!==void 0];const{new_obj:f,change:d}=qt(c,u);return[f,d]})(n[s],t[s]);l&&(r[s]=a);break}case"valuepreview_type":{r[s]=t[s];break}case"emit_value_set":{r[s]=t[s];break}case"default":{r[s]=t[s];break}case"required":{r[s]=t[s];break}default:try{yb(s,t[s])}catch(a){console.error(a)}}Object.keys(o).length>0&&e.updateValueStore(o),Object.keys(r).length>0&&e.setState(r)};class On{constructor({data:t,mime:n}){this._data=t,this._mime=n}get data(){return this._data}get value(){return this._data}get mime(){return this._mime}toString(){return this._data instanceof ArrayBuffer?`DataStructure(${this._data.byteLength},${this._mime})`:this._data instanceof Blob?`DataStructure(${this._data.size},${this._mime})`:this._data instanceof String?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Array?`DataStructure(${this._data.length},${this._mime})`:this._data instanceof Object?`DataStructure(${Object.keys(this._data).length},${this._mime})`:`DataStructure(${this._mime})`}toJSON(){return this.toString()}dispose(){}}class F2 extends On{get objectUrl(){if(this._objectUrl)return this._objectUrl;const t=this.data instanceof Blob?this.data:new Blob([this.data],{type:this.mime});return this._objectUrl=URL.createObjectURL(t),this._objectUrl}dispose(){this._objectUrl&&URL.revokeObjectURL(this._objectUrl),super.dispose()}get value(){return this.objectUrl}}const Je=e=>e.buffer?e.buffer:e,j2={x:(e,t)=>null,c:(e,t)=>new DataView(Je(e)).getInt8(0),B:(e,t)=>new DataView(Je(e)).getUint8(0),"?":(e,t)=>new DataView(Je(e)).getInt8(0)===1,h:(e,t)=>new DataView(Je(e)).getInt16(0,t),H:(e,t)=>new DataView(Je(e)).getUint16(0,t),i:(e,t)=>new DataView(Je(e)).getInt32(0,t),I:(e,t)=>new DataView(Je(e)).getUint32(0,t),l:(e,t)=>new DataView(Je(e)).getInt32(0,t),L:(e,t)=>new DataView(Je(e)).getUint32(0,t),q:(e,t)=>Number(new DataView(Je(e)).getBigInt64(0,t)),Q:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t)),n:(e,t)=>Number(new DataView(Je(e)).getBigInt64(0,t)),N:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t)),f:(e,t)=>new DataView(Je(e)).getFloat32(0,t),d:(e,t)=>new DataView(Je(e)).getFloat64(0,t),s:(e,t)=>new TextDecoder().decode(Je(e)),p:(e,t)=>new TextDecoder().decode(Je(e)),P:(e,t)=>Number(new DataView(Je(e)).getBigUint64(0,t))};class L2 extends On{constructor({data:t,mime:n}){super({data:t,mime:n}),this._cType=n.split("application/fn.struct.")[1],this._value=null,this.parse_value()}parse_value(){let t=!0,n=this._cType;return n.startsWith("<")&&(t=!0,n=n.slice(1)),n.startsWith(">")&&(t=!1,n=n.slice(1)),n.startsWith("!")&&(t=!1,n=n.slice(1)),n.startsWith("@")&&(t=!1,n=n.slice(1)),n.startsWith("=")&&(t=!1,n=n.slice(1)),this._value=j2[n](this.data,t),this._value}get value(){return this._value}toString(){return this._value===null?"null":this._value.toString()}}class Tr extends On{constructor({data:t,mime:n}){super({data:t,mime:n}),t.length===0?this._json=void 0:(this._json=JSON.parse(new TextDecoder().decode(Je(t))),this._json==="<NoValue>"&&(this._json=void 0))}get value(){return this._json}static fromObject(t){const n=t==="<NoValue>"?new Uint8Array(0):new TextEncoder().encode(JSON.stringify(t));return new Tr({data:n,mime:"application/json"})}toString(){return JSON.stringify(this._json)}}class B2 extends On{constructor({data:t,mime:n}){super({data:t,mime:n}),this._value=new TextDecoder().decode(Je(t))}get value(){return this._value}toString(){return this._value}}const Dh=({data:e,mime:t})=>e instanceof ArrayBuffer||e instanceof Uint8Array?t.startsWith("application/fn.struct.")?new L2({data:e,mime:t}):t.startsWith("application/json")?new Tr({data:e,mime:t}):t==="text"||t.startsWith("text/")?new B2({data:e,mime:t}):new F2({data:e,mime:t}):new On({data:e,mime:t}),z2={id:"dummy",node_id:"dummy",node_name:"dummy",properties:{"frontend:size":[200,100],"frontend:pos":[NaN,NaN],"frontend:collapsed":!1},io:{},name:"dummy",in_trigger:!1,progress:{ascii:!1,elapsed:0,initial:0,n:0,prefix:"idle",unit:"it",unit_divisor:1e3,unit_scale:!1}},V2={id:"dummy",name:"dummy",node:"dummy",full_id:"dummy",type:"any",value:void 0,is_input:!1,connected:!1,does_trigger:!0,fullvalue:void 0,render_options:{set_default:!0,type:"any"},hidden:!1,emit_value_set:!0,required:!1},G2=(e,t)=>{const n=()=>{var i;t.node===void 0||t.id===void 0||(i=e.worker)==null||i.get_io_full_value({nid:t.node,ioid:t.id})};return t.value==="<NoValue>"&&(t.value=void 0),t.fullvalue==="<NoValue>"&&(t.fullvalue=void 0),t.hidden===void 0&&(t.hidden=!1),{...t,try_get_full_value:n,set_hidden:i=>{var s;t.node===void 0||t.id===void 0||(s=e.worker)==null||s.update_io_options({nid:t.node,ioid:t.id,options:{hidden:i}})}}},$2=(e,t)=>{if(!t.id)throw new Error("IO must have an id but is missing for "+JSON.stringify(t));t.name===void 0&&(t.name=t.id);const{new_obj:n}=es(t,V2);return(n.render_options.type==="any"||n.render_options.type===void 0)&&(n.render_options.type=n.type),G2(e,n)},H2=(e,t,n)=>{let r;if(e===void 0)throw new Error("nodestore is undefined");return r={_state:dt((o,i)=>$2(t,n)),use:()=>r._state(),getState:()=>r._state.getState(),setState:o=>{r._state.setState(o)},update:o=>{D2(r,o)},valuestore:dt((o,i)=>{let s=n.value;s==="<NoValue>"&&(s=void 0),!(s instanceof On)&&s!==void 0&&(s=Tr.fromObject(s));let a=n.fullvalue;return a==="<NoValue>"&&(a=void 0),!(a instanceof On)&&a!==void 0&&(a=Tr.fromObject(a)),{preview:s,full:a}}),updateValueStore:o=>{r.valuestore.setState(i=>(i.preview&&typeof i.preview.dispose=="function"&&i.preview.dispose(),i.full&&typeof i.full.dispose=="function"&&i.full.dispose(),o.preview!==void 0&&o.full===void 0&&(o.full=void 0,i.full=void 0),o.preview!==void 0&&!(o.preview instanceof On)&&(o.preview=Tr.fromObject(o.preview)),o.full!==void 0&&!(o.full instanceof On)&&(o.full=Tr.fromObject(o.full)),{...i,...o}))},node:e},r},W2=(e,t,n)=>{const r=n.io_order;if(r===void 0)throw new Error("Node must have io_order");return{...n,in_trigger:dt(()=>!1),inputs:Object.keys(n.io).filter(i=>n.io[i].is_input),outputs:Object.keys(n.io).filter(i=>!n.io[i].is_input),io:Object.fromEntries(Object.entries(n.io).map(([i,s])=>[i,H2(e,t,s)])),io_order:r,progress:dt(()=>n.progress)}},X2=(e,t,n)=>{if(!n.id)throw new Error("Node must have an id");const{new_obj:r}=es(n,z2);return W2(e,t,r)},Y2=(e,t)=>{const r={use:()=>r._state(),getState:()=>r._state.getState(),setState:o=>{r._state.setState(o)},update:o=>{M2(r._state,o)}};return r._state=dt((o,i)=>X2(r,e,bb(t))),r};function et(e){if(typeof e=="string"||typeof e=="number")return""+e;let t="";if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=et(e[n]))!==""&&(t+=(t&&" ")+r);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var U2={value:()=>{}};function ml(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new la(n)}function la(e){this._=e}function Z2(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",o=n.indexOf(".");if(o>=0&&(r=n.slice(o+1),n=n.slice(0,o)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}la.prototype=ml.prototype={constructor:la,on:function(e,t){var n=this._,r=Z2(e+"",n),o,i=-1,s=r.length;if(arguments.length<2){for(;++i<s;)if((o=(e=r[i]).type)&&(o=J2(n[o],e.name)))return o;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++i<s;)if(o=(e=r[i]).type)n[o]=Fh(n[o],e.name,t);else if(t==null)for(o in n)n[o]=Fh(n[o],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new la(e)},call:function(e,t){if((o=arguments.length-2)>0)for(var n=new Array(o),r=0,o,i;r<o;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,o=i.length;r<o;++r)i[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],o=0,i=r.length;o<i;++o)r[o].value.apply(t,n)}};function J2(e,t){for(var n=0,r=e.length,o;n<r;++n)if((o=e[n]).name===t)return o.value}function Fh(e,t,n){for(var r=0,o=e.length;r<o;++r)if(e[r].name===t){e[r]=U2,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Vu="http://www.w3.org/1999/xhtml";const jh={svg:"http://www.w3.org/2000/svg",xhtml:Vu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function yl(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),jh.hasOwnProperty(t)?{space:jh[t],local:e}:e}function q2(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Vu&&t.documentElement.namespaceURI===Vu?t.createElement(e):t.createElementNS(n,e)}}function K2(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function vb(e){var t=yl(e);return(t.local?K2:q2)(t)}function Q2(){}function md(e){return e==null?Q2:function(){return this.querySelector(e)}}function eI(e){typeof e!="function"&&(e=md(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=new Array(s),l,c,u=0;u<s;++u)(l=i[u])&&(c=e.call(l,l.__data__,u,i))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new Mt(r,this._parents)}function tI(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function nI(){return[]}function xb(e){return e==null?nI:function(){return this.querySelectorAll(e)}}function rI(e){return function(){return tI(e.apply(this,arguments))}}function oI(e){typeof e=="function"?e=rI(e):e=xb(e);for(var t=this._groups,n=t.length,r=[],o=[],i=0;i<n;++i)for(var s=t[i],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(e.call(l,l.__data__,c,s)),o.push(l));return new Mt(r,o)}function wb(e){return function(){return this.matches(e)}}function Cb(e){return function(t){return t.matches(e)}}var iI=Array.prototype.find;function sI(e){return function(){return iI.call(this.children,e)}}function aI(){return this.firstElementChild}function lI(e){return this.select(e==null?aI:sI(typeof e=="function"?e:Cb(e)))}var cI=Array.prototype.filter;function uI(){return Array.from(this.children)}function fI(e){return function(){return cI.call(this.children,e)}}function dI(e){return this.selectAll(e==null?uI:fI(typeof e=="function"?e:Cb(e)))}function pI(e){typeof e!="function"&&(e=wb(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,c=0;c<s;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new Mt(r,this._parents)}function _b(e){return new Array(e.length)}function hI(){return new Mt(this._enter||this._groups.map(_b),this._parents)}function Aa(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Aa.prototype={constructor:Aa,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function gI(e){return function(){return e}}function mI(e,t,n,r,o,i){for(var s=0,a,l=t.length,c=i.length;s<c;++s)(a=t[s])?(a.__data__=i[s],r[s]=a):n[s]=new Aa(e,i[s]);for(;s<l;++s)(a=t[s])&&(o[s]=a)}function yI(e,t,n,r,o,i,s){var a,l,c=new Map,u=t.length,f=i.length,d=new Array(u),p;for(a=0;a<u;++a)(l=t[a])&&(d[a]=p=s.call(l,l.__data__,a,t)+"",c.has(p)?o[a]=l:c.set(p,l));for(a=0;a<f;++a)p=s.call(e,i[a],a,i)+"",(l=c.get(p))?(r[a]=l,l.__data__=i[a],c.delete(p)):n[a]=new Aa(e,i[a]);for(a=0;a<u;++a)(l=t[a])&&c.get(d[a])===l&&(o[a]=l)}function bI(e){return e.__data__}function vI(e,t){if(!arguments.length)return Array.from(this,bI);var n=t?yI:mI,r=this._parents,o=this._groups;typeof e!="function"&&(e=gI(e));for(var i=o.length,s=new Array(i),a=new Array(i),l=new Array(i),c=0;c<i;++c){var u=r[c],f=o[c],d=f.length,p=xI(e.call(u,u&&u.__data__,c,r)),g=p.length,h=a[c]=new Array(g),y=s[c]=new Array(g),m=l[c]=new Array(d);n(u,f,h,y,m,p,t);for(var x=0,v=0,C,S;x<g;++x)if(C=h[x]){for(x>=v&&(v=x+1);!(S=y[v])&&++v<g;);C._next=S||null}}return s=new Mt(s,r),s._enter=a,s._exit=l,s}function xI(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wI(){return new Mt(this._exit||this._groups.map(_b),this._parents)}function CI(e,t,n){var r=this.enter(),o=this,i=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(o=t(o),o&&(o=o.selection())),n==null?i.remove():n(i),r&&o?r.merge(o).order():o}function _I(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,o=n.length,i=r.length,s=Math.min(o,i),a=new Array(o),l=0;l<s;++l)for(var c=n[l],u=r[l],f=c.length,d=a[l]=new Array(f),p,g=0;g<f;++g)(p=c[g]||u[g])&&(d[g]=p);for(;l<o;++l)a[l]=n[l];return new Mt(a,this._parents)}function SI(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],o=r.length-1,i=r[o],s;--o>=0;)(s=r[o])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function EI(e){e||(e=II);function t(f,d){return f&&d?e(f.__data__,d.__data__):!f-!d}for(var n=this._groups,r=n.length,o=new Array(r),i=0;i<r;++i){for(var s=n[i],a=s.length,l=o[i]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(t)}return new Mt(o,this._parents).order()}function II(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function kI(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function AI(){return Array.from(this)}function RI(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length;o<i;++o){var s=r[o];if(s)return s}return null}function TI(){let e=0;for(const t of this)++e;return e}function NI(){return!this.node()}function PI(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var o=t[n],i=0,s=o.length,a;i<s;++i)(a=o[i])&&e.call(a,a.__data__,i,o);return this}function OI(e){return function(){this.removeAttribute(e)}}function MI(e){return function(){this.removeAttributeNS(e.space,e.local)}}function DI(e,t){return function(){this.setAttribute(e,t)}}function FI(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function jI(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function LI(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function BI(e,t){var n=yl(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?MI:OI:typeof t=="function"?n.local?LI:jI:n.local?FI:DI)(n,t))}function Sb(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function zI(e){return function(){this.style.removeProperty(e)}}function VI(e,t,n){return function(){this.style.setProperty(e,t,n)}}function GI(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function $I(e,t,n){return arguments.length>1?this.each((t==null?zI:typeof t=="function"?GI:VI)(e,t,n??"")):Ao(this.node(),e)}function Ao(e,t){return e.style.getPropertyValue(t)||Sb(e).getComputedStyle(e,null).getPropertyValue(t)}function HI(e){return function(){delete this[e]}}function WI(e,t){return function(){this[e]=t}}function XI(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function YI(e,t){return arguments.length>1?this.each((t==null?HI:typeof t=="function"?XI:WI)(e,t)):this.node()[e]}function Eb(e){return e.trim().split(/^|\s+/)}function yd(e){return e.classList||new Ib(e)}function Ib(e){this._node=e,this._names=Eb(e.getAttribute("class")||"")}Ib.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function kb(e,t){for(var n=yd(e),r=-1,o=t.length;++r<o;)n.add(t[r])}function Ab(e,t){for(var n=yd(e),r=-1,o=t.length;++r<o;)n.remove(t[r])}function UI(e){return function(){kb(this,e)}}function ZI(e){return function(){Ab(this,e)}}function JI(e,t){return function(){(t.apply(this,arguments)?kb:Ab)(this,e)}}function qI(e,t){var n=Eb(e+"");if(arguments.length<2){for(var r=yd(this.node()),o=-1,i=n.length;++o<i;)if(!r.contains(n[o]))return!1;return!0}return this.each((typeof t=="function"?JI:t?UI:ZI)(n,t))}function KI(){this.textContent=""}function QI(e){return function(){this.textContent=e}}function ek(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function tk(e){return arguments.length?this.each(e==null?KI:(typeof e=="function"?ek:QI)(e)):this.node().textContent}function nk(){this.innerHTML=""}function rk(e){return function(){this.innerHTML=e}}function ok(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ik(e){return arguments.length?this.each(e==null?nk:(typeof e=="function"?ok:rk)(e)):this.node().innerHTML}function sk(){this.nextSibling&&this.parentNode.appendChild(this)}function ak(){return this.each(sk)}function lk(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ck(){return this.each(lk)}function uk(e){var t=typeof e=="function"?e:vb(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fk(){return null}function dk(e,t){var n=typeof e=="function"?e:vb(e),r=t==null?fk:typeof t=="function"?t:md(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function pk(){var e=this.parentNode;e&&e.removeChild(this)}function hk(){return this.each(pk)}function gk(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function mk(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yk(e){return this.select(e?mk:gk)}function bk(e){return arguments.length?this.property("__data__",e):this.node().__data__}function vk(e){return function(t){e.call(this,t,this.__data__)}}function xk(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function wk(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,o=t.length,i;n<o;++n)i=t[n],(!e.type||i.type===e.type)&&i.name===e.name?this.removeEventListener(i.type,i.listener,i.options):t[++r]=i;++r?t.length=r:delete this.__on}}}function Ck(e,t,n){return function(){var r=this.__on,o,i=vk(t);if(r){for(var s=0,a=r.length;s<a;++s)if((o=r[s]).type===e.type&&o.name===e.name){this.removeEventListener(o.type,o.listener,o.options),this.addEventListener(o.type,o.listener=i,o.options=n),o.value=t;return}}this.addEventListener(e.type,i,n),o={type:e.type,name:e.name,value:t,listener:i,options:n},r?r.push(o):this.__on=[o]}}function _k(e,t,n){var r=xk(e+""),o,i=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(o=0,u=a[l];o<i;++o)if((s=r[o]).type===u.type&&s.name===u.name)return u.value}return}for(a=t?Ck:wk,o=0;o<i;++o)this.each(a(r[o],t,n));return this}function Rb(e,t,n){var r=Sb(e),o=r.CustomEvent;typeof o=="function"?o=new o(t,n):(o=r.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function Sk(e,t){return function(){return Rb(this,e,t)}}function Ek(e,t){return function(){return Rb(this,e,t.apply(this,arguments))}}function Ik(e,t){return this.each((typeof t=="function"?Ek:Sk)(e,t))}function*kk(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],o=0,i=r.length,s;o<i;++o)(s=r[o])&&(yield s)}var Tb=[null];function Mt(e,t){this._groups=e,this._parents=t}function ts(){return new Mt([[document.documentElement]],Tb)}function Ak(){return this}Mt.prototype=ts.prototype={constructor:Mt,select:eI,selectAll:oI,selectChild:lI,selectChildren:dI,filter:pI,data:vI,enter:hI,exit:wI,join:CI,merge:_I,selection:Ak,order:SI,sort:EI,call:kI,nodes:AI,node:RI,size:TI,empty:NI,each:PI,attr:BI,style:$I,property:YI,classed:qI,text:tk,html:ik,raise:ak,lower:ck,append:uk,insert:dk,remove:hk,clone:yk,datum:bk,on:_k,dispatch:Ik,[Symbol.iterator]:kk};function kt(e){return typeof e=="string"?new Mt([[document.querySelector(e)]],[document.documentElement]):new Mt([[e]],Tb)}function Rk(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ut(e,t){if(e=Rk(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var o=t.getBoundingClientRect();return[e.clientX-o.left-t.clientLeft,e.clientY-o.top-t.clientTop]}}return[e.pageX,e.pageY]}const Tk={passive:!1},Ri={capture:!0,passive:!1};function Tc(e){e.stopImmediatePropagation()}function vo(e){e.preventDefault(),e.stopImmediatePropagation()}function Nb(e){var t=e.document.documentElement,n=kt(e).on("dragstart.drag",vo,Ri);"onselectstart"in t?n.on("selectstart.drag",vo,Ri):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Pb(e,t){var n=e.document.documentElement,r=kt(e).on("dragstart.drag",null);t&&(r.on("click.drag",vo,Ri),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}const Rs=e=>()=>e;function Gu(e,{sourceEvent:t,subject:n,target:r,identifier:o,active:i,x:s,y:a,dx:l,dy:c,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:o,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:u}})}Gu.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Nk(e){return!e.ctrlKey&&!e.button}function Pk(){return this.parentNode}function Ok(e,t){return t??{x:e.x,y:e.y}}function Mk(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ob(){var e=Nk,t=Pk,n=Ok,r=Mk,o={},i=ml("start","drag","end"),s=0,a,l,c,u,f=0;function d(C){C.on("mousedown.drag",p).filter(r).on("touchstart.drag",y).on("touchmove.drag",m,Tk).on("touchend.drag touchcancel.drag",x).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(C,S){if(!(u||!e.call(this,C,S))){var E=v(this,t.call(this,C,S),C,S,"mouse");E&&(kt(C.view).on("mousemove.drag",g,Ri).on("mouseup.drag",h,Ri),Nb(C.view),Tc(C),c=!1,a=C.clientX,l=C.clientY,E("start",C))}}function g(C){if(vo(C),!c){var S=C.clientX-a,E=C.clientY-l;c=S*S+E*E>f}o.mouse("drag",C)}function h(C){kt(C.view).on("mousemove.drag mouseup.drag",null),Pb(C.view,c),vo(C),o.mouse("end",C)}function y(C,S){if(e.call(this,C,S)){var E=C.changedTouches,I=t.call(this,C,S),P=E.length,M,w;for(M=0;M<P;++M)(w=v(this,I,C,S,E[M].identifier,E[M]))&&(Tc(C),w("start",C,E[M]))}}function m(C){var S=C.changedTouches,E=S.length,I,P;for(I=0;I<E;++I)(P=o[S[I].identifier])&&(vo(C),P("drag",C,S[I]))}function x(C){var S=C.changedTouches,E=S.length,I,P;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),I=0;I<E;++I)(P=o[S[I].identifier])&&(Tc(C),P("end",C,S[I]))}function v(C,S,E,I,P,M){var w=i.copy(),R=Ut(M||E,S),O,L,A;if((A=n.call(C,new Gu("beforestart",{sourceEvent:E,target:d,identifier:P,active:s,x:R[0],y:R[1],dx:0,dy:0,dispatch:w}),I))!=null)return O=A.x-R[0]||0,L=A.y-R[1]||0,function j(D,z,V){var F=R,_;switch(D){case"start":o[P]=j,_=s++;break;case"end":delete o[P],--s;case"drag":R=Ut(V||z,S),_=s;break}w.call(D,C,new Gu(D,{sourceEvent:z,subject:A,target:d,identifier:P,active:_,x:R[0]+O,y:R[1]+L,dx:R[0]-F[0],dy:R[1]-F[1],dispatch:w}),I)}}return d.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Rs(!!C),d):e},d.container=function(C){return arguments.length?(t=typeof C=="function"?C:Rs(C),d):t},d.subject=function(C){return arguments.length?(n=typeof C=="function"?C:Rs(C),d):n},d.touchable=function(C){return arguments.length?(r=typeof C=="function"?C:Rs(!!C),d):r},d.on=function(){var C=i.on.apply(i,arguments);return C===i?d:C},d.clickDistance=function(C){return arguments.length?(f=(C=+C)*C,d):Math.sqrt(f)},d}function bd(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Mb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ns(){}var Ti=.7,Ra=1/Ti,xo="\\s*([+-]?\\d+)\\s*",Ni="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",bn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Dk=/^#([0-9a-f]{3,8})$/,Fk=new RegExp(`^rgb\\(${xo},${xo},${xo}\\)$`),jk=new RegExp(`^rgb\\(${bn},${bn},${bn}\\)$`),Lk=new RegExp(`^rgba\\(${xo},${xo},${xo},${Ni}\\)$`),Bk=new RegExp(`^rgba\\(${bn},${bn},${bn},${Ni}\\)$`),zk=new RegExp(`^hsl\\(${Ni},${bn},${bn}\\)$`),Vk=new RegExp(`^hsla\\(${Ni},${bn},${bn},${Ni}\\)$`),Lh={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};bd(ns,Pi,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Bh,formatHex:Bh,formatHex8:Gk,formatHsl:$k,formatRgb:zh,toString:zh});function Bh(){return this.rgb().formatHex()}function Gk(){return this.rgb().formatHex8()}function $k(){return Db(this).formatHsl()}function zh(){return this.rgb().formatRgb()}function Pi(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Dk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Vh(t):n===3?new bt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ts(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ts(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Fk.exec(e))?new bt(t[1],t[2],t[3],1):(t=jk.exec(e))?new bt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Lk.exec(e))?Ts(t[1],t[2],t[3],t[4]):(t=Bk.exec(e))?Ts(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zk.exec(e))?Hh(t[1],t[2]/100,t[3]/100,1):(t=Vk.exec(e))?Hh(t[1],t[2]/100,t[3]/100,t[4]):Lh.hasOwnProperty(e)?Vh(Lh[e]):e==="transparent"?new bt(NaN,NaN,NaN,0):null}function Vh(e){return new bt(e>>16&255,e>>8&255,e&255,1)}function Ts(e,t,n,r){return r<=0&&(e=t=n=NaN),new bt(e,t,n,r)}function Hk(e){return e instanceof ns||(e=Pi(e)),e?(e=e.rgb(),new bt(e.r,e.g,e.b,e.opacity)):new bt}function $u(e,t,n,r){return arguments.length===1?Hk(e):new bt(e,t,n,r??1)}function bt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bd(bt,$u,Mb(ns,{brighter(e){return e=e==null?Ra:Math.pow(Ra,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ti:Math.pow(Ti,e),new bt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new bt(Fr(this.r),Fr(this.g),Fr(this.b),Ta(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:Gh,formatHex:Gh,formatHex8:Wk,formatRgb:$h,toString:$h}));function Gh(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}`}function Wk(){return`#${Nr(this.r)}${Nr(this.g)}${Nr(this.b)}${Nr((isNaN(this.opacity)?1:this.opacity)*255)}`}function $h(){const e=Ta(this.opacity);return`${e===1?"rgb(":"rgba("}${Fr(this.r)}, ${Fr(this.g)}, ${Fr(this.b)}${e===1?")":`, ${e})`}`}function Ta(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Fr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nr(e){return e=Fr(e),(e<16?"0":"")+e.toString(16)}function Hh(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Jt(e,t,n,r)}function Db(e){if(e instanceof Jt)return new Jt(e.h,e.s,e.l,e.opacity);if(e instanceof ns||(e=Pi(e)),!e)return new Jt;if(e instanceof Jt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,a=i-o,l=(i+o)/2;return a?(t===i?s=(n-r)/a+(n<r)*6:n===i?s=(r-t)/a+2:s=(t-n)/a+4,a/=l<.5?i+o:2-i-o,s*=60):a=l>0&&l<1?0:s,new Jt(s,a,l,e.opacity)}function Xk(e,t,n,r){return arguments.length===1?Db(e):new Jt(e,t,n,r??1)}function Jt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bd(Jt,Xk,Mb(ns,{brighter(e){return e=e==null?Ra:Math.pow(Ra,e),new Jt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ti:Math.pow(Ti,e),new Jt(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new bt(Nc(e>=240?e-240:e+120,o,r),Nc(e,o,r),Nc(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Jt(Wh(this.h),Ns(this.s),Ns(this.l),Ta(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=Ta(this.opacity);return`${e===1?"hsl(":"hsla("}${Wh(this.h)}, ${Ns(this.s)*100}%, ${Ns(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Wh(e){return e=(e||0)%360,e<0?e+360:e}function Ns(e){return Math.max(0,Math.min(1,e||0))}function Nc(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Fb=e=>()=>e;function Yk(e,t){return function(n){return e+n*t}}function Uk(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Zk(e){return(e=+e)==1?jb:function(t,n){return n-t?Uk(t,n,e):Fb(isNaN(t)?n:t)}}function jb(e,t){var n=t-e;return n?Yk(e,n):Fb(isNaN(e)?t:e)}const Xh=function e(t){var n=Zk(t);function r(o,i){var s=n((o=$u(o)).r,(i=$u(i)).r),a=n(o.g,i.g),l=n(o.b,i.b),c=jb(o.opacity,i.opacity);return function(u){return o.r=s(u),o.g=a(u),o.b=l(u),o.opacity=c(u),o+""}}return r.gamma=e,r}(1);function rr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Hu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Pc=new RegExp(Hu.source,"g");function Jk(e){return function(){return e}}function qk(e){return function(t){return e(t)+""}}function Kk(e,t){var n=Hu.lastIndex=Pc.lastIndex=0,r,o,i,s=-1,a=[],l=[];for(e=e+"",t=t+"";(r=Hu.exec(e))&&(o=Pc.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),a[s]?a[s]+=i:a[++s]=i),(r=r[0])===(o=o[0])?a[s]?a[s]+=o:a[++s]=o:(a[++s]=null,l.push({i:s,x:rr(r,o)})),n=Pc.lastIndex;return n<t.length&&(i=t.slice(n),a[s]?a[s]+=i:a[++s]=i),a.length<2?l[0]?qk(l[0].x):Jk(t):(t=l.length,function(c){for(var u=0,f;u<t;++u)a[(f=l[u]).i]=f.x(c);return a.join("")})}var Yh=180/Math.PI,Wu={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Lb(e,t,n,r,o,i){var s,a,l;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,l/=a),e*r<t*n&&(e=-e,t=-t,l=-l,s=-s),{translateX:o,translateY:i,rotate:Math.atan2(t,e)*Yh,skewX:Math.atan(l)*Yh,scaleX:s,scaleY:a}}var Ps;function Qk(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Wu:Lb(t.a,t.b,t.c,t.d,t.e,t.f)}function eA(e){return e==null||(Ps||(Ps=document.createElementNS("http://www.w3.org/2000/svg","g")),Ps.setAttribute("transform",e),!(e=Ps.transform.baseVal.consolidate()))?Wu:(e=e.matrix,Lb(e.a,e.b,e.c,e.d,e.e,e.f))}function Bb(e,t,n,r){function o(c){return c.length?c.pop()+" ":""}function i(c,u,f,d,p,g){if(c!==f||u!==d){var h=p.push("translate(",null,t,null,n);g.push({i:h-4,x:rr(c,f)},{i:h-2,x:rr(u,d)})}else(f||d)&&p.push("translate("+f+t+d+n)}function s(c,u,f,d){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),d.push({i:f.push(o(f)+"rotate(",null,r)-2,x:rr(c,u)})):u&&f.push(o(f)+"rotate("+u+r)}function a(c,u,f,d){c!==u?d.push({i:f.push(o(f)+"skewX(",null,r)-2,x:rr(c,u)}):u&&f.push(o(f)+"skewX("+u+r)}function l(c,u,f,d,p,g){if(c!==f||u!==d){var h=p.push(o(p)+"scale(",null,",",null,")");g.push({i:h-4,x:rr(c,f)},{i:h-2,x:rr(u,d)})}else(f!==1||d!==1)&&p.push(o(p)+"scale("+f+","+d+")")}return function(c,u){var f=[],d=[];return c=e(c),u=e(u),i(c.translateX,c.translateY,u.translateX,u.translateY,f,d),s(c.rotate,u.rotate,f,d),a(c.skewX,u.skewX,f,d),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,f,d),c=u=null,function(p){for(var g=-1,h=d.length,y;++g<h;)f[(y=d[g]).i]=y.x(p);return f.join("")}}}var tA=Bb(Qk,"px, ","px)","deg)"),nA=Bb(eA,", ",")",")"),rA=1e-12;function Uh(e){return((e=Math.exp(e))+1/e)/2}function oA(e){return((e=Math.exp(e))-1/e)/2}function iA(e){return((e=Math.exp(2*e))-1)/(e+1)}const sA=function e(t,n,r){function o(i,s){var a=i[0],l=i[1],c=i[2],u=s[0],f=s[1],d=s[2],p=u-a,g=f-l,h=p*p+g*g,y,m;if(h<rA)m=Math.log(d/c)/t,y=function(I){return[a+I*p,l+I*g,c*Math.exp(t*I*m)]};else{var x=Math.sqrt(h),v=(d*d-c*c+r*h)/(2*c*n*x),C=(d*d-c*c-r*h)/(2*d*n*x),S=Math.log(Math.sqrt(v*v+1)-v),E=Math.log(Math.sqrt(C*C+1)-C);m=(E-S)/t,y=function(I){var P=I*m,M=Uh(S),w=c/(n*x)*(M*iA(t*P+S)-oA(S));return[a+w*p,l+w*g,c*M/Uh(t*P+S)]}}return y.duration=m*1e3*t/Math.SQRT2,y}return o.rho=function(i){var s=Math.max(.001,+i),a=s*s,l=a*a;return e(s,a,l)},o}(Math.SQRT2,2,4);var Ro=0,hi=0,oi=0,zb=1e3,Na,gi,Pa=0,Br=0,bl=0,Oi=typeof performance=="object"&&performance.now?performance:Date,Vb=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function vd(){return Br||(Vb(aA),Br=Oi.now()+bl)}function aA(){Br=0}function Oa(){this._call=this._time=this._next=null}Oa.prototype=Gb.prototype={constructor:Oa,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?vd():+n)+(t==null?0:+t),!this._next&&gi!==this&&(gi?gi._next=this:Na=this,gi=this),this._call=e,this._time=n,Xu()},stop:function(){this._call&&(this._call=null,this._time=1/0,Xu())}};function Gb(e,t,n){var r=new Oa;return r.restart(e,t,n),r}function lA(){vd(),++Ro;for(var e=Na,t;e;)(t=Br-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ro}function Zh(){Br=(Pa=Oi.now())+bl,Ro=hi=0;try{lA()}finally{Ro=0,uA(),Br=0}}function cA(){var e=Oi.now(),t=e-Pa;t>zb&&(bl-=t,Pa=e)}function uA(){for(var e,t=Na,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Na=n);gi=e,Xu(r)}function Xu(e){if(!Ro){hi&&(hi=clearTimeout(hi));var t=e-Br;t>24?(e<1/0&&(hi=setTimeout(Zh,e-Oi.now()-bl)),oi&&(oi=clearInterval(oi))):(oi||(Pa=Oi.now(),oi=setInterval(cA,zb)),Ro=1,Vb(Zh))}}function Jh(e,t,n){var r=new Oa;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}var fA=ml("start","end","cancel","interrupt"),dA=[],$b=0,qh=1,Yu=2,ca=3,Kh=4,Uu=5,ua=6;function vl(e,t,n,r,o,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;pA(e,n,{name:t,index:r,group:o,on:fA,tween:dA,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:$b})}function xd(e,t){var n=nn(e,t);if(n.state>$b)throw new Error("too late; already scheduled");return n}function Cn(e,t){var n=nn(e,t);if(n.state>ca)throw new Error("too late; already running");return n}function nn(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function pA(e,t,n){var r=e.__transition,o;r[t]=n,n.timer=Gb(i,0,n.time);function i(c){n.state=qh,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var u,f,d,p;if(n.state!==qh)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===ca)return Jh(s);p.state===Kh?(p.state=ua,p.timer.stop(),p.on.call("interrupt",e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=ua,p.timer.stop(),p.on.call("cancel",e,e.__data__,p.index,p.group),delete r[u])}if(Jh(function(){n.state===ca&&(n.state=Kh,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Yu,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Yu){for(n.state=ca,o=new Array(d=n.tween.length),u=0,f=-1;u<d;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(o[++f]=p);o.length=f+1}}function a(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Uu,1),f=-1,d=o.length;++f<d;)o[f].call(e,u);n.state===Uu&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=ua,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function fa(e,t){var n=e.__transition,r,o,i=!0,s;if(n){t=t==null?null:t+"";for(s in n){if((r=n[s]).name!==t){i=!1;continue}o=r.state>Yu&&r.state<Uu,r.state=ua,r.timer.stop(),r.on.call(o?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}i&&delete e.__transition}}function hA(e){return this.each(function(){fa(this,e)})}function gA(e,t){var n,r;return function(){var o=Cn(this,e),i=o.tween;if(i!==n){r=n=i;for(var s=0,a=r.length;s<a;++s)if(r[s].name===t){r=r.slice(),r.splice(s,1);break}}o.tween=r}}function mA(e,t,n){var r,o;if(typeof n!="function")throw new Error;return function(){var i=Cn(this,e),s=i.tween;if(s!==r){o=(r=s).slice();for(var a={name:t,value:n},l=0,c=o.length;l<c;++l)if(o[l].name===t){o[l]=a;break}l===c&&o.push(a)}i.tween=o}}function yA(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=nn(this.node(),n).tween,o=0,i=r.length,s;o<i;++o)if((s=r[o]).name===e)return s.value;return null}return this.each((t==null?gA:mA)(n,e,t))}function wd(e,t,n){var r=e._id;return e.each(function(){var o=Cn(this,r);(o.value||(o.value={}))[t]=n.apply(this,arguments)}),function(o){return nn(o,r).value[t]}}function Hb(e,t){var n;return(typeof t=="number"?rr:t instanceof Pi?Xh:(n=Pi(t))?(t=n,Xh):Kk)(e,t)}function bA(e){return function(){this.removeAttribute(e)}}function vA(e){return function(){this.removeAttributeNS(e.space,e.local)}}function xA(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttribute(e);return s===o?null:s===r?i:i=t(r=s,n)}}function wA(e,t,n){var r,o=n+"",i;return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===r?i:i=t(r=s,n)}}function CA(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(e):(s=this.getAttribute(e),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function _A(e,t,n){var r,o,i;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),l=a+"",s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a)))}}function SA(e,t){var n=yl(e),r=n==="transform"?nA:Hb;return this.attrTween(e,typeof t=="function"?(n.local?_A:CA)(n,r,wd(this,"attr."+e,t)):t==null?(n.local?vA:bA)(n):(n.local?wA:xA)(n,r,t))}function EA(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function IA(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function kA(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&IA(e,i)),n}return o._value=t,o}function AA(e,t){var n,r;function o(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&EA(e,i)),n}return o._value=t,o}function RA(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!="function")throw new Error;var r=yl(e);return this.tween(n,(r.local?kA:AA)(r,t))}function TA(e,t){return function(){xd(this,e).delay=+t.apply(this,arguments)}}function NA(e,t){return t=+t,function(){xd(this,e).delay=t}}function PA(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?TA:NA)(t,e)):nn(this.node(),t).delay}function OA(e,t){return function(){Cn(this,e).duration=+t.apply(this,arguments)}}function MA(e,t){return t=+t,function(){Cn(this,e).duration=t}}function DA(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?OA:MA)(t,e)):nn(this.node(),t).duration}function FA(e,t){if(typeof t!="function")throw new Error;return function(){Cn(this,e).ease=t}}function jA(e){var t=this._id;return arguments.length?this.each(FA(t,e)):nn(this.node(),t).ease}function LA(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Cn(this,e).ease=n}}function BA(e){if(typeof e!="function")throw new Error;return this.each(LA(this._id,e))}function zA(e){typeof e!="function"&&(e=wb(e));for(var t=this._groups,n=t.length,r=new Array(n),o=0;o<n;++o)for(var i=t[o],s=i.length,a=r[o]=[],l,c=0;c<s;++c)(l=i[c])&&e.call(l,l.__data__,c,i)&&a.push(l);return new Bn(r,this._parents,this._name,this._id)}function VA(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,o=n.length,i=Math.min(r,o),s=new Array(r),a=0;a<i;++a)for(var l=t[a],c=n[a],u=l.length,f=s[a]=new Array(u),d,p=0;p<u;++p)(d=l[p]||c[p])&&(f[p]=d);for(;a<r;++a)s[a]=t[a];return new Bn(s,this._parents,this._name,this._id)}function GA(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function $A(e,t,n){var r,o,i=GA(t)?xd:Cn;return function(){var s=i(this,e),a=s.on;a!==r&&(o=(r=a).copy()).on(t,n),s.on=o}}function HA(e,t){var n=this._id;return arguments.length<2?nn(this.node(),n).on.on(e):this.each($A(n,e,t))}function WA(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function XA(){return this.on("end.remove",WA(this._id))}function YA(e){var t=this._name,n=this._id;typeof e!="function"&&(e=md(e));for(var r=this._groups,o=r.length,i=new Array(o),s=0;s<o;++s)for(var a=r[s],l=a.length,c=i[s]=new Array(l),u,f,d=0;d<l;++d)(u=a[d])&&(f=e.call(u,u.__data__,d,a))&&("__data__"in u&&(f.__data__=u.__data__),c[d]=f,vl(c[d],t,n,d,c,nn(u,n)));return new Bn(i,this._parents,t,n)}function UA(e){var t=this._name,n=this._id;typeof e!="function"&&(e=xb(e));for(var r=this._groups,o=r.length,i=[],s=[],a=0;a<o;++a)for(var l=r[a],c=l.length,u,f=0;f<c;++f)if(u=l[f]){for(var d=e.call(u,u.__data__,f,l),p,g=nn(u,n),h=0,y=d.length;h<y;++h)(p=d[h])&&vl(p,t,n,h,d,g);i.push(d),s.push(u)}return new Bn(i,s,t,n)}var ZA=ts.prototype.constructor;function JA(){return new ZA(this._groups,this._parents)}function qA(e,t){var n,r,o;return function(){var i=Ao(this,e),s=(this.style.removeProperty(e),Ao(this,e));return i===s?null:i===n&&s===r?o:o=t(n=i,r=s)}}function Wb(e){return function(){this.style.removeProperty(e)}}function KA(e,t,n){var r,o=n+"",i;return function(){var s=Ao(this,e);return s===o?null:s===r?i:i=t(r=s,n)}}function QA(e,t,n){var r,o,i;return function(){var s=Ao(this,e),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(e),Ao(this,e))),s===l?null:s===r&&l===o?i:(o=l,i=t(r=s,a))}}function eR(e,t){var n,r,o,i="style."+t,s="end."+i,a;return function(){var l=Cn(this,e),c=l.on,u=l.value[i]==null?a||(a=Wb(t)):void 0;(c!==n||o!==u)&&(r=(n=c).copy()).on(s,o=u),l.on=r}}function tR(e,t,n){var r=(e+="")=="transform"?tA:Hb;return t==null?this.styleTween(e,qA(e,r)).on("end.style."+e,Wb(e)):typeof t=="function"?this.styleTween(e,QA(e,r,wd(this,"style."+e,t))).each(eR(this._id,e)):this.styleTween(e,KA(e,r,t),n).on("end.style."+e,null)}function nR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function rR(e,t,n){var r,o;function i(){var s=t.apply(this,arguments);return s!==o&&(r=(o=s)&&nR(e,s,n)),r}return i._value=t,i}function oR(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;return this.tween(r,rR(e,t,n??""))}function iR(e){return function(){this.textContent=e}}function sR(e){return function(){var t=e(this);this.textContent=t??""}}function aR(e){return this.tween("text",typeof e=="function"?sR(wd(this,"text",e)):iR(e==null?"":e+""))}function lR(e){return function(t){this.textContent=e.call(this,t)}}function cR(e){var t,n;function r(){var o=e.apply(this,arguments);return o!==n&&(t=(n=o)&&lR(o)),t}return r._value=e,r}function uR(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,cR(e))}function fR(){for(var e=this._name,t=this._id,n=Xb(),r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=nn(l,t);vl(l,e,n,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Bn(r,this._parents,e,n)}function dR(){var e,t,n=this,r=n._id,o=n.size();return new Promise(function(i,s){var a={value:s},l={value:function(){--o===0&&i()}};n.each(function(){var c=Cn(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(l)),c.on=t}),o===0&&i()})}var pR=0;function Bn(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Xb(){return++pR}var Rn=ts.prototype;Bn.prototype={constructor:Bn,select:YA,selectAll:UA,selectChild:Rn.selectChild,selectChildren:Rn.selectChildren,filter:zA,merge:VA,selection:JA,transition:fR,call:Rn.call,nodes:Rn.nodes,node:Rn.node,size:Rn.size,empty:Rn.empty,each:Rn.each,on:HA,attr:SA,attrTween:RA,style:tR,styleTween:oR,text:aR,textTween:uR,remove:XA,tween:yA,delay:PA,duration:DA,ease:jA,easeVarying:BA,end:dR,[Symbol.iterator]:Rn[Symbol.iterator]};function hR(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gR={time:null,delay:0,duration:250,ease:hR};function mR(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function yR(e){var t,n;e instanceof Bn?(t=e._id,e=e._name):(t=Xb(),(n=gR).time=vd(),e=e==null?null:e+"");for(var r=this._groups,o=r.length,i=0;i<o;++i)for(var s=r[i],a=s.length,l,c=0;c<a;++c)(l=s[c])&&vl(l,e,t,c,s,n||mR(l,t));return new Bn(r,this._parents,e,t)}ts.prototype.interrupt=hA;ts.prototype.transition=yR;const Os=e=>()=>e;function bR(e,{sourceEvent:t,target:n,transform:r,dispatch:o}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:o}})}function Mn(e,t,n){this.k=e,this.x=t,this.y=n}Mn.prototype={constructor:Mn,scale:function(e){return e===1?this:new Mn(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Mn(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var xl=new Mn(1,0,0);Yb.prototype=Mn.prototype;function Yb(e){for(;!e.__zoom;)if(!(e=e.parentNode))return xl;return e.__zoom}function Oc(e){e.stopImmediatePropagation()}function ii(e){e.preventDefault(),e.stopImmediatePropagation()}function vR(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function xR(){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 Qh(){return this.__zoom||xl}function wR(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function CR(){return navigator.maxTouchPoints||"ontouchstart"in this}function _R(e,t,n){var r=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],i=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function Ub(){var e=vR,t=xR,n=_R,r=wR,o=CR,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,l=sA,c=ml("start","zoom","end"),u,f,d,p=500,g=150,h=0,y=10;function m(A){A.property("__zoom",Qh).on("wheel.zoom",P,{passive:!1}).on("mousedown.zoom",M).on("dblclick.zoom",w).filter(o).on("touchstart.zoom",R).on("touchmove.zoom",O).on("touchend.zoom touchcancel.zoom",L).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}m.transform=function(A,j,D,z){var V=A.selection?A.selection():A;V.property("__zoom",Qh),A!==V?S(A,j,D,z):V.interrupt().each(function(){E(this,arguments).event(z).start().zoom(null,typeof j=="function"?j.apply(this,arguments):j).end()})},m.scaleBy=function(A,j,D,z){m.scaleTo(A,function(){var V=this.__zoom.k,F=typeof j=="function"?j.apply(this,arguments):j;return V*F},D,z)},m.scaleTo=function(A,j,D,z){m.transform(A,function(){var V=t.apply(this,arguments),F=this.__zoom,_=D==null?C(V):typeof D=="function"?D.apply(this,arguments):D,G=F.invert(_),$=typeof j=="function"?j.apply(this,arguments):j;return n(v(x(F,$),_,G),V,s)},D,z)},m.translateBy=function(A,j,D,z){m.transform(A,function(){return n(this.__zoom.translate(typeof j=="function"?j.apply(this,arguments):j,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),s)},null,z)},m.translateTo=function(A,j,D,z,V){m.transform(A,function(){var F=t.apply(this,arguments),_=this.__zoom,G=z==null?C(F):typeof z=="function"?z.apply(this,arguments):z;return n(xl.translate(G[0],G[1]).scale(_.k).translate(typeof j=="function"?-j.apply(this,arguments):-j,typeof D=="function"?-D.apply(this,arguments):-D),F,s)},z,V)};function x(A,j){return j=Math.max(i[0],Math.min(i[1],j)),j===A.k?A:new Mn(j,A.x,A.y)}function v(A,j,D){var z=j[0]-D[0]*A.k,V=j[1]-D[1]*A.k;return z===A.x&&V===A.y?A:new Mn(A.k,z,V)}function C(A){return[(+A[0][0]+ +A[1][0])/2,(+A[0][1]+ +A[1][1])/2]}function S(A,j,D,z){A.on("start.zoom",function(){E(this,arguments).event(z).start()}).on("interrupt.zoom end.zoom",function(){E(this,arguments).event(z).end()}).tween("zoom",function(){var V=this,F=arguments,_=E(V,F).event(z),G=t.apply(V,F),$=D==null?C(G):typeof D=="function"?D.apply(V,F):D,T=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),H=V.__zoom,J=typeof j=="function"?j.apply(V,F):j,W=l(H.invert($).concat(T/H.k),J.invert($).concat(T/J.k));return function(X){if(X===1)X=J;else{var U=W(X),Q=T/U[2];X=new Mn(Q,$[0]-U[0]*Q,$[1]-U[1]*Q)}_.zoom(null,X)}})}function E(A,j,D){return!D&&A.__zooming||new I(A,j)}function I(A,j){this.that=A,this.args=j,this.active=0,this.sourceEvent=null,this.extent=t.apply(A,j),this.taps=0}I.prototype={event:function(A){return A&&(this.sourceEvent=A),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(A,j){return this.mouse&&A!=="mouse"&&(this.mouse[1]=j.invert(this.mouse[0])),this.touch0&&A!=="touch"&&(this.touch0[1]=j.invert(this.touch0[0])),this.touch1&&A!=="touch"&&(this.touch1[1]=j.invert(this.touch1[0])),this.that.__zoom=j,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(A){var j=kt(this.that).datum();c.call(A,this.that,new bR(A,{sourceEvent:this.sourceEvent,target:m,transform:this.that.__zoom,dispatch:c}),j)}};function P(A,...j){if(!e.apply(this,arguments))return;var D=E(this,j).event(A),z=this.__zoom,V=Math.max(i[0],Math.min(i[1],z.k*Math.pow(2,r.apply(this,arguments)))),F=Ut(A);if(D.wheel)(D.mouse[0][0]!==F[0]||D.mouse[0][1]!==F[1])&&(D.mouse[1]=z.invert(D.mouse[0]=F)),clearTimeout(D.wheel);else{if(z.k===V)return;D.mouse=[F,z.invert(F)],fa(this),D.start()}ii(A),D.wheel=setTimeout(_,g),D.zoom("mouse",n(v(x(z,V),D.mouse[0],D.mouse[1]),D.extent,s));function _(){D.wheel=null,D.end()}}function M(A,...j){if(d||!e.apply(this,arguments))return;var D=A.currentTarget,z=E(this,j,!0).event(A),V=kt(A.view).on("mousemove.zoom",$,!0).on("mouseup.zoom",T,!0),F=Ut(A,D),_=A.clientX,G=A.clientY;Nb(A.view),Oc(A),z.mouse=[F,this.__zoom.invert(F)],fa(this),z.start();function $(H){if(ii(H),!z.moved){var J=H.clientX-_,W=H.clientY-G;z.moved=J*J+W*W>h}z.event(H).zoom("mouse",n(v(z.that.__zoom,z.mouse[0]=Ut(H,D),z.mouse[1]),z.extent,s))}function T(H){V.on("mousemove.zoom mouseup.zoom",null),Pb(H.view,z.moved),ii(H),z.event(H).end()}}function w(A,...j){if(e.apply(this,arguments)){var D=this.__zoom,z=Ut(A.changedTouches?A.changedTouches[0]:A,this),V=D.invert(z),F=D.k*(A.shiftKey?.5:2),_=n(v(x(D,F),z,V),t.apply(this,j),s);ii(A),a>0?kt(this).transition().duration(a).call(S,_,z,A):kt(this).call(m.transform,_,z,A)}}function R(A,...j){if(e.apply(this,arguments)){var D=A.touches,z=D.length,V=E(this,j,A.changedTouches.length===z).event(A),F,_,G,$;for(Oc(A),_=0;_<z;++_)G=D[_],$=Ut(G,this),$=[$,this.__zoom.invert($),G.identifier],V.touch0?!V.touch1&&V.touch0[2]!==$[2]&&(V.touch1=$,V.taps=0):(V.touch0=$,F=!0,V.taps=1+!!u);u&&(u=clearTimeout(u)),F&&(V.taps<2&&(f=$[0],u=setTimeout(function(){u=null},p)),fa(this),V.start())}}function O(A,...j){if(this.__zooming){var D=E(this,j).event(A),z=A.changedTouches,V=z.length,F,_,G,$;for(ii(A),F=0;F<V;++F)_=z[F],G=Ut(_,this),D.touch0&&D.touch0[2]===_.identifier?D.touch0[0]=G:D.touch1&&D.touch1[2]===_.identifier&&(D.touch1[0]=G);if(_=D.that.__zoom,D.touch1){var T=D.touch0[0],H=D.touch0[1],J=D.touch1[0],W=D.touch1[1],X=(X=J[0]-T[0])*X+(X=J[1]-T[1])*X,U=(U=W[0]-H[0])*U+(U=W[1]-H[1])*U;_=x(_,Math.sqrt(X/U)),G=[(T[0]+J[0])/2,(T[1]+J[1])/2],$=[(H[0]+W[0])/2,(H[1]+W[1])/2]}else if(D.touch0)G=D.touch0[0],$=D.touch0[1];else return;D.zoom("touch",n(v(_,G,$),D.extent,s))}}function L(A,...j){if(this.__zooming){var D=E(this,j).event(A),z=A.changedTouches,V=z.length,F,_;for(Oc(A),d&&clearTimeout(d),d=setTimeout(function(){d=null},p),F=0;F<V;++F)_=z[F],D.touch0&&D.touch0[2]===_.identifier?delete D.touch0:D.touch1&&D.touch1[2]===_.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(_=Ut(_,this),Math.hypot(f[0]-_[0],f[1]-_[1])<y)){var G=kt(this).on("dblclick.zoom");G&&G.apply(this,arguments)}}}return m.wheelDelta=function(A){return arguments.length?(r=typeof A=="function"?A:Os(+A),m):r},m.filter=function(A){return arguments.length?(e=typeof A=="function"?A:Os(!!A),m):e},m.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:Os(!!A),m):o},m.extent=function(A){return arguments.length?(t=typeof A=="function"?A:Os([[+A[0][0],+A[0][1]],[+A[1][0],+A[1][1]]]),m):t},m.scaleExtent=function(A){return arguments.length?(i[0]=+A[0],i[1]=+A[1],m):[i[0],i[1]]},m.translateExtent=function(A){return arguments.length?(s[0][0]=+A[0][0],s[1][0]=+A[1][0],s[0][1]=+A[0][1],s[1][1]=+A[1][1],m):[[s[0][0],s[0][1]],[s[1][0],s[1][1]]]},m.constrain=function(A){return arguments.length?(n=A,m):n},m.duration=function(A){return arguments.length?(a=+A,m):a},m.interpolate=function(A){return arguments.length?(l=A,m):l},m.on=function(){var A=c.on.apply(c,arguments);return A===c?m:A},m.clickDistance=function(A){return arguments.length?(h=(A=+A)*A,m):Math.sqrt(h)},m.tapDistance=function(A){return arguments.length?(y=+A,m):y},m}const Dt={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:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:r}", edge id: ${t}.`,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."},Mi=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Zb=["Enter"," ","Escape"];var To;(function(e){e.Strict="strict",e.Loose="loose"})(To||(To={}));var jr;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(jr||(jr={}));var Di;(function(e){e.Partial="partial",e.Full="full"})(Di||(Di={}));const Jb={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var or;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(or||(or={}));var Ma;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Ma||(Ma={}));var ae;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(ae||(ae={}));const eg={[ae.Left]:ae.Right,[ae.Right]:ae.Left,[ae.Top]:ae.Bottom,[ae.Bottom]:ae.Top};function qb(e){return e===null?null:e?"valid":"invalid"}const Kb=e=>"id"in e&&"source"in e&&"target"in e,SR=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Cd=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),rs=(e,t=[0,0])=>{const{width:n,height:r}=Wn(e),o=e.origin??t,i=n*o[0],s=r*o[1];return{x:e.position.x-i,y:e.position.y-s}},ER=(e,t={nodeOrigin:[0,0]})=>{if(process.env.NODE_ENV==="development"&&!t.nodeLookup&&console.warn("Please use `getNodesBounds` from `useReactFlow`/`useSvelteFlow` hook to ensure correct values for sub flows. If not possible, you have to provide a nodeLookup to support sub flows."),e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((r,o)=>{const i=typeof o=="string";let s=!t.nodeLookup&&!i?o:void 0;t.nodeLookup&&(s=i?t.nodeLookup.get(o):Cd(o)?o:t.nodeLookup.get(o.id));const a=s?Da(s,t.nodeOrigin):{x:0,y:0,x2:0,y2:0};return wl(r,a)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return Cl(n)},os=(e,t={})=>{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(r=>{if(t.filter===void 0||t.filter(r)){const o=Da(r);n=wl(n,o)}}),Cl(n)},Qb=(e,t,[n,r,o]=[0,0,1],i=!1,s=!1)=>{const a={...is(t,[n,r,o]),width:t.width/o,height:t.height/o},l=[];for(const c of e.values()){const{measured:u,selectable:f=!0,hidden:d=!1}=c;if(s&&!f||d)continue;const p=u.width??c.width??c.initialWidth??null,g=u.height??c.height??c.initialHeight??null,h=Fi(a,Po(c)),y=(p??0)*(g??0),m=i&&h>0;(!c.internals.handleBounds||m||h>=y||c.dragging)&&l.push(c)}return l},IR=(e,t)=>{const n=new Set;return e.forEach(r=>{n.add(r.id)}),t.filter(r=>n.has(r.source)||n.has(r.target))};function kR(e,t){const n=new Map,r=t!=null&&t.nodes?new Set(t.nodes.map(o=>o.id)):null;return e.forEach(o=>{o.measured.width&&o.measured.height&&((t==null?void 0:t.includeHiddenNodes)||!o.hidden)&&(!r||r.has(o.id))&&n.set(o.id,o)}),n}async function AR({nodes:e,width:t,height:n,panZoom:r,minZoom:o,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const a=kR(e,s),l=os(a),c=_d(l,t,n,(s==null?void 0:s.minZoom)??o,(s==null?void 0:s.maxZoom)??i,(s==null?void 0:s.padding)??.1);return await r.setViewport(c,{duration:s==null?void 0:s.duration}),Promise.resolve(!0)}function ev({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:o,onError:i}){const s=n.get(e),a=s.parentId?n.get(s.parentId):void 0,{x:l,y:c}=a?a.internals.positionAbsolute:{x:0,y:0},u=s.origin??r;let f=o;if(s.extent==="parent"&&!s.expandParent)if(!a)i==null||i("005",Dt.error005());else{const p=a.measured.width,g=a.measured.height;p&&g&&(f=[[l,c],[l+p,c+g]])}else a&&Oo(s.extent)&&(f=[[s.extent[0][0]+l,s.extent[0][1]+c],[s.extent[1][0]+l,s.extent[1][1]+c]]);const d=Oo(f)?zr(t,f,s.measured):t;return(s.measured.width===void 0||s.measured.height===void 0)&&(i==null||i("015",Dt.error015())),{position:{x:d.x-l+(s.measured.width??0)*u[0],y:d.y-c+(s.measured.height??0)*u[1]},positionAbsolute:d}}async function RR({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:o}){const i=new Set(e.map(d=>d.id)),s=[];for(const d of n){if(d.deletable===!1)continue;const p=i.has(d.id),g=!p&&d.parentId&&s.find(h=>h.id===d.parentId);(p||g)&&s.push(d)}const a=new Set(t.map(d=>d.id)),l=r.filter(d=>d.deletable!==!1),u=IR(s,l);for(const d of l)a.has(d.id)&&!u.find(g=>g.id===d.id)&&u.push(d);if(!o)return{edges:u,nodes:s};const f=await o({nodes:s,edges:u});return typeof f=="boolean"?f?{edges:u,nodes:s}:{edges:[],nodes:[]}:f}const No=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),zr=(e={x:0,y:0},t,n)=>({x:No(e.x,t[0][0],t[1][0]-((n==null?void 0:n.width)??0)),y:No(e.y,t[0][1],t[1][1]-((n==null?void 0:n.height)??0))});function tv(e,t,n){const{width:r,height:o}=Wn(n),{x:i,y:s}=n.internals.positionAbsolute;return zr(e,[[i,s],[i+r,s+o]],t)}const tg=(e,t,n)=>e<t?No(Math.abs(e-t),1,t)/t:e>n?-No(Math.abs(e-n),1,t)/t:0,nv=(e,t,n=15,r=40)=>{const o=tg(e.x,r,t.width-r)*n,i=tg(e.y,r,t.height-r)*n;return[o,i]},wl=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),Zu=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),Cl=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),Po=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Cd(e)?e.internals.positionAbsolute:rs(e,t);return{x:n,y:r,width:((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0,height:((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0}},Da=(e,t=[0,0])=>{var o,i;const{x:n,y:r}=Cd(e)?e.internals.positionAbsolute:rs(e,t);return{x:n,y:r,x2:n+(((o=e.measured)==null?void 0:o.width)??e.width??e.initialWidth??0),y2:r+(((i=e.measured)==null?void 0:i.height)??e.height??e.initialHeight??0)}},rv=(e,t)=>Cl(wl(Zu(e),Zu(t))),Fi=(e,t)=>{const n=Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x)),r=Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y));return Math.ceil(n*r)},ng=e=>Kt(e.width)&&Kt(e.height)&&Kt(e.x)&&Kt(e.y),Kt=e=>!isNaN(e)&&isFinite(e),ov=(e,t)=>{process.env.NODE_ENV==="development"&&console.warn(`[React Flow]: ${t} Help: https://reactflow.dev/error#${e}`)},_l=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),is=({x:e,y:t},[n,r,o],i=!1,s=[1,1])=>{const a={x:(e-n)/o,y:(t-r)/o};return i?_l(a,s):a},Fa=({x:e,y:t},[n,r,o])=>({x:e*o+n,y:t*o+r});function Qr(e,t){if(typeof e=="number")return Math.floor(t-t/(1+e));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(t*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 TR(e,t,n){if(typeof e=="string"||typeof e=="number"){const r=Qr(e,n),o=Qr(e,t);return{top:r,right:o,bottom:r,left:o,x:o*2,y:r*2}}if(typeof e=="object"){const r=Qr(e.top??e.y??0,n),o=Qr(e.bottom??e.y??0,n),i=Qr(e.left??e.x??0,t),s=Qr(e.right??e.x??0,t);return{top:r,right:s,bottom:o,left:i,x:i+s,y:r+o}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function NR(e,t,n,r,o,i){const{x:s,y:a}=Fa(e,[t,n,r]),{x:l,y:c}=Fa({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=o-l,f=i-c;return{left:Math.floor(s),top:Math.floor(a),right:Math.floor(u),bottom:Math.floor(f)}}const _d=(e,t,n,r,o,i)=>{const s=TR(i,t,n),a=(t-s.x)/e.width,l=(n-s.y)/e.height,c=Math.min(a,l),u=No(c,r,o),f=e.x+e.width/2,d=e.y+e.height/2,p=t/2-f*u,g=n/2-d*u,h=NR(e,p,g,u,t,n),y={left:Math.min(h.left-s.left,0),top:Math.min(h.top-s.top,0),right:Math.min(h.right-s.right,0),bottom:Math.min(h.bottom-s.bottom,0)};return{x:p-y.left+y.right,y:g-y.top+y.bottom,zoom:u}},ja=()=>{var e;return typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)==null?void 0:e.indexOf("Mac"))>=0};function Oo(e){return e!==void 0&&e!=="parent"}function Wn(e){var t,n;return{width:((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth??0,height:((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight??0}}function iv(e){var t,n;return(((t=e.measured)==null?void 0:t.width)??e.width??e.initialWidth)!==void 0&&(((n=e.measured)==null?void 0:n.height)??e.height??e.initialHeight)!==void 0}function sv(e,t={width:0,height:0},n,r,o){const i={...e},s=r.get(n);if(s){const a=s.origin||o;i.x+=s.internals.positionAbsolute.x-(t.width??0)*a[0],i.y+=s.internals.positionAbsolute.y-(t.height??0)*a[1]}return i}function rg(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function wi(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:o}){const{x:i,y:s}=Dn(e),a=is({x:i-((o==null?void 0:o.left)??0),y:s-((o==null?void 0:o.top)??0)},r),{x:l,y:c}=n?_l(a,t):a;return{xSnapped:l,ySnapped:c,...a}}const Sd=e=>({width:e.offsetWidth,height:e.offsetHeight}),av=e=>{var t;return((t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e))||(window==null?void 0:window.document)},PR=["INPUT","SELECT","TEXTAREA"];function lv(e){var r,o;const t=((o=(r=e.composedPath)==null?void 0:r.call(e))==null?void 0:o[0])||e.target;return(t==null?void 0:t.nodeType)!==1?!1:PR.includes(t.nodeName)||t.hasAttribute("contenteditable")||!!t.closest(".nokey")}const cv=e=>"clientX"in e,Dn=(e,t)=>{var i,s;const n=cv(e),r=n?e.clientX:(i=e.touches)==null?void 0:i[0].clientX,o=n?e.clientY:(s=e.touches)==null?void 0:s[0].clientY;return{x:r-((t==null?void 0:t.left)??0),y:o-((t==null?void 0:t.top)??0)}},og=(e,t,n,r,o)=>{const i=t.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const a=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:o,position:s.getAttribute("data-handlepos"),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...Sd(s)}})};function uv({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:o,sourceControlY:i,targetControlX:s,targetControlY:a}){const l=e*.125+o*.375+s*.375+n*.125,c=t*.125+i*.375+a*.375+r*.125,u=Math.abs(l-e),f=Math.abs(c-t);return[l,c,u,f]}function Ms(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function ig({pos:e,x1:t,y1:n,x2:r,y2:o,c:i}){switch(e){case ae.Left:return[t-Ms(t-r,i),n];case ae.Right:return[t+Ms(r-t,i),n];case ae.Top:return[t,n-Ms(n-o,i)];case ae.Bottom:return[t,n+Ms(o-n,i)]}}function Ed({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top,curvature:s=.25}){const[a,l]=ig({pos:n,x1:e,y1:t,x2:r,y2:o,c:s}),[c,u]=ig({pos:i,x1:r,y1:o,x2:e,y2:t,c:s}),[f,d,p,g]=uv({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:a,sourceControlY:l,targetControlX:c,targetControlY:u});return[`M${e},${t} C${a},${l} ${c},${u} ${r},${o}`,f,d,p,g]}function fv({sourceX:e,sourceY:t,targetX:n,targetY:r}){const o=Math.abs(n-e)/2,i=n<e?n+o:n-o,s=Math.abs(r-t)/2,a=r<t?r+s:r-s;return[i,a,o,s]}function OR({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:o=!1}){if(!o)return r;const i=n||t.selected||e.selected,s=Math.max(e.internals.z||0,t.internals.z||0,1e3);return r+(i?s:0)}function MR({sourceNode:e,targetNode:t,width:n,height:r,transform:o}){const i=wl(Da(e),Da(t));i.x===i.x2&&(i.x2+=1),i.y===i.y2&&(i.y2+=1);const s={x:-o[0]/o[2],y:-o[1]/o[2],width:n/o[2],height:r/o[2]};return Fi(s,Cl(i))>0}const DR=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||""}-${n}${r||""}`,FR=(e,t)=>t.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)),jR=(e,t)=>{if(!e.source||!e.target)return ov("006",Dt.error006()),t;let n;return Kb(e)?n={...e}:n={...e,id:DR(e)},FR(n,t)?t:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,t.concat(n))};function dv({sourceX:e,sourceY:t,targetX:n,targetY:r}){const[o,i,s,a]=fv({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,o,i,s,a]}const sg={[ae.Left]:{x:-1,y:0},[ae.Right]:{x:1,y:0},[ae.Top]:{x:0,y:-1},[ae.Bottom]:{x:0,y:1}},LR=({source:e,sourcePosition:t=ae.Bottom,target:n})=>t===ae.Left||t===ae.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},ag=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function BR({source:e,sourcePosition:t=ae.Bottom,target:n,targetPosition:r=ae.Top,center:o,offset:i}){const s=sg[t],a=sg[r],l={x:e.x+s.x*i,y:e.y+s.y*i},c={x:n.x+a.x*i,y:n.y+a.y*i},u=LR({source:l,sourcePosition:t,target:c}),f=u.x!==0?"x":"y",d=u[f];let p=[],g,h;const y={x:0,y:0},m={x:0,y:0},[x,v,C,S]=fv({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*a[f]===-1){g=o.x??x,h=o.y??v;const I=[{x:g,y:l.y},{x:g,y:c.y}],P=[{x:l.x,y:h},{x:c.x,y:h}];s[f]===d?p=f==="x"?I:P:p=f==="x"?P:I}else{const I=[{x:l.x,y:c.y}],P=[{x:c.x,y:l.y}];if(f==="x"?p=s.x===d?P:I:p=s.y===d?I:P,t===r){const L=Math.abs(e[f]-n[f]);if(L<=i){const A=Math.min(i-1,i-L);s[f]===d?y[f]=(l[f]>e[f]?-1:1)*A:m[f]=(c[f]>n[f]?-1:1)*A}}if(t!==r){const L=f==="x"?"y":"x",A=s[f]===a[L],j=l[L]>c[L],D=l[L]<c[L];(s[f]===1&&(!A&&j||A&&D)||s[f]!==1&&(!A&&D||A&&j))&&(p=f==="x"?I:P)}const M={x:l.x+y.x,y:l.y+y.y},w={x:c.x+m.x,y:c.y+m.y},R=Math.max(Math.abs(M.x-p[0].x),Math.abs(w.x-p[0].x)),O=Math.max(Math.abs(M.y-p[0].y),Math.abs(w.y-p[0].y));R>=O?(g=(M.x+w.x)/2,h=p[0].y):(g=p[0].x,h=(M.y+w.y)/2)}return[[e,{x:l.x+y.x,y:l.y+y.y},...p,{x:c.x+m.x,y:c.y+m.y},n],g,h,C,S]}function zR(e,t,n,r){const o=Math.min(ag(e,t)/2,ag(t,n)/2,r),{x:i,y:s}=t;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const c=e.x<n.x?-1:1,u=e.y<n.y?1:-1;return`L ${i+o*c},${s}Q ${i},${s} ${i},${s+o*u}`}const a=e.x<n.x?1:-1,l=e.y<n.y?-1:1;return`L ${i},${s+o*l}Q ${i},${s} ${i+o*a},${s}`}function Ju({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top,borderRadius:s=5,centerX:a,centerY:l,offset:c=20}){const[u,f,d,p,g]=BR({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:o},targetPosition:i,center:{x:a,y:l},offset:c});return[u.reduce((y,m,x)=>{let v="";return x>0&&x<u.length-1?v=zR(u[x-1],m,u[x+1],s):v=`${x===0?"M":"L"}${m.x} ${m.y}`,y+=v,y},""),f,d,p,g]}function lg(e){var t;return e&&!!(e.internals.handleBounds||(t=e.handles)!=null&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function VR(e){var f;const{sourceNode:t,targetNode:n}=e;if(!lg(t)||!lg(n))return null;const r=t.internals.handleBounds||cg(t.handles),o=n.internals.handleBounds||cg(n.handles),i=ug((r==null?void 0:r.source)??[],e.sourceHandle),s=ug(e.connectionMode===To.Strict?(o==null?void 0:o.target)??[]:((o==null?void 0:o.target)??[]).concat((o==null?void 0:o.source)??[]),e.targetHandle);if(!i||!s)return(f=e.onError)==null||f.call(e,"008",Dt.error008(i?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;const a=(i==null?void 0:i.position)||ae.Bottom,l=(s==null?void 0:s.position)||ae.Top,c=ji(t,i,a),u=ji(n,s,l);return{sourceX:c.x,sourceY:c.y,targetX:u.x,targetY:u.y,sourcePosition:a,targetPosition:l}}function cg(e){if(!e)return null;const t=[],n=[];for(const r of e)r.width=r.width??1,r.height=r.height??1,r.type==="source"?t.push(r):r.type==="target"&&n.push(r);return{source:t,target:n}}function ji(e,t,n=ae.Left,r=!1){const o=((t==null?void 0:t.x)??0)+e.internals.positionAbsolute.x,i=((t==null?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:a}=t??Wn(e);if(r)return{x:o+s/2,y:i+a/2};switch((t==null?void 0:t.position)??n){case ae.Top:return{x:o+s/2,y:i};case ae.Right:return{x:o+s,y:i+a/2};case ae.Bottom:return{x:o+s/2,y:i+a};case ae.Left:return{x:o,y:i+a/2}}}function ug(e,t){return e&&(t?e.find(n=>n.id===t):e[0])||null}function qu(e,t){return e?typeof e=="string"?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(r=>`${r}=${e[r]}`).join("&")}`:""}function GR(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:o}){const i=new Set;return e.reduce((s,a)=>([a.markerStart||r,a.markerEnd||o].forEach(l=>{if(l&&typeof l=="object"){const c=qu(l,t);i.has(c)||(s.push({id:c,color:l.color||n,...l}),i.add(c))}}),s),[]).sort((s,a)=>s.id.localeCompare(a.id))}const Id={nodeOrigin:[0,0],nodeExtent:Mi,elevateNodesOnSelect:!0,defaults:{}},$R={...Id,checkEquality:!0};function kd(e,t){const n={...e};for(const r in t)t[r]!==void 0&&(n[r]=t[r]);return n}function HR(e,t,n){const r=kd(Id,n);for(const o of e.values())if(o.parentId)Ad(o,e,t,r);else{const i=rs(o,r.nodeOrigin),s=Oo(o.extent)?o.extent:r.nodeExtent,a=zr(i,s,Wn(o));o.internals.positionAbsolute=a}}function Ku(e,t,n,r){var l,c;const o=kd($R,r);let i=!0;const s=new Map(t),a=o!=null&&o.elevateNodesOnSelect?1e3:0;t.clear(),n.clear();for(const u of e){let f=s.get(u.id);if(o.checkEquality&&u===(f==null?void 0:f.internals.userNode))t.set(u.id,f);else{const d=rs(u,o.nodeOrigin),p=Oo(u.extent)?u.extent:o.nodeExtent,g=zr(d,p,Wn(u));f={...o.defaults,...u,measured:{width:(l=u.measured)==null?void 0:l.width,height:(c=u.measured)==null?void 0:c.height},internals:{positionAbsolute:g,handleBounds:u.measured?f==null?void 0:f.internals.handleBounds:void 0,z:pv(u,a),userNode:u}},t.set(u.id,f)}(!f.measured||!f.measured.width||!f.measured.height)&&!f.hidden&&(i=!1),u.parentId&&Ad(f,t,n,r)}return i}function WR(e,t){if(!e.parentId)return;const n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function Ad(e,t,n,r){const{elevateNodesOnSelect:o,nodeOrigin:i,nodeExtent:s}=kd(Id,r),a=e.parentId,l=t.get(a);if(!l){console.warn(`Parent node ${a} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}WR(e,n);const c=o?1e3:0,{x:u,y:f,z:d}=XR(e,l,i,s,c),{positionAbsolute:p}=e.internals,g=u!==p.x||f!==p.y;(g||d!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:u,y:f}:p,z:d}})}function pv(e,t){return(Kt(e.zIndex)?e.zIndex:0)+(e.selected?t:0)}function XR(e,t,n,r,o){const{x:i,y:s}=t.internals.positionAbsolute,a=Wn(e),l=rs(e,n),c=Oo(e.extent)?zr(l,e.extent,a):l;let u=zr({x:i+c.x,y:s+c.y},r,a);e.extent==="parent"&&(u=tv(u,a,t));const f=pv(e,o),d=t.internals.z??0;return{x:u.x,y:u.y,z:d>f?d:f}}function Rd(e,t,n,r=[0,0]){var s;const o=[],i=new Map;for(const a of e){const l=t.get(a.parentId);if(!l)continue;const c=((s=i.get(a.parentId))==null?void 0:s.expandedRect)??Po(l),u=rv(c,a.rect);i.set(a.parentId,{expandedRect:u,parent:l})}return i.size>0&&i.forEach(({expandedRect:a,parent:l},c)=>{var v;const u=l.internals.positionAbsolute,f=Wn(l),d=l.origin??r,p=a.x<u.x?Math.round(Math.abs(u.x-a.x)):0,g=a.y<u.y?Math.round(Math.abs(u.y-a.y)):0,h=Math.max(f.width,Math.round(a.width)),y=Math.max(f.height,Math.round(a.height)),m=(h-f.width)*d[0],x=(y-f.height)*d[1];(p>0||g>0||m||x)&&(o.push({id:c,type:"position",position:{x:l.position.x-p+m,y:l.position.y-g+x}}),(v=n.get(c))==null||v.forEach(C=>{e.some(S=>S.id===C.id)||o.push({id:C.id,type:"position",position:{x:C.position.x+p,y:C.position.y+g}})})),(f.width<a.width||f.height<a.height||p||g)&&o.push({id:c,type:"dimensions",setAttributes:!0,dimensions:{width:h+(p?d[0]*p-m:0),height:y+(g?d[1]*g-x:0)}})}),o}function YR(e,t,n,r,o,i){const s=r==null?void 0:r.querySelector(".xyflow__viewport");let a=!1;if(!s)return{changes:[],updatedInternals:a};const l=[],c=window.getComputedStyle(s),{m22:u}=new window.DOMMatrixReadOnly(c.transform),f=[];for(const d of e.values()){const p=t.get(d.id);if(!p)continue;if(p.hidden){t.set(p.id,{...p,internals:{...p.internals,handleBounds:void 0}}),a=!0;continue}const g=Sd(d.nodeElement),h=p.measured.width!==g.width||p.measured.height!==g.height;if(!!(g.width&&g.height&&(h||!p.internals.handleBounds||d.force))){const m=d.nodeElement.getBoundingClientRect(),x=Oo(p.extent)?p.extent:i;let{positionAbsolute:v}=p.internals;p.parentId&&p.extent==="parent"?v=tv(v,g,t.get(p.parentId)):x&&(v=zr(v,x,g));const C={...p,measured:g,internals:{...p.internals,positionAbsolute:v,handleBounds:{source:og("source",d.nodeElement,m,u,p.id),target:og("target",d.nodeElement,m,u,p.id)}}};t.set(p.id,C),p.parentId&&Ad(C,t,n,{nodeOrigin:o}),a=!0,h&&(l.push({id:p.id,type:"dimensions",dimensions:g}),p.expandParent&&p.parentId&&f.push({id:p.id,parentId:p.parentId,rect:Po(C,o)}))}}if(f.length>0){const d=Rd(f,t,n,o);l.push(...d)}return{changes:l,updatedInternals:a}}async function UR({delta:e,panZoom:t,transform:n,translateExtent:r,width:o,height:i}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);const s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[o,i]],r),a=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(a)}function fg(e,t,n,r,o,i){let s=o;const a=r.get(s)||new Map;r.set(s,a.set(n,t)),s=`${o}-${e}`;const l=r.get(s)||new Map;if(r.set(s,l.set(n,t)),i){s=`${o}-${e}-${i}`;const c=r.get(s)||new Map;r.set(s,c.set(n,t))}}function hv(e,t,n){e.clear(),t.clear();for(const r of n){const{source:o,target:i,sourceHandle:s=null,targetHandle:a=null}=r,l={edgeId:r.id,source:o,target:i,sourceHandle:s,targetHandle:a},c=`${o}-${s}--${i}-${a}`,u=`${i}-${a}--${o}-${s}`;fg("source",l,u,e,o,s),fg("target",l,c,e,i,a),t.set(r.id,r)}}function gv(e,t){if(!e.parentId)return!1;const n=t.get(e.parentId);return n?n.selected?!0:gv(n,t):!1}function dg(e,t,n){var o;let r=e;do{if((o=r==null?void 0:r.matches)!=null&&o.call(r,t))return!0;if(r===n)return!1;r=r==null?void 0:r.parentElement}while(r);return!1}function ZR(e,t,n,r){const o=new Map;for(const[i,s]of e)if((s.selected||s.id===r)&&(!s.parentId||!gv(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){const a=e.get(i);a&&o.set(i,{id:i,position:a.position||{x:0,y:0},distance:{x:n.x-a.internals.positionAbsolute.x,y:n.y-a.internals.positionAbsolute.y},extent:a.extent,parentId:a.parentId,origin:a.origin,expandParent:a.expandParent,internals:{positionAbsolute:a.internals.positionAbsolute||{x:0,y:0}},measured:{width:a.measured.width??0,height:a.measured.height??0}})}return o}function Mc({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){var s,a,l;const o=[];for(const[c,u]of t){const f=(s=n.get(c))==null?void 0:s.internals.userNode;f&&o.push({...f,position:u.position,dragging:r})}if(!e)return[o[0],o];const i=(a=n.get(e))==null?void 0:a.internals.userNode;return[i?{...i,position:((l=t.get(e))==null?void 0:l.position)||i.position,dragging:r}:o[0],o]}function JR({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:o}){let i={x:null,y:null},s=0,a=new Map,l=!1,c={x:0,y:0},u=null,f=!1,d=null,p=!1;function g({noDragClassName:y,handleSelector:m,domNode:x,isSelectable:v,nodeId:C,nodeClickDistance:S=0}){d=kt(x);function E({x:w,y:R},O){const{nodeLookup:L,nodeExtent:A,snapGrid:j,snapToGrid:D,nodeOrigin:z,onNodeDrag:V,onSelectionDrag:F,onError:_,updateNodePositions:G}=t();i={x:w,y:R};let $=!1,T={x:0,y:0,x2:0,y2:0};if(a.size>1&&A){const H=os(a);T=Zu(H)}for(const[H,J]of a){if(!L.has(H))continue;let W={x:w-J.distance.x,y:R-J.distance.y};D&&(W=_l(W,j));let X=[[A[0][0],A[0][1]],[A[1][0],A[1][1]]];if(a.size>1&&A&&!J.extent){const{positionAbsolute:ne}=J.internals,oe=ne.x-T.x+A[0][0],Z=ne.x+J.measured.width-T.x2+A[1][0],ue=ne.y-T.y+A[0][1],fe=ne.y+J.measured.height-T.y2+A[1][1];X=[[oe,ue],[Z,fe]]}const{position:U,positionAbsolute:Q}=ev({nodeId:H,nextPosition:W,nodeLookup:L,nodeExtent:X,nodeOrigin:z,onError:_});$=$||J.position.x!==U.x||J.position.y!==U.y,J.position=U,J.internals.positionAbsolute=Q}if($&&(G(a,!0),O&&(r||V||!C&&F))){const[H,J]=Mc({nodeId:C,dragItems:a,nodeLookup:L});r==null||r(O,a,H,J),V==null||V(O,H,J),C||F==null||F(O,J)}}async function I(){if(!u)return;const{transform:w,panBy:R,autoPanSpeed:O,autoPanOnNodeDrag:L}=t();if(!L){l=!1,cancelAnimationFrame(s);return}const[A,j]=nv(c,u,O);(A!==0||j!==0)&&(i.x=(i.x??0)-A/w[2],i.y=(i.y??0)-j/w[2],await R({x:A,y:j})&&E(i,null)),s=requestAnimationFrame(I)}function P(w){var $;const{nodeLookup:R,multiSelectionActive:O,nodesDraggable:L,transform:A,snapGrid:j,snapToGrid:D,selectNodesOnDrag:z,onNodeDragStart:V,onSelectionDragStart:F,unselectNodesAndEdges:_}=t();f=!0,(!z||!v)&&!O&&C&&(($=R.get(C))!=null&&$.selected||_()),v&&z&&C&&(e==null||e(C));const G=wi(w.sourceEvent,{transform:A,snapGrid:j,snapToGrid:D,containerBounds:u});if(i=G,a=ZR(R,L,G,C),a.size>0&&(n||V||!C&&F)){const[T,H]=Mc({nodeId:C,dragItems:a,nodeLookup:R});n==null||n(w.sourceEvent,a,T,H),V==null||V(w.sourceEvent,T,H),C||F==null||F(w.sourceEvent,H)}}const M=Ob().clickDistance(S).on("start",w=>{const{domNode:R,nodeDragThreshold:O,transform:L,snapGrid:A,snapToGrid:j}=t();u=(R==null?void 0:R.getBoundingClientRect())||null,p=!1,O===0&&P(w),i=wi(w.sourceEvent,{transform:L,snapGrid:A,snapToGrid:j,containerBounds:u}),c=Dn(w.sourceEvent,u)}).on("drag",w=>{const{autoPanOnNodeDrag:R,transform:O,snapGrid:L,snapToGrid:A,nodeDragThreshold:j,nodeLookup:D}=t(),z=wi(w.sourceEvent,{transform:O,snapGrid:L,snapToGrid:A,containerBounds:u});if((w.sourceEvent.type==="touchmove"&&w.sourceEvent.touches.length>1||C&&!D.has(C))&&(p=!0),!p){if(!l&&R&&f&&(l=!0,I()),!f){const V=z.xSnapped-(i.x??0),F=z.ySnapped-(i.y??0);Math.sqrt(V*V+F*F)>j&&P(w)}(i.x!==z.xSnapped||i.y!==z.ySnapped)&&a&&f&&(c=Dn(w.sourceEvent,u),E(z,w.sourceEvent))}}).on("end",w=>{if(!(!f||p)&&(l=!1,f=!1,cancelAnimationFrame(s),a.size>0)){const{nodeLookup:R,updateNodePositions:O,onNodeDragStop:L,onSelectionDragStop:A}=t();if(O(a,!1),o||L||!C&&A){const[j,D]=Mc({nodeId:C,dragItems:a,nodeLookup:R,dragging:!1});o==null||o(w.sourceEvent,a,j,D),L==null||L(w.sourceEvent,j,D),C||A==null||A(w.sourceEvent,D)}}}).filter(w=>{const R=w.target;return!w.button&&(!y||!dg(R,`.${y}`,x))&&(!m||dg(R,m,x))});d.call(M)}function h(){d==null||d.on(".drag",null)}return{update:g,destroy:h}}function qR(e,t,n){const r=[],o={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of t.values())Fi(o,Po(i))>0&&r.push(i);return r}const KR=250;function QR(e,t,n,r){var a,l;let o=[],i=1/0;const s=qR(e,n,t+KR);for(const c of s){const u=[...((a=c.internals.handleBounds)==null?void 0:a.source)??[],...((l=c.internals.handleBounds)==null?void 0:l.target)??[]];for(const f of u){if(r.nodeId===f.nodeId&&r.type===f.type&&r.id===f.id)continue;const{x:d,y:p}=ji(c,f,f.position,!0),g=Math.sqrt(Math.pow(d-e.x,2)+Math.pow(p-e.y,2));g>t||(g<i?(o=[{...f,x:d,y:p}],i=g):g===i&&o.push({...f,x:d,y:p}))}}if(!o.length)return null;if(o.length>1){const c=r.type==="source"?"target":"source";return o.find(u=>u.type===c)??o[0]}return o[0]}function mv(e,t,n,r,o,i=!1){var c,u,f;const s=r.get(e);if(!s)return null;const a=o==="strict"?(c=s.internals.handleBounds)==null?void 0:c[t]:[...((u=s.internals.handleBounds)==null?void 0:u.source)??[],...((f=s.internals.handleBounds)==null?void 0:f.target)??[]],l=(n?a==null?void 0:a.find(d=>d.id===n):a==null?void 0:a[0])??null;return l&&i?{...l,...ji(s,l,l.position,!0)}:l}function yv(e,t){return e||(t!=null&&t.classList.contains("target")?"target":t!=null&&t.classList.contains("source")?"source":null)}function eT(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}const bv=()=>!0;function tT(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:o,edgeUpdaterType:i,isTarget:s,domNode:a,nodeLookup:l,lib:c,autoPanOnConnect:u,flowId:f,panBy:d,cancelConnection:p,onConnectStart:g,onConnect:h,onConnectEnd:y,isValidConnection:m=bv,onReconnectEnd:x,updateConnection:v,getTransform:C,getFromHandle:S,autoPanSpeed:E}){const I=av(e.target);let P=0,M;const{x:w,y:R}=Dn(e),O=I==null?void 0:I.elementFromPoint(w,R),L=yv(i,O),A=a==null?void 0:a.getBoundingClientRect();if(!A||!L)return;const j=mv(o,L,r,l,t);if(!j)return;let D=Dn(e,A),z=!1,V=null,F=!1,_=null;function G(){if(!u||!A)return;const[Q,ne]=nv(D,A,E);d({x:Q,y:ne}),P=requestAnimationFrame(G)}const $={...j,nodeId:o,type:L,position:j.position},T=l.get(o),J={inProgress:!0,isValid:null,from:ji(T,$,ae.Left,!0),fromHandle:$,fromPosition:$.position,fromNode:T,to:D,toHandle:null,toPosition:eg[$.position],toNode:null};v(J);let W=J;g==null||g(e,{nodeId:o,handleId:r,handleType:L});function X(Q){if(!S()||!$){U(Q);return}const ne=C();D=Dn(Q,A),M=QR(is(D,ne,!1,[1,1]),n,l,$),z||(G(),z=!0);const oe=vv(Q,{handle:M,connectionMode:t,fromNodeId:o,fromHandleId:r,fromType:s?"target":"source",isValidConnection:m,doc:I,lib:c,flowId:f,nodeLookup:l});_=oe.handleDomNode,V=oe.connection,F=eT(!!M,oe.isValid);const Z={...W,isValid:F,to:M&&F?Fa({x:M.x,y:M.y},ne):D,toHandle:oe.toHandle,toPosition:F&&oe.toHandle?oe.toHandle.position:eg[$.position],toNode:oe.toHandle?l.get(oe.toHandle.nodeId):null};F&&M&&W.toHandle&&Z.toHandle&&W.toHandle.type===Z.toHandle.type&&W.toHandle.nodeId===Z.toHandle.nodeId&&W.toHandle.id===Z.toHandle.id&&W.to.x===Z.to.x&&W.to.y===Z.to.y||(v(Z),W=Z)}function U(Q){(M||_)&&V&&F&&(h==null||h(V));const{inProgress:ne,...oe}=W,Z={...oe,toPosition:W.toHandle?W.toPosition:null};y==null||y(Q,Z),i&&(x==null||x(Q,Z)),p(),cancelAnimationFrame(P),z=!1,F=!1,V=null,_=null,I.removeEventListener("mousemove",X),I.removeEventListener("mouseup",U),I.removeEventListener("touchmove",X),I.removeEventListener("touchend",U)}I.addEventListener("mousemove",X),I.addEventListener("mouseup",U),I.addEventListener("touchmove",X),I.addEventListener("touchend",U)}function vv(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:o,fromType:i,doc:s,lib:a,flowId:l,isValidConnection:c=bv,nodeLookup:u}){const f=i==="target",d=t?s.querySelector(`.${a}-flow__handle[data-id="${l}-${t==null?void 0:t.nodeId}-${t==null?void 0:t.id}-${t==null?void 0:t.type}"]`):null,{x:p,y:g}=Dn(e),h=s.elementFromPoint(p,g),y=h!=null&&h.classList.contains(`${a}-flow__handle`)?h:d,m={handleDomNode:y,isValid:!1,connection:null,toHandle:null};if(y){const x=yv(void 0,y),v=y.getAttribute("data-nodeid"),C=y.getAttribute("data-handleid"),S=y.classList.contains("connectable"),E=y.classList.contains("connectableend");if(!v||!x)return m;const I={source:f?v:r,sourceHandle:f?C:o,target:f?r:v,targetHandle:f?o:C};m.connection=I;const M=S&&E&&(n===To.Strict?f&&x==="source"||!f&&x==="target":v!==r||C!==o);m.isValid=M&&c(I),m.toHandle=mv(v,x,C,u,n,!1)}return m}const Qu={onPointerDown:tT,isValid:vv};function nT({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){const o=kt(e);function i({translateExtent:a,width:l,height:c,zoomStep:u=10,pannable:f=!0,zoomable:d=!0,inversePan:p=!1}){const g=v=>{const C=n();if(v.sourceEvent.type!=="wheel"||!t)return;const S=-v.sourceEvent.deltaY*(v.sourceEvent.deltaMode===1?.05:v.sourceEvent.deltaMode?1:.002)*u,E=C[2]*Math.pow(2,S);t.scaleTo(E)};let h=[0,0];const y=v=>{(v.sourceEvent.type==="mousedown"||v.sourceEvent.type==="touchstart")&&(h=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY])},m=v=>{const C=n();if(v.sourceEvent.type!=="mousemove"&&v.sourceEvent.type!=="touchmove"||!t)return;const S=[v.sourceEvent.clientX??v.sourceEvent.touches[0].clientX,v.sourceEvent.clientY??v.sourceEvent.touches[0].clientY],E=[S[0]-h[0],S[1]-h[1]];h=S;const I=r()*Math.max(C[2],Math.log(C[2]))*(p?-1:1),P={x:C[0]-E[0]*I,y:C[1]-E[1]*I},M=[[0,0],[l,c]];t.setViewportConstrained({x:P.x,y:P.y,zoom:C[2]},M,a)},x=Ub().on("start",y).on("zoom",f?m:null).on("zoom.wheel",d?g:null);o.call(x,{})}function s(){o.on("zoom",null)}return{update:i,destroy:s,pointer:Ut}}const rT=(e,t)=>e.x!==t.x||e.y!==t.y||e.zoom!==t.k,Sl=e=>({x:e.x,y:e.y,zoom:e.k}),Dc=({x:e,y:t,zoom:n})=>xl.translate(e,t).scale(n),go=(e,t)=>e.target.closest(`.${t}`),xv=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),Fc=(e,t=0,n=()=>{})=>{const r=typeof t=="number"&&t>0;return r||n(),r?e.transition().duration(t).on("end",n):e},wv=e=>{const t=e.ctrlKey&&ja()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function oT({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:o,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:a,onPanZoom:l,onPanZoomEnd:c}){return u=>{if(go(u,t))return!1;u.preventDefault(),u.stopImmediatePropagation();const f=n.property("__zoom").k||1;if(u.ctrlKey&&s){const y=Ut(u),m=wv(u),x=f*Math.pow(2,m);r.scaleTo(n,x,y,u);return}const d=u.deltaMode===1?20:1;let p=o===jr.Vertical?0:u.deltaX*d,g=o===jr.Horizontal?0:u.deltaY*d;!ja()&&u.shiftKey&&o!==jr.Vertical&&(p=u.deltaY*d,g=0),r.translateBy(n,-(p/f)*i,-(g/f)*i,{internal:!0});const h=Sl(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling||(e.isPanScrolling=!0,a==null||a(u,h)),e.isPanScrolling&&(l==null||l(u,h),e.panScrollTimeout=setTimeout(()=>{c==null||c(u,h),e.isPanScrolling=!1},150))}}function iT({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,o){const i=r.type==="wheel",s=!t&&i&&!r.ctrlKey,a=go(r,e);if(r.ctrlKey&&i&&a&&r.preventDefault(),s||a)return null;r.preventDefault(),n.call(this,r,o)}}function sT({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{var i,s,a;if((i=r.sourceEvent)!=null&&i.internal)return;const o=Sl(r.transform);e.mouseButton=((s=r.sourceEvent)==null?void 0:s.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=o,((a=r.sourceEvent)==null?void 0:a.type)==="mousedown"&&t(!0),n&&(n==null||n(r.sourceEvent,o))}}function aT({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:o}){return i=>{var s,a;e.usedRightMouseButton=!!(n&&xv(t,e.mouseButton??0)),(s=i.sourceEvent)!=null&&s.sync||r([i.transform.x,i.transform.y,i.transform.k]),o&&!((a=i.sourceEvent)!=null&&a.internal)&&(o==null||o(i.sourceEvent,Sl(i.transform)))}}function lT({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:o,onPaneContextMenu:i}){return s=>{var a;if(!((a=s.sourceEvent)!=null&&a.internal)&&(e.isZoomingOrPanning=!1,i&&xv(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,r(!1),o&&rT(e.prevViewport,s.transform))){const l=Sl(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{o==null||o(s.sourceEvent,l)},n?150:0)}}}function cT({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:r,panOnScroll:o,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:a,noPanClassName:l,lib:c}){return u=>{var g;const f=e||t,d=n&&u.ctrlKey;if(u.button===1&&u.type==="mousedown"&&(go(u,`${c}-flow__node`)||go(u,`${c}-flow__edge`)))return!0;if(!r&&!f&&!o&&!i&&!n||s||go(u,a)&&u.type==="wheel"||go(u,l)&&(u.type!=="wheel"||o&&u.type==="wheel"&&!e)||!n&&u.ctrlKey&&u.type==="wheel")return!1;if(!n&&u.type==="touchstart"&&((g=u.touches)==null?void 0:g.length)>1)return u.preventDefault(),!1;if(!f&&!o&&!d&&u.type==="wheel"||!r&&(u.type==="mousedown"||u.type==="touchstart")||Array.isArray(r)&&!r.includes(u.button)&&u.type==="mousedown")return!1;const p=Array.isArray(r)&&r.includes(u.button)||!u.button||u.button<=1;return(!u.ctrlKey||u.type==="wheel")&&p}}function uT({domNode:e,minZoom:t,maxZoom:n,paneClickDistance:r,translateExtent:o,viewport:i,onPanZoom:s,onPanZoomStart:a,onPanZoomEnd:l,onDraggingChange:c}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{x:0,y:0,zoom:0},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},f=e.getBoundingClientRect(),d=Ub().clickDistance(!Kt(r)||r<0?0:r).scaleExtent([t,n]).translateExtent(o),p=kt(e).call(d);v({x:i.x,y:i.y,zoom:No(i.zoom,t,n)},[[0,0],[f.width,f.height]],o);const g=p.on("wheel.zoom"),h=p.on("dblclick.zoom");d.wheelDelta(wv);function y(O,L){return p?new Promise(A=>{d==null||d.transform(Fc(p,L==null?void 0:L.duration,()=>A(!0)),O)}):Promise.resolve(!1)}function m({noWheelClassName:O,noPanClassName:L,onPaneContextMenu:A,userSelectionActive:j,panOnScroll:D,panOnDrag:z,panOnScrollMode:V,panOnScrollSpeed:F,preventScrolling:_,zoomOnPinch:G,zoomOnScroll:$,zoomOnDoubleClick:T,zoomActivationKeyPressed:H,lib:J,onTransformChange:W}){j&&!u.isZoomingOrPanning&&x();const U=D&&!H&&!j?oT({zoomPanValues:u,noWheelClassName:O,d3Selection:p,d3Zoom:d,panOnScrollMode:V,panOnScrollSpeed:F,zoomOnPinch:G,onPanZoomStart:a,onPanZoom:s,onPanZoomEnd:l}):iT({noWheelClassName:O,preventScrolling:_,d3ZoomHandler:g});if(p.on("wheel.zoom",U,{passive:!1}),!j){const ne=sT({zoomPanValues:u,onDraggingChange:c,onPanZoomStart:a});d.on("start",ne);const oe=aT({zoomPanValues:u,panOnDrag:z,onPaneContextMenu:!!A,onPanZoom:s,onTransformChange:W});d.on("zoom",oe);const Z=lT({zoomPanValues:u,panOnDrag:z,panOnScroll:D,onPaneContextMenu:A,onPanZoomEnd:l,onDraggingChange:c});d.on("end",Z)}const Q=cT({zoomActivationKeyPressed:H,panOnDrag:z,zoomOnScroll:$,panOnScroll:D,zoomOnDoubleClick:T,zoomOnPinch:G,userSelectionActive:j,noPanClassName:L,noWheelClassName:O,lib:J});d.filter(Q),T?p.on("dblclick.zoom",h):p.on("dblclick.zoom",null)}function x(){d.on("zoom",null)}async function v(O,L,A){const j=Dc(O),D=d==null?void 0:d.constrain()(j,L,A);return D&&await y(D),new Promise(z=>z(D))}async function C(O,L){const A=Dc(O);return await y(A,L),new Promise(j=>j(A))}function S(O){if(p){const L=Dc(O),A=p.property("__zoom");(A.k!==O.zoom||A.x!==O.x||A.y!==O.y)&&(d==null||d.transform(p,L,null,{sync:!0}))}}function E(){const O=p?Yb(p.node()):{x:0,y:0,k:1};return{x:O.x,y:O.y,zoom:O.k}}function I(O,L){return p?new Promise(A=>{d==null||d.scaleTo(Fc(p,L==null?void 0:L.duration,()=>A(!0)),O)}):Promise.resolve(!1)}function P(O,L){return p?new Promise(A=>{d==null||d.scaleBy(Fc(p,L==null?void 0:L.duration,()=>A(!0)),O)}):Promise.resolve(!1)}function M(O){d==null||d.scaleExtent(O)}function w(O){d==null||d.translateExtent(O)}function R(O){const L=!Kt(O)||O<0?0:O;d==null||d.clickDistance(L)}return{update:m,destroy:x,setViewport:C,setViewportConstrained:v,getViewport:E,scaleTo:I,scaleBy:P,setScaleExtent:M,setTranslateExtent:w,syncViewport:S,setClickDistance:R}}var Ci;(function(e){e.Line="line",e.Handle="handle"})(Ci||(Ci={}));function fT({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:o,affectsY:i}){const s=e-t,a=n-r,l=[s>0?1:s<0?-1:0,a>0?1:a<0?-1:0];return s&&o&&(l[0]=l[0]*-1),a&&i&&(l[1]=l[1]*-1),l}function dT(e){const t=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),r=e.includes("left"),o=e.includes("top");return{isHorizontal:t,isVertical:n,affectsX:r,affectsY:o}}function Kn(e,t){return Math.max(0,t-e)}function Qn(e,t){return Math.max(0,e-t)}function Ds(e,t,n){return Math.max(0,t-e,e-n)}function pg(e,t){return e?!t:t}function pT(e,t,n,r,o,i,s,a){let{affectsX:l,affectsY:c}=t;const{isHorizontal:u,isVertical:f}=t,d=u&&f,{xSnapped:p,ySnapped:g}=n,{minWidth:h,maxWidth:y,minHeight:m,maxHeight:x}=r,{x:v,y:C,width:S,height:E,aspectRatio:I}=e;let P=Math.floor(u?p-e.pointerX:0),M=Math.floor(f?g-e.pointerY:0);const w=S+(l?-P:P),R=E+(c?-M:M),O=-i[0]*S,L=-i[1]*E;let A=Ds(w,h,y),j=Ds(R,m,x);if(s){let V=0,F=0;l&&P<0?V=Kn(v+P+O,s[0][0]):!l&&P>0&&(V=Qn(v+w+O,s[1][0])),c&&M<0?F=Kn(C+M+L,s[0][1]):!c&&M>0&&(F=Qn(C+R+L,s[1][1])),A=Math.max(A,V),j=Math.max(j,F)}if(a){let V=0,F=0;l&&P>0?V=Qn(v+P,a[0][0]):!l&&P<0&&(V=Kn(v+w,a[1][0])),c&&M>0?F=Qn(C+M,a[0][1]):!c&&M<0&&(F=Kn(C+R,a[1][1])),A=Math.max(A,V),j=Math.max(j,F)}if(o){if(u){const V=Ds(w/I,m,x)*I;if(A=Math.max(A,V),s){let F=0;!l&&!c||l&&!c&&d?F=Qn(C+L+w/I,s[1][1])*I:F=Kn(C+L+(l?P:-P)/I,s[0][1])*I,A=Math.max(A,F)}if(a){let F=0;!l&&!c||l&&!c&&d?F=Kn(C+w/I,a[1][1])*I:F=Qn(C+(l?P:-P)/I,a[0][1])*I,A=Math.max(A,F)}}if(f){const V=Ds(R*I,h,y)/I;if(j=Math.max(j,V),s){let F=0;!l&&!c||c&&!l&&d?F=Qn(v+R*I+O,s[1][0])/I:F=Kn(v+(c?M:-M)*I+O,s[0][0])/I,j=Math.max(j,F)}if(a){let F=0;!l&&!c||c&&!l&&d?F=Kn(v+R*I,a[1][0])/I:F=Qn(v+(c?M:-M)*I,a[0][0])/I,j=Math.max(j,F)}}}M=M+(M<0?j:-j),P=P+(P<0?A:-A),o&&(d?w>R*I?M=(pg(l,c)?-P:P)/I:P=(pg(l,c)?-M:M)*I:u?(M=P/I,c=l):(P=M*I,l=c));const D=l?v+P:v,z=c?C+M:C;return{width:S+(l?-P:P),height:E+(c?-M:M),x:i[0]*P*(l?-1:1)+D,y:i[1]*M*(c?-1:1)+z}}const Cv={width:0,height:0,x:0,y:0},hT={...Cv,pointerX:0,pointerY:0,aspectRatio:1};function gT(e){return[[0,0],[e.measured.width,e.measured.height]]}function mT(e,t,n){const r=t.position.x+e.position.x,o=t.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,a=n[0]*i,l=n[1]*s;return[[r-a,o-l],[r+i-a,o+s-l]]}function yT({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:o}){const i=kt(e);function s({controlPosition:l,boundaries:c,keepAspectRatio:u,onResizeStart:f,onResize:d,onResizeEnd:p,shouldResize:g}){let h={...Cv},y={...hT};const m=dT(l);let x,v=null,C=[],S,E,I;const P=Ob().on("start",M=>{const{nodeLookup:w,transform:R,snapGrid:O,snapToGrid:L,nodeOrigin:A,paneDomNode:j}=n();if(x=w.get(t),!x)return;v=(j==null?void 0:j.getBoundingClientRect())??null;const{xSnapped:D,ySnapped:z}=wi(M.sourceEvent,{transform:R,snapGrid:O,snapToGrid:L,containerBounds:v});h={width:x.measured.width??0,height:x.measured.height??0,x:x.position.x??0,y:x.position.y??0},y={...h,pointerX:D,pointerY:z,aspectRatio:h.width/h.height},S=void 0,x.parentId&&(x.extent==="parent"||x.expandParent)&&(S=w.get(x.parentId),E=S&&x.extent==="parent"?gT(S):void 0),C=[],I=void 0;for(const[V,F]of w)if(F.parentId===t&&(C.push({id:V,position:{...F.position},extent:F.extent}),F.extent==="parent"||F.expandParent)){const _=mT(F,x,F.origin??A);I?I=[[Math.min(_[0][0],I[0][0]),Math.min(_[0][1],I[0][1])],[Math.max(_[1][0],I[1][0]),Math.max(_[1][1],I[1][1])]]:I=_}f==null||f(M,{...h})}).on("drag",M=>{const{transform:w,snapGrid:R,snapToGrid:O,nodeOrigin:L}=n(),A=wi(M.sourceEvent,{transform:w,snapGrid:R,snapToGrid:O,containerBounds:v}),j=[];if(!x)return;const{x:D,y:z,width:V,height:F}=h,_={},G=x.origin??L,{width:$,height:T,x:H,y:J}=pT(y,m,A,c,u,G,E,I),W=$!==V,X=T!==F,U=H!==D&&W,Q=J!==z&&X;if(!U&&!Q&&!W&&!X)return;if((U||Q||G[0]===1||G[1]===1)&&(_.x=U?H:h.x,_.y=Q?J:h.y,h.x=_.x,h.y=_.y,C.length>0)){const ue=H-D,fe=J-z;for(const Se of C)Se.position={x:Se.position.x-ue+G[0]*($-V),y:Se.position.y-fe+G[1]*(T-F)},j.push(Se)}if((W||X)&&(_.width=W?$:h.width,_.height=X?T:h.height,h.width=_.width,h.height=_.height),S&&x.expandParent){const ue=G[0]*(_.width??0);_.x&&_.x<ue&&(h.x=ue,y.x=y.x-(_.x-ue));const fe=G[1]*(_.height??0);_.y&&_.y<fe&&(h.y=fe,y.y=y.y-(_.y-fe))}const ne=fT({width:h.width,prevWidth:V,height:h.height,prevHeight:F,affectsX:m.affectsX,affectsY:m.affectsY}),oe={...h,direction:ne};(g==null?void 0:g(M,oe))!==!1&&(d==null||d(M,oe),r(_,j))}).on("end",M=>{p==null||p(M,{...h}),o==null||o({...h})});i.call(P)}function a(){i.on(".drag",null)}return{update:s,destroy:a}}const{useDebugValue:bT}=N,{useSyncExternalStoreWithSelector:vT}=gb,xT=e=>e;function _v(e,t=xT,n){const r=vT(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return bT(r),r}const hg=(e,t)=>{const n=pb(e),r=(o,i=t)=>_v(n,o,i);return Object.assign(r,n),r},wT=(e,t)=>e?hg(e,t):hg;function ze(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const El=N.createContext(null),CT=El.Provider,Sv=Dt.error001();function Ce(e,t){const n=N.useContext(El);if(n===null)throw new Error(Sv);return _v(n,e,t)}function Ge(){const e=N.useContext(El);if(e===null)throw new Error(Sv);return N.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const gg={display:"none"},_T={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Ev="react-flow__node-desc",Iv="react-flow__edge-desc",ST="react-flow__aria-live",ET=e=>e.ariaLiveMessage;function IT({rfId:e}){const t=Ce(ET);return b.jsx("div",{id:`${ST}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:_T,children:t})}function kT({rfId:e,disableKeyboardA11y:t}){return b.jsxs(b.Fragment,{children:[b.jsxs("div",{id:`${Ev}-${e}`,style:gg,children:["Press enter or space to select a node.",!t&&"You can then use the arrow keys to move the node around."," Press delete to remove it and escape to cancel."," "]}),b.jsx("div",{id:`${Iv}-${e}`,style:gg,children:"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel."}),!t&&b.jsx(IT,{rfId:e})]})}const AT=e=>e.userSelectionActive?"none":"all",Il=N.forwardRef(({position:e="top-left",children:t,className:n,style:r,...o},i)=>{const s=Ce(AT),a=`${e}`.split("-");return b.jsx("div",{className:et(["react-flow__panel",n,...a]),style:{...r,pointerEvents:s},ref:i,...o,children:t})});Il.displayName="Panel";function RT({proOptions:e,position:t="bottom-right"}){return e!=null&&e.hideAttribution?null:b.jsx(Il,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:b.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const TT=e=>{const t=[],n=[];for(const[,r]of e.nodeLookup)r.selected&&t.push(r.internals.userNode);for(const[,r]of e.edgeLookup)r.selected&&n.push(r);return{selectedNodes:t,selectedEdges:n}},Fs=e=>e.id;function NT(e,t){return ze(e.selectedNodes.map(Fs),t.selectedNodes.map(Fs))&&ze(e.selectedEdges.map(Fs),t.selectedEdges.map(Fs))}function PT({onSelectionChange:e}){const t=Ge(),{selectedNodes:n,selectedEdges:r}=Ce(TT,NT);return N.useEffect(()=>{const o={nodes:n,edges:r};e==null||e(o),t.getState().onSelectionChangeHandlers.forEach(i=>i(o))},[n,r,e]),null}const OT=e=>!!e.onSelectionChangeHandlers;function MT({onSelectionChange:e}){const t=Ce(OT);return e||t?b.jsx(PT,{onSelectionChange:e}):null}const kv=[0,0],DT={x:0,y:0,zoom:1},FT=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","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","onBeforeDelete","debug","autoPanSpeed","paneClickDistance"],mg=[...FT,"rfId"],jT=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}),yg={translateExtent:Mi,nodeOrigin:kv,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function LT(e){const{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:o,setTranslateExtent:i,setNodeExtent:s,reset:a,setDefaultNodesAndEdges:l,setPaneClickDistance:c}=Ce(jT,ze),u=Ge();N.useEffect(()=>(l(e.defaultNodes,e.defaultEdges),()=>{f.current=yg,a()}),[]);const f=N.useRef(yg);return N.useEffect(()=>{for(const d of mg){const p=e[d],g=f.current[d];p!==g&&(typeof e[d]>"u"||(d==="nodes"?t(p):d==="edges"?n(p):d==="minZoom"?r(p):d==="maxZoom"?o(p):d==="translateExtent"?i(p):d==="nodeExtent"?s(p):d==="paneClickDistance"?c(p):d==="fitView"?u.setState({fitViewQueued:p}):d==="fitViewOptions"?u.setState({fitViewOptions:p}):u.setState({[d]:p})))}f.current=e},mg.map(d=>e[d])),null}function bg(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function BT(e){var r;const[t,n]=N.useState(e==="system"?null:e);return N.useEffect(()=>{if(e!=="system"){n(e);return}const o=bg(),i=()=>n(o!=null&&o.matches?"dark":"light");return i(),o==null||o.addEventListener("change",i),()=>{o==null||o.removeEventListener("change",i)}},[e]),t!==null?t:(r=bg())!=null&&r.matches?"dark":"light"}const vg=typeof document<"u"?document:null;function Mo(e=null,t={target:vg,actInsideInputWithModifier:!0}){const[n,r]=N.useState(!1),o=N.useRef(!1),i=N.useRef(new Set([])),[s,a]=N.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(f=>typeof f=="string").map(f=>f.replace("+",`
|
|
55
|
+
`).replace(`
|
|
56
|
+
|
|
57
|
+
`,`
|
|
58
|
+
+`).split(`
|
|
59
|
+
`)),u=c.reduce((f,d)=>f.concat(...d),[]);return[c,u]}return[[],[]]},[e]);return N.useEffect(()=>{const l=(t==null?void 0:t.target)||vg;if(e!==null){const c=d=>{var h,y;if(o.current=d.ctrlKey||d.metaKey||d.shiftKey||d.altKey,(!o.current||o.current&&!t.actInsideInputWithModifier)&&lv(d))return!1;const g=wg(d.code,a);if(i.current.add(d[g]),xg(s,i.current,!1)){const m=((y=(h=d.composedPath)==null?void 0:h.call(d))==null?void 0:y[0])||d.target,x=(m==null?void 0:m.nodeName)==="BUTTON"||(m==null?void 0:m.nodeName)==="A";t.preventDefault!==!1&&(o.current||!x)&&d.preventDefault(),r(!0)}},u=d=>{const p=wg(d.code,a);xg(s,i.current,!0)?(r(!1),i.current.clear()):i.current.delete(d[p]),d.key==="Meta"&&i.current.clear(),o.current=!1},f=()=>{i.current.clear(),r(!1)};return l==null||l.addEventListener("keydown",c),l==null||l.addEventListener("keyup",u),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{l==null||l.removeEventListener("keydown",c),l==null||l.removeEventListener("keyup",u),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,r]),n}function xg(e,t,n){return e.filter(r=>n||r.length===t.size).some(r=>r.every(o=>t.has(o)))}function wg(e,t){return t.includes(e)?"code":"key"}const zT=()=>{const e=Ge();return N.useMemo(()=>({zoomIn:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:t==null?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{const{panZoom:r}=e.getState();return r?r.scaleTo(t,{duration:n==null?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{const{transform:[r,o,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??r,y:t.y??o,zoom:t.zoom??i},{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>{const{width:o,height:i,maxZoom:s,panZoom:a}=e.getState(),l=typeof(r==null?void 0:r.zoom)<"u"?r.zoom:s,c=o/2-t*l,u=i/2-n*l;return a?(await a.setViewport({x:c,y:u,zoom:l},{duration:r==null?void 0:r.duration}),Promise.resolve(!0)):Promise.resolve(!1)},fitBounds:async(t,n)=>{const{width:r,height:o,minZoom:i,maxZoom:s,panZoom:a}=e.getState(),l=_d(t,r,o,i,s,(n==null?void 0:n.padding)??.1);return a?(await a.setViewport(l,{duration:n==null?void 0:n.duration}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{const{transform:r,snapGrid:o,snapToGrid:i,domNode:s}=e.getState();if(!s)return t;const{x:a,y:l}=s.getBoundingClientRect(),c={x:t.x-a,y:t.y-l},u=n.snapGrid??o,f=n.snapToGrid??i;return is(c,r,f,u)},flowToScreenPosition:t=>{const{transform:n,domNode:r}=e.getState();if(!r)return t;const{x:o,y:i}=r.getBoundingClientRect(),s=Fa(t,n);return{x:s.x+o,y:s.y+i}}}),[])};function Av(e,t){const n=[],r=new Map,o=[];for(const i of e)if(i.type==="add"){o.push(i);continue}else if(i.type==="remove"||i.type==="replace")r.set(i.id,[i]);else{const s=r.get(i.id);s?s.push(i):r.set(i.id,[i])}for(const i of t){const s=r.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const a={...i};for(const l of s)VT(l,a);n.push(a)}return o.length&&o.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function VT(e,t){switch(e.type){case"select":{t.selected=e.selected;break}case"position":{typeof e.position<"u"&&(t.position=e.position),typeof e.dragging<"u"&&(t.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(t.measured??(t.measured={}),t.measured.width=e.dimensions.width,t.measured.height=e.dimensions.height,e.setAttributes&&(t.width=e.dimensions.width,t.height=e.dimensions.height)),typeof e.resizing=="boolean"&&(t.resizing=e.resizing);break}}}function Rv(e,t){return Av(e,t)}function Tv(e,t){return Av(e,t)}function Ar(e,t){return{id:e,type:"select",selected:t}}function mo(e,t=new Set,n=!1){const r=[];for(const[o,i]of e){const s=t.has(o);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),r.push(Ar(i.id,s)))}return r}function Cg({items:e=[],lookup:t}){var o;const n=[],r=new Map(e.map(i=>[i.id,i]));for(const[i,s]of e.entries()){const a=t.get(s.id),l=((o=a==null?void 0:a.internals)==null?void 0:o.userNode)??a;l!==void 0&&l!==s&&n.push({id:s.id,item:s,type:"replace"}),l===void 0&&n.push({item:s,type:"add",index:i})}for(const[i]of t)r.get(i)===void 0&&n.push({id:i,type:"remove"});return n}function _g(e){return{id:e.id,type:"remove"}}const Sg=e=>SR(e),GT=e=>Kb(e);function Nv(e){return N.forwardRef(e)}const $T=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Eg(e){const[t,n]=N.useState(BigInt(0)),[r]=N.useState(()=>HT(()=>n(o=>o+BigInt(1))));return $T(()=>{const o=r.get();o.length&&(e(o),r.reset())},[t]),r}function HT(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}const Pv=N.createContext(null);function WT({children:e}){const t=Ge(),n=N.useCallback(a=>{const{nodes:l=[],setNodes:c,hasDefaultNodes:u,onNodesChange:f,nodeLookup:d,fitViewQueued:p}=t.getState();let g=l;for(const h of a)g=typeof h=="function"?h(g):h;if(u)c(g);else{const h=Cg({items:g,lookup:d});h.length>0?f==null||f(h):p&&window.requestAnimationFrame(()=>{const{fitViewQueued:y,nodes:m,setNodes:x}=t.getState();y&&x(m)})}},[]),r=Eg(n),o=N.useCallback(a=>{const{edges:l=[],setEdges:c,hasDefaultEdges:u,onEdgesChange:f,edgeLookup:d}=t.getState();let p=l;for(const g of a)p=typeof g=="function"?g(p):g;u?c(p):f&&f(Cg({items:p,lookup:d}))},[]),i=Eg(o),s=N.useMemo(()=>({nodeQueue:r,edgeQueue:i}),[]);return b.jsx(Pv.Provider,{value:s,children:e})}function XT(){const e=N.useContext(Pv);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const YT=e=>!!e.panZoom;function ss(){const e=zT(),t=Ge(),n=XT(),r=Ce(YT),o=N.useMemo(()=>{const i=f=>t.getState().nodeLookup.get(f),s=f=>{n.nodeQueue.push(f)},a=f=>{n.edgeQueue.push(f)},l=f=>{var m,x;const{nodeLookup:d,nodeOrigin:p}=t.getState(),g=Sg(f)?f:d.get(f.id),h=g.parentId?sv(g.position,g.measured,g.parentId,d,p):g.position,y={...g,position:h,width:((m=g.measured)==null?void 0:m.width)??g.width,height:((x=g.measured)==null?void 0:x.height)??g.height};return Po(y)},c=(f,d,p={replace:!1})=>{s(g=>g.map(h=>{if(h.id===f){const y=typeof d=="function"?d(h):d;return p.replace&&Sg(y)?y:{...h,...y}}return h}))},u=(f,d,p={replace:!1})=>{a(g=>g.map(h=>{if(h.id===f){const y=typeof d=="function"?d(h):d;return p.replace&>(y)?y:{...h,...y}}return h}))};return{getNodes:()=>t.getState().nodes.map(f=>({...f})),getNode:f=>{var d;return(d=i(f))==null?void 0:d.internals.userNode},getInternalNode:i,getEdges:()=>{const{edges:f=[]}=t.getState();return f.map(d=>({...d}))},getEdge:f=>t.getState().edgeLookup.get(f),setNodes:s,setEdges:a,addNodes:f=>{const d=Array.isArray(f)?f:[f];n.nodeQueue.push(p=>[...p,...d])},addEdges:f=>{const d=Array.isArray(f)?f:[f];n.edgeQueue.push(p=>[...p,...d])},toObject:()=>{const{nodes:f=[],edges:d=[],transform:p}=t.getState(),[g,h,y]=p;return{nodes:f.map(m=>({...m})),edges:d.map(m=>({...m})),viewport:{x:g,y:h,zoom:y}}},deleteElements:async({nodes:f=[],edges:d=[]})=>{const{nodes:p,edges:g,onNodesDelete:h,onEdgesDelete:y,triggerNodeChanges:m,triggerEdgeChanges:x,onDelete:v,onBeforeDelete:C}=t.getState(),{nodes:S,edges:E}=await RR({nodesToRemove:f,edgesToRemove:d,nodes:p,edges:g,onBeforeDelete:C}),I=E.length>0,P=S.length>0;if(I){const M=E.map(_g);y==null||y(E),x(M)}if(P){const M=S.map(_g);h==null||h(S),m(M)}return(P||I)&&(v==null||v({nodes:S,edges:E})),{deletedNodes:S,deletedEdges:E}},getIntersectingNodes:(f,d=!0,p)=>{const g=ng(f),h=g?f:l(f),y=p!==void 0;return h?(p||t.getState().nodes).filter(m=>{const x=t.getState().nodeLookup.get(m.id);if(x&&!g&&(m.id===f.id||!x.internals.positionAbsolute))return!1;const v=Po(y?m:x),C=Fi(v,h);return d&&C>0||C>=h.width*h.height}):[]},isNodeIntersecting:(f,d,p=!0)=>{const h=ng(f)?f:l(f);if(!h)return!1;const y=Fi(h,d);return p&&y>0||y>=h.width*h.height},updateNode:c,updateNodeData:(f,d,p={replace:!1})=>{c(f,g=>{const h=typeof d=="function"?d(g):d;return p.replace?{...g,data:h}:{...g,data:{...g.data,...h}}},p)},updateEdge:u,updateEdgeData:(f,d,p={replace:!1})=>{u(f,g=>{const h=typeof d=="function"?d(g):d;return p.replace?{...g,data:h}:{...g,data:{...g.data,...h}}},p)},getNodesBounds:f=>{const{nodeLookup:d,nodeOrigin:p}=t.getState();return ER(f,{nodeLookup:d,nodeOrigin:p})},getHandleConnections:({type:f,id:d,nodeId:p})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${p}-${f}${d?`-${d}`:""}`))==null?void 0:g.values())??[])},getNodeConnections:({type:f,handleId:d,nodeId:p})=>{var g;return Array.from(((g=t.getState().connectionLookup.get(`${p}${f?d?`-${f}-${d}`:`-${f}`:""}`))==null?void 0:g.values())??[])},fitView:async f=>{const d=t.getState().fitViewResolver??Promise.withResolvers();return t.setState({fitViewQueued:!0,fitViewOptions:f,fitViewResolver:d}),n.nodeQueue.push(p=>[...p]),d.promise}}},[]);return N.useMemo(()=>({...o,...e,viewportInitialized:r}),[r])}const Ig=e=>e.selected,UT={actInsideInputWithModifier:!1},ZT=typeof window<"u"?window:void 0;function JT({deleteKeyCode:e,multiSelectionKeyCode:t}){const n=Ge(),{deleteElements:r}=ss(),o=Mo(e,UT),i=Mo(t,{target:ZT});N.useEffect(()=>{if(o){const{edges:s,nodes:a}=n.getState();r({nodes:a.filter(Ig),edges:s.filter(Ig)}),n.setState({nodesSelectionActive:!1})}},[o]),N.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function qT(e){const t=Ge();N.useEffect(()=>{const n=()=>{var o,i;if(!e.current)return!1;const r=Sd(e.current);(r.height===0||r.width===0)&&((i=(o=t.getState()).onError)==null||i.call(o,"004",Dt.error004())),t.setState({width:r.width||500,height:r.height||500})};if(e.current){n(),window.addEventListener("resize",n);const r=new ResizeObserver(()=>n());return r.observe(e.current),()=>{window.removeEventListener("resize",n),r&&e.current&&r.unobserve(e.current)}}},[])}const kl={position:"absolute",width:"100%",height:"100%",top:0,left:0},KT=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib});function QT({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panOnScrollSpeed:o=.5,panOnScrollMode:i=jr.Free,zoomOnDoubleClick:s=!0,panOnDrag:a=!0,defaultViewport:l,translateExtent:c,minZoom:u,maxZoom:f,zoomActivationKeyCode:d,preventScrolling:p=!0,children:g,noWheelClassName:h,noPanClassName:y,onViewportChange:m,isControlledViewport:x,paneClickDistance:v}){const C=Ge(),S=N.useRef(null),{userSelectionActive:E,lib:I}=Ce(KT,ze),P=Mo(d),M=N.useRef();qT(S);const w=N.useCallback(R=>{m==null||m({x:R[0],y:R[1],zoom:R[2]}),x||C.setState({transform:R})},[m,x]);return N.useEffect(()=>{if(S.current){M.current=uT({domNode:S.current,minZoom:u,maxZoom:f,translateExtent:c,viewport:l,paneClickDistance:v,onDraggingChange:A=>C.setState({paneDragging:A}),onPanZoomStart:(A,j)=>{const{onViewportChangeStart:D,onMoveStart:z}=C.getState();z==null||z(A,j),D==null||D(j)},onPanZoom:(A,j)=>{const{onViewportChange:D,onMove:z}=C.getState();z==null||z(A,j),D==null||D(j)},onPanZoomEnd:(A,j)=>{const{onViewportChangeEnd:D,onMoveEnd:z}=C.getState();z==null||z(A,j),D==null||D(j)}});const{x:R,y:O,zoom:L}=M.current.getViewport();return C.setState({panZoom:M.current,transform:[R,O,L],domNode:S.current.closest(".react-flow")}),()=>{var A;(A=M.current)==null||A.destroy()}}},[]),N.useEffect(()=>{var R;(R=M.current)==null||R.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panOnScrollSpeed:o,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:a,zoomActivationKeyPressed:P,preventScrolling:p,noPanClassName:y,userSelectionActive:E,noWheelClassName:h,lib:I,onTransformChange:w})},[e,t,n,r,o,i,s,a,P,p,y,E,h,I,w]),b.jsx("div",{className:"react-flow__renderer",ref:S,style:kl,children:g})}const eN=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function tN(){const{userSelectionActive:e,userSelectionRect:t}=Ce(eN,ze);return e&&t?b.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}const jc=(e,t)=>n=>{n.target===t.current&&(e==null||e(n))},nN=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function rN({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Di.Full,panOnDrag:r,selectionOnDrag:o,onSelectionStart:i,onSelectionEnd:s,onPaneClick:a,onPaneContextMenu:l,onPaneScroll:c,onPaneMouseEnter:u,onPaneMouseMove:f,onPaneMouseLeave:d,children:p}){const g=Ge(),{userSelectionActive:h,elementsSelectable:y,dragging:m,connectionInProgress:x}=Ce(nN,ze),v=y&&(e||h),C=N.useRef(null),S=N.useRef(),E=N.useRef(new Set),I=N.useRef(new Set),P=N.useRef(!1),M=N.useRef(!1),w=z=>{if(P.current||x){P.current=!1;return}a==null||a(z),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},R=z=>{if(Array.isArray(r)&&(r!=null&&r.includes(2))){z.preventDefault();return}l==null||l(z)},O=c?z=>c(z):void 0,L=z=>{var $,T;const{resetSelectedElements:V,domNode:F}=g.getState();if(S.current=F==null?void 0:F.getBoundingClientRect(),!y||!e||z.button!==0||z.target!==C.current||!S.current)return;(T=($=z.target)==null?void 0:$.setPointerCapture)==null||T.call($,z.pointerId),M.current=!0,P.current=!1;const{x:_,y:G}=Dn(z.nativeEvent,S.current);V(),g.setState({userSelectionRect:{width:0,height:0,startX:_,startY:G,x:_,y:G}}),i==null||i(z)},A=z=>{const{userSelectionRect:V,transform:F,nodeLookup:_,edgeLookup:G,connectionLookup:$,triggerNodeChanges:T,triggerEdgeChanges:H,defaultEdgeOptions:J}=g.getState();if(!S.current||!V)return;P.current=!0;const{x:W,y:X}=Dn(z.nativeEvent,S.current),{startX:U,startY:Q}=V,ne={startX:U,startY:Q,x:W<U?W:U,y:X<Q?X:Q,width:Math.abs(W-U),height:Math.abs(X-Q)},oe=E.current,Z=I.current;E.current=new Set(Qb(_,ne,F,n===Di.Partial,!0).map(fe=>fe.id)),I.current=new Set;const ue=(J==null?void 0:J.selectable)??!0;for(const fe of E.current){const Se=$.get(fe);if(Se)for(const{edgeId:Xe}of Se.values()){const rt=G.get(Xe);rt&&(rt.selectable??ue)&&I.current.add(Xe)}}if(!rg(oe,E.current)){const fe=mo(_,E.current,!0);T(fe)}if(!rg(Z,I.current)){const fe=mo(G,I.current);H(fe)}g.setState({userSelectionRect:ne,userSelectionActive:!0,nodesSelectionActive:!1})},j=z=>{var F,_;if(z.button!==0||!M.current)return;(_=(F=z.target)==null?void 0:F.releasePointerCapture)==null||_.call(F,z.pointerId);const{userSelectionRect:V}=g.getState();!h&&V&&z.target===C.current&&(w==null||w(z)),g.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:E.current.size>0}),s==null||s(z),(t||o)&&(P.current=!1),M.current=!1},D=r===!0||Array.isArray(r)&&r.includes(0);return b.jsxs("div",{className:et(["react-flow__pane",{draggable:D,dragging:m,selection:e}]),onClick:v?void 0:jc(w,C),onContextMenu:jc(R,C),onWheel:jc(O,C),onPointerEnter:v?void 0:u,onPointerDown:v?L:f,onPointerMove:v?A:f,onPointerUp:v?j:void 0,onPointerLeave:d,ref:C,style:kl,children:[p,b.jsx(tN,{})]})}function ef({id:e,store:t,unselect:n=!1,nodeRef:r}){const{addSelectedNodes:o,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:a,onError:l}=t.getState(),c=a.get(e);if(!c){l==null||l("012",Dt.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&s)&&(i({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var u;return(u=r==null?void 0:r.current)==null?void 0:u.blur()})):o([e])}function Ov({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:o,isSelectable:i,nodeClickDistance:s}){const a=Ge(),[l,c]=N.useState(!1),u=N.useRef();return N.useEffect(()=>{u.current=JR({getStoreItems:()=>a.getState(),onNodeMouseDown:f=>{ef({id:f,store:a,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),N.useEffect(()=>{var f,d;if(t)(f=u.current)==null||f.destroy();else if(e.current)return(d=u.current)==null||d.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:i,nodeId:o,nodeClickDistance:s}),()=>{var p;(p=u.current)==null||p.destroy()}},[n,r,t,i,e,o]),l}const oN=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function Mv(){const e=Ge();return N.useCallback(n=>{const{nodeExtent:r,snapToGrid:o,snapGrid:i,nodesDraggable:s,onError:a,updateNodePositions:l,nodeLookup:c,nodeOrigin:u}=e.getState(),f=new Map,d=oN(s),p=o?i[0]:5,g=o?i[1]:5,h=n.direction.x*p*n.factor,y=n.direction.y*g*n.factor;for(const[,m]of c){if(!d(m))continue;let x={x:m.internals.positionAbsolute.x+h,y:m.internals.positionAbsolute.y+y};o&&(x=_l(x,i));const{position:v,positionAbsolute:C}=ev({nodeId:m.id,nextPosition:x,nodeLookup:c,nodeExtent:r,nodeOrigin:u,onError:a});m.position=v,m.internals.positionAbsolute=C,f.set(m.id,m)}l(f)},[])}const Td=N.createContext(null),iN=Td.Provider;Td.Consumer;const Dv=()=>N.useContext(Td),sN=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),aN=(e,t,n)=>r=>{const{connectionClickStartHandle:o,connectionMode:i,connection:s}=r,{fromHandle:a,toHandle:l,isValid:c}=s,u=(l==null?void 0:l.nodeId)===e&&(l==null?void 0:l.id)===t&&(l==null?void 0:l.type)===n;return{connectingFrom:(a==null?void 0:a.nodeId)===e&&(a==null?void 0:a.id)===t&&(a==null?void 0:a.type)===n,connectingTo:u,clickConnecting:(o==null?void 0:o.nodeId)===e&&(o==null?void 0:o.id)===t&&(o==null?void 0:o.type)===n,isPossibleEndHandle:i===To.Strict?(a==null?void 0:a.type)!==n:e!==(a==null?void 0:a.nodeId)||t!==(a==null?void 0:a.id),connectionInProcess:!!a,clickConnectionInProcess:!!o,valid:u&&c}};function lN({type:e="source",position:t=ae.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:o=!0,isConnectableEnd:i=!0,id:s,onConnect:a,children:l,className:c,onMouseDown:u,onTouchStart:f,...d},p){var j,D;const g=s||null,h=e==="target",y=Ge(),m=Dv(),{connectOnClick:x,noPanClassName:v,rfId:C}=Ce(sN,ze),{connectingFrom:S,connectingTo:E,clickConnecting:I,isPossibleEndHandle:P,connectionInProcess:M,clickConnectionInProcess:w,valid:R}=Ce(aN(m,g,e),ze);m||(D=(j=y.getState()).onError)==null||D.call(j,"010",Dt.error010());const O=z=>{const{defaultEdgeOptions:V,onConnect:F,hasDefaultEdges:_}=y.getState(),G={...V,...z};if(_){const{edges:$,setEdges:T}=y.getState();T(jR(G,$))}F==null||F(G),a==null||a(G)},L=z=>{if(!m)return;const V=cv(z.nativeEvent);if(o&&(V&&z.button===0||!V)){const F=y.getState();Qu.onPointerDown(z.nativeEvent,{autoPanOnConnect:F.autoPanOnConnect,connectionMode:F.connectionMode,connectionRadius:F.connectionRadius,domNode:F.domNode,nodeLookup:F.nodeLookup,lib:F.lib,isTarget:h,handleId:g,nodeId:m,flowId:F.rfId,panBy:F.panBy,cancelConnection:F.cancelConnection,onConnectStart:F.onConnectStart,onConnectEnd:F.onConnectEnd,updateConnection:F.updateConnection,onConnect:O,isValidConnection:n||F.isValidConnection,getTransform:()=>y.getState().transform,getFromHandle:()=>y.getState().connection.fromHandle,autoPanSpeed:F.autoPanSpeed})}V?u==null||u(z):f==null||f(z)},A=z=>{const{onClickConnectStart:V,onClickConnectEnd:F,connectionClickStartHandle:_,connectionMode:G,isValidConnection:$,lib:T,rfId:H,nodeLookup:J,connection:W}=y.getState();if(!m||!_&&!o)return;if(!_){V==null||V(z.nativeEvent,{nodeId:m,handleId:g,handleType:e}),y.setState({connectionClickStartHandle:{nodeId:m,type:e,id:g}});return}const X=av(z.target),U=n||$,{connection:Q,isValid:ne}=Qu.isValid(z.nativeEvent,{handle:{nodeId:m,id:g,type:e},connectionMode:G,fromNodeId:_.nodeId,fromHandleId:_.id||null,fromType:_.type,isValidConnection:U,flowId:H,doc:X,lib:T,nodeLookup:J});ne&&Q&&O(Q);const oe=structuredClone(W);delete oe.inProgress,oe.toPosition=oe.toHandle?oe.toHandle.position:null,F==null||F(z,oe),y.setState({connectionClickStartHandle:null})};return b.jsx("div",{"data-handleid":g,"data-nodeid":m,"data-handlepos":t,"data-id":`${C}-${m}-${g}-${e}`,className:et(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",v,c,{source:!h,target:h,connectable:r,connectablestart:o,connectableend:i,clickconnecting:I,connectingfrom:S,connectingto:E,valid:R,connectionindicator:r&&(!M||P)&&(M||w?i:o)}]),onMouseDown:L,onTouchStart:L,onClick:x?A:void 0,ref:p,...d,children:l})}const Li=N.memo(Nv(lN));function cN({data:e,isConnectable:t,sourcePosition:n=ae.Bottom}){return b.jsxs(b.Fragment,{children:[e==null?void 0:e.label,b.jsx(Li,{type:"source",position:n,isConnectable:t})]})}function uN({data:e,isConnectable:t,targetPosition:n=ae.Top,sourcePosition:r=ae.Bottom}){return b.jsxs(b.Fragment,{children:[b.jsx(Li,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label,b.jsx(Li,{type:"source",position:r,isConnectable:t})]})}function fN(){return null}function dN({data:e,isConnectable:t,targetPosition:n=ae.Top}){return b.jsxs(b.Fragment,{children:[b.jsx(Li,{type:"target",position:n,isConnectable:t}),e==null?void 0:e.label]})}const La={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},kg={input:cN,default:uN,output:dN,group:fN};function pN(e){var t,n,r,o;return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??((t=e.style)==null?void 0:t.width),height:e.height??e.initialHeight??((n=e.style)==null?void 0:n.height)}:{width:e.width??((r=e.style)==null?void 0:r.width),height:e.height??((o=e.style)==null?void 0:o.height)}}const hN=e=>{const{width:t,height:n,x:r,y:o}=os(e.nodeLookup,{filter:i=>!!i.selected});return{width:Kt(t)?t:null,height:Kt(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${o}px)`}};function gN({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){const r=Ge(),{width:o,height:i,transformString:s,userSelectionActive:a}=Ce(hN,ze),l=Mv(),c=N.useRef(null);if(N.useEffect(()=>{var d;n||(d=c.current)==null||d.focus({preventScroll:!0})},[n]),Ov({nodeRef:c}),a||!o||!i)return null;const u=e?d=>{const p=r.getState().nodes.filter(g=>g.selected);e(d,p)}:void 0,f=d=>{Object.prototype.hasOwnProperty.call(La,d.key)&&(d.preventDefault(),l({direction:La[d.key],factor:d.shiftKey?4:1}))};return b.jsx("div",{className:et(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:b.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:f,style:{width:o,height:i}})})}const Ag=typeof window<"u"?window:void 0,mN=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function Fv({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:a,deleteKeyCode:l,selectionKeyCode:c,selectionOnDrag:u,selectionMode:f,onSelectionStart:d,onSelectionEnd:p,multiSelectionKeyCode:g,panActivationKeyCode:h,zoomActivationKeyCode:y,elementsSelectable:m,zoomOnScroll:x,zoomOnPinch:v,panOnScroll:C,panOnScrollSpeed:S,panOnScrollMode:E,zoomOnDoubleClick:I,panOnDrag:P,defaultViewport:M,translateExtent:w,minZoom:R,maxZoom:O,preventScrolling:L,onSelectionContextMenu:A,noWheelClassName:j,noPanClassName:D,disableKeyboardA11y:z,onViewportChange:V,isControlledViewport:F}){const{nodesSelectionActive:_,userSelectionActive:G}=Ce(mN),$=Mo(c,{target:Ag}),T=Mo(h,{target:Ag}),H=T||P,J=T||C,W=u&&H!==!0,X=$||G||W;return JT({deleteKeyCode:l,multiSelectionKeyCode:g}),b.jsx(QT,{onPaneContextMenu:i,elementsSelectable:m,zoomOnScroll:x,zoomOnPinch:v,panOnScroll:J,panOnScrollSpeed:S,panOnScrollMode:E,zoomOnDoubleClick:I,panOnDrag:!$&&H,defaultViewport:M,translateExtent:w,minZoom:R,maxZoom:O,zoomActivationKeyCode:y,preventScrolling:L,noWheelClassName:j,noPanClassName:D,onViewportChange:V,isControlledViewport:F,paneClickDistance:a,children:b.jsxs(rN,{onSelectionStart:d,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:o,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:H,isSelecting:!!X,selectionMode:f,selectionKeyPressed:$,selectionOnDrag:W,children:[e,_&&b.jsx(gN,{onSelectionContextMenu:A,noPanClassName:D,disableKeyboardA11y:z})]})})}Fv.displayName="FlowRenderer";const yN=N.memo(Fv),bN=e=>t=>e?Qb(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(n=>n.id):Array.from(t.nodeLookup.keys());function vN(e){return Ce(N.useCallback(bN(e),[e]),ze)}const xN=e=>e.updateNodeInternals;function wN(){const e=Ce(xN),[t]=N.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const r=new Map;n.forEach(o=>{const i=o.target.getAttribute("data-id");r.set(i,{id:i,nodeElement:o.target,force:!0})}),e(r)}));return N.useEffect(()=>()=>{t==null||t.disconnect()},[t]),t}function CN({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){const o=Ge(),i=N.useRef(null),s=N.useRef(null),a=N.useRef(e.sourcePosition),l=N.useRef(e.targetPosition),c=N.useRef(t),u=n&&!!e.internals.handleBounds;return N.useEffect(()=>{i.current&&!e.hidden&&(!u||s.current!==i.current)&&(s.current&&(r==null||r.unobserve(s.current)),r==null||r.observe(i.current),s.current=i.current)},[u,e.hidden]),N.useEffect(()=>()=>{s.current&&(r==null||r.unobserve(s.current),s.current=null)},[]),N.useEffect(()=>{if(i.current){const f=c.current!==t,d=a.current!==e.sourcePosition,p=l.current!==e.targetPosition;(f||d||p)&&(c.current=t,a.current=e.sourcePosition,l.current=e.targetPosition,o.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),i}function _N({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:o,onContextMenu:i,onDoubleClick:s,nodesDraggable:a,elementsSelectable:l,nodesConnectable:c,nodesFocusable:u,resizeObserver:f,noDragClassName:d,noPanClassName:p,disableKeyboardA11y:g,rfId:h,nodeTypes:y,nodeClickDistance:m,onError:x}){const{node:v,internals:C,isParent:S}=Ce(X=>{const U=X.nodeLookup.get(e),Q=X.parentLookup.has(e);return{node:U,internals:U.internals,isParent:Q}},ze);let E=v.type||"default",I=(y==null?void 0:y[E])||kg[E];I===void 0&&(x==null||x("003",Dt.error003(E)),E="default",I=kg.default);const P=!!(v.draggable||a&&typeof v.draggable>"u"),M=!!(v.selectable||l&&typeof v.selectable>"u"),w=!!(v.connectable||c&&typeof v.connectable>"u"),R=!!(v.focusable||u&&typeof v.focusable>"u"),O=Ge(),L=iv(v),A=CN({node:v,nodeType:E,hasDimensions:L,resizeObserver:f}),j=Ov({nodeRef:A,disabled:v.hidden||!P,noDragClassName:d,handleSelector:v.dragHandle,nodeId:e,isSelectable:M,nodeClickDistance:m}),D=Mv();if(v.hidden)return null;const z=Wn(v),V=pN(v),F=M||P||t||n||r||o,_=n?X=>n(X,{...C.userNode}):void 0,G=r?X=>r(X,{...C.userNode}):void 0,$=o?X=>o(X,{...C.userNode}):void 0,T=i?X=>i(X,{...C.userNode}):void 0,H=s?X=>s(X,{...C.userNode}):void 0,J=X=>{const{selectNodesOnDrag:U,nodeDragThreshold:Q}=O.getState();M&&(!U||!P||Q>0)&&ef({id:e,store:O,nodeRef:A}),t&&t(X,{...C.userNode})},W=X=>{if(!(lv(X.nativeEvent)||g))if(Zb.includes(X.key)&&M){const U=X.key==="Escape";ef({id:e,store:O,unselect:U,nodeRef:A})}else P&&v.selected&&Object.prototype.hasOwnProperty.call(La,X.key)&&(X.preventDefault(),O.setState({ariaLiveMessage:`Moved selected node ${X.key.replace("Arrow","").toLowerCase()}. New position, x: ${~~C.positionAbsolute.x}, y: ${~~C.positionAbsolute.y}`}),D({direction:La[X.key],factor:X.shiftKey?4:1}))};return b.jsx("div",{className:et(["react-flow__node",`react-flow__node-${E}`,{[p]:P},v.className,{selected:v.selected,selectable:M,parent:S,draggable:P,dragging:j}]),ref:A,style:{zIndex:C.z,transform:`translate(${C.positionAbsolute.x}px,${C.positionAbsolute.y}px)`,pointerEvents:F?"all":"none",visibility:L?"visible":"hidden",...v.style,...V},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:_,onMouseMove:G,onMouseLeave:$,onContextMenu:T,onClick:J,onDoubleClick:H,onKeyDown:R?W:void 0,tabIndex:R?0:void 0,role:R?"button":void 0,"aria-describedby":g?void 0:`${Ev}-${h}`,"aria-label":v.ariaLabel,children:b.jsx(iN,{value:e,children:b.jsx(I,{id:e,data:v.data,type:E,positionAbsoluteX:C.positionAbsolute.x,positionAbsoluteY:C.positionAbsolute.y,selected:v.selected??!1,selectable:M,draggable:P,deletable:v.deletable??!0,isConnectable:w,sourcePosition:v.sourcePosition,targetPosition:v.targetPosition,dragging:j,dragHandle:v.dragHandle,zIndex:C.z,parentId:v.parentId,...z})})})}const SN=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function jv(e){const{nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,onError:i}=Ce(SN,ze),s=vN(e.onlyRenderVisibleElements),a=wN();return b.jsx("div",{className:"react-flow__nodes",style:kl,children:s.map(l=>b.jsx(_N,{id:l,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:a,nodesDraggable:t,nodesConnectable:n,nodesFocusable:r,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:i},l))})}jv.displayName="NodeRenderer";const EN=N.memo(jv);function IN(e){return Ce(N.useCallback(n=>{if(!e)return n.edges.map(o=>o.id);const r=[];if(n.width&&n.height)for(const o of n.edges){const i=n.nodeLookup.get(o.source),s=n.nodeLookup.get(o.target);i&&s&&MR({sourceNode:i,targetNode:s,width:n.width,height:n.height,transform:n.transform})&&r.push(o.id)}return r},[e]),ze)}const kN=({color:e="none",strokeWidth:t=1})=>b.jsx("polyline",{style:{stroke:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",fill:"none",points:"-5,-4 0,0 -5,4"}),AN=({color:e="none",strokeWidth:t=1})=>b.jsx("polyline",{style:{stroke:e,fill:e,strokeWidth:t},strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"}),Rg={[Ma.Arrow]:kN,[Ma.ArrowClosed]:AN};function RN(e){const t=Ge();return N.useMemo(()=>{var o,i;return Object.prototype.hasOwnProperty.call(Rg,e)?Rg[e]:((i=(o=t.getState()).onError)==null||i.call(o,"009",Dt.error009(e)),null)},[e])}const TN=({id:e,type:t,color:n,width:r=12.5,height:o=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:a="auto-start-reverse"})=>{const l=RN(t);return l?b.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${r}`,markerHeight:`${o}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:a,refX:"0",refY:"0",children:b.jsx(l,{color:n,strokeWidth:s})}):null},Lv=({defaultColor:e,rfId:t})=>{const n=Ce(i=>i.edges),r=Ce(i=>i.defaultEdgeOptions),o=N.useMemo(()=>GR(n,{id:t,defaultColor:e,defaultMarkerStart:r==null?void 0:r.markerStart,defaultMarkerEnd:r==null?void 0:r.markerEnd}),[n,r,t,e]);return o.length?b.jsx("svg",{className:"react-flow__marker",children:b.jsx("defs",{children:o.map(i=>b.jsx(TN,{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};Lv.displayName="MarkerDefinitions";var NN=N.memo(Lv);function Bv({x:e,y:t,label:n,labelStyle:r,labelShowBg:o=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:a=2,children:l,className:c,...u}){const[f,d]=N.useState({x:1,y:0,width:0,height:0}),p=et(["react-flow__edge-textwrapper",c]),g=N.useRef(null);return N.useEffect(()=>{if(g.current){const h=g.current.getBBox();d({x:h.x,y:h.y,width:h.width,height:h.height})}},[n]),n?b.jsxs("g",{transform:`translate(${e-f.width/2} ${t-f.height/2})`,className:p,visibility:f.width?"visible":"hidden",...u,children:[o&&b.jsx("rect",{width:f.width+2*s[0],x:-s[0],y:-s[1],height:f.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:a,ry:a}),b.jsx("text",{className:"react-flow__edge-text",y:f.height/2,dy:"0.3em",ref:g,style:r,children:n}),l]}):null}Bv.displayName="EdgeText";const PN=N.memo(Bv);function as({path:e,labelX:t,labelY:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l,interactionWidth:c=20,...u}){return b.jsxs(b.Fragment,{children:[b.jsx("path",{...u,d:e,fill:"none",className:et(["react-flow__edge-path",u.className])}),c&&b.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}),r&&Kt(t)&&Kt(n)?b.jsx(PN,{x:t,y:n,label:r,labelStyle:o,labelShowBg:i,labelBgStyle:s,labelBgPadding:a,labelBgBorderRadius:l}):null]})}function Tg({pos:e,x1:t,y1:n,x2:r,y2:o}){return e===ae.Left||e===ae.Right?[.5*(t+r),n]:[t,.5*(n+o)]}function zv({sourceX:e,sourceY:t,sourcePosition:n=ae.Bottom,targetX:r,targetY:o,targetPosition:i=ae.Top}){const[s,a]=Tg({pos:n,x1:e,y1:t,x2:r,y2:o}),[l,c]=Tg({pos:i,x1:r,y1:o,x2:e,y2:t}),[u,f,d,p]=uv({sourceX:e,sourceY:t,targetX:r,targetY:o,sourceControlX:s,sourceControlY:a,targetControlX:l,targetControlY:c});return[`M${e},${t} C${s},${a} ${l},${c} ${r},${o}`,u,f,d,p]}function Vv(e){return N.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s,targetPosition:a,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:m})=>{const[x,v,C]=zv({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a}),S=e.isInternal?void 0:t;return b.jsx(as,{id:S,path:x,labelX:v,labelY:C,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:m})})}const ON=Vv({isInternal:!1}),Gv=Vv({isInternal:!0});ON.displayName="SimpleBezierEdge";Gv.displayName="SimpleBezierEdgeInternal";function $v(e){return N.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:f,style:d,sourcePosition:p=ae.Bottom,targetPosition:g=ae.Top,markerEnd:h,markerStart:y,pathOptions:m,interactionWidth:x})=>{const[v,C,S]=Ju({sourceX:n,sourceY:r,sourcePosition:p,targetX:o,targetY:i,targetPosition:g,borderRadius:m==null?void 0:m.borderRadius,offset:m==null?void 0:m.offset}),E=e.isInternal?void 0:t;return b.jsx(as,{id:E,path:v,labelX:C,labelY:S,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:f,style:d,markerEnd:h,markerStart:y,interactionWidth:x})})}const Hv=$v({isInternal:!1}),Wv=$v({isInternal:!0});Hv.displayName="SmoothStepEdge";Wv.displayName="SmoothStepEdgeInternal";function Xv(e){return N.memo(({id:t,...n})=>{var o;const r=e.isInternal?void 0:t;return b.jsx(Hv,{...n,id:r,pathOptions:N.useMemo(()=>{var i;return{borderRadius:0,offset:(i=n.pathOptions)==null?void 0:i.offset}},[(o=n.pathOptions)==null?void 0:o.offset])})})}const MN=Xv({isInternal:!1}),Yv=Xv({isInternal:!0});MN.displayName="StepEdge";Yv.displayName="StepEdgeInternal";function Uv(e){return N.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:f,style:d,markerEnd:p,markerStart:g,interactionWidth:h})=>{const[y,m,x]=dv({sourceX:n,sourceY:r,targetX:o,targetY:i}),v=e.isInternal?void 0:t;return b.jsx(as,{id:v,path:y,labelX:m,labelY:x,label:s,labelStyle:a,labelShowBg:l,labelBgStyle:c,labelBgPadding:u,labelBgBorderRadius:f,style:d,markerEnd:p,markerStart:g,interactionWidth:h})})}const DN=Uv({isInternal:!1}),Zv=Uv({isInternal:!0});DN.displayName="StraightEdge";Zv.displayName="StraightEdgeInternal";function Jv(e){return N.memo(({id:t,sourceX:n,sourceY:r,targetX:o,targetY:i,sourcePosition:s=ae.Bottom,targetPosition:a=ae.Top,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,pathOptions:m,interactionWidth:x})=>{const[v,C,S]=Ed({sourceX:n,sourceY:r,sourcePosition:s,targetX:o,targetY:i,targetPosition:a,curvature:m==null?void 0:m.curvature}),E=e.isInternal?void 0:t;return b.jsx(as,{id:E,path:v,labelX:C,labelY:S,label:l,labelStyle:c,labelShowBg:u,labelBgStyle:f,labelBgPadding:d,labelBgBorderRadius:p,style:g,markerEnd:h,markerStart:y,interactionWidth:x})})}const FN=Jv({isInternal:!1}),qv=Jv({isInternal:!0});FN.displayName="BezierEdge";qv.displayName="BezierEdgeInternal";const Ng={default:qv,straight:Zv,step:Yv,smoothstep:Wv,simplebezier:Gv},Pg={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},jN=(e,t,n)=>n===ae.Left?e-t:n===ae.Right?e+t:e,LN=(e,t,n)=>n===ae.Top?e-t:n===ae.Bottom?e+t:e,Og="react-flow__edgeupdater";function Mg({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:o,onMouseEnter:i,onMouseOut:s,type:a}){return b.jsx("circle",{onMouseDown:o,onMouseEnter:i,onMouseOut:s,className:et([Og,`${Og}-${a}`]),cx:jN(t,r,e),cy:LN(n,r,e),r,stroke:"transparent",fill:"transparent"})}function BN({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:o,targetX:i,targetY:s,sourcePosition:a,targetPosition:l,onReconnect:c,onReconnectStart:u,onReconnectEnd:f,setReconnecting:d,setUpdateHover:p}){const g=Ge(),h=(C,S)=>{if(C.button!==0)return;const{autoPanOnConnect:E,domNode:I,isValidConnection:P,connectionMode:M,connectionRadius:w,lib:R,onConnectStart:O,onConnectEnd:L,cancelConnection:A,nodeLookup:j,rfId:D,panBy:z,updateConnection:V}=g.getState(),F=S.type==="target";d(!0),u==null||u(C,n,S.type);const _=($,T)=>{d(!1),f==null||f($,n,S.type,T)},G=$=>c==null?void 0:c(n,$);Qu.onPointerDown(C.nativeEvent,{autoPanOnConnect:E,connectionMode:M,connectionRadius:w,domNode:I,handleId:S.id,nodeId:S.nodeId,nodeLookup:j,isTarget:F,edgeUpdaterType:S.type,lib:R,flowId:D,cancelConnection:A,panBy:z,isValidConnection:P,onConnect:G,onConnectStart:O,onConnectEnd:L,onReconnectEnd:_,updateConnection:V,getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle})},y=C=>h(C,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),m=C=>h(C,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),x=()=>p(!0),v=()=>p(!1);return b.jsxs(b.Fragment,{children:[(e===!0||e==="source")&&b.jsx(Mg,{position:a,centerX:r,centerY:o,radius:t,onMouseDown:y,onMouseEnter:x,onMouseOut:v,type:"source"}),(e===!0||e==="target")&&b.jsx(Mg,{position:l,centerX:i,centerY:s,radius:t,onMouseDown:m,onMouseEnter:x,onMouseOut:v,type:"target"})]})}function zN({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:o,onDoubleClick:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,reconnectRadius:u,onReconnect:f,onReconnectStart:d,onReconnectEnd:p,rfId:g,edgeTypes:h,noPanClassName:y,onError:m,disableKeyboardA11y:x}){let v=Ce(Z=>Z.edgeLookup.get(e));const C=Ce(Z=>Z.defaultEdgeOptions);v=C?{...C,...v}:v;let S=v.type||"default",E=(h==null?void 0:h[S])||Ng[S];E===void 0&&(m==null||m("011",Dt.error011(S)),S="default",E=Ng.default);const I=!!(v.focusable||t&&typeof v.focusable>"u"),P=typeof f<"u"&&(v.reconnectable||n&&typeof v.reconnectable>"u"),M=!!(v.selectable||r&&typeof v.selectable>"u"),w=N.useRef(null),[R,O]=N.useState(!1),[L,A]=N.useState(!1),j=Ge(),{zIndex:D,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$}=Ce(N.useCallback(Z=>{const ue=Z.nodeLookup.get(v.source),fe=Z.nodeLookup.get(v.target);if(!ue||!fe)return{zIndex:v.zIndex,...Pg};const Se=VR({id:e,sourceNode:ue,targetNode:fe,sourceHandle:v.sourceHandle||null,targetHandle:v.targetHandle||null,connectionMode:Z.connectionMode,onError:m});return{zIndex:OR({selected:v.selected,zIndex:v.zIndex,sourceNode:ue,targetNode:fe,elevateOnSelect:Z.elevateEdgesOnSelect}),...Se||Pg}},[v.source,v.target,v.sourceHandle,v.targetHandle,v.selected,v.zIndex]),ze),T=N.useMemo(()=>v.markerStart?`url('#${qu(v.markerStart,g)}')`:void 0,[v.markerStart,g]),H=N.useMemo(()=>v.markerEnd?`url('#${qu(v.markerEnd,g)}')`:void 0,[v.markerEnd,g]);if(v.hidden||z===null||V===null||F===null||_===null)return null;const J=Z=>{var Xe;const{addSelectedEdges:ue,unselectNodesAndEdges:fe,multiSelectionActive:Se}=j.getState();M&&(j.setState({nodesSelectionActive:!1}),v.selected&&Se?(fe({nodes:[],edges:[v]}),(Xe=w.current)==null||Xe.blur()):ue([e])),o&&o(Z,v)},W=i?Z=>{i(Z,{...v})}:void 0,X=s?Z=>{s(Z,{...v})}:void 0,U=a?Z=>{a(Z,{...v})}:void 0,Q=l?Z=>{l(Z,{...v})}:void 0,ne=c?Z=>{c(Z,{...v})}:void 0,oe=Z=>{var ue;if(!x&&Zb.includes(Z.key)&&M){const{unselectNodesAndEdges:fe,addSelectedEdges:Se}=j.getState();Z.key==="Escape"?((ue=w.current)==null||ue.blur(),fe({edges:[v]})):Se([e])}};return b.jsx("svg",{style:{zIndex:D},children:b.jsxs("g",{className:et(["react-flow__edge",`react-flow__edge-${S}`,v.className,y,{selected:v.selected,animated:v.animated,inactive:!M&&!o,updating:R,selectable:M}]),onClick:J,onDoubleClick:W,onContextMenu:X,onMouseEnter:U,onMouseMove:Q,onMouseLeave:ne,onKeyDown:I?oe:void 0,tabIndex:I?0:void 0,role:I?"button":"img","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":v.ariaLabel===null?void 0:v.ariaLabel||`Edge from ${v.source} to ${v.target}`,"aria-describedby":I?`${Iv}-${g}`:void 0,ref:w,children:[!L&&b.jsx(E,{id:e,source:v.source,target:v.target,type:v.type,selected:v.selected,animated:v.animated,selectable:M,deletable:v.deletable??!0,label:v.label,labelStyle:v.labelStyle,labelShowBg:v.labelShowBg,labelBgStyle:v.labelBgStyle,labelBgPadding:v.labelBgPadding,labelBgBorderRadius:v.labelBgBorderRadius,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$,data:v.data,style:v.style,sourceHandleId:v.sourceHandle,targetHandleId:v.targetHandle,markerStart:T,markerEnd:H,pathOptions:"pathOptions"in v?v.pathOptions:void 0,interactionWidth:v.interactionWidth}),P&&b.jsx(BN,{edge:v,isReconnectable:P,reconnectRadius:u,onReconnect:f,onReconnectStart:d,onReconnectEnd:p,sourceX:z,sourceY:V,targetX:F,targetY:_,sourcePosition:G,targetPosition:$,setUpdateHover:O,setReconnecting:A})]})})}const VN=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Kv({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:o,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:a,onEdgeMouseMove:l,onEdgeMouseLeave:c,onEdgeClick:u,reconnectRadius:f,onEdgeDoubleClick:d,onReconnectStart:p,onReconnectEnd:g,disableKeyboardA11y:h}){const{edgesFocusable:y,edgesReconnectable:m,elementsSelectable:x,onError:v}=Ce(VN,ze),C=IN(t);return b.jsxs("div",{className:"react-flow__edges",children:[b.jsx(NN,{defaultColor:e,rfId:n}),C.map(S=>b.jsx(zN,{id:S,edgesFocusable:y,edgesReconnectable:m,elementsSelectable:x,noPanClassName:o,onReconnect:i,onContextMenu:s,onMouseEnter:a,onMouseMove:l,onMouseLeave:c,onClick:u,reconnectRadius:f,onDoubleClick:d,onReconnectStart:p,onReconnectEnd:g,rfId:n,onError:v,edgeTypes:r,disableKeyboardA11y:h},S))]})}Kv.displayName="EdgeRenderer";const GN=N.memo(Kv),$N=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function HN({children:e}){const t=Ce($N);return b.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}function WN(e){const t=ss(),n=N.useRef(!1);N.useEffect(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}const XN=e=>{var t;return(t=e.panZoom)==null?void 0:t.syncViewport};function YN(e){const t=Ce(XN),n=Ge();return N.useEffect(()=>{e&&(t==null||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function UN(e){return e.connection.inProgress?{...e.connection,to:is(e.connection.to,e.transform)}:{...e.connection}}function ZN(e){return UN}function JN(e){const t=ZN();return Ce(t,ze)}const qN=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function KN({containerStyle:e,style:t,type:n,component:r}){const{nodesConnectable:o,width:i,height:s,isValid:a,inProgress:l}=Ce(qN,ze);return!(i&&o&&l)?null:b.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:b.jsx("g",{className:et(["react-flow__connection",qb(a)]),children:b.jsx(Qv,{style:t,type:n,CustomComponent:r,isValid:a})})})}const Qv=({style:e,type:t=or.Bezier,CustomComponent:n,isValid:r})=>{const{inProgress:o,from:i,fromNode:s,fromHandle:a,fromPosition:l,to:c,toNode:u,toHandle:f,toPosition:d}=JN();if(!o)return;if(n)return b.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:a,fromX:i.x,fromY:i.y,toX:c.x,toY:c.y,fromPosition:l,toPosition:d,connectionStatus:qb(r),toNode:u,toHandle:f});let p="";const g={sourceX:i.x,sourceY:i.y,sourcePosition:l,targetX:c.x,targetY:c.y,targetPosition:d};switch(t){case or.Bezier:[p]=Ed(g);break;case or.SimpleBezier:[p]=zv(g);break;case or.Step:[p]=Ju({...g,borderRadius:0});break;case or.SmoothStep:[p]=Ju(g);break;default:[p]=dv(g)}return b.jsx("path",{d:p,fill:"none",className:"react-flow__connection-path",style:e})};Qv.displayName="ConnectionLine";const QN={};function Dg(e=QN){const t=N.useRef(e),n=Ge();N.useEffect(()=>{var r,o;if(process.env.NODE_ENV==="development"){const i=new Set([...Object.keys(t.current),...Object.keys(e)]);for(const s of i)if(t.current[s]!==e[s]){(o=(r=n.getState()).onError)==null||o.call(r,"002",Dt.error002());break}t.current=e}},[e])}function eP(){const e=Ge(),t=N.useRef(!1);N.useEffect(()=>{var n,r;if(process.env.NODE_ENV==="development"&&!t.current){const o=document.querySelector(".react-flow__pane");o&&window.getComputedStyle(o).zIndex!=="1"&&((r=(n=e.getState()).onError)==null||r.call(n,"013",Dt.error013("react"))),t.current=!0}},[])}function ex({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:o,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,onSelectionContextMenu:f,onSelectionStart:d,onSelectionEnd:p,connectionLineType:g,connectionLineStyle:h,connectionLineComponent:y,connectionLineContainerStyle:m,selectionKeyCode:x,selectionOnDrag:v,selectionMode:C,multiSelectionKeyCode:S,panActivationKeyCode:E,zoomActivationKeyCode:I,deleteKeyCode:P,onlyRenderVisibleElements:M,elementsSelectable:w,defaultViewport:R,translateExtent:O,minZoom:L,maxZoom:A,preventScrolling:j,defaultMarkerColor:D,zoomOnScroll:z,zoomOnPinch:V,panOnScroll:F,panOnScrollSpeed:_,panOnScrollMode:G,zoomOnDoubleClick:$,panOnDrag:T,onPaneClick:H,onPaneMouseEnter:J,onPaneMouseMove:W,onPaneMouseLeave:X,onPaneScroll:U,onPaneContextMenu:Q,paneClickDistance:ne,nodeClickDistance:oe,onEdgeContextMenu:Z,onEdgeMouseEnter:ue,onEdgeMouseMove:fe,onEdgeMouseLeave:Se,reconnectRadius:Xe,onReconnect:rt,onReconnectStart:Ct,onReconnectEnd:_t,noDragClassName:Ht,noWheelClassName:Cr,noPanClassName:ge,disableKeyboardA11y:_r,nodeExtent:ei,rfId:Sr,viewport:K,onViewportChange:re}){return Dg(e),Dg(t),eP(),WN(n),YN(K),b.jsx(yN,{onPaneClick:H,onPaneMouseEnter:J,onPaneMouseMove:W,onPaneMouseLeave:X,onPaneContextMenu:Q,onPaneScroll:U,paneClickDistance:ne,deleteKeyCode:P,selectionKeyCode:x,selectionOnDrag:v,selectionMode:C,onSelectionStart:d,onSelectionEnd:p,multiSelectionKeyCode:S,panActivationKeyCode:E,zoomActivationKeyCode:I,elementsSelectable:w,zoomOnScroll:z,zoomOnPinch:V,zoomOnDoubleClick:$,panOnScroll:F,panOnScrollSpeed:_,panOnScrollMode:G,panOnDrag:T,defaultViewport:R,translateExtent:O,minZoom:L,maxZoom:A,onSelectionContextMenu:f,preventScrolling:j,noDragClassName:Ht,noWheelClassName:Cr,noPanClassName:ge,disableKeyboardA11y:_r,onViewportChange:re,isControlledViewport:!!K,children:b.jsxs(HN,{children:[b.jsx(GN,{edgeTypes:t,onEdgeClick:o,onEdgeDoubleClick:s,onReconnect:rt,onReconnectStart:Ct,onReconnectEnd:_t,onlyRenderVisibleElements:M,onEdgeContextMenu:Z,onEdgeMouseEnter:ue,onEdgeMouseMove:fe,onEdgeMouseLeave:Se,reconnectRadius:Xe,defaultMarkerColor:D,noPanClassName:ge,disableKeyboardA11y:_r,rfId:Sr}),b.jsx(KN,{style:h,type:g,component:y,containerStyle:m}),b.jsx("div",{className:"react-flow__edgelabel-renderer"}),b.jsx(EN,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:i,onNodeMouseEnter:a,onNodeMouseMove:l,onNodeMouseLeave:c,onNodeContextMenu:u,nodeClickDistance:oe,onlyRenderVisibleElements:M,noPanClassName:ge,noDragClassName:Ht,disableKeyboardA11y:_r,nodeExtent:ei,rfId:Sr}),b.jsx("div",{className:"react-flow__viewport-portal"})]})})}ex.displayName="GraphView";const tP=N.memo(ex),Fg=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l}={})=>{const c=new Map,u=new Map,f=new Map,d=new Map,p=r??t??[],g=n??e??[],h=a??[0,0],y=l??Mi;hv(f,d,p),Ku(g,c,u,{nodeOrigin:h,nodeExtent:y,elevateNodesOnSelect:!1});let m=[0,0,1];if(s&&o&&i){const x=os(c,{filter:E=>!!((E.width||E.initialWidth)&&(E.height||E.initialHeight))}),{x:v,y:C,zoom:S}=_d(x,o,i,.5,2,.1);m=[v,C,S]}return{rfId:"1",width:0,height:0,transform:m,nodes:g,nodeLookup:c,parentLookup:u,edges:p,edgeLookup:d,connectionLookup:f,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:.5,maxZoom:2,translateExtent:Mi,nodeExtent:y,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:To.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:h,nodeDragThreshold: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:s??!1,fitViewOptions:void 0,fitViewResolver:null,connection:{...Jb},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanSpeed:15,connectionRadius:20,onError:ov,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1}},nP=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l})=>wT((c,u)=>{async function f(){const{nodeLookup:d,panZoom:p,fitViewOptions:g,fitViewResolver:h,width:y,height:m,minZoom:x,maxZoom:v}=u();p&&(await AR({nodes:d,width:y,height:m,panZoom:p,minZoom:x,maxZoom:v},g),h==null||h.resolve(!0),c({fitViewResolver:null}))}return{...Fg({nodes:e,edges:t,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l,defaultNodes:n,defaultEdges:r}),setNodes:d=>{const{nodeLookup:p,parentLookup:g,nodeOrigin:h,elevateNodesOnSelect:y,fitViewQueued:m}=u(),x=Ku(d,p,g,{nodeOrigin:h,nodeExtent:l,elevateNodesOnSelect:y,checkEquality:!0});m&&x?(f(),c({nodes:d,fitViewQueued:!1,fitViewOptions:void 0})):c({nodes:d})},setEdges:d=>{const{connectionLookup:p,edgeLookup:g}=u();hv(p,g,d),c({edges:d})},setDefaultNodesAndEdges:(d,p)=>{if(d){const{setNodes:g}=u();g(d),c({hasDefaultNodes:!0})}if(p){const{setEdges:g}=u();g(p),c({hasDefaultEdges:!0})}},updateNodeInternals:d=>{const{triggerNodeChanges:p,nodeLookup:g,parentLookup:h,domNode:y,nodeOrigin:m,nodeExtent:x,debug:v,fitViewQueued:C}=u(),{changes:S,updatedInternals:E}=YR(d,g,h,y,m,x);E&&(HR(g,h,{nodeOrigin:m,nodeExtent:x}),C?(f(),c({fitViewQueued:!1,fitViewOptions:void 0})):c({}),(S==null?void 0:S.length)>0&&(v&&console.log("React Flow: trigger node changes",S),p==null||p(S)))},updateNodePositions:(d,p=!1)=>{const g=[],h=[],{nodeLookup:y,triggerNodeChanges:m}=u();for(const[x,v]of d){const C=y.get(x),S=!!(C!=null&&C.expandParent&&(C!=null&&C.parentId)&&(v!=null&&v.position)),E={id:x,type:"position",position:S?{x:Math.max(0,v.position.x),y:Math.max(0,v.position.y)}:v.position,dragging:p};S&&C.parentId&&g.push({id:x,parentId:C.parentId,rect:{...v.internals.positionAbsolute,width:v.measured.width??0,height:v.measured.height??0}}),h.push(E)}if(g.length>0){const{parentLookup:x,nodeOrigin:v}=u(),C=Rd(g,y,x,v);h.push(...C)}m(h)},triggerNodeChanges:d=>{const{onNodesChange:p,setNodes:g,nodes:h,hasDefaultNodes:y,debug:m}=u();if(d!=null&&d.length){if(y){const x=Rv(d,h);g(x)}m&&console.log("React Flow: trigger node changes",d),p==null||p(d)}},triggerEdgeChanges:d=>{const{onEdgesChange:p,setEdges:g,edges:h,hasDefaultEdges:y,debug:m}=u();if(d!=null&&d.length){if(y){const x=Tv(d,h);g(x)}m&&console.log("React Flow: trigger edge changes",d),p==null||p(d)}},addSelectedNodes:d=>{const{multiSelectionActive:p,edgeLookup:g,nodeLookup:h,triggerNodeChanges:y,triggerEdgeChanges:m}=u();if(p){const x=d.map(v=>Ar(v,!0));y(x);return}y(mo(h,new Set([...d]),!0)),m(mo(g))},addSelectedEdges:d=>{const{multiSelectionActive:p,edgeLookup:g,nodeLookup:h,triggerNodeChanges:y,triggerEdgeChanges:m}=u();if(p){const x=d.map(v=>Ar(v,!0));m(x);return}m(mo(g,new Set([...d]))),y(mo(h,new Set,!0))},unselectNodesAndEdges:({nodes:d,edges:p}={})=>{const{edges:g,nodes:h,nodeLookup:y,triggerNodeChanges:m,triggerEdgeChanges:x}=u(),v=d||h,C=p||g,S=v.map(I=>{const P=y.get(I.id);return P&&(P.selected=!1),Ar(I.id,!1)}),E=C.map(I=>Ar(I.id,!1));m(S),x(E)},setMinZoom:d=>{const{panZoom:p,maxZoom:g}=u();p==null||p.setScaleExtent([d,g]),c({minZoom:d})},setMaxZoom:d=>{const{panZoom:p,minZoom:g}=u();p==null||p.setScaleExtent([g,d]),c({maxZoom:d})},setTranslateExtent:d=>{var p;(p=u().panZoom)==null||p.setTranslateExtent(d),c({translateExtent:d})},setPaneClickDistance:d=>{var p;(p=u().panZoom)==null||p.setClickDistance(d)},resetSelectedElements:()=>{const{edges:d,nodes:p,triggerNodeChanges:g,triggerEdgeChanges:h}=u(),y=p.reduce((x,v)=>v.selected?[...x,Ar(v.id,!1)]:x,[]),m=d.reduce((x,v)=>v.selected?[...x,Ar(v.id,!1)]:x,[]);g(y),h(m)},setNodeExtent:d=>{const{nodes:p,nodeLookup:g,parentLookup:h,nodeOrigin:y,elevateNodesOnSelect:m,nodeExtent:x}=u();d[0][0]===x[0][0]&&d[0][1]===x[0][1]&&d[1][0]===x[1][0]&&d[1][1]===x[1][1]||(Ku(p,g,h,{nodeOrigin:y,nodeExtent:d,elevateNodesOnSelect:m,checkEquality:!1}),c({nodeExtent:d}))},panBy:d=>{const{transform:p,width:g,height:h,panZoom:y,translateExtent:m}=u();return UR({delta:d,panZoom:y,transform:p,translateExtent:m,width:g,height:h})},cancelConnection:()=>{c({connection:{...Jb}})},updateConnection:d=>{c({connection:d})},reset:()=>c({...Fg()})}},Object.is);function rP({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:o,initialHeight:i,fitView:s,nodeOrigin:a,nodeExtent:l,children:c}){const[u]=N.useState(()=>nP({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:o,height:i,fitView:s,nodeOrigin:a,nodeExtent:l}));return b.jsx(CT,{value:u,children:b.jsx(WT,{children:c})})}function oP({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:o,width:i,height:s,fitView:a,nodeOrigin:l,nodeExtent:c}){return N.useContext(El)?b.jsx(b.Fragment,{children:e}):b.jsx(rP,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:o,initialWidth:i,initialHeight:s,fitView:a,nodeOrigin:l,nodeExtent:c,children:e})}const iP={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function sP({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:o,nodeTypes:i,edgeTypes:s,onNodeClick:a,onEdgeClick:l,onInit:c,onMove:u,onMoveStart:f,onMoveEnd:d,onConnect:p,onConnectStart:g,onConnectEnd:h,onClickConnectStart:y,onClickConnectEnd:m,onNodeMouseEnter:x,onNodeMouseMove:v,onNodeMouseLeave:C,onNodeContextMenu:S,onNodeDoubleClick:E,onNodeDragStart:I,onNodeDrag:P,onNodeDragStop:M,onNodesDelete:w,onEdgesDelete:R,onDelete:O,onSelectionChange:L,onSelectionDragStart:A,onSelectionDrag:j,onSelectionDragStop:D,onSelectionContextMenu:z,onSelectionStart:V,onSelectionEnd:F,onBeforeDelete:_,connectionMode:G,connectionLineType:$=or.Bezier,connectionLineStyle:T,connectionLineComponent:H,connectionLineContainerStyle:J,deleteKeyCode:W="Backspace",selectionKeyCode:X="Shift",selectionOnDrag:U=!1,selectionMode:Q=Di.Full,panActivationKeyCode:ne="Space",multiSelectionKeyCode:oe=ja()?"Meta":"Control",zoomActivationKeyCode:Z=ja()?"Meta":"Control",snapToGrid:ue,snapGrid:fe,onlyRenderVisibleElements:Se=!1,selectNodesOnDrag:Xe,nodesDraggable:rt,nodesConnectable:Ct,nodesFocusable:_t,nodeOrigin:Ht=kv,edgesFocusable:Cr,edgesReconnectable:ge,elementsSelectable:_r=!0,defaultViewport:ei=DT,minZoom:Sr=.5,maxZoom:K=2,translateExtent:re=Mi,preventScrolling:me=!0,nodeExtent:ve,defaultMarkerColor:Te="#b1b1b7",zoomOnScroll:St=!0,zoomOnPinch:An=!0,panOnScroll:Wt=!1,panOnScrollSpeed:Er=.5,panOnScrollMode:Ir=jr.Free,zoomOnDoubleClick:ft=!0,panOnDrag:qn=!0,onPaneClick:Xt,onPaneMouseEnter:EE,onPaneMouseMove:IE,onPaneMouseLeave:kE,onPaneScroll:AE,onPaneContextMenu:RE,paneClickDistance:mh=0,nodeClickDistance:TE=0,children:NE,onReconnect:PE,onReconnectStart:OE,onReconnectEnd:ME,onEdgeContextMenu:DE,onEdgeDoubleClick:FE,onEdgeMouseEnter:jE,onEdgeMouseMove:LE,onEdgeMouseLeave:BE,reconnectRadius:zE=10,onNodesChange:VE,onEdgesChange:GE,noDragClassName:$E="nodrag",noWheelClassName:HE="nowheel",noPanClassName:yh="nopan",fitView:bh,fitViewOptions:WE,connectOnClick:XE,attributionPosition:YE,proOptions:UE,defaultEdgeOptions:ZE,elevateNodesOnSelect:JE,elevateEdgesOnSelect:qE,disableKeyboardA11y:vh=!1,autoPanOnConnect:KE,autoPanOnNodeDrag:QE,autoPanSpeed:e2,connectionRadius:t2,isValidConnection:n2,onError:r2,style:o2,id:xh,nodeDragThreshold:i2,viewport:s2,onViewportChange:a2,width:l2,height:c2,colorMode:u2="light",debug:f2,onScroll:Es,...d2},p2){const Ec=xh||"1",h2=BT(u2),g2=N.useCallback(wh=>{wh.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Es==null||Es(wh)},[Es]);return b.jsx("div",{"data-testid":"rf__wrapper",...d2,onScroll:g2,style:{...o2,...iP},ref:p2,className:et(["react-flow",o,h2]),id:xh,children:b.jsxs(oP,{nodes:e,edges:t,width:l2,height:c2,fitView:bh,nodeOrigin:Ht,nodeExtent:ve,children:[b.jsx(tP,{onInit:c,onNodeClick:a,onEdgeClick:l,onNodeMouseEnter:x,onNodeMouseMove:v,onNodeMouseLeave:C,onNodeContextMenu:S,onNodeDoubleClick:E,nodeTypes:i,edgeTypes:s,connectionLineType:$,connectionLineStyle:T,connectionLineComponent:H,connectionLineContainerStyle:J,selectionKeyCode:X,selectionOnDrag:U,selectionMode:Q,deleteKeyCode:W,multiSelectionKeyCode:oe,panActivationKeyCode:ne,zoomActivationKeyCode:Z,onlyRenderVisibleElements:Se,defaultViewport:ei,translateExtent:re,minZoom:Sr,maxZoom:K,preventScrolling:me,zoomOnScroll:St,zoomOnPinch:An,zoomOnDoubleClick:ft,panOnScroll:Wt,panOnScrollSpeed:Er,panOnScrollMode:Ir,panOnDrag:qn,onPaneClick:Xt,onPaneMouseEnter:EE,onPaneMouseMove:IE,onPaneMouseLeave:kE,onPaneScroll:AE,onPaneContextMenu:RE,paneClickDistance:mh,nodeClickDistance:TE,onSelectionContextMenu:z,onSelectionStart:V,onSelectionEnd:F,onReconnect:PE,onReconnectStart:OE,onReconnectEnd:ME,onEdgeContextMenu:DE,onEdgeDoubleClick:FE,onEdgeMouseEnter:jE,onEdgeMouseMove:LE,onEdgeMouseLeave:BE,reconnectRadius:zE,defaultMarkerColor:Te,noDragClassName:$E,noWheelClassName:HE,noPanClassName:yh,rfId:Ec,disableKeyboardA11y:vh,nodeExtent:ve,viewport:s2,onViewportChange:a2}),b.jsx(LT,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:g,onConnectEnd:h,onClickConnectStart:y,onClickConnectEnd:m,nodesDraggable:rt,nodesConnectable:Ct,nodesFocusable:_t,edgesFocusable:Cr,edgesReconnectable:ge,elementsSelectable:_r,elevateNodesOnSelect:JE,elevateEdgesOnSelect:qE,minZoom:Sr,maxZoom:K,nodeExtent:ve,onNodesChange:VE,onEdgesChange:GE,snapToGrid:ue,snapGrid:fe,connectionMode:G,translateExtent:re,connectOnClick:XE,defaultEdgeOptions:ZE,fitView:bh,fitViewOptions:WE,onNodesDelete:w,onEdgesDelete:R,onDelete:O,onNodeDragStart:I,onNodeDrag:P,onNodeDragStop:M,onSelectionDrag:j,onSelectionDragStart:A,onSelectionDragStop:D,onMove:u,onMoveStart:f,onMoveEnd:d,noPanClassName:yh,nodeOrigin:Ht,rfId:Ec,autoPanOnConnect:KE,autoPanOnNodeDrag:QE,autoPanSpeed:e2,onError:r2,connectionRadius:t2,isValidConnection:n2,selectNodesOnDrag:Xe,nodeDragThreshold:i2,onBeforeDelete:_,paneClickDistance:mh,debug:f2}),b.jsx(MT,{onSelectionChange:L}),NE,b.jsx(RT,{proOptions:UE,position:YE}),b.jsx(kT,{rfId:Ec,disableKeyboardA11y:vh})]})})}var aP=Nv(sP);const lP=e=>e.nodes;function cP(){return Ce(lP,ze)}const uP=e=>e.edges;function fP(){return Ce(uP,ze)}function dP({dimensions:e,lineWidth:t,variant:n,className:r}){return b.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:et(["react-flow__background-pattern",n,r])})}function pP({radius:e,className:t}){return b.jsx("circle",{cx:e,cy:e,r:e,className:et(["react-flow__background-pattern","dots",t])})}var cr;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(cr||(cr={}));const hP={[cr.Dots]:1,[cr.Lines]:1,[cr.Cross]:6},gP=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function tx({id:e,variant:t=cr.Dots,gap:n=20,size:r,lineWidth:o=1,offset:i=0,color:s,bgColor:a,style:l,className:c,patternClassName:u}){const f=N.useRef(null),{transform:d,patternId:p}=Ce(gP,ze),g=r||hP[t],h=t===cr.Dots,y=t===cr.Cross,m=Array.isArray(n)?n:[n,n],x=[m[0]*d[2]||1,m[1]*d[2]||1],v=g*d[2],C=Array.isArray(i)?i:[i,i],S=y?[v,v]:x,E=[C[0]*d[2]||1+S[0]/2,C[1]*d[2]||1+S[1]/2],I=`${p}${e||""}`;return b.jsxs("svg",{className:et(["react-flow__background",c]),style:{...l,...kl,"--xy-background-color-props":a,"--xy-background-pattern-color-props":s},ref:f,"data-testid":"rf__background",children:[b.jsx("pattern",{id:I,x:d[0]%x[0],y:d[1]%x[1],width:x[0],height:x[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${E[0]},-${E[1]})`,children:h?b.jsx(pP,{radius:v/2,className:u}):b.jsx(dP,{dimensions:S,lineWidth:o,variant:t,className:u})}),b.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${I})`})]})}tx.displayName="Background";const mP=N.memo(tx);function yP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:b.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function bP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:b.jsx("path",{d:"M0 0h32v4.2H0z"})})}function vP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:b.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 xP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 wP(){return b.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:b.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 js({children:e,className:t,...n}){return b.jsx("button",{type:"button",className:et(["react-flow__controls-button",t]),...n,children:e})}const CP=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom});function nx({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:o,onZoomIn:i,onZoomOut:s,onFitView:a,onInteractiveChange:l,className:c,children:u,position:f="bottom-left",orientation:d="vertical","aria-label":p="React Flow controls"}){const g=Ge(),{isInteractive:h,minZoomReached:y,maxZoomReached:m}=Ce(CP,ze),{zoomIn:x,zoomOut:v,fitView:C}=ss(),S=()=>{x(),i==null||i()},E=()=>{v(),s==null||s()},I=()=>{C(o),a==null||a()},P=()=>{g.setState({nodesDraggable:!h,nodesConnectable:!h,elementsSelectable:!h}),l==null||l(!h)},M=d==="horizontal"?"horizontal":"vertical";return b.jsxs(Il,{className:et(["react-flow__controls",M,c]),position:f,style:e,"data-testid":"rf__controls","aria-label":p,children:[t&&b.jsxs(b.Fragment,{children:[b.jsx(js,{onClick:S,className:"react-flow__controls-zoomin",title:"zoom in","aria-label":"zoom in",disabled:m,children:b.jsx(yP,{})}),b.jsx(js,{onClick:E,className:"react-flow__controls-zoomout",title:"zoom out","aria-label":"zoom out",disabled:y,children:b.jsx(bP,{})})]}),n&&b.jsx(js,{className:"react-flow__controls-fitview",onClick:I,title:"fit view","aria-label":"fit view",children:b.jsx(vP,{})}),r&&b.jsx(js,{className:"react-flow__controls-interactive",onClick:P,title:"toggle interactivity","aria-label":"toggle interactivity",children:h?b.jsx(wP,{}):b.jsx(xP,{})}),u]})}nx.displayName="Controls";N.memo(nx);function _P({id:e,x:t,y:n,width:r,height:o,style:i,color:s,strokeColor:a,strokeWidth:l,className:c,borderRadius:u,shapeRendering:f,selected:d,onClick:p}){const{background:g,backgroundColor:h}=i||{},y=s||g||h;return b.jsx("rect",{className:et(["react-flow__minimap-node",{selected:d},c]),x:t,y:n,rx:u,ry:u,width:r,height:o,style:{fill:y,stroke:a,strokeWidth:l},shapeRendering:f,onClick:p?m=>p(m,e):void 0})}const SP=N.memo(_P),EP=e=>e.nodes.map(t=>t.id),Lc=e=>e instanceof Function?e:()=>e;function IP({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:r=5,nodeStrokeWidth:o,nodeComponent:i=SP,onClick:s}){const a=Ce(EP,ze),l=Lc(t),c=Lc(e),u=Lc(n),f=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return b.jsx(b.Fragment,{children:a.map(d=>b.jsx(AP,{id:d,nodeColorFunc:l,nodeStrokeColorFunc:c,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:o,NodeComponent:i,onClick:s,shapeRendering:f},d))})}function kP({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:o,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:a,onClick:l}){const{node:c,x:u,y:f,width:d,height:p}=Ce(g=>{const{internals:h}=g.nodeLookup.get(e),y=h.userNode,{x:m,y:x}=h.positionAbsolute,{width:v,height:C}=Wn(y);return{node:y,x:m,y:x,width:v,height:C}},ze);return!c||c.hidden||!iv(c)?null:b.jsx(a,{x:u,y:f,width:d,height:p,style:c.style,selected:!!c.selected,className:r(c),color:t(c),borderRadius:o,strokeColor:n(c),strokeWidth:i,shapeRendering:s,onClick:l,id:c.id})}const AP=N.memo(kP);var RP=N.memo(IP);const TP=200,NP=150,PP=e=>!e.hidden,OP=e=>{const t={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:t,boundingRect:e.nodeLookup.size>0?rv(os(e.nodeLookup,{filter:PP}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height}},MP="react-flow__minimap-desc";function rx({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:o="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:a,bgColor:l,maskColor:c,maskStrokeColor:u,maskStrokeWidth:f,position:d="bottom-right",onClick:p,onNodeClick:g,pannable:h=!1,zoomable:y=!1,ariaLabel:m="React Flow mini map",inversePan:x,zoomStep:v=10,offsetScale:C=5}){const S=Ge(),E=N.useRef(null),{boundingRect:I,viewBB:P,rfId:M,panZoom:w,translateExtent:R,flowWidth:O,flowHeight:L}=Ce(OP,ze),A=(e==null?void 0:e.width)??TP,j=(e==null?void 0:e.height)??NP,D=I.width/A,z=I.height/j,V=Math.max(D,z),F=V*A,_=V*j,G=C*V,$=I.x-(F-I.width)/2-G,T=I.y-(_-I.height)/2-G,H=F+G*2,J=_+G*2,W=`${MP}-${M}`,X=N.useRef(0),U=N.useRef();X.current=V,N.useEffect(()=>{if(E.current&&w)return U.current=nT({domNode:E.current,panZoom:w,getTransform:()=>S.getState().transform,getViewScale:()=>X.current}),()=>{var oe;(oe=U.current)==null||oe.destroy()}},[w]),N.useEffect(()=>{var oe;(oe=U.current)==null||oe.update({translateExtent:R,width:O,height:L,inversePan:x,pannable:h,zoomStep:v,zoomable:y})},[h,y,x,v,R,O,L]);const Q=p?oe=>{var fe;const[Z,ue]=((fe=U.current)==null?void 0:fe.pointer(oe))||[0,0];p(oe,{x:Z,y:ue})}:void 0,ne=g?N.useCallback((oe,Z)=>{const ue=S.getState().nodeLookup.get(Z).internals.userNode;g(oe,ue)},[]):void 0;return b.jsx(Il,{position:d,style:{...e,"--xy-minimap-background-color-props":typeof l=="string"?l:void 0,"--xy-minimap-mask-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof f=="number"?f*V:void 0,"--xy-minimap-node-background-color-props":typeof r=="string"?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:et(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:b.jsxs("svg",{width:A,height:j,viewBox:`${$} ${T} ${H} ${J}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":W,ref:E,onClick:Q,children:[m&&b.jsx("title",{id:W,children:m}),b.jsx(RP,{onClick:ne,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:o,nodeStrokeWidth:s,nodeComponent:a}),b.jsx("path",{className:"react-flow__minimap-mask",d:`M${$-G},${T-G}h${H+G*2}v${J+G*2}h${-H-G*2}z
|
|
60
|
+
M${P.x},${P.y}h${P.width}v${P.height}h${-P.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}rx.displayName="MiniMap";const DP=N.memo(rx);function FP({nodeId:e,position:t,variant:n=Ci.Handle,className:r,style:o={},children:i,color:s,minWidth:a=10,minHeight:l=10,maxWidth:c=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:f=!1,shouldResize:d,onResizeStart:p,onResize:g,onResizeEnd:h}){const y=Dv(),m=typeof e=="string"?e:y,x=Ge(),v=N.useRef(null),C=n===Ci.Line?"right":"bottom-right",S=t??C,E=N.useRef(null);N.useEffect(()=>{if(!(!v.current||!m))return E.current||(E.current=yT({domNode:v.current,nodeId:m,getStoreItems:()=>{const{nodeLookup:w,transform:R,snapGrid:O,snapToGrid:L,nodeOrigin:A,domNode:j}=x.getState();return{nodeLookup:w,transform:R,snapGrid:O,snapToGrid:L,nodeOrigin:A,paneDomNode:j}},onChange:(w,R)=>{const{triggerNodeChanges:O,nodeLookup:L,parentLookup:A,nodeOrigin:j}=x.getState(),D=[],z={x:w.x,y:w.y},V=L.get(m);if(V&&V.expandParent&&V.parentId){const F=V.origin??j,_=w.width??V.measured.width??0,G=w.height??V.measured.height??0,$={id:V.id,parentId:V.parentId,rect:{width:_,height:G,...sv({x:w.x??V.position.x,y:w.y??V.position.y},{width:_,height:G},V.parentId,L,F)}},T=Rd([$],L,A,j);D.push(...T),z.x=w.x?Math.max(F[0]*_,w.x):void 0,z.y=w.y?Math.max(F[1]*G,w.y):void 0}if(z.x!==void 0&&z.y!==void 0){const F={id:m,type:"position",position:{...z}};D.push(F)}if(w.width!==void 0&&w.height!==void 0){const F={id:m,type:"dimensions",resizing:!0,setAttributes:!0,dimensions:{width:w.width,height:w.height}};D.push(F)}for(const F of R){const _={...F,type:"position"};D.push(_)}O(D)},onEnd:({width:w,height:R})=>{const O={id:m,type:"dimensions",resizing:!1,dimensions:{width:w,height:R}};x.getState().triggerNodeChanges([O])}})),E.current.update({controlPosition:S,boundaries:{minWidth:a,minHeight:l,maxWidth:c,maxHeight:u},keepAspectRatio:f,onResizeStart:p,onResize:g,onResizeEnd:h,shouldResize:d}),()=>{var w;(w=E.current)==null||w.destroy()}},[S,a,l,c,u,f,p,g,h,d]);const I=S.split("-"),P=n===Ci.Line?"borderColor":"backgroundColor",M=s?{...o,[P]:s}:o;return b.jsx("div",{className:et(["react-flow__resize-control","nodrag",...I,n,r]),ref:v,style:M,children:i})}N.memo(FP);const jP=({on_node_change:e,on_edge_change:t,on_connect:n})=>{const r=e||(s=>{}),o=n||(s=>{});return dt((s,a)=>({nodes:[],edges:[],onNodesChange:l=>{s({nodes:Rv(l,a().nodes)}),r(l)},onEdgesChange:l=>{s({edges:Tv(l,a().edges)})},onConnect:l=>{l.source==null||l.target==null||o(l)}}))},jg=({src_nid:e,src_ioid:t,trg_nid:n,trg_ioid:r})=>[`${e}:${t}`,`${n}:${r}`].sort().join("--");function LP(e){console.error("Unhandled case: "+e)}const BP=e=>{const t=e.v?Number(e.v):0;if(t>0)throw new Error("Plugin version is too new");return e};class zP{constructor(t){this.iostore=t}get connected(){return this.iostore.getState().connected}set connected(t){this.iostore.setState({connected:t})}get does_trigger(){return this.iostore.getState().does_trigger}set does_trigger(t){this.iostore.setState({does_trigger:t})}get full_id(){return this.iostore.getState().full_id}set full_id(t){this.iostore.setState({full_id:t})}get id(){return this.iostore.getState().id}set id(t){this.iostore.setState({id:t})}get is_input(){return this.iostore.getState().is_input}set is_input(t){this.iostore.setState({is_input:t})}get name(){return this.iostore.getState().name}set name(t){this.iostore.setState({name:t})}get node(){return this.iostore.getState().node}set node(t){this.iostore.setState({node:t})}get type(){return this.iostore.getState().type}set type(t){this.iostore.setState({type:t})}get value(){return this.iostore.valuestore.getState().preview}set value(t){this.iostore.updateValueStore({preview:t})}get fullvalue(){return this.iostore.valuestore.getState().full}set fullvalue(t){this.iostore.updateValueStore({full:t})}get render_options(){return this.iostore.getState().render_options}set render_options(t){this.iostore.setState({render_options:t})}get hidden(){return this.iostore.getState().hidden}set hidden(t){this.iostore.setState({hidden:t})}get try_get_full_value(){return this.iostore.getState().try_get_full_value}get set_hidden(){return this.iostore.getState().set_hidden}}const eo=e=>t=>{const{iostore:n,...r}=t,o=new zP(n);return e({...r,io:o})},VP=e=>{const t=e.v?Number(e.v):0;if(t>1)throw new Error("Plugin version is too new");if(t===1)return e;const n=BP(e);return{...n,renderpluginfactory:o=>{var c;const i=((c=n.renderpluginfactory)==null?void 0:c.call(n,o))||{},s=n.RendererPlugin||{},a=Object.keys({...s,...i}),l={};for(const u of a)switch(u){case"input_renderers":const f={};for(const[m,x]of Object.entries(s.input_renderers||{}))x!==void 0&&(f[m]=eo(x));l.input_renderers=f;break;case"output_renderers":const d={};for(const[m,x]of Object.entries(s.output_renderers||{}))x!==void 0&&(d[m]=eo(x));l.output_renderers=d;break;case"handle_preview_renderers":const p={};for(const[m,x]of Object.entries(s.handle_preview_renderers||{}))x!==void 0&&(p[m]=eo(x));l.handle_preview_renderers=p;break;case"data_overlay_renderers":const g={};for(const[m,x]of Object.entries(s.data_overlay_renderers||{}))x!==void 0&&(g[m]=eo(x));l.data_overlay_renderers=g;break;case"data_preview_renderers":const h={};for(const[m,x]of Object.entries(s.data_preview_renderers||{}))x!==void 0&&(h[m]=eo(x));l.data_preview_renderers=h;break;case"data_view_renderers":const y={};for(const[m,x]of Object.entries(s.data_view_renderers||{}))x!==void 0&&(y[m]=eo(x));l.data_view_renderers=y;break;default:LP(u)}return l},v:1}},GP=e=>VP(e),yt={DEBUG:0,INFO:10,WARN:20,ERROR:30},$P=yt.INFO,Lg=e=>typeof e=="string"?e:e===yt.DEBUG?"DEBUG":e===yt.INFO?"INFO":e===yt.WARN?"WARN":e===yt.ERROR?"ERROR":"UNKNOWN";function HP(){const e=[];return function(t,n){if(typeof n!="object"||n===null)return n;for(;e.length>0&&e.at(-1)!==this;)e.pop();return e.includes(n)?"[Circular]":(e.push(n),n)}}const WP=e=>{if(typeof e=="number")return e;const t=e.toLowerCase();if(t==="debug")return yt.DEBUG;if(t==="info")return yt.INFO;if(t==="warn"||t==="warning")return yt.WARN;if(t==="error")return yt.ERROR;throw new Error(`Unknown log level: ${e}`)};class ox{constructor(t,n=yt.INFO){this.name=t,this.level=WP(n),this._level_name=Lg(n)}set_level(t){this.level=t,this._level_name=Lg(t)}_fomat_message(t,...n){return`[${this.name}] ${this._level_name}: ${t} ${n.map(r=>JSON.stringify(r,HP())).join(" ")}`}debug(t,...n){this.level<=yt.DEBUG&&console.debug(this._fomat_message(t,...n))}info(t,...n){this.level<=yt.INFO&&console.info(this._fomat_message(t,...n))}warn(t,...n){this.level<=yt.WARN&&console.warn(this._fomat_message(t,...n))}error(t,...n){this.level<=yt.ERROR&&console.error(this._fomat_message(t,...n))}}const tf=!1,XP=(e,t)=>{const n=e.properties||{};n["frontend:size"]||(n["frontend:size"]=[200,100]);const r=n["frontend:pos"];if(!r||r.length!==2||isNaN(r[0])||r[0]===null||isNaN(r[1])||r[1]===null)if(!t||!t.rf_instance||t.reactflowRef===null)n["frontend:pos"]=[0,0];else{const i=t.reactflowRef.getBoundingClientRect(),s=i.left+i.width/2,a=i.top+i.height/2,l=t.rf_instance.screenToFlowPosition({x:s,y:a});n["frontend:pos"]=[l.x-n["frontend:size"][0]/2,l.y-n["frontend:size"][0]/2]}n["frontend:collapsed"]||(n["frontend:collapsed"]=!1),e.properties=n},YP=(e,t)=>{const n=e.getState();if(XP(n,t),n.id===void 0)throw new Error("Node must have an id");const r={nodestore:e};return{position:{x:n.properties["frontend:pos"][0],y:n.properties["frontend:pos"][1]},data:r,type:"default",...n}},Nd=e=>{const t={...e},n=x=>{var C;const v=d.getState();if(x.from_remote){let S=p.get_node(x.node.id,!1);if(S)return;if(!S)try{S=Y2(m,x.node),p.nodesstates.set(x.node.id,S)}catch(P){m.logger.error(`Failed to create node store ${P}`);return}const E=S.getState();m.logger.info("Add node",E.id,E.name);const I=[...v.nodes,YP(S,m)];d.setState({nodes:I});for(const P in x.node.io){const M=x.node.io[P].id;M!==void 0&&((C=m.worker)==null||C.get_io_value({nid:x.node.id,ioid:M}))}setTimeout(()=>{var P;(P=m.worker)==null||P.call_hooks("node_added",{node:E.id})},0)}},r=x=>{if(x.node.in_trigger&&(x.node.error=void 0),x.from_remote){const v=p.get_node(x.id,!1);if(!v){console.error("Node not found to update",x.id);return}v.update(x.node)}else m.worker&&m.worker.locally_update_node(x)},o=x=>{var v;m.logger.info("Deleting node",x.id),x.from_remote?d.getState().onNodesChange([{type:"remove",id:x.id}]):(v=m.worker)==null||v.remove_node(x.id)},i=x=>{m.logger.error("Error",x),a({type:"update",id:x.id,node:{in_trigger:!1,error:x.error},from_remote:!0})},s=x=>{var v;x.from_remote?a({type:"update",id:x.id,node:{in_trigger:!0,error:void 0},from_remote:!0}):(v=m.worker)==null||v.trigger_node(x.id)},a=x=>{switch(x.type){case"add":n(x);break;case"update":r(x);break;case"delete":o(x);break;case"error":i(x);break;case"trigger":s(x);break;default:m.logger.error("Unknown node action",x)}},l=x=>{var C,S,E,I;const v=d.getState();switch(x.type){case"add":if(x.from_remote){const P=v.edges,M=jg(x);if(P.some(R=>R.id===M))return;const w={id:M,source:x.src_nid,target:x.trg_nid,sourceHandle:x.src_ioid,targetHandle:x.trg_ioid,className:"funcnodes-edge animated"};m.logger.info("Adding edge",w),d.setState({edges:[...P,w]}),(C=m.worker)==null||C.get_remote_node_state(x.src_nid),(S=m.worker)==null||S.get_remote_node_state(x.trg_nid)}break;case"delete":if(x.from_remote){const P=v.edges,M=jg(x);m.logger.info("Deleting edge",M);const w=P.filter(R=>R.id!==M);d.setState({edges:w}),(E=m.worker)==null||E.get_remote_node_state(x.src_nid),(I=m.worker)==null||I.get_remote_node_state(x.trg_nid)}break;default:m.logger.error("Unknown edge action",x)}},d=jP({on_node_change:x=>{for(const v of x)switch(v.type){case"position":v.position&&a({type:"update",id:v.id,node:{properties:{"frontend:pos":[v.position.x,v.position.y]}},from_remote:!1});break;case"dimensions":v.dimensions&&a({type:"update",id:v.id,node:{properties:{"frontend:size":[v.dimensions.width,v.dimensions.height]}},from_remote:!1});break}},on_edge_change:x=>{},on_connect:x=>{x.source===null||x.target===null||x.sourceHandle===null||x.targetHandle===null||!m.worker||m.worker.add_edge({src_nid:x.source,src_ioid:x.sourceHandle,trg_nid:x.target,trg_ioid:x.targetHandle,replace:!0})}}),p=O2({}),g=P2(),h=()=>{var x,v;(x=m.worker)==null||x.disconnect(),m.set_worker(void 0),(v=m.workermanager)==null||v.setWorker(void 0),m.lib.libstate.getState().set({lib:{shelves:[]},external_worker:[]}),m.nodespace.nodesstates.clear(),m.useReactFlowStore.setState({nodes:[],edges:[]}),m.auto_progress()},y=x=>{var C;if(!m.rf_instance)return;x=Array.isArray(x)?x:[x];const v=m.useReactFlowStore.getState().nodes.filter(S=>x.includes(S.id));v.length>0&&((C=m.rf_instance)==null||C.fitView({padding:.2,nodes:v}))},m={local_settings:dt((x,v)=>({view_settings:{},update_view_settings:C=>{const S=m.local_settings.getState().view_settings,{new_obj:E,change:I}=qt(S,C);I&&m.local_settings.setState(P=>({...P,view_settings:E}))}})),local_state:dt((x,v)=>({selected_nodes:[],selected_edges:[],funcnodescontainerRef:null})),options:t,lib:g,workermanager:void 0,workers:dt((x,v)=>({})),workerstate:dt((x,v)=>({is_open:!1})),render_options:dt((x,v)=>({})),progress_state:dt((x,v)=>({message:"please select worker",status:"info",progress:0,blocking:!1})),update_render_options:x=>{const v=m.render_options.getState(),{new_obj:C,change:S}=qt(v,x);S&&m.render_options.setState(C)},worker:void 0,_unsubscribeFromWorker:void 0,set_worker:x=>{x!==m.worker&&(m._unsubscribeFromWorker&&(m._unsubscribeFromWorker(),m._unsubscribeFromWorker=void 0),x&&(m._unsubscribeFromWorker=x.state.subscribe(v=>{m.workerstate.setState(v)}),m.workerstate.setState(x.state.getState())),m.worker=x,x==null||x.set_zustand(m))},nodespace:p,useReactFlowStore:d,on_node_action:a,on_edge_action:l,reactflowRef:null,clear_all:h,center_node:y,center_all:()=>{var x;console.log("center all",m.rf_instance),(x=m.rf_instance)==null||x.fitView({padding:.2})},set_progress:x=>{if(x.message==="")return m.auto_progress();const v=m.progress_state.getState(),{new_obj:C,change:S}=qt(v,x);S&&m.progress_state.setState(C)},auto_progress:()=>{if(m.workermanager!==void 0&&!m.workermanager.open)return m.set_progress({progress:0,message:"connecting to worker manager",status:"error",blocking:!1});if(m.worker===void 0)return m.set_progress({progress:0,message:"please select worker",status:"error",blocking:!1});if(!m.worker.is_open)return m.set_progress({progress:0,message:"connecting to worker",status:"info",blocking:!0});m.set_progress({progress:1,message:"running",status:"info",blocking:!1})},plugins:dt((x,v)=>({})),add_plugin:(x,v)=>{if(v===void 0)return;const C=GP(v);m.plugins.setState(S=>({...S,[x]:C}))},dev_settings:{debug:!0},logger:new ox("fn",$P)};return m};function ix(e,t){return function(){return e.apply(t,arguments)}}const{toString:UP}=Object.prototype,{getPrototypeOf:Pd}=Object,Al=(e=>t=>{const n=UP.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rn=e=>(e=e.toLowerCase(),t=>Al(t)===e),Rl=e=>t=>typeof t===e,{isArray:Go}=Array,Bi=Rl("undefined");function ZP(e){return e!==null&&!Bi(e)&&e.constructor!==null&&!Bi(e.constructor)&&Rt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sx=rn("ArrayBuffer");function JP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}const qP=Rl("string"),Rt=Rl("function"),ax=Rl("number"),Tl=e=>e!==null&&typeof e=="object",KP=e=>e===!0||e===!1,da=e=>{if(Al(e)!=="object")return!1;const t=Pd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},QP=rn("Date"),eO=rn("File"),tO=rn("Blob"),nO=rn("FileList"),rO=e=>Tl(e)&&Rt(e.pipe),oO=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Rt(e.append)&&((t=Al(e))==="formdata"||t==="object"&&Rt(e.toString)&&e.toString()==="[object FormData]"))},iO=rn("URLSearchParams"),[sO,aO,lO,cO]=["ReadableStream","Request","Response","Headers"].map(rn),uO=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ls(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Go(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let a;for(r=0;r<s;r++)a=i[r],t.call(null,e[a],a,e)}}function lx(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Pr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cx=e=>!Bi(e)&&e!==Pr;function nf(){const{caseless:e}=cx(this)&&this||{},t={},n=(r,o)=>{const i=e&&lx(t,o)||o;da(t[i])&&da(r)?t[i]=nf(t[i],r):da(r)?t[i]=nf({},r):Go(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&ls(arguments[r],n);return t}const fO=(e,t,n,{allOwnKeys:r}={})=>(ls(t,(o,i)=>{n&&Rt(o)?e[i]=ix(o,n):e[i]=o},{allOwnKeys:r}),e),dO=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pO=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},hO=(e,t,n,r)=>{let o,i,s;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!a[s]&&(t[s]=e[s],a[s]=!0);e=n!==!1&&Pd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gO=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},mO=e=>{if(!e)return null;if(Go(e))return e;let t=e.length;if(!ax(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},yO=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Pd(Uint8Array)),bO=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},vO=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},xO=rn("HTMLFormElement"),wO=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Bg=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),CO=rn("RegExp"),ux=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ls(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},_O=e=>{ux(e,(t,n)=>{if(Rt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Rt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},SO=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Go(e)?r(e):r(String(e).split(t)),n},EO=()=>{},IO=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function kO(e){return!!(e&&Rt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const AO=e=>{const t=new Array(10),n=(r,o)=>{if(Tl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Go(r)?[]:{};return ls(r,(s,a)=>{const l=n(s,o+1);!Bi(l)&&(i[a]=l)}),t[o]=void 0,i}}return r};return n(e,0)},RO=rn("AsyncFunction"),TO=e=>e&&(Tl(e)||Rt(e))&&Rt(e.then)&&Rt(e.catch),fx=((e,t)=>e?setImmediate:t?((n,r)=>(Pr.addEventListener("message",({source:o,data:i})=>{o===Pr&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Pr.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Rt(Pr.postMessage)),NO=typeof queueMicrotask<"u"?queueMicrotask.bind(Pr):typeof process<"u"&&process.nextTick||fx,Y={isArray:Go,isArrayBuffer:sx,isBuffer:ZP,isFormData:oO,isArrayBufferView:JP,isString:qP,isNumber:ax,isBoolean:KP,isObject:Tl,isPlainObject:da,isReadableStream:sO,isRequest:aO,isResponse:lO,isHeaders:cO,isUndefined:Bi,isDate:QP,isFile:eO,isBlob:tO,isRegExp:CO,isFunction:Rt,isStream:rO,isURLSearchParams:iO,isTypedArray:yO,isFileList:nO,forEach:ls,merge:nf,extend:fO,trim:uO,stripBOM:dO,inherits:pO,toFlatObject:hO,kindOf:Al,kindOfTest:rn,endsWith:gO,toArray:mO,forEachEntry:bO,matchAll:vO,isHTMLForm:xO,hasOwnProperty:Bg,hasOwnProp:Bg,reduceDescriptors:ux,freezeMethods:_O,toObjectSet:SO,toCamelCase:wO,noop:EO,toFiniteNumber:IO,findKey:lx,global:Pr,isContextDefined:cx,isSpecCompliantForm:kO,toJSONObject:AO,isAsyncFn:RO,isThenable:TO,setImmediate:fx,asap:NO};function be(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Y.inherits(be,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Y.toJSONObject(this.config),code:this.code,status:this.status}}});const dx=be.prototype,px={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{px[e]={value:e}});Object.defineProperties(be,px);Object.defineProperty(dx,"isAxiosError",{value:!0});be.from=(e,t,n,r,o,i)=>{const s=Object.create(dx);return Y.toFlatObject(e,s,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),be.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};const PO=null;function rf(e){return Y.isPlainObject(e)||Y.isArray(e)}function hx(e){return Y.endsWith(e,"[]")?e.slice(0,-2):e}function zg(e,t,n){return e?e.concat(t).map(function(o,i){return o=hx(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function OO(e){return Y.isArray(e)&&!e.some(rf)}const MO=Y.toFlatObject(Y,{},null,function(t){return/^is[A-Z]/.test(t)});function Nl(e,t,n){if(!Y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(h,y){return!Y.isUndefined(y[h])});const r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(t);if(!Y.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!l&&Y.isBlob(g))throw new be("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,h,y){let m=g;if(g&&!y&&typeof g=="object"){if(Y.endsWith(h,"{}"))h=r?h:h.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&OO(g)||(Y.isFileList(g)||Y.endsWith(h,"[]"))&&(m=Y.toArray(g)))return h=hx(h),m.forEach(function(v,C){!(Y.isUndefined(v)||v===null)&&t.append(s===!0?zg([h],C,i):s===null?h:h+"[]",c(v))}),!1}return rf(g)?!0:(t.append(zg(y,h,i),c(g)),!1)}const f=[],d=Object.assign(MO,{defaultVisitor:u,convertValue:c,isVisitable:rf});function p(g,h){if(!Y.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+h.join("."));f.push(g),Y.forEach(g,function(m,x){(!(Y.isUndefined(m)||m===null)&&o.call(t,m,Y.isString(x)?x.trim():x,h,d))===!0&&p(m,h?h.concat(x):[x])}),f.pop()}}if(!Y.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Vg(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Od(e,t){this._pairs=[],e&&Nl(e,this,t)}const gx=Od.prototype;gx.append=function(t,n){this._pairs.push([t,n])};gx.toString=function(t){const n=t?function(r){return t.call(this,r,Vg)}:Vg;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function DO(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mx(e,t,n){if(!t)return e;const r=n&&n.encode||DO;Y.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Y.isURLSearchParams(t)?t.toString():new Od(t,n).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Gg{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yx={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FO=typeof URLSearchParams<"u"?URLSearchParams:Od,jO=typeof FormData<"u"?FormData:null,LO=typeof Blob<"u"?Blob:null,BO={isBrowser:!0,classes:{URLSearchParams:FO,FormData:jO,Blob:LO},protocols:["http","https","file","blob","url","data"]},Md=typeof window<"u"&&typeof document<"u",of=typeof navigator=="object"&&navigator||void 0,zO=Md&&(!of||["ReactNative","NativeScript","NS"].indexOf(of.product)<0),VO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",GO=Md&&window.location.href||"http://localhost",$O=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Md,hasStandardBrowserEnv:zO,hasStandardBrowserWebWorkerEnv:VO,navigator:of,origin:GO},Symbol.toStringTag,{value:"Module"})),st={...$O,...BO};function HO(e,t){return Nl(e,new st.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return st.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function WO(e){return Y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function XO(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function bx(e){function t(n,r,o,i){let s=n[i++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),l=i>=n.length;return s=!s&&Y.isArray(o)?o.length:s,l?(Y.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!a):((!o[s]||!Y.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&Y.isArray(o[s])&&(o[s]=XO(o[s])),!a)}if(Y.isFormData(e)&&Y.isFunction(e.entries)){const n={};return Y.forEachEntry(e,(r,o)=>{t(WO(r),o,n,0)}),n}return null}function YO(e,t,n){if(Y.isString(e))try{return(t||JSON.parse)(e),Y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const cs={transitional:yx,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Y.isObject(t);if(i&&Y.isHTMLForm(t)&&(t=new FormData(t)),Y.isFormData(t))return o?JSON.stringify(bx(t)):t;if(Y.isArrayBuffer(t)||Y.isBuffer(t)||Y.isStream(t)||Y.isFile(t)||Y.isBlob(t)||Y.isReadableStream(t))return t;if(Y.isArrayBufferView(t))return t.buffer;if(Y.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return HO(t,this.formSerializer).toString();if((a=Y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Nl(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),YO(t)):t}],transformResponse:[function(t){const n=this.transitional||cs.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Y.isResponse(t)||Y.isReadableStream(t))return t;if(t&&Y.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(s)throw a.name==="SyntaxError"?be.from(a,be.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:st.classes.FormData,Blob:st.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],e=>{cs.headers[e]={}});const UO=Y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),ZO=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
61
|
+
`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&UO[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$g=Symbol("internals");function si(e){return e&&String(e).trim().toLowerCase()}function pa(e){return e===!1||e==null?e:Y.isArray(e)?e.map(pa):String(e)}function JO(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const qO=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Bc(e,t,n,r,o){if(Y.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Y.isString(t)){if(Y.isString(r))return t.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(t)}}function KO(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function QO(e,t){const n=Y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}let vt=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(a,l,c){const u=si(l);if(!u)throw new Error("header name must be a non-empty string");const f=Y.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=pa(a))}const s=(a,l)=>Y.forEach(a,(c,u)=>i(c,u,l));if(Y.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Y.isString(t)&&(t=t.trim())&&!qO(t))s(ZO(t),n);else if(Y.isHeaders(t))for(const[a,l]of t.entries())i(l,a,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=si(t),t){const r=Y.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return JO(o);if(Y.isFunction(n))return n.call(this,o,r);if(Y.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=si(t),t){const r=Y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Bc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(s){if(s=si(s),s){const a=Y.findKey(r,s);a&&(!n||Bc(r,r[a],a,n))&&(delete r[a],o=!0)}}return Y.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Bc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Y.forEach(this,(o,i)=>{const s=Y.findKey(r,i);if(s){n[s]=pa(o),delete n[i];return}const a=t?KO(i):String(i).trim();a!==i&&delete n[i],n[a]=pa(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Y.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
62
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[$g]=this[$g]={accessors:{}}).accessors,o=this.prototype;function i(s){const a=si(s);r[a]||(QO(o,s),r[a]=!0)}return Y.isArray(t)?t.forEach(i):i(t),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Y.reduceDescriptors(vt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Y.freezeMethods(vt);function zc(e,t){const n=this||cs,r=t||n,o=vt.from(r.headers);let i=r.data;return Y.forEach(e,function(a){i=a.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function vx(e){return!!(e&&e.__CANCEL__)}function $o(e,t,n){be.call(this,e??"canceled",be.ERR_CANCELED,t,n),this.name="CanceledError"}Y.inherits($o,be,{__CANCEL__:!0});function xx(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new be("Request failed with status code "+n.status,[be.ERR_BAD_REQUEST,be.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function eM(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tM(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[i];s||(s=c),n[o]=l,r[o]=c;let f=i,d=0;for(;f!==o;)d+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-s<t)return;const p=u&&c-u;return p?Math.round(d*1e3/p):void 0}}function nM(e,t){let n=0,r=1e3/t,o,i;const s=(c,u=Date.now())=>{n=u,o=null,i&&(clearTimeout(i),i=null),e.apply(null,c)};return[(...c)=>{const u=Date.now(),f=u-n;f>=r?s(c,u):(o=c,i||(i=setTimeout(()=>{i=null,s(o)},r-f)))},()=>o&&s(o)]}const Ba=(e,t,n=3)=>{let r=0;const o=tM(50,250);return nM(i=>{const s=i.loaded,a=i.lengthComputable?i.total:void 0,l=s-r,c=o(l),u=s<=a;r=s;const f={loaded:s,total:a,progress:a?s/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&u?(a-s)/c:void 0,event:i,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(f)},n)},Hg=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Wg=e=>(...t)=>Y.asap(()=>e(...t)),rM=st.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,st.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(st.origin),st.navigator&&/(msie|trident)/i.test(st.navigator.userAgent)):()=>!0,oM=st.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const s=[e+"="+encodeURIComponent(t)];Y.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&s.push("path="+r),Y.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iM(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sM(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wx(e,t,n){let r=!iM(t);return e&&(r||n==!1)?sM(e,t):t}const Xg=e=>e instanceof vt?{...e}:e;function Vr(e,t){t=t||{};const n={};function r(c,u,f,d){return Y.isPlainObject(c)&&Y.isPlainObject(u)?Y.merge.call({caseless:d},c,u):Y.isPlainObject(u)?Y.merge({},u):Y.isArray(u)?u.slice():u}function o(c,u,f,d){if(Y.isUndefined(u)){if(!Y.isUndefined(c))return r(void 0,c,f,d)}else return r(c,u,f,d)}function i(c,u){if(!Y.isUndefined(u))return r(void 0,u)}function s(c,u){if(Y.isUndefined(u)){if(!Y.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:a,headers:(c,u,f)=>o(Xg(c),Xg(u),f,!0)};return Y.forEach(Object.keys(Object.assign({},e,t)),function(u){const f=l[u]||o,d=f(e[u],t[u],u);Y.isUndefined(d)&&f!==a||(n[u]=d)}),n}const Cx=e=>{const t=Vr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:s,auth:a}=t;t.headers=s=vt.from(s),t.url=mx(wx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&s.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(Y.isFormData(n)){if(st.hasStandardBrowserEnv||st.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[c,...u]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([c||"multipart/form-data",...u].join("; "))}}if(st.hasStandardBrowserEnv&&(r&&Y.isFunction(r)&&(r=r(t)),r||r!==!1&&rM(t.url))){const c=o&&i&&oM.read(i);c&&s.set(o,c)}return t},aM=typeof XMLHttpRequest<"u",lM=aM&&function(e){return new Promise(function(n,r){const o=Cx(e);let i=o.data;const s=vt.from(o.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:c}=o,u,f,d,p,g;function h(){p&&p(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(u),o.signal&&o.signal.removeEventListener("abort",u)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function m(){if(!y)return;const v=vt.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),S={data:!a||a==="text"||a==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:v,config:e,request:y};xx(function(I){n(I),h()},function(I){r(I),h()},S),y=null}"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(m)},y.onabort=function(){y&&(r(new be("Request aborted",be.ECONNABORTED,e,y)),y=null)},y.onerror=function(){r(new be("Network Error",be.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||yx;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new be(C,S.clarifyTimeoutError?be.ETIMEDOUT:be.ECONNABORTED,e,y)),y=null},i===void 0&&s.setContentType(null),"setRequestHeader"in y&&Y.forEach(s.toJSON(),function(C,S){y.setRequestHeader(S,C)}),Y.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),a&&a!=="json"&&(y.responseType=o.responseType),c&&([d,g]=Ba(c,!0),y.addEventListener("progress",d)),l&&y.upload&&([f,p]=Ba(l),y.upload.addEventListener("progress",f),y.upload.addEventListener("loadend",p)),(o.cancelToken||o.signal)&&(u=v=>{y&&(r(!v||v.type?new $o(null,e,y):v),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(u),o.signal&&(o.signal.aborted?u():o.signal.addEventListener("abort",u)));const x=eM(o.url);if(x&&st.protocols.indexOf(x)===-1){r(new be("Unsupported protocol "+x+":",be.ERR_BAD_REQUEST,e));return}y.send(i||null)})},cM=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(c){if(!o){o=!0,a();const u=c instanceof Error?c:this.reason;r.abort(u instanceof be?u:new $o(u instanceof Error?u.message:u))}};let s=t&&setTimeout(()=>{s=null,i(new be(`timeout ${t} of ms exceeded`,be.ETIMEDOUT))},t);const a=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Y.asap(a),l}},uM=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},fM=async function*(e,t){for await(const n of dM(e))yield*uM(n,t)},dM=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Yg=(e,t,n,r)=>{const o=fM(e,t);let i=0,s,a=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:u}=await o.next();if(c){a(),l.close();return}let f=u.byteLength;if(n){let d=i+=f;n(d)}l.enqueue(new Uint8Array(u))}catch(c){throw a(c),c}},cancel(l){return a(l),o.return()}},{highWaterMark:2})},Pl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",_x=Pl&&typeof ReadableStream=="function",pM=Pl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},hM=_x&&Sx(()=>{let e=!1;const t=new Request(st.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ug=64*1024,sf=_x&&Sx(()=>Y.isReadableStream(new Response("").body)),za={stream:sf&&(e=>e.body)};Pl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!za[t]&&(za[t]=Y.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new be(`Response type '${t}' is not supported`,be.ERR_NOT_SUPPORT,r)})})})(new Response);const gM=async e=>{if(e==null)return 0;if(Y.isBlob(e))return e.size;if(Y.isSpecCompliantForm(e))return(await new Request(st.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Y.isArrayBufferView(e)||Y.isArrayBuffer(e))return e.byteLength;if(Y.isURLSearchParams(e)&&(e=e+""),Y.isString(e))return(await pM(e)).byteLength},mM=async(e,t)=>{const n=Y.toFiniteNumber(e.getContentLength());return n??gM(t)},yM=Pl&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:s,onDownloadProgress:a,onUploadProgress:l,responseType:c,headers:u,withCredentials:f="same-origin",fetchOptions:d}=Cx(e);c=c?(c+"").toLowerCase():"text";let p=cM([o,i&&i.toAbortSignal()],s),g;const h=p&&p.unsubscribe&&(()=>{p.unsubscribe()});let y;try{if(l&&hM&&n!=="get"&&n!=="head"&&(y=await mM(u,r))!==0){let S=new Request(t,{method:"POST",body:r,duplex:"half"}),E;if(Y.isFormData(r)&&(E=S.headers.get("content-type"))&&u.setContentType(E),S.body){const[I,P]=Hg(y,Ba(Wg(l)));r=Yg(S.body,Ug,I,P)}}Y.isString(f)||(f=f?"include":"omit");const m="credentials"in Request.prototype;g=new Request(t,{...d,signal:p,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:m?f:void 0});let x=await fetch(g);const v=sf&&(c==="stream"||c==="response");if(sf&&(a||v&&h)){const S={};["status","statusText","headers"].forEach(M=>{S[M]=x[M]});const E=Y.toFiniteNumber(x.headers.get("content-length")),[I,P]=a&&Hg(E,Ba(Wg(a),!0))||[];x=new Response(Yg(x.body,Ug,I,()=>{P&&P(),h&&h()}),S)}c=c||"text";let C=await za[Y.findKey(za,c)||"text"](x,e);return!v&&h&&h(),await new Promise((S,E)=>{xx(S,E,{data:C,headers:vt.from(x.headers),status:x.status,statusText:x.statusText,config:e,request:g})})}catch(m){throw h&&h(),m&&m.name==="TypeError"&&/fetch/i.test(m.message)?Object.assign(new be("Network Error",be.ERR_NETWORK,e,g),{cause:m.cause||m}):be.from(m,m&&m.code,e,g)}}),af={http:PO,xhr:lM,fetch:yM};Y.forEach(af,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Zg=e=>`- ${e}`,bM=e=>Y.isFunction(e)||e===null||e===!1,Ex={getAdapter:e=>{e=Y.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let s;if(r=n,!bM(n)&&(r=af[(s=String(n)).toLowerCase()],r===void 0))throw new be(`Unknown adapter '${s}'`);if(r)break;o[s||"#"+i]=r}if(!r){const i=Object.entries(o).map(([a,l])=>`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?i.length>1?`since :
|
|
63
|
+
`+i.map(Zg).join(`
|
|
64
|
+
`):" "+Zg(i[0]):"as no adapter specified";throw new be("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:af};function Vc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new $o(null,e)}function Jg(e){return Vc(e),e.headers=vt.from(e.headers),e.data=zc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ex.getAdapter(e.adapter||cs.adapter)(e).then(function(r){return Vc(e),r.data=zc.call(e,e.transformResponse,r),r.headers=vt.from(r.headers),r},function(r){return vx(r)||(Vc(e),r&&r.response&&(r.response.data=zc.call(e,e.transformResponse,r.response),r.response.headers=vt.from(r.response.headers))),Promise.reject(r)})}const Ix="1.8.4",Ol={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Ol[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const qg={};Ol.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ix+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,a)=>{if(t===!1)throw new be(o(s," has been removed"+(n?" in "+n:"")),be.ERR_DEPRECATED);return n&&!qg[s]&&(qg[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,a):!0}};Ol.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function vM(e,t,n){if(typeof e!="object")throw new be("options must be an object",be.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],s=t[i];if(s){const a=e[i],l=a===void 0||s(a,i,e);if(l!==!0)throw new be("option "+i+" must be "+l,be.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new be("Unknown option "+i,be.ERR_BAD_OPTION)}}const ha={assertOptions:vM,validators:Ol},an=ha.validators;let Lr=class{constructor(t){this.defaults=t,this.interceptors={request:new Gg,response:new Gg}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
65
|
+
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Vr(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&ha.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean)},!1),o!=null&&(Y.isFunction(o)?n.paramsSerializer={serialize:o}:ha.assertOptions(o,{encode:an.function,serialize:an.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ha.assertOptions(n,{baseUrl:an.spelling("baseURL"),withXsrfToken:an.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&Y.merge(i.common,i[n.method]);i&&Y.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=vt.concat(s,i);const a=[];let l=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(l=l&&h.synchronous,a.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let u,f=0,d;if(!l){const g=[Jg.bind(this),void 0];for(g.unshift.apply(g,a),g.push.apply(g,c),d=g.length,u=Promise.resolve(n);f<d;)u=u.then(g[f++],g[f++]);return u}d=a.length;let p=n;for(f=0;f<d;){const g=a[f++],h=a[f++];try{p=g(p)}catch(y){h.call(this,y);break}}try{u=Jg.call(this,p)}catch(g){return Promise.reject(g)}for(f=0,d=c.length;f<d;)u=u.then(c[f++],c[f++]);return u}getUri(t){t=Vr(this.defaults,t);const n=wx(t.baseURL,t.url,t.allowAbsoluteUrls);return mx(n,t.params,t.paramsSerializer)}};Y.forEach(["delete","get","head","options"],function(t){Lr.prototype[t]=function(n,r){return this.request(Vr(r||{},{method:t,url:n,data:(r||{}).data}))}});Y.forEach(["post","put","patch"],function(t){function n(r){return function(i,s,a){return this.request(Vr(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Lr.prototype[t]=n(),Lr.prototype[t+"Form"]=n(!0)});let xM=class kx{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const s=new Promise(a=>{r.subscribe(a),i=a}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,a){r.reason||(r.reason=new $o(i,s,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new kx(function(o){t=o}),cancel:t}}};function wM(e){return function(n){return e.apply(null,n)}}function CM(e){return Y.isObject(e)&&e.isAxiosError===!0}const lf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lf).forEach(([e,t])=>{lf[t]=e});function Ax(e){const t=new Lr(e),n=ix(Lr.prototype.request,t);return Y.extend(n,Lr.prototype,t,{allOwnKeys:!0}),Y.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ax(Vr(e,o))},n}const Ye=Ax(cs);Ye.Axios=Lr;Ye.CanceledError=$o;Ye.CancelToken=xM;Ye.isCancel=vx;Ye.VERSION=Ix;Ye.toFormData=Nl;Ye.AxiosError=be;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=wM;Ye.isAxiosError=CM;Ye.mergeConfig=Vr;Ye.AxiosHeaders=vt;Ye.formToJSON=e=>bx(Y.isHTMLForm(e)?new FormData(e):e);Ye.getAdapter=Ex.getAdapter;Ye.HttpStatusCode=lf;Ye.default=Ye;const{Axios:YJ,AxiosError:UJ,CanceledError:ZJ,isCancel:JJ,CancelToken:qJ,VERSION:KJ,all:QJ,Cancel:eq,isAxiosError:tq,spread:nq,toFormData:rq,AxiosHeaders:oq,HttpStatusCode:iq,formToJSON:sq,getAdapter:aq,mergeConfig:lq}=Ye,tt=[];for(let e=0;e<256;++e)tt.push((e+256).toString(16).slice(1));function _M(e,t=0){return(tt[e[t+0]]+tt[e[t+1]]+tt[e[t+2]]+tt[e[t+3]]+"-"+tt[e[t+4]]+tt[e[t+5]]+"-"+tt[e[t+6]]+tt[e[t+7]]+"-"+tt[e[t+8]]+tt[e[t+9]]+"-"+tt[e[t+10]]+tt[e[t+11]]+tt[e[t+12]]+tt[e[t+13]]+tt[e[t+14]]+tt[e[t+15]]).toLowerCase()}let Gc;const SM=new Uint8Array(16);function EM(){if(!Gc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Gc=crypto.getRandomValues.bind(crypto)}return Gc(SM)}const IM=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),Kg={randomUUID:IM};function Rx(e,t,n){var o;if(Kg.randomUUID&&!e)return Kg.randomUUID();e=e||{};const r=e.random??((o=e.rng)==null?void 0:o.call(e))??EM();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,_M(r)}class Tx{constructor(t){this.CHUNK_TIMEOUT=1e4,this.PONGDELAY=2e3,this.blobChunks={},this._hooks=new Map,this._ns_event_intercepts=new Map,this._unique_cmd_outs={},this.uuid=t.uuid,this.on_error=t.on_error||(r=>{var o;(o=this._zustand)==null||o.logger.error(r)}),this.messagePromises=new Map,this._local_nodeupdates=new Map,this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},5e3),this.state=dt((r,o)=>({is_open:!1})),t.zustand&&this.set_zustand(t.zustand),t.on_sync_complete?this.on_sync_complete=t.on_sync_complete:this.on_sync_complete=async()=>{},this._responsive=!1,this._last_pong=Date.now()-this.PONGDELAY*100,setInterval(()=>{this.is_open&&this.send({type:"ping"})},this.PONGDELAY),setInterval(()=>{Date.now()-this._last_pong>this.PONGDELAY*3?this._responsive=!1:this._responsive=!0},this.PONGDELAY*2),setInterval(()=>{const r=Date.now();for(const o in this.blobChunks)r-this.blobChunks[o].timestamp>this.CHUNK_TIMEOUT&&delete this.blobChunks[o]},this.CHUNK_TIMEOUT/2)}_receive_pong(){this._last_pong=Date.now(),this._responsive=!0}set_zustand(t){t!==this._zustand&&(this._zustand=t,t.set_worker(this),this._zustand.auto_progress(),this.stepwise_fullsync())}add_hook(t,n){const r=this._hooks.get(t)||[];return r.push(n),this._hooks.set(t,r),()=>{const i=this._hooks.get(t)||[],s=i.indexOf(n);s>=0&&i.splice(s,1)}}async call_hooks(t,n){const r=[];for(const o of this._hooks.get(t)||[]){const i=o({worker:this,data:n});i instanceof Promise&&r.push(i)}await Promise.all(r)}add_ns_event_intercept(t,n){const r=this._ns_event_intercepts.get(t)||[];return r.push(n),this._ns_event_intercepts.set(t,r),()=>{const i=this._ns_event_intercepts.get(t)||[],s=i.indexOf(n);s>=0&&i.splice(s,1)}}async intercept_ns_event(t){let n=t;for(const r of this._ns_event_intercepts.get(t.event)||[])n=await r(n);return n}get is_open(){return this.state.getState().is_open}set is_open(t){this.state.setState({is_open:t})}async stepwise_fullsync(){this._zustand&&this.is_open&&(await this.sync_lib(),await this.sync_external_worker(),await this.sync_funcnodes_plugins(),await this.sync_nodespace(),await this.sync_view_state(),await this.on_sync_complete(this))}async sync_lib(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_library",wait_for_response:!0,retries:2,unique:!0});this._zustand.lib.libstate.getState().set({lib:t})}async sync_external_worker(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_worker_dependencies",wait_for_response:!0,unique:!0});this._zustand.lib.libstate.getState().set({external_worker:t})}async sync_funcnodes_plugins(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_plugin_keys",wait_for_response:!0,unique:!0,kwargs:{type:"react"}});for(const n of t){const r=await this._send_cmd({cmd:"get_plugin",wait_for_response:!0,kwargs:{key:n,type:"react"},unique:!0});if(r.js)for(const o of r.js){const i=document.createElement("script");i.text=atob(o),document.body.appendChild(i)}if(r.css)for(const o of r.css){const i=document.createElement("style");i.innerHTML=atob(o),document.head.appendChild(i)}if(r.module!==void 0){const o=atob(r.module),i=o.length,s=new Uint8Array(i);for(let u=0;u<i;u++)s[u]=o.charCodeAt(u);const a=new Blob([s],{type:"application/javascript"}),l=URL.createObjectURL(a),c=await import(l);URL.revokeObjectURL(l),this._zustand.add_plugin(n,c.default)}}}async sync_view_state(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"view_state",wait_for_response:!0,unique:!0});t.renderoptions&&this._zustand.update_render_options(t.renderoptions);const n=t.nodes;if(n)for(const r in n){const o={};Mh(o,n[r]),this._zustand.on_node_action({type:"update",node:o,id:r,from_remote:!0})}}async sync_nodespace(){if(!this._zustand||!this.is_open)return;const t=await this._send_cmd({cmd:"get_nodes",kwargs:{with_frontend:!0},wait_for_response:!0,unique:!0});for(const r of t)this._receive_node_added(r);const n=await this._send_cmd({cmd:"get_edges",wait_for_response:!0,unique:!0});for(const r of n)this._receive_edge_added(...r)}async fullsync(){if(!this._zustand||!this.is_open)return;let t;for(;;)try{t=await this._send_cmd({cmd:"full_state",unique:!0});break}catch(r){this._zustand.logger.error("Error in fullsync",r)}this._zustand.logger.debug("Full state",t),this._zustand.lib.libstate.getState().set({lib:t.backend.lib,external_worker:t.worker_dependencies}),t.view.renderoptions&&this._zustand.update_render_options(t.view.renderoptions);const n=t.view.nodes;for(const r of t.backend.nodes){const o=n[r.id];o!==void 0&&Mh(r,o),this._receive_node_added(r)}for(const r of t.backend.edges)this._receive_edge_added(...r)}async _receive_edge_added(t,n,r,o){this._zustand&&this._zustand.on_edge_action({type:"add",from_remote:!0,src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o})}async trigger_node(t){await this._send_cmd({cmd:"trigger_node",kwargs:{nid:t},wait_for_response:!1})}async add_node(t){const n=await this._send_cmd({cmd:"add_node",kwargs:{id:t}});this._receive_node_added(n)}async remove_node(t){await this._send_cmd({cmd:"remove_node",kwargs:{id:t}})}async _receive_node_added(t){this._zustand&&this._zustand.on_node_action({type:"add",node:t,id:t.id,from_remote:!0})}add_edge({src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o,replace:i=!1}){return this._send_cmd({cmd:"add_edge",kwargs:{src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o,replace:i}})}remove_edge({src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o}){return this._send_cmd({cmd:"remove_edge",kwargs:{src_nid:t,src_ioid:n,trg_nid:r,trg_ioid:o}})}async add_external_worker({module:t,cls_module:n,cls_name:r}){return await this._send_cmd({cmd:"add_external_worker",kwargs:{module:t,cls_module:n,cls_name:r}})}sync_local_node_updates(){clearTimeout(this._nodeupdatetimer),this._local_nodeupdates.forEach(async(t,n)=>{const r=await this._send_cmd({cmd:"update_node",kwargs:{nid:n,data:t},wait_for_response:!0});this._zustand&&this._zustand.on_node_action({type:"update",node:r,id:n,from_remote:!0})}),this._local_nodeupdates.clear(),this._nodeupdatetimer=setTimeout(()=>{this.sync_local_node_updates()},200)}locally_update_node(t){const n=this._local_nodeupdates.get(t.id);if(n){const{new_obj:r,change:o}=qt(n,t.node);o&&this._local_nodeupdates.set(t.id,r)}else this._local_nodeupdates.set(t.id,t.node);t.immediate&&this.sync_local_node_updates()}async get_remote_node_state(t){const n=await this._send_cmd({cmd:"get_node_state",kwargs:{nid:t},wait_for_response:!0});this._zustand&&this._zustand.on_node_action({type:"update",node:n,id:n.id,from_remote:!0})}set_io_value({nid:t,ioid:n,value:r,set_default:o=!1}){return this._send_cmd({cmd:"set_io_value",kwargs:{nid:t,ioid:n,value:r,set_default:o},wait_for_response:!0})}clear(){return this._send_cmd({cmd:"clear",unique:!0})}save(){return this._send_cmd({cmd:"save",wait_for_response:!0,unique:!0})}load(t){return this._send_cmd({cmd:"load_data",kwargs:{data:t},wait_for_response:!0}).then(()=>{this.stepwise_fullsync()})}async get_io_value({nid:t,ioid:n}){const r=await this._send_cmd({cmd:"get_io_value",kwargs:{nid:t,ioid:n},wait_for_response:!0});return this._zustand&&this._zustand.on_node_action({type:"update",node:{io:{[n]:{value:r}}},id:t,from_remote:!0}),r}async get_ios_values({nid:t}){const n=await this._send_cmd({cmd:"get_ios_values",kwargs:{nid:t},wait_for_response:!0});if(!this._zustand)return n;const r={};for(const o in n)r[o]={value:n[o]};return this._zustand.on_node_action({type:"update",node:{io:r},id:t,from_remote:!0}),n}async get_runstate(){return await this._send_cmd({cmd:"get_runstate",wait_for_response:!0,unique:!0})}async _send_cmd({cmd:t,kwargs:n,as_bytes:r=!1,wait_for_response:o=!0,response_timeout:i=5e3,retries:s=2,unique:a=!1}){const l={type:"cmd",as_bytes:r,cmd:t,kwargs:n||{}};if(await new Promise(async c=>{if(this._responsive)return c();const u=setInterval(()=>{this._responsive&&(clearInterval(u),c())},100)}),o){if(a&&this._unique_cmd_outs[l.cmd]!==void 0)return this._unique_cmd_outs[l.cmd];s<0&&(s=0);const u=(async()=>{let f;for(;s>=0;){const d=l.id||Rx();l.id=d;const p=new Promise((g,h)=>{const y=setTimeout(()=>{h("Timeout@wait_for_response for "+t)},i);this.messagePromises.set(d,{resolve:m=>{clearTimeout(y),g(m),this.messagePromises.delete(d)},reject:m=>{clearTimeout(y),h(m),this.messagePromises.delete(d)}})});await this.send(l);try{f=await p;break}catch(g){if(s===0)throw delete this._unique_cmd_outs[l.cmd],g;s-=1;continue}}return delete this._unique_cmd_outs[l.cmd],f})();return a&&(this._unique_cmd_outs[l.cmd]=u),u}return this.send(l)}async send(t){throw new Error("async send(data: any) not implemented")}async upload_file({files:t,onProgressCallback:n,root:r}){throw new Error("upload_file not implemented ")}async handle_large_message_hint({}){throw new Error("async handle_large_message_hint({}: LargeMessageHint) not implemented ")}async receive_workerevent({event:t,data:n}){switch(t){case"worker_error":return this._zustand?this._zustand.logger.error(n.error):void 0;case"update_worker_dependencies":return this._zustand?this._zustand.lib.libstate.getState().set({external_worker:n.worker_dependencies}):void 0;case"lib_update":await this.sync_lib();return;case"fullsync":await this.stepwise_fullsync();return;case"external_worker_update":await this.sync_lib(),await this.sync_external_worker();return;case"starting":this.call_hooks("starting");return;case"stopping":this.call_hooks("stopping");return;default:console.warn("Unhandled worker event",t,n);break}}async receive_nodespace_event(t){const{event:n,data:r}=await this.intercept_ns_event(t);switch(n){case"after_set_value":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,io:{[r.io]:{value:r.result}}},id:r.node,from_remote:!0}):void 0;case"after_update_value_options":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,io:{[r.io]:{value_options:r.result}}},id:r.node,from_remote:!0}):void 0;case"triggerstart":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!0},id:r.node,from_remote:!0}):void 0;case"triggerdone":return this._zustand?this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!1},id:r.node,from_remote:!0}):void 0;case"triggerfast":if(!this._zustand)return;this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!0},id:r.node,from_remote:!0}),setTimeout(()=>{this._zustand&&this._zustand.on_node_action({type:"update",node:{id:r.node,in_trigger:!1},id:r.node,from_remote:!0})},50);return;case"node_trigger_error":return this._zustand?this._zustand.on_node_action({type:"error",errortype:"trigger",error:r.error,id:r.node,tb:r.tb,from_remote:!0}):void 0;case"node_removed":if(!this._zustand)return;this._zustand.on_node_action({type:"delete",id:r.node,from_remote:!0}),this.call_hooks("node_removed",{node:r.node});return;case"node_added":this._receive_node_added(r.node);return;case"after_disconnect":return!r.result||!Array.isArray(r.result)||r.result.length!==4||!this._zustand?void 0:this._zustand.on_edge_action({type:"delete",from_remote:!0,src_nid:r.result[0],src_ioid:r.result[1],trg_nid:r.result[2],trg_ioid:r.result[3]});case"after_unforward":return!r.result||!Array.isArray(r.result)||r.result.length!==4||!this._zustand?void 0:this._zustand.on_edge_action({type:"delete",from_remote:!0,src_nid:r.result[0],src_ioid:r.result[1],trg_nid:r.result[2],trg_ioid:r.result[3]});case"after_connect":return!r.result||!Array.isArray(r.result)||r.result.length!==4?void 0:this._receive_edge_added(...r.result);case"after_forward":return!r.result||!Array.isArray(r.result)||r.result.length!==4?void 0:this._receive_edge_added(...r.result);case"after_add_shelf":return!r.result||!this._zustand?void 0:this._zustand.lib.libstate.getState().set({lib:r.result});case"after_remove_shelf":return!r.result||!this._zustand?void 0:this._zustand.lib.libstate.getState().set({lib:r.result});case"progress":if(!this._zustand)return;if(r.node)return this._zustand.on_node_action({type:"update",node:{id:r.node,progress:r.info},id:r.node,from_remote:!0});console.warn("Unhandled nodepsace event",n,r);break;default:if(["after_set_nodespace"].includes(n))return;console.warn("Unhandled nodepsace event",n,r);break}}async add_lib(t,n){return await this._send_cmd({cmd:"add_package_dependency",kwargs:{name:t,version:n},wait_for_response:!1})}async remove_lib(t){return await this._send_cmd({cmd:"remove_package_dependency",kwargs:{name:t},wait_for_response:!1})}async receive(t){let n;switch(this._last_pong=Date.now(),this._responsive=!0,t.type){case"pong":this._receive_pong();return;case"nsevent":return await this.receive_nodespace_event(t);case"result":if(n=t.id&&this.messagePromises.get(t.id),n)return n.resolve(t.result);break;case"error":if(this.on_error(t.tb+`
|
|
66
|
+
`+t.error),n=t.id&&this.messagePromises.get(t.id),n)return n.reject(t.error);break;case"progress":if(!this._zustand)return;this._zustand.set_progress(t);break;case"workerevent":return await this.receive_workerevent(t);case"large_message":return await this.handle_large_message_hint(t);default:console.warn("Unhandled message",t);break}}async onbytes(t){try{const n=new TextDecoder("utf-8").decode(t),r=n.indexOf(`\r
|
|
67
|
+
\r
|
|
68
|
+
`);if(r===-1){console.error(`Header terminator not found for:
|
|
69
|
+
`,n);return}const o=n.substring(0,r+4),i=t.slice(r+4),s=o.split(";"),a={};if(s.forEach(f=>{const[d,p]=f.split("=");a[d.trim()]=p.trim()}),!a.chunk||!a.msgid){console.error("Header missing required fields chunk or msgid",a);return}const[l,c]=a.chunk.split("/"),u=a.msgid;if(l==="1"&&c==="1")return this.recieve_bytes(a,i);if(this.blobChunks[u]||(this.blobChunks[u]={chunks:Array.from({length:parseInt(c)},()=>null),timestamp:Date.now()}),this.blobChunks[u].chunks.length!==parseInt(c)){console.error("Total chunks mismatch");return}if(this.blobChunks[u].chunks[parseInt(l)-1]=t,this.blobChunks[u].chunks.every(f=>f!==null)){const f=new Uint8Array(this.blobChunks[u].chunks.reduce((d,p)=>d.concat(Array.from(p)),[]));this.recieve_bytes(a,f),delete this.blobChunks[u]}}catch(n){console.error("Websocketworker: onbytes error",n,t);return}}async recieve_bytes(t,n){const{type:r}=t;if(r==="io_value"){if(!this._zustand)return;const{node:o,io:i,preview:s,mime:a}=t,l=s?"value":"fullvalue";(!o||!i)&&console.error("Invalid io_value message",t);const c=Dh({data:n,mime:a||"application/octet-stream"});this._zustand.on_node_action({type:"update",node:{id:o,io:{[i]:{[l]:c}}},id:o,from_remote:!0})}else if(r=="result"){const o=t.id&&this.messagePromises.get(t.id);o&&o.resolve({bytes:n,header:t})}else console.warn("Unhandled bytes message",t)}disconnect(){}onclose(){this.is_open=!1,this._zustand&&this._zustand.auto_progress()}async reconnect(){}async stop(){await this._send_cmd({cmd:"stop_worker",wait_for_response:!1});const t=this.onclose.bind(this);this.onclose=()=>{t(),this._zustand&&(this._zustand.worker===this&&this._zustand.clear_all(),this.onclose=t)}}async get_io_full_value({nid:t,ioid:n}){const r=await this._send_cmd({cmd:"get_io_full_value",kwargs:{nid:t,ioid:n},wait_for_response:!0,as_bytes:!0});if(!this._zustand)return r;if(!this._zustand)return;const{header:o,bytes:i}=r,{mime:s}=o,a=Dh({data:i,mime:s||"application/octet-stream"});return this._zustand.on_node_action({type:"update",node:{id:t,io:{[n]:{fullvalue:a}}},id:t,from_remote:!0}),r}async update_io_options({nid:t,ioid:n,options:r}){const o=await this._send_cmd({cmd:"update_io_options",kwargs:{nid:t,ioid:n,...r},wait_for_response:!0});if(!this._zustand)return o;this._zustand.on_node_action({type:"update",node:{io:{[n]:{...r}}},id:t,from_remote:!0})}async get_node_status(t){return await this._send_cmd({cmd:"get_node_state",kwargs:{nid:t},wait_for_response:!0})}async get_available_modules(){return await this._send_cmd({cmd:"get_available_modules",wait_for_response:!0,unique:!0})}async update_external_worker(t,n,r){return await this._send_cmd({cmd:"update_external_worker",kwargs:{worker_id:t,class_id:n,...r},wait_for_response:!0})}async remove_external_worker(t,n){return await this._send_cmd({cmd:"remove_external_worker",kwargs:{worker_id:t,class_id:n},wait_for_response:!0})}async export({withFiles:t=!1}){return await this._send_cmd({cmd:"export_worker",wait_for_response:!0,kwargs:{with_files:t}})}async update_from_export(t){const n=this.add_hook("node_added",async({})=>{var r;(r=this._zustand)==null||r.center_all()});try{const r=await this._send_cmd({cmd:"update_from_export",kwargs:{data:t},wait_for_response:!0,response_timeout:6e5,unique:!0});return await new Promise(o=>{setTimeout(()=>{o()},1e3)}),await this.stepwise_fullsync(),r}finally{n()}}}class Dd extends Tx{constructor(t){super(t),this._websocket=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=5e3,this._reconnect=!0,this._reconnect_timeout=void 0,this._url=t.url,this._reconnect_timeout=setTimeout(()=>{this.connect()},200),this._zustand&&this._zustand.auto_progress()}connect(){var t;(t=this._zustand)==null||t.logger.info("Connecting to websocket"),this.is_open=!1,this._websocket=new WebSocket(this._url),this._websocket.onopen=()=>{this.onopen()},this._websocket.onclose=()=>{this.onclose()},this._websocket.onerror=()=>{this.on_ws_error()},this._websocket.onmessage=n=>{typeof n.data=="string"?this.onmessage(n.data):n.data instanceof Blob&&n.data.arrayBuffer().then(r=>{const o=new Uint8Array(r);this.onbytes(o)})}}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}auto_reconnect(){var t,n;if(this.reconnectAttempts<this.maxReconnectAttempts){let r=this.calculateReconnectTimeout();(t=this._zustand)==null||t.logger.info(`Attempting to reconnect in ${r} ms`),this._reconnect_timeout=setTimeout(()=>{this._websocket&&this._websocket.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())},r)}else(n=this._zustand)==null||n.logger.warn("Maximum reconnect attempts reached. Giving up.")}async onmessage(t){var n;try{const r=JSON.parse(t);(n=this._zustand)==null||n.logger.debug(`Recieved data of length: ${t.length} and data"`,r),await this.receive(r)}catch(r){console.error("Websocketworker: onmessage JSON.parse error",r,t);return}}get http_protocol(){return this.secure_url?"https":"http"}get secure_url(){return this._url.startsWith("wss")}get url_wo_protocol(){return this._url.substring(this.secure_url?6:5)}get http_url(){var t=this.http_protocol+"://"+this.url_wo_protocol;return t[t.length-1]!=="/"&&(t+="/"),t}get_io_subscription_url({node_id:t,io_id:n,stream:r}){let o=this.http_url+`node/${t}/io/${n}/value`;return r&&(o+="/stream"),o}async upload_file({files:t,onProgressCallback:n,root:r}){const o=`${this.http_url}upload/`,i=new FormData,s=Array.isArray(t)?t:Array.from(t);for(const a of s){const l=a.webkitRelativePath||a.name,c=r?`${r}/${l}`:l;i.append("file",a,c)}try{return(await Ye.post(o,i,{headers:{"Content-Type":"multipart/form-data"},onUploadProgress:l=>{n&&n(l.loaded,l.total)}})).data.file}catch{throw new Error("Failed to upload file")}}async handle_large_message_hint({msg_id:t}){const n=this.http_url+"message/"+t,o=await(await fetch(n,{method:"GET",headers:{"Content-Type":"application/json","Access-Control-Allow-Origin":"*"}})).json();this.receive(o)}onopen(){var t;(t=this._zustand)==null||t.logger.info("Websocket opened"),this.is_open=!0,this._zustand&&this._zustand.auto_progress(),this.reconnectAttempts=0,this.stepwise_fullsync()}onclose(){var t,n;(t=this._zustand)==null||t.logger.info("Websocket closed"),super.onclose(),this._reconnect&&((n=this._zustand)==null||n.logger.info("Websocket closed,reconnecting"),this.auto_reconnect())}on_ws_error(){var t;(t=this._zustand)==null||t.logger.warn("Websocket error"),this._websocket?this._websocket.close():this.auto_reconnect()}async send_large_message(t){const n=`${this.http_url}message/`;await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:t})}async send(t){var o,i,s;if(!this._websocket||this._websocket.readyState!==WebSocket.OPEN){(o=this._zustand)==null||o.logger.warn("Websocket not connected");return}const n=JSON.stringify(t);if(new Blob([n]).size>1e6)return(i=this._zustand)==null||i.logger.info("Data too large, sending via http"),await this.send_large_message(n);(s=this._zustand)==null||s.logger.debug("Sending data",t),this._websocket.send(n)}async stop(){await super.stop(),this._reconnect=!1}close(){this._websocket&&this._websocket.close()}disconnect(){super.disconnect(),this._reconnect=!1,this._reconnect_timeout&&(clearTimeout(this._reconnect_timeout),this._reconnect_timeout=void 0),this.close()}async reconnect(){var t;if(await super.reconnect(),this._reconnect=!0,this._websocket&&((t=this._zustand)==null||t.logger.info("Reconnecting"),(this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(this._websocket.readyState===WebSocket.CONNECTING&&await new Promise((n,r)=>{if(this._websocket===null)return;let o=setTimeout(()=>{r("Timeout@reconnect")},2e3);this._websocket.addEventListener("open",()=>{clearTimeout(o),n(null)},{once:!0}),this._websocket.readyState===WebSocket.OPEN&&(clearTimeout(o),n(null))}),this._websocket.readyState===WebSocket.OPEN))){this.stepwise_fullsync();return}this.connect()}}class kM{constructor(t,n){this.ws=null,this.reconnectAttempts=0,this.maxReconnectAttempts=999,this.initialTimeout=200,this.maxTimeout=2e3,this.wsuri=t,this.zustand=n,this.workers={},this.on_setWorker=r=>{this.zustand.set_worker(r)},this.connectionTimeout=setTimeout(()=>{this.connect()},200)}get open(){var t;return((t=this.ws)==null?void 0:t.readyState)===WebSocket.OPEN}connect(){this.zustand.set_progress({progress:0,message:"connecting to worker manager",status:"info",blocking:!0}),this.zustand.logger.info("Connecting to websocket:",this.wsuri),this.ws=new WebSocket(this.wsuri),this.ws.onopen=()=>{this.onopen()},this.ws.onclose=()=>{this.onclose()},this.ws.onerror=()=>{this.on_ws_error()},this.ws.onmessage=t=>{typeof t.data=="string"?this.onmessage(t.data):console.error("WorkerManager: onmessage event.data is not a string",typeof t.data)},this.connectionTimeout=setTimeout(()=>{var t;((t=this.ws)==null?void 0:t.readyState)!==WebSocket.OPEN&&this.on_ws_error()},5e3)}on_ws_error(){console.warn("Websocket error"),this.ws?this.ws.close():this.reconnect()}onopen(){this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.zustand.auto_progress(),this.ws&&this.ws.send("worker_status");const t=window.localStorage.getItem("funcnodes__active_worker");t&&this.set_active(t)}onmessage(t){try{let n=JSON.parse(t);if(n.type==="worker_status"){const r={};for(let o of n.active)o.active=!0,r[o.uuid]=o;for(let o of n.inactive)o.active=!1,r[o.uuid]=o;this.zustand.workers.setState(r);return}else if(n.type==="set_worker"){if(n.data.type==="WSWorker"){let r="ws"+(n.data.ssl?"s":"")+"://"+n.data.host+":"+n.data.port;this.setWorker(this.workers[n.data.uuid]||new Dd({url:r,zustand:this.zustand,uuid:n.data.uuid,on_sync_complete:this.zustand.options.on_sync_complete}))}else this.zustand.logger.error("WorkerManager: unknown worker type",n);return}else if(n.type==="progress"){this.zustand.set_progress(n);return}this.zustand.logger.error("WorkerManager: unknown message",n)}catch(n){console.error("WorkerManager: onmessage JSON.parse error",n,t);return}}setWorker(t){for(let n in this.workers)n!==(t==null?void 0:t.uuid)&&this.workers[n].disconnect();t!==void 0&&(this.workers[t.uuid]=t,t.reconnect()),t!=null&&t.uuid&&window.localStorage.setItem("funcnodes__active_worker",t==null?void 0:t.uuid),this.zustand.worker!==void 0&&this.zustand.clear_all(),this.zustand.set_worker(t),this.on_setWorker(t)}async restart_worker(t){var n;(n=this.ws)==null||n.send(JSON.stringify({type:"restart_worker",workerid:t}))}calculateReconnectTimeout(){return Math.min(this.initialTimeout*Math.pow(2,this.reconnectAttempts),this.maxTimeout)}reconnect(){if(this.reconnectAttempts<this.maxReconnectAttempts){let t=this.calculateReconnectTimeout();this.zustand.logger.info(`Attempting to reconnect in ${t} ms`),setTimeout(()=>{this.ws&&this.ws.readyState===WebSocket.OPEN||(this.reconnectAttempts++,this.connect())},t)}else this.zustand.logger.warn("Maximum reconnect attempts reached. Giving up.")}onclose(){this.zustand.logger.warn("WorkerManager: onclose"),this.reconnect()}set_active(t){this.ws&&this.ws.send(JSON.stringify({type:"set_active",workerid:t}))}new_worker({name:t,reference:n,copyLib:r,copyNS:o}){t||(t=void 0),r||(r=!1),o||(o=!1),n||(n=void 0,r=!1,o=!1),this.ws&&this.ws.send(JSON.stringify({type:"new_worker",kwargs:{name:t,reference:n,copyLib:r,copyNS:o}}))}remove(){for(let t in this.workers)this.workers[t].disconnect();this.connectionTimeout&&(clearTimeout(this.connectionTimeout),this.connectionTimeout=void 0),this.ws&&(this.ws.onclose=()=>{},this.ws.onerror=()=>{},this.ws.onmessage=()=>{},this.ws.onopen=()=>{},this.ws.close())}}function AM(e){const t=window.atob(e),n=t.length,r=new Uint8Array(n);for(let o=0;o<n;o++)r[o]=t.charCodeAt(o);return r}function RM(e,t){return new Blob([e],{type:t})}function TM(e,t){return RM(AM(e),t)}function NM(e,t,n){const r=TM(e,n),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o),i.remove()}function PM(e,t=!0){return new Promise(n=>{const r=new FileReader;r.onload=()=>{const o=r.result;t&&n(o.split(",")[1]),n(o)},r.readAsDataURL(e)})}function OM(e){return new Promise(t=>{const n=document.createElement("input");n.type="file",n.accept=e,n.onchange=()=>{var o;const r=(o=n.files)==null?void 0:o[0];r&&t(r)},n.click()})}function MM(e){return OM(e).then(PM)}async function DM(e,t=!0){try{const n=await fetch(e);if(!n.ok)throw new Error(`Failed to fetch from URL: ${n.status} ${n.statusText}`);const r=await n.blob();return await new Promise((i,s)=>{const a=new FileReader;a.onload=()=>{const l=a.result;typeof l!="string"&&(s("Failed to convert URL to Base64: No result from FileReader"),s(a.error)),i(t?l.split(",")[1]:l)},a.onerror=()=>s(a.error),a.readAsDataURL(r)})}catch(n){throw console.error("Error converting URL to Base64:",n),n}}function he(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Qg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ml(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Qg(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():Qg(e[o],null)}}}}function Ve(...e){return k.useCallback(Ml(...e),e)}function FM(e,t){const n=k.createContext(t),r=i=>{const{children:s,...a}=i,l=k.useMemo(()=>a,Object.values(a));return b.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function o(i){const s=k.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function br(e,t=[]){let n=[];function r(i,s){const a=k.createContext(s),l=n.length;n=[...n,s];const c=f=>{var m;const{scope:d,children:p,...g}=f,h=((m=d==null?void 0:d[e])==null?void 0:m[l])||a,y=k.useMemo(()=>g,Object.values(g));return b.jsx(h.Provider,{value:y,children:p})};c.displayName=i+"Provider";function u(f,d){var h;const p=((h=d==null?void 0:d[e])==null?void 0:h[l])||a,g=k.useContext(p);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}return[c,u]}const o=()=>{const i=n.map(s=>k.createContext(s));return function(a){const l=(a==null?void 0:a[e])||i;return k.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return o.scopeName=e,[r,jM(o,...t)]}function jM(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(i)[`__scope${c}`];return{...a,...f}},{});return k.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Gr=globalThis!=null&&globalThis.document?k.useLayoutEffect:()=>{},LM=k[" useId ".trim().toString()]||(()=>{}),BM=0;function Fn(e){const[t,n]=k.useState(LM());return Gr(()=>{n(r=>r??String(BM++))},[e]),e||(t?`radix-${t}`:"")}function Vt(e){const t=k.useRef(e);return k.useEffect(()=>{t.current=e}),k.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function Ho({prop:e,defaultProp:t,onChange:n=()=>{}}){const[r,o]=zM({defaultProp:t,onChange:n}),i=e!==void 0,s=i?e:r,a=Vt(n),l=k.useCallback(c=>{if(i){const f=typeof c=="function"?c(e):c;f!==e&&a(f)}else o(c)},[i,e,o,a]);return[s,l]}function zM({defaultProp:e,onChange:t}){const n=k.useState(e),[r]=n,o=k.useRef(r),i=Vt(t);return k.useEffect(()=>{o.current!==r&&(i(r),o.current=r)},[r,o,i]),n}function Do(e){const t=VM(e),n=k.forwardRef((r,o)=>{const{children:i,...s}=r,a=k.Children.toArray(i),l=a.find($M);if(l){const c=l.props.children,u=a.map(f=>f===l?k.Children.count(c)>1?k.Children.only(null):k.isValidElement(c)?c.props.children:null:f);return b.jsx(t,{...s,ref:o,children:k.isValidElement(c)?k.cloneElement(c,void 0,u):null})}return b.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function VM(e){const t=k.forwardRef((n,r)=>{const{children:o,...i}=n;if(k.isValidElement(o)){const s=WM(o),a=HM(i,o.props);return o.type!==k.Fragment&&(a.ref=r?Ml(r,s):s),k.cloneElement(o,a)}return k.Children.count(o)>1?k.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var GM=Symbol("radix.slottable");function $M(e){return k.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===GM}function HM(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{i(...a),o(...a)}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function WM(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var XM=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],je=XM.reduce((e,t)=>{const n=Do(`Primitive.${t}`),r=k.forwardRef((o,i)=>{const{asChild:s,...a}=o,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),b.jsx(l,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Nx(e,t){e&&hd.flushSync(()=>e.dispatchEvent(t))}function YM(e,t=globalThis==null?void 0:globalThis.document){const n=Vt(e);k.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var UM="DismissableLayer",cf="dismissableLayer.update",ZM="dismissableLayer.pointerDownOutside",JM="dismissableLayer.focusOutside",em,Px=k.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dl=k.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...l}=e,c=k.useContext(Px),[u,f]=k.useState(null),d=(u==null?void 0:u.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=k.useState({}),g=Ve(t,I=>f(I)),h=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=h.indexOf(y),x=u?h.indexOf(u):-1,v=c.layersWithOutsidePointerEventsDisabled.size>0,C=x>=m,S=QM(I=>{const P=I.target,M=[...c.branches].some(w=>w.contains(P));!C||M||(o==null||o(I),s==null||s(I),I.defaultPrevented||a==null||a())},d),E=e5(I=>{const P=I.target;[...c.branches].some(w=>w.contains(P))||(i==null||i(I),s==null||s(I),I.defaultPrevented||a==null||a())},d);return YM(I=>{x===c.layers.size-1&&(r==null||r(I),!I.defaultPrevented&&a&&(I.preventDefault(),a()))},d),k.useEffect(()=>{if(u)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(em=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(u)),c.layers.add(u),tm(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=em)}},[u,d,n,c]),k.useEffect(()=>()=>{u&&(c.layers.delete(u),c.layersWithOutsidePointerEventsDisabled.delete(u),tm())},[u,c]),k.useEffect(()=>{const I=()=>p({});return document.addEventListener(cf,I),()=>document.removeEventListener(cf,I)},[]),b.jsx(je.div,{...l,ref:g,style:{pointerEvents:v?C?"auto":"none":void 0,...e.style},onFocusCapture:he(e.onFocusCapture,E.onFocusCapture),onBlurCapture:he(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:he(e.onPointerDownCapture,S.onPointerDownCapture)})});Dl.displayName=UM;var qM="DismissableLayerBranch",KM=k.forwardRef((e,t)=>{const n=k.useContext(Px),r=k.useRef(null),o=Ve(t,r);return k.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),b.jsx(je.div,{...e,ref:o})});KM.displayName=qM;function QM(e,t=globalThis==null?void 0:globalThis.document){const n=Vt(e),r=k.useRef(!1),o=k.useRef(()=>{});return k.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let l=function(){Ox(ZM,n,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function e5(e,t=globalThis==null?void 0:globalThis.document){const n=Vt(e),r=k.useRef(!1);return k.useEffect(()=>{const o=i=>{i.target&&!r.current&&Ox(JM,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function tm(){const e=new CustomEvent(cf);document.dispatchEvent(e)}function Ox(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Nx(o,i):o.dispatchEvent(i)}var $c="focusScope.autoFocusOnMount",Hc="focusScope.autoFocusOnUnmount",nm={bubbles:!1,cancelable:!0},t5="FocusScope",Fl=k.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,l]=k.useState(null),c=Vt(o),u=Vt(i),f=k.useRef(null),d=Ve(t,h=>l(h)),p=k.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;k.useEffect(()=>{if(r){let h=function(v){if(p.paused||!a)return;const C=v.target;a.contains(C)?f.current=C:nr(f.current,{select:!0})},y=function(v){if(p.paused||!a)return;const C=v.relatedTarget;C!==null&&(a.contains(C)||nr(f.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const S of v)S.removedNodes.length>0&&nr(a)};document.addEventListener("focusin",h),document.addEventListener("focusout",y);const x=new MutationObserver(m);return a&&x.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",y),x.disconnect()}}},[r,a,p.paused]),k.useEffect(()=>{if(a){om.add(p);const h=document.activeElement;if(!a.contains(h)){const m=new CustomEvent($c,nm);a.addEventListener($c,c),a.dispatchEvent(m),m.defaultPrevented||(n5(a5(Mx(a)),{select:!0}),document.activeElement===h&&nr(a))}return()=>{a.removeEventListener($c,c),setTimeout(()=>{const m=new CustomEvent(Hc,nm);a.addEventListener(Hc,u),a.dispatchEvent(m),m.defaultPrevented||nr(h??document.body,{select:!0}),a.removeEventListener(Hc,u),om.remove(p)},0)}}},[a,c,u,p]);const g=k.useCallback(h=>{if(!n&&!r||p.paused)return;const y=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,m=document.activeElement;if(y&&m){const x=h.currentTarget,[v,C]=r5(x);v&&C?!h.shiftKey&&m===C?(h.preventDefault(),n&&nr(v,{select:!0})):h.shiftKey&&m===v&&(h.preventDefault(),n&&nr(C,{select:!0})):m===x&&h.preventDefault()}},[n,r,p.paused]);return b.jsx(je.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});Fl.displayName=t5;function n5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nr(r,{select:t}),document.activeElement!==n)return}function r5(e){const t=Mx(e),n=rm(t,e),r=rm(t.reverse(),e);return[n,r]}function Mx(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rm(e,t){for(const n of e)if(!o5(n,{upTo:t}))return n}function o5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function i5(e){return e instanceof HTMLInputElement&&"select"in e}function nr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&i5(e)&&t&&e.select()}}var om=s5();function s5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=im(e,t),e.unshift(t)},remove(t){var n;e=im(e,t),(n=e[0])==null||n.resume()}}}function im(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function a5(e){return e.filter(t=>t.tagName!=="A")}var l5="Portal",Fd=k.forwardRef((e,t)=>{var a;const{container:n,...r}=e,[o,i]=k.useState(!1);Gr(()=>i(!0),[]);const s=n||o&&((a=globalThis==null?void 0:globalThis.document)==null?void 0:a.body);return s?pd.createPortal(b.jsx(je.div,{...r,ref:t}),s):null});Fd.displayName=l5;function c5(e,t){return k.useReducer((n,r)=>t[n][r]??n,e)}var Xn=e=>{const{present:t,children:n}=e,r=u5(t),o=typeof n=="function"?n({present:r.isPresent}):k.Children.only(n),i=Ve(r.ref,f5(o));return typeof n=="function"||r.isPresent?k.cloneElement(o,{ref:i}):null};Xn.displayName="Presence";function u5(e){const[t,n]=k.useState(),r=k.useRef({}),o=k.useRef(e),i=k.useRef("none"),s=e?"mounted":"unmounted",[a,l]=c5(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return k.useEffect(()=>{const c=Ls(r.current);i.current=a==="mounted"?c:"none"},[a]),Gr(()=>{const c=r.current,u=o.current;if(u!==e){const d=i.current,p=Ls(c);e?l("MOUNT"):p==="none"||(c==null?void 0:c.display)==="none"?l("UNMOUNT"):l(u&&d!==p?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),Gr(()=>{if(t){let c;const u=t.ownerDocument.defaultView??window,f=p=>{const h=Ls(r.current).includes(p.animationName);if(p.target===t&&h&&(l("ANIMATION_END"),!o.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",c=u.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},d=p=>{p.target===t&&(i.current=Ls(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{u.clearTimeout(c),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:k.useCallback(c=>{c&&(r.current=getComputedStyle(c)),n(c)},[])}}function Ls(e){return(e==null?void 0:e.animationName)||"none"}function f5(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Wc=0;function jd(){k.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??sm()),document.body.insertAdjacentElement("beforeend",e[1]??sm()),Wc++,()=>{Wc===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Wc--}},[])}function sm(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var gn=function(){return gn=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},gn.apply(this,arguments)};function Dx(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function ga(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var ma="right-scroll-bar-position",ya="width-before-scroll-bar",d5="with-scroll-bars-hidden",p5="--removed-body-scroll-bar-size";function Xc(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function h5(e,t){var n=N.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var g5=typeof window<"u"?k.useLayoutEffect:k.useEffect,am=new WeakMap;function m5(e,t){var n=h5(null,function(r){return e.forEach(function(o){return Xc(o,r)})});return g5(function(){var r=am.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||Xc(a,null)}),i.forEach(function(a){o.has(a)||Xc(a,s)})}am.set(n,e)},[e]),n}function y5(e){return e}function b5(e,t){t===void 0&&(t=y5);var n=[],r=!1,o={read:function(){if(r)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 s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var l=function(){var u=s;s=[],u.forEach(i)},c=function(){return Promise.resolve().then(l)};c(),n={push:function(u){s.push(u),c()},filter:function(u){return s=s.filter(u),n}}}};return o}function v5(e){e===void 0&&(e={});var t=b5(null);return t.options=gn({async:!0,ssr:!1},e),t}var Fx=function(e){var t=e.sideCar,n=Dx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return k.createElement(r,gn({},n))};Fx.isSideCarExport=!0;function x5(e,t){return e.useMedium(t),Fx}var jx=v5(),Yc=function(){},jl=k.forwardRef(function(e,t){var n=k.useRef(null),r=k.useState({onScrollCapture:Yc,onWheelCapture:Yc,onTouchMoveCapture:Yc}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,l=e.className,c=e.removeScrollBar,u=e.enabled,f=e.shards,d=e.sideCar,p=e.noIsolation,g=e.inert,h=e.allowPinchZoom,y=e.as,m=y===void 0?"div":y,x=e.gapMode,v=Dx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=d,S=m5([n,t]),E=gn(gn({},v),o);return k.createElement(k.Fragment,null,u&&k.createElement(C,{sideCar:jx,removeScrollBar:c,shards:f,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!h,lockRef:n,gapMode:x}),s?k.cloneElement(k.Children.only(a),gn(gn({},E),{ref:S})):k.createElement(m,gn({},E,{className:l,ref:S}),a))});jl.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jl.classNames={fullWidth:ya,zeroRight:ma};var w5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function C5(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=w5();return t&&e.setAttribute("nonce",t),e}function _5(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function S5(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var E5=function(){var e=0,t=null;return{add:function(n){e==0&&(t=C5())&&(_5(t,n),S5(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},I5=function(){var e=E5();return function(t,n){k.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Lx=function(){var e=I5(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},k5={left:0,top:0,right:0,gap:0},Uc=function(e){return parseInt(e||"",10)||0},A5=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Uc(n),Uc(r),Uc(o)]},R5=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return k5;var t=A5(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},T5=Lx(),wo="data-scroll-locked",N5=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
70
|
+
.`.concat(d5,` {
|
|
71
|
+
overflow: hidden `).concat(r,`;
|
|
72
|
+
padding-right: `).concat(a,"px ").concat(r,`;
|
|
73
|
+
}
|
|
74
|
+
body[`).concat(wo,`] {
|
|
75
|
+
overflow: hidden `).concat(r,`;
|
|
76
|
+
overscroll-behavior: contain;
|
|
77
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
78
|
+
padding-left: `.concat(o,`px;
|
|
79
|
+
padding-top: `).concat(i,`px;
|
|
80
|
+
padding-right: `).concat(s,`px;
|
|
81
|
+
margin-left:0;
|
|
82
|
+
margin-top:0;
|
|
83
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
84
|
+
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.`).concat(ma,` {
|
|
88
|
+
right: `).concat(a,"px ").concat(r,`;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.`).concat(ya,` {
|
|
92
|
+
margin-right: `).concat(a,"px ").concat(r,`;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.`).concat(ma," .").concat(ma,` {
|
|
96
|
+
right: 0 `).concat(r,`;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.`).concat(ya," .").concat(ya,` {
|
|
100
|
+
margin-right: 0 `).concat(r,`;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
body[`).concat(wo,`] {
|
|
104
|
+
`).concat(p5,": ").concat(a,`px;
|
|
105
|
+
}
|
|
106
|
+
`)},lm=function(){var e=parseInt(document.body.getAttribute(wo)||"0",10);return isFinite(e)?e:0},P5=function(){k.useEffect(function(){return document.body.setAttribute(wo,(lm()+1).toString()),function(){var e=lm()-1;e<=0?document.body.removeAttribute(wo):document.body.setAttribute(wo,e.toString())}},[])},O5=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;P5();var i=k.useMemo(function(){return R5(o)},[o]);return k.createElement(T5,{styles:N5(i,!t,o,n?"":"!important")})},uf=!1;if(typeof window<"u")try{var Bs=Object.defineProperty({},"passive",{get:function(){return uf=!0,!0}});window.addEventListener("test",Bs,Bs),window.removeEventListener("test",Bs,Bs)}catch{uf=!1}var to=uf?{passive:!1}:!1,M5=function(e){return e.tagName==="TEXTAREA"},Bx=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!M5(e)&&n[t]==="visible")},D5=function(e){return Bx(e,"overflowY")},F5=function(e){return Bx(e,"overflowX")},cm=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=zx(e,r);if(o){var i=Vx(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},j5=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},L5=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},zx=function(e,t){return e==="v"?D5(t):F5(t)},Vx=function(e,t){return e==="v"?j5(t):L5(t)},B5=function(e,t){return e==="h"&&t==="rtl"?-1:1},z5=function(e,t,n,r,o){var i=B5(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,l=t.contains(a),c=!1,u=s>0,f=0,d=0;do{var p=Vx(e,a),g=p[0],h=p[1],y=p[2],m=h-y-i*g;(g||m)&&zx(e,a)&&(f+=m,d+=g),a instanceof ShadowRoot?a=a.host:a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&Math.abs(f)<1||!u&&Math.abs(d)<1)&&(c=!0),c},zs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},um=function(e){return[e.deltaX,e.deltaY]},fm=function(e){return e&&"current"in e?e.current:e},V5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},G5=function(e){return`
|
|
107
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
108
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
109
|
+
`)},$5=0,no=[];function H5(e){var t=k.useRef([]),n=k.useRef([0,0]),r=k.useRef(),o=k.useState($5++)[0],i=k.useState(Lx)[0],s=k.useRef(e);k.useEffect(function(){s.current=e},[e]),k.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var h=ga([e.lockRef.current],(e.shards||[]).map(fm),!0).filter(Boolean);return h.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),h.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=k.useCallback(function(h,y){if("touches"in h&&h.touches.length===2||h.type==="wheel"&&h.ctrlKey)return!s.current.allowPinchZoom;var m=zs(h),x=n.current,v="deltaX"in h?h.deltaX:x[0]-m[0],C="deltaY"in h?h.deltaY:x[1]-m[1],S,E=h.target,I=Math.abs(v)>Math.abs(C)?"h":"v";if("touches"in h&&I==="h"&&E.type==="range")return!1;var P=cm(I,E);if(!P)return!0;if(P?S=I:(S=I==="v"?"h":"v",P=cm(I,E)),!P)return!1;if(!r.current&&"changedTouches"in h&&(v||C)&&(r.current=S),!S)return!0;var M=r.current||S;return z5(M,y,h,M==="h"?v:C)},[]),l=k.useCallback(function(h){var y=h;if(!(!no.length||no[no.length-1]!==i)){var m="deltaY"in y?um(y):zs(y),x=t.current.filter(function(S){return S.name===y.type&&(S.target===y.target||y.target===S.shadowParent)&&V5(S.delta,m)})[0];if(x&&x.should){y.cancelable&&y.preventDefault();return}if(!x){var v=(s.current.shards||[]).map(fm).filter(Boolean).filter(function(S){return S.contains(y.target)}),C=v.length>0?a(y,v[0]):!s.current.noIsolation;C&&y.cancelable&&y.preventDefault()}}},[]),c=k.useCallback(function(h,y,m,x){var v={name:h,delta:y,target:m,should:x,shadowParent:W5(m)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(C){return C!==v})},1)},[]),u=k.useCallback(function(h){n.current=zs(h),r.current=void 0},[]),f=k.useCallback(function(h){c(h.type,um(h),h.target,a(h,e.lockRef.current))},[]),d=k.useCallback(function(h){c(h.type,zs(h),h.target,a(h,e.lockRef.current))},[]);k.useEffect(function(){return no.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,to),document.addEventListener("touchmove",l,to),document.addEventListener("touchstart",u,to),function(){no=no.filter(function(h){return h!==i}),document.removeEventListener("wheel",l,to),document.removeEventListener("touchmove",l,to),document.removeEventListener("touchstart",u,to)}},[]);var p=e.removeScrollBar,g=e.inert;return k.createElement(k.Fragment,null,g?k.createElement(i,{styles:G5(o)}):null,p?k.createElement(O5,{gapMode:e.gapMode}):null)}function W5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const X5=x5(jx,H5);var Ll=k.forwardRef(function(e,t){return k.createElement(jl,gn({},e,{ref:t,sideCar:X5}))});Ll.classNames=jl.classNames;var Y5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ro=new WeakMap,Vs=new WeakMap,Gs={},Zc=0,Gx=function(e){return e&&(e.host||Gx(e.parentNode))},U5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Gx(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Z5=function(e,t,n,r){var o=U5(t,Array.isArray(e)?e:[e]);Gs[n]||(Gs[n]=new WeakMap);var i=Gs[n],s=[],a=new Set,l=new Set(o),c=function(f){!f||a.has(f)||(a.add(f),c(f.parentNode))};o.forEach(c);var u=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(a.has(d))u(d);else try{var p=d.getAttribute(r),g=p!==null&&p!=="false",h=(ro.get(d)||0)+1,y=(i.get(d)||0)+1;ro.set(d,h),i.set(d,y),s.push(d),h===1&&g&&Vs.set(d,!0),y===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return u(t),a.clear(),Zc++,function(){s.forEach(function(f){var d=ro.get(f)-1,p=i.get(f)-1;ro.set(f,d),i.set(f,p),d||(Vs.has(f)||f.removeAttribute(r),Vs.delete(f)),p||f.removeAttribute(n)}),Zc--,Zc||(ro=new WeakMap,ro=new WeakMap,Vs=new WeakMap,Gs={})}},Ld=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=Y5(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),Z5(r,o,n,"aria-hidden")):function(){return null}},Bd="Dialog",[$x,cq]=br(Bd),[J5,on]=$x(Bd),Hx=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!0}=e,a=k.useRef(null),l=k.useRef(null),[c=!1,u]=Ho({prop:r,defaultProp:o,onChange:i});return b.jsx(J5,{scope:t,triggerRef:a,contentRef:l,contentId:Fn(),titleId:Fn(),descriptionId:Fn(),open:c,onOpenChange:u,onOpenToggle:k.useCallback(()=>u(f=>!f),[u]),modal:s,children:n})};Hx.displayName=Bd;var Wx="DialogTrigger",Xx=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=on(Wx,n),i=Ve(t,o.triggerRef);return b.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Gd(o.open),...r,ref:i,onClick:he(e.onClick,o.onOpenToggle)})});Xx.displayName=Wx;var zd="DialogPortal",[q5,Yx]=$x(zd,{forceMount:void 0}),Ux=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:o}=e,i=on(zd,t);return b.jsx(q5,{scope:t,forceMount:n,children:k.Children.map(r,s=>b.jsx(Xn,{present:n||i.open,children:b.jsx(Fd,{asChild:!0,container:o,children:s})}))})};Ux.displayName=zd;var Va="DialogOverlay",Zx=k.forwardRef((e,t)=>{const n=Yx(Va,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=on(Va,e.__scopeDialog);return i.modal?b.jsx(Xn,{present:r||i.open,children:b.jsx(Q5,{...o,ref:t})}):null});Zx.displayName=Va;var K5=Do("DialogOverlay.RemoveScroll"),Q5=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=on(Va,n);return b.jsx(Ll,{as:K5,allowPinchZoom:!0,shards:[o.contentRef],children:b.jsx(je.div,{"data-state":Gd(o.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),$r="DialogContent",Jx=k.forwardRef((e,t)=>{const n=Yx($r,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,i=on($r,e.__scopeDialog);return b.jsx(Xn,{present:r||i.open,children:i.modal?b.jsx(e4,{...o,ref:t}):b.jsx(t4,{...o,ref:t})})});Jx.displayName=$r;var e4=k.forwardRef((e,t)=>{const n=on($r,e.__scopeDialog),r=k.useRef(null),o=Ve(t,n.contentRef,r);return k.useEffect(()=>{const i=r.current;if(i)return Ld(i)},[]),b.jsx(qx,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,i=>{var s;i.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,i=>{const s=i.detail.originalEvent,a=s.button===0&&s.ctrlKey===!0;(s.button===2||a)&&i.preventDefault()}),onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault())})}),t4=k.forwardRef((e,t)=>{const n=on($r,e.__scopeDialog),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(qx,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),qx=k.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...s}=e,a=on($r,n),l=k.useRef(null),c=Ve(t,l);return jd(),b.jsxs(b.Fragment,{children:[b.jsx(Fl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Dl,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":Gd(a.open),...s,ref:c,onDismiss:()=>a.onOpenChange(!1)})}),b.jsxs(b.Fragment,{children:[b.jsx(n4,{titleId:a.titleId}),b.jsx(o4,{contentRef:l,descriptionId:a.descriptionId})]})]})}),Vd="DialogTitle",Kx=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=on(Vd,n);return b.jsx(je.h2,{id:o.titleId,...r,ref:t})});Kx.displayName=Vd;var Qx="DialogDescription",e1=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=on(Qx,n);return b.jsx(je.p,{id:o.descriptionId,...r,ref:t})});e1.displayName=Qx;var t1="DialogClose",n1=k.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,o=on(t1,n);return b.jsx(je.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});n1.displayName=t1;function Gd(e){return e?"open":"closed"}var r1="DialogTitleWarning",[uq,o1]=FM(r1,{contentName:$r,titleName:Vd,docsSlug:"dialog"}),n4=({titleId:e})=>{const t=o1(r1),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
110
|
+
|
|
111
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
112
|
+
|
|
113
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return k.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},r4="DialogDescriptionWarning",o4=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${o1(r4).contentName}}.`;return k.useEffect(()=>{var i;const o=(i=e.current)==null?void 0:i.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},i4=Hx,s4=Xx,a4=Ux,l4=Zx,c4=Jx,u4=Kx,f4=e1,dm=n1;/*!
|
|
114
|
+
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
115
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
116
|
+
* Copyright 2024 Fonticons, Inc.
|
|
117
|
+
*/function d4(e,t,n){return(t=h4(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pm(Object(n),!0).forEach(function(r){d4(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p4(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function h4(e){var t=p4(e,"string");return typeof t=="symbol"?t:t+""}const hm=()=>{};let $d={},i1={},s1=null,a1={mark:hm,measure:hm};try{typeof window<"u"&&($d=window),typeof document<"u"&&(i1=document),typeof MutationObserver<"u"&&(s1=MutationObserver),typeof performance<"u"&&(a1=performance)}catch{}const{userAgent:gm=""}=$d.navigator||{},ur=$d,Le=i1,mm=s1,$s=a1;ur.document;const Yn=!!Le.documentElement&&!!Le.head&&typeof Le.addEventListener=="function"&&typeof Le.createElement=="function",l1=~gm.indexOf("MSIE")||~gm.indexOf("Trident/");var g4=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,m4=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,c1={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},y4={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},u1=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],ct="classic",Bl="duotone",b4="sharp",v4="sharp-duotone",f1=[ct,Bl,b4,v4],x4={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},w4={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},C4=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),_4={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},S4=["fak","fa-kit","fakd","fa-kit-duotone"],ym={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},E4=["kit"],I4={kit:{"fa-kit":"fak"}},k4=["fak","fakd"],A4={kit:{fak:"fa-kit"}},bm={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Hs={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},R4=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],T4=["fak","fa-kit","fakd","fa-kit-duotone"],N4={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},P4={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},O4={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},ff={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},M4=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],df=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...R4,...M4],D4=["solid","regular","light","thin","duotone","brands"],d1=[1,2,3,4,5,6,7,8,9,10],F4=d1.concat([11,12,13,14,15,16,17,18,19,20]),j4=[...Object.keys(O4),...D4,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Hs.GROUP,Hs.SWAP_OPACITY,Hs.PRIMARY,Hs.SECONDARY].concat(d1.map(e=>"".concat(e,"x"))).concat(F4.map(e=>"w-".concat(e))),L4={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const zn="___FONT_AWESOME___",pf=16,p1="fa",h1="svg-inline--fa",Hr="data-fa-i2svg",hf="data-fa-pseudo-element",B4="data-fa-pseudo-element-pending",Hd="data-prefix",Wd="data-icon",vm="fontawesome-i2svg",z4="async",V4=["HTML","HEAD","STYLE","SCRIPT"],g1=(()=>{try{return process.env.NODE_ENV==="production"}catch{return!1}})();function us(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[ct]}})}const m1=ee({},c1);m1[ct]=ee(ee(ee(ee({},{"fa-duotone":"duotone"}),c1[ct]),ym.kit),ym["kit-duotone"]);const G4=us(m1),gf=ee({},_4);gf[ct]=ee(ee(ee(ee({},{duotone:"fad"}),gf[ct]),bm.kit),bm["kit-duotone"]);const xm=us(gf),mf=ee({},ff);mf[ct]=ee(ee({},mf[ct]),A4.kit);const Xd=us(mf),yf=ee({},P4);yf[ct]=ee(ee({},yf[ct]),I4.kit);us(yf);const $4=g4,y1="fa-layers-text",H4=m4,W4=ee({},x4);us(W4);const X4=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Jc=y4,Y4=[...E4,...j4],_i=ur.FontAwesomeConfig||{};function U4(e){var t=Le.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Z4(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}Le&&typeof Le.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const o=Z4(U4(n));o!=null&&(_i[r]=o)});const b1={styleDefault:"solid",familyDefault:ct,cssPrefix:p1,replacementClass:h1,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};_i.familyPrefix&&(_i.cssPrefix=_i.familyPrefix);const Fo=ee(ee({},b1),_i);Fo.autoReplaceSvg||(Fo.observeMutations=!1);const se={};Object.keys(b1).forEach(e=>{Object.defineProperty(se,e,{enumerable:!0,set:function(t){Fo[e]=t,Si.forEach(n=>n(se))},get:function(){return Fo[e]}})});Object.defineProperty(se,"familyPrefix",{enumerable:!0,set:function(e){Fo.cssPrefix=e,Si.forEach(t=>t(se))},get:function(){return Fo.cssPrefix}});ur.FontAwesomeConfig=se;const Si=[];function J4(e){return Si.push(e),()=>{Si.splice(Si.indexOf(e),1)}}const er=pf,mn={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function q4(e){if(!e||!Yn)return;const t=Le.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Le.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const i=n[o],s=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=i)}return Le.head.insertBefore(t,r),e}const K4="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function zi(){let e=12,t="";for(;e-- >0;)t+=K4[Math.random()*62|0];return t}function Wo(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Yd(e){return e.classList?Wo(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function v1(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Q4(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(v1(e[n]),'" '),"").trim()}function zl(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Ud(e){return e.size!==mn.size||e.x!==mn.x||e.y!==mn.y||e.rotate!==mn.rotate||e.flipX||e.flipY}function eD(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(i," ").concat(s," ").concat(a)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:o,inner:l,path:c}}function tD(e){let{transform:t,width:n=pf,height:r=pf,startCentered:o=!1}=e,i="";return o&&l1?i+="translate(".concat(t.x/er-n/2,"em, ").concat(t.y/er-r/2,"em) "):o?i+="translate(calc(-50% + ".concat(t.x/er,"em), calc(-50% + ").concat(t.y/er,"em)) "):i+="translate(".concat(t.x/er,"em, ").concat(t.y/er,"em) "),i+="scale(".concat(t.size/er*(t.flipX?-1:1),", ").concat(t.size/er*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}var nD=`:root, :host {
|
|
118
|
+
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
|
|
119
|
+
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
|
|
120
|
+
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
|
|
121
|
+
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
|
|
122
|
+
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
|
|
123
|
+
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
|
|
124
|
+
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
|
|
125
|
+
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
|
|
126
|
+
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
|
|
127
|
+
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
|
|
128
|
+
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
|
|
129
|
+
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
|
|
130
|
+
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
|
|
131
|
+
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
132
|
+
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
133
|
+
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
134
|
+
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
138
|
+
overflow: visible;
|
|
139
|
+
box-sizing: content-box;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.svg-inline--fa {
|
|
143
|
+
display: var(--fa-display, inline-block);
|
|
144
|
+
height: 1em;
|
|
145
|
+
overflow: visible;
|
|
146
|
+
vertical-align: -0.125em;
|
|
147
|
+
}
|
|
148
|
+
.svg-inline--fa.fa-2xs {
|
|
149
|
+
vertical-align: 0.1em;
|
|
150
|
+
}
|
|
151
|
+
.svg-inline--fa.fa-xs {
|
|
152
|
+
vertical-align: 0em;
|
|
153
|
+
}
|
|
154
|
+
.svg-inline--fa.fa-sm {
|
|
155
|
+
vertical-align: -0.0714285705em;
|
|
156
|
+
}
|
|
157
|
+
.svg-inline--fa.fa-lg {
|
|
158
|
+
vertical-align: -0.2em;
|
|
159
|
+
}
|
|
160
|
+
.svg-inline--fa.fa-xl {
|
|
161
|
+
vertical-align: -0.25em;
|
|
162
|
+
}
|
|
163
|
+
.svg-inline--fa.fa-2xl {
|
|
164
|
+
vertical-align: -0.3125em;
|
|
165
|
+
}
|
|
166
|
+
.svg-inline--fa.fa-pull-left {
|
|
167
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
168
|
+
width: auto;
|
|
169
|
+
}
|
|
170
|
+
.svg-inline--fa.fa-pull-right {
|
|
171
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
172
|
+
width: auto;
|
|
173
|
+
}
|
|
174
|
+
.svg-inline--fa.fa-li {
|
|
175
|
+
width: var(--fa-li-width, 2em);
|
|
176
|
+
top: 0.25em;
|
|
177
|
+
}
|
|
178
|
+
.svg-inline--fa.fa-fw {
|
|
179
|
+
width: var(--fa-fw-width, 1.25em);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.fa-layers svg.svg-inline--fa {
|
|
183
|
+
bottom: 0;
|
|
184
|
+
left: 0;
|
|
185
|
+
margin: auto;
|
|
186
|
+
position: absolute;
|
|
187
|
+
right: 0;
|
|
188
|
+
top: 0;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.fa-layers-counter, .fa-layers-text {
|
|
192
|
+
display: inline-block;
|
|
193
|
+
position: absolute;
|
|
194
|
+
text-align: center;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.fa-layers {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
height: 1em;
|
|
200
|
+
position: relative;
|
|
201
|
+
text-align: center;
|
|
202
|
+
vertical-align: -0.125em;
|
|
203
|
+
width: 1em;
|
|
204
|
+
}
|
|
205
|
+
.fa-layers svg.svg-inline--fa {
|
|
206
|
+
transform-origin: center center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.fa-layers-text {
|
|
210
|
+
left: 50%;
|
|
211
|
+
top: 50%;
|
|
212
|
+
transform: translate(-50%, -50%);
|
|
213
|
+
transform-origin: center center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.fa-layers-counter {
|
|
217
|
+
background-color: var(--fa-counter-background-color, #ff253a);
|
|
218
|
+
border-radius: var(--fa-counter-border-radius, 1em);
|
|
219
|
+
box-sizing: border-box;
|
|
220
|
+
color: var(--fa-inverse, #fff);
|
|
221
|
+
line-height: var(--fa-counter-line-height, 1);
|
|
222
|
+
max-width: var(--fa-counter-max-width, 5em);
|
|
223
|
+
min-width: var(--fa-counter-min-width, 1.5em);
|
|
224
|
+
overflow: hidden;
|
|
225
|
+
padding: var(--fa-counter-padding, 0.25em 0.5em);
|
|
226
|
+
right: var(--fa-right, 0);
|
|
227
|
+
text-overflow: ellipsis;
|
|
228
|
+
top: var(--fa-top, 0);
|
|
229
|
+
transform: scale(var(--fa-counter-scale, 0.25));
|
|
230
|
+
transform-origin: top right;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.fa-layers-bottom-right {
|
|
234
|
+
bottom: var(--fa-bottom, 0);
|
|
235
|
+
right: var(--fa-right, 0);
|
|
236
|
+
top: auto;
|
|
237
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
238
|
+
transform-origin: bottom right;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.fa-layers-bottom-left {
|
|
242
|
+
bottom: var(--fa-bottom, 0);
|
|
243
|
+
left: var(--fa-left, 0);
|
|
244
|
+
right: auto;
|
|
245
|
+
top: auto;
|
|
246
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
247
|
+
transform-origin: bottom left;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.fa-layers-top-right {
|
|
251
|
+
top: var(--fa-top, 0);
|
|
252
|
+
right: var(--fa-right, 0);
|
|
253
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
254
|
+
transform-origin: top right;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.fa-layers-top-left {
|
|
258
|
+
left: var(--fa-left, 0);
|
|
259
|
+
right: auto;
|
|
260
|
+
top: var(--fa-top, 0);
|
|
261
|
+
transform: scale(var(--fa-layers-scale, 0.25));
|
|
262
|
+
transform-origin: top left;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.fa-1x {
|
|
266
|
+
font-size: 1em;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.fa-2x {
|
|
270
|
+
font-size: 2em;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.fa-3x {
|
|
274
|
+
font-size: 3em;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.fa-4x {
|
|
278
|
+
font-size: 4em;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.fa-5x {
|
|
282
|
+
font-size: 5em;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.fa-6x {
|
|
286
|
+
font-size: 6em;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.fa-7x {
|
|
290
|
+
font-size: 7em;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.fa-8x {
|
|
294
|
+
font-size: 8em;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.fa-9x {
|
|
298
|
+
font-size: 9em;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.fa-10x {
|
|
302
|
+
font-size: 10em;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.fa-2xs {
|
|
306
|
+
font-size: 0.625em;
|
|
307
|
+
line-height: 0.1em;
|
|
308
|
+
vertical-align: 0.225em;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.fa-xs {
|
|
312
|
+
font-size: 0.75em;
|
|
313
|
+
line-height: 0.0833333337em;
|
|
314
|
+
vertical-align: 0.125em;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.fa-sm {
|
|
318
|
+
font-size: 0.875em;
|
|
319
|
+
line-height: 0.0714285718em;
|
|
320
|
+
vertical-align: 0.0535714295em;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.fa-lg {
|
|
324
|
+
font-size: 1.25em;
|
|
325
|
+
line-height: 0.05em;
|
|
326
|
+
vertical-align: -0.075em;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.fa-xl {
|
|
330
|
+
font-size: 1.5em;
|
|
331
|
+
line-height: 0.0416666682em;
|
|
332
|
+
vertical-align: -0.125em;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.fa-2xl {
|
|
336
|
+
font-size: 2em;
|
|
337
|
+
line-height: 0.03125em;
|
|
338
|
+
vertical-align: -0.1875em;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.fa-fw {
|
|
342
|
+
text-align: center;
|
|
343
|
+
width: 1.25em;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.fa-ul {
|
|
347
|
+
list-style-type: none;
|
|
348
|
+
margin-left: var(--fa-li-margin, 2.5em);
|
|
349
|
+
padding-left: 0;
|
|
350
|
+
}
|
|
351
|
+
.fa-ul > li {
|
|
352
|
+
position: relative;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.fa-li {
|
|
356
|
+
left: calc(-1 * var(--fa-li-width, 2em));
|
|
357
|
+
position: absolute;
|
|
358
|
+
text-align: center;
|
|
359
|
+
width: var(--fa-li-width, 2em);
|
|
360
|
+
line-height: inherit;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.fa-border {
|
|
364
|
+
border-color: var(--fa-border-color, #eee);
|
|
365
|
+
border-radius: var(--fa-border-radius, 0.1em);
|
|
366
|
+
border-style: var(--fa-border-style, solid);
|
|
367
|
+
border-width: var(--fa-border-width, 0.08em);
|
|
368
|
+
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.fa-pull-left {
|
|
372
|
+
float: left;
|
|
373
|
+
margin-right: var(--fa-pull-margin, 0.3em);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.fa-pull-right {
|
|
377
|
+
float: right;
|
|
378
|
+
margin-left: var(--fa-pull-margin, 0.3em);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
.fa-beat {
|
|
382
|
+
animation-name: fa-beat;
|
|
383
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
384
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
385
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
386
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
387
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.fa-bounce {
|
|
391
|
+
animation-name: fa-bounce;
|
|
392
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
393
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
394
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
395
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
396
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.fa-fade {
|
|
400
|
+
animation-name: fa-fade;
|
|
401
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
402
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
403
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
404
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
405
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.fa-beat-fade {
|
|
409
|
+
animation-name: fa-beat-fade;
|
|
410
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
411
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
412
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
413
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
414
|
+
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.fa-flip {
|
|
418
|
+
animation-name: fa-flip;
|
|
419
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
420
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
421
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
422
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
423
|
+
animation-timing-function: var(--fa-animation-timing, ease-in-out);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.fa-shake {
|
|
427
|
+
animation-name: fa-shake;
|
|
428
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
429
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
430
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
431
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
432
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.fa-spin {
|
|
436
|
+
animation-name: fa-spin;
|
|
437
|
+
animation-delay: var(--fa-animation-delay, 0s);
|
|
438
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
439
|
+
animation-duration: var(--fa-animation-duration, 2s);
|
|
440
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
441
|
+
animation-timing-function: var(--fa-animation-timing, linear);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.fa-spin-reverse {
|
|
445
|
+
--fa-animation-direction: reverse;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.fa-pulse,
|
|
449
|
+
.fa-spin-pulse {
|
|
450
|
+
animation-name: fa-spin;
|
|
451
|
+
animation-direction: var(--fa-animation-direction, normal);
|
|
452
|
+
animation-duration: var(--fa-animation-duration, 1s);
|
|
453
|
+
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
|
|
454
|
+
animation-timing-function: var(--fa-animation-timing, steps(8));
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
@media (prefers-reduced-motion: reduce) {
|
|
458
|
+
.fa-beat,
|
|
459
|
+
.fa-bounce,
|
|
460
|
+
.fa-fade,
|
|
461
|
+
.fa-beat-fade,
|
|
462
|
+
.fa-flip,
|
|
463
|
+
.fa-pulse,
|
|
464
|
+
.fa-shake,
|
|
465
|
+
.fa-spin,
|
|
466
|
+
.fa-spin-pulse {
|
|
467
|
+
animation-delay: -1ms;
|
|
468
|
+
animation-duration: 1ms;
|
|
469
|
+
animation-iteration-count: 1;
|
|
470
|
+
transition-delay: 0s;
|
|
471
|
+
transition-duration: 0s;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
@keyframes fa-beat {
|
|
475
|
+
0%, 90% {
|
|
476
|
+
transform: scale(1);
|
|
477
|
+
}
|
|
478
|
+
45% {
|
|
479
|
+
transform: scale(var(--fa-beat-scale, 1.25));
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
@keyframes fa-bounce {
|
|
483
|
+
0% {
|
|
484
|
+
transform: scale(1, 1) translateY(0);
|
|
485
|
+
}
|
|
486
|
+
10% {
|
|
487
|
+
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
|
|
488
|
+
}
|
|
489
|
+
30% {
|
|
490
|
+
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
|
|
491
|
+
}
|
|
492
|
+
50% {
|
|
493
|
+
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
|
|
494
|
+
}
|
|
495
|
+
57% {
|
|
496
|
+
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
|
|
497
|
+
}
|
|
498
|
+
64% {
|
|
499
|
+
transform: scale(1, 1) translateY(0);
|
|
500
|
+
}
|
|
501
|
+
100% {
|
|
502
|
+
transform: scale(1, 1) translateY(0);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
@keyframes fa-fade {
|
|
506
|
+
50% {
|
|
507
|
+
opacity: var(--fa-fade-opacity, 0.4);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
@keyframes fa-beat-fade {
|
|
511
|
+
0%, 100% {
|
|
512
|
+
opacity: var(--fa-beat-fade-opacity, 0.4);
|
|
513
|
+
transform: scale(1);
|
|
514
|
+
}
|
|
515
|
+
50% {
|
|
516
|
+
opacity: 1;
|
|
517
|
+
transform: scale(var(--fa-beat-fade-scale, 1.125));
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
@keyframes fa-flip {
|
|
521
|
+
50% {
|
|
522
|
+
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
@keyframes fa-shake {
|
|
526
|
+
0% {
|
|
527
|
+
transform: rotate(-15deg);
|
|
528
|
+
}
|
|
529
|
+
4% {
|
|
530
|
+
transform: rotate(15deg);
|
|
531
|
+
}
|
|
532
|
+
8%, 24% {
|
|
533
|
+
transform: rotate(-18deg);
|
|
534
|
+
}
|
|
535
|
+
12%, 28% {
|
|
536
|
+
transform: rotate(18deg);
|
|
537
|
+
}
|
|
538
|
+
16% {
|
|
539
|
+
transform: rotate(-22deg);
|
|
540
|
+
}
|
|
541
|
+
20% {
|
|
542
|
+
transform: rotate(22deg);
|
|
543
|
+
}
|
|
544
|
+
32% {
|
|
545
|
+
transform: rotate(-12deg);
|
|
546
|
+
}
|
|
547
|
+
36% {
|
|
548
|
+
transform: rotate(12deg);
|
|
549
|
+
}
|
|
550
|
+
40%, 100% {
|
|
551
|
+
transform: rotate(0deg);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
@keyframes fa-spin {
|
|
555
|
+
0% {
|
|
556
|
+
transform: rotate(0deg);
|
|
557
|
+
}
|
|
558
|
+
100% {
|
|
559
|
+
transform: rotate(360deg);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
.fa-rotate-90 {
|
|
563
|
+
transform: rotate(90deg);
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
.fa-rotate-180 {
|
|
567
|
+
transform: rotate(180deg);
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.fa-rotate-270 {
|
|
571
|
+
transform: rotate(270deg);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
.fa-flip-horizontal {
|
|
575
|
+
transform: scale(-1, 1);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.fa-flip-vertical {
|
|
579
|
+
transform: scale(1, -1);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.fa-flip-both,
|
|
583
|
+
.fa-flip-horizontal.fa-flip-vertical {
|
|
584
|
+
transform: scale(-1, -1);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
.fa-rotate-by {
|
|
588
|
+
transform: rotate(var(--fa-rotate-angle, 0));
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
.fa-stack {
|
|
592
|
+
display: inline-block;
|
|
593
|
+
vertical-align: middle;
|
|
594
|
+
height: 2em;
|
|
595
|
+
position: relative;
|
|
596
|
+
width: 2.5em;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.fa-stack-1x,
|
|
600
|
+
.fa-stack-2x {
|
|
601
|
+
bottom: 0;
|
|
602
|
+
left: 0;
|
|
603
|
+
margin: auto;
|
|
604
|
+
position: absolute;
|
|
605
|
+
right: 0;
|
|
606
|
+
top: 0;
|
|
607
|
+
z-index: var(--fa-stack-z-index, auto);
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
.svg-inline--fa.fa-stack-1x {
|
|
611
|
+
height: 1em;
|
|
612
|
+
width: 1.25em;
|
|
613
|
+
}
|
|
614
|
+
.svg-inline--fa.fa-stack-2x {
|
|
615
|
+
height: 2em;
|
|
616
|
+
width: 2.5em;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.fa-inverse {
|
|
620
|
+
color: var(--fa-inverse, #fff);
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
.sr-only,
|
|
624
|
+
.fa-sr-only {
|
|
625
|
+
position: absolute;
|
|
626
|
+
width: 1px;
|
|
627
|
+
height: 1px;
|
|
628
|
+
padding: 0;
|
|
629
|
+
margin: -1px;
|
|
630
|
+
overflow: hidden;
|
|
631
|
+
clip: rect(0, 0, 0, 0);
|
|
632
|
+
white-space: nowrap;
|
|
633
|
+
border-width: 0;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.sr-only-focusable:not(:focus),
|
|
637
|
+
.fa-sr-only-focusable:not(:focus) {
|
|
638
|
+
position: absolute;
|
|
639
|
+
width: 1px;
|
|
640
|
+
height: 1px;
|
|
641
|
+
padding: 0;
|
|
642
|
+
margin: -1px;
|
|
643
|
+
overflow: hidden;
|
|
644
|
+
clip: rect(0, 0, 0, 0);
|
|
645
|
+
white-space: nowrap;
|
|
646
|
+
border-width: 0;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.svg-inline--fa .fa-primary {
|
|
650
|
+
fill: var(--fa-primary-color, currentColor);
|
|
651
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.svg-inline--fa .fa-secondary {
|
|
655
|
+
fill: var(--fa-secondary-color, currentColor);
|
|
656
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
.svg-inline--fa.fa-swap-opacity .fa-primary {
|
|
660
|
+
opacity: var(--fa-secondary-opacity, 0.4);
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.svg-inline--fa.fa-swap-opacity .fa-secondary {
|
|
664
|
+
opacity: var(--fa-primary-opacity, 1);
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
.svg-inline--fa mask .fa-primary,
|
|
668
|
+
.svg-inline--fa mask .fa-secondary {
|
|
669
|
+
fill: black;
|
|
670
|
+
}`;function x1(){const e=p1,t=h1,n=se.cssPrefix,r=se.replacementClass;let o=nD;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(a,".".concat(r))}return o}let wm=!1;function qc(){se.autoAddCss&&!wm&&(q4(x1()),wm=!0)}var rD={mixout(){return{dom:{css:x1,insertCss:qc}}},hooks(){return{beforeDOMElementCreation(){qc()},beforeI2svg(){qc()}}}};const Vn=ur||{};Vn[zn]||(Vn[zn]={});Vn[zn].styles||(Vn[zn].styles={});Vn[zn].hooks||(Vn[zn].hooks={});Vn[zn].shims||(Vn[zn].shims=[]);var yn=Vn[zn];const w1=[],C1=function(){Le.removeEventListener("DOMContentLoaded",C1),Ga=1,w1.map(e=>e())};let Ga=!1;Yn&&(Ga=(Le.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Le.readyState),Ga||Le.addEventListener("DOMContentLoaded",C1));function oD(e){Yn&&(Ga?setTimeout(e,0):w1.push(e))}function fs(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?v1(e):"<".concat(t," ").concat(Q4(n),">").concat(r.map(fs).join(""),"</").concat(t,">")}function Cm(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Kc=function(t,n,r,o){var i=Object.keys(t),s=i.length,a=n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<s;l++)c=i[l],u=a(u,t[c],c,t);return u};function iD(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const i=e.charCodeAt(n++);(i&64512)==56320?t.push(((o&1023)<<10)+(i&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}function bf(e){const t=iD(e);return t.length===1?t[0].toString(16):null}function sD(e,t){const n=e.length;let r=e.charCodeAt(t),o;return r>=55296&&r<=56319&&n>t+1&&(o=e.charCodeAt(t+1),o>=56320&&o<=57343)?(r-55296)*1024+o-56320+65536:r}function _m(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function vf(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,o=_m(t);typeof yn.hooks.addPack=="function"&&!r?yn.hooks.addPack(e,_m(t)):yn.styles[e]=ee(ee({},yn.styles[e]||{}),o),e==="fas"&&vf("fa",t)}const{styles:Vi,shims:aD}=yn,_1=Object.keys(Xd),lD=_1.reduce((e,t)=>(e[t]=Object.keys(Xd[t]),e),{});let Zd=null,S1={},E1={},I1={},k1={},A1={};function cD(e){return~Y4.indexOf(e)}function uD(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r===e&&o!==""&&!cD(o)?o:null}const R1=()=>{const e=r=>Kc(Vi,(o,i,s)=>(o[s]=Kc(i,r,{}),o),{});S1=e((r,o,i)=>(o[3]&&(r[o[3]]=i),o[2]&&o[2].filter(a=>typeof a=="number").forEach(a=>{r[a.toString(16)]=i}),r)),E1=e((r,o,i)=>(r[i]=i,o[2]&&o[2].filter(a=>typeof a=="string").forEach(a=>{r[a]=i}),r)),A1=e((r,o,i)=>{const s=o[2];return r[i]=i,s.forEach(a=>{r[a]=i}),r});const t="far"in Vi||se.autoFetchSvg,n=Kc(aD,(r,o)=>{const i=o[0];let s=o[1];const a=o[2];return s==="far"&&!t&&(s="fas"),typeof i=="string"&&(r.names[i]={prefix:s,iconName:a}),typeof i=="number"&&(r.unicodes[i.toString(16)]={prefix:s,iconName:a}),r},{names:{},unicodes:{}});I1=n.names,k1=n.unicodes,Zd=Vl(se.styleDefault,{family:se.familyDefault})};J4(e=>{Zd=Vl(e.styleDefault,{family:se.familyDefault})});R1();function Jd(e,t){return(S1[e]||{})[t]}function fD(e,t){return(E1[e]||{})[t]}function Or(e,t){return(A1[e]||{})[t]}function T1(e){return I1[e]||{prefix:null,iconName:null}}function dD(e){const t=k1[e],n=Jd("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function fr(){return Zd}const N1=()=>({prefix:null,iconName:null,rest:[]});function pD(e){let t=ct;const n=_1.reduce((r,o)=>(r[o]="".concat(se.cssPrefix,"-").concat(o),r),{});return f1.forEach(r=>{(e.includes(n[r])||e.some(o=>lD[r].includes(o)))&&(t=r)}),t}function Vl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=ct}=t,r=G4[n][e];if(n===Bl&&!e)return"fad";const o=xm[n][e]||xm[n][r],i=e in yn.styles?e:null;return o||i||null}function hD(e){let t=[],n=null;return e.forEach(r=>{const o=uD(se.cssPrefix,r);o?n=o:r&&t.push(r)}),{iconName:n,rest:t}}function Sm(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function Gl(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const o=df.concat(T4),i=Sm(e.filter(f=>o.includes(f))),s=Sm(e.filter(f=>!df.includes(f))),a=i.filter(f=>(r=f,!u1.includes(f))),[l=null]=a,c=pD(i),u=ee(ee({},hD(s)),{},{prefix:Vl(l,{family:c})});return ee(ee(ee({},u),bD({values:e,family:c,styles:Vi,config:se,canonical:u,givenPrefix:r})),gD(n,r,u))}function gD(e,t,n){let{prefix:r,iconName:o}=n;if(e||!r||!o)return{prefix:r,iconName:o};const i=t==="fa"?T1(o):{},s=Or(r,o);return o=i.iconName||s||o,r=i.prefix||r,r==="far"&&!Vi.far&&Vi.fas&&!se.autoFetchSvg&&(r="fas"),{prefix:r,iconName:o}}const mD=f1.filter(e=>e!==ct||e!==Bl),yD=Object.keys(ff).filter(e=>e!==ct).map(e=>Object.keys(ff[e])).flat();function bD(e){const{values:t,family:n,canonical:r,givenPrefix:o="",styles:i={},config:s={}}=e,a=n===Bl,l=t.includes("fa-duotone")||t.includes("fad"),c=s.familyDefault==="duotone",u=r.prefix==="fad"||r.prefix==="fa-duotone";if(!a&&(l||c||u)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&mD.includes(n)&&(Object.keys(i).find(d=>yD.includes(d))||s.autoFetchSvg)){const d=C4.get(n).defaultShortPrefixId;r.prefix=d,r.iconName=Or(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||o==="fa")&&(r.prefix=fr()||"fas"),r}let vD=class{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const o=n.reduce(this._pullDefinitions,{});Object.keys(o).forEach(i=>{this.definitions[i]=ee(ee({},this.definitions[i]||{}),o[i]),vf(i,o[i]);const s=Xd[ct][i];s&&vf(s,o[i]),R1()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(o=>{const{prefix:i,iconName:s,icon:a}=r[o],l=a[2];t[i]||(t[i]={}),l.length>0&&l.forEach(c=>{typeof c=="string"&&(t[i][c]=a)}),t[i][s]=a}),t}},Em=[],yo={};const Co={},xD=Object.keys(Co);function wD(e,t){let{mixoutsTo:n}=t;return Em=e,yo={},Object.keys(Co).forEach(r=>{xD.indexOf(r)===-1&&delete Co[r]}),Em.forEach(r=>{const o=r.mixout?r.mixout():{};if(Object.keys(o).forEach(i=>{typeof o[i]=="function"&&(n[i]=o[i]),typeof o[i]=="object"&&Object.keys(o[i]).forEach(s=>{n[i]||(n[i]={}),n[i][s]=o[i][s]})}),r.hooks){const i=r.hooks();Object.keys(i).forEach(s=>{yo[s]||(yo[s]=[]),yo[s].push(i[s])})}r.provides&&r.provides(Co)}),n}function xf(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(yo[e]||[]).forEach(s=>{t=s.apply(null,[t,...r])}),t}function Wr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(yo[e]||[]).forEach(i=>{i.apply(null,n)})}function dr(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Co[e]?Co[e].apply(null,t):void 0}function wf(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||fr();if(t)return t=Or(n,t)||t,Cm(P1.definitions,n,t)||Cm(yn.styles,n,t)}const P1=new vD,CD=()=>{se.autoReplaceSvg=!1,se.observeMutations=!1,Wr("noAuto")},_D={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Yn?(Wr("beforeI2svg",e),dr("pseudoElements2svg",e),dr("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;se.autoReplaceSvg===!1&&(se.autoReplaceSvg=!0),se.observeMutations=!0,oD(()=>{ED({autoReplaceSvgRoot:t}),Wr("watch",e)})}},SD={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Or(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Vl(e[0]);return{prefix:n,iconName:Or(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(se.cssPrefix,"-"))>-1||e.match($4))){const t=Gl(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||fr(),iconName:Or(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=fr();return{prefix:t,iconName:Or(t,e)||e}}}},Ft={noAuto:CD,config:se,dom:_D,parse:SD,library:P1,findIconDefinition:wf,toHtml:fs},ED=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=Le}=e;(Object.keys(yn.styles).length>0||se.autoFetchSvg)&&Yn&&se.autoReplaceSvg&&Ft.dom.i2svg({node:t})};function $l(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>fs(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Yn)return;const n=Le.createElement("div");return n.innerHTML=e.html,n.children}}),e}function ID(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:s}=e;if(Ud(s)&&n.found&&!r.found){const{width:a,height:l}=n,c={x:a/l/2,y:.5};o.style=zl(ee(ee({},i),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function kD(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;const s=i===!0?"".concat(t,"-").concat(se.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ee(ee({},o),{},{id:s}),children:r}]}]}function qd(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:s,title:a,maskId:l,titleId:c,extra:u,watchable:f=!1}=e,{width:d,height:p}=n.found?n:t,g=k4.includes(r),h=[se.replacementClass,o?"".concat(se.cssPrefix,"-").concat(o):""].filter(S=>u.classes.indexOf(S)===-1).filter(S=>S!==""||!!S).concat(u.classes).join(" ");let y={children:[],attributes:ee(ee({},u.attributes),{},{"data-prefix":r,"data-icon":o,class:h,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(d," ").concat(p)})};const m=g&&!~u.classes.indexOf("fa-fw")?{width:"".concat(d/p*16*.0625,"em")}:{};f&&(y.attributes[Hr]=""),a&&(y.children.push({tag:"title",attributes:{id:y.attributes["aria-labelledby"]||"title-".concat(c||zi())},children:[a]}),delete y.attributes.title);const x=ee(ee({},y),{},{prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:s,styles:ee(ee({},m),u.styles)}),{children:v,attributes:C}=n.found&&t.found?dr("generateAbstractMask",x)||{children:[],attributes:{}}:dr("generateAbstractIcon",x)||{children:[],attributes:{}};return x.children=v,x.attributes=C,s?kD(x):ID(x)}function Im(e){const{content:t,width:n,height:r,transform:o,title:i,extra:s,watchable:a=!1}=e,l=ee(ee(ee({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});a&&(l[Hr]="");const c=ee({},s.styles);Ud(o)&&(c.transform=tD({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=zl(c);u.length>0&&(l.style=u);const f=[];return f.push({tag:"span",attributes:l,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function AD(e){const{content:t,title:n,extra:r}=e,o=ee(ee(ee({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=zl(r.styles);i.length>0&&(o.style=i);const s=[];return s.push({tag:"span",attributes:o,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}const{styles:Qc}=yn;function Cf(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return Array.isArray(r)?o={tag:"g",attributes:{class:"".concat(se.cssPrefix,"-").concat(Jc.GROUP)},children:[{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(Jc.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(Jc.PRIMARY),fill:"currentColor",d:r[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const RD={found:!1,width:512,height:512};function TD(e,t){!g1&&!se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function _f(e,t){let n=t;return t==="fa"&&se.styleDefault!==null&&(t=fr()),new Promise((r,o)=>{if(n==="fa"){const i=T1(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&Qc[t]&&Qc[t][e]){const i=Qc[t][e];return r(Cf(i))}TD(e,t),r(ee(ee({},RD),{},{icon:se.showMissingIcons&&e?dr("missingIconAbstract")||{}:{}}))})}const km=()=>{},Sf=se.measurePerformance&&$s&&$s.mark&&$s.measure?$s:{mark:km,measure:km},mi='FA "6.7.2"',ND=e=>(Sf.mark("".concat(mi," ").concat(e," begins")),()=>O1(e)),O1=e=>{Sf.mark("".concat(mi," ").concat(e," ends")),Sf.measure("".concat(mi," ").concat(e),"".concat(mi," ").concat(e," begins"),"".concat(mi," ").concat(e," ends"))};var Kd={begin:ND,end:O1};const ba=()=>{};function Am(e){return typeof(e.getAttribute?e.getAttribute(Hr):null)=="string"}function PD(e){const t=e.getAttribute?e.getAttribute(Hd):null,n=e.getAttribute?e.getAttribute(Wd):null;return t&&n}function OD(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(se.replacementClass)}function MD(){return se.autoReplaceSvg===!0?va.replace:va[se.autoReplaceSvg]||va.replace}function DD(e){return Le.createElementNS("http://www.w3.org/2000/svg",e)}function FD(e){return Le.createElement(e)}function M1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?DD:FD}=t;if(typeof e=="string")return Le.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(i){r.setAttribute(i,e.attributes[i])}),(e.children||[]).forEach(function(i){r.appendChild(M1(i,{ceFn:n}))}),r}function jD(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const va={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(M1(n),t)}),t.getAttribute(Hr)===null&&se.keepOriginalSource){let n=Le.createComment(jD(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Yd(t).indexOf(se.replacementClass))return va.replace(e);const r=new RegExp("".concat(se.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const i=n[0].attributes.class.split(" ").reduce((s,a)=>(a===se.replacementClass||a.match(r)?s.toSvg.push(a):s.toNode.push(a),s),{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}const o=n.map(i=>fs(i)).join(`
|
|
671
|
+
`);t.setAttribute(Hr,""),t.innerHTML=o}};function Rm(e){e()}function D1(e,t){const n=typeof t=="function"?t:ba;if(e.length===0)n();else{let r=Rm;se.mutateApproach===z4&&(r=ur.requestAnimationFrame||Rm),r(()=>{const o=MD(),i=Kd.begin("mutate");e.map(o),i(),n()})}}let Qd=!1;function F1(){Qd=!0}function Ef(){Qd=!1}let $a=null;function Tm(e){if(!mm||!se.observeMutations)return;const{treeCallback:t=ba,nodeCallback:n=ba,pseudoElementsCallback:r=ba,observeMutationsRoot:o=Le}=e;$a=new mm(i=>{if(Qd)return;const s=fr();Wo(i).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Am(a.addedNodes[0])&&(se.searchPseudoElements&&r(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&se.searchPseudoElements&&r(a.target.parentNode),a.type==="attributes"&&Am(a.target)&&~X4.indexOf(a.attributeName))if(a.attributeName==="class"&&PD(a.target)){const{prefix:l,iconName:c}=Gl(Yd(a.target));a.target.setAttribute(Hd,l||s),c&&a.target.setAttribute(Wd,c)}else OD(a.target)&&n(a.target)})}),Yn&&$a.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function LD(){$a&&$a.disconnect()}function BD(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,o)=>{const i=o.split(":"),s=i[0],a=i.slice(1);return s&&a.length>0&&(r[s]=a.join(":").trim()),r},{})),n}function zD(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let o=Gl(Yd(e));return o.prefix||(o.prefix=fr()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=fD(o.prefix,e.innerText)||Jd(o.prefix,bf(e.innerText))),!o.iconName&&se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function VD(e){const t=Wo(e.attributes).reduce((o,i)=>(o.name!=="class"&&o.name!=="style"&&(o[i.name]=i.value),o),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return se.autoA11y&&(n?t["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(r||zi()):(t["aria-hidden"]="true",t.focusable="false")),t}function GD(){return{iconName:null,title:null,titleId:null,prefix:null,transform:mn,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Nm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=zD(e),i=VD(e),s=xf("parseNodeAttributes",{},e);let a=t.styleParser?BD(e):[];return ee({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:mn,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:a,attributes:i}},s)}const{styles:$D}=yn;function j1(e){const t=se.autoReplaceSvg==="nest"?Nm(e,{styleParser:!1}):Nm(e);return~t.extra.classes.indexOf(y1)?dr("generateLayersText",e,t):dr("generateSvgReplacementMutation",e,t)}function HD(){return[...S4,...df]}function Pm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Yn)return Promise.resolve();const n=Le.documentElement.classList,r=u=>n.add("".concat(vm,"-").concat(u)),o=u=>n.remove("".concat(vm,"-").concat(u)),i=se.autoFetchSvg?HD():u1.concat(Object.keys($D));i.includes("fa")||i.push("fa");const s=[".".concat(y1,":not([").concat(Hr,"])")].concat(i.map(u=>".".concat(u,":not([").concat(Hr,"])"))).join(", ");if(s.length===0)return Promise.resolve();let a=[];try{a=Wo(e.querySelectorAll(s))}catch{}if(a.length>0)r("pending"),o("complete");else return Promise.resolve();const l=Kd.begin("onTree"),c=a.reduce((u,f)=>{try{const d=j1(f);d&&u.push(d)}catch(d){g1||d.name==="MissingIcon"&&console.error(d)}return u},[]);return new Promise((u,f)=>{Promise.all(c).then(d=>{D1(d,()=>{r("active"),r("complete"),o("pending"),typeof t=="function"&&t(),l(),u()})}).catch(d=>{l(),f(d)})})}function WD(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;j1(e).then(n=>{n&&D1([n],t)})}function XD(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:wf(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:wf(o||{})),e(r,ee(ee({},n),{},{mask:o}))}}const YD=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=mn,symbol:r=!1,mask:o=null,maskId:i=null,title:s=null,titleId:a=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:f,iconName:d,icon:p}=e;return $l(ee({type:"icon"},e),()=>(Wr("beforeDOMElementCreation",{iconDefinition:e,params:t}),se.autoA11y&&(s?c["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(a||zi()):(c["aria-hidden"]="true",c.focusable="false")),qd({icons:{main:Cf(p),mask:o?Cf(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:f,iconName:d,transform:ee(ee({},mn),n),symbol:r,title:s,maskId:i,titleId:a,extra:{attributes:c,styles:u,classes:l}})))};var UD={mixout(){return{icon:XD(YD)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Pm,e.nodeCallback=WD,e}}},provides(e){e.i2svg=function(t){const{node:n=Le,callback:r=()=>{}}=t;return Pm(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:o,titleId:i,prefix:s,transform:a,symbol:l,mask:c,maskId:u,extra:f}=n;return new Promise((d,p)=>{Promise.all([_f(r,s),c.iconName?_f(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(g=>{let[h,y]=g;d([t,qd({icons:{main:h,mask:y},prefix:s,iconName:r,transform:a,symbol:l,maskId:u,title:o,titleId:i,extra:f,watchable:!0})])}).catch(p)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:o,transform:i,styles:s}=t;const a=zl(s);a.length>0&&(r.style=a);let l;return Ud(i)&&(l=dr("generateAbstractTransformGrouping",{main:o,transform:i,containerWidth:o.width,iconWidth:o.width})),n.push(l||o.icon),{children:n,attributes:r}}}},ZD={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return $l({type:"layer"},()=>{Wr("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(o=>{Array.isArray(o)?o.map(i=>{r=r.concat(i.abstract)}):r=r.concat(o.abstract)}),[{tag:"span",attributes:{class:["".concat(se.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},JD={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return $l({type:"counter",content:e},()=>(Wr("beforeDOMElementCreation",{content:e,params:t}),AD({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(se.cssPrefix,"-layers-counter"),...r]}})))}}}},qD={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=mn,title:r=null,classes:o=[],attributes:i={},styles:s={}}=t;return $l({type:"text",content:e},()=>(Wr("beforeDOMElementCreation",{content:e,params:t}),Im({content:e,transform:ee(ee({},mn),n),title:r,extra:{attributes:i,styles:s,classes:["".concat(se.cssPrefix,"-layers-text"),...o]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:o,extra:i}=n;let s=null,a=null;if(l1){const l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();s=c.width/l,a=c.height/l}return se.autoA11y&&!r&&(i.attributes["aria-hidden"]="true"),Promise.resolve([t,Im({content:t.innerHTML,width:s,height:a,transform:o,title:r,extra:i,watchable:!0})])}}};const KD=new RegExp('"',"ug"),Om=[1105920,1112319],Mm=ee(ee(ee(ee({},{FontAwesome:{normal:"fas",400:"fas"}}),w4),L4),N4),If=Object.keys(Mm).reduce((e,t)=>(e[t.toLowerCase()]=Mm[t],e),{}),QD=Object.keys(If).reduce((e,t)=>{const n=If[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function e3(e){const t=e.replace(KD,""),n=sD(t,0),r=n>=Om[0]&&n<=Om[1],o=t.length===2?t[0]===t[1]:!1;return{value:bf(o?t[0]:t),isSecondary:r||o}}function t3(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return(If[n]||{})[o]||QD[n]}function Dm(e,t){const n="".concat(B4).concat(t.replace(":","-"));return new Promise((r,o)=>{if(e.getAttribute(n)!==null)return r();const s=Wo(e.children).filter(d=>d.getAttribute(hf)===t)[0],a=ur.getComputedStyle(e,t),l=a.getPropertyValue("font-family"),c=l.match(H4),u=a.getPropertyValue("font-weight"),f=a.getPropertyValue("content");if(s&&!c)return e.removeChild(s),r();if(c&&f!=="none"&&f!==""){const d=a.getPropertyValue("content");let p=t3(l,u);const{value:g,isSecondary:h}=e3(d),y=c[0].startsWith("FontAwesome");let m=Jd(p,g),x=m;if(y){const v=dD(g);v.iconName&&v.prefix&&(m=v.iconName,p=v.prefix)}if(m&&!h&&(!s||s.getAttribute(Hd)!==p||s.getAttribute(Wd)!==x)){e.setAttribute(n,x),s&&e.removeChild(s);const v=GD(),{extra:C}=v;C.attributes[hf]=t,_f(m,p).then(S=>{const E=qd(ee(ee({},v),{},{icons:{main:S,mask:N1()},prefix:p,iconName:x,extra:C,watchable:!0})),I=Le.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(I,e.firstChild):e.appendChild(I),I.outerHTML=E.map(P=>fs(P)).join(`
|
|
672
|
+
`),e.removeAttribute(n),r()}).catch(o)}else r()}else r()})}function n3(e){return Promise.all([Dm(e,"::before"),Dm(e,"::after")])}function r3(e){return e.parentNode!==document.head&&!~V4.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(hf)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Fm(e){if(Yn)return new Promise((t,n)=>{const r=Wo(e.querySelectorAll("*")).filter(r3).map(n3),o=Kd.begin("searchPseudoElements");F1(),Promise.all(r).then(()=>{o(),Ef(),t()}).catch(()=>{o(),Ef(),n()})})}var o3={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=Fm,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=Le}=t;se.searchPseudoElements&&Fm(n)}}};let jm=!1;var i3={mixout(){return{dom:{unwatch(){F1(),jm=!0}}}},hooks(){return{bootstrap(){Tm(xf("mutationObserverCallbacks",{}))},noAuto(){LD()},watch(e){const{observeMutationsRoot:t}=e;jm?Ef():Tm(xf("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const Lm=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const o=r.toLowerCase().split("-"),i=o[0];let s=o.slice(1).join("-");if(i&&s==="h")return n.flipX=!0,n;if(i&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(i){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},t)};var s3={mixout(){return{parse:{transform:e=>Lm(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Lm(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:o,iconWidth:i}=t;const s={transform:"translate(".concat(o/2," 256)")},a="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(a," ").concat(l," ").concat(c)},f={transform:"translate(".concat(i/2*-1," -256)")},d={outer:s,inner:u,path:f};return{tag:"g",attributes:ee({},d.outer),children:[{tag:"g",attributes:ee({},d.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:ee(ee({},n.icon.attributes),d.path)}]}]}}}};const eu={x:0,y:0,width:"100%",height:"100%"};function Bm(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function a3(e){return e.tag==="g"?e.children:[e]}var l3={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Gl(n.split(" ").map(o=>o.trim())):N1();return r.prefix||(r.prefix=fr()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:o,mask:i,maskId:s,transform:a}=t;const{width:l,icon:c}=o,{width:u,icon:f}=i,d=eD({transform:a,containerWidth:u,iconWidth:l}),p={tag:"rect",attributes:ee(ee({},eu),{},{fill:"white"})},g=c.children?{children:c.children.map(Bm)}:{},h={tag:"g",attributes:ee({},d.inner),children:[Bm(ee({tag:c.tag,attributes:ee(ee({},c.attributes),d.path)},g))]},y={tag:"g",attributes:ee({},d.outer),children:[h]},m="mask-".concat(s||zi()),x="clip-".concat(s||zi()),v={tag:"mask",attributes:ee(ee({},eu),{},{id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,y]},C={tag:"defs",children:[{tag:"clipPath",attributes:{id:x},children:a3(f)},v]};return n.push(C,{tag:"rect",attributes:ee({fill:"currentColor","clip-path":"url(#".concat(x,")"),mask:"url(#".concat(m,")")},eu)}),{children:n,attributes:r}}}},c3={provides(e){let t=!1;ur.matchMedia&&(t=ur.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:ee(ee({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=ee(ee({},o),{},{attributeName:"opacity"}),s={tag:"circle",attributes:ee(ee({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||s.children.push({tag:"animate",attributes:ee(ee({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ee(ee({},i),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:ee(ee({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:ee(ee({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:ee(ee({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ee(ee({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},u3={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},f3=[rD,UD,ZD,JD,qD,o3,i3,s3,l3,c3,u3];wD(f3,{mixoutsTo:Ft});Ft.noAuto;const d3=Ft.config;Ft.library;Ft.dom;const kf=Ft.parse;Ft.findIconDefinition;Ft.toHtml;const p3=Ft.icon;Ft.layer;Ft.text;Ft.counter;var Ws={exports:{}},Xs={exports:{}},ke={};/** @license React v16.13.1
|
|
673
|
+
* react-is.production.min.js
|
|
674
|
+
*
|
|
675
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
676
|
+
*
|
|
677
|
+
* This source code is licensed under the MIT license found in the
|
|
678
|
+
* LICENSE file in the root directory of this source tree.
|
|
679
|
+
*/var zm;function h3(){if(zm)return ke;zm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function v(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case t:switch(S=S.type,S){case l:case c:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case a:case u:case g:case p:case s:return S;default:return E}}case n:return E}}}function C(S){return v(S)===c}return ke.AsyncMode=l,ke.ConcurrentMode=c,ke.ContextConsumer=a,ke.ContextProvider=s,ke.Element=t,ke.ForwardRef=u,ke.Fragment=r,ke.Lazy=g,ke.Memo=p,ke.Portal=n,ke.Profiler=i,ke.StrictMode=o,ke.Suspense=f,ke.isAsyncMode=function(S){return C(S)||v(S)===l},ke.isConcurrentMode=C,ke.isContextConsumer=function(S){return v(S)===a},ke.isContextProvider=function(S){return v(S)===s},ke.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},ke.isForwardRef=function(S){return v(S)===u},ke.isFragment=function(S){return v(S)===r},ke.isLazy=function(S){return v(S)===g},ke.isMemo=function(S){return v(S)===p},ke.isPortal=function(S){return v(S)===n},ke.isProfiler=function(S){return v(S)===i},ke.isStrictMode=function(S){return v(S)===o},ke.isSuspense=function(S){return v(S)===f},ke.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===c||S===i||S===o||S===f||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===g||S.$$typeof===p||S.$$typeof===s||S.$$typeof===a||S.$$typeof===u||S.$$typeof===y||S.$$typeof===m||S.$$typeof===x||S.$$typeof===h)},ke.typeOf=v,ke}var Ae={};/** @license React v16.13.1
|
|
680
|
+
* react-is.development.js
|
|
681
|
+
*
|
|
682
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
683
|
+
*
|
|
684
|
+
* This source code is licensed under the MIT license found in the
|
|
685
|
+
* LICENSE file in the root directory of this source tree.
|
|
686
|
+
*/var Vm;function g3(){return Vm||(Vm=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,h=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,x=e?Symbol.for("react.scope"):60119;function v(Z){return typeof Z=="string"||typeof Z=="function"||Z===r||Z===c||Z===i||Z===o||Z===f||Z===d||typeof Z=="object"&&Z!==null&&(Z.$$typeof===g||Z.$$typeof===p||Z.$$typeof===s||Z.$$typeof===a||Z.$$typeof===u||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===x||Z.$$typeof===h)}function C(Z){if(typeof Z=="object"&&Z!==null){var ue=Z.$$typeof;switch(ue){case t:var fe=Z.type;switch(fe){case l:case c:case r:case i:case o:case f:return fe;default:var Se=fe&&fe.$$typeof;switch(Se){case a:case u:case g:case p:case s:return Se;default:return ue}}case n:return ue}}}var S=l,E=c,I=a,P=s,M=t,w=u,R=r,O=g,L=p,A=n,j=i,D=o,z=f,V=!1;function F(Z){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),_(Z)||C(Z)===l}function _(Z){return C(Z)===c}function G(Z){return C(Z)===a}function $(Z){return C(Z)===s}function T(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function H(Z){return C(Z)===u}function J(Z){return C(Z)===r}function W(Z){return C(Z)===g}function X(Z){return C(Z)===p}function U(Z){return C(Z)===n}function Q(Z){return C(Z)===i}function ne(Z){return C(Z)===o}function oe(Z){return C(Z)===f}Ae.AsyncMode=S,Ae.ConcurrentMode=E,Ae.ContextConsumer=I,Ae.ContextProvider=P,Ae.Element=M,Ae.ForwardRef=w,Ae.Fragment=R,Ae.Lazy=O,Ae.Memo=L,Ae.Portal=A,Ae.Profiler=j,Ae.StrictMode=D,Ae.Suspense=z,Ae.isAsyncMode=F,Ae.isConcurrentMode=_,Ae.isContextConsumer=G,Ae.isContextProvider=$,Ae.isElement=T,Ae.isForwardRef=H,Ae.isFragment=J,Ae.isLazy=W,Ae.isMemo=X,Ae.isPortal=U,Ae.isProfiler=Q,Ae.isStrictMode=ne,Ae.isSuspense=oe,Ae.isValidElementType=v,Ae.typeOf=C}()),Ae}var Gm;function ep(){return Gm||(Gm=1,process.env.NODE_ENV==="production"?Xs.exports=h3():Xs.exports=g3()),Xs.exports}/*
|
|
687
|
+
object-assign
|
|
688
|
+
(c) Sindre Sorhus
|
|
689
|
+
@license MIT
|
|
690
|
+
*/var tu,$m;function m3(){if($m)return tu;$m=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var s={},a=0;a<10;a++)s["_"+String.fromCharCode(a)]=a;var l=Object.getOwnPropertyNames(s).map(function(u){return s[u]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return tu=o()?Object.assign:function(i,s){for(var a,l=r(i),c,u=1;u<arguments.length;u++){a=Object(arguments[u]);for(var f in a)t.call(a,f)&&(l[f]=a[f]);if(e){c=e(a);for(var d=0;d<c.length;d++)n.call(a,c[d])&&(l[c[d]]=a[c[d]])}}return l},tu}var nu,Hm;function tp(){if(Hm)return nu;Hm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return nu=e,nu}var ru,Wm;function L1(){return Wm||(Wm=1,ru=Function.call.bind(Object.prototype.hasOwnProperty)),ru}var ou,Xm;function y3(){if(Xm)return ou;Xm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=tp(),n={},r=L1();e=function(i){var s="Warning: "+i;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}}}function o(i,s,a,l,c){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var f;try{if(typeof i[u]!="function"){var d=Error((l||"React class")+": "+a+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=i[u](s,u,l,a,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((l||"React class")+": type specification of "+a+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=c?c():"";e("Failed "+a+" type: "+f.message+(p??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},ou=o,ou}var iu,Ym;function b3(){if(Ym)return iu;Ym=1;var e=ep(),t=m3(),n=tp(),r=L1(),o=y3(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function s(){return null}return iu=function(a,l){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(_){var G=_&&(c&&_[c]||_[u]);if(typeof G=="function")return G}var d="<<anonymous>>",p={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:x(),arrayOf:v,element:C(),elementType:S(),instanceOf:E,node:w(),objectOf:P,oneOf:I,oneOfType:M,shape:O,exact:L};function g(_,G){return _===G?_!==0||1/_===1/G:_!==_&&G!==G}function h(_,G){this.message=_,this.data=G&&typeof G=="object"?G:{},this.stack=""}h.prototype=Error.prototype;function y(_){if(process.env.NODE_ENV!=="production")var G={},$=0;function T(J,W,X,U,Q,ne,oe){if(U=U||d,ne=ne||X,oe!==n){if(l){var Z=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 Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var ue=U+":"+X;!G[ue]&&$<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+U+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),G[ue]=!0,$++)}}return W[X]==null?J?W[X]===null?new h("The "+Q+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new h("The "+Q+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:_(W,X,U,Q,ne)}var H=T.bind(null,!1);return H.isRequired=T.bind(null,!0),H}function m(_){function G($,T,H,J,W,X){var U=$[T],Q=D(U);if(Q!==_){var ne=z(U);return new h("Invalid "+J+" `"+W+"` of type "+("`"+ne+"` supplied to `"+H+"`, expected ")+("`"+_+"`."),{expectedType:_})}return null}return y(G)}function x(){return y(s)}function v(_){function G($,T,H,J,W){if(typeof _!="function")return new h("Property `"+W+"` of component `"+H+"` has invalid PropType notation inside arrayOf.");var X=$[T];if(!Array.isArray(X)){var U=D(X);return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected an array."))}for(var Q=0;Q<X.length;Q++){var ne=_(X,Q,H,J,W+"["+Q+"]",n);if(ne instanceof Error)return ne}return null}return y(G)}function C(){function _(G,$,T,H,J){var W=G[$];if(!a(W)){var X=D(W);return new h("Invalid "+H+" `"+J+"` of type "+("`"+X+"` supplied to `"+T+"`, expected a single ReactElement."))}return null}return y(_)}function S(){function _(G,$,T,H,J){var W=G[$];if(!e.isValidElementType(W)){var X=D(W);return new h("Invalid "+H+" `"+J+"` of type "+("`"+X+"` supplied to `"+T+"`, expected a single ReactElement type."))}return null}return y(_)}function E(_){function G($,T,H,J,W){if(!($[T]instanceof _)){var X=_.name||d,U=F($[T]);return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected ")+("instance of `"+X+"`."))}return null}return y(G)}function I(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),s;function G($,T,H,J,W){for(var X=$[T],U=0;U<_.length;U++)if(g(X,_[U]))return null;var Q=JSON.stringify(_,function(oe,Z){var ue=z(Z);return ue==="symbol"?String(Z):Z});return new h("Invalid "+J+" `"+W+"` of value `"+String(X)+"` "+("supplied to `"+H+"`, expected one of "+Q+"."))}return y(G)}function P(_){function G($,T,H,J,W){if(typeof _!="function")return new h("Property `"+W+"` of component `"+H+"` has invalid PropType notation inside objectOf.");var X=$[T],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type "+("`"+U+"` supplied to `"+H+"`, expected an object."));for(var Q in X)if(r(X,Q)){var ne=_(X,Q,H,J,W+"."+Q,n);if(ne instanceof Error)return ne}return null}return y(G)}function M(_){if(!Array.isArray(_))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),s;for(var G=0;G<_.length;G++){var $=_[G];if(typeof $!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V($)+" at index "+G+"."),s}function T(H,J,W,X,U){for(var Q=[],ne=0;ne<_.length;ne++){var oe=_[ne],Z=oe(H,J,W,X,U,n);if(Z==null)return null;Z.data&&r(Z.data,"expectedType")&&Q.push(Z.data.expectedType)}var ue=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new h("Invalid "+X+" `"+U+"` supplied to "+("`"+W+"`"+ue+"."))}return y(T)}function w(){function _(G,$,T,H,J){return A(G[$])?null:new h("Invalid "+H+" `"+J+"` supplied to "+("`"+T+"`, expected a ReactNode."))}return y(_)}function R(_,G,$,T,H){return new h((_||"React class")+": "+G+" type `"+$+"."+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+H+"`.")}function O(_){function G($,T,H,J,W){var X=$[T],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type `"+U+"` "+("supplied to `"+H+"`, expected `object`."));for(var Q in _){var ne=_[Q];if(typeof ne!="function")return R(H,J,W,Q,z(ne));var oe=ne(X,Q,H,J,W+"."+Q,n);if(oe)return oe}return null}return y(G)}function L(_){function G($,T,H,J,W){var X=$[T],U=D(X);if(U!=="object")return new h("Invalid "+J+" `"+W+"` of type `"+U+"` "+("supplied to `"+H+"`, expected `object`."));var Q=t({},$[T],_);for(var ne in Q){var oe=_[ne];if(r(_,ne)&&typeof oe!="function")return R(H,J,W,ne,z(oe));if(!oe)return new h("Invalid "+J+" `"+W+"` key `"+ne+"` supplied to `"+H+"`.\nBad object: "+JSON.stringify($[T],null," ")+`
|
|
691
|
+
Valid keys: `+JSON.stringify(Object.keys(_),null," "));var Z=oe(X,ne,H,J,W+"."+ne,n);if(Z)return Z}return null}return y(G)}function A(_){switch(typeof _){case"number":case"string":case"undefined":return!0;case"boolean":return!_;case"object":if(Array.isArray(_))return _.every(A);if(_===null||a(_))return!0;var G=f(_);if(G){var $=G.call(_),T;if(G!==_.entries){for(;!(T=$.next()).done;)if(!A(T.value))return!1}else for(;!(T=$.next()).done;){var H=T.value;if(H&&!A(H[1]))return!1}}else return!1;return!0;default:return!1}}function j(_,G){return _==="symbol"?!0:G?G["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&G instanceof Symbol:!1}function D(_){var G=typeof _;return Array.isArray(_)?"array":_ instanceof RegExp?"object":j(G,_)?"symbol":G}function z(_){if(typeof _>"u"||_===null)return""+_;var G=D(_);if(G==="object"){if(_ instanceof Date)return"date";if(_ instanceof RegExp)return"regexp"}return G}function V(_){var G=z(_);switch(G){case"array":case"object":return"an "+G;case"boolean":case"date":case"regexp":return"a "+G;default:return G}}function F(_){return!_.constructor||!_.constructor.name?d:_.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},iu}var su,Um;function v3(){if(Um)return su;Um=1;var e=tp();function t(){}function n(){}return n.resetWarningCache=t,su=function(){function r(s,a,l,c,u,f){if(f!==e){var d=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 d.name="Invariant Violation",d}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},su}var Zm;function x3(){if(Zm)return Ws.exports;if(Zm=1,process.env.NODE_ENV!=="production"){var e=ep(),t=!0;Ws.exports=b3()(e.isElement,t)}else Ws.exports=v3()();return Ws.exports}var Ze=x3();const B=gl(Ze);function Jm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jm(Object(n),!0).forEach(function(r){bo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jm(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ha(e){"@babel/helpers - typeof";return Ha=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ha(e)}function bo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w3(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function C3(e,t){if(e==null)return{};var n=w3(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Af(e){return _3(e)||S3(e)||E3(e)||I3()}function _3(e){if(Array.isArray(e))return Rf(e)}function S3(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function E3(e,t){if(e){if(typeof e=="string")return Rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rf(e,t)}}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function I3(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
692
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k3(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,s=e.shake,a=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,f=e.pulse,d=e.fixedWidth,p=e.inverse,g=e.border,h=e.listItem,y=e.flip,m=e.size,x=e.rotation,v=e.pull,C=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":s,"fa-flash":a,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":f,"fa-fw":d,"fa-inverse":p,"fa-border":g,"fa-li":h,"fa-flip":y===!0,"fa-flip-horizontal":y==="horizontal"||y==="both","fa-flip-vertical":y==="vertical"||y==="both"},bo(t,"fa-".concat(m),typeof m<"u"&&m!==null),bo(t,"fa-rotate-".concat(x),typeof x<"u"&&x!==null&&x!==0),bo(t,"fa-pull-".concat(v),typeof v<"u"&&v!==null),bo(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(C).map(function(S){return C[S]?S:null}).filter(function(S){return S})}function A3(e){return e=e-0,e===e}function B1(e){return A3(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var R3=["style"];function T3(e){return e.charAt(0).toUpperCase()+e.slice(1)}function N3(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),o=B1(n.slice(0,r)),i=n.slice(r+1).trim();return o.startsWith("webkit")?t[T3(o)]=i:t[o]=i,t},{})}function z1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return z1(e,l)}),o=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=N3(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[B1(c)]=u}return l},{attrs:{}}),i=n.style,s=i===void 0?{}:i,a=C3(n,R3);return o.attrs.style=dn(dn({},o.attrs.style),s),e.apply(void 0,[t.tag,dn(dn({},o.attrs),a)].concat(Af(r)))}var V1=!1;try{V1=process.env.NODE_ENV==="production"}catch{}function P3(){if(!V1&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function qm(e){if(e&&Ha(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(kf.icon)return kf.icon(e);if(e===null)return null;if(e&&Ha(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function au(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?bo({},e,t):{}}var Km={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},np=N.forwardRef(function(e,t){var n=dn(dn({},Km),e),r=n.icon,o=n.mask,i=n.symbol,s=n.className,a=n.title,l=n.titleId,c=n.maskId,u=qm(r),f=au("classes",[].concat(Af(k3(n)),Af((s||"").split(" ")))),d=au("transform",typeof n.transform=="string"?kf.transform(n.transform):n.transform),p=au("mask",qm(o)),g=p3(u,dn(dn(dn(dn({},f),d),p),{},{symbol:i,title:a,titleId:l,maskId:c}));if(!g)return P3("Could not find icon",u),null;var h=g.abstract,y={ref:t};return Object.keys(n).forEach(function(m){Km.hasOwnProperty(m)||(y[m]=n[m])}),O3(h[0],y)});np.displayName="FontAwesomeIcon";np.propTypes={beat:B.bool,border:B.bool,beatFade:B.bool,bounce:B.bool,className:B.string,fade:B.bool,flash:B.bool,mask:B.oneOfType([B.object,B.array,B.string]),maskId:B.string,fixedWidth:B.bool,inverse:B.bool,flip:B.oneOf([!0,!1,"horizontal","vertical","both"]),icon:B.oneOfType([B.object,B.array,B.string]),listItem:B.bool,pull:B.oneOf(["right","left"]),pulse:B.bool,rotation:B.oneOf([0,90,180,270]),shake:B.bool,size:B.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:B.bool,spinPulse:B.bool,spinReverse:B.bool,symbol:B.oneOfType([B.bool,B.string]),title:B.string,titleId:B.string,transform:B.oneOfType([B.string,B.object]),swapOpacity:B.bool};var O3=z1.bind(null,N.createElement);/*!
|
|
693
|
+
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
|
|
694
|
+
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
|
695
|
+
* Copyright 2024 Fonticons, Inc.
|
|
696
|
+
*/const M3={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},D3={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},F3={prefix:"fas",iconName:"compress",icon:[448,512,[],"f066","M160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96zM32 320c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM352 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 320c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0z"]},j3={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},L3={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},B3={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},z3={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},V3={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64l128 0 0 64-128 0 0-64zM240 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l48 0 0 32L32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 256 0 0 32-48 0c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48l160 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48l-48 0 0-32 96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-256 0 0-32 48 0c26.5 0 48-21.5 48-48l0-96c0-26.5-21.5-48-48-48L240 0zM96 448l0-64 128 0 0 64L96 448zm320-64l128 0 0 64-128 0 0-64z"]},G3={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},$3={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},H3={prefix:"fas",iconName:"expand",icon:[448,512,[],"f065","M32 32C14.3 32 0 46.3 0 64l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-64 64 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 32zM64 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-64 0 0-64zM320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0 0 64c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-96 0zM448 352c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 64-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32l0-96z"]},W3={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},X3={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},Y3={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},U3={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]};d3.autoAddCss=!1;const ht=e=>{const{style:t,...n}=e;return b.jsx("span",{style:{marginLeft:"5px",...t},children:b.jsx(np,{...n})})},G1=e=>b.jsx(ht,{...e,icon:D3}),Tf=e=>b.jsx(ht,{...e,icon:Y3}),Qm=e=>b.jsx(ht,{...e,icon:X3}),$1=e=>b.jsx(ht,{...e,icon:H3}),Z3=e=>b.jsx(ht,{...e,icon:F3}),J3=e=>b.jsx(ht,{...e,icon:M3}),q3=e=>b.jsx(ht,{...e,icon:U3}),e0=e=>b.jsx(ht,{...e,icon:$3}),Nf=e=>b.jsx(ht,{...e,icon:L3}),ds=Nf,H1=e=>b.jsx(ht,{...e,icon:W3}),K3=e=>b.jsx(ht,{...e,icon:z3}),Q3=e=>b.jsx(ht,{...e,icon:j3}),eF=e=>b.jsx(ht,{...e,icon:V3}),tF=e=>b.jsx(ht,{...e,icon:B3}),nF=e=>b.jsx(ht,{...e,icon:G3}),Xo=({trigger:e,title:t,description:n,children:r,closebutton:o=!0,onOpenChange:i,buttons:s=[],open:a,setOpen:l,modal:c=!0})=>{const u=g=>{l&&l(g),i&&i(g)},d=k.useContext(xe).local_state(g=>g.funcnodescontainerRef),p=b.jsx(c4,{asChild:!0,children:b.jsxs("div",{className:"dialogconent funcnodescontainer",children:[t&&b.jsx(u4,{className:"dialogtitle",children:t}),b.jsx(f4,{className:"dialogdescription",children:n}),b.jsx("div",{className:"dialogchildren",children:r}),b.jsx("div",{style:{display:"flex",marginTop:25,justifyContent:"flex-end"},children:(s||[]).map((g,h)=>b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogsendbutton",onClick:g.onClick,children:g.text})},h))}),o&&b.jsx(dm,{asChild:!0,children:b.jsx("button",{className:"dialogclosebutton","aria-label":"Close",children:b.jsx(H1,{})})})]})});return b.jsxs(i4,{open:a,onOpenChange:u,modal:c,children:[e&&b.jsx(s4,{asChild:!0,children:e}),b.jsxs(a4,{container:d,children:[b.jsx(l4,{className:"dialogoverlay funcnodescontainer"}),p]})]})};function rp(e){const t=e+"CollectionProvider",[n,r]=br(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=h=>{const{scope:y,children:m}=h,x=N.useRef(null),v=N.useRef(new Map).current;return b.jsx(o,{scope:y,itemMap:v,collectionRef:x,children:m})};s.displayName=t;const a=e+"CollectionSlot",l=Do(a),c=N.forwardRef((h,y)=>{const{scope:m,children:x}=h,v=i(a,m),C=Ve(y,v.collectionRef);return b.jsx(l,{ref:C,children:x})});c.displayName=a;const u=e+"CollectionItemSlot",f="data-radix-collection-item",d=Do(u),p=N.forwardRef((h,y)=>{const{scope:m,children:x,...v}=h,C=N.useRef(null),S=Ve(y,C),E=i(u,m);return N.useEffect(()=>(E.itemMap.set(C,{ref:C,...v}),()=>void E.itemMap.delete(C))),b.jsx(d,{[f]:"",ref:S,children:x})});p.displayName=u;function g(h){const y=i(e+"CollectionConsumer",h);return N.useCallback(()=>{const x=y.collectionRef.current;if(!x)return[];const v=Array.from(x.querySelectorAll(`[${f}]`));return Array.from(y.itemMap.values()).sort((E,I)=>v.indexOf(E.ref.current)-v.indexOf(I.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:s,Slot:c,ItemSlot:p},g,r]}var rF=k.createContext(void 0);function op(e){const t=k.useContext(rF);return e||t||"ltr"}const oF=["top","right","bottom","left"],pr=Math.min,It=Math.max,Wa=Math.round,Ys=Math.floor,vn=e=>({x:e,y:e}),iF={left:"right",right:"left",bottom:"top",top:"bottom"},sF={start:"end",end:"start"};function Pf(e,t,n){return It(e,pr(t,n))}function Gn(e,t){return typeof e=="function"?e(t):e}function $n(e){return e.split("-")[0]}function Yo(e){return e.split("-")[1]}function ip(e){return e==="x"?"y":"x"}function sp(e){return e==="y"?"height":"width"}function hr(e){return["top","bottom"].includes($n(e))?"y":"x"}function ap(e){return ip(hr(e))}function aF(e,t,n){n===void 0&&(n=!1);const r=Yo(e),o=ap(e),i=sp(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Xa(s)),[s,Xa(s)]}function lF(e){const t=Xa(e);return[Of(e),t,Of(t)]}function Of(e){return e.replace(/start|end/g,t=>sF[t])}function cF(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function uF(e,t,n,r){const o=Yo(e);let i=cF($n(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Of)))),i}function Xa(e){return e.replace(/left|right|bottom|top/g,t=>iF[t])}function fF(e){return{top:0,right:0,bottom:0,left:0,...e}}function W1(e){return typeof e!="number"?fF(e):{top:e,right:e,bottom:e,left:e}}function Ya(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function t0(e,t,n){let{reference:r,floating:o}=e;const i=hr(t),s=ap(t),a=sp(s),l=$n(t),c=i==="y",u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[a]/2-o[a]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}switch(Yo(t)){case"start":p[s]-=d*(n&&c?-1:1);break;case"end":p[s]+=d*(n&&c?-1:1);break}return p}const dF=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let c=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=t0(c,r,l),d=r,p={},g=0;for(let h=0;h<a.length;h++){const{name:y,fn:m}=a[h],{x,y:v,data:C,reset:S}=await m({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:p,rects:c,platform:s,elements:{reference:e,floating:t}});u=x??u,f=v??f,p={...p,[y]:{...p[y],...C}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(d=S.placement),S.rects&&(c=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):S.rects),{x:u,y:f}=t0(c,d,l)),h=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:p}};async function Gi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=Gn(t,e),g=W1(p),y=a[d?f==="floating"?"reference":"floating":f],m=Ya(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),x=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),C=await(i.isElement==null?void 0:i.isElement(v))?await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1}:{x:1,y:1},S=Ya(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:v,strategy:l}):x);return{top:(m.top-S.top+g.top)/C.y,bottom:(S.bottom-m.bottom+g.bottom)/C.y,left:(m.left-S.left+g.left)/C.x,right:(S.right-m.right+g.right)/C.x}}const pF=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:c,padding:u=0}=Gn(e,t)||{};if(c==null)return{};const f=W1(u),d={x:n,y:r},p=ap(o),g=sp(p),h=await s.getDimensions(c),y=p==="y",m=y?"top":"left",x=y?"bottom":"right",v=y?"clientHeight":"clientWidth",C=i.reference[g]+i.reference[p]-d[p]-i.floating[g],S=d[p]-i.reference[p],E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let I=E?E[v]:0;(!I||!await(s.isElement==null?void 0:s.isElement(E)))&&(I=a.floating[v]||i.floating[g]);const P=C/2-S/2,M=I/2-h[g]/2-1,w=pr(f[m],M),R=pr(f[x],M),O=w,L=I-h[g]-R,A=I/2-h[g]/2+P,j=Pf(O,A,L),D=!l.arrow&&Yo(o)!=null&&A!==j&&i.reference[g]/2-(A<O?w:R)-h[g]/2<0,z=D?A<O?A-O:A-L:0;return{[p]:d[p]+z,data:{[p]:j,centerOffset:A-j-z,...D&&{alignmentOffset:z}},reset:D}}}),hF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:h=!0,...y}=Gn(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const m=$n(o),x=hr(a),v=$n(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=d||(v||!h?[Xa(a)]:lF(a)),E=g!=="none";!d&&E&&S.push(...uF(a,h,g,C));const I=[a,...S],P=await Gi(t,y),M=[];let w=((r=i.flip)==null?void 0:r.overflows)||[];if(u&&M.push(P[m]),f){const A=aF(o,s,C);M.push(P[A[0]],P[A[1]])}if(w=[...w,{placement:o,overflows:M}],!M.every(A=>A<=0)){var R,O;const A=(((R=i.flip)==null?void 0:R.index)||0)+1,j=I[A];if(j)return{data:{index:A,overflows:w},reset:{placement:j}};let D=(O=w.filter(z=>z.overflows[0]<=0).sort((z,V)=>z.overflows[1]-V.overflows[1])[0])==null?void 0:O.placement;if(!D)switch(p){case"bestFit":{var L;const z=(L=w.filter(V=>{if(E){const F=hr(V.placement);return F===x||F==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(F=>F>0).reduce((F,_)=>F+_,0)]).sort((V,F)=>V[1]-F[1])[0])==null?void 0:L[0];z&&(D=z);break}case"initialPlacement":D=a;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function n0(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function r0(e){return oF.some(t=>e[t]>=0)}const gF=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gn(e,t);switch(r){case"referenceHidden":{const i=await Gi(t,{...o,elementContext:"reference"}),s=n0(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:r0(s)}}}case"escaped":{const i=await Gi(t,{...o,altBoundary:!0}),s=n0(i,n.floating);return{data:{escapedOffsets:s,escaped:r0(s)}}}default:return{}}}}};async function mF(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=$n(n),a=Yo(n),l=hr(n)==="y",c=["left","top"].includes(s)?-1:1,u=i&&l?-1:1,f=Gn(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof g=="number"&&(p=a==="end"?g*-1:g),l?{x:p*u,y:d*c}:{x:d*c,y:p*u}}const yF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await mF(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},bF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:y=>{let{x:m,y:x}=y;return{x:m,y:x}}},...l}=Gn(e,t),c={x:n,y:r},u=await Gi(t,l),f=hr($n(o)),d=ip(f);let p=c[d],g=c[f];if(i){const y=d==="y"?"top":"left",m=d==="y"?"bottom":"right",x=p+u[y],v=p-u[m];p=Pf(x,p,v)}if(s){const y=f==="y"?"top":"left",m=f==="y"?"bottom":"right",x=g+u[y],v=g-u[m];g=Pf(x,g,v)}const h=a.fn({...t,[d]:p,[f]:g});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[d]:i,[f]:s}}}}}},vF=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=Gn(e,t),u={x:n,y:r},f=hr(o),d=ip(f);let p=u[d],g=u[f];const h=Gn(a,t),y=typeof h=="number"?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const v=d==="y"?"height":"width",C=i.reference[d]-i.floating[v]+y.mainAxis,S=i.reference[d]+i.reference[v]-y.mainAxis;p<C?p=C:p>S&&(p=S)}if(c){var m,x;const v=d==="y"?"width":"height",C=["top","left"].includes($n(o)),S=i.reference[f]-i.floating[v]+(C&&((m=s.offset)==null?void 0:m[f])||0)+(C?0:y.crossAxis),E=i.reference[f]+i.reference[v]+(C?0:((x=s.offset)==null?void 0:x[f])||0)-(C?y.crossAxis:0);g<S?g=S:g>E&&(g=E)}return{[d]:p,[f]:g}}}},xF=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...c}=Gn(e,t),u=await Gi(t,c),f=$n(o),d=Yo(o),p=hr(o)==="y",{width:g,height:h}=i.floating;let y,m;f==="top"||f==="bottom"?(y=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=f,y=d==="end"?"top":"bottom");const x=h-u.top-u.bottom,v=g-u.left-u.right,C=pr(h-u[y],x),S=pr(g-u[m],v),E=!t.middlewareData.shift;let I=C,P=S;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(I=x),E&&!d){const w=It(u.left,0),R=It(u.right,0),O=It(u.top,0),L=It(u.bottom,0);p?P=g-2*(w!==0||R!==0?w+R:It(u.left,u.right)):I=h-2*(O!==0||L!==0?O+L:It(u.top,u.bottom))}await l({...t,availableWidth:P,availableHeight:I});const M=await s.getDimensions(a.floating);return g!==M.width||h!==M.height?{reset:{rects:!0}}:{}}}};function Hl(){return typeof window<"u"}function Uo(e){return X1(e)?(e.nodeName||"").toLowerCase():"#document"}function Tt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _n(e){var t;return(t=(X1(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function X1(e){return Hl()?e instanceof Node||e instanceof Tt(e).Node:!1}function en(e){return Hl()?e instanceof Element||e instanceof Tt(e).Element:!1}function wn(e){return Hl()?e instanceof HTMLElement||e instanceof Tt(e).HTMLElement:!1}function o0(e){return!Hl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Tt(e).ShadowRoot}function ps(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=tn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function wF(e){return["table","td","th"].includes(Uo(e))}function Wl(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function lp(e){const t=cp(),n=en(e)?tn(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function CF(e){let t=gr(e);for(;wn(t)&&!jo(t);){if(lp(t))return t;if(Wl(t))return null;t=gr(t)}return null}function cp(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jo(e){return["html","body","#document"].includes(Uo(e))}function tn(e){return Tt(e).getComputedStyle(e)}function Xl(e){return en(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function gr(e){if(Uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||o0(e)&&e.host||_n(e);return o0(t)?t.host:t}function Y1(e){const t=gr(e);return jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&ps(t)?t:Y1(t)}function $i(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Y1(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Tt(o);if(i){const a=Mf(s);return t.concat(s,s.visualViewport||[],ps(o)?o:[],a&&n?$i(a):[])}return t.concat(o,$i(o,[],n))}function Mf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function U1(e){const t=tn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=wn(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=Wa(n)!==i||Wa(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function up(e){return en(e)?e:e.contextElement}function _o(e){const t=up(e);if(!wn(t))return vn(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=U1(t);let s=(i?Wa(n.width):n.width)/r,a=(i?Wa(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _F=vn(0);function Z1(e){const t=Tt(e);return!cp()||!t.visualViewport?_F:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function SF(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Tt(e)?!1:t}function Xr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=up(e);let s=vn(1);t&&(r?en(r)&&(s=_o(r)):s=_o(e));const a=SF(i,n,r)?Z1(i):vn(0);let l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i){const d=Tt(i),p=r&&en(r)?Tt(r):r;let g=d,h=Mf(g);for(;h&&r&&p!==g;){const y=_o(h),m=h.getBoundingClientRect(),x=tn(h),v=m.left+(h.clientLeft+parseFloat(x.paddingLeft))*y.x,C=m.top+(h.clientTop+parseFloat(x.paddingTop))*y.y;l*=y.x,c*=y.y,u*=y.x,f*=y.y,l+=v,c+=C,g=Tt(h),h=Mf(g)}}return Ya({width:u,height:f,x:l,y:c})}function fp(e,t){const n=Xl(e).scrollLeft;return t?t.left+n:Xr(_n(e)).left+n}function J1(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:fp(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function EF(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=_n(r),a=t?Wl(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},c=vn(1);const u=vn(0),f=wn(r);if((f||!f&&!i)&&((Uo(r)!=="body"||ps(s))&&(l=Xl(r)),wn(r))){const p=Xr(r);c=_o(r),u.x=p.x+r.clientLeft,u.y=p.y+r.clientTop}const d=s&&!f&&!i?J1(s,l,!0):vn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}}function IF(e){return Array.from(e.getClientRects())}function kF(e){const t=_n(e),n=Xl(e),r=e.ownerDocument.body,o=It(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=It(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+fp(e);const a=-n.scrollTop;return tn(r).direction==="rtl"&&(s+=It(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function AF(e,t){const n=Tt(e),r=_n(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const c=cp();(!c||c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function RF(e,t){const n=Xr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=wn(e)?_o(e):vn(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,c=r*i.y;return{width:s,height:a,x:l,y:c}}function i0(e,t,n){let r;if(t==="viewport")r=AF(e,n);else if(t==="document")r=kF(_n(e));else if(en(t))r=RF(t,n);else{const o=Z1(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ya(r)}function q1(e,t){const n=gr(e);return n===t||!en(n)||jo(n)?!1:tn(n).position==="fixed"||q1(n,t)}function TF(e,t){const n=t.get(e);if(n)return n;let r=$i(e,[],!1).filter(a=>en(a)&&Uo(a)!=="body"),o=null;const i=tn(e).position==="fixed";let s=i?gr(e):e;for(;en(s)&&!jo(s);){const a=tn(s),l=lp(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||ps(s)&&!l&&q1(e,s))?r=r.filter(u=>u!==s):o=a,s=gr(s)}return t.set(e,r),r}function NF(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Wl(t)?[]:TF(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((c,u)=>{const f=i0(t,u,o);return c.top=It(f.top,c.top),c.right=pr(f.right,c.right),c.bottom=pr(f.bottom,c.bottom),c.left=It(f.left,c.left),c},i0(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function PF(e){const{width:t,height:n}=U1(e);return{width:t,height:n}}function OF(e,t,n){const r=wn(t),o=_n(t),i=n==="fixed",s=Xr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=vn(0);if(r||!r&&!i)if((Uo(t)!=="body"||ps(o))&&(a=Xl(t)),r){const d=Xr(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else o&&(l.x=fp(o));const c=o&&!r&&!i?J1(o,a):vn(0),u=s.left+a.scrollLeft-l.x-c.x,f=s.top+a.scrollTop-l.y-c.y;return{x:u,y:f,width:s.width,height:s.height}}function lu(e){return tn(e).position==="static"}function s0(e,t){if(!wn(e)||tn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _n(e)===n&&(n=n.ownerDocument.body),n}function K1(e,t){const n=Tt(e);if(Wl(e))return n;if(!wn(e)){let o=gr(e);for(;o&&!jo(o);){if(en(o)&&!lu(o))return o;o=gr(o)}return n}let r=s0(e,t);for(;r&&wF(r)&&lu(r);)r=s0(r,t);return r&&jo(r)&&lu(r)&&!lp(r)?n:r||CF(e)||n}const MF=async function(e){const t=this.getOffsetParent||K1,n=this.getDimensions,r=await n(e.floating);return{reference:OF(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function DF(e){return tn(e).direction==="rtl"}const FF={convertOffsetParentRelativeRectToViewportRelativeRect:EF,getDocumentElement:_n,getClippingRect:NF,getOffsetParent:K1,getElementRects:MF,getClientRects:IF,getDimensions:PF,getScale:_o,isElement:en,isRTL:DF};function Q1(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jF(e,t){let n=null,r;const o=_n(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const c=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=c;if(a||t(),!d||!p)return;const g=Ys(f),h=Ys(o.clientWidth-(u+d)),y=Ys(o.clientHeight-(f+p)),m=Ys(u),v={rootMargin:-g+"px "+-h+"px "+-y+"px "+-m+"px",threshold:It(0,pr(1,l))||1};let C=!0;function S(E){const I=E[0].intersectionRatio;if(I!==l){if(!C)return s();I?s(!1,I):r=setTimeout(()=>{s(!1,1e-7)},1e3)}I===1&&!Q1(c,e.getBoundingClientRect())&&s(),C=!1}try{n=new IntersectionObserver(S,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(S,v)}n.observe(e)}return s(!0),i}function ew(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,c=up(e),u=o||i?[...c?$i(c):[],...$i(t)]:[];u.forEach(m=>{o&&m.addEventListener("scroll",n,{passive:!0}),i&&m.addEventListener("resize",n)});const f=c&&a?jF(c,n):null;let d=-1,p=null;s&&(p=new ResizeObserver(m=>{let[x]=m;x&&x.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=p)==null||v.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let g,h=l?Xr(e):null;l&&y();function y(){const m=Xr(e);h&&!Q1(h,m)&&n(),h=m,g=requestAnimationFrame(y)}return n(),()=>{var m;u.forEach(x=>{o&&x.removeEventListener("scroll",n),i&&x.removeEventListener("resize",n)}),f==null||f(),(m=p)==null||m.disconnect(),p=null,l&&cancelAnimationFrame(g)}}const LF=yF,BF=bF,zF=hF,VF=xF,GF=gF,a0=pF,$F=vF,HF=(e,t,n)=>{const r=new Map,o={platform:FF,...n},i={...o.platform,_c:r};return dF(e,t,{...o,platform:i})};var xa=typeof document<"u"?N.useLayoutEffect:N.useEffect;function Ua(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Ua(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Ua(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function tw(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l0(e,t){const n=tw(e);return Math.round(t*n)/n}function cu(e){const t=k.useRef(e);return xa(()=>{t.current=e}),t}function WF(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:c}=e,[u,f]=k.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,p]=k.useState(r);Ua(d,r)||p(r);const[g,h]=k.useState(null),[y,m]=k.useState(null),x=k.useCallback(V=>{V!==E.current&&(E.current=V,h(V))},[]),v=k.useCallback(V=>{V!==I.current&&(I.current=V,m(V))},[]),C=i||g,S=s||y,E=k.useRef(null),I=k.useRef(null),P=k.useRef(u),M=l!=null,w=cu(l),R=cu(o),O=cu(c),L=k.useCallback(()=>{if(!E.current||!I.current)return;const V={placement:t,strategy:n,middleware:d};R.current&&(V.platform=R.current),HF(E.current,I.current,V).then(F=>{const _={...F,isPositioned:O.current!==!1};A.current&&!Ua(P.current,_)&&(P.current=_,hd.flushSync(()=>{f(_)}))})},[d,t,n,R,O]);xa(()=>{c===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,f(V=>({...V,isPositioned:!1})))},[c]);const A=k.useRef(!1);xa(()=>(A.current=!0,()=>{A.current=!1}),[]),xa(()=>{if(C&&(E.current=C),S&&(I.current=S),C&&S){if(w.current)return w.current(C,S,L);L()}},[C,S,L,w,M]);const j=k.useMemo(()=>({reference:E,floating:I,setReference:x,setFloating:v}),[x,v]),D=k.useMemo(()=>({reference:C,floating:S}),[C,S]),z=k.useMemo(()=>{const V={position:n,left:0,top:0};if(!D.floating)return V;const F=l0(D.floating,u.x),_=l0(D.floating,u.y);return a?{...V,transform:"translate("+F+"px, "+_+"px)",...tw(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:_}},[n,a,D.floating,u.x,u.y]);return k.useMemo(()=>({...u,update:L,refs:j,elements:D,floatingStyles:z}),[u,L,j,D,z])}const XF=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?a0({element:r.current,padding:o}).fn(n):{}:r?a0({element:r,padding:o}).fn(n):{}}}},YF=(e,t)=>({...LF(e),options:[e,t]}),UF=(e,t)=>({...BF(e),options:[e,t]}),ZF=(e,t)=>({...$F(e),options:[e,t]}),JF=(e,t)=>({...zF(e),options:[e,t]}),qF=(e,t)=>({...VF(e),options:[e,t]}),KF=(e,t)=>({...GF(e),options:[e,t]}),QF=(e,t)=>({...XF(e),options:[e,t]});var ej="Arrow",nw=k.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return b.jsx(je.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:b.jsx("polygon",{points:"0,0 30,0 15,10"})})});nw.displayName=ej;var tj=nw;function rw(e){const[t,n]=k.useState(void 0);return Gr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const l=i.borderBoxSize,c=Array.isArray(l)?l[0]:l;s=c.inlineSize,a=c.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var dp="Popper",[ow,Yl]=br(dp),[nj,iw]=ow(dp),sw=e=>{const{__scopePopper:t,children:n}=e,[r,o]=k.useState(null);return b.jsx(nj,{scope:t,anchor:r,onAnchorChange:o,children:n})};sw.displayName=dp;var aw="PopperAnchor",lw=k.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=iw(aw,n),s=k.useRef(null),a=Ve(t,s);return k.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:b.jsx(je.div,{...o,ref:a})});lw.displayName=aw;var pp="PopperContent",[rj,oj]=ow(pp),cw=k.forwardRef((e,t)=>{var X,U,Q,ne,oe,Z;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:l=!0,collisionBoundary:c=[],collisionPadding:u=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:p="optimized",onPlaced:g,...h}=e,y=iw(pp,n),[m,x]=k.useState(null),v=Ve(t,ue=>x(ue)),[C,S]=k.useState(null),E=rw(C),I=(E==null?void 0:E.width)??0,P=(E==null?void 0:E.height)??0,M=r+(i!=="center"?"-"+i:""),w=typeof u=="number"?u:{top:0,right:0,bottom:0,left:0,...u},R=Array.isArray(c)?c:[c],O=R.length>0,L={padding:w,boundary:R.filter(sj),altBoundary:O},{refs:A,floatingStyles:j,placement:D,isPositioned:z,middlewareData:V}=WF({strategy:"fixed",placement:M,whileElementsMounted:(...ue)=>ew(...ue,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[YF({mainAxis:o+P,alignmentAxis:s}),l&&UF({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?ZF():void 0,...L}),l&&JF({...L}),qF({...L,apply:({elements:ue,rects:fe,availableWidth:Se,availableHeight:Xe})=>{const{width:rt,height:Ct}=fe.reference,_t=ue.floating.style;_t.setProperty("--radix-popper-available-width",`${Se}px`),_t.setProperty("--radix-popper-available-height",`${Xe}px`),_t.setProperty("--radix-popper-anchor-width",`${rt}px`),_t.setProperty("--radix-popper-anchor-height",`${Ct}px`)}}),C&&QF({element:C,padding:a}),aj({arrowWidth:I,arrowHeight:P}),d&&KF({strategy:"referenceHidden",...L})]}),[F,_]=dw(D),G=Vt(g);Gr(()=>{z&&(G==null||G())},[z,G]);const $=(X=V.arrow)==null?void 0:X.x,T=(U=V.arrow)==null?void 0:U.y,H=((Q=V.arrow)==null?void 0:Q.centerOffset)!==0,[J,W]=k.useState();return Gr(()=>{m&&W(window.getComputedStyle(m).zIndex)},[m]),b.jsx("div",{ref:A.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:z?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(ne=V.transformOrigin)==null?void 0:ne.x,(oe=V.transformOrigin)==null?void 0:oe.y].join(" "),...((Z=V.hide)==null?void 0:Z.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:b.jsx(rj,{scope:n,placedSide:F,onArrowChange:S,arrowX:$,arrowY:T,shouldHideArrow:H,children:b.jsx(je.div,{"data-side":F,"data-align":_,...h,ref:v,style:{...h.style,animation:z?void 0:"none"}})})})});cw.displayName=pp;var uw="PopperArrow",ij={top:"bottom",right:"left",bottom:"top",left:"right"},fw=k.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=oj(uw,r),s=ij[i.placedSide];return b.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:b.jsx(tj,{...o,ref:n,style:{...o.style,display:"block"}})})});fw.displayName=uw;function sj(e){return e!==null}var aj=e=>({name:"transformOrigin",options:e,fn(t){var y,m,x;const{placement:n,rects:r,middlewareData:o}=t,s=((y=o.arrow)==null?void 0:y.centerOffset)!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[c,u]=dw(n),f={start:"0%",center:"50%",end:"100%"}[u],d=(((m=o.arrow)==null?void 0:m.x)??0)+a/2,p=(((x=o.arrow)==null?void 0:x.y)??0)+l/2;let g="",h="";return c==="bottom"?(g=s?f:`${d}px`,h=`${-l}px`):c==="top"?(g=s?f:`${d}px`,h=`${r.floating.height+l}px`):c==="right"?(g=`${-l}px`,h=s?f:`${p}px`):c==="left"&&(g=`${r.floating.width+l}px`,h=s?f:`${p}px`),{data:{x:g,y:h}}}});function dw(e){const[t,n="center"]=e.split("-");return[t,n]}var hp=sw,gp=lw,pw=cw,hw=fw,uu="rovingFocusGroup.onEntryFocus",lj={bubbles:!1,cancelable:!0},Ul="RovingFocusGroup",[Df,gw,cj]=rp(Ul),[uj,mw]=br(Ul,[cj]),[fj,dj]=uj(Ul),yw=k.forwardRef((e,t)=>b.jsx(Df.Provider,{scope:e.__scopeRovingFocusGroup,children:b.jsx(Df.Slot,{scope:e.__scopeRovingFocusGroup,children:b.jsx(pj,{...e,ref:t})})}));yw.displayName=Ul;var pj=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:l,onEntryFocus:c,preventScrollOnEntryFocus:u=!1,...f}=e,d=k.useRef(null),p=Ve(t,d),g=op(i),[h=null,y]=Ho({prop:s,defaultProp:a,onChange:l}),[m,x]=k.useState(!1),v=Vt(c),C=gw(n),S=k.useRef(!1),[E,I]=k.useState(0);return k.useEffect(()=>{const P=d.current;if(P)return P.addEventListener(uu,v),()=>P.removeEventListener(uu,v)},[v]),b.jsx(fj,{scope:n,orientation:r,dir:g,loop:o,currentTabStopId:h,onItemFocus:k.useCallback(P=>y(P),[y]),onItemShiftTab:k.useCallback(()=>x(!0),[]),onFocusableItemAdd:k.useCallback(()=>I(P=>P+1),[]),onFocusableItemRemove:k.useCallback(()=>I(P=>P-1),[]),children:b.jsx(je.div,{tabIndex:m||E===0?-1:0,"data-orientation":r,...f,ref:p,style:{outline:"none",...e.style},onMouseDown:he(e.onMouseDown,()=>{S.current=!0}),onFocus:he(e.onFocus,P=>{const M=!S.current;if(P.target===P.currentTarget&&M&&!m){const w=new CustomEvent(uu,lj);if(P.currentTarget.dispatchEvent(w),!w.defaultPrevented){const R=C().filter(D=>D.focusable),O=R.find(D=>D.active),L=R.find(D=>D.id===h),j=[O,L,...R].filter(Boolean).map(D=>D.ref.current);xw(j,u)}}S.current=!1}),onBlur:he(e.onBlur,()=>x(!1))})})}),bw="RovingFocusGroupItem",vw=k.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,...s}=e,a=Fn(),l=i||a,c=dj(bw,n),u=c.currentTabStopId===l,f=gw(n),{onFocusableItemAdd:d,onFocusableItemRemove:p}=c;return k.useEffect(()=>{if(r)return d(),()=>p()},[r,d,p]),b.jsx(Df.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:b.jsx(je.span,{tabIndex:u?0:-1,"data-orientation":c.orientation,...s,ref:t,onMouseDown:he(e.onMouseDown,g=>{r?c.onItemFocus(l):g.preventDefault()}),onFocus:he(e.onFocus,()=>c.onItemFocus(l)),onKeyDown:he(e.onKeyDown,g=>{if(g.key==="Tab"&&g.shiftKey){c.onItemShiftTab();return}if(g.target!==g.currentTarget)return;const h=mj(g,c.orientation,c.dir);if(h!==void 0){if(g.metaKey||g.ctrlKey||g.altKey||g.shiftKey)return;g.preventDefault();let m=f().filter(x=>x.focusable).map(x=>x.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const x=m.indexOf(g.currentTarget);m=c.loop?yj(m,x+1):m.slice(x+1)}setTimeout(()=>xw(m))}})})})});vw.displayName=bw;var hj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gj(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function mj(e,t,n){const r=gj(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return hj[r]}function xw(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function yj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bj=yw,vj=vw,Ff=["Enter"," "],xj=["ArrowDown","PageUp","Home"],ww=["ArrowUp","PageDown","End"],wj=[...xj,...ww],Cj={ltr:[...Ff,"ArrowRight"],rtl:[...Ff,"ArrowLeft"]},_j={ltr:["ArrowLeft"],rtl:["ArrowRight"]},hs="Menu",[Hi,Sj,Ej]=rp(hs),[Zr,Cw]=br(hs,[Ej,Yl,mw]),gs=Yl(),_w=mw(),[Sw,Jr]=Zr(hs),[Ij,ms]=Zr(hs),Ew=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=gs(t),[l,c]=k.useState(null),u=k.useRef(!1),f=Vt(i),d=op(o);return k.useEffect(()=>{const p=()=>{u.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>u.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),b.jsx(hp,{...a,children:b.jsx(Sw,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:c,children:b.jsx(Ij,{scope:t,onClose:k.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:u,dir:d,modal:s,children:r})})})};Ew.displayName=hs;var kj="MenuAnchor",mp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(gp,{...o,...r,ref:t})});mp.displayName=kj;var Aj="MenuPortal",[dq,Iw]=Zr(Aj,{forceMount:void 0}),zt="MenuContent",[Rj,yp]=Zr(zt),kw=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:s.modal?b.jsx(Tj,{...o,ref:t}):b.jsx(Nj,{...o,ref:t})})})})}),Tj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu),r=k.useRef(null),o=Ve(t,r);return k.useEffect(()=>{const i=r.current;if(i)return Ld(i)},[]),b.jsx(bp,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:he(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Nj=k.forwardRef((e,t)=>{const n=Jr(zt,e.__scopeMenu);return b.jsx(bp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Pj=Do("MenuContent.ScrollLock"),bp=k.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,disableOutsideScroll:g,...h}=e,y=Jr(zt,n),m=ms(zt,n),x=gs(n),v=_w(n),C=Sj(n),[S,E]=k.useState(null),I=k.useRef(null),P=Ve(t,I,y.onContentChange),M=k.useRef(0),w=k.useRef(""),R=k.useRef(0),O=k.useRef(null),L=k.useRef("right"),A=k.useRef(0),j=g?Ll:k.Fragment,D=g?{as:Pj,allowPinchZoom:!0}:void 0,z=F=>{var X,U;const _=w.current+F,G=C().filter(Q=>!Q.disabled),$=document.activeElement,T=(X=G.find(Q=>Q.ref.current===$))==null?void 0:X.textValue,H=G.map(Q=>Q.textValue),J=Hj(H,_,T),W=(U=G.find(Q=>Q.textValue===J))==null?void 0:U.ref.current;(function Q(ne){w.current=ne,window.clearTimeout(M.current),ne!==""&&(M.current=window.setTimeout(()=>Q(""),1e3))})(_),W&&setTimeout(()=>W.focus())};k.useEffect(()=>()=>window.clearTimeout(M.current),[]),jd();const V=k.useCallback(F=>{var G,$;return L.current===((G=O.current)==null?void 0:G.side)&&Xj(F,($=O.current)==null?void 0:$.area)},[]);return b.jsx(Rj,{scope:n,searchRef:w,onItemEnter:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),onItemLeave:k.useCallback(F=>{var _;V(F)||((_=I.current)==null||_.focus(),E(null))},[V]),onTriggerLeave:k.useCallback(F=>{V(F)&&F.preventDefault()},[V]),pointerGraceTimerRef:R,onPointerGraceIntentChange:k.useCallback(F=>{O.current=F},[]),children:b.jsx(j,{...D,children:b.jsx(Fl,{asChild:!0,trapped:o,onMountAutoFocus:he(i,F=>{var _;F.preventDefault(),(_=I.current)==null||_.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:d,onDismiss:p,children:b.jsx(bj,{asChild:!0,...v,dir:m.dir,orientation:"vertical",loop:r,currentTabStopId:S,onCurrentTabStopIdChange:E,onEntryFocus:he(l,F=>{m.isUsingKeyboardRef.current||F.preventDefault()}),preventScrollOnEntryFocus:!0,children:b.jsx(pw,{role:"menu","aria-orientation":"vertical","data-state":Hw(y.open),"data-radix-menu-content":"",dir:m.dir,...x,...h,ref:P,style:{outline:"none",...h.style},onKeyDown:he(h.onKeyDown,F=>{const G=F.target.closest("[data-radix-menu-content]")===F.currentTarget,$=F.ctrlKey||F.altKey||F.metaKey,T=F.key.length===1;G&&(F.key==="Tab"&&F.preventDefault(),!$&&T&&z(F.key));const H=I.current;if(F.target!==H||!wj.includes(F.key))return;F.preventDefault();const W=C().filter(X=>!X.disabled).map(X=>X.ref.current);ww.includes(F.key)&&W.reverse(),Gj(W)}),onBlur:he(e.onBlur,F=>{F.currentTarget.contains(F.target)||(window.clearTimeout(M.current),w.current="")}),onPointerMove:he(e.onPointerMove,Wi(F=>{const _=F.target,G=A.current!==F.clientX;if(F.currentTarget.contains(_)&&G){const $=F.clientX>A.current?"right":"left";L.current=$,A.current=F.clientX}}))})})})})})})});kw.displayName=zt;var Oj="MenuGroup",vp=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"group",...r,ref:t})});vp.displayName=Oj;var Mj="MenuLabel",Aw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{...r,ref:t})});Aw.displayName=Mj;var Za="MenuItem",c0="menu.itemSelect",Zl=k.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=k.useRef(null),s=ms(Za,e.__scopeMenu),a=yp(Za,e.__scopeMenu),l=Ve(t,i),c=k.useRef(!1),u=()=>{const f=i.current;if(!n&&f){const d=new CustomEvent(c0,{bubbles:!0,cancelable:!0});f.addEventListener(c0,p=>r==null?void 0:r(p),{once:!0}),Nx(f,d),d.defaultPrevented?c.current=!1:s.onClose()}};return b.jsx(Rw,{...o,ref:l,disabled:n,onClick:he(e.onClick,u),onPointerDown:f=>{var d;(d=e.onPointerDown)==null||d.call(e,f),c.current=!0},onPointerUp:he(e.onPointerUp,f=>{var d;c.current||(d=f.currentTarget)==null||d.click()}),onKeyDown:he(e.onKeyDown,f=>{const d=a.searchRef.current!=="";n||d&&f.key===" "||Ff.includes(f.key)&&(f.currentTarget.click(),f.preventDefault())})})});Zl.displayName=Za;var Rw=k.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=yp(Za,n),a=_w(n),l=k.useRef(null),c=Ve(t,l),[u,f]=k.useState(!1),[d,p]=k.useState("");return k.useEffect(()=>{const g=l.current;g&&p((g.textContent??"").trim())},[i.children]),b.jsx(Hi.ItemSlot,{scope:n,disabled:r,textValue:o??d,children:b.jsx(vj,{asChild:!0,...a,focusable:!r,children:b.jsx(je.div,{role:"menuitem","data-highlighted":u?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:c,onPointerMove:he(e.onPointerMove,Wi(g=>{r?s.onItemLeave(g):(s.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:he(e.onPointerLeave,Wi(g=>s.onItemLeave(g))),onFocus:he(e.onFocus,()=>f(!0)),onBlur:he(e.onBlur,()=>f(!1))})})})}),Dj="MenuCheckboxItem",Tw=k.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return b.jsx(Dw,{scope:e.__scopeMenu,checked:n,children:b.jsx(Zl,{role:"menuitemcheckbox","aria-checked":Ja(n)?"mixed":n,...o,ref:t,"data-state":Cp(n),onSelect:he(o.onSelect,()=>r==null?void 0:r(Ja(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Tw.displayName=Dj;var Nw="MenuRadioGroup",[Fj,jj]=Zr(Nw,{value:void 0,onValueChange:()=>{}}),Pw=k.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Vt(r);return b.jsx(Fj,{scope:e.__scopeMenu,value:n,onValueChange:i,children:b.jsx(vp,{...o,ref:t})})});Pw.displayName=Nw;var Ow="MenuRadioItem",Mw=k.forwardRef((e,t)=>{const{value:n,...r}=e,o=jj(Ow,e.__scopeMenu),i=n===o.value;return b.jsx(Dw,{scope:e.__scopeMenu,checked:i,children:b.jsx(Zl,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Cp(i),onSelect:he(r.onSelect,()=>{var s;return(s=o.onValueChange)==null?void 0:s.call(o,n)},{checkForDefaultPrevented:!1})})})});Mw.displayName=Ow;var xp="MenuItemIndicator",[Dw,Lj]=Zr(xp,{checked:!1}),Fw=k.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=Lj(xp,n);return b.jsx(Xn,{present:r||Ja(i.checked)||i.checked===!0,children:b.jsx(je.span,{...o,ref:t,"data-state":Cp(i.checked)})})});Fw.displayName=xp;var Bj="MenuSeparator",jw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return b.jsx(je.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});jw.displayName=Bj;var zj="MenuArrow",Lw=k.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=gs(n);return b.jsx(hw,{...o,...r,ref:t})});Lw.displayName=zj;var wp="MenuSub",[Vj,Bw]=Zr(wp),zw=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Jr(wp,t),s=gs(t),[a,l]=k.useState(null),[c,u]=k.useState(null),f=Vt(o);return k.useEffect(()=>(i.open===!1&&f(!1),()=>f(!1)),[i.open,f]),b.jsx(hp,{...s,children:b.jsx(Sw,{scope:t,open:r,onOpenChange:f,content:c,onContentChange:u,children:b.jsx(Vj,{scope:t,contentId:Fn(),triggerId:Fn(),trigger:a,onTriggerChange:l,children:n})})})};zw.displayName=wp;var yi="MenuSubTrigger",Vw=k.forwardRef((e,t)=>{const n=Jr(yi,e.__scopeMenu),r=ms(yi,e.__scopeMenu),o=Bw(yi,e.__scopeMenu),i=yp(yi,e.__scopeMenu),s=k.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:l}=i,c={__scopeMenu:e.__scopeMenu},u=k.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return k.useEffect(()=>u,[u]),k.useEffect(()=>{const f=a.current;return()=>{window.clearTimeout(f),l(null)}},[a,l]),b.jsx(mp,{asChild:!0,...c,children:b.jsx(Rw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Hw(n.open),...e,ref:Ml(t,o.onTriggerChange),onClick:f=>{var d;(d=e.onClick)==null||d.call(e,f),!(e.disabled||f.defaultPrevented)&&(f.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:he(e.onPointerMove,Wi(f=>{i.onItemEnter(f),!f.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),u()},100))})),onPointerLeave:he(e.onPointerLeave,Wi(f=>{var p,g;u();const d=(p=n.content)==null?void 0:p.getBoundingClientRect();if(d){const h=(g=n.content)==null?void 0:g.dataset.side,y=h==="right",m=y?-5:5,x=d[y?"left":"right"],v=d[y?"right":"left"];i.onPointerGraceIntentChange({area:[{x:f.clientX+m,y:f.clientY},{x,y:d.top},{x:v,y:d.top},{x:v,y:d.bottom},{x,y:d.bottom}],side:h}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(f),f.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:he(e.onKeyDown,f=>{var p;const d=i.searchRef.current!=="";e.disabled||d&&f.key===" "||Cj[r.dir].includes(f.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),f.preventDefault())})})})});Vw.displayName=yi;var Gw="MenuSubContent",$w=k.forwardRef((e,t)=>{const n=Iw(zt,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=Jr(zt,e.__scopeMenu),s=ms(zt,e.__scopeMenu),a=Bw(Gw,e.__scopeMenu),l=k.useRef(null),c=Ve(t,l);return b.jsx(Hi.Provider,{scope:e.__scopeMenu,children:b.jsx(Xn,{present:r||i.open,children:b.jsx(Hi.Slot,{scope:e.__scopeMenu,children:b.jsx(bp,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:c,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:u=>{var f;s.isUsingKeyboardRef.current&&((f=l.current)==null||f.focus()),u.preventDefault()},onCloseAutoFocus:u=>u.preventDefault(),onFocusOutside:he(e.onFocusOutside,u=>{u.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:he(e.onEscapeKeyDown,u=>{s.onClose(),u.preventDefault()}),onKeyDown:he(e.onKeyDown,u=>{var p;const f=u.currentTarget.contains(u.target),d=_j[s.dir].includes(u.key);f&&d&&(i.onOpenChange(!1),(p=a.trigger)==null||p.focus(),u.preventDefault())})})})})})});$w.displayName=Gw;function Hw(e){return e?"open":"closed"}function Ja(e){return e==="indeterminate"}function Cp(e){return Ja(e)?"indeterminate":e?"checked":"unchecked"}function Gj(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function $j(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function Hj(e,t,n){const o=t.length>1&&Array.from(t).every(c=>c===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=$j(e,Math.max(i,0));o.length===1&&(s=s.filter(c=>c!==n));const l=s.find(c=>c.toLowerCase().startsWith(o.toLowerCase()));return l!==n?l:void 0}function Wj(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i].x,l=t[i].y,c=t[s].x,u=t[s].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(o=!o)}return o}function Xj(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return Wj(n,t)}function Wi(e){return t=>t.pointerType==="mouse"?e(t):void 0}var Yj=Ew,Uj=mp,Zj=kw,Jj=vp,qj=Aw,Kj=Zl,Qj=Tw,eL=Pw,tL=Mw,nL=Fw,rL=jw,oL=Lw,iL=zw,sL=Vw,aL=$w,_p="DropdownMenu",[lL,pq]=br(_p,[Cw]),gt=Cw(),[cL,Ww]=lL(_p),Xw=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,l=gt(t),c=k.useRef(null),[u=!1,f]=Ho({prop:o,defaultProp:i,onChange:s});return b.jsx(cL,{scope:t,triggerId:Fn(),triggerRef:c,contentId:Fn(),open:u,onOpenChange:f,onOpenToggle:k.useCallback(()=>f(d=>!d),[f]),modal:a,children:b.jsx(Yj,{...l,open:u,onOpenChange:f,dir:r,modal:a,children:n})})};Xw.displayName=_p;var Yw="DropdownMenuTrigger",Uw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Ww(Yw,n),s=gt(n);return b.jsx(Uj,{asChild:!0,...s,children:b.jsx(je.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:Ml(t,i.triggerRef),onPointerDown:he(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:he(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Uw.displayName=Yw;var Zw="DropdownMenuContent",Jw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Ww(Zw,n),i=gt(n),s=k.useRef(!1);return b.jsx(Zj,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:he(e.onCloseAutoFocus,a=>{var l;s.current||(l=o.triggerRef.current)==null||l.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:he(e.onInteractOutside,a=>{const l=a.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0,u=l.button===2||c;(!o.modal||u)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jw.displayName=Zw;var uL="DropdownMenuGroup",qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Jj,{...o,...r,ref:t})});qw.displayName=uL;var fL="DropdownMenuLabel",dL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(qj,{...o,...r,ref:t})});dL.displayName=fL;var pL="DropdownMenuItem",Kw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Kj,{...o,...r,ref:t})});Kw.displayName=pL;var hL="DropdownMenuCheckboxItem",gL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(Qj,{...o,...r,ref:t})});gL.displayName=hL;var mL="DropdownMenuRadioGroup",Qw=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(eL,{...o,...r,ref:t})});Qw.displayName=mL;var yL="DropdownMenuRadioItem",eC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(tL,{...o,...r,ref:t})});eC.displayName=yL;var bL="DropdownMenuItemIndicator",vL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(nL,{...o,...r,ref:t})});vL.displayName=bL;var xL="DropdownMenuSeparator",wL=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(rL,{...o,...r,ref:t})});wL.displayName=xL;var CL="DropdownMenuArrow",_L=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(oL,{...o,...r,ref:t})});_L.displayName=CL;var SL=e=>{const{__scopeDropdownMenu:t,children:n,open:r,onOpenChange:o,defaultOpen:i}=e,s=gt(t),[a=!1,l]=Ho({prop:r,defaultProp:i,onChange:o});return b.jsx(iL,{...s,open:a,onOpenChange:l,children:n})},EL="DropdownMenuSubTrigger",tC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(sL,{...o,...r,ref:t})});tC.displayName=EL;var IL="DropdownMenuSubContent",nC=k.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=gt(n);return b.jsx(aL,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});nC.displayName=IL;var rC=Xw,oC=Uw,iC=Jw,sC=qw,ir=Kw,kL=Qw,AL=eC,RL=SL,TL=tC,NL=nC;const jf={xxs:0,xs:320,s:480,m:768,l:960,xl:1280,xxl:1920},aC=k.createContext(void 0),PL=k.forwardRef((e,t)=>{const{className:n,children:r,...o}=e,[i,s]=k.useState("m"),[a,l]=k.useState(0),[c,u]=k.useState(0),f=k.useRef(null);k.useImperativeHandle(t,()=>f.current,[]);const d=k.useCallback(p=>{const g=p.width,h=p.height;let y="xxs";Object.entries(jf).forEach(([m,x])=>{g>=x&&(y=m)}),s(m=>m!==y?y:m),l(g),u(h)},[]);return k.useEffect(()=>{const p=f.current;if(!p)return;const g=new ResizeObserver(h=>{for(let y of h)d(y.contentRect)});return g.observe(p),d(p.getBoundingClientRect()),()=>{g.disconnect()}},[]),b.jsx(aC.Provider,{value:{wKey:i,w:a,h:c},children:b.jsx("div",{ref:f,className:`size-context w-${i} ${n||""}`.trim(),...o,children:r})})}),OL=()=>{const e=k.useContext(aC);if(!e)throw new Error("useSizeContext must be used within a SizeContextContainerContext");return e},ML=(e,t)=>e==t?!1:e==""?!0:jf[e]<jf[t],DL=e=>ML(OL().wKey,e),So=({direction:e,className:t="",children:n,wrap:r=!1,grow:o=!1,...i})=>{const s="float-container";let a="";typeof e=="string"?a=`direction-${e} `:typeof e=="object"&&e!==null&&Object.entries(e).forEach(([u,f])=>{u===""?a+=`direction-${f} `:a+=`${u}-direction-${f} `});let l="";typeof o=="boolean"?l=o?"grow ":"":typeof o=="object"&&o!==null&&Object.entries(o).forEach(([u,f])=>{u===""?l+=f?"grow ":"no-grow":l+=f?`${u}-grow `:`${u}-no-grow`}),a+=l,r&&(a+="flex-wrap "),a=a.trim();const c=`${s} ${a} ${t}`.trim();return b.jsx("div",{className:c,...i,children:n})},lC=({direction:e,expanded:t=!0,children:n,className:r,maxSize:o,expanderSize:i="40px",containerStyle:s,style:a,containerClassName:l,onExpandChange:c,...u})=>{const f={up:Nf,down:e0,left:Qm,right:Tf}[e],d={up:e0,down:Nf,left:Tf,right:Qm}[e],[p,g]=k.useState(t),h=P=>{p!==P&&(g(P),c&&c(P))},y=`${e} ${p?"expanded":"collapsed"}`,m=e==="right"||e==="left"?{width:p?o:i}:{height:p?o:i},x=e==="right"||e==="left"?{width:p?o:0}:{height:p?o:0},v=e==="right"||e==="left"?{width:i}:{height:i},C=b.jsx("div",{className:`expanding_container_content ${y} ${r||""}`.trim(),style:{...a,...x},...u,children:n}),S=b.jsx("div",{className:`expanding_container_expander ${y}`,onClick:()=>h(!p),style:v,children:p?b.jsx(d,{}):b.jsx(f,{})}),E=e==="right"||e==="down"?C:S,I=e==="left"||e==="up"?C:S;return b.jsxs("div",{className:`expanding_container ${y} ${l||""}`,style:{...s,...m},children:[E,I]})},FL=({trigger:e,setOpen:t,open:n})=>{const[r,o]=N.useState(""),i=N.useContext(xe);return i.options.useWorkerManager?b.jsxs(Xo,{setOpen:t,open:n,trigger:e,title:"New Worker",description:"Create a new worker",children:[b.jsxs("div",{children:["Name:",b.jsx("br",{}),b.jsx("input",{className:"styledinput",onChange:s=>{o(s.currentTarget.value)},value:r})]}),b.jsx("div",{children:r&&b.jsx("div",{children:b.jsx("button",{className:"styledbtn",onClick:()=>{var s;(s=i.workermanager)==null||s.new_worker({name:r}),t(!1)},children:"Create"})})})]}):null},jL=({trigger:e,setOpen:t,open:n})=>{var u,f;const r=N.useContext(xe),[o,i]=N.useState(!1),s=r.workers(),a=(u=r.worker)==null?void 0:u.uuid,l=(a?(f=s[a])==null?void 0:f.name:void 0)||a||"worker",c=async()=>{if(!r.worker)return;const d=await r.worker.export({withFiles:o});NM(d,l+".fnw","application/zip"),t(!1)};return b.jsx(Xo,{setOpen:t,open:n,trigger:e,title:"Export Worker",description:"Export the worker as a .fnw file",children:b.jsxs("div",{children:[b.jsxs("div",{children:[b.jsx("input",{type:"checkbox",className:"styledcheckbox",checked:o,onChange:d=>{i(d.currentTarget.checked)}}),"Include Files"]}),b.jsx("button",{className:"styledbtn",onClick:c,children:"Export"})]})})},LL=()=>{const t=N.useContext(xe).progress_state();return b.jsxs("div",{className:"statusbar",children:[b.jsx("span",{className:"statusbar-progressbar",style:{width:Math.min(100,100*t.progress)+"%"}}),b.jsx("span",{className:"statusbar-message",children:t.message})]})},BL=()=>{var p;const e=N.useContext(xe),t=e.workers(),[n,r]=N.useState(!1),[o,i]=N.useState(!1),s=g=>{g!=="__select__"&&e.workers&&e.workermanager&&t[g]&&(!t[g].active&&!window.confirm("this is an inactive worker, selecting it will start it, continue?")||e.workermanager.set_active(g))},a=async()=>{if(!e.worker||!window.confirm("Updateing the worker might replace the current nodespace, continue?"))return;const h=await MM(".fnw");e.worker.update_from_export(h)},l=e.options.useWorkerManager&&e.workermanager&&e.workermanager.open||tf,c=l&&Object.keys(t).length>0,u=e.worker&&e.worker.is_open,f=u&&l;return l||u?b.jsxs(b.Fragment,{children:[b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Worker ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[c&&b.jsxs(RL,{children:[b.jsx(TL,{className:"headermenuitem submenuitem",children:b.jsxs(So,{direction:"row",children:["Select",b.jsx(Tf,{})]})}),b.jsx(NL,{className:"headermenucontent funcnodescontainer",sideOffset:2,alignOffset:-5,children:b.jsx(kL,{value:(p=e.worker)==null?void 0:p.uuid,onValueChange:g=>{s(g)},children:Object.keys(t).sort((g,h)=>{if(t[g].active&&!t[h].active)return-1;if(!t[g].active&&t[h].active)return 1;const y=t[g].name||g,m=t[h].name||h;return y.localeCompare(m)}).map(g=>{var h,y,m;return b.jsx(AL,{className:"headermenuitem workerselectoption"+((h=t[g])!=null&&h.active?" active":" inactive")+" headermenuitem",value:g,disabled:g===((y=e.worker)==null?void 0:y.uuid),children:((m=t[g])==null?void 0:m.name)||g},g)})})})]}),u&&b.jsxs(b.Fragment,{children:[f&&b.jsx(ir,{className:"headermenuitem",onClick:()=>{var g;if(e.worker){if(!e.workermanager)return e.logger.error("no workermanager");(g=e.workermanager)==null||g.restart_worker(e.worker.uuid)}},children:"Restart"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>{e.worker&&e.worker.stop()},children:"Stop"}),b.jsx(ir,{className:"headermenuitem",onClick:()=>i(!0),children:"Export"}),b.jsx(ir,{className:"headermenuitem",onClick:a,children:"Update"})]}),l&&b.jsx(b.Fragment,{children:b.jsx(ir,{className:"headermenuitem",onClick:()=>r(!0),children:"New"})})]})})]}),b.jsx(FL,{open:n,setOpen:r}),b.jsx(jL,{open:o,setOpen:i})]}):null},zL=()=>{const e=N.useContext(xe),t=()=>{var i;window.confirm("Are you sure you want to start a new flow?")&&((i=e.worker)==null||i.clear())},n=async()=>{var l;const o=await((l=e.worker)==null?void 0:l.save());if(!o)return;const i=new Blob([JSON.stringify(o)],{type:"application/json"}),s=URL.createObjectURL(i),a=document.createElement("a");a.href=s,a.download="flow.json",a.click(),URL.revokeObjectURL(s),a.remove()},r=async()=>{const o=document.createElement("input");o.type="file",o.accept=".json",o.onchange=async i=>{var l;const s=(l=i.target.files)==null?void 0:l[0];if(!s)return;const a=new FileReader;a.onload=async c=>{var d,p;const u=(d=c.target)==null?void 0:d.result;if(!u)return;const f=JSON.parse(u);await((p=e.worker)==null?void 0:p.load(f))},a.readAsText(s)},o.click()};return b.jsx(b.Fragment,{children:b.jsxs(rC,{children:[b.jsx(oC,{asChild:!0,children:b.jsx("button",{className:"styledbtn",children:b.jsxs(So,{direction:"row",children:["Nodespace ",b.jsx(G1,{})]})})}),b.jsx(iC,{className:"headermenucontent funcnodescontainer",children:b.jsxs(sC,{children:[b.jsx(ir,{className:"headermenuitem",onClick:t,children:"New"}),b.jsx(ir,{className:"headermenuitem",onClick:n,children:"Save"}),b.jsx(ir,{className:"headermenuitem",onClick:r,children:"Load"})]})})]})})},VL=({...e})=>{const t=N.useContext(xe),n=t.workerstate();return Object.keys(e).length>0&&t.logger.debug("headerprops",e),b.jsxs(So,{className:"funcnodesreactflowheader",direction:"row",wrap:!0,children:[b.jsx(So,{className:"headerelement m-w-6",grow:{"":!0,m:!1},children:b.jsx(LL,{})}),(e.showmenu||tf)&&b.jsxs(So,{direction:"row",wrap:!0,children:[b.jsx("div",{className:"headerelement",children:b.jsx(BL,{})}),(t.worker&&n.is_open||tf)&&b.jsx("div",{className:"headerelement",children:b.jsx(zL,{})})]})]})};function GL(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const $L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,HL=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WL={};function u0(e,t){return(WL.jsx?HL:$L).test(e)}const XL=/[ \t\n\f\r]/g;function YL(e){return typeof e=="object"?e.type==="text"?f0(e.value):!1:f0(e)}function f0(e){return e.replace(XL,"")===""}class ys{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ys.prototype.normal={};ys.prototype.property={};ys.prototype.space=void 0;function cC(e,t){const n={},r={};for(const o of e)Object.assign(n,o.property),Object.assign(r,o.normal);return new ys(n,r,t)}function Lf(e){return e.toLowerCase()}class wt{constructor(t,n){this.attribute=n,this.property=t}}wt.prototype.attribute="";wt.prototype.booleanish=!1;wt.prototype.boolean=!1;wt.prototype.commaOrSpaceSeparated=!1;wt.prototype.commaSeparated=!1;wt.prototype.defined=!1;wt.prototype.mustUseProperty=!1;wt.prototype.number=!1;wt.prototype.overloadedBoolean=!1;wt.prototype.property="";wt.prototype.spaceSeparated=!1;wt.prototype.space=void 0;let UL=0;const ye=qr(),qe=qr(),uC=qr(),te=qr(),Fe=qr(),Eo=qr(),Et=qr();function qr(){return 2**++UL}const Bf=Object.freeze(Object.defineProperty({__proto__:null,boolean:ye,booleanish:qe,commaOrSpaceSeparated:Et,commaSeparated:Eo,number:te,overloadedBoolean:uC,spaceSeparated:Fe},Symbol.toStringTag,{value:"Module"})),fu=Object.keys(Bf);class Sp extends wt{constructor(t,n,r,o){let i=-1;if(super(t,n),d0(this,"space",o),typeof r=="number")for(;++i<fu.length;){const s=fu[i];d0(this,fu[i],(r&Bf[s])===Bf[s])}}}Sp.prototype.defined=!0;function d0(e,t,n){n&&(e[t]=n)}function Zo(e){const t={},n={};for(const[r,o]of Object.entries(e.properties)){const i=new Sp(r,e.transform(e.attributes||{},r),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Lf(r)]=r,n[Lf(i.attribute)]=r}return new ys(t,n,e.space)}const fC=Zo({properties:{ariaActiveDescendant:null,ariaAtomic:qe,ariaAutoComplete:null,ariaBusy:qe,ariaChecked:qe,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:Fe,ariaCurrent:null,ariaDescribedBy:Fe,ariaDetails:null,ariaDisabled:qe,ariaDropEffect:Fe,ariaErrorMessage:null,ariaExpanded:qe,ariaFlowTo:Fe,ariaGrabbed:qe,ariaHasPopup:null,ariaHidden:qe,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Fe,ariaLevel:te,ariaLive:null,ariaModal:qe,ariaMultiLine:qe,ariaMultiSelectable:qe,ariaOrientation:null,ariaOwns:Fe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:qe,ariaReadOnly:qe,ariaRelevant:null,ariaRequired:qe,ariaRoleDescription:Fe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:qe,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function dC(e,t){return t in e?e[t]:t}function pC(e,t){return dC(e,t.toLowerCase())}const ZL=Zo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Eo,acceptCharset:Fe,accessKey:Fe,action:null,allow:null,allowFullScreen:ye,allowPaymentRequest:ye,allowUserMedia:ye,alt:null,as:null,async:ye,autoCapitalize:null,autoComplete:Fe,autoFocus:ye,autoPlay:ye,blocking:Fe,capture:null,charSet:null,checked:ye,cite:null,className:Fe,cols:te,colSpan:null,content:null,contentEditable:qe,controls:ye,controlsList:Fe,coords:te|Eo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ye,defer:ye,dir:null,dirName:null,disabled:ye,download:uC,draggable:qe,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ye,formTarget:null,headers:Fe,height:te,hidden:ye,high:te,href:null,hrefLang:null,htmlFor:Fe,httpEquiv:Fe,id:null,imageSizes:null,imageSrcSet:null,inert:ye,inputMode:null,integrity:null,is:null,isMap:ye,itemId:null,itemProp:Fe,itemRef:Fe,itemScope:ye,itemType:Fe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ye,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:ye,muted:ye,name:null,nonce:null,noModule:ye,noValidate:ye,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:ye,optimum:te,pattern:null,ping:Fe,placeholder:null,playsInline:ye,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ye,referrerPolicy:null,rel:Fe,required:ye,reversed:ye,rows:te,rowSpan:te,sandbox:Fe,scope:null,scoped:ye,seamless:ye,selected:ye,shadowRootClonable:ye,shadowRootDelegatesFocus:ye,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:qe,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:ye,useMap:null,value:qe,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Fe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ye,declare:ye,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:ye,noHref:ye,noShade:ye,noWrap:ye,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:qe,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ye,disableRemotePlayback:ye,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:pC}),JL=Zo({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:Et,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:Fe,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:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:ye,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,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:Eo,g2:Eo,glyphName:Eo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:Et,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,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:te,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:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Fe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Et,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Et,rev:Et,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Et,requiredFeatures:Et,requiredFonts:Et,requiredFormats:Et,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:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:Et,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Et,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Et,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dC}),hC=Zo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),gC=Zo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pC}),mC=Zo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),qL={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},KL=/[A-Z]/g,p0=/-[a-z]/g,QL=/^data[-\w.:]+$/i;function eB(e,t){const n=Lf(t);let r=t,o=wt;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&QL.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(p0,nB);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!p0.test(i)){let s=i.replace(KL,tB);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}o=Sp}return new o(r,t)}function tB(e){return"-"+e.toLowerCase()}function nB(e){return e.charAt(1).toUpperCase()}const rB=cC([fC,ZL,hC,gC,mC],"html"),Ep=cC([fC,JL,hC,gC,mC],"svg");function oB(e){return e.join(" ").trim()}var oo={},du,h0;function iB(){if(h0)return du;h0=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
|
|
697
|
+
`,c="/",u="*",f="",d="comment",p="declaration";du=function(h,y){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];y=y||{};var m=1,x=1;function v(L){var A=L.match(t);A&&(m+=A.length);var j=L.lastIndexOf(l);x=~j?L.length-j:x+L.length}function C(){var L={line:m,column:x};return function(A){return A.position=new S(L),P(),A}}function S(L){this.start=L,this.end={line:m,column:x},this.source=y.source}S.prototype.content=h;function E(L){var A=new Error(y.source+":"+m+":"+x+": "+L);if(A.reason=L,A.filename=y.source,A.line=m,A.column=x,A.source=h,!y.silent)throw A}function I(L){var A=L.exec(h);if(A){var j=A[0];return v(j),h=h.slice(j.length),A}}function P(){I(n)}function M(L){var A;for(L=L||[];A=w();)A!==!1&&L.push(A);return L}function w(){var L=C();if(!(c!=h.charAt(0)||u!=h.charAt(1))){for(var A=2;f!=h.charAt(A)&&(u!=h.charAt(A)||c!=h.charAt(A+1));)++A;if(A+=2,f===h.charAt(A-1))return E("End of comment missing");var j=h.slice(2,A-2);return x+=2,v(j),h=h.slice(A),x+=2,L({type:d,comment:j})}}function R(){var L=C(),A=I(r);if(A){if(w(),!I(o))return E("property missing ':'");var j=I(i),D=L({type:p,property:g(A[0].replace(e,f)),value:j?g(j[0].replace(e,f)):f});return I(s),D}}function O(){var L=[];M(L);for(var A;A=R();)A!==!1&&(L.push(A),M(L));return L}return P(),O()};function g(h){return h?h.replace(a,f):f}return du}var g0;function sB(){if(g0)return oo;g0=1;var e=oo&&oo.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=n;var t=e(iB());function n(r,o){var i=null;if(!r||typeof r!="string")return i;var s=(0,t.default)(r),a=typeof o=="function";return s.forEach(function(l){if(l.type==="declaration"){var c=l.property,u=l.value;a?o(c,u,l):u&&(i=i||{},i[c]=u)}}),i}return oo}var ai={},m0;function aB(){if(m0)return ai;m0=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(c){return!c||n.test(c)||e.test(c)},s=function(c,u){return u.toUpperCase()},a=function(c,u){return"".concat(u,"-")},l=function(c,u){return u===void 0&&(u={}),i(c)?c:(c=c.toLowerCase(),u.reactCompat?c=c.replace(o,a):c=c.replace(r,a),c.replace(t,s))};return ai.camelCase=l,ai}var li,y0;function lB(){if(y0)return li;y0=1;var e=li&&li.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(sB()),n=aB();function r(o,i){var s={};return!o||typeof o!="string"||(0,t.default)(o,function(a,l){a&&l&&(s[(0,n.camelCase)(a,i)]=l)}),s}return r.default=r,li=r,li}var cB=lB();const uB=gl(cB),yC=bC("end"),Ip=bC("start");function bC(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function fB(e){const t=Ip(e),n=yC(e);if(t&&n)return{start:t,end:n}}function Ei(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?b0(e.position):"start"in e||"end"in e?b0(e):"line"in e||"column"in e?zf(e):""}function zf(e){return v0(e&&e.line)+":"+v0(e&&e.column)}function b0(e){return zf(e&&e.start)+"-"+zf(e&&e.end)}function v0(e){return e&&typeof e=="number"?e:1}class ut extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let o="",i={},s=!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 t=="string"?o=t:!i.cause&&t&&(s=!0,o=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const a=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=a?a.column:void 0,this.fatal=void 0,this.file,this.message=o,this.line=a?a.line:void 0,this.name=Ei(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=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}ut.prototype.file="";ut.prototype.name="";ut.prototype.reason="";ut.prototype.message="";ut.prototype.stack="";ut.prototype.column=void 0;ut.prototype.line=void 0;ut.prototype.ancestors=void 0;ut.prototype.cause=void 0;ut.prototype.fatal=void 0;ut.prototype.place=void 0;ut.prototype.ruleId=void 0;ut.prototype.source=void 0;const kp={}.hasOwnProperty,dB=new Map,pB=/[A-Z]/g,hB=new Set(["table","tbody","thead","tfoot","tr"]),gB=new Set(["td","th"]),vC="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function mB(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=SB(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=_B(n,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Ep:rB,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=xC(o,e,void 0);return i&&typeof i!="string"?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function xC(e,t,n){if(t.type==="element")return yB(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return bB(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return xB(e,t,n);if(t.type==="mdxjsEsm")return vB(e,t);if(t.type==="root")return wB(e,t,n);if(t.type==="text")return CB(e,t)}function yB(e,t,n){const r=e.schema;let o=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(o=Ep,e.schema=o),e.ancestors.push(t);const i=CC(e,t.tagName,!1),s=EB(e,t);let a=Rp(e,t);return hB.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!YL(l):!0})),wC(e,s,i,t),Ap(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function bB(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xi(e,t.position)}function vB(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xi(e,t.position)}function xB(e,t,n){const r=e.schema;let o=r;t.name==="svg"&&r.space==="html"&&(o=Ep,e.schema=o),e.ancestors.push(t);const i=t.name===null?e.Fragment:CC(e,t.name,!0),s=IB(e,t),a=Rp(e,t);return wC(e,s,i,t),Ap(s,a),e.ancestors.pop(),e.schema=r,e.create(t,i,s,n)}function wB(e,t,n){const r={};return Ap(r,Rp(e,t)),e.create(t,e.Fragment,r,n)}function CB(e,t){return t.value}function wC(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Ap(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _B(e,t,n){return r;function r(o,i,s,a){const c=Array.isArray(s.children)?n:t;return a?c(i,s,a):c(i,s)}}function SB(e,t){return n;function n(r,o,i,s){const a=Array.isArray(i.children),l=Ip(r);return t(o,i,s,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function EB(e,t){const n={};let r,o;for(o in t.properties)if(o!=="children"&&kp.call(t.properties,o)){const i=kB(e,o,t.properties[o]);if(i){const[s,a]=i;e.tableCellAlignToStyle&&s==="align"&&typeof a=="string"&&gB.has(t.tagName)?r=a:n[s]=a}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function IB(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const s=i.expression;s.type;const a=s.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xi(e,t.position);else{const o=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,i=e.evaluater.evaluateExpression(a.expression)}else Xi(e,t.position);else i=r.value===null?!0:r.value;n[o]=i}return n}function Rp(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:dB;for(;++r<t.children.length;){const i=t.children[r];let s;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const c=o.get(l)||0;s=l+"-"+c,o.set(l,c+1)}}const a=xC(e,i,s);a!==void 0&&n.push(a)}return n}function kB(e,t,n){const r=eB(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?GL(n):oB(n)),r.property==="style"){let o=typeof n=="object"?n:AB(e,String(n));return e.stylePropertyNameCase==="css"&&(o=RB(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&r.space?qL[r.property]||r.property:r.attribute,n]}}function AB(e,t){try{return uB(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,o=new ut("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=vC+"#cannot-parse-style-attribute",o}}function CC(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let i=-1,s;for(;++i<o.length;){const a=u0(o[i])?{type:"Identifier",name:o[i]}:{type:"Literal",value:o[i]};s=s?{type:"MemberExpression",object:s,property:a,computed:!!(i&&a.type==="Literal"),optional:!1}:a}r=s}else r=u0(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const o=r.value;return kp.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xi(e)}function Xi(e,t){const n=new ut("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=vC+"#cannot-handle-mdx-estrees-without-createevaluater",n}function RB(e){const t={};let n;for(n in e)kp.call(e,n)&&(t[TB(n)]=e[n]);return t}function TB(e){let t=e.replace(pB,NB);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function NB(e){return"-"+e.toLowerCase()}const pu={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},PB={};function Tp(e,t){const n=PB,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _C(e,r,o)}function _C(e,t,n){if(OB(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return x0(e.children,t,n)}return Array.isArray(e)?x0(e,t,n):""}function x0(e,t,n){const r=[];let o=-1;for(;++o<e.length;)r[o]=_C(e[o],t,n);return r.join("")}function OB(e){return!!(e&&typeof e=="object")}const w0=document.createElement("i");function Np(e){const t="&"+e+";";w0.innerHTML=t;const n=w0.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Nt(e,t,n,r){const o=e.length;let i=0,s;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);i<r.length;)s=r.slice(i,i+1e4),s.unshift(t,0),e.splice(...s),i+=1e4,t+=1e4}function Lt(e,t){return e.length>0?(Nt(e,e.length,0,t),e):t}const C0={}.hasOwnProperty;function SC(e){const t={};let n=-1;for(;++n<e.length;)MB(t,e[n]);return t}function MB(e,t){let n;for(n in t){const o=(C0.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let s;if(i)for(s in i){C0.call(o,s)||(o[s]=[]);const a=i[s];DB(o[s],Array.isArray(a)?a:a?[a]:[])}}}function DB(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Nt(e,0,0,r)}function EC(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Qt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const pt=vr(/[A-Za-z]/),at=vr(/[\dA-Za-z]/),FB=vr(/[#-'*+\--9=?A-Z^-~]/);function qa(e){return e!==null&&(e<32||e===127)}const Vf=vr(/\d/),jB=vr(/[\dA-Fa-f]/),LB=vr(/[!-/:-@[-`{-~]/);function de(e){return e!==null&&e<-2}function De(e){return e!==null&&(e<0||e===32)}function we(e){return e===-2||e===-1||e===32}const Jl=vr(new RegExp("\\p{P}|\\p{S}","u")),Yr=vr(/\s/);function vr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Jo(e){const t=[];let n=-1,r=0,o=0;for(;++n<e.length;){const i=e.charCodeAt(n);let s="";if(i===37&&at(e.charCodeAt(n+1))&&at(e.charCodeAt(n+2)))o=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(s=String.fromCharCode(i));else if(i>55295&&i<57344){const a=e.charCodeAt(n+1);i<56320&&a>56319&&a<57344?(s=String.fromCharCode(i,a),o=1):s="�"}else s=String.fromCharCode(i);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+o+1,s=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function _e(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return s;function s(l){return we(l)?(e.enter(n),a(l)):t(l)}function a(l){return we(l)&&i++<o?(e.consume(l),a):(e.exit(n),t(l))}}const BB={tokenize:zB};function zB(e){const t=e.attempt(this.parser.constructs.contentInitial,r,o);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_e(e,t,"linePrefix")}function o(a){return e.enter("paragraph"),i(a)}function i(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(a)}function s(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return de(a)?(e.consume(a),e.exit("chunkText"),i):(e.consume(a),s)}}const VB={tokenize:GB},_0={tokenize:$B};function GB(e){const t=this,n=[];let r=0,o,i,s;return a;function a(v){if(r<n.length){const C=n[r];return t.containerState=C[1],e.attempt(C[0].continuation,l,c)(v)}return c(v)}function l(v){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&x();const C=t.events.length;let S=C,E;for(;S--;)if(t.events[S][0]==="exit"&&t.events[S][1].type==="chunkFlow"){E=t.events[S][1].end;break}m(r);let I=C;for(;I<t.events.length;)t.events[I][1].end={...E},I++;return Nt(t.events,S+1,0,t.events.slice(C)),t.events.length=I,c(v)}return a(v)}function c(v){if(r===n.length){if(!o)return d(v);if(o.currentConstruct&&o.currentConstruct.concrete)return g(v);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(_0,u,f)(v)}function u(v){return o&&x(),m(r),d(v)}function f(v){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,g(v)}function d(v){return t.containerState={},e.attempt(_0,p,g)(v)}function p(v){return r++,n.push([t.currentConstruct,t.containerState]),d(v)}function g(v){if(v===null){o&&x(),m(0),e.consume(v);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:i}),h(v)}function h(v){if(v===null){y(e.exit("chunkFlow"),!0),m(0),e.consume(v);return}return de(v)?(e.consume(v),y(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(v),h)}function y(v,C){const S=t.sliceStream(v);if(C&&S.push(null),v.previous=i,i&&(i.next=v),i=v,o.defineSkip(v.start),o.write(S),t.parser.lazy[v.start.line]){let E=o.events.length;for(;E--;)if(o.events[E][1].start.offset<s&&(!o.events[E][1].end||o.events[E][1].end.offset>s))return;const I=t.events.length;let P=I,M,w;for(;P--;)if(t.events[P][0]==="exit"&&t.events[P][1].type==="chunkFlow"){if(M){w=t.events[P][1].end;break}M=!0}for(m(r),E=I;E<t.events.length;)t.events[E][1].end={...w},E++;Nt(t.events,P+1,0,t.events.slice(I)),t.events.length=E}}function m(v){let C=n.length;for(;C-- >v;){const S=n[C];t.containerState=S[1],S[0].exit.call(t,e)}n.length=v}function x(){o.write([null]),i=void 0,o=void 0,t.containerState._closeFlow=void 0}}function $B(e,t,n){return _e(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lo(e){if(e===null||De(e)||Yr(e))return 1;if(Jl(e))return 2}function ql(e,t,n){const r=[];let o=-1;for(;++o<e.length;){const i=e[o].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Gf={name:"attention",resolveAll:HB,tokenize:WB};function HB(e,t){let n=-1,r,o,i,s,a,l,c,u;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[n][1].start};S0(f,-l),S0(d,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},o={type:l>1?"strong":"emphasis",start:{...s.start},end:{...a.end}},e[r][1].end={...s.start},e[n][1].start={...a.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=Lt(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=Lt(c,[["enter",o,t],["enter",s,t],["exit",s,t],["enter",i,t]]),c=Lt(c,ql(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=Lt(c,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",o,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,c=Lt(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):u=0,Nt(e,r-1,n-r+3,c),n=r+c.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function WB(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,o=Lo(r);let i;return s;function s(l){return i=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===i)return e.consume(l),a;const c=e.exit("attentionSequence"),u=Lo(l),f=!u||u===2&&o||n.includes(l),d=!o||o===2&&u||n.includes(r);return c._open=!!(i===42?f:f&&(o||!d)),c._close=!!(i===42?d:d&&(u||!f)),t(l)}}function S0(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const XB={name:"autolink",tokenize:YB};function YB(e,t,n){let r=0;return o;function o(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return pt(p)?(e.consume(p),s):p===64?n(p):c(p)}function s(p){return p===43||p===45||p===46||at(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||at(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||qa(p)?n(p):(e.consume(p),l)}function c(p){return p===64?(e.consume(p),u):FB(p)?(e.consume(p),c):n(p)}function u(p){return at(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,u):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||at(p))&&r++<63){const g=p===45?d:f;return e.consume(p),g}return n(p)}}const bs={partial:!0,tokenize:UB};function UB(e,t,n){return r;function r(i){return we(i)?_e(e,o,"linePrefix")(i):o(i)}function o(i){return i===null||de(i)?t(i):n(i)}}const IC={continuation:{tokenize:JB},exit:qB,name:"blockQuote",tokenize:ZB};function ZB(e,t,n){const r=this;return o;function o(s){if(s===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),i}return n(s)}function i(s){return we(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function JB(e,t,n){const r=this;return o;function o(s){return we(s)?_e(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):i(s)}function i(s){return e.attempt(IC,t,n)(s)}}function qB(e){e.exit("blockQuote")}const kC={name:"characterEscape",tokenize:KB};function KB(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),o}function o(i){return LB(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const AC={name:"characterReference",tokenize:QB};function QB(e,t,n){const r=this;let o=0,i,s;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),i=31,s=at,u(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,s=jB,u):(e.enter("characterReferenceValue"),i=7,s=Vf,u(f))}function u(f){if(f===59&&o){const d=e.exit("characterReferenceValue");return s===at&&!Np(r.sliceSerialize(d))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(f)&&o++<i?(e.consume(f),u):n(f)}}const E0={partial:!0,tokenize:t9},I0={concrete:!0,name:"codeFenced",tokenize:e9};function e9(e,t,n){const r=this,o={partial:!0,tokenize:S};let i=0,s=0,a;return l;function l(E){return c(E)}function c(E){const I=r.events[r.events.length-1];return i=I&&I[1].type==="linePrefix"?I[2].sliceSerialize(I[1],!0).length:0,a=E,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(E)}function u(E){return E===a?(s++,e.consume(E),u):s<3?n(E):(e.exit("codeFencedFenceSequence"),we(E)?_e(e,f,"whitespace")(E):f(E))}function f(E){return E===null||de(E)?(e.exit("codeFencedFence"),r.interrupt?t(E):e.check(E0,h,C)(E)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(E))}function d(E){return E===null||de(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(E)):we(E)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_e(e,p,"whitespace")(E)):E===96&&E===a?n(E):(e.consume(E),d)}function p(E){return E===null||de(E)?f(E):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||de(E)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(E)):E===96&&E===a?n(E):(e.consume(E),g)}function h(E){return e.attempt(o,C,y)(E)}function y(E){return e.enter("lineEnding"),e.consume(E),e.exit("lineEnding"),m}function m(E){return i>0&&we(E)?_e(e,x,"linePrefix",i+1)(E):x(E)}function x(E){return E===null||de(E)?e.check(E0,h,C)(E):(e.enter("codeFlowValue"),v(E))}function v(E){return E===null||de(E)?(e.exit("codeFlowValue"),x(E)):(e.consume(E),v)}function C(E){return e.exit("codeFenced"),t(E)}function S(E,I,P){let M=0;return w;function w(j){return E.enter("lineEnding"),E.consume(j),E.exit("lineEnding"),R}function R(j){return E.enter("codeFencedFence"),we(j)?_e(E,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(j):O(j)}function O(j){return j===a?(E.enter("codeFencedFenceSequence"),L(j)):P(j)}function L(j){return j===a?(M++,E.consume(j),L):M>=s?(E.exit("codeFencedFenceSequence"),we(j)?_e(E,A,"whitespace")(j):A(j)):P(j)}function A(j){return j===null||de(j)?(E.exit("codeFencedFence"),I(j)):P(j)}}}function t9(e,t,n){const r=this;return o;function o(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const hu={name:"codeIndented",tokenize:r9},n9={partial:!0,tokenize:o9};function r9(e,t,n){const r=this;return o;function o(c){return e.enter("codeIndented"),_e(e,i,"linePrefix",5)(c)}function i(c){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(c):n(c)}function s(c){return c===null?l(c):de(c)?e.attempt(n9,s,l)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||de(c)?(e.exit("codeFlowValue"),s(c)):(e.consume(c),a)}function l(c){return e.exit("codeIndented"),t(c)}}function o9(e,t,n){const r=this;return o;function o(s){return r.parser.lazy[r.now().line]?n(s):de(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):_e(e,i,"linePrefix",5)(s)}function i(s){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):de(s)?o(s):n(s)}}const i9={name:"codeText",previous:a9,resolve:s9,tokenize:l9};function s9(e){let t=e.length-4,n=3,r,o;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)o===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(o=r):(r===t||e[r][1].type==="lineEnding")&&(e[o][1].type="codeTextData",r!==o+2&&(e[o][1].end=e[r-1][1].end,e.splice(o+2,r-o-2),t-=r-o-2,r=o+2),o=void 0);return e}function a9(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function l9(e,t,n){let r=0,o,i;return s;function s(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(i=e.enter("codeTextSequence"),o=0,u(f)):de(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||de(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),c)}function u(f){return f===96?(e.consume(f),o++,u):o===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(i.type="codeTextData",c(f))}}class c9{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const o=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return r&&ci(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ci(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ci(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ci(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ci(this.left,n.reverse())}}}function ci(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function RC(e){const t={};let n=-1,r,o,i,s,a,l,c;const u=new c9(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type==="chunkFlow"&&u.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,u9(u,n)),n=t[n],c=!0);else if(r[1]._container){for(i=n,o=void 0;i--;)if(s=u.get(i),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(o&&(u.get(o)[1].type="lineEndingBlank"),s[1].type="lineEnding",o=i);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;o&&(r[1].end={...u.get(o)[1].start},a=u.slice(o,n),a.unshift(r),u.splice(o,n-o+1,a))}}return Nt(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!c}function u9(e,t){const n=e.get(t)[1],r=e.get(t)[2];let o=t-1;const i=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const a=s.events,l=[],c={};let u,f,d=-1,p=n,g=0,h=0;const y=[h];for(;p;){for(;e.get(++o)[1]!==p;);i.push(o),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),f&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(u),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(h=d+1,y.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),d=y.length;d--;){const m=a.slice(y[d],y[d+1]),x=i.pop();l.push([x,x+m.length-1]),e.splice(x,2,m)}for(l.reverse(),d=-1;++d<l.length;)c[g+l[d][0]]=g+l[d][1],g+=l[d][1]-l[d][0]-1;return c}const f9={resolve:p9,tokenize:h9},d9={partial:!0,tokenize:g9};function p9(e){return RC(e),e}function h9(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),o(a)}function o(a){return a===null?i(a):de(a)?e.check(d9,s,i)(a):(e.consume(a),o)}function i(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function s(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function g9(e,t,n){const r=this;return o;function o(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),_e(e,i,"linePrefix")}function i(s){if(s===null||de(s))return n(s);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function TC(e,t,n,r,o,i,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return f;function f(m){return m===60?(e.enter(r),e.enter(o),e.enter(i),e.consume(m),e.exit(i),d):m===null||m===32||m===41||qa(m)?n(m):(e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),h(m))}function d(m){return m===62?(e.enter(i),e.consume(m),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(m))}function p(m){return m===62?(e.exit("chunkString"),e.exit(a),d(m)):m===null||m===60||de(m)?n(m):(e.consume(m),m===92?g:p)}function g(m){return m===60||m===62||m===92?(e.consume(m),p):p(m)}function h(m){return!u&&(m===null||m===41||De(m))?(e.exit("chunkString"),e.exit(a),e.exit(s),e.exit(r),t(m)):u<c&&m===40?(e.consume(m),u++,h):m===41?(e.consume(m),u--,h):m===null||m===32||m===40||qa(m)?n(m):(e.consume(m),m===92?y:h)}function y(m){return m===40||m===41||m===92?(e.consume(m),h):h(m)}}function NC(e,t,n,r,o,i){const s=this;let a=0,l;return c;function c(p){return e.enter(r),e.enter(o),e.consume(p),e.exit(o),e.enter(i),u}function u(p){return a>999||p===null||p===91||p===93&&!l||p===94&&!a&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):p===93?(e.exit(i),e.enter(o),e.consume(p),e.exit(o),e.exit(r),t):de(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||de(p)||a++>999?(e.exit("chunkString"),u(p)):(e.consume(p),l||(l=!we(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function PC(e,t,n,r,o,i){let s;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(o),e.consume(d),e.exit(o),s=d===40?41:d,l):n(d)}function l(d){return d===s?(e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):(e.enter(i),c(d))}function c(d){return d===s?(e.exit(i),l(s)):d===null?n(d):de(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_e(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(d){return d===s||d===null||de(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:u)}function f(d){return d===s||d===92?(e.consume(d),u):u(d)}}function Ii(e,t){let n;return r;function r(o){return de(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r):we(o)?_e(e,r,n?"linePrefix":"lineSuffix")(o):t(o)}}const m9={name:"definition",tokenize:b9},y9={partial:!0,tokenize:v9};function b9(e,t,n){const r=this;let o;return i;function i(p){return e.enter("definition"),s(p)}function s(p){return NC.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return o=Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return De(p)?Ii(e,c)(p):c(p)}function c(p){return TC(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function u(p){return e.attempt(y9,f,f)(p)}function f(p){return we(p)?_e(e,d,"whitespace")(p):d(p)}function d(p){return p===null||de(p)?(e.exit("definition"),r.parser.defined.push(o),t(p)):n(p)}}function v9(e,t,n){return r;function r(a){return De(a)?Ii(e,o)(a):n(a)}function o(a){return PC(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function i(a){return we(a)?_e(e,s,"whitespace")(a):s(a)}function s(a){return a===null||de(a)?t(a):n(a)}}const x9={name:"hardBreakEscape",tokenize:w9};function w9(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),o}function o(i){return de(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const C9={name:"headingAtx",resolve:_9,tokenize:S9};function _9(e,t){let n=e.length-2,r=3,o,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(o={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Nt(e,r,n-r+1,[["enter",o,t],["enter",i,t],["exit",i,t],["exit",o,t]])),e}function S9(e,t,n){let r=0;return o;function o(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&r++<6?(e.consume(u),s):u===null||De(u)?(e.exit("atxHeadingSequence"),a(u)):n(u)}function a(u){return u===35?(e.enter("atxHeadingSequence"),l(u)):u===null||de(u)?(e.exit("atxHeading"),t(u)):we(u)?_e(e,a,"whitespace")(u):(e.enter("atxHeadingText"),c(u))}function l(u){return u===35?(e.consume(u),l):(e.exit("atxHeadingSequence"),a(u))}function c(u){return u===null||u===35||De(u)?(e.exit("atxHeadingText"),a(u)):(e.consume(u),c)}}const E9=["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"],k0=["pre","script","style","textarea"],I9={concrete:!0,name:"htmlFlow",resolveTo:R9,tokenize:T9},k9={partial:!0,tokenize:P9},A9={partial:!0,tokenize:N9};function R9(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function T9(e,t,n){const r=this;let o,i,s,a,l;return c;function c(T){return u(T)}function u(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),f}function f(T){return T===33?(e.consume(T),d):T===47?(e.consume(T),i=!0,h):T===63?(e.consume(T),o=3,r.interrupt?t:_):pt(T)?(e.consume(T),s=String.fromCharCode(T),y):n(T)}function d(T){return T===45?(e.consume(T),o=2,p):T===91?(e.consume(T),o=5,a=0,g):pt(T)?(e.consume(T),o=4,r.interrupt?t:_):n(T)}function p(T){return T===45?(e.consume(T),r.interrupt?t:_):n(T)}function g(T){const H="CDATA[";return T===H.charCodeAt(a++)?(e.consume(T),a===H.length?r.interrupt?t:O:g):n(T)}function h(T){return pt(T)?(e.consume(T),s=String.fromCharCode(T),y):n(T)}function y(T){if(T===null||T===47||T===62||De(T)){const H=T===47,J=s.toLowerCase();return!H&&!i&&k0.includes(J)?(o=1,r.interrupt?t(T):O(T)):E9.includes(s.toLowerCase())?(o=6,H?(e.consume(T),m):r.interrupt?t(T):O(T)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(T):i?x(T):v(T))}return T===45||at(T)?(e.consume(T),s+=String.fromCharCode(T),y):n(T)}function m(T){return T===62?(e.consume(T),r.interrupt?t:O):n(T)}function x(T){return we(T)?(e.consume(T),x):w(T)}function v(T){return T===47?(e.consume(T),w):T===58||T===95||pt(T)?(e.consume(T),C):we(T)?(e.consume(T),v):w(T)}function C(T){return T===45||T===46||T===58||T===95||at(T)?(e.consume(T),C):S(T)}function S(T){return T===61?(e.consume(T),E):we(T)?(e.consume(T),S):v(T)}function E(T){return T===null||T===60||T===61||T===62||T===96?n(T):T===34||T===39?(e.consume(T),l=T,I):we(T)?(e.consume(T),E):P(T)}function I(T){return T===l?(e.consume(T),l=null,M):T===null||de(T)?n(T):(e.consume(T),I)}function P(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||De(T)?S(T):(e.consume(T),P)}function M(T){return T===47||T===62||we(T)?v(T):n(T)}function w(T){return T===62?(e.consume(T),R):n(T)}function R(T){return T===null||de(T)?O(T):we(T)?(e.consume(T),R):n(T)}function O(T){return T===45&&o===2?(e.consume(T),D):T===60&&o===1?(e.consume(T),z):T===62&&o===4?(e.consume(T),G):T===63&&o===3?(e.consume(T),_):T===93&&o===5?(e.consume(T),F):de(T)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(k9,$,L)(T)):T===null||de(T)?(e.exit("htmlFlowData"),L(T)):(e.consume(T),O)}function L(T){return e.check(A9,A,$)(T)}function A(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),j}function j(T){return T===null||de(T)?L(T):(e.enter("htmlFlowData"),O(T))}function D(T){return T===45?(e.consume(T),_):O(T)}function z(T){return T===47?(e.consume(T),s="",V):O(T)}function V(T){if(T===62){const H=s.toLowerCase();return k0.includes(H)?(e.consume(T),G):O(T)}return pt(T)&&s.length<8?(e.consume(T),s+=String.fromCharCode(T),V):O(T)}function F(T){return T===93?(e.consume(T),_):O(T)}function _(T){return T===62?(e.consume(T),G):T===45&&o===2?(e.consume(T),_):O(T)}function G(T){return T===null||de(T)?(e.exit("htmlFlowData"),$(T)):(e.consume(T),G)}function $(T){return e.exit("htmlFlow"),t(T)}}function N9(e,t,n){const r=this;return o;function o(s){return de(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function P9(e,t,n){return r;function r(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(bs,t,n)}}const O9={name:"htmlText",tokenize:M9};function M9(e,t,n){const r=this;let o,i,s;return a;function a(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),c):_===47?(e.consume(_),S):_===63?(e.consume(_),v):pt(_)?(e.consume(_),P):n(_)}function c(_){return _===45?(e.consume(_),u):_===91?(e.consume(_),i=0,g):pt(_)?(e.consume(_),x):n(_)}function u(_){return _===45?(e.consume(_),p):n(_)}function f(_){return _===null?n(_):_===45?(e.consume(_),d):de(_)?(s=f,z(_)):(e.consume(_),f)}function d(_){return _===45?(e.consume(_),p):f(_)}function p(_){return _===62?D(_):_===45?d(_):f(_)}function g(_){const G="CDATA[";return _===G.charCodeAt(i++)?(e.consume(_),i===G.length?h:g):n(_)}function h(_){return _===null?n(_):_===93?(e.consume(_),y):de(_)?(s=h,z(_)):(e.consume(_),h)}function y(_){return _===93?(e.consume(_),m):h(_)}function m(_){return _===62?D(_):_===93?(e.consume(_),m):h(_)}function x(_){return _===null||_===62?D(_):de(_)?(s=x,z(_)):(e.consume(_),x)}function v(_){return _===null?n(_):_===63?(e.consume(_),C):de(_)?(s=v,z(_)):(e.consume(_),v)}function C(_){return _===62?D(_):v(_)}function S(_){return pt(_)?(e.consume(_),E):n(_)}function E(_){return _===45||at(_)?(e.consume(_),E):I(_)}function I(_){return de(_)?(s=I,z(_)):we(_)?(e.consume(_),I):D(_)}function P(_){return _===45||at(_)?(e.consume(_),P):_===47||_===62||De(_)?M(_):n(_)}function M(_){return _===47?(e.consume(_),D):_===58||_===95||pt(_)?(e.consume(_),w):de(_)?(s=M,z(_)):we(_)?(e.consume(_),M):D(_)}function w(_){return _===45||_===46||_===58||_===95||at(_)?(e.consume(_),w):R(_)}function R(_){return _===61?(e.consume(_),O):de(_)?(s=R,z(_)):we(_)?(e.consume(_),R):M(_)}function O(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),o=_,L):de(_)?(s=O,z(_)):we(_)?(e.consume(_),O):(e.consume(_),A)}function L(_){return _===o?(e.consume(_),o=void 0,j):_===null?n(_):de(_)?(s=L,z(_)):(e.consume(_),L)}function A(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||De(_)?M(_):(e.consume(_),A)}function j(_){return _===47||_===62||De(_)?M(_):n(_)}function D(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function z(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),V}function V(_){return we(_)?_e(e,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):F(_)}function F(_){return e.enter("htmlTextData"),s(_)}}const Pp={name:"labelEnd",resolveAll:L9,resolveTo:B9,tokenize:z9},D9={tokenize:V9},F9={tokenize:G9},j9={tokenize:$9};function L9(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const o=r.type==="labelImage"?4:2;r.type="data",t+=o}}return e.length!==n.length&&Nt(e,0,e.length,n),e}function B9(e,t){let n=e.length,r=0,o,i,s,a;for(;n--;)if(o=e[n][1],i){if(o.type==="link"||o.type==="labelLink"&&o._inactive)break;e[n][0]==="enter"&&o.type==="labelLink"&&(o._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(o.type==="labelImage"||o.type==="labelLink")&&!o._balanced&&(i=n,o.type!=="labelLink")){r=2;break}}else o.type==="labelEnd"&&(s=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[i][1].start},end:{...e[s][1].end}},u={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[s-2][1].start}};return a=[["enter",l,t],["enter",c,t]],a=Lt(a,e.slice(i+1,i+r+3)),a=Lt(a,[["enter",u,t]]),a=Lt(a,ql(t.parser.constructs.insideSpan.null,e.slice(i+r+4,s-3),t)),a=Lt(a,[["exit",u,t],e[s-2],e[s-1],["exit",c,t]]),a=Lt(a,e.slice(s+1)),a=Lt(a,[["exit",l,t]]),Nt(e,i,e.length,a),e}function z9(e,t,n){const r=this;let o=r.events.length,i,s;for(;o--;)if((r.events[o][1].type==="labelImage"||r.events[o][1].type==="labelLink")&&!r.events[o][1]._balanced){i=r.events[o][1];break}return a;function a(d){return i?i._inactive?f(d):(s=r.parser.defined.includes(Qt(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):n(d)}function l(d){return d===40?e.attempt(D9,u,s?u:f)(d):d===91?e.attempt(F9,u,s?c:f)(d):s?u(d):f(d)}function c(d){return e.attempt(j9,u,f)(d)}function u(d){return t(d)}function f(d){return i._balanced=!0,n(d)}}function V9(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),o}function o(f){return De(f)?Ii(e,i)(f):i(f)}function i(f){return f===41?u(f):TC(e,s,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function s(f){return De(f)?Ii(e,l)(f):u(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?PC(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):u(f)}function c(f){return De(f)?Ii(e,u)(f):u(f)}function u(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function G9(e,t,n){const r=this;return o;function o(a){return NC.call(r,e,i,s,"reference","referenceMarker","referenceString")(a)}function i(a){return r.parser.defined.includes(Qt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function s(a){return n(a)}}function $9(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),o}function o(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const H9={name:"labelStartImage",resolveAll:Pp.resolveAll,tokenize:W9};function W9(e,t,n){const r=this;return o;function o(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),i}function i(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),s):n(a)}function s(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const X9={name:"labelStartLink",resolveAll:Pp.resolveAll,tokenize:Y9};function Y9(e,t,n){const r=this;return o;function o(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),i}function i(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const gu={name:"lineEnding",tokenize:U9};function U9(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_e(e,t,"linePrefix")}}const wa={name:"thematicBreak",tokenize:Z9};function Z9(e,t,n){let r=0,o;return i;function i(c){return e.enter("thematicBreak"),s(c)}function s(c){return o=c,a(c)}function a(c){return c===o?(e.enter("thematicBreakSequence"),l(c)):r>=3&&(c===null||de(c))?(e.exit("thematicBreak"),t(c)):n(c)}function l(c){return c===o?(e.consume(c),r++,l):(e.exit("thematicBreakSequence"),we(c)?_e(e,a,"whitespace")(c):a(c))}}const mt={continuation:{tokenize:Q9},exit:tz,name:"list",tokenize:K9},J9={partial:!0,tokenize:nz},q9={partial:!0,tokenize:ez};function K9(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,s=0;return a;function a(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Vf(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(wa,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Vf(p)&&++s<10?(e.consume(p),l):(!r.interrupt||s<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(bs,r.interrupt?n:u,e.attempt(J9,d,f))}function u(p){return r.containerState.initialBlankLine=!0,i++,d(p)}function f(p){return we(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Q9(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(bs,o,i);function o(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_e(e,t,"listItemIndent",r.containerState.size+1)(a)}function i(a){return r.containerState.furtherBlankLines||!we(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(q9,t,s)(a))}function s(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_e(e,e.attempt(mt,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ez(e,t,n){const r=this;return _e(e,o,"listItemIndent",r.containerState.size+1);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(i):n(i)}}function tz(e){e.exit(this.containerState.type)}function nz(e,t,n){const r=this;return _e(e,o,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(i){const s=r.events[r.events.length-1];return!we(i)&&s&&s[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const A0={name:"setextUnderline",resolveTo:rz,tokenize:oz};function rz(e,t){let n=e.length,r,o,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(o=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",i?(e.splice(o,0,["enter",s,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function oz(e,t,n){const r=this;let o;return i;function i(c){let u=r.events.length,f;for(;u--;)if(r.events[u][1].type!=="lineEnding"&&r.events[u][1].type!=="linePrefix"&&r.events[u][1].type!=="content"){f=r.events[u][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),o=c,s(c)):n(c)}function s(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===o?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),we(c)?_e(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||de(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const iz={tokenize:sz};function sz(e){const t=this,n=e.attempt(bs,r,e.attempt(this.parser.constructs.flowInitial,o,_e(e,e.attempt(this.parser.constructs.flow,o,e.attempt(f9,o)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function o(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const az={resolveAll:MC()},lz=OC("string"),cz=OC("text");function OC(e){return{resolveAll:MC(e==="text"?uz:void 0),tokenize:t};function t(n){const r=this,o=this.parser.constructs[e],i=n.attempt(o,s,a);return s;function s(u){return c(u)?i(u):a(u)}function a(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),l}function l(u){return c(u)?(n.exit("data"),i(u)):(n.consume(u),l)}function c(u){if(u===null)return!0;const f=o[u];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function MC(e){return t;function t(n,r){let o=-1,i;for(;++o<=n.length;)i===void 0?n[o]&&n[o][1].type==="data"&&(i=o,o++):(!n[o]||n[o][1].type!=="data")&&(o!==i+2&&(n[i][1].end=n[o-1][1].end,n.splice(i+2,o-i-2),o=i+2),i=void 0);return e?e(n,r):n}}function uz(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],o=t.sliceStream(r);let i=o.length,s=-1,a=0,l;for(;i--;){const c=o[i];if(typeof c=="string"){for(s=c.length;c.charCodeAt(s-1)===32;)a++,s--;if(s)break;s=-1}else if(c===-2)l=!0,a++;else if(c!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const c={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?s:r.start._bufferIndex+s,_index:r.start._index+i,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const fz={42:mt,43:mt,45:mt,48:mt,49:mt,50:mt,51:mt,52:mt,53:mt,54:mt,55:mt,56:mt,57:mt,62:IC},dz={91:m9},pz={[-2]:hu,[-1]:hu,32:hu},hz={35:C9,42:wa,45:[A0,wa],60:I9,61:A0,95:wa,96:I0,126:I0},gz={38:AC,92:kC},mz={[-5]:gu,[-4]:gu,[-3]:gu,33:H9,38:AC,42:Gf,60:[XB,O9],91:X9,92:[x9,kC],93:Pp,95:Gf,96:i9},yz={null:[Gf,az]},bz={null:[42,95]},vz={null:[]},xz=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:bz,contentInitial:dz,disable:vz,document:fz,flow:hz,flowInitial:pz,insideSpan:yz,string:gz,text:mz},Symbol.toStringTag,{value:"Module"}));function wz(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const o={},i=[];let s=[],a=[];const l={attempt:I(S),check:I(E),consume:x,enter:v,exit:C,interrupt:I(E,{interrupt:!0})},c={code:null,containerState:{},defineSkip:h,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let u=t.tokenize.call(c,l);return t.resolveAll&&i.push(t),c;function f(R){return s=Lt(s,R),y(),s[s.length-1]!==null?[]:(P(t,0),c.events=ql(i,c.events,c),c.events)}function d(R,O){return _z(p(R),O)}function p(R){return Cz(s,R)}function g(){const{_bufferIndex:R,_index:O,line:L,column:A,offset:j}=r;return{_bufferIndex:R,_index:O,line:L,column:A,offset:j}}function h(R){o[R.line]=R.column,w()}function y(){let R;for(;r._index<s.length;){const O=s[r._index];if(typeof O=="string")for(R=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===R&&r._bufferIndex<O.length;)m(O.charCodeAt(r._bufferIndex));else m(O)}}function m(R){u=u(R)}function x(R){de(R)?(r.line++,r.column=1,r.offset+=R===-3?2:1,w()):R!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=R}function v(R,O){const L=O||{};return L.type=R,L.start=g(),c.events.push(["enter",L,c]),a.push(L),L}function C(R){const O=a.pop();return O.end=g(),c.events.push(["exit",O,c]),O}function S(R,O){P(R,O.from)}function E(R,O){O.restore()}function I(R,O){return L;function L(A,j,D){let z,V,F,_;return Array.isArray(A)?$(A):"tokenize"in A?$([A]):G(A);function G(W){return X;function X(U){const Q=U!==null&&W[U],ne=U!==null&&W.null,oe=[...Array.isArray(Q)?Q:Q?[Q]:[],...Array.isArray(ne)?ne:ne?[ne]:[]];return $(oe)(U)}}function $(W){return z=W,V=0,W.length===0?D:T(W[V])}function T(W){return X;function X(U){return _=M(),F=W,W.partial||(c.currentConstruct=W),W.name&&c.parser.constructs.disable.null.includes(W.name)?J():W.tokenize.call(O?Object.assign(Object.create(c),O):c,l,H,J)(U)}}function H(W){return R(F,_),j}function J(W){return _.restore(),++V<z.length?T(z[V]):D}}}function P(R,O){R.resolveAll&&!i.includes(R)&&i.push(R),R.resolve&&Nt(c.events,O,c.events.length-O,R.resolve(c.events.slice(O),c)),R.resolveTo&&(c.events=R.resolveTo(c.events,c))}function M(){const R=g(),O=c.previous,L=c.currentConstruct,A=c.events.length,j=Array.from(a);return{from:A,restore:D};function D(){r=R,c.previous=O,c.currentConstruct=L,c.events.length=A,a=j,w()}}function w(){r.line in o&&r.column<2&&(r.column=o[r.line],r.offset+=o[r.line]-1)}}function Cz(e,t){const n=t.start._index,r=t.start._bufferIndex,o=t.end._index,i=t.end._bufferIndex;let s;if(n===o)s=[e[n].slice(r,i)];else{if(s=e.slice(n,o),r>-1){const a=s[0];typeof a=="string"?s[0]=a.slice(r):s.shift()}i>0&&s.push(e[o].slice(0,i))}return s}function _z(e,t){let n=-1;const r=[];let o;for(;++n<e.length;){const i=e[n];let s;if(typeof i=="string")s=i;else switch(i){case-5:{s="\r";break}case-4:{s=`
|
|
698
|
+
`;break}case-3:{s=`\r
|
|
699
|
+
`;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&o)continue;s=" ";break}default:s=String.fromCharCode(i)}o=i===-2,r.push(s)}return r.join("")}function Sz(e){const r={constructs:SC([xz,...(e||{}).extensions||[]]),content:o(BB),defined:[],document:o(VB),flow:o(iz),lazy:{},string:o(lz),text:o(cz)};return r;function o(i){return s;function s(a){return wz(r,i,a)}}}function Ez(e){for(;!RC(e););return e}const R0=/[\0\t\n\r]/g;function Iz(){let e=1,t="",n=!0,r;return o;function o(i,s,a){const l=[];let c,u,f,d,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(s||void 0).decode(i)),f=0,t="",n&&(i.charCodeAt(0)===65279&&f++,n=void 0);f<i.length;){if(R0.lastIndex=f,c=R0.exec(i),d=c&&c.index!==void 0?c.index:i.length,p=i.charCodeAt(d),!c){t=i.slice(f);break}if(p===10&&f===d&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),f<d&&(l.push(i.slice(f,d)),e+=d-f),p){case 0:{l.push(65533),e++;break}case 9:{for(u=Math.ceil(e/4)*4,l.push(-2);e++<u;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const kz=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Az(e){return e.replace(kz,Rz)}function Rz(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),i=o===120||o===88;return EC(n.slice(i?2:1),i?16:10)}return Np(n)||e}const DC={}.hasOwnProperty;function Tz(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Nz(n)(Ez(Sz(n).document().write(Iz()(e,t,!0))))}function Nz(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(_t),autolinkProtocol:M,autolinkEmail:M,atxHeading:i(Se),blockQuote:i(ne),characterEscape:M,characterReference:M,codeFenced:i(oe),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:i(oe,s),codeText:i(Z,s),codeTextData:M,data:M,codeFlowValue:M,definition:i(ue),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:i(fe),hardBreakEscape:i(Xe),hardBreakTrailing:i(Xe),htmlFlow:i(rt,s),htmlFlowData:M,htmlText:i(rt,s),htmlTextData:M,image:i(Ct),label:s,link:i(_t),listItem:i(Cr),listItemValue:d,listOrdered:i(Ht,f),listUnordered:i(Ht),paragraph:i(ge),reference:T,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:i(Se),strong:i(_r),thematicBreak:i(Sr)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:Q,autolinkProtocol:U,blockQuote:l(),characterEscapeValue:w,characterReferenceMarkerHexadecimal:J,characterReferenceMarkerNumeric:J,characterReferenceValue:W,characterReference:X,codeFenced:l(y),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:w,codeIndented:l(m),codeText:l(j),codeTextData:w,data:w,definition:l(),definitionDestinationString:C,definitionLabelString:x,definitionTitleString:v,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(L),htmlFlowData:w,htmlText:l(A),htmlTextData:w,image:l(z),label:F,labelText:V,lineEnding:R,link:l(D),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:H,resourceDestinationString:_,resourceTitleString:G,resource:$,setextHeading:l(P),setextHeadingLineSequence:I,setextHeadingText:E,strong:l(),thematicBreak:l()}};FC(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(K){let re={type:"root",children:[]};const me={stack:[re],tokenStack:[],config:t,enter:a,exit:c,buffer:s,resume:u,data:n},ve=[];let Te=-1;for(;++Te<K.length;)if(K[Te][1].type==="listOrdered"||K[Te][1].type==="listUnordered")if(K[Te][0]==="enter")ve.push(Te);else{const St=ve.pop();Te=o(K,St,Te)}for(Te=-1;++Te<K.length;){const St=t[K[Te][0]];DC.call(St,K[Te][1].type)&&St[K[Te][1].type].call(Object.assign({sliceSerialize:K[Te][2].sliceSerialize},me),K[Te][1])}if(me.tokenStack.length>0){const St=me.tokenStack[me.tokenStack.length-1];(St[1]||T0).call(me,void 0,St[0])}for(re.position={start:tr(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:tr(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Te=-1;++Te<t.transforms.length;)re=t.transforms[Te](re)||re;return re}function o(K,re,me){let ve=re-1,Te=-1,St=!1,An,Wt,Er,Ir;for(;++ve<=me;){const ft=K[ve];switch(ft[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ft[0]==="enter"?Te++:Te--,Ir=void 0;break}case"lineEndingBlank":{ft[0]==="enter"&&(An&&!Ir&&!Te&&!Er&&(Er=ve),Ir=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ir=void 0}if(!Te&&ft[0]==="enter"&&ft[1].type==="listItemPrefix"||Te===-1&&ft[0]==="exit"&&(ft[1].type==="listUnordered"||ft[1].type==="listOrdered")){if(An){let qn=ve;for(Wt=void 0;qn--;){const Xt=K[qn];if(Xt[1].type==="lineEnding"||Xt[1].type==="lineEndingBlank"){if(Xt[0]==="exit")continue;Wt&&(K[Wt][1].type="lineEndingBlank",St=!0),Xt[1].type="lineEnding",Wt=qn}else if(!(Xt[1].type==="linePrefix"||Xt[1].type==="blockQuotePrefix"||Xt[1].type==="blockQuotePrefixWhitespace"||Xt[1].type==="blockQuoteMarker"||Xt[1].type==="listItemIndent"))break}Er&&(!Wt||Er<Wt)&&(An._spread=!0),An.end=Object.assign({},Wt?K[Wt][1].start:ft[1].end),K.splice(Wt||ve,0,["exit",An,ft[2]]),ve++,me++}if(ft[1].type==="listItemPrefix"){const qn={type:"listItem",_spread:!1,start:Object.assign({},ft[1].start),end:void 0};An=qn,K.splice(ve,0,["enter",qn,ft[2]]),ve++,me++,Er=void 0,Ir=!0}}}return K[re][1]._spread=St,me}function i(K,re){return me;function me(ve){a.call(this,K(ve),ve),re&&re.call(this,ve)}}function s(){this.stack.push({type:"fragment",children:[]})}function a(K,re,me){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([re,me||void 0]),K.position={start:tr(re.start),end:void 0}}function l(K){return re;function re(me){K&&K.call(this,me),c.call(this,me)}}function c(K,re){const me=this.stack.pop(),ve=this.tokenStack.pop();if(ve)ve[0].type!==K.type&&(re?re.call(this,K,ve[0]):(ve[1]||T0).call(this,K,ve[0]));else throw new Error("Cannot close `"+K.type+"` ("+Ei({start:K.start,end:K.end})+"): it’s not open");me.position.end=tr(K.end)}function u(){return Tp(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(K){if(this.data.expectingFirstListItemValue){const re=this.stack[this.stack.length-2];re.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function p(){const K=this.resume(),re=this.stack[this.stack.length-1];re.lang=K}function g(){const K=this.resume(),re=this.stack[this.stack.length-1];re.meta=K}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function m(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K.replace(/(\r?\n|\r)$/g,"")}function x(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Qt(this.sliceSerialize(K)).toLowerCase()}function v(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function C(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function S(K){const re=this.stack[this.stack.length-1];if(!re.depth){const me=this.sliceSerialize(K).length;re.depth=me}}function E(){this.data.setextHeadingSlurpLineEnding=!0}function I(K){const re=this.stack[this.stack.length-1];re.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function P(){this.data.setextHeadingSlurpLineEnding=void 0}function M(K){const me=this.stack[this.stack.length-1].children;let ve=me[me.length-1];(!ve||ve.type!=="text")&&(ve=ei(),ve.position={start:tr(K.start),end:void 0},me.push(ve)),this.stack.push(ve)}function w(K){const re=this.stack.pop();re.value+=this.sliceSerialize(K),re.position.end=tr(K.end)}function R(K){const re=this.stack[this.stack.length-1];if(this.data.atHardBreak){const me=re.children[re.children.length-1];me.position.end=tr(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(re.type)&&(M.call(this,K),w.call(this,K))}function O(){this.data.atHardBreak=!0}function L(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function A(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function j(){const K=this.resume(),re=this.stack[this.stack.length-1];re.value=K}function D(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const re=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=re,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function V(K){const re=this.sliceSerialize(K),me=this.stack[this.stack.length-2];me.label=Az(re),me.identifier=Qt(re).toLowerCase()}function F(){const K=this.stack[this.stack.length-1],re=this.resume(),me=this.stack[this.stack.length-1];if(this.data.inReference=!0,me.type==="link"){const ve=K.children;me.children=ve}else me.alt=re}function _(){const K=this.resume(),re=this.stack[this.stack.length-1];re.url=K}function G(){const K=this.resume(),re=this.stack[this.stack.length-1];re.title=K}function $(){this.data.inReference=void 0}function T(){this.data.referenceType="collapsed"}function H(K){const re=this.resume(),me=this.stack[this.stack.length-1];me.label=re,me.identifier=Qt(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function J(K){this.data.characterReferenceType=K.type}function W(K){const re=this.sliceSerialize(K),me=this.data.characterReferenceType;let ve;me?(ve=EC(re,me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ve=Np(re);const Te=this.stack[this.stack.length-1];Te.value+=ve}function X(K){const re=this.stack.pop();re.position.end=tr(K.end)}function U(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url=this.sliceSerialize(K)}function Q(K){w.call(this,K);const re=this.stack[this.stack.length-1];re.url="mailto:"+this.sliceSerialize(K)}function ne(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function Z(){return{type:"inlineCode",value:""}}function ue(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fe(){return{type:"emphasis",children:[]}}function Se(){return{type:"heading",depth:0,children:[]}}function Xe(){return{type:"break"}}function rt(){return{type:"html",value:""}}function Ct(){return{type:"image",title:null,url:"",alt:null}}function _t(){return{type:"link",title:null,url:"",children:[]}}function Ht(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function Cr(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function ge(){return{type:"paragraph",children:[]}}function _r(){return{type:"strong",children:[]}}function ei(){return{type:"text",value:""}}function Sr(){return{type:"thematicBreak"}}}function tr(e){return{line:e.line,column:e.column,offset:e.offset}}function FC(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?FC(e,r):Pz(e,r)}}function Pz(e,t){let n;for(n in t)if(DC.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function T0(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ei({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ei({start:t.start,end:t.end})+") is still open")}function Oz(e){const t=this;t.parser=n;function n(r){return Tz(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Mz(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Dz(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
700
|
+
`}]}function Fz(e,t){const n=t.value?t.value+`
|
|
701
|
+
`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function jz(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Lz(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bz(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=Jo(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let s,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=i+1,a+=1,e.footnoteCounts.set(r,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function zz(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Vz(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function jC(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const o=e.all(t),i=o[0];i&&i.type==="text"?i.value="["+i.value:o.unshift({type:"text",value:"["});const s=o[o.length-1];return s&&s.type==="text"?s.value+=r:o.push({type:"text",value:r}),o}function Gz(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jC(e,t);const o={src:Jo(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)}function $z(e,t){const n={src:Jo(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Hz(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Wz(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return jC(e,t);const o={href:Jo(r.url||"")};r.title!==null&&r.title!==void 0&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Xz(e,t){const n={href:Jo(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Yz(e,t,n){const r=e.all(t),o=n?Uz(n):LC(t),i={},s=[];if(typeof t.checked=="boolean"){const u=r[0];let f;u&&u.type==="element"&&u.tagName==="p"?f=u:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const u=r[a];(o||a!==0||u.type!=="element"||u.tagName!=="p")&&s.push({type:"text",value:`
|
|
702
|
+
`}),u.type==="element"&&u.tagName==="p"&&!o?s.push(...u.children):s.push(u)}const l=r[r.length-1];l&&(o||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
|
|
703
|
+
`});const c={type:"element",tagName:"li",properties:i,children:s};return e.patch(t,c),e.applyData(t,c)}function Uz(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=LC(n[r])}return t}function LC(e){const t=e.spread;return t??e.children.length>1}function Zz(e,t){const n={},r=e.all(t);let o=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++o<r.length;){const s=r[o];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const i={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,i),e.applyData(t,i)}function Jz(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qz(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Kz(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Qz(e,t){const n=e.all(t),r=n.shift(),o=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),o.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Ip(t.children[1]),l=yC(t.children[t.children.length-1]);a&&l&&(s.position={start:a,end:l}),o.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)}function eV(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,a=s?s.length:t.children.length;let l=-1;const c=[];for(;++l<a;){const f=t.children[l],d={},p=s?s[l]:void 0;p&&(d.align=p);let g={type:"element",tagName:i,properties:d,children:[]};f&&(g.children=e.all(f),e.patch(f,g),g=e.applyData(f,g)),c.push(g)}const u={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,u),e.applyData(t,u)}function tV(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const N0=9,P0=32;function nV(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(O0(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(O0(t.slice(o),o>0,!1)),i.join("")}function O0(e,t,n){let r=0,o=e.length;if(t){let i=e.codePointAt(r);for(;i===N0||i===P0;)r++,i=e.codePointAt(r)}if(n){let i=e.codePointAt(o-1);for(;i===N0||i===P0;)o--,i=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}function rV(e,t){const n={type:"text",value:nV(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function oV(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const iV={blockquote:Mz,break:Dz,code:Fz,delete:jz,emphasis:Lz,footnoteReference:Bz,heading:zz,html:Vz,imageReference:Gz,image:$z,inlineCode:Hz,linkReference:Wz,link:Xz,listItem:Yz,list:Zz,paragraph:Jz,root:qz,strong:Kz,table:Qz,tableCell:tV,tableRow:eV,text:rV,thematicBreak:oV,toml:Us,yaml:Us,definition:Us,footnoteDefinition:Us};function Us(){}const BC=-1,Kl=0,ki=1,Ka=2,Op=3,Mp=4,Dp=5,Fp=6,zC=7,VC=8,M0=typeof self=="object"?self:globalThis,sV=(e,t)=>{const n=(o,i)=>(e.set(i,o),o),r=o=>{if(e.has(o))return e.get(o);const[i,s]=t[o];switch(i){case Kl:case BC:return n(s,o);case ki:{const a=n([],o);for(const l of s)a.push(r(l));return a}case Ka:{const a=n({},o);for(const[l,c]of s)a[r(l)]=r(c);return a}case Op:return n(new Date(s),o);case Mp:{const{source:a,flags:l}=s;return n(new RegExp(a,l),o)}case Dp:{const a=n(new Map,o);for(const[l,c]of s)a.set(r(l),r(c));return a}case Fp:{const a=n(new Set,o);for(const l of s)a.add(r(l));return a}case zC:{const{name:a,message:l}=s;return n(new M0[a](l),o)}case VC:return n(BigInt(s),o);case"BigInt":return n(Object(BigInt(s)),o);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:a}=new Uint8Array(s);return n(new DataView(a),s)}}return n(new M0[i](s),o)};return r},D0=e=>sV(new Map,e)(0),io="",{toString:aV}={},{keys:lV}=Object,ui=e=>{const t=typeof e;if(t!=="object"||!e)return[Kl,t];const n=aV.call(e).slice(8,-1);switch(n){case"Array":return[ki,io];case"Object":return[Ka,io];case"Date":return[Op,io];case"RegExp":return[Mp,io];case"Map":return[Dp,io];case"Set":return[Fp,io];case"DataView":return[ki,n]}return n.includes("Array")?[ki,n]:n.includes("Error")?[zC,n]:[Ka,n]},Zs=([e,t])=>e===Kl&&(t==="function"||t==="symbol"),cV=(e,t,n,r)=>{const o=(s,a)=>{const l=r.push(s)-1;return n.set(a,l),l},i=s=>{if(n.has(s))return n.get(s);let[a,l]=ui(s);switch(a){case Kl:{let u=s;switch(l){case"bigint":a=VC,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);u=null;break;case"undefined":return o([BC],s)}return o([a,u],s)}case ki:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),o([l,[...d]],s)}const u=[],f=o([a,u],s);for(const d of s)u.push(i(d));return f}case Ka:{if(l)switch(l){case"BigInt":return o([l,s.toString()],s);case"Boolean":case"Number":case"String":return o([l,s.valueOf()],s)}if(t&&"toJSON"in s)return i(s.toJSON());const u=[],f=o([a,u],s);for(const d of lV(s))(e||!Zs(ui(s[d])))&&u.push([i(d),i(s[d])]);return f}case Op:return o([a,s.toISOString()],s);case Mp:{const{source:u,flags:f}=s;return o([a,{source:u,flags:f}],s)}case Dp:{const u=[],f=o([a,u],s);for(const[d,p]of s)(e||!(Zs(ui(d))||Zs(ui(p))))&&u.push([i(d),i(p)]);return f}case Fp:{const u=[],f=o([a,u],s);for(const d of s)(e||!Zs(ui(d)))&&u.push(i(d));return f}}const{message:c}=s;return o([a,{name:l,message:c}],s)};return i},F0=(e,{json:t,lossy:n}={})=>{const r=[];return cV(!(t||n),!!t,new Map,r)(e),r},Qa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?D0(F0(e,t)):structuredClone(e):(e,t)=>D0(F0(e,t));function uV(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function fV(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function dV(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||uV,r=e.options.footnoteBackLabel||fV,o=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const u=e.all(c),f=String(c.identifier).toUpperCase(),d=Jo(f.toLowerCase());let p=0;const g=[],h=e.footnoteCounts.get(f);for(;h!==void 0&&++p<=h;){g.length>0&&g.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,p);typeof x=="string"&&(x={type:"text",value:x}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,p),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const y=u[u.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const x=y.children[y.children.length-1];x&&x.type==="text"?x.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else u.push(...g);const m={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(u,!0)};e.patch(c,m),a.push(m)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Qa(s),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
704
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
705
|
+
`}]}}const Ql=function(e){if(e==null)return mV;if(typeof e=="function")return ec(e);if(typeof e=="object")return Array.isArray(e)?pV(e):hV(e);if(typeof e=="string")return gV(e);throw new Error("Expected function, string, or object as test")};function pV(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ql(e[n]);return ec(r);function r(...o){let i=-1;for(;++i<t.length;)if(t[i].apply(this,o))return!0;return!1}}function hV(e){const t=e;return ec(n);function n(r){const o=r;let i;for(i in e)if(o[i]!==t[i])return!1;return!0}}function gV(e){return ec(t);function t(n){return n&&n.type===e}}function ec(e){return t;function t(n,r,o){return!!(yV(n)&&e.call(this,n,typeof r=="number"?r:void 0,o||void 0))}}function mV(){return!0}function yV(e){return e!==null&&typeof e=="object"&&"type"in e}const GC=[],bV=!0,$f=!1,vV="skip";function $C(e,t,n,r){let o;typeof t=="function"&&typeof n!="function"?(r=n,n=t):o=t;const i=Ql(o),s=r?-1:1;a(e,void 0,[])();function a(l,c,u){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=GC,g,h,y;if((!t||i(l,c,u[u.length-1]||void 0))&&(p=xV(n(l,u)),p[0]===$f))return p;if("children"in l&&l.children){const m=l;if(m.children&&p[0]!==vV)for(h=(r?m.children.length:-1)+s,y=u.concat(m);h>-1&&h<m.children.length;){const x=m.children[h];if(g=a(x,h,y)(),g[0]===$f)return g;h=typeof g[1]=="number"?g[1]:h+s}}return p}}}function xV(e){return Array.isArray(e)?e:typeof e=="number"?[bV,e]:e==null?GC:[e]}function jp(e,t,n,r){let o,i,s;typeof t=="function"?(i=void 0,s=t,o=n):(i=t,s=n,o=r),$C(e,i,a,o);function a(l,c){const u=c[c.length-1],f=u?u.children.indexOf(l):void 0;return s(l,f,u)}}const Hf={}.hasOwnProperty,wV={};function CV(e,t){const n=t||wV,r=new Map,o=new Map,i=new Map,s={...iV,...n.handlers},a={all:c,applyData:SV,definitionById:r,footnoteById:o,footnoteCounts:i,footnoteOrder:[],handlers:s,one:l,options:n,patch:_V,wrap:IV};return jp(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const f=u.type==="definition"?r:o,d=String(u.identifier).toUpperCase();f.has(d)||f.set(d,u)}}),a;function l(u,f){const d=u.type,p=a.handlers[d];if(Hf.call(a.handlers,d)&&p)return p(a,u,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in u){const{children:h,...y}=u,m=Qa(y);return m.children=a.all(u),m}return Qa(u)}return(a.options.unknownHandler||EV)(a,u,f)}function c(u){const f=[];if("children"in u){const d=u.children;let p=-1;for(;++p<d.length;){const g=a.one(d[p],u);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=j0(g.value)),!Array.isArray(g)&&g.type==="element")){const h=g.children[0];h&&h.type==="text"&&(h.value=j0(h.value))}Array.isArray(g)?f.push(...g):f.push(g)}}}return f}}function _V(e,t){e.position&&(t.position=fB(e))}function SV(e,t){let n=t;if(e&&e.data){const r=e.data.hName,o=e.data.hChildren,i=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&i&&Object.assign(n.properties,Qa(i)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function EV(e,t){const n=t.data||{},r="value"in t&&!(Hf.call(n,"hProperties")||Hf.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function IV(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
706
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
707
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
708
|
+
`}),n}function j0(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function L0(e,t){const n=CV(e,t),r=n.one(e,void 0),o=dV(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:`
|
|
709
|
+
`},o),i}function kV(e,t){return e&&"run"in e?async function(n,r){const o=L0(n,{file:r,...t});await e.run(o,r)}:function(n,r){return L0(n,{file:r,...e||t})}}function B0(e){if(e)throw e}var mu,z0;function AV(){if(z0)return mu;z0=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},i=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var u=e.call(c,"constructor"),f=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!u&&!f)return!1;var d;for(d in c);return typeof d>"u"||e.call(c,d)},s=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},a=function(c,u){if(u==="__proto__")if(e.call(c,u)){if(r)return r(c,u).value}else return;return c[u]};return mu=function l(){var c,u,f,d,p,g,h=arguments[0],y=1,m=arguments.length,x=!1;for(typeof h=="boolean"&&(x=h,h=arguments[1]||{},y=2),(h==null||typeof h!="object"&&typeof h!="function")&&(h={});y<m;++y)if(c=arguments[y],c!=null)for(u in c)f=a(h,u),d=a(c,u),h!==d&&(x&&d&&(i(d)||(p=o(d)))?(p?(p=!1,g=f&&o(f)?f:[]):g=f&&i(f)?f:{},s(h,{name:u,newValue:l(x,g,d)})):typeof d<"u"&&s(h,{name:u,newValue:d}));return h},mu}var RV=AV();const yu=gl(RV);function Wf(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function TV(){const e=[],t={run:n,use:r};return t;function n(...o){let i=-1;const s=o.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);a(null,...o);function a(l,...c){const u=e[++i];let f=-1;if(l){s(l);return}for(;++f<o.length;)(c[f]===null||c[f]===void 0)&&(c[f]=o[f]);o=c,u?NV(u,a)(...c):s(null,...c)}}function r(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),t}}function NV(e,t){let n;return r;function r(...s){const a=e.length>s.length;let l;a&&s.push(o);try{l=e.apply(this,s)}catch(c){const u=c;if(a&&n)throw u;return o(u)}a||(l&&l.then&&typeof l.then=="function"?l.then(i,o):l instanceof Error?o(l):i(l))}function o(s,...a){n||(n=!0,t(s,...a))}function i(s){o(null,s)}}const un={basename:PV,dirname:OV,extname:MV,join:DV,sep:"/"};function PV(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');vs(e);let n=0,r=-1,o=e.length,i;if(t===void 0||t.length===0||t.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else r<0&&(i=!0,r=o+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(i){n=o+1;break}}else s<0&&(i=!0,s=o+1),a>-1&&(e.codePointAt(o)===t.codePointAt(a--)?a<0&&(r=o):(a=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function OV(e){if(vs(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function MV(e){vs(e);let t=e.length,n=-1,r=0,o=-1,i=0,s;for(;t--;){const a=e.codePointAt(t);if(a===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),a===46?o<0?o=t:i!==1&&(i=1):o>-1&&(i=-1)}return o<0||n<0||i===0||i===1&&o===n-1&&o===r+1?"":e.slice(o,n)}function DV(...e){let t=-1,n;for(;++t<e.length;)vs(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":FV(n)}function FV(e){vs(e);const t=e.codePointAt(0)===47;let n=jV(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function jV(e,t){let n="",r=0,o=-1,i=0,s=-1,a,l;for(;++s<=e.length;){if(s<e.length)a=e.codePointAt(s);else{if(a===47)break;a=47}if(a===47){if(!(o===s-1||i===1))if(o!==s-1&&i===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),o=s,i=0;continue}}else if(n.length>0){n="",r=0,o=s,i=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(o+1,s):n=e.slice(o+1,s),r=s-o-1;o=s,i=0}else a===46&&i>-1?i++:i=-1}return n}function vs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const LV={cwd:BV};function BV(){return"/"}function Xf(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function zV(e){if(typeof e=="string")e=new URL(e);else if(!Xf(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return VV(e)}function VV(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(t)}const bu=["history","path","basename","stem","extname","dirname"];class HC{constructor(t){let n;t?Xf(t)?n={path:t}:typeof t=="string"||GV(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":LV.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<bu.length;){const i=bu[r];i in n&&n[i]!==void 0&&n[i]!==null&&(this[i]=i==="history"?[...n[i]]:n[i])}let o;for(o in n)bu.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?un.basename(this.path):void 0}set basename(t){xu(t,"basename"),vu(t,"basename"),this.path=un.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?un.dirname(this.path):void 0}set dirname(t){V0(this.basename,"dirname"),this.path=un.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?un.extname(this.path):void 0}set extname(t){if(vu(t,"extname"),V0(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=un.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Xf(t)&&(t=zV(t)),xu(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?un.basename(this.path,this.extname):void 0}set stem(t){xu(t,"stem"),vu(t,"stem"),this.path=un.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const o=this.message(t,n,r);throw o.fatal=!0,o}info(t,n,r){const o=this.message(t,n,r);return o.fatal=void 0,o}message(t,n,r){const o=new ut(t,n,r);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function vu(e,t){if(e&&e.includes(un.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+un.sep+"`")}function xu(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function V0(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function GV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $V=function(e){const r=this.constructor.prototype,o=r[e],i=function(){return o.apply(i,arguments)};return Object.setPrototypeOf(i,r),i},HV={}.hasOwnProperty;class Lp extends $V{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=TV()}copy(){const t=new Lp;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(yu(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(_u("data",this.frozen),this.namespace[t]=n,this):HV.call(this.namespace,t)&&this.namespace[t]||void 0:t?(_u("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const o=n.call(t,...r);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Js(t),r=this.parser||this.Parser;return wu("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),wu("process",this.parser||this.Parser),Cu("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(i,s){const a=Js(t),l=r.parse(a);r.run(l,a,function(u,f,d){if(u||!f||!d)return c(u);const p=f,g=r.stringify(p,d);YV(g)?d.value=g:d.result=g,c(u,d)});function c(u,f){u||!f?s(u):i?i(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),wu("processSync",this.parser||this.Parser),Cu("processSync",this.compiler||this.Compiler),this.process(t,o),$0("processSync","process",n),r;function o(i,s){n=!0,B0(i),r=s}}run(t,n,r){G0(t),this.freeze();const o=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?i(void 0,r):new Promise(i);function i(s,a){const l=Js(n);o.run(t,l,c);function c(u,f,d){const p=f||t;u?a(u):s?s(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,o;return this.run(t,n,i),$0("runSync","run",r),o;function i(s,a){B0(s),o=a,r=!0}}stringify(t,n){this.freeze();const r=Js(n),o=this.compiler||this.Compiler;return Cu("stringify",o),G0(t),o(t,r)}use(t,...n){const r=this.attachers,o=this.namespace;if(_u("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function i(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[u,...f]=c;l(u,f)}else s(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function s(c){if(!("plugins"in c)&&!("settings"in c))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");a(c.plugins),c.settings&&(o.settings=yu(!0,o.settings,c.settings))}function a(c){let u=-1;if(c!=null)if(Array.isArray(c))for(;++u<c.length;){const f=c[u];i(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,u){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===c){d=f;break}if(d===-1)r.push([c,...u]);else if(u.length>0){let[p,...g]=u;const h=r[d][1];Wf(h)&&Wf(p)&&(p=yu(!0,h,p)),r[d]=[c,p,...g]}}}}const WV=new Lp().freeze();function wu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Cu(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function _u(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function G0(e){if(!Wf(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function $0(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Js(e){return XV(e)?e:new HC(e)}function XV(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function YV(e){return typeof e=="string"||UV(e)}function UV(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ZV="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",H0=[],W0={allowDangerousHtml:!0},JV=/^(https?|ircs?|mailto|xmpp)$/i,qV=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function KV(e){const t=QV(e),n=eG(e);return tG(t.runSync(t.parse(n),n),e)}function QV(e){const t=e.rehypePlugins||H0,n=e.remarkPlugins||H0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...W0}:W0;return WV().use(Oz).use(n).use(kV,r).use(t)}function eG(e){const t=e.children||"",n=new HC;return typeof t=="string"&&(n.value=t),n}function tG(e,t){const n=t.allowedElements,r=t.allowElement,o=t.components,i=t.disallowedElements,s=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||nG;for(const u of qV)Object.hasOwn(t,u.from)&&(""+u.from+(u.to?"use `"+u.to+"` instead":"remove it")+ZV+u.id,void 0);return jp(e,c),mB(e,{Fragment:b.Fragment,components:o,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function c(u,f,d){if(u.type==="raw"&&d&&typeof f=="number")return s?d.children.splice(f,1):d.children[f]={type:"text",value:u.value},f;if(u.type==="element"){let p;for(p in pu)if(Object.hasOwn(pu,p)&&Object.hasOwn(u.properties,p)){const g=u.properties[p],h=pu[p];(h===null||h.includes(u.tagName))&&(u.properties[p]=l(String(g||""),p,u))}}if(u.type==="element"){let p=n?!n.includes(u.tagName):i?i.includes(u.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(u,f,d)),p&&d&&typeof f=="number")return a&&u.children?d.children.splice(f,1,...u.children):d.children.splice(f,1),f}}}function nG(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t===-1||o!==-1&&t>o||n!==-1&&t>n||r!==-1&&t>r||JV.test(e.slice(0,t))?e:""}function X0(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,o=n.indexOf(t);for(;o!==-1;)r++,o=n.indexOf(t,o+t.length);return r}function rG(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function oG(e,t,n){const o=Ql((n||{}).ignore||[]),i=iG(t);let s=-1;for(;++s<i.length;)$C(e,"text",a);function a(c,u){let f=-1,d;for(;++f<u.length;){const p=u[f],g=d?d.children:void 0;if(o(p,g?g.indexOf(p):void 0,d))return;d=p}if(d)return l(c,u)}function l(c,u){const f=u[u.length-1],d=i[s][0],p=i[s][1];let g=0;const y=f.children.indexOf(c);let m=!1,x=[];d.lastIndex=0;let v=d.exec(c.value);for(;v;){const C=v.index,S={index:v.index,input:v.input,stack:[...u,c]};let E=p(...v,S);if(typeof E=="string"&&(E=E.length>0?{type:"text",value:E}:void 0),E===!1?d.lastIndex=C+1:(g!==C&&x.push({type:"text",value:c.value.slice(g,C)}),Array.isArray(E)?x.push(...E):E&&x.push(E),g=C+v[0].length,m=!0),!d.global)break;v=d.exec(c.value)}return m?(g<c.value.length&&x.push({type:"text",value:c.value.slice(g)}),f.children.splice(y,1,...x)):x=[c],y+x.length}}function iG(e){const t=[];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 r=-1;for(;++r<n.length;){const o=n[r];t.push([sG(o[0]),aG(o[1])])}return t}function sG(e){return typeof e=="string"?new RegExp(rG(e),"g"):e}function aG(e){return typeof e=="function"?e:function(){return e}}const Su="phrasing",Eu=["autolink","link","image","label"];function lG(){return{transforms:[gG],enter:{literalAutolink:uG,literalAutolinkEmail:Iu,literalAutolinkHttp:Iu,literalAutolinkWww:Iu},exit:{literalAutolink:hG,literalAutolinkEmail:pG,literalAutolinkHttp:fG,literalAutolinkWww:dG}}}function cG(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Eu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Su,notInConstruct:Eu},{character:":",before:"[ps]",after:"\\/",inConstruct:Su,notInConstruct:Eu}]}}function uG(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Iu(e){this.config.enter.autolinkProtocol.call(this,e)}function fG(e){this.config.exit.autolinkProtocol.call(this,e)}function dG(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function pG(e){this.config.exit.autolinkEmail.call(this,e)}function hG(e){this.exit(e)}function gG(e){oG(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,mG],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),yG]],{ignore:["link","linkReference"]})}function mG(e,t,n,r,o){let i="";if(!WC(o)||(/^w/i.test(t)&&(n=t+n,t="",i="http://"),!bG(n)))return!1;const s=vG(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:i+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function yG(e,t,n,r){return!WC(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bG(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function vG(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const o=X0(e,"(");let i=X0(e,")");for(;r!==-1&&o>i;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),i++;return[e,n]}function WC(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Yr(n)||Jl(n))&&(!t||n!==47)}XC.peek=AG;function xG(){this.buffer()}function wG(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function CG(){this.buffer()}function _G(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function SG(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function EG(e){this.exit(e)}function IG(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Qt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function kG(e){this.exit(e)}function AG(){return"["}function XC(e,t,n,r){const o=n.createTracker(r);let i=o.move("[^");const s=n.enter("footnoteReference"),a=n.enter("reference");return i+=o.move(n.safe(n.associationId(e),{after:"]",before:i})),a(),s(),i+=o.move("]"),i}function RG(){return{enter:{gfmFootnoteCallString:xG,gfmFootnoteCall:wG,gfmFootnoteDefinitionLabelString:CG,gfmFootnoteDefinition:_G},exit:{gfmFootnoteCallString:SG,gfmFootnoteCall:EG,gfmFootnoteDefinitionLabelString:IG,gfmFootnoteDefinition:kG}}}function TG(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:XC},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,o,i,s){const a=i.createTracker(s);let l=a.move("[^");const c=i.enter("footnoteDefinition"),u=i.enter("label");return l+=a.move(i.safe(i.associationId(r),{before:l,after:"]"})),u(),l+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),l+=a.move((t?`
|
|
710
|
+
`:" ")+i.indentLines(i.containerFlow(r,a.current()),t?YC:NG))),c(),l}}function NG(e,t,n){return t===0?e:YC(e,t,n)}function YC(e,t,n){return(n?"":" ")+e}const PG=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];UC.peek=jG;function OG(){return{canContainEols:["delete"],enter:{strikethrough:DG},exit:{strikethrough:FG}}}function MG(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:PG}],handlers:{delete:UC}}}function DG(e){this.enter({type:"delete",children:[]},e)}function FG(e){this.exit(e)}function UC(e,t,n,r){const o=n.createTracker(r),i=n.enter("strikethrough");let s=o.move("~~");return s+=n.containerPhrasing(e,{...o.current(),before:s,after:"~"}),s+=o.move("~~"),i(),s}function jG(){return"~"}function LG(e){return e.length}function BG(e,t){const n=t||{},r=(n.align||[]).concat(),o=n.stringLength||LG,i=[],s=[],a=[],l=[];let c=0,u=-1;for(;++u<e.length;){const h=[],y=[];let m=-1;for(e[u].length>c&&(c=e[u].length);++m<e[u].length;){const x=zG(e[u][m]);if(n.alignDelimiters!==!1){const v=o(x);y[m]=v,(l[m]===void 0||v>l[m])&&(l[m]=v)}h.push(x)}s[u]=h,a[u]=y}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<c;)i[f]=Y0(r[f]);else{const h=Y0(r);for(;++f<c;)i[f]=h}f=-1;const d=[],p=[];for(;++f<c;){const h=i[f];let y="",m="";h===99?(y=":",m=":"):h===108?y=":":h===114&&(m=":");let x=n.alignDelimiters===!1?1:Math.max(1,l[f]-y.length-m.length);const v=y+"-".repeat(x)+m;n.alignDelimiters!==!1&&(x=y.length+x+m.length,x>l[f]&&(l[f]=x),p[f]=x),d[f]=v}s.splice(1,0,d),a.splice(1,0,p),u=-1;const g=[];for(;++u<s.length;){const h=s[u],y=a[u];f=-1;const m=[];for(;++f<c;){const x=h[f]||"";let v="",C="";if(n.alignDelimiters!==!1){const S=l[f]-(y[f]||0),E=i[f];E===114?v=" ".repeat(S):E===99?S%2?(v=" ".repeat(S/2+.5),C=" ".repeat(S/2-.5)):(v=" ".repeat(S/2),C=v):C=" ".repeat(S)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&x==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(v),m.push(x),n.alignDelimiters!==!1&&m.push(C),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==c-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
711
|
+
`)}function zG(e){return e==null?"":String(e)}function Y0(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function VG(e,t,n,r){const o=n.enter("blockquote"),i=n.createTracker(r);i.move("> "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),GG);return o(),s}function GG(e,t,n){return">"+(n?"":" ")+e}function $G(e,t){return U0(e,t.inConstruct,!0)&&!U0(e,t.notInConstruct,!1)}function U0(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Z0(e,t,n,r){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
|
|
712
|
+
`&&$G(n.stack,n.unsafe[o]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
713
|
+
`}function HG(e,t){const n=String(e);let r=n.indexOf(t),o=r,i=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===o?++i>s&&(s=i):i=1,o=r+t.length,r=n.indexOf(t,o);return s}function WG(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function XG(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function YG(e,t,n,r){const o=XG(n),i=e.value||"",s=o==="`"?"GraveAccent":"Tilde";if(WG(e,n)){const f=n.enter("codeIndented"),d=n.indentLines(i,UG);return f(),d}const a=n.createTracker(r),l=o.repeat(Math.max(HG(i,o)+1,3)),c=n.enter("codeFenced");let u=a.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);u+=a.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);u+=a.move(" "),u+=a.move(n.safe(e.meta,{before:u,after:`
|
|
714
|
+
`,encode:["`"],...a.current()})),f()}return u+=a.move(`
|
|
715
|
+
`),i&&(u+=a.move(i+`
|
|
716
|
+
`)),u+=a.move(l),c(),u}function UG(e,t,n){return(n?"":" ")+e}function Bp(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ZG(e,t,n,r){const o=Bp(n),i=o==='"'?"Quote":"Apostrophe",s=n.enter("definition");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("[");return c+=l.move(n.safe(n.associationId(e),{before:c,after:"]",...l.current()})),c+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":`
|
|
717
|
+
`,...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),s(),c}function JG(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Yi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function el(e,t,n){const r=Lo(e),o=Lo(t);return r===void 0?o===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ZC.peek=qG;function ZC(e,t,n,r){const o=JG(n),i=n.enter("emphasis"),s=n.createTracker(r),a=s.move(o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const c=l.charCodeAt(0),u=el(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=Yi(c)+l.slice(1));const f=l.charCodeAt(l.length-1),d=el(r.after.charCodeAt(0),f,o);d.inside&&(l=l.slice(0,-1)+Yi(f));const p=s.move(o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function qG(e,t,n){return n.options.emphasis||"*"}function KG(e,t){let n=!1;return jp(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$f}),!!((!e.depth||e.depth<3)&&Tp(e)&&(t.options.setext||n))}function QG(e,t,n,r){const o=Math.max(Math.min(6,e.depth||1),1),i=n.createTracker(r);if(KG(e,n)){const u=n.enter("headingSetext"),f=n.enter("phrasing"),d=n.containerPhrasing(e,{...i.current(),before:`
|
|
718
|
+
`,after:`
|
|
719
|
+
`});return f(),u(),d+`
|
|
720
|
+
`+(o===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
|
|
721
|
+
`))+1))}const s="#".repeat(o),a=n.enter("headingAtx"),l=n.enter("phrasing");i.move(s+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
|
|
722
|
+
`,...i.current()});return/^[\t ]/.test(c)&&(c=Yi(c.charCodeAt(0))+c.slice(1)),c=c?s+" "+c:s,n.options.closeAtx&&(c+=" "+s),l(),a(),c}JC.peek=e6;function JC(e){return e.value||""}function e6(){return"<"}qC.peek=t6;function qC(e,t,n,r){const o=Bp(n),i=o==='"'?"Quote":"Apostrophe",s=n.enter("image");let a=n.enter("label");const l=n.createTracker(r);let c=l.move("![");return c+=l.move(n.safe(e.alt,{before:c,after:"]",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${i}`),c+=l.move(" "+o),c+=l.move(n.safe(e.title,{before:c,after:o,...l.current()})),c+=l.move(o),a()),c+=l.move(")"),s(),c}function t6(){return"!"}KC.peek=n6;function KC(e,t,n,r){const o=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("![");const c=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,i(),o==="full"||!c||c!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function n6(){return"!"}QC.peek=r6;function QC(e,t,n){let r=e.value||"",o="`",i=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++i<n.unsafe.length;){const s=n.unsafe[i],a=n.compilePattern(s);let l;if(s.atBreak)for(;l=a.exec(r);){let c=l.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(l.index+1)}}return o+r+o}function r6(){return"`"}function e_(e,t){const n=Tp(e);return!!(!t.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))}t_.peek=o6;function t_(e,t,n,r){const o=Bp(n),i=o==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let a,l;if(e_(e,n)){const u=n.stack;n.stack=[],a=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),a(),n.stack=u,f}a=n.enter("link"),l=n.enter("label");let c=s.move("[");return c+=s.move(n.containerPhrasing(e,{before:c,after:"](",...s.current()})),c+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=s.move("<"),c+=s.move(n.safe(e.url,{before:c,after:">",...s.current()})),c+=s.move(">")):(l=n.enter("destinationRaw"),c+=s.move(n.safe(e.url,{before:c,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${i}`),c+=s.move(" "+o),c+=s.move(n.safe(e.title,{before:c,after:o,...s.current()})),c+=s.move(o),l()),c+=s.move(")"),a(),c}function o6(e,t,n){return e_(e,n)?"<":"["}n_.peek=i6;function n_(e,t,n,r){const o=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const a=n.createTracker(r);let l=a.move("[");const c=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(c+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return s(),n.stack=u,i(),o==="full"||!c||c!==f?l+=a.move(f+"]"):o==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function i6(){return"["}function zp(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function s6(e){const t=zp(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function a6(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function r_(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function l6(e,t,n,r){const o=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?a6(n):zp(n);const a=e.ordered?s==="."?")":".":s6(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.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&&(l=!0),r_(n)===s&&u){let f=-1;for(;++f<e.children.length;){const d=e.children[f];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=a),n.bulletCurrent=s;const c=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=i,o(),c}function c6(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function u6(e,t,n,r){const o=c6(n);let i=n.bulletCurrent||zp(n);t&&t.type==="list"&&t.ordered&&(i=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+i);let s=i.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const a=n.createTracker(r);a.move(i+" ".repeat(s-i.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),u);return l(),c;function u(f,d,p){return d?(p?"":" ".repeat(s))+f:(p?i:i+" ".repeat(s-i.length))+f}}function f6(e,t,n,r){const o=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,r);return i(),o(),s}const d6=Ql(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function p6(e,t,n,r){return(e.children.some(function(s){return d6(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function h6(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}o_.peek=g6;function o_(e,t,n,r){const o=h6(n),i=n.enter("strong"),s=n.createTracker(r),a=s.move(o+o);let l=s.move(n.containerPhrasing(e,{after:o,before:a,...s.current()}));const c=l.charCodeAt(0),u=el(r.before.charCodeAt(r.before.length-1),c,o);u.inside&&(l=Yi(c)+l.slice(1));const f=l.charCodeAt(l.length-1),d=el(r.after.charCodeAt(0),f,o);d.inside&&(l=l.slice(0,-1)+Yi(f));const p=s.move(o+o);return i(),n.attentionEncodeSurroundingInfo={after:d.outside,before:u.outside},a+l+p}function g6(e,t,n){return n.options.strong||"*"}function m6(e,t,n,r){return n.safe(e.value,r)}function y6(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function b6(e,t,n){const r=(r_(n)+(n.options.ruleSpaces?" ":"")).repeat(y6(n));return n.options.ruleSpaces?r.slice(0,-1):r}const i_={blockquote:VG,break:Z0,code:YG,definition:ZG,emphasis:ZC,hardBreak:Z0,heading:QG,html:JC,image:qC,imageReference:KC,inlineCode:QC,link:t_,linkReference:n_,list:l6,listItem:u6,paragraph:f6,root:p6,strong:o_,text:m6,thematicBreak:b6};function v6(){return{enter:{table:x6,tableData:J0,tableHeader:J0,tableRow:C6},exit:{codeText:_6,table:w6,tableData:ku,tableHeader:ku,tableRow:ku}}}function x6(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function w6(e){this.exit(e),this.data.inTable=void 0}function C6(e){this.enter({type:"tableRow",children:[]},e)}function ku(e){this.exit(e)}function J0(e){this.enter({type:"tableCell",children:[]},e)}function _6(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,S6));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function S6(e,t){return t==="|"?t:e}function E6(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,o=t.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
723
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:s,tableCell:l,tableRow:a}};function s(p,g,h,y){return c(u(p,h,y),p.align)}function a(p,g,h,y){const m=f(p,h,y),x=c([m]);return x.slice(0,x.indexOf(`
|
|
724
|
+
`))}function l(p,g,h,y){const m=h.enter("tableCell"),x=h.enter("phrasing"),v=h.containerPhrasing(p,{...y,before:i,after:i});return x(),m(),v}function c(p,g){return BG(p,{align:g,alignDelimiters:r,padding:n,stringLength:o})}function u(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("table");for(;++m<y.length;)x[m]=f(y[m],g,h);return v(),x}function f(p,g,h){const y=p.children;let m=-1;const x=[],v=g.enter("tableRow");for(;++m<y.length;)x[m]=l(y[m],p,g,h);return v(),x}function d(p,g,h){let y=i_.inlineCode(p,g,h);return h.stack.includes("tableCell")&&(y=y.replace(/\|/g,"\\$&")),y}}function I6(){return{exit:{taskListCheckValueChecked:q0,taskListCheckValueUnchecked:q0,paragraph:A6}}}function k6(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:R6}}}function q0(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function A6(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const o=t.children;let i=-1,s;for(;++i<o.length;){const a=o[i];if(a.type==="paragraph"){s=a;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function R6(e,t,n,r){const o=e.children[0],i=typeof e.checked=="boolean"&&o&&o.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);i&&a.move(s);let l=i_.listItem(e,t,n,{...r,...a.current()});return i&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),l;function c(u){return u+s}}function T6(){return[lG(),RG(),OG(),v6(),I6()]}function N6(e){return{extensions:[cG(),TG(e),MG(),E6(e),k6()]}}const P6={tokenize:L6,partial:!0},s_={tokenize:B6,partial:!0},a_={tokenize:z6,partial:!0},l_={tokenize:V6,partial:!0},O6={tokenize:G6,partial:!0},c_={name:"wwwAutolink",tokenize:F6,previous:f_},u_={name:"protocolAutolink",tokenize:j6,previous:d_},Un={name:"emailAutolink",tokenize:D6,previous:p_},Sn={};function M6(){return{text:Sn}}let kr=48;for(;kr<123;)Sn[kr]=Un,kr++,kr===58?kr=65:kr===91&&(kr=97);Sn[43]=Un;Sn[45]=Un;Sn[46]=Un;Sn[95]=Un;Sn[72]=[Un,u_];Sn[104]=[Un,u_];Sn[87]=[Un,c_];Sn[119]=[Un,c_];function D6(e,t,n){const r=this;let o,i;return s;function s(f){return!Yf(f)||!p_.call(r,r.previous)||Vp(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return Yf(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(O6,u,c)(f):f===45||f===95||at(f)?(i=!0,e.consume(f),l):u(f)}function c(f){return e.consume(f),o=!0,l}function u(f){return i&&o&&pt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function F6(e,t,n){const r=this;return o;function o(s){return s!==87&&s!==119||!f_.call(r,r.previous)||Vp(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(P6,e.attempt(s_,e.attempt(a_,i),n),n)(s))}function i(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function j6(e,t,n){const r=this;let o="",i=!1;return s;function s(f){return(f===72||f===104)&&d_.call(r,r.previous)&&!Vp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(pt(f)&&o.length<5)return o+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const d=o.toLowerCase();if(d==="http"||d==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),i?c:(i=!0,l)):n(f)}function c(f){return f===null||qa(f)||De(f)||Yr(f)||Jl(f)?n(f):e.attempt(s_,e.attempt(a_,u),n)(f)}function u(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function L6(e,t,n){let r=0;return o;function o(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),o):s===46&&r===3?(e.consume(s),i):n(s)}function i(s){return s===null?n(s):t(s)}}function B6(e,t,n){let r,o,i;return s;function s(c){return c===46||c===95?e.check(l_,l,a)(c):c===null||De(c)||Yr(c)||c!==45&&Jl(c)?l(c):(i=!0,e.consume(c),s)}function a(c){return c===95?r=!0:(o=r,r=void 0),e.consume(c),s}function l(c){return o||r||!i?n(c):t(c)}}function z6(e,t){let n=0,r=0;return o;function o(s){return s===40?(n++,e.consume(s),o):s===41&&r<n?i(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(l_,t,i)(s):s===null||De(s)||Yr(s)?t(s):(e.consume(s),o)}function i(s){return s===41&&r++,e.consume(s),o}}function V6(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),i):a===93?(e.consume(a),o):a===60||a===null||De(a)||Yr(a)?t(a):n(a)}function o(a){return a===null||a===40||a===91||De(a)||Yr(a)?t(a):r(a)}function i(a){return pt(a)?s(a):n(a)}function s(a){return a===59?(e.consume(a),r):pt(a)?(e.consume(a),s):n(a)}}function G6(e,t,n){return r;function r(i){return e.consume(i),o}function o(i){return at(i)?n(i):t(i)}}function f_(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||De(e)}function d_(e){return!pt(e)}function p_(e){return!(e===47||Yf(e))}function Yf(e){return e===43||e===45||e===46||e===95||at(e)}function Vp(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const $6={tokenize:q6,partial:!0};function H6(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:U6,continuation:{tokenize:Z6},exit:J6}},text:{91:{name:"gfmFootnoteCall",tokenize:Y6},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:W6,resolveTo:X6}}}}function W6(e,t,n){const r=this;let o=r.events.length;const i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;o--;){const l=r.events[o][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!s||!s._balanced)return n(l);const c=Qt(r.sliceSerialize({start:s.end,end:r.now()}));return c.codePointAt(0)!==94||!i.includes(c.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function X6(e,t){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 r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",i,t],["enter",s,t],["exit",s,t],["exit",i,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Y6(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i=0,s;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(f){if(i>999||f===93&&!s||f===null||f===91||De(f))return n(f);if(f===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return o.includes(Qt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return De(f)||(s=!0),i++,e.consume(f),f===92?u:c}function u(f){return f===91||f===92||f===93?(e.consume(f),i++,c):c(f)}}function U6(e,t,n){const r=this,o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i,s=0,a;return l;function l(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(g)}function u(g){if(s>999||g===93&&!a||g===null||g===91||De(g))return n(g);if(g===93){e.exit("chunkString");const h=e.exit("gfmFootnoteDefinitionLabelString");return i=Qt(r.sliceSerialize(h)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return De(g)||(a=!0),s++,e.consume(g),g===92?f:u}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,u):u(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),o.includes(i)||o.push(i),_e(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function Z6(e,t,n){return e.check(bs,t,e.attempt($6,t,n))}function J6(e){e.exit("gfmFootnoteDefinition")}function q6(e,t,n){const r=this;return _e(e,o,"gfmFootnoteDefinitionIndent",5);function o(i){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(i):n(i)}}function K6(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:i,resolveAll:o};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function o(s,a){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let c=l;for(;c--;)if(s[c][0]==="exit"&&s[c][1].type==="strikethroughSequenceTemporary"&&s[c][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[c][1].end.offset-s[c][1].start.offset){s[l][1].type="strikethroughSequence",s[c][1].type="strikethroughSequence";const u={type:"strikethrough",start:Object.assign({},s[c][1].start),end:Object.assign({},s[l][1].end)},f={type:"strikethroughText",start:Object.assign({},s[c][1].end),end:Object.assign({},s[l][1].start)},d=[["enter",u,a],["enter",s[c][1],a],["exit",s[c][1],a],["enter",f,a]],p=a.parser.constructs.insideSpan.null;p&&Nt(d,d.length,0,ql(p,s.slice(c+1,l),a)),Nt(d,d.length,0,[["exit",f,a],["enter",s[l][1],a],["exit",s[l][1],a],["exit",u,a]]),Nt(s,c-1,l-c+3,d),l=c+d.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function i(s,a,l){const c=this.previous,u=this.events;let f=0;return d;function d(g){return c===126&&u[u.length-1][1].type!=="characterEscape"?l(g):(s.enter("strikethroughSequenceTemporary"),p(g))}function p(g){const h=Lo(c);if(g===126)return f>1?l(g):(s.consume(g),f++,p);if(f<2&&!n)return l(g);const y=s.exit("strikethroughSequenceTemporary"),m=Lo(g);return y._open=!m||m===2&&!!h,y._close=!h||h===2&&!!m,a(g)}}}class Q6{constructor(){this.map=[]}add(t,n,r){e$(this,t,n,r)}consume(t){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let o=r.pop();for(;o;){for(const i of o)t.push(i);o=r.pop()}this.map.length=0}}function e$(e,t,n,r){let o=0;if(!(n===0&&r.length===0)){for(;o<e.map.length;){if(e.map[o][0]===t){e.map[o][1]+=n,e.map[o][2].push(...r);return}o+=1}e.map.push([t,n,r])}}function t$(e,t){let n=!1;const r=[];for(;t<e.length;){const o=e[t];if(n){if(o[0]==="enter")o[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const i=r.length-1;r[i]=r[i]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function n$(){return{flow:{null:{name:"table",tokenize:r$,resolveAll:o$}}}}function r$(e,t,n){const r=this;let o=0,i=0,s;return a;function a(w){let R=r.events.length-1;for(;R>-1;){const A=r.events[R][1].type;if(A==="lineEnding"||A==="linePrefix")R--;else break}const O=R>-1?r.events[R][1].type:null,L=O==="tableHead"||O==="tableRow"?E:l;return L===E&&r.parser.lazy[r.now().line]?n(w):L(w)}function l(w){return e.enter("tableHead"),e.enter("tableRow"),c(w)}function c(w){return w===124||(s=!0,i+=1),u(w)}function u(w){return w===null?n(w):de(w)?i>1?(i=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),p):n(w):we(w)?_e(e,u,"whitespace")(w):(i+=1,s&&(s=!1,o+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||De(w)?(e.exit("data"),u(w)):(e.consume(w),w===92?d:f)}function d(w){return w===92||w===124?(e.consume(w),f):f(w)}function p(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),s=!1,we(w)?_e(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):g(w))}function g(w){return w===45||w===58?y(w):w===124?(s=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),h):S(w)}function h(w){return we(w)?_e(e,y,"whitespace")(w):y(w)}function y(w){return w===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),m):w===45?(i+=1,m(w)):w===null||de(w)?C(w):S(w)}function m(w){return w===45?(e.enter("tableDelimiterFiller"),x(w)):S(w)}function x(w){return w===45?(e.consume(w),x):w===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(w))}function v(w){return we(w)?_e(e,C,"whitespace")(w):C(w)}function C(w){return w===124?g(w):w===null||de(w)?!s||o!==i?S(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):S(w)}function S(w){return n(w)}function E(w){return e.enter("tableRow"),I(w)}function I(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),I):w===null||de(w)?(e.exit("tableRow"),t(w)):we(w)?_e(e,I,"whitespace")(w):(e.enter("data"),P(w))}function P(w){return w===null||w===124||De(w)?(e.exit("data"),I(w)):(e.consume(w),w===92?M:P)}function M(w){return w===92||w===124?(e.consume(w),P):P(w)}}function o$(e,t){let n=-1,r=!0,o=0,i=[0,0,0,0],s=[0,0,0,0],a=!1,l=0,c,u,f;const d=new Q6;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(a=!1,l!==0&&(K0(d,t,l,c,u),u=void 0,l=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,f=void 0,i=[0,0,0,0],s=[0,n+1,0,0],a&&(a=!1,u={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",u,t]])),o=g.type==="tableDelimiterRow"?2:u?3:1):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(i[1]!==0&&(s[0]=s[1],f=qs(d,t,i,o,void 0,f),i=[0,0,0,0]),s[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(i[1]!==0&&(s[0]=s[1],f=qs(d,t,i,o,void 0,f)),i=s,s=[i[1],n,0,0])):g.type==="tableHead"?(a=!0,l=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(l=n,i[1]!==0?(s[0]=s[1],f=qs(d,t,i,o,n,f)):s[1]!==0&&(f=qs(d,t,s,o,n,f)),o=0):o&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&K0(d,t,l,c,u),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=t$(t.events,n))}return e}function qs(e,t,n,r,o,i){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(i.end=Object.assign({},po(t.events,n[0])),e.add(n[0],0,[["exit",i,t]]));const l=po(t.events,n[1]);if(i={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",i,t]]),n[2]!==0){const c=po(t.events,n[2]),u=po(t.events,n[3]),f={type:a,start:Object.assign({},c),end:Object.assign({},u)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,h=n[3]-n[2]-1;e.add(g,h,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return o!==void 0&&(i.end=Object.assign({},po(t.events,o)),e.add(o,0,[["exit",i,t]]),i=void 0),i}function K0(e,t,n,r,o){const i=[],s=po(t.events,n);o&&(o.end=Object.assign({},s),i.push(["exit",o,t])),r.end=Object.assign({},s),i.push(["exit",r,t]),e.add(n+1,0,i)}function po(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const i$={name:"tasklistCheck",tokenize:a$};function s$(){return{text:{91:i$}}}function a$(e,t,n){const r=this;return o;function o(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),i)}function i(l){return De(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return de(l)?t(l):we(l)?e.check({tokenize:l$},t,n)(l):n(l)}}function l$(e,t,n){return _e(e,r,"whitespace");function r(o){return o===null?n(o):t(o)}}function c$(e){return SC([M6(),H6(),K6(e),n$(),s$()])}const u$={};function f$(e){const t=this,n=e||u$,r=t.data(),o=r.micromarkExtensions||(r.micromarkExtensions=[]),i=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);o.push(c$(n)),i.push(T6()),s.push(N6(n))}const h_=({item:e})=>{const t=N.useContext(xe),n=()=>{var o;(o=t.worker)==null||o.add_node(e.node_id)},r=o=>{o.detail===2&&n()};return b.jsx("div",{className:"libnodeentry",onClick:r,title:e.description,children:e.node_name||e.node_id})},g_=(e,t)=>{var o,i;const n=((o=e.nodes)==null?void 0:o.some(s=>s.node_id.toLowerCase().includes(t.toLowerCase())))??!1,r=((i=e.subshelves)==null?void 0:i.some(s=>g_(s,t)))??!1;return n||r},Gp=({item:e,filter:t,parentkey:n})=>{var l;const[r,o]=N.useState(!1),i=()=>o(!r),s=(l=e.nodes)==null?void 0:l.filter(c=>c.node_id.toLowerCase().includes(t.toLowerCase())),a=r||t.length>0;return g_(e,t)?b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:i,style:{cursor:"pointer"},title:e.description,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(a?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(a?"open":"close"),children:b.jsxs("div",{className:"libnodecontainer_inner",children:[s&&b.jsx(b.Fragment,{children:s.map(c=>b.jsx(h_,{item:c},c.node_id))}),e.subshelves&&b.jsx(b.Fragment,{children:e.subshelves.map(c=>b.jsx(Gp,{item:c,filter:t,parentkey:n+c.name},n+c.name))})]})}),b.jsx("hr",{})]}):b.jsx(b.Fragment,{})},d$=({filter:e,setFilter:t})=>b.jsxs("div",{className:"libfilter",children:[b.jsx(nF,{fontSize:"inherit"}),b.jsx("input",{type:"text",placeholder:"Filter",value:e,onChange:n=>{t(n.target.value)}}),e&&b.jsx(H1,{fontSize:"inherit",onClick:()=>{t("")}})]}),Q0=[">=","==","<=","<",">"],tc=">=",$p=({availableModule:e})=>b.jsxs("div",{className:"module-links",children:[e.homepage&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.homepage,target:"_blank",rel:"noopener noreferrer",children:"Homepage"})}),e.source&&e.homepage&&" | ",e.source&&b.jsx(b.Fragment,{children:b.jsx("a",{href:e.source,target:"_blank",rel:"noopener noreferrer",children:"Source"})})]}),Hp=({availableModule:e})=>{const[t,n]=N.useState(!1),r=()=>n(!t),o=150,i=e.description.length>o?e.description.substring(0,o)+"...":e.description;return b.jsxs("div",{className:"module-description",children:[b.jsx(KV,{remarkPlugins:[f$],children:t?e.description.replace(/\\n/g,`
|
|
725
|
+
`):i.replace(/\\n/g,`
|
|
726
|
+
`)}),e.description.length>o&&b.jsx("button",{onClick:r,className:"toggle-description",children:t?"Show less":"Show more"})]})},Wp=({availableModule:e,on_change:t})=>{const[n,r]=N.useState(e.version||"latest"),[o,i]=N.useState(tc),s=l=>{const c=l.target.value;r(c),t(c!=="latest"?o+c:c)},a=l=>{l.target.value!==o&&Q0.includes(l.target.value)&&(i(l.target.value),n!=="latest"&&t(l.target.value+n))};return e.releases&&!e.releases.includes(n)&&e.releases.unshift(n),b.jsxs(b.Fragment,{children:[b.jsx("select",{value:o,onChange:a,children:Q0.map(l=>b.jsx("option",{value:l,children:l},l))}),b.jsx("select",{onChange:s,value:n,children:e.releases&&e.releases.map(l=>b.jsx("option",{value:l,children:l},l))})]})},p$=({availableModule:e,on_remove:t,on_update:n})=>{const[r,o]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:o}),b.jsx("button",{className:"update-button",disabled:r===e.version,onClick:()=>{n(e,r)},children:"Update"}),b.jsx("button",{className:"remove-button",onClick:()=>{t(e)},children:"Remove"})]})]})},h$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name+(e.version?` (${e.version})`:"")}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},g$=({availableModule:e,on_add:t})=>{const[n,r]=N.useState(tc+e.version||"latest");return b.jsxs("div",{className:"addable-module",children:[b.jsx("div",{className:"module-name",children:e.name}),b.jsx($p,{availableModule:e}),b.jsx(Hp,{availableModule:e}),b.jsxs("div",{children:[b.jsx(Wp,{availableModule:e,on_change:r}),b.jsx("button",{className:"add-button",onClick:()=>{t(e,n)},children:"Add"})]})]})},m$=({children:e})=>{const[t,n]=N.useState(""),r=N.useContext(xe),[o,i]=N.useState(!0),[s,a]=N.useState(!0),[l,c]=N.useState(!0),[u,f]=N.useState({installed:[],available:[],active:[]}),[d,p]=N.useState(!1),g=I=>{I&&(r.worker===void 0||!r.worker.is_open||r.worker.get_available_modules().then(P=>{f(P)}))};if(!r.worker)return b.jsx(b.Fragment,{});const h=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},y=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},m=I=>{p(!1),r.worker!==void 0&&r.worker.remove_lib(I.name)},x=(I,P)=>{p(!1),r.worker!==void 0&&r.worker.add_lib(I.name,P)},v=I=>I.filter(P=>P.name.toLowerCase().includes(t.toLowerCase())||P.description.toLowerCase().includes(t.toLowerCase())),C=v(u.available),S=v(u.installed),E=v(u.active);return b.jsxs(Xo,{title:"Manage Library",trigger:e,description:"Add or remove libraries to the current worker.",onOpenChange:g,open:d,setOpen:p,children:[b.jsx("input",{className:"filter-input styledinput",type:"text",placeholder:"Filter modules...",value:t,onChange:I=>n(I.target.value)}),b.jsxs("div",{className:"packagelist",style:{maxHeight:"70%",overflow:"auto"},children:[S.length>0&&b.jsx("h3",{onClick:()=>{c(!l)},children:"Installed"}),l&&S.map(I=>b.jsx(h$,{availableModule:I,on_add:h},I.name+I.source)),C.length>0&&b.jsx("h3",{onClick:()=>{a(!s)},children:"Available"}),s&&C.map(I=>b.jsx(g$,{availableModule:I,on_add:y},I.name+I.source)),E.length>0&&b.jsx("h3",{onClick:()=>{i(!o)},children:"Active"}),o&&E.map(I=>b.jsx(p$,{availableModule:I,on_remove:m,on_update:x},I.name+I.source))]})]})},y$=({ins:e})=>{const[t,n]=N.useState(e.name),r=N.useContext(xe),o=()=>{r.worker&&r.worker.remove_external_worker(e.uuid,e.nodeclassid)},i=()=>{r.worker&&(r.worker.update_external_worker(e.uuid,e.nodeclassid,{name:t}),e.name=t)};return b.jsx(b.Fragment,{children:b.jsx(Xo,{title:e.name,description:"Settings for"+e.name,trigger:b.jsx("div",{children:"Settings"}),buttons:[{text:"Save",onClick:i,close:!0},{text:"Delete",onClick:o,close:!0}],children:b.jsx("div",{children:b.jsxs("div",{children:[b.jsx("label",{htmlFor:"name",children:"Name: "}),b.jsx("input",{type:"text",name:"name",value:t,onChange:s=>n(s.target.value),className:"styledinput"})]})})})})},b$=({ins:e,lib:t,filter:n="",parentkey:r})=>{var l;const[o,i]=N.useState(!1),s=()=>i(!o),a=(l=t==null?void 0:t.nodes)==null?void 0:l.filter(c=>c.node_id.toLowerCase().includes(n.toLowerCase()));return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:e.name,children:[b.jsx("div",{className:"shelftitle_text",children:e.name}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",title:e.uuid,children:b.jsx(y$,{ins:e})}),t&&b.jsxs(b.Fragment,{children:[a&&b.jsx(b.Fragment,{children:a.map(c=>b.jsx(h_,{item:c},r+c.node_id))}),t.subshelves.map(c=>b.jsx(Gp,{item:c,filter:n,parentkey:r+c.name},r+c.name))]})]})})})]})},v$=({item:e,mod:t,lib:n})=>{const r=N.useContext(xe),[o,i]=N.useState(!1),s=()=>i(!o),a=()=>{var u;(u=r.worker)==null||u.add_external_worker({module:t,cls_module:e.module,cls_name:e.class_name})},l=u=>{u.detail===2&&a()},c=e.name||e.module+"."+e.class_name;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:s,style:{cursor:"pointer"},title:c,children:[b.jsx("div",{className:"shelftitle_text",children:c}),b.jsx("div",{className:"expandicon "+(o?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(o?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:o&&b.jsxs(b.Fragment,{children:[b.jsx("div",{className:"libnodeentry",onClick:l,title:e.name,children:"New Instance"}),e.instances.map(u=>b.jsx(b$,{ins:u,lib:n==null?void 0:n.subshelves.find(f=>f.name===u.uuid),parentkey:u.uuid},u.uuid))]})})})]})},x$=({externalworkermod:e,lib:t})=>{const[n,r]=N.useState(!1),o=()=>r(!n),i=n;return b.jsxs("div",{className:"shelfcontainer",children:[b.jsxs("div",{className:"shelftitle",onClick:o,style:{cursor:"pointer"},title:e.module,children:[b.jsx("div",{className:"shelftitle_text",children:e.module}),b.jsx("div",{className:"expandicon "+(i?"open":"close"),children:b.jsx(ds,{})})]}),b.jsx("div",{className:"libnodecontainer "+(i?"open":"close"),children:b.jsx("div",{className:"libnodecontainer_inner",children:e.worker_classes.map(s=>b.jsx(v$,{item:s,mod:e.module,lib:t},s.module+s.class_name))})}),b.jsx("hr",{})]})},w$=()=>{var u,f;const e=N.useContext(xe),t=e.lib.libstate(),n=k.useContext(xe),r=n.local_settings(d=>d.view_settings.expand_lib),o=n.local_settings(d=>d.update_view_settings),i=d=>{o({expand_lib:d})},s=DL("m"),[a,l]=N.useState(""),c=((u=e.worker)==null?void 0:u.state(d=>d.is_open))??!1;return b.jsx(lC,{maxSize:s?"100%":"300px",direction:s?"down":"right",containerClassName:"pos-left pos-top bg1 h-12",onExpandChange:i,expanded:r===void 0?!0:r,children:b.jsxs("div",{className:"libcontainer",children:[b.jsxs("div",{className:"library",children:[b.jsx("div",{className:"libtitle",children:"Lib"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx(d$,{filter:a,setFilter:l}),b.jsx("div",{className:"vscrollcontainer",children:t.lib.shelves.filter(d=>d.name!=="_external_worker").map(d=>b.jsx(Gp,{item:d,filter:a,parentkey:d.name},d.name))}),b.jsx("hr",{}),b.jsx("div",{className:"libtitle",children:"External Worker"}),b.jsx("hr",{className:"hr_prominent"}),b.jsx("div",{className:"vscrollcontainer",children:(f=t.external_worker)==null?void 0:f.map(d=>b.jsx(x$,{externalworkermod:d,lib:t.lib.shelves.find(p=>p.name==="_external_worker")},d.module))}),b.jsx("hr",{})]}),b.jsx("div",{style:{paddingTop:"0.5rem"}}),c&&b.jsx("div",{className:"addlib",children:b.jsx(m$,{children:b.jsx("button",{children:"Manage Libraries"})})})]})})};function C$(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[r,o]of e)if(!Object.is(o,t.get(r)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}const{useRef:_$}=N;function S$(e){const t=_$();return n=>{const r=e(n);return C$(t.current,r)?t.current:t.current=r}}var Xp="Popover",[m_,hq]=br(Xp,[Yl]),xs=Yl(),[E$,xr]=m_(Xp),y_=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,a=xs(t),l=k.useRef(null),[c,u]=k.useState(!1),[f=!1,d]=Ho({prop:r,defaultProp:o,onChange:i});return b.jsx(hp,{...a,children:b.jsx(E$,{scope:t,contentId:Fn(),triggerRef:l,open:f,onOpenChange:d,onOpenToggle:k.useCallback(()=>d(p=>!p),[d]),hasCustomAnchor:c,onCustomAnchorAdd:k.useCallback(()=>u(!0),[]),onCustomAnchorRemove:k.useCallback(()=>u(!1),[]),modal:s,children:n})})};y_.displayName=Xp;var b_="PopoverAnchor",I$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(b_,n),i=xs(n),{onCustomAnchorAdd:s,onCustomAnchorRemove:a}=o;return k.useEffect(()=>(s(),()=>a()),[s,a]),b.jsx(gp,{...i,...r,ref:t})});I$.displayName=b_;var v_="PopoverTrigger",x_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(v_,n),i=xs(n),s=Ve(t,o.triggerRef),a=b.jsx(je.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":I_(o.open),...r,ref:s,onClick:he(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?a:b.jsx(gp,{asChild:!0,...i,children:a})});x_.displayName=v_;var Yp="PopoverPortal",[k$,A$]=m_(Yp,{forceMount:void 0}),w_=e=>{const{__scopePopover:t,forceMount:n,children:r,container:o}=e,i=xr(Yp,t);return b.jsx(k$,{scope:t,forceMount:n,children:b.jsx(Xn,{present:n||i.open,children:b.jsx(Fd,{asChild:!0,container:o,children:r})})})};w_.displayName=Yp;var Bo="PopoverContent",C_=k.forwardRef((e,t)=>{const n=A$(Bo,e.__scopePopover),{forceMount:r=n.forceMount,...o}=e,i=xr(Bo,e.__scopePopover);return b.jsx(Xn,{present:r||i.open,children:i.modal?b.jsx(T$,{...o,ref:t}):b.jsx(N$,{...o,ref:t})})});C_.displayName=Bo;var R$=Do("PopoverContent.RemoveScroll"),T$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(null),o=Ve(t,r),i=k.useRef(!1);return k.useEffect(()=>{const s=r.current;if(s)return Ld(s)},[]),b.jsx(Ll,{as:R$,allowPinchZoom:!0,children:b.jsx(__,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:he(e.onCloseAutoFocus,s=>{var a;s.preventDefault(),i.current||(a=n.triggerRef.current)==null||a.focus()}),onPointerDownOutside:he(e.onPointerDownOutside,s=>{const a=s.detail.originalEvent,l=a.button===0&&a.ctrlKey===!0,c=a.button===2||l;i.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:he(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1})})})}),N$=k.forwardRef((e,t)=>{const n=xr(Bo,e.__scopePopover),r=k.useRef(!1),o=k.useRef(!1);return b.jsx(__,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{var s,a;(s=e.onCloseAutoFocus)==null||s.call(e,i),i.defaultPrevented||(r.current||(a=n.triggerRef.current)==null||a.focus(),i.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:i=>{var l,c;(l=e.onInteractOutside)==null||l.call(e,i),i.defaultPrevented||(r.current=!0,i.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const s=i.target;((c=n.triggerRef.current)==null?void 0:c.contains(s))&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&o.current&&i.preventDefault()}})}),__=k.forwardRef((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onInteractOutside:u,...f}=e,d=xr(Bo,n),p=xs(n);return jd(),b.jsx(Fl,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i,children:b.jsx(Dl,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:u,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:c,onDismiss:()=>d.onOpenChange(!1),children:b.jsx(pw,{"data-state":I_(d.open),role:"dialog",id:d.contentId,...p,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),S_="PopoverClose",P$=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xr(S_,n);return b.jsx(je.button,{type:"button",...r,ref:t,onClick:he(e.onClick,()=>o.onOpenChange(!1))})});P$.displayName=S_;var O$="PopoverArrow",E_=k.forwardRef((e,t)=>{const{__scopePopover:n,...r}=e,o=xs(n);return b.jsx(hw,{...o,...r,ref:t})});E_.displayName=O$;function I_(e){return e?"open":"closed"}var k_=y_,A_=x_,R_=w_,T_=C_,M$=E_;const D$=({iostore:e})=>{const{full:t,preview:n}=e.valuestore(),r=JSON.stringify((t==null?void 0:t.value)||(n==null?void 0:n.value))||"";return`Bytes(${Math.round(3*r.length/4)})`},F$={bytes:D$},j$=e=>typeof e=="boolean"||e instanceof Boolean,L$=e=>typeof e=="number"||e instanceof Number,B$=e=>typeof e=="bigint"||e instanceof BigInt,N_=e=>!!e&&e instanceof Date,z$=e=>typeof e=="string"||e instanceof String,V$=e=>Array.isArray(e),G$=e=>typeof e=="object"&&e!==null,P_=e=>!!e&&e instanceof Object&&typeof e=="function";function tl(e,t){return t===void 0&&(t=!1),!e||t?`"${e}"`:e}function $$(e,t,n){return n?JSON.stringify(e):t?`"${e}"`:e}function O_(e){let{field:t,value:n,data:r,lastElement:o,openBracket:i,closeBracket:s,level:a,style:l,shouldExpandNode:c,clickToExpandNode:u,outerRef:f,beforeExpandChange:d}=e;const p=N.useRef(!1),[g,h]=N.useState(()=>c(a,n,t)),y=N.useRef(null);N.useEffect(()=>{p.current?h(c(a,n,t)):p.current=!0},[c]);const m=N.useId();if(r.length===0)return H$({field:t,openBracket:i,closeBracket:s,lastElement:o,style:l});const x=g?l.collapseIcon:l.expandIcon,v=g?l.ariaLables.collapseJson:l.ariaLables.expandJson,C=a+1,S=r.length-1,E=M=>{g!==M&&(!d||d({level:a,value:n,field:t,newExpandValue:M}))&&h(M)},I=M=>{if(M.key==="ArrowRight"||M.key==="ArrowLeft")M.preventDefault(),E(M.key==="ArrowRight");else if(M.key==="ArrowUp"||M.key==="ArrowDown"){M.preventDefault();const w=M.key==="ArrowUp"?-1:1;if(!f.current)return;const R=f.current.querySelectorAll("[role=button]");let O=-1;for(let A=0;A<R.length;A++)if(R[A].tabIndex===0){O=A;break}if(O<0)return;const L=(O+w+R.length)%R.length;R[O].tabIndex=-1,R[L].tabIndex=0,R[L].focus()}},P=()=>{var M;E(!g);const w=y.current;if(!w)return;const R=(M=f.current)===null||M===void 0?void 0:M.querySelector('[role=button][tabindex="0"]');R&&(R.tabIndex=-1),w.tabIndex=0,w.focus()};return N.createElement("div",{className:l.basicChildStyle,role:"treeitem","aria-expanded":g,"aria-selected":void 0},N.createElement("span",{className:x,onClick:P,onKeyDown:I,role:"button","aria-label":v,"aria-expanded":g,"aria-controls":g?m:void 0,ref:y,tabIndex:a===0?0:-1}),(t||t==="")&&(u?N.createElement("span",{className:l.clickableLabel,onClick:P,onKeyDown:I},tl(t,l.quotesForFieldNames),":"):N.createElement("span",{className:l.label},tl(t,l.quotesForFieldNames),":")),N.createElement("span",{className:l.punctuation},i),g?N.createElement("ul",{id:m,role:"group",className:l.childFieldsContainer},r.map((M,w)=>N.createElement(M_,{key:M[0]||w,field:M[0],value:M[1],style:l,lastElement:w===S,level:C,shouldExpandNode:c,clickToExpandNode:u,outerRef:f}))):N.createElement("span",{className:l.collapsedContent,onClick:P,onKeyDown:I}),N.createElement("span",{className:l.punctuation},s),!o&&N.createElement("span",{className:l.punctuation},","))}function H$(e){let{field:t,openBracket:n,closeBracket:r,lastElement:o,style:i}=e;return N.createElement("div",{className:i.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:i.label},tl(t,i.quotesForFieldNames),":"),N.createElement("span",{className:i.punctuation},n),N.createElement("span",{className:i.punctuation},r),!o&&N.createElement("span",{className:i.punctuation},","))}function W$(e){let{field:t,value:n,style:r,lastElement:o,shouldExpandNode:i,clickToExpandNode:s,level:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:a,openBracket:"{",closeBracket:"}",style:r,shouldExpandNode:i,clickToExpandNode:s,data:Object.keys(n).map(u=>[u,n[u]]),outerRef:l,beforeExpandChange:c})}function X$(e){let{field:t,value:n,style:r,lastElement:o,level:i,shouldExpandNode:s,clickToExpandNode:a,outerRef:l,beforeExpandChange:c}=e;return O_({field:t,value:n,lastElement:o||!1,level:i,openBracket:"[",closeBracket:"]",style:r,shouldExpandNode:s,clickToExpandNode:a,data:n.map(u=>[void 0,u]),outerRef:l,beforeExpandChange:c})}function Y$(e){let{field:t,value:n,style:r,lastElement:o}=e,i,s=r.otherValue;return n===null?(i="null",s=r.nullValue):n===void 0?(i="undefined",s=r.undefinedValue):z$(n)?(i=$$(n,!r.noQuotesForStringValues,r.stringifyStringValues),s=r.stringValue):j$(n)?(i=n?"true":"false",s=r.booleanValue):L$(n)?(i=n.toString(),s=r.numberValue):B$(n)?(i=`${n.toString()}n`,s=r.numberValue):N_(n)?i=n.toISOString():P_(n)?i="function() { }":i=n.toString(),N.createElement("div",{className:r.basicChildStyle,role:"treeitem","aria-selected":void 0},(t||t==="")&&N.createElement("span",{className:r.label},tl(t,r.quotesForFieldNames),":"),N.createElement("span",{className:s},i),!o&&N.createElement("span",{className:r.punctuation},","))}function M_(e){const t=e.value;return V$(t)?N.createElement(X$,Object.assign({},e)):G$(t)&&!N_(t)&&!P_(t)?N.createElement(W$,Object.assign({},e)):N.createElement(Y$,Object.assign({},e))}var Re={"container-light":"_2IvMF _GzYRV","basic-element-style":"_2bkNM","child-fields-container":"_1BXBN","label-light":"_1MGIk","clickable-label-light":"_2YKJg _1MGIk _1MFti","punctuation-light":"_3uHL6 _3eOF8","value-null-light":"_2T6PJ","value-undefined-light":"_1Gho6","value-string-light":"_vGjyY","value-number-light":"_1bQdo","value-boolean-light":"_3zQKs","value-other-light":"_1xvuR","collapse-icon-light":"_oLqym _f10Tu _1MFti _1LId0","expand-icon-light":"_2AXVT _f10Tu _1MFti _1UmXx","collapsed-content-light":"_2KJWg _1pNG9 _1MFti","container-dark":"_11RoI _GzYRV","expand-icon-dark":"_17H2C _f10Tu _1MFti _1UmXx","collapse-icon-dark":"_3QHg2 _f10Tu _1MFti _1LId0","collapsed-content-dark":"_3fDAz _1pNG9 _1MFti","label-dark":"_2bSDX","clickable-label-dark":"_1RQEj _2bSDX _1MFti","punctuation-dark":"_gsbQL _3eOF8","value-null-dark":"_LaAZe","value-undefined-dark":"_GTKgm","value-string-dark":"_Chy1W","value-number-dark":"_2bveF","value-boolean-dark":"_2vRm-","value-other-dark":"_1prJR"};const D_={collapseJson:"collapse JSON",expandJson:"expand JSON"},ey={container:Re["container-light"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-light"],clickableLabel:Re["clickable-label-light"],nullValue:Re["value-null-light"],undefinedValue:Re["value-undefined-light"],stringValue:Re["value-string-light"],booleanValue:Re["value-boolean-light"],numberValue:Re["value-number-light"],otherValue:Re["value-other-light"],punctuation:Re["punctuation-light"],collapseIcon:Re["collapse-icon-light"],expandIcon:Re["expand-icon-light"],collapsedContent:Re["collapsed-content-light"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},U$={container:Re["container-dark"],basicChildStyle:Re["basic-element-style"],childFieldsContainer:Re["child-fields-container"],label:Re["label-dark"],clickableLabel:Re["clickable-label-dark"],nullValue:Re["value-null-dark"],undefinedValue:Re["value-undefined-dark"],stringValue:Re["value-string-dark"],booleanValue:Re["value-boolean-dark"],numberValue:Re["value-number-dark"],otherValue:Re["value-other-dark"],punctuation:Re["punctuation-dark"],collapseIcon:Re["collapse-icon-dark"],expandIcon:Re["expand-icon-dark"],collapsedContent:Re["collapsed-content-dark"],noQuotesForStringValues:!1,quotesForFieldNames:!1,ariaLables:D_,stringifyStringValues:!1},Z$=()=>!0,J$=e=>e<1,q$=e=>{let{data:t,style:n=ey,shouldExpandNode:r=Z$,clickToExpandNode:o=!1,beforeExpandChange:i,...s}=e;const a=N.useRef(null);return N.createElement("div",Object.assign({"aria-label":"JSON view"},s,{className:n.container,ref:a,role:"tree"}),N.createElement(M_,{value:t,style:{...ey,...n},lastElement:!0,level:0,shouldExpandNode:r,clickToExpandNode:o,outerRef:a,beforeExpandChange:i}))};function K$(e){for(const t in e)if(Object.hasOwn(e,t))return!1;return!0}function Q$(e){if(e==null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype?!1:K$(e)}const eH=({data:e})=>b.jsx(q$,{data:Q$(e)?"":e,style:U$,shouldExpandNode:J$});function F_(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=F_(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ke(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=F_(e))&&(r&&(r+=" "),r+=t);return r}function Zn(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let s="",a=!0;for(let l=0;l<i.length;l+=1){const c=i[l];c&&(s+=(a===!0?"":" ")+t(c),a=!1,n&&n[c]&&(s+=" "+n[c]))}r[o]=s}return r}const Up=k.createContext();process.env.NODE_ENV!=="production"&&(Up.displayName="TableContext");function mr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":mr(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ks={exports:{}},Ne={};/**
|
|
727
|
+
* @license React
|
|
728
|
+
* react-is.production.js
|
|
729
|
+
*
|
|
730
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
731
|
+
*
|
|
732
|
+
* This source code is licensed under the MIT license found in the
|
|
733
|
+
* LICENSE file in the root directory of this source tree.
|
|
734
|
+
*/var ty;function tH(){if(ty)return Ne;ty=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),d=Symbol.for("react.view_transition"),p=Symbol.for("react.client.reference");function g(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case e:switch(h=h.type,h){case n:case o:case r:case l:case c:case d:return h;default:switch(h=h&&h.$$typeof,h){case s:case a:case f:case u:return h;case i:return h;default:return y}}case t:return y}}}return Ne.ContextConsumer=i,Ne.ContextProvider=s,Ne.Element=e,Ne.ForwardRef=a,Ne.Fragment=n,Ne.Lazy=f,Ne.Memo=u,Ne.Portal=t,Ne.Profiler=o,Ne.StrictMode=r,Ne.Suspense=l,Ne.SuspenseList=c,Ne.isContextConsumer=function(h){return g(h)===i},Ne.isContextProvider=function(h){return g(h)===s},Ne.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===e},Ne.isForwardRef=function(h){return g(h)===a},Ne.isFragment=function(h){return g(h)===n},Ne.isLazy=function(h){return g(h)===f},Ne.isMemo=function(h){return g(h)===u},Ne.isPortal=function(h){return g(h)===t},Ne.isProfiler=function(h){return g(h)===o},Ne.isStrictMode=function(h){return g(h)===r},Ne.isSuspense=function(h){return g(h)===l},Ne.isSuspenseList=function(h){return g(h)===c},Ne.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===n||h===o||h===r||h===l||h===c||typeof h=="object"&&h!==null&&(h.$$typeof===f||h.$$typeof===u||h.$$typeof===s||h.$$typeof===i||h.$$typeof===a||h.$$typeof===p||h.getModuleId!==void 0)},Ne.typeOf=g,Ne}var Pe={};/**
|
|
735
|
+
* @license React
|
|
736
|
+
* react-is.development.js
|
|
737
|
+
*
|
|
738
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
739
|
+
*
|
|
740
|
+
* This source code is licensed under the MIT license found in the
|
|
741
|
+
* LICENSE file in the root directory of this source tree.
|
|
742
|
+
*/var ny;function nH(){return ny||(ny=1,process.env.NODE_ENV!=="production"&&function(){function e(h){if(typeof h=="object"&&h!==null){var y=h.$$typeof;switch(y){case t:switch(h=h.type,h){case r:case i:case o:case c:case u:case p:return h;default:switch(h=h&&h.$$typeof,h){case a:case l:case d:case f:return h;case s:return h;default:return y}}case n:return y}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");Pe.ContextConsumer=s,Pe.ContextProvider=a,Pe.Element=t,Pe.ForwardRef=l,Pe.Fragment=r,Pe.Lazy=d,Pe.Memo=f,Pe.Portal=n,Pe.Profiler=i,Pe.StrictMode=o,Pe.Suspense=c,Pe.SuspenseList=u,Pe.isContextConsumer=function(h){return e(h)===s},Pe.isContextProvider=function(h){return e(h)===a},Pe.isElement=function(h){return typeof h=="object"&&h!==null&&h.$$typeof===t},Pe.isForwardRef=function(h){return e(h)===l},Pe.isFragment=function(h){return e(h)===r},Pe.isLazy=function(h){return e(h)===d},Pe.isMemo=function(h){return e(h)===f},Pe.isPortal=function(h){return e(h)===n},Pe.isProfiler=function(h){return e(h)===i},Pe.isStrictMode=function(h){return e(h)===o},Pe.isSuspense=function(h){return e(h)===c},Pe.isSuspenseList=function(h){return e(h)===u},Pe.isValidElementType=function(h){return typeof h=="string"||typeof h=="function"||h===r||h===i||h===o||h===c||h===u||typeof h=="object"&&h!==null&&(h.$$typeof===d||h.$$typeof===f||h.$$typeof===a||h.$$typeof===s||h.$$typeof===l||h.$$typeof===g||h.getModuleId!==void 0)},Pe.typeOf=e}()),Pe}var ry;function rH(){return ry||(ry=1,process.env.NODE_ENV==="production"?Ks.exports=tH():Ks.exports=nH()),Ks.exports}var nl=rH();function Pn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function j_(e){if(k.isValidElement(e)||nl.isValidElementType(e)||!Pn(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=j_(e[n])}),t}function Pt(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Pn(e)&&Pn(t)&&Object.keys(t).forEach(o=>{k.isValidElement(t[o])||nl.isValidElementType(t[o])?r[o]=t[o]:Pn(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Pn(e[o])?r[o]=Pt(e[o],t[o],n):n.clone?r[o]=Pn(t[o])?j_(t[o]):t[o]:r[o]=t[o]}),r}function Ai(e,t){return t?Pt(e,t,{clone:!1}):e}const wr=process.env.NODE_ENV!=="production"?B.oneOfType([B.number,B.string,B.object,B.array]):{};function oH(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var s,a;const i=/min-width:\s*([0-9.]+)/;return+(((s=r.match(i))==null?void 0:s[1])||0)-+(((a=o.match(i))==null?void 0:a[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function iH(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function sH(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
743
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:mr(18,`(${t})`));return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function aH(e){const t=(i,s)=>i.replace("@media",s?`@container ${s}`:"@container");function n(i,s){i.up=(...a)=>t(e.breakpoints.up(...a),s),i.down=(...a)=>t(e.breakpoints.down(...a),s),i.between=(...a)=>t(e.breakpoints.between(...a),s),i.only=(...a)=>t(e.breakpoints.only(...a),s),i.not=(...a)=>{const l=t(e.breakpoints.not(...a),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const nc={xs:0,sm:600,md:900,lg:1200,xl:1536},oy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${nc[e]}px)`},lH={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:nc[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Hn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||oy;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||oy;return Object.keys(t).reduce((s,a)=>{if(iH(i.keys,a)){const l=sH(r.containerQueries?r:lH,a);l&&(s[l]=n(t[a],a))}else if(Object.keys(i.values||nc).includes(a)){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function cH(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function uH(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function rc(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function rl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=rc(e,n)||r,t&&(o=t(o,r,e)),o}function Ue(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,c=rc(l,r)||{};return Hn(s,a,f=>{let d=rl(c,o,f);return f===d&&typeof f=="string"&&(d=rl(c,o,`${t}${f==="default"?"":lt(f)}`,f)),n===!1?d:{[n]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:wr}:{},i.filterProps=[t],i}function fH(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dH={m:"margin",p:"padding"},pH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},iy={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},hH=fH(e=>{if(e.length>2)if(iy[e])e=iy[e];else return[e];const[t,n]=e.split(""),r=dH[t],o=pH[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),oc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ic=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],gH=[...oc,...ic];function ws(e,t,n,r){const o=rc(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const s=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(s)?s>o.length-1&&console.error([`MUI: The value provided (${s}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${s} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
744
|
+
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
745
|
+
`)));const a=o[s];return i>=0?a:typeof a=="number"?-a:typeof a=="string"&&a.startsWith("var(")?`calc(-1 * ${a})`:`-${a}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
746
|
+
`)),()=>{})}function Zp(e){return ws(e,"spacing",8,"spacing")}function Cs(e,t){return typeof t=="string"||t==null?t:e(t)}function mH(e,t){return n=>e.reduce((r,o)=>(r[o]=Cs(t,n),r),{})}function yH(e,t,n,r){if(!t.includes(n))return null;const o=hH(n),i=mH(o,r),s=e[n];return Hn(e,s,i)}function L_(e,t){const n=Zp(e.theme);return Object.keys(e).map(r=>yH(e,t,r,n)).reduce(Ai,{})}function $e(e){return L_(e,oc)}$e.propTypes=process.env.NODE_ENV!=="production"?oc.reduce((e,t)=>(e[t]=wr,e),{}):{};$e.filterProps=oc;function He(e){return L_(e,ic)}He.propTypes=process.env.NODE_ENV!=="production"?ic.reduce((e,t)=>(e[t]=wr,e),{}):{};He.filterProps=ic;process.env.NODE_ENV!=="production"&&gH.reduce((e,t)=>(e[t]=wr,e),{});function sc(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?Ai(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Bt(e){return typeof e!="number"?e:`${e}px solid`}function Gt(e,t){return Ue({prop:e,themeKey:"borders",transform:t})}const bH=Gt("border",Bt),vH=Gt("borderTop",Bt),xH=Gt("borderRight",Bt),wH=Gt("borderBottom",Bt),CH=Gt("borderLeft",Bt),_H=Gt("borderColor"),SH=Gt("borderTopColor"),EH=Gt("borderRightColor"),IH=Gt("borderBottomColor"),kH=Gt("borderLeftColor"),AH=Gt("outline",Bt),RH=Gt("outlineColor"),ac=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ws(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Cs(t,r)});return Hn(e,e.borderRadius,n)}return null};ac.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wr}:{};ac.filterProps=["borderRadius"];sc(bH,vH,xH,wH,CH,_H,SH,EH,IH,kH,ac,AH,RH);const lc=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ws(e.theme,"spacing",8,"gap"),n=r=>({gap:Cs(t,r)});return Hn(e,e.gap,n)}return null};lc.propTypes=process.env.NODE_ENV!=="production"?{gap:wr}:{};lc.filterProps=["gap"];const cc=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ws(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Cs(t,r)});return Hn(e,e.columnGap,n)}return null};cc.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wr}:{};cc.filterProps=["columnGap"];const uc=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ws(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Cs(t,r)});return Hn(e,e.rowGap,n)}return null};uc.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wr}:{};uc.filterProps=["rowGap"];const TH=Ue({prop:"gridColumn"}),NH=Ue({prop:"gridRow"}),PH=Ue({prop:"gridAutoFlow"}),OH=Ue({prop:"gridAutoColumns"}),MH=Ue({prop:"gridAutoRows"}),DH=Ue({prop:"gridTemplateColumns"}),FH=Ue({prop:"gridTemplateRows"}),jH=Ue({prop:"gridTemplateAreas"}),LH=Ue({prop:"gridArea"});sc(lc,cc,uc,TH,NH,PH,OH,MH,DH,FH,jH,LH);function Io(e,t){return t==="grey"?t:e}const BH=Ue({prop:"color",themeKey:"palette",transform:Io}),zH=Ue({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Io}),VH=Ue({prop:"backgroundColor",themeKey:"palette",transform:Io});sc(BH,zH,VH);function At(e){return e<=1&&e!==0?`${e*100}%`:e}const GH=Ue({prop:"width",transform:At}),Jp=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,s,a,l;const r=((s=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:s[n])||nc[n];return r?((l=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:l.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:At(n)}};return Hn(e,e.maxWidth,t)}return null};Jp.filterProps=["maxWidth"];const $H=Ue({prop:"minWidth",transform:At}),HH=Ue({prop:"height",transform:At}),WH=Ue({prop:"maxHeight",transform:At}),XH=Ue({prop:"minHeight",transform:At});Ue({prop:"size",cssProperty:"width",transform:At});Ue({prop:"size",cssProperty:"height",transform:At});const YH=Ue({prop:"boxSizing"});sc(GH,Jp,$H,HH,WH,XH,YH);const fc={border:{themeKey:"borders",transform:Bt},borderTop:{themeKey:"borders",transform:Bt},borderRight:{themeKey:"borders",transform:Bt},borderBottom:{themeKey:"borders",transform:Bt},borderLeft:{themeKey:"borders",transform:Bt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Bt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ac},color:{themeKey:"palette",transform:Io},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Io},backgroundColor:{themeKey:"palette",transform:Io},p:{style:He},pt:{style:He},pr:{style:He},pb:{style:He},pl:{style:He},px:{style:He},py:{style:He},padding:{style:He},paddingTop:{style:He},paddingRight:{style:He},paddingBottom:{style:He},paddingLeft:{style:He},paddingX:{style:He},paddingY:{style:He},paddingInline:{style:He},paddingInlineStart:{style:He},paddingInlineEnd:{style:He},paddingBlock:{style:He},paddingBlockStart:{style:He},paddingBlockEnd:{style:He},m:{style:$e},mt:{style:$e},mr:{style:$e},mb:{style:$e},ml:{style:$e},mx:{style:$e},my:{style:$e},margin:{style:$e},marginTop:{style:$e},marginRight:{style:$e},marginBottom:{style:$e},marginLeft:{style:$e},marginX:{style:$e},marginY:{style:$e},marginInline:{style:$e},marginInlineStart:{style:$e},marginInlineEnd:{style:$e},marginBlock:{style:$e},marginBlockStart:{style:$e},marginBlockEnd:{style:$e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:lc},rowGap:{style:uc},columnGap:{style:cc},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:At},maxWidth:{style:Jp},minWidth:{transform:At},height:{transform:At},maxHeight:{transform:At},minHeight:{transform:At},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function UH(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ZH(e,t){return typeof e=="function"?e(t):e}function JH(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:c,transform:u,style:f}=a;if(r==null)return null;if(c==="typography"&&r==="inherit")return{[n]:r};const d=rc(o,c)||{};return f?f(s):Hn(s,r,g=>{let h=rl(d,u,g);return g===h&&typeof g=="string"&&(h=rl(d,u,`${n}${g==="default"?"":lt(g)}`,g)),l===!1?h:{[l]:h}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??fc;function s(a){let l=a;if(typeof a=="function")l=a(o);else if(typeof a!="object")return a;if(!l)return null;const c=cH(o.breakpoints),u=Object.keys(c);let f=c;return Object.keys(l).forEach(d=>{const p=ZH(l[d],o);if(p!=null)if(typeof p=="object")if(i[d])f=Ai(f,e(d,p,o,i));else{const g=Hn({theme:o},p,h=>({[d]:h}));UH(g,p)?f[d]=t({sx:p,theme:o}):f=Ai(f,g)}else f=Ai(f,e(d,p,o,i))}),oH(o,uH(u,f))}return Array.isArray(r)?r.map(s):s(r)}return t}const zo=JH();zo.filterProps=["sx"];function ce(){return ce=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ce.apply(null,arguments)}function qH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function KH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var QH=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(KH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=qH(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ot="-ms-",ol="-moz-",Ee="-webkit-",B_="comm",qp="rule",Kp="decl",eW="@import",z_="@keyframes",tW="@layer",nW=Math.abs,dc=String.fromCharCode,rW=Object.assign;function oW(e,t){return nt(e,0)^45?(((t<<2^nt(e,0))<<2^nt(e,1))<<2^nt(e,2))<<2^nt(e,3):0}function V_(e){return e.trim()}function iW(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,n){return e.replace(t,n)}function Uf(e,t){return e.indexOf(t)}function nt(e,t){return e.charCodeAt(t)|0}function Ui(e,t,n){return e.slice(t,n)}function pn(e){return e.length}function Qp(e){return e.length}function Qs(e,t){return t.push(e),e}function sW(e,t){return e.map(t).join("")}var pc=1,Vo=1,G_=0,xt=0,Qe=0,qo="";function hc(e,t,n,r,o,i,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:pc,column:Vo,length:s,return:""}}function fi(e,t){return rW(hc("",null,null,"",null,null,0),e,{length:-e.length},t)}function aW(){return Qe}function lW(){return Qe=xt>0?nt(qo,--xt):0,Vo--,Qe===10&&(Vo=1,pc--),Qe}function Ot(){return Qe=xt<G_?nt(qo,xt++):0,Vo++,Qe===10&&(Vo=1,pc++),Qe}function xn(){return nt(qo,xt)}function Ca(){return xt}function _s(e,t){return Ui(qo,e,t)}function Zi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function $_(e){return pc=Vo=1,G_=pn(qo=e),xt=0,[]}function H_(e){return qo="",e}function _a(e){return V_(_s(xt-1,Zf(e===91?e+2:e===40?e+1:e)))}function cW(e){for(;(Qe=xn())&&Qe<33;)Ot();return Zi(e)>2||Zi(Qe)>3?"":" "}function uW(e,t){for(;--t&&Ot()&&!(Qe<48||Qe>102||Qe>57&&Qe<65||Qe>70&&Qe<97););return _s(e,Ca()+(t<6&&xn()==32&&Ot()==32))}function Zf(e){for(;Ot();)switch(Qe){case e:return xt;case 34:case 39:e!==34&&e!==39&&Zf(Qe);break;case 40:e===41&&Zf(e);break;case 92:Ot();break}return xt}function fW(e,t){for(;Ot()&&e+Qe!==57;)if(e+Qe===84&&xn()===47)break;return"/*"+_s(t,xt-1)+"*"+dc(e===47?e:Ot())}function dW(e){for(;!Zi(xn());)Ot();return _s(e,xt)}function pW(e){return H_(Sa("",null,null,null,[""],e=$_(e),0,[0],e))}function Sa(e,t,n,r,o,i,s,a,l){for(var c=0,u=0,f=s,d=0,p=0,g=0,h=1,y=1,m=1,x=0,v="",C=o,S=i,E=r,I=v;y;)switch(g=x,x=Ot()){case 40:if(g!=108&&nt(I,f-1)==58){Uf(I+=Ie(_a(x),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:I+=_a(x);break;case 9:case 10:case 13:case 32:I+=cW(g);break;case 92:I+=uW(Ca()-1,7);continue;case 47:switch(xn()){case 42:case 47:Qs(hW(fW(Ot(),Ca()),t,n),l);break;default:I+="/"}break;case 123*h:a[c++]=pn(I)*m;case 125*h:case 59:case 0:switch(x){case 0:case 125:y=0;case 59+u:m==-1&&(I=Ie(I,/\f/g,"")),p>0&&pn(I)-f&&Qs(p>32?ay(I+";",r,n,f-1):ay(Ie(I," ","")+";",r,n,f-2),l);break;case 59:I+=";";default:if(Qs(E=sy(I,t,n,c,u,o,a,v,C=[],S=[],f),i),x===123)if(u===0)Sa(I,t,E,E,C,i,f,a,S);else switch(d===99&&nt(I,3)===110?100:d){case 100:case 108:case 109:case 115:Sa(e,E,E,r&&Qs(sy(e,E,E,0,0,o,a,v,o,C=[],f),S),o,S,f,a,r?C:S);break;default:Sa(I,E,E,E,[""],S,0,a,S)}}c=u=p=0,h=m=1,v=I="",f=s;break;case 58:f=1+pn(I),p=g;default:if(h<1){if(x==123)--h;else if(x==125&&h++==0&&lW()==125)continue}switch(I+=dc(x),x*h){case 38:m=u>0?1:(I+="\f",-1);break;case 44:a[c++]=(pn(I)-1)*m,m=1;break;case 64:xn()===45&&(I+=_a(Ot())),d=xn(),u=f=pn(v=I+=dW(Ca())),x++;break;case 45:g===45&&pn(I)==2&&(h=0)}}return i}function sy(e,t,n,r,o,i,s,a,l,c,u){for(var f=o-1,d=o===0?i:[""],p=Qp(d),g=0,h=0,y=0;g<r;++g)for(var m=0,x=Ui(e,f+1,f=nW(h=s[g])),v=e;m<p;++m)(v=V_(h>0?d[m]+" "+x:Ie(x,/&\f/g,d[m])))&&(l[y++]=v);return hc(e,t,n,o===0?qp:a,l,c,u)}function hW(e,t,n){return hc(e,t,n,B_,dc(aW()),Ui(e,2,-2),0)}function ay(e,t,n,r){return hc(e,t,n,Kp,Ui(e,0,r),Ui(e,r+1,-1),r)}function ko(e,t){for(var n="",r=Qp(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function gW(e,t,n,r){switch(e.type){case tW:if(e.children.length)break;case eW:case Kp:return e.return=e.return||e.value;case B_:return"";case z_:return e.return=e.value+"{"+ko(e.children,r)+"}";case qp:e.value=e.props.join(",")}return pn(n=ko(e.children,r))?e.return=e.value+"{"+n+"}":""}function mW(e){var t=Qp(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function yW(e){return function(t){t.root||(t=t.return)&&e(t)}}function W_(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bW=function(t,n,r){for(var o=0,i=0;o=i,i=xn(),o===38&&i===12&&(n[r]=1),!Zi(i);)Ot();return _s(t,xt)},vW=function(t,n){var r=-1,o=44;do switch(Zi(o)){case 0:o===38&&xn()===12&&(n[r]=1),t[r]+=bW(xt-1,n,r);break;case 2:t[r]+=_a(o);break;case 4:if(o===44){t[++r]=xn()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=dc(o)}while(o=Ot());return t},xW=function(t,n){return H_(vW($_(t),n))},ly=new WeakMap,wW=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ly.get(r))&&!o){ly.set(t,!0);for(var i=[],s=xW(n,i),a=r.props,l=0,c=0;l<s.length;l++)for(var u=0;u<a.length;u++,c++)t.props[c]=i[l]?s[l].replace(/&\f/g,a[u]):a[u]+" "+s[l]}}},CW=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function X_(e,t){switch(oW(e,t)){case 5103:return Ee+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ee+e+ol+e+ot+e+e;case 6828:case 4268:return Ee+e+ot+e+e;case 6165:return Ee+e+ot+"flex-"+e+e;case 5187:return Ee+e+Ie(e,/(\w+).+(:[^]+)/,Ee+"box-$1$2"+ot+"flex-$1$2")+e;case 5443:return Ee+e+ot+"flex-item-"+Ie(e,/flex-|-self/,"")+e;case 4675:return Ee+e+ot+"flex-line-pack"+Ie(e,/align-content|flex-|-self/,"")+e;case 5548:return Ee+e+ot+Ie(e,"shrink","negative")+e;case 5292:return Ee+e+ot+Ie(e,"basis","preferred-size")+e;case 6060:return Ee+"box-"+Ie(e,"-grow","")+Ee+e+ot+Ie(e,"grow","positive")+e;case 4554:return Ee+Ie(e,/([^-])(transform)/g,"$1"+Ee+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,Ee+"$1"),/(image-set)/,Ee+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,Ee+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,Ee+"box-pack:$3"+ot+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ee+e+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,Ee+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(pn(e)-1-t>6)switch(nt(e,t+1)){case 109:if(nt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Ee+"$2-$3$1"+ol+(nt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Uf(e,"stretch")?X_(Ie(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(nt(e,t+1)!==115)break;case 6444:switch(nt(e,pn(e)-3-(~Uf(e,"!important")&&10))){case 107:return Ie(e,":",":"+Ee)+e;case 101:return Ie(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ee+(nt(e,14)===45?"inline-":"")+"box$3$1"+Ee+"$2$3$1"+ot+"$2box$3")+e}break;case 5936:switch(nt(e,t+11)){case 114:return Ee+e+ot+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ee+e+ot+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ee+e+ot+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ee+e+ot+e+e}return e}var _W=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Kp:t.return=X_(t.value,t.length);break;case z_:return ko([fi(t,{value:Ie(t.value,"@","@"+Ee)})],o);case qp:if(t.length)return sW(t.props,function(i){switch(iW(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ko([fi(t,{props:[Ie(i,/:(read-\w+)/,":"+ol+"$1")]})],o);case"::placeholder":return ko([fi(t,{props:[Ie(i,/:(plac\w+)/,":"+Ee+"input-$1")]}),fi(t,{props:[Ie(i,/:(plac\w+)/,":"+ol+"$1")]}),fi(t,{props:[Ie(i,/:(plac\w+)/,ot+"input-$1")]})],o)}return""})}},SW=[_W],EW=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var y=h.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var o=t.stylisPlugins||SW,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var y=h.getAttribute("data-emotion").split(" "),m=1;m<y.length;m++)i[y[m]]=!0;a.push(h)});var l,c=[wW,CW];{var u,f=[gW,yW(function(h){u.insert(h)})],d=mW(c.concat(o,f)),p=function(y){return ko(pW(y),d)};l=function(y,m,x,v){u=x,p(y?y+"{"+m.styles+"}":m.styles),v&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new QH({key:n,container:s,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:l};return g.sheet.hydrate(a),g},Au,cy;function IW(){if(cy)return Au;cy=1;var e=ep(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function s(g){return e.isMemo(g)?o:i[g.$$typeof]||t}var a=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function p(g,h,y){if(typeof h!="string"){if(d){var m=f(h);m&&m!==d&&p(g,m,y)}var x=l(h);c&&(x=x.concat(c(h)));for(var v=s(g),C=s(h),S=0;S<x.length;++S){var E=x[S];if(!n[E]&&!(y&&y[E])&&!(C&&C[E])&&!(v&&v[E])){var I=u(h,E);try{a(g,E,I)}catch{}}}}return g}return Au=p,Au}IW();var kW=!0;function Y_(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var eh=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||kW===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},U_=function(t,n,r){eh(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function AW(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var RW={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TW=/[A-Z]|^ms/g,NW=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Z_=function(t){return t.charCodeAt(1)===45},uy=function(t){return t!=null&&typeof t!="boolean"},Ru=W_(function(e){return Z_(e)?e:e.replace(TW,"-$&").toLowerCase()}),fy=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(NW,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return RW[t]!==1&&!Z_(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ji(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return hn={name:o.name,styles:o.styles,next:hn},o.name;var i=n;if(i.styles!==void 0){var s=i.next;if(s!==void 0)for(;s!==void 0;)hn={name:s.name,styles:s.styles,next:hn},s=s.next;var a=i.styles+";";return a}return PW(e,t,n)}case"function":{if(e!==void 0){var l=hn,c=n(e);return hn=l,Ji(e,t,c)}break}}var u=n;if(t==null)return u;var f=t[u];return f!==void 0?f:u}function PW(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=Ji(e,t,n[o])+";";else for(var i in n){var s=n[i];if(typeof s!="object"){var a=s;t!=null&&t[a]!==void 0?r+=i+"{"+t[a]+"}":uy(a)&&(r+=Ru(i)+":"+fy(i,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(t==null||t[s[0]]===void 0))for(var l=0;l<s.length;l++)uy(s[l])&&(r+=Ru(i)+":"+fy(i,s[l])+";");else{var c=Ji(e,t,s);switch(i){case"animation":case"animationName":{r+=Ru(i)+":"+c+";";break}default:r+=i+"{"+c+"}"}}}return r}var dy=/label:\s*([^\s;{]+)\s*(;|$)/g,hn;function gc(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";hn=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=Ji(n,t,i);else{var s=i;o+=s[0]}for(var a=1;a<e.length;a++)if(o+=Ji(n,t,e[a]),r){var l=i;o+=l[a]}dy.lastIndex=0;for(var c="",u;(u=dy.exec(o))!==null;)c+="-"+u[1];var f=AW(o)+c;return{name:f,styles:o,next:hn}}var OW=function(t){return t()},MW=k.useInsertionEffect?k.useInsertionEffect:!1,J_=MW||OW,q_=k.createContext(typeof HTMLElement<"u"?EW({key:"css"}):null);q_.Provider;var K_=function(t){return N.forwardRef(function(n,r){var o=N.useContext(q_);return t(n,o,r)})},Q_=k.createContext({}),th={}.hasOwnProperty,Jf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",DW=function(t,n){var r={};for(var o in n)th.call(n,o)&&(r[o]=n[o]);return r[Jf]=t,r},FW=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return eh(n,r,o),J_(function(){return U_(n,r,o)}),null},jW=K_(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Jf],i=[r],s="";typeof e.className=="string"?s=Y_(t.registered,i,e.className):e.className!=null&&(s=e.className+" ");var a=gc(i,void 0,k.useContext(Q_));s+=t.key+"-"+a.name;var l={};for(var c in e)th.call(e,c)&&c!=="css"&&c!==Jf&&(l[c]=e[c]);return l.className=s,n&&(l.ref=n),k.createElement(k.Fragment,null,k.createElement(FW,{cache:t,serialized:a,isStringTag:typeof o=="string"}),k.createElement(o,l))}),LW=jW,le=function(t,n){var r=arguments;if(n==null||!th.call(n,"css"))return k.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=LW,i[1]=DW(t,n);for(var s=2;s<o;s++)i[s]=r[s];return k.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(le||(le={}));function nh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gc(t)}function mc(){var e=nh.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var BW=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,zW=W_(function(e){return BW.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),VW=zW,GW=function(t){return t!=="theme"},py=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?VW:GW},hy=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},$W=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return eh(n,r,o),J_(function(){return U_(n,r,o)}),null},HW=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=hy(t,n,r),l=a||py(o),c=!l("as");return function(){var u=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&f.push("label:"+i+";"),u[0]==null||u[0].raw===void 0)f.push.apply(f,u);else{var d=u[0];f.push(d[0]);for(var p=u.length,g=1;g<p;g++)f.push(u[g],d[g])}var h=K_(function(y,m,x){var v=c&&y.as||o,C="",S=[],E=y;if(y.theme==null){E={};for(var I in y)E[I]=y[I];E.theme=k.useContext(Q_)}typeof y.className=="string"?C=Y_(m.registered,S,y.className):y.className!=null&&(C=y.className+" ");var P=gc(f.concat(S),m.registered,E);C+=m.key+"-"+P.name,s!==void 0&&(C+=" "+s);var M=c&&a===void 0?py(v):l,w={};for(var R in y)c&&R==="as"||M(R)&&(w[R]=y[R]);return w.className=C,x&&(w.ref=x),k.createElement(k.Fragment,null,k.createElement($W,{cache:m,serialized:P,isStringTag:typeof v=="string"}),k.createElement(v,w))});return h.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=o,h.__emotion_styles=f,h.__emotion_forwardProp=a,Object.defineProperty(h,"toString",{value:function(){return"."+s}}),h.withComponent=function(y,m){var x=e(y,ce({},n,m,{shouldForwardProp:hy(h,m,!0)}));return x.apply(void 0,f)},h}},WW=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],qf=HW.bind(null);WW.forEach(function(e){qf[e]=qf(e)});/**
|
|
747
|
+
* @mui/styled-engine v7.0.2
|
|
748
|
+
*
|
|
749
|
+
* @license MIT
|
|
750
|
+
* This source code is licensed under the MIT license found in the
|
|
751
|
+
* LICENSE file in the root directory of this source tree.
|
|
752
|
+
*/function XW(e,t){const n=qf(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
753
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function YW(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const gy=[];function my(e){return gy[0]=e,gc(gy)}const UW=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function ZW(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=UW(t),s=Object.keys(i);function a(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function c(d,p){const g=s.indexOf(p);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:p)-r/100}${n})`}function u(d){return s.indexOf(d)+1<s.length?c(d,s[s.indexOf(d)+1]):a(d)}function f(d){const p=s.indexOf(d);return p===0?a(s[1]):p===s.length-1?l(s[p]):c(d,s[s.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:s,values:i,up:a,down:l,between:c,only:u,not:f,unit:n,...o}}const JW={borderRadius:4};function eS(e=8,t=Zp({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" "));return n.mui=!0,n}function qW(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function tS(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...s}=e,a=ZW(n),l=eS(o);let c=Pt({breakpoints:a,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...JW,...i}},s);return c=aH(c),c.applyStyles=qW,c=t.reduce((u,f)=>Pt(u,f),c),c.unstable_sxConfig={...fc,...s==null?void 0:s.unstable_sxConfig},c.unstable_sx=function(f){return zo({sx:f,theme:this})},c}const yy=e=>e,KW=()=>{let e=yy;return{configure(t){e=t},generate(t){return e(t)},reset(){e=yy}}},QW=KW(),eX={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sn(e,t,n="Mui"){const r=eX[t];return r?`${n}-${r}`:`${QW.generate(e)}-${t}`}function En(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=sn(e,o,n)}),r}function nS(e,t=""){return e.displayName||e.name||t}function by(e,t,n){const r=nS(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function tX(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nS(e,"Component");if(typeof e=="object")switch(e.$$typeof){case nl.ForwardRef:return by(e,e.render,"ForwardRef");case nl.Memo:return by(e,e.type,"memo");default:return}}}function rS(e){const{variants:t,...n}=e,r={variants:t,style:my(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=my(o.style))}),r}const nX=tS();function Tu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function rX(e){return e?(t,n)=>n[e]:null}function oX(e,t,n){e.theme=lX(e.theme)?n:e.theme[t]||e.theme}function Ea(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Ea(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return oS(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function oS(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const s=t[i];if(typeof s.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!s.props(r))continue}else for(const a in s.props)if(e[a]!==s.props[a]&&((o=e.ownerState)==null?void 0:o[a])!==s.props[a])continue e;typeof s.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(s.style(r))):n.push(s.style)}return n}function iX(e={}){const{themeId:t,defaultTheme:n=nX,rootShouldForwardProp:r=Tu,slotShouldForwardProp:o=Tu}=e;function i(a){oX(a,t,n)}return(a,l={})=>{YW(a,S=>S.filter(E=>E!==zo));const{name:c,slot:u,skipVariantsResolver:f,skipSx:d,overridesResolver:p=rX(iS(u)),...g}=l,h=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=d||!1;let m=Tu;u==="Root"||u==="root"?m=r:u?m=o:cX(a)&&(m=void 0);const x=XW(a,{shouldForwardProp:m,label:aX(c,u),...g}),v=S=>{if(typeof S=="function"&&S.__emotion_real!==S)return function(I){return Ea(I,S)};if(Pn(S)){const E=rS(S);return E.variants?function(P){return Ea(P,E)}:E.style}return S},C=(...S)=>{const E=[],I=S.map(v),P=[];if(E.push(i),c&&p&&P.push(function(O){var D,z;const A=(z=(D=O.theme.components)==null?void 0:D[c])==null?void 0:z.styleOverrides;if(!A)return null;const j={};for(const V in A)j[V]=Ea(O,A[V]);return p(O,j)}),c&&!h&&P.push(function(O){var j,D;const L=O.theme,A=(D=(j=L==null?void 0:L.components)==null?void 0:j[c])==null?void 0:D.variants;return A?oS(O,A):null}),y||P.push(zo),Array.isArray(I[0])){const R=I.shift(),O=new Array(E.length).fill(""),L=new Array(P.length).fill("");let A;A=[...O,...R,...L],A.raw=[...O,...R.raw,...L],E.unshift(A)}const M=[...E,...I,...P],w=x(...M);return a.muiName&&(w.muiName=a.muiName),process.env.NODE_ENV!=="production"&&(w.displayName=sX(c,u,a)),w};return x.withConfig&&(C.withConfig=x.withConfig),C}}function sX(e,t,n){return e?`${e}${lt(t||"")}`:`Styled(${tX(n)})`}function aX(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${iS(t||"Root")}`),n}function lX(e){for(const t in e)return!1;return!0}function cX(e){return typeof e=="string"&&e.charCodeAt(0)>96}function iS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Kf(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],s=t[o];if(!s)n[o]=i||{};else if(!i)n[o]=s;else{n[o]={...s};for(const a in i)if(Object.prototype.hasOwnProperty.call(i,a)){const l=a;n[o][l]=Kf(i[l],s[l])}}}else n[o]===void 0&&(n[o]=e[o])}return n}const uX=typeof window<"u"?k.useLayoutEffect:k.useEffect;function fX(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function rh(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),fX(e,t,n)}function dX(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function yr(e){if(e.type)return e;if(e.charAt(0)==="#")return yr(dX(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
754
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:mr(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
755
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:mr(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const pX=e=>{const t=yr(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},bi=(e,t)=>{try{return pX(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function yc(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function sS(e){e=yr(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(c,u=(c+n/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),yc({type:a,values:l})}function Qf(e){e=yr(e);let t=e.type==="hsl"||e.type==="hsla"?yr(sS(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function vy(e,t){const n=Qf(e),r=Qf(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function qi(e,t){return e=yr(e),t=rh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,yc(e)}function ea(e,t,n){try{return qi(e,t)}catch{return e}}function bc(e,t){if(e=yr(e),t=rh(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return yc(e)}function Oe(e,t,n){try{return bc(e,t)}catch{return e}}function vc(e,t){if(e=yr(e),t=rh(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return yc(e)}function Me(e,t,n){try{return vc(e,t)}catch{return e}}function hX(e,t=.15){return Qf(e)>.5?bc(e,t):vc(e,t)}function ta(e,t,n){try{return hX(e,t)}catch{return e}}function gX(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function mX(e){const{prototype:t={}}=e;return!!t.isReactComponent}function yX(e,t,n,r,o){const i=e[t],s=o||t;if(i==null||typeof window>"u")return null;let a;return typeof i=="function"&&!mX(i)&&(a="Did you accidentally provide a plain function component instead?"),a!==void 0?new Error(`Invalid ${r} \`${s}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${a} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const bX=gX(B.elementType,yX),vX=B.oneOfType([B.func,B.object]);function Ia(e){const t=k.useRef(e);return uX(()=>{t.current=e}),k.useRef((...n)=>(0,t.current)(...n)).current}function ed(...e){const t=k.useRef(void 0),n=k.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(r);return typeof a=="function"?a:()=>{s(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return k.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}const xy={};function aS(e,t){const n=k.useRef(xy);return n.current===xy&&(n.current=e(t)),n}const xX=[];function wX(e){k.useEffect(e,xX)}class oh{constructor(){ti(this,"currentId",null);ti(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});ti(this,"disposeEffect",()=>this.clear)}static create(){return new oh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function CX(){const e=aS(oh.create).current;return wX(e.disposeEffect),e}function wy(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
756
|
+
`))}return!1}function _X(e){return typeof e=="string"}function SX(e,t,n){return e===void 0||_X(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function EX(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Cy(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function IX(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const p=Ke(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},h={...n,...o,...r};return p.length>0&&(h.className=p),Object.keys(g).length>0&&(h.style=g),{props:h,internalRef:void 0}}const s=EX({...o,...r}),a=Cy(r),l=Cy(o),c=t(s),u=Ke(c==null?void 0:c.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),f={...c==null?void 0:c.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},d={...c,...n,...l,...a};return u.length>0&&(d.className=u),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:c.ref}}function kX(e,t,n){return typeof e=="function"?e(t,n):e}const AX=k.createContext(void 0);process.env.NODE_ENV!=="production"&&(B.node,B.object);function RX(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Kf(o.defaultProps,r):!o.styleOverrides&&!o.variants?Kf(o,r):r}function TX({props:e,name:t}){const n=k.useContext(AX);return RX({props:e,name:t,theme:{components:n}})}const _y={theme:void 0};function NX(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(_y.theme=o.theme,i=rS(e(_y)),t=i,n=o.theme),i}}function PX(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const Sy=(e,t,n,r=[])=>{let o=e;t.forEach((i,s)=>{s===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},OX=(e,t,n)=>{function r(o,i=[],s=[]){Object.entries(o).forEach(([a,l])=>{(!n||n&&!n([...i,a]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...i,a],Array.isArray(l)?[...s,a]:s):t([...i,a],l,s))})}r(e)},MX=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Nu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},s={};return OX(e,(a,l,c)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(a,l))){const u=`--${n?`${n}-`:""}${a.join("-")}`,f=MX(a,l);Object.assign(o,{[u]:f}),Sy(i,a,`var(${u})`,c),Sy(s,a,`var(${u}, ${f})`,c)}},a=>a[0]==="vars"),{css:o,vars:i,varsWithDefaults:s}}function DX(e,t={}){const{getSelector:n=y,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:s,defaultColorScheme:a="light",...l}=e,{vars:c,css:u,varsWithDefaults:f}=Nu(l,t);let d=f;const p={},{[a]:g,...h}=i;if(Object.entries(h||{}).forEach(([v,C])=>{const{vars:S,css:E,varsWithDefaults:I}=Nu(C,t);d=Pt(d,I),p[v]={css:E,vars:S}}),g){const{css:v,vars:C,varsWithDefaults:S}=Nu(g,t);d=Pt(d,S),p[a]={css:v,vars:C}}function y(v,C){var E,I;let S=o;if(o==="class"&&(S=".%s"),o==="data"&&(S="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(S=`[${o}="%s"]`),v){if(S==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((I=(E=i[v])==null?void 0:E.palette)==null?void 0:I.mode)||v})`]:{":root":C}};if(S)return e.defaultColorScheme===v?`:root, ${S.replace("%s",String(v))}`:S.replace("%s",String(v))}return":root"}return{vars:d,generateThemeVars:()=>{let v={...c};return Object.entries(p).forEach(([,{vars:C}])=>{v=Pt(v,C)}),v},generateStyleSheets:()=>{var P,M;const v=[],C=e.defaultColorScheme||"light";function S(w,R){Object.keys(R).length&&v.push(typeof w=="string"?{[w]:{...R}}:w)}S(n(void 0,{...u}),u);const{[C]:E,...I}=p;if(E){const{css:w}=E,R=(M=(P=i[C])==null?void 0:P.palette)==null?void 0:M.mode,O=!r&&R?{colorScheme:R,...w}:{...w};S(n(C,{...O}),O)}return Object.entries(I).forEach(([w,{css:R}])=>{var A,j;const O=(j=(A=i[w])==null?void 0:A.palette)==null?void 0:j.mode,L=!r&&O?{colorScheme:O,...R}:{...R};S(n(w,{...L}),L)}),v}}}function FX(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const Ki={black:"#000",white:"#fff"},jX={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ao={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},di={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},co={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},uo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function lS(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ki.white,default:Ki.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const LX=lS();function cS(){return{text:{primary:Ki.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ki.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ey=cS();function Iy(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=vc(e.main,o):t==="dark"&&(e.dark=bc(e.main,i)))}function BX(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function zX(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function VX(e="light"){return e==="dark"?{main:ao[500],light:ao[300],dark:ao[700]}:{main:ao[700],light:ao[400],dark:ao[800]}}function GX(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function $X(e="light"){return e==="dark"?{main:uo[400],light:uo[300],dark:uo[700]}:{main:uo[800],light:uo[500],dark:uo[900]}}function HX(e="light"){return e==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:"#ed6c02",light:di[500],dark:di[900]}}function ih(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||BX(t),s=e.secondary||zX(t),a=e.error||VX(t),l=e.info||GX(t),c=e.success||$X(t),u=e.warning||HX(t);function f(h){const y=vy(h,Ey.text.primary)>=n?Ey.text.primary:LX.text.primary;if(process.env.NODE_ENV!=="production"){const m=vy(h,y);m<3&&console.error([`MUI: The contrast ratio of ${m}:1 for ${y} on ${h}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
757
|
+
`))}return y}const d=({color:h,name:y,mainShade:m=500,lightShade:x=300,darkShade:v=700})=>{if(h={...h},!h.main&&h[m]&&(h.main=h[m]),!h.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
758
|
+
The color object needs to have a \`main\` property or a \`${m}\` property.`:mr(11,y?` (${y})`:"",m));if(typeof h.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
|
|
759
|
+
\`color.main\` should be a string, but \`${JSON.stringify(h.main)}\` was provided instead.
|
|
760
|
+
|
|
761
|
+
Did you intend to use one of the following approaches?
|
|
762
|
+
|
|
763
|
+
import { green } from "@mui/material/colors";
|
|
764
|
+
|
|
765
|
+
const theme1 = createTheme({ palette: {
|
|
766
|
+
primary: green,
|
|
767
|
+
} });
|
|
768
|
+
|
|
769
|
+
const theme2 = createTheme({ palette: {
|
|
770
|
+
primary: { main: green[500] },
|
|
771
|
+
} });`:mr(12,y?` (${y})`:"",JSON.stringify(h.main)));return Iy(h,"light",x,r),Iy(h,"dark",v,r),h.contrastText||(h.contrastText=f(h.main)),h};let p;return t==="light"?p=lS():t==="dark"&&(p=cS()),process.env.NODE_ENV!=="production"&&(p||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Pt({common:{...Ki},mode:t,primary:d({color:i,name:"primary"}),secondary:d({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:a,name:"error"}),warning:d({color:u,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:c,name:"success"}),grey:jX,contrastThreshold:n,getContrastText:f,augmentColor:d,tonalOffset:r,...p},o)}function WX(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function XX(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function YX(e){return Math.round(e*1e5)/1e5}const ky={textTransform:"uppercase"},Ay='"Roboto", "Helvetica", "Arial", sans-serif';function UX(e,t){const{fontFamily:n=Ay,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:s=500,fontWeightBold:a=700,htmlFontSize:l=16,allVariants:c,pxToRem:u,...f}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const d=r/14,p=u||(y=>`${y/l*d}rem`),g=(y,m,x,v,C)=>({fontFamily:n,fontWeight:y,fontSize:p(m),lineHeight:x,...n===Ay?{letterSpacing:`${YX(v/m)}em`}:{},...C,...c}),h={h1:g(o,96,1.167,-1.5),h2:g(o,60,1.2,-.5),h3:g(i,48,1.167,0),h4:g(i,34,1.235,.25),h5:g(i,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(s,14,1.75,.4,ky),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,ky),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pt({htmlFontSize:l,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:s,fontWeightBold:a,...h},f,{clone:!1})}const ZX=.2,JX=.14,qX=.12;function Be(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${ZX})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${JX})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qX})`].join(",")}const KX=["none",Be(0,2,1,-1,0,1,1,0,0,1,3,0),Be(0,3,1,-2,0,2,2,0,0,1,5,0),Be(0,3,3,-2,0,3,4,0,0,1,8,0),Be(0,2,4,-1,0,4,5,0,0,1,10,0),Be(0,3,5,-1,0,5,8,0,0,1,14,0),Be(0,3,5,-1,0,6,10,0,0,1,18,0),Be(0,4,5,-2,0,7,10,1,0,2,16,1),Be(0,5,5,-3,0,8,10,1,0,3,14,2),Be(0,5,6,-3,0,9,12,1,0,3,16,2),Be(0,6,6,-3,0,10,14,1,0,4,18,3),Be(0,6,7,-4,0,11,15,1,0,4,20,3),Be(0,7,8,-4,0,12,17,2,0,5,22,4),Be(0,7,8,-4,0,13,19,2,0,5,24,4),Be(0,7,9,-4,0,14,21,2,0,5,26,4),Be(0,8,9,-5,0,15,22,2,0,6,28,5),Be(0,8,10,-5,0,16,24,2,0,6,30,5),Be(0,8,11,-5,0,17,26,2,0,6,32,5),Be(0,9,11,-5,0,18,28,2,0,7,34,6),Be(0,9,12,-6,0,19,29,2,0,7,36,6),Be(0,10,13,-6,0,20,31,3,0,8,38,7),Be(0,10,13,-6,0,21,33,3,0,8,40,7),Be(0,10,14,-6,0,22,35,3,0,8,42,7),Be(0,11,14,-7,0,23,36,3,0,9,44,8),Be(0,11,15,-7,0,24,38,3,0,9,46,8)],QX={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},e8={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ry(e){return`${Math.round(e)}ms`}function t8(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function n8(e){const t={...QX,...e.easing},n={...e8,...e.duration};return{getAutoHeightDuration:t8,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0,...c}=i;if(process.env.NODE_ENV!=="production"){const u=d=>typeof d=="string",f=d=>!Number.isNaN(parseFloat(d));!u(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(s)&&!u(s)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${s}.`),u(a)||console.error('MUI: Argument "easing" must be a string.'),!f(l)&&!u(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
772
|
+
`)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Ry(s)} ${a} ${typeof l=="string"?l:Ry(l)}`).join(",")},...e,easing:t,duration:n}}const r8={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function o8(e){return Pn(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function uS(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[s,a]=o[i];!o8(a)||s.startsWith("unstable_")?delete r[s]:Pn(a)&&(r[s]={...a},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
773
|
+
|
|
774
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
775
|
+
|
|
776
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
777
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
778
|
+
|
|
779
|
+
export default theme;`}function td(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:s={},typography:a={},shape:l,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":mr(20));const u=ih(i),f=tS(e);let d=Pt(f,{mixins:XX(f.breakpoints,r),palette:u,shadows:KX.slice(),typography:UX(u,a),transitions:n8(s),zIndex:{...r8}});if(d=Pt(d,c),d=t.reduce((p,g)=>Pt(p,g),d),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],g=(h,y)=>{let m;for(m in h){const x=h[m];if(p.includes(m)&&Object.keys(x).length>0){if(process.env.NODE_ENV!=="production"){const v=sn("",m);console.error([`MUI: The \`${y}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:x}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
780
|
+
`))}h[m]={}}}};Object.keys(d.components).forEach(h=>{const y=d.components[h].styleOverrides;y&&h.startsWith("Mui")&&g(y,h)})}return d.unstable_sxConfig={...fc,...c==null?void 0:c.unstable_sxConfig},d.unstable_sx=function(g){return zo({sx:g,theme:this})},d.toRuntimeSource=uS,d}function i8(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const s8=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=i8(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function fS(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function dS(e){return e==="dark"?s8:[]}function a8(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=ih(t);return{palette:i,opacity:{...fS(i.mode),...n},overlays:r||dS(i.mode),...o}}function l8(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const c8=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],u8=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return c8(e.cssVarPrefix).forEach(a=>{s[a]=n[a],delete n[a]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:i?{[i.replace("%s",t)]:s,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function f8(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function q(e,t,n){!e[t]&&n&&(e[t]=n)}function vi(e){return typeof e!="string"||!e.startsWith("hsl")?e:sS(e)}function Tn(e,t){`${t}Channel`in e||(e[`${t}Channel`]=bi(vi(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
781
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function d8(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ln=e=>{try{return e()}catch{}},p8=(e="mui")=>PX(e);function Pu(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=a8({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...s}=td({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...fS(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||dS(o)},s}function h8(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:s=l8,colorSchemeSelector:a=n.light&&n.dark?"media":void 0,rootSelector:l=":root",...c}=e,u=Object.keys(n)[0],f=r||(n.light&&u!=="light"?"light":u),d=p8(i),{[f]:p,light:g,dark:h,...y}=n,m={...y};let x=p;if((f==="dark"&&!("dark"in n)||f==="light"&&!("light"in n))&&(x=!0),!x)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`:mr(21,f));const v=Pu(m,x,c,f);g&&!m.light&&Pu(m,g,void 0,"light"),h&&!m.dark&&Pu(m,h,void 0,"dark");let C={defaultColorScheme:f,...v,cssVarPrefix:i,colorSchemeSelector:a,rootSelector:l,getCssVar:d,colorSchemes:m,font:{...WX(v.typography),...v.font},spacing:d8(c.spacing)};Object.keys(C.colorSchemes).forEach(M=>{const w=C.colorSchemes[M].palette,R=O=>{const L=O.split("-"),A=L[1],j=L[2];return d(O,w[A][j])};if(w.mode==="light"&&(q(w.common,"background","#fff"),q(w.common,"onBackground","#000")),w.mode==="dark"&&(q(w.common,"background","#000"),q(w.common,"onBackground","#fff")),f8(w,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),w.mode==="light"){q(w.Alert,"errorColor",Oe(w.error.light,.6)),q(w.Alert,"infoColor",Oe(w.info.light,.6)),q(w.Alert,"successColor",Oe(w.success.light,.6)),q(w.Alert,"warningColor",Oe(w.warning.light,.6)),q(w.Alert,"errorFilledBg",R("palette-error-main")),q(w.Alert,"infoFilledBg",R("palette-info-main")),q(w.Alert,"successFilledBg",R("palette-success-main")),q(w.Alert,"warningFilledBg",R("palette-warning-main")),q(w.Alert,"errorFilledColor",ln(()=>w.getContrastText(w.error.main))),q(w.Alert,"infoFilledColor",ln(()=>w.getContrastText(w.info.main))),q(w.Alert,"successFilledColor",ln(()=>w.getContrastText(w.success.main))),q(w.Alert,"warningFilledColor",ln(()=>w.getContrastText(w.warning.main))),q(w.Alert,"errorStandardBg",Me(w.error.light,.9)),q(w.Alert,"infoStandardBg",Me(w.info.light,.9)),q(w.Alert,"successStandardBg",Me(w.success.light,.9)),q(w.Alert,"warningStandardBg",Me(w.warning.light,.9)),q(w.Alert,"errorIconColor",R("palette-error-main")),q(w.Alert,"infoIconColor",R("palette-info-main")),q(w.Alert,"successIconColor",R("palette-success-main")),q(w.Alert,"warningIconColor",R("palette-warning-main")),q(w.AppBar,"defaultBg",R("palette-grey-100")),q(w.Avatar,"defaultBg",R("palette-grey-400")),q(w.Button,"inheritContainedBg",R("palette-grey-300")),q(w.Button,"inheritContainedHoverBg",R("palette-grey-A100")),q(w.Chip,"defaultBorder",R("palette-grey-400")),q(w.Chip,"defaultAvatarColor",R("palette-grey-700")),q(w.Chip,"defaultIconColor",R("palette-grey-700")),q(w.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),q(w.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),q(w.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),q(w.LinearProgress,"primaryBg",Me(w.primary.main,.62)),q(w.LinearProgress,"secondaryBg",Me(w.secondary.main,.62)),q(w.LinearProgress,"errorBg",Me(w.error.main,.62)),q(w.LinearProgress,"infoBg",Me(w.info.main,.62)),q(w.LinearProgress,"successBg",Me(w.success.main,.62)),q(w.LinearProgress,"warningBg",Me(w.warning.main,.62)),q(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.11)`),q(w.Slider,"primaryTrack",Me(w.primary.main,.62)),q(w.Slider,"secondaryTrack",Me(w.secondary.main,.62)),q(w.Slider,"errorTrack",Me(w.error.main,.62)),q(w.Slider,"infoTrack",Me(w.info.main,.62)),q(w.Slider,"successTrack",Me(w.success.main,.62)),q(w.Slider,"warningTrack",Me(w.warning.main,.62));const O=ta(w.background.default,.8);q(w.SnackbarContent,"bg",O),q(w.SnackbarContent,"color",ln(()=>w.getContrastText(O))),q(w.SpeedDialAction,"fabHoverBg",ta(w.background.paper,.15)),q(w.StepConnector,"border",R("palette-grey-400")),q(w.StepContent,"border",R("palette-grey-400")),q(w.Switch,"defaultColor",R("palette-common-white")),q(w.Switch,"defaultDisabledColor",R("palette-grey-100")),q(w.Switch,"primaryDisabledColor",Me(w.primary.main,.62)),q(w.Switch,"secondaryDisabledColor",Me(w.secondary.main,.62)),q(w.Switch,"errorDisabledColor",Me(w.error.main,.62)),q(w.Switch,"infoDisabledColor",Me(w.info.main,.62)),q(w.Switch,"successDisabledColor",Me(w.success.main,.62)),q(w.Switch,"warningDisabledColor",Me(w.warning.main,.62)),q(w.TableCell,"border",Me(ea(w.divider,1),.88)),q(w.Tooltip,"bg",ea(w.grey[700],.92))}if(w.mode==="dark"){q(w.Alert,"errorColor",Me(w.error.light,.6)),q(w.Alert,"infoColor",Me(w.info.light,.6)),q(w.Alert,"successColor",Me(w.success.light,.6)),q(w.Alert,"warningColor",Me(w.warning.light,.6)),q(w.Alert,"errorFilledBg",R("palette-error-dark")),q(w.Alert,"infoFilledBg",R("palette-info-dark")),q(w.Alert,"successFilledBg",R("palette-success-dark")),q(w.Alert,"warningFilledBg",R("palette-warning-dark")),q(w.Alert,"errorFilledColor",ln(()=>w.getContrastText(w.error.dark))),q(w.Alert,"infoFilledColor",ln(()=>w.getContrastText(w.info.dark))),q(w.Alert,"successFilledColor",ln(()=>w.getContrastText(w.success.dark))),q(w.Alert,"warningFilledColor",ln(()=>w.getContrastText(w.warning.dark))),q(w.Alert,"errorStandardBg",Oe(w.error.light,.9)),q(w.Alert,"infoStandardBg",Oe(w.info.light,.9)),q(w.Alert,"successStandardBg",Oe(w.success.light,.9)),q(w.Alert,"warningStandardBg",Oe(w.warning.light,.9)),q(w.Alert,"errorIconColor",R("palette-error-main")),q(w.Alert,"infoIconColor",R("palette-info-main")),q(w.Alert,"successIconColor",R("palette-success-main")),q(w.Alert,"warningIconColor",R("palette-warning-main")),q(w.AppBar,"defaultBg",R("palette-grey-900")),q(w.AppBar,"darkBg",R("palette-background-paper")),q(w.AppBar,"darkColor",R("palette-text-primary")),q(w.Avatar,"defaultBg",R("palette-grey-600")),q(w.Button,"inheritContainedBg",R("palette-grey-800")),q(w.Button,"inheritContainedHoverBg",R("palette-grey-700")),q(w.Chip,"defaultBorder",R("palette-grey-700")),q(w.Chip,"defaultAvatarColor",R("palette-grey-300")),q(w.Chip,"defaultIconColor",R("palette-grey-300")),q(w.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),q(w.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),q(w.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),q(w.LinearProgress,"primaryBg",Oe(w.primary.main,.5)),q(w.LinearProgress,"secondaryBg",Oe(w.secondary.main,.5)),q(w.LinearProgress,"errorBg",Oe(w.error.main,.5)),q(w.LinearProgress,"infoBg",Oe(w.info.main,.5)),q(w.LinearProgress,"successBg",Oe(w.success.main,.5)),q(w.LinearProgress,"warningBg",Oe(w.warning.main,.5)),q(w.Skeleton,"bg",`rgba(${R("palette-text-primaryChannel")} / 0.13)`),q(w.Slider,"primaryTrack",Oe(w.primary.main,.5)),q(w.Slider,"secondaryTrack",Oe(w.secondary.main,.5)),q(w.Slider,"errorTrack",Oe(w.error.main,.5)),q(w.Slider,"infoTrack",Oe(w.info.main,.5)),q(w.Slider,"successTrack",Oe(w.success.main,.5)),q(w.Slider,"warningTrack",Oe(w.warning.main,.5));const O=ta(w.background.default,.98);q(w.SnackbarContent,"bg",O),q(w.SnackbarContent,"color",ln(()=>w.getContrastText(O))),q(w.SpeedDialAction,"fabHoverBg",ta(w.background.paper,.15)),q(w.StepConnector,"border",R("palette-grey-600")),q(w.StepContent,"border",R("palette-grey-600")),q(w.Switch,"defaultColor",R("palette-grey-300")),q(w.Switch,"defaultDisabledColor",R("palette-grey-600")),q(w.Switch,"primaryDisabledColor",Oe(w.primary.main,.55)),q(w.Switch,"secondaryDisabledColor",Oe(w.secondary.main,.55)),q(w.Switch,"errorDisabledColor",Oe(w.error.main,.55)),q(w.Switch,"infoDisabledColor",Oe(w.info.main,.55)),q(w.Switch,"successDisabledColor",Oe(w.success.main,.55)),q(w.Switch,"warningDisabledColor",Oe(w.warning.main,.55)),q(w.TableCell,"border",Oe(ea(w.divider,1),.68)),q(w.Tooltip,"bg",ea(w.grey[700],.92))}Tn(w.background,"default"),Tn(w.background,"paper"),Tn(w.common,"background"),Tn(w.common,"onBackground"),Tn(w,"divider"),Object.keys(w).forEach(O=>{const L=w[O];O!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&q(w[O],"mainChannel",bi(vi(L.main))),L.light&&q(w[O],"lightChannel",bi(vi(L.light))),L.dark&&q(w[O],"darkChannel",bi(vi(L.dark))),L.contrastText&&q(w[O],"contrastTextChannel",bi(vi(L.contrastText))),O==="text"&&(Tn(w[O],"primary"),Tn(w[O],"secondary")),O==="action"&&(L.active&&Tn(w[O],"active"),L.selected&&Tn(w[O],"selected")))})}),C=t.reduce((M,w)=>Pt(M,w),C);const S={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:s,getSelector:u8(C)},{vars:E,generateThemeVars:I,generateStyleSheets:P}=DX(C,S);return C.vars=E,Object.entries(C.colorSchemes[C.defaultColorScheme]).forEach(([M,w])=>{C[M]=w}),C.generateThemeVars=I,C.generateStyleSheets=P,C.generateSpacing=function(){return eS(c.spacing,Zp(this))},C.getColorSchemeSelector=FX(a),C.spacing=C.generateSpacing(),C.shouldSkipGeneratingVar=s,C.unstable_sxConfig={...fc,...c==null?void 0:c.unstable_sxConfig},C.unstable_sx=function(w){return zo({sx:w,theme:this})},C.toRuntimeSource=uS,C}function Ty(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:ih({...n===!0?{}:n.palette,mode:t})})}function g8(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...s}=e,a=i||"light",l=o==null?void 0:o[a],c={...o,...n?{[a]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return td(e,...t);let u=n;"palette"in e||c[a]&&(c[a]!==!0?u=c[a].palette:a==="dark"&&(u={mode:"dark"}));const f=td({...e,palette:u},...t);return f.defaultColorScheme=a,f.colorSchemes=c,f.palette.mode==="light"&&(f.colorSchemes.light={...c.light!==!0&&c.light,palette:f.palette},Ty(f,"dark",c.dark)),f.palette.mode==="dark"&&(f.colorSchemes.dark={...c.dark!==!0&&c.dark,palette:f.palette},Ty(f,"light",c.light)),f}return!n&&!("light"in c)&&a==="light"&&(c.light=!0),h8({...s,colorSchemes:c,defaultColorScheme:a,...typeof r!="boolean"&&r},...t)}const m8=g8(),y8="$$material";function b8(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const v8=e=>b8(e)&&e!=="classes",$t=iX({themeId:y8,defaultTheme:m8,rootShouldForwardProp:v8}),Ko=NX;process.env.NODE_ENV!=="production"&&(B.node,B.object.isRequired);function In(e){return TX(e)}function x8(e){return sn("MuiTable",e)}En("MuiTable",["root","stickyHeader"]);const w8=e=>{const{classes:t,stickyHeader:n}=e;return Zn({root:["root",n&&"stickyHeader"]},x8,t)},C8=$t("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(Ko(({theme:e})=>({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"},variants:[{props:({ownerState:t})=>t.stickyHeader,style:{borderCollapse:"separate"}}]}))),Ny="table",pS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTable"}),{className:o,component:i=Ny,padding:s="normal",size:a="medium",stickyHeader:l=!1,...c}=r,u={...r,component:i,padding:s,size:a,stickyHeader:l},f=w8(u),d=k.useMemo(()=>({padding:s,size:a,stickyHeader:l}),[s,a,l]);return b.jsx(Up.Provider,{value:d,children:b.jsx(C8,{as:i,role:i===Ny?null:"table",ref:n,className:Ke(f.root,o),ownerState:u,...c})})});process.env.NODE_ENV!=="production"&&(pS.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,padding:B.oneOf(["checkbox","none","normal"]),size:B.oneOfType([B.oneOf(["medium","small"]),B.string]),stickyHeader:B.bool,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});const Ss=k.createContext();process.env.NODE_ENV!=="production"&&(Ss.displayName="Tablelvl2Context");function _8(e){return sn("MuiTableBody",e)}En("MuiTableBody",["root"]);const S8=e=>{const{classes:t}=e;return Zn({root:["root"]},_8,t)},E8=$t("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),I8={variant:"body"},Py="tbody",hS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableBody"}),{className:o,component:i=Py,...s}=r,a={...r,component:i},l=S8(a);return b.jsx(Ss.Provider,{value:I8,children:b.jsx(E8,{className:Ke(l.root,o),as:i,ref:n,role:i===Py?null:"rowgroup",ownerState:a,...s})})});process.env.NODE_ENV!=="production"&&(hS.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function k8(e){return sn("MuiTableCell",e)}const A8=En("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),R8=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:s}=e,a={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${lt(r)}`,o!=="normal"&&`padding${lt(o)}`,`size${lt(i)}`]};return Zn(a,k8,t)},T8=$t("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${lt(n.size)}`],n.padding!=="normal"&&t[`padding${lt(n.padding)}`],n.align!=="inherit"&&t[`align${lt(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Ko(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
782
|
+
${e.palette.mode==="light"?vc(qi(e.palette.divider,1),.88):bc(qi(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${A8.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),nd=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:s,padding:a,scope:l,size:c,sortDirection:u,variant:f,...d}=r,p=k.useContext(Up),g=k.useContext(Ss),h=g&&g.variant==="head";let y;s?y=s:y=h?"th":"td";let m=l;y==="td"?m=void 0:!m&&h&&(m="col");const x=f||g&&g.variant,v={...r,align:o,component:y,padding:a||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:u,stickyHeader:x==="head"&&p&&p.stickyHeader,variant:x},C=R8(v);let S=null;return u&&(S=u==="asc"?"ascending":"descending"),b.jsx(T8,{as:y,ref:n,className:Ke(C.root,i),"aria-sort":S,scope:m,ownerState:v,...d})});process.env.NODE_ENV!=="production"&&(nd.propTypes={align:B.oneOf(["center","inherit","justify","left","right"]),children:B.node,classes:B.object,className:B.string,component:B.elementType,padding:B.oneOf(["checkbox","none","normal"]),scope:B.string,size:B.oneOfType([B.oneOf(["medium","small"]),B.string]),sortDirection:B.oneOf(["asc","desc",!1]),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),variant:B.oneOfType([B.oneOf(["body","footer","head"]),B.string])});function N8(e){return sn("MuiTableContainer",e)}En("MuiTableContainer",["root"]);const P8=e=>{const{classes:t}=e;return Zn({root:["root"]},N8,t)},O8=$t("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),gS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableContainer"}),{className:o,component:i="div",...s}=r,a={...r,component:i},l=P8(a);return b.jsx(O8,{ref:n,as:i,className:Ke(l.root,o),ownerState:a,...s})});process.env.NODE_ENV!=="production"&&(gS.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function M8(e){return sn("MuiTableHead",e)}En("MuiTableHead",["root"]);const D8=e=>{const{classes:t}=e;return Zn({root:["root"]},M8,t)},F8=$t("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),j8={variant:"head"},Oy="thead",mS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableHead"}),{className:o,component:i=Oy,...s}=r,a={...r,component:i},l=D8(a);return b.jsx(Ss.Provider,{value:j8,children:b.jsx(F8,{as:i,className:Ke(l.root,o),ref:n,role:i===Oy?null:"rowgroup",ownerState:a,...s})})});process.env.NODE_ENV!=="production"&&(mS.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});function L8(e){return sn("MuiTableRow",e)}const My=En("MuiTableRow",["root","selected","hover","head","footer"]),B8=e=>{const{classes:t,selected:n,hover:r,head:o,footer:i}=e;return Zn({root:["root",n&&"selected",r&&"hover",o&&"head",i&&"footer"]},L8,t)},z8=$t("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(Ko(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${My.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${My.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:qi(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:qi(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),Dy="tr",rd=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableRow"}),{className:o,component:i=Dy,hover:s=!1,selected:a=!1,...l}=r,c=k.useContext(Ss),u={...r,component:i,hover:s,selected:a,head:c&&c.variant==="head",footer:c&&c.variant==="footer"},f=B8(u);return b.jsx(z8,{as:i,ref:n,className:Ke(f.root,o),role:i===Dy?null:"row",ownerState:u,...l})});process.env.NODE_ENV!=="production"&&(rd.propTypes={children:B.node,classes:B.object,className:B.string,component:B.elementType,hover:B.bool,selected:B.bool,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});class il{constructor(){ti(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new il}static use(){const t=aS(il.create).current,[n,r]=k.useState(!1);return t.shouldMount=n,t.setShouldMount=r,k.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=G8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function V8(){return il.use()}function G8(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function sh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sl(e,t){return sl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},sl(e,t)}function yS(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,sl(e,t)}const Fy=N.createContext(null);function bS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ah(e,t){var n=function(i){return t&&N.isValidElement(i)?t(i):i},r=Object.create(null);return e&&N.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function $8(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var s,a={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var c=r[l][s];a[r[l][s]]=n(c)}a[l]=n(l)}for(s=0;s<o.length;s++)a[o[s]]=n(o[s]);return a}function Mr(e,t,n){return n[t]!=null?n[t]:e.props[t]}function H8(e,t){return ah(e.children,function(n){return N.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Mr(n,"appear",e),enter:Mr(n,"enter",e),exit:Mr(n,"exit",e)})})}function W8(e,t,n){var r=ah(e.children),o=$8(t,r);return Object.keys(o).forEach(function(i){var s=o[i];if(N.isValidElement(s)){var a=i in t,l=i in r,c=t[i],u=N.isValidElement(c)&&!c.props.in;l&&(!a||u)?o[i]=N.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:Mr(s,"exit",e),enter:Mr(s,"enter",e)}):!l&&a&&!u?o[i]=N.cloneElement(s,{in:!1}):l&&a&&N.isValidElement(c)&&(o[i]=N.cloneElement(s,{onExited:n.bind(null,s),in:c.props.in,exit:Mr(s,"exit",e),enter:Mr(s,"enter",e)}))}}),o}var X8=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Y8={component:"div",childFactory:function(t){return t}},lh=function(e){yS(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var s=i.handleExited.bind(bS(i));return i.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var s=i.children,a=i.handleExited,l=i.firstRender;return{children:l?H8(o,a):W8(o,s,a),firstRender:!1}},n.handleExited=function(o,i){var s=ah(this.props.children);o.key in s||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(a){var l=ce({},a.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,s=o.childFactory,a=sh(o,["component","childFactory"]),l=this.state.contextValue,c=X8(this.state.children).map(s);return delete a.appear,delete a.enter,delete a.exit,i===null?N.createElement(Fy.Provider,{value:l},c):N.createElement(Fy.Provider,{value:l},N.createElement(i,a,c))},t}(N.Component);lh.propTypes=process.env.NODE_ENV!=="production"?{component:B.any,children:B.node,appear:B.bool,enter:B.bool,exit:B.bool,childFactory:B.func}:{};lh.defaultProps=Y8;function vS(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:s,in:a,onExited:l,timeout:c}=e,[u,f]=k.useState(!1),d=Ke(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:s,height:s,top:-(s/2)+i,left:-(s/2)+o},g=Ke(n.child,u&&n.childLeaving,r&&n.childPulsate);return!a&&!u&&f(!0),k.useEffect(()=>{if(!a&&l!=null){const h=setTimeout(l,c);return()=>{clearTimeout(h)}}},[l,a,c]),b.jsx("span",{className:d,style:p,children:b.jsx("span",{className:g})})}process.env.NODE_ENV!=="production"&&(vS.propTypes={classes:B.object.isRequired,className:B.string,in:B.bool,onExited:B.func,pulsate:B.bool,rippleSize:B.number,rippleX:B.number,rippleY:B.number,timeout:B.number.isRequired});const jt=En("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),od=550,U8=80,Z8=mc`
|
|
783
|
+
0% {
|
|
784
|
+
transform: scale(0);
|
|
785
|
+
opacity: 0.1;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
100% {
|
|
789
|
+
transform: scale(1);
|
|
790
|
+
opacity: 0.3;
|
|
791
|
+
}
|
|
792
|
+
`,J8=mc`
|
|
793
|
+
0% {
|
|
794
|
+
opacity: 1;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
100% {
|
|
798
|
+
opacity: 0;
|
|
799
|
+
}
|
|
800
|
+
`,q8=mc`
|
|
801
|
+
0% {
|
|
802
|
+
transform: scale(1);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
50% {
|
|
806
|
+
transform: scale(0.92);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
100% {
|
|
810
|
+
transform: scale(1);
|
|
811
|
+
}
|
|
812
|
+
`,K8=$t("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Q8=$t(vS,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
813
|
+
opacity: 0;
|
|
814
|
+
position: absolute;
|
|
815
|
+
|
|
816
|
+
&.${jt.rippleVisible} {
|
|
817
|
+
opacity: 0.3;
|
|
818
|
+
transform: scale(1);
|
|
819
|
+
animation-name: ${Z8};
|
|
820
|
+
animation-duration: ${od}ms;
|
|
821
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
&.${jt.ripplePulsate} {
|
|
825
|
+
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
& .${jt.child} {
|
|
829
|
+
opacity: 1;
|
|
830
|
+
display: block;
|
|
831
|
+
width: 100%;
|
|
832
|
+
height: 100%;
|
|
833
|
+
border-radius: 50%;
|
|
834
|
+
background-color: currentColor;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
& .${jt.childLeaving} {
|
|
838
|
+
opacity: 0;
|
|
839
|
+
animation-name: ${J8};
|
|
840
|
+
animation-duration: ${od}ms;
|
|
841
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
& .${jt.childPulsate} {
|
|
845
|
+
position: absolute;
|
|
846
|
+
/* @noflip */
|
|
847
|
+
left: 0px;
|
|
848
|
+
top: 0;
|
|
849
|
+
animation-name: ${q8};
|
|
850
|
+
animation-duration: 2500ms;
|
|
851
|
+
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
852
|
+
animation-iteration-count: infinite;
|
|
853
|
+
animation-delay: 200ms;
|
|
854
|
+
}
|
|
855
|
+
`,xS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:s,...a}=r,[l,c]=k.useState([]),u=k.useRef(0),f=k.useRef(null);k.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=k.useRef(!1),p=CX(),g=k.useRef(null),h=k.useRef(null),y=k.useCallback(C=>{const{pulsate:S,rippleX:E,rippleY:I,rippleSize:P,cb:M}=C;c(w=>[...w,b.jsx(Q8,{classes:{ripple:Ke(i.ripple,jt.ripple),rippleVisible:Ke(i.rippleVisible,jt.rippleVisible),ripplePulsate:Ke(i.ripplePulsate,jt.ripplePulsate),child:Ke(i.child,jt.child),childLeaving:Ke(i.childLeaving,jt.childLeaving),childPulsate:Ke(i.childPulsate,jt.childPulsate)},timeout:od,pulsate:S,rippleX:E,rippleY:I,rippleSize:P},u.current)]),u.current+=1,f.current=M},[i]),m=k.useCallback((C={},S={},E=()=>{})=>{const{pulsate:I=!1,center:P=o||S.pulsate,fakeElement:M=!1}=S;if((C==null?void 0:C.type)==="mousedown"&&d.current){d.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(d.current=!0);const w=M?null:h.current,R=w?w.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,L,A;if(P||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)O=Math.round(R.width/2),L=Math.round(R.height/2);else{const{clientX:j,clientY:D}=C.touches&&C.touches.length>0?C.touches[0]:C;O=Math.round(j-R.left),L=Math.round(D-R.top)}if(P)A=Math.sqrt((2*R.width**2+R.height**2)/3),A%2===0&&(A+=1);else{const j=Math.max(Math.abs((w?w.clientWidth:0)-O),O)*2+2,D=Math.max(Math.abs((w?w.clientHeight:0)-L),L)*2+2;A=Math.sqrt(j**2+D**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:I,rippleX:O,rippleY:L,rippleSize:A,cb:E})},p.start(U8,()=>{g.current&&(g.current(),g.current=null)})):y({pulsate:I,rippleX:O,rippleY:L,rippleSize:A,cb:E})},[o,y,p]),x=k.useCallback(()=>{m({},{pulsate:!0})},[m]),v=k.useCallback((C,S)=>{if(p.clear(),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,p.start(0,()=>{v(C,S)});return}g.current=null,c(E=>E.length>0?E.slice(1):E),f.current=S},[p]);return k.useImperativeHandle(n,()=>({pulsate:x,start:m,stop:v}),[x,m,v]),b.jsx(K8,{className:Ke(jt.root,i.root,s),ref:h,...a,children:b.jsx(lh,{component:null,exit:!0,children:l})})});process.env.NODE_ENV!=="production"&&(xS.propTypes={center:B.bool,classes:B.object,className:B.string});function e7(e){return sn("MuiButtonBase",e)}const t7=En("MuiButtonBase",["root","disabled","focusVisible"]),n7=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,s=Zn({root:["root",t&&"disabled",n&&"focusVisible"]},e7,o);return n&&r&&(s.root+=` ${r}`),s},r7=$t("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${t7.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:s,className:a,component:l="button",disabled:c=!1,disableRipple:u=!1,disableTouchRipple:f=!1,focusRipple:d=!1,focusVisibleClassName:p,LinkComponent:g="a",onBlur:h,onClick:y,onContextMenu:m,onDragLeave:x,onFocus:v,onFocusVisible:C,onKeyDown:S,onKeyUp:E,onMouseDown:I,onMouseLeave:P,onMouseUp:M,onTouchEnd:w,onTouchMove:R,onTouchStart:O,tabIndex:L=0,TouchRippleProps:A,touchRippleRef:j,type:D,...z}=r,V=k.useRef(null),F=V8(),_=ed(F.ref,j),[G,$]=k.useState(!1);c&&G&&$(!1),k.useImperativeHandle(o,()=>({focusVisible:()=>{$(!0),V.current.focus()}}),[]);const T=F.shouldMount&&!u&&!c;k.useEffect(()=>{G&&d&&!u&&F.pulsate()},[u,d,G,F]);const H=Nn(F,"start",I,f),J=Nn(F,"stop",m,f),W=Nn(F,"stop",x,f),X=Nn(F,"stop",M,f),U=Nn(F,"stop",ge=>{G&&ge.preventDefault(),P&&P(ge)},f),Q=Nn(F,"start",O,f),ne=Nn(F,"stop",w,f),oe=Nn(F,"stop",R,f),Z=Nn(F,"stop",ge=>{wy(ge.target)||$(!1),h&&h(ge)},!1),ue=Ia(ge=>{V.current||(V.current=ge.currentTarget),wy(ge.target)&&($(!0),C&&C(ge)),v&&v(ge)}),fe=()=>{const ge=V.current;return l&&l!=="button"&&!(ge.tagName==="A"&&ge.href)},Se=Ia(ge=>{d&&!ge.repeat&&G&&ge.key===" "&&F.stop(ge,()=>{F.start(ge)}),ge.target===ge.currentTarget&&fe()&&ge.key===" "&&ge.preventDefault(),S&&S(ge),ge.target===ge.currentTarget&&fe()&&ge.key==="Enter"&&!c&&(ge.preventDefault(),y&&y(ge))}),Xe=Ia(ge=>{d&&ge.key===" "&&G&&!ge.defaultPrevented&&F.stop(ge,()=>{F.pulsate(ge)}),E&&E(ge),y&&ge.target===ge.currentTarget&&fe()&&ge.key===" "&&!ge.defaultPrevented&&y(ge)});let rt=l;rt==="button"&&(z.href||z.to)&&(rt=g);const Ct={};rt==="button"?(Ct.type=D===void 0?"button":D,Ct.disabled=c):(!z.href&&!z.to&&(Ct.role="button"),c&&(Ct["aria-disabled"]=c));const _t=ed(n,V),Ht={...r,centerRipple:i,component:l,disabled:c,disableRipple:u,disableTouchRipple:f,focusRipple:d,tabIndex:L,focusVisible:G},Cr=n7(Ht);return b.jsxs(r7,{as:rt,className:Ke(Cr.root,a),ownerState:Ht,onBlur:Z,onClick:y,onContextMenu:J,onFocus:ue,onKeyDown:Se,onKeyUp:Xe,onMouseDown:H,onMouseLeave:U,onMouseUp:X,onDragLeave:W,onTouchEnd:ne,onTouchMove:oe,onTouchStart:Q,ref:_t,tabIndex:c?-1:L,type:D,...Ct,...z,children:[s,T?b.jsx(xS,{ref:_,center:i,...A}):null]})});function Nn(e,t,n,r=!1){return Ia(o=>(n&&n(o),r||e[t](o),!0))}process.env.NODE_ENV!=="production"&&(wS.propTypes={action:vX,centerRipple:B.bool,children:B.node,classes:B.object,className:B.string,component:bX,disabled:B.bool,disableRipple:B.bool,disableTouchRipple:B.bool,focusRipple:B.bool,focusVisibleClassName:B.string,href:B.any,LinkComponent:B.elementType,onBlur:B.func,onClick:B.func,onContextMenu:B.func,onDragLeave:B.func,onFocus:B.func,onFocusVisible:B.func,onKeyDown:B.func,onKeyUp:B.func,onMouseDown:B.func,onMouseLeave:B.func,onMouseUp:B.func,onTouchEnd:B.func,onTouchMove:B.func,onTouchStart:B.func,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),tabIndex:B.number,TouchRippleProps:B.object,touchRippleRef:B.oneOfType([B.func,B.shape({current:B.shape({pulsate:B.func.isRequired,start:B.func.isRequired,stop:B.func.isRequired})})]),type:B.oneOfType([B.oneOf(["button","reset","submit"]),B.string])});function o7(e){return sn("MuiSvgIcon",e)}En("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const i7=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${lt(t)}`,`fontSize${lt(n)}`]};return Zn(o,o7,r)},s7=$t("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${lt(n.color)}`],t[`fontSize${lt(n.fontSize)}`]]}})(Ko(({theme:e})=>{var t,n,r,o,i,s,a,l,c,u,f,d,p,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:h=>!h.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((s=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:s.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((u=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:u.call(c,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,h])=>h&&h.main).map(([h])=>{var y,m;return{props:{color:h},style:{color:(m=(y=(e.vars??e).palette)==null?void 0:y[h])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(d=(f=(e.vars??e).palette)==null?void 0:f.action)==null?void 0:d.active}},{props:{color:"disabled"},style:{color:(g=(p=(e.vars??e).palette)==null?void 0:p.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),al=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:s="inherit",component:a="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:u=!1,titleAccess:f,viewBox:d="0 0 24 24",...p}=r,g=k.isValidElement(o)&&o.type==="svg",h={...r,color:s,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:g},y={};u||(y.viewBox=d);const m=i7(h);return b.jsxs(s7,{as:a,className:Ke(m.root,i),focusable:"false",color:c,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n,...y,...p,...g&&o.props,ownerState:h,children:[g?o.props.children:o,f?b.jsx("title",{children:f}):null]})});process.env.NODE_ENV!=="production"&&(al.propTypes={children:B.node,classes:B.object,className:B.string,color:B.oneOfType([B.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),B.string]),component:B.elementType,fontSize:B.oneOfType([B.oneOf(["inherit","large","medium","small"]),B.string]),htmlColor:B.string,inheritViewBox:B.bool,shapeRendering:B.string,sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object]),titleAccess:B.string,viewBox:B.string});al.muiName="SvgIcon";function a7(e,t){function n(r,o){return b.jsx(al,{"data-testid":process.env.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...r,children:e})}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=al.muiName,k.memo(k.forwardRef(n))}const l7=a7(b.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function c7(e){return sn("MuiTableSortLabel",e)}const Ou=En("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]);function jy(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...l}=t,{component:c,slots:u={[e]:void 0},slotProps:f={[e]:void 0},...d}=i,p=u[e]||r,g=kX(f[e],o),{props:{component:h,...y},internalRef:m}=IX({className:n,...l,externalForwardedProps:e==="root"?d:void 0,externalSlotProps:g}),x=ed(m,g==null?void 0:g.ref,t.ref),v=e==="root"?h||c:h,C=SX(p,{...e==="root"&&!c&&!u[e]&&s,...e!=="root"&&!u[e]&&s,...y,...v&&!a&&{as:v},...v&&a&&{component:v},ref:x},o);return[p,C]}const u7=e=>{const{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${lt(n)}`],icon:["icon",`iconDirection${lt(n)}`]};return Zn(o,c7,t)},f7=$t(wS,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})(Ko(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${Ou.icon}`]:{opacity:.5}},[`&.${Ou.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${Ou.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),d7=$t("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${lt(n.direction)}`]]}})(Ko(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),CS=k.forwardRef(function(t,n){const r=In({props:t,name:"MuiTableSortLabel"}),{active:o=!1,children:i,className:s,direction:a="asc",hideSortIcon:l=!1,IconComponent:c=l7,slots:u={},slotProps:f={},...d}=r,p={...r,active:o,direction:a,hideSortIcon:l,IconComponent:c},g=u7(p),h={slots:u,slotProps:f},[y,m]=jy("root",{elementType:f7,externalForwardedProps:h,ownerState:p,className:Ke(g.root,s),ref:n}),[x,v]=jy("icon",{elementType:d7,externalForwardedProps:h,ownerState:p,className:g.icon});return b.jsxs(y,{disableRipple:!0,component:"span",...m,...d,children:[i,l&&!o?null:b.jsx(x,{as:c,...v})]})});process.env.NODE_ENV!=="production"&&(CS.propTypes={active:B.bool,children:B.node,classes:B.object,className:B.string,direction:B.oneOf(["asc","desc"]),hideSortIcon:B.bool,IconComponent:B.elementType,slotProps:B.shape({icon:B.oneOfType([B.func,B.object]),root:B.oneOfType([B.func,B.object])}),slots:B.shape({icon:B.elementType,root:B.elementType}),sx:B.oneOfType([B.arrayOf(B.oneOfType([B.func,B.object,B.bool])),B.func,B.object])});const p7=e=>{const t=[];if(e===void 0)return{header:[],rows:[]};e.data===void 0&&(e.data=[]),e.columns===void 0&&(e.data.length===0?e.columns=[]:e.columns=e.data[0].map((n,r)=>`col${r}`)),e.index===void 0&&(e.index=e.data.map((n,r)=>`row${r}`));for(let n=0;n<e.index.length;n++){const r=[e.index[n]];for(let o=0;o<e.columns.length;o++)r.push(e.data[n][o]);t.push(r)}return{header:["index",...e.columns],rows:t}},h7=({tabledata:e})=>{const t=N.useMemo(()=>p7(e),[e]),[n,r]=N.useState("asc"),[o,i]=N.useState("index");let s=t.header.indexOf(o);s===-1&&(s=0);const a=f=>{r(o===f&&n==="asc"?"desc":"asc"),i(f)},l=(f,d)=>{const p=f.map((g,h)=>[g,h]);return p.sort((g,h)=>d(g[0],h[0])),p.map(g=>g[0])},c=(f,d)=>f==="desc"?(p,g)=>g[s]<p[s]?-1:1:(p,g)=>p[s]<g[s]?-1:1,u=l(t.rows,c(n));return b.jsx(gS,{className:"tablecontainer",children:b.jsxs(pS,{size:"small",children:[b.jsx(mS,{className:"tableHead",children:b.jsx(rd,{className:"tableheadercolor",children:t.header.map(f=>b.jsx(nd,{sortDirection:o===f?n:!1,className:"tableheadercolor",children:b.jsx(CS,{active:o===f,direction:o===f?n:"asc",onClick:()=>a(f),className:"tableheadercolor",sx:{"& .MuiTableSortLabel-icon":{color:"inherit !important"}},children:f})},f))})}),b.jsx(hS,{children:u.map((f,d)=>b.jsx(rd,{children:f.map((p,g)=>b.jsx(nd,{className:g==0?"indexcol":"datacol",children:p},g))},e.index[d]))})]})})};var na={};/*!
|
|
856
|
+
* content-type
|
|
857
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
858
|
+
* MIT Licensed
|
|
859
|
+
*/var Ly;function g7(){if(Ly)return na;Ly=1;var e=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,t=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,r=/\\([\u000b\u0020-\u00ff])/g,o=/([\\"])/g,i=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;na.format=s,na.parse=a;function s(f){if(!f||typeof f!="object")throw new TypeError("argument obj is required");var d=f.parameters,p=f.type;if(!p||!i.test(p))throw new TypeError("invalid type");var g=p;if(d&&typeof d=="object")for(var h,y=Object.keys(d).sort(),m=0;m<y.length;m++){if(h=y[m],!n.test(h))throw new TypeError("invalid parameter name");g+="; "+h+"="+c(d[h])}return g}function a(f){if(!f)throw new TypeError("argument string is required");var d=typeof f=="object"?l(f):f;if(typeof d!="string")throw new TypeError("argument string is required to be a string");var p=d.indexOf(";"),g=p!==-1?d.slice(0,p).trim():d.trim();if(!i.test(g))throw new TypeError("invalid media type");var h=new u(g.toLowerCase());if(p!==-1){var y,m,x;for(e.lastIndex=p;m=e.exec(d);){if(m.index!==p)throw new TypeError("invalid parameter format");p+=m[0].length,y=m[1].toLowerCase(),x=m[2],x.charCodeAt(0)===34&&(x=x.slice(1,-1),x.indexOf("\\")!==-1&&(x=x.replace(r,"$1"))),h.parameters[y]=x}if(p!==d.length)throw new TypeError("invalid parameter format")}return h}function l(f){var d;if(typeof f.getHeader=="function"?d=f.getHeader("content-type"):typeof f.headers=="object"&&(d=f.headers&&f.headers["content-type"]),typeof d!="string")throw new TypeError("content-type header is missing from object");return d}function c(f){var d=String(f);if(n.test(d))return d;if(d.length>0&&!t.test(d))throw new TypeError("invalid parameter value");return'"'+d.replace(o,"\\$1")+'"'}function u(f){this.parameters=Object.create(null),this.type=f}return na}var m7=g7(),ho=new Map,_S=function(t){return t.cloneNode(!0)},By=function(){return window.location.protocol==="file:"},SS=function(t,n,r){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(t)&&o.readyState===2){var i=o.getResponseHeader("Content-Type");if(!i)throw new Error("Content type not found");var s=m7.parse(i).type;if(!(s==="image/svg+xml"||s==="text/plain"))throw new Error("Invalid content type: ".concat(s))}if(o.readyState===4){if(o.status===404||o.responseXML===null)throw new Error(By()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+t);if(o.status===200||By()&&o.status===0)r(null,o);else throw new Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(a){if(o.abort(),a instanceof Error)r(a,o);else throw a}},o.open("GET",t),o.withCredentials=n,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},sr={},zy=function(t,n){sr[t]=sr[t]||[],sr[t].push(n)},y7=function(t){for(var n=function(s,a){setTimeout(function(){if(Array.isArray(sr[t])){var l=ho.get(t),c=sr[t][s];l instanceof SVGSVGElement&&c(null,_S(l)),l instanceof Error&&c(l),s===sr[t].length-1&&delete sr[t]}},0)},r=0,o=sr[t].length;r<o;r++)n(r)},b7=function(t,n,r){if(ho.has(t)){var o=ho.get(t);if(o===void 0){zy(t,r);return}if(o instanceof SVGSVGElement){r(null,_S(o));return}}ho.set(t,void 0),zy(t,r),SS(t,n,function(i,s){var a;i?ho.set(t,i):((a=s.responseXML)===null||a===void 0?void 0:a.documentElement)instanceof SVGSVGElement&&ho.set(t,s.responseXML.documentElement),y7(t)})},v7=function(t,n,r){SS(t,n,function(o,i){var s;o?r(o):((s=i.responseXML)===null||s===void 0?void 0:s.documentElement)instanceof SVGSVGElement&&r(null,i.responseXML.documentElement)})},x7=0,w7=function(){return++x7},cn=[],Vy={},C7="http://www.w3.org/2000/svg",Mu="http://www.w3.org/1999/xlink",Gy=function(t,n,r,o,i,s,a){var l=t.getAttribute("data-src")||t.getAttribute("src");if(!l){a(new Error("Invalid data-src or src attribute"));return}if(cn.indexOf(t)!==-1){cn.splice(cn.indexOf(t),1),t=null;return}cn.push(t),t.setAttribute("src","");var c=o?b7:v7;c(l,i,function(u,f){if(!f){cn.splice(cn.indexOf(t),1),t=null,a(u);return}var d=t.getAttribute("id");d&&f.setAttribute("id",d);var p=t.getAttribute("title");p&&f.setAttribute("title",p);var g=t.getAttribute("width");g&&f.setAttribute("width",g);var h=t.getAttribute("height");h&&f.setAttribute("height",h);var y=Array.from(new Set(ga(ga(ga([],(f.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(t.getAttribute("class")||"").split(" "),!0))).join(" ").trim();f.setAttribute("class",y);var m=t.getAttribute("style");m&&f.setAttribute("style",m),f.setAttribute("data-src",l);var x=[].filter.call(t.attributes,function(V){return/^data-\w[\w-]*$/.test(V.name)});if(Array.prototype.forEach.call(x,function(V){V.name&&V.value&&f.setAttribute(V.name,V.value)}),r){var v={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]},C,S,E,I,P;Object.keys(v).forEach(function(V){C=V,E=v[V],S=f.querySelectorAll(C+"[id]");for(var F=function(T,H){I=S[T].id,P=I+"-"+w7();var J;Array.prototype.forEach.call(E,function(ue){J=f.querySelectorAll("["+ue+'*="'+I+'"]');for(var fe=0,Se=J.length;fe<Se;fe++){var Xe=J[fe].getAttribute(ue);Xe&&!Xe.match(new RegExp('url\\("?#'+I+'"?\\)'))||J[fe].setAttribute(ue,"url(#"+P+")")}});for(var W=f.querySelectorAll("[*|href]"),X=[],U=0,Q=W.length;U<Q;U++){var ne=W[U].getAttributeNS(Mu,"href");ne&&ne.toString()==="#"+S[T].id&&X.push(W[U])}for(var oe=0,Z=X.length;oe<Z;oe++)X[oe].setAttributeNS(Mu,"href","#"+P);S[T].id=P},_=0,G=S.length;_<G;_++)F(_)})}f.removeAttribute("xmlns:a");for(var M=f.querySelectorAll("script"),w=[],R,O,L=0,A=M.length;L<A;L++)O=M[L].getAttribute("type"),(!O||O==="application/ecmascript"||O==="application/javascript"||O==="text/javascript")&&(R=M[L].innerText||M[L].textContent,R&&w.push(R),f.removeChild(M[L]));if(w.length>0&&(n==="always"||n==="once"&&!Vy[l])){for(var j=0,D=w.length;j<D;j++)new Function(w[j])(window);Vy[l]=!0}var z=f.querySelectorAll("style");if(Array.prototype.forEach.call(z,function(V){V.textContent+=""}),f.setAttribute("xmlns",C7),f.setAttribute("xmlns:xlink",Mu),s(f),!t.parentNode){cn.splice(cn.indexOf(t),1),t=null,a(new Error("Parent node is null"));return}t.parentNode.replaceChild(f,t),cn.splice(cn.indexOf(t),1),t=null,a(null,f)})},_7=function(t,n){var r=n===void 0?{}:n,o=r.afterAll,i=o===void 0?function(){}:o,s=r.afterEach,a=s===void 0?function(){}:s,l=r.beforeEach,c=l===void 0?function(){}:l,u=r.cacheRequests,f=u===void 0?!0:u,d=r.evalScripts,p=d===void 0?"never":d,g=r.httpRequestWithCredentials,h=g===void 0?!1:g,y=r.renumerateIRIElements,m=y===void 0?!0:y;if(t&&"length"in t)for(var x=0,v=0,C=t.length;v<C;v++)Gy(t[v],p,m,f,h,c,function(S,E){a(S,E),t&&"length"in t&&t.length===++x&&i(x)});else t?Gy(t,p,m,f,h,c,function(S,E){a(S,E),i(1),t=null}):i(0)},S7=function(t){var n=(t==null?void 0:t.ownerDocument)||document;return n.defaultView||window},E7=function(t,n){for(var r in t)if(!(r in n))return!0;for(var o in n)if(t[o]!==n[o])return!0;return!1},I7=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],ra="http://www.w3.org/2000/svg",$y="http://www.w3.org/1999/xlink",ch=function(e){function t(){for(var r,o=arguments.length,i=new Array(o),s=0;s<o;s++)i[s]=arguments[s];return r=e.call.apply(e,[this].concat(i))||this,r.initialState={hasError:!1,isLoading:!0},r.state=r.initialState,r._isMounted=!1,r.reactWrapper=void 0,r.nonReactWrapper=void 0,r.refCallback=function(a){r.reactWrapper=a},r}yS(t,e);var n=t.prototype;return n.renderSVG=function(){var o=this;if(this.reactWrapper instanceof S7(this.reactWrapper).Node){var i=this.props,s=i.desc,a=i.evalScripts,l=i.httpRequestWithCredentials,c=i.renumerateIRIElements,u=i.src,f=i.title,d=i.useRequestCache,p=this.props.onError,g=this.props.beforeInjection,h=this.props.afterInjection,y=this.props.wrapper,m,x;y==="svg"?(m=document.createElementNS(ra,y),m.setAttribute("xmlns",ra),m.setAttribute("xmlns:xlink",$y),x=document.createElementNS(ra,y)):(m=document.createElement(y),x=document.createElement(y)),m.appendChild(x),x.dataset.src=u,this.nonReactWrapper=this.reactWrapper.appendChild(m);var v=function(I){if(o.removeSVG(),!o._isMounted){p(I);return}o.setState(function(){return{hasError:!0,isLoading:!1}},function(){p(I)})},C=function(I,P){if(I){v(I);return}o._isMounted&&o.setState(function(){return{isLoading:!1}},function(){try{h(P)}catch(M){v(M)}})},S=function(I){if(I.setAttribute("role","img"),s){var P=I.querySelector(":scope > desc");P&&I.removeChild(P);var M=document.createElement("desc");M.innerHTML=s,I.prepend(M)}if(f){var w=I.querySelector(":scope > title");w&&I.removeChild(w);var R=document.createElement("title");R.innerHTML=f,I.prepend(R)}try{g(I)}catch(O){v(O)}};_7(x,{afterEach:C,beforeEach:S,cacheRequests:d,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:c})}},n.removeSVG=function(){var o;(o=this.nonReactWrapper)!=null&&o.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(o){var i=this;E7(ce({},o),this.props)&&this.setState(function(){return i.initialState},function(){i.removeSVG(),i.renderSVG()})},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var o=this.props;o.afterInjection,o.beforeInjection,o.desc,o.evalScripts;var i=o.fallback;o.httpRequestWithCredentials;var s=o.loading;o.renumerateIRIElements,o.src,o.title,o.useRequestCache;var a=o.wrapper,l=sh(o,I7),c=a;return k.createElement(c,ce({},l,{ref:this.refCallback},a==="svg"?{xmlns:ra,xmlnsXlink:$y}:{}),this.state.isLoading&&s&&k.createElement(s,null),this.state.hasError&&i&&k.createElement(i,null))},t}(k.Component);ch.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"};ch.propTypes={afterInjection:Ze.func,beforeInjection:Ze.func,desc:Ze.string,evalScripts:Ze.oneOf(["always","once","never"]),fallback:Ze.oneOfType([Ze.func,Ze.object,Ze.string]),httpRequestWithCredentials:Ze.bool,loading:Ze.oneOfType([Ze.func,Ze.object,Ze.string]),onError:Ze.func,renumerateIRIElements:Ze.bool,src:Ze.string.isRequired,title:Ze.string,useRequestCache:Ze.bool,wrapper:Ze.oneOf(["div","span","svg"])};const k7=({value:e})=>b.jsx(ch,{src:`data:image/svg+xml;base64,${btoa(e)}`,style:{maxWidth:"100%",maxHeight:"100%"},beforeInjection:t=>{t.classList.add("svg-class-name"),t.setAttribute("style","max-width: 100%; max-height: 100%;"),t.setAttribute("width","100%"),t.setAttribute("height","100%")}}),ES=({value:e,preValue:t,onLoaded:n})=>{const[r,o]=k.useState(t||e);return k.useEffect(()=>{if(e===t)return;const i=new Image;return i.onload=()=>{n==null||n(),o(e)},i.src=e,()=>{i.onload=null}},[e,t,n]),r===void 0?b.jsx(b.Fragment,{}):typeof r!="string"?(console.error("Base64ImageOutput: value is not a string",r),b.jsx(b.Fragment,{})):b.jsx("img",{src:r,style:{maxWidth:"100%",maxHeight:"100%"}})},IS=({value:e})=>b.jsx(k7,{value:e}),kS=({value:e})=>{let t="";try{t=JSON.stringify(e)}catch{}return b.jsx("div",{children:b.jsx("pre",{children:t})})},uh=({value:e})=>{if(typeof e!="string"||e.length%4!==0)return b.jsx("div",{children:e});const t=Math.round(3*e.length/4);return b.jsx("div",{children:b.jsxs("pre",{children:["Bytes(",t,")"]})})},AS=({value:e})=>b.jsx(h7,{tabledata:e||{columns:[],index:[],data:[]}}),xc=({value:e})=>b.jsx(eH,{data:e}),ll=xc,A7={string:kS,table:AS,image:ES,svg:IS,dict:xc,bytes:uh};function RS(e,[t,n]){return Math.min(n,Math.max(t,e))}function R7(e){const t=k.useRef({value:e,previous:e});return k.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var TS=["PageUp","PageDown"],NS=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],PS={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Qo="Slider",[id,T7,N7]=rp(Qo),[OS,gq]=br(Qo,[N7]),[P7,wc]=OS(Qo),MS=k.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:l=0,defaultValue:c=[r],value:u,onValueChange:f=()=>{},onValueCommit:d=()=>{},inverted:p=!1,form:g,...h}=e,y=k.useRef(new Set),m=k.useRef(0),v=s==="horizontal"?O7:M7,[C=[],S]=Ho({prop:u,defaultProp:c,onChange:R=>{var L;(L=[...y.current][m.current])==null||L.focus(),f(R)}}),E=k.useRef(C);function I(R){const O=B7(C,R);w(R,O)}function P(R){w(R,m.current)}function M(){const R=E.current[m.current];C[m.current]!==R&&d(C)}function w(R,O,{commit:L}={commit:!1}){const A=$7(i),j=H7(Math.round((R-r)/i)*i+r,A),D=RS(j,[r,o]);S((z=[])=>{const V=j7(z,D,O);if(G7(V,l*i)){m.current=V.indexOf(D);const F=String(V)!==String(z);return F&&L&&d(V),F?V:z}else return z})}return b.jsx(P7,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:m,thumbs:y.current,values:C,orientation:s,form:g,children:b.jsx(id.Provider,{scope:e.__scopeSlider,children:b.jsx(id.Slot,{scope:e.__scopeSlider,children:b.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...h,ref:t,onPointerDown:he(h.onPointerDown,()=>{a||(E.current=C)}),min:r,max:o,inverted:p,onSlideStart:a?void 0:I,onSlideMove:a?void 0:P,onSlideEnd:a?void 0:M,onHomeKeyDown:()=>!a&&w(r,0,{commit:!0}),onEndKeyDown:()=>!a&&w(o,C.length-1,{commit:!0}),onStepKeyDown:({event:R,direction:O})=>{if(!a){const j=TS.includes(R.key)||R.shiftKey&&NS.includes(R.key)?10:1,D=m.current,z=C[D],V=i*j*O;w(z+V,D,{commit:!0})}}})})})})});MS.displayName=Qo;var[DS,FS]=OS(Qo,{startEdge:"left",endEdge:"right",size:"width",direction:1}),O7=k.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:l,onStepKeyDown:c,...u}=e,[f,d]=k.useState(null),p=Ve(t,v=>d(v)),g=k.useRef(void 0),h=op(o),y=h==="ltr",m=y&&!i||!y&&i;function x(v){const C=g.current||f.getBoundingClientRect(),S=[0,C.width],I=fh(S,m?[n,r]:[r,n]);return g.current=C,I(v-C.left)}return b.jsx(DS,{scope:e.__scopeSlider,startEdge:m?"left":"right",endEdge:m?"right":"left",direction:m?1:-1,size:"width",children:b.jsx(jS,{dir:h,"data-orientation":"horizontal",...u,ref:p,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const C=x(v.clientX);s==null||s(C)},onSlideMove:v=>{const C=x(v.clientX);a==null||a(C)},onSlideEnd:()=>{g.current=void 0,l==null||l()},onStepKeyDown:v=>{const S=PS[m?"from-left":"from-right"].includes(v.key);c==null||c({event:v,direction:S?-1:1})}})})}),M7=k.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:l,...c}=e,u=k.useRef(null),f=Ve(t,u),d=k.useRef(void 0),p=!o;function g(h){const y=d.current||u.current.getBoundingClientRect(),m=[0,y.height],v=fh(m,p?[r,n]:[n,r]);return d.current=y,v(h-y.top)}return b.jsx(DS,{scope:e.__scopeSlider,startEdge:p?"bottom":"top",endEdge:p?"top":"bottom",size:"height",direction:p?1:-1,children:b.jsx(jS,{"data-orientation":"vertical",...c,ref:f,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:h=>{const y=g(h.clientY);i==null||i(y)},onSlideMove:h=>{const y=g(h.clientY);s==null||s(y)},onSlideEnd:()=>{d.current=void 0,a==null||a()},onStepKeyDown:h=>{const m=PS[p?"from-bottom":"from-top"].includes(h.key);l==null||l({event:h,direction:m?-1:1})}})})}),jS=k.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:l,...c}=e,u=wc(Qo,n);return b.jsx(je.span,{...c,ref:t,onKeyDown:he(e.onKeyDown,f=>{f.key==="Home"?(s(f),f.preventDefault()):f.key==="End"?(a(f),f.preventDefault()):TS.concat(NS).includes(f.key)&&(l(f),f.preventDefault())}),onPointerDown:he(e.onPointerDown,f=>{const d=f.target;d.setPointerCapture(f.pointerId),f.preventDefault(),u.thumbs.has(d)?d.focus():r(f)}),onPointerMove:he(e.onPointerMove,f=>{f.target.hasPointerCapture(f.pointerId)&&o(f)}),onPointerUp:he(e.onPointerUp,f=>{const d=f.target;d.hasPointerCapture(f.pointerId)&&(d.releasePointerCapture(f.pointerId),i(f))})})}),LS="SliderTrack",BS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=wc(LS,n);return b.jsx(je.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});BS.displayName=LS;var sd="SliderRange",zS=k.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=wc(sd,n),i=FS(sd,n),s=k.useRef(null),a=Ve(t,s),l=o.values.length,c=o.values.map(d=>GS(d,o.min,o.max)),u=l>1?Math.min(...c):0,f=100-Math.max(...c);return b.jsx(je.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:u+"%",[i.endEdge]:f+"%"}})});zS.displayName=sd;var ad="SliderThumb",VS=k.forwardRef((e,t)=>{const n=T7(e.__scopeSlider),[r,o]=k.useState(null),i=Ve(t,a=>o(a)),s=k.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return b.jsx(D7,{...e,ref:i,index:s})}),D7=k.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=wc(ad,n),a=FS(ad,n),[l,c]=k.useState(null),u=Ve(t,x=>c(x)),f=l?s.form||!!l.closest("form"):!0,d=rw(l),p=s.values[r],g=p===void 0?0:GS(p,s.min,s.max),h=L7(r,s.values.length),y=d==null?void 0:d[a.size],m=y?z7(y,g,a.direction):0;return k.useEffect(()=>{if(l)return s.thumbs.add(l),()=>{s.thumbs.delete(l)}},[l,s.thumbs]),b.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${g}% + ${m}px)`},children:[b.jsx(id.ItemSlot,{scope:e.__scopeSlider,children:b.jsx(je.span,{role:"slider","aria-label":e["aria-label"]||h,"aria-valuemin":s.min,"aria-valuenow":p,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:u,style:p===void 0?{display:"none"}:e.style,onFocus:he(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),f&&b.jsx(F7,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:p},r)]})});VS.displayName=ad;var F7=e=>{const{value:t,...n}=e,r=k.useRef(null),o=R7(t);return k.useEffect(()=>{const i=r.current,s=window.HTMLInputElement.prototype,l=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==t&&l){const c=new Event("input",{bubbles:!0});l.call(i,t),i.dispatchEvent(c)}},[o,t]),b.jsx("input",{style:{display:"none"},...n,ref:r,defaultValue:t})};function j7(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function GS(e,t,n){const i=100/(n-t)*(e-t);return RS(i,[0,100])}function L7(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function B7(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function z7(e,t,n){const r=e/2,i=fh([0,50],[0,r]);return(r-i(t)*n)*n}function V7(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function G7(e,t){if(t>0){const n=V7(e);return Math.min(...n)>=t}return!0}function fh(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function $7(e){return(String(e).split(".")[1]||"").length}function H7(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var W7=MS,X7=BS,Y7=zS,U7=VS;const Qi={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$S={};for(const e of Object.keys(Qi))$S[Qi[e]]=e;const ie={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}},jn=(6/29)**3;for(const e of Object.keys(ie)){if(!("channels"in ie[e]))throw new Error("missing channels property: "+e);if(!("labels"in ie[e]))throw new Error("missing channel labels property: "+e);if(ie[e].labels.length!==ie[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=ie[e];delete ie[e].channels,delete ie[e].labels,Object.defineProperty(ie[e],"channels",{value:t}),Object.defineProperty(ie[e],"labels",{value:n})}ie.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),i=Math.max(t,n,r),s=i-o;let a,l;switch(i){case o:{a=0;break}case t:{a=(n-r)/s;break}case n:{a=2+(r-t)/s;break}case r:{a=4+(t-n)/s;break}}a=Math.min(a*60,360),a<0&&(a+=360);const c=(o+i)/2;return i===o?l=0:c<=.5?l=s/(i+o):l=s/(2-i-o),[a,l*100,c*100]};ie.rgb.hsv=function(e){let t,n,r,o,i;const s=e[0]/255,a=e[1]/255,l=e[2]/255,c=Math.max(s,a,l),u=c-Math.min(s,a,l),f=function(d){return(c-d)/6/u+1/2};if(u===0)o=0,i=0;else{switch(i=u/c,t=f(s),n=f(a),r=f(l),c){case s:{o=r-n;break}case a:{o=1/3+t-r;break}case l:{o=2/3+n-t;break}}o<0?o+=1:o>1&&(o-=1)}return[o*360,i*100,c*100]};ie.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=ie.rgb.hsl(e)[0],i=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,i*100,r*100]};ie.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),i=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,a=(1-r-o)/(1-o)||0;return[i*100,s*100,a*100,o*100]};function Z7(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}ie.rgb.keyword=function(e){const t=$S[e];if(t)return t;let n=Number.POSITIVE_INFINITY,r;for(const o of Object.keys(Qi)){const i=Qi[o],s=Z7(e,i);s<n&&(n=s,r=o)}return r};ie.keyword.rgb=function(e){return Qi[e]};ie.rgb.xyz=function(e){let t=e[0]/255,n=e[1]/255,r=e[2]/255;t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124564+n*.3575761+r*.1804375,i=t*.2126729+n*.7151522+r*.072175,s=t*.0193339+n*.119192+r*.9503041;return[o*100,i*100,s*100]};ie.rgb.lab=function(e){const t=ie.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>jn?n**(1/3):7.787*n+16/116,r=r>jn?r**(1/3):7.787*r+16/116,o=o>jn?o**(1/3):7.787*o+16/116;const i=116*r-16,s=500*(n-r),a=200*(r-o);return[i,s,a]};ie.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,i;if(n===0)return i=r*255,[i,i,i];const s=r<.5?r*(1+n):r+n-r*n,a=2*r-s,l=[0,0,0];for(let c=0;c<3;c++)o=t+1/3*-(c-1),o<0&&o++,o>1&&o--,6*o<1?i=a+(s-a)*6*o:2*o<1?i=s:3*o<2?i=a+(s-a)*(2/3-o)*6:i=a,l[c]=i*255;return l};ie.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const i=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=i<=1?i:2-i;const s=(r+n)/2,a=r===0?2*o/(i+o):2*n/(r+n);return[t,a*100,s*100]};ie.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,i=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*i),l=255*r*(1-n*(1-i));switch(r*=255,o){case 0:return[r,l,s];case 1:return[a,r,s];case 2:return[s,r,l];case 3:return[s,a,r];case 4:return[l,s,r];case 5:return[r,s,a]}};ie.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let i,s;s=(2-n)*r;const a=(2-n)*o;return i=n*o,i/=a<=1?a:2-a,i=i||0,s/=2,[t,i*100,s*100]};ie.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let i;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),a=1-r;i=6*t-s,(s&1)!==0&&(i=1-i);const l=n+i*(a-n);let c,u,f;switch(s){default:case 6:case 0:{c=a,u=l,f=n;break}case 1:{c=l,u=a,f=n;break}case 2:{c=n,u=a,f=l;break}case 3:{c=n,u=l,f=a;break}case 4:{c=l,u=n,f=a;break}case 5:{c=a,u=n,f=l;break}}return[c*255,u*255,f*255]};ie.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,i=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),a=1-Math.min(1,r*(1-o)+o);return[i*255,s*255,a*255]};ie.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,i,s;return o=t*3.2404542+n*-1.5371385+r*-.4985314,i=t*-.969266+n*1.8760108+r*.041556,s=t*.0556434+n*-.2040259+r*1.0572252,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),s=Math.min(Math.max(0,s),1),[o*255,i*255,s*255]};ie.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>jn?t**(1/3):7.787*t+16/116,n=n>jn?n**(1/3):7.787*n+16/116,r=r>jn?r**(1/3):7.787*r+16/116;const o=116*n-16,i=500*(t-n),s=200*(n-r);return[o,i,s]};ie.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,i,s;i=(t+16)/116,o=n/500+i,s=i-r/200;const a=i**3,l=o**3,c=s**3;return i=a>jn?a:(i-16/116)/7.787,o=l>jn?l:(o-16/116)/7.787,s=c>jn?c:(s-16/116)/7.787,o*=95.047,i*=100,s*=108.883,[o,i,s]};ie.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};ie.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,i=n*Math.cos(o),s=n*Math.sin(o);return[t,i,s]};ie.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let i=t===null?ie.rgb.hsv(e)[2]:t;if(i=Math.round(i/50),i===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return i===2&&(s+=60),s};ie.hsv.ansi16=function(e){return ie.rgb.ansi16(ie.hsv.rgb(e),e[2])};ie.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t>>4===n>>4&&n>>4===r>>4?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};ie.ansi16.rgb=function(e){e=e[0];let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(Math.trunc(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,i=(t>>2&1)*n*255;return[r,o,i]};ie.ansi256.rgb=function(e){if(e=e[0],e>=232){const i=(e-232)*10+8;return[i,i,i]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};ie.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".slice(n.length)+n};ie.hex.rgb=function(e){const t=e.toString(16).match(/[a-f\d]{6}|[a-f\d]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=[...n].map(a=>a+a).join(""));const r=Number.parseInt(n,16),o=r>>16&255,i=r>>8&255,s=r&255;return[o,i,s]};ie.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),i=Math.min(Math.min(t,n),r),s=o-i;let a;const l=s<1?i/(1-s):0;return s<=0?a=0:o===t?a=(n-r)/s%6:o===n?a=2+(r-t)/s:a=4+(t-n)/s,a/=6,a%=1,[a*360,s*100,l*100]};ie.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};ie.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};ie.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],i=t%1*6,s=i%1,a=1-s;let l=0;switch(Math.floor(i)){case 0:{o[0]=1,o[1]=s,o[2]=0;break}case 1:{o[0]=a,o[1]=1,o[2]=0;break}case 2:{o[0]=0,o[1]=1,o[2]=s;break}case 3:{o[0]=0,o[1]=a,o[2]=1;break}case 4:{o[0]=s,o[1]=0,o[2]=1;break}default:o[0]=1,o[1]=0,o[2]=a}return l=(1-n)*r,[(n*o[0]+l)*255,(n*o[1]+l)*255,(n*o[2]+l)*255]};ie.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};ie.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};ie.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};ie.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let i=0;return o<1&&(i=(r-o)/(1-o)),[e[0],o*100,i*100]};ie.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};ie.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};ie.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};ie.gray.hsl=function(e){return[0,0,e[0]]};ie.gray.hsv=ie.gray.hsl;ie.gray.hwb=function(e){return[0,100,e[0]]};ie.gray.cmyk=function(e){return[0,0,0,e[0]]};ie.gray.lab=function(e){return[e[0],0,0]};ie.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".slice(r.length)+r};ie.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};function J7(){const e={},t=Object.keys(ie);for(let{length:n}=t,r=0;r<n;r++)e[t[r]]={distance:-1,parent:null};return e}function q7(e){const t=J7(),n=[e];for(t[e].distance=0;n.length>0;){const r=n.pop(),o=Object.keys(ie[r]);for(let{length:i}=o,s=0;s<i;s++){const a=o[s],l=t[a];l.distance===-1&&(l.distance=t[r].distance+1,l.parent=r,n.unshift(a))}}return t}function K7(e,t){return function(n){return t(e(n))}}function Q7(e,t){const n=[t[e].parent,e];let r=ie[t[e].parent][e],o=t[e].parent;for(;t[o].parent;)n.unshift(t[o].parent),r=K7(ie[t[o].parent][o],r),o=t[o].parent;return r.conversion=n,r}function eY(e){const t=q7(e),n={},r=Object.keys(t);for(let{length:o}=r,i=0;i<o;i++){const s=r[i];t[s].parent!==null&&(n[s]=Q7(s,t))}return n}const Rr={},tY=Object.keys(ie);function nY(e){const t=function(...n){const r=n[0];return r==null?r:(r.length>1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function rY(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let{length:i}=o,s=0;s<i;s++)o[s]=Math.round(o[s]);return o};return"conversion"in e&&(t.conversion=e.conversion),t}for(const e of tY){Rr[e]={},Object.defineProperty(Rr[e],"channels",{value:ie[e].channels}),Object.defineProperty(Rr[e],"labels",{value:ie[e].labels});const t=eY(e),n=Object.keys(t);for(const r of n){const o=t[r];Rr[e][r]=rY(o),Rr[e][r].raw=nY(o)}}const oY=Object.freeze(Object.defineProperty({__proto__:null,default:Rr},Symbol.toStringTag,{value:"Module"})),it=(e,t)=>{const n=Array.isArray(t)?t:[t];if(n[0]===void 0||n[0]===null)return it("rgb",[0,0,0]);const r=Rr[e];if(!r)throw new Error(`Unsupported color type: ${e} allowed are ${Object.keys(oY).join(", ")}`);r[e]=()=>n;const o=s=>{const a=s(...n);return Array.isArray(a)?a[0]!=null:a};if(!o(r.rgb)||!o(r.hsl))return it("rgb",[0,0,0]);const i={};return Object.keys(r).forEach(s=>{const a=r[s];typeof a=="function"&&(i[s]=()=>s===e?n:a(...n))}),i},iY=({onChange:e,colorconverter:t,allow_null:n=!1})=>{if(t===null&&!n)throw new Error("Color converter is null");const[r,o]=N.useState(t),[i,s]=N.useState([0,0,0]),[a,l]=N.useState([0,0,0]),[c,u]=N.useState([0,0,0]),[f,d]=N.useState("000");N.useEffect(()=>{if(!r){if(!n)throw new Error("Color converter is null");l([0,0,0]),s([0,0,0]),u([0,0,0]),d("");return}s(r.hsl()),l(r.rgb()),u(r.hsv()),d(r.hex())},[r]);const p={backgroundColor:`hsl(${i[0]}, ${i[1]}%, ${i[2]}%)`,padding:"10px",margin:"10px 0"};return b.jsxs("div",{style:{backgroundColor:"white"},children:[b.jsx("div",{style:p,children:"Color Preview"}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"RGB"}),b.jsx("div",{}),b.jsx("label",{children:"Red"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[0],onChange:g=>{const h=[parseInt(g.target.value),a[1],a[2]],y=it("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #f00)"}}),b.jsx("label",{children:"Green"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[1],onChange:g=>{const h=[a[0],parseInt(g.target.value),a[2]],y=it("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #0f0)"}}),b.jsx("label",{children:"Blue"}),b.jsx("input",{type:"range",min:"0",max:"255",value:a[2],onChange:g=>{const h=[a[0],a[1],parseInt(g.target.value)],y=it("rgb",h);o(y),e(y)},style:{background:"linear-gradient(to right, #000, #00f)"}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSL"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:i[0],onChange:g=>{const h=[parseInt(g.target.value),i[1],i[2]],y=it("hsl",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[1],onChange:g=>{const h=[i[0],parseInt(g.target.value),i[2]],y=it("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Lightness"}),b.jsx("input",{type:"range",min:"0",max:"100",value:i[2],onChange:g=>{const h=[i[0],i[1],parseInt(g.target.value)],y=it("hsl",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%), #fff)`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HSV"}),b.jsx("div",{}),b.jsx("label",{children:"Hue"}),b.jsx("input",{type:"range",min:"0",max:"360",value:c[0],onChange:g=>{const h=[parseInt(g.target.value),c[1],c[2]],y=it("hsv",h);o(y),e(y)},style:{background:"linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00)"}}),b.jsx("label",{children:"Saturation"}),b.jsx("input",{type:"range",min:"0",max:"100",value:c[1],onChange:g=>{const h=[c[0],parseInt(g.target.value),c[2]],y=it("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #fff, hsl(${i[0]}, 100%, 50%))`}}),b.jsx("label",{children:"Value"}),b.jsx("input",{type:"range",min:"0",max:"100",value:c[2],onChange:g=>{const h=[c[0],c[1],parseInt(g.target.value)],y=it("hsv",h);o(y),e(y)},style:{background:`linear-gradient(to right, #000, hsl(${i[0]}, 100%, 50%))`}})]}),b.jsxs("div",{className:"colorspace",children:[b.jsx("div",{className:"colorspace_title",children:"HEX"}),b.jsx("div",{}),b.jsx("input",{type:"text",value:f,onChange:g=>{const h=g.target.value===""?null:it("hex",[g.target.value]);o(h),e(h)}})]})]})},sY=({inicolordata:e,inicolorspace:t,allow_null:n=!1,delay:r=1e3,onChange:o})=>{const i=e!==void 0?e:[0,0,0],s=e===void 0?"rgb":t||"hex",a=Array.isArray(i)?i:[i],l=N.useMemo(()=>{let y=it(s,a);return y.rgb()===void 0&&(y=it("rgb",[0,0,0])),y},[s,a]),[c,u]=N.useState(l);N.useEffect(()=>{const y=e!==void 0?e:[0,0,0],m=e===void 0?"rgb":t||"hex",x=Array.isArray(y)?y:[y];let v=it(m,x);v.rgb()===void 0&&(v=it("rgb",[0,0,0])),u(v)},[JSON.stringify(e),t]);const f=N.useContext(xe),d=f.local_state(()=>f.reactflowRef),p=N.useRef(null),g=N.useCallback(y=>{if(y===null&&!n)throw new Error("Color is null");y!==null&&u(y),p.current&&clearTimeout(p.current),o&&(p.current=setTimeout(()=>{o(y),p.current=null},r))},[n,o,r]);N.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=N.useMemo(()=>({background:"#"+c.hex(),borderRadius:"0.3rem",width:"2rem",height:"1rem"}),[c]);return b.jsxs(k_,{children:[b.jsx(A_,{asChild:!0,children:b.jsx("button",{style:h})}),b.jsx(R_,{container:d,children:b.jsx(T_,{side:"left",className:"iotooltipcontent",children:b.jsx(iY,{onChange:g,colorconverter:c,allow_null:n})})})]})};function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function aY(e,t){if(Ur(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ur(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HS(e){var t=aY(e,"string");return Ur(t)=="symbol"?t:t+""}function xi(e,t,n){return(t=HS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function pe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hy(Object(n),!0).forEach(function(r){xi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hy(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lY(e){if(Array.isArray(e))return e}function cY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,s,a=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw o}}return a}}function ld(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function WS(e,t){if(e){if(typeof e=="string")return ld(e,t);var n={}.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)?ld(e,t):void 0}}function uY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
860
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ln(e,t){return lY(e)||cY(e,t)||WS(e,t)||uY()}function Jn(e,t){if(e==null)return{};var n,r,o=sh(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var fY=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];function dY(e){var t=e.defaultInputValue,n=t===void 0?"":t,r=e.defaultMenuIsOpen,o=r===void 0?!1:r,i=e.defaultValue,s=i===void 0?null:i,a=e.inputValue,l=e.menuIsOpen,c=e.onChange,u=e.onInputChange,f=e.onMenuClose,d=e.onMenuOpen,p=e.value,g=Jn(e,fY),h=N.useState(a!==void 0?a:n),y=Ln(h,2),m=y[0],x=y[1],v=N.useState(l!==void 0?l:o),C=Ln(v,2),S=C[0],E=C[1],I=N.useState(p!==void 0?p:s),P=Ln(I,2),M=P[0],w=P[1],R=N.useCallback(function(V,F){typeof c=="function"&&c(V,F),w(V)},[c]),O=N.useCallback(function(V,F){var _;typeof u=="function"&&(_=u(V,F)),x(_!==void 0?_:V)},[u]),L=N.useCallback(function(){typeof d=="function"&&d(),E(!0)},[d]),A=N.useCallback(function(){typeof f=="function"&&f(),E(!1)},[f]),j=a!==void 0?a:m,D=l!==void 0?l:S,z=p!==void 0?p:M;return pe(pe({},g),{},{inputValue:j,menuIsOpen:D,onChange:R,onInputChange:O,onMenuClose:A,onMenuOpen:L,value:z})}function pY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HS(r.key),r)}}function hY(e,t,n){return t&&Wy(e.prototype,t),n&&Wy(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sl(e,t)}function cl(e){return cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},cl(e)}function XS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(XS=function(){return!!e})()}function mY(e,t){if(t&&(Ur(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bS(e)}function yY(e){var t=XS();return function(){var n,r=cl(e);if(t){var o=cl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mY(this,n)}}function bY(e){if(Array.isArray(e))return ld(e)}function vY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
861
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dh(e){return bY(e)||vY(e)||WS(e)||xY()}function wY(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var cd=N.useLayoutEffect,CY=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],ul=function(){};function _Y(e,t){return t?t[0]==="-"?e+t:e+"__"+t:e}function SY(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=[].concat(r);if(t&&e)for(var s in t)t.hasOwnProperty(s)&&t[s]&&i.push("".concat(_Y(e,s)));return i.filter(function(a){return a}).map(function(a){return String(a).trim()}).join(" ")}var Xy=function(t){return OY(t)?t.filter(Boolean):Ur(t)==="object"&&t!==null?[t]:[]},YS=function(t){t.className,t.clearValue,t.cx,t.getStyles,t.getClassNames,t.getValue,t.hasValue,t.isMulti,t.isRtl,t.options,t.selectOption,t.selectProps,t.setValue,t.theme;var n=Jn(t,CY);return pe({},n)},We=function(t,n,r){var o=t.cx,i=t.getStyles,s=t.getClassNames,a=t.className;return{css:i(n,t),className:o(r??{},s(n,t),a)}};function Cc(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function EY(e){return Cc(e)?window.innerHeight:e.clientHeight}function US(e){return Cc(e)?window.pageYOffset:e.scrollTop}function fl(e,t){if(Cc(e)){window.scrollTo(0,t);return}e.scrollTop=t}function IY(e){var t=getComputedStyle(e),n=t.position==="absolute",r=/(auto|scroll)/;if(t.position==="fixed")return document.documentElement;for(var o=e;o=o.parentElement;)if(t=getComputedStyle(o),!(n&&t.position==="static")&&r.test(t.overflow+t.overflowY+t.overflowX))return o;return document.documentElement}function kY(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function oa(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:200,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ul,o=US(e),i=t-o,s=10,a=0;function l(){a+=s;var c=kY(a,o,i,n);fl(e,c),a<n?window.requestAnimationFrame(l):r(e)}l()}function Yy(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),o=t.offsetHeight/3;r.bottom+o>n.bottom?fl(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):r.top-o<n.top&&fl(e,Math.max(t.offsetTop-o,0))}function AY(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}function Uy(){try{return document.createEvent("TouchEvent"),!0}catch{return!1}}function RY(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch{return!1}}var ZS=!1,TY={get passive(){return ZS=!0}},ia=typeof window<"u"?window:{};ia.addEventListener&&ia.removeEventListener&&(ia.addEventListener("p",ul,TY),ia.removeEventListener("p",ul,!1));var NY=ZS;function PY(e){return e!=null}function OY(e){return Array.isArray(e)}function sa(e,t,n){return e?t:n}var MY=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=Object.entries(t).filter(function(s){var a=Ln(s,1),l=a[0];return!r.includes(l)});return i.reduce(function(s,a){var l=Ln(a,2),c=l[0],u=l[1];return s[c]=u,s},{})},DY=["children","innerProps"],FY=["children","innerProps"];function jY(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,o=e.placement,i=e.shouldScroll,s=e.isFixedPosition,a=e.controlHeight,l=IY(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=l.getBoundingClientRect(),f=u.height,d=n.getBoundingClientRect(),p=d.bottom,g=d.height,h=d.top,y=n.offsetParent.getBoundingClientRect(),m=y.top,x=s?window.innerHeight:EY(l),v=US(l),C=parseInt(getComputedStyle(n).marginBottom,10),S=parseInt(getComputedStyle(n).marginTop,10),E=m-S,I=x-h,P=E+v,M=f-v-h,w=p-x+v+C,R=v+h-S,O=160;switch(o){case"auto":case"bottom":if(I>=g)return{placement:"bottom",maxHeight:t};if(M>=g&&!s)return i&&oa(l,w,O),{placement:"bottom",maxHeight:t};if(!s&&M>=r||s&&I>=r){i&&oa(l,w,O);var L=s?I-C:M-C;return{placement:"bottom",maxHeight:L}}if(o==="auto"||s){var A=t,j=s?E:P;return j>=r&&(A=Math.min(j-C-a,t)),{placement:"top",maxHeight:A}}if(o==="bottom")return i&&fl(l,w),{placement:"bottom",maxHeight:t};break;case"top":if(E>=g)return{placement:"top",maxHeight:t};if(P>=g&&!s)return i&&oa(l,R,O),{placement:"top",maxHeight:t};if(!s&&P>=r||s&&E>=r){var D=t;return(!s&&P>=r||s&&E>=r)&&(D=s?E-S:P-S),i&&oa(l,R,O),{placement:"top",maxHeight:D}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(o,'".'))}return c}function LY(e){var t={bottom:"top",top:"bottom"};return e?t[e]:"bottom"}var JS=function(t){return t==="auto"?"bottom":t},BY=function(t,n){var r,o=t.placement,i=t.theme,s=i.borderRadius,a=i.spacing,l=i.colors;return pe((r={label:"menu"},xi(r,LY(o),"100%"),xi(r,"position","absolute"),xi(r,"width","100%"),xi(r,"zIndex",1),r),n?{}:{backgroundColor:l.neutral0,borderRadius:s,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:a.menuGutter,marginTop:a.menuGutter})},qS=N.createContext(null),zY=function(t){var n=t.children,r=t.minMenuHeight,o=t.maxMenuHeight,i=t.menuPlacement,s=t.menuPosition,a=t.menuShouldScrollIntoView,l=t.theme,c=N.useContext(qS)||{},u=c.setPortalPlacement,f=N.useRef(null),d=N.useState(o),p=Ln(d,2),g=p[0],h=p[1],y=N.useState(null),m=Ln(y,2),x=m[0],v=m[1],C=l.spacing.controlHeight;return cd(function(){var S=f.current;if(S){var E=s==="fixed",I=a&&!E,P=jY({maxHeight:o,menuEl:S,minHeight:r,placement:i,shouldScroll:I,isFixedPosition:E,controlHeight:C});h(P.maxHeight),v(P.placement),u==null||u(P.placement)}},[o,i,s,a,r,u,C]),n({ref:f,placerProps:pe(pe({},t),{},{placement:x||JS(i),maxHeight:g})})},VY=function(t){var n=t.children,r=t.innerRef,o=t.innerProps;return le("div",ce({},We(t,"menu",{menu:!0}),{ref:r},o),n)},GY=VY,$Y=function(t,n){var r=t.maxHeight,o=t.theme.spacing.baseUnit;return pe({maxHeight:r,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},n?{}:{paddingBottom:o,paddingTop:o})},HY=function(t){var n=t.children,r=t.innerProps,o=t.innerRef,i=t.isMulti;return le("div",ce({},We(t,"menuList",{"menu-list":!0,"menu-list--is-multi":i}),{ref:o},r),n)},KS=function(t,n){var r=t.theme,o=r.spacing.baseUnit,i=r.colors;return pe({textAlign:"center"},n?{}:{color:i.neutral40,padding:"".concat(o*2,"px ").concat(o*3,"px")})},WY=KS,XY=KS,YY=function(t){var n=t.children,r=n===void 0?"No options":n,o=t.innerProps,i=Jn(t,DY);return le("div",ce({},We(pe(pe({},i),{},{children:r,innerProps:o}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),o),r)},UY=function(t){var n=t.children,r=n===void 0?"Loading...":n,o=t.innerProps,i=Jn(t,FY);return le("div",ce({},We(pe(pe({},i),{},{children:r,innerProps:o}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),o),r)},ZY=function(t){var n=t.rect,r=t.offset,o=t.position;return{left:n.left,position:o,top:r,width:n.width,zIndex:1}},JY=function(t){var n=t.appendTo,r=t.children,o=t.controlElement,i=t.innerProps,s=t.menuPlacement,a=t.menuPosition,l=N.useRef(null),c=N.useRef(null),u=N.useState(JS(s)),f=Ln(u,2),d=f[0],p=f[1],g=N.useMemo(function(){return{setPortalPlacement:p}},[]),h=N.useState(null),y=Ln(h,2),m=y[0],x=y[1],v=N.useCallback(function(){if(o){var I=AY(o),P=a==="fixed"?0:window.pageYOffset,M=I[d]+P;(M!==(m==null?void 0:m.offset)||I.left!==(m==null?void 0:m.rect.left)||I.width!==(m==null?void 0:m.rect.width))&&x({offset:M,rect:I})}},[o,a,d,m==null?void 0:m.offset,m==null?void 0:m.rect.left,m==null?void 0:m.rect.width]);cd(function(){v()},[v]);var C=N.useCallback(function(){typeof c.current=="function"&&(c.current(),c.current=null),o&&l.current&&(c.current=ew(o,l.current,v,{elementResize:"ResizeObserver"in window}))},[o,v]);cd(function(){C()},[C]);var S=N.useCallback(function(I){l.current=I,C()},[C]);if(!n&&a!=="fixed"||!m)return null;var E=le("div",ce({ref:S},We(pe(pe({},t),{},{offset:m.offset,position:a,rect:m.rect}),"menuPortal",{"menu-portal":!0}),i),r);return le(qS.Provider,{value:g},n?pd.createPortal(E,n):E)},qY=function(t){var n=t.isDisabled,r=t.isRtl;return{label:"container",direction:r?"rtl":void 0,pointerEvents:n?"none":void 0,position:"relative"}},KY=function(t){var n=t.children,r=t.innerProps,o=t.isDisabled,i=t.isRtl;return le("div",ce({},We(t,"container",{"--is-disabled":o,"--is-rtl":i}),r),n)},QY=function(t,n){var r=t.theme.spacing,o=t.isMulti,i=t.hasValue,s=t.selectProps.controlShouldRenderValue;return pe({alignItems:"center",display:o&&i&&s?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},n?{}:{padding:"".concat(r.baseUnit/2,"px ").concat(r.baseUnit*2,"px")})},eU=function(t){var n=t.children,r=t.innerProps,o=t.isMulti,i=t.hasValue;return le("div",ce({},We(t,"valueContainer",{"value-container":!0,"value-container--is-multi":o,"value-container--has-value":i}),r),n)},tU=function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},nU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"indicatorsContainer",{indicators:!0}),r),n)},Zy,rU=["size"],oU=["innerProps","isRtl","size"];function iU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var sU=process.env.NODE_ENV==="production"?{name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"}:{name:"tj5bde-Svg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0;label:Svg;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */",toString:iU},QS=function(t){var n=t.size,r=Jn(t,rU);return le("svg",ce({height:n,width:n,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:sU},r))},ph=function(t){return le(QS,ce({size:20},t),le("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},eE=function(t){return le(QS,ce({size:20},t),le("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},tE=function(t,n){var r=t.isFocused,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return pe({label:"indicatorContainer",display:"flex",transition:"color 150ms"},n?{}:{color:r?s.neutral60:s.neutral20,padding:i*2,":hover":{color:r?s.neutral80:s.neutral40}})},aU=tE,lU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),r),n||le(eE,null))},cU=tE,uU=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"clearIndicator",{indicator:!0,"clear-indicator":!0}),r),n||le(ph,null))},fU=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing.baseUnit,s=o.colors;return pe({label:"indicatorSeparator",alignSelf:"stretch",width:1},n?{}:{backgroundColor:r?s.neutral10:s.neutral20,marginBottom:i*2,marginTop:i*2})},dU=function(t){var n=t.innerProps;return le("span",ce({},n,We(t,"indicatorSeparator",{"indicator-separator":!0})))},pU=mc(Zy||(Zy=wY([`
|
|
862
|
+
0%, 80%, 100% { opacity: 0; }
|
|
863
|
+
40% { opacity: 1; }
|
|
864
|
+
`]))),hU=function(t,n){var r=t.isFocused,o=t.size,i=t.theme,s=i.colors,a=i.spacing.baseUnit;return pe({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:o,lineHeight:1,marginRight:o,textAlign:"center",verticalAlign:"middle"},n?{}:{color:r?s.neutral60:s.neutral20,padding:a*2})},Du=function(t){var n=t.delay,r=t.offset;return le("span",{css:nh({animation:"".concat(pU," 1s ease-in-out ").concat(n,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},process.env.NODE_ENV==="production"?"":";label:LoadingDot;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGljYXRvcnMudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW1RSSIsImZpbGUiOiJpbmRpY2F0b3JzLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWFjdE5vZGUgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3gsIGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuaW1wb3J0IHtcbiAgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWUsXG4gIENTU09iamVjdFdpdGhMYWJlbCxcbiAgR3JvdXBCYXNlLFxufSBmcm9tICcuLi90eXBlcyc7XG5pbXBvcnQgeyBnZXRTdHlsZVByb3BzIH0gZnJvbSAnLi4vdXRpbHMnO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgSWNvbnNcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBTdmcgPSAoe1xuICBzaXplLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzdmcnXSAmIHsgc2l6ZTogbnVtYmVyIH0pID0+IChcbiAgPHN2Z1xuICAgIGhlaWdodD17c2l6ZX1cbiAgICB3aWR0aD17c2l6ZX1cbiAgICB2aWV3Qm94PVwiMCAwIDIwIDIwXCJcbiAgICBhcmlhLWhpZGRlbj1cInRydWVcIlxuICAgIGZvY3VzYWJsZT1cImZhbHNlXCJcbiAgICBjc3M9e3tcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgZmlsbDogJ2N1cnJlbnRDb2xvcicsXG4gICAgICBsaW5lSGVpZ2h0OiAxLFxuICAgICAgc3Ryb2tlOiAnY3VycmVudENvbG9yJyxcbiAgICAgIHN0cm9rZVdpZHRoOiAwLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IHR5cGUgQ3Jvc3NJY29uUHJvcHMgPSBKU1guSW50cmluc2ljRWxlbWVudHNbJ3N2ZyddICYgeyBzaXplPzogbnVtYmVyIH07XG5leHBvcnQgY29uc3QgQ3Jvc3NJY29uID0gKHByb3BzOiBDcm9zc0ljb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNMTQuMzQ4IDE0Ljg0OWMtMC40NjkgMC40NjktMS4yMjkgMC40NjktMS42OTcgMGwtMi42NTEtMy4wMzAtMi42NTEgMy4wMjljLTAuNDY5IDAuNDY5LTEuMjI5IDAuNDY5LTEuNjk3IDAtMC40NjktMC40NjktMC40NjktMS4yMjkgMC0xLjY5N2wyLjc1OC0zLjE1LTIuNzU5LTMuMTUyYy0wLjQ2OS0wLjQ2OS0wLjQ2OS0xLjIyOCAwLTEuNjk3czEuMjI4LTAuNDY5IDEuNjk3IDBsMi42NTIgMy4wMzEgMi42NTEtMy4wMzFjMC40NjktMC40NjkgMS4yMjgtMC40NjkgMS42OTcgMHMwLjQ2OSAxLjIyOSAwIDEuNjk3bC0yLjc1OCAzLjE1MiAyLjc1OCAzLjE1YzAuNDY5IDAuNDY5IDAuNDY5IDEuMjI5IDAgMS42OTh6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuZXhwb3J0IHR5cGUgRG93bkNoZXZyb25Qcm9wcyA9IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snc3ZnJ10gJiB7IHNpemU/OiBudW1iZXIgfTtcbmV4cG9ydCBjb25zdCBEb3duQ2hldnJvbiA9IChwcm9wczogRG93bkNoZXZyb25Qcm9wcykgPT4gKFxuICA8U3ZnIHNpemU9ezIwfSB7Li4ucHJvcHN9PlxuICAgIDxwYXRoIGQ9XCJNNC41MTYgNy41NDhjMC40MzYtMC40NDYgMS4wNDMtMC40ODEgMS41NzYgMGwzLjkwOCAzLjc0NyAzLjkwOC0zLjc0N2MwLjUzMy0wLjQ4MSAxLjE0MS0wLjQ0NiAxLjU3NCAwIDAuNDM2IDAuNDQ1IDAuNDA4IDEuMTk3IDAgMS42MTUtMC40MDYgMC40MTgtNC42OTUgNC41MDItNC42OTUgNC41MDItMC4yMTcgMC4yMjMtMC41MDIgMC4zMzUtMC43ODcgMC4zMzVzLTAuNTctMC4xMTItMC43ODktMC4zMzVjMCAwLTQuMjg3LTQuMDg0LTQuNjk1LTQuNTAycy0wLjQzNi0xLjE3IDAtMS42MTV6XCIgLz5cbiAgPC9Tdmc+XG4pO1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIERyb3Bkb3duICYgQ2xlYXIgQnV0dG9uc1xuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG5cbmV4cG9ydCBpbnRlcmZhY2UgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxcbiAgT3B0aW9uID0gdW5rbm93bixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4gPSBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+ID0gR3JvdXBCYXNlPE9wdGlvbj5cbj4gZXh0ZW5kcyBDb21tb25Qcm9wc0FuZENsYXNzTmFtZTxPcHRpb24sIElzTXVsdGksIEdyb3VwPiB7XG4gIC8qKiBUaGUgY2hpbGRyZW4gdG8gYmUgcmVuZGVyZWQgaW5zaWRlIHRoZSBpbmRpY2F0b3IuICovXG4gIGNoaWxkcmVuPzogUmVhY3ROb2RlO1xuICAvKiogUHJvcHMgdGhhdCB3aWxsIGJlIHBhc3NlZCBvbiB0byB0aGUgY2hpbGRyZW4uICovXG4gIGlubmVyUHJvcHM6IEpTWC5JbnRyaW5zaWNFbGVtZW50c1snZGl2J107XG4gIC8qKiBUaGUgZm9jdXNlZCBzdGF0ZSBvZiB0aGUgc2VsZWN0LiAqL1xuICBpc0ZvY3VzZWQ6IGJvb2xlYW47XG4gIGlzRGlzYWJsZWQ6IGJvb2xlYW47XG59XG5cbmNvbnN0IGJhc2VDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgdGhlbWU6IHtcbiAgICAgIHNwYWNpbmc6IHsgYmFzZVVuaXQgfSxcbiAgICAgIGNvbG9ycyxcbiAgICB9LFxuICB9OlxuICAgIHwgRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuICAgIHwgQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2luZGljYXRvckNvbnRhaW5lcicsXG4gIGRpc3BsYXk6ICdmbGV4JyxcbiAgdHJhbnNpdGlvbjogJ2NvbG9yIDE1MG1zJyxcbiAgLi4uKHVuc3R5bGVkXG4gICAgPyB7fVxuICAgIDoge1xuICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw2MCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIHBhZGRpbmc6IGJhc2VVbml0ICogMixcbiAgICAgICAgJzpob3Zlcic6IHtcbiAgICAgICAgICBjb2xvcjogaXNGb2N1c2VkID8gY29sb3JzLm5ldXRyYWw4MCA6IGNvbG9ycy5uZXV0cmFsNDAsXG4gICAgICAgIH0sXG4gICAgICB9KSxcbn0pO1xuXG5leHBvcnQgY29uc3QgZHJvcGRvd25JbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IERyb3Bkb3duSW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogRHJvcGRvd25JbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnZHJvcGRvd25JbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2Ryb3Bkb3duLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8RG93bkNoZXZyb24gLz59XG4gICAgPC9kaXY+XG4gICk7XG59O1xuXG5leHBvcnQgaW50ZXJmYWNlIENsZWFySW5kaWNhdG9yUHJvcHM8XG4gIE9wdGlvbiA9IHVua25vd24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuID0gYm9vbGVhbixcbiAgR3JvdXAgZXh0ZW5kcyBHcm91cEJhc2U8T3B0aW9uPiA9IEdyb3VwQmFzZTxPcHRpb24+XG4+IGV4dGVuZHMgQ29tbW9uUHJvcHNBbmRDbGFzc05hbWU8T3B0aW9uLCBJc011bHRpLCBHcm91cD4ge1xuICAvKiogVGhlIGNoaWxkcmVuIHRvIGJlIHJlbmRlcmVkIGluc2lkZSB0aGUgaW5kaWNhdG9yLiAqL1xuICBjaGlsZHJlbj86IFJlYWN0Tm9kZTtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xufVxuXG5leHBvcnQgY29uc3QgY2xlYXJJbmRpY2F0b3JDU1MgPSBiYXNlQ1NTO1xuZXhwb3J0IGNvbnN0IENsZWFySW5kaWNhdG9yID0gPFxuICBPcHRpb24sXG4gIElzTXVsdGkgZXh0ZW5kcyBib29sZWFuLFxuICBHcm91cCBleHRlbmRzIEdyb3VwQmFzZTxPcHRpb24+XG4+KFxuICBwcm9wczogQ2xlYXJJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgY2hpbGRyZW4sIGlubmVyUHJvcHMgfSA9IHByb3BzO1xuICByZXR1cm4gKFxuICAgIDxkaXZcbiAgICAgIHsuLi5nZXRTdHlsZVByb3BzKHByb3BzLCAnY2xlYXJJbmRpY2F0b3InLCB7XG4gICAgICAgIGluZGljYXRvcjogdHJ1ZSxcbiAgICAgICAgJ2NsZWFyLWluZGljYXRvcic6IHRydWUsXG4gICAgICB9KX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIHtjaGlsZHJlbiB8fCA8Q3Jvc3NJY29uIC8+fVxuICAgIDwvZGl2PlxuICApO1xufTtcblxuLy8gPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09XG4vLyBTZXBhcmF0b3Jcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5leHBvcnQgaW50ZXJmYWNlIEluZGljYXRvclNlcGFyYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgaXNEaXNhYmxlZDogYm9vbGVhbjtcbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpbm5lclByb3BzPzogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ107XG59XG5cbmV4cG9ydCBjb25zdCBpbmRpY2F0b3JTZXBhcmF0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0Rpc2FibGVkLFxuICAgIHRoZW1lOiB7XG4gICAgICBzcGFjaW5nOiB7IGJhc2VVbml0IH0sXG4gICAgICBjb2xvcnMsXG4gICAgfSxcbiAgfTogSW5kaWNhdG9yU2VwYXJhdG9yUHJvcHM8T3B0aW9uLCBJc011bHRpLCBHcm91cD4sXG4gIHVuc3R5bGVkOiBib29sZWFuXG4pOiBDU1NPYmplY3RXaXRoTGFiZWwgPT4gKHtcbiAgbGFiZWw6ICdpbmRpY2F0b3JTZXBhcmF0b3InLFxuICBhbGlnblNlbGY6ICdzdHJldGNoJyxcbiAgd2lkdGg6IDEsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgYmFja2dyb3VuZENvbG9yOiBpc0Rpc2FibGVkID8gY29sb3JzLm5ldXRyYWwxMCA6IGNvbG9ycy5uZXV0cmFsMjAsXG4gICAgICAgIG1hcmdpbkJvdHRvbTogYmFzZVVuaXQgKiAyLFxuICAgICAgICBtYXJnaW5Ub3A6IGJhc2VVbml0ICogMixcbiAgICAgIH0pLFxufSk7XG5cbmV4cG9ydCBjb25zdCBJbmRpY2F0b3JTZXBhcmF0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHByb3BzOiBJbmRpY2F0b3JTZXBhcmF0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPlxuKSA9PiB7XG4gIGNvbnN0IHsgaW5uZXJQcm9wcyB9ID0gcHJvcHM7XG4gIHJldHVybiAoXG4gICAgPHNwYW5cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgICAgey4uLmdldFN0eWxlUHJvcHMocHJvcHMsICdpbmRpY2F0b3JTZXBhcmF0b3InLCB7XG4gICAgICAgICdpbmRpY2F0b3Itc2VwYXJhdG9yJzogdHJ1ZSxcbiAgICAgIH0pfVxuICAgIC8+XG4gICk7XG59O1xuXG4vLyA9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT1cbi8vIExvYWRpbmdcbi8vID09PT09PT09PT09PT09PT09PT09PT09PT09PT09PVxuXG5jb25zdCBsb2FkaW5nRG90QW5pbWF0aW9ucyA9IGtleWZyYW1lc2BcbiAgMCUsIDgwJSwgMTAwJSB7IG9wYWNpdHk6IDA7IH1cbiAgNDAlIHsgb3BhY2l0eTogMTsgfVxuYDtcblxuZXhwb3J0IGNvbnN0IGxvYWRpbmdJbmRpY2F0b3JDU1MgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oXG4gIHtcbiAgICBpc0ZvY3VzZWQsXG4gICAgc2l6ZSxcbiAgICB0aGVtZToge1xuICAgICAgY29sb3JzLFxuICAgICAgc3BhY2luZzogeyBiYXNlVW5pdCB9LFxuICAgIH0sXG4gIH06IExvYWRpbmdJbmRpY2F0b3JQcm9wczxPcHRpb24sIElzTXVsdGksIEdyb3VwPixcbiAgdW5zdHlsZWQ6IGJvb2xlYW5cbik6IENTU09iamVjdFdpdGhMYWJlbCA9PiAoe1xuICBsYWJlbDogJ2xvYWRpbmdJbmRpY2F0b3InLFxuICBkaXNwbGF5OiAnZmxleCcsXG4gIHRyYW5zaXRpb246ICdjb2xvciAxNTBtcycsXG4gIGFsaWduU2VsZjogJ2NlbnRlcicsXG4gIGZvbnRTaXplOiBzaXplLFxuICBsaW5lSGVpZ2h0OiAxLFxuICBtYXJnaW5SaWdodDogc2l6ZSxcbiAgdGV4dEFsaWduOiAnY2VudGVyJyxcbiAgdmVydGljYWxBbGlnbjogJ21pZGRsZScsXG4gIC4uLih1bnN0eWxlZFxuICAgID8ge31cbiAgICA6IHtcbiAgICAgICAgY29sb3I6IGlzRm9jdXNlZCA/IGNvbG9ycy5uZXV0cmFsNjAgOiBjb2xvcnMubmV1dHJhbDIwLFxuICAgICAgICBwYWRkaW5nOiBiYXNlVW5pdCAqIDIsXG4gICAgICB9KSxcbn0pO1xuXG5pbnRlcmZhY2UgTG9hZGluZ0RvdFByb3BzIHtcbiAgZGVsYXk6IG51bWJlcjtcbiAgb2Zmc2V0OiBib29sZWFuO1xufVxuY29uc3QgTG9hZGluZ0RvdCA9ICh7IGRlbGF5LCBvZmZzZXQgfTogTG9hZGluZ0RvdFByb3BzKSA9PiAoXG4gIDxzcGFuXG4gICAgY3NzPXt7XG4gICAgICBhbmltYXRpb246IGAke2xvYWRpbmdEb3RBbmltYXRpb25zfSAxcyBlYXNlLWluLW91dCAke2RlbGF5fW1zIGluZmluaXRlO2AsXG4gICAgICBiYWNrZ3JvdW5kQ29sb3I6ICdjdXJyZW50Q29sb3InLFxuICAgICAgYm9yZGVyUmFkaXVzOiAnMWVtJyxcbiAgICAgIGRpc3BsYXk6ICdpbmxpbmUtYmxvY2snLFxuICAgICAgbWFyZ2luTGVmdDogb2Zmc2V0ID8gJzFlbScgOiB1bmRlZmluZWQsXG4gICAgICBoZWlnaHQ6ICcxZW0nLFxuICAgICAgdmVydGljYWxBbGlnbjogJ3RvcCcsXG4gICAgICB3aWR0aDogJzFlbScsXG4gICAgfX1cbiAgLz5cbik7XG5cbmV4cG9ydCBpbnRlcmZhY2UgTG9hZGluZ0luZGljYXRvclByb3BzPFxuICBPcHRpb24gPSB1bmtub3duLFxuICBJc011bHRpIGV4dGVuZHMgYm9vbGVhbiA9IGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj4gPSBHcm91cEJhc2U8T3B0aW9uPlxuPiBleHRlbmRzIENvbW1vblByb3BzQW5kQ2xhc3NOYW1lPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+IHtcbiAgLyoqIFByb3BzIHRoYXQgd2lsbCBiZSBwYXNzZWQgb24gdG8gdGhlIGNoaWxkcmVuLiAqL1xuICBpbm5lclByb3BzOiBKU1guSW50cmluc2ljRWxlbWVudHNbJ2RpdiddO1xuICAvKiogVGhlIGZvY3VzZWQgc3RhdGUgb2YgdGhlIHNlbGVjdC4gKi9cbiAgaXNGb2N1c2VkOiBib29sZWFuO1xuICBpc0Rpc2FibGVkOiBib29sZWFuO1xuICAvKiogU2V0IHNpemUgb2YgdGhlIGNvbnRhaW5lci4gKi9cbiAgc2l6ZTogbnVtYmVyO1xufVxuZXhwb3J0IGNvbnN0IExvYWRpbmdJbmRpY2F0b3IgPSA8XG4gIE9wdGlvbixcbiAgSXNNdWx0aSBleHRlbmRzIGJvb2xlYW4sXG4gIEdyb3VwIGV4dGVuZHMgR3JvdXBCYXNlPE9wdGlvbj5cbj4oe1xuICBpbm5lclByb3BzLFxuICBpc1J0bCxcbiAgc2l6ZSA9IDQsXG4gIC4uLnJlc3RQcm9wc1xufTogTG9hZGluZ0luZGljYXRvclByb3BzPE9wdGlvbiwgSXNNdWx0aSwgR3JvdXA+KSA9PiB7XG4gIHJldHVybiAoXG4gICAgPGRpdlxuICAgICAgey4uLmdldFN0eWxlUHJvcHMoXG4gICAgICAgIHsgLi4ucmVzdFByb3BzLCBpbm5lclByb3BzLCBpc1J0bCwgc2l6ZSB9LFxuICAgICAgICAnbG9hZGluZ0luZGljYXRvcicsXG4gICAgICAgIHtcbiAgICAgICAgICBpbmRpY2F0b3I6IHRydWUsXG4gICAgICAgICAgJ2xvYWRpbmctaW5kaWNhdG9yJzogdHJ1ZSxcbiAgICAgICAgfVxuICAgICAgKX1cbiAgICAgIHsuLi5pbm5lclByb3BzfVxuICAgID5cbiAgICAgIDxMb2FkaW5nRG90IGRlbGF5PXswfSBvZmZzZXQ9e2lzUnRsfSAvPlxuICAgICAgPExvYWRpbmdEb3QgZGVsYXk9ezE2MH0gb2Zmc2V0IC8+XG4gICAgICA8TG9hZGluZ0RvdCBkZWxheT17MzIwfSBvZmZzZXQ9eyFpc1J0bH0gLz5cbiAgICA8L2Rpdj5cbiAgKTtcbn07XG4iXX0= */")})},gU=function(t){var n=t.innerProps,r=t.isRtl,o=t.size,i=o===void 0?4:o,s=Jn(t,oU);return le("div",ce({},We(pe(pe({},s),{},{innerProps:n,isRtl:r,size:i}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),n),le(Du,{delay:0,offset:r}),le(Du,{delay:160,offset:!0}),le(Du,{delay:320,offset:!r}))},mU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.theme,s=i.colors,a=i.borderRadius,l=i.spacing;return pe({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},n?{}:{backgroundColor:r?s.neutral5:s.neutral0,borderColor:r?s.neutral10:o?s.primary:s.neutral20,borderRadius:a,borderStyle:"solid",borderWidth:1,boxShadow:o?"0 0 0 1px ".concat(s.primary):void 0,"&:hover":{borderColor:o?s.primary:s.neutral30}})},yU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.innerRef,s=t.innerProps,a=t.menuIsOpen;return le("div",ce({ref:i},We(t,"control",{control:!0,"control--is-disabled":r,"control--is-focused":o,"control--menu-is-open":a}),s,{"aria-disabled":r||void 0}),n)},bU=yU,vU=["data"],xU=function(t,n){var r=t.theme.spacing;return n?{}:{paddingBottom:r.baseUnit*2,paddingTop:r.baseUnit*2}},wU=function(t){var n=t.children,r=t.cx,o=t.getStyles,i=t.getClassNames,s=t.Heading,a=t.headingProps,l=t.innerProps,c=t.label,u=t.theme,f=t.selectProps;return le("div",ce({},We(t,"group",{group:!0}),l),le(s,ce({},a,{selectProps:f,theme:u,getStyles:o,getClassNames:i,cx:r}),c),le("div",null,n))},CU=function(t,n){var r=t.theme,o=r.colors,i=r.spacing;return pe({label:"group",cursor:"default",display:"block"},n?{}:{color:o.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:i.baseUnit*3,paddingRight:i.baseUnit*3,textTransform:"uppercase"})},_U=function(t){var n=YS(t);n.data;var r=Jn(n,vU);return le("div",ce({},We(t,"groupHeading",{"group-heading":!0}),r))},SU=wU,EU=["innerRef","isDisabled","isHidden","inputClassName"],IU=function(t,n){var r=t.isDisabled,o=t.value,i=t.theme,s=i.spacing,a=i.colors;return pe(pe({visibility:r?"hidden":"visible",transform:o?"translateZ(0)":""},kU),n?{}:{margin:s.baseUnit/2,paddingBottom:s.baseUnit/2,paddingTop:s.baseUnit/2,color:a.neutral80})},nE={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},kU={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":pe({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},nE)},AU=function(t){return pe({label:"input",color:"inherit",background:0,opacity:t?0:1,width:"100%"},nE)},RU=function(t){var n=t.cx,r=t.value,o=YS(t),i=o.innerRef,s=o.isDisabled,a=o.isHidden,l=o.inputClassName,c=Jn(o,EU);return le("div",ce({},We(t,"input",{"input-container":!0}),{"data-value":r||""}),le("input",ce({className:n({input:!0},l),ref:i,style:AU(a),disabled:s},c)))},TU=RU,NU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors;return pe({label:"multiValue",display:"flex",minWidth:0},n?{}:{backgroundColor:s.neutral10,borderRadius:i/2,margin:o.baseUnit/2})},PU=function(t,n){var r=t.theme,o=r.borderRadius,i=r.colors,s=t.cropWithEllipsis;return pe({overflow:"hidden",textOverflow:s||s===void 0?"ellipsis":void 0,whiteSpace:"nowrap"},n?{}:{borderRadius:o/2,color:i.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},OU=function(t,n){var r=t.theme,o=r.spacing,i=r.borderRadius,s=r.colors,a=t.isFocused;return pe({alignItems:"center",display:"flex"},n?{}:{borderRadius:i/2,backgroundColor:a?s.dangerLight:void 0,paddingLeft:o.baseUnit,paddingRight:o.baseUnit,":hover":{backgroundColor:s.dangerLight,color:s.danger}})},rE=function(t){var n=t.children,r=t.innerProps;return le("div",r,n)},MU=rE,DU=rE;function FU(e){var t=e.children,n=e.innerProps;return le("div",ce({role:"button"},n),t||le(ph,{size:14}))}var jU=function(t){var n=t.children,r=t.components,o=t.data,i=t.innerProps,s=t.isDisabled,a=t.removeProps,l=t.selectProps,c=r.Container,u=r.Label,f=r.Remove;return le(c,{data:o,innerProps:pe(pe({},We(t,"multiValue",{"multi-value":!0,"multi-value--is-disabled":s})),i),selectProps:l},le(u,{data:o,innerProps:pe({},We(t,"multiValueLabel",{"multi-value__label":!0})),selectProps:l},n),le(f,{data:o,innerProps:pe(pe({},We(t,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(n||"option")},a),selectProps:l}))},LU=jU,BU=function(t,n){var r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.theme,a=s.spacing,l=s.colors;return pe({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},n?{}:{backgroundColor:i?l.primary:o?l.primary25:"transparent",color:r?l.neutral20:i?l.neutral0:"inherit",padding:"".concat(a.baseUnit*2,"px ").concat(a.baseUnit*3,"px"),":active":{backgroundColor:r?void 0:i?l.primary:l.primary50}})},zU=function(t){var n=t.children,r=t.isDisabled,o=t.isFocused,i=t.isSelected,s=t.innerRef,a=t.innerProps;return le("div",ce({},We(t,"option",{option:!0,"option--is-disabled":r,"option--is-focused":o,"option--is-selected":i}),{ref:s,"aria-disabled":r},a),n)},VU=zU,GU=function(t,n){var r=t.theme,o=r.spacing,i=r.colors;return pe({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},n?{}:{color:i.neutral50,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2})},$U=function(t){var n=t.children,r=t.innerProps;return le("div",ce({},We(t,"placeholder",{placeholder:!0}),r),n)},HU=$U,WU=function(t,n){var r=t.isDisabled,o=t.theme,i=o.spacing,s=o.colors;return pe({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},n?{}:{color:r?s.neutral40:s.neutral80,marginLeft:i.baseUnit/2,marginRight:i.baseUnit/2})},XU=function(t){var n=t.children,r=t.isDisabled,o=t.innerProps;return le("div",ce({},We(t,"singleValue",{"single-value":!0,"single-value--is-disabled":r}),o),n)},YU=XU,UU={ClearIndicator:uU,Control:bU,DropdownIndicator:lU,DownChevron:eE,CrossIcon:ph,Group:SU,GroupHeading:_U,IndicatorsContainer:nU,IndicatorSeparator:dU,Input:TU,LoadingIndicator:gU,Menu:GY,MenuList:HY,MenuPortal:JY,LoadingMessage:UY,NoOptionsMessage:YY,MultiValue:LU,MultiValueContainer:MU,MultiValueLabel:DU,MultiValueRemove:FU,Option:VU,Placeholder:HU,SelectContainer:KY,SingleValue:YU,ValueContainer:eU},ZU=function(t){return pe(pe({},UU),t.components)},Jy=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function JU(e,t){return!!(e===t||Jy(e)&&Jy(t))}function qU(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!JU(e[n],t[n]))return!1;return!0}function KU(e,t){t===void 0&&(t=qU);var n=null;function r(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;var s=e.apply(this,o);return n={lastResult:s,lastArgs:o,lastThis:this},s}return r.clear=function(){n=null},r}function QU(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var eZ=process.env.NODE_ENV==="production"?{name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"}:{name:"1f43avz-a11yText-A11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",toString:QU},tZ=function(t){return le("span",ce({css:eZ},t))},qy=tZ,nZ={guidance:function(t){var n=t.isSearchable,r=t.isMulti,o=t.tabSelectsValue,i=t.context,s=t.isInitialFocus;switch(i){case"menu":return"Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(o?", press Tab to select the option and exit the menu":"",".");case"input":return s?"".concat(t["aria-label"]||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(r?" press left to focus selected values":""):"";case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(t){var n=t.action,r=t.label,o=r===void 0?"":r,i=t.labels,s=t.isDisabled;switch(n){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(o,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return s?"option ".concat(o," is disabled. Select another option."):"option ".concat(o,", selected.");default:return""}},onFocus:function(t){var n=t.context,r=t.focused,o=t.options,i=t.label,s=i===void 0?"":i,a=t.selectValue,l=t.isDisabled,c=t.isSelected,u=t.isAppleDevice,f=function(h,y){return h&&h.length?"".concat(h.indexOf(y)+1," of ").concat(h.length):""};if(n==="value"&&a)return"value ".concat(s," focused, ").concat(f(a,r),".");if(n==="menu"&&u){var d=l?" disabled":"",p="".concat(c?" selected":"").concat(d);return"".concat(s).concat(p,", ").concat(f(o,r),".")}return""},onFilter:function(t){var n=t.inputValue,r=t.resultsMessage;return"".concat(r).concat(n?" for search term "+n:"",".")}},rZ=function(t){var n=t.ariaSelection,r=t.focusedOption,o=t.focusedValue,i=t.focusableOptions,s=t.isFocused,a=t.selectValue,l=t.selectProps,c=t.id,u=t.isAppleDevice,f=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,g=l.isMulti,h=l.isOptionDisabled,y=l.isSearchable,m=l.menuIsOpen,x=l.options,v=l.screenReaderStatus,C=l.tabSelectsValue,S=l.isLoading,E=l["aria-label"],I=l["aria-live"],P=N.useMemo(function(){return pe(pe({},nZ),f||{})},[f]),M=N.useMemo(function(){var j="";if(n&&P.onChange){var D=n.option,z=n.options,V=n.removedValue,F=n.removedValues,_=n.value,G=function(U){return Array.isArray(U)?null:U},$=V||D||G(_),T=$?d($):"",H=z||F||void 0,J=H?H.map(d):[],W=pe({isDisabled:$&&h($,a),label:T,labels:J},n);j=P.onChange(W)}return j},[n,P,h,a,d]),w=N.useMemo(function(){var j="",D=r||o,z=!!(r&&a&&a.includes(r));if(D&&P.onFocus){var V={focused:D,label:d(D),isDisabled:h(D,a),isSelected:z,options:i,context:D===r?"menu":"value",selectValue:a,isAppleDevice:u};j=P.onFocus(V)}return j},[r,o,d,h,P,i,a,u]),R=N.useMemo(function(){var j="";if(m&&x.length&&!S&&P.onFilter){var D=v({count:i.length});j=P.onFilter({inputValue:p,resultsMessage:D})}return j},[i,p,m,P,x,v,S]),O=(n==null?void 0:n.action)==="initial-input-focus",L=N.useMemo(function(){var j="";if(P.guidance){var D=o?"value":m?"menu":"input";j=P.guidance({"aria-label":E,context:D,isDisabled:r&&h(r,a),isMulti:g,isSearchable:y,tabSelectsValue:C,isInitialFocus:O})}return j},[E,r,o,g,h,y,m,P,a,C,O]),A=le(N.Fragment,null,le("span",{id:"aria-selection"},M),le("span",{id:"aria-focused"},w),le("span",{id:"aria-results"},R),le("span",{id:"aria-guidance"},L));return le(N.Fragment,null,le(qy,{id:c},O&&A),le(qy,{"aria-live":I,"aria-atomic":"false","aria-relevant":"additions text",role:"log"},s&&!O&&A))},oZ=rZ,ud=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],iZ=new RegExp("["+ud.map(function(e){return e.letters}).join("")+"]","g"),oE={};for(var Fu=0;Fu<ud.length;Fu++)for(var ju=ud[Fu],Lu=0;Lu<ju.letters.length;Lu++)oE[ju.letters[Lu]]=ju.base;var iE=function(t){return t.replace(iZ,function(n){return oE[n]})},sZ=KU(iE),Ky=function(t){return t.replace(/^\s+|\s+$/g,"")},aZ=function(t){return"".concat(t.label," ").concat(t.value)},lZ=function(t){return function(n,r){if(n.data.__isNew__)return!0;var o=pe({ignoreCase:!0,ignoreAccents:!0,stringify:aZ,trim:!0,matchFrom:"any"},t),i=o.ignoreCase,s=o.ignoreAccents,a=o.stringify,l=o.trim,c=o.matchFrom,u=l?Ky(r):r,f=l?Ky(a(n)):a(n);return i&&(u=u.toLowerCase(),f=f.toLowerCase()),s&&(u=sZ(u),f=iE(f)),c==="start"?f.substr(0,u.length)===u:f.indexOf(u)>-1}},cZ=["innerRef"];function uZ(e){var t=e.innerRef,n=Jn(e,cZ),r=MY(n,"onExited","in","enter","exit","appear");return le("input",ce({ref:t},r,{css:nh({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},process.env.NODE_ENV==="production"?"":";label:DummyInput;",process.env.NODE_ENV==="production"?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")}))}var fZ=function(t){t.cancelable&&t.preventDefault(),t.stopPropagation()};function dZ(e){var t=e.isEnabled,n=e.onBottomArrive,r=e.onBottomLeave,o=e.onTopArrive,i=e.onTopLeave,s=N.useRef(!1),a=N.useRef(!1),l=N.useRef(0),c=N.useRef(null),u=N.useCallback(function(y,m){if(c.current!==null){var x=c.current,v=x.scrollTop,C=x.scrollHeight,S=x.clientHeight,E=c.current,I=m>0,P=C-S-v,M=!1;P>m&&s.current&&(r&&r(y),s.current=!1),I&&a.current&&(i&&i(y),a.current=!1),I&&m>P?(n&&!s.current&&n(y),E.scrollTop=C,M=!0,s.current=!0):!I&&-m>v&&(o&&!a.current&&o(y),E.scrollTop=0,M=!0,a.current=!0),M&&fZ(y)}},[n,r,o,i]),f=N.useCallback(function(y){u(y,y.deltaY)},[u]),d=N.useCallback(function(y){l.current=y.changedTouches[0].clientY},[]),p=N.useCallback(function(y){var m=l.current-y.changedTouches[0].clientY;u(y,m)},[u]),g=N.useCallback(function(y){if(y){var m=NY?{passive:!1}:!1;y.addEventListener("wheel",f,m),y.addEventListener("touchstart",d,m),y.addEventListener("touchmove",p,m)}},[p,d,f]),h=N.useCallback(function(y){y&&(y.removeEventListener("wheel",f,!1),y.removeEventListener("touchstart",d,!1),y.removeEventListener("touchmove",p,!1))},[p,d,f]);return N.useEffect(function(){if(t){var y=c.current;return g(y),function(){h(y)}}},[t,g,h]),function(y){c.current=y}}var Qy=["boxSizing","height","overflow","paddingRight","position"],eb={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function tb(e){e.cancelable&&e.preventDefault()}function nb(e){e.stopPropagation()}function rb(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;e===0?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ob(){return"ontouchstart"in window||navigator.maxTouchPoints}var ib=!!(typeof window<"u"&&window.document&&window.document.createElement),pi=0,fo={capture:!1,passive:!1};function pZ(e){var t=e.isEnabled,n=e.accountForScrollbars,r=n===void 0?!0:n,o=N.useRef({}),i=N.useRef(null),s=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;if(r&&Qy.forEach(function(g){var h=u&&u[g];o.current[g]=h}),r&&pi<1){var f=parseInt(o.current.paddingRight,10)||0,d=document.body?document.body.clientWidth:0,p=window.innerWidth-d+f||0;Object.keys(eb).forEach(function(g){var h=eb[g];u&&(u[g]=h)}),u&&(u.paddingRight="".concat(p,"px"))}c&&ob()&&(c.addEventListener("touchmove",tb,fo),l&&(l.addEventListener("touchstart",rb,fo),l.addEventListener("touchmove",nb,fo))),pi+=1}},[r]),a=N.useCallback(function(l){if(ib){var c=document.body,u=c&&c.style;pi=Math.max(pi-1,0),r&&pi<1&&Qy.forEach(function(f){var d=o.current[f];u&&(u[f]=d)}),c&&ob()&&(c.removeEventListener("touchmove",tb,fo),l&&(l.removeEventListener("touchstart",rb,fo),l.removeEventListener("touchmove",nb,fo)))}},[r]);return N.useEffect(function(){if(t){var l=i.current;return s(l),function(){a(l)}}},[t,s,a]),function(l){i.current=l}}function hZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var gZ=function(t){var n=t.target;return n.ownerDocument.activeElement&&n.ownerDocument.activeElement.blur()},mZ=process.env.NODE_ENV==="production"?{name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"}:{name:"bp8cua-ScrollManager",styles:"position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",toString:hZ};function yZ(e){var t=e.children,n=e.lockEnabled,r=e.captureEnabled,o=r===void 0?!0:r,i=e.onBottomArrive,s=e.onBottomLeave,a=e.onTopArrive,l=e.onTopLeave,c=dZ({isEnabled:o,onBottomArrive:i,onBottomLeave:s,onTopArrive:a,onTopLeave:l}),u=pZ({isEnabled:n}),f=function(p){c(p),u(p)};return le(N.Fragment,null,n&&le("div",{onClick:gZ,css:mZ}),t(f))}function bZ(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}var vZ=process.env.NODE_ENV==="production"?{name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"}:{name:"5kkxb2-requiredInput-RequiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",toString:bZ},xZ=function(t){var n=t.name,r=t.onFocus;return le("input",{required:!0,name:n,tabIndex:-1,"aria-hidden":"true",onFocus:r,css:vZ,value:"",onChange:function(){}})},wZ=xZ;function hh(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function CZ(){return hh(/^iPhone/i)}function sE(){return hh(/^Mac/i)}function _Z(){return hh(/^iPad/i)||sE()&&navigator.maxTouchPoints>1}function SZ(){return CZ()||_Z()}function EZ(){return sE()||SZ()}var IZ=function(t){return t.label},kZ=function(t){return t.label},AZ=function(t){return t.value},RZ=function(t){return!!t.isDisabled},TZ={clearIndicator:cU,container:qY,control:mU,dropdownIndicator:aU,group:xU,groupHeading:CU,indicatorsContainer:tU,indicatorSeparator:fU,input:IU,loadingIndicator:hU,loadingMessage:XY,menu:BY,menuList:$Y,menuPortal:ZY,multiValue:NU,multiValueLabel:PU,multiValueRemove:OU,noOptionsMessage:WY,option:BU,placeholder:GU,singleValue:WU,valueContainer:QY},NZ={primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},PZ=4,aE=4,OZ=38,MZ=aE*2,DZ={baseUnit:aE,controlHeight:OZ,menuGutter:MZ},Bu={borderRadius:PZ,colors:NZ,spacing:DZ},FZ={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Uy(),captureMenuScroll:!Uy(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:lZ(),formatGroupLabel:IZ,getOptionLabel:kZ,getOptionValue:AZ,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:RZ,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!RY(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(t){var n=t.count;return"".concat(n," result").concat(n!==1?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function sb(e,t,n,r){var o=uE(e,t,n),i=fE(e,t,n),s=cE(e,t),a=dl(e,t);return{type:"option",data:t,isDisabled:o,isSelected:i,label:s,value:a,index:r}}function ka(e,t){return e.options.map(function(n,r){if("options"in n){var o=n.options.map(function(s,a){return sb(e,s,t,a)}).filter(function(s){return lb(e,s)});return o.length>0?{type:"group",data:n,options:o,index:r}:void 0}var i=sb(e,n,t,r);return lb(e,i)?i:void 0}).filter(PY)}function lE(e){return e.reduce(function(t,n){return n.type==="group"?t.push.apply(t,dh(n.options.map(function(r){return r.data}))):t.push(n.data),t},[])}function ab(e,t){return e.reduce(function(n,r){return r.type==="group"?n.push.apply(n,dh(r.options.map(function(o){return{data:o.data,id:"".concat(t,"-").concat(r.index,"-").concat(o.index)}}))):n.push({data:r.data,id:"".concat(t,"-").concat(r.index)}),n},[])}function jZ(e,t){return lE(ka(e,t))}function lb(e,t){var n=e.inputValue,r=n===void 0?"":n,o=t.data,i=t.isSelected,s=t.label,a=t.value;return(!pE(e)||!i)&&dE(e,{label:s,value:a,data:o},r)}function LZ(e,t){var n=e.focusedValue,r=e.selectValue,o=r.indexOf(n);if(o>-1){var i=t.indexOf(n);if(i>-1)return n;if(o<t.length)return t[o]}return null}function BZ(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}var zu=function(t,n){var r,o=(r=t.find(function(i){return i.data===n}))===null||r===void 0?void 0:r.id;return o||null},cE=function(t,n){return t.getOptionLabel(n)},dl=function(t,n){return t.getOptionValue(n)};function uE(e,t,n){return typeof e.isOptionDisabled=="function"?e.isOptionDisabled(t,n):!1}function fE(e,t,n){if(n.indexOf(t)>-1)return!0;if(typeof e.isOptionSelected=="function")return e.isOptionSelected(t,n);var r=dl(e,t);return n.some(function(o){return dl(e,o)===r})}function dE(e,t,n){return e.filterOption?e.filterOption(t,n):!0}var pE=function(t){var n=t.hideSelectedOptions,r=t.isMulti;return n===void 0?r:n},zZ=1,hE=function(e){gY(n,e);var t=yY(n);function n(r){var o;if(pY(this,n),o=t.call(this,r),o.state={ariaSelection:null,focusedOption:null,focusedOptionId:null,focusableOptionsWithIds:[],focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0,instancePrefix:""},o.blockOptionHover=!1,o.isComposing=!1,o.commonProps=void 0,o.initialTouchX=0,o.initialTouchY=0,o.openAfterFocus=!1,o.scrollToFocusedOptionOnUpdate=!1,o.userIsDragging=void 0,o.isAppleDevice=EZ(),o.controlRef=null,o.getControlRef=function(l){o.controlRef=l},o.focusedOptionRef=null,o.getFocusedOptionRef=function(l){o.focusedOptionRef=l},o.menuListRef=null,o.getMenuListRef=function(l){o.menuListRef=l},o.inputRef=null,o.getInputRef=function(l){o.inputRef=l},o.focus=o.focusInput,o.blur=o.blurInput,o.onChange=function(l,c){var u=o.props,f=u.onChange,d=u.name;c.name=d,o.ariaOnChange(l,c),f(l,c)},o.setValue=function(l,c,u){var f=o.props,d=f.closeMenuOnSelect,p=f.isMulti,g=f.inputValue;o.onInputChange("",{action:"set-value",prevInputValue:g}),d&&(o.setState({inputIsHiddenAfterUpdate:!p}),o.onMenuClose()),o.setState({clearFocusValueOnUpdate:!0}),o.onChange(l,{action:c,option:u})},o.selectOption=function(l){var c=o.props,u=c.blurInputOnSelect,f=c.isMulti,d=c.name,p=o.state.selectValue,g=f&&o.isOptionSelected(l,p),h=o.isOptionDisabled(l,p);if(g){var y=o.getOptionValue(l);o.setValue(p.filter(function(m){return o.getOptionValue(m)!==y}),"deselect-option",l)}else if(!h)f?o.setValue([].concat(dh(p),[l]),"select-option",l):o.setValue(l,"select-option");else{o.ariaOnChange(l,{action:"select-option",option:l,name:d});return}u&&o.blurInput()},o.removeValue=function(l){var c=o.props.isMulti,u=o.state.selectValue,f=o.getOptionValue(l),d=u.filter(function(g){return o.getOptionValue(g)!==f}),p=sa(c,d,d[0]||null);o.onChange(p,{action:"remove-value",removedValue:l}),o.focusInput()},o.clearValue=function(){var l=o.state.selectValue;o.onChange(sa(o.props.isMulti,[],null),{action:"clear",removedValues:l})},o.popValue=function(){var l=o.props.isMulti,c=o.state.selectValue,u=c[c.length-1],f=c.slice(0,c.length-1),d=sa(l,f,f[0]||null);u&&o.onChange(d,{action:"pop-value",removedValue:u})},o.getFocusedOptionId=function(l){return zu(o.state.focusableOptionsWithIds,l)},o.getFocusableOptionsWithIds=function(){return ab(ka(o.props,o.state.selectValue),o.getElementId("option"))},o.getValue=function(){return o.state.selectValue},o.cx=function(){for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return SY.apply(void 0,[o.props.classNamePrefix].concat(c))},o.getOptionLabel=function(l){return cE(o.props,l)},o.getOptionValue=function(l){return dl(o.props,l)},o.getStyles=function(l,c){var u=o.props.unstyled,f=TZ[l](c,u);f.boxSizing="border-box";var d=o.props.styles[l];return d?d(f,c):f},o.getClassNames=function(l,c){var u,f;return(u=(f=o.props.classNames)[l])===null||u===void 0?void 0:u.call(f,c)},o.getElementId=function(l){return"".concat(o.state.instancePrefix,"-").concat(l)},o.getComponents=function(){return ZU(o.props)},o.buildCategorizedOptions=function(){return ka(o.props,o.state.selectValue)},o.getCategorizedOptions=function(){return o.props.menuIsOpen?o.buildCategorizedOptions():[]},o.buildFocusableOptions=function(){return lE(o.buildCategorizedOptions())},o.getFocusableOptions=function(){return o.props.menuIsOpen?o.buildFocusableOptions():[]},o.ariaOnChange=function(l,c){o.setState({ariaSelection:pe({value:l},c)})},o.onMenuMouseDown=function(l){l.button===0&&(l.stopPropagation(),l.preventDefault(),o.focusInput())},o.onMenuMouseMove=function(l){o.blockOptionHover=!1},o.onControlMouseDown=function(l){if(!l.defaultPrevented){var c=o.props.openMenuOnClick;o.state.isFocused?o.props.menuIsOpen?l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&o.onMenuClose():c&&o.openMenu("first"):(c&&(o.openAfterFocus=!0),o.focusInput()),l.target.tagName!=="INPUT"&&l.target.tagName!=="TEXTAREA"&&l.preventDefault()}},o.onDropdownIndicatorMouseDown=function(l){if(!(l&&l.type==="mousedown"&&l.button!==0)&&!o.props.isDisabled){var c=o.props,u=c.isMulti,f=c.menuIsOpen;o.focusInput(),f?(o.setState({inputIsHiddenAfterUpdate:!u}),o.onMenuClose()):o.openMenu("first"),l.preventDefault()}},o.onClearIndicatorMouseDown=function(l){l&&l.type==="mousedown"&&l.button!==0||(o.clearValue(),l.preventDefault(),o.openAfterFocus=!1,l.type==="touchend"?o.focusInput():setTimeout(function(){return o.focusInput()}))},o.onScroll=function(l){typeof o.props.closeMenuOnScroll=="boolean"?l.target instanceof HTMLElement&&Cc(l.target)&&o.props.onMenuClose():typeof o.props.closeMenuOnScroll=="function"&&o.props.closeMenuOnScroll(l)&&o.props.onMenuClose()},o.onCompositionStart=function(){o.isComposing=!0},o.onCompositionEnd=function(){o.isComposing=!1},o.onTouchStart=function(l){var c=l.touches,u=c&&c.item(0);u&&(o.initialTouchX=u.clientX,o.initialTouchY=u.clientY,o.userIsDragging=!1)},o.onTouchMove=function(l){var c=l.touches,u=c&&c.item(0);if(u){var f=Math.abs(u.clientX-o.initialTouchX),d=Math.abs(u.clientY-o.initialTouchY),p=5;o.userIsDragging=f>p||d>p}},o.onTouchEnd=function(l){o.userIsDragging||(o.controlRef&&!o.controlRef.contains(l.target)&&o.menuListRef&&!o.menuListRef.contains(l.target)&&o.blurInput(),o.initialTouchX=0,o.initialTouchY=0)},o.onControlTouchEnd=function(l){o.userIsDragging||o.onControlMouseDown(l)},o.onClearIndicatorTouchEnd=function(l){o.userIsDragging||o.onClearIndicatorMouseDown(l)},o.onDropdownIndicatorTouchEnd=function(l){o.userIsDragging||o.onDropdownIndicatorMouseDown(l)},o.handleInputChange=function(l){var c=o.props.inputValue,u=l.currentTarget.value;o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange(u,{action:"input-change",prevInputValue:c}),o.props.menuIsOpen||o.onMenuOpen()},o.onInputFocus=function(l){o.props.onFocus&&o.props.onFocus(l),o.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(o.openAfterFocus||o.props.openMenuOnFocus)&&o.openMenu("first"),o.openAfterFocus=!1},o.onInputBlur=function(l){var c=o.props.inputValue;if(o.menuListRef&&o.menuListRef.contains(document.activeElement)){o.inputRef.focus();return}o.props.onBlur&&o.props.onBlur(l),o.onInputChange("",{action:"input-blur",prevInputValue:c}),o.onMenuClose(),o.setState({focusedValue:null,isFocused:!1})},o.onOptionHover=function(l){if(!(o.blockOptionHover||o.state.focusedOption===l)){var c=o.getFocusableOptions(),u=c.indexOf(l);o.setState({focusedOption:l,focusedOptionId:u>-1?o.getFocusedOptionId(l):null})}},o.shouldHideSelectedOptions=function(){return pE(o.props)},o.onValueInputFocus=function(l){l.preventDefault(),l.stopPropagation(),o.focus()},o.onKeyDown=function(l){var c=o.props,u=c.isMulti,f=c.backspaceRemovesValue,d=c.escapeClearsValue,p=c.inputValue,g=c.isClearable,h=c.isDisabled,y=c.menuIsOpen,m=c.onKeyDown,x=c.tabSelectsValue,v=c.openMenuOnFocus,C=o.state,S=C.focusedOption,E=C.focusedValue,I=C.selectValue;if(!h&&!(typeof m=="function"&&(m(l),l.defaultPrevented))){switch(o.blockOptionHover=!0,l.key){case"ArrowLeft":if(!u||p)return;o.focusValue("previous");break;case"ArrowRight":if(!u||p)return;o.focusValue("next");break;case"Delete":case"Backspace":if(p)return;if(E)o.removeValue(E);else{if(!f)return;u?o.popValue():g&&o.clearValue()}break;case"Tab":if(o.isComposing||l.shiftKey||!y||!x||!S||v&&o.isOptionSelected(S,I))return;o.selectOption(S);break;case"Enter":if(l.keyCode===229)break;if(y){if(!S||o.isComposing)return;o.selectOption(S);break}return;case"Escape":y?(o.setState({inputIsHiddenAfterUpdate:!1}),o.onInputChange("",{action:"menu-close",prevInputValue:p}),o.onMenuClose()):g&&d&&o.clearValue();break;case" ":if(p)return;if(!y){o.openMenu("first");break}if(!S)return;o.selectOption(S);break;case"ArrowUp":y?o.focusOption("up"):o.openMenu("last");break;case"ArrowDown":y?o.focusOption("down"):o.openMenu("first");break;case"PageUp":if(!y)return;o.focusOption("pageup");break;case"PageDown":if(!y)return;o.focusOption("pagedown");break;case"Home":if(!y)return;o.focusOption("first");break;case"End":if(!y)return;o.focusOption("last");break;default:return}l.preventDefault()}},o.state.instancePrefix="react-select-"+(o.props.instanceId||++zZ),o.state.selectValue=Xy(r.value),r.menuIsOpen&&o.state.selectValue.length){var i=o.getFocusableOptionsWithIds(),s=o.buildFocusableOptions(),a=s.indexOf(o.state.selectValue[0]);o.state.focusableOptionsWithIds=i,o.state.focusedOption=s[a],o.state.focusedOptionId=zu(i,s[a])}return o}return hY(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Yy(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(o){var i=this.props,s=i.isDisabled,a=i.menuIsOpen,l=this.state.isFocused;(l&&!s&&o.isDisabled||l&&a&&!o.menuIsOpen)&&this.focusInput(),l&&s&&!o.isDisabled?this.setState({isFocused:!1},this.onMenuClose):!l&&!s&&o.isDisabled&&this.inputRef===document.activeElement&&this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Yy(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(o,i){this.props.onInputChange(o,i)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(o){var i=this,s=this.state,a=s.selectValue,l=s.isFocused,c=this.buildFocusableOptions(),u=o==="first"?0:c.length-1;if(!this.props.isMulti){var f=c.indexOf(a[0]);f>-1&&(u=f)}this.scrollToFocusedOptionOnUpdate=!(l&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:c[u],focusedOptionId:this.getFocusedOptionId(c[u])},function(){return i.onMenuOpen()})}},{key:"focusValue",value:function(o){var i=this.state,s=i.selectValue,a=i.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var l=s.indexOf(a);a||(l=-1);var c=s.length-1,u=-1;if(s.length){switch(o){case"previous":l===0?u=0:l===-1?u=c:u=l-1;break;case"next":l>-1&&l<c&&(u=l+1);break}this.setState({inputIsHidden:u!==-1,focusedValue:s[u]})}}}},{key:"focusOption",value:function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"first",i=this.props.pageSize,s=this.state.focusedOption,a=this.getFocusableOptions();if(a.length){var l=0,c=a.indexOf(s);s||(c=-1),o==="up"?l=c>0?c-1:a.length-1:o==="down"?l=(c+1)%a.length:o==="pageup"?(l=c-i,l<0&&(l=0)):o==="pagedown"?(l=c+i,l>a.length-1&&(l=a.length-1)):o==="last"&&(l=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[l],focusedValue:null,focusedOptionId:this.getFocusedOptionId(a[l])})}}},{key:"getTheme",value:function(){return this.props.theme?typeof this.props.theme=="function"?this.props.theme(Bu):pe(pe({},Bu),this.props.theme):Bu}},{key:"getCommonProps",value:function(){var o=this.clearValue,i=this.cx,s=this.getStyles,a=this.getClassNames,l=this.getValue,c=this.selectOption,u=this.setValue,f=this.props,d=f.isMulti,p=f.isRtl,g=f.options,h=this.hasValue();return{clearValue:o,cx:i,getStyles:s,getClassNames:a,getValue:l,hasValue:h,isMulti:d,isRtl:p,options:g,selectOption:c,selectProps:f,setValue:u,theme:this.getTheme()}}},{key:"hasValue",value:function(){var o=this.state.selectValue;return o.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var o=this.props,i=o.isClearable,s=o.isMulti;return i===void 0?s:i}},{key:"isOptionDisabled",value:function(o,i){return uE(this.props,o,i)}},{key:"isOptionSelected",value:function(o,i){return fE(this.props,o,i)}},{key:"filterOption",value:function(o,i){return dE(this.props,o,i)}},{key:"formatOptionLabel",value:function(o,i){if(typeof this.props.formatOptionLabel=="function"){var s=this.props.inputValue,a=this.state.selectValue;return this.props.formatOptionLabel(o,{context:i,inputValue:s,selectValue:a})}else return this.getOptionLabel(o)}},{key:"formatGroupLabel",value:function(o){return this.props.formatGroupLabel(o)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var o=this.props,i=o.isDisabled,s=o.isSearchable,a=o.inputId,l=o.inputValue,c=o.tabIndex,u=o.form,f=o.menuIsOpen,d=o.required,p=this.getComponents(),g=p.Input,h=this.state,y=h.inputIsHidden,m=h.ariaSelection,x=this.commonProps,v=a||this.getElementId("input"),C=pe(pe(pe({"aria-autocomplete":"list","aria-expanded":f,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":d,role:"combobox","aria-activedescendant":this.isAppleDevice?void 0:this.state.focusedOptionId||""},f&&{"aria-controls":this.getElementId("listbox")}),!s&&{"aria-readonly":!0}),this.hasValue()?(m==null?void 0:m.action)==="initial-input-focus"&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return s?k.createElement(g,ce({},x,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:v,innerRef:this.getInputRef,isDisabled:i,isHidden:y,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:c,form:u,type:"text",value:l},C)):k.createElement(uZ,ce({id:v,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:ul,onFocus:this.onInputFocus,disabled:i,tabIndex:c,inputMode:"none",form:u,value:""},C))}},{key:"renderPlaceholderOrValue",value:function(){var o=this,i=this.getComponents(),s=i.MultiValue,a=i.MultiValueContainer,l=i.MultiValueLabel,c=i.MultiValueRemove,u=i.SingleValue,f=i.Placeholder,d=this.commonProps,p=this.props,g=p.controlShouldRenderValue,h=p.isDisabled,y=p.isMulti,m=p.inputValue,x=p.placeholder,v=this.state,C=v.selectValue,S=v.focusedValue,E=v.isFocused;if(!this.hasValue()||!g)return m?null:k.createElement(f,ce({},d,{key:"placeholder",isDisabled:h,isFocused:E,innerProps:{id:this.getElementId("placeholder")}}),x);if(y)return C.map(function(P,M){var w=P===S,R="".concat(o.getOptionLabel(P),"-").concat(o.getOptionValue(P));return k.createElement(s,ce({},d,{components:{Container:a,Label:l,Remove:c},isFocused:w,isDisabled:h,key:R,index:M,removeProps:{onClick:function(){return o.removeValue(P)},onTouchEnd:function(){return o.removeValue(P)},onMouseDown:function(L){L.preventDefault()}},data:P}),o.formatOptionLabel(P,"value"))});if(m)return null;var I=C[0];return k.createElement(u,ce({},d,{data:I,isDisabled:h}),this.formatOptionLabel(I,"value"))}},{key:"renderClearIndicator",value:function(){var o=this.getComponents(),i=o.ClearIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!this.isClearable()||!i||l||!this.hasValue()||c)return null;var f={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isFocused:u}))}},{key:"renderLoadingIndicator",value:function(){var o=this.getComponents(),i=o.LoadingIndicator,s=this.commonProps,a=this.props,l=a.isDisabled,c=a.isLoading,u=this.state.isFocused;if(!i||!c)return null;var f={"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:f,isDisabled:l,isFocused:u}))}},{key:"renderIndicatorSeparator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator,s=o.IndicatorSeparator;if(!i||!s)return null;var a=this.commonProps,l=this.props.isDisabled,c=this.state.isFocused;return k.createElement(s,ce({},a,{isDisabled:l,isFocused:c}))}},{key:"renderDropdownIndicator",value:function(){var o=this.getComponents(),i=o.DropdownIndicator;if(!i)return null;var s=this.commonProps,a=this.props.isDisabled,l=this.state.isFocused,c={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return k.createElement(i,ce({},s,{innerProps:c,isDisabled:a,isFocused:l}))}},{key:"renderMenu",value:function(){var o=this,i=this.getComponents(),s=i.Group,a=i.GroupHeading,l=i.Menu,c=i.MenuList,u=i.MenuPortal,f=i.LoadingMessage,d=i.NoOptionsMessage,p=i.Option,g=this.commonProps,h=this.state.focusedOption,y=this.props,m=y.captureMenuScroll,x=y.inputValue,v=y.isLoading,C=y.loadingMessage,S=y.minMenuHeight,E=y.maxMenuHeight,I=y.menuIsOpen,P=y.menuPlacement,M=y.menuPosition,w=y.menuPortalTarget,R=y.menuShouldBlockScroll,O=y.menuShouldScrollIntoView,L=y.noOptionsMessage,A=y.onMenuScrollToTop,j=y.onMenuScrollToBottom;if(!I)return null;var D=function(T,H){var J=T.type,W=T.data,X=T.isDisabled,U=T.isSelected,Q=T.label,ne=T.value,oe=h===W,Z=X?void 0:function(){return o.onOptionHover(W)},ue=X?void 0:function(){return o.selectOption(W)},fe="".concat(o.getElementId("option"),"-").concat(H),Se={id:fe,onClick:ue,onMouseMove:Z,onMouseOver:Z,tabIndex:-1,role:"option","aria-selected":o.isAppleDevice?void 0:U};return k.createElement(p,ce({},g,{innerProps:Se,data:W,isDisabled:X,isSelected:U,key:fe,label:Q,type:J,value:ne,isFocused:oe,innerRef:oe?o.getFocusedOptionRef:void 0}),o.formatOptionLabel(T.data,"menu"))},z;if(this.hasOptions())z=this.getCategorizedOptions().map(function($){if($.type==="group"){var T=$.data,H=$.options,J=$.index,W="".concat(o.getElementId("group"),"-").concat(J),X="".concat(W,"-heading");return k.createElement(s,ce({},g,{key:W,data:T,options:H,Heading:a,headingProps:{id:X,data:$.data},label:o.formatGroupLabel($.data)}),$.options.map(function(U){return D(U,"".concat(J,"-").concat(U.index))}))}else if($.type==="option")return D($,"".concat($.index))});else if(v){var V=C({inputValue:x});if(V===null)return null;z=k.createElement(f,g,V)}else{var F=L({inputValue:x});if(F===null)return null;z=k.createElement(d,g,F)}var _={minMenuHeight:S,maxMenuHeight:E,menuPlacement:P,menuPosition:M,menuShouldScrollIntoView:O},G=k.createElement(zY,ce({},g,_),function($){var T=$.ref,H=$.placerProps,J=H.placement,W=H.maxHeight;return k.createElement(l,ce({},g,_,{innerRef:T,innerProps:{onMouseDown:o.onMenuMouseDown,onMouseMove:o.onMenuMouseMove},isLoading:v,placement:J}),k.createElement(yZ,{captureEnabled:m,onTopArrive:A,onBottomArrive:j,lockEnabled:R},function(X){return k.createElement(c,ce({},g,{innerRef:function(Q){o.getMenuListRef(Q),X(Q)},innerProps:{role:"listbox","aria-multiselectable":g.isMulti,id:o.getElementId("listbox")},isLoading:v,maxHeight:W,focusedOption:h}),z)}))});return w||M==="fixed"?k.createElement(u,ce({},g,{appendTo:w,controlElement:this.controlRef,menuPlacement:P,menuPosition:M}),G):G}},{key:"renderFormField",value:function(){var o=this,i=this.props,s=i.delimiter,a=i.isDisabled,l=i.isMulti,c=i.name,u=i.required,f=this.state.selectValue;if(u&&!this.hasValue()&&!a)return k.createElement(wZ,{name:c,onFocus:this.onValueInputFocus});if(!(!c||a))if(l)if(s){var d=f.map(function(h){return o.getOptionValue(h)}).join(s);return k.createElement("input",{name:c,type:"hidden",value:d})}else{var p=f.length>0?f.map(function(h,y){return k.createElement("input",{key:"i-".concat(y),name:c,type:"hidden",value:o.getOptionValue(h)})}):k.createElement("input",{name:c,type:"hidden",value:""});return k.createElement("div",null,p)}else{var g=f[0]?this.getOptionValue(f[0]):"";return k.createElement("input",{name:c,type:"hidden",value:g})}}},{key:"renderLiveRegion",value:function(){var o=this.commonProps,i=this.state,s=i.ariaSelection,a=i.focusedOption,l=i.focusedValue,c=i.isFocused,u=i.selectValue,f=this.getFocusableOptions();return k.createElement(oZ,ce({},o,{id:this.getElementId("live-region"),ariaSelection:s,focusedOption:a,focusedValue:l,isFocused:c,selectValue:u,focusableOptions:f,isAppleDevice:this.isAppleDevice}))}},{key:"render",value:function(){var o=this.getComponents(),i=o.Control,s=o.IndicatorsContainer,a=o.SelectContainer,l=o.ValueContainer,c=this.props,u=c.className,f=c.id,d=c.isDisabled,p=c.menuIsOpen,g=this.state.isFocused,h=this.commonProps=this.getCommonProps();return k.createElement(a,ce({},h,{className:u,innerProps:{id:f,onKeyDown:this.onKeyDown},isDisabled:d,isFocused:g}),this.renderLiveRegion(),k.createElement(i,ce({},h,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:d,isFocused:g,menuIsOpen:p}),k.createElement(l,ce({},h,{isDisabled:d}),this.renderPlaceholderOrValue(),this.renderInput()),k.createElement(s,ce({},h,{isDisabled:d}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(o,i){var s=i.prevProps,a=i.clearFocusValueOnUpdate,l=i.inputIsHiddenAfterUpdate,c=i.ariaSelection,u=i.isFocused,f=i.prevWasFocused,d=i.instancePrefix,p=o.options,g=o.value,h=o.menuIsOpen,y=o.inputValue,m=o.isMulti,x=Xy(g),v={};if(s&&(g!==s.value||p!==s.options||h!==s.menuIsOpen||y!==s.inputValue)){var C=h?jZ(o,x):[],S=h?ab(ka(o,x),"".concat(d,"-option")):[],E=a?LZ(i,x):null,I=BZ(i,C),P=zu(S,I);v={selectValue:x,focusedOption:I,focusedOptionId:P,focusableOptionsWithIds:S,focusedValue:E,clearFocusValueOnUpdate:!1}}var M=l!=null&&o!==s?{inputIsHidden:l,inputIsHiddenAfterUpdate:void 0}:{},w=c,R=u&&f;return u&&!R&&(w={value:sa(m,x,x[0]||null),options:x,action:"initial-input-focus"},R=!f),(c==null?void 0:c.action)==="initial-input-focus"&&(w=null),pe(pe(pe({},v),M),{},{prevProps:o,ariaSelection:w,prevWasFocused:R})}}]),n}(N.Component);hE.defaultProps=FZ;var VZ=N.forwardRef(function(e,t){var n=dY(e);return k.createElement(hE,ce({ref:t},n))}),GZ=VZ;const $Z=({options:e,items_per_page:t,className:n,defaultValue:r,onChange:o})=>{const[i,s]=N.useState(""),[a,l]=N.useState(0),c=p=>{s(p.toLowerCase()),l(0)},u=e.filter(p=>p.label.toLowerCase().includes(i)||p.value.toLowerCase().includes(i));var f;t!==void 0?f=u.slice(a*t,(a+1)*t):f=u;const d={control:p=>({...p,minHeight:void 0})};return b.jsx(GZ,{options:f,onInputChange:c,onChange:o,inputValue:i,isSearchable:!0,placeholder:"Select an option...",className:n,unstyled:!0,styles:d,classNamePrefix:"styled-select",defaultValue:r,value:r})};function HZ(e){return e===0?0:Math.abs(e)<1e-12?e:Number(e.toPrecision(12))}const gE=({iostore:e,inputconverter:t,parser:n=r=>parseFloat(r)})=>{var p,g,h,y,m,x,v,C,S,E,I,P,M,w;const r=k.useContext(xe),{preview:o}=e.valuestore(),i=e.use(),[s,a]=k.useState(t[1](o==null?void 0:o.value));k.useEffect(()=>{a(t[1](o==null?void 0:o.value))},[o]);const l=R=>{var O,L,A;R=n(parseFloat(R.toString()).toString()),isNaN(R)?(R="<NoValue>",a("")):(((O=i.value_options)==null?void 0:O.min)!==void 0&&R<i.value_options.min&&(R=i.value_options.min),((L=i.value_options)==null?void 0:L.max)!==void 0&&R>i.value_options.max&&(R=i.value_options.max),R=HZ(R),a(R.toString()));try{R=t[0](R)}catch{}(A=r.worker)==null||A.set_io_value({nid:i.node,ioid:i.id,value:R,set_default:i.render_options.set_default})},c=R=>{l(R.target.value)};let u=i.connected?t[1](o==null?void 0:o.value):s;u===void 0&&(u=(p=i.value_options)==null?void 0:p.min),u===void 0&&(u=(g=i.value_options)==null?void 0:g.max),u===void 0&&(u=""),u===null&&(u="");let f=null,d=1;return((h=i.value_options)==null?void 0:h.step)!==void 0?d=i.value_options.step:((y=i.value_options)==null?void 0:y.max)!==void 0&&((m=i.value_options)==null?void 0:m.min)!==void 0&&(d=(((x=i.value_options)==null?void 0:x.max)-((v=i.value_options)==null?void 0:v.min))/1e3),((C=i.value_options)==null?void 0:C.max)!==void 0&&((S=i.value_options)==null?void 0:S.min)!==void 0&&!i.connected&&(f=b.jsx("div",{style:{minWidth:"100px"},className:"SliderContainer",children:b.jsxs(W7,{className:"SliderRoot",value:[u===void 0?(E=i.value_options)==null?void 0:E.min:u],min:(I=i.value_options)==null?void 0:I.min,max:(P=i.value_options)==null?void 0:P.max,step:d,disabled:i.connected,onValueCommit:R=>{isNaN(R[0])||l(R[0])},onValueChange:R=>{isNaN(R[0])||a(R[0].toString())},onKeyDown:R=>{["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(R.key)&&R.stopPropagation()},children:[b.jsx(X7,{className:"SliderTrack",children:b.jsx(Y7,{className:"SliderRange"})}),b.jsx(U7,{className:"SliderThumb"})]})})),b.jsxs(b.Fragment,{children:[f,b.jsx("input",{type:"text",className:"nodedatainput styledinput numberinput",value:u,onChange:R=>a(R.target.value),onBlur:c,step:d,onKeyDown:R=>{if(!(R.ctrlKey||R.metaKey)){if(R.key==="ArrowUp"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)+d;l(O);return}if(R.key==="ArrowDown"){R.shiftKey&&(d*=10);let O=(parseFloat(u)||0)-d;l(O);return}!/^[0-9.eE+-]$/.test(R.key)&&!["Backspace","ArrowLeft","ArrowRight","Delete","Tab"].includes(R.key)&&R.preventDefault()}},disabled:i.connected,min:(M=i.value_options)==null?void 0:M.min,max:(w=i.value_options)==null?void 0:w.max})]})},WZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseFloat}),XZ=({iostore:e,inputconverter:t})=>gE({iostore:e,inputconverter:t,parser:parseInt}),YZ=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r}=e.valuestore(),o=e.use(),i=(r==null?void 0:r.value)===void 0,s=k.useRef(null);k.useEffect(()=>{s.current&&(s.current.indeterminate=i)},[s,i]);const a=l=>{var u;let c=l.target.checked;try{c=t[0](l.target.checked)}catch{}(u=n.worker)==null||u.set_io_value({nid:o.node,ioid:o.id,value:c,set_default:o.render_options.set_default})};return b.jsx("input",{ref:s,type:"checkbox",className:"styledcheckbox booleaninput",checked:!!t[1](r==null?void 0:r.value),onChange:a,disabled:o.connected})},cb=({iostore:e,inputconverter:t})=>{const n=k.useContext(xe),{preview:r,full:o}=e.valuestore(),i=e.use(),s=o===void 0?r==null?void 0:r.value:o==null?void 0:o.value,[a,l]=k.useState(t[1](s));k.useEffect(()=>{l(t[1](s))},[s]);const c=f=>{var p;let d=f.target.value;d||(d="<NoValue>");try{d=t[0](d)}catch{}(p=n.worker)==null||p.set_io_value({nid:i.node,ioid:i.id,value:d,set_default:i.render_options.set_default})};let u=i.connected?t[1](s):a;return u==null&&(u=""),b.jsx("input",{className:"nodedatainput styledinput stringinput",value:u,onChange:f=>l(f.target.value),onBlur:c,disabled:i.connected})},UZ=({iostore:e})=>{var c;const t=k.useContext(xe),n=e.use(),{preview:r,full:o}=e.valuestore(),i=o===void 0?r==null?void 0:r.value:o.value,s=((c=n.value_options)==null?void 0:c.colorspace)||"hex",a=u=>{var d;let f="<NoValue>";u&&(u[s]?f=u[s]():f=u.hex()),u===null&&(f=null);try{f=f}catch{}(d=t.worker)==null||d.set_io_value({nid:n.node,ioid:n.id,value:f,set_default:n.render_options.set_default})};let l=!1;return typeof n.type!="string"&&"anyOf"in n.type&&n.type.anyOf!==void 0&&(l=n.type.anyOf.some(u=>u==="None")),b.jsx(sY,{onChange:a,inicolordata:i,allow_null:l,inicolorspace:s})},ZZ=e=>e,JZ=e=>parseFloat(e),qZ=e=>!!e,KZ=e=>e==="null"?null:e,QZ=e=>e==="nuinputconvertermber"?JZ:e==="boolean"?qZ:e==="undefined"?KZ:ZZ,pl=({iostore:e,inputconverter:t,parser:n})=>{var h;const r=e.use(),{preview:o,full:i}=e.valuestore(),s=i===void 0?o==null?void 0:o.value:i.value;let a=((h=r.value_options)==null?void 0:h.options)||[];Array.isArray(a)&&(a={type:"enum",values:a,keys:a.map(y=>y===null?"None":y.toString()),nullable:!1}),a.type!=="enum"&&(a={type:"enum",values:Object.values(a),keys:Object.keys(a),nullable:!1}),a=a,a.nullable&&!a.values.includes(null)&&!a.keys.includes("None")&&(a.values.unshift(null),a.keys.unshift("None"));const l=[];for(let y=0;y<a.values.length;y++){const m=a.values[y]===null||a.values[y]===void 0?"undefined":typeof a.values[y];let x=a.values[y];x===null&&(x="null"),x===void 0&&(x="undefined"),l.push([a.keys[y],x.toString(),m])}const c=k.useContext(xe),u=({value:y,datatype:m})=>{var C;let v=(n||QZ(m))(y);try{v=t[0](y)}catch{}(C=c.worker)==null||C.set_io_value({nid:r.node,ioid:r.id,value:v,set_default:r.render_options.set_default})};let f=s;f===null&&(f="null"),f===void 0&&(f="undefined");const d=l.find(y=>y[1]===f.toString());let p;d!==void 0&&(p={value:d[1],label:d[0],datatype:d[2]});const g=l.map(y=>({value:y[1],label:y[0],datatype:y[2]}));return b.jsx($Z,{className:"nodedatainput styleddropdown",options:g,defaultValue:p,onChange:y=>{if(y===null){u({value:"<NoValue>",datatype:"string"});return}u(y)}})},eJ=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},tJ={float:WZ,int:XZ,bool:YZ,string:cb,str:cb,color:UZ,select:pl,enum:pl,bytes:eJ(uh,"")},nJ=({iostore:e,typestring:t})=>{const{InLineRenderer:n}=k.useContext(kn),{preview:r,full:o}=e.valuestore();if(t&&n[t])return b.jsx("div",{children:n[t]({iostore:e})});let i=(JSON.stringify(o||r)||"").replace(/\\n/g,`
|
|
865
|
+
`);return i.length>63&&(i=i.slice(0,60)+"..."),b.jsx("div",{children:i})},rJ={},Zt=(e,t=void 0)=>({iostore:n})=>{const{full:r,preview:o}=n.valuestore(),i=r===void 0?o:r,s=(i==null?void 0:i.value)||t;return b.jsx(e,{iostore:n,value:s})},oJ={string:Zt(kS),table:Zt(AS),image:Zt(ES),svg:Zt(IS,""),dict:Zt(xc,"{}"),bytes:Zt(uh,"")},iJ={},mE=e=>({iostore:t,value:n,preValue:r,onLoaded:o})=>b.jsx(e,{iostore:t,value:n,preValue:r,onLoaded:o}),ub=mE(xc),sJ={},aJ={},lJ={},cJ={},Yt={Inputrenderer:tJ,Outputrenderer:rJ,HandlePreviewRenderer:iJ,DataOverlayRenderer:sJ,DataPreviewViewRenderer:oJ,DataViewRenderer:A7,InLineRenderer:F$,NodeContextExtenders:cJ,NodeRenderer:aJ,NodeHooks:lJ},uJ=(e,t)=>{const n=t.options||{},r=n.overwrite===void 0?!0:n.overwrite;switch(t.type){case"EXTEND_INPUT_RENDER":return!r&&e.Inputrenderer[t.payload.type]?e:{...e,Inputrenderer:{...e.Inputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_OUTPUT_RENDER":return!r&&e.Outputrenderer[t.payload.type]?e:{...e,Outputrenderer:{...e.Outputrenderer,[t.payload.type]:t.payload.component}};case"EXTEND_HANDLE_PREVIEW_RENDER":return!r&&e.HandlePreviewRenderer[t.payload.type]?e:{...e,HandlePreviewRenderer:{...e.HandlePreviewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_OVERLAY_RENDER":return!r&&e.DataOverlayRenderer[t.payload.type]?e:{...e,DataOverlayRenderer:{...e.DataOverlayRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_PREVIEW_RENDER":return!r&&e.DataPreviewViewRenderer[t.payload.type]?e:{...e,DataPreviewViewRenderer:{...e.DataPreviewViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_DATA_VIEW_RENDER":return!r&&e.DataViewRenderer[t.payload.type]?e:{...e,DataViewRenderer:{...e.DataViewRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_CONTEXT_EXTENDER":return!r&&e.NodeContextExtenders[t.payload.type]?e:{...e,NodeContextExtenders:{...e.NodeContextExtenders,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_RENDERER":return!r&&e.NodeRenderer[t.payload.type]?e:{...e,NodeRenderer:{...e.NodeRenderer,[t.payload.type]:t.payload.component}};case"EXTEND_NODE_HOOKS":return!r&&e.NodeHooks[t.payload.type]?e:{...e,NodeHooks:{...e.NodeHooks,[t.payload.type]:t.payload.component}};case"EXTEND_FROM_PLUGIN":let o=!1;const i=[[t.payload.plugin.input_renderers||{},e.Inputrenderer],[t.payload.plugin.output_renderers||{},e.Outputrenderer],[t.payload.plugin.handle_preview_renderers||{},e.HandlePreviewRenderer],[t.payload.plugin.data_overlay_renderers||{},e.DataOverlayRenderer],[t.payload.plugin.data_preview_renderers||{},e.DataPreviewViewRenderer],[t.payload.plugin.data_view_renderers||{},e.DataViewRenderer],[t.payload.plugin.node_context_extenders||{},e.NodeContextExtenders],[t.payload.plugin.node_renderers||{},e.NodeRenderer],[t.payload.plugin.node_hooks||{},e.NodeHooks]];for(const[a,l]of i){if(Object.keys(a).length>0){if(r)o=!0;else for(const c in a)if(!l[c]){o=!0;break}}if(o)break}if(!o)return e;for(const[a,l]of i)for(const c in a)(r||!l[c])&&(l[c]=a[c]);return{...e};default:return e}},yE=({children:e,plugins:t,fnrf_zst:n})=>{const[r,o]=N.useReducer(uJ,Yt),i=(h,y,m)=>{o({type:"EXTEND_INPUT_RENDER",payload:{type:h,component:y},options:m})},s=(h,y,m)=>{o({type:"EXTEND_OUTPUT_RENDER",payload:{type:h,component:y},options:m})},a=(h,y,m)=>{o({type:"EXTEND_HANDLE_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},l=(h,y,m)=>{o({type:"EXTEND_DATA_OVERLAY_RENDER",payload:{type:h,component:y},options:m})},c=(h,y,m)=>{o({type:"EXTEND_DATA_PREVIEW_RENDER",payload:{type:h,component:y},options:m})},u=(h,y,m)=>{o({type:"EXTEND_DATA_VIEW_RENDER",payload:{type:h,component:y},options:m})},f=(h,y,m)=>{o({type:"EXTEND_NODE_CONTEXT_EXTENDER",payload:{type:h,component:y},options:m})},d=(h,y,m)=>{o({type:"EXTEND_NODE_RENDERER",payload:{type:h,component:y},options:m})},p=(h,y,m)=>{o({type:"EXTEND_NODE_HOOKS",payload:{type:h,component:y},options:m})},g=(h,y)=>{o({type:"EXTEND_FROM_PLUGIN",payload:{plugin:h},options:y})};return N.useEffect(()=>{for(const h in t){const y=t[h];if(!y)continue;const m=y.renderpluginfactory;m&&g(m({React:k,fnrf_zst:n,NodeContext:gh}))}},[t]),b.jsx(kn.Provider,{value:{Inputrenderer:r.Inputrenderer,Outputrenderer:r.Outputrenderer,HandlePreviewRenderer:r.HandlePreviewRenderer,DataOverlayRenderer:r.DataOverlayRenderer,DataPreviewViewRenderer:r.DataPreviewViewRenderer,DataViewRenderer:r.DataViewRenderer,InLineRenderer:r.InLineRenderer,NodeContextExtenders:r.NodeContextExtenders,NodeRenderer:r.NodeRenderer,NodeHooks:r.NodeHooks,extendInputRenderMapping:i,extendOutputRenderMapping:s,extendHandlePreviewRenderMapping:a,extendDataOverlayRenderMapping:l,extendDataPreviewRenderMapping:c,extendDataViewRenderMapping:u,extendNodeContextExtender:f,extendNodeRenderer:d,extendNodeHooks:p,extendFromPlugin:g},children:e})},kn=N.createContext({Inputrenderer:Yt.Inputrenderer,Outputrenderer:Yt.Outputrenderer,HandlePreviewRenderer:Yt.HandlePreviewRenderer,DataOverlayRenderer:Yt.DataOverlayRenderer,DataPreviewViewRenderer:Yt.DataPreviewViewRenderer,DataViewRenderer:Yt.DataViewRenderer,InLineRenderer:Yt.InLineRenderer,NodeContextExtenders:Yt.NodeContextExtenders,NodeRenderer:Yt.NodeRenderer,NodeHooks:Yt.NodeHooks,extendInputRenderMapping:(e,t,n)=>{},extendOutputRenderMapping:(e,t,n)=>{},extendHandlePreviewRenderMapping:(e,t,n)=>{},extendDataOverlayRenderMapping:(e,t,n)=>{},extendDataPreviewRenderMapping:(e,t,n)=>{},extendDataViewRenderMapping:(e,t,n)=>{},extendNodeContextExtender:(e,t,n)=>{},extendNodeRenderer:(e,t,n)=>{},extendNodeHooks:(e,t,n)=>{},extendFromPlugin:(e,t)=>{}}),bE=e=>{const t=N.useContext(xe),{DataOverlayRenderer:n,DataViewRenderer:r}=N.useContext(kn);if(e===void 0)return;const o=t.render_options(),[i]=Kr(e.type,o.typemap||{});return i?n[i]?n[i]:r[i]?mE(r[i]):ub:ub},fJ=e=>{const n=N.useContext(xe).render_options(),{HandlePreviewRenderer:r,DataPreviewViewRenderer:o}=N.useContext(kn),i=bE(e);let s;if(e){const[a]=Kr(e.type,n.typemap||{});a?r[a]?s=r[a]:o[a]?s=o[a]:s=Zt(ll):s=Zt(ll)}return[s,i]},vE=({iostore:e,Component:t})=>{const[n,r]=k.useState(void 0),[o,i]=k.useState(void 0),{full:s}=e.valuestore();k.useEffect(()=>{s===void 0?e.getState().try_get_full_value():i(s.value)},[s]);const a=()=>{o!==void 0&&r(o)};return b.jsx(t,{iostore:e,value:o,preValue:n,onLoaded:a})},xE=({iostore:e,Component:t})=>b.jsx(t,{iostore:e}),Kr=(e,t)=>{if(typeof e=="string")return e in t?[t[e],e]:[e,e];if("allOf"in e&&e.allOf!==void 0)return[void 0,void 0];if("anyOf"in e&&e.anyOf!==void 0){const n=e.anyOf.map(r=>Kr(r,t));for(const r of n)switch(r[0]){case"bool":return["bool",r[1]];case"enum":return["enum",r[1]];case"float":return["float",r[1]];case"int":return["int",r[1]];case"string":return["string",r[1]];case"str":return["string",r[1]]}return[void 0,void 0]}return!("type"in e)||e.type===void 0?[void 0,void 0]:e.type==="enum"?["enum","enum"]:[void 0,void 0]},fd=({iostore:e,typestring:t,preview:n,...r})=>{const[o,i]=N.useState(!1),[s,a]=N.useState(!1),l=k.useContext(xe),c=e.use(),[u,f]=fJ(c),d=l.local_state(()=>l.reactflowRef);return b.jsxs(k_,{open:o||s,onOpenChange:a,children:[b.jsx(A_,{asChild:!0,children:b.jsx(Li,{id:c.id,"data-type":t,...r})}),b.jsx(R_,{container:d,children:b.jsxs(T_,{className:"iotooltipcontent",sideOffset:5,children:[b.jsxs("div",{className:"iotooltip_container",children:[b.jsxs("div",{className:"iotooltip_header",children:[o?b.jsx(Q3,{onClick:()=>i(!1)}):b.jsx(K3,{onClick:()=>i(!0)}),f&&b.jsx(Xo,{title:c.full_id,trigger:b.jsx($1,{}),onOpenChange:p=>{p&&c.try_get_full_value&&c.try_get_full_value(),i(p)},children:b.jsx(vE,{Component:f,iostore:e})})]}),u?b.jsx(xE,{Component:u,iostore:e}):`no preview available for "${t}"`]}),b.jsx(M$,{className:"iotooltipcontentarrow"})]})})]})},hl={"":[e=>e,e=>e],str_to_json:[e=>JSON.parse(e),e=>typeof e=="string"?e:JSON.stringify(e)],str_to_list:[e=>{try{const t=JSON.parse(e);return Array.isArray(t)?t:[t]}catch{try{return JSON.parse("["+e+"]")}catch{}}throw new Error("Invalid list")},e=>JSON.stringify(e)]},dJ=({iostore:e})=>{var c,u;const n=N.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=N.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return r.hidden?null:b.jsxs("div",{className:"nodeinput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Left,type:"target"}),a&&b.jsx("div",{className:"iovaluefield nodrag","data-type":o,children:b.jsx(a,{iostore:e,inputconverter:l})}),b.jsx("div",{className:"ioname",children:r.name}),b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"})]})},pJ=({iostore:e})=>{const n=N.useContext(xe).render_options(),r=e.use(),[o]=Kr(r.type,n.typemap||{}),{Outputrenderer:i}=N.useContext(kn),s=o?i[o]:void 0;return r.hidden?null:b.jsxs("div",{className:"nodeoutput","data-type":o,children:[b.jsx(fd,{iostore:e,typestring:o,position:ae.Right,type:"source"}),b.jsx("div",{className:"ioname",children:r.name}),s?b.jsx("div",{className:"iovaluefield nodrag",children:b.jsx(s,{iostore:e})}):b.jsx("div",{className:"iovaluefield",children:b.jsx(nJ,{iostore:e,typestring:o})})]})},hJ=e=>{const t=N.useContext(xe),n=bE(e),{DataPreviewViewRenderer:r,DataViewRenderer:o}=N.useContext(kn),i=t.render_options();if(e===void 0)return[void 0,n];const[s]=Kr(e.type,i.typemap||{});return s?r[s]?[r[s],n]:o[s]?[Zt(o[s]),n]:[Zt(ll),n]:[Zt(ll),n]};function gJ(e,t,n={}){const{maxFontSize:r=100,minFontSize:o=6,decrementFactor:i=.9}=n;if(!e||!t)return;if(i>=1||i<=0)throw new Error("decrementFactor must be between 0 and 1");const s=e.getBoundingClientRect(),a=s.width,l=s.height;let c=r;t.style.whiteSpace="nowrap",t.style.display="inline-block",t.style.fontSize=c+"px";let u=t.getBoundingClientRect();for(;(u.width>a||u.height>l)&&c>o;)c*=i,t.style.fontSize=c+"px",u=t.getBoundingClientRect()}function mJ(e={n:0,elapsed:0,ascii:!1,unit:"it",unit_scale:!1,unit_divisor:1e3}){let t=e.total??null;const{n,unit_scale:r,elapsed:o,unit:i,unit_divisor:s,prefix:a="",rate:l=void 0,postfix:c=null,initial:u=0}=e;t!==null&&n>=t+.5&&(t=null);let f=n,d=t,p=l;r&&r!==!0&&r!==1&&(t!==null&&(d=t*r),f=n*r,l!==void 0&&(p=l*r));const g=fb(o);p===void 0&&o>0&&(p=(f-u)/o);const h=p?1/p:void 0,[y,m]=p?aa(p,s):[void 0,""],[x,v]=h?aa(h,1e3):[void 0,""],C=(y||"?")+`${m}${i}/s`,S=x?`${x}${v}s/`+i:"?",E=h&&h>1?S:C,I=r?aa(f,s).join(""):f.toString(),P=r&&d!==null?aa(d,s).join(""):(d==null?void 0:d.toString())??"?",M=p&&d!==null?(d-f)/p:0,w=p?fb(M):"?",R=a?`${a}: `:"";if(t!==null){const O=f/t*100,L=` ${I}/${P} [${g} < ${w}, ${E}${c??""}]`;return`${R}${O.toFixed(0)}%${L}`}return`${R}${I}${i} [${g}, ${E}${c??""}]`}function fb(e){const t=Math.floor(e/60),n=Math.floor(e%60);return`${t}:${n.toString().padStart(2,"0")}`}function aa(e,t){const n=["","K","M","G","T"];let r=0;for(;e>=t&&r<n.length-1;)e/=t,r++;return[e.toFixed(2),n[r]]}const yJ=({state:e,className:t="reacttqdm",...n})=>{const r=N.useRef(null),o=N.useRef(null);N.useEffect(()=>{const s=()=>{!r.current||!o.current||gJ(r.current,o.current,{maxFontSize:12,decrementFactor:.9})};return s(),window.addEventListener("resize",s),()=>{window.removeEventListener("resize",s)}},[e]);const i=e.total?e.n/e.total*100:0;return b.jsx("div",{ref:r,className:t,...n,children:b.jsxs("div",{style:{position:"relative",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center"},children:[b.jsx("div",{className:t+"-bar",style:{position:"absolute",width:"100%",height:"100%",overflow:"hidden"},children:b.jsx("div",{className:t+"-progress",style:{width:`${i}%`,height:"100%"}})}),b.jsx("div",{className:t+"-text",ref:o,children:mJ(e)})]})})},bJ=k.memo(({node_data:e})=>{const t=N.useContext(xe),n=()=>{t.on_node_action({type:"trigger",from_remote:!1,id:e.id})};return b.jsxs("div",{className:"nodeheader",title:e.description||e.node_name,children:[b.jsxs("div",{className:"nodeheader_element",children:[b.jsx(tF,{fontSize:"inherit",className:"triggerbutton",onClick:n}),b.jsx(eF,{fontSize:"inherit",onClick:async()=>{var r;console.log("nodestatus",await((r=t.worker)==null?void 0:r.get_node_status(e.id)))}})]}),b.jsx("div",{className:"nodeheader_element nodeheader_title",children:b.jsx("div",{className:"nodeheader_title_text",children:e.node_name})}),b.jsx("div",{className:"nodeheader_element",children:b.jsx(ds,{fontSize:"inherit"})})]})}),vJ=({iostore:e,node_data:t})=>{var i,s;const n=e.use(),[r,o]=hJ(n);return b.jsx("div",{className:"nodrag nodedatabody","data-src":((s=(i=t.render_options)==null?void 0:i.data)==null?void 0:s.src)||"",children:r&&n&&b.jsx(Xo,{title:n.full_id,trigger:b.jsx("div",{className:"nodedatabutton",children:b.jsx(xE,{Component:r,iostore:e})}),onOpenChange:a=>{a&&n!=null&&n.try_get_full_value&&(n==null||n.try_get_full_value())},children:o&&b.jsx(vE,{Component:o,iostore:e})})})},xJ=k.memo(({node_data:e})=>{var n,r,o,i;const t=(r=(n=e.render_options)==null?void 0:n.data)!=null&&r.src?e.io[(i=(o=e.render_options)==null?void 0:o.data)==null?void 0:i.src]:void 0;return b.jsxs("div",{className:"nodebody",children:[e.outputs.map(s=>b.jsx(pJ,{iostore:e.io[s]},s)),t&&b.jsx(vJ,{node_data:e,iostore:t}),e.inputs.map(s=>b.jsx(dJ,{iostore:e.io[s]},s))]})}),wE=k.memo(({node_data:e})=>{const[t,n]=N.useState(e.name);N.useEffect(()=>{n(e.name)},[e]);const r=N.useContext(xe),o=s=>{n(s.target.value)},i=s=>{const a=s.target.value;r.on_node_action({type:"update",from_remote:!1,id:e.id,node:{name:a}})};return b.jsx("input",{className:"nodename_input",value:t,onChange:o,onBlur:i})}),wJ=({node_data:e})=>{if(!e.progress)return null;const t=e.progress();return b.jsx(yJ,{state:t,className:"nodeprogress"})},CJ=k.memo(({node_data:e})=>b.jsxs("div",{className:"nodefooter",children:[e.error&&b.jsx("div",{className:"nodeerror",children:e.error}),b.jsx(wJ,{node_data:e})]})),_J=e=>{const t=N.useContext(xe),[n,r]=N.useState(!1),o=e.in_trigger(),i=N.useContext(kn),s=i.NodeContextExtenders[e.node_id],a=k.useMemo(()=>(s==null?void 0:s({node_data:e}))||{},[s,e]),l=k.useMemo(()=>({...a,node_data:e}),[a,e]),c=i.NodeHooks[e.node_id];for(const u of c||[])u({nodecontext:l});return N.useEffect(()=>{var u;(u=t.worker)==null||u.call_hooks("node_mounted",e.id)},[t.worker,e.id]),N.useEffect(()=>{let u;return o&&!n?r(!0):n&&(u=setTimeout(()=>r(!1),200)),()=>clearTimeout(u)},[o,n]),{visualTrigger:n,nodecontext:l}},gh=k.createContext(null),SJ=({data:e})=>{const t=e.nodestore.use(),n=t.properties["frontend:collapsed"]||!1,{visualTrigger:r,nodecontext:o}=_J(t);return b.jsx(gh.Provider,{value:o,children:b.jsxs("div",{className:"innernode"+(r?" intrigger":"")+(t.error?" error":""),children:[b.jsx(bJ,{node_data:t}),b.jsx(wE,{node_data:t}),n?null:b.jsx(xJ,{node_data:t}),b.jsx(CJ,{node_data:t})]})})},EJ=({iostore:e})=>{var c,u;const n=k.useContext(xe).render_options(),r=e.use(),[o,i]=Kr(r.render_options.type,n.typemap||{}),{Inputrenderer:s}=k.useContext(kn),a=o?(c=r.value_options)!=null&&c.options?pl:s[o]:void 0,l=hl[(i&&((u=n.inputconverter)==null?void 0:u[i]))??""]||hl[""];return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:r.name}),a&&b.jsx(a,{iostore:e,inputconverter:l}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:r.connected,onChange:f=>{var d;(d=r.set_hidden)==null||d.call(r,f.target.checked)},checked:r.hidden})]})})]})},IJ=({iostore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:t.name}),b.jsx("div",{children:b.jsxs("label",{children:["hidden:",b.jsx("input",{className:"styledcheckbox",type:"checkbox",disabled:t.connected,onChange:n=>{var r;(r=t.set_hidden)==null||r.call(t,n.target.checked)},checked:t.hidden})]})})]})},kJ=({nodestore:e})=>{const t=e.use();return b.jsxs("div",{className:"nodesettings_content",children:[b.jsx("div",{className:"nodesettings_section",children:b.jsxs("div",{className:"nodesettings_component",children:[b.jsx("div",{children:"Name"}),b.jsx("div",{children:b.jsx(wE,{node_data:t})})]})}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Inputs"}),t.inputs.map(n=>b.jsx(EJ,{iostore:t.io[n]},n))]}),b.jsxs("div",{className:"nodesettings_section",children:[b.jsx("div",{children:"Outputs"}),t.outputs.map(n=>b.jsx(IJ,{iostore:t.io[n]},n))]})]})},AJ=()=>{const e=k.useContext(xe),t=e.local_state(r=>r.selected_nodes);if(t.length===0)return b.jsx("div",{children:"Node Settings"});if(t.length>1)return b.jsx("div",{children:"Multiple Nodes Selected"});const n=e.nodespace.get_node(t[0]);return n?b.jsx(kJ,{nodestore:n}):b.jsx("div",{children:"Node not found"})},RJ=()=>{const e=k.useContext(xe),t=e.local_settings(o=>o.view_settings.expand_node_props),n=e.local_settings(o=>o.update_view_settings),r=o=>{n({expand_node_props:o})};return b.jsx(lC,{maxSize:"300px",direction:"left",expanded:t===void 0?!1:t,containerClassName:"pos-right pos-top bg1 h-12",className:"nodesettings_content",onExpandChange:r,children:b.jsx(AJ,{})})},TJ=({id:e,sourceX:t,sourceY:n,targetX:r,targetY:o,sourcePosition:i,targetPosition:s,data:a,...l})=>{const[c]=Ed({sourceX:t,sourceY:n,sourcePosition:i,targetX:r,targetY:o,targetPosition:s});return b.jsx(b.Fragment,{children:b.jsx(as,{id:e,path:c,...l})})},NJ=e=>({nodes:e.nodes,edges:e.edges,onNodesChange:e.onNodesChange,onEdgesChange:e.onEdgesChange,onConnect:e.onConnect}),PJ={default:SJ},OJ={default:TJ},MJ=()=>{const e=ss(),t=N.useContext(xe);return t.rf_instance=e,b.jsx(b.Fragment,{})},DJ=()=>{const e=N.useContext(xe),t=Mo("Delete"),n=fP(),r=cP();if(t){for(const o of n)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});if(!o.source||!o.target)return b.jsx(b.Fragment,{});if(!o.sourceHandle||!o.targetHandle)return b.jsx(b.Fragment,{});e.worker.remove_edge({src_nid:o.source,src_ioid:o.sourceHandle,trg_nid:o.target,trg_ioid:o.targetHandle})}for(const o of r)if(o.selected){if(!e.worker)return b.jsx(b.Fragment,{});e.worker.remove_node(o.id)}}return b.jsx(b.Fragment,{})},FJ=({id:e,top:t,left:n,right:r,bottom:o,...i})=>{const{getNode:s,setNodes:a,addNodes:l,setEdges:c}=ss(),u=N.useContext(xe),f=N.useCallback(()=>{const h=s(e);if(!h)return;const y={x:h.position.x+50,y:h.position.y+50};l({...h,id:`${h.id}-copy`,position:y})},[e,s,l]),d=N.useCallback(()=>{u.on_node_action({type:"delete",id:e,from_remote:!1})},[e,a,c]),p=u.nodespace.get_node(e,!1);if(!p)return b.jsx(b.Fragment,{children:" "});const g=p.use();return b.jsxs("div",{style:{top:t,left:n,right:r,bottom:o},className:"context-menu",...i,children:[b.jsx("p",{style:{fontWeight:"bold"},children:b.jsx("small",{children:g.name})}),b.jsx("button",{onClick:f,children:"duplicate"}),b.jsx("button",{onClick:d,children:"delete"})]})},CE=e=>{const t=N.useContext(xe),n=N.useRef(null);N.useEffect(()=>{t.reactflowRef=n.current},[n]);const[r,o]=N.useState(null),i=({nodes:d,edges:p})=>{const g=t.local_state.getState();t.local_state.setState({...g,selected_nodes:d.map(h=>h.id),selected_edges:p.map(h=>h.id)})},s=N.useCallback(()=>o(null),[o]),{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f}=t.useReactFlowStore(S$(NJ));return b.jsx("div",{className:"reactflowlayer",children:b.jsxs(aP,{nodes:a,edges:l,onNodesChange:c,onEdgesChange:u,onConnect:f,nodeTypes:PJ,edgeTypes:OJ,minZoom:e.minZoom,maxZoom:e.maxZoom,fitView:!0,onSelectionChange:i,ref:n,onPaneClick:s,panOnDrag:!e.static,children:[b.jsx(MJ,{}),b.jsx(DJ,{}),b.jsx(mP,{color:"#888",gap:16,size:1}),e.minimap&&b.jsx(DP,{nodeStrokeWidth:3,pannable:!e.static,zoomable:!e.static,zoomStep:3}),r&&b.jsx(FJ,{onClick:s,...r})]})})},_c=N.createContext(void 0),Dr=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,[a,l]=N.useState(!1),c=N.useRef(null),[u,f]=N.useState(null),[d,p]=N.useState({}),g=e.htime||300,h=e.vtime||300,y=e.hdelay||0,m=e.vdelay||200;N.useImperativeHandle(t,()=>c.current,[]);const x=async()=>{if(!c.current)return;c.current.style.transition="none",c.current.style.position="",c.current.style.top="",c.current.style.left="",c.current.style.width="",c.current.style.height="";const I=c.current.getBoundingClientRect();f([I.left,I.top,I.width,I.height]),c.current.style.transition="none",p({position:"absolute",top:`${I.top}px`,left:`${I.left}px`,width:`${I.width}px`,height:`${I.height}px`}),p(O=>({...O,transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`})),l(!0);const P=new Promise(O=>{setTimeout(()=>{p(L=>({...L,left:"0px",width:"100vw"})),O()},y)}),M=new Promise(O=>{setTimeout(()=>{p(L=>({...L,top:"0px",height:"100vh"})),O()},m)}),w=Math.max(g+y,h+m),R=new Promise(O=>{setTimeout(()=>{O()},w)});await Promise.all([P,M,R])},v=async()=>{if(!c.current||!u)return;const I={transitionProperty:"width, left, height, top",transitionDuration:`${g}ms, ${g}ms, ${h}ms, ${h}ms`};p(D=>({...D,...I}));const[P,M,w,R]=u,O=new Promise(D=>{setTimeout(()=>{p(z=>({...z,left:`${P}px`,width:`${w}px`})),D()},m)}),L=new Promise(D=>{setTimeout(()=>{p(z=>({...z,top:`${M}px`,height:`${R}px`})),D()},y)}),A=Math.max(g+y,h+m),j=new Promise(D=>{setTimeout(()=>{D()},A)});await Promise.all([O,L,j]),c.current.style.transition="",p({}),l(!1)},C=async()=>{c.current&&(a?await v():await x())};let S;if(n&&k.isValidElement(r)){const I=r,P=[I.props.className,o,"smooth-expand",a?"smooth-expand-expanded":""].filter(Boolean).join(" "),M={...I.props.style,...i,...d};S=k.cloneElement(I,{ref:c,className:P,style:M,...s})}else S=b.jsx("div",{ref:c,...s,className:`smooth-expand ${a?"smooth-expand-expanded":""} ${o||""}`,style:{...i,...d},children:r});const E=b.jsx(_c.Provider,{value:{isExpanded:a,toggleExpand:C},children:S});return a?hd.createPortal(E,document.body):E});Dr.Trigger=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Trigger must be used within a SmoothExpandComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleExpand,children:e})};Dr.Expanded=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Expanded must be used within a SmoothExpandComponent");return t.isExpanded?b.jsx(b.Fragment,{children:e}):null};Dr.Collapsed=function({children:e}){const t=N.useContext(_c);if(!t)throw new Error("SmoothExpandComponent.Collapsed must be used within a SmoothExpandComponent");return t.isExpanded?null:b.jsx(b.Fragment,{children:e})};const Sc=k.createContext(void 0),ar=N.forwardRef((e,t)=>{const{asChild:n,children:r,className:o,style:i,...s}=e,a=N.useRef(null);N.useImperativeHandle(t,()=>a.current,[]);const[l,c]=N.useState(!1),u=N.useCallback(async()=>{try{const d=a.current;if(!d)return;if(!l)d.requestFullscreen?await d.requestFullscreen():d.mozRequestFullScreen?await d.mozRequestFullScreen():d.webkitRequestFullscreen?await d.webkitRequestFullscreen():d.msRequestFullscreen&&await d.msRequestFullscreen(),c(!0);else{const p=document;p.exitFullscreen?await p.exitFullscreen():p.mozCancelFullScreen?await p.mozCancelFullScreen():p.webkitExitFullscreen?await p.webkitExitFullscreen():p.msExitFullscreen&&await p.msExitFullscreen(),c(!1)}}catch(d){console.error("Error toggling fullscreen",d)}},[l]);N.useEffect(()=>{const d=()=>{const p=document.fullscreenElement;c(!!p)};return document.addEventListener("fullscreenchange",d),document.addEventListener("webkitfullscreenchange",d),document.addEventListener("mozfullscreenchange",d),document.addEventListener("MSFullscreenChange",d),()=>{document.removeEventListener("fullscreenchange",d),document.removeEventListener("webkitfullscreenchange",d),document.removeEventListener("mozfullscreenchange",d),document.removeEventListener("MSFullscreenChange",d)}},[]);let f;if(n&&k.isValidElement(r)){const d=r,p=[d.props.className,o].filter(Boolean).join(" "),g={...d.props.style,...i};f=k.cloneElement(d,{ref:a,className:p,style:g,...s})}else f=b.jsx("div",{ref:a,...s,className:o,style:i,children:r});return b.jsx(Sc.Provider,{value:{isFullScreen:l,toggleFullscreen:u},children:f})});ar.Trigger=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Trigger must be used within a FullScreenComponent");return b.jsx("div",{style:{cursor:"pointer"},onClick:t.toggleFullscreen,children:e})};ar.InFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Expanded must be used within a FullScreenComponent");return t.isFullScreen?b.jsx(b.Fragment,{children:e}):null};ar.OutFullScreen=function({children:e}){const t=k.useContext(Sc);if(!t)throw new Error("FullScreenComponent.Collapsed must be used within a FullScreenComponent");return t.isFullScreen?null:b.jsx(b.Fragment,{children:e})};const jJ=({fnrf_zst:e,header:t,flow:n,library:r})=>{const[o,i]=N.useState(e.options.worker),s=k.useRef(null);e.workermanager&&(e.workermanager.on_setWorker=i),e.set_worker(o),k.useEffect(()=>{e.auto_progress()},[]),k.useEffect(()=>{e.local_state.setState({funcnodescontainerRef:s.current})},[s]);const a=e.plugins();return b.jsx(yE,{plugins:a,fnrf_zst:e,children:b.jsx(xe.Provider,{value:e,children:b.jsx(Dr,{asChild:!0,children:b.jsx(ar,{asChild:!0,children:b.jsx(PL,{style:{height:"100%",width:"100%",display:"flex",flexDirection:"column",flex:1},children:b.jsxs("div",{ref:s,className:"funcnodesreactflowcontainer funcnodescontainer",children:[t.show&&b.jsx(VL,{...t}),b.jsxs("div",{className:"funcnodesreactflowbody",children:[b.jsx(CE,{...n}),o&&r.show&&b.jsx(w$,{}),o&&n.showNodeSettings&&b.jsx(RJ,{})]}),b.jsxs("div",{className:"funcnodesflaotingmenu",children:[b.jsx(ar.OutFullScreen,{children:n.allowExpand&&b.jsxs(Dr.Trigger,{children:[b.jsx(Dr.Expanded,{children:b.jsx(J3,{size:"xl",style:{padding:"4px"}})}),b.jsx(Dr.Collapsed,{children:b.jsx(q3,{size:"xl",style:{padding:"4px"}})})]})}),n.allowFullScreen&&b.jsxs(ar.Trigger,{children:[b.jsx(ar.OutFullScreen,{children:b.jsx($1,{size:"xl",style:{padding:"4px"}})}),b.jsx(ar.InFullScreen,{children:b.jsx(Z3,{size:"xl",style:{padding:"4px"}})})]})]})]})})})})})})},dd={};window.fnrf_zst===void 0&&(window.fnrf_zst=dd);const LJ={show:!0},BJ={show:!0,showmenu:!0},zJ={minimap:!0,static:!1,minZoom:.1,maxZoom:5,allowFullScreen:!0,allowExpand:!0,showNodeSettings:!0},_E={id:"",debug:!1,useWorkerManager:!0,show_library:!0,header:BJ,flow:zJ,library:LJ},xe=N.createContext(Nd(_E)),SE=e=>{let t=es(e,{..._E,id:Rx()}).new_obj;if(!t.useWorkerManager&&t.worker===void 0)return b.jsx("div",{children:"Error: If you don't use a worker manager, you must provide a default worker."});if(e.useWorkerManager&&e.workermanager_url===void 0)return b.jsx("div",{children:"Error: If you use a worker manager, you must provide a worker manager url."});let n=dd[t.id];n===void 0&&(n=Nd(t),dd[t.id]=n),n.options.debug=t.debug;const[r,o]=k.useState(t);return k.useEffect(()=>{const i=[];if(r.worker===void 0&&r.worker_url!==void 0){r.useWorkerManager=!1;const s=new Dd({url:r.worker_url,uuid:r.id,on_sync_complete:r.on_sync_complete});r.worker=s,i.push(()=>{s.disconnect()})}if(r.fnw_url!==void 0){if(r.worker===void 0)throw new Error("defining fnw_url requires a worker to be defined");const s=DM(r.fnw_url),a=r.worker.on_sync_complete,l=async c=>{const u=await s;c.on_sync_complete=a,await c.update_from_export(u)};r.worker.on_sync_complete=l}if(r.worker!==void 0&&r.worker.set_zustand(n),t.useWorkerManager){const s=new kM(t.workermanager_url,n);n.workermanager=s,i.push(()=>{s.remove()})}return o({...r}),r.on_ready&&typeof r.on_ready=="function"&&r.on_ready({fnrf_zst:n}),()=>{for(const s of i)s()}},[]),b.jsx(jJ,{fnrf_zst:n,header:r.header,library:r.library,flow:r.flow})},VJ=({nid:e,ioid:t,value:n,set_default:r=!1})=>{var i;(i=N.useContext(xe).worker)==null||i.set_io_value({nid:e,ioid:t,value:n,set_default:r})},GJ={set_io_value:VJ},$J=e=>(new ox("FuncNodes",e.debug?"debug":"info").debug("Initalizing FuncNodes with props:",e),b.jsx("div",{className:"FuncnodesApp",children:b.jsx(SE,{...e})}));exports.FuncNodes=$J;exports.FuncNodesContext=xe;exports.FuncNodesReactFlowZustand=Nd;exports.FuncNodesWorker=Tx;exports.FuncnodesReactFlow=SE;exports.NodeContext=gh;exports.ReactFlowLayer=CE;exports.RenderMappingContext=kn;exports.RenderMappingProvider=yE;exports.WebSocketWorker=Dd;exports.deep_update=es;exports.helperfunctions=GJ;
|