treege 0.8.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.umd.cjs CHANGED
@@ -1,4 +1,4 @@
1
- (function(Se,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):(Se=typeof globalThis<"u"?globalThis:Se||self,U(Se.treege={},Se.React,Se.axios,Se.reactQuery,Se.designSystem,Se.ReactDOM,Se.reactI18next,Se.langJson,Se.codemirrorThemeDracula,Se.CodeMirror,Se.i18n,Se.LanguageDetector))})(this,function(Se,U,Rt,$t,N,ul,Qe,ll,cl,fl,dl,hl){"use strict";function pl(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=pl(U);function ri(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var i=[null];i.push.apply(i,arguments);var o=Function.bind.apply(t,i);return new o}return 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 sn={},gl={get exports(){return sn},set exports(e){sn=e}},un={};/**
1
+ (function(Se,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):(Se=typeof globalThis<"u"?globalThis:Se||self,U(Se.treege={},Se.React,Se.axios,Se.reactQuery,Se.designSystem,Se.ReactDOM,Se.reactI18next,Se.langJson,Se.codemirrorThemeDracula,Se.CodeMirror,Se.i18n,Se.LanguageDetector))})(this,function(Se,U,Rt,$t,w,vl,Be,bl,Ml,_l,xl,Tl){"use strict";function wl(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=wl(U);function Qo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Xr(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 Jr={exports:{}},sn={};/**
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 Yo;function ml(){if(Yo)return un;Yo=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 un.Fragment=n,un.jsx=a,un.jsxs=a,un}var ln={};/**
9
+ */var Wo;function Nl(){if(Wo)return sn;Wo=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 sn.Fragment=n,sn.jsx=a,sn.jsxs=a,sn}var un={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,36 +14,36 @@
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 Vo;function yl(){return Vo||(Vo=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"),y=Symbol.iterator,m="@@iterator";function v(p){if(p===null||typeof p!="object")return null;var S=y&&p[y]||p[m];return typeof S=="function"?S:null}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(p){{for(var S=arguments.length,L=new Array(S>1?S-1:0),Z=1;Z<S;Z++)L[Z-1]=arguments[Z];O("error",p,L)}}function O(p,S,L){{var Z=M.ReactDebugCurrentFrame,se=Z.getStackAddendum();se!==""&&(S+="%s",L=L.concat([se]));var ce=L.map(function(ie){return String(ie)});ce.unshift("Warning: "+S),Function.prototype.apply.call(console[p],console,ce)}}var x=!1,g=!1,j=!1,C=!1,I=!1,k;k=Symbol.for("react.module.reference");function E(p){return!!(typeof p=="string"||typeof p=="function"||p===r||p===o||I||p===i||p===u||p===c||C||p===h||x||g||j||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===k||p.getModuleId!==void 0))}function $(p,S,L){var Z=p.displayName;if(Z)return Z;var se=S.displayName||S.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 S=p;return X(S)+".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,ce=se._payload,ie=se._init;try{return H(ie(ce))}catch{return null}}}return null}var b=Object.assign,z=0,w,R,P,B,T,A,V;function K(){}K.__reactDisabledLog=!0;function q(){{if(z===0){w=console.log,R=console.info,P=console.warn,B=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:b({},p,{value:w}),info:b({},p,{value:R}),warn:b({},p,{value:P}),error:b({},p,{value:B}),group:b({},p,{value:T}),groupCollapsed:b({},p,{value:A}),groupEnd:b({},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,S,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,S){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 ce;ce=Q.current,Q.current=null,q();try{if(S){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(st){Z=st}Reflect.construct(p,[],ie)}else{try{ie.call()}catch(st){Z=st}p.call(ie.prototype)}}else{try{throw Error()}catch(st){Z=st}p()}}catch(st){if(st&&Z&&typeof st.stack=="string"){for(var ne=st.stack.split(`
19
- `),Ie=Z.stack.split(`
20
- `),De=ne.length-1,_e=Ie.length-1;De>=1&&_e>=0&&ne[De]!==Ie[_e];)_e--;for(;De>=1&&_e>=0;De--,_e--)if(ne[De]!==Ie[_e]){if(De!==1||_e!==1)do if(De--,_e--,_e<0||ne[De]!==Ie[_e]){var ke=`
21
- `+ne[De].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(De>=1&&_e>=0);break}}}finally{re=!1,Q.current=ce,J(),Error.prepareStackTrace=se}var Dt=p?p.displayName||p.name:"",ni=Dt?ee(Dt):"";return typeof p=="function"&&te.set(p,ni),ni}function Ue(p,S,L){return Y(p,!1)}function G(p){var S=p.prototype;return!!(S&&S.isReactComponent)}function tt(p,S,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 Ue(p.render);case d:return tt(p.type,S,L);case f:{var Z=p,se=Z._payload,ce=Z._init;try{return tt(ce(se),S,L)}catch{}}}return""}var at=Object.prototype.hasOwnProperty,jt={},Vr=M.ReactDebugCurrentFrame;function tn(p){if(p){var S=p._owner,L=tt(p.type,p._source,S?S.type:null);Vr.setExtraStackFrame(L)}else Vr.setExtraStackFrame(null)}function $o(p,S,L,Z,se){{var ce=Function.call.bind(at);for(var ie in p)if(ce(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](S,ie,Z,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(De){ne=De}ne&&!(ne instanceof Error)&&(tn(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),tn(null)),ne instanceof Error&&!(ne.message in jt)&&(jt[ne.message]=!0,tn(se),D("Failed %s type: %s",L,ne.message),tn(null))}}}var Lo=Array.isArray;function Ln(p){return Lo(p)}function Po(p){{var S=typeof Symbol=="function"&&Symbol.toStringTag,L=S&&p[Symbol.toStringTag]||p.constructor.name||"Object";return L}}function Fo(p){try{return qr(p),!1}catch{return!0}}function qr(p){return""+p}function Br(p){if(Fo(p))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Po(p)),qr(p)}var zt=M.ReactCurrentOwner,Uo={key:!0,ref:!0,__self:!0,__source:!0},Qr,Wr,Pn;Pn={};function Gr(p){if(at.call(p,"ref")){var S=Object.getOwnPropertyDescriptor(p,"ref").get;if(S&&S.isReactWarning)return!1}return p.ref!==void 0}function Kr(p){if(at.call(p,"key")){var S=Object.getOwnPropertyDescriptor(p,"key").get;if(S&&S.isReactWarning)return!1}return p.key!==void 0}function Hr(p,S){if(typeof p.ref=="string"&&zt.current&&S&&zt.current.stateNode!==S){var L=H(zt.current.type);Pn[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(zt.current.type),p.ref),Pn[L]=!0)}}function Xr(p,S){{var L=function(){Qr||(Qr=!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)",S))};L.isReactWarning=!0,Object.defineProperty(p,"key",{get:L,configurable:!0})}}function Jr(p,S){{var L=function(){Wr||(Wr=!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)",S))};L.isReactWarning=!0,Object.defineProperty(p,"ref",{get:L,configurable:!0})}}var Zr=function(p,S,L,Z,se,ce,ie){var ne={$$typeof:t,type:p,key:S,ref:L,props:ie,_owner:ce};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 ei(p,S,L,Z,se){{var ce,ie={},ne=null,Ie=null;L!==void 0&&(Br(L),ne=""+L),Kr(S)&&(Br(S.key),ne=""+S.key),Gr(S)&&(Ie=S.ref,Hr(S,se));for(ce in S)at.call(S,ce)&&!Uo.hasOwnProperty(ce)&&(ie[ce]=S[ce]);if(p&&p.defaultProps){var De=p.defaultProps;for(ce in De)ie[ce]===void 0&&(ie[ce]=De[ce])}if(ne||Ie){var _e=typeof p=="function"?p.displayName||p.name||"Unknown":p;ne&&Xr(ie,_e),Ie&&Jr(ie,_e)}return Zr(p,ne,Ie,se,Z,zt.current,ie)}}var nn=M.ReactCurrentOwner,Fn=M.ReactDebugCurrentFrame;function Tt(p){if(p){var S=p._owner,L=tt(p.type,p._source,S?S.type:null);Fn.setExtraStackFrame(L)}else Fn.setExtraStackFrame(null)}var rn;rn=!1;function on(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Un(){{if(nn.current){var p=H(nn.current.type);if(p)return`
17
+ */var Go;function El(){return Go||(Go=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"),v=Symbol.iterator,m="@@iterator";function y(p){if(p===null||typeof p!="object")return null;var S=v&&p[v]||p[m];return typeof S=="function"?S:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function D(p){{for(var S=arguments.length,L=new Array(S>1?S-1:0),Z=1;Z<S;Z++)L[Z-1]=arguments[Z];O("error",p,L)}}function O(p,S,L){{var Z=_.ReactDebugCurrentFrame,se=Z.getStackAddendum();se!==""&&(S+="%s",L=L.concat([se]));var le=L.map(function(ie){return String(ie)});le.unshift("Warning: "+S),Function.prototype.apply.call(console[p],console,le)}}var x=!1,g=!1,j=!1,C=!1,I=!1,k;k=Symbol.for("react.module.reference");function E(p){return!!(typeof p=="string"||typeof p=="function"||p===r||p===o||I||p===i||p===u||p===c||C||p===h||x||g||j||typeof p=="object"&&p!==null&&(p.$$typeof===f||p.$$typeof===d||p.$$typeof===a||p.$$typeof===s||p.$$typeof===l||p.$$typeof===k||p.getModuleId!==void 0))}function $(p,S,L){var Z=p.displayName;if(Z)return Z;var se=S.displayName||S.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 S=p;return X(S)+".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 b=Object.assign,z=0,N,R,P,B,T,A,V;function K(){}K.__reactDisabledLog=!0;function q(){{if(z===0){N=console.log,R=console.info,P=console.warn,B=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:b({},p,{value:N}),info:b({},p,{value:R}),warn:b({},p,{value:P}),error:b({},p,{value:B}),group:b({},p,{value:T}),groupCollapsed:b({},p,{value:A}),groupEnd:b({},p,{value:V})})}z<0&&D("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Q=_.ReactCurrentDispatcher,W;function ee(p,S,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,S){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,q();try{if(S){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(st){Z=st}Reflect.construct(p,[],ie)}else{try{ie.call()}catch(st){Z=st}p.call(ie.prototype)}}else{try{throw Error()}catch(st){Z=st}p()}}catch(st){if(st&&Z&&typeof st.stack=="string"){for(var ne=st.stack.split(`
19
+ `),je=Z.stack.split(`
20
+ `),Ee=ne.length-1,_e=je.length-1;Ee>=1&&_e>=0&&ne[Ee]!==je[_e];)_e--;for(;Ee>=1&&_e>=0;Ee--,_e--)if(ne[Ee]!==je[_e]){if(Ee!==1||_e!==1)do if(Ee--,_e--,_e<0||ne[Ee]!==je[_e]){var ze=`
21
+ `+ne[Ee].replace(" at new "," at ");return p.displayName&&ze.includes("<anonymous>")&&(ze=ze.replace("<anonymous>",p.displayName)),typeof p=="function"&&te.set(p,ze),ze}while(Ee>=1&&_e>=0);break}}}finally{re=!1,Q.current=le,J(),Error.prepareStackTrace=se}var Dt=p?p.displayName||p.name:"",Hr=Dt?ee(Dt):"";return typeof p=="function"&&te.set(p,Hr),Hr}function Ue(p,S,L){return Y(p,!1)}function G(p){var S=p.prototype;return!!(S&&S.isReactComponent)}function tt(p,S,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 Ue(p.render);case d:return tt(p.type,S,L);case f:{var Z=p,se=Z._payload,le=Z._init;try{return tt(le(se),S,L)}catch{}}}return""}var at=Object.prototype.hasOwnProperty,jt={},$r=_.ReactDebugCurrentFrame;function tn(p){if(p){var S=p._owner,L=tt(p.type,p._source,S?S.type:null);$r.setExtraStackFrame(L)}else $r.setExtraStackFrame(null)}function Uo(p,S,L,Z,se){{var le=Function.call.bind(at);for(var ie in p)if(le(p,ie)){var ne=void 0;try{if(typeof p[ie]!="function"){var je=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 je.name="Invariant Violation",je}ne=p[ie](S,ie,Z,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ee){ne=Ee}ne&&!(ne instanceof Error)&&(tn(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),tn(null)),ne instanceof Error&&!(ne.message in jt)&&(jt[ne.message]=!0,tn(se),D("Failed %s type: %s",L,ne.message),tn(null))}}}var Yo=Array.isArray;function zn(p){return Yo(p)}function Vo(p){{var S=typeof Symbol=="function"&&Symbol.toStringTag,L=S&&p[Symbol.toStringTag]||p.constructor.name||"Object";return L}}function qo(p){try{return Lr(p),!1}catch{return!0}}function Lr(p){return""+p}function Pr(p){if(qo(p))return D("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Vo(p)),Lr(p)}var zt=_.ReactCurrentOwner,Bo={key:!0,ref:!0,__self:!0,__source:!0},Fr,Ur,Rn;Rn={};function Yr(p){if(at.call(p,"ref")){var S=Object.getOwnPropertyDescriptor(p,"ref").get;if(S&&S.isReactWarning)return!1}return p.ref!==void 0}function Vr(p){if(at.call(p,"key")){var S=Object.getOwnPropertyDescriptor(p,"key").get;if(S&&S.isReactWarning)return!1}return p.key!==void 0}function qr(p,S){if(typeof p.ref=="string"&&zt.current&&S&&zt.current.stateNode!==S){var L=H(zt.current.type);Rn[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(zt.current.type),p.ref),Rn[L]=!0)}}function Br(p,S){{var L=function(){Fr||(Fr=!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)",S))};L.isReactWarning=!0,Object.defineProperty(p,"key",{get:L,configurable:!0})}}function Qr(p,S){{var L=function(){Ur||(Ur=!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)",S))};L.isReactWarning=!0,Object.defineProperty(p,"ref",{get:L,configurable:!0})}}var Wr=function(p,S,L,Z,se,le,ie){var ne={$$typeof:t,type:p,key:S,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 Gr(p,S,L,Z,se){{var le,ie={},ne=null,je=null;L!==void 0&&(Pr(L),ne=""+L),Vr(S)&&(Pr(S.key),ne=""+S.key),Yr(S)&&(je=S.ref,qr(S,se));for(le in S)at.call(S,le)&&!Bo.hasOwnProperty(le)&&(ie[le]=S[le]);if(p&&p.defaultProps){var Ee=p.defaultProps;for(le in Ee)ie[le]===void 0&&(ie[le]=Ee[le])}if(ne||je){var _e=typeof p=="function"?p.displayName||p.name||"Unknown":p;ne&&Br(ie,_e),je&&Qr(ie,_e)}return Wr(p,ne,je,se,Z,zt.current,ie)}}var nn=_.ReactCurrentOwner,$n=_.ReactDebugCurrentFrame;function Tt(p){if(p){var S=p._owner,L=tt(p.type,p._source,S?S.type:null);$n.setExtraStackFrame(L)}else $n.setExtraStackFrame(null)}var rn;rn=!1;function on(p){return typeof p=="object"&&p!==null&&p.$$typeof===t}function Ln(){{if(nn.current){var p=H(nn.current.type);if(p)return`
22
22
 
23
- Check the render method of \``+p+"`."}return""}}function ti(p){{if(p!==void 0){var S=p.fileName.replace(/^.*[\\\/]/,""),L=p.lineNumber;return`
23
+ Check the render method of \``+p+"`."}return""}}function Kr(p){{if(p!==void 0){var S=p.fileName.replace(/^.*[\\\/]/,""),L=p.lineNumber;return`
24
24
 
25
- Check your code at `+S+":"+L+"."}return""}}var Yn={};function F(p){{var S=Un();if(!S){var L=typeof p=="string"?p:p.displayName||p.name;L&&(S=`
25
+ Check your code at `+S+":"+L+"."}return""}}var Pn={};function F(p){{var S=Ln();if(!S){var L=typeof p=="string"?p:p.displayName||p.name;L&&(S=`
26
26
 
27
- Check the top-level render call using <`+L+">.")}return S}}function he(p,S){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var L=F(S);if(Yn[L])return;Yn[L]=!0;var Z="";p&&p._owner&&p._owner!==nn.current&&(Z=" It was passed a child from "+H(p._owner.type)+"."),Tt(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),Tt(null)}}function pe(p,S){{if(typeof p!="object")return;if(Ln(p))for(var L=0;L<p.length;L++){var Z=p[L];on(Z)&&he(Z,S)}else if(on(p))p._store&&(p._store.validated=!0);else if(p){var se=v(p);if(typeof se=="function"&&se!==p.entries)for(var ce=se.call(p),ie;!(ie=ce.next()).done;)on(ie.value)&&he(ie.value,S)}}}function Te(p){{var S=p.type;if(S==null||typeof S=="string")return;var L;if(typeof S=="function")L=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===l||S.$$typeof===d))L=S.propTypes;else return;if(L){var Z=H(S);$o(L,p.props,"prop",Z,p)}else if(S.PropTypes!==void 0&&!rn){rn=!0;var se=H(S);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ye(p){{for(var S=Object.keys(p.props),L=0;L<S.length;L++){var Z=S[L];if(Z!=="children"&&Z!=="key"){Tt(p),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Tt(null);break}}p.ref!==null&&(Tt(p),D("Invalid attribute `ref` supplied to `React.Fragment`."),Tt(null))}}function Ve(p,S,L,Z,se,ce){{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=ti(se);Ie?ne+=Ie:ne+=Un();var De;p===null?De="null":Ln(p)?De="array":p!==void 0&&p.$$typeof===t?(De="<"+(H(p.type)||"Unknown")+" />",ne=" Did you accidentally export a JSX literal instead of a component?"):De=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",De,ne)}var _e=ei(p,S,L,se,ce);if(_e==null)return _e;if(ie){var ke=S.children;if(ke!==void 0)if(Z)if(Ln(ke)){for(var Dt=0;Dt<ke.length;Dt++)pe(ke[Dt],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 pe(ke,p)}return p===r?Ye(_e):Te(_e),_e}}function nt(p,S,L){return Ve(p,S,L,!0)}function Ke(p,S,L){return Ve(p,S,L,!1)}var mt=Ke,an=nt;ln.Fragment=r,ln.jsx=mt,ln.jsxs=an}()),ln}(function(e){process.env.NODE_ENV==="production"?e.exports=ml():e.exports=yl()})(gl);const Vn=sn.Fragment,_=sn.jsx,oe=sn.jsxs,vl=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Vn,jsx:_,jsxs:oe},Symbol.toStringTag,{value:"Module"})),Me={background:"#0a1929",borderBlue:"#0f353e",borderGrey:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primary:"#0ed3b4",secondary:"#007ef6",tertiary:"#0f353e"},bl={components:{MuiButton:{styleOverrides:{root:({ownerState:e})=>({...e.color==="primary"&&e.variant==="contained"&&{color:`${Me.tertiary} !important`}})}}},palette:{background:{default:Me.background,paper:Me.background},mode:"dark",primary:{main:Me.primary},secondary:{main:Me.secondary}}},Ml=({children:e})=>oe(Vn,{children:[_(N.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%"}}}),_(N.ThemeProvider,{theme:bl,children:e})]}),_l=new $t.QueryClient({defaultOptions:{queries:{retry:!1}}}),xl={authToken:void 0},Tl=U.createContext(xl),wl=({children:e,authToken:t})=>{const n=U.useMemo(()=>({authToken:t}),[t]);return _(Tl.Provider,{value:n,children:e})},qo={dispatchSnackbar:()=>null,snackbar:{open:!1}},Bo=U.createContext(qo),qn={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},Nl=(e,t="success")=>({message:e,severity:t,type:qn.openSnackbar}),Qo=()=>({type:qn.closeSnackbar}),El=(e,t)=>{switch(t.type){case qn.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case qn.closeSnackbar:return{...e,open:!1};default:throw new Error}},Dl={snackbarAlert:{width:"100%"}},Ol=({children:e})=>{const[t,n]=U.useReducer(El,qo.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(Qo()),l=U.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(Bo.Provider,{value:l,children:[_(N.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:_(N.Alert,{onClose:s,severity:o,sx:Dl.snackbarAlert,variant:"filled",children:r})}),e]})},Cl="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Sl=()=>_("img",{src:Cl,alt:"Treege",height:30,width:"auto"});function Al(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 Il(){return this.eachAfter(Al)}function kl(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 jl(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 zl(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 Rl(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 $l(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Ll(e){for(var t=this,n=Pl(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 Pl(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 Fl(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Ul(){var e=[];return this.each(function(t){e.push(t)}),e}function Yl(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Vl(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function ii(e,t){var n=new cn(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,l,u;for(t==null&&(t=Bl);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 cn(s[l])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(Wl)}function ql(){return ii(this).eachBefore(Ql)}function Bl(e){return e.children}function Ql(e){e.data=e.data.data}function Wl(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function cn(e){this.data=e,this.depth=this.height=0,this.parent=null}cn.prototype=ii.prototype={constructor:cn,count:Il,each:kl,eachAfter:zl,eachBefore:jl,sum:Rl,sort:$l,path:Ll,ancestors:Fl,descendants:Ul,leaves:Yl,links:Vl,copy:ql};function Gl(e,t){return e.parent===t.parent?1:2}function oi(e){var t=e.children;return t?t[0]:e.t}function ai(e){var t=e.children;return t?t[t.length-1]:e.t}function Kl(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 Hl(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 Xl(e,t,n){return e.a.parent===t.parent?e.a:n}function Bn(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}Bn.prototype=Object.create(cn.prototype);function Jl(e){for(var t=new Bn(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 Bn(o[a],a)),i.parent=n;return(t.parent=new Bn(null,0)).children=[t],t}function Zl(){var e=Gl,t=1,n=1,r=null;function i(u){var c=Jl(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 y=d===f?1:e(d,f)/2,m=y-d.x,v=t/(f.x+y+m),M=n/(h.depth||1);u.eachBefore(function(D){D.x=(D.x+m)*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){Hl(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,y=c,m=f.parent.children[0],v=f.m,M=h.m,D=y.m,O=m.m,x;y=ai(y),f=oi(f),y&&f;)m=oi(m),h=ai(h),h.a=u,x=y.z+D-f.z-v+e(y._,f._),x>0&&(Kl(Xl(y,u,d),u,x),v+=x,M+=x),D+=y.m,v+=f.m,O+=m.m,M+=h.m;y&&!ai(h)&&(h.t=y,h.m+=D-M),f&&!oi(m)&&(m.t=f,m.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 si="http://www.w3.org/1999/xhtml";const Wo={svg:"http://www.w3.org/2000/svg",xhtml:si,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Wo.hasOwnProperty(t)?{space:Wo[t],local:e}:e}function ec(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===si&&t.documentElement.namespaceURI===si?t.createElement(e):t.createElementNS(n,e)}}function tc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Go(e){var t=Qn(e);return(t.local?tc:ec)(t)}function nc(){}function ui(e){return e==null?nc:function(){return this.querySelector(e)}}function rc(e){typeof e!="function"&&(e=ui(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 He(r,this._parents)}function ic(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function oc(){return[]}function Ko(e){return e==null?oc:function(){return this.querySelectorAll(e)}}function ac(e){return function(){return ic(e.apply(this,arguments))}}function sc(e){typeof e=="function"?e=ac(e):e=Ko(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 He(r,i)}function Ho(e){return function(){return this.matches(e)}}function Xo(e){return function(t){return t.matches(e)}}var uc=Array.prototype.find;function lc(e){return function(){return uc.call(this.children,e)}}function cc(){return this.firstElementChild}function fc(e){return this.select(e==null?cc:lc(typeof e=="function"?e:Xo(e)))}var dc=Array.prototype.filter;function hc(){return Array.from(this.children)}function pc(e){return function(){return dc.call(this.children,e)}}function gc(e){return this.selectAll(e==null?hc:pc(typeof e=="function"?e:Xo(e)))}function mc(e){typeof e!="function"&&(e=Ho(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 He(r,this._parents)}function Jo(e){return new Array(e.length)}function yc(){return new He(this._enter||this._groups.map(Jo),this._parents)}function Wn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Wn.prototype={constructor:Wn,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 vc(e){return function(){return e}}function bc(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 Wn(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function Mc(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 Wn(e,o[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(f[s])===l&&(i[s]=l)}function _c(e){return e.__data__}function xc(e,t){if(!arguments.length)return Array.from(this,_c);var n=t?Mc:bc,r=this._parents,i=this._groups;typeof e!="function"&&(e=vc(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=Tc(e.call(c,c&&c.__data__,u,r)),y=h.length,m=s[u]=new Array(y),v=a[u]=new Array(y),M=l[u]=new Array(f);n(c,d,m,v,M,h,t);for(var D=0,O=0,x,g;D<y;++D)if(x=m[D]){for(D>=O&&(O=D+1);!(g=v[O])&&++O<y;);x._next=g||null}}return a=new He(a,r),a._enter=s,a._exit=l,a}function Tc(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wc(){return new He(this._exit||this._groups.map(Jo),this._parents)}function Nc(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 Ec(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,y=0;y<d;++y)(h=u[y]||c[y])&&(f[y]=h);for(;l<i;++l)s[l]=n[l];return new He(s,this._parents)}function Dc(){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 Oc(e){e||(e=Cc);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 He(i,this._parents).order()}function Cc(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 Ac(){return Array.from(this)}function Ic(){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 kc(){let e=0;for(const t of this)++e;return e}function jc(){return!this.node()}function zc(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 Rc(e){return function(){this.removeAttribute(e)}}function $c(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Lc(e,t){return function(){this.setAttribute(e,t)}}function Pc(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Fc(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Uc(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 Yc(e,t){var n=Qn(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?$c:Rc:typeof t=="function"?n.local?Uc:Fc:n.local?Pc:Lc)(n,t))}function Zo(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Vc(e){return function(){this.style.removeProperty(e)}}function qc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Bc(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Qc(e,t,n){return arguments.length>1?this.each((t==null?Vc:typeof t=="function"?Bc:qc)(e,t,n??"")):Lt(this.node(),e)}function Lt(e,t){return e.style.getPropertyValue(t)||Zo(e).getComputedStyle(e,null).getPropertyValue(t)}function Wc(e){return function(){delete this[e]}}function Gc(e,t){return function(){this[e]=t}}function Kc(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Hc(e,t){return arguments.length>1?this.each((t==null?Wc:typeof t=="function"?Kc:Gc)(e,t)):this.node()[e]}function ea(e){return e.trim().split(/^|\s+/)}function li(e){return e.classList||new ta(e)}function ta(e){this._node=e,this._names=ea(e.getAttribute("class")||"")}ta.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 na(e,t){for(var n=li(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function ra(e,t){for(var n=li(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Xc(e){return function(){na(this,e)}}function Jc(e){return function(){ra(this,e)}}function Zc(e,t){return function(){(t.apply(this,arguments)?na:ra)(this,e)}}function ef(e,t){var n=ea(e+"");if(arguments.length<2){for(var r=li(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Zc:t?Xc:Jc)(n,t))}function tf(){this.textContent=""}function nf(e){return function(){this.textContent=e}}function rf(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function of(e){return arguments.length?this.each(e==null?tf:(typeof e=="function"?rf:nf)(e)):this.node().textContent}function af(){this.innerHTML=""}function sf(e){return function(){this.innerHTML=e}}function uf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function lf(e){return arguments.length?this.each(e==null?af:(typeof e=="function"?uf:sf)(e)):this.node().innerHTML}function cf(){this.nextSibling&&this.parentNode.appendChild(this)}function ff(){return this.each(cf)}function df(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hf(){return this.each(df)}function pf(e){var t=typeof e=="function"?e:Go(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function gf(){return null}function mf(e,t){var n=typeof e=="function"?e:Go(e),r=t==null?gf:typeof t=="function"?t:ui(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function yf(){var e=this.parentNode;e&&e.removeChild(this)}function vf(){return this.each(yf)}function bf(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _f(e){return this.select(e?Mf:bf)}function xf(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tf(e){return function(t){e.call(this,t,this.__data__)}}function wf(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 Nf(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 Ef(e,t,n){return function(){var r=this.__on,i,o=Tf(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 Df(e,t,n){var r=wf(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?Ef:Nf,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function ia(e,t,n){var r=Zo(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 Of(e,t){return function(){return ia(this,e,t)}}function Cf(e,t){return function(){return ia(this,e,t.apply(this,arguments))}}function Sf(e,t){return this.each((typeof t=="function"?Cf:Of)(e,t))}function*Af(){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 oa=[null];function He(e,t){this._groups=e,this._parents=t}function fn(){return new He([[document.documentElement]],oa)}function If(){return this}He.prototype=fn.prototype={constructor:He,select:rc,selectAll:sc,selectChild:fc,selectChildren:gc,filter:mc,data:xc,enter:yc,exit:wc,join:Nc,merge:Ec,selection:If,order:Dc,sort:Oc,call:Sc,nodes:Ac,node:Ic,size:kc,empty:jc,each:zc,attr:Yc,style:Qc,property:Hc,classed:ef,text:of,html:lf,raise:ff,lower:hf,append:pf,insert:mf,remove:vf,clone:_f,datum:xf,on:Df,dispatch:Sf,[Symbol.iterator]:Af};function qe(e){return typeof e=="string"?new He([[document.querySelector(e)]],[document.documentElement]):new He([[e]],oa)}function kf(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ot(e,t){if(e=kf(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 jf={value:()=>{}};function ci(){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 Gn(n)}function Gn(e){this._=e}function zf(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}})}Gn.prototype=ci.prototype={constructor:Gn,on:function(e,t){var n=this._,r=zf(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Rf(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]=aa(n[i],e.name,t);else if(t==null)for(i in n)n[i]=aa(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 Gn(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 Rf(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function aa(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=jf,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const fi={capture:!0,passive:!1};function di(e){e.preventDefault(),e.stopImmediatePropagation()}function $f(e){var t=e.document.documentElement,n=qe(e).on("dragstart.drag",di,fi);"onselectstart"in t?n.on("selectstart.drag",di,fi):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Lf(e,t){var n=e.document.documentElement,r=qe(e).on("dragstart.drag",null);t&&(r.on("click.drag",di,fi),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 hi(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function sa(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dn(){}var hn=.7,Kn=1/hn,Pt="\\s*([+-]?\\d+)\\s*",pn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pf=/^#([0-9a-f]{3,8})$/,Ff=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Uf=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),Yf=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${pn}\\)$`),Vf=new RegExp(`^rgba\\(${ut},${ut},${ut},${pn}\\)$`),qf=new RegExp(`^hsl\\(${pn},${ut},${ut}\\)$`),Bf=new RegExp(`^hsla\\(${pn},${ut},${ut},${pn}\\)$`),ua={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};hi(dn,gn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:la,formatHex:la,formatHex8:Qf,formatHsl:Wf,formatRgb:ca,toString:ca});function la(){return this.rgb().formatHex()}function Qf(){return this.rgb().formatHex8()}function Wf(){return ga(this).formatHsl()}function ca(){return this.rgb().formatRgb()}function gn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Pf.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?fa(t):n===3?new We(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Hn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Hn(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=Ff.exec(e))?new We(t[1],t[2],t[3],1):(t=Uf.exec(e))?new We(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Yf.exec(e))?Hn(t[1],t[2],t[3],t[4]):(t=Vf.exec(e))?Hn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=qf.exec(e))?pa(t[1],t[2]/100,t[3]/100,1):(t=Bf.exec(e))?pa(t[1],t[2]/100,t[3]/100,t[4]):ua.hasOwnProperty(e)?fa(ua[e]):e==="transparent"?new We(NaN,NaN,NaN,0):null}function fa(e){return new We(e>>16&255,e>>8&255,e&255,1)}function Hn(e,t,n,r){return r<=0&&(e=t=n=NaN),new We(e,t,n,r)}function Gf(e){return e instanceof dn||(e=gn(e)),e?(e=e.rgb(),new We(e.r,e.g,e.b,e.opacity)):new We}function pi(e,t,n,r){return arguments.length===1?Gf(e):new We(e,t,n,r??1)}function We(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}hi(We,pi,sa(dn,{brighter(e){return e=e==null?Kn:Math.pow(Kn,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?hn:Math.pow(hn,e),new We(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new We(Ct(this.r),Ct(this.g),Ct(this.b),Xn(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:da,formatHex:da,formatHex8:Kf,formatRgb:ha,toString:ha}));function da(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function Kf(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function ha(){const e=Xn(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function Xn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function St(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function pa(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function ga(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof dn||(e=gn(e)),!e)return new rt;if(e instanceof rt)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 rt(a,s,l,e.opacity)}function Hf(e,t,n,r){return arguments.length===1?ga(e):new rt(e,t,n,r??1)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}hi(rt,Hf,sa(dn,{brighter(e){return e=e==null?Kn:Math.pow(Kn,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?hn:Math.pow(hn,e),new rt(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 We(gi(e>=240?e-240:e+120,i,r),gi(e,i,r),gi(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rt(ma(this.h),Jn(this.s),Jn(this.l),Xn(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=Xn(this.opacity);return`${e===1?"hsl(":"hsla("}${ma(this.h)}, ${Jn(this.s)*100}%, ${Jn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ma(e){return e=(e||0)%360,e<0?e+360:e}function Jn(e){return Math.max(0,Math.min(1,e||0))}function gi(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 ya=e=>()=>e;function Xf(e,t){return function(n){return e+n*t}}function Jf(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 Zf(e){return(e=+e)==1?va:function(t,n){return n-t?Jf(t,n,e):ya(isNaN(t)?n:t)}}function va(e,t){var n=t-e;return n?Xf(e,n):ya(isNaN(e)?t:e)}const ba=function e(t){var n=Zf(t);function r(i,o){var a=n((i=pi(i)).r,(o=pi(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=va(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 wt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var mi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,yi=new RegExp(mi.source,"g");function ed(e){return function(){return e}}function td(e){return function(t){return e(t)+""}}function nd(e,t){var n=mi.lastIndex=yi.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=mi.exec(e))&&(i=yi.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:wt(r,i)})),n=yi.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?td(l[0].x):ed(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 Ma=180/Math.PI,vi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function _a(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)*Ma,skewX:Math.atan(l)*Ma,scaleX:a,scaleY:s}}var Zn;function rd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?vi:_a(t.a,t.b,t.c,t.d,t.e,t.f)}function id(e){return e==null||(Zn||(Zn=document.createElementNS("http://www.w3.org/2000/svg","g")),Zn.setAttribute("transform",e),!(e=Zn.transform.baseVal.consolidate()))?vi:(e=e.matrix,_a(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,y){if(u!==d||c!==f){var m=h.push("translate(",null,t,null,n);y.push({i:m-4,x:wt(u,d)},{i:m-2,x:wt(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:wt(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:wt(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,f,h,y){if(u!==d||c!==f){var m=h.push(i(h)+"scale(",null,",",null,")");y.push({i:m-4,x:wt(u,d)},{i:m-2,x:wt(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 y=-1,m=f.length,v;++y<m;)d[(v=f[y]).i]=v.x(h);return d.join("")}}}var od=xa(rd,"px, ","px)","deg)"),ad=xa(id,", ",")",")"),sd=1e-12;function Ta(e){return((e=Math.exp(e))+1/e)/2}function ud(e){return((e=Math.exp(e))-1/e)/2}function ld(e){return((e=Math.exp(2*e))-1)/(e+1)}const cd=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,y=d-l,m=h*h+y*y,v,M;if(m<sd)M=Math.log(f/u)/t,v=function(C){return[s+C*h,l+C*y,u*Math.exp(t*C*M)]};else{var D=Math.sqrt(m),O=(f*f-u*u+r*m)/(2*u*n*D),x=(f*f-u*u-r*m)/(2*f*n*D),g=Math.log(Math.sqrt(O*O+1)-O),j=Math.log(Math.sqrt(x*x+1)-x);M=(j-g)/t,v=function(C){var I=C*M,k=Ta(g),E=u/(n*D)*(k*ld(t*I+g)-ud(g));return[s+E*h,l+E*y,u*k/Ta(t*I+g)]}}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 Ft=0,mn=0,yn=0,wa=1e3,er,vn,tr=0,At=0,nr=0,bn=typeof performance=="object"&&performance.now?performance:Date,Na=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function bi(){return At||(Na(fd),At=bn.now()+nr)}function fd(){At=0}function rr(){this._call=this._time=this._next=null}rr.prototype=Ea.prototype={constructor:rr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?bi():+n)+(t==null?0:+t),!this._next&&vn!==this&&(vn?vn._next=this:er=this,vn=this),this._call=e,this._time=n,Mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,Mi())}};function Ea(e,t,n){var r=new rr;return r.restart(e,t,n),r}function dd(){bi(),++Ft;for(var e=er,t;e;)(t=At-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ft}function Da(){At=(tr=bn.now())+nr,Ft=mn=0;try{dd()}finally{Ft=0,pd(),At=0}}function hd(){var e=bn.now(),t=e-tr;t>wa&&(nr-=t,tr=e)}function pd(){for(var e,t=er,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:er=n);vn=e,Mi(r)}function Mi(e){if(!Ft){mn&&(mn=clearTimeout(mn));var t=e-At;t>24?(e<1/0&&(mn=setTimeout(Da,e-bn.now()-nr)),yn&&(yn=clearInterval(yn))):(yn||(tr=bn.now(),yn=setInterval(hd,wa)),Ft=1,Na(Da))}}function Oa(e,t,n){var r=new rr;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var gd=ci("start","end","cancel","interrupt"),md=[],Ca=0,Sa=1,_i=2,ir=3,Aa=4,xi=5,or=6;function ar(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;yd(e,n,{name:t,index:r,group:i,on:gd,tween:md,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ca})}function Ti(e,t){var n=it(e,t);if(n.state>Ca)throw new Error("too late; already scheduled");return n}function lt(e,t){var n=it(e,t);if(n.state>ir)throw new Error("too late; already running");return n}function it(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function yd(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Ea(o,0,n.time);function o(u){n.state=Sa,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!==Sa)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===ir)return Oa(a);h.state===Aa?(h.state=or,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=or,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(Oa(function(){n.state===ir&&(n.state=Aa,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=_i,n.on.call("start",e,e.__data__,n.index,n.group),n.state===_i){for(n.state=ir,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=xi,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===xi&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=or,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function sr(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>_i&&r.state<xi,r.state=or,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function vd(e){return this.each(function(){sr(this,e)})}function bd(e,t){var n,r;return function(){var i=lt(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 Md(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=lt(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 _d(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=it(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?bd:Md)(n,e,t))}function wi(e,t,n){var r=e._id;return e.each(function(){var i=lt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return it(i,r).value[t]}}function Ia(e,t){var n;return(typeof t=="number"?wt:t instanceof gn?ba:(n=gn(t))?(t=n,ba):nd)(e,t)}function xd(e){return function(){this.removeAttribute(e)}}function Td(e){return function(){this.removeAttributeNS(e.space,e.local)}}function wd(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 Nd(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 Ed(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 Dd(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 Od(e,t){var n=Qn(e),r=n==="transform"?ad:Ia;return this.attrTween(e,typeof t=="function"?(n.local?Dd:Ed)(n,r,wi(this,"attr."+e,t)):t==null?(n.local?Td:xd)(n):(n.local?Nd:wd)(n,r,t))}function Cd(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 Ad(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 Id(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Cd(e,o)),n}return i._value=t,i}function kd(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=Qn(e);return this.tween(n,(r.local?Ad:Id)(r,t))}function jd(e,t){return function(){Ti(this,e).delay=+t.apply(this,arguments)}}function zd(e,t){return t=+t,function(){Ti(this,e).delay=t}}function Rd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?jd:zd)(t,e)):it(this.node(),t).delay}function $d(e,t){return function(){lt(this,e).duration=+t.apply(this,arguments)}}function Ld(e,t){return t=+t,function(){lt(this,e).duration=t}}function Pd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$d:Ld)(t,e)):it(this.node(),t).duration}function Fd(e,t){if(typeof t!="function")throw new Error;return function(){lt(this,e).ease=t}}function Ud(e){var t=this._id;return arguments.length?this.each(Fd(t,e)):it(this.node(),t).ease}function Yd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;lt(this,e).ease=n}}function Vd(e){if(typeof e!="function")throw new Error;return this.each(Yd(this._id,e))}function qd(e){typeof e!="function"&&(e=Ho(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 vt(r,this._parents,this._name,this._id)}function Bd(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 vt(a,this._parents,this._name,this._id)}function Qd(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 Wd(e,t,n){var r,i,o=Qd(t)?Ti:lt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function Gd(e,t){var n=this._id;return arguments.length<2?it(this.node(),n).on.on(e):this.each(Wd(n,e,t))}function Kd(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Hd(){return this.on("end.remove",Kd(this._id))}function Xd(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ui(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,ar(u[f],t,n,f,u,it(c,n)));return new vt(o,this._parents,t,n)}function Jd(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ko(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,y=it(c,n),m=0,v=f.length;m<v;++m)(h=f[m])&&ar(h,t,n,m,f,y);o.push(f),a.push(c)}return new vt(o,a,t,n)}var Zd=fn.prototype.constructor;function eh(){return new Zd(this._groups,this._parents)}function th(e,t){var n,r,i;return function(){var o=Lt(this,e),a=(this.style.removeProperty(e),Lt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function ka(e){return function(){this.style.removeProperty(e)}}function nh(e,t,n){var r,i=n+"",o;return function(){var a=Lt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function rh(e,t,n){var r,i,o;return function(){var a=Lt(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Lt(this,e))),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function ih(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var l=lt(this,e),u=l.on,c=l.value[o]==null?s||(s=ka(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),l.on=r}}function oh(e,t,n){var r=(e+="")=="transform"?od:Ia;return t==null?this.styleTween(e,th(e,r)).on("end.style."+e,ka(e)):typeof t=="function"?this.styleTween(e,rh(e,r,wi(this,"style."+e,t))).each(ih(this._id,e)):this.styleTween(e,nh(e,r,t),n).on("end.style."+e,null)}function ah(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sh(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ah(e,a,n)),r}return o._value=t,o}function uh(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,sh(e,t,n??""))}function lh(e){return function(){this.textContent=e}}function ch(e){return function(){var t=e(this);this.textContent=t??""}}function fh(e){return this.tween("text",typeof e=="function"?ch(wi(this,"text",e)):lh(e==null?"":e+""))}function dh(e){return function(t){this.textContent=e.call(this,t)}}function hh(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&dh(i)),t}return r._value=e,r}function ph(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,hh(e))}function gh(){for(var e=this._name,t=this._id,n=ja(),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=it(l,t);ar(l,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new vt(r,this._parents,e,n)}function mh(){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=lt(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 yh=0;function vt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ja(){return++yh}var bt=fn.prototype;vt.prototype={constructor:vt,select:Xd,selectAll:Jd,selectChild:bt.selectChild,selectChildren:bt.selectChildren,filter:qd,merge:Bd,selection:eh,transition:gh,call:bt.call,nodes:bt.nodes,node:bt.node,size:bt.size,empty:bt.empty,each:bt.each,on:Gd,attr:Od,attrTween:kd,style:oh,styleTween:uh,text:fh,textTween:ph,remove:Hd,tween:_d,delay:Rd,duration:Pd,ease:Ud,easeVarying:Vd,end:mh,[Symbol.iterator]:bt[Symbol.iterator]};function vh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var bh={time:null,delay:0,duration:250,ease:vh};function Mh(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 _h(e){var t,n;e instanceof vt?(t=e._id,e=e._name):(t=ja(),(n=bh).time=bi(),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])&&ar(l,e,t,u,a,n||Mh(l,t));return new vt(r,this._parents,e,t)}fn.prototype.interrupt=vd,fn.prototype.transition=_h;const ur=e=>()=>e;function xh(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 Mt(e,t,n){this.k=e,this.x=t,this.y=n}Mt.prototype={constructor:Mt,scale:function(e){return e===1?this:new Mt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Mt(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 lr=new Mt(1,0,0);Mt.prototype;function Ni(e){e.stopImmediatePropagation()}function Mn(e){e.preventDefault(),e.stopImmediatePropagation()}function Th(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wh(){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 za(){return this.__zoom||lr}function Nh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Eh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Dh(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 Ei(){var e=Th,t=wh,n=Dh,r=Nh,i=Eh,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=cd,u=ci("start","zoom","end"),c,d,f,h=500,y=150,m=0,v=10;function M(b){b.property("__zoom",za).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",k).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(b,z,w,R){var P=b.selection?b.selection():b;P.property("__zoom",za),b!==P?g(b,z,w,R):P.interrupt().each(function(){j(this,arguments).event(R).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},M.scaleBy=function(b,z,w,R){M.scaleTo(b,function(){var P=this.__zoom.k,B=typeof z=="function"?z.apply(this,arguments):z;return P*B},w,R)},M.scaleTo=function(b,z,w,R){M.transform(b,function(){var P=t.apply(this,arguments),B=this.__zoom,T=w==null?x(P):typeof w=="function"?w.apply(this,arguments):w,A=B.invert(T),V=typeof z=="function"?z.apply(this,arguments):z;return n(O(D(B,V),T,A),P,a)},w,R)},M.translateBy=function(b,z,w,R){M.transform(b,function(){return n(this.__zoom.translate(typeof z=="function"?z.apply(this,arguments):z,typeof w=="function"?w.apply(this,arguments):w),t.apply(this,arguments),a)},null,R)},M.translateTo=function(b,z,w,R,P){M.transform(b,function(){var B=t.apply(this,arguments),T=this.__zoom,A=R==null?x(B):typeof R=="function"?R.apply(this,arguments):R;return n(lr.translate(A[0],A[1]).scale(T.k).translate(typeof z=="function"?-z.apply(this,arguments):-z,typeof w=="function"?-w.apply(this,arguments):-w),B,a)},R,P)};function D(b,z){return z=Math.max(o[0],Math.min(o[1],z)),z===b.k?b:new Mt(z,b.x,b.y)}function O(b,z,w){var R=z[0]-w[0]*b.k,P=z[1]-w[1]*b.k;return R===b.x&&P===b.y?b:new Mt(b.k,R,P)}function x(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function g(b,z,w,R){b.on("start.zoom",function(){j(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(R).end()}).tween("zoom",function(){var P=this,B=arguments,T=j(P,B).event(R),A=t.apply(P,B),V=w==null?x(A):typeof w=="function"?w.apply(P,B):w,K=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),q=P.__zoom,J=typeof z=="function"?z.apply(P,B):z,Q=l(q.invert(V).concat(K/q.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 Mt(re,V[0]-ee[0]*re,V[1]-ee[1]*re)}T.zoom(null,W)}})}function j(b,z,w){return!w&&b.__zooming||new C(b,z)}function C(b,z){this.that=b,this.args=z,this.active=0,this.sourceEvent=null,this.extent=t.apply(b,z),this.taps=0}C.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,z){return this.mouse&&b!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&b!=="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(b){var z=qe(this.that).datum();u.call(b,this.that,new xh(b,{sourceEvent:this.sourceEvent,target:M,type:b,transform:this.that.__zoom,dispatch:u}),z)}};function I(b,...z){if(!e.apply(this,arguments))return;var w=j(this,z).event(b),R=this.__zoom,P=Math.max(o[0],Math.min(o[1],R.k*Math.pow(2,r.apply(this,arguments)))),B=Ot(b);if(w.wheel)(w.mouse[0][0]!==B[0]||w.mouse[0][1]!==B[1])&&(w.mouse[1]=R.invert(w.mouse[0]=B)),clearTimeout(w.wheel);else{if(R.k===P)return;w.mouse=[B,R.invert(B)],sr(this),w.start()}Mn(b),w.wheel=setTimeout(T,y),w.zoom("mouse",n(O(D(R,P),w.mouse[0],w.mouse[1]),w.extent,a));function T(){w.wheel=null,w.end()}}function k(b,...z){if(f||!e.apply(this,arguments))return;var w=b.currentTarget,R=j(this,z,!0).event(b),P=qe(b.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",K,!0),B=Ot(b,w),T=b.clientX,A=b.clientY;$f(b.view),Ni(b),R.mouse=[B,this.__zoom.invert(B)],sr(this),R.start();function V(q){if(Mn(q),!R.moved){var J=q.clientX-T,Q=q.clientY-A;R.moved=J*J+Q*Q>m}R.event(q).zoom("mouse",n(O(R.that.__zoom,R.mouse[0]=Ot(q,w),R.mouse[1]),R.extent,a))}function K(q){P.on("mousemove.zoom mouseup.zoom",null),Lf(q.view,R.moved),Mn(q),R.event(q).end()}}function E(b,...z){if(e.apply(this,arguments)){var w=this.__zoom,R=Ot(b.changedTouches?b.changedTouches[0]:b,this),P=w.invert(R),B=w.k*(b.shiftKey?.5:2),T=n(O(D(w,B),R,P),t.apply(this,z),a);Mn(b),s>0?qe(this).transition().duration(s).call(g,T,R,b):qe(this).call(M.transform,T,R,b)}}function $(b,...z){if(e.apply(this,arguments)){var w=b.touches,R=w.length,P=j(this,z,b.changedTouches.length===R).event(b),B,T,A,V;for(Ni(b),T=0;T<R;++T)A=w[T],V=Ot(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,B=!0,P.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(P.taps<2&&(d=V[0],c=setTimeout(function(){c=null},h)),sr(this),P.start())}}function X(b,...z){if(this.__zooming){var w=j(this,z).event(b),R=b.changedTouches,P=R.length,B,T,A,V;for(Mn(b),B=0;B<P;++B)T=R[B],A=Ot(T,this),w.touch0&&w.touch0[2]===T.identifier?w.touch0[0]=A:w.touch1&&w.touch1[2]===T.identifier&&(w.touch1[0]=A);if(T=w.that.__zoom,w.touch1){var K=w.touch0[0],q=w.touch0[1],J=w.touch1[0],Q=w.touch1[1],W=(W=J[0]-K[0])*W+(W=J[1]-K[1])*W,ee=(ee=Q[0]-q[0])*ee+(ee=Q[1]-q[1])*ee;T=D(T,Math.sqrt(W/ee)),A=[(K[0]+J[0])/2,(K[1]+J[1])/2],V=[(q[0]+Q[0])/2,(q[1]+Q[1])/2]}else if(w.touch0)A=w.touch0[0],V=w.touch0[1];else return;w.zoom("touch",n(O(T,A,V),w.extent,a))}}function H(b,...z){if(this.__zooming){var w=j(this,z).event(b),R=b.changedTouches,P=R.length,B,T;for(Ni(b),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),B=0;B<P;++B)T=R[B],w.touch0&&w.touch0[2]===T.identifier?delete w.touch0:w.touch1&&w.touch1[2]===T.identifier&&delete w.touch1;if(w.touch1&&!w.touch0&&(w.touch0=w.touch1,delete w.touch1),w.touch0)w.touch0[1]=this.__zoom.invert(w.touch0[0]);else if(w.end(),w.taps===2&&(T=Ot(T,this),Math.hypot(d[0]-T[0],d[1]-T[1])<v)){var A=qe(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return M.wheelDelta=function(b){return arguments.length?(r=typeof b=="function"?b:ur(+b),M):r},M.filter=function(b){return arguments.length?(e=typeof b=="function"?b:ur(!!b),M):e},M.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:ur(!!b),M):i},M.extent=function(b){return arguments.length?(t=typeof b=="function"?b:ur([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),M):t},M.scaleExtent=function(b){return arguments.length?(o[0]=+b[0],o[1]=+b[1],M):[o[0],o[1]]},M.translateExtent=function(b){return arguments.length?(a[0][0]=+b[0][0],a[1][0]=+b[1][0],a[0][1]=+b[0][1],a[1][1]=+b[1][1],M):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},M.constrain=function(b){return arguments.length?(n=b,M):n},M.duration=function(b){return arguments.length?(s=+b,M):s},M.interpolate=function(b){return arguments.length?(l=b,M):l},M.on=function(){var b=u.on.apply(u,arguments);return b===u?M:b},M.clickDistance=function(b){return arguments.length?(m=(b=+b)*b,M):Math.sqrt(m)},M.tapDistance=function(b){return arguments.length?(v=+b,M):v},M}var Ra=Object.prototype.hasOwnProperty;function _n(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--&&_n(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Ra.call(e,n)&&++r&&!Ra.call(t,n)||!(n in t)||!_n(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Be={},Oh={get exports(){return Be},set exports(e){Be=e}};(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,y,m,v){typeof h=="object"&&(y=h.depth,m=h.prototype,v=h.includeNonEnumerable,h=h.circular);var M=[],D=[],O=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof y>"u"&&(y=1/0);function x(g,j){if(g===null)return null;if(j===0)return g;var C,I;if(typeof g!="object")return g;if(n(g,r))C=new r;else if(n(g,i))C=new i;else if(n(g,o))C=new o(function(R,P){g.then(function(B){R(x(B,j-1))},function(B){P(x(B,j-1))})});else if(a.__isArray(g))C=[];else if(a.__isRegExp(g))C=new RegExp(g.source,d(g)),g.lastIndex&&(C.lastIndex=g.lastIndex);else if(a.__isDate(g))C=new Date(g.getTime());else{if(O&&Buffer.isBuffer(g))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(g.length):C=new Buffer(g.length),g.copy(C),C;n(g,Error)?C=Object.create(g):typeof m>"u"?(I=Object.getPrototypeOf(g),C=Object.create(I)):(C=Object.create(m),I=m)}if(h){var k=M.indexOf(g);if(k!=-1)return D[k];M.push(g),D.push(C)}n(g,r)&&g.forEach(function(R,P){var B=x(P,j-1),T=x(R,j-1);C.set(B,T)}),n(g,i)&&g.forEach(function(R){var P=x(R,j-1);C.add(P)});for(var E in g){var $;I&&($=Object.getOwnPropertyDescriptor(I,E)),!($&&$.set==null)&&(C[E]=x(g[E],j-1))}if(Object.getOwnPropertySymbols)for(var X=Object.getOwnPropertySymbols(g),E=0;E<X.length;E++){var H=X[E],b=Object.getOwnPropertyDescriptor(g,H);b&&!b.enumerable&&!v||(C[H]=x(g[H],j-1),b.enumerable||Object.defineProperty(C,H,{enumerable:!1}))}if(v)for(var z=Object.getOwnPropertyNames(g),E=0;E<z.length;E++){var w=z[E],b=Object.getOwnPropertyDescriptor(g,w);b&&b.enumerable||(C[w]=x(g[w],j-1),Object.defineProperty(C,w,{enumerable:!1}))}return C}return x(f,y)}a.clonePrototype=function(h){if(h===null)return null;var y=function(){};return y.prototype=h,new y};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)})(Oh);var cr,Ch=new Uint8Array(16);function Sh(){if(!cr&&(cr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!cr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return cr(Ch)}const Ah=/^(?:[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 Ih(e){return typeof e=="string"&&Ah.test(e)}for(var je=[],Di=0;Di<256;++Di)je.push((Di+256).toString(16).substr(1));function kh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(je[e[t+0]]+je[e[t+1]]+je[e[t+2]]+je[e[t+3]]+"-"+je[e[t+4]]+je[e[t+5]]+"-"+je[e[t+6]]+je[e[t+7]]+"-"+je[e[t+8]]+je[e[t+9]]+"-"+je[e[t+10]]+je[e[t+11]]+je[e[t+12]]+je[e[t+13]]+je[e[t+14]]+je[e[t+15]]).toLowerCase();if(!Ih(n))throw TypeError("Stringified UUID is invalid");return n}function Oi(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 kh(r)}var fr={},jh={get exports(){return fr},set exports(e){fr=e}},le={},$a={get exports(){return le},set exports(e){le=e}},dr={},zh={get exports(){return dr},set exports(e){dr=e}},ge={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+L+">.")}return S}}function de(p,S){{if(!p._store||p._store.validated||p.key!=null)return;p._store.validated=!0;var L=F(S);if(Pn[L])return;Pn[L]=!0;var Z="";p&&p._owner&&p._owner!==nn.current&&(Z=" It was passed a child from "+H(p._owner.type)+"."),Tt(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),Tt(null)}}function he(p,S){{if(typeof p!="object")return;if(zn(p))for(var L=0;L<p.length;L++){var Z=p[L];on(Z)&&de(Z,S)}else if(on(p))p._store&&(p._store.validated=!0);else if(p){var se=y(p);if(typeof se=="function"&&se!==p.entries)for(var le=se.call(p),ie;!(ie=le.next()).done;)on(ie.value)&&de(ie.value,S)}}}function Te(p){{var S=p.type;if(S==null||typeof S=="string")return;var L;if(typeof S=="function")L=S.propTypes;else if(typeof S=="object"&&(S.$$typeof===l||S.$$typeof===d))L=S.propTypes;else return;if(L){var Z=H(S);Uo(L,p.props,"prop",Z,p)}else if(S.PropTypes!==void 0&&!rn){rn=!0;var se=H(S);D("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",se||"Unknown")}typeof S.getDefaultProps=="function"&&!S.getDefaultProps.isReactClassApproved&&D("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Ye(p){{for(var S=Object.keys(p.props),L=0;L<S.length;L++){var Z=S[L];if(Z!=="children"&&Z!=="key"){Tt(p),D("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),Tt(null);break}}p.ref!==null&&(Tt(p),D("Invalid attribute `ref` supplied to `React.Fragment`."),Tt(null))}}function Ve(p,S,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 je=Kr(se);je?ne+=je:ne+=Ln();var Ee;p===null?Ee="null":zn(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 _e=Gr(p,S,L,se,le);if(_e==null)return _e;if(ie){var ze=S.children;if(ze!==void 0)if(Z)if(zn(ze)){for(var Dt=0;Dt<ze.length;Dt++)he(ze[Dt],p);Object.freeze&&Object.freeze(ze)}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(ze,p)}return p===r?Ye(_e):Te(_e),_e}}function nt(p,S,L){return Ve(p,S,L,!0)}function Ge(p,S,L){return Ve(p,S,L,!1)}var mt=Ge,an=nt;un.Fragment=r,un.jsx=mt,un.jsxs=an}()),un}process.env.NODE_ENV==="production"?Jr.exports=Nl():Jr.exports=El();var Zr=Jr.exports;const Fn=Zr.Fragment,M=Zr.jsx,oe=Zr.jsxs,Dl=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Fn,jsx:M,jsxs:oe},Symbol.toStringTag,{value:"Module"})),be={background:"#0a1929",borderBlue:"#0f353e",borderGrey:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primary:"#0ed3b4",secondary:"#007ef6",tertiary:"#0f353e"},Ol={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}}},Cl=({children:e})=>oe(Fn,{children:[M(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%"}}}),M(w.ThemeProvider,{theme:Ol,children:e})]}),Sl=new $t.QueryClient({defaultOptions:{queries:{retry:!1}}}),Al={authToken:void 0},Il=U.createContext(Al),kl=({children:e,authToken:t})=>{const n=U.useMemo(()=>({authToken:t}),[t]);return M(Il.Provider,{value:n,children:e})},Ko={dispatchSnackbar:()=>null,snackbar:{open:!1}},Ho=U.createContext(Ko),Un={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},jl=(e,t="success")=>({message:e,severity:t,type:Un.openSnackbar}),Xo=()=>({type:Un.closeSnackbar}),zl=(e,t)=>{switch(t.type){case Un.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case Un.closeSnackbar:return{...e,open:!1};default:throw new Error}},Rl={snackbarAlert:{width:"100%"}},$l=({children:e})=>{const[t,n]=U.useReducer(zl,Ko.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(Xo()),l=U.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(Ho.Provider,{value:l,children:[M(w.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:M(w.Alert,{onClose:s,severity:o,sx:Rl.snackbarAlert,variant:"filled",children:r})}),e]})},Ll="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Pl=()=>M("img",{src:Ll,alt:"Treege",height:30,width:"auto"});function Fl(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 Ul(){return this.eachAfter(Fl)}function Yl(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 Vl(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 ql(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 Bl(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 Ql(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Wl(e){for(var t=this,n=Gl(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 Gl(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 Kl(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Hl(){var e=[];return this.each(function(t){e.push(t)}),e}function Xl(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Jl(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function ei(e,t){var n=new ln(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,l,u;for(t==null&&(t=ec);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 ln(s[l])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(nc)}function Zl(){return ei(this).eachBefore(tc)}function ec(e){return e.children}function tc(e){e.data=e.data.data}function nc(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function ln(e){this.data=e,this.depth=this.height=0,this.parent=null}ln.prototype=ei.prototype={constructor:ln,count:Ul,each:Yl,eachAfter:ql,eachBefore:Vl,sum:Bl,sort:Ql,path:Wl,ancestors:Kl,descendants:Hl,leaves:Xl,links:Jl,copy:Zl};function rc(e,t){return e.parent===t.parent?1:2}function ti(e){var t=e.children;return t?t[0]:e.t}function ni(e){var t=e.children;return t?t[t.length-1]:e.t}function ic(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 oc(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 ac(e,t,n){return e.a.parent===t.parent?e.a:n}function Yn(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}Yn.prototype=Object.create(ln.prototype);function sc(e){for(var t=new Yn(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 Yn(o[a],a)),i.parent=n;return(t.parent=new Yn(null,0)).children=[t],t}function uc(){var e=rc,t=1,n=1,r=null;function i(u){var c=sc(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 v=d===f?1:e(d,f)/2,m=v-d.x,y=t/(f.x+v+m),_=n/(h.depth||1);u.eachBefore(function(D){D.x=(D.x+m)*y,D.y=D.depth*_})}return u}function o(u){var c=u.children,d=u.parent.children,f=u.i?d[u.i-1]:null;if(c){oc(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,v=c,m=f.parent.children[0],y=f.m,_=h.m,D=v.m,O=m.m,x;v=ni(v),f=ti(f),v&&f;)m=ti(m),h=ni(h),h.a=u,x=v.z+D-f.z-y+e(v._,f._),x>0&&(ic(ac(v,u,d),u,x),y+=x,_+=x),D+=v.m,y+=f.m,O+=m.m,_+=h.m;v&&!ni(h)&&(h.t=v,h.m+=D-_),f&&!ti(m)&&(m.t=f,m.m+=y-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 ri="http://www.w3.org/1999/xhtml";const Jo={svg:"http://www.w3.org/2000/svg",xhtml:ri,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Vn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Jo.hasOwnProperty(t)?{space:Jo[t],local:e}:e}function lc(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ri&&t.documentElement.namespaceURI===ri?t.createElement(e):t.createElementNS(n,e)}}function cc(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Zo(e){var t=Vn(e);return(t.local?cc:lc)(t)}function fc(){}function ii(e){return e==null?fc:function(){return this.querySelector(e)}}function dc(e){typeof e!="function"&&(e=ii(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 Ke(r,this._parents)}function hc(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function pc(){return[]}function ea(e){return e==null?pc:function(){return this.querySelectorAll(e)}}function gc(e){return function(){return hc(e.apply(this,arguments))}}function mc(e){typeof e=="function"?e=gc(e):e=ea(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 Ke(r,i)}function ta(e){return function(){return this.matches(e)}}function na(e){return function(t){return t.matches(e)}}var yc=Array.prototype.find;function vc(e){return function(){return yc.call(this.children,e)}}function bc(){return this.firstElementChild}function Mc(e){return this.select(e==null?bc:vc(typeof e=="function"?e:na(e)))}var _c=Array.prototype.filter;function xc(){return Array.from(this.children)}function Tc(e){return function(){return _c.call(this.children,e)}}function wc(e){return this.selectAll(e==null?xc:Tc(typeof e=="function"?e:na(e)))}function Nc(e){typeof e!="function"&&(e=ta(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 Ke(r,this._parents)}function ra(e){return new Array(e.length)}function Ec(){return new Ke(this._enter||this._groups.map(ra),this._parents)}function qn(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}qn.prototype={constructor:qn,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 Dc(e){return function(){return e}}function Oc(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 qn(e,o[a]);for(;a<l;++a)(s=t[a])&&(i[a]=s)}function Cc(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 qn(e,o[s]);for(s=0;s<c;++s)(l=t[s])&&u.get(f[s])===l&&(i[s]=l)}function Sc(e){return e.__data__}function Ac(e,t){if(!arguments.length)return Array.from(this,Sc);var n=t?Cc:Oc,r=this._parents,i=this._groups;typeof e!="function"&&(e=Dc(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=Ic(e.call(c,c&&c.__data__,u,r)),v=h.length,m=s[u]=new Array(v),y=a[u]=new Array(v),_=l[u]=new Array(f);n(c,d,m,y,_,h,t);for(var D=0,O=0,x,g;D<v;++D)if(x=m[D]){for(D>=O&&(O=D+1);!(g=y[O])&&++O<v;);x._next=g||null}}return a=new Ke(a,r),a._enter=s,a._exit=l,a}function Ic(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function kc(){return new Ke(this._exit||this._groups.map(ra),this._parents)}function jc(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 zc(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,v=0;v<d;++v)(h=u[v]||c[v])&&(f[v]=h);for(;l<i;++l)s[l]=n[l];return new Ke(s,this._parents)}function Rc(){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 $c(e){e||(e=Lc);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 Ke(i,this._parents).order()}function Lc(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pc(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Fc(){return Array.from(this)}function Uc(){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 Yc(){let e=0;for(const t of this)++e;return e}function Vc(){return!this.node()}function qc(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 Bc(e){return function(){this.removeAttribute(e)}}function Qc(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wc(e,t){return function(){this.setAttribute(e,t)}}function Gc(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Kc(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Hc(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 Xc(e,t){var n=Vn(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?Qc:Bc:typeof t=="function"?n.local?Hc:Kc:n.local?Gc:Wc)(n,t))}function ia(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Jc(e){return function(){this.style.removeProperty(e)}}function Zc(e,t,n){return function(){this.style.setProperty(e,t,n)}}function ef(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function tf(e,t,n){return arguments.length>1?this.each((t==null?Jc:typeof t=="function"?ef:Zc)(e,t,n??"")):Lt(this.node(),e)}function Lt(e,t){return e.style.getPropertyValue(t)||ia(e).getComputedStyle(e,null).getPropertyValue(t)}function nf(e){return function(){delete this[e]}}function rf(e,t){return function(){this[e]=t}}function of(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function af(e,t){return arguments.length>1?this.each((t==null?nf:typeof t=="function"?of:rf)(e,t)):this.node()[e]}function oa(e){return e.trim().split(/^|\s+/)}function oi(e){return e.classList||new aa(e)}function aa(e){this._node=e,this._names=oa(e.getAttribute("class")||"")}aa.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 sa(e,t){for(var n=oi(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function ua(e,t){for(var n=oi(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function sf(e){return function(){sa(this,e)}}function uf(e){return function(){ua(this,e)}}function lf(e,t){return function(){(t.apply(this,arguments)?sa:ua)(this,e)}}function cf(e,t){var n=oa(e+"");if(arguments.length<2){for(var r=oi(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?lf:t?sf:uf)(n,t))}function ff(){this.textContent=""}function df(e){return function(){this.textContent=e}}function hf(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function pf(e){return arguments.length?this.each(e==null?ff:(typeof e=="function"?hf:df)(e)):this.node().textContent}function gf(){this.innerHTML=""}function mf(e){return function(){this.innerHTML=e}}function yf(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function vf(e){return arguments.length?this.each(e==null?gf:(typeof e=="function"?yf:mf)(e)):this.node().innerHTML}function bf(){this.nextSibling&&this.parentNode.appendChild(this)}function Mf(){return this.each(bf)}function _f(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function xf(){return this.each(_f)}function Tf(e){var t=typeof e=="function"?e:Zo(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function wf(){return null}function Nf(e,t){var n=typeof e=="function"?e:Zo(e),r=t==null?wf:typeof t=="function"?t:ii(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Ef(){var e=this.parentNode;e&&e.removeChild(this)}function Df(){return this.each(Ef)}function Of(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Cf(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Sf(e){return this.select(e?Cf:Of)}function Af(e){return arguments.length?this.property("__data__",e):this.node().__data__}function If(e){return function(t){e.call(this,t,this.__data__)}}function kf(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 jf(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 zf(e,t,n){return function(){var r=this.__on,i,o=If(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 Rf(e,t,n){var r=kf(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?zf:jf,i=0;i<o;++i)this.each(s(r[i],t,n));return this}function la(e,t,n){var r=ia(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 $f(e,t){return function(){return la(this,e,t)}}function Lf(e,t){return function(){return la(this,e,t.apply(this,arguments))}}function Pf(e,t){return this.each((typeof t=="function"?Lf:$f)(e,t))}function*Ff(){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 ca=[null];function Ke(e,t){this._groups=e,this._parents=t}function cn(){return new Ke([[document.documentElement]],ca)}function Uf(){return this}Ke.prototype=cn.prototype={constructor:Ke,select:dc,selectAll:mc,selectChild:Mc,selectChildren:wc,filter:Nc,data:Ac,enter:Ec,exit:kc,join:jc,merge:zc,selection:Uf,order:Rc,sort:$c,call:Pc,nodes:Fc,node:Uc,size:Yc,empty:Vc,each:qc,attr:Xc,style:tf,property:af,classed:cf,text:pf,html:vf,raise:Mf,lower:xf,append:Tf,insert:Nf,remove:Df,clone:Sf,datum:Af,on:Rf,dispatch:Pf,[Symbol.iterator]:Ff};function qe(e){return typeof e=="string"?new Ke([[document.querySelector(e)]],[document.documentElement]):new Ke([[e]],ca)}function Yf(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Ot(e,t){if(e=Yf(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 Vf={value:()=>{}};function ai(){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 Bn(n)}function Bn(e){this._=e}function qf(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}})}Bn.prototype=ai.prototype={constructor:Bn,on:function(e,t){var n=this._,r=qf(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Bf(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]=fa(n[i],e.name,t);else if(t==null)for(i in n)n[i]=fa(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 Bn(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 Bf(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function fa(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Vf,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const si={capture:!0,passive:!1};function ui(e){e.preventDefault(),e.stopImmediatePropagation()}function Qf(e){var t=e.document.documentElement,n=qe(e).on("dragstart.drag",ui,si);"onselectstart"in t?n.on("selectstart.drag",ui,si):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Wf(e,t){var n=e.document.documentElement,r=qe(e).on("dragstart.drag",null);t&&(r.on("click.drag",ui,si),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 li(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function da(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fn(){}var dn=.7,Qn=1/dn,Pt="\\s*([+-]?\\d+)\\s*",hn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ut="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gf=/^#([0-9a-f]{3,8})$/,Kf=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),Hf=new RegExp(`^rgb\\(${ut},${ut},${ut}\\)$`),Xf=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${hn}\\)$`),Jf=new RegExp(`^rgba\\(${ut},${ut},${ut},${hn}\\)$`),Zf=new RegExp(`^hsl\\(${hn},${ut},${ut}\\)$`),ed=new RegExp(`^hsla\\(${hn},${ut},${ut},${hn}\\)$`),ha={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};li(fn,pn,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pa,formatHex:pa,formatHex8:td,formatHsl:nd,formatRgb:ga,toString:ga});function pa(){return this.rgb().formatHex()}function td(){return this.rgb().formatHex8()}function nd(){return Ma(this).formatHsl()}function ga(){return this.rgb().formatRgb()}function pn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Gf.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ma(t):n===3?new Qe(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wn(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wn(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=Kf.exec(e))?new Qe(t[1],t[2],t[3],1):(t=Hf.exec(e))?new Qe(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xf.exec(e))?Wn(t[1],t[2],t[3],t[4]):(t=Jf.exec(e))?Wn(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zf.exec(e))?ba(t[1],t[2]/100,t[3]/100,1):(t=ed.exec(e))?ba(t[1],t[2]/100,t[3]/100,t[4]):ha.hasOwnProperty(e)?ma(ha[e]):e==="transparent"?new Qe(NaN,NaN,NaN,0):null}function ma(e){return new Qe(e>>16&255,e>>8&255,e&255,1)}function Wn(e,t,n,r){return r<=0&&(e=t=n=NaN),new Qe(e,t,n,r)}function rd(e){return e instanceof fn||(e=pn(e)),e?(e=e.rgb(),new Qe(e.r,e.g,e.b,e.opacity)):new Qe}function ci(e,t,n,r){return arguments.length===1?rd(e):new Qe(e,t,n,r??1)}function Qe(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}li(Qe,ci,da(fn,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?dn:Math.pow(dn,e),new Qe(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qe(Ct(this.r),Ct(this.g),Ct(this.b),Gn(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:ya,formatHex:ya,formatHex8:id,formatRgb:va,toString:va}));function ya(){return`#${St(this.r)}${St(this.g)}${St(this.b)}`}function id(){return`#${St(this.r)}${St(this.g)}${St(this.b)}${St((isNaN(this.opacity)?1:this.opacity)*255)}`}function va(){const e=Gn(this.opacity);return`${e===1?"rgb(":"rgba("}${Ct(this.r)}, ${Ct(this.g)}, ${Ct(this.b)}${e===1?")":`, ${e})`}`}function Gn(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ct(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function St(e){return e=Ct(e),(e<16?"0":"")+e.toString(16)}function ba(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rt(e,t,n,r)}function Ma(e){if(e instanceof rt)return new rt(e.h,e.s,e.l,e.opacity);if(e instanceof fn||(e=pn(e)),!e)return new rt;if(e instanceof rt)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 rt(a,s,l,e.opacity)}function od(e,t,n,r){return arguments.length===1?Ma(e):new rt(e,t,n,r??1)}function rt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}li(rt,od,da(fn,{brighter(e){return e=e==null?Qn:Math.pow(Qn,e),new rt(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?dn:Math.pow(dn,e),new rt(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 Qe(fi(e>=240?e-240:e+120,i,r),fi(e,i,r),fi(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rt(_a(this.h),Kn(this.s),Kn(this.l),Gn(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=Gn(this.opacity);return`${e===1?"hsl(":"hsla("}${_a(this.h)}, ${Kn(this.s)*100}%, ${Kn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function _a(e){return e=(e||0)%360,e<0?e+360:e}function Kn(e){return Math.max(0,Math.min(1,e||0))}function fi(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 xa=e=>()=>e;function ad(e,t){return function(n){return e+n*t}}function sd(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 ud(e){return(e=+e)==1?Ta:function(t,n){return n-t?sd(t,n,e):xa(isNaN(t)?n:t)}}function Ta(e,t){var n=t-e;return n?ad(e,n):xa(isNaN(e)?t:e)}const wa=function e(t){var n=ud(t);function r(i,o){var a=n((i=ci(i)).r,(o=ci(o)).r),s=n(i.g,o.g),l=n(i.b,o.b),u=Ta(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 wt(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var di=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hi=new RegExp(di.source,"g");function ld(e){return function(){return e}}function cd(e){return function(t){return e(t)+""}}function fd(e,t){var n=di.lastIndex=hi.lastIndex=0,r,i,o,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=di.exec(e))&&(i=hi.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:wt(r,i)})),n=hi.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?l[0]?cd(l[0].x):ld(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 Na=180/Math.PI,pi={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ea(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)*Na,skewX:Math.atan(l)*Na,scaleX:a,scaleY:s}}var Hn;function dd(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?pi:Ea(t.a,t.b,t.c,t.d,t.e,t.f)}function hd(e){return e==null||(Hn||(Hn=document.createElementNS("http://www.w3.org/2000/svg","g")),Hn.setAttribute("transform",e),!(e=Hn.transform.baseVal.consolidate()))?pi:(e=e.matrix,Ea(e.a,e.b,e.c,e.d,e.e,e.f))}function Da(e,t,n,r){function i(u){return u.length?u.pop()+" ":""}function o(u,c,d,f,h,v){if(u!==d||c!==f){var m=h.push("translate(",null,t,null,n);v.push({i:m-4,x:wt(u,d)},{i:m-2,x:wt(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:wt(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:wt(u,c)}):c&&d.push(i(d)+"skewX("+c+r)}function l(u,c,d,f,h,v){if(u!==d||c!==f){var m=h.push(i(h)+"scale(",null,",",null,")");v.push({i:m-4,x:wt(u,d)},{i:m-2,x:wt(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 v=-1,m=f.length,y;++v<m;)d[(y=f[v]).i]=y.x(h);return d.join("")}}}var pd=Da(dd,"px, ","px)","deg)"),gd=Da(hd,", ",")",")"),md=1e-12;function Oa(e){return((e=Math.exp(e))+1/e)/2}function yd(e){return((e=Math.exp(e))-1/e)/2}function vd(e){return((e=Math.exp(2*e))-1)/(e+1)}const bd=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,v=d-l,m=h*h+v*v,y,_;if(m<md)_=Math.log(f/u)/t,y=function(C){return[s+C*h,l+C*v,u*Math.exp(t*C*_)]};else{var D=Math.sqrt(m),O=(f*f-u*u+r*m)/(2*u*n*D),x=(f*f-u*u-r*m)/(2*f*n*D),g=Math.log(Math.sqrt(O*O+1)-O),j=Math.log(Math.sqrt(x*x+1)-x);_=(j-g)/t,y=function(C){var I=C*_,k=Oa(g),E=u/(n*D)*(k*vd(t*I+g)-yd(g));return[s+E*h,l+E*v,u*k/Oa(t*I+g)]}}return y.duration=_*1e3*t/Math.SQRT2,y}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 Ft=0,gn=0,mn=0,Ca=1e3,Xn,yn,Jn=0,At=0,Zn=0,vn=typeof performance=="object"&&performance.now?performance:Date,Sa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function gi(){return At||(Sa(Md),At=vn.now()+Zn)}function Md(){At=0}function er(){this._call=this._time=this._next=null}er.prototype=Aa.prototype={constructor:er,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?gi():+n)+(t==null?0:+t),!this._next&&yn!==this&&(yn?yn._next=this:Xn=this,yn=this),this._call=e,this._time=n,mi()},stop:function(){this._call&&(this._call=null,this._time=1/0,mi())}};function Aa(e,t,n){var r=new er;return r.restart(e,t,n),r}function _d(){gi(),++Ft;for(var e=Xn,t;e;)(t=At-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Ft}function Ia(){At=(Jn=vn.now())+Zn,Ft=gn=0;try{_d()}finally{Ft=0,Td(),At=0}}function xd(){var e=vn.now(),t=e-Jn;t>Ca&&(Zn-=t,Jn=e)}function Td(){for(var e,t=Xn,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:Xn=n);yn=e,mi(r)}function mi(e){if(!Ft){gn&&(gn=clearTimeout(gn));var t=e-At;t>24?(e<1/0&&(gn=setTimeout(Ia,e-vn.now()-Zn)),mn&&(mn=clearInterval(mn))):(mn||(Jn=vn.now(),mn=setInterval(xd,Ca)),Ft=1,Sa(Ia))}}function ka(e,t,n){var r=new er;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var wd=ai("start","end","cancel","interrupt"),Nd=[],ja=0,za=1,yi=2,tr=3,Ra=4,vi=5,nr=6;function rr(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;Ed(e,n,{name:t,index:r,group:i,on:wd,tween:Nd,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ja})}function bi(e,t){var n=it(e,t);if(n.state>ja)throw new Error("too late; already scheduled");return n}function lt(e,t){var n=it(e,t);if(n.state>tr)throw new Error("too late; already running");return n}function it(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Ed(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Aa(o,0,n.time);function o(u){n.state=za,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!==za)return l();for(c in r)if(h=r[c],h.name===n.name){if(h.state===tr)return ka(a);h.state===Ra?(h.state=nr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=nr,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(ka(function(){n.state===tr&&(n.state=Ra,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=yi,n.on.call("start",e,e.__data__,n.index,n.group),n.state===yi){for(n.state=tr,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=vi,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===vi&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=nr,n.timer.stop(),delete r[t];for(var u in r)return;delete e.__transition}}function ir(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>yi&&r.state<vi,r.state=nr,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function Dd(e){return this.each(function(){ir(this,e)})}function Od(e,t){var n,r;return function(){var i=lt(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 Cd(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=lt(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 Sd(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=it(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?Od:Cd)(n,e,t))}function Mi(e,t,n){var r=e._id;return e.each(function(){var i=lt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return it(i,r).value[t]}}function $a(e,t){var n;return(typeof t=="number"?wt:t instanceof pn?wa:(n=pn(t))?(t=n,wa):fd)(e,t)}function Ad(e){return function(){this.removeAttribute(e)}}function Id(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kd(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 jd(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 zd(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 Rd(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 $d(e,t){var n=Vn(e),r=n==="transform"?gd:$a;return this.attrTween(e,typeof t=="function"?(n.local?Rd:zd)(n,r,Mi(this,"attr."+e,t)):t==null?(n.local?Id:Ad)(n):(n.local?jd:kd)(n,r,t))}function Ld(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Pd(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Fd(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Pd(e,o)),n}return i._value=t,i}function Ud(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&Ld(e,o)),n}return i._value=t,i}function Yd(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=Vn(e);return this.tween(n,(r.local?Fd:Ud)(r,t))}function Vd(e,t){return function(){bi(this,e).delay=+t.apply(this,arguments)}}function qd(e,t){return t=+t,function(){bi(this,e).delay=t}}function Bd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Vd:qd)(t,e)):it(this.node(),t).delay}function Qd(e,t){return function(){lt(this,e).duration=+t.apply(this,arguments)}}function Wd(e,t){return t=+t,function(){lt(this,e).duration=t}}function Gd(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Qd:Wd)(t,e)):it(this.node(),t).duration}function Kd(e,t){if(typeof t!="function")throw new Error;return function(){lt(this,e).ease=t}}function Hd(e){var t=this._id;return arguments.length?this.each(Kd(t,e)):it(this.node(),t).ease}function Xd(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;lt(this,e).ease=n}}function Jd(e){if(typeof e!="function")throw new Error;return this.each(Xd(this._id,e))}function Zd(e){typeof e!="function"&&(e=ta(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 vt(r,this._parents,this._name,this._id)}function eh(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 vt(a,this._parents,this._name,this._id)}function th(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 nh(e,t,n){var r,i,o=th(t)?bi:lt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function rh(e,t){var n=this._id;return arguments.length<2?it(this.node(),n).on.on(e):this.each(nh(n,e,t))}function ih(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function oh(){return this.on("end.remove",ih(this._id))}function ah(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ii(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,rr(u[f],t,n,f,u,it(c,n)));return new vt(o,this._parents,t,n)}function sh(e){var t=this._name,n=this._id;typeof e!="function"&&(e=ea(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,v=it(c,n),m=0,y=f.length;m<y;++m)(h=f[m])&&rr(h,t,n,m,f,v);o.push(f),a.push(c)}return new vt(o,a,t,n)}var uh=cn.prototype.constructor;function lh(){return new uh(this._groups,this._parents)}function ch(e,t){var n,r,i;return function(){var o=Lt(this,e),a=(this.style.removeProperty(e),Lt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function La(e){return function(){this.style.removeProperty(e)}}function fh(e,t,n){var r,i=n+"",o;return function(){var a=Lt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function dh(e,t,n){var r,i,o;return function(){var a=Lt(this,e),s=n(this),l=s+"";return s==null&&(l=s=(this.style.removeProperty(e),Lt(this,e))),a===l?null:a===r&&l===i?o:(i=l,o=t(r=a,s))}}function hh(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var l=lt(this,e),u=l.on,c=l.value[o]==null?s||(s=La(t)):void 0;(u!==n||i!==c)&&(r=(n=u).copy()).on(a,i=c),l.on=r}}function ph(e,t,n){var r=(e+="")=="transform"?pd:$a;return t==null?this.styleTween(e,ch(e,r)).on("end.style."+e,La(e)):typeof t=="function"?this.styleTween(e,dh(e,r,Mi(this,"style."+e,t))).each(hh(this._id,e)):this.styleTween(e,fh(e,r,t),n).on("end.style."+e,null)}function gh(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function mh(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&gh(e,a,n)),r}return o._value=t,o}function yh(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,mh(e,t,n??""))}function vh(e){return function(){this.textContent=e}}function bh(e){return function(){var t=e(this);this.textContent=t??""}}function Mh(e){return this.tween("text",typeof e=="function"?bh(Mi(this,"text",e)):vh(e==null?"":e+""))}function _h(e){return function(t){this.textContent=e.call(this,t)}}function xh(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&_h(i)),t}return r._value=e,r}function Th(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,xh(e))}function wh(){for(var e=this._name,t=this._id,n=Pa(),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=it(l,t);rr(l,e,n,u,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new vt(r,this._parents,e,n)}function Nh(){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=lt(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 Eh=0;function vt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Pa(){return++Eh}var bt=cn.prototype;vt.prototype={constructor:vt,select:ah,selectAll:sh,selectChild:bt.selectChild,selectChildren:bt.selectChildren,filter:Zd,merge:eh,selection:lh,transition:wh,call:bt.call,nodes:bt.nodes,node:bt.node,size:bt.size,empty:bt.empty,each:bt.each,on:rh,attr:$d,attrTween:Yd,style:ph,styleTween:yh,text:Mh,textTween:Th,remove:oh,tween:Sd,delay:Bd,duration:Gd,ease:Hd,easeVarying:Jd,end:Nh,[Symbol.iterator]:bt[Symbol.iterator]};function Dh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Oh={time:null,delay:0,duration:250,ease:Dh};function Ch(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 Sh(e){var t,n;e instanceof vt?(t=e._id,e=e._name):(t=Pa(),(n=Oh).time=gi(),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])&&rr(l,e,t,u,a,n||Ch(l,t));return new vt(r,this._parents,e,t)}cn.prototype.interrupt=Dd,cn.prototype.transition=Sh;const or=e=>()=>e;function Ah(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 Mt(e,t,n){this.k=e,this.x=t,this.y=n}Mt.prototype={constructor:Mt,scale:function(e){return e===1?this:new Mt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Mt(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 ar=new Mt(1,0,0);Mt.prototype;function _i(e){e.stopImmediatePropagation()}function bn(e){e.preventDefault(),e.stopImmediatePropagation()}function Ih(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function kh(){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 Fa(){return this.__zoom||ar}function jh(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function zh(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rh(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 xi(){var e=Ih,t=kh,n=Rh,r=jh,i=zh,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,l=bd,u=ai("start","zoom","end"),c,d,f,h=500,v=150,m=0,y=10;function _(b){b.property("__zoom",Fa).on("wheel.zoom",I,{passive:!1}).on("mousedown.zoom",k).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)")}_.transform=function(b,z,N,R){var P=b.selection?b.selection():b;P.property("__zoom",Fa),b!==P?g(b,z,N,R):P.interrupt().each(function(){j(this,arguments).event(R).start().zoom(null,typeof z=="function"?z.apply(this,arguments):z).end()})},_.scaleBy=function(b,z,N,R){_.scaleTo(b,function(){var P=this.__zoom.k,B=typeof z=="function"?z.apply(this,arguments):z;return P*B},N,R)},_.scaleTo=function(b,z,N,R){_.transform(b,function(){var P=t.apply(this,arguments),B=this.__zoom,T=N==null?x(P):typeof N=="function"?N.apply(this,arguments):N,A=B.invert(T),V=typeof z=="function"?z.apply(this,arguments):z;return n(O(D(B,V),T,A),P,a)},N,R)},_.translateBy=function(b,z,N,R){_.transform(b,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)},_.translateTo=function(b,z,N,R,P){_.transform(b,function(){var B=t.apply(this,arguments),T=this.__zoom,A=R==null?x(B):typeof R=="function"?R.apply(this,arguments):R;return n(ar.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),B,a)},R,P)};function D(b,z){return z=Math.max(o[0],Math.min(o[1],z)),z===b.k?b:new Mt(z,b.x,b.y)}function O(b,z,N){var R=z[0]-N[0]*b.k,P=z[1]-N[1]*b.k;return R===b.x&&P===b.y?b:new Mt(b.k,R,P)}function x(b){return[(+b[0][0]+ +b[1][0])/2,(+b[0][1]+ +b[1][1])/2]}function g(b,z,N,R){b.on("start.zoom",function(){j(this,arguments).event(R).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(R).end()}).tween("zoom",function(){var P=this,B=arguments,T=j(P,B).event(R),A=t.apply(P,B),V=N==null?x(A):typeof N=="function"?N.apply(P,B):N,K=Math.max(A[1][0]-A[0][0],A[1][1]-A[0][1]),q=P.__zoom,J=typeof z=="function"?z.apply(P,B):z,Q=l(q.invert(V).concat(K/q.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 Mt(re,V[0]-ee[0]*re,V[1]-ee[1]*re)}T.zoom(null,W)}})}function j(b,z,N){return!N&&b.__zooming||new C(b,z)}function C(b,z){this.that=b,this.args=z,this.active=0,this.sourceEvent=null,this.extent=t.apply(b,z),this.taps=0}C.prototype={event:function(b){return b&&(this.sourceEvent=b),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(b,z){return this.mouse&&b!=="mouse"&&(this.mouse[1]=z.invert(this.mouse[0])),this.touch0&&b!=="touch"&&(this.touch0[1]=z.invert(this.touch0[0])),this.touch1&&b!=="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(b){var z=qe(this.that).datum();u.call(b,this.that,new Ah(b,{sourceEvent:this.sourceEvent,target:_,type:b,transform:this.that.__zoom,dispatch:u}),z)}};function I(b,...z){if(!e.apply(this,arguments))return;var N=j(this,z).event(b),R=this.__zoom,P=Math.max(o[0],Math.min(o[1],R.k*Math.pow(2,r.apply(this,arguments)))),B=Ot(b);if(N.wheel)(N.mouse[0][0]!==B[0]||N.mouse[0][1]!==B[1])&&(N.mouse[1]=R.invert(N.mouse[0]=B)),clearTimeout(N.wheel);else{if(R.k===P)return;N.mouse=[B,R.invert(B)],ir(this),N.start()}bn(b),N.wheel=setTimeout(T,v),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 k(b,...z){if(f||!e.apply(this,arguments))return;var N=b.currentTarget,R=j(this,z,!0).event(b),P=qe(b.view).on("mousemove.zoom",V,!0).on("mouseup.zoom",K,!0),B=Ot(b,N),T=b.clientX,A=b.clientY;Qf(b.view),_i(b),R.mouse=[B,this.__zoom.invert(B)],ir(this),R.start();function V(q){if(bn(q),!R.moved){var J=q.clientX-T,Q=q.clientY-A;R.moved=J*J+Q*Q>m}R.event(q).zoom("mouse",n(O(R.that.__zoom,R.mouse[0]=Ot(q,N),R.mouse[1]),R.extent,a))}function K(q){P.on("mousemove.zoom mouseup.zoom",null),Wf(q.view,R.moved),bn(q),R.event(q).end()}}function E(b,...z){if(e.apply(this,arguments)){var N=this.__zoom,R=Ot(b.changedTouches?b.changedTouches[0]:b,this),P=N.invert(R),B=N.k*(b.shiftKey?.5:2),T=n(O(D(N,B),R,P),t.apply(this,z),a);bn(b),s>0?qe(this).transition().duration(s).call(g,T,R,b):qe(this).call(_.transform,T,R,b)}}function $(b,...z){if(e.apply(this,arguments)){var N=b.touches,R=N.length,P=j(this,z,b.changedTouches.length===R).event(b),B,T,A,V;for(_i(b),T=0;T<R;++T)A=N[T],V=Ot(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,B=!0,P.taps=1+!!c);c&&(c=clearTimeout(c)),B&&(P.taps<2&&(d=V[0],c=setTimeout(function(){c=null},h)),ir(this),P.start())}}function X(b,...z){if(this.__zooming){var N=j(this,z).event(b),R=b.changedTouches,P=R.length,B,T,A,V;for(bn(b),B=0;B<P;++B)T=R[B],A=Ot(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],q=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]-q[0])*ee+(ee=Q[1]-q[1])*ee;T=D(T,Math.sqrt(W/ee)),A=[(K[0]+J[0])/2,(K[1]+J[1])/2],V=[(q[0]+Q[0])/2,(q[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(b,...z){if(this.__zooming){var N=j(this,z).event(b),R=b.changedTouches,P=R.length,B,T;for(_i(b),f&&clearTimeout(f),f=setTimeout(function(){f=null},h),B=0;B<P;++B)T=R[B],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=Ot(T,this),Math.hypot(d[0]-T[0],d[1]-T[1])<y)){var A=qe(this).on("dblclick.zoom");A&&A.apply(this,arguments)}}}return _.wheelDelta=function(b){return arguments.length?(r=typeof b=="function"?b:or(+b),_):r},_.filter=function(b){return arguments.length?(e=typeof b=="function"?b:or(!!b),_):e},_.touchable=function(b){return arguments.length?(i=typeof b=="function"?b:or(!!b),_):i},_.extent=function(b){return arguments.length?(t=typeof b=="function"?b:or([[+b[0][0],+b[0][1]],[+b[1][0],+b[1][1]]]),_):t},_.scaleExtent=function(b){return arguments.length?(o[0]=+b[0],o[1]=+b[1],_):[o[0],o[1]]},_.translateExtent=function(b){return arguments.length?(a[0][0]=+b[0][0],a[1][0]=+b[1][0],a[0][1]=+b[0][1],a[1][1]=+b[1][1],_):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},_.constrain=function(b){return arguments.length?(n=b,_):n},_.duration=function(b){return arguments.length?(s=+b,_):s},_.interpolate=function(b){return arguments.length?(l=b,_):l},_.on=function(){var b=u.on.apply(u,arguments);return b===u?_:b},_.clickDistance=function(b){return arguments.length?(m=(b=+b)*b,_):Math.sqrt(m)},_.tapDistance=function(b){return arguments.length?(y=+b,_):y},_}var Ua=Object.prototype.hasOwnProperty;function Mn(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--&&Mn(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(Ua.call(e,n)&&++r&&!Ua.call(t,n)||!(n in t)||!Mn(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}var Ya={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,v,m,y){typeof h=="object"&&(v=h.depth,m=h.prototype,y=h.includeNonEnumerable,h=h.circular);var _=[],D=[],O=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof v>"u"&&(v=1/0);function x(g,j){if(g===null)return null;if(j===0)return g;var C,I;if(typeof g!="object")return g;if(n(g,r))C=new r;else if(n(g,i))C=new i;else if(n(g,o))C=new o(function(R,P){g.then(function(B){R(x(B,j-1))},function(B){P(x(B,j-1))})});else if(a.__isArray(g))C=[];else if(a.__isRegExp(g))C=new RegExp(g.source,d(g)),g.lastIndex&&(C.lastIndex=g.lastIndex);else if(a.__isDate(g))C=new Date(g.getTime());else{if(O&&Buffer.isBuffer(g))return Buffer.allocUnsafe?C=Buffer.allocUnsafe(g.length):C=new Buffer(g.length),g.copy(C),C;n(g,Error)?C=Object.create(g):typeof m>"u"?(I=Object.getPrototypeOf(g),C=Object.create(I)):(C=Object.create(m),I=m)}if(h){var k=_.indexOf(g);if(k!=-1)return D[k];_.push(g),D.push(C)}n(g,r)&&g.forEach(function(R,P){var B=x(P,j-1),T=x(R,j-1);C.set(B,T)}),n(g,i)&&g.forEach(function(R){var P=x(R,j-1);C.add(P)});for(var E in g){var $;I&&($=Object.getOwnPropertyDescriptor(I,E)),!($&&$.set==null)&&(C[E]=x(g[E],j-1))}if(Object.getOwnPropertySymbols)for(var X=Object.getOwnPropertySymbols(g),E=0;E<X.length;E++){var H=X[E],b=Object.getOwnPropertyDescriptor(g,H);b&&!b.enumerable&&!y||(C[H]=x(g[H],j-1),b.enumerable||Object.defineProperty(C,H,{enumerable:!1}))}if(y)for(var z=Object.getOwnPropertyNames(g),E=0;E<z.length;E++){var N=z[E],b=Object.getOwnPropertyDescriptor(g,N);b&&b.enumerable||(C[N]=x(g[N],j-1),Object.defineProperty(C,N,{enumerable:!1}))}return C}return x(f,v)}a.clonePrototype=function(h){if(h===null)return null;var v=function(){};return v.prototype=h,new v};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)})(Ya);var $h=Ya.exports;const He=Qo($h);var sr,Lh=new Uint8Array(16);function Ph(){if(!sr&&(sr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!sr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return sr(Lh)}const Fh=/^(?:[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 Uh(e){return typeof e=="string"&&Fh.test(e)}for(var Re=[],Ti=0;Ti<256;++Ti)Re.push((Ti+256).toString(16).substr(1));function Yh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Re[e[t+0]]+Re[e[t+1]]+Re[e[t+2]]+Re[e[t+3]]+"-"+Re[e[t+4]]+Re[e[t+5]]+"-"+Re[e[t+6]]+Re[e[t+7]]+"-"+Re[e[t+8]]+Re[e[t+9]]+"-"+Re[e[t+10]]+Re[e[t+11]]+Re[e[t+12]]+Re[e[t+13]]+Re[e[t+14]]+Re[e[t+15]]).toLowerCase();if(!Uh(n))throw TypeError("Stringified UUID is invalid");return n}function wi(e,t,n){e=e||{};var r=e.random||(e.rng||Ph)();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 Yh(r)}var Ni={exports:{}},Ei={exports:{}},ur={exports:{}},pe={};/** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
31
31
  *
32
32
  * This source code is licensed under the MIT license found in the
33
33
  * LICENSE file in the root directory of this source tree.
34
- */var La;function Rh(){if(La)return ge;La=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,y=e?Symbol.for("react.lazy"):60116,m=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(g){if(typeof g=="object"&&g!==null){var j=g.$$typeof;switch(j){case t:switch(g=g.type,g){case l:case u:case r:case o:case i:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case y:case h:case a:return g;default:return j}}case n:return j}}}function x(g){return O(g)===u}return ge.AsyncMode=l,ge.ConcurrentMode=u,ge.ContextConsumer=s,ge.ContextProvider=a,ge.Element=t,ge.ForwardRef=c,ge.Fragment=r,ge.Lazy=y,ge.Memo=h,ge.Portal=n,ge.Profiler=o,ge.StrictMode=i,ge.Suspense=d,ge.isAsyncMode=function(g){return x(g)||O(g)===l},ge.isConcurrentMode=x,ge.isContextConsumer=function(g){return O(g)===s},ge.isContextProvider=function(g){return O(g)===a},ge.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},ge.isForwardRef=function(g){return O(g)===c},ge.isFragment=function(g){return O(g)===r},ge.isLazy=function(g){return O(g)===y},ge.isMemo=function(g){return O(g)===h},ge.isPortal=function(g){return O(g)===n},ge.isProfiler=function(g){return O(g)===o},ge.isStrictMode=function(g){return O(g)===i},ge.isSuspense=function(g){return O(g)===d},ge.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===u||g===o||g===i||g===d||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===y||g.$$typeof===h||g.$$typeof===a||g.$$typeof===s||g.$$typeof===c||g.$$typeof===v||g.$$typeof===M||g.$$typeof===D||g.$$typeof===m)},ge.typeOf=O,ge}var me={};/** @license React v16.13.1
34
+ */var Va;function Vh(){if(Va)return pe;Va=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,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,D=e?Symbol.for("react.scope"):60119;function O(g){if(typeof g=="object"&&g!==null){var j=g.$$typeof;switch(j){case t:switch(g=g.type,g){case l:case u:case r:case o:case i:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case c:case v:case h:case a:return g;default:return j}}case n:return j}}}function x(g){return O(g)===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=v,pe.Memo=h,pe.Portal=n,pe.Profiler=o,pe.StrictMode=i,pe.Suspense=d,pe.isAsyncMode=function(g){return x(g)||O(g)===l},pe.isConcurrentMode=x,pe.isContextConsumer=function(g){return O(g)===s},pe.isContextProvider=function(g){return O(g)===a},pe.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===t},pe.isForwardRef=function(g){return O(g)===c},pe.isFragment=function(g){return O(g)===r},pe.isLazy=function(g){return O(g)===v},pe.isMemo=function(g){return O(g)===h},pe.isPortal=function(g){return O(g)===n},pe.isProfiler=function(g){return O(g)===o},pe.isStrictMode=function(g){return O(g)===i},pe.isSuspense=function(g){return O(g)===d},pe.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===r||g===u||g===o||g===i||g===d||g===f||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===h||g.$$typeof===a||g.$$typeof===s||g.$$typeof===c||g.$$typeof===y||g.$$typeof===_||g.$$typeof===D||g.$$typeof===m)},pe.typeOf=O,pe}var ge={};/** @license React v16.13.1
35
35
  * react-is.development.js
36
36
  *
37
37
  * Copyright (c) Facebook, Inc. and its affiliates.
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Pa;function $h(){return Pa||(Pa=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,y=e?Symbol.for("react.lazy"):60116,m=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===y||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===v||Y.$$typeof===M||Y.$$typeof===D||Y.$$typeof===m)}function x(Y){if(typeof Y=="object"&&Y!==null){var Ue=Y.$$typeof;switch(Ue){case t:var G=Y.type;switch(G){case l:case u:case r:case o:case i:case d:return G;default:var tt=G&&G.$$typeof;switch(tt){case s:case c:case y:case h:case a:return tt;default:return Ue}}case n:return Ue}}}var g=l,j=u,C=s,I=a,k=t,E=c,$=r,X=y,H=h,b=n,z=o,w=i,R=d,P=!1;function B(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)||x(Y)===l}function T(Y){return x(Y)===u}function A(Y){return x(Y)===s}function V(Y){return x(Y)===a}function K(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function q(Y){return x(Y)===c}function J(Y){return x(Y)===r}function Q(Y){return x(Y)===y}function W(Y){return x(Y)===h}function ee(Y){return x(Y)===n}function re(Y){return x(Y)===o}function te(Y){return x(Y)===i}function Ce(Y){return x(Y)===d}me.AsyncMode=g,me.ConcurrentMode=j,me.ContextConsumer=C,me.ContextProvider=I,me.Element=k,me.ForwardRef=E,me.Fragment=$,me.Lazy=X,me.Memo=H,me.Portal=b,me.Profiler=z,me.StrictMode=w,me.Suspense=R,me.isAsyncMode=B,me.isConcurrentMode=T,me.isContextConsumer=A,me.isContextProvider=V,me.isElement=K,me.isForwardRef=q,me.isFragment=J,me.isLazy=Q,me.isMemo=W,me.isPortal=ee,me.isProfiler=re,me.isStrictMode=te,me.isSuspense=Ce,me.isValidElementType=O,me.typeOf=x}()),me}var Fa;function Ua(){return Fa||(Fa=1,function(e){process.env.NODE_ENV==="production"?e.exports=Rh():e.exports=$h()}(zh)),dr}/*
41
+ */var qa;function qh(){return qa||(qa=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,v=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=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===v||Y.$$typeof===h||Y.$$typeof===a||Y.$$typeof===s||Y.$$typeof===c||Y.$$typeof===y||Y.$$typeof===_||Y.$$typeof===D||Y.$$typeof===m)}function x(Y){if(typeof Y=="object"&&Y!==null){var Ue=Y.$$typeof;switch(Ue){case t:var G=Y.type;switch(G){case l:case u:case r:case o:case i:case d:return G;default:var tt=G&&G.$$typeof;switch(tt){case s:case c:case v:case h:case a:return tt;default:return Ue}}case n:return Ue}}}var g=l,j=u,C=s,I=a,k=t,E=c,$=r,X=v,H=h,b=n,z=o,N=i,R=d,P=!1;function B(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)||x(Y)===l}function T(Y){return x(Y)===u}function A(Y){return x(Y)===s}function V(Y){return x(Y)===a}function K(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===t}function q(Y){return x(Y)===c}function J(Y){return x(Y)===r}function Q(Y){return x(Y)===v}function W(Y){return x(Y)===h}function ee(Y){return x(Y)===n}function re(Y){return x(Y)===o}function te(Y){return x(Y)===i}function Ce(Y){return x(Y)===d}ge.AsyncMode=g,ge.ConcurrentMode=j,ge.ContextConsumer=C,ge.ContextProvider=I,ge.Element=k,ge.ForwardRef=E,ge.Fragment=$,ge.Lazy=X,ge.Memo=H,ge.Portal=b,ge.Profiler=z,ge.StrictMode=N,ge.Suspense=R,ge.isAsyncMode=B,ge.isConcurrentMode=T,ge.isContextConsumer=A,ge.isContextProvider=V,ge.isElement=K,ge.isForwardRef=q,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=x}()),ge}var Ba;function Qa(){return Ba||(Ba=1,process.env.NODE_ENV==="production"?ur.exports=Vh():ur.exports=qh()),ur.exports}/*
42
42
  object-assign
43
43
  (c) Sindre Sorhus
44
44
  @license MIT
45
- */var Ci,Ya;function Lh(){if(Ya)return Ci;Ya=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 Ci=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},Ci}var Si,Va;function Ai(){if(Va)return Si;Va=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Si=e,Si}var Ii,qa;function Ba(){return qa||(qa=1,Ii=Function.call.bind(Object.prototype.hasOwnProperty)),Ii}var ki,Qa;function Ph(){if(Qa)return ki;Qa=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ai(),n={},r=Ba();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(y){d=y}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={})},ki=i,ki}var ji,Wa;function Fh(){if(Wa)return ji;Wa=1;var e=Ua(),t=Lh(),n=Ai(),r=Ba(),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 ji=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:x(),elementType:g(),instanceOf:j,node:E(),objectOf:I,oneOf:C,oneOfType:k,shape:X,exact:H};function y(T,A){return T===A?T!==0||1/T===1/A:T!==T&&A!==A}function m(T,A){this.message=T,this.data=A&&typeof A=="object"?A:{},this.stack=""}m.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 Ue=ee+":"+W;!A[Ue]&&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[Ue]=!0,V++)}}return Q[W]==null?J?Q[W]===null?new m("The "+re+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new m("The "+re+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:T(Q,W,ee,re,te)}var q=K.bind(null,!1);return q.isRequired=K.bind(null,!0),q}function M(T){function A(V,K,q,J,Q,W){var ee=V[K],re=w(ee);if(re!==T){var te=R(ee);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+te+"` supplied to `"+q+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return v(A)}function D(){return v(a)}function O(T){function A(V,K,q,J,Q){if(typeof T!="function")return new m("Property `"+Q+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var W=V[K];if(!Array.isArray(W)){var ee=w(W);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an array."))}for(var re=0;re<W.length;re++){var te=T(W,re,q,J,Q+"["+re+"]",n);if(te instanceof Error)return te}return null}return v(A)}function x(){function T(A,V,K,q,J){var Q=A[V];if(!s(Q)){var W=w(Q);return new m("Invalid "+q+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return v(T)}function g(){function T(A,V,K,q,J){var Q=A[V];if(!e.isValidElementType(Q)){var W=w(Q);return new m("Invalid "+q+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return v(T)}function j(T){function A(V,K,q,J,Q){if(!(V[K]instanceof T)){var W=T.name||f,ee=B(V[K]);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, 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,q,J,Q){for(var W=V[K],ee=0;ee<T.length;ee++)if(y(W,T[ee]))return null;var re=JSON.stringify(T,function(Ce,Y){var Ue=R(Y);return Ue==="symbol"?String(Y):Y});return new m("Invalid "+J+" `"+Q+"` of value `"+String(W)+"` "+("supplied to `"+q+"`, expected one of "+re+"."))}return v(A)}function I(T){function A(V,K,q,J,Q){if(typeof T!="function")return new m("Property `"+Q+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var W=V[K],ee=w(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an object."));for(var re in W)if(r(W,re)){var te=T(W,re,q,J,Q+"."+re,n);if(te instanceof Error)return te}return null}return v(A)}function k(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(q,J,Q,W,ee){for(var re=[],te=0;te<T.length;te++){var Ce=T[te],Y=Ce(q,J,Q,W,ee,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&re.push(Y.data.expectedType)}var Ue=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new m("Invalid "+W+" `"+ee+"` supplied to "+("`"+Q+"`"+Ue+"."))}return v(K)}function E(){function T(A,V,K,q,J){return b(A[V])?null:new m("Invalid "+q+" `"+J+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return v(T)}function $(T,A,V,K,q){return new m((T||"React class")+": "+A+" type `"+V+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function X(T){function A(V,K,q,J,Q){var W=V[K],ee=w(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+q+"`, expected `object`."));for(var re in T){var te=T[re];if(typeof te!="function")return $(q,J,Q,re,R(te));var Ce=te(W,re,q,J,Q+"."+re,n);if(Ce)return Ce}return null}return v(A)}function H(T){function A(V,K,q,J,Q){var W=V[K],ee=w(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+q+"`, 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 $(q,J,Q,te,R(Ce));if(!Ce)return new m("Invalid "+J+" `"+Q+"` key `"+te+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(V[K],null," ")+`
46
- Valid keys: `+JSON.stringify(Object.keys(T),null," "));var Y=Ce(W,te,q,J,Q+"."+te,n);if(Y)return Y}return null}return v(A)}function b(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(b);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(!b(K.value))return!1}else for(;!(K=V.next()).done;){var q=K.value;if(q&&!b(q[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 w(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=w(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 B(T){return!T.constructor||!T.constructor.name?f:T.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},ji}var zi,Ga;function Uh(){if(Ga)return zi;Ga=1;var e=Ai();function t(){}function n(){}return n.resetWarningCache=t,zi=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},zi}if(process.env.NODE_ENV!=="production"){var Yh=Ua(),Vh=!0;$a.exports=Fh()(Yh.isElement,Vh)}else $a.exports=Uh()();var xn={},qh={get exports(){return xn},set exports(e){xn=e}},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)}})},Ka=function(){};process.env.NODE_ENV!=="production"&&(Ka=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=Ka;function Ha(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function Xa(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function Ja(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}}Ha.__suppressDeprecationWarning=!0,Xa.__suppressDeprecationWarning=!0,Ja.__suppressDeprecationWarning=!0;function Wh(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.
45
+ */var Di,Wa;function Bh(){if(Wa)return Di;Wa=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 Di=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},Di}var Oi,Ga;function Ci(){if(Ga)return Oi;Ga=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Oi=e,Oi}var Si,Ka;function Ha(){return Ka||(Ka=1,Si=Function.call.bind(Object.prototype.hasOwnProperty)),Si}var Ai,Xa;function Qh(){if(Xa)return Ai;Xa=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Ci(),n={},r=Ha();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(v){d=v}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={})},Ai=i,Ai}var Ii,Ja;function Wh(){if(Ja)return Ii;Ja=1;var e=Qa(),t=Bh(),n=Ci(),r=Ha(),i=Qh(),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 Ii=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:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:D(),arrayOf:O,element:x(),elementType:g(),instanceOf:j,node:E(),objectOf:I,oneOf:C,oneOfType:k,shape:X,exact:H};function v(T,A){return T===A?T!==0||1/T===1/A:T!==T&&A!==A}function m(T,A){this.message=T,this.data=A&&typeof A=="object"?A:{},this.stack=""}m.prototype=Error.prototype;function y(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 Ue=ee+":"+W;!A[Ue]&&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[Ue]=!0,V++)}}return Q[W]==null?J?Q[W]===null?new m("The "+re+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new m("The "+re+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:T(Q,W,ee,re,te)}var q=K.bind(null,!1);return q.isRequired=K.bind(null,!0),q}function _(T){function A(V,K,q,J,Q,W){var ee=V[K],re=N(ee);if(re!==T){var te=R(ee);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+te+"` supplied to `"+q+"`, expected ")+("`"+T+"`."),{expectedType:T})}return null}return y(A)}function D(){return y(a)}function O(T){function A(V,K,q,J,Q){if(typeof T!="function")return new m("Property `"+Q+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var W=V[K];if(!Array.isArray(W)){var ee=N(W);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an array."))}for(var re=0;re<W.length;re++){var te=T(W,re,q,J,Q+"["+re+"]",n);if(te instanceof Error)return te}return null}return y(A)}function x(){function T(A,V,K,q,J){var Q=A[V];if(!s(Q)){var W=N(Q);return new m("Invalid "+q+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return y(T)}function g(){function T(A,V,K,q,J){var Q=A[V];if(!e.isValidElementType(Q)){var W=N(Q);return new m("Invalid "+q+" `"+J+"` of type "+("`"+W+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return y(T)}function j(T){function A(V,K,q,J,Q){if(!(V[K]instanceof T)){var W=T.name||f,ee=B(V[K]);return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected ")+("instance of `"+W+"`."))}return null}return y(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,q,J,Q){for(var W=V[K],ee=0;ee<T.length;ee++)if(v(W,T[ee]))return null;var re=JSON.stringify(T,function(Ce,Y){var Ue=R(Y);return Ue==="symbol"?String(Y):Y});return new m("Invalid "+J+" `"+Q+"` of value `"+String(W)+"` "+("supplied to `"+q+"`, expected one of "+re+"."))}return y(A)}function I(T){function A(V,K,q,J,Q){if(typeof T!="function")return new m("Property `"+Q+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var W=V[K],ee=N(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an object."));for(var re in W)if(r(W,re)){var te=T(W,re,q,J,Q+"."+re,n);if(te instanceof Error)return te}return null}return y(A)}function k(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(q,J,Q,W,ee){for(var re=[],te=0;te<T.length;te++){var Ce=T[te],Y=Ce(q,J,Q,W,ee,n);if(Y==null)return null;Y.data&&r(Y.data,"expectedType")&&re.push(Y.data.expectedType)}var Ue=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new m("Invalid "+W+" `"+ee+"` supplied to "+("`"+Q+"`"+Ue+"."))}return y(K)}function E(){function T(A,V,K,q,J){return b(A[V])?null:new m("Invalid "+q+" `"+J+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return y(T)}function $(T,A,V,K,q){return new m((T||"React class")+": "+A+" type `"+V+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function X(T){function A(V,K,q,J,Q){var W=V[K],ee=N(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+q+"`, expected `object`."));for(var re in T){var te=T[re];if(typeof te!="function")return $(q,J,Q,re,R(te));var Ce=te(W,re,q,J,Q+"."+re,n);if(Ce)return Ce}return null}return y(A)}function H(T){function A(V,K,q,J,Q){var W=V[K],ee=N(W);if(ee!=="object")return new m("Invalid "+J+" `"+Q+"` of type `"+ee+"` "+("supplied to `"+q+"`, 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 $(q,J,Q,te,R(Ce));if(!Ce)return new m("Invalid "+J+" `"+Q+"` key `"+te+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(V[K],null," ")+`
46
+ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var Y=Ce(W,te,q,J,Q+"."+te,n);if(Y)return Y}return null}return y(A)}function b(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(b);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(!b(K.value))return!1}else for(;!(K=V.next()).done;){var q=K.value;if(q&&!b(q[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 B(T){return!T.constructor||!T.constructor.name?f:T.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Ii}var ki,Za;function Gh(){if(Za)return ki;Za=1;var e=Ci();function t(){}function n(){}return n.resetWarningCache=t,ki=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},ki}if(process.env.NODE_ENV!=="production"){var Kh=Qa(),Hh=!0;Ei.exports=Wh()(Kh.isElement,Hh)}else Ei.exports=Gh()();var _n=Ei.exports;const Me=Qo(_n);var ji={exports:{}},Xh=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)}})},es=function(){};process.env.NODE_ENV!=="production"&&(es=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 Jh=es;function ts(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ns(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r??null}this.setState(t.bind(this))}function rs(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}}ts.__suppressDeprecationWarning=!0,ns.__suppressDeprecationWarning=!0,rs.__suppressDeprecationWarning=!0;function Zh(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
47
 
48
48
  `+o+" uses "+a+" but also contains the following legacy lifecycles:"+(n!==null?`
49
49
  `+n:"")+(r!==null?`
@@ -51,7 +51,7 @@ Valid keys: `+JSON.stringify(Object.keys(T),null," "));var Y=Ce(W,te,q,J,Q+"."+
51
51
  `+i:"")+`
52
52
 
53
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=Ha,t.componentWillReceiveProps=Xa),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=Ja;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 Gh=ri(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Wh},Symbol.toStringTag,{value:"Module"})));var hr={};hr.__esModule=!0,hr.getChildMapping=Hh,hr.mergeChildMappings=Xh;var Kh=U;function Hh(e){if(!e)return e;var t={};return Kh.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function Xh(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(x){for(var g=1;g<arguments.length;g++){var j=arguments[g];for(var C in j)Object.prototype.hasOwnProperty.call(j,C)&&(x[C]=j[C])}return x},r=Bh,i=h(r),o=U,a=h(o),s=le,l=h(s),u=Qh,c=h(u),d=Gh,f=hr;function h(x){return x&&x.__esModule?x:{default:x}}function y(x,g){if(!(x instanceof g))throw new TypeError("Cannot call a class as a function")}function m(x,g){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:x}function v(x,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);x.prototype=Object.create(g&&g.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(x,g):x.__proto__=g)}var M={component:l.default.any,childFactory:l.default.func,children:l.default.node},D={component:"span",childFactory:function(g){return g}},O=function(x){v(g,x);function g(j,C){y(this,g);var I=m(this,x.call(this,j,C));return I.performAppear=function(k,E){I.currentlyTransitioningKeys[k]=!0,E.componentWillAppear?E.componentWillAppear(I._handleDoneAppearing.bind(I,k,E)):I._handleDoneAppearing(k,E)},I._handleDoneAppearing=function(k,E){E&&E.componentDidAppear&&E.componentDidAppear(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);(!$||!$.hasOwnProperty(k))&&I.performLeave(k,E)},I.performEnter=function(k,E){I.currentlyTransitioningKeys[k]=!0,E.componentWillEnter?E.componentWillEnter(I._handleDoneEntering.bind(I,k,E)):I._handleDoneEntering(k,E)},I._handleDoneEntering=function(k,E){E&&E.componentDidEnter&&E.componentDidEnter(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);(!$||!$.hasOwnProperty(k))&&I.performLeave(k,E)},I.performLeave=function(k,E){I.currentlyTransitioningKeys[k]=!0,E&&E.componentWillLeave?E.componentWillLeave(I._handleDoneLeaving.bind(I,k,E)):I._handleDoneLeaving(k,E)},I._handleDoneLeaving=function(k,E){E&&E.componentDidLeave&&E.componentDidLeave(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);$&&$.hasOwnProperty(k)?I.keysToEnter.push(k):I.setState(function(X){var H=n({},X.children);return delete H[k],{children:H}})},I.childRefs=Object.create(null),I.currentlyTransitioningKeys={},I.keysToEnter=[],I.keysToLeave=[],I.state={children:(0,f.getChildMapping)(j.children)},I}return g.prototype.componentDidMount=function(){var C=this.state.children;for(var I in C)C[I]&&this.performAppear(I,this.childRefs[I])},g.getDerivedStateFromProps=function(C,I){var k=(0,f.getChildMapping)(C.children),E=I.children;return{children:(0,f.mergeChildMappings)(E,k)}},g.prototype.componentDidUpdate=function(C,I){var k=this,E=(0,f.getChildMapping)(this.props.children),$=I.children;for(var X in E){var H=$&&$.hasOwnProperty(X);E[X]&&!H&&!this.currentlyTransitioningKeys[X]&&this.keysToEnter.push(X)}for(var b in $){var z=E&&E.hasOwnProperty(b);$[b]&&!z&&!this.currentlyTransitioningKeys[b]&&this.keysToLeave.push(b)}var w=this.keysToEnter;this.keysToEnter=[],w.forEach(function(P){return k.performEnter(P,k.childRefs[P])});var R=this.keysToLeave;this.keysToLeave=[],R.forEach(function(P){return k.performLeave(P,k.childRefs[P])})},g.prototype.render=function(){var C=this,I=[],k=function(H){var b=C.state.children[H];if(b){var z=typeof b.ref!="string",w=C.props.childFactory(b),R=function(B){C.childRefs[H]=B};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"),w===b&&z&&(R=(0,i.default)(b.ref,R)),I.push(a.default.cloneElement(w,{key:H,ref:R}))}};for(var E in this.state.children)k(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,$,I)},g}(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})(qh,xn);var pr={},Jh={get exports(){return pr},set exports(e){pr=e}},gr={},Zh={get exports(){return gr},set exports(e){gr=e}},we={},ep={get exports(){return we},set exports(e){we=e}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(ep);var Tn={},tp={get exports(){return Tn},set exports(e){Tn=e}},Za;function np(){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}(tp,Tn)),Tn}(function(e,t){var n=we;t.__esModule=!0,t.default=i;var r=n(np());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})(Zh,gr);function es(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var rp=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))},mr={},ip={get exports(){return mr},set exports(e){mr=e}},wn={},op={get exports(){return wn},set exports(e){wn=e}},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}(op,wn)),wn}(function(e,t){var n=we;t.__esModule=!0,t.default=void 0;var r=n(ns()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,l=function(h,y){return h+(h?y[0].toUpperCase()+y.substr(1):y)+"AnimationFrame"};r.default&&i.some(function(f){var h=l(f,"request");if(h in window)return o=l(f,"cancel"),a=function(m){return window[h](m)}});var u=new Date().getTime();function c(f){var h=new Date().getTime(),y=Math.max(0,16-(h-u)),m=setTimeout(f,y);return u=h,m}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})(ip,mr);var ae={},ap=we;ae.__esModule=!0,ae.default=ae.animationEnd=ae.animationDelay=ae.animationTiming=ae.animationDuration=ae.animationName=ae.transitionEnd=ae.transitionDuration=ae.transitionDelay=ae.transitionTiming=ae.transitionProperty=ae.transform=void 0;var sp=ap(ns()),yr="transform";ae.transform=yr;var ct,Ri,rs;ae.animationEnd=rs,ae.transitionEnd=Ri;var $i,Li,Pi,Fi;ae.transitionDelay=Fi,ae.transitionTiming=Pi,ae.transitionDuration=Li,ae.transitionProperty=$i;var is,os,as,ss;if(ae.animationDelay=ss,ae.animationTiming=as,ae.animationDuration=os,ae.animationName=is,sp.default){var Ui=lp();ct=Ui.prefix,ae.transitionEnd=Ri=Ui.transitionEnd,ae.animationEnd=rs=Ui.animationEnd,ae.transform=yr=ct+"-"+yr,ae.transitionProperty=$i=ct+"-transition-property",ae.transitionDuration=Li=ct+"-transition-duration",ae.transitionDelay=Fi=ct+"-transition-delay",ae.transitionTiming=Pi=ct+"-transition-timing-function",ae.animationName=is=ct+"-animation-name",ae.animationDuration=os=ct+"-animation-duration",ae.animationTiming=as=ct+"-animation-delay",ae.animationDelay=ss=ct+"-animation-timing-function"}var up={transform:yr,end:Ri,property:$i,timing:Pi,delay:Fi,duration:Li};ae.default=up;function lp(){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 Ut={};Ut.__esModule=!0,Ut.nameShape=void 0,Ut.transitionTimeout=dp;var cp=U;us(cp);var fp=le,Xe=us(fp);function us(e){return e&&e.__esModule?e:{default:e}}function dp(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}}Ut.nameShape=Xe.default.oneOfType([Xe.default.string,Xe.default.shape({enter:Xe.default.string,leave:Xe.default.string,active:Xe.default.string}),Xe.default.shape({enter:Xe.default.string,enterActive:Xe.default.string,leave:Xe.default.string,leaveActive:Xe.default.string,appear:Xe.default.string,appearActive:Xe.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(I){for(var k=1;k<arguments.length;k++){var E=arguments[k];for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(I[$]=E[$])}return I},r=gr,i=v(r),o=rp,a=v(o),s=mr,l=v(s),u=ae,c=U,d=v(c),f=le,h=v(f),y=ul,m=Ut;function v(I){return I&&I.__esModule?I:{default:I}}function M(I,k){if(!(I instanceof k))throw new TypeError("Cannot call a class as a function")}function D(I,k){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:I}function O(I,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);I.prototype=Object.create(k&&k.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(I,k):I.__proto__=k)}var x=[];u.transitionEnd&&x.push(u.transitionEnd),u.animationEnd&&x.push(u.animationEnd);function g(I,k){return x.length?x.forEach(function(E){return I.addEventListener(E,k,!1)}):setTimeout(k,0),function(){x.length&&x.forEach(function(E){return I.removeEventListener(E,k,!1)})}}var j={children:h.default.node,name:m.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(I){O(k,I);function k(E,$){M(this,k);var X=D(this,I.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 k.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function($){clearTimeout($)}),this.classNameAndNodeQueue.length=0},k.prototype.transition=function($,X,H){var b=(0,y.findDOMNode)(this);if(!b){X&&X();return}var z=this.props.name[$]||this.props.name+"-"+$,w=this.props.name[$+"Active"]||z+"-active",R=null,P=void 0;(0,i.default)(b,z),this.queueClassAndNode(w,b);var B=function(A){A&&A.target!==b||(clearTimeout(R),P&&P(),(0,a.default)(b,z),(0,a.default)(b,w),P&&P(),X&&X())};H?(R=setTimeout(B,H),this.transitionTimeouts.push(R)):u.transitionEnd&&(P=g(b,B))},k.prototype.queueClassAndNode=function($,X){var H=this;this.classNameAndNodeQueue.push({className:$,node:X}),this.rafHandle||(this.rafHandle=(0,l.default)(function(){return H.flushClassNameAndNodeQueue()}))},k.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function($){$.node.scrollTop,(0,i.default)($.node,$.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},k.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),$)},k}(d.default.Component);C.displayName="CSSTransitionGroupChild",C.propTypes=process.env.NODE_ENV!=="production"?j:{},t.default=C,e.exports=t.default}(Jh,pr),function(e,t){t.__esModule=!0;var n=Object.assign||function(O){for(var x=1;x<arguments.length;x++){var g=arguments[x];for(var j in g)Object.prototype.hasOwnProperty.call(g,j)&&(O[j]=g[j])}return O},r=U,i=f(r),o=le,a=f(o),s=xn,l=f(s),u=pr,c=f(u),d=Ut;function f(O){return O&&O.__esModule?O:{default:O}}function h(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}function y(O,x){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:O}function m(O,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);O.prototype=Object.create(x&&x.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(O,x):O.__proto__=x)}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){m(x,O);function x(){var g,j,C;h(this,x);for(var I=arguments.length,k=Array(I),E=0;E<I;E++)k[E]=arguments[E];return C=(g=(j=y(this,O.call.apply(O,[this].concat(k))),j),j._wrapChild=function($){return i.default.createElement(c.default,{name:j.props.transitionName,appear:j.props.transitionAppear,enter:j.props.transitionEnter,leave:j.props.transitionLeave,appearTimeout:j.props.transitionAppearTimeout,enterTimeout:j.props.transitionEnterTimeout,leaveTimeout:j.props.transitionLeaveTimeout},$)},g),y(j,C)}return x.prototype.render=function(){return i.default.createElement(l.default,n({},this.props,{childFactory:this._wrapChild}))},x}(i.default.Component);D.displayName="CSSTransitionGroup",D.propTypes=process.env.NODE_ENV!=="production"?v:{},D.defaultProps=M,t.default=D,e.exports=t.default}(jh,fr);var hp=fr,pp=ls(hp),gp=xn,mp=ls(gp);function ls(e){return e&&e.__esModule?e:{default:e}}var yp={TransitionGroup:mp.default,CSSTransitionGroup:pp.default};const vp=e=>e.enableLegacyTransitions?U.createElement(yp.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):U.createElement("g",{className:e.className,transform:e.transform},e.children),bp=15,cs={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},Mp=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>U.createElement(U.Fragment,null,U.createElement("circle",{r:bp,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 _p 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)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:Mp,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut};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)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t){return this.shouldNodeTransform(this.props,t)}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?qe(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):(qe(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 Yi=Math.PI,Vi=2*Yi,It=1e-6,xp=Vi-It;function qi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function fs(){return new qi}qi.prototype=fs.prototype={constructor:qi,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>It)if(!(Math.abs(c*s-l*u)>It)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,y=s*s+l*l,m=f*f+h*h,v=Math.sqrt(y),M=Math.sqrt(d),D=i*Math.tan((Yi-Math.acos((y+d-m)/(2*v*M)))/2),O=D/M,x=D/v;Math.abs(O-1)>It&&(this._+="L"+(e+O*u)+","+(t+O*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+x*s)+","+(this._y1=t+x*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)>It||Math.abs(this._y1-u)>It)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Vi+Vi),d>xp?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>It&&(this._+="A"+n+","+n+",0,"+ +(d>=Yi)+","+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 Tp(e){return e[0]}function wp(e){return e[1]}var Np=Array.prototype.slice;function Ep(e){return e.source}function Dp(e){return e.target}function hs(e){var t=Ep,n=Dp,r=Tp,i=wp,o=null;function a(){var s,l=Np.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 Op(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Cp(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Sp(){return hs(Op)}function Ap(){return hs(Cp)}class Ip 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?qe(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):(qe(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"?Sp()({source:[r.y,r.x],target:[i.y,i.x]}):Ap()({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 kp=`
54
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=ts,t.componentWillReceiveProps=ns),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=rs;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 ep=Xr(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Zh},Symbol.toStringTag,{value:"Module"})));var lr={};lr.__esModule=!0,lr.getChildMapping=np,lr.mergeChildMappings=rp;var tp=U;function np(e){if(!e)return e;var t={};return tp.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function rp(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(x){for(var g=1;g<arguments.length;g++){var j=arguments[g];for(var C in j)Object.prototype.hasOwnProperty.call(j,C)&&(x[C]=j[C])}return x},r=Xh,i=h(r),o=U,a=h(o),s=_n,l=h(s),u=Jh,c=h(u),d=ep,f=lr;function h(x){return x&&x.__esModule?x:{default:x}}function v(x,g){if(!(x instanceof g))throw new TypeError("Cannot call a class as a function")}function m(x,g){if(!x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:x}function y(x,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);x.prototype=Object.create(g&&g.prototype,{constructor:{value:x,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(x,g):x.__proto__=g)}var _={component:l.default.any,childFactory:l.default.func,children:l.default.node},D={component:"span",childFactory:function(g){return g}},O=function(x){y(g,x);function g(j,C){v(this,g);var I=m(this,x.call(this,j,C));return I.performAppear=function(k,E){I.currentlyTransitioningKeys[k]=!0,E.componentWillAppear?E.componentWillAppear(I._handleDoneAppearing.bind(I,k,E)):I._handleDoneAppearing(k,E)},I._handleDoneAppearing=function(k,E){E&&E.componentDidAppear&&E.componentDidAppear(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);(!$||!$.hasOwnProperty(k))&&I.performLeave(k,E)},I.performEnter=function(k,E){I.currentlyTransitioningKeys[k]=!0,E.componentWillEnter?E.componentWillEnter(I._handleDoneEntering.bind(I,k,E)):I._handleDoneEntering(k,E)},I._handleDoneEntering=function(k,E){E&&E.componentDidEnter&&E.componentDidEnter(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);(!$||!$.hasOwnProperty(k))&&I.performLeave(k,E)},I.performLeave=function(k,E){I.currentlyTransitioningKeys[k]=!0,E&&E.componentWillLeave?E.componentWillLeave(I._handleDoneLeaving.bind(I,k,E)):I._handleDoneLeaving(k,E)},I._handleDoneLeaving=function(k,E){E&&E.componentDidLeave&&E.componentDidLeave(),delete I.currentlyTransitioningKeys[k];var $=(0,f.getChildMapping)(I.props.children);$&&$.hasOwnProperty(k)?I.keysToEnter.push(k):I.setState(function(X){var H=n({},X.children);return delete H[k],{children:H}})},I.childRefs=Object.create(null),I.currentlyTransitioningKeys={},I.keysToEnter=[],I.keysToLeave=[],I.state={children:(0,f.getChildMapping)(j.children)},I}return g.prototype.componentDidMount=function(){var C=this.state.children;for(var I in C)C[I]&&this.performAppear(I,this.childRefs[I])},g.getDerivedStateFromProps=function(C,I){var k=(0,f.getChildMapping)(C.children),E=I.children;return{children:(0,f.mergeChildMappings)(E,k)}},g.prototype.componentDidUpdate=function(C,I){var k=this,E=(0,f.getChildMapping)(this.props.children),$=I.children;for(var X in E){var H=$&&$.hasOwnProperty(X);E[X]&&!H&&!this.currentlyTransitioningKeys[X]&&this.keysToEnter.push(X)}for(var b in $){var z=E&&E.hasOwnProperty(b);$[b]&&!z&&!this.currentlyTransitioningKeys[b]&&this.keysToLeave.push(b)}var N=this.keysToEnter;this.keysToEnter=[],N.forEach(function(P){return k.performEnter(P,k.childRefs[P])});var R=this.keysToLeave;this.keysToLeave=[],R.forEach(function(P){return k.performLeave(P,k.childRefs[P])})},g.prototype.render=function(){var C=this,I=[],k=function(H){var b=C.state.children[H];if(b){var z=typeof b.ref!="string",N=C.props.childFactory(b),R=function(B){C.childRefs[H]=B};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===b&&z&&(R=(0,i.default)(b.ref,R)),I.push(a.default.cloneElement(N,{key:H,ref:R}))}};for(var E in this.state.children)k(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,$,I)},g}(a.default.Component);O.displayName="TransitionGroup",O.propTypes=process.env.NODE_ENV!=="production"?_:{},O.defaultProps=D,t.default=(0,d.polyfill)(O),e.exports=t.default})(ji,ji.exports);var is=ji.exports,zi={exports:{}},Ri={exports:{}},os={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})(os);var De=os.exports,cr={exports:{}},as;function ip(){return as||(as=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}(cr,cr.exports)),cr.exports}(function(e,t){var n=De;t.__esModule=!0,t.default=i;var r=n(ip());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})(Ri,Ri.exports);var op=Ri.exports;function ss(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var ap=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=ss(t.className,n):t.setAttribute("class",ss(t.className&&t.className.baseVal||"",n))},$i={exports:{}},fr={exports:{}},us;function ls(){return us||(us=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}(fr,fr.exports)),fr.exports}(function(e,t){var n=De;t.__esModule=!0,t.default=void 0;var r=n(ls()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,l=function(h,v){return h+(h?v[0].toUpperCase()+v.substr(1):v)+"AnimationFrame"};r.default&&i.some(function(f){var h=l(f,"request");if(h in window)return o=l(f,"cancel"),a=function(m){return window[h](m)}});var u=new Date().getTime();function c(f){var h=new Date().getTime(),v=Math.max(0,16-(h-u)),m=setTimeout(f,v);return u=h,m}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})($i,$i.exports);var sp=$i.exports,ae={},up=De;ae.__esModule=!0,ae.default=ae.animationEnd=ae.animationDelay=ae.animationTiming=ae.animationDuration=ae.animationName=ae.transitionEnd=ae.transitionDuration=ae.transitionDelay=ae.transitionTiming=ae.transitionProperty=ae.transform=void 0;var lp=up(ls()),dr="transform";ae.transform=dr;var ct,Li,cs;ae.animationEnd=cs,ae.transitionEnd=Li;var Pi,Fi,Ui,Yi;ae.transitionDelay=Yi,ae.transitionTiming=Ui,ae.transitionDuration=Fi,ae.transitionProperty=Pi;var fs,ds,hs,ps;if(ae.animationDelay=ps,ae.animationTiming=hs,ae.animationDuration=ds,ae.animationName=fs,lp.default){var Vi=fp();ct=Vi.prefix,ae.transitionEnd=Li=Vi.transitionEnd,ae.animationEnd=cs=Vi.animationEnd,ae.transform=dr=ct+"-"+dr,ae.transitionProperty=Pi=ct+"-transition-property",ae.transitionDuration=Fi=ct+"-transition-duration",ae.transitionDelay=Yi=ct+"-transition-delay",ae.transitionTiming=Ui=ct+"-transition-timing-function",ae.animationName=fs=ct+"-animation-name",ae.animationDuration=ds=ct+"-animation-duration",ae.animationTiming=hs=ct+"-animation-delay",ae.animationDelay=ps=ct+"-animation-timing-function"}var cp={transform:dr,end:Li,property:Pi,timing:Ui,delay:Yi,duration:Fi};ae.default=cp;function fp(){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 Ut={};Ut.__esModule=!0,Ut.nameShape=void 0,Ut.transitionTimeout=pp;var dp=U;gs(dp);var hp=_n,Xe=gs(hp);function gs(e){return e&&e.__esModule?e:{default:e}}function pp(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}}Ut.nameShape=Xe.default.oneOfType([Xe.default.string,Xe.default.shape({enter:Xe.default.string,leave:Xe.default.string,active:Xe.default.string}),Xe.default.shape({enter:Xe.default.string,enterActive:Xe.default.string,leave:Xe.default.string,leaveActive:Xe.default.string,appear:Xe.default.string,appearActive:Xe.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(I){for(var k=1;k<arguments.length;k++){var E=arguments[k];for(var $ in E)Object.prototype.hasOwnProperty.call(E,$)&&(I[$]=E[$])}return I},r=op,i=y(r),o=ap,a=y(o),s=sp,l=y(s),u=ae,c=U,d=y(c),f=_n,h=y(f),v=vl,m=Ut;function y(I){return I&&I.__esModule?I:{default:I}}function _(I,k){if(!(I instanceof k))throw new TypeError("Cannot call a class as a function")}function D(I,k){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k&&(typeof k=="object"||typeof k=="function")?k:I}function O(I,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof k);I.prototype=Object.create(k&&k.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),k&&(Object.setPrototypeOf?Object.setPrototypeOf(I,k):I.__proto__=k)}var x=[];u.transitionEnd&&x.push(u.transitionEnd),u.animationEnd&&x.push(u.animationEnd);function g(I,k){return x.length?x.forEach(function(E){return I.addEventListener(E,k,!1)}):setTimeout(k,0),function(){x.length&&x.forEach(function(E){return I.removeEventListener(E,k,!1)})}}var j={children:h.default.node,name:m.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(I){O(k,I);function k(E,$){_(this,k);var X=D(this,I.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 k.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function($){clearTimeout($)}),this.classNameAndNodeQueue.length=0},k.prototype.transition=function($,X,H){var b=(0,v.findDOMNode)(this);if(!b){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)(b,z),this.queueClassAndNode(N,b);var B=function(A){A&&A.target!==b||(clearTimeout(R),P&&P(),(0,a.default)(b,z),(0,a.default)(b,N),P&&P(),X&&X())};H?(R=setTimeout(B,H),this.transitionTimeouts.push(R)):u.transitionEnd&&(P=g(b,B))},k.prototype.queueClassAndNode=function($,X){var H=this;this.classNameAndNodeQueue.push({className:$,node:X}),this.rafHandle||(this.rafHandle=(0,l.default)(function(){return H.flushClassNameAndNodeQueue()}))},k.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function($){$.node.scrollTop,(0,i.default)($.node,$.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},k.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),$)},k}(d.default.Component);C.displayName="CSSTransitionGroupChild",C.propTypes=process.env.NODE_ENV!=="production"?j:{},t.default=C,e.exports=t.default}(zi,zi.exports);var gp=zi.exports;(function(e,t){t.__esModule=!0;var n=Object.assign||function(O){for(var x=1;x<arguments.length;x++){var g=arguments[x];for(var j in g)Object.prototype.hasOwnProperty.call(g,j)&&(O[j]=g[j])}return O},r=U,i=f(r),o=_n,a=f(o),s=is,l=f(s),u=gp,c=f(u),d=Ut;function f(O){return O&&O.__esModule?O:{default:O}}function h(O,x){if(!(O instanceof x))throw new TypeError("Cannot call a class as a function")}function v(O,x){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:O}function m(O,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);O.prototype=Object.create(x&&x.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(O,x):O.__proto__=x)}var y={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")},_={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},D=function(O){m(x,O);function x(){var g,j,C;h(this,x);for(var I=arguments.length,k=Array(I),E=0;E<I;E++)k[E]=arguments[E];return C=(g=(j=v(this,O.call.apply(O,[this].concat(k))),j),j._wrapChild=function($){return i.default.createElement(c.default,{name:j.props.transitionName,appear:j.props.transitionAppear,enter:j.props.transitionEnter,leave:j.props.transitionLeave,appearTimeout:j.props.transitionAppearTimeout,enterTimeout:j.props.transitionEnterTimeout,leaveTimeout:j.props.transitionLeaveTimeout},$)},g),v(j,C)}return x.prototype.render=function(){return i.default.createElement(l.default,n({},this.props,{childFactory:this._wrapChild}))},x}(i.default.Component);D.displayName="CSSTransitionGroup",D.propTypes=process.env.NODE_ENV!=="production"?y:{},D.defaultProps=_,t.default=D,e.exports=t.default})(Ni,Ni.exports);var mp=Ni.exports,yp=mp,vp=ms(yp),bp=is,Mp=ms(bp);function ms(e){return e&&e.__esModule?e:{default:e}}var _p={TransitionGroup:Mp.default,CSSTransitionGroup:vp.default};const xp=e=>e.enableLegacyTransitions?U.createElement(_p.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):U.createElement("g",{className:e.className,transform:e.transform},e.children),Tp=15,ys={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},wp=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>U.createElement(U.Fragment,null,U.createElement("circle",{r:Tp,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),U.createElement("g",{className:"rd3t-label"},U.createElement("text",Object.assign({className:"rd3t-label__title"},ys.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}`},ys.attribute),o,": ",typeof a=="boolean"?a.toString():a)))));class Np 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)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:wp,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut};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)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t){return this.shouldNodeTransform(this.props,t)}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?qe(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):(qe(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 qi=Math.PI,Bi=2*qi,It=1e-6,Ep=Bi-It;function Qi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function vs(){return new Qi}Qi.prototype=vs.prototype={constructor:Qi,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>It)if(!(Math.abs(c*s-l*u)>It)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,v=s*s+l*l,m=f*f+h*h,y=Math.sqrt(v),_=Math.sqrt(d),D=i*Math.tan((qi-Math.acos((v+d-m)/(2*y*_)))/2),O=D/_,x=D/y;Math.abs(O-1)>It&&(this._+="L"+(e+O*u)+","+(t+O*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>u*h)+","+(this._x1=e+x*s)+","+(this._y1=t+x*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)>It||Math.abs(this._y1-u)>It)&&(this._+="L"+l+","+u),n&&(d<0&&(d=d%Bi+Bi),d>Ep?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):d>It&&(this._+="A"+n+","+n+",0,"+ +(d>=qi)+","+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 bs(e){return function(){return e}}function Dp(e){return e[0]}function Op(e){return e[1]}var Cp=Array.prototype.slice;function Sp(e){return e.source}function Ap(e){return e.target}function Ms(e){var t=Sp,n=Ap,r=Dp,i=Op,o=null;function a(){var s,l=Cp.call(arguments),u=t.apply(this,l),c=n.apply(this,l);if(o||(o=s=vs()),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:bs(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:bs(+s),a):i},a.context=function(s){return arguments.length?(o=s??null,a):o},a}function Ip(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function kp(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function jp(){return Ms(Ip)}function zp(){return Ms(kp)}class Rp 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?qe(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):(qe(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"?jp()({source:[r.y,r.x],target:[i.y,i.x]}):zp()({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 $p=`
55
55
  /* Tree */
56
56
  .rd3t-tree-container {
57
57
  width: 100%;
@@ -103,9 +103,9 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
103
103
  fill: none;
104
104
  stroke: #000;
105
105
  }
106
- `;let ps=class yt extends U.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:yt.assignInternalProperties(Be(this.props.data)),d3:yt.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${Oi()}`,this.gInstanceRef=`rd3t-g-${Oi()}`,this.handleNodeToggle=t=>{const n=Be(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(yt.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):yt.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.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Be(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Be(t),Be(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Be(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Be(t),Be(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Be(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Be(t),Be(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const a=qe(`.${this.gInstanceRef}`),s=qe(`.${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(Ei().transform,lr.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;t.data!==n.dataRef&&(r={dataRef:t.data,data:yt.assignInternalProperties(Be(t.data)),isInitialRenderForDataset:!0});const i=yt.calculateD3Geometry(t);return _n(i,n.d3)||(r=r||{},r.d3=i),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!_n(this.props.translate,t.translate)||!_n(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?Be(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=qe(`.${this.svgInstanceRef}`),u=qe(`.${this.gInstanceRef}`);l.call(Ei().transform,lr.translate(i.x,i.y).scale(o)),l.call(Ei().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&&c.sourceEvent.type==="mousemove"||(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=Oi(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=yt.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=>{yt.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=>yt.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:a}=this.state,l=Zl().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)(ii(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:y,scale:m}=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,kp),U.createElement("svg",{className:`rd3t-svg ${this.svgInstanceRef} ${f}`,width:"100%",height:"100%"},U.createElement(vp,{enableLegacyTransitions:d,component:"g",className:`rd3t-g ${this.gInstanceRef}`,transform:`translate(${y.x},${y.y}) scale(${m})`},n.map((M,D)=>U.createElement(Ip,{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:g,parent:j}=M;return U.createElement(_p,{key:"node-"+D,data:O,position:{x,y:g},hierarchyPointNode:M,parent:j,nodeClassName:this.getNodeClassName(j,O),renderCustomNodeElement:r,nodeSize:s,orientation:i,enableLegacyTransitions:d,transitionDuration:a,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,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};const jp=()=>{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})=>oe("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[_("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`}),_("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`})]}),Nt={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(Nt),Je=()=>U.useContext(ms),zp=()=>{const{setModalOpen:e}=Je();return{handleClick:()=>e("add")}},Rp=()=>{const{t:e}=Qe.useTranslation("button"),{handleClick:t}=zp();return _(N.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:_(N.Button,{onClick:t,size:"medium",variant:"contained",startIcon:_(gs,{}),children:e("createTree")})})},Bi={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${Me.borderGrey} !important`}},ys="tree-link",$p=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=jp(),{currentTree:a}=Je();return!e&&!a.id?_(Rp,{}):a.id&&!e?_(N.Box,{sx:Bi.progressContainer,children:_(N.CircularProgress,{})}):oe("div",{style:Bi.container,ref:i,children:[_(N.GlobalStyles,{styles:{[`.${ys}`]:Bi.treeLink}}),_(ps,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>ys,nodeSize:n})]})},vs=U.memo($p),Lp=()=>({formatJSON:t=>JSON.stringify(t??{},null,2)}),bs={fullHeight:{height:"100%"}},Pp=({value:e})=>{const{formatJSON:t}=Lp();return oe("div",{style:bs.fullHeight,children:[_(N.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),_(fl,{value:t(e),extensions:[ll.json()],editable:!1,theme:cl.dracula,height:"100%",style:bs.fullHeight})]})};var Qi={},Wi={};function kt(){return kt=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},kt.apply(this,arguments)}function Yt(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ms(e){if(!Yt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ms(e[n])}),t}function _t(e,t,n={clone:!0}){const r=n.clone?kt({},e):e;return Yt(e)&&Yt(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Yt(t[i])&&i in e&&Yt(e[i])?r[i]=_t(e[i],t[i],n):n.clone?r[i]=Yt(t[i])?Ms(t[i]):t[i]:r[i]=t[i])}),r}function Vt(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 vr={},Fp={get exports(){return vr},set exports(e){vr=e}},ye={};/**
106
+ `;let _s=class yt extends U.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:yt.assignInternalProperties(He(this.props.data)),d3:yt.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${wi()}`,this.gInstanceRef=`rd3t-g-${wi()}`,this.handleNodeToggle=t=>{const n=He(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(yt.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):yt.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.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(He(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(He(t),He(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(He(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(He(t),He(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(He(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(He(t),He(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const a=qe(`.${this.gInstanceRef}`),s=qe(`.${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(xi().transform,ar.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;t.data!==n.dataRef&&(r={dataRef:t.data,data:yt.assignInternalProperties(He(t.data)),isInitialRenderForDataset:!0});const i=yt.calculateD3Geometry(t);return Mn(i,n.d3)||(r=r||{},r.d3=i),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!Mn(this.props.translate,t.translate)||!Mn(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?He(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=qe(`.${this.svgInstanceRef}`),u=qe(`.${this.gInstanceRef}`);l.call(xi().transform,ar.translate(i.x,i.y).scale(o)),l.call(xi().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&&c.sourceEvent.type==="mousemove"||(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=wi(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=yt.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=>{yt.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=>yt.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:a}=this.state,l=uc().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)(ei(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:v,scale:m}=this.state.d3,y=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,$p),U.createElement("svg",{className:`rd3t-svg ${this.svgInstanceRef} ${f}`,width:"100%",height:"100%"},U.createElement(xp,{enableLegacyTransitions:d,component:"g",className:`rd3t-g ${this.gInstanceRef}`,transform:`translate(${v.x},${v.y}) scale(${m})`},n.map((_,D)=>U.createElement(Rp,{key:"link-"+D,orientation:i,pathFunc:o,pathClassFunc:h,linkData:_,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:d,transitionDuration:a})),t.map((_,D)=>{const{data:O,x,y:g,parent:j}=_;return U.createElement(Np,{key:"node-"+D,data:O,position:{x,y:g},hierarchyPointNode:_,parent:j,nodeClassName:this.getNodeClassName(j,O),renderCustomNodeElement:r,nodeSize:s,orientation:i,enableLegacyTransitions:d,transitionDuration:a,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,subscriptions:y,centerNode:this.centerNode})}))))}};_s.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};const Lp=()=>{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}},xs=({color:e,height:t=20,width:n=20})=>oe("svg",{focusable:"false",x:"0px",y:"0px",viewBox:"0 0 24 24",color:e,height:t,width:n,children:[M("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`}),M("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`})]}),Nt={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},Ts=U.createContext(Nt),Je=()=>U.useContext(Ts),Pp=()=>{const{setModalOpen:e}=Je();return{handleClick:()=>e("add")}},Fp=()=>{const{t:e}=Be.useTranslation("button"),{handleClick:t}=Pp();return M(w.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:M(w.Button,{onClick:t,size:"medium",variant:"contained",startIcon:M(xs,{}),children:e("createTree")})})},Wi={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${be.borderGrey} !important`}},ws="tree-link",Up=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Lp(),{currentTree:a}=Je();return!e&&!a.id?M(Fp,{}):a.id&&!e?M(w.Box,{sx:Wi.progressContainer,children:M(w.CircularProgress,{})}):oe("div",{style:Wi.container,ref:i,children:[M(w.GlobalStyles,{styles:{[`.${ws}`]:Wi.treeLink}}),M(_s,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>ws,nodeSize:n})]})},Ns=U.memo(Up),Yp=()=>({formatJSON:t=>JSON.stringify(t??{},null,2)}),Es={fullHeight:{height:"100%"}},Vp=({value:e})=>{const{formatJSON:t}=Yp();return oe("div",{style:Es.fullHeight,children:[M(w.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),M(_l,{value:t(e),extensions:[bl.json()],editable:!1,theme:Ml.dracula,height:"100%",style:Es.fullHeight})]})};var Gi={},Ki={};function kt(){return kt=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},kt.apply(this,arguments)}function Yt(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Ds(e){if(!Yt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Ds(e[n])}),t}function _t(e,t,n={clone:!0}){const r=n.clone?kt({},e):e;return Yt(e)&&Yt(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Yt(t[i])&&i in e&&Yt(e[i])?r[i]=_t(e[i],t[i],n):n.clone?r[i]=Yt(t[i])?Ds(t[i]):t[i]:r[i]=t[i])}),r}function Vt(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 Hi={exports:{}},me={};/**
109
109
  * @license React
110
110
  * react-is.production.min.js
111
111
  *
@@ -113,7 +113,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
113
113
  *
114
114
  * This source code is licensed under the MIT license found in the
115
115
  * LICENSE file in the root directory of this source tree.
116
- */var _s;function Up(){if(_s)return ye;_s=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"),y;y=Symbol.for("react.module.reference");function m(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 ye.ContextConsumer=a,ye.ContextProvider=o,ye.Element=e,ye.ForwardRef=l,ye.Fragment=n,ye.Lazy=f,ye.Memo=d,ye.Portal=t,ye.Profiler=i,ye.StrictMode=r,ye.Suspense=u,ye.SuspenseList=c,ye.isAsyncMode=function(){return!1},ye.isConcurrentMode=function(){return!1},ye.isContextConsumer=function(v){return m(v)===a},ye.isContextProvider=function(v){return m(v)===o},ye.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},ye.isForwardRef=function(v){return m(v)===l},ye.isFragment=function(v){return m(v)===n},ye.isLazy=function(v){return m(v)===f},ye.isMemo=function(v){return m(v)===d},ye.isPortal=function(v){return m(v)===t},ye.isProfiler=function(v){return m(v)===i},ye.isStrictMode=function(v){return m(v)===r},ye.isSuspense=function(v){return m(v)===u},ye.isSuspenseList=function(v){return m(v)===c},ye.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===y||v.getModuleId!==void 0)},ye.typeOf=m,ye}var ve={};/**
116
+ */var Os;function qp(){if(Os)return me;Os=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"),v;v=Symbol.for("react.module.reference");function m(y){if(typeof y=="object"&&y!==null){var _=y.$$typeof;switch(_){case e:switch(y=y.type,y){case n:case i:case r:case u:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case a:case l:case f:case d:case o:return y;default:return _}}case t:return _}}}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(y){return m(y)===a},me.isContextProvider=function(y){return m(y)===o},me.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},me.isForwardRef=function(y){return m(y)===l},me.isFragment=function(y){return m(y)===n},me.isLazy=function(y){return m(y)===f},me.isMemo=function(y){return m(y)===d},me.isPortal=function(y){return m(y)===t},me.isProfiler=function(y){return m(y)===i},me.isStrictMode=function(y){return m(y)===r},me.isSuspense=function(y){return m(y)===u},me.isSuspenseList=function(y){return m(y)===c},me.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===n||y===i||y===r||y===u||y===c||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===f||y.$$typeof===d||y.$$typeof===o||y.$$typeof===a||y.$$typeof===l||y.$$typeof===v||y.getModuleId!==void 0)},me.typeOf=m,me}var ye={};/**
117
117
  * @license React
118
118
  * react-is.development.js
119
119
  *
@@ -121,37 +121,37 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
121
121
  *
122
122
  * This source code is licensed under the MIT license found in the
123
123
  * LICENSE file in the root directory of this source tree.
124
- */var xs;function Yp(){return xs||(xs=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"),y=!1,m=!1,v=!1,M=!1,D=!1,O;O=Symbol.for("react.module.reference");function x(G){return!!(typeof G=="string"||typeof G=="function"||G===n||G===i||D||G===r||G===u||G===c||M||G===h||y||m||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 g(G){if(typeof G=="object"&&G!==null){var tt=G.$$typeof;switch(tt){case e:var at=G.type;switch(at){case n:case i:case r:case u:case c:return at;default:var jt=at&&at.$$typeof;switch(jt){case s:case a:case l:case f:case d:case o:return jt;default:return tt}}case t:return tt}}}var j=a,C=o,I=e,k=l,E=n,$=f,X=d,H=t,b=i,z=r,w=u,R=c,P=!1,B=!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 B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(G){return g(G)===a}function K(G){return g(G)===o}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function J(G){return g(G)===l}function Q(G){return g(G)===n}function W(G){return g(G)===f}function ee(G){return g(G)===d}function re(G){return g(G)===t}function te(G){return g(G)===i}function Ce(G){return g(G)===r}function Y(G){return g(G)===u}function Ue(G){return g(G)===c}ve.ContextConsumer=j,ve.ContextProvider=C,ve.Element=I,ve.ForwardRef=k,ve.Fragment=E,ve.Lazy=$,ve.Memo=X,ve.Portal=H,ve.Profiler=b,ve.StrictMode=z,ve.Suspense=w,ve.SuspenseList=R,ve.isAsyncMode=T,ve.isConcurrentMode=A,ve.isContextConsumer=V,ve.isContextProvider=K,ve.isElement=q,ve.isForwardRef=J,ve.isFragment=Q,ve.isLazy=W,ve.isMemo=ee,ve.isPortal=re,ve.isProfiler=te,ve.isStrictMode=Ce,ve.isSuspense=Y,ve.isSuspenseList=Ue,ve.isValidElementType=x,ve.typeOf=g}()),ve}(function(e){process.env.NODE_ENV==="production"?e.exports=Up():e.exports=Yp()})(Fp);const Vp=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qp(e){const t=`${e}`.match(Vp);return t&&t[1]||""}function Ts(e,t=""){return e.displayName||e.name||qp(e)||t}function ws(e,t,n){const r=Ts(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Bp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ts(e,"Component");if(typeof e=="object")switch(e.$$typeof){case vr.ForwardRef:return ws(e,e.render,"ForwardRef");case vr.Memo:return ws(e,e.type,"memo");default:return}}}function ft(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Vt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Qp(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Wp(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 Gp(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 Kp(e,t){return ue.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Ns(e){return e&&e.ownerDocument||document}function Hp(e){return Ns(e).defaultView||window}function Xp(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?kt({},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 Es(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ds=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;let Os=0;function Jp(e){const[t,n]=ue.useState(e),r=e||t;return ue.useEffect(()=>{t==null&&(Os+=1,n(`mui-${Os}`))},[t]),r}const Cs=ue["useId".toString()];function Zp(e){if(Cs!==void 0){const t=Cs();return e??t}return Jp(e)}function e0(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 t0({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(`
124
+ */var Cs;function Bp(){return Cs||(Cs=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"),v=!1,m=!1,y=!1,_=!1,D=!1,O;O=Symbol.for("react.module.reference");function x(G){return!!(typeof G=="string"||typeof G=="function"||G===n||G===i||D||G===r||G===u||G===c||_||G===h||v||m||y||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 g(G){if(typeof G=="object"&&G!==null){var tt=G.$$typeof;switch(tt){case e:var at=G.type;switch(at){case n:case i:case r:case u:case c:return at;default:var jt=at&&at.$$typeof;switch(jt){case s:case a:case l:case f:case d:case o:return jt;default:return tt}}case t:return tt}}}var j=a,C=o,I=e,k=l,E=n,$=f,X=d,H=t,b=i,z=r,N=u,R=c,P=!1,B=!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 B||(B=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function V(G){return g(G)===a}function K(G){return g(G)===o}function q(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function J(G){return g(G)===l}function Q(G){return g(G)===n}function W(G){return g(G)===f}function ee(G){return g(G)===d}function re(G){return g(G)===t}function te(G){return g(G)===i}function Ce(G){return g(G)===r}function Y(G){return g(G)===u}function Ue(G){return g(G)===c}ye.ContextConsumer=j,ye.ContextProvider=C,ye.Element=I,ye.ForwardRef=k,ye.Fragment=E,ye.Lazy=$,ye.Memo=X,ye.Portal=H,ye.Profiler=b,ye.StrictMode=z,ye.Suspense=N,ye.SuspenseList=R,ye.isAsyncMode=T,ye.isConcurrentMode=A,ye.isContextConsumer=V,ye.isContextProvider=K,ye.isElement=q,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=Ue,ye.isValidElementType=x,ye.typeOf=g}()),ye}process.env.NODE_ENV==="production"?Hi.exports=qp():Hi.exports=Bp();var Ss=Hi.exports;const Qp=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Wp(e){const t=`${e}`.match(Qp);return t&&t[1]||""}function As(e,t=""){return e.displayName||e.name||Wp(e)||t}function Is(e,t,n){const r=As(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Gp(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return As(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ss.ForwardRef:return Is(e,e.render,"ForwardRef");case Ss.Memo:return Is(e,e.type,"memo");default:return}}}function ft(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Vt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Kp(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function Hp(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 Xp(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 Jp(e,t){return ue.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ks(e){return e&&e.ownerDocument||document}function Zp(e){return ks(e).defaultView||window}function e0(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?kt({},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 js(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const zs=typeof window<"u"?ue.useLayoutEffect:ue.useEffect;let Rs=0;function t0(e){const[t,n]=ue.useState(e),r=e||t;return ue.useEffect(()=>{t==null&&(Rs+=1,n(`mui-${Rs}`))},[t]),r}const $s=ue["useId".toString()];function n0(e){if($s!==void 0){const t=$s();return e??t}return t0(e)}function r0(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 i0({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
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 n0(e){const t=ue.useRef(e);return Ds(()=>{t.current=e}),ue.useCallback((...n)=>(0,t.current)(...n),[])}function r0(...e){return ue.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Es(n,t)})},e)}let br=!0,Gi=!1,Ss;const i0={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 o0(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&i0[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function a0(e){e.metaKey||e.altKey||e.ctrlKey||(br=!0)}function Ki(){br=!1}function s0(){this.visibilityState==="hidden"&&Gi&&(br=!0)}function u0(e){e.addEventListener("keydown",a0,!0),e.addEventListener("mousedown",Ki,!0),e.addEventListener("pointerdown",Ki,!0),e.addEventListener("touchstart",Ki,!0),e.addEventListener("visibilitychange",s0,!0)}function l0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return br||o0(t)}function c0(){const e=ue.useCallback(i=>{i!=null&&u0(i.ownerDocument)},[]),t=ue.useRef(!1);function n(){return t.current?(Gi=!0,window.clearTimeout(Ss),Ss=window.setTimeout(()=>{Gi=!1},100),t.current=!1,!0):!1}function r(i){return l0(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function As(e,t){const n=kt({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=kt({},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]=kt({},o),Object.keys(i).forEach(a=>{n[r][a]=As(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function f0(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}}})(),d0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Hi(e,t,n="Mui"){const r=d0[t];return r?`${n}-${r}`:`${ks.generate(e)}-${t}`}function h0(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Hi(e,i,n)}),r}function Pe(){return Pe=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},Pe.apply(this,arguments)}function Nn(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 js(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=js(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function p0(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=js(e))&&(r&&(r+=" "),r+=t);return r}function Xi(){return Xi=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},Xi.apply(this,arguments)}function zs(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var g0=/^((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)-.*))$/,m0=zs(function(e){return g0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function y0(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 v0(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 b0=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(v0(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=y0(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}(),Fe="-ms-",Mr="-moz-",fe="-webkit-",Ji="comm",Zi="rule",eo="decl",M0="@import",Rs="@keyframes",_0="@layer",x0=Math.abs,_r=String.fromCharCode,T0=Object.assign;function w0(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function $s(e){return e.trim()}function N0(e,t){return(e=t.exec(e))?e[0]:e}function de(e,t,n){return e.replace(t,n)}function to(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function En(e,t,n){return e.slice(t,n)}function dt(e){return e.length}function no(e){return e.length}function xr(e,t){return t.push(e),e}function E0(e,t){return e.map(t).join("")}var Tr=1,qt=1,Ls=0,Ge=0,Oe=0,Bt="";function wr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Tr,column:qt,length:a,return:""}}function Dn(e,t){return T0(wr("",null,null,"",null,null,0),e,{length:-e.length},t)}function D0(){return Oe}function O0(){return Oe=Ge>0?ze(Bt,--Ge):0,qt--,Oe===10&&(qt=1,Tr--),Oe}function Ze(){return Oe=Ge<Ls?ze(Bt,Ge++):0,qt++,Oe===10&&(qt=1,Tr++),Oe}function ht(){return ze(Bt,Ge)}function Nr(){return Ge}function On(e,t){return En(Bt,e,t)}function Cn(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 Ps(e){return Tr=qt=1,Ls=dt(Bt=e),Ge=0,[]}function Fs(e){return Bt="",e}function Er(e){return $s(On(Ge-1,ro(e===91?e+2:e===40?e+1:e)))}function C0(e){for(;(Oe=ht())&&Oe<33;)Ze();return Cn(e)>2||Cn(Oe)>3?"":" "}function S0(e,t){for(;--t&&Ze()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return On(e,Nr()+(t<6&&ht()==32&&Ze()==32))}function ro(e){for(;Ze();)switch(Oe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&ro(Oe);break;case 40:e===41&&ro(e);break;case 92:Ze();break}return Ge}function A0(e,t){for(;Ze()&&e+Oe!==47+10;)if(e+Oe===42+42&&ht()===47)break;return"/*"+On(t,Ge-1)+"*"+_r(e===47?e:Ze())}function I0(e){for(;!Cn(ht());)Ze();return On(e,Ge)}function k0(e){return Fs(Dr("",null,null,null,[""],e=Ps(e),0,[0],e))}function Dr(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,y=0,m=1,v=1,M=1,D=0,O="",x=i,g=o,j=r,C=O;v;)switch(y=D,D=Ze()){case 40:if(y!=108&&ze(C,d-1)==58){to(C+=de(Er(D),"&","&\f"),"&\f")!=-1&&(M=-1);break}case 34:case 39:case 91:C+=Er(D);break;case 9:case 10:case 13:case 32:C+=C0(y);break;case 92:C+=S0(Nr()-1,7);continue;case 47:switch(ht()){case 42:case 47:xr(j0(A0(Ze(),Nr()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=dt(C)*M;case 125*m:case 59:case 0:switch(D){case 0:case 125:v=0;case 59+c:M==-1&&(C=de(C,/\f/g,"")),h>0&&dt(C)-d&&xr(h>32?Ys(C+";",r,n,d-1):Ys(de(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(xr(j=Us(C,t,n,u,c,i,s,O,x=[],g=[],d),o),D===123)if(c===0)Dr(C,t,j,j,x,o,d,s,g);else switch(f===99&&ze(C,3)===110?100:f){case 100:case 108:case 109:case 115:Dr(e,j,j,r&&xr(Us(e,j,j,0,0,i,s,O,i,x=[],d),g),i,g,d,s,r?x:g);break;default:Dr(C,j,j,j,[""],g,0,s,g)}}u=c=h=0,m=M=1,O=C="",d=a;break;case 58:d=1+dt(C),h=y;default:if(m<1){if(D==123)--m;else if(D==125&&m++==0&&O0()==125)continue}switch(C+=_r(D),D*m){case 38:M=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(dt(C)-1)*M,M=1;break;case 64:ht()===45&&(C+=Er(Ze())),f=ht(),c=d=dt(O=C+=I0(Nr())),D++;break;case 45:y===45&&dt(C)==2&&(m=0)}}return o}function Us(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=i===0?o:[""],h=no(f),y=0,m=0,v=0;y<r;++y)for(var M=0,D=En(e,d+1,d=x0(m=a[y])),O=e;M<h;++M)(O=$s(m>0?f[M]+" "+D:de(D,/&\f/g,f[M])))&&(l[v++]=O);return wr(e,t,n,i===0?Zi:s,l,u,c)}function j0(e,t,n){return wr(e,t,n,Ji,_r(D0()),En(e,2,-2),0)}function Ys(e,t,n,r){return wr(e,t,n,eo,En(e,0,r),En(e,r+1,-1),r)}function Qt(e,t){for(var n="",r=no(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function z0(e,t,n,r){switch(e.type){case _0:if(e.children.length)break;case M0:case eo:return e.return=e.return||e.value;case Ji:return"";case Rs:return e.return=e.value+"{"+Qt(e.children,r)+"}";case Zi:e.value=e.props.join(",")}return dt(n=Qt(e.children,r))?e.return=e.value+"{"+n+"}":""}function R0(e){var t=no(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 $0(e){return function(t){t.root||(t=t.return)&&e(t)}}var L0=function(t,n,r){for(var i=0,o=0;i=o,o=ht(),i===38&&o===12&&(n[r]=1),!Cn(o);)Ze();return On(t,Ge)},P0=function(t,n){var r=-1,i=44;do switch(Cn(i)){case 0:i===38&&ht()===12&&(n[r]=1),t[r]+=L0(Ge-1,n,r);break;case 2:t[r]+=Er(i);break;case 4:if(i===44){t[++r]=ht()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_r(i)}while(i=Ze());return t},F0=function(t,n){return Fs(P0(Ps(t),n))},Vs=new WeakMap,U0=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&&!Vs.get(r))&&!i){Vs.set(t,!0);for(var o=[],a=F0(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]}}},Y0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},V0="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",q0=function(t){return t.type==="comm"&&t.children.indexOf(V0)>-1},B0=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(q0(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},Q0=function(t,n){for(var r=t-1;r>=0;r--)if(!qs(n[r]))return!0;return!1},Bs=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},W0=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."),Bs(t)):Q0(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Bs(t)))};function Qs(e,t){switch(w0(e,t)){case 5103:return fe+"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 fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+Mr+e+Fe+e+e;case 6828:case 4268:return fe+e+Fe+e+e;case 6165:return fe+e+Fe+"flex-"+e+e;case 5187:return fe+e+de(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return fe+e+Fe+"flex-item-"+de(e,/flex-|-self/,"")+e;case 4675:return fe+e+Fe+"flex-line-pack"+de(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Fe+de(e,"shrink","negative")+e;case 5292:return fe+e+Fe+de(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+de(e,"-grow","")+fe+e+Fe+de(e,"grow","positive")+e;case 4554:return fe+de(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return de(de(de(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return de(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return de(de(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Fe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return de(e,/(.+)-inline(.+)/,fe+"$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(dt(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return de(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+Mr+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~to(e,"stretch")?Qs(de(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,dt(e)-3-(~to(e,"!important")&&10))){case 107:return de(e,":",":"+fe)+e;case 101:return de(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(ze(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return fe+e+Fe+de(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Fe+de(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Fe+de(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Fe+e+e}return e}var G0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case eo:t.return=Qs(t.value,t.length);break;case Rs:return Qt([Dn(t,{value:de(t.value,"@","@"+fe)})],i);case Zi:if(t.length)return E0(t.props,function(o){switch(N0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qt([Dn(t,{props:[de(o,/:(read-\w+)/,":"+Mr+"$1")]})],i);case"::placeholder":return Qt([Dn(t,{props:[de(o,/:(plac\w+)/,":"+fe+"input-$1")]}),Dn(t,{props:[de(o,/:(plac\w+)/,":"+Mr+"$1")]}),Dn(t,{props:[de(o,/:(plac\w+)/,Fe+"input-$1")]})],i)}return""})}},K0=[G0],H0=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(m){var v=m.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||K0;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(m){for(var v=m.getAttribute("data-emotion").split(" "),M=1;M<v.length;M++)o[v[M]]=!0;s.push(m)});var l,u=[U0,Y0];process.env.NODE_ENV!=="production"&&u.push(B0({get compat(){return y.compat}}),W0);{var c,d=[z0,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Ji&&c.insert(m.value+"{}"))}:$0(function(m){c.insert(m)})],f=R0(u.concat(i,d)),h=function(v){return Qt(k0(v),f)};l=function(v,M,D,O){c=D,process.env.NODE_ENV!=="production"&&M.map!==void 0&&(c={insert:function(g){D.insert(g+M.map)}}),h(v?v+"{"+M.styles+"}":M.styles),O&&(y.inserted[M.name]=!0)}}var y={key:n,sheet:new b0({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 y.sheet.hydrate(s),y},X0=!0;function Ws(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var io=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||X0===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Gs=function(t,n,r){io(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 J0(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 Z0={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},Ks=`You have illegal escape sequence in your template literal, most likely inside content's property value.
126
+ `))},[JSON.stringify(t)])}const l=ue.useCallback(u=>{i||a(u)},[]);return[s,l]}function o0(e){const t=ue.useRef(e);return zs(()=>{t.current=e}),ue.useCallback((...n)=>(0,t.current)(...n),[])}function a0(...e){return ue.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{js(n,t)})},e)}let hr=!0,Xi=!1,Ls;const s0={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 u0(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&s0[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function l0(e){e.metaKey||e.altKey||e.ctrlKey||(hr=!0)}function Ji(){hr=!1}function c0(){this.visibilityState==="hidden"&&Xi&&(hr=!0)}function f0(e){e.addEventListener("keydown",l0,!0),e.addEventListener("mousedown",Ji,!0),e.addEventListener("pointerdown",Ji,!0),e.addEventListener("touchstart",Ji,!0),e.addEventListener("visibilitychange",c0,!0)}function d0(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return hr||u0(t)}function h0(){const e=ue.useCallback(i=>{i!=null&&f0(i.ownerDocument)},[]),t=ue.useRef(!1);function n(){return t.current?(Xi=!0,window.clearTimeout(Ls),Ls=window.setTimeout(()=>{Xi=!1},100),t.current=!1,!0):!1}function r(i){return d0(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Ps(e,t){const n=kt({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=kt({},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]=kt({},o),Object.keys(i).forEach(a=>{n[r][a]=Ps(i[a],o[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function p0(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 Fs=e=>e,Us=(()=>{let e=Fs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Fs}}})(),g0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Zi(e,t,n="Mui"){const r=g0[t];return r?`${n}-${r}`:`${Us.generate(e)}-${t}`}function m0(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Zi(e,i,n)}),r}function Pe(){return Pe=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},Pe.apply(this,arguments)}function xn(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 Ys(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=Ys(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function y0(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Ys(e))&&(r&&(r+=" "),r+=t);return r}function eo(){return eo=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},eo.apply(this,arguments)}function Vs(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var v0=/^((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)-.*))$/,b0=Vs(function(e){return v0.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function M0(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 _0(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 x0=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(_0(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=M0(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}(),Fe="-ms-",pr="-moz-",ce="-webkit-",to="comm",no="rule",ro="decl",T0="@import",qs="@keyframes",w0="@layer",N0=Math.abs,gr=String.fromCharCode,E0=Object.assign;function D0(e,t){return $e(e,0)^45?(((t<<2^$e(e,0))<<2^$e(e,1))<<2^$e(e,2))<<2^$e(e,3):0}function Bs(e){return e.trim()}function O0(e,t){return(e=t.exec(e))?e[0]:e}function fe(e,t,n){return e.replace(t,n)}function io(e,t){return e.indexOf(t)}function $e(e,t){return e.charCodeAt(t)|0}function Tn(e,t,n){return e.slice(t,n)}function dt(e){return e.length}function oo(e){return e.length}function mr(e,t){return t.push(e),e}function C0(e,t){return e.map(t).join("")}var yr=1,qt=1,Qs=0,We=0,Oe=0,Bt="";function vr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:yr,column:qt,length:a,return:""}}function wn(e,t){return E0(vr("",null,null,"",null,null,0),e,{length:-e.length},t)}function S0(){return Oe}function A0(){return Oe=We>0?$e(Bt,--We):0,qt--,Oe===10&&(qt=1,yr--),Oe}function Ze(){return Oe=We<Qs?$e(Bt,We++):0,qt++,Oe===10&&(qt=1,yr++),Oe}function ht(){return $e(Bt,We)}function br(){return We}function Nn(e,t){return Tn(Bt,e,t)}function En(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 Ws(e){return yr=qt=1,Qs=dt(Bt=e),We=0,[]}function Gs(e){return Bt="",e}function Mr(e){return Bs(Nn(We-1,ao(e===91?e+2:e===40?e+1:e)))}function I0(e){for(;(Oe=ht())&&Oe<33;)Ze();return En(e)>2||En(Oe)>3?"":" "}function k0(e,t){for(;--t&&Ze()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return Nn(e,br()+(t<6&&ht()==32&&Ze()==32))}function ao(e){for(;Ze();)switch(Oe){case e:return We;case 34:case 39:e!==34&&e!==39&&ao(Oe);break;case 40:e===41&&ao(e);break;case 92:Ze();break}return We}function j0(e,t){for(;Ze()&&e+Oe!==47+10;)if(e+Oe===42+42&&ht()===47)break;return"/*"+Nn(t,We-1)+"*"+gr(e===47?e:Ze())}function z0(e){for(;!En(ht());)Ze();return Nn(e,We)}function R0(e){return Gs(_r("",null,null,null,[""],e=Ws(e),0,[0],e))}function _r(e,t,n,r,i,o,a,s,l){for(var u=0,c=0,d=a,f=0,h=0,v=0,m=1,y=1,_=1,D=0,O="",x=i,g=o,j=r,C=O;y;)switch(v=D,D=Ze()){case 40:if(v!=108&&$e(C,d-1)==58){io(C+=fe(Mr(D),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Mr(D);break;case 9:case 10:case 13:case 32:C+=I0(v);break;case 92:C+=k0(br()-1,7);continue;case 47:switch(ht()){case 42:case 47:mr($0(j0(Ze(),br()),t,n),l);break;default:C+="/"}break;case 123*m:s[u++]=dt(C)*_;case 125*m:case 59:case 0:switch(D){case 0:case 125:y=0;case 59+c:_==-1&&(C=fe(C,/\f/g,"")),h>0&&dt(C)-d&&mr(h>32?Hs(C+";",r,n,d-1):Hs(fe(C," ","")+";",r,n,d-2),l);break;case 59:C+=";";default:if(mr(j=Ks(C,t,n,u,c,i,s,O,x=[],g=[],d),o),D===123)if(c===0)_r(C,t,j,j,x,o,d,s,g);else switch(f===99&&$e(C,3)===110?100:f){case 100:case 108:case 109:case 115:_r(e,j,j,r&&mr(Ks(e,j,j,0,0,i,s,O,i,x=[],d),g),i,g,d,s,r?x:g);break;default:_r(C,j,j,j,[""],g,0,s,g)}}u=c=h=0,m=_=1,O=C="",d=a;break;case 58:d=1+dt(C),h=v;default:if(m<1){if(D==123)--m;else if(D==125&&m++==0&&A0()==125)continue}switch(C+=gr(D),D*m){case 38:_=c>0?1:(C+="\f",-1);break;case 44:s[u++]=(dt(C)-1)*_,_=1;break;case 64:ht()===45&&(C+=Mr(Ze())),f=ht(),c=d=dt(O=C+=z0(br())),D++;break;case 45:v===45&&dt(C)==2&&(m=0)}}return o}function Ks(e,t,n,r,i,o,a,s,l,u,c){for(var d=i-1,f=i===0?o:[""],h=oo(f),v=0,m=0,y=0;v<r;++v)for(var _=0,D=Tn(e,d+1,d=N0(m=a[v])),O=e;_<h;++_)(O=Bs(m>0?f[_]+" "+D:fe(D,/&\f/g,f[_])))&&(l[y++]=O);return vr(e,t,n,i===0?no:s,l,u,c)}function $0(e,t,n){return vr(e,t,n,to,gr(S0()),Tn(e,2,-2),0)}function Hs(e,t,n,r){return vr(e,t,n,ro,Tn(e,0,r),Tn(e,r+1,-1),r)}function Qt(e,t){for(var n="",r=oo(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function L0(e,t,n,r){switch(e.type){case w0:if(e.children.length)break;case T0:case ro:return e.return=e.return||e.value;case to:return"";case qs:return e.return=e.value+"{"+Qt(e.children,r)+"}";case no:e.value=e.props.join(",")}return dt(n=Qt(e.children,r))?e.return=e.value+"{"+n+"}":""}function P0(e){var t=oo(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 F0(e){return function(t){t.root||(t=t.return)&&e(t)}}var U0=function(t,n,r){for(var i=0,o=0;i=o,o=ht(),i===38&&o===12&&(n[r]=1),!En(o);)Ze();return Nn(t,We)},Y0=function(t,n){var r=-1,i=44;do switch(En(i)){case 0:i===38&&ht()===12&&(n[r]=1),t[r]+=U0(We-1,n,r);break;case 2:t[r]+=Mr(i);break;case 4:if(i===44){t[++r]=ht()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=gr(i)}while(i=Ze());return t},V0=function(t,n){return Gs(Y0(Ws(t),n))},Xs=new WeakMap,q0=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&&!Xs.get(r))&&!i){Xs.set(t,!0);for(var o=[],a=V0(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]}}},B0=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},Q0="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",W0=function(t){return t.type==="comm"&&t.children.indexOf(Q0)>-1},G0=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(W0(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".')})}}}},Js=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},K0=function(t,n){for(var r=t-1;r>=0;r--)if(!Js(n[r]))return!0;return!1},Zs=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},H0=function(t,n,r){Js(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."),Zs(t)):K0(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Zs(t)))};function eu(e,t){switch(D0(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+pr+e+Fe+e+e;case 6828:case 4268:return ce+e+Fe+e+e;case 6165:return ce+e+Fe+"flex-"+e+e;case 5187:return ce+e+fe(e,/(\w+).+(:[^]+)/,ce+"box-$1$2"+Fe+"flex-$1$2")+e;case 5443:return ce+e+Fe+"flex-item-"+fe(e,/flex-|-self/,"")+e;case 4675:return ce+e+Fe+"flex-line-pack"+fe(e,/align-content|flex-|-self/,"")+e;case 5548:return ce+e+Fe+fe(e,"shrink","negative")+e;case 5292:return ce+e+Fe+fe(e,"basis","preferred-size")+e;case 6060:return ce+"box-"+fe(e,"-grow","")+ce+e+Fe+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"+Fe+"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(dt(e)-1-t>6)switch($e(e,t+1)){case 109:if($e(e,t+4)!==45)break;case 102:return fe(e,/(.+:)(.+)-([^]+)/,"$1"+ce+"$2-$3$1"+pr+($e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~io(e,"stretch")?eu(fe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($e(e,t+1)!==115)break;case 6444:switch($e(e,dt(e)-3-(~io(e,"!important")&&10))){case 107:return fe(e,":",":"+ce)+e;case 101:return fe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ce+($e(e,14)===45?"inline-":"")+"box$3$1"+ce+"$2$3$1"+Fe+"$2box$3")+e}break;case 5936:switch($e(e,t+11)){case 114:return ce+e+Fe+fe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ce+e+Fe+fe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ce+e+Fe+fe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ce+e+Fe+e+e}return e}var X0=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case ro:t.return=eu(t.value,t.length);break;case qs:return Qt([wn(t,{value:fe(t.value,"@","@"+ce)})],i);case no:if(t.length)return C0(t.props,function(o){switch(O0(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qt([wn(t,{props:[fe(o,/:(read-\w+)/,":"+pr+"$1")]})],i);case"::placeholder":return Qt([wn(t,{props:[fe(o,/:(plac\w+)/,":"+ce+"input-$1")]}),wn(t,{props:[fe(o,/:(plac\w+)/,":"+pr+"$1")]}),wn(t,{props:[fe(o,/:(plac\w+)/,Fe+"input-$1")]})],i)}return""})}},J0=[X0],Z0=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(m){var y=m.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var i=t.stylisPlugins||J0;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(m){for(var y=m.getAttribute("data-emotion").split(" "),_=1;_<y.length;_++)o[y[_]]=!0;s.push(m)});var l,u=[q0,B0];process.env.NODE_ENV!=="production"&&u.push(G0({get compat(){return v.compat}}),H0);{var c,d=[L0,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==to&&c.insert(m.value+"{}"))}:F0(function(m){c.insert(m)})],f=P0(u.concat(i,d)),h=function(y){return Qt(R0(y),f)};l=function(y,_,D,O){c=D,process.env.NODE_ENV!=="production"&&_.map!==void 0&&(c={insert:function(g){D.insert(g+_.map)}}),h(y?y+"{"+_.styles+"}":_.styles),O&&(v.inserted[_.name]=!0)}}var v={key:n,sheet:new x0({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 v.sheet.hydrate(s),v},eg=!0;function tu(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var so=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||eg===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},nu=function(t,n,r){so(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 tg(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 ng={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},ru=`You have illegal escape sequence in your template literal, most likely inside content's property value.
129
129
  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
130
  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`,eg="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",tg=/[A-Z]|^ms/g,Hs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oo=function(t){return t.charCodeAt(1)===45},Xs=function(t){return t!=null&&typeof t!="boolean"},ao=zs(function(e){return oo(e)?e:e.replace(tg,"-$&").toLowerCase()}),Or=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Hs,function(r,i,o){return ot={name:i,styles:o,next:ot},i})}return Z0[t]!==1&&!oo(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var ng=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,rg=["normal","none","initial","inherit","unset"],ig=Or,og=/^-ms-/,ag=/-(.)/g,Js={};Or=function(t,n){if(t==="content"&&(typeof n!="string"||rg.indexOf(n)===-1&&!ng.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=ig(t,n);return r!==""&&!oo(t)&&t.indexOf("-")!==-1&&Js[t]===void 0&&(Js[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(og,"ms-").replace(ag,function(i,o){return o.toUpperCase()})+"?")),r}}var Zs="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Sn(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(Zs);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ot={name:n.name,styles:n.styles,next:ot},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ot={name:r.name,styles:r.styles,next:ot},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return sg(e,t,n)}case"function":{if(e!==void 0){var o=ot,a=n(e);return ot=o,Sn(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(Hs,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(`
131
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,rg="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",ig=/[A-Z]|^ms/g,iu=/_EMO_([^_]+?)_([^]*?)_EMO_/g,uo=function(t){return t.charCodeAt(1)===45},ou=function(t){return t!=null&&typeof t!="boolean"},lo=Vs(function(e){return uo(e)?e:e.replace(ig,"-$&").toLowerCase()}),xr=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(iu,function(r,i,o){return ot={name:i,styles:o,next:ot},i})}return ng[t]!==1&&!uo(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var og=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,ag=["normal","none","initial","inherit","unset"],sg=xr,ug=/^-ms-/,lg=/-(.)/g,au={};xr=function(t,n){if(t==="content"&&(typeof n!="string"||ag.indexOf(n)===-1&&!og.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=sg(t,n);return r!==""&&!uo(t)&&t.indexOf("-")!==-1&&au[t]===void 0&&(au[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(ug,"ms-").replace(lg,function(i,o){return o.toUpperCase()})+"?")),r}}var su="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Dn(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(su);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ot={name:n.name,styles:n.styles,next:ot},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ot={name:r.name,styles:r.styles,next:ot},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return cg(e,t,n)}case"function":{if(e!==void 0){var o=ot,a=n(e);return ot=o,Dn(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(iu,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(`
132
132
  `)+`
133
133
 
134
134
  You should wrap it with \`css\` like this:
135
135
 
136
- `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function sg(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Sn(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]+"}":Xs(a)&&(r+=ao(o)+":"+Or(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Zs);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)Xs(a[s])&&(r+=ao(o)+":"+Or(o,a[s])+";");else{var l=Sn(e,t,a);switch(o){case"animation":case"animationName":{r+=ao(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(eg),r+=o+"{"+l+"}"}}}}return r}var eu=/label:\s*([^\s;\n{]+)\s*(;|$)/g,tu;process.env.NODE_ENV!=="production"&&(tu=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ot,so=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="";ot=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Sn(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(Ks),o+=a[0]);for(var s=1;s<t.length;s++)o+=Sn(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(Ks),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(tu,function(f){return l=f,""})),eu.lastIndex=0;for(var u="",c;(c=eu.exec(o))!==null;)u+="-"+c[1];var d=J0(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:l,next:ot,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:ot}},ug=function(t){return t()},lg=ue["useInsertionEffect"]?ue["useInsertionEffect"]:!1,nu=lg||ug,cg={}.hasOwnProperty,uo=ue.createContext(typeof HTMLElement<"u"?H0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(uo.displayName="EmotionCacheContext"),uo.Provider;var ru=function(t){return U.forwardRef(function(n,r){var i=U.useContext(uo);return t(n,i,r)})},Cr=ue.createContext({});process.env.NODE_ENV!=="production"&&(Cr.displayName="EmotionThemeContext");var iu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ou="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",fg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return io(n,r,i),nu(function(){return Gs(n,r,i)}),null},dg=ru(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[iu],o=[r],a="";typeof e.className=="string"?a=Ws(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=so(o,void 0,ue.useContext(Cr));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[ou];l&&(s=so([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)cg.call(e,c)&&c!=="css"&&c!==iu&&(process.env.NODE_ENV==="production"||c!==ou)&&(u[c]=e[c]);return u.ref=n,u.className=a,ue.createElement(ue.Fragment,null,ue.createElement(fg,{cache:t,serialized:s,isStringTag:typeof i=="string"}),ue.createElement(i,u))});process.env.NODE_ENV!=="production"&&(dg.displayName="EmotionCssPropInternal");var hg=m0,pg=function(t){return t!=="theme"},au=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hg:pg},su=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},uu=`You have illegal escape sequence in your template literal, most likely inside content's property value.
136
+ `+("css`"+l+"`"))}break}if(t==null)return n;var u=t[n];return u!==void 0?u:n}function cg(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Dn(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]+"}":ou(a)&&(r+=lo(o)+":"+xr(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(su);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)ou(a[s])&&(r+=lo(o)+":"+xr(o,a[s])+";");else{var l=Dn(e,t,a);switch(o){case"animation":case"animationName":{r+=lo(o)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(rg),r+=o+"{"+l+"}"}}}}return r}var uu=/label:\s*([^\s;\n{]+)\s*(;|$)/g,lu;process.env.NODE_ENV!=="production"&&(lu=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ot,co=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="";ot=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Dn(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(ru),o+=a[0]);for(var s=1;s<t.length;s++)o+=Dn(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(ru),o+=a[s]);var l;process.env.NODE_ENV!=="production"&&(o=o.replace(lu,function(f){return l=f,""})),uu.lastIndex=0;for(var u="",c;(c=uu.exec(o))!==null;)u+="-"+c[1];var d=tg(o)+u;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:l,next:ot,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:ot}},fg=function(t){return t()},dg=ue["useInsertionEffect"]?ue["useInsertionEffect"]:!1,cu=dg||fg,hg={}.hasOwnProperty,fo=ue.createContext(typeof HTMLElement<"u"?Z0({key:"css"}):null);process.env.NODE_ENV!=="production"&&(fo.displayName="EmotionCacheContext"),fo.Provider;var fu=function(t){return U.forwardRef(function(n,r){var i=U.useContext(fo);return t(n,i,r)})},Tr=ue.createContext({});process.env.NODE_ENV!=="production"&&(Tr.displayName="EmotionThemeContext");var du="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",hu="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",pg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return so(n,r,i),cu(function(){return nu(n,r,i)}),null},gg=fu(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[du],o=[r],a="";typeof e.className=="string"?a=tu(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=co(o,void 0,ue.useContext(Tr));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var l=e[hu];l&&(s=co([s,"label:"+l+";"]))}a+=t.key+"-"+s.name;var u={};for(var c in e)hg.call(e,c)&&c!=="css"&&c!==du&&(process.env.NODE_ENV==="production"||c!==hu)&&(u[c]=e[c]);return u.ref=n,u.className=a,ue.createElement(ue.Fragment,null,ue.createElement(pg,{cache:t,serialized:s,isStringTag:typeof i=="string"}),ue.createElement(i,u))});process.env.NODE_ENV!=="production"&&(gg.displayName="EmotionCssPropInternal");var mg=b0,yg=function(t){return t!=="theme"},pu=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?mg:yg},gu=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},mu=`You have illegal escape sequence in your template literal, most likely inside content's property value.
137
137
  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
138
  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`,gg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return io(n,r,i),nu(function(){return Gs(n,r,i)}),null},mg=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=su(t,n,r),l=s||au(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(uu),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(uu),d.push(c[h],c[0][h])}var y=ru(function(m,v,M){var D=u&&m.as||i,O="",x=[],g=m;if(m.theme==null){g={};for(var j in m)g[j]=m[j];g.theme=ue.useContext(Cr)}typeof m.className=="string"?O=Ws(v.registered,x,m.className):m.className!=null&&(O=m.className+" ");var C=so(d.concat(x),v.registered,g);O+=v.key+"-"+C.name,a!==void 0&&(O+=" "+a);var I=u&&s===void 0?au(D):l,k={};for(var E in m)u&&E==="as"||I(E)&&(k[E]=m[E]);return k.className=O,k.ref=M,ue.createElement(ue.Fragment,null,ue.createElement(gg,{cache:v,serialized:C,isStringTag:typeof D=="string"}),ue.createElement(D,k))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=d,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),y.withComponent=function(m,v){return e(m,Xi({},n,v,{shouldForwardProp:su(y,v,!0)})).apply(void 0,d)},y}},yg=["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"],lo=mg.bind();yg.forEach(function(e){lo[e]=lo(e)});/**
139
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,vg=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return so(n,r,i),cu(function(){return nu(n,r,i)}),null},bg=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=gu(t,n,r),l=s||pu(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(mu),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(mu),d.push(c[h],c[0][h])}var v=fu(function(m,y,_){var D=u&&m.as||i,O="",x=[],g=m;if(m.theme==null){g={};for(var j in m)g[j]=m[j];g.theme=ue.useContext(Tr)}typeof m.className=="string"?O=tu(y.registered,x,m.className):m.className!=null&&(O=m.className+" ");var C=co(d.concat(x),y.registered,g);O+=y.key+"-"+C.name,a!==void 0&&(O+=" "+a);var I=u&&s===void 0?pu(D):l,k={};for(var E in m)u&&E==="as"||I(E)&&(k[E]=m[E]);return k.className=O,k.ref=_,ue.createElement(ue.Fragment,null,ue.createElement(vg,{cache:y,serialized:C,isStringTag:typeof D=="string"}),ue.createElement(D,k))});return v.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),v.withComponent=function(m,y){return e(m,eo({},n,y,{shouldForwardProp:gu(v,y,!0)})).apply(void 0,d)},v}},Mg=["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"],ho=bg.bind();Mg.forEach(function(e){ho[e]=ho(e)});/**
141
141
  * @mui/styled-engine v5.13.2
142
142
  *
143
143
  * @license MIT
144
144
  * This source code is licensed under the MIT license found in the
145
145
  * LICENSE file in the root directory of this source tree.
146
- */function vg(e,t){const n=lo(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 bg=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Re(){return Re=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},Re.apply(this,arguments)}function Sr(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}const Mg=["values","unit","step"],_g=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)=>Re({},n,{[r.key]:r.val}),{})};function xg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Sr(e,Mg),o=_g(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 y=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]: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 Re({keys:a,values:o,up:s,down:l,between:u,only:c,not:d,unit:n},i)}const Tg={borderRadius:4},Et=process.env.NODE_ENV!=="production"?le.oneOfType([le.number,le.string,le.object,le.array]):{};function An(e,t){return t?_t(e,t,{clone:!1}):e}const co={xs:0,sm:600,md:900,lg:1200,xl:1536},lu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${co[e]}px)`};function xt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||lu;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||lu;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||co).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 wg(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Ng(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ar(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 Ir(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Ar(e,n)||r,t&&(i=t(i,r,e)),i}function be(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=Ar(l,r)||{};return xt(a,s,d=>{let f=Ir(u,i,d);return d===f&&typeof d=="string"&&(f=Ir(u,i,`${t}${d==="default"?"":ft(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Et}:{},o.filterProps=[t],o}function Eg(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Dg={m:"margin",p:"padding"},Og={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},cu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Cg=Eg(e=>{if(e.length>2)if(cu[e])e=cu[e];else return[e];const[t,n]=e.split(""),r=Dg[t],i=Og[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),kr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],jr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Sg=[...kr,...jr];function In(e,t,n,r){var i;const o=(i=Ar(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(`
146
+ */function _g(e,t){const n=ho(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 xg=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function Le(){return Le=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},Le.apply(this,arguments)}function wr(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}const Tg=["values","unit","step"],wg=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)=>Le({},n,{[r.key]:r.val}),{})};function Ng(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=wr(e,Tg),o=wg(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 v=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(v!==-1&&typeof t[a[v]]=="number"?t[a[v]]: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 Le({keys:a,values:o,up:s,down:l,between:u,only:c,not:d,unit:n},i)}const Eg={borderRadius:4},Et=process.env.NODE_ENV!=="production"?Me.oneOfType([Me.number,Me.string,Me.object,Me.array]):{};function On(e,t){return t?_t(e,t,{clone:!1}):e}const po={xs:0,sm:600,md:900,lg:1200,xl:1536},yu={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${po[e]}px)`};function xt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||yu;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=n(t[l]),a),{})}if(typeof t=="object"){const o=r.breakpoints||yu;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||po).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 Dg(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function Og(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Nr(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 Er(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Nr(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=Nr(l,r)||{};return xt(a,s,d=>{let f=Er(u,i,d);return d===f&&typeof d=="string"&&(f=Er(u,i,`${t}${d==="default"?"":ft(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Et}:{},o.filterProps=[t],o}function Cg(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Sg={m:"margin",p:"padding"},Ag={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vu={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Ig=Cg(e=>{if(e.length>2)if(vu[e])e=vu[e];else return[e];const[t,n]=e.split(""),r=Sg[t],i=Ag[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Dr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Or=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],kg=[...Dr,...Or];function Cn(e,t,n,r){var i;const o=(i=Nr(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(`
148
148
  `)):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
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 fu(e){return In(e,"spacing",8,"spacing")}function kn(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 Ag(e,t){return n=>e.reduce((r,i)=>(r[i]=kn(t,n),r),{})}function Ig(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Cg(n),o=Ag(i,r),a=e[n];return xt(e,a,o)}function du(e,t){const n=fu(e.theme);return Object.keys(e).map(r=>Ig(e,t,r,n)).reduce(An,{})}function Ne(e){return du(e,kr)}Ne.propTypes=process.env.NODE_ENV!=="production"?kr.reduce((e,t)=>(e[t]=Et,e),{}):{},Ne.filterProps=kr;function Ee(e){return du(e,jr)}Ee.propTypes=process.env.NODE_ENV!=="production"?jr.reduce((e,t)=>(e[t]=Et,e),{}):{},Ee.filterProps=jr,process.env.NODE_ENV!=="production"&&Sg.reduce((e,t)=>(e[t]=Et,e),{});function kg(e=8){if(e.mui)return e;const t=fu({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 zr(...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]?An(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 pt(e){return typeof e!="number"?e:`${e}px solid`}const jg=be({prop:"border",themeKey:"borders",transform:pt}),zg=be({prop:"borderTop",themeKey:"borders",transform:pt}),Rg=be({prop:"borderRight",themeKey:"borders",transform:pt}),$g=be({prop:"borderBottom",themeKey:"borders",transform:pt}),Lg=be({prop:"borderLeft",themeKey:"borders",transform:pt}),Pg=be({prop:"borderColor",themeKey:"palette"}),Fg=be({prop:"borderTopColor",themeKey:"palette"}),Ug=be({prop:"borderRightColor",themeKey:"palette"}),Yg=be({prop:"borderBottomColor",themeKey:"palette"}),Vg=be({prop:"borderLeftColor",themeKey:"palette"}),Rr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=In(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:kn(t,r)});return xt(e,e.borderRadius,n)}return null};Rr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Et}:{},Rr.filterProps=["borderRadius"],zr(jg,zg,Rg,$g,Lg,Pg,Fg,Ug,Yg,Vg,Rr);const $r=e=>{if(e.gap!==void 0&&e.gap!==null){const t=In(e.theme,"spacing",8,"gap"),n=r=>({gap:kn(t,r)});return xt(e,e.gap,n)}return null};$r.propTypes=process.env.NODE_ENV!=="production"?{gap:Et}:{},$r.filterProps=["gap"];const Lr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=In(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:kn(t,r)});return xt(e,e.columnGap,n)}return null};Lr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Et}:{},Lr.filterProps=["columnGap"];const Pr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=In(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:kn(t,r)});return xt(e,e.rowGap,n)}return null};Pr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Et}:{},Pr.filterProps=["rowGap"];const qg=be({prop:"gridColumn"}),Bg=be({prop:"gridRow"}),Qg=be({prop:"gridAutoFlow"}),Wg=be({prop:"gridAutoColumns"}),Gg=be({prop:"gridAutoRows"}),Kg=be({prop:"gridTemplateColumns"}),Hg=be({prop:"gridTemplateRows"}),Xg=be({prop:"gridTemplateAreas"}),Jg=be({prop:"gridArea"});zr($r,Lr,Pr,qg,Bg,Qg,Wg,Gg,Kg,Hg,Xg,Jg);function Wt(e,t){return t==="grey"?t:e}const Zg=be({prop:"color",themeKey:"palette",transform:Wt}),em=be({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wt}),tm=be({prop:"backgroundColor",themeKey:"palette",transform:Wt});zr(Zg,em,tm);function et(e){return e<=1&&e!==0?`${e*100}%`:e}const nm=be({prop:"width",transform:et}),fo=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])||co[n]||et(n)}};return xt(e,e.maxWidth,t)}return null};fo.filterProps=["maxWidth"];const rm=be({prop:"minWidth",transform:et}),im=be({prop:"height",transform:et}),om=be({prop:"maxHeight",transform:et}),am=be({prop:"minHeight",transform:et});be({prop:"size",cssProperty:"width",transform:et}),be({prop:"size",cssProperty:"height",transform:et});const sm=be({prop:"boxSizing"});zr(nm,fo,rm,im,om,am,sm);const ho={border:{themeKey:"borders",transform:pt},borderTop:{themeKey:"borders",transform:pt},borderRight:{themeKey:"borders",transform:pt},borderBottom:{themeKey:"borders",transform:pt},borderLeft:{themeKey:"borders",transform:pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rr},color:{themeKey:"palette",transform:Wt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wt},backgroundColor:{themeKey:"palette",transform:Wt},p:{style:Ee},pt:{style:Ee},pr:{style:Ee},pb:{style:Ee},pl:{style:Ee},px:{style:Ee},py:{style:Ee},padding:{style:Ee},paddingTop:{style:Ee},paddingRight:{style:Ee},paddingBottom:{style:Ee},paddingLeft:{style:Ee},paddingX:{style:Ee},paddingY:{style:Ee},paddingInline:{style:Ee},paddingInlineStart:{style:Ee},paddingInlineEnd:{style:Ee},paddingBlock:{style:Ee},paddingBlockStart:{style:Ee},paddingBlockEnd:{style:Ee},m:{style:Ne},mt:{style:Ne},mr:{style:Ne},mb:{style:Ne},ml:{style:Ne},mx:{style:Ne},my:{style:Ne},margin:{style:Ne},marginTop:{style:Ne},marginRight:{style:Ne},marginBottom:{style:Ne},marginLeft:{style:Ne},marginX:{style:Ne},marginY:{style:Ne},marginInline:{style:Ne},marginInlineStart:{style:Ne},marginInlineEnd:{style:Ne},marginBlock:{style:Ne},marginBlockStart:{style:Ne},marginBlockEnd:{style:Ne},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:$r},rowGap:{style:Pr},columnGap:{style:Lr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:et},maxWidth:{style:fo},minWidth:{transform:et},height:{transform:et},maxHeight:{transform:et},minHeight:{transform:et},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function um(...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 lm(e,t){return typeof e=="function"?e(t):e}function cm(){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=Ar(i,u)||{};return d?d(a):xt(a,r,y=>{let m=Ir(f,c,y);return y===m&&typeof y=="string"&&(m=Ir(f,c,`${n}${y==="default"?"":ft(y)}`,y)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:ho;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=wg(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const y=lm(u[h],o);if(y!=null)if(typeof y=="object")if(a[h])f=An(f,e(h,y,o,a));else{const m=xt({theme:o},y,v=>({[h]:v}));um(m,y)?f[h]=t({sx:y,theme:o}):f=An(f,m)}else f=An(f,e(h,y,o,a))}),Ng(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const hu=cm();hu.filterProps=["sx"];const po=hu,fm=["breakpoints","palette","spacing","shape"];function go(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=Sr(e,fm),s=xg(n),l=kg(i);let u=_t({breakpoints:s,direction:"ltr",components:{},palette:Re({mode:"light"},r),spacing:l,shape:Re({},Tg,o)},a);return u=t.reduce((c,d)=>_t(c,d),u),u.unstable_sxConfig=Re({},ho,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return po({sx:d,theme:this})},u}function dm(e){return Object.keys(e).length===0}function hm(e=null){const t=ue.useContext(Cr);return!t||dm(t)?e:t}const pm=go();function gm(e=pm){return hm(e)}const mm=["variant"];function pu(e){return e.length===0}function gu(e){const{variant:t}=e,n=Sr(e,mm);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=pu(r)?e[i]:ft(e[i]):r+=`${pu(r)?i:ft(i)}${ft(e[i].toString())}`}),r}const ym=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function vm(e){return Object.keys(e).length===0}function bm(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,_m=(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=gu(i.props);r[o]=i.style}),r},xm=(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[gu(l.props)])}),a};function Fr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Tm=go(),wm=e=>e.charAt(0).toLowerCase()+e.slice(1);function jn({defaultTheme:e,theme:t,themeId:n}){return vm(t)?e:t[n]||t}function Nm(e={}){const{themeId:t,defaultTheme:n=Tm,rootShouldForwardProp:r=Fr,slotShouldForwardProp:i=Fr}=e,o=a=>po(Re({},a,{theme:jn(Re({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{bg(a,x=>x.filter(g=>!(g!=null&&g.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=Sr(s,ym),y=c!==void 0?c:u&&u!=="Root"||!1,m=d||!1;let v;process.env.NODE_ENV!=="production"&&l&&(v=`${l}-${wm(u||"Root")}`);let M=Fr;u==="Root"?M=r:u?M=i:bm(a)&&(M=void 0);const D=vg(a,Re({shouldForwardProp:M,label:v},h)),O=(x,...g)=>{const j=g?g.map(E=>typeof E=="function"&&E.__emotion_real!==E?$=>E(Re({},$,{theme:jn(Re({},$,{defaultTheme:n,themeId:t}))})):E):[];let C=x;l&&f&&j.push(E=>{const $=jn(Re({},E,{defaultTheme:n,themeId:t})),X=Mm(l,$);if(X){const H={};return Object.entries(X).forEach(([b,z])=>{H[b]=typeof z=="function"?z(Re({},E,{theme:$})):z}),f(E,H)}return null}),l&&!y&&j.push(E=>{const $=jn(Re({},E,{defaultTheme:n,themeId:t}));return xm(E,_m(l,$),$,l)}),m||j.push(o);const I=j.length-g.length;if(Array.isArray(x)&&I>0){const E=new Array(I).fill("");C=[...x,...E],C.raw=[...x.raw,...E]}else typeof x=="function"&&x.__emotion_real!==x&&(C=E=>x(Re({},E,{theme:jn(Re({},E,{defaultTheme:n,themeId:t}))})));const k=D(C,...j);if(process.env.NODE_ENV!=="production"){let E;l&&(E=`${l}${u||""}`),E===void 0&&(E=`Styled(${Bp(a)})`),k.displayName=E}return a.muiName&&(k.muiName=a.muiName),k};return D.withConfig&&(O.withConfig=D.withConfig),O}}function Em(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:As(t.components[n].defaultProps,r)}function Dm({props:e,name:t,defaultTheme:n,themeId:r}){let i=gm(n);return r&&(i=i[r]||i),Em({theme:i,name:t,props:e})}function mu(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 Om(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 Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(Om(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.
150
+ `)),()=>{})}function bu(e){return Cn(e,"spacing",8,"spacing")}function Sn(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 jg(e,t){return n=>e.reduce((r,i)=>(r[i]=Sn(t,n),r),{})}function zg(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Ig(n),o=jg(i,r),a=e[n];return xt(e,a,o)}function Mu(e,t){const n=bu(e.theme);return Object.keys(e).map(r=>zg(e,t,r,n)).reduce(On,{})}function we(e){return Mu(e,Dr)}we.propTypes=process.env.NODE_ENV!=="production"?Dr.reduce((e,t)=>(e[t]=Et,e),{}):{},we.filterProps=Dr;function Ne(e){return Mu(e,Or)}Ne.propTypes=process.env.NODE_ENV!=="production"?Or.reduce((e,t)=>(e[t]=Et,e),{}):{},Ne.filterProps=Or,process.env.NODE_ENV!=="production"&&kg.reduce((e,t)=>(e[t]=Et,e),{});function Rg(e=8){if(e.mui)return e;const t=bu({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 Cr(...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]?On(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 pt(e){return typeof e!="number"?e:`${e}px solid`}const $g=ve({prop:"border",themeKey:"borders",transform:pt}),Lg=ve({prop:"borderTop",themeKey:"borders",transform:pt}),Pg=ve({prop:"borderRight",themeKey:"borders",transform:pt}),Fg=ve({prop:"borderBottom",themeKey:"borders",transform:pt}),Ug=ve({prop:"borderLeft",themeKey:"borders",transform:pt}),Yg=ve({prop:"borderColor",themeKey:"palette"}),Vg=ve({prop:"borderTopColor",themeKey:"palette"}),qg=ve({prop:"borderRightColor",themeKey:"palette"}),Bg=ve({prop:"borderBottomColor",themeKey:"palette"}),Qg=ve({prop:"borderLeftColor",themeKey:"palette"}),Sr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Cn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Sn(t,r)});return xt(e,e.borderRadius,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Et}:{},Sr.filterProps=["borderRadius"],Cr($g,Lg,Pg,Fg,Ug,Yg,Vg,qg,Bg,Qg,Sr);const Ar=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Cn(e.theme,"spacing",8,"gap"),n=r=>({gap:Sn(t,r)});return xt(e,e.gap,n)}return null};Ar.propTypes=process.env.NODE_ENV!=="production"?{gap:Et}:{},Ar.filterProps=["gap"];const Ir=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Cn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Sn(t,r)});return xt(e,e.columnGap,n)}return null};Ir.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Et}:{},Ir.filterProps=["columnGap"];const kr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Cn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Sn(t,r)});return xt(e,e.rowGap,n)}return null};kr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Et}:{},kr.filterProps=["rowGap"];const Wg=ve({prop:"gridColumn"}),Gg=ve({prop:"gridRow"}),Kg=ve({prop:"gridAutoFlow"}),Hg=ve({prop:"gridAutoColumns"}),Xg=ve({prop:"gridAutoRows"}),Jg=ve({prop:"gridTemplateColumns"}),Zg=ve({prop:"gridTemplateRows"}),em=ve({prop:"gridTemplateAreas"}),tm=ve({prop:"gridArea"});Cr(Ar,Ir,kr,Wg,Gg,Kg,Hg,Xg,Jg,Zg,em,tm);function Wt(e,t){return t==="grey"?t:e}const nm=ve({prop:"color",themeKey:"palette",transform:Wt}),rm=ve({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Wt}),im=ve({prop:"backgroundColor",themeKey:"palette",transform:Wt});Cr(nm,rm,im);function et(e){return e<=1&&e!==0?`${e*100}%`:e}const om=ve({prop:"width",transform:et}),go=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])||po[n]||et(n)}};return xt(e,e.maxWidth,t)}return null};go.filterProps=["maxWidth"];const am=ve({prop:"minWidth",transform:et}),sm=ve({prop:"height",transform:et}),um=ve({prop:"maxHeight",transform:et}),lm=ve({prop:"minHeight",transform:et});ve({prop:"size",cssProperty:"width",transform:et}),ve({prop:"size",cssProperty:"height",transform:et});const cm=ve({prop:"boxSizing"});Cr(om,go,am,sm,um,lm,cm);const mo={border:{themeKey:"borders",transform:pt},borderTop:{themeKey:"borders",transform:pt},borderRight:{themeKey:"borders",transform:pt},borderBottom:{themeKey:"borders",transform:pt},borderLeft:{themeKey:"borders",transform:pt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sr},color:{themeKey:"palette",transform:Wt},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Wt},backgroundColor:{themeKey:"palette",transform:Wt},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:Ar},rowGap:{style:kr},columnGap:{style:Ir},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:et},maxWidth:{style:go},minWidth:{transform:et},height:{transform:et},maxHeight:{transform:et},minHeight:{transform:et},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function fm(...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 dm(e,t){return typeof e=="function"?e(t):e}function hm(){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=Nr(i,u)||{};return d?d(a):xt(a,r,v=>{let m=Er(f,c,v);return v===m&&typeof v=="string"&&(m=Er(f,c,`${n}${v==="default"?"":ft(v)}`,v)),l===!1?m:{[l]:m}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const a=(r=o.unstable_sxConfig)!=null?r:mo;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=Dg(o.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(h=>{const v=dm(u[h],o);if(v!=null)if(typeof v=="object")if(a[h])f=On(f,e(h,v,o,a));else{const m=xt({theme:o},v,y=>({[h]:y}));fm(m,v)?f[h]=t({sx:v,theme:o}):f=On(f,m)}else f=On(f,e(h,v,o,a))}),Og(d,f)}return Array.isArray(i)?i.map(s):s(i)}return t}const _u=hm();_u.filterProps=["sx"];const yo=_u,pm=["breakpoints","palette","spacing","shape"];function vo(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=wr(e,pm),s=Ng(n),l=Rg(i);let u=_t({breakpoints:s,direction:"ltr",components:{},palette:Le({mode:"light"},r),spacing:l,shape:Le({},Eg,o)},a);return u=t.reduce((c,d)=>_t(c,d),u),u.unstable_sxConfig=Le({},mo,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return yo({sx:d,theme:this})},u}function gm(e){return Object.keys(e).length===0}function mm(e=null){const t=ue.useContext(Tr);return!t||gm(t)?e:t}const ym=vo();function vm(e=ym){return mm(e)}const bm=["variant"];function xu(e){return e.length===0}function Tu(e){const{variant:t}=e,n=wr(e,bm);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=xu(r)?e[i]:ft(e[i]):r+=`${xu(r)?i:ft(i)}${ft(e[i].toString())}`}),r}const Mm=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function _m(e){return Object.keys(e).length===0}function xm(e){return typeof e=="string"&&e.charCodeAt(0)>96}const Tm=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,wm=(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=Tu(i.props);r[o]=i.style}),r},Nm=(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[Tu(l.props)])}),a};function jr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Em=vo(),Dm=e=>e.charAt(0).toLowerCase()+e.slice(1);function An({defaultTheme:e,theme:t,themeId:n}){return _m(t)?e:t[n]||t}function Om(e={}){const{themeId:t,defaultTheme:n=Em,rootShouldForwardProp:r=jr,slotShouldForwardProp:i=jr}=e,o=a=>yo(Le({},a,{theme:An(Le({},a,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{xg(a,x=>x.filter(g=>!(g!=null&&g.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=wr(s,Mm),v=c!==void 0?c:u&&u!=="Root"||!1,m=d||!1;let y;process.env.NODE_ENV!=="production"&&l&&(y=`${l}-${Dm(u||"Root")}`);let _=jr;u==="Root"?_=r:u?_=i:xm(a)&&(_=void 0);const D=_g(a,Le({shouldForwardProp:_,label:y},h)),O=(x,...g)=>{const j=g?g.map(E=>typeof E=="function"&&E.__emotion_real!==E?$=>E(Le({},$,{theme:An(Le({},$,{defaultTheme:n,themeId:t}))})):E):[];let C=x;l&&f&&j.push(E=>{const $=An(Le({},E,{defaultTheme:n,themeId:t})),X=Tm(l,$);if(X){const H={};return Object.entries(X).forEach(([b,z])=>{H[b]=typeof z=="function"?z(Le({},E,{theme:$})):z}),f(E,H)}return null}),l&&!v&&j.push(E=>{const $=An(Le({},E,{defaultTheme:n,themeId:t}));return Nm(E,wm(l,$),$,l)}),m||j.push(o);const I=j.length-g.length;if(Array.isArray(x)&&I>0){const E=new Array(I).fill("");C=[...x,...E],C.raw=[...x.raw,...E]}else typeof x=="function"&&x.__emotion_real!==x&&(C=E=>x(Le({},E,{theme:An(Le({},E,{defaultTheme:n,themeId:t}))})));const k=D(C,...j);if(process.env.NODE_ENV!=="production"){let E;l&&(E=`${l}${u||""}`),E===void 0&&(E=`Styled(${Gp(a)})`),k.displayName=E}return a.muiName&&(k.muiName=a.muiName),k};return D.withConfig&&(O.withConfig=D.withConfig),O}}function Cm(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ps(t.components[n].defaultProps,r)}function Sm({props:e,name:t,defaultTheme:n,themeId:r}){let i=vm(n);return r&&(i=i[r]||i),Cm({theme:i,name:t,props:e})}function wu(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 Am(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 Gt(e){if(e.type)return e;if(e.charAt(0)==="#")return Gt(Am(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
151
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Vt(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.`:Vt(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function mo(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 Cm(e){e=Gt(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])),mo({type:s,values:l})}function yu(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(Cm(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 vu(e,t){const n=yu(e),r=yu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Sm(e,t){if(e=Gt(e),t=mu(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 mo(e)}function Am(e,t){if(e=Gt(e),t=mu(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 mo(e)}function Im(e,t){return Pe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zn={black:"#000",white:"#fff"},km={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"},Kt={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"},Ht={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"},Rn={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"},Xt={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"},Zt={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"],bu={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:zn.white,default:zn.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}},yo={text:{primary:zn.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:zn.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=Am(e.main,i):t==="dark"&&(e.dark=Sm(e.main,o)))}function zm(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Rm(e="light"){return e==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[500],light:Kt[300],dark:Kt[700]}}function $m(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function Lm(e="light"){return e==="dark"?{main:Jt[400],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[500],dark:Jt[900]}}function Pm(e="light"){return e==="dark"?{main:Zt[400],light:Zt[300],dark:Zt[700]}:{main:Zt[800],light:Zt[500],dark:Zt[900]}}function Fm(e="light"){return e==="dark"?{main:Rn[400],light:Rn[300],dark:Rn[700]}:{main:"#ed6c02",light:Rn[500],dark:Rn[900]}}function Um(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Nn(e,jm),o=e.primary||zm(t),a=e.secondary||Rm(t),s=e.error||$m(t),l=e.info||Lm(t),u=e.success||Pm(t),c=e.warning||Fm(t);function d(m){const v=vu(m,yo.text.primary)>=n?yo.text.primary:bu.text.primary;if(process.env.NODE_ENV!=="production"){const M=vu(m,v);M<3&&console.error([`MUI: The contrast ratio of ${M}:1 for ${v} on ${m}`,"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:m,name:v,mainShade:M=500,lightShade:D=300,darkShade:O=700})=>{if(m=Pe({},m),!m.main&&m[M]&&(m.main=m[M]),!m.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.`:Vt(11,v?` (${v})`:"",M));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${v?` (${v})`:""} provided to augmentColor(color) is invalid.
152
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Vt(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function bo(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 Im(e){e=Gt(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])),bo({type:s,values:l})}function Nu(e){e=Gt(e);let t=e.type==="hsl"||e.type==="hsla"?Gt(Im(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 Eu(e,t){const n=Nu(e),r=Nu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function km(e,t){if(e=Gt(e),t=wu(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 bo(e)}function jm(e,t){if(e=Gt(e),t=wu(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 bo(e)}function zm(e,t){return Pe({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const In={black:"#000",white:"#fff"},Rm={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"},Kt={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"},Ht={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"},kn={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"},Xt={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"},Zt={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"},$m=["mode","contrastThreshold","tonalOffset"],Du={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:In.white,default:In.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}},Mo={text:{primary:In.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:In.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 Ou(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=jm(e.main,i):t==="dark"&&(e.dark=km(e.main,o)))}function Lm(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Pm(e="light"){return e==="dark"?{main:Kt[200],light:Kt[50],dark:Kt[400]}:{main:Kt[500],light:Kt[300],dark:Kt[700]}}function Fm(e="light"){return e==="dark"?{main:Ht[500],light:Ht[300],dark:Ht[700]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function Um(e="light"){return e==="dark"?{main:Jt[400],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[500],dark:Jt[900]}}function Ym(e="light"){return e==="dark"?{main:Zt[400],light:Zt[300],dark:Zt[700]}:{main:Zt[800],light:Zt[500],dark:Zt[900]}}function Vm(e="light"){return e==="dark"?{main:kn[400],light:kn[300],dark:kn[700]}:{main:"#ed6c02",light:kn[500],dark:kn[900]}}function qm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=xn(e,$m),o=e.primary||Lm(t),a=e.secondary||Pm(t),s=e.error||Fm(t),l=e.info||Um(t),u=e.success||Ym(t),c=e.warning||Vm(t);function d(m){const y=Eu(m,Mo.text.primary)>=n?Mo.text.primary:Du.text.primary;if(process.env.NODE_ENV!=="production"){const _=Eu(m,y);_<3&&console.error([`MUI: The contrast ratio of ${_}:1 for ${y} on ${m}`,"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 y}const f=({color:m,name:y,mainShade:_=500,lightShade:D=300,darkShade:O=700})=>{if(m=Pe({},m),!m.main&&m[_]&&(m.main=m[_]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
154
+ The color object needs to have a \`main\` property or a \`${_}\` property.`:Vt(11,y?` (${y})`:"",_));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${y?` (${y})`:""} provided to augmentColor(color) is invalid.
155
155
  \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
156
156
 
157
157
  Did you intend to use one of the following approaches?
@@ -164,7 +164,7 @@ const theme1 = createTheme({ palette: {
164
164
 
165
165
  const theme2 = createTheme({ palette: {
166
166
  primary: { main: green[500] },
167
- } });`:Vt(12,v?` (${v})`:"",JSON.stringify(m.main)));return Mu(m,"light",D,r),Mu(m,"dark",O,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:yo,light:bu};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),_t(Pe({common:Pe({},zn),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:km,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const Ym=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Vm(e){return Math.round(e*1e5)/1e5}const _u={textTransform:"uppercase"},xu='"Roboto", "Helvetica", "Arial", sans-serif';function qm(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=xu,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=Nn(n,Ym);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,y=d||(M=>`${M/u*h}rem`),m=(M,D,O,x,g)=>Pe({fontFamily:r,fontWeight:M,fontSize:y(D),lineHeight:O},r===xu?{letterSpacing:`${Vm(x/D)}em`}:{},g,c),v={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,_u),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,_u),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _t(Pe({htmlFontSize:u,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},v),f,{clone:!1})}const Bm=.2,Qm=.14,Wm=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Bm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Qm})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Wm})`].join(",")}const Gm=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],Km=["duration","easing","delay"],Hm={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)"},Xm={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tu(e){return`${Math.round(e)}ms`}function Jm(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Zm(e){const t=Pe({},Hm,e.easing),n=Pe({},Xm,e.duration);return Pe({getAutoHeightDuration:Jm,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o,u=Nn(o,Km);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:Tu(a)} ${s} ${typeof l=="string"?l:Tu(l)}`).join(",")}},e,{easing:t,duration:n})}const ey={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},ty=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ny(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=Nn(e,ty);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.":Vt(18));const s=Um(r),l=go(e);let u=_t(l,{mixins:Im(l.breakpoints,n),palette:s,shadows:Gm.slice(),typography:qm(s,o),transitions:Zm(i),zIndex:Pe({},ey)});if(u=_t(u,a),u=t.reduce((c,d)=>_t(c,d),u),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,h)=>{let y;for(y in f){const m=f[y];if(c.indexOf(y)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const v=Hi("",y);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${y}\` 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}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
169
- `))}f[y]={}}}};Object.keys(u.components).forEach(f=>{const h=u.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return u.unstable_sxConfig=Pe({},ho,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return po({sx:d,theme:this})},u}const wu=ny(),Nu="$$material";function ry({props:e,name:t}){return Dm({props:e,name:t,defaultTheme:wu,themeId:Nu})}const iy=Nm({themeId:Nu,defaultTheme:wu,rootShouldForwardProp:e=>Fr(e)&&e!=="classes"});function oy(e){return Hi("MuiSvgIcon",e)}h0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ay=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],sy=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ft(t)}`,`fontSize${ft(n)}`]};return f0(i,oy,r)},uy=iy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ft(n.color)}`],t[`fontSize${ft(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,h,y;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:(y=(e.vars||e).palette)==null||(y=y.action)==null?void 0:y.disabled,inherit:void 0}[t.color]}}),vo=ue.forwardRef(function(t,n){const r=ry({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=Nn(r,ay),y=ue.isValidElement(i)&&i.type==="svg",m=Pe({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:y}),v={};c||(v.viewBox=f);const M=sy(m);return oe(uy,Pe({as:s,className:p0(M.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},v,h,y&&i.props,{ownerState:m,children:[y?i.props.children:i,d?_("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(vo.propTypes={children:le.node,classes:le.object,className:le.string,color:le.oneOfType([le.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),le.string]),component:le.elementType,fontSize:le.oneOfType([le.oneOf(["inherit","large","medium","small"]),le.string]),htmlColor:le.string,inheritViewBox:le.bool,shapeRendering:le.string,sx:le.oneOfType([le.arrayOf(le.oneOfType([le.func,le.object,le.bool])),le.func,le.object]),titleAccess:le.string,viewBox:le.string}),vo.muiName="SvgIcon";const Eu=vo;function ly(e,t){function n(r,i){return _(Eu,Pe({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=Eu.muiName,ue.memo(ue.forwardRef(n))}const cy=ri(Object.freeze(Object.defineProperty({__proto__:null,capitalize:ft,createChainedFunction:Qp,createSvgIcon:ly,debounce:Wp,deprecatedPropType:Gp,isMuiElement:Kp,ownerDocument:Ns,ownerWindow:Hp,requirePropFactory:Xp,setRef:Es,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:Ds,unstable_useId:Zp,unsupportedProp:e0,useControlled:t0,useEventCallback:n0,useForkRef:r0,useIsFocusVisible:c0},Symbol.toStringTag,{value:"Module"})));var Du;function $e(){return Du||(Du=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=cy}(Wi)),Wi}const Le=ri(vl);var fy=we;Object.defineProperty(Qi,"__esModule",{value:!0});var Ou=Qi.default=void 0,dy=fy($e()),hy=Le,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");Ou=Qi.default=py;var bo={},gy=we;Object.defineProperty(bo,"__esModule",{value:!0});var Cu=bo.default=void 0,my=gy($e()),yy=Le,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");Cu=bo.default=vy;var Mo={},by=we;Object.defineProperty(Mo,"__esModule",{value:!0});var Su=Mo.default=void 0,My=by($e()),_y=Le,xy=(0,My.default)((0,_y.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=xy;const _o=()=>{const{dispatchSnackbar:e}=U.useContext(Bo);return{close:()=>e(Qo()),open:(r,i="success")=>e(Nl(r,i))}},Au=()=>{const{version:e}=Je();return{patchWorkflow:r=>Rt.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>Rt.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},Ty=e=>{const{postWorkflow:t}=Au();return $t.useMutation(t,e)},wy=e=>{const{patchWorkflow:t}=Au();return $t.useMutation(t,e)},Ny=()=>{const{t:e}=Qe.useTranslation(["snackMessage"]),{open:t}=_o(),{setCurrentTree:n,currentTree:r,tree:i}=Je(),{mutate:o}=Ty({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:c=>{t(e("success.saveTree",{ns:"snackMessage"})),n(d=>({...d,id:c.workflow_id}))}}),{mutate:a}=wy({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),s=c=>JSON.stringify(c,null,2);return{formatJSON:s,getDownloadLink:c=>`data:text/json;charset=utf-8,${encodeURIComponent(s(c))}`,handleSubmit:()=>{const{name:c,id:d}=r;if(!c){n(f=>({...f,errorName:"Champs Requis"}));return}if(i){if(d){a({id:d,label:c,workflow:i});return}o({label:c,workflow:i})}}}},Ey=({downloadedFileName:e="export",value:t})=>{const{t:n}=Qe.useTranslation("button"),{getDownloadLink:r,handleSubmit:i}=Ny(),{currentTree:o,endPoint:a}=Je(),{id:s}=o;return oe(N.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[_(N.Tooltip,{title:n("downloadJSONFile"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:_(N.Box,{children:_(N.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:_(Su,{})})})}),_(N.Tooltip,{title:n(s?"update":"save"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:_(N.Box,{children:_(N.Button,{variant:"outlined",onClick:i,disabled:!t||!a,children:s?_(Ou,{}):_(Cu,{})})})})]})},Dy={box:{backgroundColor:Me.background,border:`solid 1px ${Me.borderBlue}`}},Iu=({children:e,description:t,open:n,onClose:r,title:i})=>_(N.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(N.Box,{sx:Dy.box,p:4,children:[_("h3",{children:i}),_("p",{children:t}),e]})});var xo={},Oy=we;Object.defineProperty(xo,"__esModule",{value:!0});var ku=xo.default=void 0,Cy=Oy($e()),Sy=Le,Ay=(0,Cy.default)((0,Sy.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");ku=xo.default=Ay;const Ur={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${Me.borderBlue}`,height:" 100%",margin:1},toolbar:{backgroundColor:Me.background,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:Me.tertiary,border:`solid 1px ${Me.primary}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Iy=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l},u)=>_(N.Slide,{direction:"up",ref:u,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l,children:e}),ky=U.forwardRef(Iy),jy=({children:e,open:t,onClose:n,title:r})=>_(N.Dialog,{PaperProps:{sx:{backgroundColor:Me.background,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:ky,children:oe(N.Box,{sx:Ur.container,children:[_(N.AppBar,{position:"sticky",elevation:0,children:_(N.Toolbar,{sx:Ur.toolbar,children:oe(N.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:Ur.toolbarBox,children:[_(N.Typography,{variant:"h5",children:_("strong",{children:r})}),_(N.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:_(ku,{})})]})})}),_(N.Box,{sx:Ur.main,children:e})]})}),zy={box:{border:`solid 1px ${Me.borderBlue}`,flexGrow:0}},Ry=({children:e})=>_(N.Box,{p:2,role:"group",sx:zy.box,children:e}),$y={box:{border:`solid 1px ${Me.borderBlue}`,flexGrow:0}},Ly=({children:e})=>_(N.Box,{sx:$y.box,padding:2,component:"header",children:e}),Py={box:{border:`solid 1px ${Me.borderBlue}`,flexGrow:1}},Fy=({children:e})=>_(N.Box,{sx:Py.box,component:"main",role:"tree",children:e}),ju={stack:{width:"100%"}},Uy=({children:e})=>{const t=U.Children.toArray(e);return oe(N.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[_(N.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(N.Stack,{sx:ju.stack,spacing:2,children:[t[0],t[1]]})}),_(N.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(N.Stack,{sx:ju.stack,spacing:2,children:[t[2],t[3]]})})]})},Yy={box:{border:`solid 1px ${Me.borderBlue}`,flexGrow:1,overflow:"auto"}},Vy=({children:e})=>_(N.Box,{sx:Yy.box,component:"aside",children:e}),zu=(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=zu(e.children[a],t);return n},en=(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=en((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=en(e.children[d],t);return n},Yr=(e,t,n)=>{const r=en(e,t);return zu(r,n)},qy=(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)},By=({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=Yr(i,t,n);return qy(o,{...r,...!r.attributes.isDecision&&{children:[...((a=Yr(e,t,n))==null?void 0:a.children)||[]]}}),i},Ru=(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=>Ru(s,n)).flat()])}),n},$u=(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=$u(e.children[s],t,e);return r},Qy=(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),Wy=(e,t,n)=>{const r=en(e,t);return $u(r,n)},Gy=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=Yr(r,t,n),o=Wy(r,t,n);return Qy(o,i),r},Ky=(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)},Hy=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=Yr(i,t,n);return Ky(o,r),i},gt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},Xy=(e,t,n)=>({children:n,name:t,path:e,type:gt.appendTreeCard}),Jy=(e,t,n)=>({children:n,name:t,path:e,type:gt.replaceTreeCard}),Zy=(e,t)=>({name:t,path:e,type:gt.deleteTreeCard}),ev=()=>({type:gt.resetTree}),Lu=e=>({tree:e,type:gt.setTree}),tv=(e,t)=>{switch(t.type){case gt.appendTreeCard:{const{name:n,path:r,children:i}=t;return By({child:i,name:n,path:r,tree:e})}case gt.deleteTreeCard:{const{path:n,name:r}=t;return Gy({name:r,path:n,tree:e})}case gt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return Hy({child:i,name:n,path:r,tree:e})}case gt.resetTree:return null;case gt.setTree:return t.tree;default:throw new Error}},nv=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=Je();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(Zy(s,a)),t(null)}}},rv=({onClose:e})=>{const{t}=Qe.useTranslation(),{handleSubmit:n}=nv();return _("form",{onSubmit:n,children:oe(N.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[_(N.Button,{variant:"text",onClick:e,children:t("cancel")}),_(N.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var To={},iv=we;Object.defineProperty(To,"__esModule",{value:!0});var Pu=To.default=void 0,ov=iv($e()),av=Le,sv=(0,ov.default)((0,av.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");Pu=To.default=sv;var wo={},uv=we;Object.defineProperty(wo,"__esModule",{value:!0});var Fu=wo.default=void 0,lv=uv($e()),cv=Le,fv=(0,lv.default)((0,cv.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");Fu=wo.default=fv;const $n=[{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:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"}],dv=()=>{const{endPoint:e}=Je();return{fields:U.useCallback(()=>$n.filter(n=>!(n.type==="tree"&&!e)),[e])()}},hv=({onChange:e,value:t})=>{const{t:n}=Qe.useTranslation(),{fields:r}=dv();return oe(N.FormControl,{sx:{flex:1},required:!0,children:[_(N.InputLabel,{children:n("type")}),_(N.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>_(N.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})};var No={},pv=we;Object.defineProperty(No,"__esModule",{value:!0});var Uu=No.default=void 0,gv=pv($e()),mv=Le,yv=(0,gv.default)((0,mv.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");Uu=No.default=yv;const Yu=()=>({getAllWorkflow:()=>Rt.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>Rt.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),Eo=(e,t)=>{const{getWorkflow:n}=Yu();return $t.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},vv=e=>{const{getAllWorkflow:t}=Yu();return $t.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},bv=e=>{const{t}=Qe.useTranslation("snackMessage"),{open:n}=_o(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=Je(),[a,s]=U.useState("");Eo(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:y,label:m,workflow:v})=>{e||(i({id:y,name:m}),o(Lu(v)))}});const{data:l,isLoading:u,refetch:c}=vv({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:y})=>{const{value:m}=y;if(m==="add-new-tree"){s(""),i({name:""}),o(ev());return}s(m)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:l,workflowsSuggestionsLoading:u}},Vu={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},qu=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const{t:a}=Qe.useTranslation("form"),s=U.useMemo(()=>!!i,[i]),{handleChangeTree:l,handleOnOpen:u,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=bv(s);return oe(N.FormControl,{size:n,required:t,sx:Vu.formControl,children:[!e&&_(N.InputLabel,{children:a("tree")}),oe(N.Select,{value:s?o:f,id:"tree-select",onChange:h=>s?i==null?void 0:i(h):l(h),sx:e?Vu.select:void 0,label:a("tree"),onOpen:u,children:[d&&_(N.MenuItem,{children:_(N.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:y})=>_(N.MenuItem,{value:y,children:h},y)),r&&_(N.MenuItem,{disabled:!0,children:_(N.Box,{sx:{height:1,width:"100%"},children:_(N.Divider,{})})}),r&&oe(N.MenuItem,{value:"add-new-tree",children:[_(N.Typography,{mr:1,children:a("newTree")}),_(Uu,{color:"primary"})]})]})]})},Mv=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:i,handleChangeTreeSelect:o,handleChangeHelperText:a,handleChangeHiddenValue:s})=>{const{t:l}=Qe.useTranslation(["translation","form"]);return r?_(qu,{required:!0,value:i,onChange:o}):n?_(N.TextField,{required:!0,sx:{flex:1},label:l("hiddenValue",{ns:"form"}),onChange:s,value:t}):_(N.TextField,{sx:{flex:1},label:l("helperText",{ns:"form"}),onChange:a,value:e})},Bu=e=>new Set([...e]).size===e.length,_v=(e,t,n)=>{const r=[...e,t];return Bu(n?r.filter(i=>i!==n):r)},xv=()=>{var Gr,Kr,Hr,Xr,Jr,Zr,ei,nn,Fn,Tt,rn,on,Un,ti,Yn;const e=U.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=Je(),{open:s}=_o(),{t:l}=Qe.useTranslation(),[u,c]=U.useState(e),[d,f]=U.useState(""),[h,y]=U.useState(""),[m,v]=U.useState(""),[M,D]=U.useState(!1),[O,x]=U.useState(!1),[g,j]=U.useState("text"),[C,I]=U.useState(""),[k,E]=U.useState(""),[$,X]=U.useState(""),[H,b]=U.useState({off:"",on:""}),[z,w]=U.useState(!1),[R,P]=U.useState(""),B=i==="edit",T=g==="tree",A=g==="hidden",V=$n.some(F=>F.type===g&&(F==null?void 0:F.isBooleanField)),K=$n.some(F=>F.type===g&&(F==null?void 0:F.isDecisionField)),q=$n.some(F=>F.type===g&&(F==null?void 0:F.isRequiredDisabled)),J=$n.some(F=>F.type===g&&(F==null?void 0:F.isRepeatableDisabled)),Q=((Kr=(Gr=r==null?void 0:r.data)==null?void 0:Gr.attributes)==null?void 0:Kr.isLeaf)??!0,W=F=>!K&&F>0,{refetch:ee,isLoading:re}=Eo(C,{enabled:!1,onError:()=>{s(l("error.fetchTree",{ns:"snackMessage"}),"error")}}),te=(F,he)=>{c(pe=>pe.map(Te=>{const{id:Ye}=Te;return F.target.dataset.id===Ye?{...Te,id:Ye,[he]:F.target.value}:{...Te}}))},Ce=F=>{y(F.target.value)},Y=F=>{v(F.target.value)},Ue=F=>{te(F,"label")},G=F=>{te(F,"value")},tt=F=>{te(F,"message")},at=F=>{X(F.target.value)},jt=F=>{var Ke;const{value:he}=F.target;if(f(F.target.value),!t||!he){P("");return}const pe=B&&(r==null?void 0:r.data.name),Te=(Ke=o==null?void 0:o.at(-1))==null?void 0:Ke.path,Ye=en(t,Te),Ve=Ru(Ye);if(_v(Ve,he,pe)){P("");return}P(l("mustBeUnique",{ns:"form"}))},Vr=F=>{D(F.target.checked)},tn=F=>{x(F.target.checked)},$o=F=>{w(F.target.checked)},Lo=F=>{j(F.target.value),x(!1),D(!1),w(!1)},Ln=F=>{I(F.target.value)},Po=F=>he=>{b(pe=>({...pe,[F]:he.target.value}))},Fo=F=>{E(F.target.value)},qr=()=>{c(F=>{const he=Number(F[F.length-1].id),pe=String(he+1);return[...F,{...e[0],id:pe}]})},Br=F=>{c(he=>he.filter(({id:pe})=>F.currentTarget.value!==pe))},zt=(F,he)=>{var Te,Ye,Ve;const pe=(Ve=(Ye=(Te=F==null?void 0:F.children)==null?void 0:Te[he])==null?void 0:Ye.data)==null?void 0:Ve.children;return pe?pe.map(({name:nt,attributes:Ke,children:mt})=>({attributes:Ke,children:mt,name:nt})):[]},Uo=F=>{var he;return O?(he=u==null?void 0:u.filter((pe,Te)=>!W(Te)))==null?void 0:he.map(({message:pe,value:Te,label:Ye},Ve)=>{const nt=`${d}:${Te}`,Ke=zt(r,Ve);return{attributes:{depth:F+1,label:Ye,value:Te,...pe&&{message:pe},...Ke.length===0&&{isLeaf:!0}},children:Ke,name:nt}}):[]},Qr=F=>F.map(({message:he,...pe})=>({...pe,...he&&{message:he}})),Wr=(F,he,pe)=>{var Te;return F&&(!he||pe)?ee():F&&he&&!pe?{data:{workflow:(Te=r==null?void 0:r.data.attributes)==null?void 0:Te.tree},isError:null}:{data:null,isError:null}},Pn=async F=>{var se,ce,ie,ne;F.preventDefault();const{on:he,off:pe}=H,Te=((se=r==null?void 0:r.data)==null?void 0:se.name)||"",Ye=(r==null?void 0:r.depth)||0,Ve=i==="edit",nt=Ye+(Ve||r===null?0:1),Ke=Uo(nt),mt=(ce=o==null?void 0:o.at(-1))==null?void 0:ce.path,an=o.length?`${mt}/${d}`:`/${d}`,p=((ne=(ie=r==null?void 0:r.data.attributes)==null?void 0:ie.tree)==null?void 0:ne.treeId)!==C,{data:S,isError:L}=await Wr(T,Ve,p);if(L)return;const Z={attributes:{depth:nt,label:m,type:g,...k&&{helperText:k},...(pe||he)&&{messages:{...pe&&{off:pe},...he&&{on:he}}},...T&&{tree:{...S==null?void 0:S.workflow,treeId:C},treePath:an},...O&&{isDecision:O},...K&&!O&&{values:Qr(u)},...M&&{required:M},...$&&{step:$},...z&&{repeatable:z},...A&&{hiddenValue:h}},children:Ke,name:d};n(Ve?Jy(mt||"",Te,Z):Xy(mt||null,Te,Z)),a(null)};return U.useEffect(()=>{var F,he,pe,Te,Ye,Ve,nt,Ke,mt,an,p,S,L,Z,se,ce,ie,ne,Ie;if(i==="edit"){const _e=((he=(F=r==null?void 0:r.data)==null?void 0:F.attributes)==null?void 0:he.values)||((Ye=(Te=(pe=r==null?void 0:r.data)==null?void 0:pe.children)==null?void 0:Te.filter(({attributes:ke})=>!(ke!=null&&ke.type)))==null?void 0:Ye.map(({attributes:ke},Dt)=>{const{label:ni,value:st,message:sl}=ke||{};return{id:String(Dt),label:String(ni),value:String(st),...sl&&{message:String(sl)}}}));f((r==null?void 0:r.data.name)||""),j(((Ve=r==null?void 0:r.data.attributes)==null?void 0:Ve.type)||"text"),E(((nt=r==null?void 0:r.data.attributes)==null?void 0:nt.helperText)||""),D(((Ke=r==null?void 0:r.data.attributes)==null?void 0:Ke.required)||!1),X(((mt=r==null?void 0:r.data.attributes)==null?void 0:mt.step)||""),v(((an=r==null?void 0:r.data.attributes)==null?void 0:an.label)||""),x(((p=r==null?void 0:r.data.attributes)==null?void 0:p.isDecision)||!1),c(_e!=null&&_e.length?_e:e),b({off:((L=(S=r==null?void 0:r.data.attributes)==null?void 0:S.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)||""}),I(((ie=(ce=r==null?void 0:r.data.attributes)==null?void 0:ce.tree)==null?void 0:ie.treeId)||""),w(((ne=r==null?void 0:r.data.attributes)==null?void 0:ne.repeatable)||!1),y(((Ie=r==null?void 0:r.data.attributes)==null?void 0:Ie.hiddenValue)||"")}},[(Xr=(Hr=r==null?void 0:r.data.attributes)==null?void 0:Hr.tree)==null?void 0:Xr.treeId,(Jr=r==null?void 0:r.data.attributes)==null?void 0:Jr.messages,(Zr=r==null?void 0:r.data.attributes)==null?void 0:Zr.helperText,(ei=r==null?void 0:r.data.attributes)==null?void 0:ei.isDecision,(nn=r==null?void 0:r.data.attributes)==null?void 0:nn.label,(Fn=r==null?void 0:r.data.attributes)==null?void 0:Fn.required,(Tt=r==null?void 0:r.data.attributes)==null?void 0:Tt.step,(rn=r==null?void 0:r.data.attributes)==null?void 0:rn.type,(on=r==null?void 0:r.data.attributes)==null?void 0:on.values,(Un=r==null?void 0:r.data)==null?void 0:Un.children,r==null?void 0:r.data.name,(ti=r==null?void 0:r.data.attributes)==null?void 0:ti.repeatable,(Yn=r==null?void 0:r.data.attributes)==null?void 0:Yn.hiddenValue,e,i]),{getDisabledValueField:W,handleAddValue:qr,handleChangeHelperText:Fo,handleChangeHiddenValue:Ce,handleChangeIsDecisionField:tn,handleChangeLabel:Y,handleChangeMessage:Po,handleChangeName:jt,handleChangeOptionLabel:Ue,handleChangeOptionMessage:tt,handleChangeOptionValue:G,handleChangeRepeatable:$o,handleChangeRequired:Vr,handleChangeStep:at,handleChangeTreeSelect:Ln,handleChangeType:Lo,handleDeleteValue:Br,handleSubmit:Pn,helperText:k,hiddenValue:h,isBooleanField:V,isDecision:O,isDecisionField:K,isEditModal:B,isHiddenField:A,isLeaf:Q,isRepeatableDisabled:J,isRequiredDisabled:q,isTreeField:T,isWorkflowLoading:re,label:m,messages:H,name:d,repeatable:z,required:M,step:$,treeSelected:C,type:g,uniqueNameErrorMessage:R,values:u}},Qu={marginRight:"-20px !important",minWidth:"auto !important"},Wu={iconButton:Qu,iconButtonDelete:{...Qu,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:Me.background,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},Tv=({onClose:e})=>{const{t}=Qe.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:y,isRequiredDisabled:m,isRepeatableDisabled:v,isTreeField:M,treeSelected:D,isWorkflowLoading:O,repeatable:x,isLeaf:g,messages:{on:j,off:C},handleChangeTreeSelect:I,handleChangeHelperText:k,handleChangeOptionMessage:E,handleChangeRequired:$,handleChangeName:X,handleChangeType:H,handleChangeIsDecisionField:b,handleChangeOptionLabel:z,handleDeleteValue:w,handleChangeOptionValue:R,handleChangeMessage:P,handleSubmit:B,handleAddValue:T,handleChangeLabel:A,handleChangeRepeatable:V,handleChangeHiddenValue:K}=xv();return console.log(f),oe("form",{onSubmit:B,children:[oe(N.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[_(N.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:A,value:l,required:!0}),_(N.TextField,{label:t("name"),sx:{flex:1},onChange:X,value:i,error:!!o,helperText:o,required:!0})]}),oe(N.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[_(hv,{value:a,onChange:H}),_(Mv,{helperText:s,hiddenValue:u,isHiddenField:y,isTreeField:M,treeSelected:D,handleChangeTreeSelect:I,handleChangeHelperText:k,handleChangeHiddenValue:K})]}),c&&oe(N.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[_(N.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:P("on"),value:j}),_(N.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:P("off"),value:C})]}),oe(N.Stack,{paddingY:1,children:[_(N.FormGroup,{children:_(N.FormControlLabel,{disabled:v,control:_(N.Checkbox,{checked:x,onChange:V}),label:t("repeatable",{ns:"form"})})}),_(N.FormGroup,{children:_(N.FormControlLabel,{disabled:m,control:_(N.Checkbox,{checked:r,onChange:$}),label:t("required")})}),(g||f)&&_(N.FormGroup,{children:_(N.FormControlLabel,{disabled:!h,control:_(N.Checkbox,{checked:d,onChange:b}),label:t("decisionFields",{ns:"form"})})})]}),h&&oe(Vn,{children:[_("h4",{children:t("values")}),n==null?void 0:n.map(({value:q,label:J,id:Q,message:W})=>oe(N.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[_(N.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:z,value:J,inputProps:{"data-id":Q},required:!0}),_(N.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:R,value:q,inputProps:{"data-id":Q},required:!0}),_(N.TextField,{label:"Message",sx:{flex:1},onChange:E,value:W,inputProps:{"data-id":Q}}),n.length>1&&_(N.IconButton,{color:"warning",sx:Wu.iconButtonDelete,value:Q,onClick:w,children:_(Fu,{})})]},Q))]}),h&&_(N.Box,{justifyContent:"flex-end",display:"flex",children:_(N.IconButton,{color:"success",sx:Wu.iconButton,onClick:T,children:_(Pu,{})})}),oe(N.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[_(N.Button,{variant:"text",onClick:e,children:t("cancel")}),_(N.Button,{variant:"contained",type:"submit",disabled:!!o||O,children:O?_(N.CircularProgress,{size:14}):t("validate")})]})]})};var Do={},wv=we;Object.defineProperty(Do,"__esModule",{value:!0});var Gu=Do.default=void 0,Nv=wv($e()),Ev=Le,Dv=(0,Nv.default)((0,Ev.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");Gu=Do.default=Dv;var Oo={},Ov=we;Object.defineProperty(Oo,"__esModule",{value:!0});var Ku=Oo.default=void 0,Cv=Ov($e()),Sv=Le,Av=(0,Cv.default)((0,Sv.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");Ku=Oo.default=Av;var Co={},Iv=we;Object.defineProperty(Co,"__esModule",{value:!0});var Hu=Co.default=void 0,kv=Iv($e()),jv=Le,zv=(0,kv.default)((0,jv.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");Hu=Co.default=zv;var So={},Rv=we;Object.defineProperty(So,"__esModule",{value:!0});var Xu=So.default=void 0,$v=Rv($e()),Lv=Le,Pv=(0,$v.default)((0,Lv.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");Xu=So.default=Pv;var Ao={},Fv=we;Object.defineProperty(Ao,"__esModule",{value:!0});var Ju=Ao.default=void 0,Uv=Fv($e()),Yv=Le,Vv=(0,Uv.default)((0,Yv.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");Ju=Ao.default=Vv;var Io={},qv=we;Object.defineProperty(Io,"__esModule",{value:!0});var Zu=Io.default=void 0,Bv=qv($e()),el=Le,Qv=(0,Bv.default)([(0,el.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,el.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");Zu=Io.default=Qv;var ko={},Wv=we;Object.defineProperty(ko,"__esModule",{value:!0});var tl=ko.default=void 0,Gv=Wv($e()),Kv=Le,Hv=(0,Gv.default)((0,Kv.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");tl=ko.default=Hv;var jo={},Xv=we;Object.defineProperty(jo,"__esModule",{value:!0});var nl=jo.default=void 0,Jv=Xv($e()),Zv=Le,e1=(0,Jv.default)((0,Zv.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");nl=jo.default=e1;var zo={},t1=we;Object.defineProperty(zo,"__esModule",{value:!0});var rl=zo.default=void 0,n1=t1($e()),r1=Le,i1=(0,n1.default)((0,r1.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");rl=zo.default=i1;var Ro={},o1=we;Object.defineProperty(Ro,"__esModule",{value:!0});var il=Ro.default=void 0,a1=o1($e()),s1=Le,u1=(0,a1.default)((0,s1.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");il=Ro.default=u1;const Ae={actionButton:{minWidth:"auto !important"},container:{background:Me.background,borderRadius:"1rem"},containerField:{background:Me.background,border:`solid 1px ${Me.primary}`,borderRadius:"1rem"},containerHidden:{background:Me.background,border:`solid 1px ${Me.borderGrey}`,borderRadius:"1rem"},containerTree:{background:Me.tertiary,border:`solid 1px ${Me.primary}`,borderRadius:"1rem"},containerValue:{background:Me.background,border:`solid 1px ${Me.secondary}`,borderRadius:"1rem"},icon:{color:Me.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}},l1=e=>{const t=!!e,n=e==="tree";return e==="hidden"?Ae.containerHidden:n?Ae.containerTree:t?Ae.containerField:Ae.containerValue},c1=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var j;const{t:s}=Qe.useTranslation(["translation","form"]),{attributes:l}=e||{},{isRoot:u,isLeaf:c,required:d,isDecision:f,step:h,type:y,label:m,repeatable:v}=l||{},M=!!y,D=y==="tree",O=y==="hidden",x=!M,g=!u&&!c;return oe("g",{children:[_(N.GlobalStyles,{styles:{".rd3t-node svg":Ae.nodeSvg}}),_(N.Box,{component:"foreignObject",height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,sx:l1(y),children:oe(N.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(N.Stack,{alignItems:"flex-end",spacing:.5,children:[M&&oe(N.Stack,{direction:"row",spacing:1,alignItems:"center",children:[h&&_(N.Tooltip,{title:`${s("step",{ns:"form"})} ${(j=e==null?void 0:e.attributes)==null?void 0:j.step}`,placement:"left",arrow:!0,children:_(N.Chip,{color:"primary",size:"small",label:h,sx:Ae.stepChip})}),_(N.Typography,{variant:"subtitle2",sx:Ae.title,children:_("strong",{children:m})})]}),M&&_(N.Chip,{color:"info",size:"small",label:s(`type.${y}`,{ns:"form"})}),d&&_(N.Stack,{direction:"row",spacing:.5,children:d&&_(N.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),_(N.Stack,{spacing:.5,alignItems:"flex-end",children:x&&_(N.Typography,{variant:"subtitle2",sx:Ae.title,children:_("strong",{children:m})})}),oe(N.Stack,{paddingTop:.5,spacing:.5,direction:"row",children:[v&&_(N.Tooltip,{title:s("isARepeatable"),placement:"bottom",arrow:!0,children:_(tl,{style:Ae.icon})}),c&&_(N.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:_(Ju,{style:Ae.icon})}),O&&_(N.Tooltip,{title:s("isAHidden"),placement:"bottom",arrow:!0,children:_(rl,{style:Ae.icon})}),u&&_(N.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:_(nl,{style:Ae.icon})}),g&&_(N.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:_(Gu,{style:Ae.icon})}),D&&_(N.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:_(Zu,{style:Ae.icon})})]})]}),oe(N.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!u&&_(N.Tooltip,{title:s("remove"),arrow:!0,children:_(N.Button,{variant:"text",sx:Ae.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:_(Hu,{})})}),!x&&_(N.Tooltip,{title:s("edit"),arrow:!0,children:_(N.Button,{variant:"text",color:"secondary",sx:Ae.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:_(Xu,{})})}),!f&&_(N.Tooltip,{title:s("add"),arrow:!0,children:_(N.Button,{variant:"text",color:"success",sx:Ae.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:_(Ku,{})})}),D&&_(N.Tooltip,{title:s("show"),arrow:!0,children:_(N.Button,{variant:"text",color:"info",sx:Ae.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:_(il,{})})})]})]})})]})},f1=U.memo(c1),ol=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=Je();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)}}},d1=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:l,handleOpenTreeModal:u}=ol();return _(f1,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:l,onOpenTreeModal:u,onDeleteChildren:a,onEditChildren:s})},al=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>_(d1,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),h1=()=>{const{t:e}=Qe.useTranslation(["modal","snackMessage"]),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=Je(),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"}},p1=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=Je(),{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}},g1=()=>{const{t:e}=Qe.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=p1();return _(N.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},m1=()=>{var h,y;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=Je(),{handleCloseTreeModal:i}=ol(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:l,isDeleteModal:u}=h1(),c=(h=n==null?void 0:n.at(-1))==null?void 0:h.path,d=(y=n==null?void 0:n.at(-1))==null?void 0:y.label,f=e&&en(e,c);return oe(Vn,{children:[oe(Uy,{children:[_(Ly,{children:oe(N.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[_(Sl,{}),!!r&&oe(N.Stack,{direction:"row",alignItems:"center",spacing:2,children:[_(g1,{}),_(qu,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),_(Fy,{children:_(vs,{data:e,renderCustomNodeElement:al})}),_(Vy,{children:_(Pp,{value:e})}),_(Ry,{children:_(Ey,{value:e})})]}),_(Iu,{open:l,onClose:a,title:o(),children:_(Tv,{onClose:a})}),_(Iu,{open:u,onClose:a,title:s(),children:_(rv,{onClose:a})}),_(jy,{open:t,onClose:i,title:d,children:f&&_(vs,{data:f,renderCustomNodeElement:al})})]})},y1="0.8.0",v1=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=U.useState(Nt.currentHierarchyPointNode),[a,s]=U.useState(Nt.modalOpen),[l,u]=U.useState(Nt.treeModalOpen),[c,d]=U.useState(Nt.treePath),[f,h]=U.useReducer(tv,n||Nt.tree),[y,m]=U.useState(r?{...Nt.currentTree,id:r}:Nt.currentTree),v=U.useMemo(()=>({currentHierarchyPointNode:i,currentTree:y,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:m,setModalOpen:s,setTreeModalOpen:u,setTreePath:d,tree:f,treeModalOpen:l,treePath:c,version:y1}),[i,a,l,c,f,y,t]);return Eo(y.id,{enabled:!!r,onSuccess:async M=>{M&&(m({id:M==null?void 0:M.id,name:M==null?void 0:M.label}),h(Lu((M==null?void 0:M.workflow)||null)))}}),_(ms.Provider,{value:v,children:e})},b1={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save",update:"Update"},M1={decisionFields:"Decision fields",helperText:"Helper text",hiddenValue:"Hidden value",label:"Label",mustBeUnique:"Must be unique",newTree:"Nouvel arbre",offMessage:"Message (disable)",onMessage:"Message (enable)",repeatable:"Repeatable",staticFields:"Static fields",step:"Step",tree:"Tree",treeName:"Tree name",type:{address:"Address",checkbox:"Checkbox",date:"Date",email:"Email",file:"File",hidden:"Hidden field",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",text:"Text",time:"Time",tree:"Tree",url:"URL"},value:"Value",values:"Values"},_1={addFirstTitle:"Add a field",addTitle:"Add a field to « {{name}} »",deleteTitle:"Are you sure to delete « {{name}} »",editTitle:"Edit field « {{name}} »",saveTree:"Save a Tree"},x1={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"}},T1={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"},w1={createTree:"Créer un arbre",downloadJSONFile:"Télécharger le fichier JSON",save:"Enregistrer",update:"Modifier"},N1={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"},E1={addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ à « {{name}} »",deleteTitle:"Voulez vraiment supprimer « {{name}} »",editTitle:"Éditer le champ « {{name}} »",saveTree:"Enregistrer l'arbre"},D1={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"}},O1={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"};dl.use(hl).use(Qe.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:b1,form:M1,modal:_1,snackMessage:x1,translation:T1},fr:{button:w1,form:N1,modal:E1,snackMessage:D1,translation:O1}},returnNull:!1}).then();const C1=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(U.useLayoutEffect(()=>{Rt.defaults.baseURL=t,Rt.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),_($t.QueryClientProvider,{client:_l,children:_(wl,{authToken:e,children:_(v1,{endPoint:t,initialTree:n,initialTreeId:r,children:_(Ml,{children:_(Ol,{children:_(m1,{})})})})})}));Se.TreePlusIcon=gs,Se.Treege=C1,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});
167
+ } });`:Vt(12,y?` (${y})`:"",JSON.stringify(m.main)));return Ou(m,"light",D,r),Ou(m,"dark",O,r),m.contrastText||(m.contrastText=d(m.main)),m},h={dark:Mo,light:Du};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),_t(Pe({common:Pe({},In),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:Rm,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const Bm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Qm(e){return Math.round(e*1e5)/1e5}const Cu={textTransform:"uppercase"},Su='"Roboto", "Helvetica", "Arial", sans-serif';function Wm(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Su,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=xn(n,Bm);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,v=d||(_=>`${_/u*h}rem`),m=(_,D,O,x,g)=>Pe({fontFamily:r,fontWeight:_,fontSize:v(D),lineHeight:O},r===Su?{letterSpacing:`${Qm(x/D)}em`}:{},g,c),y={h1:m(o,96,1.167,-1.5),h2:m(o,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(s,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(s,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(s,14,1.75,.4,Cu),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Cu),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return _t(Pe({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},y),f,{clone:!1})}const Gm=.2,Km=.14,Hm=.12;function xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Km})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Hm})`].join(",")}const Xm=["none",xe(0,2,1,-1,0,1,1,0,0,1,3,0),xe(0,3,1,-2,0,2,2,0,0,1,5,0),xe(0,3,3,-2,0,3,4,0,0,1,8,0),xe(0,2,4,-1,0,4,5,0,0,1,10,0),xe(0,3,5,-1,0,5,8,0,0,1,14,0),xe(0,3,5,-1,0,6,10,0,0,1,18,0),xe(0,4,5,-2,0,7,10,1,0,2,16,1),xe(0,5,5,-3,0,8,10,1,0,3,14,2),xe(0,5,6,-3,0,9,12,1,0,3,16,2),xe(0,6,6,-3,0,10,14,1,0,4,18,3),xe(0,6,7,-4,0,11,15,1,0,4,20,3),xe(0,7,8,-4,0,12,17,2,0,5,22,4),xe(0,7,8,-4,0,13,19,2,0,5,24,4),xe(0,7,9,-4,0,14,21,2,0,5,26,4),xe(0,8,9,-5,0,15,22,2,0,6,28,5),xe(0,8,10,-5,0,16,24,2,0,6,30,5),xe(0,8,11,-5,0,17,26,2,0,6,32,5),xe(0,9,11,-5,0,18,28,2,0,7,34,6),xe(0,9,12,-6,0,19,29,2,0,7,36,6),xe(0,10,13,-6,0,20,31,3,0,8,38,7),xe(0,10,13,-6,0,21,33,3,0,8,40,7),xe(0,10,14,-6,0,22,35,3,0,8,42,7),xe(0,11,14,-7,0,23,36,3,0,9,44,8),xe(0,11,15,-7,0,24,38,3,0,9,46,8)],Jm=["duration","easing","delay"],Zm={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)"},ey={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Au(e){return`${Math.round(e)}ms`}function ty(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function ny(e){const t=Pe({},Zm,e.easing),n=Pe({},ey,e.duration);return Pe({getAutoHeightDuration:ty,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:l=0}=o,u=xn(o,Jm);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:Au(a)} ${s} ${typeof l=="string"?l:Au(l)}`).join(",")}},e,{easing:t,duration:n})}const ry={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iy=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function oy(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=xn(e,iy);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.":Vt(18));const s=qm(r),l=vo(e);let u=_t(l,{mixins:zm(l.breakpoints,n),palette:s,shadows:Xm.slice(),typography:Wm(s,o),transitions:ny(i),zIndex:Pe({},ry)});if(u=_t(u,a),u=t.reduce((c,d)=>_t(c,d),u),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,h)=>{let v;for(v in f){const m=f[v];if(c.indexOf(v)!==-1&&Object.keys(m).length>0){if(process.env.NODE_ENV!=="production"){const y=Zi("",v);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${v}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${y}' syntax:`,JSON.stringify({root:{[`&.${y}`]:m}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
169
+ `))}f[v]={}}}};Object.keys(u.components).forEach(f=>{const h=u.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return u.unstable_sxConfig=Pe({},mo,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return yo({sx:d,theme:this})},u}const Iu=oy(),ku="$$material";function ay({props:e,name:t}){return Sm({props:e,name:t,defaultTheme:Iu,themeId:ku})}const sy=Om({themeId:ku,defaultTheme:Iu,rootShouldForwardProp:e=>jr(e)&&e!=="classes"});function uy(e){return Zi("MuiSvgIcon",e)}m0("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ly=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cy=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ft(t)}`,`fontSize${ft(n)}`]};return p0(i,uy,r)},fy=sy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ft(n.color)}`],t[`fontSize${ft(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,l,u,c,d,f,h,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:(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:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),_o=ue.forwardRef(function(t,n){const r=ay({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=xn(r,ly),v=ue.isValidElement(i)&&i.type==="svg",m=Pe({},r,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f,hasSvgAsChild:v}),y={};c||(y.viewBox=f);const _=cy(m);return oe(fy,Pe({as:s,className:y0(_.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},y,h,v&&i.props,{ownerState:m,children:[v?i.props.children:i,d?M("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(_o.propTypes={children:Me.node,classes:Me.object,className:Me.string,color:Me.oneOfType([Me.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),Me.string]),component:Me.elementType,fontSize:Me.oneOfType([Me.oneOf(["inherit","large","medium","small"]),Me.string]),htmlColor:Me.string,inheritViewBox:Me.bool,shapeRendering:Me.string,sx:Me.oneOfType([Me.arrayOf(Me.oneOfType([Me.func,Me.object,Me.bool])),Me.func,Me.object]),titleAccess:Me.string,viewBox:Me.string}),_o.muiName="SvgIcon";const ju=_o;function dy(e,t){function n(r,i){return M(ju,Pe({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=ju.muiName,ue.memo(ue.forwardRef(n))}const hy=Xr(Object.freeze(Object.defineProperty({__proto__:null,capitalize:ft,createChainedFunction:Kp,createSvgIcon:dy,debounce:Hp,deprecatedPropType:Xp,isMuiElement:Jp,ownerDocument:ks,ownerWindow:Zp,requirePropFactory:e0,setRef:js,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
+ `)),Us.configure(e)}},unstable_useEnhancedEffect:zs,unstable_useId:n0,unsupportedProp:r0,useControlled:i0,useEventCallback:o0,useForkRef:a0,useIsFocusVisible:h0},Symbol.toStringTag,{value:"Module"})));var zu;function Ae(){return zu||(zu=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hy}(Ki)),Ki}const Ie=Xr(Dl);var py=De;Object.defineProperty(Gi,"__esModule",{value:!0});var Ru=Gi.default=void 0,gy=py(Ae()),my=Ie,yy=(0,gy.default)((0,my.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");Ru=Gi.default=yy;var xo={},vy=De;Object.defineProperty(xo,"__esModule",{value:!0});var $u=xo.default=void 0,by=vy(Ae()),My=Ie,_y=(0,by.default)((0,My.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");$u=xo.default=_y;var To={},xy=De;Object.defineProperty(To,"__esModule",{value:!0});var Lu=To.default=void 0,Ty=xy(Ae()),wy=Ie,Ny=(0,Ty.default)((0,wy.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");Lu=To.default=Ny;var wo={},Ey=De;Object.defineProperty(wo,"__esModule",{value:!0});var Pu=wo.default=void 0,Dy=Ey(Ae()),Oy=Ie,Cy=(0,Dy.default)((0,Oy.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");Pu=wo.default=Cy;const Fu=(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=Fu(e.children[a],t);return n},en=(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=en((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=en(e.children[d],t);return n},zr=(e,t,n)=>{const r=en(e,t);return Fu(r,n)},Sy=(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)},Ay=({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=zr(i,t,n);return Sy(o,{...r,...!r.attributes.isDecision&&{children:[...((a=zr(e,t,n))==null?void 0:a.children)||[]]}}),i},Uu=(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=>Uu(s,n)).flat()])}),n},Yu=(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=Yu(e.children[s],t,e);return r},Iy=(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),ky=(e,t,n)=>{const r=en(e,t);return Yu(r,n)},jy=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=zr(r,t,n),o=ky(r,t,n);return Iy(o,i),r},zy=(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)},Ry=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=zr(i,t,n);return zy(o,r),i},gt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},$y=(e,t,n)=>({children:n,name:t,path:e,type:gt.appendTreeCard}),Ly=(e,t,n)=>({children:n,name:t,path:e,type:gt.replaceTreeCard}),Py=(e,t)=>({name:t,path:e,type:gt.deleteTreeCard}),Vu=()=>({type:gt.resetTree}),qu=e=>({tree:e,type:gt.setTree}),Fy=(e,t)=>{switch(t.type){case gt.appendTreeCard:{const{name:n,path:r,children:i}=t;return Ay({child:i,name:n,path:r,tree:e})}case gt.deleteTreeCard:{const{path:n,name:r}=t;return jy({name:r,path:n,tree:e})}case gt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return Ry({child:i,name:n,path:r,tree:e})}case gt.resetTree:return null;case gt.setTree:return t.tree;default:throw new Error}},No=()=>{const{dispatchSnackbar:e}=U.useContext(Ho);return{close:()=>e(Xo()),open:(r,i="success")=>e(jl(r,i))}},Bu=()=>{const{version:e}=Je();return{patchWorkflow:r=>Rt.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>Rt.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},Uy=e=>{const{postWorkflow:t}=Bu();return $t.useMutation(t,e)},Yy=e=>{const{patchWorkflow:t}=Bu();return $t.useMutation(t,e)},Vy=()=>{const{t:e}=Be.useTranslation(["snackMessage"]),{open:t}=No(),{setCurrentTree:n,currentTree:r,tree:i,dispatchTree:o}=Je(),[a,s]=U.useState(!1),{mutate:l}=Uy({onError:()=>{t(e("error.saveTree",{ns:"snackMessage"}),"error")},onSuccess:y=>{t(e("success.saveTree",{ns:"snackMessage"})),n(_=>({..._,id:y.workflow_id}))}}),{mutate:u}=Yy({onError:()=>{t(e("error.updateTree",{ns:"snackMessage"}),"error")},onSuccess:()=>{t(e("success.updateTree",{ns:"snackMessage"}))}}),c=y=>JSON.stringify(y,null,2),d=y=>`data:text/json;charset=utf-8,${encodeURIComponent(c(y))}`,f=()=>{s(!1)};return{formatJSON:c,getDownloadLink:d,handleClose:f,handleOpen:()=>{s(!0)},handleResetTree:()=>{o(Vu()),f()},handleSubmit:()=>{const{name:y,id:_}=r;if(!y){n(D=>({...D,errorName:"Champs Requis"}));return}if(i){if(_){u({id:_,label:y,workflow:i});return}l({label:y,workflow:i})}},openModal:a}},qy=({downloadedFileName:e="export",value:t})=>{const{t:n}=Be.useTranslation(),{getDownloadLink:r,handleSubmit:i,handleClose:o,handleOpen:a,handleResetTree:s,openModal:l}=Vy(),{currentTree:u,endPoint:c,tree:d}=Je(),{id:f}=u;return oe(w.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[M(w.Tooltip,{title:n("resetTree",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(w.Box,{children:M(w.Button,{disabled:!d,onClick:a,variant:"outlined",children:M(Ru,{})})})}),M(w.Divider,{orientation:"vertical",flexItem:!0}),M(w.Tooltip,{title:n("downloadJSONFile",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(w.Box,{children:M(w.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:M(Pu,{})})})}),M(w.Tooltip,{title:f?n("update",{ns:"button"}):n("save",{ns:"button"}),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:M(w.Box,{children:M(w.Button,{variant:"outlined",onClick:i,disabled:!t||!c,children:f?M($u,{}):M(Lu,{})})})}),oe(w.Dialog,{maxWidth:"xs",fullWidth:!0,open:l,onClose:o,children:[M(w.DialogTitle,{variant:"h3",children:n("resetTree",{ns:"button"})}),M(w.DialogContent,{children:M(w.DialogContentText,{children:n("resetTreeContent",{ns:"modal"})})}),oe(w.DialogActions,{children:[M(w.Button,{onClick:o,children:n("close",{ns:"button"})}),M(w.Button,{variant:"contained",color:"error",onClick:s,children:n("reset",{ns:"button"})})]})]})]})},By={box:{backgroundColor:be.background,border:`solid 1px ${be.borderBlue}`}},Qu=({children:e,description:t,open:n,onClose:r,title:i})=>M(w.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(w.Box,{sx:By.box,p:4,children:[M("h3",{children:i}),M("p",{children:t}),e]})});var Eo={},Qy=De;Object.defineProperty(Eo,"__esModule",{value:!0});var Wu=Eo.default=void 0,Wy=Qy(Ae()),Gy=Ie,Ky=(0,Wy.default)((0,Gy.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");Wu=Eo.default=Ky;const Rr={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%"}},Hy=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l},u)=>M(w.Slide,{direction:"up",ref:u,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:l,children:e}),Xy=U.forwardRef(Hy),Jy=({children:e,open:t,onClose:n,title:r})=>M(w.Dialog,{PaperProps:{sx:{backgroundColor:be.background,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Xy,children:oe(w.Box,{sx:Rr.container,children:[M(w.AppBar,{position:"sticky",elevation:0,children:M(w.Toolbar,{sx:Rr.toolbar,children:oe(w.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:Rr.toolbarBox,children:[M(w.Typography,{variant:"h5",children:M("strong",{children:r})}),M(w.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:M(Wu,{})})]})})}),M(w.Box,{sx:Rr.main,children:e})]})}),Zy={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:0}},ev=({children:e})=>M(w.Box,{p:2,role:"group",sx:Zy.box,children:e}),tv={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:0}},nv=({children:e})=>M(w.Box,{sx:tv.box,padding:2,component:"header",children:e}),rv={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:1}},iv=({children:e})=>M(w.Box,{sx:rv.box,component:"main",role:"tree",children:e}),Gu={stack:{width:"100%"}},ov=({children:e})=>{const t=U.Children.toArray(e);return oe(w.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[M(w.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(w.Stack,{sx:Gu.stack,spacing:2,children:[t[0],t[1]]})}),M(w.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(w.Stack,{sx:Gu.stack,spacing:2,children:[t[2],t[3]]})})]})},av={box:{border:`solid 1px ${be.borderBlue}`,flexGrow:1,overflow:"auto"}},sv=({children:e})=>M(w.Box,{sx:av.box,component:"aside",children:e}),uv=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=Je();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(Py(s,a)),t(null)}}},lv=({onClose:e})=>{const{t}=Be.useTranslation(),{handleSubmit:n}=uv();return M("form",{onSubmit:n,children:oe(w.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[M(w.Button,{variant:"text",onClick:e,children:t("cancel")}),M(w.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Do={},cv=De;Object.defineProperty(Do,"__esModule",{value:!0});var Ku=Do.default=void 0,fv=cv(Ae()),dv=Ie,hv=(0,fv.default)((0,dv.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");Ku=Do.default=hv;var Oo={},pv=De;Object.defineProperty(Oo,"__esModule",{value:!0});var Hu=Oo.default=void 0,gv=pv(Ae()),mv=Ie,yv=(0,gv.default)((0,mv.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");Hu=Oo.default=yv;const jn=[{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:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRepeatableDisabled:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"hidden"},{isBooleanField:!1,isDecisionField:!1,isRepeatableDisabled:!0,isRequiredDisabled:!0,type:"tree"}],vv=()=>{const{endPoint:e}=Je();return{fields:U.useCallback(()=>jn.filter(n=>!(n.type==="tree"&&!e)),[e])()}},bv=({onChange:e,value:t})=>{const{t:n}=Be.useTranslation(),{fields:r}=vv();return oe(w.FormControl,{sx:{flex:1},required:!0,children:[M(w.InputLabel,{children:n("type")}),M(w.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>M(w.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})};var Co={},Mv=De;Object.defineProperty(Co,"__esModule",{value:!0});var Xu=Co.default=void 0,_v=Mv(Ae()),xv=Ie,Tv=(0,_v.default)((0,xv.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");Xu=Co.default=Tv;const Ju=()=>({getAllWorkflow:()=>Rt.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>Rt.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),So=(e,t)=>{const{getWorkflow:n}=Ju();return $t.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},wv=e=>{const{getAllWorkflow:t}=Ju();return $t.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},Nv=e=>{const{t}=Be.useTranslation("snackMessage"),{open:n}=No(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=Je(),[a,s]=U.useState("");So(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:m,workflow:y})=>{e||(i({id:v,name:m}),o(qu(y)))}});const{data:l,isLoading:u,refetch:c}=wv({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:v})=>{const{value:m}=v;if(m==="add-new-tree"){s(""),i({name:""}),o(Vu());return}s(m)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:l,workflowsSuggestionsLoading:u}},Zu={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},el=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const{t:a}=Be.useTranslation("form"),s=U.useMemo(()=>!!i,[i]),{handleChangeTree:l,handleOnOpen:u,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=Nv(s);return oe(w.FormControl,{size:n,required:t,sx:Zu.formControl,children:[!e&&M(w.InputLabel,{children:a("tree")}),oe(w.Select,{value:s?o:f,id:"tree-select",onChange:h=>s?i==null?void 0:i(h):l(h),sx:e?Zu.select:void 0,label:a("tree"),onOpen:u,children:[d&&M(w.MenuItem,{children:M(w.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:v})=>M(w.MenuItem,{value:v,children:h},v)),r&&M(w.MenuItem,{disabled:!0,children:M(w.Box,{sx:{height:1,width:"100%"},children:M(w.Divider,{})})}),r&&oe(w.MenuItem,{value:"add-new-tree",children:[M(w.Typography,{mr:1,children:a("newTree")}),M(Xu,{color:"primary"})]})]})]})},Ev=({helperText:e,hiddenValue:t,isHiddenField:n,isTreeField:r,treeSelected:i,handleChangeTreeSelect:o,handleChangeHelperText:a,handleChangeHiddenValue:s})=>{const{t:l}=Be.useTranslation(["translation","form"]);return r?M(el,{required:!0,value:i,onChange:o}):n?M(w.TextField,{required:!0,sx:{flex:1},label:l("hiddenValue",{ns:"form"}),onChange:s,value:t}):M(w.TextField,{sx:{flex:1},label:l("helperText",{ns:"form"}),onChange:a,value:e})},tl=e=>new Set([...e]).size===e.length,Dv=(e,t,n)=>{const r=[...e,t];return tl(n?r.filter(i=>i!==n):r)},Ov=()=>{var Yr,Vr,qr,Br,Qr,Wr,Gr,nn,$n,Tt,rn,on,Ln,Kr,Pn;const e=U.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=Je(),{open:s}=No(),{t:l}=Be.useTranslation(),[u,c]=U.useState(e),[d,f]=U.useState(""),[h,v]=U.useState(""),[m,y]=U.useState(""),[_,D]=U.useState(!1),[O,x]=U.useState(!1),[g,j]=U.useState("text"),[C,I]=U.useState(""),[k,E]=U.useState(""),[$,X]=U.useState(""),[H,b]=U.useState({off:"",on:""}),[z,N]=U.useState(!1),[R,P]=U.useState(""),B=i==="edit",T=g==="tree",A=g==="hidden",V=jn.some(F=>F.type===g&&(F==null?void 0:F.isBooleanField)),K=jn.some(F=>F.type===g&&(F==null?void 0:F.isDecisionField)),q=jn.some(F=>F.type===g&&(F==null?void 0:F.isRequiredDisabled)),J=jn.some(F=>F.type===g&&(F==null?void 0:F.isRepeatableDisabled)),Q=((Vr=(Yr=r==null?void 0:r.data)==null?void 0:Yr.attributes)==null?void 0:Vr.isLeaf)??!0,W=F=>!K&&F>0,{refetch:ee,isLoading:re}=So(C,{enabled:!1,onError:()=>{s(l("error.fetchTree",{ns:"snackMessage"}),"error")}}),te=(F,de)=>{c(he=>he.map(Te=>{const{id:Ye}=Te;return F.target.dataset.id===Ye?{...Te,id:Ye,[de]:F.target.value}:{...Te}}))},Ce=F=>{v(F.target.value)},Y=F=>{y(F.target.value)},Ue=F=>{te(F,"label")},G=F=>{te(F,"value")},tt=F=>{te(F,"message")},at=F=>{X(F.target.value)},jt=F=>{var Ge;const{value:de}=F.target;if(f(F.target.value),!t||!de){P("");return}const he=B&&(r==null?void 0:r.data.name),Te=(Ge=o==null?void 0:o.at(-1))==null?void 0:Ge.path,Ye=en(t,Te),Ve=Uu(Ye);if(Dv(Ve,de,he)){P("");return}P(l("mustBeUnique",{ns:"form"}))},$r=F=>{D(F.target.checked)},tn=F=>{x(F.target.checked)},Uo=F=>{N(F.target.checked)},Yo=F=>{j(F.target.value),x(!1),D(!1),N(!1)},zn=F=>{I(F.target.value)},Vo=F=>de=>{b(he=>({...he,[F]:de.target.value}))},qo=F=>{E(F.target.value)},Lr=()=>{c(F=>{const de=Number(F[F.length-1].id),he=String(de+1);return[...F,{...e[0],id:he}]})},Pr=F=>{c(de=>de.filter(({id:he})=>F.currentTarget.value!==he))},zt=(F,de)=>{var Te,Ye,Ve;const he=(Ve=(Ye=(Te=F==null?void 0:F.children)==null?void 0:Te[de])==null?void 0:Ye.data)==null?void 0:Ve.children;return he?he.map(({name:nt,attributes:Ge,children:mt})=>({attributes:Ge,children:mt,name:nt})):[]},Bo=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:Ye},Ve)=>{const nt=`${d}:${Te}`,Ge=zt(r,Ve);return{attributes:{depth:F+1,label:Ye,value:Te,...he&&{message:he},...Ge.length===0&&{isLeaf:!0}},children:Ge,name:nt}}):[]},Fr=F=>F.map(({message:de,...he})=>({...he,...de&&{message:de}})),Ur=(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}},Rn=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)||"",Ye=(r==null?void 0:r.depth)||0,Ve=i==="edit",nt=Ye+(Ve||r===null?0:1),Ge=Bo(nt),mt=(le=o==null?void 0:o.at(-1))==null?void 0:le.path,an=o.length?`${mt}/${d}`:`/${d}`,p=((ne=(ie=r==null?void 0:r.data.attributes)==null?void 0:ie.tree)==null?void 0:ne.treeId)!==C,{data:S,isError:L}=await Ur(T,Ve,p);if(L)return;const Z={attributes:{depth:nt,label:m,type:g,...k&&{helperText:k},...(he||de)&&{messages:{...he&&{off:he},...de&&{on:de}}},...T&&{tree:{...S==null?void 0:S.workflow,treeId:C},treePath:an},...O&&{isDecision:O},...K&&!O&&{values:Fr(u)},..._&&{required:_},...$&&{step:$},...z&&{repeatable:z},...A&&{hiddenValue:h}},children:Ge,name:d};n(Ve?Ly(mt||"",Te,Z):$y(mt||null,Te,Z)),a(null)};return U.useEffect(()=>{var F,de,he,Te,Ye,Ve,nt,Ge,mt,an,p,S,L,Z,se,le,ie,ne,je;if(i==="edit"){const _e=((de=(F=r==null?void 0:r.data)==null?void 0:F.attributes)==null?void 0:de.values)||((Ye=(Te=(he=r==null?void 0:r.data)==null?void 0:he.children)==null?void 0:Te.filter(({attributes:ze})=>!(ze!=null&&ze.type)))==null?void 0:Ye.map(({attributes:ze},Dt)=>{const{label:Hr,value:st,message:yl}=ze||{};return{id:String(Dt),label:String(Hr),value:String(st),...yl&&{message:String(yl)}}}));f((r==null?void 0:r.data.name)||""),j(((Ve=r==null?void 0:r.data.attributes)==null?void 0:Ve.type)||"text"),E(((nt=r==null?void 0:r.data.attributes)==null?void 0:nt.helperText)||""),D(((Ge=r==null?void 0:r.data.attributes)==null?void 0:Ge.required)||!1),X(((mt=r==null?void 0:r.data.attributes)==null?void 0:mt.step)||""),y(((an=r==null?void 0:r.data.attributes)==null?void 0:an.label)||""),x(((p=r==null?void 0:r.data.attributes)==null?void 0:p.isDecision)||!1),c(_e!=null&&_e.length?_e:e),b({off:((L=(S=r==null?void 0:r.data.attributes)==null?void 0:S.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)||""}),I(((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),v(((je=r==null?void 0:r.data.attributes)==null?void 0:je.hiddenValue)||"")}},[(Br=(qr=r==null?void 0:r.data.attributes)==null?void 0:qr.tree)==null?void 0:Br.treeId,(Qr=r==null?void 0:r.data.attributes)==null?void 0:Qr.messages,(Wr=r==null?void 0:r.data.attributes)==null?void 0:Wr.helperText,(Gr=r==null?void 0:r.data.attributes)==null?void 0:Gr.isDecision,(nn=r==null?void 0:r.data.attributes)==null?void 0:nn.label,($n=r==null?void 0:r.data.attributes)==null?void 0:$n.required,(Tt=r==null?void 0:r.data.attributes)==null?void 0:Tt.step,(rn=r==null?void 0:r.data.attributes)==null?void 0:rn.type,(on=r==null?void 0:r.data.attributes)==null?void 0:on.values,(Ln=r==null?void 0:r.data)==null?void 0:Ln.children,r==null?void 0:r.data.name,(Kr=r==null?void 0:r.data.attributes)==null?void 0:Kr.repeatable,(Pn=r==null?void 0:r.data.attributes)==null?void 0:Pn.hiddenValue,e,i]),{getDisabledValueField:W,handleAddValue:Lr,handleChangeHelperText:qo,handleChangeHiddenValue:Ce,handleChangeIsDecisionField:tn,handleChangeLabel:Y,handleChangeMessage:Vo,handleChangeName:jt,handleChangeOptionLabel:Ue,handleChangeOptionMessage:tt,handleChangeOptionValue:G,handleChangeRepeatable:Uo,handleChangeRequired:$r,handleChangeStep:at,handleChangeTreeSelect:zn,handleChangeType:Yo,handleDeleteValue:Pr,handleSubmit:Rn,helperText:k,hiddenValue:h,isBooleanField:V,isDecision:O,isDecisionField:K,isEditModal:B,isHiddenField:A,isLeaf:Q,isRepeatableDisabled:J,isRequiredDisabled:q,isTreeField:T,isWorkflowLoading:re,label:m,messages:H,name:d,repeatable:z,required:_,step:$,treeSelected:C,type:g,uniqueNameErrorMessage:R,values:u}},nl={marginRight:"-20px !important",minWidth:"auto !important"},rl={iconButton:nl,iconButtonDelete:{...nl,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:be.background,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},Cv=({onClose:e})=>{const{t}=Be.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:v,isRequiredDisabled:m,isRepeatableDisabled:y,isTreeField:_,treeSelected:D,isWorkflowLoading:O,repeatable:x,isLeaf:g,messages:{on:j,off:C},handleChangeTreeSelect:I,handleChangeHelperText:k,handleChangeOptionMessage:E,handleChangeRequired:$,handleChangeName:X,handleChangeType:H,handleChangeIsDecisionField:b,handleChangeOptionLabel:z,handleDeleteValue:N,handleChangeOptionValue:R,handleChangeMessage:P,handleSubmit:B,handleAddValue:T,handleChangeLabel:A,handleChangeRepeatable:V,handleChangeHiddenValue:K}=Ov();return console.log(f),oe("form",{onSubmit:B,children:[oe(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(w.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:A,value:l,required:!0}),M(w.TextField,{label:t("name"),sx:{flex:1},onChange:X,value:i,error:!!o,helperText:o,required:!0})]}),oe(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(bv,{value:a,onChange:H}),M(Ev,{helperText:s,hiddenValue:u,isHiddenField:v,isTreeField:_,treeSelected:D,handleChangeTreeSelect:I,handleChangeHelperText:k,handleChangeHiddenValue:K})]}),c&&oe(w.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[M(w.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:P("on"),value:j}),M(w.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:P("off"),value:C})]}),oe(w.Stack,{paddingY:1,children:[M(w.FormGroup,{children:M(w.FormControlLabel,{disabled:y,control:M(w.Checkbox,{checked:x,onChange:V}),label:t("repeatable",{ns:"form"})})}),M(w.FormGroup,{children:M(w.FormControlLabel,{disabled:m,control:M(w.Checkbox,{checked:r,onChange:$}),label:t("required")})}),(g||f)&&M(w.FormGroup,{children:M(w.FormControlLabel,{disabled:!h,control:M(w.Checkbox,{checked:d,onChange:b}),label:t("decisionFields",{ns:"form"})})})]}),h&&oe(Fn,{children:[M("h4",{children:t("values")}),n==null?void 0:n.map(({value:q,label:J,id:Q,message:W})=>oe(w.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[M(w.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:z,value:J,inputProps:{"data-id":Q},required:!0}),M(w.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:R,value:q,inputProps:{"data-id":Q},required:!0}),M(w.TextField,{label:"Message",sx:{flex:1},onChange:E,value:W,inputProps:{"data-id":Q}}),n.length>1&&M(w.IconButton,{color:"warning",sx:rl.iconButtonDelete,value:Q,onClick:N,children:M(Hu,{})})]},Q))]}),h&&M(w.Box,{justifyContent:"flex-end",display:"flex",children:M(w.IconButton,{color:"success",sx:rl.iconButton,onClick:T,children:M(Ku,{})})}),oe(w.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[M(w.Button,{variant:"text",onClick:e,children:t("cancel")}),M(w.Button,{variant:"contained",type:"submit",disabled:!!o||O,children:O?M(w.CircularProgress,{size:14}):t("validate")})]})]})};var Ao={},Sv=De;Object.defineProperty(Ao,"__esModule",{value:!0});var il=Ao.default=void 0,Av=Sv(Ae()),Iv=Ie,kv=(0,Av.default)((0,Iv.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");il=Ao.default=kv;var Io={},jv=De;Object.defineProperty(Io,"__esModule",{value:!0});var ol=Io.default=void 0,zv=jv(Ae()),Rv=Ie,$v=(0,zv.default)((0,Rv.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");ol=Io.default=$v;var ko={},Lv=De;Object.defineProperty(ko,"__esModule",{value:!0});var al=ko.default=void 0,Pv=Lv(Ae()),Fv=Ie,Uv=(0,Pv.default)((0,Fv.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");al=ko.default=Uv;var jo={},Yv=De;Object.defineProperty(jo,"__esModule",{value:!0});var sl=jo.default=void 0,Vv=Yv(Ae()),qv=Ie,Bv=(0,Vv.default)((0,qv.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");sl=jo.default=Bv;var zo={},Qv=De;Object.defineProperty(zo,"__esModule",{value:!0});var ul=zo.default=void 0,Wv=Qv(Ae()),Gv=Ie,Kv=(0,Wv.default)((0,Gv.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");ul=zo.default=Kv;var Ro={},Hv=De;Object.defineProperty(Ro,"__esModule",{value:!0});var ll=Ro.default=void 0,Xv=Hv(Ae()),cl=Ie,Jv=(0,Xv.default)([(0,cl.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,cl.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");ll=Ro.default=Jv;var $o={},Zv=De;Object.defineProperty($o,"__esModule",{value:!0});var fl=$o.default=void 0,e1=Zv(Ae()),t1=Ie,n1=(0,e1.default)((0,t1.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");fl=$o.default=n1;var Lo={},r1=De;Object.defineProperty(Lo,"__esModule",{value:!0});var dl=Lo.default=void 0,i1=r1(Ae()),o1=Ie,a1=(0,i1.default)((0,o1.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");dl=Lo.default=a1;var Po={},s1=De;Object.defineProperty(Po,"__esModule",{value:!0});var hl=Po.default=void 0,u1=s1(Ae()),l1=Ie,c1=(0,u1.default)((0,l1.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");hl=Po.default=c1;var Fo={},f1=De;Object.defineProperty(Fo,"__esModule",{value:!0});var pl=Fo.default=void 0,d1=f1(Ae()),h1=Ie,p1=(0,d1.default)((0,h1.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");pl=Fo.default=p1;const ke={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}},g1=e=>{const t=!!e,n=e==="tree";return e==="hidden"?ke.containerHidden:n?ke.containerTree:t?ke.containerField:ke.containerValue},m1=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var j;const{t:s}=Be.useTranslation(["translation","form"]),{attributes:l}=e||{},{isRoot:u,isLeaf:c,required:d,isDecision:f,step:h,type:v,label:m,repeatable:y}=l||{},_=!!v,D=v==="tree",O=v==="hidden",x=!_,g=!u&&!c;return oe("g",{children:[M(w.GlobalStyles,{styles:{".rd3t-node svg":ke.nodeSvg}}),M(w.Box,{component:"foreignObject",height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,sx:g1(v),children:oe(w.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(w.Stack,{alignItems:"flex-end",spacing:.5,children:[_&&oe(w.Stack,{direction:"row",spacing:1,alignItems:"center",children:[h&&M(w.Tooltip,{title:`${s("step",{ns:"form"})} ${(j=e==null?void 0:e.attributes)==null?void 0:j.step}`,placement:"left",arrow:!0,children:M(w.Chip,{color:"primary",size:"small",label:h,sx:ke.stepChip})}),M(w.Typography,{variant:"subtitle2",sx:ke.title,children:M("strong",{children:m})})]}),_&&M(w.Chip,{color:"info",size:"small",label:s(`type.${v}`,{ns:"form"})}),d&&M(w.Stack,{direction:"row",spacing:.5,children:d&&M(w.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),M(w.Stack,{spacing:.5,alignItems:"flex-end",children:x&&M(w.Typography,{variant:"subtitle2",sx:ke.title,children:M("strong",{children:m})})}),oe(w.Stack,{paddingTop:.5,spacing:.5,direction:"row",children:[y&&M(w.Tooltip,{title:s("isARepeatable"),placement:"bottom",arrow:!0,children:M(fl,{style:ke.icon})}),c&&M(w.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:M(ul,{style:ke.icon})}),O&&M(w.Tooltip,{title:s("isAHidden"),placement:"bottom",arrow:!0,children:M(hl,{style:ke.icon})}),u&&M(w.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:M(dl,{style:ke.icon})}),g&&M(w.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:M(il,{style:ke.icon})}),D&&M(w.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:M(ll,{style:ke.icon})})]})]}),oe(w.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!u&&M(w.Tooltip,{title:s("remove"),arrow:!0,children:M(w.Button,{variant:"text",sx:ke.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:M(al,{})})}),!x&&M(w.Tooltip,{title:s("edit"),arrow:!0,children:M(w.Button,{variant:"text",color:"secondary",sx:ke.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:M(sl,{})})}),!f&&M(w.Tooltip,{title:s("add"),arrow:!0,children:M(w.Button,{variant:"text",color:"success",sx:ke.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:M(ol,{})})}),D&&M(w.Tooltip,{title:s("show"),arrow:!0,children:M(w.Button,{variant:"text",color:"info",sx:ke.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:M(pl,{})})})]})]})})]})},y1=U.memo(m1),gl=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=Je();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)}}},v1=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:l,handleOpenTreeModal:u}=gl();return M(y1,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:l,onOpenTreeModal:u,onDeleteChildren:a,onEditChildren:s})},ml=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>M(v1,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),b1=()=>{const{t:e}=Be.useTranslation(["modal","snackMessage"]),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=Je(),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"}},M1=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=Je(),{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}},_1=()=>{const{t:e}=Be.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=M1();return M(w.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},x1=()=>{var h,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=Je(),{handleCloseTreeModal:i}=gl(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:l,isDeleteModal:u}=b1(),c=(h=n==null?void 0:n.at(-1))==null?void 0:h.path,d=(v=n==null?void 0:n.at(-1))==null?void 0:v.label,f=e&&en(e,c);return oe(Fn,{children:[oe(ov,{children:[M(nv,{children:oe(w.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[M(Pl,{}),!!r&&oe(w.Stack,{direction:"row",alignItems:"center",spacing:2,children:[M(_1,{}),M(el,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),M(iv,{children:M(Ns,{data:e,renderCustomNodeElement:ml})}),M(sv,{children:M(Vp,{value:e})}),M(ev,{children:M(qy,{value:e})})]}),M(Qu,{open:l,onClose:a,title:o(),children:M(Cv,{onClose:a})}),M(Qu,{open:u,onClose:a,title:s(),children:M(lv,{onClose:a})}),M(Jy,{open:t,onClose:i,title:d,children:f&&M(Ns,{data:f,renderCustomNodeElement:ml})})]})},T1="0.9.0",w1=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=U.useState(Nt.currentHierarchyPointNode),[a,s]=U.useState(Nt.modalOpen),[l,u]=U.useState(Nt.treeModalOpen),[c,d]=U.useState(Nt.treePath),[f,h]=U.useReducer(Fy,n||Nt.tree),[v,m]=U.useState(r?{...Nt.currentTree,id:r}:Nt.currentTree),y=U.useMemo(()=>({currentHierarchyPointNode:i,currentTree:v,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:m,setModalOpen:s,setTreeModalOpen:u,setTreePath:d,tree:f,treeModalOpen:l,treePath:c,version:T1}),[i,a,l,c,f,v,t]);return So(v.id,{enabled:!!r,onSuccess:async _=>{_&&(m({id:_==null?void 0:_.id,name:_==null?void 0:_.label}),h(qu((_==null?void 0:_.workflow)||null)))}}),M(Ts.Provider,{value:y,children:e})},N1={close:"Close",createTree:"Create Tree",downloadJSONFile:"Download JSON File",reset:"Reset",resetTree:"Reset tree",save:"Save",update:"Update"},E1={decisionFields:"Decision fields",helperText:"Helper text",hiddenValue:"Hidden value",label:"Label",mustBeUnique:"Must be unique",newTree:"Nouvel arbre",offMessage:"Message (disable)",onMessage:"Message (enable)",repeatable:"Repeatable",staticFields:"Static fields",step:"Step",tree:"Tree",treeName:"Tree name",type:{address:"Address",checkbox:"Checkbox",date:"Date",email:"Email",file:"File",hidden:"Hidden field",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",text:"Text",time:"Time",tree:"Tree",url:"URL"},value:"Value",values:"Values"},D1={addFirstTitle:"Add a field",addTitle:"Add a field to « {{name}} »",deleteTitle:"Are you sure to delete « {{name}} »",editTitle:"Edit field « {{name}} »",resetTreeContent:"Are you sure you want reset this tree ?",saveTree:"Save a Tree"},O1={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"}},C1={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"},S1={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"},A1={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"},I1={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 vider l'arbre ? Cette action ne peut pas être annulée.",saveTree:"Enregistrer l'arbre"},k1={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"}},j1={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"};xl.use(Tl).use(Be.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:N1,form:E1,modal:D1,snackMessage:O1,translation:C1},fr:{button:S1,form:A1,modal:I1,snackMessage:k1,translation:j1}},returnNull:!1}).then();const z1=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(U.useLayoutEffect(()=>{Rt.defaults.baseURL=t,Rt.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),M($t.QueryClientProvider,{client:Sl,children:M(kl,{authToken:e,children:M(w1,{endPoint:t,initialTree:n,initialTreeId:r,children:M(Cl,{children:M($l,{children:M(x1,{})})})})})}));Se.TreePlusIcon=xs,Se.Treege=z1,Object.defineProperty(Se,Symbol.toStringTag,{value:"Module"})});