treege 0.10.0 → 0.10.2

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/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(je,U){typeof exports=="object"&&typeof module<"u"?U(exports,require("react"),require("axios"),require("react-query"),require("@tracktor/design-system"),require("react-dom"),require("react-i18next"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","react","axios","react-query","@tracktor/design-system","react-dom","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],U):(je=typeof globalThis<"u"?globalThis:je||self,U(je.treege={},je.React,je.axios,je.reactQuery,je.designSystem,je.ReactDOM,je.reactI18next,je.langJson,je.codemirrorThemeDracula,je.CodeMirror,je.i18n,je.LanguageDetector))})(this,function(je,U,It,kt,w,hl,Ve,pl,gl,ml,rn,yl){"use strict";function vl(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 ue=vl(U);function Lo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Po(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var Qr={exports:{}},on={};/**
1
+ (function(je,S){typeof exports=="object"&&typeof module<"u"?S(exports,require("react"),require("@tanstack/react-query"),require("axios"),require("@tracktor/design-system"),require("react-d3-tree"),require("react-i18next"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","react","@tanstack/react-query","axios","@tracktor/design-system","react-d3-tree","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],S):(je=typeof globalThis<"u"?globalThis:je||self,S(je.treege={},je.React,je.reactQuery,je.axios,je.tracktorDesignSystem,je.ReactD3Tree,je.reactI18next,je.codemirrorLangJson,je.codemirrorThemeDracula,je.reactCodemirror,je.i18next,je.i18nextBrowserLanguageDetector))})(this,function(je,S,dt,ft,y,ni,$e,oi,ai,ii,At,si){"use strict";function ci(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 J=ci(S);function ui(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function li(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Rr={exports:{}},St={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Fo;function bl(){if(Fo)return on;Fo=1;var e=U,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,u){var c,d={},f=null,h=null;u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)r.call(l,c)&&!o.hasOwnProperty(c)&&(d[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)d[c]===void 0&&(d[c]=l[c]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return on.Fragment=n,on.jsx=a,on.jsxs=a,on}var an={};/**
9
+ */var Vn;function di(){if(Vn)return St;Vn=1;var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function i(u,l,d){var f,p={},h=null,M=null;d!==void 0&&(h=""+d),l.key!==void 0&&(h=""+l.key),l.ref!==void 0&&(M=l.ref);for(f in l)r.call(l,f)&&!a.hasOwnProperty(f)&&(p[f]=l[f]);if(u&&u.defaultProps)for(f in l=u.defaultProps,l)p[f]===void 0&&(p[f]=l[f]);return{$$typeof:t,type:u,key:h,ref:M,props:p,_owner:o.current}}return St.Fragment=n,St.jsx=i,St.jsxs=i,St}var kt={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,98 +14,38 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Uo;function xl(){return Uo||(Uo=1,process.env.NODE_ENV!=="production"&&function(){var e=U,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=Symbol.iterator,y="@@iterator";function v(p){if(p===null||typeof p!="object")return null;var j=b&&p[b]||p[y];return typeof j=="function"?j:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(p){{for(var j=arguments.length,L=new Array(j>1?j-1:0),Z=1;Z<j;Z++)L[Z-1]=arguments[Z];O("error",p,L)}}function O(p,j,L){{var Z=M.ReactDebugCurrentFrame,se=Z.getStackAddendum();se!==""&&(j+="%s",L=L.concat([se]));var le=L.map(function(ie){return String(ie)});le.unshift("Warning: "+j),Function.prototype.apply.call(console[p],console,le)}}var _=!1,m=!1,k=!1,C=!1,S=!1,I;I=Symbol.for("react.module.reference");function E(p){return!!(typeof p=="string"||typeof p=="function"||p===r||p===o||S||p===i||p===u||p===c||C||p===h||_||m||k||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===I||p.getModuleId!==void 0))}function $(p,j,L){var Z=p.displayName;if(Z)return Z;var se=j.displayName||j.name||"";return se!==""?L+"("+se+")":L}function X(p){return p.displayName||"Context"}function H(p){if(p==null)return null;if(typeof p.tag=="number"&&D("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case u:return"Suspense";case c:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case s:var j=p;return X(j)+".Consumer";case a:var L=p;return X(L._context)+".Provider";case l:return $(p,p.render,"ForwardRef");case d:var Z=p.displayName||null;return Z!==null?Z:H(p.type)||"Memo";case f:{var se=p,le=se._payload,ie=se._init;try{return H(ie(le))}catch{return null}}}return null}var x=Object.assign,z=0,N,R,P,q,T,A,V;function K(){}K.__reactDisabledLog=!0;function B(){{if(z===0){N=console.log,R=console.info,P=console.warn,q=console.error,T=console.group,A=console.groupCollapsed,V=console.groupEnd;var p={configurable:!0,enumerable:!0,value:K,writable:!0};Object.defineProperties(console,{info:p,log:p,warn:p,error:p,group:p,groupCollapsed:p,groupEnd:p})}z++}}function J(){{if(z--,z===0){var p={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:x({},p,{value:N}),info:x({},p,{value:R}),warn:x({},p,{value:P}),error:x({},p,{value:q}),group:x({},p,{value:T}),groupCollapsed:x({},p,{value:A}),groupEnd:x({},p,{value:V})})}z<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=M.ReactCurrentDispatcher,W;function ee(p,j,L){{if(W===void 0)try{throw Error()}catch(se){var Z=se.stack.trim().match(/\n( *(at )?)/);W=Z&&Z[1]||""}return`
18
- `+W+p}}var re=!1,te;{var Ce=typeof WeakMap=="function"?WeakMap:Map;te=new Ce}function Y(p,j){if(!p||re)return"";{var L=te.get(p);if(L!==void 0)return L}var Z;re=!0;var se=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var le;le=Q.current,Q.current=null,B();try{if(j){var ie=function(){throw Error()};if(Object.defineProperty(ie.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ie,[])}catch(it){Z=it}Reflect.construct(p,[],ie)}else{try{ie.call()}catch(it){Z=it}p.call(ie.prototype)}}else{try{throw Error()}catch(it){Z=it}p()}}catch(it){if(it&&Z&&typeof it.stack=="string"){for(var ne=it.stack.split(`
19
- `),Ie=Z.stack.split(`
20
- `),Ee=ne.length-1,Me=Ie.length-1;Ee>=1&&Me>=0&&ne[Ee]!==Ie[Me];)Me--;for(;Ee>=1&&Me>=0;Ee--,Me--)if(ne[Ee]!==Ie[Me]){if(Ee!==1||Me!==1)do if(Ee--,Me--,Me<0||ne[Ee]!==Ie[Me]){var ke=`
21
- `+ne[Ee].replace(" at new "," at ");return p.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",p.displayName)),typeof p=="function"&&te.set(p,ke),ke}while(Ee>=1&&Me>=0);break}}}finally{re=!1,Q.current=le,J(),Error.prepareStackTrace=se}var Nt=p?p.displayName||p.name:"",qr=Nt?ee(Nt):"";return typeof p=="function"&&te.set(p,qr),qr}function Le(p,j,L){return Y(p,!1)}function G(p){var j=p.prototype;return!!(j&&j.isReactComponent)}function Je(p,j,L){if(p==null)return"";if(typeof p=="function")return Y(p,G(p));if(typeof p=="string")return ee(p);switch(p){case u:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof p=="object")switch(p.$$typeof){case l:return Le(p.render);case d:return Je(p.type,j,L);case f:{var Z=p,se=Z._payload,le=Z._init;try{return Je(le(se),j,L)}catch{}}}return""}var rt=Object.prototype.hasOwnProperty,At={},Sr=M.ReactDebugCurrentFrame;function Jt(p){if(p){var j=p._owner,L=Je(p.type,p._source,j?j.type:null);Sr.setExtraStackFrame(L)}else Sr.setExtraStackFrame(null)}function Io(p,j,L,Z,se){{var le=Function.call.bind(rt);for(var ie in p)if(le(p,ie)){var ne=void 0;try{if(typeof p[ie]!="function"){var Ie=Error((Z||"React class")+": "+L+" type `"+ie+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[ie]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ie.name="Invariant Violation",Ie}ne=p[ie](j,ie,Z,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){ne=Ee}ne&&!(ne instanceof Error)&&(Jt(se),D("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",Z||"React class",L,ie,typeof ne),Jt(null)),ne instanceof Error&&!(ne.message in At)&&(At[ne.message]=!0,Jt(se),D("Failed %s type: %s",L,ne.message),Jt(null))}}}var ko=Array.isArray;function Sn(p){return ko(p)}function zo(p){{var j=typeof Symbol=="function"&&Symbol.toStringTag,L=j&&p[Symbol.toStringTag]||p.constructor.name||"Object";return L}}function Ro(p){try{return Ir(p),!1}catch{return!0}}function Ir(p){return""+p}function kr(p){if(Ro(p))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zo(p)),Ir(p)}var St=M.ReactCurrentOwner,$o={key:!0,ref:!0,__self:!0,__source:!0},zr,Rr,In;In={};function $r(p){if(rt.call(p,"ref")){var j=Object.getOwnPropertyDescriptor(p,"ref").get;if(j&&j.isReactWarning)return!1}return p.ref!==void 0}function Lr(p){if(rt.call(p,"key")){var j=Object.getOwnPropertyDescriptor(p,"key").get;if(j&&j.isReactWarning)return!1}return p.key!==void 0}function Pr(p,j){if(typeof p.ref=="string"&&St.current&&j&&St.current.stateNode!==j){var L=H(St.current.type);In[L]||(D('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',H(St.current.type),p.ref),In[L]=!0)}}function Fr(p,j){{var L=function(){zr||(zr=!0,D("%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://reactjs.org/link/special-props)",j))};L.isReactWarning=!0,Object.defineProperty(p,"key",{get:L,configurable:!0})}}function Ur(p,j){{var L=function(){Rr||(Rr=!0,D("%s: `ref` 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://reactjs.org/link/special-props)",j))};L.isReactWarning=!0,Object.defineProperty(p,"ref",{get:L,configurable:!0})}}var Yr=function(p,j,L,Z,se,le,ie){var ne={$$typeof:t,type:p,key:j,ref:L,props:ie,_owner:le};return ne._store={},Object.defineProperty(ne._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ne,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(ne,"_source",{configurable:!1,enumerable:!1,writable:!1,value:se}),Object.freeze&&(Object.freeze(ne.props),Object.freeze(ne)),ne};function Vr(p,j,L,Z,se){{var le,ie={},ne=null,Ie=null;L!==void 0&&(kr(L),ne=""+L),Lr(j)&&(kr(j.key),ne=""+j.key),$r(j)&&(Ie=j.ref,Pr(j,se));for(le in j)rt.call(j,le)&&!$o.hasOwnProperty(le)&&(ie[le]=j[le]);if(p&&p.defaultProps){var Ee=p.defaultProps;for(le in Ee)ie[le]===void 0&&(ie[le]=Ee[le])}if(ne||Ie){var Me=typeof p=="function"?p.displayName||p.name||"Unknown":p;ne&&Fr(ie,Me),Ie&&Ur(ie,Me)}return Yr(p,ne,Ie,se,Z,St.current,ie)}}var Zt=M.ReactCurrentOwner,kn=M.ReactDebugCurrentFrame;function Mt(p){if(p){var j=p._owner,L=Je(p.type,p._source,j?j.type:null);kn.setExtraStackFrame(L)}else kn.setExtraStackFrame(null)}var en;en=!1;function tn(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function zn(){{if(Zt.current){var p=H(Zt.current.type);if(p)return`
17
+ */var Qn;function fi(){return Qn||(Qn=1,process.env.NODE_ENV!=="production"&&function(){var e=S,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),v=Symbol.iterator,g="@@iterator";function m(s){if(s===null||typeof s!="object")return null;var x=v&&s[v]||s[g];return typeof x=="function"?x:null}var T=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function C(s){{for(var x=arguments.length,D=new Array(x>1?x-1:0),k=1;k<x;k++)D[k-1]=arguments[k];I("error",s,D)}}function I(s,x,D){{var k=T.ReactDebugCurrentFrame,K=k.getStackAddendum();K!==""&&(x+="%s",D=D.concat([K]));var Z=D.map(function(B){return String(B)});Z.unshift("Warning: "+x),Function.prototype.apply.call(console[s],console,Z)}}var A=!1,b=!1,q=!1,_=!1,we=!1,fe;fe=Symbol.for("react.module.reference");function U(s){return!!(typeof s=="string"||typeof s=="function"||s===r||s===a||we||s===o||s===d||s===f||_||s===M||A||b||q||typeof s=="object"&&s!==null&&(s.$$typeof===h||s.$$typeof===p||s.$$typeof===i||s.$$typeof===u||s.$$typeof===l||s.$$typeof===fe||s.getModuleId!==void 0))}function pe(s,x,D){var k=s.displayName;if(k)return k;var K=x.displayName||x.name||"";return K!==""?D+"("+K+")":D}function ke(s){return s.displayName||"Context"}function he(s){if(s==null)return null;if(typeof s.tag=="number"&&C("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case r:return"Fragment";case n:return"Portal";case a:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case u:var x=s;return ke(x)+".Consumer";case i:var D=s;return ke(D._context)+".Provider";case l:return pe(s,s.render,"ForwardRef");case p:var k=s.displayName||null;return k!==null?k:he(s.type)||"Memo";case h:{var K=s,Z=K._payload,B=K._init;try{return he(B(Z))}catch{return null}}}return null}var ge=Object.assign,be=0,Me,ze,Ae,Ye,j,O,P;function L(){}L.__reactDisabledLog=!0;function R(){{if(be===0){Me=console.log,ze=console.info,Ae=console.warn,Ye=console.error,j=console.group,O=console.groupCollapsed,P=console.groupEnd;var s={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}be++}}function Q(){{if(be--,be===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ge({},s,{value:Me}),info:ge({},s,{value:ze}),warn:ge({},s,{value:Ae}),error:ge({},s,{value:Ye}),group:ge({},s,{value:j}),groupCollapsed:ge({},s,{value:O}),groupEnd:ge({},s,{value:P})})}be<0&&C("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=T.ReactCurrentDispatcher,$;function V(s,x,D){{if($===void 0)try{throw Error()}catch(K){var k=K.stack.trim().match(/\n( *(at )?)/);$=k&&k[1]||""}return`
18
+ `+$+s}}var G=!1,Y;{var Te=typeof WeakMap=="function"?WeakMap:Map;Y=new Te}function E(s,x){if(!s||G)return"";{var D=Y.get(s);if(D!==void 0)return D}var k;G=!0;var K=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Z;Z=z.current,z.current=null,R();try{if(x){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(Ke){k=Ke}Reflect.construct(s,[],B)}else{try{B.call()}catch(Ke){k=Ke}s.call(B.prototype)}}else{try{throw Error()}catch(Ke){k=Ke}s()}}catch(Ke){if(Ke&&k&&typeof Ke.stack=="string"){for(var F=Ke.stack.split(`
19
+ `),Oe=k.stack.split(`
20
+ `),ve=F.length-1,ue=Oe.length-1;ve>=1&&ue>=0&&F[ve]!==Oe[ue];)ue--;for(;ve>=1&&ue>=0;ve--,ue--)if(F[ve]!==Oe[ue]){if(ve!==1||ue!==1)do if(ve--,ue--,ue<0||F[ve]!==Oe[ue]){var Ce=`
21
+ `+F[ve].replace(" at new "," at ");return s.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",s.displayName)),typeof s=="function"&&Y.set(s,Ce),Ce}while(ve>=1&&ue>=0);break}}}finally{G=!1,z.current=Z,Q(),Error.prepareStackTrace=K}var ct=s?s.displayName||s.name:"",_r=ct?V(ct):"";return typeof s=="function"&&Y.set(s,_r),_r}function _e(s,x,D){return E(s,!1)}function w(s){var x=s.prototype;return!!(x&&x.isReactComponent)}function Be(s,x,D){if(s==null)return"";if(typeof s=="function")return E(s,w(s));if(typeof s=="string")return V(s);switch(s){case d:return V("Suspense");case f:return V("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case l:return _e(s.render);case p:return Be(s.type,x,D);case h:{var k=s,K=k._payload,Z=k._init;try{return Be(Z(K),x,D)}catch{}}}return""}var Ge=Object.prototype.hasOwnProperty,ut={},Tr=T.ReactDebugCurrentFrame;function Et(s){if(s){var x=s._owner,D=Be(s.type,s._source,x?x.type:null);Tr.setExtraStackFrame(D)}else Tr.setExtraStackFrame(null)}function $n(s,x,D,k,K){{var Z=Function.call.bind(Ge);for(var B in s)if(Z(s,B)){var F=void 0;try{if(typeof s[B]!="function"){var Oe=Error((k||"React class")+": "+D+" type `"+B+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[B]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Oe.name="Invariant Violation",Oe}F=s[B](x,B,k,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ve){F=ve}F&&!(F instanceof Error)&&(Et(K),C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",D,B,typeof F),Et(null)),F instanceof Error&&!(F.message in ut)&&(ut[F.message]=!0,Et(K),C("Failed %s type: %s",D,F.message),Et(null))}}}var Pn=Array.isArray;function qt(s){return Pn(s)}function Yn(s){{var x=typeof Symbol=="function"&&Symbol.toStringTag,D=x&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function Fn(s){try{return jr(s),!1}catch{return!0}}function jr(s){return""+s}function Dr(s){if(Fn(s))return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Yn(s)),jr(s)}var lt=T.ReactCurrentOwner,Un={key:!0,ref:!0,__self:!0,__source:!0},Nr,Er,Wt;Wt={};function Or(s){if(Ge.call(s,"ref")){var x=Object.getOwnPropertyDescriptor(s,"ref").get;if(x&&x.isReactWarning)return!1}return s.ref!==void 0}function Cr(s){if(Ge.call(s,"key")){var x=Object.getOwnPropertyDescriptor(s,"key").get;if(x&&x.isReactWarning)return!1}return s.key!==void 0}function Ir(s,x){if(typeof s.ref=="string"&&lt.current&&x&&lt.current.stateNode!==x){var D=he(lt.current.type);Wt[D]||(C('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',he(lt.current.type),s.ref),Wt[D]=!0)}}function wr(s,x){{var D=function(){Nr||(Nr=!0,C("%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://reactjs.org/link/special-props)",x))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}}function Ar(s,x){{var D=function(){Er||(Er=!0,C("%s: `ref` 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://reactjs.org/link/special-props)",x))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}}var Sr=function(s,x,D,k,K,Z,B){var F={$$typeof:t,type:s,key:x,ref:D,props:B,_owner:Z};return F._store={},Object.defineProperty(F._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(F,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(F,"_source",{configurable:!1,enumerable:!1,writable:!1,value:K}),Object.freeze&&(Object.freeze(F.props),Object.freeze(F)),F};function kr(s,x,D,k,K){{var Z,B={},F=null,Oe=null;D!==void 0&&(Dr(D),F=""+D),Cr(x)&&(Dr(x.key),F=""+x.key),Or(x)&&(Oe=x.ref,Ir(x,K));for(Z in x)Ge.call(x,Z)&&!Un.hasOwnProperty(Z)&&(B[Z]=x[Z]);if(s&&s.defaultProps){var ve=s.defaultProps;for(Z in ve)B[Z]===void 0&&(B[Z]=ve[Z])}if(F||Oe){var ue=typeof s=="function"?s.displayName||s.name||"Unknown":s;F&&wr(B,ue),Oe&&Ar(B,ue)}return Sr(s,F,Oe,K,k,lt.current,B)}}var Ot=T.ReactCurrentOwner,Gt=T.ReactDebugCurrentFrame;function at(s){if(s){var x=s._owner,D=Be(s.type,s._source,x?x.type:null);Gt.setExtraStackFrame(D)}else Gt.setExtraStackFrame(null)}var Ct;Ct=!1;function It(s){return typeof s=="object"&&s!==null&&s.$$typeof===t}function Kt(){{if(Ot.current){var s=he(Ot.current.type);if(s)return`
22
22
 
23
- Check the render method of \``+p+"`."}return""}}function Br(p){{if(p!==void 0){var j=p.fileName.replace(/^.*[\\\/]/,""),L=p.lineNumber;return`
23
+ Check the render method of \``+s+"`."}return""}}function zr(s){{if(s!==void 0){var x=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
24
24
 
25
- Check your code at `+j+":"+L+"."}return""}}var Rn={};function F(p){{var j=zn();if(!j){var L=typeof p=="string"?p:p.displayName||p.name;L&&(j=`
25
+ Check your code at `+x+":"+D+"."}return""}}var Jt={};function N(s){{var x=Kt();if(!x){var D=typeof s=="string"?s:s.displayName||s.name;D&&(x=`
26
26
 
27
- Check the top-level render call using <`+L+">.")}return j}}function de(p,j){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var L=F(j);if(Rn[L])return;Rn[L]=!0;var Z="";p&&p._owner&&p._owner!==Zt.current&&(Z=" It was passed a child from "+H(p._owner.type)+"."),Mt(p),D('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',L,Z),Mt(null)}}function he(p,j){{if(typeof p!="object")return;if(Sn(p))for(var L=0;L<p.length;L++){var Z=p[L];tn(Z)&&de(Z,j)}else if(tn(p))p._store&&(p._store.validated=!0);else if(p){var se=v(p);if(typeof se=="function"&&se!==p.entries)for(var le=se.call(p),ie;!(ie=le.next()).done;)tn(ie.value)&&de(ie.value,j)}}}function Te(p){{var j=p.type;if(j==null||typeof j=="string")return;var L;if(typeof j=="function")L=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===l||j.$$typeof===d))L=j.propTypes;else return;if(L){var Z=H(j);Io(L,p.props,"prop",Z,p)}else if(j.PropTypes!==void 0&&!en){en=!0;var se=H(j);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pe(p){{for(var j=Object.keys(p.props),L=0;L<j.length;L++){var Z=j[L];if(Z!=="children"&&Z!=="key"){Mt(p),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Mt(null);break}}p.ref!==null&&(Mt(p),D("Invalid attribute `ref` supplied to `React.Fragment`."),Mt(null))}}function Fe(p,j,L,Z,se,le){{var ie=E(p);if(!ie){var ne="";(p===void 0||typeof p=="object"&&p!==null&&Object.keys(p).length===0)&&(ne+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ie=Br(se);Ie?ne+=Ie:ne+=zn();var Ee;p===null?Ee="null":Sn(p)?Ee="array":p!==void 0&&p.$$typeof===t?(Ee="<"+(H(p.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):Ee=typeof p,D("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Ee,ne)}var Me=Vr(p,j,L,se,le);if(Me==null)return Me;if(ie){var ke=j.children;if(ke!==void 0)if(Z)if(Sn(ke)){for(var Nt=0;Nt<ke.length;Nt++)he(ke[Nt],p);Object.freeze&&Object.freeze(ke)}else D("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 he(ke,p)}return p===r?Pe(Me):Te(Me),Me}}function Ze(p,j,L){return Fe(p,j,L,!0)}function Qe(p,j,L){return Fe(p,j,L,!1)}var pt=Qe,nn=Ze;an.Fragment=r,an.jsx=pt,an.jsxs=nn}()),an}process.env.NODE_ENV==="production"?Qr.exports=bl():Qr.exports=xl();var g=Qr.exports;const be={background:"#0a1929",borderBlue:"#0f353e",borderGrey:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primary:"#0ed3b4",secondary:"#007ef6",tertiary:"#0f353e"},Ml={components:{MuiButton:{styleOverrides:{root:({ownerState:e})=>({...e.color==="primary"&&e.variant==="contained"&&{color:`${be.tertiary} !important`}})}}},palette:{background:{default:be.background,paper:be.background},mode:"dark",primary:{main:be.primary},secondary:{main:be.secondary}}},_l=({children:e})=>g.jsxs(g.Fragment,{children:[g.jsx(w.GlobalStyles,{styles:{"*":{scrollbarColor:"rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",scrollbarWidth:"thin"},"*::-webkit-scrollbar":{height:6,width:6},"*::-webkit-scrollbar-button":{height:0,width:0},"*::-webkit-scrollbar-corner":{background:"transparent"},"*::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:0,borderRadius:10},"*::-webkit-scrollbar-track":{background:"rgba(255, 255, 255, 0.05)"},"html, body, #root":{height:"100%"}}}),g.jsx(w.ThemeProvider,{theme:Ml,children:e})]}),Tl=new kt.QueryClient({defaultOptions:{queries:{retry:!1}}}),wl={authToken:void 0},Nl=U.createContext(wl),El=({children:e,authToken:t})=>{const n=U.useMemo(()=>({authToken:t}),[t]);return g.jsx(Nl.Provider,{value:n,children:e})},Yo={dispatchSnackbar:()=>null,snackbar:{open:!1}},Vo=U.createContext(Yo),$n={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},Dl=(e,t="success")=>({message:e,severity:t,type:$n.openSnackbar}),Bo=()=>({type:$n.closeSnackbar}),Ol=(e,t)=>{switch(t.type){case $n.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case $n.closeSnackbar:return{...e,open:!1};default:throw new Error}},Cl={snackbarAlert:{width:"100%"}},jl=({children:e})=>{const[t,n]=U.useReducer(Ol,Yo.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(Bo()),l=U.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return g.jsxs(Vo.Provider,{value:l,children:[g.jsx(w.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:g.jsx(w.Alert,{onClose:s,severity:o,sx:Cl.snackbarAlert,variant:"filled",children:r})}),e]})},Al="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Sl=()=>g.jsx("img",{src:Al,alt:"Treege",height:30,width:"auto"});function Il(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function kl(){return this.eachAfter(Il)}function zl(e){var t=this,n,r=[t],i,o,a;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)r.push(i[o]);while(r.length);return this}function Rl(e){for(var t=this,n=[t],r,i;t=n.pop();)if(e(t),r=t.children,r)for(i=r.length-1;i>=0;--i)n.push(r[i]);return this}function $l(e){for(var t=this,n=[t],r=[],i,o,a;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,a=i.length;o<a;++o)n.push(i[o]);for(;t=r.pop();)e(t);return this}function Ll(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function Pl(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Fl(e){for(var t=this,n=Ul(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Ul(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Yl(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Vl(){var e=[];return this.each(function(t){e.push(t)}),e}function Bl(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ql(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Wr(e,t){var n=new sn(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,l,u;for(t==null&&(t=Wl);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(u=s.length))for(i.children=new Array(u),l=u-1;l>=0;--l)o.push(a=i.children[l]=new sn(s[l])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(Kl)}function Ql(){return Wr(this).eachBefore(Gl)}function Wl(e){return e.children}function Gl(e){e.data=e.data.data}function Kl(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function sn(e){this.data=e,this.depth=this.height=0,this.parent=null}sn.prototype=Wr.prototype={constructor:sn,count:kl,each:zl,eachAfter:$l,eachBefore:Rl,sum:Ll,sort:Pl,path:Fl,ancestors:Yl,descendants:Vl,leaves:Bl,links:ql,copy:Ql};function Hl(e,t){return e.parent===t.parent?1:2}function Gr(e){var t=e.children;return t?t[0]:e.t}function Kr(e){var t=e.children;return t?t[t.length-1]:e.t}function Xl(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Jl(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function Zl(e,t,n){return e.a.parent===t.parent?e.a:n}function Ln(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Ln.prototype=Object.create(sn.prototype);function ec(e){for(var t=new Ln(e,0),n,r=[t],i,o,a,s;n=r.pop();)if(o=n._.children)for(n.children=new Array(s=o.length),a=s-1;a>=0;--a)r.push(i=n.children[a]=new Ln(o[a],a)),i.parent=n;return(t.parent=new Ln(null,0)).children=[t],t}function tc(){var e=Hl,t=1,n=1,r=null;function i(u){var c=ec(u);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)u.eachBefore(l);else{var d=u,f=u,h=u;u.eachBefore(function(D){D.x<d.x&&(d=D),D.x>f.x&&(f=D),D.depth>h.depth&&(h=D)});var b=d===f?1:e(d,f)/2,y=b-d.x,v=t/(f.x+b+y),M=n/(h.depth||1);u.eachBefore(function(D){D.x=(D.x+y)*v,D.y=D.depth*M})}return u}function o(u){var c=u.children,d=u.parent.children,f=u.i?d[u.i-1]:null;if(c){Jl(u);var h=(c[0].z+c[c.length-1].z)/2;f?(u.z=f.z+e(u._,f._),u.m=u.z-h):u.z=h}else f&&(u.z=f.z+e(u._,f._));u.parent.A=s(u,f,u.parent.A||d[0])}function a(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function s(u,c,d){if(c){for(var f=u,h=u,b=c,y=f.parent.children[0],v=f.m,M=h.m,D=b.m,O=y.m,_;b=Kr(b),f=Gr(f),b&&f;)y=Gr(y),h=Kr(h),h.a=u,_=b.z+D-f.z-v+e(b._,f._),_>0&&(Xl(Zl(b,u,d),u,_),v+=_,M+=_),D+=b.m,v+=f.m,O+=y.m,M+=h.m;b&&!Kr(h)&&(h.t=b,h.m+=D-M),f&&!Gr(y)&&(y.t=f,y.m+=v-O,d=u)}return d}function l(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}var Hr="http://www.w3.org/1999/xhtml";const qo={svg:"http://www.w3.org/2000/svg",xhtml:Hr,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),qo.hasOwnProperty(t)?{space:qo[t],local:e}:e}function nc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Hr&&t.documentElement.namespaceURI===Hr?t.createElement(e):t.createElementNS(n,e)}}function rc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Qo(e){var t=Pn(e);return(t.local?rc:nc)(t)}function ic(){}function Xr(e){return e==null?ic:function(){return this.querySelector(e)}}function oc(e){typeof e!="function"&&(e=Xr(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=new Array(a),l,u,c=0;c<a;++c)(l=o[c])&&(u=e.call(l,l.__data__,c,o))&&("__data__"in l&&(u.__data__=l.__data__),s[c]=u);return new We(r,this._parents)}function ac(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function sc(){return[]}function Wo(e){return e==null?sc:function(){return this.querySelectorAll(e)}}function uc(e){return function(){return ac(e.apply(this,arguments))}}function lc(e){typeof e=="function"?e=uc(e):e=Wo(e);for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,l,u=0;u<s;++u)(l=a[u])&&(r.push(e.call(l,l.__data__,u,a)),i.push(l));return new We(r,i)}function Go(e){return function(){return this.matches(e)}}function Ko(e){return function(t){return t.matches(e)}}var cc=Array.prototype.find;function fc(e){return function(){return cc.call(this.children,e)}}function dc(){return this.firstElementChild}function hc(e){return this.select(e==null?dc:fc(typeof e=="function"?e:Ko(e)))}var pc=Array.prototype.filter;function gc(){return Array.from(this.children)}function mc(e){return function(){return pc.call(this.children,e)}}function yc(e){return this.selectAll(e==null?gc:mc(typeof e=="function"?e:Ko(e)))}function vc(e){typeof e!="function"&&(e=Go(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],l,u=0;u<a;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&s.push(l);return new We(r,this._parents)}function Ho(e){return new Array(e.length)}function bc(){return new We(this._enter||this._groups.map(Ho),this._parents)}function Fn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Fn.prototype={constructor:Fn,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 xc(e){return function(){return e}}function Mc(e,t,n,r,i,o){for(var a=0,s,l=t.length,u=o.length;a<u;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Fn(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function _c(e,t,n,r,i,o,a){var s,l,u=new Map,c=t.length,d=o.length,f=new Array(c),h;for(s=0;s<c;++s)(l=t[s])&&(f[s]=h=a.call(l,l.__data__,s,t)+"",u.has(h)?i[s]=l:u.set(h,l));for(s=0;s<d;++s)h=a.call(e,o[s],s,o)+"",(l=u.get(h))?(r[s]=l,l.__data__=o[s],u.delete(h)):n[s]=new Fn(e,o[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(f[s])===l&&(i[s]=l)}function Tc(e){return e.__data__}function wc(e,t){if(!arguments.length)return Array.from(this,Tc);var n=t?_c:Mc,r=this._parents,i=this._groups;typeof e!="function"&&(e=xc(e));for(var o=i.length,a=new Array(o),s=new Array(o),l=new Array(o),u=0;u<o;++u){var c=r[u],d=i[u],f=d.length,h=Nc(e.call(c,c&&c.__data__,u,r)),b=h.length,y=s[u]=new Array(b),v=a[u]=new Array(b),M=l[u]=new Array(f);n(c,d,y,v,M,h,t);for(var D=0,O=0,_,m;D<b;++D)if(_=y[D]){for(D>=O&&(O=D+1);!(m=v[O])&&++O<b;);_._next=m||null}}return a=new We(a,r),a._enter=s,a._exit=l,a}function Nc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Ec(){return new We(this._exit||this._groups.map(Ho),this._parents)}function Dc(e,t,n){var r=this.enter(),i=this,o=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Oc(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,o=r.length,a=Math.min(i,o),s=new Array(i),l=0;l<a;++l)for(var u=n[l],c=r[l],d=u.length,f=s[l]=new Array(d),h,b=0;b<d;++b)(h=u[b]||c[b])&&(f[b]=h);for(;l<i;++l)s[l]=n[l];return new We(s,this._parents)}function Cc(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,o=r[i],a;--i>=0;)(a=r[i])&&(o&&a.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(a,o),o=a);return this}function jc(e){e||(e=Ac);function t(d,f){return d&&f?e(d.__data__,f.__data__):!d-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a=n[o],s=a.length,l=i[o]=new Array(s),u,c=0;c<s;++c)(u=a[c])&&(l[c]=u);l.sort(t)}return new We(i,this._parents).order()}function Ac(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Sc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Ic(){return Array.from(this)}function kc(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null}function zc(){let e=0;for(const t of this)++e;return e}function Rc(){return!this.node()}function $c(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],o=0,a=i.length,s;o<a;++o)(s=i[o])&&e.call(s,s.__data__,o,i);return this}function Lc(e){return function(){this.removeAttribute(e)}}function Pc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Fc(e,t){return function(){this.setAttribute(e,t)}}function Uc(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Yc(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Vc(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 Bc(e,t){var n=Pn(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?Pc:Lc:typeof t=="function"?n.local?Vc:Yc:n.local?Uc:Fc)(n,t))}function Xo(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qc(e){return function(){this.style.removeProperty(e)}}function Qc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Wc(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Gc(e,t,n){return arguments.length>1?this.each((t==null?qc:typeof t=="function"?Wc:Qc)(e,t,n??"")):zt(this.node(),e)}function zt(e,t){return e.style.getPropertyValue(t)||Xo(e).getComputedStyle(e,null).getPropertyValue(t)}function Kc(e){return function(){delete this[e]}}function Hc(e,t){return function(){this[e]=t}}function Xc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Jc(e,t){return arguments.length>1?this.each((t==null?Kc:typeof t=="function"?Xc:Hc)(e,t)):this.node()[e]}function Jo(e){return e.trim().split(/^|\s+/)}function Jr(e){return e.classList||new Zo(e)}function Zo(e){this._node=e,this._names=Jo(e.getAttribute("class")||"")}Zo.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 ea(e,t){for(var n=Jr(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function ta(e,t){for(var n=Jr(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Zc(e){return function(){ea(this,e)}}function ef(e){return function(){ta(this,e)}}function tf(e,t){return function(){(t.apply(this,arguments)?ea:ta)(this,e)}}function nf(e,t){var n=Jo(e+"");if(arguments.length<2){for(var r=Jr(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?tf:t?Zc:ef)(n,t))}function rf(){this.textContent=""}function of(e){return function(){this.textContent=e}}function af(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function sf(e){return arguments.length?this.each(e==null?rf:(typeof e=="function"?af:of)(e)):this.node().textContent}function uf(){this.innerHTML=""}function lf(e){return function(){this.innerHTML=e}}function cf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function ff(e){return arguments.length?this.each(e==null?uf:(typeof e=="function"?cf:lf)(e)):this.node().innerHTML}function df(){this.nextSibling&&this.parentNode.appendChild(this)}function hf(){return this.each(df)}function pf(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gf(){return this.each(pf)}function mf(e){var t=typeof e=="function"?e:Qo(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yf(){return null}function vf(e,t){var n=typeof e=="function"?e:Qo(e),r=t==null?yf:typeof t=="function"?t:Xr(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function bf(){var e=this.parentNode;e&&e.removeChild(this)}function xf(){return this.each(bf)}function Mf(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _f(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Tf(e){return this.select(e?_f:Mf)}function wf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Nf(e){return function(t){e.call(this,t,this.__data__)}}function Ef(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 Df(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n<i;++n)o=t[n],(!e.type||o.type===e.type)&&o.name===e.name?this.removeEventListener(o.type,o.listener,o.options):t[++r]=o;++r?t.length=r:delete this.__on}}}function Of(e,t,n){return function(){var r=this.__on,i,o=Nf(t);if(r){for(var a=0,s=r.length;a<s;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},r?r.push(i):this.__on=[i]}}function Cf(e,t,n){var r=Ef(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,c;l<u;++l)for(i=0,c=s[l];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Of:Df,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function na(e,t,n){var r=Xo(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function jf(e,t){return function(){return na(this,e,t)}}function Af(e,t){return function(){return na(this,e,t.apply(this,arguments))}}function Sf(e,t){return this.each((typeof t=="function"?Af:jf)(e,t))}function*If(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length,a;i<o;++i)(a=r[i])&&(yield a)}var ra=[null];function We(e,t){this._groups=e,this._parents=t}function un(){return new We([[document.documentElement]],ra)}function kf(){return this}We.prototype=un.prototype={constructor:We,select:oc,selectAll:lc,selectChild:hc,selectChildren:yc,filter:vc,data:wc,enter:bc,exit:Ec,join:Dc,merge:Oc,selection:kf,order:Cc,sort:jc,call:Sc,nodes:Ic,node:kc,size:zc,empty:Rc,each:$c,attr:Bc,style:Gc,property:Jc,classed:nf,text:sf,html:ff,raise:hf,lower:gf,append:mf,insert:vf,remove:xf,clone:Tf,datum:wf,on:Cf,dispatch:Sf,[Symbol.iterator]:If};function Ue(e){return typeof e=="string"?new We([[document.querySelector(e)]],[document.documentElement]):new We([[e]],ra)}function zf(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Et(e,t){if(e=zf(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 i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var Rf={value:()=>{}};function Zr(){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 Un(n)}function Un(e){this._=e}function $f(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Un.prototype=Zr.prototype={constructor:Un,on:function(e,t){var n=this._,r=$f(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Lf(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++o<a;)if(i=(e=r[o]).type)n[i]=ia(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ia(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Un(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,o;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],r=0,i=o.length;r<i;++r)o[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],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};function Lf(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ia(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Rf,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const ei={capture:!0,passive:!1};function ti(e){e.preventDefault(),e.stopImmediatePropagation()}function Pf(e){var t=e.document.documentElement,n=Ue(e).on("dragstart.drag",ti,ei);"onselectstart"in t?n.on("selectstart.drag",ti,ei):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Ff(e,t){var n=e.document.documentElement,r=Ue(e).on("dragstart.drag",null);t&&(r.on("click.drag",ti,ei),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ni(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function oa(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ln(){}var cn=.7,Yn=1/cn,Rt="\\s*([+-]?\\d+)\\s*",fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",at="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Uf=/^#([0-9a-f]{3,8})$/,Yf=new RegExp(`^rgb\\(${Rt},${Rt},${Rt}\\)$`),Vf=new RegExp(`^rgb\\(${at},${at},${at}\\)$`),Bf=new RegExp(`^rgba\\(${Rt},${Rt},${Rt},${fn}\\)$`),qf=new RegExp(`^rgba\\(${at},${at},${at},${fn}\\)$`),Qf=new RegExp(`^hsl\\(${fn},${at},${at}\\)$`),Wf=new RegExp(`^hsla\\(${fn},${at},${at},${fn}\\)$`),aa={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};ni(ln,dn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sa,formatHex:sa,formatHex8:Gf,formatHsl:Kf,formatRgb:ua,toString:ua});function sa(){return this.rgb().formatHex()}function Gf(){return this.rgb().formatHex8()}function Kf(){return ha(this).formatHsl()}function ua(){return this.rgb().formatRgb()}function dn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Uf.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?la(t):n===3?new Be(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Vn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Vn(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=Yf.exec(e))?new Be(t[1],t[2],t[3],1):(t=Vf.exec(e))?new Be(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Bf.exec(e))?Vn(t[1],t[2],t[3],t[4]):(t=qf.exec(e))?Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Qf.exec(e))?da(t[1],t[2]/100,t[3]/100,1):(t=Wf.exec(e))?da(t[1],t[2]/100,t[3]/100,t[4]):aa.hasOwnProperty(e)?la(aa[e]):e==="transparent"?new Be(NaN,NaN,NaN,0):null}function la(e){return new Be(e>>16&255,e>>8&255,e&255,1)}function Vn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Be(e,t,n,r)}function Hf(e){return e instanceof ln||(e=dn(e)),e?(e=e.rgb(),new Be(e.r,e.g,e.b,e.opacity)):new Be}function ri(e,t,n,r){return arguments.length===1?Hf(e):new Be(e,t,n,r??1)}function Be(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ni(Be,ri,oa(ln,{brighter(e){return e=e==null?Yn:Math.pow(Yn,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new Be(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Be(Dt(this.r),Dt(this.g),Dt(this.b),Bn(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:ca,formatHex:ca,formatHex8:Xf,formatRgb:fa,toString:fa}));function ca(){return`#${Ot(this.r)}${Ot(this.g)}${Ot(this.b)}`}function Xf(){return`#${Ot(this.r)}${Ot(this.g)}${Ot(this.b)}${Ot((isNaN(this.opacity)?1:this.opacity)*255)}`}function fa(){const e=Bn(this.opacity);return`${e===1?"rgb(":"rgba("}${Dt(this.r)}, ${Dt(this.g)}, ${Dt(this.b)}${e===1?")":`, ${e})`}`}function Bn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Dt(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ot(e){return e=Dt(e),(e<16?"0":"")+e.toString(16)}function da(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new et(e,t,n,r)}function ha(e){if(e instanceof et)return new et(e.h,e.s,e.l,e.opacity);if(e instanceof ln||(e=dn(e)),!e)return new et;if(e instanceof et)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(t===o?a=(n-r)/s+(n<r)*6:n===o?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=l>0&&l<1?0:a,new et(a,s,l,e.opacity)}function Jf(e,t,n,r){return arguments.length===1?ha(e):new et(e,t,n,r??1)}function et(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ni(et,Jf,oa(ln,{brighter(e){return e=e==null?Yn:Math.pow(Yn,e),new et(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cn:Math.pow(cn,e),new et(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,i=2*n-r;return new Be(ii(e>=240?e-240:e+120,i,r),ii(e,i,r),ii(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new et(pa(this.h),qn(this.s),qn(this.l),Bn(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=Bn(this.opacity);return`${e===1?"hsl(":"hsla("}${pa(this.h)}, ${qn(this.s)*100}%, ${qn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pa(e){return e=(e||0)%360,e<0?e+360:e}function qn(e){return Math.max(0,Math.min(1,e||0))}function ii(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 ga=e=>()=>e;function Zf(e,t){return function(n){return e+n*t}}function ed(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 td(e){return(e=+e)==1?ma:function(t,n){return n-t?ed(t,n,e):ga(isNaN(t)?n:t)}}function ma(e,t){var n=t-e;return n?Zf(e,n):ga(isNaN(e)?t:e)}const ya=function e(t){var n=td(t);function r(i,o){var a=n((i=ri(i)).r,(o=ri(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=ma(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=l(c),i.opacity=u(c),i+""}}return r.gamma=e,r}(1);function _t(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var oi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ai=new RegExp(oi.source,"g");function nd(e){return function(){return e}}function rd(e){return function(t){return e(t)+""}}function id(e,t){var n=oi.lastIndex=ai.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=oi.exec(e))&&(i=ai.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),s[a]?s[a]+=o:s[++a]=o),(r=r[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,l.push({i:a,x:_t(r,i)})),n=ai.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?rd(l[0].x):nd(t):(t=l.length,function(u){for(var c=0,d;c<t;++c)s[(d=l[c]).i]=d.x(u);return s.join("")})}var va=180/Math.PI,si={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ba(e,t,n,r,i,o){var a,s,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*va,skewX:Math.atan(l)*va,scaleX:a,scaleY:s}}var Qn;function od(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?si:ba(t.a,t.b,t.c,t.d,t.e,t.f)}function ad(e){return e==null||(Qn||(Qn=document.createElementNS("http://www.w3.org/2000/svg","g")),Qn.setAttribute("transform",e),!(e=Qn.transform.baseVal.consolidate()))?si:(e=e.matrix,ba(e.a,e.b,e.c,e.d,e.e,e.f))}function xa(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,d,f,h,b){if(u!==d||c!==f){var y=h.push("translate(",null,t,null,n);b.push({i:y-4,x:_t(u,d)},{i:y-2,x:_t(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function a(u,c,d,f){u!==c?(u-c>180?c+=360:c-u>180&&(u+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:_t(u,c)})):c&&d.push(i(d)+"rotate("+c+r)}function s(u,c,d,f){u!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:_t(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,f,h,b){if(u!==d||c!==f){var y=h.push(i(h)+"scale(",null,",",null,")");b.push({i:y-4,x:_t(u,d)},{i:y-2,x:_t(c,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(u,c){var d=[],f=[];return u=e(u),c=e(c),o(u.translateX,u.translateY,c.translateX,c.translateY,d,f),a(u.rotate,c.rotate,d,f),s(u.skewX,c.skewX,d,f),l(u.scaleX,u.scaleY,c.scaleX,c.scaleY,d,f),u=c=null,function(h){for(var b=-1,y=f.length,v;++b<y;)d[(v=f[b]).i]=v.x(h);return d.join("")}}}var sd=xa(od,"px, ","px)","deg)"),ud=xa(ad,", ",")",")"),ld=1e-12;function Ma(e){return((e=Math.exp(e))+1/e)/2}function cd(e){return((e=Math.exp(e))-1/e)/2}function fd(e){return((e=Math.exp(2*e))-1)/(e+1)}const dd=function e(t,n,r){function i(o,a){var s=o[0],l=o[1],u=o[2],c=a[0],d=a[1],f=a[2],h=c-s,b=d-l,y=h*h+b*b,v,M;if(y<ld)M=Math.log(f/u)/t,v=function(C){return[s+C*h,l+C*b,u*Math.exp(t*C*M)]};else{var D=Math.sqrt(y),O=(f*f-u*u+r*y)/(2*u*n*D),_=(f*f-u*u-r*y)/(2*f*n*D),m=Math.log(Math.sqrt(O*O+1)-O),k=Math.log(Math.sqrt(_*_+1)-_);M=(k-m)/t,v=function(C){var S=C*M,I=Ma(m),E=u/(n*D)*(I*fd(t*S+m)-cd(m));return[s+E*h,l+E*b,u*I/Ma(t*S+m)]}}return v.duration=M*1e3*t/Math.SQRT2,v}return i.rho=function(o){var a=Math.max(.001,+o),s=a*a,l=s*s;return e(a,s,l)},i}(Math.SQRT2,2,4);var $t=0,hn=0,pn=0,_a=1e3,Wn,gn,Gn=0,Ct=0,Kn=0,mn=typeof performance=="object"&&performance.now?performance:Date,Ta=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ui(){return Ct||(Ta(hd),Ct=mn.now()+Kn)}function hd(){Ct=0}function Hn(){this._call=this._time=this._next=null}Hn.prototype=wa.prototype={constructor:Hn,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?ui():+n)+(t==null?0:+t),!this._next&&gn!==this&&(gn?gn._next=this:Wn=this,gn=this),this._call=e,this._time=n,li()},stop:function(){this._call&&(this._call=null,this._time=1/0,li())}};function wa(e,t,n){var r=new Hn;return r.restart(e,t,n),r}function pd(){ui(),++$t;for(var e=Wn,t;e;)(t=Ct-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$t}function Na(){Ct=(Gn=mn.now())+Kn,$t=hn=0;try{pd()}finally{$t=0,md(),Ct=0}}function gd(){var e=mn.now(),t=e-Gn;t>_a&&(Kn-=t,Gn=e)}function md(){for(var e,t=Wn,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:Wn=n);gn=e,li(r)}function li(e){if(!$t){hn&&(hn=clearTimeout(hn));var t=e-Ct;t>24?(e<1/0&&(hn=setTimeout(Na,e-mn.now()-Kn)),pn&&(pn=clearInterval(pn))):(pn||(Gn=mn.now(),pn=setInterval(gd,_a)),$t=1,Ta(Na))}}function Ea(e,t,n){var r=new Hn;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var yd=Zr("start","end","cancel","interrupt"),vd=[],Da=0,Oa=1,ci=2,Xn=3,Ca=4,fi=5,Jn=6;function Zn(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;bd(e,n,{name:t,index:r,group:i,on:yd,tween:vd,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Da})}function di(e,t){var n=tt(e,t);if(n.state>Da)throw new Error("too late; already scheduled");return n}function st(e,t){var n=tt(e,t);if(n.state>Xn)throw new Error("too late; already running");return n}function tt(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function bd(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=wa(o,0,n.time);function o(u){n.state=Oa,n.timer.restart(a,n.delay,n.time),n.delay<=u&&a(u-n.delay)}function a(u){var c,d,f,h;if(n.state!==Oa)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Xn)return Ea(a);h.state===Ca?(h.state=Jn,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Jn,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Ea(function(){n.state===Xn&&(n.state=Ca,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=ci,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ci){for(n.state=Xn,i=new Array(f=n.tween.length),c=0,d=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=h);i.length=d+1}}function s(u){for(var c=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(l),n.state=fi,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===fi&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=Jn,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function er(e,t){var n=e.__transition,r,i,o=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){o=!1;continue}i=r.state>ci&&r.state<fi,r.state=Jn,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function xd(e){return this.each(function(){er(this,e)})}function Md(e,t){var n,r;return function(){var i=st(this,e),o=i.tween;if(o!==n){r=n=o;for(var a=0,s=r.length;a<s;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function _d(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=st(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}o.tween=i}}function Td(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=tt(this.node(),n).tween,i=0,o=r.length,a;i<o;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?Md:_d)(n,e,t))}function hi(e,t,n){var r=e._id;return e.each(function(){var i=st(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return tt(i,r).value[t]}}function ja(e,t){var n;return(typeof t=="number"?_t:t instanceof dn?ya:(n=dn(t))?(t=n,ya):id)(e,t)}function wd(e){return function(){this.removeAttribute(e)}}function Nd(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Ed(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttribute(e);return a===i?null:a===r?o:o=t(r=a,n)}}function Dd(e,t,n){var r,i=n+"",o;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?o:o=t(r=a,n)}}function Od(e,t,n){var r,i,o;return function(){var a,s=n(this),l;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=s+"",a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s)))}}function Cd(e,t,n){var r,i,o;return function(){var a,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=s+"",a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s)))}}function jd(e,t){var n=Pn(e),r=n==="transform"?ud:ja;return this.attrTween(e,typeof t=="function"?(n.local?Cd:Od)(n,r,hi(this,"attr."+e,t)):t==null?(n.local?Nd:wd)(n):(n.local?Dd:Ed)(n,r,t))}function Ad(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Sd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Id(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Sd(e,o)),n}return i._value=t,i}function kd(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Ad(e,o)),n}return i._value=t,i}function zd(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=Pn(e);return this.tween(n,(r.local?Id:kd)(r,t))}function Rd(e,t){return function(){di(this,e).delay=+t.apply(this,arguments)}}function $d(e,t){return t=+t,function(){di(this,e).delay=t}}function Ld(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Rd:$d)(t,e)):tt(this.node(),t).delay}function Pd(e,t){return function(){st(this,e).duration=+t.apply(this,arguments)}}function Fd(e,t){return t=+t,function(){st(this,e).duration=t}}function Ud(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Pd:Fd)(t,e)):tt(this.node(),t).duration}function Yd(e,t){if(typeof t!="function")throw new Error;return function(){st(this,e).ease=t}}function Vd(e){var t=this._id;return arguments.length?this.each(Yd(t,e)):tt(this.node(),t).ease}function Bd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;st(this,e).ease=n}}function qd(e){if(typeof e!="function")throw new Error;return this.each(Bd(this._id,e))}function Qd(e){typeof e!="function"&&(e=Go(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o=t[i],a=o.length,s=r[i]=[],l,u=0;u<a;++u)(l=o[u])&&e.call(l,l.__data__,u,o)&&s.push(l);return new gt(r,this._parents,this._name,this._id)}function Wd(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var l=t[s],u=n[s],c=l.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=l[h]||u[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new gt(a,this._parents,this._name,this._id)}function Gd(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 Kd(e,t,n){var r,i,o=Gd(t)?di:st;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function Hd(e,t){var n=this._id;return arguments.length<2?tt(this.node(),n).on.on(e):this.each(Kd(n,e,t))}function Xd(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Jd(){return this.on("end.remove",Xd(this._id))}function Zd(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Xr(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],l=s.length,u=o[a]=new Array(l),c,d,f=0;f<l;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),u[f]=d,Zn(u[f],t,n,f,u,tt(c,n)));return new gt(o,this._parents,t,n)}function eh(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Wo(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var l=r[s],u=l.length,c,d=0;d<u;++d)if(c=l[d]){for(var f=e.call(c,c.__data__,d,l),h,b=tt(c,n),y=0,v=f.length;y<v;++y)(h=f[y])&&Zn(h,t,n,y,f,b);o.push(f),a.push(c)}return new gt(o,a,t,n)}var th=un.prototype.constructor;function nh(){return new th(this._groups,this._parents)}function rh(e,t){var n,r,i;return function(){var o=zt(this,e),a=(this.style.removeProperty(e),zt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function Aa(e){return function(){this.style.removeProperty(e)}}function ih(e,t,n){var r,i=n+"",o;return function(){var a=zt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function oh(e,t,n){var r,i,o;return function(){var a=zt(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),zt(this,e))),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function ah(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var l=st(this,e),u=l.on,c=l.value[o]==null?s||(s=Aa(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),l.on=r}}function sh(e,t,n){var r=(e+="")=="transform"?sd:ja;return t==null?this.styleTween(e,rh(e,r)).on("end.style."+e,Aa(e)):typeof t=="function"?this.styleTween(e,oh(e,r,hi(this,"style."+e,t))).each(ah(this._id,e)):this.styleTween(e,ih(e,r,t),n).on("end.style."+e,null)}function uh(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function lh(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&uh(e,a,n)),r}return o._value=t,o}function ch(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,lh(e,t,n??""))}function fh(e){return function(){this.textContent=e}}function dh(e){return function(){var t=e(this);this.textContent=t??""}}function hh(e){return this.tween("text",typeof e=="function"?dh(hi(this,"text",e)):fh(e==null?"":e+""))}function ph(e){return function(t){this.textContent=e.call(this,t)}}function gh(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&ph(i)),t}return r._value=e,r}function mh(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,gh(e))}function yh(){for(var e=this._name,t=this._id,n=Sa(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,u=0;u<s;++u)if(l=a[u]){var c=tt(l,t);Zn(l,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new gt(r,this._parents,e,n)}function vh(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},l={value:function(){--i===0&&o()}};n.each(function(){var u=st(this,r),c=u.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),u.on=t}),i===0&&o()})}var bh=0;function gt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Sa(){return++bh}var mt=un.prototype;gt.prototype={constructor:gt,select:Zd,selectAll:eh,selectChild:mt.selectChild,selectChildren:mt.selectChildren,filter:Qd,merge:Wd,selection:nh,transition:yh,call:mt.call,nodes:mt.nodes,node:mt.node,size:mt.size,empty:mt.empty,each:mt.each,on:Hd,attr:jd,attrTween:zd,style:sh,styleTween:ch,text:hh,textTween:mh,remove:Jd,tween:Td,delay:Ld,duration:Ud,ease:Vd,easeVarying:qd,end:vh,[Symbol.iterator]:mt[Symbol.iterator]};function xh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mh={time:null,delay:0,duration:250,ease:xh};function _h(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 Th(e){var t,n;e instanceof gt?(t=e._id,e=e._name):(t=Sa(),(n=Mh).time=ui(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,l,u=0;u<s;++u)(l=a[u])&&Zn(l,e,t,u,a,n||_h(l,t));return new gt(r,this._parents,e,t)}un.prototype.interrupt=xd,un.prototype.transition=Th;const tr=e=>()=>e;function wh(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){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:i}})}function yt(e,t,n){this.k=e,this.x=t,this.y=n}yt.prototype={constructor:yt,scale:function(e){return e===1?this:new yt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new yt(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 nr=new yt(1,0,0);yt.prototype;function pi(e){e.stopImmediatePropagation()}function yn(e){e.preventDefault(),e.stopImmediatePropagation()}function Nh(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Eh(){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 Ia(){return this.__zoom||nr}function Dh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Oh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ch(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}function gi(){var e=Nh,t=Eh,n=Ch,r=Dh,i=Oh,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=dd,u=Zr("start","zoom","end"),c,d,f,h=500,b=150,y=0,v=10;function M(x){x.property("__zoom",Ia).on("wheel.zoom",S,{passive:!1}).on("mousedown.zoom",I).on("dblclick.zoom",E).filter(i).on("touchstart.zoom",$).on("touchmove.zoom",X).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(x,z,N,R){var P=x.selection?x.selection():x;P.property("__zoom",Ia),x!==P?m(x,z,N,R):P.interrupt().each(function(){k(this,arguments).event(R).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},M.scaleBy=function(x,z,N,R){M.scaleTo(x,function(){var P=this.__zoom.k,q=typeof z=="function"?z.apply(this,arguments):z;return P*q},N,R)},M.scaleTo=function(x,z,N,R){M.transform(x,function(){var P=t.apply(this,arguments),q=this.__zoom,T=N==null?_(P):typeof N=="function"?N.apply(this,arguments):N,A=q.invert(T),V=typeof z=="function"?z.apply(this,arguments):z;return n(O(D(q,V),T,A),P,a)},N,R)},M.translateBy=function(x,z,N,R){M.transform(x,function(){return n(this.__zoom.translate(typeof z=="function"?z.apply(this,arguments):z,typeof N=="function"?N.apply(this,arguments):N),t.apply(this,arguments),a)},null,R)},M.translateTo=function(x,z,N,R,P){M.transform(x,function(){var q=t.apply(this,arguments),T=this.__zoom,A=R==null?_(q):typeof R=="function"?R.apply(this,arguments):R;return n(nr.translate(A[0],A[1]).scale(T.k).translate(typeof z=="function"?-z.apply(this,arguments):-z,typeof N=="function"?-N.apply(this,arguments):-N),q,a)},R,P)};function D(x,z){return z=Math.max(o[0],Math.min(o[1],z)),z===x.k?x:new yt(z,x.x,x.y)}function O(x,z,N){var R=z[0]-N[0]*x.k,P=z[1]-N[1]*x.k;return R===x.x&&P===x.y?x:new yt(x.k,R,P)}function _(x){return[(+x[0][0]+ +x[1][0])/2,(+x[0][1]+ +x[1][1])/2]}function m(x,z,N,R){x.on("start.zoom",function(){k(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(R).end()}).tween("zoom",function(){var P=this,q=arguments,T=k(P,q).event(R),A=t.apply(P,q),V=N==null?_(A):typeof N=="function"?N.apply(P,q):N,K=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),B=P.__zoom,J=typeof z=="function"?z.apply(P,q):z,Q=l(B.invert(V).concat(K/B.k),J.invert(V).concat(K/J.k));return function(W){if(W===1)W=J;else{var ee=Q(W),re=K/ee[2];W=new yt(re,V[0]-ee[0]*re,V[1]-ee[1]*re)}T.zoom(null,W)}})}function k(x,z,N){return!N&&x.__zooming||new C(x,z)}function C(x,z){this.that=x,this.args=z,this.active=0,this.sourceEvent=null,this.extent=t.apply(x,z),this.taps=0}C.prototype={event:function(x){return x&&(this.sourceEvent=x),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(x,z){return this.mouse&&x!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&x!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&x!=="touch"&&(this.touch1[1]=z.invert(this.touch1[0])),this.that.__zoom=z,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(x){var z=Ue(this.that).datum();u.call(x,this.that,new wh(x,{sourceEvent:this.sourceEvent,target:M,type:x,transform:this.that.__zoom,dispatch:u}),z)}};function S(x,...z){if(!e.apply(this,arguments))return;var N=k(this,z).event(x),R=this.__zoom,P=Math.max(o[0],Math.min(o[1],R.k*Math.pow(2,r.apply(this,arguments)))),q=Et(x);if(N.wheel)(N.mouse[0][0]!==q[0]||N.mouse[0][1]!==q[1])&&(N.mouse[1]=R.invert(N.mouse[0]=q)),clearTimeout(N.wheel);else{if(R.k===P)return;N.mouse=[q,R.invert(q)],er(this),N.start()}yn(x),N.wheel=setTimeout(T,b),N.zoom("mouse",n(O(D(R,P),N.mouse[0],N.mouse[1]),N.extent,a));function T(){N.wheel=null,N.end()}}function I(x,...z){if(f||!e.apply(this,arguments))return;var N=x.currentTarget,R=k(this,z,!0).event(x),P=Ue(x.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",K,!0),q=Et(x,N),T=x.clientX,A=x.clientY;Pf(x.view),pi(x),R.mouse=[q,this.__zoom.invert(q)],er(this),R.start();function V(B){if(yn(B),!R.moved){var J=B.clientX-T,Q=B.clientY-A;R.moved=J*J+Q*Q>y}R.event(B).zoom("mouse",n(O(R.that.__zoom,R.mouse[0]=Et(B,N),R.mouse[1]),R.extent,a))}function K(B){P.on("mousemove.zoom mouseup.zoom",null),Ff(B.view,R.moved),yn(B),R.event(B).end()}}function E(x,...z){if(e.apply(this,arguments)){var N=this.__zoom,R=Et(x.changedTouches?x.changedTouches[0]:x,this),P=N.invert(R),q=N.k*(x.shiftKey?.5:2),T=n(O(D(N,q),R,P),t.apply(this,z),a);yn(x),s>0?Ue(this).transition().duration(s).call(m,T,R,x):Ue(this).call(M.transform,T,R,x)}}function $(x,...z){if(e.apply(this,arguments)){var N=x.touches,R=N.length,P=k(this,z,x.changedTouches.length===R).event(x),q,T,A,V;for(pi(x),T=0;T<R;++T)A=N[T],V=Et(A,this),V=[V,this.__zoom.invert(V),A.identifier],P.touch0?!P.touch1&&P.touch0[2]!==V[2]&&(P.touch1=V,P.taps=0):(P.touch0=V,q=!0,P.taps=1+!!c);c&&(c=clearTimeout(c)),q&&(P.taps<2&&(d=V[0],c=setTimeout(function(){c=null},h)),er(this),P.start())}}function X(x,...z){if(this.__zooming){var N=k(this,z).event(x),R=x.changedTouches,P=R.length,q,T,A,V;for(yn(x),q=0;q<P;++q)T=R[q],A=Et(T,this),N.touch0&&N.touch0[2]===T.identifier?N.touch0[0]=A:N.touch1&&N.touch1[2]===T.identifier&&(N.touch1[0]=A);if(T=N.that.__zoom,N.touch1){var K=N.touch0[0],B=N.touch0[1],J=N.touch1[0],Q=N.touch1[1],W=(W=J[0]-K[0])*W+(W=J[1]-K[1])*W,ee=(ee=Q[0]-B[0])*ee+(ee=Q[1]-B[1])*ee;T=D(T,Math.sqrt(W/ee)),A=[(K[0]+J[0])/2,(K[1]+J[1])/2],V=[(B[0]+Q[0])/2,(B[1]+Q[1])/2]}else if(N.touch0)A=N.touch0[0],V=N.touch0[1];else return;N.zoom("touch",n(O(T,A,V),N.extent,a))}}function H(x,...z){if(this.__zooming){var N=k(this,z).event(x),R=x.changedTouches,P=R.length,q,T;for(pi(x),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),q=0;q<P;++q)T=R[q],N.touch0&&N.touch0[2]===T.identifier?delete N.touch0:N.touch1&&N.touch1[2]===T.identifier&&delete N.touch1;if(N.touch1&&!N.touch0&&(N.touch0=N.touch1,delete N.touch1),N.touch0)N.touch0[1]=this.__zoom.invert(N.touch0[0]);else if(N.end(),N.taps===2&&(T=Et(T,this),Math.hypot(d[0]-T[0],d[1]-T[1])<v)){var A=Ue(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return M.wheelDelta=function(x){return arguments.length?(r=typeof x=="function"?x:tr(+x),M):r},M.filter=function(x){return arguments.length?(e=typeof x=="function"?x:tr(!!x),M):e},M.touchable=function(x){return arguments.length?(i=typeof x=="function"?x:tr(!!x),M):i},M.extent=function(x){return arguments.length?(t=typeof x=="function"?x:tr([[+x[0][0],+x[0][1]],[+x[1][0],+x[1][1]]]),M):t},M.scaleExtent=function(x){return arguments.length?(o[0]=+x[0],o[1]=+x[1],M):[o[0],o[1]]},M.translateExtent=function(x){return arguments.length?(a[0][0]=+x[0][0],a[1][0]=+x[1][0],a[0][1]=+x[0][1],a[1][1]=+x[1][1],M):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},M.constrain=function(x){return arguments.length?(n=x,M):n},M.duration=function(x){return arguments.length?(s=+x,M):s},M.interpolate=function(x){return arguments.length?(l=x,M):l},M.on=function(){var x=u.on.apply(u,arguments);return x===u?M:x},M.clickDistance=function(x){return arguments.length?(y=(x=+x)*x,M):Math.sqrt(y)},M.tapDistance=function(x){return arguments.length?(v=+x,M):v},M}var ka=Object.prototype.hasOwnProperty;function vn(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&vn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(ka.call(e,n)&&++r&&!ka.call(t,n)||!(n in t)||!vn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var za={exports:{}};(function(e){var t=function(){function n(f,h){return h!=null&&f instanceof h}var r;try{r=Map}catch{r=function(){}}var i;try{i=Set}catch{i=function(){}}var o;try{o=Promise}catch{o=function(){}}function a(f,h,b,y,v){typeof h=="object"&&(b=h.depth,y=h.prototype,v=h.includeNonEnumerable,h=h.circular);var M=[],D=[],O=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof b>"u"&&(b=1/0);function _(m,k){if(m===null)return null;if(k===0)return m;var C,S;if(typeof m!="object")return m;if(n(m,r))C=new r;else if(n(m,i))C=new i;else if(n(m,o))C=new o(function(R,P){m.then(function(q){R(_(q,k-1))},function(q){P(_(q,k-1))})});else if(a.__isArray(m))C=[];else if(a.__isRegExp(m))C=new RegExp(m.source,d(m)),m.lastIndex&&(C.lastIndex=m.lastIndex);else if(a.__isDate(m))C=new Date(m.getTime());else{if(O&&Buffer.isBuffer(m))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(m.length):C=new Buffer(m.length),m.copy(C),C;n(m,Error)?C=Object.create(m):typeof y>"u"?(S=Object.getPrototypeOf(m),C=Object.create(S)):(C=Object.create(y),S=y)}if(h){var I=M.indexOf(m);if(I!=-1)return D[I];M.push(m),D.push(C)}n(m,r)&&m.forEach(function(R,P){var q=_(P,k-1),T=_(R,k-1);C.set(q,T)}),n(m,i)&&m.forEach(function(R){var P=_(R,k-1);C.add(P)});for(var E in m){var $;S&&($=Object.getOwnPropertyDescriptor(S,E)),!($&&$.set==null)&&(C[E]=_(m[E],k-1))}if(Object.getOwnPropertySymbols)for(var X=Object.getOwnPropertySymbols(m),E=0;E<X.length;E++){var H=X[E],x=Object.getOwnPropertyDescriptor(m,H);x&&!x.enumerable&&!v||(C[H]=_(m[H],k-1),x.enumerable||Object.defineProperty(C,H,{enumerable:!1}))}if(v)for(var z=Object.getOwnPropertyNames(m),E=0;E<z.length;E++){var N=z[E],x=Object.getOwnPropertyDescriptor(m,N);x&&x.enumerable||(C[N]=_(m[N],k-1),Object.defineProperty(C,N,{enumerable:!1}))}return C}return _(f,b)}a.clonePrototype=function(h){if(h===null)return null;var b=function(){};return b.prototype=h,new b};function s(f){return Object.prototype.toString.call(f)}a.__objToStr=s;function l(f){return typeof f=="object"&&s(f)==="[object Date]"}a.__isDate=l;function u(f){return typeof f=="object"&&s(f)==="[object Array]"}a.__isArray=u;function c(f){return typeof f=="object"&&s(f)==="[object RegExp]"}a.__isRegExp=c;function d(f){var h="";return f.global&&(h+="g"),f.ignoreCase&&(h+="i"),f.multiline&&(h+="m"),h}return a.__getRegExpFlags=d,a}();e.exports&&(e.exports=t)})(za);var jh=za.exports;const Ye=Lo(jh);var rr,Ah=new Uint8Array(16);function Sh(){if(!rr&&(rr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!rr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return rr(Ah)}const Ih=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function kh(e){return typeof e=="string"&&Ih.test(e)}for(var ze=[],mi=0;mi<256;++mi)ze.push((mi+256).toString(16).substr(1));function zh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ze[e[t+0]]+ze[e[t+1]]+ze[e[t+2]]+ze[e[t+3]]+"-"+ze[e[t+4]]+ze[e[t+5]]+"-"+ze[e[t+6]]+ze[e[t+7]]+"-"+ze[e[t+8]]+ze[e[t+9]]+"-"+ze[e[t+10]]+ze[e[t+11]]+ze[e[t+12]]+ze[e[t+13]]+ze[e[t+14]]+ze[e[t+15]]).toLowerCase();if(!kh(n))throw TypeError("Stringified UUID is invalid");return n}function yi(e,t,n){e=e||{};var r=e.random||(e.rng||Sh)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return zh(r)}var vi={exports:{}},bi={exports:{}},ir={exports:{}},pe={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+D+">.")}return x}}function ee(s,x){{if(!s._store||s._store.validated||s.key!=null)return;s._store.validated=!0;var D=N(x);if(Jt[D])return;Jt[D]=!0;var k="";s&&s._owner&&s._owner!==Ot.current&&(k=" It was passed a child from "+he(s._owner.type)+"."),at(s),C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,k),at(null)}}function te(s,x){{if(typeof s!="object")return;if(qt(s))for(var D=0;D<s.length;D++){var k=s[D];It(k)&&ee(k,x)}else if(It(s))s._store&&(s._store.validated=!0);else if(s){var K=m(s);if(typeof K=="function"&&K!==s.entries)for(var Z=K.call(s),B;!(B=Z.next()).done;)It(B.value)&&ee(B.value,x)}}}function de(s){{var x=s.type;if(x==null||typeof x=="string")return;var D;if(typeof x=="function")D=x.propTypes;else if(typeof x=="object"&&(x.$$typeof===l||x.$$typeof===p))D=x.propTypes;else return;if(D){var k=he(x);$n(D,s.props,"prop",k,s)}else if(x.PropTypes!==void 0&&!Ct){Ct=!0;var K=he(x);C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",K||"Unknown")}typeof x.getDefaultProps=="function"&&!x.getDefaultProps.isReactClassApproved&&C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Re(s){{for(var x=Object.keys(s.props),D=0;D<x.length;D++){var k=x[D];if(k!=="children"&&k!=="key"){at(s),C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),at(null);break}}s.ref!==null&&(at(s),C("Invalid attribute `ref` supplied to `React.Fragment`."),at(null))}}function Le(s,x,D,k,K,Z){{var B=U(s);if(!B){var F="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(F+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Oe=zr(K);Oe?F+=Oe:F+=Kt();var ve;s===null?ve="null":qt(s)?ve="array":s!==void 0&&s.$$typeof===t?(ve="<"+(he(s.type)||"Unknown")+" />",F=" Did you accidentally export a JSX literal instead of a component?"):ve=typeof s,C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ve,F)}var ue=kr(s,x,D,K,Z);if(ue==null)return ue;if(B){var Ce=x.children;if(Ce!==void 0)if(k)if(qt(Ce)){for(var ct=0;ct<Ce.length;ct++)te(Ce[ct],s);Object.freeze&&Object.freeze(Ce)}else C("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 te(Ce,s)}return s===r?Re(ue):de(ue),ue}}function qe(s,x,D){return Le(s,x,D,!0)}function Fe(s,x,D){return Le(s,x,D,!1)}var tt=Fe,wt=qe;kt.Fragment=r,kt.jsx=tt,kt.jsxs=wt}()),kt}process.env.NODE_ENV==="production"?Rr.exports=di():Rr.exports=fi();var c=Rr.exports;const se={background:"#0a1929",borderBlue:"#0f353e",borderGrey:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primary:"#0ed3b4",secondary:"#007ef6",tertiary:"#0f353e"},pi={components:{MuiButton:{styleOverrides:{root:({ownerState:e})=>({...e.color==="primary"&&e.variant==="contained"&&{color:`${se.tertiary} !important`}})}}},palette:{background:{default:se.background,paper:se.background},mode:"dark",primary:{main:se.primary},secondary:{main:se.secondary}}},hi=({children:e})=>c.jsxs(c.Fragment,{children:[c.jsx(y.GlobalStyles,{styles:{"*":{scrollbarColor:"rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)",scrollbarWidth:"thin"},"*::-webkit-scrollbar":{height:6,width:6},"*::-webkit-scrollbar-button":{height:0,width:0},"*::-webkit-scrollbar-corner":{background:"transparent"},"*::-webkit-scrollbar-thumb":{backgroundColor:"rgba(255, 255, 255, 0.2)",border:0,borderRadius:10},"*::-webkit-scrollbar-track":{background:"rgba(255, 255, 255, 0.05)"},"html, body, #root":{height:"100%"}}}),c.jsx(y.ThemeProvider,{theme:pi,children:e})]}),gi=new dt.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}}),mi={authToken:void 0},yi=S.createContext(mi),vi=({children:e,authToken:t})=>{const n=S.useMemo(()=>({authToken:t}),[t]);return c.jsx(yi.Provider,{value:n,children:e})},Bn={dispatchSnackbar:()=>null,snackbar:{open:!1}},qn=S.createContext(Bn),Zt={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},bi=(e,t="success")=>({message:e,severity:t,type:Zt.openSnackbar}),Wn=()=>({type:Zt.closeSnackbar}),Mi=(e,t)=>{switch(t.type){case Zt.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case Zt.closeSnackbar:return{...e,open:!1};default:throw new Error}},xi={snackbarAlert:{width:"100%"}},Ti=({children:e})=>{const[t,n]=S.useReducer(Mi,Bn.snackbar),{message:r,open:o,severity:a}=t,i=6e3,u=()=>n(Wn()),l=S.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return c.jsxs(qn.Provider,{value:l,children:[c.jsx(y.Snackbar,{open:o,autoHideDuration:i,onClose:u,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:c.jsx(y.Alert,{onClose:u,severity:a,sx:xi.snackbarAlert,variant:"filled",children:r})}),e]})},ji="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Di=()=>c.jsx("img",{src:ji,alt:"Treege",height:30,width:"auto"}),Ni=()=>{const[e,t]=S.useState({x:0,y:0}),[n,r]=S.useState({height:0,width:0}),o=S.useCallback(a=>{if(!a)return null;const{width:i,height:u}=a.getBoundingClientRect();return r({height:u,width:i}),t({x:i/2,y:u/2}),a},[]);return{dimensions:n,refContainer:o,translate:e}},Gn=({color:e,height:t=20,width:n=20})=>c.jsxs("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[c.jsx("path",{fill:"currentColor",d:`M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2
28
+ c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z`}),c.jsx("path",{fill:"currentColor",d:`M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8
29
+ c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z`})]}),it={currentHierarchyPointNode:null,currentTree:{errorName:"",id:"",name:""},dispatchTree:()=>null,endPoint:void 0,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setCurrentTree:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[],version:""},Kn=S.createContext(it),Ue=()=>S.useContext(Kn),Ei=()=>{const{setModalOpen:e}=Ue();return{handleClick:()=>e("add")}},Oi=()=>{const{t:e}=$e.useTranslation("button"),{handleClick:t}=Ei();return c.jsx(y.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:c.jsx(y.Button,{onClick:t,size:"medium",variant:"contained",startIcon:c.jsx(Gn,{}),children:e("createTree",{ns:"button"})})})},Lr={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${se.borderGrey} !important`}},Jn="tree-link",Ci=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:o,translate:a}=Ni(),{currentTree:i}=Ue();return!e&&!i.id?c.jsx(Oi,{}):i.id&&!e?c.jsx(y.Box,{sx:Lr.progressContainer,children:c.jsx(y.CircularProgress,{})}):c.jsxs("div",{style:Lr.container,ref:o,children:[c.jsx(y.GlobalStyles,{styles:{[`.${Jn}`]:Lr.treeLink}}),c.jsx(ni,{data:e,orientation:"vertical",translate:a,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>Jn,nodeSize:n})]})},Zn=S.memo(Ci),Ii=()=>({formatJSON:t=>JSON.stringify(t??{},null,2)}),Xn={fullHeight:{height:"100%"}},wi=({value:e})=>{const{formatJSON:t}=Ii();return c.jsxs("div",{style:Xn.fullHeight,children:[c.jsx(y.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),c.jsx(ii,{value:t(e),extensions:[oi.json()],editable:!1,theme:ai.dracula,height:"100%",style:Xn.fullHeight})]})};var $r={},Hn={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Hn);var De=Hn.exports,Pr={};function W(){return W=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W.apply(this,arguments)}function pt(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function eo(e){if(!pt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=eo(e[n])}),t}function rt(e,t,n={clone:!0}){const r=n.clone?W({},e):e;return pt(e)&&pt(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(pt(t[o])&&o in e&&pt(e[o])?r[o]=rt(e[o],t[o],n):n.clone?r[o]=pt(t[o])?eo(t[o]):t[o]:r[o]=t[o])}),r}var Yr={exports:{}},Xt={exports:{}},re={};/** @license React v16.13.1
28
30
  * react-is.production.min.js
29
31
  *
30
32
  * Copyright (c) Facebook, Inc. and its affiliates.
31
33
  *
32
34
  * This source code is licensed under the MIT license found in the
33
35
  * LICENSE file in the root directory of this source tree.
34
- */var Ra;function Rh(){if(Ra)return pe;Ra=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function O(m){if(typeof m=="object"&&m!==null){var k=m.$$typeof;switch(k){case t:switch(m=m.type,m){case l:case u:case r:case o:case i:case d:return m;default:switch(m=m&&m.$$typeof,m){case s:case c:case b:case h:case a:return m;default:return k}}case n:return k}}}function _(m){return O(m)===u}return pe.AsyncMode=l,pe.ConcurrentMode=u,pe.ContextConsumer=s,pe.ContextProvider=a,pe.Element=t,pe.ForwardRef=c,pe.Fragment=r,pe.Lazy=b,pe.Memo=h,pe.Portal=n,pe.Profiler=o,pe.StrictMode=i,pe.Suspense=d,pe.isAsyncMode=function(m){return _(m)||O(m)===l},pe.isConcurrentMode=_,pe.isContextConsumer=function(m){return O(m)===s},pe.isContextProvider=function(m){return O(m)===a},pe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===t},pe.isForwardRef=function(m){return O(m)===c},pe.isFragment=function(m){return O(m)===r},pe.isLazy=function(m){return O(m)===b},pe.isMemo=function(m){return O(m)===h},pe.isPortal=function(m){return O(m)===n},pe.isProfiler=function(m){return O(m)===o},pe.isStrictMode=function(m){return O(m)===i},pe.isSuspense=function(m){return O(m)===d},pe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===r||m===u||m===o||m===i||m===d||m===f||typeof m=="object"&&m!==null&&(m.$$typeof===b||m.$$typeof===h||m.$$typeof===a||m.$$typeof===s||m.$$typeof===c||m.$$typeof===v||m.$$typeof===M||m.$$typeof===D||m.$$typeof===y)},pe.typeOf=O,pe}var ge={};/** @license React v16.13.1
36
+ */var to;function Ai(){if(to)return re;to=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,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(b){if(typeof b=="object"&&b!==null){var q=b.$$typeof;switch(q){case t:switch(b=b.type,b){case l:case d:case r:case a:case o:case p:return b;default:switch(b=b&&b.$$typeof,b){case u:case f:case v:case M:case i:return b;default:return q}}case n:return q}}}function A(b){return I(b)===d}return re.AsyncMode=l,re.ConcurrentMode=d,re.ContextConsumer=u,re.ContextProvider=i,re.Element=t,re.ForwardRef=f,re.Fragment=r,re.Lazy=v,re.Memo=M,re.Portal=n,re.Profiler=a,re.StrictMode=o,re.Suspense=p,re.isAsyncMode=function(b){return A(b)||I(b)===l},re.isConcurrentMode=A,re.isContextConsumer=function(b){return I(b)===u},re.isContextProvider=function(b){return I(b)===i},re.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},re.isForwardRef=function(b){return I(b)===f},re.isFragment=function(b){return I(b)===r},re.isLazy=function(b){return I(b)===v},re.isMemo=function(b){return I(b)===M},re.isPortal=function(b){return I(b)===n},re.isProfiler=function(b){return I(b)===a},re.isStrictMode=function(b){return I(b)===o},re.isSuspense=function(b){return I(b)===p},re.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===r||b===d||b===a||b===o||b===p||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===v||b.$$typeof===M||b.$$typeof===i||b.$$typeof===u||b.$$typeof===f||b.$$typeof===m||b.$$typeof===T||b.$$typeof===C||b.$$typeof===g)},re.typeOf=I,re}var ne={};/** @license React v16.13.1
35
37
  * react-is.development.js
36
38
  *
37
39
  * Copyright (c) Facebook, Inc. and its affiliates.
38
40
  *
39
41
  * This source code is licensed under the MIT license found in the
40
42
  * LICENSE file in the root directory of this source tree.
41
- */var $a;function $h(){return $a||($a=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,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,M=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function O(Y){return typeof Y=="string"||typeof Y=="function"||Y===r||Y===u||Y===o||Y===i||Y===d||Y===f||typeof Y=="object"&&Y!==null&&(Y.$$typeof===b||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===v||Y.$$typeof===M||Y.$$typeof===D||Y.$$typeof===y)}function _(Y){if(typeof Y=="object"&&Y!==null){var Le=Y.$$typeof;switch(Le){case t:var G=Y.type;switch(G){case l:case u:case r:case o:case i:case d:return G;default:var Je=G&&G.$$typeof;switch(Je){case s:case c:case b:case h:case a:return Je;default:return Le}}case n:return Le}}}var m=l,k=u,C=s,S=a,I=t,E=c,$=r,X=b,H=h,x=n,z=o,N=i,R=d,P=!1;function q(Y){return P||(P=!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.")),T(Y)||_(Y)===l}function T(Y){return _(Y)===u}function A(Y){return _(Y)===s}function V(Y){return _(Y)===a}function K(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function B(Y){return _(Y)===c}function J(Y){return _(Y)===r}function Q(Y){return _(Y)===b}function W(Y){return _(Y)===h}function ee(Y){return _(Y)===n}function re(Y){return _(Y)===o}function te(Y){return _(Y)===i}function Ce(Y){return _(Y)===d}ge.AsyncMode=m,ge.ConcurrentMode=k,ge.ContextConsumer=C,ge.ContextProvider=S,ge.Element=I,ge.ForwardRef=E,ge.Fragment=$,ge.Lazy=X,ge.Memo=H,ge.Portal=x,ge.Profiler=z,ge.StrictMode=N,ge.Suspense=R,ge.isAsyncMode=q,ge.isConcurrentMode=T,ge.isContextConsumer=A,ge.isContextProvider=V,ge.isElement=K,ge.isForwardRef=B,ge.isFragment=J,ge.isLazy=Q,ge.isMemo=W,ge.isPortal=ee,ge.isProfiler=re,ge.isStrictMode=te,ge.isSuspense=Ce,ge.isValidElementType=O,ge.typeOf=_}()),ge}var La;function Pa(){return La||(La=1,process.env.NODE_ENV==="production"?ir.exports=Rh():ir.exports=$h()),ir.exports}/*
43
+ */var ro;function Si(){return ro||(ro=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,a=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,M=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function I(E){return typeof E=="string"||typeof E=="function"||E===r||E===d||E===a||E===o||E===p||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===v||E.$$typeof===M||E.$$typeof===i||E.$$typeof===u||E.$$typeof===f||E.$$typeof===m||E.$$typeof===T||E.$$typeof===C||E.$$typeof===g)}function A(E){if(typeof E=="object"&&E!==null){var _e=E.$$typeof;switch(_e){case t:var w=E.type;switch(w){case l:case d:case r:case a:case o:case p:return w;default:var Be=w&&w.$$typeof;switch(Be){case u:case f:case v:case M:case i:return Be;default:return _e}}case n:return _e}}}var b=l,q=d,_=u,we=i,fe=t,U=f,pe=r,ke=v,he=M,ge=n,be=a,Me=o,ze=p,Ae=!1;function Ye(E){return Ae||(Ae=!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.")),j(E)||A(E)===l}function j(E){return A(E)===d}function O(E){return A(E)===u}function P(E){return A(E)===i}function L(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function R(E){return A(E)===f}function Q(E){return A(E)===r}function z(E){return A(E)===v}function $(E){return A(E)===M}function V(E){return A(E)===n}function G(E){return A(E)===a}function Y(E){return A(E)===o}function Te(E){return A(E)===p}ne.AsyncMode=b,ne.ConcurrentMode=q,ne.ContextConsumer=_,ne.ContextProvider=we,ne.Element=fe,ne.ForwardRef=U,ne.Fragment=pe,ne.Lazy=ke,ne.Memo=he,ne.Portal=ge,ne.Profiler=be,ne.StrictMode=Me,ne.Suspense=ze,ne.isAsyncMode=Ye,ne.isConcurrentMode=j,ne.isContextConsumer=O,ne.isContextProvider=P,ne.isElement=L,ne.isForwardRef=R,ne.isFragment=Q,ne.isLazy=z,ne.isMemo=$,ne.isPortal=V,ne.isProfiler=G,ne.isStrictMode=Y,ne.isSuspense=Te,ne.isValidElementType=I,ne.typeOf=A}()),ne}var no;function oo(){return no||(no=1,process.env.NODE_ENV==="production"?Xt.exports=Ai():Xt.exports=Si()),Xt.exports}/*
42
44
  object-assign
43
45
  (c) Sindre Sorhus
44
46
  @license MIT
45
- */var xi,Fa;function Lh(){if(Fa)return xi;Fa=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function i(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(l.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(c){u[c]=c}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return xi=i()?Object.assign:function(o,a){for(var s,l=r(o),u,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(l[d]=s[d]);if(e){u=e(s);for(var f=0;f<u.length;f++)n.call(s,u[f])&&(l[u[f]]=s[u[f]])}}return l},xi}var Mi,Ua;function _i(){if(Ua)return Mi;Ua=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mi=e,Mi}var Ti,Ya;function Va(){return Ya||(Ya=1,Ti=Function.call.bind(Object.prototype.hasOwnProperty)),Ti}var wi,Ba;function Ph(){if(Ba)return wi;Ba=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=_i(),n={},r=Va();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,l,u){if(process.env.NODE_ENV!=="production"){for(var c in o)if(r(o,c)){var d;try{if(typeof o[c]!="function"){var f=Error((l||"React class")+": "+s+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw f.name="Invariant Violation",f}d=o[c](a,c,l,s,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var h=u?u():"";e("Failed "+s+" type: "+d.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},wi=i,wi}var Ni,qa;function Fh(){if(qa)return Ni;qa=1;var e=Pa(),t=Lh(),n=_i(),r=Va(),i=Ph(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return Ni=function(s,l){var u=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(T){var A=T&&(u&&T[u]||T[c]);if(typeof A=="function")return A}var f="<<anonymous>>",h={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:D(),arrayOf:O,element:_(),elementType:m(),instanceOf:k,node:E(),objectOf:S,oneOf:C,oneOfType:I,shape:X,exact:H};function b(T,A){return T===A?T!==0||1/T===1/A:T!==T&&A!==A}function y(T,A){this.message=T,this.data=A&&typeof A=="object"?A:{},this.stack=""}y.prototype=Error.prototype;function v(T){if(process.env.NODE_ENV!=="production")var A={},V=0;function K(J,Q,W,ee,re,te,Ce){if(ee=ee||f,te=te||W,Ce!==n){if(l){var Y=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 Y.name="Invariant Violation",Y}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Le=ee+":"+W;!A[Le]&&V<3&&(o("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. 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."),A[Le]=!0,V++)}}return Q[W]==null?J?Q[W]===null?new y("The "+re+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new y("The "+re+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:T(Q,W,ee,re,te)}var B=K.bind(null,!1);return B.isRequired=K.bind(null,!0),B}function M(T){function A(V,K,B,J,Q,W){var ee=V[K],re=N(ee);if(re!==T){var te=R(ee);return new y("Invalid "+J+" `"+Q+"` of type "+("`"+te+"` supplied to `"+B+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return v(A)}function D(){return v(a)}function O(T){function A(V,K,B,J,Q){if(typeof T!="function")return new y("Property `"+Q+"` of component `"+B+"` has invalid PropType notation inside arrayOf.");var W=V[K];if(!Array.isArray(W)){var ee=N(W);return new y("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+B+"`, expected an array."))}for(var re=0;re<W.length;re++){var te=T(W,re,B,J,Q+"["+re+"]",n);if(te instanceof Error)return te}return null}return v(A)}function _(){function T(A,V,K,B,J){var Q=A[V];if(!s(Q)){var W=N(Q);return new y("Invalid "+B+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return v(T)}function m(){function T(A,V,K,B,J){var Q=A[V];if(!e.isValidElementType(Q)){var W=N(Q);return new y("Invalid "+B+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return v(T)}function k(T){function A(V,K,B,J,Q){if(!(V[K]instanceof T)){var W=T.name||f,ee=q(V[K]);return new y("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+B+"`, expected ")+("instance of `"+W+"`."))}return null}return v(A)}function C(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("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])."):o("Invalid argument supplied to oneOf, expected an array.")),a;function A(V,K,B,J,Q){for(var W=V[K],ee=0;ee<T.length;ee++)if(b(W,T[ee]))return null;var re=JSON.stringify(T,function(Ce,Y){var Le=R(Y);return Le==="symbol"?String(Y):Y});return new y("Invalid "+J+" `"+Q+"` of value `"+String(W)+"` "+("supplied to `"+B+"`, expected one of "+re+"."))}return v(A)}function S(T){function A(V,K,B,J,Q){if(typeof T!="function")return new y("Property `"+Q+"` of component `"+B+"` has invalid PropType notation inside objectOf.");var W=V[K],ee=N(W);if(ee!=="object")return new y("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+B+"`, expected an object."));for(var re in W)if(r(W,re)){var te=T(W,re,B,J,Q+"."+re,n);if(te instanceof Error)return te}return null}return v(A)}function I(T){if(!Array.isArray(T))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var A=0;A<T.length;A++){var V=T[A];if(typeof V!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+P(V)+" at index "+A+"."),a}function K(B,J,Q,W,ee){for(var re=[],te=0;te<T.length;te++){var Ce=T[te],Y=Ce(B,J,Q,W,ee,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&re.push(Y.data.expectedType)}var Le=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new y("Invalid "+W+" `"+ee+"` supplied to "+("`"+Q+"`"+Le+"."))}return v(K)}function E(){function T(A,V,K,B,J){return x(A[V])?null:new y("Invalid "+B+" `"+J+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return v(T)}function $(T,A,V,K,B){return new y((T||"React class")+": "+A+" type `"+V+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+B+"`.")}function X(T){function A(V,K,B,J,Q){var W=V[K],ee=N(W);if(ee!=="object")return new y("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+B+"`, expected `object`."));for(var re in T){var te=T[re];if(typeof te!="function")return $(B,J,Q,re,R(te));var Ce=te(W,re,B,J,Q+"."+re,n);if(Ce)return Ce}return null}return v(A)}function H(T){function A(V,K,B,J,Q){var W=V[K],ee=N(W);if(ee!=="object")return new y("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+B+"`, expected `object`."));var re=t({},V[K],T);for(var te in re){var Ce=T[te];if(r(T,te)&&typeof Ce!="function")return $(B,J,Q,te,R(Ce));if(!Ce)return new y("Invalid "+J+" `"+Q+"` key `"+te+"` supplied to `"+B+"`.\nBad object: "+JSON.stringify(V[K],null," ")+`
46
- Valid keys: `+JSON.stringify(Object.keys(T),null," "));var Y=Ce(W,te,B,J,Q+"."+te,n);if(Y)return Y}return null}return v(A)}function x(T){switch(typeof T){case"number":case"string":case"undefined":return!0;case"boolean":return!T;case"object":if(Array.isArray(T))return T.every(x);if(T===null||s(T))return!0;var A=d(T);if(A){var V=A.call(T),K;if(A!==T.entries){for(;!(K=V.next()).done;)if(!x(K.value))return!1}else for(;!(K=V.next()).done;){var B=K.value;if(B&&!x(B[1]))return!1}}else return!1;return!0;default:return!1}}function z(T,A){return T==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function N(T){var A=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":z(A,T)?"symbol":A}function R(T){if(typeof T>"u"||T===null)return""+T;var A=N(T);if(A==="object"){if(T instanceof Date)return"date";if(T instanceof RegExp)return"regexp"}return A}function P(T){var A=R(T);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function q(T){return!T.constructor||!T.constructor.name?f:T.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ni}var Ei,Qa;function Uh(){if(Qa)return Ei;Qa=1;var e=_i();function t(){}function n(){}return n.resetWarningCache=t,Ei=function(){function r(a,s,l,u,c,d){if(d!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}r.isRequired=r;function i(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Ei}if(process.env.NODE_ENV!=="production"){var Yh=Pa(),Vh=!0;bi.exports=Fh()(Yh.isElement,Vh)}else bi.exports=Uh()();var bn=bi.exports;const xe=Lo(bn);var Di={exports:{}},Bh=function(){for(var t=arguments.length,n=[],r=0;r<t;r++)n[r]=arguments[r];if(n=n.filter(function(i){return i!=null}),n.length!==0)return n.length===1?n[0]:n.reduce(function(i,o){return function(){i.apply(this,arguments),o.apply(this,arguments)}})},Wa=function(){};process.env.NODE_ENV!=="production"&&(Wa=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var i=2;i<r;i++)n[i-2]=arguments[i];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(t.length<10||/^[s\W]*$/.test(t))throw new Error("The warning format should be able to uniquely identify this warning. Please, use a more descriptive format than: "+t);if(!e){var o=0,a="Warning: "+t.replace(/%s/g,function(){return n[o++]});typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}});var qh=Wa;function Ga(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Ka(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function Ha(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}Ga.__suppressDeprecationWarning=!0,Ka.__suppressDeprecationWarning=!0,Ha.__suppressDeprecationWarning=!0;function Qh(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var n=null,r=null,i=null;if(typeof t.componentWillMount=="function"?n="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(n="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?r="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(r="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?i="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(i="UNSAFE_componentWillUpdate"),n!==null||r!==null||i!==null){var o=e.displayName||e.name,a=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
47
-
48
- `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
49
- `+n:"")+(r!==null?`
50
- `+r:"")+(i!==null?`
51
- `+i:"")+`
52
-
53
- The above lifecycles should be removed. Learn more about this warning here:
54
- https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Ga,t.componentWillReceiveProps=Ka),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Ha;var s=t.componentDidUpdate;t.componentDidUpdate=function(u,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,u,c,f)}}return e}const Wh=Po(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Qh},Symbol.toStringTag,{value:"Module"})));var or={};or.__esModule=!0,or.getChildMapping=Kh,or.mergeChildMappings=Hh;var Gh=U;function Kh(e){if(!e)return e;var t={};return Gh.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function Hh(e,t){e=e||{},t=t||{};function n(c){return t.hasOwnProperty(c)?t[c]:e[c]}var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a=void 0,s={};for(var l in t){if(r.hasOwnProperty(l))for(a=0;a<r[l].length;a++){var u=r[l][a];s[r[l][a]]=n(u)}s[l]=n(l)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}(function(e,t){t.__esModule=!0;var n=Object.assign||function(_){for(var m=1;m<arguments.length;m++){var k=arguments[m];for(var C in k)Object.prototype.hasOwnProperty.call(k,C)&&(_[C]=k[C])}return _},r=Bh,i=h(r),o=U,a=h(o),s=bn,l=h(s),u=qh,c=h(u),d=Wh,f=or;function h(_){return _&&_.__esModule?_:{default:_}}function b(_,m){if(!(_ instanceof m))throw new TypeError("Cannot call a class as a function")}function y(_,m){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:_}function v(_,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);_.prototype=Object.create(m&&m.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(_,m):_.__proto__=m)}var M={component:l.default.any,childFactory:l.default.func,children:l.default.node},D={component:"span",childFactory:function(m){return m}},O=function(_){v(m,_);function m(k,C){b(this,m);var S=y(this,_.call(this,k,C));return S.performAppear=function(I,E){S.currentlyTransitioningKeys[I]=!0,E.componentWillAppear?E.componentWillAppear(S._handleDoneAppearing.bind(S,I,E)):S._handleDoneAppearing(I,E)},S._handleDoneAppearing=function(I,E){E&&E.componentDidAppear&&E.componentDidAppear(),delete S.currentlyTransitioningKeys[I];var $=(0,f.getChildMapping)(S.props.children);(!$||!$.hasOwnProperty(I))&&S.performLeave(I,E)},S.performEnter=function(I,E){S.currentlyTransitioningKeys[I]=!0,E.componentWillEnter?E.componentWillEnter(S._handleDoneEntering.bind(S,I,E)):S._handleDoneEntering(I,E)},S._handleDoneEntering=function(I,E){E&&E.componentDidEnter&&E.componentDidEnter(),delete S.currentlyTransitioningKeys[I];var $=(0,f.getChildMapping)(S.props.children);(!$||!$.hasOwnProperty(I))&&S.performLeave(I,E)},S.performLeave=function(I,E){S.currentlyTransitioningKeys[I]=!0,E&&E.componentWillLeave?E.componentWillLeave(S._handleDoneLeaving.bind(S,I,E)):S._handleDoneLeaving(I,E)},S._handleDoneLeaving=function(I,E){E&&E.componentDidLeave&&E.componentDidLeave(),delete S.currentlyTransitioningKeys[I];var $=(0,f.getChildMapping)(S.props.children);$&&$.hasOwnProperty(I)?S.keysToEnter.push(I):S.setState(function(X){var H=n({},X.children);return delete H[I],{children:H}})},S.childRefs=Object.create(null),S.currentlyTransitioningKeys={},S.keysToEnter=[],S.keysToLeave=[],S.state={children:(0,f.getChildMapping)(k.children)},S}return m.prototype.componentDidMount=function(){var C=this.state.children;for(var S in C)C[S]&&this.performAppear(S,this.childRefs[S])},m.getDerivedStateFromProps=function(C,S){var I=(0,f.getChildMapping)(C.children),E=S.children;return{children:(0,f.mergeChildMappings)(E,I)}},m.prototype.componentDidUpdate=function(C,S){var I=this,E=(0,f.getChildMapping)(this.props.children),$=S.children;for(var X in E){var H=$&&$.hasOwnProperty(X);E[X]&&!H&&!this.currentlyTransitioningKeys[X]&&this.keysToEnter.push(X)}for(var x in $){var z=E&&E.hasOwnProperty(x);$[x]&&!z&&!this.currentlyTransitioningKeys[x]&&this.keysToLeave.push(x)}var N=this.keysToEnter;this.keysToEnter=[],N.forEach(function(P){return I.performEnter(P,I.childRefs[P])});var R=this.keysToLeave;this.keysToLeave=[],R.forEach(function(P){return I.performLeave(P,I.childRefs[P])})},m.prototype.render=function(){var C=this,S=[],I=function(H){var x=C.state.children[H];if(x){var z=typeof x.ref!="string",N=C.props.childFactory(x),R=function(q){C.childRefs[H]=q};process.env.NODE_ENV!=="production"&&(0,c.default)(z,"string refs are not supported on children of TransitionGroup and will be ignored. Please use a callback ref instead: https://facebook.github.io/react/docs/refs-and-the-dom.html#the-ref-callback-attribute"),N===x&&z&&(R=(0,i.default)(x.ref,R)),S.push(a.default.cloneElement(N,{key:H,ref:R}))}};for(var E in this.state.children)I(E);var $=n({},this.props);return delete $.transitionLeave,delete $.transitionName,delete $.transitionAppear,delete $.transitionEnter,delete $.childFactory,delete $.transitionLeaveTimeout,delete $.transitionEnterTimeout,delete $.transitionAppearTimeout,delete $.component,a.default.createElement(this.props.component,$,S)},m}(a.default.Component);O.displayName="TransitionGroup",O.propTypes=process.env.NODE_ENV!=="production"?M:{},O.defaultProps=D,t.default=(0,d.polyfill)(O),e.exports=t.default})(Di,Di.exports);var Xa=Di.exports,Oi={exports:{}},Ci={exports:{}},Ja={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ja);var De=Ja.exports,ar={exports:{}},Za;function Xh(){return Za||(Za=1,function(e,t){t.__esModule=!0,t.default=n;function n(r,i){return r.classList?!!i&&r.classList.contains(i):(" "+(r.className.baseVal||r.className)+" ").indexOf(" "+i+" ")!==-1}e.exports=t.default}(ar,ar.exports)),ar.exports}(function(e,t){var n=De;t.__esModule=!0,t.default=i;var r=n(Xh());function i(o,a){o.classList?o.classList.add(a):(0,r.default)(o,a)||(typeof o.className=="string"?o.className=o.className+" "+a:o.setAttribute("class",(o.className&&o.className.baseVal||"")+" "+a))}e.exports=t.default})(Ci,Ci.exports);var Jh=Ci.exports;function es(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Zh=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=es(t.className,n):t.setAttribute("class",es(t.className&&t.className.baseVal||"",n))},ji={exports:{}},sr={exports:{}},ts;function ns(){return ts||(ts=1,function(e,t){t.__esModule=!0,t.default=void 0;var n=!!(typeof window<"u"&&window.document&&window.document.createElement);t.default=n,e.exports=t.default}(sr,sr.exports)),sr.exports}(function(e,t){var n=De;t.__esModule=!0,t.default=void 0;var r=n(ns()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,l=function(h,b){return h+(h?b[0].toUpperCase()+b.substr(1):b)+"AnimationFrame"};r.default&&i.some(function(f){var h=l(f,"request");if(h in window)return o=l(f,"cancel"),a=function(y){return window[h](y)}});var u=new Date().getTime();function c(f){var h=new Date().getTime(),b=Math.max(0,16-(h-u)),y=setTimeout(f,b);return u=h,y}s=function(h){return a(h)},s.cancel=function(f){window[o]&&typeof window[o]=="function"&&window[o](f)};var d=s;t.default=d,e.exports=t.default})(ji,ji.exports);var ep=ji.exports,oe={},tp=De;oe.__esModule=!0,oe.default=oe.animationEnd=oe.animationDelay=oe.animationTiming=oe.animationDuration=oe.animationName=oe.transitionEnd=oe.transitionDuration=oe.transitionDelay=oe.transitionTiming=oe.transitionProperty=oe.transform=void 0;var np=tp(ns()),ur="transform";oe.transform=ur;var ut,Ai,rs;oe.animationEnd=rs,oe.transitionEnd=Ai;var Si,Ii,ki,zi;oe.transitionDelay=zi,oe.transitionTiming=ki,oe.transitionDuration=Ii,oe.transitionProperty=Si;var is,os,as,ss;if(oe.animationDelay=ss,oe.animationTiming=as,oe.animationDuration=os,oe.animationName=is,np.default){var Ri=ip();ut=Ri.prefix,oe.transitionEnd=Ai=Ri.transitionEnd,oe.animationEnd=rs=Ri.animationEnd,oe.transform=ur=ut+"-"+ur,oe.transitionProperty=Si=ut+"-transition-property",oe.transitionDuration=Ii=ut+"-transition-duration",oe.transitionDelay=zi=ut+"-transition-delay",oe.transitionTiming=ki=ut+"-transition-timing-function",oe.animationName=is=ut+"-animation-name",oe.animationDuration=os=ut+"-animation-duration",oe.animationTiming=as=ut+"-animation-delay",oe.animationDelay=ss=ut+"-animation-timing-function"}var rp={transform:ur,end:Ai,property:Si,timing:ki,delay:zi,duration:Ii};oe.default=rp;function ip(){for(var e=document.createElement("div").style,t={O:function(u){return"o"+u.toLowerCase()},Moz:function(u){return u.toLowerCase()},Webkit:function(u){return"webkit"+u},ms:function(u){return"MS"+u}},n=Object.keys(t),r,i,o="",a=0;a<n.length;a++){var s=n[a];if(s+"TransitionProperty"in e){o="-"+s.toLowerCase(),r=t[s]("TransitionEnd"),i=t[s]("AnimationEnd");break}}return!r&&"transitionProperty"in e&&(r="transitionend"),!i&&"animationName"in e&&(i="animationend"),e=null,{animationEnd:i,transitionEnd:r,prefix:o}}var Lt={};Lt.__esModule=!0,Lt.nameShape=void 0,Lt.transitionTimeout=sp;var op=U;us(op);var ap=bn,Ge=us(ap);function us(e){return e&&e.__esModule?e:{default:e}}function sp(e){var t="transition"+e+"Timeout",n="transition"+e;return function(r){if(r[n]){if(r[t]==null)return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if(typeof r[t]!="number")return new Error(t+" must be a number (in milliseconds)")}return null}}Lt.nameShape=Ge.default.oneOfType([Ge.default.string,Ge.default.shape({enter:Ge.default.string,leave:Ge.default.string,active:Ge.default.string}),Ge.default.shape({enter:Ge.default.string,enterActive:Ge.default.string,leave:Ge.default.string,leaveActive:Ge.default.string,appear:Ge.default.string,appearActive:Ge.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(S){for(var I=1;I<arguments.length;I++){var E=arguments[I];for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(S[$]=E[$])}return S},r=Jh,i=v(r),o=Zh,a=v(o),s=ep,l=v(s),u=oe,c=U,d=v(c),f=bn,h=v(f),b=hl,y=Lt;function v(S){return S&&S.__esModule?S:{default:S}}function M(S,I){if(!(S instanceof I))throw new TypeError("Cannot call a class as a function")}function D(S,I){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I&&(typeof I=="object"||typeof I=="function")?I:S}function O(S,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof I);S.prototype=Object.create(I&&I.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(S,I):S.__proto__=I)}var _=[];u.transitionEnd&&_.push(u.transitionEnd),u.animationEnd&&_.push(u.animationEnd);function m(S,I){return _.length?_.forEach(function(E){return S.addEventListener(E,I,!1)}):setTimeout(I,0),function(){_.length&&_.forEach(function(E){return S.removeEventListener(E,I,!1)})}}var k={children:h.default.node,name:y.nameShape.isRequired,appear:h.default.bool,enter:h.default.bool,leave:h.default.bool,appearTimeout:h.default.number,enterTimeout:h.default.number,leaveTimeout:h.default.number},C=function(S){O(I,S);function I(E,$){M(this,I);var X=D(this,S.call(this,E,$));return X.componentWillAppear=function(H){X.props.appear?X.transition("appear",H,X.props.appearTimeout):H()},X.componentWillEnter=function(H){X.props.enter?X.transition("enter",H,X.props.enterTimeout):H()},X.componentWillLeave=function(H){X.props.leave?X.transition("leave",H,X.props.leaveTimeout):H()},X.classNameAndNodeQueue=[],X.transitionTimeouts=[],X}return I.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function($){clearTimeout($)}),this.classNameAndNodeQueue.length=0},I.prototype.transition=function($,X,H){var x=(0,b.findDOMNode)(this);if(!x){X&&X();return}var z=this.props.name[$]||this.props.name+"-"+$,N=this.props.name[$+"Active"]||z+"-active",R=null,P=void 0;(0,i.default)(x,z),this.queueClassAndNode(N,x);var q=function(A){A&&A.target!==x||(clearTimeout(R),P&&P(),(0,a.default)(x,z),(0,a.default)(x,N),P&&P(),X&&X())};H?(R=setTimeout(q,H),this.transitionTimeouts.push(R)):u.transitionEnd&&(P=m(x,q))},I.prototype.queueClassAndNode=function($,X){var H=this;this.classNameAndNodeQueue.push({className:$,node:X}),this.rafHandle||(this.rafHandle=(0,l.default)(function(){return H.flushClassNameAndNodeQueue()}))},I.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function($){$.node.scrollTop,(0,i.default)($.node,$.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},I.prototype.render=function(){var $=n({},this.props);return delete $.name,delete $.appear,delete $.enter,delete $.leave,delete $.appearTimeout,delete $.enterTimeout,delete $.leaveTimeout,delete $.children,d.default.cloneElement(d.default.Children.only(this.props.children),$)},I}(d.default.Component);C.displayName="CSSTransitionGroupChild",C.propTypes=process.env.NODE_ENV!=="production"?k:{},t.default=C,e.exports=t.default}(Oi,Oi.exports);var up=Oi.exports;(function(e,t){t.__esModule=!0;var n=Object.assign||function(O){for(var _=1;_<arguments.length;_++){var m=arguments[_];for(var k in m)Object.prototype.hasOwnProperty.call(m,k)&&(O[k]=m[k])}return O},r=U,i=f(r),o=bn,a=f(o),s=Xa,l=f(s),u=up,c=f(u),d=Lt;function f(O){return O&&O.__esModule?O:{default:O}}function h(O,_){if(!(O instanceof _))throw new TypeError("Cannot call a class as a function")}function b(O,_){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _&&(typeof _=="object"||typeof _=="function")?_:O}function y(O,_){if(typeof _!="function"&&_!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof _);O.prototype=Object.create(_&&_.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),_&&(Object.setPrototypeOf?Object.setPrototypeOf(O,_):O.__proto__=_)}var v={transitionName:d.nameShape.isRequired,transitionAppear:a.default.bool,transitionEnter:a.default.bool,transitionLeave:a.default.bool,transitionAppearTimeout:(0,d.transitionTimeout)("Appear"),transitionEnterTimeout:(0,d.transitionTimeout)("Enter"),transitionLeaveTimeout:(0,d.transitionTimeout)("Leave")},M={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},D=function(O){y(_,O);function _(){var m,k,C;h(this,_);for(var S=arguments.length,I=Array(S),E=0;E<S;E++)I[E]=arguments[E];return C=(m=(k=b(this,O.call.apply(O,[this].concat(I))),k),k._wrapChild=function($){return i.default.createElement(c.default,{name:k.props.transitionName,appear:k.props.transitionAppear,enter:k.props.transitionEnter,leave:k.props.transitionLeave,appearTimeout:k.props.transitionAppearTimeout,enterTimeout:k.props.transitionEnterTimeout,leaveTimeout:k.props.transitionLeaveTimeout},$)},m),b(k,C)}return _.prototype.render=function(){return i.default.createElement(l.default,n({},this.props,{childFactory:this._wrapChild}))},_}(i.default.Component);D.displayName="CSSTransitionGroup",D.propTypes=process.env.NODE_ENV!=="production"?v:{},D.defaultProps=M,t.default=D,e.exports=t.default})(vi,vi.exports);var lp=vi.exports,cp=lp,fp=ls(cp),dp=Xa,hp=ls(dp);function ls(e){return e&&e.__esModule?e:{default:e}}var pp={TransitionGroup:hp.default,CSSTransitionGroup:fp.default};const gp=e=>e.enableLegacyTransitions?U.createElement(pp.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):U.createElement("g",{className:e.className,transform:e.transform},e.children),mp=15,cs={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},yp=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>U.createElement(U.Fragment,null,U.createElement("circle",{r:mp,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),U.createElement("g",{className:"rd3t-label"},U.createElement("text",Object.assign({className:"rd3t-label__title"},cs.title),e.name),U.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,a],s)=>U.createElement("tspan",Object.assign({key:`${o}-${s}`},cs.attribute),o,": ",typeof a=="boolean"?a.toString():a)))));class vp extends U.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:yp,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,a=o?n.x:0,s=o?n.y:0;return r==="horizontal"?`translate(${s},${a})`:`translate(${a},${s})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?Ue(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):(Ue(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,a=this.setTransform(i,o,n,!0);this.applyTransform(a,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return U.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}}var $i=Math.PI,Li=2*$i,jt=1e-6,bp=Li-jt;function Pi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fs(){return new Pi}Pi.prototype=fs.prototype={constructor:Pi,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,l=r-t,u=o-e,c=a-t,d=u*u+c*c;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>jt)if(!(Math.abs(c*s-l*u)>jt)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,b=s*s+l*l,y=f*f+h*h,v=Math.sqrt(b),M=Math.sqrt(d),D=i*Math.tan(($i-Math.acos((b+d-y)/(2*v*M)))/2),O=D/M,_=D/v;Math.abs(O-1)>jt&&(this._+="L"+(e+O*u)+","+(t+O*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+_*s)+","+(this._y1=t+_*l)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var a=n*Math.cos(r),s=n*Math.sin(r),l=e+a,u=t+s,c=1^o,d=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+u:(Math.abs(this._x1-l)>jt||Math.abs(this._y1-u)>jt)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Li+Li),d>bp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>jt&&(this._+="A"+n+","+n+",0,"+ +(d>=$i)+","+c+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function ds(e){return function(){return e}}function xp(e){return e[0]}function Mp(e){return e[1]}var _p=Array.prototype.slice;function Tp(e){return e.source}function wp(e){return e.target}function hs(e){var t=Tp,n=wp,r=xp,i=Mp,o=null;function a(){var s,l=_p.call(arguments),u=t.apply(this,l),c=n.apply(this,l);if(o||(o=s=fs()),e(o,+r.apply(this,(l[0]=u,l)),+i.apply(this,l),+r.apply(this,(l[0]=c,l)),+i.apply(this,l)),s)return o=null,s+""||null}return a.source=function(s){return arguments.length?(t=s,a):t},a.target=function(s){return arguments.length?(n=s,a):n},a.x=function(s){return arguments.length?(r=typeof s=="function"?s:ds(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ds(+s),a):i},a.context=function(s){return arguments.length?(o=s??null,a):o},a}function Np(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Ep(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Dp(){return hs(Np)}function Op(){return hs(Ep)}class Cp extends U.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?Ue(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):(Ue(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?Dp()({source:[r.y,r.x],target:[i.y,i.x]}):Op()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return U.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const jp=`
55
- /* Tree */
56
- .rd3t-tree-container {
57
- width: 100%;
58
- height: 100%;
59
- }
60
-
61
- .rd3t-grabbable {
62
- cursor: move; /* fallback if grab cursor is unsupported */
63
- cursor: grab;
64
- cursor: -moz-grab;
65
- cursor: -webkit-grab;
66
- }
67
- .rd3t-grabbable:active {
68
- cursor: grabbing;
69
- cursor: -moz-grabbing;
70
- cursor: -webkit-grabbing;
71
- }
72
-
73
- /* Node */
74
- .rd3t-node {
75
- cursor: pointer;
76
- fill: #777;
77
- stroke: #000;
78
- stroke-width: 2;
79
- }
80
-
81
- .rd3t-leaf-node {
82
- cursor: pointer;
83
- fill: transparent;
84
- stroke: #000;
85
- stroke-width: 1;
86
- }
87
-
88
- .rd3t-label__title {
89
- fill: #000;
90
- stroke: none;
91
- font-weight: bolder;
92
- }
93
-
94
- .rd3t-label__attributes {
95
- fill: #777;
96
- stroke: none;
97
- font-weight: bolder;
98
- font-size: smaller;
99
- }
100
-
101
- /* Link */
102
- .rd3t-link {
103
- fill: none;
104
- stroke: #000;
105
- }
106
- `;let ps=class ot extends U.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:ot.assignInternalProperties(Ye(this.props.data)),d3:ot.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${yi()}`,this.gInstanceRef=`rd3t-g-${yi()}`,this.handleNodeToggle=t=>{const n=Ye(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(ot.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):ot.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=Ye(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],a=o.__rd3t.depth,s=Ye(n).map(l=>ot.assignInternalProperties([l],a+1));o.children.push(...s.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Ye(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Ye(t),Ye(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Ye(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Ye(t),Ye(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Ye(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Ye(t),Ye(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const a=Ue(`.${this.gInstanceRef}`),s=Ue(`.${this.svgInstanceRef}`),l=this.state.d3.scale;let u,c;r==="horizontal"?(c=-t.x*l+n.height/2,u=-t.y*l+n.width/2):(u=-t.x*l+n.width/2,c=-t.y*l+n.height/2),a.transition().duration(o).attr("transform","translate("+u+","+c+")scale("+l+")"),s.call(gi().transform,nr.translate(u,c).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:ot.assignInternalProperties(Ye(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=ot.calculateD3Geometry(t);return vn(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!vn(this.props.translate,t.translate)||!vn(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?Ye(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:a,hasInteractiveNodes:s}=t,l=Ue(`.${this.svgInstanceRef}`),u=Ue(`.${this.gInstanceRef}`);l.call(gi().transform,nr.translate(i.x,i.y).scale(o)),l.call(gi().scaleExtent(n?[r.min,r.max]:[o,o]).filter(c=>s?c.target.classList.contains(this.svgInstanceRef)||c.target.classList.contains(this.gInstanceRef)||c.shiftKey:!0).on("zoom",c=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(c.sourceEvent.type)||(u.attr("transform",c.transform),typeof a=="function"&&(a({node:null,zoom:c.transform.k,translate:{x:c.transform.x,y:c.transform.y}}),this.state.d3.scale=c.transform.k,this.state.d3.translate={x:c.transform.x,y:c.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=yi(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=ot.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{ot.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>ot.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:a}=this.state,l=tc().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((d,f)=>d.parent.data.__rd3t.id===f.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(Wr(this.state.data[0],d=>d.__rd3t.collapsed?null:d.children));let u=l.descendants();const c=l.links();return t!==void 0&&a&&this.setInitialTreeDepth(u,t),n&&u.forEach(d=>{d.y=d.depth*n}),{nodes:u,links:c}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoom<t.scaleExtent.min?n=t.scaleExtent.min:n=t.zoom,{translate:t.translate,scale:n}}render(){const{nodes:t,links:n}=this.generateTree(),{renderCustomNodeElement:r,orientation:i,pathFunc:o,transitionDuration:a,nodeSize:s,depthFactor:l,initialDepth:u,separation:c,enableLegacyTransitions:d,svgClassName:f,pathClassFunc:h}=this.props,{translate:b,scale:y}=this.state.d3,v=Object.assign(Object.assign(Object.assign({},s),c),{depthFactor:l,initialDepth:u});return U.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},U.createElement("style",null,jp),U.createElement("svg",{className:`rd3t-svg ${this.svgInstanceRef} ${f}`,width:"100%",height:"100%"},U.createElement(gp,{enableLegacyTransitions:d,component:"g",className:`rd3t-g ${this.gInstanceRef}`,transform:`translate(${b.x},${b.y}) scale(${y})`},n.map((M,D)=>U.createElement(Cp,{key:"link-"+D,orientation:i,pathFunc:o,pathClassFunc:h,linkData:M,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:d,transitionDuration:a})),t.map((M,D)=>{const{data:O,x:_,y:m,parent:k}=M;return U.createElement(vp,{key:"node-"+D,data:O,position:{x:_,y:m},hierarchyPointNode:M,parent:k,nodeClassName:this.getNodeClassName(k,O),renderCustomNodeElement:r,nodeSize:s,orientation:i,enableLegacyTransitions:d,transitionDuration:a,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:v,centerNode:this.centerNode})}))))}};ps.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};const Ap=()=>{const[e,t]=U.useState({x:0,y:0}),[n,r]=U.useState({height:0,width:0}),i=U.useCallback(o=>{if(!o)return null;const{width:a,height:s}=o.getBoundingClientRect();return r({height:s,width:a}),t({x:a/2,y:s/2}),o},[]);return{dimensions:n,refContainer:i,translate:e}},gs=({color:e,height:t=20,width:n=20})=>g.jsxs("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[g.jsx("path",{fill:"currentColor",d:`M19.1,18H14v2c0,1.1-0.9,2-2,2s-2-0.9-2-2v-2H4.9c-0.8,0-1.3-0.9-0.8-1.5L7,12l0,0c-0.8,0-1.3-0.9-0.8-1.6l5-7.2
107
- c0.4-0.6,1.2-0.6,1.6,0l0.6,0.9c-0.8,0.8-1.2,2-1.2,3.2c0,2.6,2.1,4.7,4.7,4.7H17l3,4.5C20.4,17.1,19.9,18,19.1,18z`}),g.jsx("path",{fill:"currentColor",d:`M20.6,7.3c0,0.4-0.4,0.8-0.8,0.8h-2.1v2.1c0,0.4-0.4,0.8-0.8,0.8s-0.8-0.4-0.8-0.8V8.1H14c-0.5,0-0.8-0.4-0.8-0.8
108
- c0-0.5,0.4-0.8,0.8-0.8h2.1V4.4c0-0.5,0.4-0.8,0.8-0.8s0.8,0.4,0.8,0.8v2.1h2.1C20.3,6.5,20.6,6.8,20.6,7.3z`})]}),Tt={currentHierarchyPointNode:null,currentTree:{errorName:"",id:"",name:""},dispatchTree:()=>null,endPoint:void 0,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setCurrentTree:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[],version:void 0},ms=U.createContext(Tt),Ke=()=>U.useContext(ms),Sp=()=>{const{setModalOpen:e}=Ke();return{handleClick:()=>e("add")}},Ip=()=>{const{t:e}=Ve.useTranslation("button"),{handleClick:t}=Sp();return g.jsx(w.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:g.jsx(w.Button,{onClick:t,size:"medium",variant:"contained",startIcon:g.jsx(gs,{}),children:e("createTree",{ns:"button"})})})},Fi={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${be.borderGrey} !important`}},ys="tree-link",kp=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Ap(),{currentTree:a}=Ke();return!e&&!a.id?g.jsx(Ip,{}):a.id&&!e?g.jsx(w.Box,{sx:Fi.progressContainer,children:g.jsx(w.CircularProgress,{})}):g.jsxs("div",{style:Fi.container,ref:i,children:[g.jsx(w.GlobalStyles,{styles:{[`.${ys}`]:Fi.treeLink}}),g.jsx(ps,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>ys,nodeSize:n})]})},vs=U.memo(kp),zp=()=>({formatJSON:t=>JSON.stringify(t??{},null,2)}),bs={fullHeight:{height:"100%"}},Rp=({value:e})=>{const{formatJSON:t}=zp();return g.jsxs("div",{style:bs.fullHeight,children:[g.jsx(w.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),g.jsx(ml,{value:t(e),extensions:[pl.json()],editable:!1,theme:gl.dracula,height:"100%",style:bs.fullHeight})]})};var Ui={},Yi={};function ae(){return ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ae.apply(this,arguments)}function Pt(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function xs(e){if(!Pt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=xs(e[n])}),t}function vt(e,t,n={clone:!0}){const r=n.clone?ae({},e):e;return Pt(e)&&Pt(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Pt(t[i])&&i in e&&Pt(e[i])?r[i]=vt(e[i],t[i],n):n.clone?r[i]=Pt(t[i])?xs(t[i]):t[i]:r[i]=t[i])}),r}function Ft(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Vi={exports:{}},me={};/**
47
+ */var Fr,ao;function ki(){if(ao)return Fr;ao=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var i={},u=0;u<10;u++)i["_"+String.fromCharCode(u)]=u;var l=Object.getOwnPropertyNames(i).map(function(f){return i[f]});if(l.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Fr=o()?Object.assign:function(a,i){for(var u,l=r(a),d,f=1;f<arguments.length;f++){u=Object(arguments[f]);for(var p in u)t.call(u,p)&&(l[p]=u[p]);if(e){d=e(u);for(var h=0;h<d.length;h++)n.call(u,d[h])&&(l[d[h]]=u[d[h]])}}return l},Fr}var Ur,io;function Vr(){if(io)return Ur;io=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ur=e,Ur}var Qr,so;function co(){return so||(so=1,Qr=Function.call.bind(Object.prototype.hasOwnProperty)),Qr}var Br,uo;function zi(){if(uo)return Br;uo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Vr(),n={},r=co();e=function(a){var i="Warning: "+a;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(a,i,u,l,d){if(process.env.NODE_ENV!=="production"){for(var f in a)if(r(a,f)){var p;try{if(typeof a[f]!="function"){var h=Error((l||"React class")+": "+u+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=a[f](i,f,l,u,null,t)}catch(v){p=v}if(p&&!(p instanceof Error)&&e((l||"React class")+": type specification of "+u+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in n)){n[p.message]=!0;var M=d?d():"";e("Failed "+u+" type: "+p.message+(M??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Br=o,Br}var qr,lo;function _i(){if(lo)return qr;lo=1;var e=oo(),t=ki(),n=Vr(),r=co(),o=zi(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var l="Warning: "+u;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function i(){return null}return qr=function(u,l){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(j){var O=j&&(d&&j[d]||j[f]);if(typeof O=="function")return O}var h="<<anonymous>>",M={array:T("array"),bigint:T("bigint"),bool:T("boolean"),func:T("function"),number:T("number"),object:T("object"),string:T("string"),symbol:T("symbol"),any:C(),arrayOf:I,element:A(),elementType:b(),instanceOf:q,node:U(),objectOf:we,oneOf:_,oneOfType:fe,shape:ke,exact:he};function v(j,O){return j===O?j!==0||1/j===1/O:j!==j&&O!==O}function g(j,O){this.message=j,this.data=O&&typeof O=="object"?O:{},this.stack=""}g.prototype=Error.prototype;function m(j){if(process.env.NODE_ENV!=="production")var O={},P=0;function L(Q,z,$,V,G,Y,Te){if(V=V||h,Y=Y||$,Te!==n){if(l){var E=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 E.name="Invariant Violation",E}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=V+":"+$;!O[_e]&&P<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Y+"` prop on `"+V+"`. 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."),O[_e]=!0,P++)}}return z[$]==null?Q?z[$]===null?new g("The "+G+" `"+Y+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new g("The "+G+" `"+Y+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:j(z,$,V,G,Y)}var R=L.bind(null,!1);return R.isRequired=L.bind(null,!0),R}function T(j){function O(P,L,R,Q,z,$){var V=P[L],G=Me(V);if(G!==j){var Y=ze(V);return new g("Invalid "+Q+" `"+z+"` of type "+("`"+Y+"` supplied to `"+R+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return m(O)}function C(){return m(i)}function I(j){function O(P,L,R,Q,z){if(typeof j!="function")return new g("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside arrayOf.");var $=P[L];if(!Array.isArray($)){var V=Me($);return new g("Invalid "+Q+" `"+z+"` of type "+("`"+V+"` supplied to `"+R+"`, expected an array."))}for(var G=0;G<$.length;G++){var Y=j($,G,R,Q,z+"["+G+"]",n);if(Y instanceof Error)return Y}return null}return m(O)}function A(){function j(O,P,L,R,Q){var z=O[P];if(!u(z)){var $=Me(z);return new g("Invalid "+R+" `"+Q+"` of type "+("`"+$+"` supplied to `"+L+"`, expected a single ReactElement."))}return null}return m(j)}function b(){function j(O,P,L,R,Q){var z=O[P];if(!e.isValidElementType(z)){var $=Me(z);return new g("Invalid "+R+" `"+Q+"` of type "+("`"+$+"` supplied to `"+L+"`, expected a single ReactElement type."))}return null}return m(j)}function q(j){function O(P,L,R,Q,z){if(!(P[L]instanceof j)){var $=j.name||h,V=Ye(P[L]);return new g("Invalid "+Q+" `"+z+"` of type "+("`"+V+"` supplied to `"+R+"`, expected ")+("instance of `"+$+"`."))}return null}return m(O)}function _(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),i;function O(P,L,R,Q,z){for(var $=P[L],V=0;V<j.length;V++)if(v($,j[V]))return null;var G=JSON.stringify(j,function(Te,E){var _e=ze(E);return _e==="symbol"?String(E):E});return new g("Invalid "+Q+" `"+z+"` of value `"+String($)+"` "+("supplied to `"+R+"`, expected one of "+G+"."))}return m(O)}function we(j){function O(P,L,R,Q,z){if(typeof j!="function")return new g("Property `"+z+"` of component `"+R+"` has invalid PropType notation inside objectOf.");var $=P[L],V=Me($);if(V!=="object")return new g("Invalid "+Q+" `"+z+"` of type "+("`"+V+"` supplied to `"+R+"`, expected an object."));for(var G in $)if(r($,G)){var Y=j($,G,R,Q,z+"."+G,n);if(Y instanceof Error)return Y}return null}return m(O)}function fe(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var O=0;O<j.length;O++){var P=j[O];if(typeof P!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Ae(P)+" at index "+O+"."),i}function L(R,Q,z,$,V){for(var G=[],Y=0;Y<j.length;Y++){var Te=j[Y],E=Te(R,Q,z,$,V,n);if(E==null)return null;E.data&&r(E.data,"expectedType")&&G.push(E.data.expectedType)}var _e=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new g("Invalid "+$+" `"+V+"` supplied to "+("`"+z+"`"+_e+"."))}return m(L)}function U(){function j(O,P,L,R,Q){return ge(O[P])?null:new g("Invalid "+R+" `"+Q+"` supplied to "+("`"+L+"`, expected a ReactNode."))}return m(j)}function pe(j,O,P,L,R){return new g((j||"React class")+": "+O+" type `"+P+"."+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+R+"`.")}function ke(j){function O(P,L,R,Q,z){var $=P[L],V=Me($);if(V!=="object")return new g("Invalid "+Q+" `"+z+"` of type `"+V+"` "+("supplied to `"+R+"`, expected `object`."));for(var G in j){var Y=j[G];if(typeof Y!="function")return pe(R,Q,z,G,ze(Y));var Te=Y($,G,R,Q,z+"."+G,n);if(Te)return Te}return null}return m(O)}function he(j){function O(P,L,R,Q,z){var $=P[L],V=Me($);if(V!=="object")return new g("Invalid "+Q+" `"+z+"` of type `"+V+"` "+("supplied to `"+R+"`, expected `object`."));var G=t({},P[L],j);for(var Y in G){var Te=j[Y];if(r(j,Y)&&typeof Te!="function")return pe(R,Q,z,Y,ze(Te));if(!Te)return new g("Invalid "+Q+" `"+z+"` key `"+Y+"` supplied to `"+R+"`.\nBad object: "+JSON.stringify(P[L],null," ")+`
48
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var E=Te($,Y,R,Q,z+"."+Y,n);if(E)return E}return null}return m(O)}function ge(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(ge);if(j===null||u(j))return!0;var O=p(j);if(O){var P=O.call(j),L;if(O!==j.entries){for(;!(L=P.next()).done;)if(!ge(L.value))return!1}else for(;!(L=P.next()).done;){var R=L.value;if(R&&!ge(R[1]))return!1}}else return!1;return!0;default:return!1}}function be(j,O){return j==="symbol"?!0:O?O["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&O instanceof Symbol:!1}function Me(j){var O=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":be(O,j)?"symbol":O}function ze(j){if(typeof j>"u"||j===null)return""+j;var O=Me(j);if(O==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return O}function Ae(j){var O=ze(j);switch(O){case"array":case"object":return"an "+O;case"boolean":case"date":case"regexp":return"a "+O;default:return O}}function Ye(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return M.checkPropTypes=o,M.resetWarningCache=o.resetWarningCache,M.PropTypes=M,M},qr}var Wr,fo;function Ri(){if(fo)return Wr;fo=1;var e=Vr();function t(){}function n(){}return n.resetWarningCache=t,Wr=function(){function r(i,u,l,d,f,p){if(p!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var a={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 a.PropTypes=a,a},Wr}if(process.env.NODE_ENV!=="production"){var Li=oo(),$i=!0;Yr.exports=_i()(Li.isElement,$i)}else Yr.exports=Ri()();var Pi=Yr.exports;const ce=ui(Pi);function ht(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}var Gr={exports:{}},oe={};/**
109
49
  * @license React
110
50
  * react-is.production.min.js
111
51
  *
@@ -113,7 +53,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
113
53
  *
114
54
  * This source code is licensed under the MIT license found in the
115
55
  * LICENSE file in the root directory of this source tree.
116
- */var Ms;function $p(){if(Ms)return me;Ms=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(v){if(typeof v=="object"&&v!==null){var M=v.$$typeof;switch(M){case e:switch(v=v.type,v){case n:case i:case r:case u:case c:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case l:case f:case d:case o:return v;default:return M}}case t:return M}}}return me.ContextConsumer=a,me.ContextProvider=o,me.Element=e,me.ForwardRef=l,me.Fragment=n,me.Lazy=f,me.Memo=d,me.Portal=t,me.Profiler=i,me.StrictMode=r,me.Suspense=u,me.SuspenseList=c,me.isAsyncMode=function(){return!1},me.isConcurrentMode=function(){return!1},me.isContextConsumer=function(v){return y(v)===a},me.isContextProvider=function(v){return y(v)===o},me.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},me.isForwardRef=function(v){return y(v)===l},me.isFragment=function(v){return y(v)===n},me.isLazy=function(v){return y(v)===f},me.isMemo=function(v){return y(v)===d},me.isPortal=function(v){return y(v)===t},me.isProfiler=function(v){return y(v)===i},me.isStrictMode=function(v){return y(v)===r},me.isSuspense=function(v){return y(v)===u},me.isSuspenseList=function(v){return y(v)===c},me.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===i||v===r||v===u||v===c||v===h||typeof v=="object"&&v!==null&&(v.$$typeof===f||v.$$typeof===d||v.$$typeof===o||v.$$typeof===a||v.$$typeof===l||v.$$typeof===b||v.getModuleId!==void 0)},me.typeOf=y,me}var ye={};/**
56
+ */var po;function Yi(){if(po)return oe;po=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function g(m){if(typeof m=="object"&&m!==null){var T=m.$$typeof;switch(T){case e:switch(m=m.type,m){case n:case o:case r:case d:case f:return m;default:switch(m=m&&m.$$typeof,m){case u:case i:case l:case h:case p:case a:return m;default:return T}}case t:return T}}}return oe.ContextConsumer=i,oe.ContextProvider=a,oe.Element=e,oe.ForwardRef=l,oe.Fragment=n,oe.Lazy=h,oe.Memo=p,oe.Portal=t,oe.Profiler=o,oe.StrictMode=r,oe.Suspense=d,oe.SuspenseList=f,oe.isAsyncMode=function(){return!1},oe.isConcurrentMode=function(){return!1},oe.isContextConsumer=function(m){return g(m)===i},oe.isContextProvider=function(m){return g(m)===a},oe.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},oe.isForwardRef=function(m){return g(m)===l},oe.isFragment=function(m){return g(m)===n},oe.isLazy=function(m){return g(m)===h},oe.isMemo=function(m){return g(m)===p},oe.isPortal=function(m){return g(m)===t},oe.isProfiler=function(m){return g(m)===o},oe.isStrictMode=function(m){return g(m)===r},oe.isSuspense=function(m){return g(m)===d},oe.isSuspenseList=function(m){return g(m)===f},oe.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===o||m===r||m===d||m===f||m===M||typeof m=="object"&&m!==null&&(m.$$typeof===h||m.$$typeof===p||m.$$typeof===a||m.$$typeof===i||m.$$typeof===l||m.$$typeof===v||m.getModuleId!==void 0)},oe.typeOf=g,oe}var ae={};/**
117
57
  * @license React
118
58
  * react-is.development.js
119
59
  *
@@ -121,38 +61,38 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
121
61
  *
122
62
  * This source code is licensed under the MIT license found in the
123
63
  * LICENSE file in the root directory of this source tree.
124
- */var _s;function Lp(){return _s||(_s=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),b=!1,y=!1,v=!1,M=!1,D=!1,O;O=Symbol.for("react.module.reference");function _(G){return!!(typeof G=="string"||typeof G=="function"||G===n||G===i||D||G===r||G===u||G===c||M||G===h||b||y||v||typeof G=="object"&&G!==null&&(G.$$typeof===f||G.$$typeof===d||G.$$typeof===o||G.$$typeof===a||G.$$typeof===l||G.$$typeof===O||G.getModuleId!==void 0))}function m(G){if(typeof G=="object"&&G!==null){var Je=G.$$typeof;switch(Je){case e:var rt=G.type;switch(rt){case n:case i:case r:case u:case c:return rt;default:var At=rt&&rt.$$typeof;switch(At){case s:case a:case l:case f:case d:case o:return At;default:return Je}}case t:return Je}}}var k=a,C=o,S=e,I=l,E=n,$=f,X=d,H=t,x=i,z=r,N=u,R=c,P=!1,q=!1;function T(G){return P||(P=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function A(G){return q||(q=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(G){return m(G)===a}function K(G){return m(G)===o}function B(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function J(G){return m(G)===l}function Q(G){return m(G)===n}function W(G){return m(G)===f}function ee(G){return m(G)===d}function re(G){return m(G)===t}function te(G){return m(G)===i}function Ce(G){return m(G)===r}function Y(G){return m(G)===u}function Le(G){return m(G)===c}ye.ContextConsumer=k,ye.ContextProvider=C,ye.Element=S,ye.ForwardRef=I,ye.Fragment=E,ye.Lazy=$,ye.Memo=X,ye.Portal=H,ye.Profiler=x,ye.StrictMode=z,ye.Suspense=N,ye.SuspenseList=R,ye.isAsyncMode=T,ye.isConcurrentMode=A,ye.isContextConsumer=V,ye.isContextProvider=K,ye.isElement=B,ye.isForwardRef=J,ye.isFragment=Q,ye.isLazy=W,ye.isMemo=ee,ye.isPortal=re,ye.isProfiler=te,ye.isStrictMode=Ce,ye.isSuspense=Y,ye.isSuspenseList=Le,ye.isValidElementType=_,ye.typeOf=m}()),ye}process.env.NODE_ENV==="production"?Vi.exports=$p():Vi.exports=Lp();var Ts=Vi.exports;const Pp=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Fp(e){const t=`${e}`.match(Pp);return t&&t[1]||""}function ws(e,t=""){return e.displayName||e.name||Fp(e)||t}function Ns(e,t,n){const r=ws(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Up(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return ws(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ts.ForwardRef:return Ns(e,e.render,"ForwardRef");case Ts.Memo:return Ns(e,e.type,"memo");default:return}}}function lt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Ft(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Yp(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Vp(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Bp(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,o,a)=>{const s=i||"<<anonymous>>",l=a||r;return typeof n[r]<"u"?new Error(`The ${o} \`${l}\` of \`${s}\` is deprecated. ${t}`):null}}function qp(e,t){return ue.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Es(e){return e&&e.ownerDocument||document}function Qp(e){return Es(e).defaultView||window}function Wp(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?ae({},t.propTypes):null;return i=>(o,a,s,l,u,...c)=>{const d=u||a,f=n==null?void 0:n[d];if(f){const h=f(o,a,s,l,u,...c);if(h)return h}return typeof o[a]<"u"&&!o[i]?new Error(`The prop \`${d}\` of \`${e}\` can only be used together with the \`${i}\` prop.`):null}}function Ds(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Os=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;let Cs=0;function Gp(e){const[t,n]=ue.useState(e),r=e||t;return ue.useEffect(()=>{t==null&&(Cs+=1,n(`mui-${Cs}`))},[t]),r}const js=ue["useId".toString()];function Kp(e){if(js!==void 0){const t=js();return e??t}return Gp(e)}function Hp(e,t,n,r,i){if(process.env.NODE_ENV==="production")return null;const o=i||t;return typeof e[t]<"u"?new Error(`The prop \`${o}\` is not supported. Please remove it.`):null}function Xp({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=ue.useRef(e!==void 0),[o,a]=ue.useState(t),s=i?e:o;if(process.env.NODE_ENV!=="production"){ue.useEffect(()=>{i!==(e!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${r} state of ${n} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
125
- `))},[r,n,e]);const{current:u}=ue.useRef(t);ue.useEffect(()=>{!i&&u!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
126
- `))},[JSON.stringify(t)])}const l=ue.useCallback(u=>{i||a(u)},[]);return[s,l]}function Jp(e){const t=ue.useRef(e);return Os(()=>{t.current=e}),ue.useCallback((...n)=>(0,t.current)(...n),[])}function Zp(...e){return ue.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ds(n,t)})},e)}let lr=!0,Bi=!1,As;const e0={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function t0(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&e0[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function n0(e){e.metaKey||e.altKey||e.ctrlKey||(lr=!0)}function qi(){lr=!1}function r0(){this.visibilityState==="hidden"&&Bi&&(lr=!0)}function i0(e){e.addEventListener("keydown",n0,!0),e.addEventListener("mousedown",qi,!0),e.addEventListener("pointerdown",qi,!0),e.addEventListener("touchstart",qi,!0),e.addEventListener("visibilitychange",r0,!0)}function o0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return lr||t0(t)}function a0(){const e=ue.useCallback(i=>{i!=null&&i0(i.ownerDocument)},[]),t=ue.useRef(!1);function n(){return t.current?(Bi=!0,window.clearTimeout(As),As=window.setTimeout(()=>{Bi=!1},100),t.current=!1,!0):!1}function r(i){return o0(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Ss(e,t){const n=ae({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=ae({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=ae({},o),Object.keys(i).forEach(a=>{n[r][a]=Ss(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function s0(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),n&&n[a]&&o.push(n[a])}return o},[]).join(" ")}),r}const Is=e=>e,ks=(()=>{let e=Is;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Is}}})(),u0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Qi(e,t,n="Mui"){const r=u0[t];return r?`${n}-${r}`:`${ks.generate(e)}-${t}`}function l0(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Qi(e,i,n)}),r}function bt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function zs(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=zs(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function c0(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=zs(e))&&(r&&(r+=" "),r+=t);return r}function Rs(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var f0=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,d0=Rs(function(e){return f0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function h0(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 p0(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 g0=function(){function e(n){var r=this;this._insertTag=function(i){var o;r.tags.length===0?r.insertionPoint?o=r.insertionPoint.nextSibling:r.prepend?o=r.container.firstChild:o=r.before:o=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,o),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":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(p0(this));var i=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
127
- `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var a=h0(i);try{a.insertRule(r,a.cssRules.length)}catch(s){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',s)}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),$e="-ms-",cr="-moz-",ce="-webkit-",Wi="comm",Gi="rule",Ki="decl",m0="@import",$s="@keyframes",y0="@layer",v0=Math.abs,fr=String.fromCharCode,b0=Object.assign;function x0(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function Ls(e){return e.trim()}function M0(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function Hi(e,t){return e.indexOf(t)}function Re(e,t){return e.charCodeAt(t)|0}function xn(e,t,n){return e.slice(t,n)}function ct(e){return e.length}function Xi(e){return e.length}function dr(e,t){return t.push(e),e}function _0(e,t){return e.map(t).join("")}var hr=1,Ut=1,Ps=0,qe=0,Oe=0,Yt="";function pr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:hr,column:Ut,length:a,return:""}}function Mn(e,t){return b0(pr("",null,null,"",null,null,0),e,{length:-e.length},t)}function T0(){return Oe}function w0(){return Oe=qe>0?Re(Yt,--qe):0,Ut--,Oe===10&&(Ut=1,hr--),Oe}function He(){return Oe=qe<Ps?Re(Yt,qe++):0,Ut++,Oe===10&&(Ut=1,hr++),Oe}function ft(){return Re(Yt,qe)}function gr(){return qe}function _n(e,t){return xn(Yt,e,t)}function Tn(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 Fs(e){return hr=Ut=1,Ps=ct(Yt=e),qe=0,[]}function Us(e){return Yt="",e}function mr(e){return Ls(_n(qe-1,Ji(e===91?e+2:e===40?e+1:e)))}function N0(e){for(;(Oe=ft())&&Oe<33;)He();return Tn(e)>2||Tn(Oe)>3?"":" "}function E0(e,t){for(;--t&&He()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return _n(e,gr()+(t<6&&ft()==32&&He()==32))}function Ji(e){for(;He();)switch(Oe){case e:return qe;case 34:case 39:e!==34&&e!==39&&Ji(Oe);break;case 40:e===41&&Ji(e);break;case 92:He();break}return qe}function D0(e,t){for(;He()&&e+Oe!==47+10;)if(e+Oe===42+42&&ft()===47)break;return"/*"+_n(t,qe-1)+"*"+fr(e===47?e:He())}function O0(e){for(;!Tn(ft());)He();return _n(e,qe)}function C0(e){return Us(yr("",null,null,null,[""],e=Fs(e),0,[0],e))}function yr(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,b=0,y=1,v=1,M=1,D=0,O="",_=i,m=o,k=r,C=O;v;)switch(b=D,D=He()){case 40:if(b!=108&&Re(C,d-1)==58){Hi(C+=fe(mr(D),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:C+=mr(D);break;case 9:case 10:case 13:case 32:C+=N0(b);break;case 92:C+=E0(gr()-1,7);continue;case 47:switch(ft()){case 42:case 47:dr(j0(D0(He(),gr()),t,n),l);break;default:C+="/"}break;case 123*y:s[u++]=ct(C)*M;case 125*y:case 59:case 0:switch(D){case 0:case 125:v=0;case 59+c:M==-1&&(C=fe(C,/\f/g,"")),h>0&&ct(C)-d&&dr(h>32?Vs(C+";",r,n,d-1):Vs(fe(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(dr(k=Ys(C,t,n,u,c,i,s,O,_=[],m=[],d),o),D===123)if(c===0)yr(C,t,k,k,_,o,d,s,m);else switch(f===99&&Re(C,3)===110?100:f){case 100:case 108:case 109:case 115:yr(e,k,k,r&&dr(Ys(e,k,k,0,0,i,s,O,i,_=[],d),m),i,m,d,s,r?_:m);break;default:yr(C,k,k,k,[""],m,0,s,m)}}u=c=h=0,y=M=1,O=C="",d=a;break;case 58:d=1+ct(C),h=b;default:if(y<1){if(D==123)--y;else if(D==125&&y++==0&&w0()==125)continue}switch(C+=fr(D),D*y){case 38:M=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(ct(C)-1)*M,M=1;break;case 64:ft()===45&&(C+=mr(He())),f=ft(),c=d=ct(O=C+=O0(gr())),D++;break;case 45:b===45&&ct(C)==2&&(y=0)}}return o}function Ys(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=i===0?o:[""],h=Xi(f),b=0,y=0,v=0;b<r;++b)for(var M=0,D=xn(e,d+1,d=v0(y=a[b])),O=e;M<h;++M)(O=Ls(y>0?f[M]+" "+D:fe(D,/&\f/g,f[M])))&&(l[v++]=O);return pr(e,t,n,i===0?Gi:s,l,u,c)}function j0(e,t,n){return pr(e,t,n,Wi,fr(T0()),xn(e,2,-2),0)}function Vs(e,t,n,r){return pr(e,t,n,Ki,xn(e,0,r),xn(e,r+1,-1),r)}function Vt(e,t){for(var n="",r=Xi(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function A0(e,t,n,r){switch(e.type){case y0:if(e.children.length)break;case m0:case Ki:return e.return=e.return||e.value;case Wi:return"";case $s:return e.return=e.value+"{"+Vt(e.children,r)+"}";case Gi:e.value=e.props.join(",")}return ct(n=Vt(e.children,r))?e.return=e.value+"{"+n+"}":""}function S0(e){var t=Xi(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function I0(e){return function(t){t.root||(t=t.return)&&e(t)}}var k0=function(t,n,r){for(var i=0,o=0;i=o,o=ft(),i===38&&o===12&&(n[r]=1),!Tn(o);)He();return _n(t,qe)},z0=function(t,n){var r=-1,i=44;do switch(Tn(i)){case 0:i===38&&ft()===12&&(n[r]=1),t[r]+=k0(qe-1,n,r);break;case 2:t[r]+=mr(i);break;case 4:if(i===44){t[++r]=ft()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=fr(i)}while(i=He());return t},R0=function(t,n){return Us(z0(Fs(t),n))},Bs=new WeakMap,$0=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=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&&!Bs.get(r))&&!i){Bs.set(t,!0);for(var o=[],a=R0(n,o),s=r.props,l=0,u=0;l<a.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=o[l]?a[l].replace(/&\f/g,s[c]):s[c]+" "+a[l]}}},L0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},P0="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",F0=function(t){return t.type==="comm"&&t.children.indexOf(P0)>-1},U0=function(t){return function(n,r,i){if(!(n.type!=="rule"||t.compat)){var o=n.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var a=!!n.parent,s=a?n.parent.children:i,l=s.length-1;l>=0;l--){var u=s[l];if(u.line<n.line)break;if(u.column<n.column){if(F0(u))return;break}}o.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},qs=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Y0=function(t,n){for(var r=t-1;r>=0;r--)if(!qs(n[r]))return!0;return!1},Qs=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},V0=function(t,n,r){qs(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),Qs(t)):Y0(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Qs(t)))};function Ws(e,t){switch(x0(e,t)){case 5103:return ce+"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 ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ce+e+cr+e+$e+e+e;case 6828:case 4268:return ce+e+$e+e+e;case 6165:return ce+e+$e+"flex-"+e+e;case 5187:return ce+e+fe(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return ce+e+$e+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return ce+e+$e+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+$e+fe(e,"shrink","negative")+e;case 5292:return ce+e+$e+fe(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+fe(e,"-grow","")+ce+e+$e+fe(e,"grow","positive")+e;case 4554:return ce+fe(e,/([^-])(transform)/g,"$1"+ce+"$2")+e;case 6187:return fe(fe(fe(e,/(zoom-|grab)/,ce+"$1"),/(image-set)/,ce+"$1"),e,"")+e;case 5495:case 3959:return fe(e,/(image-set\([^]*)/,ce+"$1$`$1");case 4968:return fe(fe(e,/(.+:)(flex-)?(.*)/,ce+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ce+e+e;case 4095:case 3583:case 4068:case 2532:return fe(e,/(.+)-inline(.+)/,ce+"$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(ct(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+cr+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Hi(e,"stretch")?Ws(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,ct(e)-3-(~Hi(e,"!important")&&10))){case 107:return fe(e,":",":"+ce)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+(Re(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return ce+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+$e+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+$e+e+e}return e}var B0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case Ki:t.return=Ws(t.value,t.length);break;case $s:return Vt([Mn(t,{value:fe(t.value,"@","@"+ce)})],i);case Gi:if(t.length)return _0(t.props,function(o){switch(M0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Vt([Mn(t,{props:[fe(o,/:(read-\w+)/,":"+cr+"$1")]})],i);case"::placeholder":return Vt([Mn(t,{props:[fe(o,/:(plac\w+)/,":"+ce+"input-$1")]}),Mn(t,{props:[fe(o,/:(plac\w+)/,":"+cr+"$1")]}),Mn(t,{props:[fe(o,/:(plac\w+)/,$e+"input-$1")]})],i)}return""})}},q0=[B0],Q0=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
128
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(y){var v=y.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||q0;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var v=y.getAttribute("data-emotion").split(" "),M=1;M<v.length;M++)o[v[M]]=!0;s.push(y)});var l,u=[$0,L0];process.env.NODE_ENV!=="production"&&u.push(U0({get compat(){return b.compat}}),V0);{var c,d=[A0,process.env.NODE_ENV!=="production"?function(y){y.root||(y.return?c.insert(y.return):y.value&&y.type!==Wi&&c.insert(y.value+"{}"))}:I0(function(y){c.insert(y)})],f=S0(u.concat(i,d)),h=function(v){return Vt(C0(v),f)};l=function(v,M,D,O){c=D,process.env.NODE_ENV!=="production"&&M.map!==void 0&&(c={insert:function(m){D.insert(m+M.map)}}),h(v?v+"{"+M.styles+"}":M.styles),O&&(b.inserted[M.name]=!0)}}var b={key:n,sheet:new g0({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return b.sheet.hydrate(s),b},W0=!0;function Gs(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Zi=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||W0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Ks=function(t,n,r){Zi(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var o=n;do t.insert(n===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function G0(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=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(i){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 K0={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,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},Hs=`You have illegal escape sequence in your template literal, most likely inside content's property value.
64
+ */var ho;function Fi(){return ho||(ho=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),u=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),v=!1,g=!1,m=!1,T=!1,C=!1,I;I=Symbol.for("react.module.reference");function A(w){return!!(typeof w=="string"||typeof w=="function"||w===n||w===o||C||w===r||w===d||w===f||T||w===M||v||g||m||typeof w=="object"&&w!==null&&(w.$$typeof===h||w.$$typeof===p||w.$$typeof===a||w.$$typeof===i||w.$$typeof===l||w.$$typeof===I||w.getModuleId!==void 0))}function b(w){if(typeof w=="object"&&w!==null){var Be=w.$$typeof;switch(Be){case e:var Ge=w.type;switch(Ge){case n:case o:case r:case d:case f:return Ge;default:var ut=Ge&&Ge.$$typeof;switch(ut){case u:case i:case l:case h:case p:case a:return ut;default:return Be}}case t:return Be}}}var q=i,_=a,we=e,fe=l,U=n,pe=h,ke=p,he=t,ge=o,be=r,Me=d,ze=f,Ae=!1,Ye=!1;function j(w){return Ae||(Ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function O(w){return Ye||(Ye=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function P(w){return b(w)===i}function L(w){return b(w)===a}function R(w){return typeof w=="object"&&w!==null&&w.$$typeof===e}function Q(w){return b(w)===l}function z(w){return b(w)===n}function $(w){return b(w)===h}function V(w){return b(w)===p}function G(w){return b(w)===t}function Y(w){return b(w)===o}function Te(w){return b(w)===r}function E(w){return b(w)===d}function _e(w){return b(w)===f}ae.ContextConsumer=q,ae.ContextProvider=_,ae.Element=we,ae.ForwardRef=fe,ae.Fragment=U,ae.Lazy=pe,ae.Memo=ke,ae.Portal=he,ae.Profiler=ge,ae.StrictMode=be,ae.Suspense=Me,ae.SuspenseList=ze,ae.isAsyncMode=j,ae.isConcurrentMode=O,ae.isContextConsumer=P,ae.isContextProvider=L,ae.isElement=R,ae.isForwardRef=Q,ae.isFragment=z,ae.isLazy=$,ae.isMemo=V,ae.isPortal=G,ae.isProfiler=Y,ae.isStrictMode=Te,ae.isSuspense=E,ae.isSuspenseList=_e,ae.isValidElementType=A,ae.typeOf=b}()),ae}process.env.NODE_ENV==="production"?Gr.exports=Yi():Gr.exports=Fi();var go=Gr.exports;const Ui=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Vi(e){const t=`${e}`.match(Ui);return t&&t[1]||""}function mo(e,t=""){return e.displayName||e.name||Vi(e)||t}function yo(e,t,n){const r=mo(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Qi(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return mo(e,"Component");if(typeof e=="object")switch(e.$$typeof){case go.ForwardRef:return yo(e,e.render,"ForwardRef");case go.Memo:return yo(e,e.type,"memo");default:return}}}function Je(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bi(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function qi(e,t=166){let n;function r(...o){const a=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Wi(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,o,a,i)=>{const u=o||"<<anonymous>>",l=i||r;return typeof n[r]<"u"?new Error(`The ${a} \`${l}\` of \`${u}\` is deprecated. ${t}`):null}}function Gi(e,t){return J.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function vo(e){return e&&e.ownerDocument||document}function Ki(e){return vo(e).defaultView||window}function Ji(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?W({},t.propTypes):null;return o=>(a,i,u,l,d,...f)=>{const p=d||i,h=n==null?void 0:n[p];if(h){const M=h(a,i,u,l,d,...f);if(M)return M}return typeof a[i]<"u"&&!a[o]?new Error(`The prop \`${p}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function bo(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Mo=typeof window<"u"?J.useLayoutEffect:J.useEffect;let xo=0;function Zi(e){const[t,n]=J.useState(e),r=e||t;return J.useEffect(()=>{t==null&&(xo+=1,n(`mui-${xo}`))},[t]),r}const To=J["useId".toString()];function Xi(e){if(To!==void 0){const t=To();return e??t}return Zi(e)}function Hi(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const a=o||t;return typeof e[t]<"u"?new Error(`The prop \`${a}\` is not supported. Please remove it.`):null}function es({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=J.useRef(e!==void 0),[a,i]=J.useState(t),u=o?e:a;if(process.env.NODE_ENV!=="production"){J.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
65
+ `))},[r,n,e]);const{current:d}=J.useRef(t);J.useEffect(()=>{!o&&d!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
66
+ `))},[JSON.stringify(t)])}const l=J.useCallback(d=>{o||i(d)},[]);return[u,l]}function ts(e){const t=J.useRef(e);return Mo(()=>{t.current=e}),J.useCallback((...n)=>(0,t.current)(...n),[])}function rs(...e){return J.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{bo(n,t)})},e)}let Ht=!0,Kr=!1,jo;const ns={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function os(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&ns[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function as(e){e.metaKey||e.altKey||e.ctrlKey||(Ht=!0)}function Jr(){Ht=!1}function is(){this.visibilityState==="hidden"&&Kr&&(Ht=!0)}function ss(e){e.addEventListener("keydown",as,!0),e.addEventListener("mousedown",Jr,!0),e.addEventListener("pointerdown",Jr,!0),e.addEventListener("touchstart",Jr,!0),e.addEventListener("visibilitychange",is,!0)}function cs(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Ht||os(t)}function us(){const e=J.useCallback(o=>{o!=null&&ss(o.ownerDocument)},[]),t=J.useRef(!1);function n(){return t.current?(Kr=!0,window.clearTimeout(jo),jo=window.setTimeout(()=>{Kr=!1},100),t.current=!1,!0):!1}function r(o){return cs(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Do(e,t){const n=W({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=W({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=o:!o||!Object.keys(o)?n[r]=a:(n[r]=W({},a),Object.keys(o).forEach(i=>{n[r][i]=Do(o[i],a[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function ls(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((a,i)=>{if(i){const u=t(i);u!==""&&a.push(u),n&&n[i]&&a.push(n[i])}return a},[]).join(" ")}),r}const No=e=>e,Eo=(()=>{let e=No;return{configure(t){e=t},generate(t){return e(t)},reset(){e=No}}})(),ds={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Zr(e,t,n="Mui"){const r=ds[t];return r?`${n}-${r}`:`${Eo.generate(e)}-${t}`}function fs(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Zr(e,o,n)}),r}function nt(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,a;for(a=0;a<r.length;a++)o=r[a],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Oo(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Oo(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function ps(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Oo(e))&&(r&&(r+=" "),r+=t);return r}function Co(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hs=/^((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|download|draggable|encType|enterKeyHint|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)-.*))$/,gs=Co(function(e){return hs.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function ms(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 ys(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 vs=function(){function e(n){var r=this;this._insertTag=function(o){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,a),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":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(ys(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=r.charCodeAt(0)===64&&r.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
67
+ `+r+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var i=ms(o);try{i.insertRule(r,i.cssRules.length)}catch(u){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(r)&&console.error('There was a problem inserting the following rule: "'+r+'"',u)}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){return r.parentNode&&r.parentNode.removeChild(r)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),Se="-ms-",er="-moz-",X="-webkit-",Xr="comm",Hr="rule",en="decl",bs="@import",Io="@keyframes",Ms="@layer",xs=Math.abs,tr=String.fromCharCode,Ts=Object.assign;function js(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function wo(e){return e.trim()}function Ds(e,t){return(e=t.exec(e))?e[0]:e}function H(e,t,n){return e.replace(t,n)}function tn(e,t){return e.indexOf(t)}function Ie(e,t){return e.charCodeAt(t)|0}function zt(e,t,n){return e.slice(t,n)}function Ze(e){return e.length}function rn(e){return e.length}function rr(e,t){return t.push(e),e}function Ns(e,t){return e.map(t).join("")}var nr=1,gt=1,Ao=0,Pe=0,xe=0,mt="";function or(e,t,n,r,o,a,i){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:nr,column:gt,length:i,return:""}}function _t(e,t){return Ts(or("",null,null,"",null,null,0),e,{length:-e.length},t)}function Es(){return xe}function Os(){return xe=Pe>0?Ie(mt,--Pe):0,gt--,xe===10&&(gt=1,nr--),xe}function Ve(){return xe=Pe<Ao?Ie(mt,Pe++):0,gt++,xe===10&&(gt=1,nr++),xe}function Xe(){return Ie(mt,Pe)}function ar(){return Pe}function Rt(e,t){return zt(mt,e,t)}function Lt(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 So(e){return nr=gt=1,Ao=Ze(mt=e),Pe=0,[]}function ko(e){return mt="",e}function ir(e){return wo(Rt(Pe-1,nn(e===91?e+2:e===40?e+1:e)))}function Cs(e){for(;(xe=Xe())&&xe<33;)Ve();return Lt(e)>2||Lt(xe)>3?"":" "}function Is(e,t){for(;--t&&Ve()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return Rt(e,ar()+(t<6&&Xe()==32&&Ve()==32))}function nn(e){for(;Ve();)switch(xe){case e:return Pe;case 34:case 39:e!==34&&e!==39&&nn(xe);break;case 40:e===41&&nn(e);break;case 92:Ve();break}return Pe}function ws(e,t){for(;Ve()&&e+xe!==47+10;)if(e+xe===42+42&&Xe()===47)break;return"/*"+Rt(t,Pe-1)+"*"+tr(e===47?e:Ve())}function As(e){for(;!Lt(Xe());)Ve();return Rt(e,Pe)}function Ss(e){return ko(sr("",null,null,null,[""],e=So(e),0,[0],e))}function sr(e,t,n,r,o,a,i,u,l){for(var d=0,f=0,p=i,h=0,M=0,v=0,g=1,m=1,T=1,C=0,I="",A=o,b=a,q=r,_=I;m;)switch(v=C,C=Ve()){case 40:if(v!=108&&Ie(_,p-1)==58){tn(_+=H(ir(C),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:_+=ir(C);break;case 9:case 10:case 13:case 32:_+=Cs(v);break;case 92:_+=Is(ar()-1,7);continue;case 47:switch(Xe()){case 42:case 47:rr(ks(ws(Ve(),ar()),t,n),l);break;default:_+="/"}break;case 123*g:u[d++]=Ze(_)*T;case 125*g:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+f:T==-1&&(_=H(_,/\f/g,"")),M>0&&Ze(_)-p&&rr(M>32?_o(_+";",r,n,p-1):_o(H(_," ","")+";",r,n,p-2),l);break;case 59:_+=";";default:if(rr(q=zo(_,t,n,d,f,o,u,I,A=[],b=[],p),a),C===123)if(f===0)sr(_,t,q,q,A,a,p,u,b);else switch(h===99&&Ie(_,3)===110?100:h){case 100:case 108:case 109:case 115:sr(e,q,q,r&&rr(zo(e,q,q,0,0,o,u,I,o,A=[],p),b),o,b,p,u,r?A:b);break;default:sr(_,q,q,q,[""],b,0,u,b)}}d=f=M=0,g=T=1,I=_="",p=i;break;case 58:p=1+Ze(_),M=v;default:if(g<1){if(C==123)--g;else if(C==125&&g++==0&&Os()==125)continue}switch(_+=tr(C),C*g){case 38:T=f>0?1:(_+="\f",-1);break;case 44:u[d++]=(Ze(_)-1)*T,T=1;break;case 64:Xe()===45&&(_+=ir(Ve())),h=Xe(),f=p=Ze(I=_+=As(ar())),C++;break;case 45:v===45&&Ze(_)==2&&(g=0)}}return a}function zo(e,t,n,r,o,a,i,u,l,d,f){for(var p=o-1,h=o===0?a:[""],M=rn(h),v=0,g=0,m=0;v<r;++v)for(var T=0,C=zt(e,p+1,p=xs(g=i[v])),I=e;T<M;++T)(I=wo(g>0?h[T]+" "+C:H(C,/&\f/g,h[T])))&&(l[m++]=I);return or(e,t,n,o===0?Hr:u,l,d,f)}function ks(e,t,n){return or(e,t,n,Xr,tr(Es()),zt(e,2,-2),0)}function _o(e,t,n,r){return or(e,t,n,en,zt(e,0,r),zt(e,r+1,-1),r)}function yt(e,t){for(var n="",r=rn(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function zs(e,t,n,r){switch(e.type){case Ms:if(e.children.length)break;case bs:case en:return e.return=e.return||e.value;case Xr:return"";case Io:return e.return=e.value+"{"+yt(e.children,r)+"}";case Hr:e.value=e.props.join(",")}return Ze(n=yt(e.children,r))?e.return=e.value+"{"+n+"}":""}function _s(e){var t=rn(e);return function(n,r,o,a){for(var i="",u=0;u<t;u++)i+=e[u](n,r,o,a)||"";return i}}function Rs(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ls=function(t,n,r){for(var o=0,a=0;o=a,a=Xe(),o===38&&a===12&&(n[r]=1),!Lt(a);)Ve();return Rt(t,Pe)},$s=function(t,n){var r=-1,o=44;do switch(Lt(o)){case 0:o===38&&Xe()===12&&(n[r]=1),t[r]+=Ls(Pe-1,n,r);break;case 2:t[r]+=ir(o);break;case 4:if(o===44){t[++r]=Xe()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=tr(o)}while(o=Ve());return t},Ps=function(t,n){return ko($s(So(t),n))},Ro=new WeakMap,Ys=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&&!Ro.get(r))&&!o){Ro.set(t,!0);for(var a=[],i=Ps(n,a),u=r.props,l=0,d=0;l<i.length;l++)for(var f=0;f<u.length;f++,d++)t.props[d]=a[l]?i[l].replace(/&\f/g,u[f]):u[f]+" "+i[l]}}},Fs=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Us="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",Vs=function(t){return t.type==="comm"&&t.children.indexOf(Us)>-1},Qs=function(t){return function(n,r,o){if(!(n.type!=="rule"||t.compat)){var a=n.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=!!n.parent,u=i?n.parent.children:o,l=u.length-1;l>=0;l--){var d=u[l];if(d.line<n.line)break;if(d.column<n.column){if(Vs(d))return;break}}a.forEach(function(f){console.error('The pseudo class "'+f+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+f.split("-child")[0]+'-of-type".')})}}}},Lo=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Bs=function(t,n){for(var r=t-1;r>=0;r--)if(!Lo(n[r]))return!0;return!1},$o=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},qs=function(t,n,r){Lo(t)&&(t.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),$o(t)):Bs(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),$o(t)))};function Po(e,t){switch(js(e,t)){case 5103:return X+"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 X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+er+e+Se+e+e;case 6828:case 4268:return X+e+Se+e+e;case 6165:return X+e+Se+"flex-"+e+e;case 5187:return X+e+H(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+Se+"flex-$1$2")+e;case 5443:return X+e+Se+"flex-item-"+H(e,/flex-|-self/,"")+e;case 4675:return X+e+Se+"flex-line-pack"+H(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+Se+H(e,"shrink","negative")+e;case 5292:return X+e+Se+H(e,"basis","preferred-size")+e;case 6060:return X+"box-"+H(e,"-grow","")+X+e+Se+H(e,"grow","positive")+e;case 4554:return X+H(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return H(H(H(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return H(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return H(H(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return H(e,/(.+)-inline(.+)/,X+"$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(Ze(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return H(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+er+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tn(e,"stretch")?Po(H(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,Ze(e)-3-(~tn(e,"!important")&&10))){case 107:return H(e,":",":"+X)+e;case 101:return H(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(Ie(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+Se+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return X+e+Se+H(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+Se+H(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+Se+H(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+Se+e+e}return e}var Ws=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case en:t.return=Po(t.value,t.length);break;case Io:return yt([_t(t,{value:H(t.value,"@","@"+X)})],o);case Hr:if(t.length)return Ns(t.props,function(a){switch(Ds(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yt([_t(t,{props:[H(a,/:(read-\w+)/,":"+er+"$1")]})],o);case"::placeholder":return yt([_t(t,{props:[H(a,/:(plac\w+)/,":"+X+"input-$1")]}),_t(t,{props:[H(a,/:(plac\w+)/,":"+er+"$1")]}),_t(t,{props:[H(a,/:(plac\w+)/,Se+"input-$1")]})],o)}return""})}},Gs=[Ws],Ks=function(t){var n=t.key;if(process.env.NODE_ENV!=="production"&&!n)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
68
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(g){var m=g.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var o=t.stylisPlugins||Gs;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(n))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+n+'" was passed');var a={},i,u=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var m=g.getAttribute("data-emotion").split(" "),T=1;T<m.length;T++)a[m[T]]=!0;u.push(g)});var l,d=[Ys,Fs];process.env.NODE_ENV!=="production"&&d.push(Qs({get compat(){return v.compat}}),qs);{var f,p=[zs,process.env.NODE_ENV!=="production"?function(g){g.root||(g.return?f.insert(g.return):g.value&&g.type!==Xr&&f.insert(g.value+"{}"))}:Rs(function(g){f.insert(g)})],h=_s(d.concat(o,p)),M=function(m){return yt(Ss(m),h)};l=function(m,T,C,I){f=C,process.env.NODE_ENV!=="production"&&T.map!==void 0&&(f={insert:function(b){C.insert(b+T.map)}}),M(m?m+"{"+T.styles+"}":T.styles),I&&(v.inserted[T.name]=!0)}}var v={key:n,sheet:new vs({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return v.sheet.hydrate(u),v},Js=!0;function Yo(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var on=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||Js===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},Fo=function(t,n,r){on(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Zs(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 Xs={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,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},Uo=`You have illegal escape sequence in your template literal, most likely inside content's property value.
129
69
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
130
70
  You can read more about this here:
131
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,H0="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",X0=/[A-Z]|^ms/g,Xs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eo=function(t){return t.charCodeAt(1)===45},Js=function(t){return t!=null&&typeof t!="boolean"},to=Rs(function(e){return eo(e)?e:e.replace(X0,"-$&").toLowerCase()}),vr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Xs,function(r,i,o){return nt={name:i,styles:o,next:nt},i})}return K0[t]!==1&&!eo(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var J0=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Z0=["normal","none","initial","inherit","unset"],eg=vr,tg=/^-ms-/,ng=/-(.)/g,Zs={};vr=function(t,n){if(t==="content"&&(typeof n!="string"||Z0.indexOf(n)===-1&&!J0.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=eg(t,n);return r!==""&&!eo(t)&&t.indexOf("-")!==-1&&Zs[t]===void 0&&(Zs[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(tg,"ms-").replace(ng,function(i,o){return o.toUpperCase()})+"?")),r}}var eu="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function wn(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(eu);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return nt={name:n.name,styles:n.styles,next:nt},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)nt={name:r.name,styles:r.styles,next:nt},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return rg(e,t,n)}case"function":{if(e!==void 0){var o=nt,a=n(e);return nt=o,wn(e,t,a)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var s=[],l=n.replace(Xs,function(c,d,f){var h="animation"+s.length;return s.push("const "+h+" = keyframes`"+f.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+h+"}"});s.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(s,["`"+l+"`"]).join(`
71
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Hs="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ec=/[A-Z]|^ms/g,Vo=/_EMO_([^_]+?)_([^]*?)_EMO_/g,an=function(t){return t.charCodeAt(1)===45},Qo=function(t){return t!=null&&typeof t!="boolean"},sn=Co(function(e){return an(e)?e:e.replace(ec,"-$&").toLowerCase()}),cr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vo,function(r,o,a){return We={name:o,styles:a,next:We},o})}return Xs[t]!==1&&!an(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var tc=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,rc=["normal","none","initial","inherit","unset"],nc=cr,oc=/^-ms-/,ac=/-(.)/g,Bo={};cr=function(t,n){if(t==="content"&&(typeof n!="string"||rc.indexOf(n)===-1&&!tc.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+n+"\"'`");var r=nc(t,n);return r!==""&&!an(t)&&t.indexOf("-")!==-1&&Bo[t]===void 0&&(Bo[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(oc,"ms-").replace(ac,function(o,a){return a.toUpperCase()})+"?")),r}}var qo="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function $t(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&n.toString()==="NO_COMPONENT_SELECTOR")throw new Error(qo);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return We={name:n.name,styles:n.styles,next:We},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)We={name:r.name,styles:r.styles,next:We},r=r.next;var o=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(o+=n.map),o}return ic(e,t,n)}case"function":{if(e!==void 0){var a=We,i=n(e);return We=a,$t(e,t,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var u=[],l=n.replace(Vo,function(f,p,h){var M="animation"+u.length;return u.push("const "+M+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+M+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+l+"`"]).join(`
132
72
  `)+`
133
73
 
134
74
  You should wrap it with \`css\` like this:
135
75
 
136
- `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function rg(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=wn(e,t,n[i])+";";else for(var o in n){var a=n[o];if(typeof a!="object")t!=null&&t[a]!==void 0?r+=o+"{"+t[a]+"}":Js(a)&&(r+=to(o)+":"+vr(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(eu);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Js(a[s])&&(r+=to(o)+":"+vr(o,a[s])+";");else{var l=wn(e,t,a);switch(o){case"animation":case"animationName":{r+=to(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(H0),r+=o+"{"+l+"}"}}}}return r}var tu=/label:\s*([^\s;\n{]+)\s*(;|$)/g,nu;process.env.NODE_ENV!=="production"&&(nu=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var nt,no=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";nt=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=wn(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(Hs),o+=a[0]);for(var s=1;s<t.length;s++)o+=wn(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(Hs),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(nu,function(f){return l=f,""})),tu.lastIndex=0;for(var u="",c;(c=tu.exec(o))!==null;)u+="-"+c[1];var d=G0(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:l,next:nt,toString:function(){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)."}}:{name:d,styles:o,next:nt}},ig=function(t){return t()},og=ue["useInsertionEffect"]?ue["useInsertionEffect"]:!1,ru=og||ig,ag={}.hasOwnProperty,ro=ue.createContext(typeof HTMLElement<"u"?Q0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(ro.displayName="EmotionCacheContext"),ro.Provider;var iu=function(t){return U.forwardRef(function(n,r){var i=U.useContext(ro);return t(n,i,r)})},br=ue.createContext({});process.env.NODE_ENV!=="production"&&(br.displayName="EmotionThemeContext");var ou="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",au="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",sg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Zi(n,r,i),ru(function(){return Ks(n,r,i)}),null},ug=iu(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[ou],o=[r],a="";typeof e.className=="string"?a=Gs(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=no(o,void 0,ue.useContext(br));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[au];l&&(s=no([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)ag.call(e,c)&&c!=="css"&&c!==ou&&(process.env.NODE_ENV==="production"||c!==au)&&(u[c]=e[c]);return u.ref=n,u.className=a,ue.createElement(ue.Fragment,null,ue.createElement(sg,{cache:t,serialized:s,isStringTag:typeof i=="string"}),ue.createElement(i,u))});process.env.NODE_ENV!=="production"&&(ug.displayName="EmotionCssPropInternal");var lg=d0,cg=function(t){return t!=="theme"},su=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?lg:cg},uu=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},lu=`You have illegal escape sequence in your template literal, most likely inside content's property value.
76
+ `+("css`"+l+"`"))}break}if(t==null)return n;var d=t[n];return d!==void 0?d:n}function ic(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=$t(e,t,n[o])+";";else for(var a in n){var i=n[a];if(typeof i!="object")t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Qo(i)&&(r+=sn(a)+":"+cr(a,i)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(qo);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var u=0;u<i.length;u++)Qo(i[u])&&(r+=sn(a)+":"+cr(a,i[u])+";");else{var l=$t(e,t,i);switch(a){case"animation":case"animationName":{r+=sn(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(Hs),r+=a+"{"+l+"}"}}}}return r}var Wo=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Go;process.env.NODE_ENV!=="production"&&(Go=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var We,cn=function(t,n,r){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";We=void 0;var i=t[0];i==null||i.raw===void 0?(o=!1,a+=$t(r,n,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(Uo),a+=i[0]);for(var u=1;u<t.length;u++)a+=$t(r,n,t[u]),o&&(process.env.NODE_ENV!=="production"&&i[u]===void 0&&console.error(Uo),a+=i[u]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(Go,function(h){return l=h,""})),Wo.lastIndex=0;for(var d="",f;(f=Wo.exec(a))!==null;)d+="-"+f[1];var p=Zs(a)+d;return process.env.NODE_ENV!=="production"?{name:p,styles:a,map:l,next:We,toString:function(){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)."}}:{name:p,styles:a,next:We}},sc=function(t){return t()},cc=J["useInsertionEffect"]?J["useInsertionEffect"]:!1,Ko=cc||sc,uc={}.hasOwnProperty,un=J.createContext(typeof HTMLElement<"u"?Ks({key:"css"}):null);process.env.NODE_ENV!=="production"&&(un.displayName="EmotionCacheContext"),un.Provider;var Jo=function(t){return S.forwardRef(function(n,r){var o=S.useContext(un);return t(n,o,r)})},ur=J.createContext({});process.env.NODE_ENV!=="production"&&(ur.displayName="EmotionThemeContext");var Zo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xo="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",lc=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return on(n,r,o),Ko(function(){return Fo(n,r,o)}),null},dc=Jo(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[Zo],a=[r],i="";typeof e.className=="string"?i=Yo(t.registered,a,e.className):e.className!=null&&(i=e.className+" ");var u=cn(a,void 0,J.useContext(ur));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var l=e[Xo];l&&(u=cn([u,"label:"+l+";"]))}i+=t.key+"-"+u.name;var d={};for(var f in e)uc.call(e,f)&&f!=="css"&&f!==Zo&&(process.env.NODE_ENV==="production"||f!==Xo)&&(d[f]=e[f]);return d.ref=n,d.className=i,J.createElement(J.Fragment,null,J.createElement(lc,{cache:t,serialized:u,isStringTag:typeof o=="string"}),J.createElement(o,d))});process.env.NODE_ENV!=="production"&&(dc.displayName="EmotionCssPropInternal");var fc=gs,pc=function(t){return t!=="theme"},Ho=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?fc:pc},ea=function(t,n,r){var o;if(n){var a=n.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(i){return t.__emotion_forwardProp(i)&&a(i)}:a}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},ta=`You have illegal escape sequence in your template literal, most likely inside content's property value.
137
77
  Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
138
78
  You can read more about this here:
139
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,fg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Zi(n,r,i),ru(function(){return Ks(n,r,i)}),null},dg=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
140
- You may have forgotten to import it.`);var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,a;n!==void 0&&(o=n.label,a=n.target);var s=uu(t,n,r),l=s||su(i),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&d.push("label:"+o+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{process.env.NODE_ENV!=="production"&&c[0][0]===void 0&&console.error(lu),d.push(c[0][0]);for(var f=c.length,h=1;h<f;h++)process.env.NODE_ENV!=="production"&&c[0][h]===void 0&&console.error(lu),d.push(c[h],c[0][h])}var b=iu(function(y,v,M){var D=u&&y.as||i,O="",_=[],m=y;if(y.theme==null){m={};for(var k in y)m[k]=y[k];m.theme=ue.useContext(br)}typeof y.className=="string"?O=Gs(v.registered,_,y.className):y.className!=null&&(O=y.className+" ");var C=no(d.concat(_),v.registered,m);O+=v.key+"-"+C.name,a!==void 0&&(O+=" "+a);var S=u&&s===void 0?su(D):l,I={};for(var E in y)u&&E==="as"||S(E)&&(I[E]=y[E]);return I.className=O,I.ref=M,ue.createElement(ue.Fragment,null,ue.createElement(fg,{cache:v,serialized:C,isStringTag:typeof D=="string"}),ue.createElement(D,I))});return b.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",b.defaultProps=t.defaultProps,b.__emotion_real=b,b.__emotion_base=i,b.__emotion_styles=d,b.__emotion_forwardProp=s,Object.defineProperty(b,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),b.withComponent=function(y,v){return e(y,ae({},n,v,{shouldForwardProp:uu(b,v,!0)})).apply(void 0,d)},b}},hg=["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"],io=dg.bind();hg.forEach(function(e){io[e]=io(e)});/**
79
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,hc=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return on(n,r,o),Ko(function(){return Fo(n,r,o)}),null},gc=function e(t,n){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
80
+ You may have forgotten to import it.`);var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,a,i;n!==void 0&&(a=n.label,i=n.target);var u=ea(t,n,r),l=u||Ho(o),d=!l("as");return function(){var f=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{process.env.NODE_ENV!=="production"&&f[0][0]===void 0&&console.error(ta),p.push(f[0][0]);for(var h=f.length,M=1;M<h;M++)process.env.NODE_ENV!=="production"&&f[0][M]===void 0&&console.error(ta),p.push(f[M],f[0][M])}var v=Jo(function(g,m,T){var C=d&&g.as||o,I="",A=[],b=g;if(g.theme==null){b={};for(var q in g)b[q]=g[q];b.theme=J.useContext(ur)}typeof g.className=="string"?I=Yo(m.registered,A,g.className):g.className!=null&&(I=g.className+" ");var _=cn(p.concat(A),m.registered,b);I+=m.key+"-"+_.name,i!==void 0&&(I+=" "+i);var we=d&&u===void 0?Ho(C):l,fe={};for(var U in g)d&&U==="as"||we(U)&&(fe[U]=g[U]);return fe.className=I,fe.ref=T,J.createElement(J.Fragment,null,J.createElement(hc,{cache:m,serialized:_,isStringTag:typeof C=="string"}),J.createElement(C,fe))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=p,v.__emotion_forwardProp=u,Object.defineProperty(v,"toString",{value:function(){return i===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+i}}),v.withComponent=function(g,m){return e(g,W({},n,m,{shouldForwardProp:ea(v,m,!0)})).apply(void 0,p)},v}},mc=["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"],ln=gc.bind();mc.forEach(function(e){ln[e]=ln(e)});/**
141
81
  * @mui/styled-engine v5.13.2
142
82
  *
143
83
  * @license MIT
144
84
  * This source code is licensed under the MIT license found in the
145
85
  * LICENSE file in the root directory of this source tree.
146
- */function pg(e,t){const n=io(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const i=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${i})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
147
- `)):r.some(o=>o===void 0)&&console.error(`MUI: the styled(${i})(...args) API requires all its args to be defined.`),n(...r)}:n}const gg=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mg=["values","unit","step"],yg=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)=>ae({},n,{[r.key]:r.val}),{})};function vg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=bt(e,mg),o=yg(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,h){const b=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?u(f,a[a.indexOf(f)+1]):s(f)}function d(f){const h=a.indexOf(f);return h===0?s(a[1]):h===a.length-1?l(a[h]):u(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return ae({keys:a,values:o,up:s,down:l,between:u,only:c,not:d,unit:n},i)}const bg={borderRadius:4},wt=process.env.NODE_ENV!=="production"?xe.oneOfType([xe.number,xe.string,xe.object,xe.array]):{};function Nn(e,t){return t?vt(e,t,{clone:!1}):e}const oo={xs:0,sm:600,md:900,lg:1200,xl:1536},cu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${oo[e]}px)`};function xt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||cu;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||cu;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||oo).indexOf(s)!==-1){const l=o.up(s);a[l]=n(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return n(t)}function xg(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Mg(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function xr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Mr(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=xr(e,n)||r,t&&(i=t(i,r,e)),i}function ve(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,u=xr(l,r)||{};return xt(a,s,d=>{let f=Mr(u,i,d);return d===f&&typeof d=="string"&&(f=Mr(u,i,`${t}${d==="default"?"":lt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:wt}:{},o.filterProps=[t],o}function _g(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Tg={m:"margin",p:"padding"},wg={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},fu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ng=_g(e=>{if(e.length>2)if(fu[e])e=fu[e];else return[e];const[t,n]=e.split(""),r=Tg[t],i=wg[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),_r=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Tr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Eg=[..._r,...Tr];function En(e,t,n,r){var i;const o=(i=xr(e,t,!1))!=null?i:n;return typeof o=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),o*a):Array.isArray(o)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
86
+ */function yc(e,t){const n=ln(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(`
87
+ `)):r.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const vc=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},bc=["values","unit","step"],Mc=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)=>W({},n,{[r.key]:r.val}),{})};function xc(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=nt(e,bc),a=Mc(t),i=Object.keys(a);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function d(h,M){const v=i.indexOf(M);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(v!==-1&&typeof t[i[v]]=="number"?t[i[v]]:M)-r/100}${n})`}function f(h){return i.indexOf(h)+1<i.length?d(h,i[i.indexOf(h)+1]):u(h)}function p(h){const M=i.indexOf(h);return M===0?u(i[1]):M===i.length-1?l(i[M]):d(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return W({keys:i,values:a,up:u,down:l,between:d,only:f,not:p,unit:n},o)}const Tc={borderRadius:4},st=process.env.NODE_ENV!=="production"?ce.oneOfType([ce.number,ce.string,ce.object,ce.array]):{};function Pt(e,t){return t?rt(e,t,{clone:!1}):e}const dn={xs:0,sm:600,md:900,lg:1200,xl:1536},ra={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${dn[e]}px)`};function ot(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||ra;return t.reduce((i,u,l)=>(i[a.up(a.keys[l])]=n(t[l]),i),{})}if(typeof t=="object"){const a=r.breakpoints||ra;return Object.keys(t).reduce((i,u)=>{if(Object.keys(a.values||dn).indexOf(u)!==-1){const l=a.up(u);i[l]=n(t[u],u)}else{const l=u;i[l]=t[l]}return i},{})}return n(t)}function jc(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const a=e.up(o);return r[a]={},r},{}))||{}}function Dc(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function lr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function dr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=lr(e,n)||r,t&&(o=t(o,r,e)),o}function ie(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,a=i=>{if(i[t]==null)return null;const u=i[t],l=i.theme,d=lr(l,r)||{};return ot(i,u,p=>{let h=dr(d,o,p);return p===h&&typeof p=="string"&&(h=dr(d,o,`${t}${p==="default"?"":Je(p)}`,p)),n===!1?h:{[n]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:st}:{},a.filterProps=[t],a}function Nc(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ec={m:"margin",p:"padding"},Oc={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},na={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Cc=Nc(e=>{if(e.length>2)if(na[e])e=na[e];else return[e];const[t,n]=e.split(""),r=Ec[t],o=Oc[n]||"";return Array.isArray(o)?o.map(a=>r+a):[r+o]}),fr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],pr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Ic=[...fr,...pr];function Yt(e,t,n,r){var o;const a=(o=lr(e,t,!1))!=null?o:n;return typeof a=="number"?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}.`),a*i):Array.isArray(a)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>a.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${i} > ${a.length-1}, you need to add the missing values.`].join(`
148
88
  `)):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(`
149
- `))),o[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(`
150
- `)),()=>{})}function du(e){return En(e,"spacing",8,"spacing")}function Dn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function Dg(e,t){return n=>e.reduce((r,i)=>(r[i]=Dn(t,n),r),{})}function Og(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Ng(n),o=Dg(i,r),a=e[n];return xt(e,a,o)}function hu(e,t){const n=du(e.theme);return Object.keys(e).map(r=>Og(e,t,r,n)).reduce(Nn,{})}function we(e){return hu(e,_r)}we.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=wt,e),{}):{},we.filterProps=_r;function Ne(e){return hu(e,Tr)}Ne.propTypes=process.env.NODE_ENV!=="production"?Tr.reduce((e,t)=>(e[t]=wt,e),{}):{},Ne.filterProps=Tr,process.env.NODE_ENV!=="production"&&Eg.reduce((e,t)=>(e[t]=wt,e),{});function Cg(e=8){if(e.mui)return e;const t=du({spacing:e}),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(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function wr(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Nn(i,t[o](r)):i,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,i)=>Object.assign(r,i.propTypes),{}):{},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function dt(e){return typeof e!="number"?e:`${e}px solid`}const jg=ve({prop:"border",themeKey:"borders",transform:dt}),Ag=ve({prop:"borderTop",themeKey:"borders",transform:dt}),Sg=ve({prop:"borderRight",themeKey:"borders",transform:dt}),Ig=ve({prop:"borderBottom",themeKey:"borders",transform:dt}),kg=ve({prop:"borderLeft",themeKey:"borders",transform:dt}),zg=ve({prop:"borderColor",themeKey:"palette"}),Rg=ve({prop:"borderTopColor",themeKey:"palette"}),$g=ve({prop:"borderRightColor",themeKey:"palette"}),Lg=ve({prop:"borderBottomColor",themeKey:"palette"}),Pg=ve({prop:"borderLeftColor",themeKey:"palette"}),Nr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=En(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Dn(t,r)});return xt(e,e.borderRadius,n)}return null};Nr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:wt}:{},Nr.filterProps=["borderRadius"],wr(jg,Ag,Sg,Ig,kg,zg,Rg,$g,Lg,Pg,Nr);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=En(e.theme,"spacing",8,"gap"),n=r=>({gap:Dn(t,r)});return xt(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:wt}:{},Er.filterProps=["gap"];const Dr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=En(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Dn(t,r)});return xt(e,e.columnGap,n)}return null};Dr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:wt}:{},Dr.filterProps=["columnGap"];const Or=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=En(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Dn(t,r)});return xt(e,e.rowGap,n)}return null};Or.propTypes=process.env.NODE_ENV!=="production"?{rowGap:wt}:{},Or.filterProps=["rowGap"];const Fg=ve({prop:"gridColumn"}),Ug=ve({prop:"gridRow"}),Yg=ve({prop:"gridAutoFlow"}),Vg=ve({prop:"gridAutoColumns"}),Bg=ve({prop:"gridAutoRows"}),qg=ve({prop:"gridTemplateColumns"}),Qg=ve({prop:"gridTemplateRows"}),Wg=ve({prop:"gridTemplateAreas"}),Gg=ve({prop:"gridArea"});wr(Er,Dr,Or,Fg,Ug,Yg,Vg,Bg,qg,Qg,Wg,Gg);function Bt(e,t){return t==="grey"?t:e}const Kg=ve({prop:"color",themeKey:"palette",transform:Bt}),Hg=ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Bt}),Xg=ve({prop:"backgroundColor",themeKey:"palette",transform:Bt});wr(Kg,Hg,Xg);function Xe(e){return e<=1&&e!==0?`${e*100}%`:e}const Jg=ve({prop:"width",transform:Xe}),ao=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||oo[n]||Xe(n)}};return xt(e,e.maxWidth,t)}return null};ao.filterProps=["maxWidth"];const Zg=ve({prop:"minWidth",transform:Xe}),em=ve({prop:"height",transform:Xe}),tm=ve({prop:"maxHeight",transform:Xe}),nm=ve({prop:"minHeight",transform:Xe});ve({prop:"size",cssProperty:"width",transform:Xe}),ve({prop:"size",cssProperty:"height",transform:Xe});const rm=ve({prop:"boxSizing"});wr(Jg,ao,Zg,em,tm,nm,rm);const so={border:{themeKey:"borders",transform:dt},borderTop:{themeKey:"borders",transform:dt},borderRight:{themeKey:"borders",transform:dt},borderBottom:{themeKey:"borders",transform:dt},borderLeft:{themeKey:"borders",transform:dt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Nr},color:{themeKey:"palette",transform:Bt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Bt},backgroundColor:{themeKey:"palette",transform:Bt},p:{style:Ne},pt:{style:Ne},pr:{style:Ne},pb:{style:Ne},pl:{style:Ne},px:{style:Ne},py:{style:Ne},padding:{style:Ne},paddingTop:{style:Ne},paddingRight:{style:Ne},paddingBottom:{style:Ne},paddingLeft:{style:Ne},paddingX:{style:Ne},paddingY:{style:Ne},paddingInline:{style:Ne},paddingInlineStart:{style:Ne},paddingInlineEnd:{style:Ne},paddingBlock:{style:Ne},paddingBlockStart:{style:Ne},paddingBlockEnd:{style:Ne},m:{style:we},mt:{style:we},mr:{style:we},mb:{style:we},ml:{style:we},mx:{style:we},my:{style:we},margin:{style:we},marginTop:{style:we},marginRight:{style:we},marginBottom:{style:we},marginLeft:{style:we},marginX:{style:we},marginY:{style:we},marginInline:{style:we},marginInlineStart:{style:we},marginInlineEnd:{style:we},marginBlock:{style:we},marginBlockStart:{style:we},marginBlockEnd:{style:we},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:Er},rowGap:{style:Or},columnGap:{style:Dr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Xe},maxWidth:{style:ao},minWidth:{transform:Xe},height:{transform:Xe},maxHeight:{transform:Xe},minHeight:{transform:Xe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function im(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function om(e,t){return typeof e=="function"?e(t):e}function am(){function e(n,r,i,o){const a={[n]:r,theme:i},s=o[n];if(!s)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=s;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=xr(i,u)||{};return d?d(a):xt(a,r,b=>{let y=Mr(f,c,b);return b===y&&typeof b=="string"&&(y=Mr(f,c,`${n}${b==="default"?"":lt(b)}`,b)),l===!1?y:{[l]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:so;function s(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const c=xg(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const b=om(u[h],o);if(b!=null)if(typeof b=="object")if(a[h])f=Nn(f,e(h,b,o,a));else{const y=xt({theme:o},b,v=>({[h]:v}));im(y,b)?f[h]=t({sx:b,theme:o}):f=Nn(f,y)}else f=Nn(f,e(h,b,o,a))}),Mg(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const pu=am();pu.filterProps=["sx"];const uo=pu,sm=["breakpoints","palette","spacing","shape"];function lo(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=bt(e,sm),s=vg(n),l=Cg(i);let u=vt({breakpoints:s,direction:"ltr",components:{},palette:ae({mode:"light"},r),spacing:l,shape:ae({},bg,o)},a);return u=t.reduce((c,d)=>vt(c,d),u),u.unstable_sxConfig=ae({},so,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return uo({sx:d,theme:this})},u}function um(e){return Object.keys(e).length===0}function lm(e=null){const t=ue.useContext(br);return!t||um(t)?e:t}const cm=lo();function fm(e=cm){return lm(e)}const dm=["variant"];function gu(e){return e.length===0}function mu(e){const{variant:t}=e,n=bt(e,dm);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=gu(r)?e[i]:lt(e[i]):r+=`${gu(r)?i:lt(i)}${lt(e[i].toString())}`}),r}const hm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function pm(e){return Object.keys(e).length===0}function gm(e){return typeof e=="string"&&e.charCodeAt(0)>96}const mm=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,ym=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=mu(i.props);r[o]=i.style}),r},vm=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,a=[],s=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{o[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&a.push(t[mu(l.props)])}),a};function Cr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bm=lo(),xm=e=>e.charAt(0).toLowerCase()+e.slice(1);function On({defaultTheme:e,theme:t,themeId:n}){return pm(t)?e:t[n]||t}function Mm(e={}){const{themeId:t,defaultTheme:n=bm,rootShouldForwardProp:r=Cr,slotShouldForwardProp:i=Cr}=e,o=a=>uo(ae({},a,{theme:On(ae({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{gg(a,_=>_.filter(m=>!(m!=null&&m.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=bt(s,hm),b=c!==void 0?c:u&&u!=="Root"||!1,y=d||!1;let v;process.env.NODE_ENV!=="production"&&l&&(v=`${l}-${xm(u||"Root")}`);let M=Cr;u==="Root"?M=r:u?M=i:gm(a)&&(M=void 0);const D=pg(a,ae({shouldForwardProp:M,label:v},h)),O=(_,...m)=>{const k=m?m.map(E=>typeof E=="function"&&E.__emotion_real!==E?$=>E(ae({},$,{theme:On(ae({},$,{defaultTheme:n,themeId:t}))})):E):[];let C=_;l&&f&&k.push(E=>{const $=On(ae({},E,{defaultTheme:n,themeId:t})),X=mm(l,$);if(X){const H={};return Object.entries(X).forEach(([x,z])=>{H[x]=typeof z=="function"?z(ae({},E,{theme:$})):z}),f(E,H)}return null}),l&&!b&&k.push(E=>{const $=On(ae({},E,{defaultTheme:n,themeId:t}));return vm(E,ym(l,$),$,l)}),y||k.push(o);const S=k.length-m.length;if(Array.isArray(_)&&S>0){const E=new Array(S).fill("");C=[..._,...E],C.raw=[..._.raw,...E]}else typeof _=="function"&&_.__emotion_real!==_&&(C=E=>_(ae({},E,{theme:On(ae({},E,{defaultTheme:n,themeId:t}))})));const I=D(C,...k);if(process.env.NODE_ENV!=="production"){let E;l&&(E=`${l}${u||""}`),E===void 0&&(E=`Styled(${Up(a)})`),I.displayName=E}return a.muiName&&(I.muiName=a.muiName),I};return D.withConfig&&(O.withConfig=D.withConfig),O}}function _m(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ss(t.components[n].defaultProps,r)}function Tm({props:e,name:t,defaultTheme:n,themeId:r}){let i=fm(n);return r&&(i=i[r]||i),_m({theme:i,name:t,props:e})}function yu(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}].`),Math.min(Math.max(t,e),n)}function wm(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)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function qt(e){if(e.type)return e;if(e.charAt(0)==="#")return qt(wm(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
151
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Ft(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${i}\` color space.
152
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Ft(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function co(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Nm(e){e=qt(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(u,c=(u+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),co({type:s,values:l})}function vu(e){e=qt(e);let t=e.type==="hsl"||e.type==="hsla"?qt(Nm(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 bu(e,t){const n=vu(e),r=vu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Em(e,t){if(e=qt(e),t=yu(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return co(e)}function Dm(e,t){if(e=qt(e),t=yu(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return co(e)}function Om(e,t){return ae({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Cn={black:"#000",white:"#fff"},Cm={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"},Qt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Wt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},jn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Gt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Kt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Ht={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},jm=["mode","contrastThreshold","tonalOffset"],xu={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:Cn.white,default:Cn.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}},fo={text:{primary:Cn.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:Cn.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}};function Mu(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Dm(e.main,i):t==="dark"&&(e.dark=Em(e.main,o)))}function Am(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[700],light:Gt[400],dark:Gt[800]}}function Sm(e="light"){return e==="dark"?{main:Qt[200],light:Qt[50],dark:Qt[400]}:{main:Qt[500],light:Qt[300],dark:Qt[700]}}function Im(e="light"){return e==="dark"?{main:Wt[500],light:Wt[300],dark:Wt[700]}:{main:Wt[700],light:Wt[400],dark:Wt[800]}}function km(e="light"){return e==="dark"?{main:Kt[400],light:Kt[300],dark:Kt[700]}:{main:Kt[700],light:Kt[500],dark:Kt[900]}}function zm(e="light"){return e==="dark"?{main:Ht[400],light:Ht[300],dark:Ht[700]}:{main:Ht[800],light:Ht[500],dark:Ht[900]}}function Rm(e="light"){return e==="dark"?{main:jn[400],light:jn[300],dark:jn[700]}:{main:"#ed6c02",light:jn[500],dark:jn[900]}}function $m(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=bt(e,jm),o=e.primary||Am(t),a=e.secondary||Sm(t),s=e.error||Im(t),l=e.info||km(t),u=e.success||zm(t),c=e.warning||Rm(t);function d(y){const v=bu(y,fo.text.primary)>=n?fo.text.primary:xu.text.primary;if(process.env.NODE_ENV!=="production"){const M=bu(y,v);M<3&&console.error([`MUI: The contrast ratio of ${M}:1 for ${v} on ${y}`,"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(`
153
- `))}return v}const f=({color:y,name:v,mainShade:M=500,lightShade:D=300,darkShade:O=700})=>{if(y=ae({},y),!y.main&&y[M]&&(y.main=y[M]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
154
- The color object needs to have a \`main\` property or a \`${M}\` property.`:Ft(11,v?` (${v})`:"",M));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
155
- \`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
89
+ `))),a[i]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
90
+ `)),()=>{})}function oa(e){return Yt(e,"spacing",8,"spacing")}function Ft(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function wc(e,t){return n=>e.reduce((r,o)=>(r[o]=Ft(t,n),r),{})}function Ac(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Cc(n),a=wc(o,r),i=e[n];return ot(e,i,a)}function aa(e,t){const n=oa(e.theme);return Object.keys(e).map(r=>Ac(e,t,r,n)).reduce(Pt,{})}function me(e){return aa(e,fr)}me.propTypes=process.env.NODE_ENV!=="production"?fr.reduce((e,t)=>(e[t]=st,e),{}):{},me.filterProps=fr;function ye(e){return aa(e,pr)}ye.propTypes=process.env.NODE_ENV!=="production"?pr.reduce((e,t)=>(e[t]=st,e),{}):{},ye.filterProps=pr,process.env.NODE_ENV!=="production"&&Ic.reduce((e,t)=>(e[t]=st,e),{});function Sc(e=8){if(e.mui)return e;const t=oa({spacing:e}),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(a=>{const i=t(a);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function hr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(a=>{r[a]=o}),r),{}),n=r=>Object.keys(r).reduce((o,a)=>t[a]?Pt(o,t[a](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 He(e){return typeof e!="number"?e:`${e}px solid`}const kc=ie({prop:"border",themeKey:"borders",transform:He}),zc=ie({prop:"borderTop",themeKey:"borders",transform:He}),_c=ie({prop:"borderRight",themeKey:"borders",transform:He}),Rc=ie({prop:"borderBottom",themeKey:"borders",transform:He}),Lc=ie({prop:"borderLeft",themeKey:"borders",transform:He}),$c=ie({prop:"borderColor",themeKey:"palette"}),Pc=ie({prop:"borderTopColor",themeKey:"palette"}),Yc=ie({prop:"borderRightColor",themeKey:"palette"}),Fc=ie({prop:"borderBottomColor",themeKey:"palette"}),Uc=ie({prop:"borderLeftColor",themeKey:"palette"}),gr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Yt(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Ft(t,r)});return ot(e,e.borderRadius,n)}return null};gr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:st}:{},gr.filterProps=["borderRadius"],hr(kc,zc,_c,Rc,Lc,$c,Pc,Yc,Fc,Uc,gr);const mr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Yt(e.theme,"spacing",8,"gap"),n=r=>({gap:Ft(t,r)});return ot(e,e.gap,n)}return null};mr.propTypes=process.env.NODE_ENV!=="production"?{gap:st}:{},mr.filterProps=["gap"];const yr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Yt(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Ft(t,r)});return ot(e,e.columnGap,n)}return null};yr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:st}:{},yr.filterProps=["columnGap"];const vr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Yt(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Ft(t,r)});return ot(e,e.rowGap,n)}return null};vr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:st}:{},vr.filterProps=["rowGap"];const Vc=ie({prop:"gridColumn"}),Qc=ie({prop:"gridRow"}),Bc=ie({prop:"gridAutoFlow"}),qc=ie({prop:"gridAutoColumns"}),Wc=ie({prop:"gridAutoRows"}),Gc=ie({prop:"gridTemplateColumns"}),Kc=ie({prop:"gridTemplateRows"}),Jc=ie({prop:"gridTemplateAreas"}),Zc=ie({prop:"gridArea"});hr(mr,yr,vr,Vc,Qc,Bc,qc,Wc,Gc,Kc,Jc,Zc);function vt(e,t){return t==="grey"?t:e}const Xc=ie({prop:"color",themeKey:"palette",transform:vt}),Hc=ie({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:vt}),eu=ie({prop:"backgroundColor",themeKey:"palette",transform:vt});hr(Xc,Hc,eu);function Qe(e){return e<=1&&e!==0?`${e*100}%`:e}const tu=ie({prop:"width",transform:Qe}),fn=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r;return{maxWidth:((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||dn[n]||Qe(n)}};return ot(e,e.maxWidth,t)}return null};fn.filterProps=["maxWidth"];const ru=ie({prop:"minWidth",transform:Qe}),nu=ie({prop:"height",transform:Qe}),ou=ie({prop:"maxHeight",transform:Qe}),au=ie({prop:"minHeight",transform:Qe});ie({prop:"size",cssProperty:"width",transform:Qe}),ie({prop:"size",cssProperty:"height",transform:Qe});const iu=ie({prop:"boxSizing"});hr(tu,fn,ru,nu,ou,au,iu);const pn={border:{themeKey:"borders",transform:He},borderTop:{themeKey:"borders",transform:He},borderRight:{themeKey:"borders",transform:He},borderBottom:{themeKey:"borders",transform:He},borderLeft:{themeKey:"borders",transform:He},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gr},color:{themeKey:"palette",transform:vt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:vt},backgroundColor:{themeKey:"palette",transform:vt},p:{style:ye},pt:{style:ye},pr:{style:ye},pb:{style:ye},pl:{style:ye},px:{style:ye},py:{style:ye},padding:{style:ye},paddingTop:{style:ye},paddingRight:{style:ye},paddingBottom:{style:ye},paddingLeft:{style:ye},paddingX:{style:ye},paddingY:{style:ye},paddingInline:{style:ye},paddingInlineStart:{style:ye},paddingInlineEnd:{style:ye},paddingBlock:{style:ye},paddingBlockStart:{style:ye},paddingBlockEnd:{style:ye},m:{style:me},mt:{style:me},mr:{style:me},mb:{style:me},ml:{style:me},mx:{style:me},my:{style:me},margin:{style:me},marginTop:{style:me},marginRight:{style:me},marginBottom:{style:me},marginLeft:{style:me},marginX:{style:me},marginY:{style:me},marginInline:{style:me},marginInlineStart:{style:me},marginInlineEnd:{style:me},marginBlock:{style:me},marginBlockStart:{style:me},marginBlockEnd:{style:me},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:mr},rowGap:{style:vr},columnGap:{style:yr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Qe},maxWidth:{style:fn},minWidth:{transform:Qe},height:{transform:Qe},maxHeight:{transform:Qe},minHeight:{transform:Qe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function su(...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 cu(e,t){return typeof e=="function"?e(t):e}function uu(){function e(n,r,o,a){const i={[n]:r,theme:o},u=a[n];if(!u)return{[n]:r};const{cssProperty:l=n,themeKey:d,transform:f,style:p}=u;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const h=lr(o,d)||{};return p?p(i):ot(i,r,v=>{let g=dr(h,f,v);return v===g&&typeof v=="string"&&(g=dr(h,f,`${n}${v==="default"?"":Je(v)}`,v)),l===!1?g:{[l]:g}})}function t(n){var r;const{sx:o,theme:a={}}=n||{};if(!o)return null;const i=(r=a.unstable_sxConfig)!=null?r:pn;function u(l){let d=l;if(typeof l=="function")d=l(a);else if(typeof l!="object")return l;if(!d)return null;const f=jc(a.breakpoints),p=Object.keys(f);let h=f;return Object.keys(d).forEach(M=>{const v=cu(d[M],a);if(v!=null)if(typeof v=="object")if(i[M])h=Pt(h,e(M,v,a,i));else{const g=ot({theme:a},v,m=>({[M]:m}));su(g,v)?h[M]=t({sx:v,theme:a}):h=Pt(h,g)}else h=Pt(h,e(M,v,a,i))}),Dc(p,h)}return Array.isArray(o)?o.map(u):u(o)}return t}const ia=uu();ia.filterProps=["sx"];const hn=ia,lu=["breakpoints","palette","spacing","shape"];function gn(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:a={}}=e,i=nt(e,lu),u=xc(n),l=Sc(o);let d=rt({breakpoints:u,direction:"ltr",components:{},palette:W({mode:"light"},r),spacing:l,shape:W({},Tc,a)},i);return d=t.reduce((f,p)=>rt(f,p),d),d.unstable_sxConfig=W({},pn,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(p){return hn({sx:p,theme:this})},d}function du(e){return Object.keys(e).length===0}function fu(e=null){const t=J.useContext(ur);return!t||du(t)?e:t}const pu=gn();function hu(e=pu){return fu(e)}const gu=["variant"];function sa(e){return e.length===0}function ca(e){const{variant:t}=e,n=nt(e,gu);let r=t||"";return Object.keys(n).sort().forEach(o=>{o==="color"?r+=sa(r)?e[o]:Je(e[o]):r+=`${sa(r)?o:Je(o)}${Je(e[o].toString())}`}),r}const mu=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function yu(e){return Object.keys(e).length===0}function vu(e){return typeof e=="string"&&e.charCodeAt(0)>96}const bu=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,Mu=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(o=>{const a=ca(o.props);r[a]=o.style}),r},xu=(e,t,n,r)=>{var o;const{ownerState:a={}}=e,i=[],u=n==null||(o=n.components)==null||(o=o[r])==null?void 0:o.variants;return u&&u.forEach(l=>{let d=!0;Object.keys(l.props).forEach(f=>{a[f]!==l.props[f]&&e[f]!==l.props[f]&&(d=!1)}),d&&i.push(t[ca(l.props)])}),i};function br(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tu=gn(),ju=e=>e.charAt(0).toLowerCase()+e.slice(1);function Ut({defaultTheme:e,theme:t,themeId:n}){return yu(t)?e:t[n]||t}function Du(e={}){const{themeId:t,defaultTheme:n=Tu,rootShouldForwardProp:r=br,slotShouldForwardProp:o=br}=e,a=i=>hn(W({},i,{theme:Ut(W({},i,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(i,u={})=>{vc(i,A=>A.filter(b=>!(b!=null&&b.__mui_systemSx)));const{name:l,slot:d,skipVariantsResolver:f,skipSx:p,overridesResolver:h}=u,M=nt(u,mu),v=f!==void 0?f:d&&d!=="Root"||!1,g=p||!1;let m;process.env.NODE_ENV!=="production"&&l&&(m=`${l}-${ju(d||"Root")}`);let T=br;d==="Root"?T=r:d?T=o:vu(i)&&(T=void 0);const C=yc(i,W({shouldForwardProp:T,label:m},M)),I=(A,...b)=>{const q=b?b.map(U=>typeof U=="function"&&U.__emotion_real!==U?pe=>U(W({},pe,{theme:Ut(W({},pe,{defaultTheme:n,themeId:t}))})):U):[];let _=A;l&&h&&q.push(U=>{const pe=Ut(W({},U,{defaultTheme:n,themeId:t})),ke=bu(l,pe);if(ke){const he={};return Object.entries(ke).forEach(([ge,be])=>{he[ge]=typeof be=="function"?be(W({},U,{theme:pe})):be}),h(U,he)}return null}),l&&!v&&q.push(U=>{const pe=Ut(W({},U,{defaultTheme:n,themeId:t}));return xu(U,Mu(l,pe),pe,l)}),g||q.push(a);const we=q.length-b.length;if(Array.isArray(A)&&we>0){const U=new Array(we).fill("");_=[...A,...U],_.raw=[...A.raw,...U]}else typeof A=="function"&&A.__emotion_real!==A&&(_=U=>A(W({},U,{theme:Ut(W({},U,{defaultTheme:n,themeId:t}))})));const fe=C(_,...q);if(process.env.NODE_ENV!=="production"){let U;l&&(U=`${l}${d||""}`),U===void 0&&(U=`Styled(${Qi(i)})`),fe.displayName=U}return i.muiName&&(fe.muiName=i.muiName),fe};return C.withConfig&&(I.withConfig=C.withConfig),I}}function Nu(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Do(t.components[n].defaultProps,r)}function Eu({props:e,name:t,defaultTheme:n,themeId:r}){let o=hu(n);return r&&(o=o[r]||o),Nu({theme:o,name:t,props:e})}function ua(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}].`),Math.min(Math.max(t,e),n)}function Ou(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)),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 bt(e){if(e.type)return e;if(e.charAt(0)==="#")return bt(Ou(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
91
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:ht(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"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
92
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:ht(10,o))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:o}}function mn(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Cu(e){e=bt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,a=r*Math.min(o,1-o),i=(d,f=(d+n/30)%12)=>o-a*Math.max(Math.min(f-3,9-f,1),-1);let u="rgb";const l=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(u+="a",l.push(t[3])),mn({type:u,values:l})}function la(e){e=bt(e);let t=e.type==="hsl"||e.type==="hsla"?bt(Cu(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 da(e,t){const n=la(e),r=la(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Iu(e,t){if(e=bt(e),t=ua(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return mn(e)}function wu(e,t){if(e=bt(e),t=ua(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return mn(e)}function Au(e,t){return W({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Vt={black:"#000",white:"#fff"},Su={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"},Mt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},xt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Qt={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Tt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},jt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Dt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},ku=["mode","contrastThreshold","tonalOffset"],fa={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:Vt.white,default:Vt.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}},yn={text:{primary:Vt.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:Vt.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}};function pa(e,t,n,r){const o=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wu(e.main,o):t==="dark"&&(e.dark=Iu(e.main,a)))}function zu(e="light"){return e==="dark"?{main:Tt[200],light:Tt[50],dark:Tt[400]}:{main:Tt[700],light:Tt[400],dark:Tt[800]}}function _u(e="light"){return e==="dark"?{main:Mt[200],light:Mt[50],dark:Mt[400]}:{main:Mt[500],light:Mt[300],dark:Mt[700]}}function Ru(e="light"){return e==="dark"?{main:xt[500],light:xt[300],dark:xt[700]}:{main:xt[700],light:xt[400],dark:xt[800]}}function Lu(e="light"){return e==="dark"?{main:jt[400],light:jt[300],dark:jt[700]}:{main:jt[700],light:jt[500],dark:jt[900]}}function $u(e="light"){return e==="dark"?{main:Dt[400],light:Dt[300],dark:Dt[700]}:{main:Dt[800],light:Dt[500],dark:Dt[900]}}function Pu(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:"#ed6c02",light:Qt[500],dark:Qt[900]}}function Yu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=nt(e,ku),a=e.primary||zu(t),i=e.secondary||_u(t),u=e.error||Ru(t),l=e.info||Lu(t),d=e.success||$u(t),f=e.warning||Pu(t);function p(g){const m=da(g,yn.text.primary)>=n?yn.text.primary:fa.text.primary;if(process.env.NODE_ENV!=="production"){const T=da(g,m);T<3&&console.error([`MUI: The contrast ratio of ${T}:1 for ${m} on ${g}`,"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(`
93
+ `))}return m}const h=({color:g,name:m,mainShade:T=500,lightShade:C=300,darkShade:I=700})=>{if(g=W({},g),!g.main&&g[T]&&(g.main=g[T]),!g.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
94
+ The color object needs to have a \`main\` property or a \`${T}\` property.`:ht(11,m?` (${m})`:"",T));if(typeof g.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
95
+ \`color.main\` should be a string, but \`${JSON.stringify(g.main)}\` was provided instead.
156
96
 
157
97
  Did you intend to use one of the following approaches?
158
98
 
@@ -164,7 +104,7 @@ const theme1 = createTheme({ palette: {
164
104
 
165
105
  const theme2 = createTheme({ palette: {
166
106
  primary: { main: green[500] },
167
- } });`:Ft(12,v?` (${v})`:"",JSON.stringify(y.main)));return Mu(y,"light",D,r),Mu(y,"dark",O,r),y.contrastText||(y.contrastText=d(y.main)),y},h={dark:fo,light:xu};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),vt(ae({common:ae({},Cn),mode:t,primary:f({color:o,name:"primary"}),secondary:f({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:s,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Cm,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const Lm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Pm(e){return Math.round(e*1e5)/1e5}const _u={textTransform:"uppercase"},Tu='"Roboto", "Helvetica", "Arial", sans-serif';function Fm(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Tu,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=bt(n,Lm);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,b=d||(M=>`${M/u*h}rem`),y=(M,D,O,_,m)=>ae({fontFamily:r,fontWeight:M,fontSize:b(D),lineHeight:O},r===Tu?{letterSpacing:`${Pm(_/D)}em`}:{},m,c),v={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(a,48,1.167,0),h4:y(a,34,1.235,.25),h5:y(a,24,1.334,0),h6:y(s,20,1.6,.15),subtitle1:y(a,16,1.75,.15),subtitle2:y(s,14,1.57,.1),body1:y(a,16,1.5,.15),body2:y(a,14,1.43,.15),button:y(s,14,1.75,.4,_u),caption:y(a,12,1.66,.4),overline:y(a,12,2.66,1,_u),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return vt(ae({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}const Um=.2,Ym=.14,Vm=.12;function _e(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Um})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ym})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Vm})`].join(",")}const Bm=["none",_e(0,2,1,-1,0,1,1,0,0,1,3,0),_e(0,3,1,-2,0,2,2,0,0,1,5,0),_e(0,3,3,-2,0,3,4,0,0,1,8,0),_e(0,2,4,-1,0,4,5,0,0,1,10,0),_e(0,3,5,-1,0,5,8,0,0,1,14,0),_e(0,3,5,-1,0,6,10,0,0,1,18,0),_e(0,4,5,-2,0,7,10,1,0,2,16,1),_e(0,5,5,-3,0,8,10,1,0,3,14,2),_e(0,5,6,-3,0,9,12,1,0,3,16,2),_e(0,6,6,-3,0,10,14,1,0,4,18,3),_e(0,6,7,-4,0,11,15,1,0,4,20,3),_e(0,7,8,-4,0,12,17,2,0,5,22,4),_e(0,7,8,-4,0,13,19,2,0,5,24,4),_e(0,7,9,-4,0,14,21,2,0,5,26,4),_e(0,8,9,-5,0,15,22,2,0,6,28,5),_e(0,8,10,-5,0,16,24,2,0,6,30,5),_e(0,8,11,-5,0,17,26,2,0,6,32,5),_e(0,9,11,-5,0,18,28,2,0,7,34,6),_e(0,9,12,-6,0,19,29,2,0,7,36,6),_e(0,10,13,-6,0,20,31,3,0,8,38,7),_e(0,10,13,-6,0,21,33,3,0,8,40,7),_e(0,10,14,-6,0,22,35,3,0,8,42,7),_e(0,11,14,-7,0,23,36,3,0,9,44,8),_e(0,11,15,-7,0,24,38,3,0,9,46,8)],qm=["duration","easing","delay"],Qm={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)"},Wm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function wu(e){return`${Math.round(e)}ms`}function Gm(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Km(e){const t=ae({},Qm,e.easing),n=ae({},Wm,e.duration);return ae({getAutoHeightDuration:Gm,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o,u=bt(o,qm);if(process.env.NODE_ENV!=="production"){const c=f=>typeof f=="string",d=f=>!isNaN(parseFloat(f));!c(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!c(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),c(s)||console.error('MUI: Argument "easing" must be a string.'),!d(l)&&!c(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="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(`
168
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:wu(a)} ${s} ${typeof l=="string"?l:wu(l)}`).join(",")}},e,{easing:t,duration:n})}const Hm={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Xm=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Jm(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=bt(e,Xm);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":Ft(18));const s=$m(r),l=lo(e);let u=vt(l,{mixins:Om(l.breakpoints,n),palette:s,shadows:Bm.slice(),typography:Fm(s,o),transitions:Km(i),zIndex:ae({},Hm)});if(u=vt(u,a),u=t.reduce((c,d)=>vt(c,d),u),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,h)=>{let b;for(b in f){const y=f[b];if(c.indexOf(b)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const v=Qi("",b);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
169
- `))}f[b]={}}}};Object.keys(u.components).forEach(f=>{const h=u.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return u.unstable_sxConfig=ae({},so,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return uo({sx:d,theme:this})},u}const Nu=Jm(),Eu="$$material";function Zm({props:e,name:t}){return Tm({props:e,name:t,defaultTheme:Nu,themeId:Eu})}const ey=Mm({themeId:Eu,defaultTheme:Nu,rootShouldForwardProp:e=>Cr(e)&&e!=="classes"});function ty(e){return Qi("MuiSvgIcon",e)}l0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ny=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ry=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${lt(t)}`,`fontSize${lt(n)}`]};return s0(i,ty,r)},iy=ey("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)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,h,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(d=(f=(e.vars||e).palette)==null||(f=f[t.color])==null?void 0:f.main)!=null?d:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),ho=ue.forwardRef(function(t,n){const r=Zm({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=bt(r,ny),b=ue.isValidElement(i)&&i.type==="svg",y=ae({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:b}),v={};c||(v.viewBox=f);const M=ry(y);return g.jsxs(iy,ae({as:s,className:c0(M.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},v,h,b&&i.props,{ownerState:y,children:[b?i.props.children:i,d?g.jsx("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(ho.propTypes={children:xe.node,classes:xe.object,className:xe.string,color:xe.oneOfType([xe.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),xe.string]),component:xe.elementType,fontSize:xe.oneOfType([xe.oneOf(["inherit","large","medium","small"]),xe.string]),htmlColor:xe.string,inheritViewBox:xe.bool,shapeRendering:xe.string,sx:xe.oneOfType([xe.arrayOf(xe.oneOfType([xe.func,xe.object,xe.bool])),xe.func,xe.object]),titleAccess:xe.string,viewBox:xe.string}),ho.muiName="SvgIcon";const Du=ho;function oy(e,t){function n(r,i){return g.jsx(Du,ae({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Du.muiName,ue.memo(ue.forwardRef(n))}const ay=Po(Object.freeze(Object.defineProperty({__proto__:null,capitalize:lt,createChainedFunction:Yp,createSvgIcon:oy,debounce:Vp,deprecatedPropType:Bp,isMuiElement:qp,ownerDocument:Es,ownerWindow:Qp,requirePropFactory:Wp,setRef:Ds,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
170
- `)),ks.configure(e)}},unstable_useEnhancedEffect:Os,unstable_useId:Kp,unsupportedProp:Hp,useControlled:Xp,useEventCallback:Jp,useForkRef:Zp,useIsFocusVisible:a0},Symbol.toStringTag,{value:"Module"})));var Ou;function Ae(){return Ou||(Ou=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ay}(Yi)),Yi}var sy=De;Object.defineProperty(Ui,"__esModule",{value:!0});var Cu=Ui.default=void 0,uy=sy(Ae()),ly=g,cy=(0,uy.default)((0,ly.jsx)("path",{d:"M6.56 7.98C6.1 7.52 5.31 7.6 5 8.17c-.28.51-.5 1.03-.67 1.58-.19.63.31 1.25.96 1.25h.01c.43 0 .82-.28.94-.7.12-.4.28-.79.48-1.17.22-.37.15-.84-.16-1.15zM5.31 13h-.02c-.65 0-1.15.62-.96 1.25.16.54.38 1.07.66 1.58.31.57 1.11.66 1.57.2.3-.31.38-.77.17-1.15-.2-.37-.36-.76-.48-1.16-.12-.44-.51-.72-.94-.72zm2.85 6.02c.51.28 1.04.5 1.59.66.62.18 1.24-.32 1.24-.96v-.03c0-.43-.28-.82-.7-.94-.4-.12-.78-.28-1.15-.48-.38-.21-.86-.14-1.16.17l-.03.03c-.45.45-.36 1.24.21 1.55zM13 4.07v-.66c0-.89-1.08-1.34-1.71-.71L9.17 4.83c-.4.4-.4 1.04 0 1.43l2.13 2.08c.63.62 1.7.17 1.7-.72V6.09c2.84.48 5 2.94 5 5.91 0 2.73-1.82 5.02-4.32 5.75-.41.12-.68.51-.68.94v.02c0 .65.61 1.14 1.23.96C17.57 18.71 20 15.64 20 12c0-4.08-3.05-7.44-7-7.93z"}),"RotateLeftRounded");Cu=Ui.default=cy;var po={},fy=De;Object.defineProperty(po,"__esModule",{value:!0});var ju=po.default=void 0,dy=fy(Ae()),hy=g,py=(0,dy.default)((0,hy.jsx)("path",{d:"m20.41 6.41-2.83-2.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7.4l8.6-8.6V7.83c0-.53-.21-1.04-.59-1.42zM12 18c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-9c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h7c.55 0 1 .45 1 1v2zm4.99 7.25 1.77 1.77-4.84 4.84c-.1.09-.23.14-.36.14H15.5c-.28 0-.5-.22-.5-.5v-1.06c0-.13.05-.26.15-.35l4.84-4.84zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"}),"SaveAsRounded");ju=po.default=py;var go={},gy=De;Object.defineProperty(go,"__esModule",{value:!0});var Au=go.default=void 0,my=gy(Ae()),yy=g,vy=(0,my.default)((0,yy.jsx)("path",{d:"M17.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7.83c0-.53-.21-1.04-.59-1.41l-2.82-2.83zM12 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm1-10H7c-1.1 0-2-.9-2-2s.9-2 2-2h6c1.1 0 2 .9 2 2s-.9 2-2 2z"}),"SaveRounded");Au=go.default=vy;var mo={},by=De;Object.defineProperty(mo,"__esModule",{value:!0});var Su=mo.default=void 0,xy=by(Ae()),My=g,_y=(0,xy.default)((0,My.jsx)("path",{d:"M18 2h-7.17c-.53 0-1.04.21-1.42.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6.35 14.65-2.79-2.79c-.32-.32-.1-.86.35-.86H11v-2.99c0-.55.44-.99.99-1 .56-.01 1.01.44 1.01 1V13h1.79c.45 0 .67.54.35.85l-2.79 2.79c-.19.2-.51.2-.7.01z"}),"SimCardDownloadRounded");Su=mo.default=_y;const Iu=(e,t)=>{var o;if(!e)return null;let n=null;const r=(e==null?void 0:e.name)===t,i=(o=e==null?void 0:e.children)==null?void 0:o.length;if(r)return e;if(i)for(let a=0;n===null&&a<e.children.length;a+=1)n=Iu(e.children[a],t);return n},Xt=(e,t)=>{var a,s,l,u,c;if(!e)return null;if(!t)return e;let n=null;const r=((a=e==null?void 0:e.attributes)==null?void 0:a.treePath)===t,i=(s=e==null?void 0:e.attributes)==null?void 0:s.tree,o=(l=e==null?void 0:e.children)==null?void 0:l.length;if(r)return((u=e==null?void 0:e.attributes)==null?void 0:u.tree)||null;if(i&&(n=Xt((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Xt(e.children[d],t);return n},jr=(e,t,n)=>{const r=Xt(e,t);return Iu(r,n)},Ty=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision;return Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!1}}),n?(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!1}}]}),null):(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!e.children.length}}]}),null)},wy=({tree:e,path:t,name:n,child:r})=>{var a;if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const i=structuredClone(e),o=jr(i,t,n);return Ty(o,{...r,...!r.attributes.isDecision&&{children:[...((a=jr(e,t,n))==null?void 0:a.children)||[]]}}),i},ku=(e,t=[])=>{if(!e)return[];let n=[...t];return Object.entries(e).forEach(([r,i])=>{const o=r==="name",a=r==="children"&&i.length>0;o&&(n=[...n,i]),a&&(n=[...n,...i.map(s=>ku(s,n)).flat()])}),n},zu=(e,t,n=null)=>{var a;if(!e)return null;let r=null;const i=(e==null?void 0:e.name)===t,o=(a=e==null?void 0:e.children)==null?void 0:a.length;if(i)return n;if(o)for(let s=0;r===null&&s<e.children.length;s+=1)r=zu(e.children[s],t,e);return r},Ny=(e,t)=>(!e||!t||(Object.defineProperty(e,"children",{value:e.children.filter(n=>n.name!==t.name)}),Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!0}})),null),Ey=(e,t,n)=>{const r=Xt(e,t);return zu(r,n)},Dy=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=jr(r,t,n),o=Ey(r,t,n);return Ny(o,i),r},Oy=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,i=e.attributes.depth===0;return r||n?(Object.defineProperty(e,"children",{value:[...t.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!t.children.length||!n,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null):(Object.defineProperty(e,"children",{value:[...e.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!e.children.length,isRoot:i}}),Object.defineProperty(e,"name",{value:t.name}),null)},Cy=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=jr(i,t,n);return Oy(o,r),i},ht={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},jy=(e,t,n)=>({children:n,name:t,path:e,type:ht.appendTreeCard}),Ay=(e,t,n)=>({children:n,name:t,path:e,type:ht.replaceTreeCard}),Sy=(e,t)=>({name:t,path:e,type:ht.deleteTreeCard}),Ru=()=>({type:ht.resetTree}),$u=e=>({tree:e,type:ht.setTree}),Iy=(e,t)=>{switch(t.type){case ht.appendTreeCard:{const{name:n,path:r,children:i}=t;return wy({child:i,name:n,path:r,tree:e})}case ht.deleteTreeCard:{const{path:n,name:r}=t;return Dy({name:r,path:n,tree:e})}case ht.replaceTreeCard:{const{name:n,path:r,children:i}=t;return Cy({child:i,name:n,path:r,tree:e})}case ht.resetTree:return null;case ht.setTree:return t.tree;default:throw new Error}},yo=()=>{const{dispatchSnackbar:e}=U.useContext(Vo);return{close:()=>e(Bo()),open:(r,i="success")=>e(Dl(r,i))}},Lu=()=>{const{version:e}=Ke();return{patchWorkflow:r=>It.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>It.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},ky=e=>{const{postWorkflow:t}=Lu();return kt.useMutation(t,e)},zy=e=>{const{patchWorkflow:t}=Lu();return kt.useMutation(t,e)},Ry=()=>{const{t:e}=Ve.useTranslation(["snackMessage"]),{open:t}=yo(),{setCurrentTree:n,currentTree:r,tree:i,dispatchTree:o}=Ke(),[a,s]=U.useState(!1),{mutate:l}=ky({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:v=>{t(e("success.saveTree",{ns:"snackMessage"})),n(M=>({...M,id:v.workflow_id}))}}),{mutate:u}=zy({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),c=v=>JSON.stringify(v,null,2),d=v=>`data:text/json;charset=utf-8,${encodeURIComponent(c(v))}`,f=()=>{s(!1)};return{formatJSON:c,getDownloadLink:d,handleClose:f,handleOpen:()=>{s(!0)},handleResetTree:()=>{o(Ru()),f()},handleSubmit:()=>{const{name:v,id:M}=r;if(!v){n(D=>({...D,errorName:"Champs Requis"}));return}if(i){if(M){u({id:M,label:v,workflow:i});return}l({label:v,workflow:i})}},openModal:a}},$y=({downloadedFileName:e="export",value:t})=>{const{t:n}=Ve.useTranslation(),{getDownloadLink:r,handleSubmit:i,handleClose:o,handleOpen:a,handleResetTree:s,openModal:l}=Ry(),{currentTree:u,endPoint:c,tree:d}=Ke(),{id:f}=u;return g.jsxs(w.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[g.jsx(w.Tooltip,{title:n("resetTree",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:g.jsx(w.Box,{children:g.jsx(w.Button,{disabled:!d,onClick:a,variant:"outlined",color:"warning",children:g.jsx(Cu,{})})})}),g.jsx(w.Divider,{orientation:"vertical",flexItem:!0}),g.jsx(w.Tooltip,{title:n("downloadJSONFile",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:g.jsx(w.Box,{children:g.jsx(w.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:g.jsx(Su,{})})})}),g.jsx(w.Tooltip,{title:f?n("update",{ns:"button"}):n("save",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:g.jsx(w.Box,{children:g.jsx(w.Button,{variant:"outlined",onClick:i,disabled:!t||!c,children:f?g.jsx(ju,{}):g.jsx(Au,{})})})}),g.jsxs(w.Dialog,{maxWidth:"xs",fullWidth:!0,open:l,onClose:o,children:[g.jsx(w.DialogTitle,{variant:"h3",children:n("resetTree",{ns:"button"})}),g.jsx(w.DialogContent,{children:g.jsx(w.DialogContentText,{children:n("resetTreeContent",{ns:"modal"})})}),g.jsxs(w.DialogActions,{children:[g.jsx(w.Button,{onClick:o,children:n("close",{ns:"button"})}),g.jsx(w.Button,{variant:"contained",color:"warning",onClick:s,children:n("reset",{ns:"button"})})]})]})]})},Ly={box:{backgroundColor:be.background,border:`solid 1px ${be.borderBlue}`}},Pu=({children:e,description:t,open:n,onClose:r,title:i})=>g.jsx(w.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:g.jsxs(w.Box,{sx:Ly.box,p:4,children:[g.jsx("h3",{children:i}),g.jsx("p",{children:t}),e]})});var vo={},Py=De;Object.defineProperty(vo,"__esModule",{value:!0});var Fu=vo.default=void 0,Fy=Py(Ae()),Uy=g,Yy=(0,Fy.default)((0,Uy.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");Fu=vo.default=Yy;const Ar={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${be.borderBlue}`,height:" 100%",margin:1},toolbar:{backgroundColor:be.background,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:be.tertiary,border:`solid 1px ${be.primary}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Vy=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l},u)=>g.jsx(w.Slide,{direction:"up",ref:u,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l,children:e}),By=U.forwardRef(Vy),qy=({children:e,open:t,onClose:n,title:r})=>g.jsx(w.Dialog,{PaperProps:{sx:{backgroundColor:be.background,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:By,children:g.jsxs(w.Box,{sx:Ar.container,children:[g.jsx(w.AppBar,{position:"sticky",elevation:0,children:g.jsx(w.Toolbar,{sx:Ar.toolbar,children:g.jsxs(w.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:Ar.toolbarBox,children:[g.jsx(w.Typography,{variant:"h5",children:g.jsx("strong",{children:r})}),g.jsx(w.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:g.jsx(Fu,{})})]})})}),g.jsx(w.Box,{sx:Ar.main,children:e})]})}),Qy={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:0}},Wy=({children:e})=>g.jsx(w.Box,{p:2,role:"group",sx:Qy.box,children:e}),Gy={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:0}},Ky=({children:e})=>g.jsx(w.Box,{sx:Gy.box,padding:2,component:"header",children:e}),Hy={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:1}},Xy=({children:e})=>g.jsx(w.Box,{sx:Hy.box,component:"main",role:"tree",children:e}),Uu={stack:{width:"100%"}},Jy=({children:e})=>{const t=U.Children.toArray(e);return g.jsxs(w.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[g.jsx(w.Grid,{item:!0,xs:9,padding:1,display:"flex",children:g.jsxs(w.Stack,{sx:Uu.stack,spacing:2,children:[t[0],t[1]]})}),g.jsx(w.Grid,{item:!0,xs:3,padding:1,display:"flex",children:g.jsxs(w.Stack,{sx:Uu.stack,spacing:2,children:[t[2],t[3]]})})]})},Zy={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:1,overflow:"auto"}},ev=({children:e})=>g.jsx(w.Box,{sx:Zy.box,component:"aside",children:e}),tv=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=Ke();return{handleSubmit:o=>{var l,u;o.preventDefault();const a=((l=n==null?void 0:n.data)==null?void 0:l.name)||"",s=((u=r==null?void 0:r.at(-1))==null?void 0:u.path)||"";e(Sy(s,a)),t(null)}}},nv=({onClose:e})=>{const{t}=Ve.useTranslation(),{handleSubmit:n}=tv();return g.jsx("form",{onSubmit:n,children:g.jsxs(w.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[g.jsx(w.Button,{variant:"text",onClick:e,children:t("cancel")}),g.jsx(w.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var bo={},rv=De;Object.defineProperty(bo,"__esModule",{value:!0});var Yu=bo.default=void 0,iv=rv(Ae()),ov=g,av=(0,iv.default)((0,ov.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddCircleRounded");Yu=bo.default=av;var xo={},sv=De;Object.defineProperty(xo,"__esModule",{value:!0});var Vu=xo.default=void 0,uv=sv(Ae()),lv=g,cv=(0,uv.default)((0,lv.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"RemoveCircleRounded");Vu=xo.default=cv;const An=[{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"}],fv=()=>{const{endPoint:e}=Ke();return{fields:U.useCallback(()=>An.filter(n=>!(n.type==="tree"&&!e)),[e])()}},dv=({onChange:e,value:t})=>{const{t:n}=Ve.useTranslation(["translation","form"]),{fields:r}=fv();return g.jsxs(w.FormControl,{sx:{flex:1},required:!0,children:[g.jsx(w.InputLabel,{children:n("type")}),g.jsx(w.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i,isDecisionField:o})=>g.jsxs(w.MenuItem,{value:i,children:[n(`type.${i}`,{ns:"form"}),o&&g.jsx(w.Chip,{label:n("decisionField",{ns:"form"}),size:"small",color:"info",sx:{marginLeft:1}})]},i))})]})};var Mo={},hv=De;Object.defineProperty(Mo,"__esModule",{value:!0});var Bu=Mo.default=void 0,pv=hv(Ae()),gv=g,mv=(0,pv.default)((0,gv.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddRounded");Bu=Mo.default=mv;const qu=()=>({getAllWorkflow:()=>It.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>It.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),_o=(e,t)=>{const{getWorkflow:n}=qu();return kt.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},yv=e=>{const{getAllWorkflow:t}=qu();return kt.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},vv=e=>{const{t}=Ve.useTranslation("snackMessage"),{open:n}=yo(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=Ke(),[a,s]=U.useState("");_o(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:b,label:y,workflow:v})=>{e||(i({id:b,name:y}),o($u(v)))}});const{data:l,isLoading:u,refetch:c}=yv({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:b})=>{const{value:y}=b;if(y==="add-new-tree"){s(""),i({name:""}),o(Ru());return}s(y)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:l,workflowsSuggestionsLoading:u}},Qu={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},Wu=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const{t:a}=Ve.useTranslation("form"),s=U.useMemo(()=>!!i,[i]),{handleChangeTree:l,handleOnOpen:u,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=vv(s);return g.jsxs(w.FormControl,{size:n,required:t,sx:Qu.formControl,children:[!e&&g.jsx(w.InputLabel,{children:a("tree",{ns:"form"})}),g.jsxs(w.Select,{value:s?o:f,id:"tree-select",onChange:h=>s?i==null?void 0:i(h):l(h),sx:e?Qu.select:void 0,label:a("tree",{ns:"form"}),onOpen:u,children:[d&&g.jsx(w.MenuItem,{children:g.jsx(w.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:b})=>g.jsx(w.MenuItem,{value:b,children:h},b)),r&&g.jsx(w.MenuItem,{disabled:!0,children:g.jsx(w.Box,{sx:{height:1,width:"100%"},children:g.jsx(w.Divider,{})})}),r&&g.jsxs(w.MenuItem,{value:"add-new-tree",children:[g.jsx(w.Typography,{mr:1,children:a("newTree",{ns:"form"})}),g.jsx(Bu,{color:"primary"})]})]})]})},bv=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:i,handleChangeTreeSelect:o,handleChangeHelperText:a,handleChangeHiddenValue:s})=>{const{t:l}=Ve.useTranslation(["translation","form"]);return r?g.jsx(Wu,{required:!0,value:i,onChange:o}):n?g.jsx(w.TextField,{required:!0,sx:{flex:1},label:l("hiddenValue",{ns:"form"}),onChange:s,value:t}):g.jsx(w.TextField,{sx:{flex:1},label:l("helperText",{ns:"form"}),onChange:a,value:e})},Gu=e=>new Set([...e]).size===e.length,xv=(e,t,n)=>{const r=[...e,t];return Gu(n?r.filter(i=>i!==n):r)},Mv=()=>{var $r,Lr,Pr,Fr,Ur,Yr,Vr,Zt,kn,Mt,en,tn,zn,Br,Rn;const e=U.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=Ke(),{open:s}=yo(),{t:l}=Ve.useTranslation(),[u,c]=U.useState(e),[d,f]=U.useState(""),[h,b]=U.useState(""),[y,v]=U.useState(""),[M,D]=U.useState(!1),[O,_]=U.useState(!1),[m,k]=U.useState("text"),[C,S]=U.useState(""),[I,E]=U.useState(""),[$,X]=U.useState(""),[H,x]=U.useState({off:"",on:""}),[z,N]=U.useState(!1),[R,P]=U.useState(""),q=i==="edit",T=m==="tree",A=m==="hidden",V=An.some(F=>F.type===m&&(F==null?void 0:F.isBooleanField)),K=An.some(F=>F.type===m&&(F==null?void 0:F.isDecisionField)),B=An.some(F=>F.type===m&&(F==null?void 0:F.isRequiredDisabled)),J=An.some(F=>F.type===m&&(F==null?void 0:F.isRepeatableDisabled)),Q=((Lr=($r=r==null?void 0:r.data)==null?void 0:$r.attributes)==null?void 0:Lr.isLeaf)??!0,W=F=>!K&&F>0,{refetch:ee,isLoading:re}=_o(C,{enabled:!1,onError:()=>{s(l("error.fetchTree",{ns:"snackMessage"}),"error")}}),te=(F,de)=>{c(he=>he.map(Te=>{const{id:Pe}=Te;return F.target.dataset.id===Pe?{...Te,id:Pe,[de]:F.target.value}:{...Te}}))},Ce=F=>{b(F.target.value)},Y=F=>{v(F.target.value)},Le=F=>{te(F,"label")},G=F=>{te(F,"value")},Je=F=>{te(F,"message")},rt=F=>{X(F.target.value)},At=F=>{var Qe;const{value:de}=F.target;if(f(F.target.value),!t||!de){P("");return}const he=q&&(r==null?void 0:r.data.name),Te=(Qe=o==null?void 0:o.at(-1))==null?void 0:Qe.path,Pe=Xt(t,Te),Fe=ku(Pe);if(xv(Fe,de,he)){P("");return}P(l("mustBeUnique",{ns:"form"}))},Sr=F=>{D(F.target.checked)},Jt=F=>{_(F.target.checked)},Io=F=>{N(F.target.checked)},ko=F=>{k(F.target.value),_(!1),D(!1),N(!1)},Sn=F=>{S(F.target.value)},zo=F=>de=>{x(he=>({...he,[F]:de.target.value}))},Ro=F=>{E(F.target.value)},Ir=()=>{c(F=>{const de=Number(F[F.length-1].id),he=String(de+1);return[...F,{...e[0],id:he}]})},kr=F=>{c(de=>de.filter(({id:he})=>F.currentTarget.value!==he))},St=(F,de)=>{var Te,Pe,Fe;const he=(Fe=(Pe=(Te=F==null?void 0:F.children)==null?void 0:Te[de])==null?void 0:Pe.data)==null?void 0:Fe.children;return he?he.map(({name:Ze,attributes:Qe,children:pt})=>({attributes:Qe,children:pt,name:Ze})):[]},$o=F=>{var de;return O?(de=u==null?void 0:u.filter((he,Te)=>!W(Te)))==null?void 0:de.map(({message:he,value:Te,label:Pe},Fe)=>{const Ze=`${d}:${Te}`,Qe=St(r,Fe);return{attributes:{depth:F+1,label:Pe,value:Te,...he&&{message:he},...Qe.length===0&&{isLeaf:!0}},children:Qe,name:Ze}}):[]},zr=F=>F.map(({message:de,...he})=>({...he,...de&&{message:de}})),Rr=(F,de,he)=>{var Te;return F&&(!de||he)?ee():F&&de&&!he?{data:{workflow:(Te=r==null?void 0:r.data.attributes)==null?void 0:Te.tree},isError:null}:{data:null,isError:null}},In=async F=>{var se,le,ie,ne;F.preventDefault();const{on:de,off:he}=H,Te=((se=r==null?void 0:r.data)==null?void 0:se.name)||"",Pe=(r==null?void 0:r.depth)||0,Fe=i==="edit",Ze=Pe+(Fe||r===null?0:1),Qe=$o(Ze),pt=(le=o==null?void 0:o.at(-1))==null?void 0:le.path,nn=o.length?`${pt}/${d}`:`/${d}`,p=((ne=(ie=r==null?void 0:r.data.attributes)==null?void 0:ie.tree)==null?void 0:ne.treeId)!==C,{data:j,isError:L}=await Rr(T,Fe,p);if(L)return;const Z={attributes:{depth:Ze,label:y,type:m,...I&&{helperText:I},...(he||de)&&{messages:{...he&&{off:he},...de&&{on:de}}},...T&&{tree:{...j==null?void 0:j.workflow,treeId:C},treePath:nn},...O&&{isDecision:O},...K&&!O&&{values:zr(u)},...M&&{required:M},...$&&{step:$},...z&&{repeatable:z},...A&&{hiddenValue:h}},children:Qe,name:d};n(Fe?Ay(pt||"",Te,Z):jy(pt||null,Te,Z)),a(null)};return U.useEffect(()=>{var F,de,he,Te,Pe,Fe,Ze,Qe,pt,nn,p,j,L,Z,se,le,ie,ne,Ie;if(i==="edit"){const Me=((de=(F=r==null?void 0:r.data)==null?void 0:F.attributes)==null?void 0:de.values)||((Pe=(Te=(he=r==null?void 0:r.data)==null?void 0:he.children)==null?void 0:Te.filter(({attributes:ke})=>!(ke!=null&&ke.type)))==null?void 0:Pe.map(({attributes:ke},Nt)=>{const{label:qr,value:it,message:dl}=ke||{};return{id:String(Nt),label:String(qr),value:String(it),...dl&&{message:String(dl)}}}));f((r==null?void 0:r.data.name)||""),k(((Fe=r==null?void 0:r.data.attributes)==null?void 0:Fe.type)||"text"),E(((Ze=r==null?void 0:r.data.attributes)==null?void 0:Ze.helperText)||""),D(((Qe=r==null?void 0:r.data.attributes)==null?void 0:Qe.required)||!1),X(((pt=r==null?void 0:r.data.attributes)==null?void 0:pt.step)||""),v(((nn=r==null?void 0:r.data.attributes)==null?void 0:nn.label)||""),_(((p=r==null?void 0:r.data.attributes)==null?void 0:p.isDecision)||!1),c(Me!=null&&Me.length?Me:e),x({off:((L=(j=r==null?void 0:r.data.attributes)==null?void 0:j.messages)==null?void 0:L.off)||"",on:((se=(Z=r==null?void 0:r.data.attributes)==null?void 0:Z.messages)==null?void 0:se.on)||""}),S(((ie=(le=r==null?void 0:r.data.attributes)==null?void 0:le.tree)==null?void 0:ie.treeId)||""),N(((ne=r==null?void 0:r.data.attributes)==null?void 0:ne.repeatable)||!1),b(((Ie=r==null?void 0:r.data.attributes)==null?void 0:Ie.hiddenValue)||"")}},[(Fr=(Pr=r==null?void 0:r.data.attributes)==null?void 0:Pr.tree)==null?void 0:Fr.treeId,(Ur=r==null?void 0:r.data.attributes)==null?void 0:Ur.messages,(Yr=r==null?void 0:r.data.attributes)==null?void 0:Yr.helperText,(Vr=r==null?void 0:r.data.attributes)==null?void 0:Vr.isDecision,(Zt=r==null?void 0:r.data.attributes)==null?void 0:Zt.label,(kn=r==null?void 0:r.data.attributes)==null?void 0:kn.required,(Mt=r==null?void 0:r.data.attributes)==null?void 0:Mt.step,(en=r==null?void 0:r.data.attributes)==null?void 0:en.type,(tn=r==null?void 0:r.data.attributes)==null?void 0:tn.values,(zn=r==null?void 0:r.data)==null?void 0:zn.children,r==null?void 0:r.data.name,(Br=r==null?void 0:r.data.attributes)==null?void 0:Br.repeatable,(Rn=r==null?void 0:r.data.attributes)==null?void 0:Rn.hiddenValue,e,i]),{getDisabledValueField:W,handleAddValue:Ir,handleChangeHelperText:Ro,handleChangeHiddenValue:Ce,handleChangeIsDecisionField:Jt,handleChangeLabel:Y,handleChangeMessage:zo,handleChangeName:At,handleChangeOptionLabel:Le,handleChangeOptionMessage:Je,handleChangeOptionValue:G,handleChangeRepeatable:Io,handleChangeRequired:Sr,handleChangeStep:rt,handleChangeTreeSelect:Sn,handleChangeType:ko,handleDeleteValue:kr,handleSubmit:In,helperText:I,hiddenValue:h,isBooleanField:V,isDecision:O,isDecisionField:K,isEditModal:q,isHiddenField:A,isLeaf:Q,isRepeatableDisabled:J,isRequiredDisabled:B,isTreeField:T,isWorkflowLoading:re,label:y,messages:H,name:d,repeatable:z,required:M,step:$,treeSelected:C,type:m,uniqueNameErrorMessage:R,values:u}},Ku={marginRight:"-20px !important",minWidth:"auto !important"},Hu={iconButton:Ku,iconButtonDelete:{...Ku,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:be.background,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},_v=({onClose:e})=>{const{t}=Ve.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:l,hiddenValue:u,isBooleanField:c,isDecision:d,isEditModal:f,isDecisionField:h,isHiddenField:b,isRequiredDisabled:y,isRepeatableDisabled:v,isTreeField:M,treeSelected:D,isWorkflowLoading:O,repeatable:_,isLeaf:m,messages:{on:k,off:C},handleChangeTreeSelect:S,handleChangeHelperText:I,handleChangeOptionMessage:E,handleChangeRequired:$,handleChangeName:X,handleChangeType:H,handleChangeIsDecisionField:x,handleChangeOptionLabel:z,handleDeleteValue:N,handleChangeOptionValue:R,handleChangeMessage:P,handleSubmit:q,handleAddValue:T,handleChangeLabel:A,handleChangeRepeatable:V,handleChangeHiddenValue:K}=Mv();return g.jsxs("form",{onSubmit:q,children:[g.jsxs(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[g.jsx(w.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:A,value:l,required:!0}),g.jsx(w.TextField,{label:t("name"),sx:{flex:1},onChange:X,value:i,error:!!o,helperText:o,required:!0})]}),g.jsxs(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[g.jsx(dv,{value:a,onChange:H}),g.jsx(bv,{helperText:s,hiddenValue:u,isHiddenField:b,isTreeField:M,treeSelected:D,handleChangeTreeSelect:S,handleChangeHelperText:I,handleChangeHiddenValue:K})]}),c&&g.jsxs(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[g.jsx(w.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:P("on"),value:k}),g.jsx(w.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:P("off"),value:C})]}),g.jsxs(w.Stack,{paddingY:1,children:[g.jsx(w.FormGroup,{children:g.jsx(w.FormControlLabel,{disabled:v,control:g.jsx(w.Checkbox,{checked:_,onChange:V}),label:t("repeatable",{ns:"form"})})}),g.jsx(w.FormGroup,{children:g.jsx(w.FormControlLabel,{disabled:y,control:g.jsx(w.Checkbox,{checked:r,onChange:$}),label:t("required")})}),(m||f)&&g.jsx(w.FormGroup,{children:g.jsx(w.FormControlLabel,{disabled:!h,control:g.jsx(w.Checkbox,{checked:d,onChange:x}),label:t("decisionField",{ns:"form"})})})]}),h&&g.jsxs(g.Fragment,{children:[g.jsx("h4",{children:t("values")}),n==null?void 0:n.map(({value:B,label:J,id:Q,message:W})=>g.jsxs(w.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[g.jsx(w.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:z,value:J,inputProps:{"data-id":Q},required:!0}),g.jsx(w.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:R,value:B,inputProps:{"data-id":Q},required:!0}),g.jsx(w.TextField,{label:"Message",sx:{flex:1},onChange:E,value:W,inputProps:{"data-id":Q}}),n.length>1&&g.jsx(w.IconButton,{color:"warning",sx:Hu.iconButtonDelete,value:Q,onClick:N,children:g.jsx(Vu,{})})]},Q))]}),h&&g.jsx(w.Box,{justifyContent:"flex-end",display:"flex",children:g.jsx(w.IconButton,{color:"success",sx:Hu.iconButton,onClick:T,children:g.jsx(Yu,{})})}),g.jsxs(w.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[g.jsx(w.Button,{variant:"text",onClick:e,children:t("cancel")}),g.jsx(w.Button,{variant:"contained",type:"submit",disabled:!!o||O,children:O?g.jsx(w.CircularProgress,{size:14}):t("validate")})]})]})};var To={},Tv=De;Object.defineProperty(To,"__esModule",{value:!0});var Xu=To.default=void 0,wv=Tv(Ae()),Nv=g,Ev=(0,wv.default)((0,Nv.jsx)("path",{d:"M17 11h3c1.11 0 2-.9 2-2V5c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1H9.01V5c0-1.11-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2V8h2v7.01c0 1.65 1.34 2.99 2.99 2.99H15v1c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2v-4c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1h-1.01c-.54 0-.99-.45-.99-.99V8h2v1c0 1.1.9 2 2 2z"}),"AccountTreeRounded");Xu=To.default=Ev;var wo={},Dv=De;Object.defineProperty(wo,"__esModule",{value:!0});var Ju=wo.default=void 0,Ov=Dv(Ae()),Cv=g,jv=(0,Ov.default)((0,Cv.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");Ju=wo.default=jv;var No={},Av=De;Object.defineProperty(No,"__esModule",{value:!0});var Zu=No.default=void 0,Sv=Av(Ae()),Iv=g,kv=(0,Sv.default)((0,Iv.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"}),"DeleteOutlineRounded");Zu=No.default=kv;var Eo={},zv=De;Object.defineProperty(Eo,"__esModule",{value:!0});var el=Eo.default=void 0,Rv=zv(Ae()),$v=g,Lv=(0,Rv.default)((0,$v.jsx)("path",{d:"M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"EditRounded");el=Eo.default=Lv;var Do={},Pv=De;Object.defineProperty(Do,"__esModule",{value:!0});var tl=Do.default=void 0,Fv=Pv(Ae()),Uv=g,Yv=(0,Fv.default)((0,Uv.jsx)("path",{d:"M12 3c-4.8 0-9 3.86-9 9 0 2.12.74 4.07 1.97 5.61l-1.68 1.68c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.68-1.68C7.93 20.26 9.88 21 12 21c2.3 0 4.61-.88 6.36-2.64C20.12 16.61 21 14.3 21 12V5c0-1.1-.9-2-2-2h-7zm3.83 9.26-5.16 4.63c-.16.15-.41.14-.56-.01-.14-.14-.16-.36-.04-.52l2.44-3.33-4.05-.4c-.44-.04-.63-.59-.3-.89l5.16-4.63c.16-.15.41-.14.56.01.14.14.16.36.04.52l-2.44 3.33 4.05.4c.45.04.63.59.3.89z"}),"EnergySavingsLeafRounded");tl=Do.default=Yv;var Oo={},Vv=De;Object.defineProperty(Oo,"__esModule",{value:!0});var nl=Oo.default=void 0,Bv=Vv(Ae()),rl=g,qv=(0,Bv.default)([(0,rl.jsx)("path",{d:"M14.14 12h-.06c.81 0 1.28-.91.82-1.57L9.82 3.17c-.4-.57-1.24-.57-1.64 0L3.1 10.43c-.46.66.01 1.57.82 1.57h-.06L.99 16.46c-.43.66.05 1.54.84 1.54H7v2c0 1.1.9 2 2 2s2-.9 2-2v-2h5.17c.79 0 1.27-.88.84-1.54L14.14 12z"},"0"),(0,rl.jsx)("path",{d:"M23.01 16.46 20.14 12h-.06c.81 0 1.28-.91.82-1.57l-5.08-7.26c-.4-.57-1.24-.57-1.64 0l-1.57 2.24 3.11 4.44c.43.61.48 1.41.14 2.07-.08.16-.18.3-.3.43l2.29 3.57c.4.62.42 1.4.07 2.04-.01.02-.02.03-.03.04h4.28c.79 0 1.27-.88.84-1.54zM13 20c0 1.1.9 2 2 2s2-.9 2-2v-1h-4v1z"},"1")],"ForestRounded");nl=Oo.default=qv;var Co={},Qv=De;Object.defineProperty(Co,"__esModule",{value:!0});var il=Co.default=void 0,Wv=Qv(Ae()),Gv=g,Kv=(0,Wv.default)((0,Gv.jsx)("path",{d:"M12 4V2.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V6c3.31 0 6 2.69 6 6 0 .79-.15 1.56-.44 2.25-.15.36-.04.77.23 1.04.51.51 1.37.33 1.64-.34.37-.91.57-1.91.57-2.95 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-.79.15-1.56.44-2.25.15-.36.04-.77-.23-1.04-.51-.51-1.37-.33-1.64.34C4.2 9.96 4 10.96 4 12c0 4.42 3.58 8 8 8v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V18z"}),"LoopRounded");il=Co.default=Kv;var jo={},Hv=De;Object.defineProperty(jo,"__esModule",{value:!0});var ol=jo.default=void 0,Xv=Hv(Ae()),Jv=g,Zv=(0,Xv.default)((0,Jv.jsx)("path",{d:"M16.96 12h.08c.81 0 1.28-.91.82-1.57l-5.08-7.25c-.4-.57-1.24-.57-1.64 0L6.1 10.43c-.46.66.02 1.57.83 1.57h.04l-2.9 4.46c-.44.66.04 1.54.84 1.54h5.08v2.02c0 1.09.89 1.98 1.98 1.98 1.09 0 1.98-.89 1.98-1.98V18h5.15c.8 0 1.28-.89.83-1.55L16.96 12z"}),"ParkRounded");ol=jo.default=Zv;var Ao={},e1=De;Object.defineProperty(Ao,"__esModule",{value:!0});var al=Ao.default=void 0,t1=e1(Ae()),n1=g,r1=(0,t1.default)((0,n1.jsx)("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffRounded");al=Ao.default=r1;var So={},i1=De;Object.defineProperty(So,"__esModule",{value:!0});var sl=So.default=void 0,o1=i1(Ae()),a1=g,s1=(0,o1.default)((0,a1.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilityRounded");sl=So.default=s1;const Se={actionButton:{minWidth:"auto !important"},container:{background:be.background,borderRadius:"1rem"},containerField:{background:be.background,border:`solid 1px ${be.primary}`,borderRadius:"1rem"},containerHidden:{background:be.background,border:`solid 1px ${be.borderGrey}`,borderRadius:"1rem"},containerTree:{background:be.tertiary,border:`solid 1px ${be.primary}`,borderRadius:"1rem"},containerValue:{background:be.background,border:`solid 1px ${be.secondary}`,borderRadius:"1rem"},icon:{color:be.grey500},nodeSvg:{stroke:"transparent !important"},stepChip:{fontSize:".7rem !important",fontWeight:"bold",height:"20px !important"},title:{display:"-webkit-box",margin:0,overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",webkitBoxOrient:"vertical",webkitLineClamp:2}},u1=e=>{const t=!!e,n=e==="tree";return e==="hidden"?Se.containerHidden:n?Se.containerTree:t?Se.containerField:Se.containerValue},l1=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var k;const{t:s}=Ve.useTranslation(["translation","form"]),{attributes:l}=e||{},{isRoot:u,isLeaf:c,required:d,isDecision:f,step:h,type:b,label:y,repeatable:v}=l||{},M=!!b,D=b==="tree",O=b==="hidden",_=!M,m=!u&&!c;return g.jsxs("g",{children:[g.jsx(w.GlobalStyles,{styles:{".rd3t-node svg":Se.nodeSvg}}),g.jsx(w.Box,{component:"foreignObject",height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,sx:u1(b),children:g.jsxs(w.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[g.jsxs(w.Stack,{alignItems:"flex-end",spacing:.5,children:[M&&g.jsxs(w.Stack,{direction:"row",spacing:1,alignItems:"center",children:[h&&g.jsx(w.Tooltip,{title:`${s("step",{ns:"form"})} ${(k=e==null?void 0:e.attributes)==null?void 0:k.step}`,placement:"left",arrow:!0,children:g.jsx(w.Chip,{color:"primary",size:"small",label:h,sx:Se.stepChip})}),g.jsx(w.Typography,{variant:"subtitle2",sx:Se.title,children:g.jsx("strong",{children:y})})]}),M&&g.jsx(w.Chip,{color:"info",size:"small",label:s(`type.${b}`,{ns:"form"})}),d&&g.jsx(w.Stack,{direction:"row",spacing:.5,children:d&&g.jsx(w.Chip,{color:"warning",size:"small",variant:"outlined",label:s("required")})}),g.jsx(w.Stack,{spacing:.5,alignItems:"flex-end",children:_&&g.jsx(w.Typography,{variant:"subtitle2",sx:Se.title,children:g.jsx("strong",{children:y})})}),g.jsxs(w.Stack,{paddingTop:.5,spacing:.5,direction:"row",children:[v&&g.jsx(w.Tooltip,{title:s("isARepeatable"),placement:"bottom",arrow:!0,children:g.jsx(il,{style:Se.icon})}),c&&g.jsx(w.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:g.jsx(tl,{style:Se.icon})}),O&&g.jsx(w.Tooltip,{title:s("isAHidden"),placement:"bottom",arrow:!0,children:g.jsx(al,{style:Se.icon})}),u&&g.jsx(w.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:g.jsx(ol,{style:Se.icon})}),m&&g.jsx(w.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:g.jsx(Xu,{style:Se.icon})}),D&&g.jsx(w.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:g.jsx(nl,{style:Se.icon})})]})]}),g.jsxs(w.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!u&&g.jsx(w.Tooltip,{title:s("remove"),arrow:!0,children:g.jsx(w.Button,{variant:"text",sx:Se.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:g.jsx(Zu,{})})}),!_&&g.jsx(w.Tooltip,{title:s("edit"),arrow:!0,children:g.jsx(w.Button,{variant:"text",color:"secondary",sx:Se.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:g.jsx(el,{})})}),!f&&g.jsx(w.Tooltip,{title:s("add"),arrow:!0,children:g.jsx(w.Button,{variant:"text",color:"success",sx:Se.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:g.jsx(Ju,{})})}),D&&g.jsx(w.Tooltip,{title:s("show"),arrow:!0,children:g.jsx(w.Button,{variant:"text",color:"info",sx:Se.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:g.jsx(sl,{})})})]})]})})]})},c1=U.memo(l1),ul=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=Ke();return{handleAddChildren:u=>{t(u),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:u=>{t(u),e("delete")},handleEditChildren:u=>{t(u),e("edit")},handleOpenTreeModal:u=>{var d,f;const c={label:u==null?void 0:u.data.attributes.label,path:((f=(d=u==null?void 0:u.data)==null?void 0:d.attributes)==null?void 0:f.treePath)||""};r(h=>[...h,c]),n(!0)}}},f1=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,addChildren:a})=>{const{handleDeleteChildren:s,handleEditChildren:l,handleAddChildren:u,handleOpenTreeModal:c}=ul();return g.jsx(c1,{addChildren:a,nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:c,onDeleteChildren:s,onEditChildren:l})},ll=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,addChildren:a})=>g.jsx(f1,{addChildren:a,nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),d1=()=>{const{t:e}=Ve.useTranslation(["modal","snackMessage"]),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=Ke(),i=n==="edit";return{closeModal:()=>r(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=t==null?void 0:t.data)==null?void 0:f.attributes)==null?void 0:h.label;return e("deleteTitle",{name:d,ns:"modal"})},getTitleModalMutation:()=>{var h;const d=(h=t==null?void 0:t.data)==null?void 0:h.attributes.label;return d?e(i?"editTitle":"addTitle",{name:d,ns:"modal"}):e("addFirstTitle",{name:d,ns:"modal"})},isDeleteModal:n==="delete",isModalMutationOpen:i||n==="add"}},h1=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=Ke(),{name:r,errorName:i,id:o}=e;return{disabled:!!e.id&&!n,errorName:i,handleChangeName:l=>{const{value:u}=l.target;if(!u){t(c=>({...c,errorName:"Champs requis",name:l.target.value}));return}t(c=>({...c,errorName:"",name:l.target.value}))},id:o,name:r}},p1=()=>{const{t:e}=Ve.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=h1();return g.jsx(w.TextField,{required:!0,label:e("treeName",{ns:"form"}),size:"small",onChange:n,value:t,error:!!r,disabled:i})},g1=()=>{var h,b;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=Ke(),{handleCloseTreeModal:i}=ul(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:l,isDeleteModal:u}=d1(),c=(h=n==null?void 0:n.at(-1))==null?void 0:h.path,d=(b=n==null?void 0:n.at(-1))==null?void 0:b.label,f=e&&Xt(e,c);return g.jsxs(g.Fragment,{children:[g.jsxs(Jy,{children:[g.jsx(Ky,{children:g.jsxs(w.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[g.jsx(Sl,{}),!!r&&g.jsxs(w.Stack,{direction:"row",alignItems:"center",spacing:2,children:[g.jsx(p1,{}),g.jsx(Wu,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),g.jsx(Xy,{children:g.jsx(vs,{data:e,renderCustomNodeElement:ll})}),g.jsx(ev,{children:g.jsx(Rp,{value:e})}),g.jsx(Wy,{children:g.jsx($y,{value:e})})]}),g.jsx(Pu,{open:l,onClose:a,title:o(),children:g.jsx(_v,{onClose:a})}),g.jsx(Pu,{open:u,onClose:a,title:s(),children:g.jsx(nv,{onClose:a})}),g.jsx(qy,{open:t,onClose:i,title:d,children:f&&g.jsx(vs,{data:f,renderCustomNodeElement:ll})})]})},m1="0.10.0",y1=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=U.useState(Tt.currentHierarchyPointNode),[a,s]=U.useState(Tt.modalOpen),[l,u]=U.useState(Tt.treeModalOpen),[c,d]=U.useState(Tt.treePath),[f,h]=U.useReducer(Iy,n||Tt.tree),[b,y]=U.useState(r?{...Tt.currentTree,id:r}:Tt.currentTree),v=U.useMemo(()=>({currentHierarchyPointNode:i,currentTree:b,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:y,setModalOpen:s,setTreeModalOpen:u,setTreePath:d,tree:f,treeModalOpen:l,treePath:c,version:m1}),[i,a,l,c,f,b,t]);return _o(b.id,{enabled:!!r,onSuccess:async M=>{M&&(y({id:M==null?void 0:M.id,name:M==null?void 0:M.label}),h($u((M==null?void 0:M.workflow)||null)))}}),g.jsx(ms.Provider,{value:v,children:e})},v1={close:"Close",createTree:"Create Tree",downloadJSONFile:"Download JSON File",reset:"Reset",resetTree:"Reset tree",save:"Save",update:"Update"},b1={error:{fetchTree:"An error has occurred. Please try again",saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},x1={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isABranch:"Is a branch",isAHidden:"Is a hidden field",isALeaf:"Is a leaf",isARepeatable:"Is a repeatable",isATree:"Is a tree",isTheRoot:"Is the root",label:"Label",name:"Name",remove:"Remove",required:"Required",save:"Save",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},M1={close:"Fermer",createTree:"Créer un arbre",downloadJSONFile:"Télécharger le fichier JSON",reset:"Réinitialiser",resetTree:"Réinitialiser l'arbre",save:"Enregistrer",update:"Modifier"},cl={decisionField:"Champs de décision",helperText:"Texte d'information",hiddenValue:"Valeur caché",label:"Label",mustBeUnique:"Doit être unique",newTree:"Nouvel arbre",offMessage:"Message (désactiver)",onMessage:"Message (activer)",repeatable:"Répétable",staticFields:"Champs statiques",step:"Étape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case à cocher",date:"Date",email:"Email",file:"Fichier",hidden:"Champs caché",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"Téléphone",text:"Texte",time:"Temps",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},fl={addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ à « {{name}} »",deleteTitle:"Voulez vraiment supprimer « {{name}} »",editTitle:"Éditer le champ « {{name}} »",resetTreeContent:"Êtes-vous sûr de vouloir réinitialiser l'arbre ?",saveTree:"Enregistrer l'arbre"},_1={error:{fetchTree:"Une erreur est survenue veuillez réessayer",saveTree:"Une erreur est survenue veuillez réessayer",updateTree:"Une erreur est survenue veuillez réessayer"},success:{saveTree:"Arbre enregistré",updateTree:"Arbre mis à jour"}},T1={add:"Ajouter",cancel:"Annuler",disabled:"Désactivé",edit:"Éditer",isABranch:"Est une branche",isAHidden:"Est un champs caché",isALeaf:"Est une feuille",isARepeatable:"Est répétable",isATree:"Est un arbre",isTheRoot:"Est la racine",label:"Label",name:"Nom",remove:"Supprimer",required:"Requis",save:"Enregistrer",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};rn.use(yl).use(Ve.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:{en:{button:v1,form:cl,modal:fl,snackMessage:b1,translation:x1},fr:{button:M1,form:cl,modal:fl,snackMessage:_1,translation:T1}},returnNull:!1}).then(()=>{document.documentElement.lang!==rn.resolvedLanguage&&rn.resolvedLanguage&&document.documentElement.setAttribute("lang",rn.resolvedLanguage)}),rn.on("languageChanged",e=>{document.documentElement.setAttribute("lang",e)});const w1=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(U.useLayoutEffect(()=>{It.defaults.baseURL=t,It.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),g.jsx(kt.QueryClientProvider,{client:Tl,children:g.jsx(El,{authToken:e,children:g.jsx(y1,{endPoint:t,initialTree:n,initialTreeId:r,children:g.jsx(_l,{children:g.jsx(jl,{children:g.jsx(g1,{})})})})})}));je.TreePlusIcon=gs,je.Treege=w1,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});
107
+ } });`:ht(12,m?` (${m})`:"",JSON.stringify(g.main)));return pa(g,"light",C,r),pa(g,"dark",I,r),g.contrastText||(g.contrastText=p(g.main)),g},M={dark:yn,light:fa};return process.env.NODE_ENV!=="production"&&(M[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),rt(W({common:W({},Vt),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:f,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:d,name:"success"}),grey:Su,contrastThreshold:n,getContrastText:p,augmentColor:h,tonalOffset:r},M[t]),o)}const Fu=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Uu(e){return Math.round(e*1e5)/1e5}const ha={textTransform:"uppercase"},ga='"Roboto", "Helvetica", "Arial", sans-serif';function Vu(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=ga,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:i=400,fontWeightMedium:u=500,fontWeightBold:l=700,htmlFontSize:d=16,allVariants:f,pxToRem:p}=n,h=nt(n,Fu);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof d!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const M=o/14,v=p||(T=>`${T/d*M}rem`),g=(T,C,I,A,b)=>W({fontFamily:r,fontWeight:T,fontSize:v(C),lineHeight:I},r===ga?{letterSpacing:`${Uu(A/C)}em`}:{},b,f),m={h1:g(a,96,1.167,-1.5),h2:g(a,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(u,20,1.6,.15),subtitle1:g(i,16,1.75,.15),subtitle2:g(u,14,1.57,.1),body1:g(i,16,1.5,.15),body2:g(i,14,1.43,.15),button:g(u,14,1.75,.4,ha),caption:g(i,12,1.66,.4),overline:g(i,12,2.66,1,ha),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return rt(W({htmlFontSize:d,pxToRem:v,fontFamily:r,fontSize:o,fontWeightLight:a,fontWeightRegular:i,fontWeightMedium:u,fontWeightBold:l},m),h,{clone:!1})}const Qu=.2,Bu=.14,qu=.12;function le(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qu})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Bu})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qu})`].join(",")}const Wu=["none",le(0,2,1,-1,0,1,1,0,0,1,3,0),le(0,3,1,-2,0,2,2,0,0,1,5,0),le(0,3,3,-2,0,3,4,0,0,1,8,0),le(0,2,4,-1,0,4,5,0,0,1,10,0),le(0,3,5,-1,0,5,8,0,0,1,14,0),le(0,3,5,-1,0,6,10,0,0,1,18,0),le(0,4,5,-2,0,7,10,1,0,2,16,1),le(0,5,5,-3,0,8,10,1,0,3,14,2),le(0,5,6,-3,0,9,12,1,0,3,16,2),le(0,6,6,-3,0,10,14,1,0,4,18,3),le(0,6,7,-4,0,11,15,1,0,4,20,3),le(0,7,8,-4,0,12,17,2,0,5,22,4),le(0,7,8,-4,0,13,19,2,0,5,24,4),le(0,7,9,-4,0,14,21,2,0,5,26,4),le(0,8,9,-5,0,15,22,2,0,6,28,5),le(0,8,10,-5,0,16,24,2,0,6,30,5),le(0,8,11,-5,0,17,26,2,0,6,32,5),le(0,9,11,-5,0,18,28,2,0,7,34,6),le(0,9,12,-6,0,19,29,2,0,7,36,6),le(0,10,13,-6,0,20,31,3,0,8,38,7),le(0,10,13,-6,0,21,33,3,0,8,40,7),le(0,10,14,-6,0,22,35,3,0,8,42,7),le(0,11,14,-7,0,23,36,3,0,9,44,8),le(0,11,15,-7,0,24,38,3,0,9,46,8)],Gu=["duration","easing","delay"],Ku={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)"},Ju={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ma(e){return`${Math.round(e)}ms`}function Zu(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Xu(e){const t=W({},Ku,e.easing),n=W({},Ju,e.duration);return W({getAutoHeightDuration:Zu,create:(o=["all"],a={})=>{const{duration:i=n.standard,easing:u=t.easeInOut,delay:l=0}=a,d=nt(a,Gu);if(process.env.NODE_ENV!=="production"){const f=h=>typeof h=="string",p=h=>!isNaN(parseFloat(h));!f(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!p(i)&&!f(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),f(u)||console.error('MUI: Argument "easing" must be a string.'),!p(l)&&!f(l)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
108
+ `)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof i=="string"?i:ma(i)} ${u} ${typeof l=="string"?l:ma(l)}`).join(",")}},e,{easing:t,duration:n})}const Hu={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},el=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function tl(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:a={}}=e,i=nt(e,el);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":ht(18));const u=Yu(r),l=gn(e);let d=rt(l,{mixins:Au(l.breakpoints,n),palette:u,shadows:Wu.slice(),typography:Vu(u,a),transitions:Xu(o),zIndex:W({},Hu)});if(d=rt(d,i),d=t.reduce((f,p)=>rt(f,p),d),process.env.NODE_ENV!=="production"){const f=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],p=(h,M)=>{let v;for(v in h){const g=h[v];if(f.indexOf(v)!==-1&&Object.keys(g).length>0){if(process.env.NODE_ENV!=="production"){const m=Zr("",v);console.error([`MUI: The \`${M}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:g}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
109
+ `))}h[v]={}}}};Object.keys(d.components).forEach(h=>{const M=d.components[h].styleOverrides;M&&h.indexOf("Mui")===0&&p(M,h)})}return d.unstable_sxConfig=W({},pn,i==null?void 0:i.unstable_sxConfig),d.unstable_sx=function(p){return hn({sx:p,theme:this})},d}const ya=tl(),va="$$material";function rl({props:e,name:t}){return Eu({props:e,name:t,defaultTheme:ya,themeId:va})}const nl=Du({themeId:va,defaultTheme:ya,rootShouldForwardProp:e=>br(e)&&e!=="classes"});function ol(e){return Zr("MuiSvgIcon",e)}fs("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const al=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],il=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Je(t)}`,`fontSize${Je(n)}`]};return ls(o,ol,r)},sl=nl("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Je(n.color)}`],t[`fontSize${Je(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,a,i,u,l,d,f,p,h,M,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(i=a.pxToRem)==null?void 0:i.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((d=e.typography)==null||(f=d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}[t.fontSize],color:(p=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?p:{action:(M=(e.vars||e).palette)==null||(M=M.action)==null?void 0:M.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),vn=J.forwardRef(function(t,n){const r=rl({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:i="inherit",component:u="svg",fontSize:l="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:p,viewBox:h="0 0 24 24"}=r,M=nt(r,al),v=J.isValidElement(o)&&o.type==="svg",g=W({},r,{color:i,component:u,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:h,hasSvgAsChild:v}),m={};f||(m.viewBox=h);const T=il(g);return c.jsxs(sl,W({as:u,className:ps(T.root,a),focusable:"false",color:d,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:n},m,M,v&&o.props,{ownerState:g,children:[v?o.props.children:o,p?c.jsx("title",{children:p}):null]}))});process.env.NODE_ENV!=="production"&&(vn.propTypes={children:ce.node,classes:ce.object,className:ce.string,color:ce.oneOfType([ce.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ce.string]),component:ce.elementType,fontSize:ce.oneOfType([ce.oneOf(["inherit","large","medium","small"]),ce.string]),htmlColor:ce.string,inheritViewBox:ce.bool,shapeRendering:ce.string,sx:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.func,ce.object,ce.bool])),ce.func,ce.object]),titleAccess:ce.string,viewBox:ce.string}),vn.muiName="SvgIcon";const ba=vn;function cl(e,t){function n(r,o){return c.jsx(ba,W({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ba.muiName,J.memo(J.forwardRef(n))}const ul=li(Object.freeze(Object.defineProperty({__proto__:null,capitalize:Je,createChainedFunction:Bi,createSvgIcon:cl,debounce:qi,deprecatedPropType:Wi,isMuiElement:Gi,ownerDocument:vo,ownerWindow:Ki,requirePropFactory:Ji,setRef:bo,unstable_ClassNameGenerator:{configure:e=>{process.env.NODE_ENV!=="production"&&console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join(`
110
+ `)),Eo.configure(e)}},unstable_useEnhancedEffect:Mo,unstable_useId:Xi,unsupportedProp:Hi,useControlled:es,useEventCallback:ts,useForkRef:rs,useIsFocusVisible:us},Symbol.toStringTag,{value:"Module"})));var Ma;function Ne(){return Ma||(Ma=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ul}(Pr)),Pr}var ll=De;Object.defineProperty($r,"__esModule",{value:!0});var xa=$r.default=void 0,dl=ll(Ne()),fl=c,pl=(0,dl.default)((0,fl.jsx)("path",{d:"M6.56 7.98C6.1 7.52 5.31 7.6 5 8.17c-.28.51-.5 1.03-.67 1.58-.19.63.31 1.25.96 1.25h.01c.43 0 .82-.28.94-.7.12-.4.28-.79.48-1.17.22-.37.15-.84-.16-1.15zM5.31 13h-.02c-.65 0-1.15.62-.96 1.25.16.54.38 1.07.66 1.58.31.57 1.11.66 1.57.2.3-.31.38-.77.17-1.15-.2-.37-.36-.76-.48-1.16-.12-.44-.51-.72-.94-.72zm2.85 6.02c.51.28 1.04.5 1.59.66.62.18 1.24-.32 1.24-.96v-.03c0-.43-.28-.82-.7-.94-.4-.12-.78-.28-1.15-.48-.38-.21-.86-.14-1.16.17l-.03.03c-.45.45-.36 1.24.21 1.55zM13 4.07v-.66c0-.89-1.08-1.34-1.71-.71L9.17 4.83c-.4.4-.4 1.04 0 1.43l2.13 2.08c.63.62 1.7.17 1.7-.72V6.09c2.84.48 5 2.94 5 5.91 0 2.73-1.82 5.02-4.32 5.75-.41.12-.68.51-.68.94v.02c0 .65.61 1.14 1.23.96C17.57 18.71 20 15.64 20 12c0-4.08-3.05-7.44-7-7.93z"}),"RotateLeftRounded");xa=$r.default=pl;var bn={},hl=De;Object.defineProperty(bn,"__esModule",{value:!0});var Ta=bn.default=void 0,gl=hl(Ne()),ml=c,yl=(0,gl.default)((0,ml.jsx)("path",{d:"m20.41 6.41-2.83-2.83c-.37-.37-.88-.58-1.41-.58H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h7.4l8.6-8.6V7.83c0-.53-.21-1.04-.59-1.42zM12 18c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-9c0 .55-.45 1-1 1H7c-.55 0-1-.45-1-1V7c0-.55.45-1 1-1h7c.55 0 1 .45 1 1v2zm4.99 7.25 1.77 1.77-4.84 4.84c-.1.09-.23.14-.36.14H15.5c-.28 0-.5-.22-.5-.5v-1.06c0-.13.05-.26.15-.35l4.84-4.84zm3.26.26-.85.85-1.77-1.77.85-.85c.2-.2.51-.2.71 0l1.06 1.06c.2.2.2.52 0 .71z"}),"SaveAsRounded");Ta=bn.default=yl;var Mn={},vl=De;Object.defineProperty(Mn,"__esModule",{value:!0});var ja=Mn.default=void 0,bl=vl(Ne()),Ml=c,xl=(0,bl.default)((0,Ml.jsx)("path",{d:"M17.59 3.59c-.38-.38-.89-.59-1.42-.59H5c-1.11 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V7.83c0-.53-.21-1.04-.59-1.41l-2.82-2.83zM12 19c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm1-10H7c-1.1 0-2-.9-2-2s.9-2 2-2h6c1.1 0 2 .9 2 2s-.9 2-2 2z"}),"SaveRounded");ja=Mn.default=xl;var xn={},Tl=De;Object.defineProperty(xn,"__esModule",{value:!0});var Da=xn.default=void 0,jl=Tl(Ne()),Dl=c,Nl=(0,jl.default)((0,Dl.jsx)("path",{d:"M18 2h-7.17c-.53 0-1.04.21-1.42.59L4.59 7.41C4.21 7.79 4 8.3 4 8.83V20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6.35 14.65-2.79-2.79c-.32-.32-.1-.86.35-.86H11v-2.99c0-.55.44-.99.99-1 .56-.01 1.01.44 1.01 1V13h1.79c.45 0 .67.54.35.85l-2.79 2.79c-.19.2-.51.2-.7.01z"}),"SimCardDownloadRounded");Da=xn.default=Nl;const Na=(e,t)=>{var a;if(!e)return null;let n=null;const r=(e==null?void 0:e.name)===t,o=(a=e==null?void 0:e.children)==null?void 0:a.length;if(r)return e;if(o)for(let i=0;n===null&&i<e.children.length;i+=1)n=Na(e.children[i],t);return n},Nt=(e,t)=>{var i,u,l,d,f;if(!e)return null;if(!t)return e;let n=null;const r=((i=e==null?void 0:e.attributes)==null?void 0:i.treePath)===t,o=(u=e==null?void 0:e.attributes)==null?void 0:u.tree,a=(l=e==null?void 0:e.children)==null?void 0:l.length;if(r)return((d=e==null?void 0:e.attributes)==null?void 0:d.tree)||null;if(o&&(n=Nt((f=e.attributes)==null?void 0:f.tree,t)),a)for(let p=0;n===null&&p<e.children.length;p+=1)n=Nt(e.children[p],t);return n},Mr=(e,t,n)=>{const r=Nt(e,t);return Na(r,n)},El=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision;return Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!1}}),n?(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!1}}]}),null):(Object.defineProperty(e,"children",{value:[{...t,attributes:{...t.attributes,isLeaf:!e.children.length}}]}),null)},Ol=({tree:e,path:t,name:n,child:r})=>{var i;if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const o=structuredClone(e),a=Mr(o,t,n);return El(a,{...r,...!r.attributes.isDecision&&{children:[...((i=Mr(e,t,n))==null?void 0:i.children)||[]]}}),o},Ea=(e,t=[])=>{if(!e)return[];let n=[...t];return Object.entries(e).forEach(([r,o])=>{const a=r==="name",i=r==="children"&&o.length>0;a&&(n=[...n,o]),i&&(n=[...n,...o.map(u=>Ea(u,n)).flat()])}),n},Oa=(e,t,n=null)=>{var i;if(!e)return null;let r=null;const o=(e==null?void 0:e.name)===t,a=(i=e==null?void 0:e.children)==null?void 0:i.length;if(o)return n;if(a)for(let u=0;r===null&&u<e.children.length;u+=1)r=Oa(e.children[u],t,e);return r},Cl=(e,t)=>(!e||!t||(Object.defineProperty(e,"children",{value:e.children.filter(n=>n.name!==t.name)}),Object.defineProperty(e,"attributes",{value:{...e.attributes,isLeaf:!0}})),null),Il=(e,t,n)=>{const r=Nt(e,t);return Oa(r,n)},wl=({tree:e,path:t,name:n})=>{const r=structuredClone(e),o=Mr(r,t,n),a=Il(r,t,n);return Cl(a,o),r},Al=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,o=e.attributes.depth===0;return r||n?(Object.defineProperty(e,"children",{value:[...t.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!t.children.length||!n,isRoot:o}}),Object.defineProperty(e,"name",{value:t.name}),null):(Object.defineProperty(e,"children",{value:[...e.children]}),Object.defineProperty(e,"attributes",{value:{...t.attributes,isLeaf:!e.children.length,isRoot:o}}),Object.defineProperty(e,"name",{value:t.name}),null)},Sl=({tree:e,path:t,name:n,child:r})=>{const o=structuredClone(e),a=Mr(o,t,n);return Al(a,r),o},et={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},kl=(e,t,n)=>({children:n,name:t,path:e,type:et.appendTreeCard}),zl=(e,t,n)=>({children:n,name:t,path:e,type:et.replaceTreeCard}),_l=(e,t)=>({name:t,path:e,type:et.deleteTreeCard}),Ca=()=>({type:et.resetTree}),Ia=e=>({tree:e,type:et.setTree}),Rl=(e,t)=>{switch(t.type){case et.appendTreeCard:{const{name:n,path:r,children:o}=t;return Ol({child:o,name:n,path:r,tree:e})}case et.deleteTreeCard:{const{path:n,name:r}=t;return wl({name:r,path:n,tree:e})}case et.replaceTreeCard:{const{name:n,path:r,children:o}=t;return Sl({child:o,name:n,path:r,tree:e})}case et.resetTree:return null;case et.setTree:return t.tree;default:throw new Error}},Tn=()=>{const{dispatchSnackbar:e}=S.useContext(qn);return{close:()=>e(Wn()),open:(r,o="success")=>e(bi(r,o))}},Ll=e=>dt.useMutation(["patchWorkflow"],async t=>{const{data:n}=await ft.patch("/v1/workflow",t);return n},e),$l=e=>dt.useMutation(["postWorkflow"],async t=>{const{data:n}=await ft.post("/v1/workflow",t);return n},e),Pl=()=>{const{t:e}=$e.useTranslation(["snackMessage"]),{open:t}=Tn(),{setCurrentTree:n,currentTree:r,tree:o,dispatchTree:a}=Ue(),[i,u]=S.useState(!1),{version:l}=Ue(),{mutate:d}=$l({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:T=>{t(e("success.saveTree",{ns:"snackMessage"})),n(C=>({...C,id:T.workflow_id}))}}),{mutate:f}=Ll({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),p=T=>JSON.stringify(T,null,2),h=T=>`data:text/json;charset=utf-8,${encodeURIComponent(p(T))}`,M=()=>{u(!1)};return{formatJSON:p,getDownloadLink:h,handleClose:M,handleOpen:()=>{u(!0)},handleResetTree:()=>{a(Ca()),M()},handleSubmit:()=>{const{name:T,id:C}=r;if(!T){n(I=>({...I,errorName:"Champs Requis"}));return}if(o){if(C){f({id:C,label:T,version:l,workflow:o});return}d({label:T,version:l,workflow:o})}},openModal:i}},Yl=({downloadedFileName:e="export",value:t})=>{const{t:n}=$e.useTranslation(),{getDownloadLink:r,handleSubmit:o,handleClose:a,handleOpen:i,handleResetTree:u,openModal:l}=Pl(),{currentTree:d,endPoint:f,tree:p}=Ue(),{id:h}=d;return c.jsxs(y.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[c.jsx(y.Tooltip,{title:n("resetTree",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:c.jsx(y.Box,{children:c.jsx(y.Button,{disabled:!p,onClick:i,variant:"outlined",color:"warning",children:c.jsx(xa,{})})})}),c.jsx(y.Divider,{orientation:"vertical",flexItem:!0}),c.jsx(y.Tooltip,{title:n("downloadJSONFile",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:c.jsx(y.Box,{children:c.jsx(y.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:c.jsx(Da,{})})})}),c.jsx(y.Tooltip,{title:h?n("update",{ns:"button"}):n("save",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:c.jsx(y.Box,{children:c.jsx(y.Button,{variant:"outlined",onClick:o,disabled:!t||!f,children:h?c.jsx(Ta,{}):c.jsx(ja,{})})})}),c.jsxs(y.Dialog,{maxWidth:"xs",fullWidth:!0,open:l,onClose:a,children:[c.jsx(y.DialogTitle,{variant:"h3",children:n("resetTree",{ns:"button"})}),c.jsx(y.DialogContent,{children:c.jsx(y.DialogContentText,{children:n("resetTreeContent",{ns:"modal"})})}),c.jsxs(y.DialogActions,{children:[c.jsx(y.Button,{onClick:a,children:n("close",{ns:"button"})}),c.jsx(y.Button,{variant:"contained",color:"warning",onClick:u,children:n("reset",{ns:"button"})})]})]})]})},Fl={box:{backgroundColor:se.background,border:`solid 1px ${se.borderBlue}`}},wa=({children:e,description:t,open:n,onClose:r,title:o})=>c.jsx(y.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:c.jsxs(y.Box,{sx:Fl.box,p:4,children:[c.jsx("h3",{children:o}),c.jsx("p",{children:t}),e]})});var jn={},Ul=De;Object.defineProperty(jn,"__esModule",{value:!0});var Aa=jn.default=void 0,Vl=Ul(Ne()),Ql=c,Bl=(0,Vl.default)((0,Ql.jsx)("path",{d:"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z"}),"CloseRounded");Aa=jn.default=Bl;const xr={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${se.borderBlue}`,height:" 100%",margin:1},toolbar:{backgroundColor:se.background,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:se.tertiary,border:`solid 1px ${se.primary}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},ql=({children:e,appear:t,in:n,onEnter:r,onExited:o,onFocus:a,role:i,tabIndex:u,timeout:l},d)=>c.jsx(y.Slide,{direction:"up",ref:d,appear:t,in:n,onEnter:r,onExited:o,onFocus:a,role:i,tabIndex:u,timeout:l,children:e}),Wl=S.forwardRef(ql),Gl=({children:e,open:t,onClose:n,title:r})=>c.jsx(y.Dialog,{PaperProps:{sx:{backgroundColor:se.background,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Wl,children:c.jsxs(y.Box,{sx:xr.container,children:[c.jsx(y.AppBar,{position:"sticky",elevation:0,children:c.jsx(y.Toolbar,{sx:xr.toolbar,children:c.jsxs(y.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:xr.toolbarBox,children:[c.jsx(y.Typography,{variant:"h5",children:c.jsx("strong",{children:r})}),c.jsx(y.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:c.jsx(Aa,{})})]})})}),c.jsx(y.Box,{sx:xr.main,children:e})]})}),Kl={box:{border:`solid 1px ${se.borderBlue}`,flexGrow:0}},Jl=({children:e})=>c.jsx(y.Box,{p:2,role:"group",sx:Kl.box,children:e}),Zl={box:{border:`solid 1px ${se.borderBlue}`,flexGrow:0}},Xl=({children:e})=>c.jsx(y.Box,{sx:Zl.box,padding:2,component:"header",children:e}),Hl={box:{border:`solid 1px ${se.borderBlue}`,flexGrow:1}},ed=({children:e})=>c.jsx(y.Box,{sx:Hl.box,component:"main",role:"tree",children:e}),Sa={stack:{width:"100%"}},td=({children:e})=>{const t=S.Children.toArray(e);return c.jsxs(y.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[c.jsx(y.Grid,{item:!0,xs:9,padding:1,display:"flex",children:c.jsxs(y.Stack,{sx:Sa.stack,spacing:2,children:[t[0],t[1]]})}),c.jsx(y.Grid,{item:!0,xs:3,padding:1,display:"flex",children:c.jsxs(y.Stack,{sx:Sa.stack,spacing:2,children:[t[2],t[3]]})})]})},rd={box:{border:`solid 1px ${se.borderBlue}`,flexGrow:1,overflow:"auto"}},nd=({children:e})=>c.jsx(y.Box,{sx:rd.box,component:"aside",children:e}),od=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=Ue();return{handleSubmit:a=>{var l,d;a.preventDefault();const i=((l=n==null?void 0:n.data)==null?void 0:l.name)||"",u=((d=r==null?void 0:r.at(-1))==null?void 0:d.path)||"";e(_l(u,i)),t(null)}}},ad=({onClose:e})=>{const{t}=$e.useTranslation(),{handleSubmit:n}=od();return c.jsx("form",{onSubmit:n,children:c.jsxs(y.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[c.jsx(y.Button,{variant:"text",onClick:e,children:t("cancel")}),c.jsx(y.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Dn={},id=De;Object.defineProperty(Dn,"__esModule",{value:!0});var ka=Dn.default=void 0,sd=id(Ne()),cd=c,ud=(0,sd.default)((0,cd.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddCircleRounded");ka=Dn.default=ud;var Nn={},ld=De;Object.defineProperty(Nn,"__esModule",{value:!0});var za=Nn.default=void 0,dd=ld(Ne()),fd=c,pd=(0,dd.default)((0,fd.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4 11H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1z"}),"RemoveCircleRounded");za=Nn.default=pd;const Bt=[{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"}],hd=()=>{const{endPoint:e}=Ue();return{fields:S.useCallback(()=>Bt.filter(n=>!(n.type==="tree"&&!e)),[e])()}},gd=({onChange:e,value:t})=>{const{t:n}=$e.useTranslation(["translation","form"]),{fields:r}=hd();return c.jsxs(y.FormControl,{sx:{flex:1},required:!0,children:[c.jsx(y.InputLabel,{children:n("type")}),c.jsx(y.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:o,isDecisionField:a})=>c.jsxs(y.MenuItem,{value:o,children:[n(`type.${o}`,{ns:"form"}),a&&c.jsx(y.Chip,{label:n("decisionField",{ns:"form"}),size:"small",color:"info",sx:{marginLeft:1}})]},o))})]})};var En={},md=De;Object.defineProperty(En,"__esModule",{value:!0});var _a=En.default=void 0,yd=md(Ne()),vd=c,bd=(0,yd.default)((0,vd.jsx)("path",{d:"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddRounded");_a=En.default=bd;const On=(e,t)=>dt.useQuery(["/v1/workflow",e],async({signal:n})=>{const{data:r}=await ft.get(`/v1/workflow?id=${e}`,{signal:n});return r},{enabled:!!e,...t}),Md=e=>dt.useQuery(["workflows"],async({signal:t})=>{const{data:n}=await ft.get("/v1/workflows",{signal:t});return n},e),xd=({isControlled:e,fetchWorkflowsOnOpen:t})=>{const{t:n}=$e.useTranslation("snackMessage"),{open:r}=Tn(),{currentTree:o,setCurrentTree:a,dispatchTree:i}=Ue(),[u,l]=S.useState("");On(u,{enabled:!!u&&!e&&u!==o.id,onError:()=>r(n("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:g,workflow:m})=>{e||(a({id:v,name:g}),i(Ia(m)))}});const{data:d,isLoading:f,refetch:p}=Md({enabled:!t,keepPreviousData:!0,onError:()=>{r(n("error.fetchTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{o.id&&!u&&l(o.id)}}),h=async({target:v})=>{const{value:g}=v;if(g==="add-new-tree"){l(""),a({name:""}),i(Ca());return}l(g)},M=S.useCallback(()=>p(),[p]);return{currentTree:o,fetchWorkflowSuggestions:p,handleChangeTree:h,handleOnOpen:M,setTreeSelected:l,treeSelected:u,workflowsSuggestions:d,workflowsSuggestionsLoading:f}},Ra={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},La=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:o,value:a,fetchWorkflowsOnOpen:i})=>{const{t:u}=$e.useTranslation("form"),l=S.useMemo(()=>!!o,[o]),{handleChangeTree:d,handleOnOpen:f,workflowsSuggestions:p,workflowsSuggestionsLoading:h,treeSelected:M}=xd({fetchWorkflowsOnOpen:i,isControlled:l});return c.jsxs(y.FormControl,{size:n,required:t,sx:Ra.formControl,children:[!e&&c.jsx(y.InputLabel,{children:u("tree",{ns:"form"})}),c.jsxs(y.Select,{value:l?a:M,id:"tree-select",onChange:v=>l?o==null?void 0:o(v):d(v),sx:e?Ra.select:void 0,label:u("tree",{ns:"form"}),onOpen:f,children:[(a&&h||h)&&c.jsx(y.MenuItem,{value:a,children:c.jsx(y.Skeleton,{width:"100%"})}),p==null?void 0:p.map(({label:v,id:g})=>c.jsx(y.MenuItem,{value:g,children:v},g)),r&&c.jsx(y.MenuItem,{disabled:!0,children:c.jsx(y.Box,{sx:{height:1,width:"100%"},children:c.jsx(y.Divider,{})})}),r&&c.jsxs(y.MenuItem,{value:"add-new-tree",children:[c.jsx(y.Typography,{mr:1,children:u("newTree",{ns:"form"})}),c.jsx(_a,{color:"primary"})]})]})]})},Td=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:o,handleChangeTreeSelect:a,handleChangeHelperText:i,handleChangeHiddenValue:u})=>{const{t:l}=$e.useTranslation(["translation","form"]);return r?c.jsx(La,{required:!0,value:o,onChange:a}):n?c.jsx(y.TextField,{required:!0,sx:{flex:1},label:l("hiddenValue",{ns:"form"}),onChange:u,value:t}):c.jsx(y.TextField,{sx:{flex:1},label:l("helperText",{ns:"form"}),onChange:i,value:e})},$a=e=>new Set([...e]).size===e.length,jd=(e,t,n)=>{const r=[...e,t];return $a(n?r.filter(o=>o!==n):r)},Dd=()=>{var Or,Cr,Ir,wr,Ar,Sr,kr,Ot,Gt,at,Ct,It,Kt,zr,Jt;const e=S.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:o,treePath:a,setModalOpen:i}=Ue(),{open:u}=Tn(),{t:l}=$e.useTranslation(),[d,f]=S.useState(e),[p,h]=S.useState(""),[M,v]=S.useState(""),[g,m]=S.useState(""),[T,C]=S.useState(!1),[I,A]=S.useState(!1),[b,q]=S.useState("text"),[_,we]=S.useState(""),[fe,U]=S.useState(""),[pe,ke]=S.useState(""),[he,ge]=S.useState({off:"",on:""}),[be,Me]=S.useState(!1),[ze,Ae]=S.useState(""),Ye=o==="edit",j=b==="tree",O=b==="hidden",P=Bt.some(N=>N.type===b&&(N==null?void 0:N.isBooleanField)),L=Bt.some(N=>N.type===b&&(N==null?void 0:N.isDecisionField)),R=Bt.some(N=>N.type===b&&(N==null?void 0:N.isRequiredDisabled)),Q=Bt.some(N=>N.type===b&&(N==null?void 0:N.isRepeatableDisabled)),z=((Cr=(Or=r==null?void 0:r.data)==null?void 0:Or.attributes)==null?void 0:Cr.isLeaf)??!0,$=N=>!L&&N>0,{refetch:V,isInitialLoading:G}=On(_,{enabled:!1,onError:()=>{u(l("error.fetchTree",{ns:"snackMessage"}),"error")}}),Y=(N,ee)=>{f(te=>te.map(de=>{const{id:Re}=de;return N.target.dataset.id===Re?{...de,id:Re,[ee]:N.target.value}:{...de}}))},Te=N=>{v(N.target.value)},E=N=>{m(N.target.value)},_e=N=>{Y(N,"label")},w=N=>{Y(N,"value")},Be=N=>{Y(N,"message")},Ge=N=>{ke(N.target.value)},ut=N=>{var Fe;const{value:ee}=N.target;if(h(N.target.value),!t||!ee){Ae("");return}const te=Ye&&(r==null?void 0:r.data.name),de=(Fe=a==null?void 0:a.at(-1))==null?void 0:Fe.path,Re=Nt(t,de),Le=Ea(Re);if(jd(Le,ee,te)){Ae("");return}Ae(l("mustBeUnique",{ns:"form"}))},Tr=N=>{C(N.target.checked)},Et=N=>{A(N.target.checked)},$n=N=>{Me(N.target.checked)},Pn=N=>{q(N.target.value),A(!1),C(!1),Me(!1)},qt=N=>{we(N.target.value)},Yn=N=>ee=>{ge(te=>({...te,[N]:ee.target.value}))},Fn=N=>{U(N.target.value)},jr=()=>{f(N=>{const ee=Number(N[N.length-1].id),te=String(ee+1);return[...N,{...e[0],id:te}]})},Dr=N=>{f(ee=>ee.filter(({id:te})=>N.currentTarget.value!==te))},lt=(N,ee)=>{var de,Re,Le;const te=(Le=(Re=(de=N==null?void 0:N.children)==null?void 0:de[ee])==null?void 0:Re.data)==null?void 0:Le.children;return te?te.map(({name:qe,attributes:Fe,children:tt})=>({attributes:Fe,children:tt,name:qe})):[]},Un=N=>{var ee;return I?(ee=d==null?void 0:d.filter((te,de)=>!$(de)))==null?void 0:ee.map(({message:te,value:de,label:Re},Le)=>{const qe=`${p}:${de}`,Fe=lt(r,Le);return{attributes:{depth:N+1,label:Re,value:de,...te&&{message:te},...Fe.length===0&&{isLeaf:!0}},children:Fe,name:qe}}):[]},Nr=N=>N.map(({message:ee,...te})=>({...te,...ee&&{message:ee}})),Er=(N,ee,te)=>{var de;return N&&(!ee||te)?V():N&&ee&&!te?{data:{workflow:(de=r==null?void 0:r.data.attributes)==null?void 0:de.tree},isError:null}:{data:null,isError:null}},Wt=async N=>{var K,Z,B,F;N.preventDefault();const{on:ee,off:te}=he,de=((K=r==null?void 0:r.data)==null?void 0:K.name)||"",Re=(r==null?void 0:r.depth)||0,Le=o==="edit",qe=Re+(Le||r===null?0:1),Fe=Un(qe),tt=(Z=a==null?void 0:a.at(-1))==null?void 0:Z.path,wt=a.length?`${tt}/${p}`:`/${p}`,s=((F=(B=r==null?void 0:r.data.attributes)==null?void 0:B.tree)==null?void 0:F.treeId)!==_,{data:x,isError:D}=await Er(j,Le,s);if(D)return;const k={attributes:{depth:qe,label:g,type:b,...fe&&{helperText:fe},...(te||ee)&&{messages:{...te&&{off:te},...ee&&{on:ee}}},...j&&{tree:{...x==null?void 0:x.workflow,treeId:_},treePath:wt},...I&&{isDecision:I},...L&&!I&&{values:Nr(d)},...T&&{required:T},...pe&&{step:pe},...be&&{repeatable:be},...O&&{hiddenValue:M}},children:Fe,name:p};n(Le?zl(tt||"",de,k):kl(tt||null,de,k)),i(null)};return S.useEffect(()=>{var N,ee,te,de,Re,Le,qe,Fe,tt,wt,s,x,D,k,K,Z,B,F,Oe;if(o==="edit"){const ue=((ee=(N=r==null?void 0:r.data)==null?void 0:N.attributes)==null?void 0:ee.values)||((Re=(de=(te=r==null?void 0:r.data)==null?void 0:te.children)==null?void 0:de.filter(({attributes:Ce})=>!(Ce!=null&&Ce.type)))==null?void 0:Re.map(({attributes:Ce},ct)=>{const{label:_r,value:Ke,message:ri}=Ce||{};return{id:String(ct),label:String(_r),value:String(Ke),...ri&&{message:String(ri)}}}));h((r==null?void 0:r.data.name)||""),q(((Le=r==null?void 0:r.data.attributes)==null?void 0:Le.type)||"text"),U(((qe=r==null?void 0:r.data.attributes)==null?void 0:qe.helperText)||""),C(((Fe=r==null?void 0:r.data.attributes)==null?void 0:Fe.required)||!1),ke(((tt=r==null?void 0:r.data.attributes)==null?void 0:tt.step)||""),m(((wt=r==null?void 0:r.data.attributes)==null?void 0:wt.label)||""),A(((s=r==null?void 0:r.data.attributes)==null?void 0:s.isDecision)||!1),f(ue!=null&&ue.length?ue:e),ge({off:((D=(x=r==null?void 0:r.data.attributes)==null?void 0:x.messages)==null?void 0:D.off)||"",on:((K=(k=r==null?void 0:r.data.attributes)==null?void 0:k.messages)==null?void 0:K.on)||""}),we(((B=(Z=r==null?void 0:r.data.attributes)==null?void 0:Z.tree)==null?void 0:B.treeId)||""),Me(((F=r==null?void 0:r.data.attributes)==null?void 0:F.repeatable)||!1),v(((Oe=r==null?void 0:r.data.attributes)==null?void 0:Oe.hiddenValue)||"")}},[(wr=(Ir=r==null?void 0:r.data.attributes)==null?void 0:Ir.tree)==null?void 0:wr.treeId,(Ar=r==null?void 0:r.data.attributes)==null?void 0:Ar.messages,(Sr=r==null?void 0:r.data.attributes)==null?void 0:Sr.helperText,(kr=r==null?void 0:r.data.attributes)==null?void 0:kr.isDecision,(Ot=r==null?void 0:r.data.attributes)==null?void 0:Ot.label,(Gt=r==null?void 0:r.data.attributes)==null?void 0:Gt.required,(at=r==null?void 0:r.data.attributes)==null?void 0:at.step,(Ct=r==null?void 0:r.data.attributes)==null?void 0:Ct.type,(It=r==null?void 0:r.data.attributes)==null?void 0:It.values,(Kt=r==null?void 0:r.data)==null?void 0:Kt.children,r==null?void 0:r.data.name,(zr=r==null?void 0:r.data.attributes)==null?void 0:zr.repeatable,(Jt=r==null?void 0:r.data.attributes)==null?void 0:Jt.hiddenValue,e,o]),{getDisabledValueField:$,handleAddValue:jr,handleChangeHelperText:Fn,handleChangeHiddenValue:Te,handleChangeIsDecisionField:Et,handleChangeLabel:E,handleChangeMessage:Yn,handleChangeName:ut,handleChangeOptionLabel:_e,handleChangeOptionMessage:Be,handleChangeOptionValue:w,handleChangeRepeatable:$n,handleChangeRequired:Tr,handleChangeStep:Ge,handleChangeTreeSelect:qt,handleChangeType:Pn,handleDeleteValue:Dr,handleSubmit:Wt,helperText:fe,hiddenValue:M,isBooleanField:P,isDecision:I,isDecisionField:L,isEditModal:Ye,isHiddenField:O,isLeaf:z,isRepeatableDisabled:Q,isRequiredDisabled:R,isTreeField:j,isWorkflowLoading:G,label:g,messages:he,name:p,repeatable:be,required:T,step:pe,treeSelected:_,type:b,uniqueNameErrorMessage:ze,values:d}},Pa={marginRight:"-20px !important",minWidth:"auto !important"},Ya={iconButton:Pa,iconButtonDelete:{...Pa,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:se.background,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},Nd=({onClose:e})=>{const{t}=$e.useTranslation(["translation","form"]),{values:n,required:r,name:o,uniqueNameErrorMessage:a,type:i,helperText:u,label:l,hiddenValue:d,isBooleanField:f,isDecision:p,isEditModal:h,isDecisionField:M,isHiddenField:v,isRequiredDisabled:g,isRepeatableDisabled:m,isTreeField:T,treeSelected:C,isWorkflowLoading:I,repeatable:A,isLeaf:b,messages:{on:q,off:_},handleChangeTreeSelect:we,handleChangeHelperText:fe,handleChangeOptionMessage:U,handleChangeRequired:pe,handleChangeName:ke,handleChangeType:he,handleChangeIsDecisionField:ge,handleChangeOptionLabel:be,handleDeleteValue:Me,handleChangeOptionValue:ze,handleChangeMessage:Ae,handleSubmit:Ye,handleAddValue:j,handleChangeLabel:O,handleChangeRepeatable:P,handleChangeHiddenValue:L}=Dd();return c.jsxs("form",{onSubmit:Ye,children:[c.jsxs(y.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[c.jsx(y.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:O,value:l,required:!0}),c.jsx(y.TextField,{label:t("name"),sx:{flex:1},onChange:ke,value:o,error:!!a,helperText:a,required:!0})]}),c.jsxs(y.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[c.jsx(gd,{value:i,onChange:he}),c.jsx(Td,{helperText:u,hiddenValue:d,isHiddenField:v,isTreeField:T,treeSelected:C,handleChangeTreeSelect:we,handleChangeHelperText:fe,handleChangeHiddenValue:L})]}),f&&c.jsxs(y.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[c.jsx(y.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:Ae("on"),value:q}),c.jsx(y.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:Ae("off"),value:_})]}),c.jsxs(y.Stack,{paddingY:1,children:[c.jsx(y.FormGroup,{children:c.jsx(y.FormControlLabel,{disabled:m,control:c.jsx(y.Checkbox,{checked:A,onChange:P}),label:t("repeatable",{ns:"form"})})}),c.jsx(y.FormGroup,{children:c.jsx(y.FormControlLabel,{disabled:g,control:c.jsx(y.Checkbox,{checked:r,onChange:pe}),label:t("required")})}),(b||h)&&c.jsx(y.FormGroup,{children:c.jsx(y.FormControlLabel,{disabled:!M,control:c.jsx(y.Checkbox,{checked:p,onChange:ge}),label:t("decisionField",{ns:"form"})})})]}),M&&c.jsxs(c.Fragment,{children:[c.jsx("h4",{children:t("values")}),n==null?void 0:n.map(({value:R,label:Q,id:z,message:$})=>c.jsxs(y.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[c.jsx(y.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:be,value:Q,inputProps:{"data-id":z},required:!0}),c.jsx(y.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:ze,value:R,inputProps:{"data-id":z},required:!0}),c.jsx(y.TextField,{label:"Message",sx:{flex:1},onChange:U,value:$,inputProps:{"data-id":z}}),n.length>1&&c.jsx(y.IconButton,{color:"warning",sx:Ya.iconButtonDelete,value:z,onClick:Me,children:c.jsx(za,{})})]},z))]}),M&&c.jsx(y.Box,{justifyContent:"flex-end",display:"flex",children:c.jsx(y.IconButton,{color:"success",sx:Ya.iconButton,onClick:j,children:c.jsx(ka,{})})}),c.jsxs(y.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[c.jsx(y.Button,{variant:"text",onClick:e,children:t("cancel")}),c.jsx(y.Button,{variant:"contained",type:"submit",disabled:!!a||I,isLoading:I,loadingIndicator:c.jsx(y.CircularProgress,{size:14}),children:t("validate")})]})]})};var Cn={},Ed=De;Object.defineProperty(Cn,"__esModule",{value:!0});var Fa=Cn.default=void 0,Od=Ed(Ne()),Cd=c,Id=(0,Od.default)((0,Cd.jsx)("path",{d:"M17 11h3c1.11 0 2-.9 2-2V5c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1H9.01V5c0-1.11-.9-2-2-2H4c-1.1 0-2 .9-2 2v4c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2V8h2v7.01c0 1.65 1.34 2.99 2.99 2.99H15v1c0 1.11.9 2 2 2h3c1.11 0 2-.9 2-2v-4c0-1.11-.9-2-2-2h-3c-1.11 0-2 .9-2 2v1h-1.01c-.54 0-.99-.45-.99-.99V8h2v1c0 1.1.9 2 2 2z"}),"AccountTreeRounded");Fa=Cn.default=Id;var In={},wd=De;Object.defineProperty(In,"__esModule",{value:!0});var Ua=In.default=void 0,Ad=wd(Ne()),Sd=c,kd=(0,Ad.default)((0,Sd.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 10h-3v3c0 .55-.45 1-1 1s-1-.45-1-1v-3H8c-.55 0-1-.45-1-1s.45-1 1-1h3V8c0-.55.45-1 1-1s1 .45 1 1v3h3c.55 0 1 .45 1 1s-.45 1-1 1z"}),"AddBoxRounded");Ua=In.default=kd;var wn={},zd=De;Object.defineProperty(wn,"__esModule",{value:!0});var Va=wn.default=void 0,_d=zd(Ne()),Rd=c,Ld=(0,_d.default)((0,Rd.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v10zM9 9h6c.55 0 1 .45 1 1v8c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-8c0-.55.45-1 1-1zm6.5-5-.71-.71c-.18-.18-.44-.29-.7-.29H9.91c-.26 0-.52.11-.7.29L8.5 4H6c-.55 0-1 .45-1 1s.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1h-2.5z"}),"DeleteOutlineRounded");Va=wn.default=Ld;var An={},$d=De;Object.defineProperty(An,"__esModule",{value:!0});var Qa=An.default=void 0,Pd=$d(Ne()),Yd=c,Fd=(0,Pd.default)((0,Yd.jsx)("path",{d:"M3 17.46v3.04c0 .28.22.5.5.5h3.04c.13 0 .26-.05.35-.15L17.81 9.94l-3.75-3.75L3.15 17.1c-.1.1-.15.22-.15.36zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"EditRounded");Qa=An.default=Fd;var Sn={},Ud=De;Object.defineProperty(Sn,"__esModule",{value:!0});var Ba=Sn.default=void 0,Vd=Ud(Ne()),Qd=c,Bd=(0,Vd.default)((0,Qd.jsx)("path",{d:"M12 3c-4.8 0-9 3.86-9 9 0 2.12.74 4.07 1.97 5.61l-1.68 1.68c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l1.68-1.68C7.93 20.26 9.88 21 12 21c2.3 0 4.61-.88 6.36-2.64C20.12 16.61 21 14.3 21 12V5c0-1.1-.9-2-2-2h-7zm3.83 9.26-5.16 4.63c-.16.15-.41.14-.56-.01-.14-.14-.16-.36-.04-.52l2.44-3.33-4.05-.4c-.44-.04-.63-.59-.3-.89l5.16-4.63c.16-.15.41-.14.56.01.14.14.16.36.04.52l-2.44 3.33 4.05.4c.45.04.63.59.3.89z"}),"EnergySavingsLeafRounded");Ba=Sn.default=Bd;var kn={},qd=De;Object.defineProperty(kn,"__esModule",{value:!0});var qa=kn.default=void 0,Wd=qd(Ne()),Wa=c,Gd=(0,Wd.default)([(0,Wa.jsx)("path",{d:"M14.14 12h-.06c.81 0 1.28-.91.82-1.57L9.82 3.17c-.4-.57-1.24-.57-1.64 0L3.1 10.43c-.46.66.01 1.57.82 1.57h-.06L.99 16.46c-.43.66.05 1.54.84 1.54H7v2c0 1.1.9 2 2 2s2-.9 2-2v-2h5.17c.79 0 1.27-.88.84-1.54L14.14 12z"},"0"),(0,Wa.jsx)("path",{d:"M23.01 16.46 20.14 12h-.06c.81 0 1.28-.91.82-1.57l-5.08-7.26c-.4-.57-1.24-.57-1.64 0l-1.57 2.24 3.11 4.44c.43.61.48 1.41.14 2.07-.08.16-.18.3-.3.43l2.29 3.57c.4.62.42 1.4.07 2.04-.01.02-.02.03-.03.04h4.28c.79 0 1.27-.88.84-1.54zM13 20c0 1.1.9 2 2 2s2-.9 2-2v-1h-4v1z"},"1")],"ForestRounded");qa=kn.default=Gd;var zn={},Kd=De;Object.defineProperty(zn,"__esModule",{value:!0});var Ga=zn.default=void 0,Jd=Kd(Ne()),Zd=c,Xd=(0,Jd.default)((0,Zd.jsx)("path",{d:"M12 4V2.21c0-.45-.54-.67-.85-.35l-2.8 2.79c-.2.2-.2.51 0 .71l2.79 2.79c.32.31.86.09.86-.36V6c3.31 0 6 2.69 6 6 0 .79-.15 1.56-.44 2.25-.15.36-.04.77.23 1.04.51.51 1.37.33 1.64-.34.37-.91.57-1.91.57-2.95 0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-.79.15-1.56.44-2.25.15-.36.04-.77-.23-1.04-.51-.51-1.37-.33-1.64.34C4.2 9.96 4 10.96 4 12c0 4.42 3.58 8 8 8v1.79c0 .45.54.67.85.35l2.79-2.79c.2-.2.2-.51 0-.71l-2.79-2.79c-.31-.31-.85-.09-.85.36V18z"}),"LoopRounded");Ga=zn.default=Xd;var _n={},Hd=De;Object.defineProperty(_n,"__esModule",{value:!0});var Ka=_n.default=void 0,ef=Hd(Ne()),tf=c,rf=(0,ef.default)((0,tf.jsx)("path",{d:"M16.96 12h.08c.81 0 1.28-.91.82-1.57l-5.08-7.25c-.4-.57-1.24-.57-1.64 0L6.1 10.43c-.46.66.02 1.57.83 1.57h.04l-2.9 4.46c-.44.66.04 1.54.84 1.54h5.08v2.02c0 1.09.89 1.98 1.98 1.98 1.09 0 1.98-.89 1.98-1.98V18h5.15c.8 0 1.28-.89.83-1.55L16.96 12z"}),"ParkRounded");Ka=_n.default=rf;var Rn={},nf=De;Object.defineProperty(Rn,"__esModule",{value:!0});var Ja=Rn.default=void 0,of=nf(Ne()),af=c,sf=(0,of.default)((0,af.jsx)("path",{d:"M12 6.5c2.76 0 5 2.24 5 5 0 .51-.1 1-.24 1.46l3.06 3.06c1.39-1.23 2.49-2.77 3.18-4.53C21.27 7.11 17 4 12 4c-1.27 0-2.49.2-3.64.57l2.17 2.17c.47-.14.96-.24 1.47-.24zM2.71 3.16c-.39.39-.39 1.02 0 1.41l1.97 1.97C3.06 7.83 1.77 9.53 1 11.5 2.73 15.89 7 19 12 19c1.52 0 2.97-.3 4.31-.82l2.72 2.72c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L4.13 3.16c-.39-.39-1.03-.39-1.42 0zM12 16.5c-2.76 0-5-2.24-5-5 0-.77.18-1.5.49-2.14l1.57 1.57c-.03.18-.06.37-.06.57 0 1.66 1.34 3 3 3 .2 0 .38-.03.57-.07L14.14 16c-.65.32-1.37.5-2.14.5zm2.97-5.33c-.15-1.4-1.25-2.49-2.64-2.64l2.64 2.64z"}),"VisibilityOffRounded");Ja=Rn.default=sf;var Ln={},cf=De;Object.defineProperty(Ln,"__esModule",{value:!0});var Za=Ln.default=void 0,uf=cf(Ne()),lf=c,df=(0,uf.default)((0,lf.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 12.5c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"VisibilityRounded");Za=Ln.default=df;const Ee={actionButton:{minWidth:"auto !important"},container:{background:se.background,borderRadius:"1rem"},containerField:{background:se.background,border:`solid 1px ${se.primary}`,borderRadius:"1rem"},containerHidden:{background:se.background,border:`solid 1px ${se.borderGrey}`,borderRadius:"1rem"},containerTree:{background:se.tertiary,border:`solid 1px ${se.primary}`,borderRadius:"1rem"},containerValue:{background:se.background,border:`solid 1px ${se.secondary}`,borderRadius:"1rem"},icon:{color:se.grey500},nodeSvg:{stroke:"transparent !important"},stepChip:{fontSize:".7rem !important",fontWeight:"bold",height:"20px !important"},title:{display:"-webkit-box",margin:0,overflow:"hidden",textAlign:"right",textOverflow:"ellipsis",webkitBoxOrient:"vertical",webkitLineClamp:2}},ff=e=>{const t=!!e,n=e==="tree";return e==="hidden"?Ee.containerHidden:n?Ee.containerTree:t?Ee.containerField:Ee.containerValue},pf=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:o,hierarchyPointNode:a,size:i=220})=>{var q;const{t:u}=$e.useTranslation(["translation","form"]),{attributes:l}=e||{},{isRoot:d,isLeaf:f,required:p,isDecision:h,step:M,type:v,label:g,repeatable:m}=l||{},T=!!v,C=v==="tree",I=v==="hidden",A=!T,b=!d&&!f;return c.jsxs("g",{children:[c.jsx(y.GlobalStyles,{styles:{".rd3t-node svg":Ee.nodeSvg}}),c.jsx(y.Box,{component:"foreignObject",height:i,width:i,x:`-${i/2}`,y:`-${i/2}`,sx:ff(v),children:c.jsxs(y.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[c.jsxs(y.Stack,{alignItems:"flex-end",spacing:.5,children:[T&&c.jsxs(y.Stack,{direction:"row",spacing:1,alignItems:"center",children:[M&&c.jsx(y.Tooltip,{title:`${u("step",{ns:"form"})} ${(q=e==null?void 0:e.attributes)==null?void 0:q.step}`,placement:"left",arrow:!0,children:c.jsx(y.Chip,{color:"primary",size:"small",label:M,sx:Ee.stepChip})}),c.jsx(y.Typography,{variant:"subtitle2",sx:Ee.title,children:c.jsx("strong",{children:g})})]}),T&&c.jsx(y.Chip,{color:"info",size:"small",label:u(`type.${v}`,{ns:"form"})}),p&&c.jsx(y.Stack,{direction:"row",spacing:.5,children:p&&c.jsx(y.Chip,{color:"warning",size:"small",variant:"outlined",label:u("required")})}),c.jsx(y.Stack,{spacing:.5,alignItems:"flex-end",children:A&&c.jsx(y.Typography,{variant:"subtitle2",sx:Ee.title,children:c.jsx("strong",{children:g})})}),c.jsxs(y.Stack,{paddingTop:.5,spacing:.5,direction:"row",children:[m&&c.jsx(y.Tooltip,{title:u("isARepeatable"),placement:"bottom",arrow:!0,children:c.jsx(Ga,{style:Ee.icon})}),f&&c.jsx(y.Tooltip,{title:u("isALeaf"),placement:"bottom",arrow:!0,children:c.jsx(Ba,{style:Ee.icon})}),I&&c.jsx(y.Tooltip,{title:u("isAHidden"),placement:"bottom",arrow:!0,children:c.jsx(Ja,{style:Ee.icon})}),d&&c.jsx(y.Tooltip,{title:u("isTheRoot"),placement:"bottom",arrow:!0,children:c.jsx(Ka,{style:Ee.icon})}),b&&c.jsx(y.Tooltip,{title:u("isABranch"),placement:"bottom",arrow:!0,children:c.jsx(Fa,{style:Ee.icon})}),C&&c.jsx(y.Tooltip,{title:u("isATree"),placement:"bottom",arrow:!0,children:c.jsx(qa,{style:Ee.icon})})]})]}),c.jsxs(y.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!d&&c.jsx(y.Tooltip,{title:u("remove"),arrow:!0,children:c.jsx(y.Button,{variant:"text",sx:Ee.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(a),children:c.jsx(Va,{})})}),!A&&c.jsx(y.Tooltip,{title:u("edit"),arrow:!0,children:c.jsx(y.Button,{variant:"text",color:"secondary",sx:Ee.actionButton,size:"small",onClick:()=>n==null?void 0:n(a),children:c.jsx(Qa,{})})}),!h&&c.jsx(y.Tooltip,{title:u("add"),arrow:!0,children:c.jsx(y.Button,{variant:"text",color:"success",sx:Ee.actionButton,size:"small",onClick:()=>t==null?void 0:t(a),children:c.jsx(Ua,{})})}),C&&c.jsx(y.Tooltip,{title:u("show"),arrow:!0,children:c.jsx(y.Button,{variant:"text",color:"info",sx:Ee.actionButton,size:"small",onClick:()=>o==null?void 0:o(a),children:c.jsx(Za,{})})})]})]})})]})},hf=S.memo(pf),Xa=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=Ue();return{handleAddChildren:d=>{t(d),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:d=>{t(d),e("delete")},handleEditChildren:d=>{t(d),e("edit")},handleOpenTreeModal:d=>{var p,h;const f={label:d==null?void 0:d.data.attributes.label,path:((h=(p=d==null?void 0:d.data)==null?void 0:p.attributes)==null?void 0:h.treePath)||""};r(M=>[...M,f]),n(!0)}}},gf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:o,onNodeMouseOut:a,addChildren:i})=>{const{handleDeleteChildren:u,handleEditChildren:l,handleAddChildren:d,handleOpenTreeModal:f}=Xa();return c.jsx(hf,{addChildren:i,nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:o,onNodeMouseOut:a,onAddChildren:d,onOpenTreeModal:f,onDeleteChildren:u,onEditChildren:l})},Ha=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:o,onNodeMouseOut:a,addChildren:i})=>c.jsx(gf,{addChildren:i,nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:o,onNodeMouseOut:a}),mf=()=>{const{t:e}=$e.useTranslation(["modal","snackMessage"]),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=Ue(),o=n==="edit";return{closeModal:()=>r(null),getTitleModalDelete:()=>{var h,M;const p=(M=(h=t==null?void 0:t.data)==null?void 0:h.attributes)==null?void 0:M.label;return e("deleteTitle",{name:p,ns:"modal"})},getTitleModalMutation:()=>{var M;const p=(M=t==null?void 0:t.data)==null?void 0:M.attributes.label;return p?e(o?"editTitle":"addTitle",{name:p,ns:"modal"}):e("addFirstTitle",{name:p,ns:"modal"})},isDeleteModal:n==="delete",isModalMutationOpen:o||n==="add"}},yf=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=Ue(),{name:r,errorName:o,id:a}=e;return{disabled:!!e.id&&!n,errorName:o,handleChangeName:l=>{const{value:d}=l.target;if(!d){t(f=>({...f,errorName:"Champs requis",name:l.target.value}));return}t(f=>({...f,errorName:"",name:l.target.value}))},id:a,name:r}},vf=()=>{const{t:e}=$e.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:o}=yf();return c.jsx(y.TextField,{required:!0,label:e("treeName",{ns:"form"}),size:"small",onChange:n,value:t,error:!!r,disabled:o})},bf=()=>{var M,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=Ue(),{handleCloseTreeModal:o}=Xa(),{getTitleModalMutation:a,closeModal:i,getTitleModalDelete:u,isModalMutationOpen:l,isDeleteModal:d}=mf(),f=(M=n==null?void 0:n.at(-1))==null?void 0:M.path,p=(v=n==null?void 0:n.at(-1))==null?void 0:v.label,h=e&&Nt(e,f);return c.jsxs(c.Fragment,{children:[c.jsxs(td,{children:[c.jsx(Xl,{children:c.jsxs(y.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[c.jsx(Di,{}),!!r&&c.jsxs(y.Stack,{direction:"row",alignItems:"center",spacing:2,children:[c.jsx(vf,{}),c.jsx(La,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0,fetchWorkflowsOnOpen:!0})]})]})}),c.jsx(ed,{children:c.jsx(Zn,{data:e,renderCustomNodeElement:Ha})}),c.jsx(nd,{children:c.jsx(wi,{value:e})}),c.jsx(Jl,{children:c.jsx(Yl,{value:e})})]}),c.jsx(wa,{open:l,onClose:i,title:a(),children:c.jsx(Nd,{onClose:i})}),c.jsx(wa,{open:d,onClose:i,title:u(),children:c.jsx(ad,{onClose:i})}),c.jsx(Gl,{open:t,onClose:o,title:p,children:h&&c.jsx(Zn,{data:h,renderCustomNodeElement:Ha})})]})},Mf="0.10.2",xf=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[o,a]=S.useState(it.currentHierarchyPointNode),[i,u]=S.useState(it.modalOpen),[l,d]=S.useState(it.treeModalOpen),[f,p]=S.useState(it.treePath),[h,M]=S.useReducer(Rl,n||it.tree),[v,g]=S.useState(r?{...it.currentTree,id:r}:it.currentTree),m=S.useMemo(()=>({currentHierarchyPointNode:o,currentTree:v,dispatchTree:M,endPoint:t,modalOpen:i,setCurrentHierarchyPointNode:a,setCurrentTree:g,setModalOpen:u,setTreeModalOpen:d,setTreePath:p,tree:h,treeModalOpen:l,treePath:f,version:Mf}),[o,i,l,f,h,v,t]);return On(v.id,{enabled:!!r,onSuccess:async T=>{T&&(g({id:T==null?void 0:T.id,name:T==null?void 0:T.label}),M(Ia((T==null?void 0:T.workflow)||null)))}}),c.jsx(Kn.Provider,{value:m,children:e})},Tf={close:"Close",createTree:"Create Tree",downloadJSONFile:"Download JSON File",reset:"Reset",resetTree:"Reset tree",save:"Save",update:"Update"},jf={error:{fetchTree:"An error has occurred. Please try again",saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},Df={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isABranch:"Is a branch",isAHidden:"Is a hidden field",isALeaf:"Is a leaf",isARepeatable:"Is a repeatable",isATree:"Is a tree",isTheRoot:"Is the root",label:"Label",name:"Name",remove:"Remove",required:"Required",save:"Save",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},Nf={close:"Fermer",createTree:"Créer un arbre",downloadJSONFile:"Télécharger le fichier JSON",reset:"Réinitialiser",resetTree:"Réinitialiser l'arbre",save:"Enregistrer",update:"Modifier"},ei={decisionField:"Champs de décision",helperText:"Texte d'information",hiddenValue:"Valeur caché",label:"Label",mustBeUnique:"Doit être unique",newTree:"Nouvel arbre",offMessage:"Message (désactiver)",onMessage:"Message (activer)",repeatable:"Répétable",staticFields:"Champs statiques",step:"Étape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case à cocher",date:"Date",email:"Email",file:"Fichier",hidden:"Champs caché",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"Téléphone",text:"Texte",time:"Temps",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},ti={addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ à « {{name}} »",deleteTitle:"Voulez vraiment supprimer « {{name}} »",editTitle:"Éditer le champ « {{name}} »",resetTreeContent:"Êtes-vous sûr de vouloir réinitialiser l'arbre ?",saveTree:"Enregistrer l'arbre"},Ef={error:{fetchTree:"Une erreur est survenue veuillez réessayer",saveTree:"Une erreur est survenue veuillez réessayer",updateTree:"Une erreur est survenue veuillez réessayer"},success:{saveTree:"Arbre enregistré",updateTree:"Arbre mis à jour"}},Of={add:"Ajouter",cancel:"Annuler",disabled:"Désactivé",edit:"Éditer",isABranch:"Est une branche",isAHidden:"Est un champs caché",isALeaf:"Est une feuille",isARepeatable:"Est répétable",isATree:"Est un arbre",isTheRoot:"Est la racine",label:"Label",name:"Nom",remove:"Supprimer",required:"Requis",save:"Enregistrer",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};At.use(si).use($e.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!0},resources:{en:{button:Tf,form:ei,modal:ti,snackMessage:jf,translation:Df},fr:{button:Nf,form:ei,modal:ti,snackMessage:Ef,translation:Of}},returnNull:!1}).then(()=>{document.documentElement.lang!==At.resolvedLanguage&&At.resolvedLanguage&&document.documentElement.setAttribute("lang",At.resolvedLanguage)}),At.on("languageChanged",e=>{document.documentElement.setAttribute("lang",e)});const Cf=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(S.useLayoutEffect(()=>{ft.defaults.baseURL=t,ft.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),c.jsx(dt.QueryClientProvider,{client:gi,children:c.jsx(vi,{authToken:e,children:c.jsx(xf,{endPoint:t,initialTree:n,initialTreeId:r,children:c.jsx(hi,{children:c.jsx(Ti,{children:c.jsx(bf,{})})})})})}));je.TreePlusIcon=Gn,je.Treege=Cf,Object.defineProperty(je,Symbol.toStringTag,{value:"Module"})});