treege 0.5.4 → 0.5.5

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(ze,zn){typeof exports=="object"&&typeof module<"u"?zn(exports,require("axios"),require("react"),require("react-query"),require("design-system-tracktor"),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","axios","react","react-query","design-system-tracktor","react-dom","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],zn):(ze=typeof globalThis<"u"?globalThis:ze||self,zn(ze.treege={},ze.axios,ze.React,ze.reactQuery,ze.designSystemTracktor,ze.ReactDOM,ze.reactI18next,ze.langJson,ze.codemirrorThemeDracula,ze.CodeMirror,ze.i18n,ze.LanguageDetector))})(this,function(ze,zn,W,nn,I,Gf,et,Kf,Xf,Jf,Hf,Zf){"use strict";const rn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function ed(e){if(e&&e.__esModule)return 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 on=rn(zn),st=rn(W),Me=ed(W),td=rn(Gf),nd=rn(Jf),rd=rn(Hf),id=rn(Zf),we={backgroundPrimary:"#0a1929",borderLight:"#0f353e",borderMedium:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primaryMain:"#0ed3b4",secondaryLight:"rgba(255, 255, 255, 0.1)",secondaryMain:"#007ef6",tertiaryMain:"#0f353e"},od=I.createTheme({palette:{background:{default:we.backgroundPrimary,paper:we.backgroundPrimary},mode:"dark",primary:{main:we.primaryMain},secondary:{main:we.secondaryMain}}});var Te=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ct(e){var t=e.default;if(typeof t=="function"){var n=function(){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 _r={exports:{}},kn={};/**
1
+ (function(Ie,jn){typeof exports=="object"&&typeof module<"u"?jn(exports,require("axios"),require("react"),require("react-query"),require("design-system-tracktor"),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","axios","react","react-query","design-system-tracktor","react-dom","react-i18next","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","i18next","i18next-browser-languagedetector"],jn):(Ie=typeof globalThis<"u"?globalThis:Ie||self,jn(Ie.treege={},Ie.axios,Ie.React,Ie.reactQuery,Ie.designSystemTracktor,Ie.ReactDOM,Ie.reactI18next,Ie.langJson,Ie.codemirrorThemeDracula,Ie.CodeMirror,Ie.i18n,Ie.LanguageDetector))})(this,function(Ie,jn,W,rn,I,Gf,Ze,Kf,Xf,Jf,Hf,Zf){"use strict";const on=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function ed(e){if(e&&e.__esModule)return 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 an=on(jn),st=on(W),we=ed(W),td=on(Gf),nd=on(Jf),rd=on(Hf),id=on(Zf),Te={backgroundPrimary:"#0a1929",borderLight:"#0f353e",borderMedium:"rgba(255, 255, 255, 0.1)",grey500:"#868c95",primaryMain:"#0ed3b4",secondaryLight:"rgba(255, 255, 255, 0.1)",secondaryMain:"#007ef6",tertiaryMain:"#0f353e"},od=I.createTheme({palette:{background:{default:Te.backgroundPrimary,paper:Te.backgroundPrimary},mode:"dark",primary:{main:Te.primaryMain},secondary:{main:Te.secondaryMain}}});var Ne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function St(e){var t=e.default;if(typeof t=="function"){var n=function(){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 _r={exports:{}},$n={};/**
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 fs;function ad(){if(fs)return kn;fs=1;var e=st.default,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,u,l){var c,d={},f=null,h=null;l!==void 0&&(f=""+l),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)r.call(u,c)&&!o.hasOwnProperty(c)&&(d[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)d[c]===void 0&&(d[c]=u[c]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return kn.Fragment=n,kn.jsx=a,kn.jsxs=a,kn}var jn={};/**
9
+ */var fs;function ad(){if(fs)return $n;fs=1;var e=st.default,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,u,l){var c,d={},f=null,h=null;l!==void 0&&(f=""+l),u.key!==void 0&&(f=""+u.key),u.ref!==void 0&&(h=u.ref);for(c in u)r.call(u,c)&&!o.hasOwnProperty(c)&&(d[c]=u[c]);if(s&&s.defaultProps)for(c in u=s.defaultProps,u)d[c]===void 0&&(d[c]=u[c]);return{$$typeof:t,type:s,key:f,ref:h,props:d,_owner:i.current}}return $n.Fragment=n,$n.jsx=a,$n.jsxs=a,$n}var Rn={};/**
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 ds;function sd(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&function(){var e=st.default,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"),u=Symbol.for("react.forward_ref"),l=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,p="@@iterator";function m(_){if(_===null||typeof _!="object")return null;var j=v&&_[v]||_[p];return typeof j=="function"?j:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(_){{for(var j=arguments.length,F=new Array(j>1?j-1:0),Z=1;Z<j;Z++)F[Z-1]=arguments[Z];N("error",_,F)}}function N(_,j,F){{var Z=x.ReactDebugCurrentFrame,le=Z.getStackAddendum();le!==""&&(j+="%s",F=F.concat([le]));var xe=F.map(function(ce){return String(ce)});xe.unshift("Warning: "+j),Function.prototype.apply.call(console[_],console,xe)}}var b=!1,y=!1,S=!1,A=!1,C=!1,D;D=Symbol.for("react.module.reference");function E(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||C||_===i||_===l||_===c||A||_===h||b||y||S||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===D||_.getModuleId!==void 0))}function z(_,j,F){var Z=_.displayName;if(Z)return Z;var le=j.displayName||j.name||"";return le!==""?F+"("+le+")":F}function g(_){return _.displayName||"Context"}function w(_){if(_==null)return null;if(typeof _.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var j=_;return g(j)+".Consumer";case a:var F=_;return g(F._context)+".Provider";case u:return z(_,_.render,"ForwardRef");case d:var Z=_.displayName||null;return Z!==null?Z:w(_.type)||"Memo";case f:{var le=_,xe=le._payload,ce=le._init;try{return w(ce(xe))}catch{return null}}}return null}var k=Object.assign,R=0,L,B,V,te,O,$,G;function K(){}K.__reactDisabledLog=!0;function U(){{if(R===0){L=console.log,B=console.info,V=console.warn,te=console.error,O=console.group,$=console.groupCollapsed,G=console.groupEnd;var _={configurable:!0,enumerable:!0,value:K,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}R++}}function J(){{if(R--,R===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},_,{value:L}),info:k({},_,{value:B}),warn:k({},_,{value:V}),error:k({},_,{value:te}),group:k({},_,{value:O}),groupCollapsed:k({},_,{value:$}),groupEnd:k({},_,{value:G})})}R<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=x.ReactCurrentDispatcher,H;function ee(_,j,F){{if(H===void 0)try{throw Error()}catch(le){var Z=le.stack.trim().match(/\n( *(at )?)/);H=Z&&Z[1]||""}return`
18
- `+H+_}}var re=!1,ne;{var Se=typeof WeakMap=="function"?WeakMap:Map;ne=new Se}function P(_,j){if(!_||re)return"";{var F=ne.get(_);if(F!==void 0)return F}var Z;re=!0;var le=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var xe;xe=X.current,X.current=null,U();try{if(j){var ce=function(){throw Error()};if(Object.defineProperty(ce.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ce,[])}catch(Ot){Z=Ot}Reflect.construct(_,[],ce)}else{try{ce.call()}catch(Ot){Z=Ot}_.call(ce.prototype)}}else{try{throw Error()}catch(Ot){Z=Ot}_()}}catch(Ot){if(Ot&&Z&&typeof Ot.stack=="string"){for(var se=Ot.stack.split(`
19
- `),Ke=Z.stack.split(`
20
- `),Oe=se.length-1,Ae=Ke.length-1;Oe>=1&&Ae>=0&&se[Oe]!==Ke[Ae];)Ae--;for(;Oe>=1&&Ae>=0;Oe--,Ae--)if(se[Oe]!==Ke[Ae]){if(Oe!==1||Ae!==1)do if(Oe--,Ae--,Ae<0||se[Oe]!==Ke[Ae]){var ct=`
21
- `+se[Oe].replace(" at new "," at ");return _.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",_.displayName)),typeof _=="function"&&ne.set(_,ct),ct}while(Oe>=1&&Ae>=0);break}}}finally{re=!1,X.current=xe,J(),Error.prepareStackTrace=le}var In=_?_.displayName||_.name:"",Wf=In?ee(In):"";return typeof _=="function"&&ne.set(_,Wf),Wf}function Ye(_,j,F){return P(_,!1)}function Q(_){var j=_.prototype;return!!(j&&j.isReactComponent)}function at(_,j,F){if(_==null)return"";if(typeof _=="function")return P(_,Q(_));if(typeof _=="string")return ee(_);switch(_){case l:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case u:return Ye(_.render);case d:return at(_.type,j,F);case f:{var Z=_,le=Z._payload,xe=Z._init;try{return at(xe(le),j,F)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,Jt={},Ni=x.ReactDebugCurrentFrame;function Cn(_){if(_){var j=_._owner,F=at(_.type,_._source,j?j.type:null);Ni.setExtraStackFrame(F)}else Ni.setExtraStackFrame(null)}function ss(_,j,F,Z,le){{var xe=Function.call.bind(pt);for(var ce in _)if(xe(_,ce)){var se=void 0;try{if(typeof _[ce]!="function"){var Ke=Error((Z||"React class")+": "+F+" type `"+ce+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ce]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ke.name="Invariant Violation",Ke}se=_[ce](j,ce,Z,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Oe){se=Oe}se&&!(se instanceof Error)&&(Cn(le),M("%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",F,ce,typeof se),Cn(null)),se instanceof Error&&!(se.message in Jt)&&(Jt[se.message]=!0,Cn(le),M("Failed %s type: %s",F,se.message),Cn(null))}}}var us=Array.isArray;function hr(_){return us(_)}function ls(_){{var j=typeof Symbol=="function"&&Symbol.toStringTag,F=j&&_[Symbol.toStringTag]||_.constructor.name||"Object";return F}}function cs(_){try{return pr(_),!1}catch{return!0}}function pr(_){return""+_}function gr(_){if(cs(_))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ls(_)),pr(_)}var Ut=x.ReactCurrentOwner,Ei={key:!0,ref:!0,__self:!0,__source:!0},mr,vr,Sn;Sn={};function Di(_){if(pt.call(_,"ref")){var j=Object.getOwnPropertyDescriptor(_,"ref").get;if(j&&j.isReactWarning)return!1}return _.ref!==void 0}function Oi(_){if(pt.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function Ci(_,j){if(typeof _.ref=="string"&&Ut.current&&j&&Ut.current.stateNode!==j){var F=w(Ut.current.type);Sn[F]||(M('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',w(Ut.current.type),_.ref),Sn[F]=!0)}}function Si(_,j){{var F=function(){mr||(mr=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};F.isReactWarning=!0,Object.defineProperty(_,"key",{get:F,configurable:!0})}}function Ai(_,j){{var F=function(){vr||(vr=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};F.isReactWarning=!0,Object.defineProperty(_,"ref",{get:F,configurable:!0})}}var Y=function(_,j,F,Z,le,xe,ce){var se={$$typeof:t,type:_,key:j,ref:F,props:ce,_owner:xe};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:le}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function be(_,j,F,Z,le){{var xe,ce={},se=null,Ke=null;F!==void 0&&(gr(F),se=""+F),Oi(j)&&(gr(j.key),se=""+j.key),Di(j)&&(Ke=j.ref,Ci(j,le));for(xe in j)pt.call(j,xe)&&!Ei.hasOwnProperty(xe)&&(ce[xe]=j[xe]);if(_&&_.defaultProps){var Oe=_.defaultProps;for(xe in Oe)ce[xe]===void 0&&(ce[xe]=Oe[xe])}if(se||Ke){var Ae=typeof _=="function"?_.displayName||_.name||"Unknown":_;se&&Si(ce,Ae),Ke&&Ai(ce,Ae)}return Y(_,se,Ke,le,Z,Ut.current,ce)}}var ye=x.ReactCurrentOwner,Ee=x.ReactDebugCurrentFrame;function De(_){if(_){var j=_._owner,F=at(_.type,_._source,j?j.type:null);Ee.setExtraStackFrame(F)}else Ee.setExtraStackFrame(null)}var qe;qe=!1;function Ze(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Ge(){{if(ye.current){var _=w(ye.current.type);if(_)return`
17
+ */var ds;function sd(){return ds||(ds=1,process.env.NODE_ENV!=="production"&&function(){var e=st.default,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"),u=Symbol.for("react.forward_ref"),l=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,p="@@iterator";function m(_){if(_===null||typeof _!="object")return null;var j=v&&_[v]||_[p];return typeof j=="function"?j:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(_){{for(var j=arguments.length,F=new Array(j>1?j-1:0),Z=1;Z<j;Z++)F[Z-1]=arguments[Z];N("error",_,F)}}function N(_,j,F){{var Z=x.ReactDebugCurrentFrame,ce=Z.getStackAddendum();ce!==""&&(j+="%s",F=F.concat([ce]));var be=F.map(function(le){return String(le)});be.unshift("Warning: "+j),Function.prototype.apply.call(console[_],console,be)}}var b=!1,y=!1,S=!1,A=!1,C=!1,D;D=Symbol.for("react.module.reference");function E(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||C||_===i||_===l||_===c||A||_===h||b||y||S||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===D||_.getModuleId!==void 0))}function z(_,j,F){var Z=_.displayName;if(Z)return Z;var ce=j.displayName||j.name||"";return ce!==""?F+"("+ce+")":F}function g(_){return _.displayName||"Context"}function w(_){if(_==null)return null;if(typeof _.tag=="number"&&M("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof _=="function")return _.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case r:return"Fragment";case n:return"Portal";case o:return"Profiler";case i:return"StrictMode";case l:return"Suspense";case c:return"SuspenseList"}if(typeof _=="object")switch(_.$$typeof){case s:var j=_;return g(j)+".Consumer";case a:var F=_;return g(F._context)+".Provider";case u:return z(_,_.render,"ForwardRef");case d:var Z=_.displayName||null;return Z!==null?Z:w(_.type)||"Memo";case f:{var ce=_,be=ce._payload,le=ce._init;try{return w(le(be))}catch{return null}}}return null}var k=Object.assign,R=0,L,B,V,te,O,$,G;function K(){}K.__reactDisabledLog=!0;function Y(){{if(R===0){L=console.log,B=console.info,V=console.warn,te=console.error,O=console.group,$=console.groupCollapsed,G=console.groupEnd;var _={configurable:!0,enumerable:!0,value:K,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}R++}}function J(){{if(R--,R===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},_,{value:L}),info:k({},_,{value:B}),warn:k({},_,{value:V}),error:k({},_,{value:te}),group:k({},_,{value:O}),groupCollapsed:k({},_,{value:$}),groupEnd:k({},_,{value:G})})}R<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var X=x.ReactCurrentDispatcher,H;function ee(_,j,F){{if(H===void 0)try{throw Error()}catch(ce){var Z=ce.stack.trim().match(/\n( *(at )?)/);H=Z&&Z[1]||""}return`
18
+ `+H+_}}var re=!1,ne;{var Ce=typeof WeakMap=="function"?WeakMap:Map;ne=new Ce}function P(_,j){if(!_||re)return"";{var F=ne.get(_);if(F!==void 0)return F}var Z;re=!0;var ce=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var be;be=X.current,X.current=null,Y();try{if(j){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(Ct){Z=Ct}Reflect.construct(_,[],le)}else{try{le.call()}catch(Ct){Z=Ct}_.call(le.prototype)}}else{try{throw Error()}catch(Ct){Z=Ct}_()}}catch(Ct){if(Ct&&Z&&typeof Ct.stack=="string"){for(var se=Ct.stack.split(`
19
+ `),Ge=Z.stack.split(`
20
+ `),De=se.length-1,Se=Ge.length-1;De>=1&&Se>=0&&se[De]!==Ge[Se];)Se--;for(;De>=1&&Se>=0;De--,Se--)if(se[De]!==Ge[Se]){if(De!==1||Se!==1)do if(De--,Se--,Se<0||se[De]!==Ge[Se]){var ct=`
21
+ `+se[De].replace(" at new "," at ");return _.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",_.displayName)),typeof _=="function"&&ne.set(_,ct),ct}while(De>=1&&Se>=0);break}}}finally{re=!1,X.current=be,J(),Error.prepareStackTrace=ce}var kn=_?_.displayName||_.name:"",Wf=kn?ee(kn):"";return typeof _=="function"&&ne.set(_,Wf),Wf}function qe(_,j,F){return P(_,!1)}function Q(_){var j=_.prototype;return!!(j&&j.isReactComponent)}function ot(_,j,F){if(_==null)return"";if(typeof _=="function")return P(_,Q(_));if(typeof _=="string")return ee(_);switch(_){case l:return ee("Suspense");case c:return ee("SuspenseList")}if(typeof _=="object")switch(_.$$typeof){case u:return qe(_.render);case d:return ot(_.type,j,F);case f:{var Z=_,ce=Z._payload,be=Z._init;try{return ot(be(ce),j,F)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,Jt={},Ni=x.ReactDebugCurrentFrame;function Sn(_){if(_){var j=_._owner,F=ot(_.type,_._source,j?j.type:null);Ni.setExtraStackFrame(F)}else Ni.setExtraStackFrame(null)}function ss(_,j,F,Z,ce){{var be=Function.call.bind(pt);for(var le in _)if(be(_,le)){var se=void 0;try{if(typeof _[le]!="function"){var Ge=Error((Z||"React class")+": "+F+" type `"+le+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[le]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ge.name="Invariant Violation",Ge}se=_[le](j,le,Z,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(De){se=De}se&&!(se instanceof Error)&&(Sn(ce),M("%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",F,le,typeof se),Sn(null)),se instanceof Error&&!(se.message in Jt)&&(Jt[se.message]=!0,Sn(ce),M("Failed %s type: %s",F,se.message),Sn(null))}}}var us=Array.isArray;function gr(_){return us(_)}function ls(_){{var j=typeof Symbol=="function"&&Symbol.toStringTag,F=j&&_[Symbol.toStringTag]||_.constructor.name||"Object";return F}}function cs(_){try{return Ei(_),!1}catch{return!0}}function Ei(_){return""+_}function mr(_){if(cs(_))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ls(_)),Ei(_)}var Yt=x.ReactCurrentOwner,Di={key:!0,ref:!0,__self:!0,__source:!0},vr,yr,An;An={};function Oi(_){if(pt.call(_,"ref")){var j=Object.getOwnPropertyDescriptor(_,"ref").get;if(j&&j.isReactWarning)return!1}return _.ref!==void 0}function Ci(_){if(pt.call(_,"key")){var j=Object.getOwnPropertyDescriptor(_,"key").get;if(j&&j.isReactWarning)return!1}return _.key!==void 0}function Si(_,j){if(typeof _.ref=="string"&&Yt.current&&j&&Yt.current.stateNode!==j){var F=w(Yt.current.type);An[F]||(M('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',w(Yt.current.type),_.ref),An[F]=!0)}}function Ai(_,j){{var F=function(){vr||(vr=!0,M("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};F.isReactWarning=!0,Object.defineProperty(_,"key",{get:F,configurable:!0})}}function Ii(_,j){{var F=function(){yr||(yr=!0,M("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",j))};F.isReactWarning=!0,Object.defineProperty(_,"ref",{get:F,configurable:!0})}}var zi=function(_,j,F,Z,ce,be,le){var se={$$typeof:t,type:_,key:j,ref:F,props:le,_owner:be};return se._store={},Object.defineProperty(se._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(se,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(se,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ce}),Object.freeze&&(Object.freeze(se.props),Object.freeze(se)),se};function U(_,j,F,Z,ce){{var be,le={},se=null,Ge=null;F!==void 0&&(mr(F),se=""+F),Ci(j)&&(mr(j.key),se=""+j.key),Oi(j)&&(Ge=j.ref,Si(j,ce));for(be in j)pt.call(j,be)&&!Di.hasOwnProperty(be)&&(le[be]=j[be]);if(_&&_.defaultProps){var De=_.defaultProps;for(be in De)le[be]===void 0&&(le[be]=De[be])}if(se||Ge){var Se=typeof _=="function"?_.displayName||_.name||"Unknown":_;se&&Ai(le,Se),Ge&&Ii(le,Se)}return zi(_,se,Ge,ce,Z,Yt.current,le)}}var fe=x.ReactCurrentOwner,pe=x.ReactDebugCurrentFrame;function xe(_){if(_){var j=_._owner,F=ot(_.type,_._source,j?j.type:null);pe.setExtraStackFrame(F)}else pe.setExtraStackFrame(null)}var ze;ze=!1;function je(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function at(){{if(fe.current){var _=w(fe.current.type);if(_)return`
22
22
 
23
- Check the render method of \``+_+"`."}return""}}function Mt(_){{if(_!==void 0){var j=_.fileName.replace(/^.*[\\\/]/,""),F=_.lineNumber;return`
23
+ Check the render method of \``+_+"`."}return""}}function He(_){{if(_!==void 0){var j=_.fileName.replace(/^.*[\\\/]/,""),F=_.lineNumber;return`
24
24
 
25
- Check your code at `+j+":"+F+"."}return""}}var Ht={};function Yt(_){{var j=Ge();if(!j){var F=typeof _=="string"?_:_.displayName||_.name;F&&(j=`
25
+ Check your code at `+j+":"+F+"."}return""}}var gt={};function In(_){{var j=at();if(!j){var F=typeof _=="string"?_:_.displayName||_.name;F&&(j=`
26
26
 
27
- Check the top-level render call using <`+F+">.")}return j}}function Zt(_,j){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var F=Yt(j);if(Ht[F])return;Ht[F]=!0;var Z="";_&&_._owner&&_._owner!==ye.current&&(Z=" It was passed a child from "+w(_._owner.type)+"."),De(_),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Z),De(null)}}function qt(_,j){{if(typeof _!="object")return;if(hr(_))for(var F=0;F<_.length;F++){var Z=_[F];Ze(Z)&&Zt(Z,j)}else if(Ze(_))_._store&&(_._store.validated=!0);else if(_){var le=m(_);if(typeof le=="function"&&le!==_.entries)for(var xe=le.call(_),ce;!(ce=xe.next()).done;)Ze(ce.value)&&Zt(ce.value,j)}}}function en(_){{var j=_.type;if(j==null||typeof j=="string")return;var F;if(typeof j=="function")F=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===d))F=j.propTypes;else return;if(F){var Z=w(j);ss(F,_.props,"prop",Z,_)}else if(j.PropTypes!==void 0&&!qe){qe=!0;var le=w(j);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",le||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function tn(_){{for(var j=Object.keys(_.props),F=0;F<j.length;F++){var Z=j[F];if(Z!=="children"&&Z!=="key"){De(_),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),De(null);break}}_.ref!==null&&(De(_),M("Invalid attribute `ref` supplied to `React.Fragment`."),De(null))}}function yr(_,j,F,Z,le,xe){{var ce=E(_);if(!ce){var se="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(se+=" 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 Ke=Mt(le);Ke?se+=Ke:se+=Ge();var Oe;_===null?Oe="null":hr(_)?Oe="array":_!==void 0&&_.$$typeof===t?(Oe="<"+(w(_.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):Oe=typeof _,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Oe,se)}var Ae=be(_,j,F,le,xe);if(Ae==null)return Ae;if(ce){var ct=j.children;if(ct!==void 0)if(Z)if(hr(ct)){for(var In=0;In<ct.length;In++)qt(ct[In],_);Object.freeze&&Object.freeze(ct)}else M("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 qt(ct,_)}return _===r?tn(Ae):en(Ae),Ae}}function Ii(_,j,F){return yr(_,j,F,!0)}function zi(_,j,F){return yr(_,j,F,!1)}var Qf=zi,An=Ii;jn.Fragment=r,jn.jsx=Qf,jn.jsxs=An}()),jn}(function(e){process.env.NODE_ENV==="production"?e.exports=ad():e.exports=sd()})(_r);const br=_r.exports.Fragment,T=_r.exports.jsx,oe=_r.exports.jsxs,ud=Object.freeze(Object.defineProperty({__proto__:null,Fragment:br,jsx:T,jsxs:oe},Symbol.toStringTag,{value:"Module"})),ld=({children:e})=>oe(br,{children:[T(I.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%"}}}),T(I.ThemeProvider,{theme:od,children:e})]}),cd=new nn.QueryClient({defaultOptions:{queries:{retry:!1}}}),fd={authToken:void 0},dd=W.createContext(fd),hd=({children:e,authToken:t})=>{const n=W.useMemo(()=>({authToken:t}),[t]);return T(dd.Provider,{value:n,children:e})},hs={dispatchSnackbar:()=>null,snackbar:{open:!1}},ps=W.createContext(hs),xr={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},pd=(e,t="success")=>({message:e,severity:t,type:xr.openSnackbar}),gs=()=>({type:xr.closeSnackbar}),gd=(e,t)=>{switch(t.type){case xr.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case xr.closeSnackbar:return{...e,open:!1};default:throw new Error}},md={snackbarAlert:{width:"100%"}},vd=({children:e})=>{const[t,n]=W.useReducer(gd,hs.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(gs()),u=W.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(ps.Provider,{value:u,children:[T(I.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:T(I.Alert,{onClose:s,severity:o,sx:md.snackbarAlert,variant:"filled",children:r})}),e]})},yd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",_d=()=>T("img",{src:yd,alt:"Treege",height:30,width:"auto"});var ms={},ki={};function bd(e,t){return e.parent===t.parent?1:2}function xd(e){return e.reduce(Md,0)/e.length}function Md(e,t){return e+t.x}function wd(e){return 1+e.reduce(Td,0)}function Td(e,t){return Math.max(e,t.y)}function Nd(e){for(var t;t=e.children;)e=t[0];return e}function Ed(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Dd(){var e=bd,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=xd(h),f.y=wd(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=Nd(o),l=Ed(o),c=u.x-e(u,l)/2,d=l.x+e(l,u)/2;return o.eachAfter(r?function(f){f.x=(f.x-o.x)*t,f.y=(o.y-f.y)*n}:function(f){f.x=(f.x-c)/(d-c)*t,f.y=(1-(o.y?f.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function Od(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 Cd(){return this.eachAfter(Od)}function Sd(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 Ad(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 Id(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 zd(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 kd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function jd(e){for(var t=this,n=$d(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 $d(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 Rd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Ld(){var e=[];return this.each(function(t){e.push(t)}),e}function Pd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Fd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function ji(e,t){var n=new an(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=Yd);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(l=s.length))for(i.children=new Array(l),u=l-1;u>=0;--u)o.push(a=i.children[u]=new an(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(vs)}function Ud(){return ji(this).eachBefore(qd)}function Yd(e){return e.children}function qd(e){e.data=e.data.data}function vs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function an(e){this.data=e,this.depth=this.height=0,this.parent=null}an.prototype=ji.prototype={constructor:an,count:Cd,each:Sd,eachAfter:Id,eachBefore:Ad,sum:zd,sort:kd,path:jd,ancestors:Rd,descendants:Ld,leaves:Pd,links:Fd,copy:Ud};var Vd=Array.prototype.slice;function Bd(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function ys(e){for(var t=0,n=(e=Bd(Vd.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&_s(o,i)?++t:(o=Wd(r=Qd(r,i)),t=0);return o}function Qd(e,t){var n,r;if($i(t,e))return[t];for(n=0;n<e.length;++n)if(Mr(t,e[n])&&$i($n(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Mr($n(e[n],e[r]),t)&&Mr($n(e[n],t),e[r])&&Mr($n(e[r],t),e[n])&&$i(bs(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Mr(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function _s(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function $i(e,t){for(var n=0;n<t.length;++n)if(!_s(e,t[n]))return!1;return!0}function Wd(e){switch(e.length){case 1:return Gd(e[0]);case 2:return $n(e[0],e[1]);case 3:return bs(e[0],e[1],e[2])}}function Gd(e){return{x:e.x,y:e.y,r:e.r}}function $n(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,d=Math.sqrt(u*u+l*l);return{x:(n+o+u/d*c)/2,y:(r+a+l/d*c)/2,r:(d+i+s)/2}}function bs(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,d=n.r,f=r-a,h=r-l,v=i-s,p=i-c,m=u-o,x=d-o,M=r*r+i*i-o*o,N=M-a*a-s*s+u*u,b=M-l*l-c*c+d*d,y=h*v-f*p,S=(v*b-p*N)/(y*2)-r,A=(p*m-v*x)/y,C=(h*N-f*b)/(y*2)-i,D=(f*x-h*m)/y,E=A*A+D*D-1,z=2*(o+S*A+C*D),g=S*S+C*C-o*o,w=-(E?(z+Math.sqrt(z*z-4*E*g))/(2*E):g/z);return{x:r+S+A*w,y:i+C+D*w,r:w}}function xs(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function Ms(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ws(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function wr(e){this._=e,this.next=null,this.previous=null}function Ts(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,d;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;xs(n,t,r=e[2]),t=new wr(t),n=new wr(n),r=new wr(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){xs(t._,n._,r=e[s]),r=new wr(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(Ms(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(Ms(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}d+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=ws(t);(r=r.next)!==n;)(a=ws(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=ys(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Kd(e){return Ts(e),e}function Xd(e){return e==null?null:Tr(e)}function Tr(e){if(typeof e!="function")throw new Error;return e}function Vt(){return 0}function sn(e){return function(){return e}}function Jd(e){return Math.sqrt(e.value)}function Hd(){var e=null,t=1,n=1,r=Vt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ns(e)).eachAfter(Ri(r,.5)).eachBefore(Es(1)):o.eachBefore(Ns(Jd)).eachAfter(Ri(Vt,1)).eachAfter(Ri(r,o.r/Math.min(t,n))).eachBefore(Es(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Xd(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:sn(+o),i):r},i}function Ns(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Ri(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=Ts(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function Es(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Ds(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Rn(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function Zd(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(Ds),a}function o(a,s){return function(u){u.children&&Rn(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,d=u.x1-n,f=u.y1-n;d<l&&(l=d=(l+d)/2),f<c&&(c=f=(c+f)/2),u.x0=l,u.y0=c,u.x1=d,u.y1=f}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Os="$",eh={depth:-1},Cs={};function th(e){return e.id}function nh(e){return e.parentId}function rh(){var e=th,t=nh;function n(r){var i,o,a=r.length,s,u,l,c=new Array(a),d,f,h={};for(o=0;o<a;++o)i=r[o],l=c[o]=new an(i),(d=e(i,o,r))!=null&&(d+="")&&(f=Os+(l.id=d),h[f]=f in h?Cs:l);for(o=0;o<a;++o)if(l=c[o],d=t(r[o],o,r),d==null||!(d+="")){if(s)throw new Error("multiple roots");s=l}else{if(u=h[Os+d],!u)throw new Error("missing: "+d);if(u===Cs)throw new Error("ambiguous: "+d);u.children?u.children.push(l):u.children=[l],l.parent=u}if(!s)throw new Error("no root");if(s.parent=eh,s.eachBefore(function(v){v.depth=v.parent.depth+1,--a}).eachBefore(vs),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=Tr(r),n):e},n.parentId=function(r){return arguments.length?(t=Tr(r),n):t},n}function ih(e,t){return e.parent===t.parent?1:2}function Li(e){var t=e.children;return t?t[0]:e.t}function Pi(e){var t=e.children;return t?t[t.length-1]:e.t}function oh(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 ah(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 sh(e,t,n){return e.a.parent===t.parent?e.a:n}function Nr(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}Nr.prototype=Object.create(an.prototype);function uh(e){for(var t=new Nr(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 Nr(o[a],a)),i.parent=n;return(t.parent=new Nr(null,0)).children=[t],t}function lh(){var e=ih,t=1,n=1,r=null;function i(l){var c=uh(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var d=l,f=l,h=l;l.eachBefore(function(M){M.x<d.x&&(d=M),M.x>f.x&&(f=M),M.depth>h.depth&&(h=M)});var v=d===f?1:e(d,f)/2,p=v-d.x,m=t/(f.x+v+p),x=n/(h.depth||1);l.eachBefore(function(M){M.x=(M.x+p)*m,M.y=M.depth*x})}return l}function o(l){var c=l.children,d=l.parent.children,f=l.i?d[l.i-1]:null;if(c){ah(l);var h=(c[0].z+c[c.length-1].z)/2;f?(l.z=f.z+e(l._,f._),l.m=l.z-h):l.z=h}else f&&(l.z=f.z+e(l._,f._));l.parent.A=s(l,f,l.parent.A||d[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,d){if(c){for(var f=l,h=l,v=c,p=f.parent.children[0],m=f.m,x=h.m,M=v.m,N=p.m,b;v=Pi(v),f=Li(f),v&&f;)p=Li(p),h=Pi(h),h.a=l,b=v.z+M-f.z-m+e(v._,f._),b>0&&(oh(sh(v,l,d),l,b),m+=b,x+=b),M+=v.m,m+=f.m,N+=p.m,x+=h.m;v&&!Pi(h)&&(h.t=v,h.m+=M-x),f&&!Li(p)&&(p.t=f,p.m+=m-N,d=l)}return d}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function Er(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var Ss=(1+Math.sqrt(5))/2;function As(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,v,p=t.value,m,x,M,N,b,y,S;c<f;){h=i-n,v=o-r;do m=s[d++].value;while(!m&&d<f);for(x=M=m,y=Math.max(v/h,h/v)/(p*e),S=m*m*y,b=Math.max(M/S,S/x);d<f;++d){if(m+=l=s[d].value,l<x&&(x=l),l>M&&(M=l),S=m*m*y,N=Math.max(M/S,S/x),N>b){m-=l;break}b=N}a.push(u={value:m,dice:h<v,children:s.slice(c,d)}),u.dice?Rn(u,n,r,i,p?r+=v*m/p:o):Er(u,n,r,p?n+=h*m/p:i,o),p-=m,c=d}return a}const Is=function e(t){function n(r,i,o,a,s){As(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Ss);function ch(){var e=Is,t=!1,n=1,r=1,i=[0],o=Vt,a=Vt,s=Vt,u=Vt,l=Vt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(Ds),f}function d(f){var h=i[f.depth],v=f.x0+h,p=f.y0+h,m=f.x1-h,x=f.y1-h;m<v&&(v=m=(v+m)/2),x<p&&(p=x=(p+x)/2),f.x0=v,f.y0=p,f.x1=m,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,v+=l(f)-h,p+=a(f)-h,m-=s(f)-h,x-=u(f)-h,m<v&&(v=m=(v+m)/2),x<p&&(p=x=(p+x)/2),e(f,v,p,m,x))}return c.round=function(f){return arguments.length?(t=!!f,c):t},c.size=function(f){return arguments.length?(n=+f[0],r=+f[1],c):[n,r]},c.tile=function(f){return arguments.length?(e=Tr(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:sn(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:sn(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:sn(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:sn(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:sn(+f),c):l},c}function fh(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(d,f,h,v,p,m,x){if(d>=f-1){var M=o[d];M.x0=v,M.y0=p,M.x1=m,M.y1=x;return}for(var N=l[d],b=h/2+N,y=d+1,S=f-1;y<S;){var A=y+S>>>1;l[A]<b?y=A+1:S=A}b-l[y-1]<l[y]-b&&d+1<y&&--y;var C=l[y]-N,D=h-C;if(m-v>x-p){var E=(v*D+m*C)/h;c(d,y,C,v,p,E,x),c(y,f,D,E,p,m,x)}else{var z=(p*D+x*C)/h;c(d,y,C,v,p,m,z),c(y,f,D,v,z,m,x)}}}function dh(e,t,n,r,i){(e.depth&1?Er:Rn)(e,t,n,r,i)}const hh=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,d,f=-1,h,v=u.length,p=r.value;++f<v;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?Rn(l,i,o,a,o+=(s-o)*l.value/p):Er(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=As(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Ss),ph=Ct(Object.freeze(Object.defineProperty({__proto__:null,cluster:Dd,hierarchy:ji,pack:Hd,packSiblings:Kd,packEnclose:ys,partition:Zd,stratify:rh,tree:lh,treemap:ch,treemapBinary:fh,treemapDice:Rn,treemapSlice:Er,treemapSliceDice:dh,treemapSquarify:Is,treemapResquarify:hh},Symbol.toStringTag,{value:"Module"})));var Fi="http://www.w3.org/1999/xhtml";const Ui={svg:"http://www.w3.org/2000/svg",xhtml:Fi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ln(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ui.hasOwnProperty(t)?{space:Ui[t],local:e}:e}function gh(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fi&&t.documentElement.namespaceURI===Fi?t.createElement(e):t.createElementNS(n,e)}}function mh(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dr(e){var t=Ln(e);return(t.local?mh:gh)(t)}function vh(){}function Or(e){return e==null?vh:function(){return this.querySelector(e)}}function yh(e){typeof e!="function"&&(e=Or(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),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new Ve(r,this._parents)}function _h(){return[]}function Yi(e){return e==null?_h:function(){return this.querySelectorAll(e)}}function bh(e){typeof e!="function"&&(e=Yi(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new Ve(r,i)}function qi(e){return function(){return this.matches(e)}}function xh(e){typeof e!="function"&&(e=qi(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]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Ve(r,this._parents)}function zs(e){return new Array(e.length)}function Mh(){return new Ve(this._enter||this._groups.map(zs),this._parents)}function Cr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Cr.prototype={constructor:Cr,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 wh(e){return function(){return e}}var ks="$";function Th(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Cr(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function Nh(e,t,n,r,i,o,a){var s,u,l={},c=t.length,d=o.length,f=new Array(c),h;for(s=0;s<c;++s)(u=t[s])&&(f[s]=h=ks+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=ks+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Cr(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function Eh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(S){h[++l]=S}),h;var n=t?Nh:Th,r=this._parents,i=this._groups;typeof e!="function"&&(e=wh(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],d=i[l],f=d.length,h=e.call(c,c&&c.__data__,l,r),v=h.length,p=s[l]=new Array(v),m=a[l]=new Array(v),x=u[l]=new Array(f);n(c,d,p,m,x,h,t);for(var M=0,N=0,b,y;M<v;++M)if(b=p[M]){for(M>=N&&(N=M+1);!(y=m[N])&&++N<v;);b._next=y||null}}return a=new Ve(a,r),a._enter=s,a._exit=u,a}function Dh(){return new Ve(this._exit||this._groups.map(zs),this._parents)}function Oh(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Ch(e){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 u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Ve(a,this._parents)}function Sh(){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 Ah(e){e||(e=Ih);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,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new Ve(i,this._parents).order()}function Ih(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zh(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kh(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function jh(){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 $h(){var e=0;return this.each(function(){++e}),e}function Rh(){return!this.node()}function Lh(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 Ph(e){return function(){this.removeAttribute(e)}}function Fh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uh(e,t){return function(){this.setAttribute(e,t)}}function Yh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Vh(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 Bh(e,t){var n=Ln(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?Fh:Ph:typeof t=="function"?n.local?Vh:qh:n.local?Yh:Uh)(n,t))}function Vi(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Qh(e){return function(){this.style.removeProperty(e)}}function Wh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Gh(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Kh(e,t,n){return arguments.length>1?this.each((t==null?Qh:typeof t=="function"?Gh:Wh)(e,t,n==null?"":n)):Bt(this.node(),e)}function Bt(e,t){return e.style.getPropertyValue(t)||Vi(e).getComputedStyle(e,null).getPropertyValue(t)}function Xh(e){return function(){delete this[e]}}function Jh(e,t){return function(){this[e]=t}}function Hh(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Zh(e,t){return arguments.length>1?this.each((t==null?Xh:typeof t=="function"?Hh:Jh)(e,t)):this.node()[e]}function js(e){return e.trim().split(/^|\s+/)}function Bi(e){return e.classList||new $s(e)}function $s(e){this._node=e,this._names=js(e.getAttribute("class")||"")}$s.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 Rs(e,t){for(var n=Bi(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Ls(e,t){for(var n=Bi(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ep(e){return function(){Rs(this,e)}}function tp(e){return function(){Ls(this,e)}}function np(e,t){return function(){(t.apply(this,arguments)?Rs:Ls)(this,e)}}function rp(e,t){var n=js(e+"");if(arguments.length<2){for(var r=Bi(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?np:t?ep:tp)(n,t))}function ip(){this.textContent=""}function op(e){return function(){this.textContent=e}}function ap(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function sp(e){return arguments.length?this.each(e==null?ip:(typeof e=="function"?ap:op)(e)):this.node().textContent}function up(){this.innerHTML=""}function lp(e){return function(){this.innerHTML=e}}function cp(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function fp(e){return arguments.length?this.each(e==null?up:(typeof e=="function"?cp:lp)(e)):this.node().innerHTML}function dp(){this.nextSibling&&this.parentNode.appendChild(this)}function hp(){return this.each(dp)}function pp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gp(){return this.each(pp)}function mp(e){var t=typeof e=="function"?e:Dr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vp(){return null}function yp(e,t){var n=typeof e=="function"?e:Dr(e),r=t==null?vp:typeof t=="function"?t:Or(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function _p(){var e=this.parentNode;e&&e.removeChild(this)}function bp(){return this.each(_p)}function xp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wp(e){return this.select(e?Mp:xp)}function Tp(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Ps={},fe=null;if(typeof document<"u"){var Np=document.documentElement;"onmouseenter"in Np||(Ps={mouseenter:"mouseover",mouseleave:"mouseout"})}function Ep(e,t,n){return e=Fs(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function Fs(e,t,n){return function(r){var i=fe;fe=r;try{e.call(this,this.__data__,t,n)}finally{fe=i}}}function Dp(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 Op(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.capture):t[++r]=o;++r?t.length=r:delete this.__on}}}function Cp(e,t,n){var r=Ps.hasOwnProperty(e.type)?Ep:Fs;return function(i,o,a){var s=this.__on,u,l=r(t,o,a);if(s){for(var c=0,d=s.length;c<d;++c)if((u=s[c]).type===e.type&&u.name===e.name){this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=n),u.value=t;return}}this.addEventListener(e.type,l,n),u={type:e.type,name:e.name,value:t,listener:l,capture:n},s?s.push(u):this.__on=[u]}}function Sp(e,t,n){var r=Dp(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Cp:Op,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function Us(e,t,n,r){var i=fe;e.sourceEvent=fe,fe=e;try{return t.apply(n,r)}finally{fe=i}}function Ys(e,t,n){var r=Vi(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 Ap(e,t){return function(){return Ys(this,e,t)}}function Ip(e,t){return function(){return Ys(this,e,t.apply(this,arguments))}}function zp(e,t){return this.each((typeof t=="function"?Ip:Ap)(e,t))}var Qi=[null];function Ve(e,t){this._groups=e,this._parents=t}function un(){return new Ve([[document.documentElement]],Qi)}Ve.prototype=un.prototype={constructor:Ve,select:yh,selectAll:bh,filter:xh,data:Eh,enter:Mh,exit:Dh,join:Oh,merge:Ch,order:Sh,sort:Ah,call:zh,nodes:kh,node:jh,size:$h,empty:Rh,each:Lh,attr:Bh,style:Kh,property:Zh,classed:rp,text:sp,html:fp,raise:hp,lower:gp,append:mp,insert:yp,remove:bp,clone:wp,datum:Tp,on:Sp,dispatch:zp};function St(e){return typeof e=="string"?new Ve([[document.querySelector(e)]],[document.documentElement]):new Ve([[e]],Qi)}function kp(e){return St(Dr(e).call(document.documentElement))}var jp=0;function qs(){return new Wi}function Wi(){this._="@"+(++jp).toString(36)}Wi.prototype=qs.prototype={constructor:Wi,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function Gi(){for(var e=fe,t;t=e.sourceEvent;)e=t;return e}function Sr(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function Pn(e){var t=Gi();return t.changedTouches&&(t=t.changedTouches[0]),Sr(e,t)}function $p(e){return typeof e=="string"?new Ve([document.querySelectorAll(e)],[document.documentElement]):new Ve([e==null?[]:e],Qi)}function Ki(e,t,n){arguments.length<3&&(n=t,t=Gi().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return Sr(e,o);return null}function Rp(e,t){t==null&&(t=Gi().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Sr(e,t[n]);return i}const Xi=Ct(Object.freeze(Object.defineProperty({__proto__:null,create:kp,creator:Dr,local:qs,matcher:qi,mouse:Pn,namespace:Ln,namespaces:Ui,clientPoint:Sr,select:St,selectAll:$p,selection:un,selector:Or,selectorAll:Yi,style:Bt,touch:Ki,touches:Rp,window:Vi,get event(){return fe},customEvent:Us},Symbol.toStringTag,{value:"Module"})));var Lp={value:function(){}};function Ji(){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 Ar(n)}function Ar(e){this._=e}function Pp(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}})}Ar.prototype=Ji.prototype={constructor:Ar,on:function(e,t){var n=this._,r=Pp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Fp(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]=Vs(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Vs(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 Ar(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 Fp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Vs(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Lp,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function Hi(){fe.preventDefault(),fe.stopImmediatePropagation()}function Up(e){var t=e.document.documentElement,n=St(e).on("dragstart.drag",Hi,!0);"onselectstart"in t?n.on("selectstart.drag",Hi,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yp(e,t){var n=e.document.documentElement,r=St(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hi,!0),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 Zi(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Bs(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Fn(){}var Un=.7,Ir=1/Un,ln="\\s*([+-]?\\d+)\\s*",Yn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qp=/^#([0-9a-f]{3,8})$/,Vp=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),Bp=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),Qp=new RegExp("^rgba\\("+[ln,ln,ln,Yn]+"\\)$"),Wp=new RegExp("^rgba\\("+[gt,gt,gt,Yn]+"\\)$"),Gp=new RegExp("^hsl\\("+[Yn,gt,gt]+"\\)$"),Kp=new RegExp("^hsla\\("+[Yn,gt,gt,Yn]+"\\)$"),Qs={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};Zi(Fn,qn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ws,formatHex:Ws,formatHsl:Xp,formatRgb:Gs,toString:Gs});function Ws(){return this.rgb().formatHex()}function Xp(){return Zs(this).formatHsl()}function Gs(){return this.rgb().formatRgb()}function qn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qp.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ks(t):n===3?new tt(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zr(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=Vp.exec(e))?new tt(t[1],t[2],t[3],1):(t=Bp.exec(e))?new tt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qp.exec(e))?zr(t[1],t[2],t[3],t[4]):(t=Wp.exec(e))?zr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gp.exec(e))?Hs(t[1],t[2]/100,t[3]/100,1):(t=Kp.exec(e))?Hs(t[1],t[2]/100,t[3]/100,t[4]):Qs.hasOwnProperty(e)?Ks(Qs[e]):e==="transparent"?new tt(NaN,NaN,NaN,0):null}function Ks(e){return new tt(e>>16&255,e>>8&255,e&255,1)}function zr(e,t,n,r){return r<=0&&(e=t=n=NaN),new tt(e,t,n,r)}function Jp(e){return e instanceof Fn||(e=qn(e)),e?(e=e.rgb(),new tt(e.r,e.g,e.b,e.opacity)):new tt}function eo(e,t,n,r){return arguments.length===1?Jp(e):new tt(e,t,n,r==null?1:r)}function tt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Zi(tt,eo,Bs(Fn,{brighter:function(e){return e=e==null?Ir:Math.pow(Ir,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Un:Math.pow(Un,e),new tt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Xs,formatHex:Xs,formatRgb:Js,toString:Js}));function Xs(){return"#"+to(this.r)+to(this.g)+to(this.b)}function Js(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function to(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Hs(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new mt(e,t,n,r)}function Zs(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);if(e instanceof Fn||(e=qn(e)),!e)return new mt;if(e instanceof mt)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,u=(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/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new mt(a,s,u,e.opacity)}function Hp(e,t,n,r){return arguments.length===1?Zs(e):new mt(e,t,n,r==null?1:r)}function mt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Zi(mt,Hp,Bs(Fn,{brighter:function(e){return e=e==null?Ir:Math.pow(Ir,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Un:Math.pow(Un,e),new mt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 tt(no(e>=240?e-240:e+120,i,r),no(e,i,r),no(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function no(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eu(e){return function(){return e}}function Zp(e,t){return function(n){return e+n*t}}function e0(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 t0(e){return(e=+e)==1?tu:function(t,n){return n-t?e0(t,n,e):eu(isNaN(t)?n:t)}}function tu(e,t){var n=t-e;return n?Zp(e,n):eu(isNaN(e)?t:e)}const nu=function e(t){var n=t0(t);function r(i,o){var a=n((i=eo(i)).r,(o=eo(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=tu(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function At(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ro=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,io=new RegExp(ro.source,"g");function n0(e){return function(){return e}}function r0(e){return function(t){return e(t)+""}}function i0(e,t){var n=ro.lastIndex=io.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=ro.exec(e))&&(i=io.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,u.push({i:a,x:At(r,i)})),n=io.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?r0(u[0].x):n0(t):(t=u.length,function(l){for(var c=0,d;c<t;++c)s[(d=u[c]).i]=d.x(l);return s.join("")})}var ru=180/Math.PI,oo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function iu(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*ru,skewX:Math.atan(u)*ru,scaleX:a,scaleY:s}}var Vn,ao,ou,kr;function o0(e){return e==="none"?oo:(Vn||(Vn=document.createElement("DIV"),ao=document.documentElement,ou=document.defaultView),Vn.style.transform=e,e=ou.getComputedStyle(ao.appendChild(Vn),null).getPropertyValue("transform"),ao.removeChild(Vn),e=e.slice(7,-1).split(","),iu(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function a0(e){return e==null||(kr||(kr=document.createElementNS("http://www.w3.org/2000/svg","g")),kr.setAttribute("transform",e),!(e=kr.transform.baseVal.consolidate()))?oo:(e=e.matrix,iu(e.a,e.b,e.c,e.d,e.e,e.f))}function au(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);v.push({i:p-4,x:At(l,d)},{i:p-2,x:At(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function a(l,c,d,f){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:At(l,c)})):c&&d.push(i(d)+"rotate("+c+r)}function s(l,c,d,f){l!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:At(l,c)}):c&&d.push(i(d)+"skewX("+c+r)}function u(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");v.push({i:p-4,x:At(l,d)},{i:p-2,x:At(c,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(l,c){var d=[],f=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,d,f),a(l.rotate,c.rotate,d,f),s(l.skewX,c.skewX,d,f),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,d,f),l=c=null,function(h){for(var v=-1,p=f.length,m;++v<p;)d[(m=f[v]).i]=m.x(h);return d.join("")}}}var s0=au(o0,"px, ","px)","deg)"),u0=au(a0,", ",")",")"),Bn=Math.SQRT2,so=2,su=4,l0=1e-12;function uu(e){return((e=Math.exp(e))+1/e)/2}function c0(e){return((e=Math.exp(e))-1/e)/2}function f0(e){return((e=Math.exp(2*e))-1)/(e+1)}function d0(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=o-n,l=a-r,c=u*u+l*l,d,f;if(c<l0)f=Math.log(s/i)/Bn,d=function(M){return[n+M*u,r+M*l,i*Math.exp(Bn*M*f)]};else{var h=Math.sqrt(c),v=(s*s-i*i+su*c)/(2*i*so*h),p=(s*s-i*i-su*c)/(2*s*so*h),m=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-m)/Bn,d=function(M){var N=M*f,b=uu(m),y=i/(so*h)*(b*f0(Bn*N+m)-c0(m));return[n+y*u,r+y*l,i*b/uu(Bn*N+m)]}}return d.duration=f*1e3,d}var cn=0,Qn=0,Wn=0,lu=1e3,jr,Gn,$r=0,Qt=0,Rr=0,Kn=typeof performance=="object"&&performance.now?performance:Date,cu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lr(){return Qt||(cu(h0),Qt=Kn.now()+Rr)}function h0(){Qt=0}function Pr(){this._call=this._time=this._next=null}Pr.prototype=fu.prototype={constructor:Pr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Lr():+n)+(t==null?0:+t),!this._next&&Gn!==this&&(Gn?Gn._next=this:jr=this,Gn=this),this._call=e,this._time=n,uo()},stop:function(){this._call&&(this._call=null,this._time=1/0,uo())}};function fu(e,t,n){var r=new Pr;return r.restart(e,t,n),r}function p0(){Lr(),++cn;for(var e=jr,t;e;)(t=Qt-e._time)>=0&&e._call.call(null,t),e=e._next;--cn}function du(){Qt=($r=Kn.now())+Rr,cn=Qn=0;try{p0()}finally{cn=0,m0(),Qt=0}}function g0(){var e=Kn.now(),t=e-$r;t>lu&&(Rr-=t,$r=e)}function m0(){for(var e,t=jr,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:jr=n);Gn=e,uo(r)}function uo(e){if(!cn){Qn&&(Qn=clearTimeout(Qn));var t=e-Qt;t>24?(e<1/0&&(Qn=setTimeout(du,e-Kn.now()-Rr)),Wn&&(Wn=clearInterval(Wn))):(Wn||($r=Kn.now(),Wn=setInterval(g0,lu)),cn=1,cu(du))}}function hu(e,t,n){var r=new Pr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var v0=Ji("start","end","cancel","interrupt"),y0=[],pu=0,gu=1,lo=2,Fr=3,mu=4,co=5,Ur=6;function Yr(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;_0(e,n,{name:t,index:r,group:i,on:v0,tween:y0,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:pu})}function fo(e,t){var n=ft(e,t);if(n.state>pu)throw new Error("too late; already scheduled");return n}function wt(e,t){var n=ft(e,t);if(n.state>Fr)throw new Error("too late; already running");return n}function ft(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function _0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=fu(o,0,n.time);function o(l){n.state=gu,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,d,f,h;if(n.state!==gu)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Fr)return hu(a);h.state===mu?(h.state=Ur,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Ur,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(hu(function(){n.state===Fr&&(n.state=mu,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=lo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===lo){for(n.state=Fr,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(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=co,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===co&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Ur,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function qr(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>lo&&r.state<co,r.state=Ur,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function b0(e){return this.each(function(){qr(this,e)})}function x0(e,t){var n,r;return function(){var i=wt(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 M0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=wt(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function w0(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ft(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?x0:M0)(n,e,t))}function ho(e,t,n){var r=e._id;return e.each(function(){var i=wt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ft(i,r).value[t]}}function vu(e,t){var n;return(typeof t=="number"?At:t instanceof qn?nu:(n=qn(t))?(t=n,nu):i0)(e,t)}function T0(e){return function(){this.removeAttribute(e)}}function N0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E0(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 D0(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 O0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function C0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function S0(e,t){var n=Ln(e),r=n==="transform"?u0:vu;return this.attrTween(e,typeof t=="function"?(n.local?C0:O0)(n,r,ho(this,"attr."+e,t)):t==null?(n.local?N0:T0)(n):(n.local?D0:E0)(n,r,t))}function A0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function I0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function z0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&I0(e,o)),n}return i._value=t,i}function k0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&A0(e,o)),n}return i._value=t,i}function j0(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=Ln(e);return this.tween(n,(r.local?z0:k0)(r,t))}function $0(e,t){return function(){fo(this,e).delay=+t.apply(this,arguments)}}function R0(e,t){return t=+t,function(){fo(this,e).delay=t}}function L0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$0:R0)(t,e)):ft(this.node(),t).delay}function P0(e,t){return function(){wt(this,e).duration=+t.apply(this,arguments)}}function F0(e,t){return t=+t,function(){wt(this,e).duration=t}}function U0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?P0:F0)(t,e)):ft(this.node(),t).duration}function Y0(e,t){if(typeof t!="function")throw new Error;return function(){wt(this,e).ease=t}}function q0(e){var t=this._id;return arguments.length?this.each(Y0(t,e)):ft(this.node(),t).ease}function V0(e){typeof e!="function"&&(e=qi(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]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Tt(r,this._parents,this._name,this._id)}function B0(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 u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Tt(a,this._parents,this._name,this._id)}function Q0(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 W0(e,t,n){var r,i,o=Q0(t)?fo:wt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function G0(e,t){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(e):this.each(W0(n,e,t))}function K0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function X0(){return this.on("end.remove",K0(this._id))}function J0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Or(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,d,f=0;f<u;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d,Yr(l[f],t,n,f,l,ft(c,n)));return new Tt(o,this._parents,t,n)}function H0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yi(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,d=0;d<l;++d)if(c=u[d]){for(var f=e.call(c,c.__data__,d,u),h,v=ft(c,n),p=0,m=f.length;p<m;++p)(h=f[p])&&Yr(h,t,n,p,f,v);o.push(f),a.push(c)}return new Tt(o,a,t,n)}var Z0=un.prototype.constructor;function eg(){return new Z0(this._groups,this._parents)}function tg(e,t){var n,r,i;return function(){var o=Bt(this,e),a=(this.style.removeProperty(e),Bt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function yu(e){return function(){this.style.removeProperty(e)}}function ng(e,t,n){var r,i=n+"",o;return function(){var a=Bt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function rg(e,t,n){var r,i,o;return function(){var a=Bt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Bt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function ig(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=wt(this,e),l=u.on,c=u.value[o]==null?s||(s=yu(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function og(e,t,n){var r=(e+="")=="transform"?s0:vu;return t==null?this.styleTween(e,tg(e,r)).on("end.style."+e,yu(e)):typeof t=="function"?this.styleTween(e,rg(e,r,ho(this,"style."+e,t))).each(ig(this._id,e)):this.styleTween(e,ng(e,r,t),n).on("end.style."+e,null)}function ag(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sg(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ag(e,a,n)),r}return o._value=t,o}function ug(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,sg(e,t,n==null?"":n))}function lg(e){return function(){this.textContent=e}}function cg(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function fg(e){return this.tween("text",typeof e=="function"?cg(ho(this,"text",e)):lg(e==null?"":e+""))}function dg(e){return function(t){this.textContent=e.call(this,t)}}function hg(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&dg(i)),t}return r._value=e,r}function pg(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,hg(e))}function gg(){for(var e=this._name,t=this._id,n=_u(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=ft(u,t);Yr(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Tt(r,this._parents,e,n)}function mg(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=wt(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t})})}var vg=0;function Tt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function _u(){return++vg}var fn=un.prototype;Tt.prototype={constructor:Tt,select:J0,selectAll:H0,filter:V0,merge:B0,selection:eg,transition:gg,call:fn.call,nodes:fn.nodes,node:fn.node,size:fn.size,empty:fn.empty,each:fn.each,on:G0,attr:S0,attrTween:j0,style:og,styleTween:ug,text:fg,textTween:pg,remove:X0,tween:w0,delay:L0,duration:U0,ease:q0,end:mg};function yg(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var po={time:null,delay:0,duration:250,ease:yg};function _g(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return po.time=Lr(),po;return n}function bg(e){var t,n;e instanceof Tt?(t=e._id,e=e._name):(t=_u(),(n=po).time=Lr(),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,u,l=0;l<s;++l)(u=a[l])&&Yr(u,e,t,l,a,n||_g(u,t));return new Tt(r,this._parents,e,t)}un.prototype.interrupt=b0,un.prototype.transition=bg;function Vr(e){return function(){return e}}function xg(e,t,n){this.target=e,this.type=t,this.transform=n}function Nt(e,t,n){this.k=e,this.x=t,this.y=n}Nt.prototype={constructor:Nt,scale:function(e){return e===1?this:new Nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Nt(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 Br=new Nt(1,0,0);bu.prototype=Nt.prototype;function bu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Br;return e.__zoom}function go(){fe.stopImmediatePropagation()}function Xn(){fe.preventDefault(),fe.stopImmediatePropagation()}function Mg(){return!fe.ctrlKey&&!fe.button}function wg(){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 xu(){return this.__zoom||Br}function Tg(){return-fe.deltaY*(fe.deltaMode===1?.05:fe.deltaMode?1:.002)}function Ng(){return navigator.maxTouchPoints||"ontouchstart"in this}function Eg(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 Dg(){var e=Mg,t=wg,n=Eg,r=Tg,i=Ng,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=d0,l=Ji("start","zoom","end"),c,d,f=500,h=150,v=0;function p(g){g.property("__zoom",xu).on("wheel.zoom",S).on("mousedown.zoom",A).on("dblclick.zoom",C).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(g,w,k){var R=g.selection?g.selection():g;R.property("__zoom",xu),g!==R?N(g,w,k):R.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},p.scaleBy=function(g,w,k){p.scaleTo(g,function(){var R=this.__zoom.k,L=typeof w=="function"?w.apply(this,arguments):w;return R*L},k)},p.scaleTo=function(g,w,k){p.transform(g,function(){var R=t.apply(this,arguments),L=this.__zoom,B=k==null?M(R):typeof k=="function"?k.apply(this,arguments):k,V=L.invert(B),te=typeof w=="function"?w.apply(this,arguments):w;return n(x(m(L,te),B,V),R,a)},k)},p.translateBy=function(g,w,k){p.transform(g,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof k=="function"?k.apply(this,arguments):k),t.apply(this,arguments),a)})},p.translateTo=function(g,w,k,R){p.transform(g,function(){var L=t.apply(this,arguments),B=this.__zoom,V=R==null?M(L):typeof R=="function"?R.apply(this,arguments):R;return n(Br.translate(V[0],V[1]).scale(B.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof k=="function"?-k.apply(this,arguments):-k),L,a)},R)};function m(g,w){return w=Math.max(o[0],Math.min(o[1],w)),w===g.k?g:new Nt(w,g.x,g.y)}function x(g,w,k){var R=w[0]-k[0]*g.k,L=w[1]-k[1]*g.k;return R===g.x&&L===g.y?g:new Nt(g.k,R,L)}function M(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function N(g,w,k){g.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var R=this,L=arguments,B=b(R,L),V=t.apply(R,L),te=k==null?M(V):typeof k=="function"?k.apply(R,L):k,O=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),$=R.__zoom,G=typeof w=="function"?w.apply(R,L):w,K=u($.invert(te).concat(O/$.k),G.invert(te).concat(O/G.k));return function(U){if(U===1)U=G;else{var J=K(U),X=O/J[2];U=new Nt(X,te[0]-J[0]*X,te[1]-J[1]*X)}B.zoom(null,U)}})}function b(g,w,k){return!k&&g.__zooming||new y(g,w)}function y(g,w){this.that=g,this.args=w,this.active=0,this.extent=t.apply(g,w),this.taps=0}y.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(g,w){return this.mouse&&g!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&g!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&g!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(g){Us(new xg(p,g,this.that.__zoom),l.apply,l,[g,this.that,this.args])}};function S(){if(!e.apply(this,arguments))return;var g=b(this,arguments),w=this.__zoom,k=Math.max(o[0],Math.min(o[1],w.k*Math.pow(2,r.apply(this,arguments)))),R=Pn(this);if(g.wheel)(g.mouse[0][0]!==R[0]||g.mouse[0][1]!==R[1])&&(g.mouse[1]=w.invert(g.mouse[0]=R)),clearTimeout(g.wheel);else{if(w.k===k)return;g.mouse=[R,w.invert(R)],qr(this),g.start()}Xn(),g.wheel=setTimeout(L,h),g.zoom("mouse",n(x(m(w,k),g.mouse[0],g.mouse[1]),g.extent,a));function L(){g.wheel=null,g.end()}}function A(){if(d||!e.apply(this,arguments))return;var g=b(this,arguments,!0),w=St(fe.view).on("mousemove.zoom",B,!0).on("mouseup.zoom",V,!0),k=Pn(this),R=fe.clientX,L=fe.clientY;Up(fe.view),go(),g.mouse=[k,this.__zoom.invert(k)],qr(this),g.start();function B(){if(Xn(),!g.moved){var te=fe.clientX-R,O=fe.clientY-L;g.moved=te*te+O*O>v}g.zoom("mouse",n(x(g.that.__zoom,g.mouse[0]=Pn(g.that),g.mouse[1]),g.extent,a))}function V(){w.on("mousemove.zoom mouseup.zoom",null),Yp(fe.view,g.moved),Xn(),g.end()}}function C(){if(!!e.apply(this,arguments)){var g=this.__zoom,w=Pn(this),k=g.invert(w),R=g.k*(fe.shiftKey?.5:2),L=n(x(m(g,R),w,k),t.apply(this,arguments),a);Xn(),s>0?St(this).transition().duration(s).call(N,L,w):St(this).call(p.transform,L)}}function D(){if(!!e.apply(this,arguments)){var g=fe.touches,w=g.length,k=b(this,arguments,fe.changedTouches.length===w),R,L,B,V;for(go(),L=0;L<w;++L)B=g[L],V=Ki(this,g,B.identifier),V=[V,this.__zoom.invert(V),B.identifier],k.touch0?!k.touch1&&k.touch0[2]!==V[2]&&(k.touch1=V,k.taps=0):(k.touch0=V,R=!0,k.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(k.taps<2&&(c=setTimeout(function(){c=null},f)),qr(this),k.start())}}function E(){if(!!this.__zooming){var g=b(this,arguments),w=fe.changedTouches,k=w.length,R,L,B,V;for(Xn(),c&&(c=clearTimeout(c)),g.taps=0,R=0;R<k;++R)L=w[R],B=Ki(this,w,L.identifier),g.touch0&&g.touch0[2]===L.identifier?g.touch0[0]=B:g.touch1&&g.touch1[2]===L.identifier&&(g.touch1[0]=B);if(L=g.that.__zoom,g.touch1){var te=g.touch0[0],O=g.touch0[1],$=g.touch1[0],G=g.touch1[1],K=(K=$[0]-te[0])*K+(K=$[1]-te[1])*K,U=(U=G[0]-O[0])*U+(U=G[1]-O[1])*U;L=m(L,Math.sqrt(K/U)),B=[(te[0]+$[0])/2,(te[1]+$[1])/2],V=[(O[0]+G[0])/2,(O[1]+G[1])/2]}else if(g.touch0)B=g.touch0[0],V=g.touch0[1];else return;g.zoom("touch",n(x(L,B,V),g.extent,a))}}function z(){if(!!this.__zooming){var g=b(this,arguments),w=fe.changedTouches,k=w.length,R,L;for(go(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),R=0;R<k;++R)L=w[R],g.touch0&&g.touch0[2]===L.identifier?delete g.touch0:g.touch1&&g.touch1[2]===L.identifier&&delete g.touch1;if(g.touch1&&!g.touch0&&(g.touch0=g.touch1,delete g.touch1),g.touch0)g.touch0[1]=this.__zoom.invert(g.touch0[0]);else if(g.end(),g.taps===2){var B=St(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return p.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:Vr(+g),p):r},p.filter=function(g){return arguments.length?(e=typeof g=="function"?g:Vr(!!g),p):e},p.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:Vr(!!g),p):i},p.extent=function(g){return arguments.length?(t=typeof g=="function"?g:Vr([[+g[0][0],+g[0][1]],[+g[1][0],+g[1][1]]]),p):t},p.scaleExtent=function(g){return arguments.length?(o[0]=+g[0],o[1]=+g[1],p):[o[0],o[1]]},p.translateExtent=function(g){return arguments.length?(a[0][0]=+g[0][0],a[1][0]=+g[1][0],a[0][1]=+g[0][1],a[1][1]=+g[1][1],p):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},p.constrain=function(g){return arguments.length?(n=g,p):n},p.duration=function(g){return arguments.length?(s=+g,p):s},p.interpolate=function(g){return arguments.length?(u=g,p):u},p.on=function(){var g=l.on.apply(l,arguments);return g===l?p:g},p.clickDistance=function(g){return arguments.length?(v=(g=+g)*g,p):Math.sqrt(v)},p}const Og=Ct(Object.freeze(Object.defineProperty({__proto__:null,zoom:Dg,zoomTransform:bu,zoomIdentity:Br},Symbol.toStringTag,{value:"Module"})));var Mu={},wu=Object.prototype.hasOwnProperty;function mo(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--&&mo(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(wu.call(e,n)&&++r&&!wu.call(t,n)||!(n in t)||!mo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}Mu.dequal=mo;var Tu={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,p,m){typeof h=="object"&&(v=h.depth,p=h.prototype,m=h.includeNonEnumerable,h=h.circular);var x=[],M=[],N=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof v>"u"&&(v=1/0);function b(y,S){if(y===null)return null;if(S===0)return y;var A,C;if(typeof y!="object")return y;if(n(y,r))A=new r;else if(n(y,i))A=new i;else if(n(y,o))A=new o(function(B,V){y.then(function(te){B(b(te,S-1))},function(te){V(b(te,S-1))})});else if(a.__isArray(y))A=[];else if(a.__isRegExp(y))A=new RegExp(y.source,d(y)),y.lastIndex&&(A.lastIndex=y.lastIndex);else if(a.__isDate(y))A=new Date(y.getTime());else{if(N&&Buffer.isBuffer(y))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(y.length):A=new Buffer(y.length),y.copy(A),A;n(y,Error)?A=Object.create(y):typeof p>"u"?(C=Object.getPrototypeOf(y),A=Object.create(C)):(A=Object.create(p),C=p)}if(h){var D=x.indexOf(y);if(D!=-1)return M[D];x.push(y),M.push(A)}n(y,r)&&y.forEach(function(B,V){var te=b(V,S-1),O=b(B,S-1);A.set(te,O)}),n(y,i)&&y.forEach(function(B){var V=b(B,S-1);A.add(V)});for(var E in y){var z;C&&(z=Object.getOwnPropertyDescriptor(C,E)),!(z&&z.set==null)&&(A[E]=b(y[E],S-1))}if(Object.getOwnPropertySymbols)for(var g=Object.getOwnPropertySymbols(y),E=0;E<g.length;E++){var w=g[E],k=Object.getOwnPropertyDescriptor(y,w);k&&!k.enumerable&&!m||(A[w]=b(y[w],S-1),k.enumerable||Object.defineProperty(A,w,{enumerable:!1}))}if(m)for(var R=Object.getOwnPropertyNames(y),E=0;E<R.length;E++){var L=R[E],k=Object.getOwnPropertyDescriptor(y,L);k&&k.enumerable||(A[L]=b(y[L],S-1),Object.defineProperty(A,L,{enumerable:!1}))}return A}return b(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 u(f){return typeof f=="object"&&s(f)==="[object Date]"}a.__isDate=u;function l(f){return typeof f=="object"&&s(f)==="[object Array]"}a.__isArray=l;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)})(Tu);var Qr,Cg=new Uint8Array(16);function Nu(){if(!Qr&&(Qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qr(Cg)}const Sg=/^(?:[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 Wr(e){return typeof e=="string"&&Sg.test(e)}for(var ke=[],vo=0;vo<256;++vo)ke.push((vo+256).toString(16).substr(1));function Gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]).toLowerCase();if(!Wr(n))throw TypeError("Stringified UUID is invalid");return n}var Eu,yo,_o=0,bo=0;function Ag(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||Eu,a=e.clockseq!==void 0?e.clockseq:yo;if(o==null||a==null){var s=e.random||(e.rng||Nu)();o==null&&(o=Eu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=yo=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:bo+1,c=u-_o+(l-bo)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>_o)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_o=u,bo=l,yo=a,u+=122192928e5;var d=((u&268435455)*1e4+l)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;var f=u/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=f&255,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Gr(i)}function Du(e){if(!Wr(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function Ig(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var zg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",kg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ou(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=Ig(i)),typeof o=="string"&&(o=Du(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=u[l];return a}return Gr(u)}try{r.name=e}catch{}return r.DNS=zg,r.URL=kg,r}function jg(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return $g(Rg(Lg(e),e.length*8))}function $g(e){for(var t=[],n=e.length*32,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(o&15),16);t.push(a)}return t}function Cu(e){return(e+64>>>9<<4)+14+1}function Rg(e,t){e[t>>5]|=128<<t%32,e[Cu(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,l=i,c=o;n=je(n,r,i,o,e[a],7,-680876936),o=je(o,n,r,i,e[a+1],12,-389564586),i=je(i,o,n,r,e[a+2],17,606105819),r=je(r,i,o,n,e[a+3],22,-1044525330),n=je(n,r,i,o,e[a+4],7,-176418897),o=je(o,n,r,i,e[a+5],12,1200080426),i=je(i,o,n,r,e[a+6],17,-1473231341),r=je(r,i,o,n,e[a+7],22,-45705983),n=je(n,r,i,o,e[a+8],7,1770035416),o=je(o,n,r,i,e[a+9],12,-1958414417),i=je(i,o,n,r,e[a+10],17,-42063),r=je(r,i,o,n,e[a+11],22,-1990404162),n=je(n,r,i,o,e[a+12],7,1804603682),o=je(o,n,r,i,e[a+13],12,-40341101),i=je(i,o,n,r,e[a+14],17,-1502002290),r=je(r,i,o,n,e[a+15],22,1236535329),n=$e(n,r,i,o,e[a+1],5,-165796510),o=$e(o,n,r,i,e[a+6],9,-1069501632),i=$e(i,o,n,r,e[a+11],14,643717713),r=$e(r,i,o,n,e[a],20,-373897302),n=$e(n,r,i,o,e[a+5],5,-701558691),o=$e(o,n,r,i,e[a+10],9,38016083),i=$e(i,o,n,r,e[a+15],14,-660478335),r=$e(r,i,o,n,e[a+4],20,-405537848),n=$e(n,r,i,o,e[a+9],5,568446438),o=$e(o,n,r,i,e[a+14],9,-1019803690),i=$e(i,o,n,r,e[a+3],14,-187363961),r=$e(r,i,o,n,e[a+8],20,1163531501),n=$e(n,r,i,o,e[a+13],5,-1444681467),o=$e(o,n,r,i,e[a+2],9,-51403784),i=$e(i,o,n,r,e[a+7],14,1735328473),r=$e(r,i,o,n,e[a+12],20,-1926607734),n=Re(n,r,i,o,e[a+5],4,-378558),o=Re(o,n,r,i,e[a+8],11,-2022574463),i=Re(i,o,n,r,e[a+11],16,1839030562),r=Re(r,i,o,n,e[a+14],23,-35309556),n=Re(n,r,i,o,e[a+1],4,-1530992060),o=Re(o,n,r,i,e[a+4],11,1272893353),i=Re(i,o,n,r,e[a+7],16,-155497632),r=Re(r,i,o,n,e[a+10],23,-1094730640),n=Re(n,r,i,o,e[a+13],4,681279174),o=Re(o,n,r,i,e[a],11,-358537222),i=Re(i,o,n,r,e[a+3],16,-722521979),r=Re(r,i,o,n,e[a+6],23,76029189),n=Re(n,r,i,o,e[a+9],4,-640364487),o=Re(o,n,r,i,e[a+12],11,-421815835),i=Re(i,o,n,r,e[a+15],16,530742520),r=Re(r,i,o,n,e[a+2],23,-995338651),n=Le(n,r,i,o,e[a],6,-198630844),o=Le(o,n,r,i,e[a+7],10,1126891415),i=Le(i,o,n,r,e[a+14],15,-1416354905),r=Le(r,i,o,n,e[a+5],21,-57434055),n=Le(n,r,i,o,e[a+12],6,1700485571),o=Le(o,n,r,i,e[a+3],10,-1894986606),i=Le(i,o,n,r,e[a+10],15,-1051523),r=Le(r,i,o,n,e[a+1],21,-2054922799),n=Le(n,r,i,o,e[a+8],6,1873313359),o=Le(o,n,r,i,e[a+15],10,-30611744),i=Le(i,o,n,r,e[a+6],15,-1560198380),r=Le(r,i,o,n,e[a+13],21,1309151649),n=Le(n,r,i,o,e[a+4],6,-145523070),o=Le(o,n,r,i,e[a+11],10,-1120210379),i=Le(i,o,n,r,e[a+2],15,718787259),r=Le(r,i,o,n,e[a+9],21,-343485551),n=It(n,s),r=It(r,u),i=It(i,l),o=It(o,c)}return[n,r,i,o]}function Lg(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(Cu(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function It(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Pg(e,t){return e<<t|e>>>32-t}function Kr(e,t,n,r,i,o){return It(Pg(It(It(t,e),It(r,o)),i),n)}function je(e,t,n,r,i,o,a){return Kr(t&n|~t&r,e,t,i,o,a)}function $e(e,t,n,r,i,o,a){return Kr(t&r|n&~r,e,t,i,o,a)}function Re(e,t,n,r,i,o,a){return Kr(t^n^r,e,t,i,o,a)}function Le(e,t,n,r,i,o,a){return Kr(n^(t|~r),e,t,i,o,a)}var Fg=Ou("v3",48,jg);const Ug=Fg;function Yg(e,t,n){e=e||{};var r=e.random||(e.rng||Nu)();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 Gr(r)}function qg(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function xo(e,t){return e<<t|e>>>32-t}function Vg(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[u*64+c*4]<<24|e[u*64+c*4+1]<<16|e[u*64+c*4+2]<<8|e[u*64+c*4+3];s[u]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var v=16;v<80;++v)f[v]=xo(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=n[0],m=n[1],x=n[2],M=n[3],N=n[4],b=0;b<80;++b){var y=Math.floor(b/20),S=xo(p,5)+qg(y,m,x,M)+N+t[y]+f[b]>>>0;N=M,M=x,x=xo(m,30)>>>0,m=p,p=S}n[0]=n[0]+p>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+x>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+N>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Bg=Ou("v5",80,Vg);const Qg=Bg,Wg="00000000-0000-0000-0000-000000000000";function Gg(e){if(!Wr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Kg=Ct(Object.freeze(Object.defineProperty({__proto__:null,v1:Ag,v3:Ug,v4:Yg,v5:Qg,NIL:Wg,version:Gg,validate:Wr,stringify:Gr,parse:Du},Symbol.toStringTag,{value:"Module"})));var Mo={},wo={exports:{}},ue={exports:{}},To={exports:{}},he={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+F+">.")}return j}}function Ht(_,j){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var F=In(j);if(gt[F])return;gt[F]=!0;var Z="";_&&_._owner&&_._owner!==fe.current&&(Z=" It was passed a child from "+w(_._owner.type)+"."),xe(_),M('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',F,Z),xe(null)}}function Ot(_,j){{if(typeof _!="object")return;if(gr(_))for(var F=0;F<_.length;F++){var Z=_[F];je(Z)&&Ht(Z,j)}else if(je(_))_._store&&(_._store.validated=!0);else if(_){var ce=m(_);if(typeof ce=="function"&&ce!==_.entries)for(var be=ce.call(_),le;!(le=be.next()).done;)je(le.value)&&Ht(le.value,j)}}}function zn(_){{var j=_.type;if(j==null||typeof j=="string")return;var F;if(typeof j=="function")F=j.propTypes;else if(typeof j=="object"&&(j.$$typeof===u||j.$$typeof===d))F=j.propTypes;else return;if(F){var Z=w(j);ss(F,_.props,"prop",Z,_)}else if(j.PropTypes!==void 0&&!ze){ze=!0;var ce=w(j);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ce||"Unknown")}typeof j.getDefaultProps=="function"&&!j.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Zt(_){{for(var j=Object.keys(_.props),F=0;F<j.length;F++){var Z=j[F];if(Z!=="children"&&Z!=="key"){xe(_),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),xe(null);break}}_.ref!==null&&(xe(_),M("Invalid attribute `ref` supplied to `React.Fragment`."),xe(null))}}function qt(_,j,F,Z,ce,be){{var le=E(_);if(!le){var se="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(se+=" 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 Ge=He(ce);Ge?se+=Ge:se+=at();var De;_===null?De="null":gr(_)?De="array":_!==void 0&&_.$$typeof===t?(De="<"+(w(_.type)||"Unknown")+" />",se=" Did you accidentally export a JSX literal instead of a component?"):De=typeof _,M("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",De,se)}var Se=U(_,j,F,ce,be);if(Se==null)return Se;if(le){var ct=j.children;if(ct!==void 0)if(Z)if(gr(ct)){for(var kn=0;kn<ct.length;kn++)Ot(ct[kn],_);Object.freeze&&Object.freeze(ct)}else M("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 Ot(ct,_)}return _===r?Zt(Se):zn(Se),Se}}function en(_,j,F){return qt(_,j,F,!0)}function tn(_,j,F){return qt(_,j,F,!1)}var nn=tn,Qf=en;Rn.Fragment=r,Rn.jsx=nn,Rn.jsxs=Qf}()),Rn}(function(e){process.env.NODE_ENV==="production"?e.exports=ad():e.exports=sd()})(_r);const br=_r.exports.Fragment,T=_r.exports.jsx,oe=_r.exports.jsxs,ud=Object.freeze(Object.defineProperty({__proto__:null,Fragment:br,jsx:T,jsxs:oe},Symbol.toStringTag,{value:"Module"})),ld=({children:e})=>oe(br,{children:[T(I.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%"}}}),T(I.ThemeProvider,{theme:od,children:e})]}),cd=new rn.QueryClient({defaultOptions:{queries:{retry:!1}}}),fd={authToken:void 0},dd=W.createContext(fd),hd=({children:e,authToken:t})=>{const n=W.useMemo(()=>({authToken:t}),[t]);return T(dd.Provider,{value:n,children:e})},hs={dispatchSnackbar:()=>null,snackbar:{open:!1}},ps=W.createContext(hs),xr={closeSnackbar:"closeSnackbar",openSnackbar:"openSnackbar"},pd=(e,t="success")=>({message:e,severity:t,type:xr.openSnackbar}),gs=()=>({type:xr.closeSnackbar}),gd=(e,t)=>{switch(t.type){case xr.openSnackbar:{const{message:n,severity:r}=t;return{message:n,open:!0,severity:r}}case xr.closeSnackbar:return{...e,open:!1};default:throw new Error}},md={snackbarAlert:{width:"100%"}},vd=({children:e})=>{const[t,n]=W.useReducer(gd,hs.snackbar),{message:r,open:i,severity:o}=t,a=6e3,s=()=>n(gs()),u=W.useMemo(()=>({dispatchSnackbar:n,snackbar:t}),[t,n]);return oe(ps.Provider,{value:u,children:[T(I.Snackbar,{open:i,autoHideDuration:a,onClose:s,anchorOrigin:{horizontal:"center",vertical:"bottom"},children:T(I.Alert,{onClose:s,severity:o,sx:md.snackbarAlert,variant:"filled",children:r})}),e]})},yd="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",_d=()=>T("img",{src:yd,alt:"Treege",height:30,width:"auto"});var ms={},ki={};function bd(e,t){return e.parent===t.parent?1:2}function xd(e){return e.reduce(Md,0)/e.length}function Md(e,t){return e+t.x}function wd(e){return 1+e.reduce(Td,0)}function Td(e,t){return Math.max(e,t.y)}function Nd(e){for(var t;t=e.children;)e=t[0];return e}function Ed(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Dd(){var e=bd,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=xd(h),f.y=wd(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=Nd(o),l=Ed(o),c=u.x-e(u,l)/2,d=l.x+e(l,u)/2;return o.eachAfter(r?function(f){f.x=(f.x-o.x)*t,f.y=(o.y-f.y)*n}:function(f){f.x=(f.x-c)/(d-c)*t,f.y=(1-(o.y?f.y/o.y:1))*n})}return i.separation=function(o){return arguments.length?(e=o,i):e},i.size=function(o){return arguments.length?(r=!1,t=+o[0],n=+o[1],i):r?null:[t,n]},i.nodeSize=function(o){return arguments.length?(r=!0,t=+o[0],n=+o[1],i):r?[t,n]:null},i}function Od(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 Cd(){return this.eachAfter(Od)}function Sd(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 Ad(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 Id(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 zd(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 kd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function jd(e){for(var t=this,n=$d(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 $d(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 Rd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Ld(){var e=[];return this.each(function(t){e.push(t)}),e}function Pd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Fd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function ji(e,t){var n=new sn(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=Yd);i=o.pop();)if(r&&(i.value=+i.data.value),(s=t(i.data))&&(l=s.length))for(i.children=new Array(l),u=l-1;u>=0;--u)o.push(a=i.children[u]=new sn(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(vs)}function Ud(){return ji(this).eachBefore(qd)}function Yd(e){return e.children}function qd(e){e.data=e.data.data}function vs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function sn(e){this.data=e,this.depth=this.height=0,this.parent=null}sn.prototype=ji.prototype={constructor:sn,count:Cd,each:Sd,eachAfter:Id,eachBefore:Ad,sum:zd,sort:kd,path:jd,ancestors:Rd,descendants:Ld,leaves:Pd,links:Fd,copy:Ud};var Vd=Array.prototype.slice;function Bd(e){for(var t=e.length,n,r;t;)r=Math.random()*t--|0,n=e[t],e[t]=e[r],e[r]=n;return e}function ys(e){for(var t=0,n=(e=Bd(Vd.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&_s(o,i)?++t:(o=Wd(r=Qd(r,i)),t=0);return o}function Qd(e,t){var n,r;if($i(t,e))return[t];for(n=0;n<e.length;++n)if(Mr(t,e[n])&&$i(Ln(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Mr(Ln(e[n],e[r]),t)&&Mr(Ln(e[n],t),e[r])&&Mr(Ln(e[r],t),e[n])&&$i(bs(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Mr(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function _s(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function $i(e,t){for(var n=0;n<t.length;++n)if(!_s(e,t[n]))return!1;return!0}function Wd(e){switch(e.length){case 1:return Gd(e[0]);case 2:return Ln(e[0],e[1]);case 3:return bs(e[0],e[1],e[2])}}function Gd(e){return{x:e.x,y:e.y,r:e.r}}function Ln(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,l=a-r,c=s-i,d=Math.sqrt(u*u+l*l);return{x:(n+o+u/d*c)/2,y:(r+a+l/d*c)/2,r:(d+i+s)/2}}function bs(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,l=n.x,c=n.y,d=n.r,f=r-a,h=r-l,v=i-s,p=i-c,m=u-o,x=d-o,M=r*r+i*i-o*o,N=M-a*a-s*s+u*u,b=M-l*l-c*c+d*d,y=h*v-f*p,S=(v*b-p*N)/(y*2)-r,A=(p*m-v*x)/y,C=(h*N-f*b)/(y*2)-i,D=(f*x-h*m)/y,E=A*A+D*D-1,z=2*(o+S*A+C*D),g=S*S+C*C-o*o,w=-(E?(z+Math.sqrt(z*z-4*E*g))/(2*E):g/z);return{x:r+S+A*w,y:i+C+D*w,r:w}}function xs(e,t,n){var r=e.x-t.x,i,o,a=e.y-t.y,s,u,l=r*r+a*a;l?(o=t.r+n.r,o*=o,u=e.r+n.r,u*=u,o>u?(i=(l+u-o)/(2*l),s=Math.sqrt(Math.max(0,u/l-i*i)),n.x=e.x-i*r-s*a,n.y=e.y-i*a+s*r):(i=(l+o-u)/(2*l),s=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*r-s*a,n.y=t.y+i*a+s*r)):(n.x=t.x+n.r,n.y=t.y)}function Ms(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function ws(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function wr(e){this._=e,this.next=null,this.previous=null}function Ts(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,l,c,d;if(t=e[0],t.x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;xs(n,t,r=e[2]),t=new wr(t),n=new wr(n),r=new wr(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){xs(t._,n._,r=e[s]),r=new wr(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(Ms(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(Ms(l._,r._)){t=l,t.next=n,n.previous=t,--s;continue e}d+=l._.r,l=l.previous}while(u!==l.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=ws(t);(r=r.next)!==n;)(a=ws(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=ys(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Kd(e){return Ts(e),e}function Xd(e){return e==null?null:Tr(e)}function Tr(e){if(typeof e!="function")throw new Error;return e}function Vt(){return 0}function un(e){return function(){return e}}function Jd(e){return Math.sqrt(e.value)}function Hd(){var e=null,t=1,n=1,r=Vt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(Ns(e)).eachAfter(Ri(r,.5)).eachBefore(Es(1)):o.eachBefore(Ns(Jd)).eachAfter(Ri(Vt,1)).eachAfter(Ri(r,o.r/Math.min(t,n))).eachBefore(Es(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Xd(o),i):e},i.size=function(o){return arguments.length?(t=+o[0],n=+o[1],i):[t,n]},i.padding=function(o){return arguments.length?(r=typeof o=="function"?o:un(+o),i):r},i}function Ns(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Ri(e,t){return function(n){if(r=n.children){var r,i,o=r.length,a=e(n)*t||0,s;if(a)for(i=0;i<o;++i)r[i].r+=a;if(s=Ts(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function Es(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Ds(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Pn(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(r-t)/e.value;++s<u;)a=o[s],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*l}function Zd(){var e=1,t=1,n=0,r=!1;function i(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=e,a.y1=t/s,a.eachBefore(o(t,s)),r&&a.eachBefore(Ds),a}function o(a,s){return function(u){u.children&&Pn(u,u.x0,a*(u.depth+1)/s,u.x1,a*(u.depth+2)/s);var l=u.x0,c=u.y0,d=u.x1-n,f=u.y1-n;d<l&&(l=d=(l+d)/2),f<c&&(c=f=(c+f)/2),u.x0=l,u.y0=c,u.x1=d,u.y1=f}}return i.round=function(a){return arguments.length?(r=!!a,i):r},i.size=function(a){return arguments.length?(e=+a[0],t=+a[1],i):[e,t]},i.padding=function(a){return arguments.length?(n=+a,i):n},i}var Os="$",eh={depth:-1},Cs={};function th(e){return e.id}function nh(e){return e.parentId}function rh(){var e=th,t=nh;function n(r){var i,o,a=r.length,s,u,l,c=new Array(a),d,f,h={};for(o=0;o<a;++o)i=r[o],l=c[o]=new sn(i),(d=e(i,o,r))!=null&&(d+="")&&(f=Os+(l.id=d),h[f]=f in h?Cs:l);for(o=0;o<a;++o)if(l=c[o],d=t(r[o],o,r),d==null||!(d+="")){if(s)throw new Error("multiple roots");s=l}else{if(u=h[Os+d],!u)throw new Error("missing: "+d);if(u===Cs)throw new Error("ambiguous: "+d);u.children?u.children.push(l):u.children=[l],l.parent=u}if(!s)throw new Error("no root");if(s.parent=eh,s.eachBefore(function(v){v.depth=v.parent.depth+1,--a}).eachBefore(vs),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=Tr(r),n):e},n.parentId=function(r){return arguments.length?(t=Tr(r),n):t},n}function ih(e,t){return e.parent===t.parent?1:2}function Li(e){var t=e.children;return t?t[0]:e.t}function Pi(e){var t=e.children;return t?t[t.length-1]:e.t}function oh(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 ah(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 sh(e,t,n){return e.a.parent===t.parent?e.a:n}function Nr(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}Nr.prototype=Object.create(sn.prototype);function uh(e){for(var t=new Nr(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 Nr(o[a],a)),i.parent=n;return(t.parent=new Nr(null,0)).children=[t],t}function lh(){var e=ih,t=1,n=1,r=null;function i(l){var c=uh(l);if(c.eachAfter(o),c.parent.m=-c.z,c.eachBefore(a),r)l.eachBefore(u);else{var d=l,f=l,h=l;l.eachBefore(function(M){M.x<d.x&&(d=M),M.x>f.x&&(f=M),M.depth>h.depth&&(h=M)});var v=d===f?1:e(d,f)/2,p=v-d.x,m=t/(f.x+v+p),x=n/(h.depth||1);l.eachBefore(function(M){M.x=(M.x+p)*m,M.y=M.depth*x})}return l}function o(l){var c=l.children,d=l.parent.children,f=l.i?d[l.i-1]:null;if(c){ah(l);var h=(c[0].z+c[c.length-1].z)/2;f?(l.z=f.z+e(l._,f._),l.m=l.z-h):l.z=h}else f&&(l.z=f.z+e(l._,f._));l.parent.A=s(l,f,l.parent.A||d[0])}function a(l){l._.x=l.z+l.parent.m,l.m+=l.parent.m}function s(l,c,d){if(c){for(var f=l,h=l,v=c,p=f.parent.children[0],m=f.m,x=h.m,M=v.m,N=p.m,b;v=Pi(v),f=Li(f),v&&f;)p=Li(p),h=Pi(h),h.a=l,b=v.z+M-f.z-m+e(v._,f._),b>0&&(oh(sh(v,l,d),l,b),m+=b,x+=b),M+=v.m,m+=f.m,N+=p.m,x+=h.m;v&&!Pi(h)&&(h.t=v,h.m+=M-x),f&&!Li(p)&&(p.t=f,p.m+=m-N,d=l)}return d}function u(l){l.x*=t,l.y=l.depth*n}return i.separation=function(l){return arguments.length?(e=l,i):e},i.size=function(l){return arguments.length?(r=!1,t=+l[0],n=+l[1],i):r?null:[t,n]},i.nodeSize=function(l){return arguments.length?(r=!0,t=+l[0],n=+l[1],i):r?[t,n]:null},i}function Er(e,t,n,r,i){for(var o=e.children,a,s=-1,u=o.length,l=e.value&&(i-n)/e.value;++s<u;)a=o[s],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*l}var Ss=(1+Math.sqrt(5))/2;function As(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,v,p=t.value,m,x,M,N,b,y,S;c<f;){h=i-n,v=o-r;do m=s[d++].value;while(!m&&d<f);for(x=M=m,y=Math.max(v/h,h/v)/(p*e),S=m*m*y,b=Math.max(M/S,S/x);d<f;++d){if(m+=l=s[d].value,l<x&&(x=l),l>M&&(M=l),S=m*m*y,N=Math.max(M/S,S/x),N>b){m-=l;break}b=N}a.push(u={value:m,dice:h<v,children:s.slice(c,d)}),u.dice?Pn(u,n,r,i,p?r+=v*m/p:o):Er(u,n,r,p?n+=h*m/p:i,o),p-=m,c=d}return a}const Is=function e(t){function n(r,i,o,a,s){As(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Ss);function ch(){var e=Is,t=!1,n=1,r=1,i=[0],o=Vt,a=Vt,s=Vt,u=Vt,l=Vt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(Ds),f}function d(f){var h=i[f.depth],v=f.x0+h,p=f.y0+h,m=f.x1-h,x=f.y1-h;m<v&&(v=m=(v+m)/2),x<p&&(p=x=(p+x)/2),f.x0=v,f.y0=p,f.x1=m,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,v+=l(f)-h,p+=a(f)-h,m-=s(f)-h,x-=u(f)-h,m<v&&(v=m=(v+m)/2),x<p&&(p=x=(p+x)/2),e(f,v,p,m,x))}return c.round=function(f){return arguments.length?(t=!!f,c):t},c.size=function(f){return arguments.length?(n=+f[0],r=+f[1],c):[n,r]},c.tile=function(f){return arguments.length?(e=Tr(f),c):e},c.padding=function(f){return arguments.length?c.paddingInner(f).paddingOuter(f):c.paddingInner()},c.paddingInner=function(f){return arguments.length?(o=typeof f=="function"?f:un(+f),c):o},c.paddingOuter=function(f){return arguments.length?c.paddingTop(f).paddingRight(f).paddingBottom(f).paddingLeft(f):c.paddingTop()},c.paddingTop=function(f){return arguments.length?(a=typeof f=="function"?f:un(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:un(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:un(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:un(+f),c):l},c}function fh(e,t,n,r,i){var o=e.children,a,s=o.length,u,l=new Array(s+1);for(l[0]=u=a=0;a<s;++a)l[a+1]=u+=o[a].value;c(0,s,e.value,t,n,r,i);function c(d,f,h,v,p,m,x){if(d>=f-1){var M=o[d];M.x0=v,M.y0=p,M.x1=m,M.y1=x;return}for(var N=l[d],b=h/2+N,y=d+1,S=f-1;y<S;){var A=y+S>>>1;l[A]<b?y=A+1:S=A}b-l[y-1]<l[y]-b&&d+1<y&&--y;var C=l[y]-N,D=h-C;if(m-v>x-p){var E=(v*D+m*C)/h;c(d,y,C,v,p,E,x),c(y,f,D,E,p,m,x)}else{var z=(p*D+x*C)/h;c(d,y,C,v,p,m,z),c(y,f,D,v,z,m,x)}}}function dh(e,t,n,r,i){(e.depth&1?Er:Pn)(e,t,n,r,i)}const hh=function e(t){function n(r,i,o,a,s){if((u=r._squarify)&&u.ratio===t)for(var u,l,c,d,f=-1,h,v=u.length,p=r.value;++f<v;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?Pn(l,i,o,a,o+=(s-o)*l.value/p):Er(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=As(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Ss),ph=St(Object.freeze(Object.defineProperty({__proto__:null,cluster:Dd,hierarchy:ji,pack:Hd,packSiblings:Kd,packEnclose:ys,partition:Zd,stratify:rh,tree:lh,treemap:ch,treemapBinary:fh,treemapDice:Pn,treemapSlice:Er,treemapSliceDice:dh,treemapSquarify:Is,treemapResquarify:hh},Symbol.toStringTag,{value:"Module"})));var Fi="http://www.w3.org/1999/xhtml";const Ui={svg:"http://www.w3.org/2000/svg",xhtml:Fi,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Fn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ui.hasOwnProperty(t)?{space:Ui[t],local:e}:e}function gh(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Fi&&t.documentElement.namespaceURI===Fi?t.createElement(e):t.createElementNS(n,e)}}function mh(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dr(e){var t=Fn(e);return(t.local?mh:gh)(t)}function vh(){}function Or(e){return e==null?vh:function(){return this.querySelector(e)}}function yh(e){typeof e!="function"&&(e=Or(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),u,l,c=0;c<a;++c)(u=o[c])&&(l=e.call(u,u.__data__,c,o))&&("__data__"in u&&(l.__data__=u.__data__),s[c]=l);return new Ve(r,this._parents)}function _h(){return[]}function Yi(e){return e==null?_h:function(){return this.querySelectorAll(e)}}function bh(e){typeof e!="function"&&(e=Yi(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a=t[o],s=a.length,u,l=0;l<s;++l)(u=a[l])&&(r.push(e.call(u,u.__data__,l,a)),i.push(u));return new Ve(r,i)}function qi(e){return function(){return this.matches(e)}}function xh(e){typeof e!="function"&&(e=qi(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]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Ve(r,this._parents)}function zs(e){return new Array(e.length)}function Mh(){return new Ve(this._enter||this._groups.map(zs),this._parents)}function Cr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Cr.prototype={constructor:Cr,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 wh(e){return function(){return e}}var ks="$";function Th(e,t,n,r,i,o){for(var a=0,s,u=t.length,l=o.length;a<l;++a)(s=t[a])?(s.__data__=o[a],r[a]=s):n[a]=new Cr(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function Nh(e,t,n,r,i,o,a){var s,u,l={},c=t.length,d=o.length,f=new Array(c),h;for(s=0;s<c;++s)(u=t[s])&&(f[s]=h=ks+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=ks+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Cr(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function Eh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(S){h[++l]=S}),h;var n=t?Nh:Th,r=this._parents,i=this._groups;typeof e!="function"&&(e=wh(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),l=0;l<o;++l){var c=r[l],d=i[l],f=d.length,h=e.call(c,c&&c.__data__,l,r),v=h.length,p=s[l]=new Array(v),m=a[l]=new Array(v),x=u[l]=new Array(f);n(c,d,p,m,x,h,t);for(var M=0,N=0,b,y;M<v;++M)if(b=p[M]){for(M>=N&&(N=M+1);!(y=m[N])&&++N<v;);b._next=y||null}}return a=new Ve(a,r),a._enter=s,a._exit=u,a}function Dh(){return new Ve(this._exit||this._groups.map(zs),this._parents)}function Oh(e,t,n){var r=this.enter(),i=this,o=this.exit();return r=typeof e=="function"?e(r):r.append(e+""),t!=null&&(i=t(i)),n==null?o.remove():n(o),r&&i?r.merge(i).order():i}function Ch(e){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 u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Ve(a,this._parents)}function Sh(){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 Ah(e){e||(e=Ih);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,u=i[o]=new Array(s),l,c=0;c<s;++c)(l=a[c])&&(u[c]=l);u.sort(t)}return new Ve(i,this._parents).order()}function Ih(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function zh(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function kh(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function jh(){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 $h(){var e=0;return this.each(function(){++e}),e}function Rh(){return!this.node()}function Lh(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 Ph(e){return function(){this.removeAttribute(e)}}function Fh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Uh(e,t){return function(){this.setAttribute(e,t)}}function Yh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function qh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Vh(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 Bh(e,t){var n=Fn(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?Fh:Ph:typeof t=="function"?n.local?Vh:qh:n.local?Yh:Uh)(n,t))}function Vi(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Qh(e){return function(){this.style.removeProperty(e)}}function Wh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Gh(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Kh(e,t,n){return arguments.length>1?this.each((t==null?Qh:typeof t=="function"?Gh:Wh)(e,t,n==null?"":n)):Bt(this.node(),e)}function Bt(e,t){return e.style.getPropertyValue(t)||Vi(e).getComputedStyle(e,null).getPropertyValue(t)}function Xh(e){return function(){delete this[e]}}function Jh(e,t){return function(){this[e]=t}}function Hh(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Zh(e,t){return arguments.length>1?this.each((t==null?Xh:typeof t=="function"?Hh:Jh)(e,t)):this.node()[e]}function js(e){return e.trim().split(/^|\s+/)}function Bi(e){return e.classList||new $s(e)}function $s(e){this._node=e,this._names=js(e.getAttribute("class")||"")}$s.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 Rs(e,t){for(var n=Bi(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Ls(e,t){for(var n=Bi(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function ep(e){return function(){Rs(this,e)}}function tp(e){return function(){Ls(this,e)}}function np(e,t){return function(){(t.apply(this,arguments)?Rs:Ls)(this,e)}}function rp(e,t){var n=js(e+"");if(arguments.length<2){for(var r=Bi(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?np:t?ep:tp)(n,t))}function ip(){this.textContent=""}function op(e){return function(){this.textContent=e}}function ap(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function sp(e){return arguments.length?this.each(e==null?ip:(typeof e=="function"?ap:op)(e)):this.node().textContent}function up(){this.innerHTML=""}function lp(e){return function(){this.innerHTML=e}}function cp(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function fp(e){return arguments.length?this.each(e==null?up:(typeof e=="function"?cp:lp)(e)):this.node().innerHTML}function dp(){this.nextSibling&&this.parentNode.appendChild(this)}function hp(){return this.each(dp)}function pp(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gp(){return this.each(pp)}function mp(e){var t=typeof e=="function"?e:Dr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function vp(){return null}function yp(e,t){var n=typeof e=="function"?e:Dr(e),r=t==null?vp:typeof t=="function"?t:Or(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function _p(){var e=this.parentNode;e&&e.removeChild(this)}function bp(){return this.each(_p)}function xp(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Mp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function wp(e){return this.select(e?Mp:xp)}function Tp(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Ps={},de=null;if(typeof document<"u"){var Np=document.documentElement;"onmouseenter"in Np||(Ps={mouseenter:"mouseover",mouseleave:"mouseout"})}function Ep(e,t,n){return e=Fs(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function Fs(e,t,n){return function(r){var i=de;de=r;try{e.call(this,this.__data__,t,n)}finally{de=i}}}function Dp(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 Op(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.capture):t[++r]=o;++r?t.length=r:delete this.__on}}}function Cp(e,t,n){var r=Ps.hasOwnProperty(e.type)?Ep:Fs;return function(i,o,a){var s=this.__on,u,l=r(t,o,a);if(s){for(var c=0,d=s.length;c<d;++c)if((u=s[c]).type===e.type&&u.name===e.name){this.removeEventListener(u.type,u.listener,u.capture),this.addEventListener(u.type,u.listener=l,u.capture=n),u.value=t;return}}this.addEventListener(e.type,l,n),u={type:e.type,name:e.name,value:t,listener:l,capture:n},s?s.push(u):this.__on=[u]}}function Sp(e,t,n){var r=Dp(e+""),i,o=r.length,a;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,l=s.length,c;u<l;++u)for(i=0,c=s[u];i<o;++i)if((a=r[i]).type===c.type&&a.name===c.name)return c.value}return}for(s=t?Cp:Op,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function Us(e,t,n,r){var i=de;e.sourceEvent=de,de=e;try{return t.apply(n,r)}finally{de=i}}function Ys(e,t,n){var r=Vi(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 Ap(e,t){return function(){return Ys(this,e,t)}}function Ip(e,t){return function(){return Ys(this,e,t.apply(this,arguments))}}function zp(e,t){return this.each((typeof t=="function"?Ip:Ap)(e,t))}var Qi=[null];function Ve(e,t){this._groups=e,this._parents=t}function ln(){return new Ve([[document.documentElement]],Qi)}Ve.prototype=ln.prototype={constructor:Ve,select:yh,selectAll:bh,filter:xh,data:Eh,enter:Mh,exit:Dh,join:Oh,merge:Ch,order:Sh,sort:Ah,call:zh,nodes:kh,node:jh,size:$h,empty:Rh,each:Lh,attr:Bh,style:Kh,property:Zh,classed:rp,text:sp,html:fp,raise:hp,lower:gp,append:mp,insert:yp,remove:bp,clone:wp,datum:Tp,on:Sp,dispatch:zp};function At(e){return typeof e=="string"?new Ve([[document.querySelector(e)]],[document.documentElement]):new Ve([[e]],Qi)}function kp(e){return At(Dr(e).call(document.documentElement))}var jp=0;function qs(){return new Wi}function Wi(){this._="@"+(++jp).toString(36)}Wi.prototype=qs.prototype={constructor:Wi,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};function Gi(){for(var e=de,t;t=e.sourceEvent;)e=t;return e}function Sr(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function Un(e){var t=Gi();return t.changedTouches&&(t=t.changedTouches[0]),Sr(e,t)}function $p(e){return typeof e=="string"?new Ve([document.querySelectorAll(e)],[document.documentElement]):new Ve([e==null?[]:e],Qi)}function Ki(e,t,n){arguments.length<3&&(n=t,t=Gi().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return Sr(e,o);return null}function Rp(e,t){t==null&&(t=Gi().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Sr(e,t[n]);return i}const Xi=St(Object.freeze(Object.defineProperty({__proto__:null,create:kp,creator:Dr,local:qs,matcher:qi,mouse:Un,namespace:Fn,namespaces:Ui,clientPoint:Sr,select:At,selectAll:$p,selection:ln,selector:Or,selectorAll:Yi,style:Bt,touch:Ki,touches:Rp,window:Vi,get event(){return de},customEvent:Us},Symbol.toStringTag,{value:"Module"})));var Lp={value:function(){}};function Ji(){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 Ar(n)}function Ar(e){this._=e}function Pp(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}})}Ar.prototype=Ji.prototype={constructor:Ar,on:function(e,t){var n=this._,r=Pp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=Fp(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]=Vs(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Vs(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 Ar(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 Fp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Vs(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Lp,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function Hi(){de.preventDefault(),de.stopImmediatePropagation()}function Up(e){var t=e.document.documentElement,n=At(e).on("dragstart.drag",Hi,!0);"onselectstart"in t?n.on("selectstart.drag",Hi,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yp(e,t){var n=e.document.documentElement,r=At(e).on("dragstart.drag",null);t&&(r.on("click.drag",Hi,!0),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 Zi(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Bs(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Yn(){}var qn=.7,Ir=1/qn,cn="\\s*([+-]?\\d+)\\s*",Vn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",mt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",qp=/^#([0-9a-f]{3,8})$/,Vp=new RegExp("^rgb\\("+[cn,cn,cn]+"\\)$"),Bp=new RegExp("^rgb\\("+[mt,mt,mt]+"\\)$"),Qp=new RegExp("^rgba\\("+[cn,cn,cn,Vn]+"\\)$"),Wp=new RegExp("^rgba\\("+[mt,mt,mt,Vn]+"\\)$"),Gp=new RegExp("^hsl\\("+[Vn,mt,mt]+"\\)$"),Kp=new RegExp("^hsla\\("+[Vn,mt,mt,Vn]+"\\)$"),Qs={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};Zi(Yn,Bn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ws,formatHex:Ws,formatHsl:Xp,formatRgb:Gs,toString:Gs});function Ws(){return this.rgb().formatHex()}function Xp(){return Zs(this).formatHsl()}function Gs(){return this.rgb().formatRgb()}function Bn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=qp.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ks(t):n===3?new et(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zr(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=Vp.exec(e))?new et(t[1],t[2],t[3],1):(t=Bp.exec(e))?new et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Qp.exec(e))?zr(t[1],t[2],t[3],t[4]):(t=Wp.exec(e))?zr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Gp.exec(e))?Hs(t[1],t[2]/100,t[3]/100,1):(t=Kp.exec(e))?Hs(t[1],t[2]/100,t[3]/100,t[4]):Qs.hasOwnProperty(e)?Ks(Qs[e]):e==="transparent"?new et(NaN,NaN,NaN,0):null}function Ks(e){return new et(e>>16&255,e>>8&255,e&255,1)}function zr(e,t,n,r){return r<=0&&(e=t=n=NaN),new et(e,t,n,r)}function Jp(e){return e instanceof Yn||(e=Bn(e)),e?(e=e.rgb(),new et(e.r,e.g,e.b,e.opacity)):new et}function eo(e,t,n,r){return arguments.length===1?Jp(e):new et(e,t,n,r==null?1:r)}function et(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Zi(et,eo,Bs(Yn,{brighter:function(e){return e=e==null?Ir:Math.pow(Ir,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?qn:Math.pow(qn,e),new et(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:Xs,formatHex:Xs,formatRgb:Js,toString:Js}));function Xs(){return"#"+to(this.r)+to(this.g)+to(this.b)}function Js(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function to(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Hs(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new vt(e,t,n,r)}function Zs(e){if(e instanceof vt)return new vt(e.h,e.s,e.l,e.opacity);if(e instanceof Yn||(e=Bn(e)),!e)return new vt;if(e instanceof vt)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,u=(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/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new vt(a,s,u,e.opacity)}function Hp(e,t,n,r){return arguments.length===1?Zs(e):new vt(e,t,n,r==null?1:r)}function vt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Zi(vt,Hp,Bs(Yn,{brighter:function(e){return e=e==null?Ir:Math.pow(Ir,e),new vt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?qn:Math.pow(qn,e),new vt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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 et(no(e>=240?e-240:e+120,i,r),no(e,i,r),no(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function no(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function eu(e){return function(){return e}}function Zp(e,t){return function(n){return e+n*t}}function e0(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 t0(e){return(e=+e)==1?tu:function(t,n){return n-t?e0(t,n,e):eu(isNaN(t)?n:t)}}function tu(e,t){var n=t-e;return n?Zp(e,n):eu(isNaN(e)?t:e)}const nu=function e(t){var n=t0(t);function r(i,o){var a=n((i=eo(i)).r,(o=eo(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=tu(i.opacity,o.opacity);return function(c){return i.r=a(c),i.g=s(c),i.b=u(c),i.opacity=l(c),i+""}}return r.gamma=e,r}(1);function It(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var ro=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,io=new RegExp(ro.source,"g");function n0(e){return function(){return e}}function r0(e){return function(t){return e(t)+""}}function i0(e,t){var n=ro.lastIndex=io.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=ro.exec(e))&&(i=io.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,u.push({i:a,x:It(r,i)})),n=io.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?r0(u[0].x):n0(t):(t=u.length,function(l){for(var c=0,d;c<t;++c)s[(d=u[c]).i]=d.x(l);return s.join("")})}var ru=180/Math.PI,oo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function iu(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*ru,skewX:Math.atan(u)*ru,scaleX:a,scaleY:s}}var Qn,ao,ou,kr;function o0(e){return e==="none"?oo:(Qn||(Qn=document.createElement("DIV"),ao=document.documentElement,ou=document.defaultView),Qn.style.transform=e,e=ou.getComputedStyle(ao.appendChild(Qn),null).getPropertyValue("transform"),ao.removeChild(Qn),e=e.slice(7,-1).split(","),iu(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function a0(e){return e==null||(kr||(kr=document.createElementNS("http://www.w3.org/2000/svg","g")),kr.setAttribute("transform",e),!(e=kr.transform.baseVal.consolidate()))?oo:(e=e.matrix,iu(e.a,e.b,e.c,e.d,e.e,e.f))}function au(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);v.push({i:p-4,x:It(l,d)},{i:p-2,x:It(c,f)})}else(d||f)&&h.push("translate("+d+t+f+n)}function a(l,c,d,f){l!==c?(l-c>180?c+=360:c-l>180&&(l+=360),f.push({i:d.push(i(d)+"rotate(",null,r)-2,x:It(l,c)})):c&&d.push(i(d)+"rotate("+c+r)}function s(l,c,d,f){l!==c?f.push({i:d.push(i(d)+"skewX(",null,r)-2,x:It(l,c)}):c&&d.push(i(d)+"skewX("+c+r)}function u(l,c,d,f,h,v){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");v.push({i:p-4,x:It(l,d)},{i:p-2,x:It(c,f)})}else(d!==1||f!==1)&&h.push(i(h)+"scale("+d+","+f+")")}return function(l,c){var d=[],f=[];return l=e(l),c=e(c),o(l.translateX,l.translateY,c.translateX,c.translateY,d,f),a(l.rotate,c.rotate,d,f),s(l.skewX,c.skewX,d,f),u(l.scaleX,l.scaleY,c.scaleX,c.scaleY,d,f),l=c=null,function(h){for(var v=-1,p=f.length,m;++v<p;)d[(m=f[v]).i]=m.x(h);return d.join("")}}}var s0=au(o0,"px, ","px)","deg)"),u0=au(a0,", ",")",")"),Wn=Math.SQRT2,so=2,su=4,l0=1e-12;function uu(e){return((e=Math.exp(e))+1/e)/2}function c0(e){return((e=Math.exp(e))-1/e)/2}function f0(e){return((e=Math.exp(2*e))-1)/(e+1)}function d0(e,t){var n=e[0],r=e[1],i=e[2],o=t[0],a=t[1],s=t[2],u=o-n,l=a-r,c=u*u+l*l,d,f;if(c<l0)f=Math.log(s/i)/Wn,d=function(M){return[n+M*u,r+M*l,i*Math.exp(Wn*M*f)]};else{var h=Math.sqrt(c),v=(s*s-i*i+su*c)/(2*i*so*h),p=(s*s-i*i-su*c)/(2*s*so*h),m=Math.log(Math.sqrt(v*v+1)-v),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-m)/Wn,d=function(M){var N=M*f,b=uu(m),y=i/(so*h)*(b*f0(Wn*N+m)-c0(m));return[n+y*u,r+y*l,i*b/uu(Wn*N+m)]}}return d.duration=f*1e3,d}var fn=0,Gn=0,Kn=0,lu=1e3,jr,Xn,$r=0,Qt=0,Rr=0,Jn=typeof performance=="object"&&performance.now?performance:Date,cu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Lr(){return Qt||(cu(h0),Qt=Jn.now()+Rr)}function h0(){Qt=0}function Pr(){this._call=this._time=this._next=null}Pr.prototype=fu.prototype={constructor:Pr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?Lr():+n)+(t==null?0:+t),!this._next&&Xn!==this&&(Xn?Xn._next=this:jr=this,Xn=this),this._call=e,this._time=n,uo()},stop:function(){this._call&&(this._call=null,this._time=1/0,uo())}};function fu(e,t,n){var r=new Pr;return r.restart(e,t,n),r}function p0(){Lr(),++fn;for(var e=jr,t;e;)(t=Qt-e._time)>=0&&e._call.call(null,t),e=e._next;--fn}function du(){Qt=($r=Jn.now())+Rr,fn=Gn=0;try{p0()}finally{fn=0,m0(),Qt=0}}function g0(){var e=Jn.now(),t=e-$r;t>lu&&(Rr-=t,$r=e)}function m0(){for(var e,t=jr,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:jr=n);Xn=e,uo(r)}function uo(e){if(!fn){Gn&&(Gn=clearTimeout(Gn));var t=e-Qt;t>24?(e<1/0&&(Gn=setTimeout(du,e-Jn.now()-Rr)),Kn&&(Kn=clearInterval(Kn))):(Kn||($r=Jn.now(),Kn=setInterval(g0,lu)),fn=1,cu(du))}}function hu(e,t,n){var r=new Pr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var v0=Ji("start","end","cancel","interrupt"),y0=[],pu=0,gu=1,lo=2,Fr=3,mu=4,co=5,Ur=6;function Yr(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;_0(e,n,{name:t,index:r,group:i,on:v0,tween:y0,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:pu})}function fo(e,t){var n=ft(e,t);if(n.state>pu)throw new Error("too late; already scheduled");return n}function wt(e,t){var n=ft(e,t);if(n.state>Fr)throw new Error("too late; already running");return n}function ft(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function _0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=fu(o,0,n.time);function o(l){n.state=gu,n.timer.restart(a,n.delay,n.time),n.delay<=l&&a(l-n.delay)}function a(l){var c,d,f,h;if(n.state!==gu)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===Fr)return hu(a);h.state===mu?(h.state=Ur,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=Ur,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(hu(function(){n.state===Fr&&(n.state=mu,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=lo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===lo){for(n.state=Fr,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(l){for(var c=l<n.duration?n.ease.call(null,l/n.duration):(n.timer.restart(u),n.state=co,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===co&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=Ur,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function qr(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>lo&&r.state<co,r.state=Ur,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function b0(e){return this.each(function(){qr(this,e)})}function x0(e,t){var n,r;return function(){var i=wt(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 M0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=wt(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===t){i[u]=s;break}u===l&&i.push(s)}o.tween=i}}function w0(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=ft(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?x0:M0)(n,e,t))}function ho(e,t,n){var r=e._id;return e.each(function(){var i=wt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ft(i,r).value[t]}}function vu(e,t){var n;return(typeof t=="number"?It:t instanceof Bn?nu:(n=Bn(t))?(t=n,nu):i0)(e,t)}function T0(e){return function(){this.removeAttribute(e)}}function N0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function E0(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 D0(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 O0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttribute(e):(a=this.getAttribute(e),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function C0(e,t,n){var r,i,o;return function(){var a,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),u=s+"",a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s)))}}function S0(e,t){var n=Fn(e),r=n==="transform"?u0:vu;return this.attrTween(e,typeof t=="function"?(n.local?C0:O0)(n,r,ho(this,"attr."+e,t)):t==null?(n.local?N0:T0)(n):(n.local?D0:E0)(n,r,t))}function A0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function I0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function z0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&I0(e,o)),n}return i._value=t,i}function k0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&A0(e,o)),n}return i._value=t,i}function j0(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=Fn(e);return this.tween(n,(r.local?z0:k0)(r,t))}function $0(e,t){return function(){fo(this,e).delay=+t.apply(this,arguments)}}function R0(e,t){return t=+t,function(){fo(this,e).delay=t}}function L0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$0:R0)(t,e)):ft(this.node(),t).delay}function P0(e,t){return function(){wt(this,e).duration=+t.apply(this,arguments)}}function F0(e,t){return t=+t,function(){wt(this,e).duration=t}}function U0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?P0:F0)(t,e)):ft(this.node(),t).duration}function Y0(e,t){if(typeof t!="function")throw new Error;return function(){wt(this,e).ease=t}}function q0(e){var t=this._id;return arguments.length?this.each(Y0(t,e)):ft(this.node(),t).ease}function V0(e){typeof e!="function"&&(e=qi(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]=[],u,l=0;l<a;++l)(u=o[l])&&e.call(u,u.__data__,l,o)&&s.push(u);return new Tt(r,this._parents,this._name,this._id)}function B0(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 u=t[s],l=n[s],c=u.length,d=a[s]=new Array(c),f,h=0;h<c;++h)(f=u[h]||l[h])&&(d[h]=f);for(;s<r;++s)a[s]=t[s];return new Tt(a,this._parents,this._name,this._id)}function Q0(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 W0(e,t,n){var r,i,o=Q0(t)?fo:wt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function G0(e,t){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(e):this.each(W0(n,e,t))}function K0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function X0(){return this.on("end.remove",K0(this._id))}function J0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Or(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s=r[a],u=s.length,l=o[a]=new Array(u),c,d,f=0;f<u;++f)(c=s[f])&&(d=e.call(c,c.__data__,f,s))&&("__data__"in c&&(d.__data__=c.__data__),l[f]=d,Yr(l[f],t,n,f,l,ft(c,n)));return new Tt(o,this._parents,t,n)}function H0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Yi(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u=r[s],l=u.length,c,d=0;d<l;++d)if(c=u[d]){for(var f=e.call(c,c.__data__,d,u),h,v=ft(c,n),p=0,m=f.length;p<m;++p)(h=f[p])&&Yr(h,t,n,p,f,v);o.push(f),a.push(c)}return new Tt(o,a,t,n)}var Z0=ln.prototype.constructor;function eg(){return new Z0(this._groups,this._parents)}function tg(e,t){var n,r,i;return function(){var o=Bt(this,e),a=(this.style.removeProperty(e),Bt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function yu(e){return function(){this.style.removeProperty(e)}}function ng(e,t,n){var r,i=n+"",o;return function(){var a=Bt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function rg(e,t,n){var r,i,o;return function(){var a=Bt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Bt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function ig(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=wt(this,e),l=u.on,c=u.value[o]==null?s||(s=yu(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function og(e,t,n){var r=(e+="")=="transform"?s0:vu;return t==null?this.styleTween(e,tg(e,r)).on("end.style."+e,yu(e)):typeof t=="function"?this.styleTween(e,rg(e,r,ho(this,"style."+e,t))).each(ig(this._id,e)):this.styleTween(e,ng(e,r,t),n).on("end.style."+e,null)}function ag(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function sg(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ag(e,a,n)),r}return o._value=t,o}function ug(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,sg(e,t,n==null?"":n))}function lg(e){return function(){this.textContent=e}}function cg(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function fg(e){return this.tween("text",typeof e=="function"?cg(ho(this,"text",e)):lg(e==null?"":e+""))}function dg(e){return function(t){this.textContent=e.call(this,t)}}function hg(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&dg(i)),t}return r._value=e,r}function pg(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,hg(e))}function gg(){for(var e=this._name,t=this._id,n=_u(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a=r[o],s=a.length,u,l=0;l<s;++l)if(u=a[l]){var c=ft(u,t);Yr(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Tt(r,this._parents,e,n)}function mg(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(o,a){var s={value:a},u={value:function(){--i===0&&o()}};n.each(function(){var l=wt(this,r),c=l.on;c!==e&&(t=(e=c).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),l.on=t})})}var vg=0;function Tt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function _u(){return++vg}var dn=ln.prototype;Tt.prototype={constructor:Tt,select:J0,selectAll:H0,filter:V0,merge:B0,selection:eg,transition:gg,call:dn.call,nodes:dn.nodes,node:dn.node,size:dn.size,empty:dn.empty,each:dn.each,on:G0,attr:S0,attrTween:j0,style:og,styleTween:ug,text:fg,textTween:pg,remove:X0,tween:w0,delay:L0,duration:U0,ease:q0,end:mg};function yg(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var po={time:null,delay:0,duration:250,ease:yg};function _g(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return po.time=Lr(),po;return n}function bg(e){var t,n;e instanceof Tt?(t=e._id,e=e._name):(t=_u(),(n=po).time=Lr(),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,u,l=0;l<s;++l)(u=a[l])&&Yr(u,e,t,l,a,n||_g(u,t));return new Tt(r,this._parents,e,t)}ln.prototype.interrupt=b0,ln.prototype.transition=bg;function Vr(e){return function(){return e}}function xg(e,t,n){this.target=e,this.type=t,this.transform=n}function Nt(e,t,n){this.k=e,this.x=t,this.y=n}Nt.prototype={constructor:Nt,scale:function(e){return e===1?this:new Nt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Nt(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 Br=new Nt(1,0,0);bu.prototype=Nt.prototype;function bu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Br;return e.__zoom}function go(){de.stopImmediatePropagation()}function Hn(){de.preventDefault(),de.stopImmediatePropagation()}function Mg(){return!de.ctrlKey&&!de.button}function wg(){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 xu(){return this.__zoom||Br}function Tg(){return-de.deltaY*(de.deltaMode===1?.05:de.deltaMode?1:.002)}function Ng(){return navigator.maxTouchPoints||"ontouchstart"in this}function Eg(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 Dg(){var e=Mg,t=wg,n=Eg,r=Tg,i=Ng,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=d0,l=Ji("start","zoom","end"),c,d,f=500,h=150,v=0;function p(g){g.property("__zoom",xu).on("wheel.zoom",S).on("mousedown.zoom",A).on("dblclick.zoom",C).filter(i).on("touchstart.zoom",D).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",z).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(g,w,k){var R=g.selection?g.selection():g;R.property("__zoom",xu),g!==R?N(g,w,k):R.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},p.scaleBy=function(g,w,k){p.scaleTo(g,function(){var R=this.__zoom.k,L=typeof w=="function"?w.apply(this,arguments):w;return R*L},k)},p.scaleTo=function(g,w,k){p.transform(g,function(){var R=t.apply(this,arguments),L=this.__zoom,B=k==null?M(R):typeof k=="function"?k.apply(this,arguments):k,V=L.invert(B),te=typeof w=="function"?w.apply(this,arguments):w;return n(x(m(L,te),B,V),R,a)},k)},p.translateBy=function(g,w,k){p.transform(g,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof k=="function"?k.apply(this,arguments):k),t.apply(this,arguments),a)})},p.translateTo=function(g,w,k,R){p.transform(g,function(){var L=t.apply(this,arguments),B=this.__zoom,V=R==null?M(L):typeof R=="function"?R.apply(this,arguments):R;return n(Br.translate(V[0],V[1]).scale(B.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof k=="function"?-k.apply(this,arguments):-k),L,a)},R)};function m(g,w){return w=Math.max(o[0],Math.min(o[1],w)),w===g.k?g:new Nt(w,g.x,g.y)}function x(g,w,k){var R=w[0]-k[0]*g.k,L=w[1]-k[1]*g.k;return R===g.x&&L===g.y?g:new Nt(g.k,R,L)}function M(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function N(g,w,k){g.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var R=this,L=arguments,B=b(R,L),V=t.apply(R,L),te=k==null?M(V):typeof k=="function"?k.apply(R,L):k,O=Math.max(V[1][0]-V[0][0],V[1][1]-V[0][1]),$=R.__zoom,G=typeof w=="function"?w.apply(R,L):w,K=u($.invert(te).concat(O/$.k),G.invert(te).concat(O/G.k));return function(Y){if(Y===1)Y=G;else{var J=K(Y),X=O/J[2];Y=new Nt(X,te[0]-J[0]*X,te[1]-J[1]*X)}B.zoom(null,Y)}})}function b(g,w,k){return!k&&g.__zooming||new y(g,w)}function y(g,w){this.that=g,this.args=w,this.active=0,this.extent=t.apply(g,w),this.taps=0}y.prototype={start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(g,w){return this.mouse&&g!=="mouse"&&(this.mouse[1]=w.invert(this.mouse[0])),this.touch0&&g!=="touch"&&(this.touch0[1]=w.invert(this.touch0[0])),this.touch1&&g!=="touch"&&(this.touch1[1]=w.invert(this.touch1[0])),this.that.__zoom=w,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(g){Us(new xg(p,g,this.that.__zoom),l.apply,l,[g,this.that,this.args])}};function S(){if(!e.apply(this,arguments))return;var g=b(this,arguments),w=this.__zoom,k=Math.max(o[0],Math.min(o[1],w.k*Math.pow(2,r.apply(this,arguments)))),R=Un(this);if(g.wheel)(g.mouse[0][0]!==R[0]||g.mouse[0][1]!==R[1])&&(g.mouse[1]=w.invert(g.mouse[0]=R)),clearTimeout(g.wheel);else{if(w.k===k)return;g.mouse=[R,w.invert(R)],qr(this),g.start()}Hn(),g.wheel=setTimeout(L,h),g.zoom("mouse",n(x(m(w,k),g.mouse[0],g.mouse[1]),g.extent,a));function L(){g.wheel=null,g.end()}}function A(){if(d||!e.apply(this,arguments))return;var g=b(this,arguments,!0),w=At(de.view).on("mousemove.zoom",B,!0).on("mouseup.zoom",V,!0),k=Un(this),R=de.clientX,L=de.clientY;Up(de.view),go(),g.mouse=[k,this.__zoom.invert(k)],qr(this),g.start();function B(){if(Hn(),!g.moved){var te=de.clientX-R,O=de.clientY-L;g.moved=te*te+O*O>v}g.zoom("mouse",n(x(g.that.__zoom,g.mouse[0]=Un(g.that),g.mouse[1]),g.extent,a))}function V(){w.on("mousemove.zoom mouseup.zoom",null),Yp(de.view,g.moved),Hn(),g.end()}}function C(){if(!!e.apply(this,arguments)){var g=this.__zoom,w=Un(this),k=g.invert(w),R=g.k*(de.shiftKey?.5:2),L=n(x(m(g,R),w,k),t.apply(this,arguments),a);Hn(),s>0?At(this).transition().duration(s).call(N,L,w):At(this).call(p.transform,L)}}function D(){if(!!e.apply(this,arguments)){var g=de.touches,w=g.length,k=b(this,arguments,de.changedTouches.length===w),R,L,B,V;for(go(),L=0;L<w;++L)B=g[L],V=Ki(this,g,B.identifier),V=[V,this.__zoom.invert(V),B.identifier],k.touch0?!k.touch1&&k.touch0[2]!==V[2]&&(k.touch1=V,k.taps=0):(k.touch0=V,R=!0,k.taps=1+!!c);c&&(c=clearTimeout(c)),R&&(k.taps<2&&(c=setTimeout(function(){c=null},f)),qr(this),k.start())}}function E(){if(!!this.__zooming){var g=b(this,arguments),w=de.changedTouches,k=w.length,R,L,B,V;for(Hn(),c&&(c=clearTimeout(c)),g.taps=0,R=0;R<k;++R)L=w[R],B=Ki(this,w,L.identifier),g.touch0&&g.touch0[2]===L.identifier?g.touch0[0]=B:g.touch1&&g.touch1[2]===L.identifier&&(g.touch1[0]=B);if(L=g.that.__zoom,g.touch1){var te=g.touch0[0],O=g.touch0[1],$=g.touch1[0],G=g.touch1[1],K=(K=$[0]-te[0])*K+(K=$[1]-te[1])*K,Y=(Y=G[0]-O[0])*Y+(Y=G[1]-O[1])*Y;L=m(L,Math.sqrt(K/Y)),B=[(te[0]+$[0])/2,(te[1]+$[1])/2],V=[(O[0]+G[0])/2,(O[1]+G[1])/2]}else if(g.touch0)B=g.touch0[0],V=g.touch0[1];else return;g.zoom("touch",n(x(L,B,V),g.extent,a))}}function z(){if(!!this.__zooming){var g=b(this,arguments),w=de.changedTouches,k=w.length,R,L;for(go(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),R=0;R<k;++R)L=w[R],g.touch0&&g.touch0[2]===L.identifier?delete g.touch0:g.touch1&&g.touch1[2]===L.identifier&&delete g.touch1;if(g.touch1&&!g.touch0&&(g.touch0=g.touch1,delete g.touch1),g.touch0)g.touch0[1]=this.__zoom.invert(g.touch0[0]);else if(g.end(),g.taps===2){var B=At(this).on("dblclick.zoom");B&&B.apply(this,arguments)}}}return p.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:Vr(+g),p):r},p.filter=function(g){return arguments.length?(e=typeof g=="function"?g:Vr(!!g),p):e},p.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:Vr(!!g),p):i},p.extent=function(g){return arguments.length?(t=typeof g=="function"?g:Vr([[+g[0][0],+g[0][1]],[+g[1][0],+g[1][1]]]),p):t},p.scaleExtent=function(g){return arguments.length?(o[0]=+g[0],o[1]=+g[1],p):[o[0],o[1]]},p.translateExtent=function(g){return arguments.length?(a[0][0]=+g[0][0],a[1][0]=+g[1][0],a[0][1]=+g[0][1],a[1][1]=+g[1][1],p):[[a[0][0],a[0][1]],[a[1][0],a[1][1]]]},p.constrain=function(g){return arguments.length?(n=g,p):n},p.duration=function(g){return arguments.length?(s=+g,p):s},p.interpolate=function(g){return arguments.length?(u=g,p):u},p.on=function(){var g=l.on.apply(l,arguments);return g===l?p:g},p.clickDistance=function(g){return arguments.length?(v=(g=+g)*g,p):Math.sqrt(v)},p}const Og=St(Object.freeze(Object.defineProperty({__proto__:null,zoom:Dg,zoomTransform:bu,zoomIdentity:Br},Symbol.toStringTag,{value:"Module"})));var Mu={},wu=Object.prototype.hasOwnProperty;function mo(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--&&mo(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(wu.call(e,n)&&++r&&!wu.call(t,n)||!(n in t)||!mo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}Mu.dequal=mo;var Tu={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,p,m){typeof h=="object"&&(v=h.depth,p=h.prototype,m=h.includeNonEnumerable,h=h.circular);var x=[],M=[],N=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof v>"u"&&(v=1/0);function b(y,S){if(y===null)return null;if(S===0)return y;var A,C;if(typeof y!="object")return y;if(n(y,r))A=new r;else if(n(y,i))A=new i;else if(n(y,o))A=new o(function(B,V){y.then(function(te){B(b(te,S-1))},function(te){V(b(te,S-1))})});else if(a.__isArray(y))A=[];else if(a.__isRegExp(y))A=new RegExp(y.source,d(y)),y.lastIndex&&(A.lastIndex=y.lastIndex);else if(a.__isDate(y))A=new Date(y.getTime());else{if(N&&Buffer.isBuffer(y))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(y.length):A=new Buffer(y.length),y.copy(A),A;n(y,Error)?A=Object.create(y):typeof p>"u"?(C=Object.getPrototypeOf(y),A=Object.create(C)):(A=Object.create(p),C=p)}if(h){var D=x.indexOf(y);if(D!=-1)return M[D];x.push(y),M.push(A)}n(y,r)&&y.forEach(function(B,V){var te=b(V,S-1),O=b(B,S-1);A.set(te,O)}),n(y,i)&&y.forEach(function(B){var V=b(B,S-1);A.add(V)});for(var E in y){var z;C&&(z=Object.getOwnPropertyDescriptor(C,E)),!(z&&z.set==null)&&(A[E]=b(y[E],S-1))}if(Object.getOwnPropertySymbols)for(var g=Object.getOwnPropertySymbols(y),E=0;E<g.length;E++){var w=g[E],k=Object.getOwnPropertyDescriptor(y,w);k&&!k.enumerable&&!m||(A[w]=b(y[w],S-1),k.enumerable||Object.defineProperty(A,w,{enumerable:!1}))}if(m)for(var R=Object.getOwnPropertyNames(y),E=0;E<R.length;E++){var L=R[E],k=Object.getOwnPropertyDescriptor(y,L);k&&k.enumerable||(A[L]=b(y[L],S-1),Object.defineProperty(A,L,{enumerable:!1}))}return A}return b(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 u(f){return typeof f=="object"&&s(f)==="[object Date]"}a.__isDate=u;function l(f){return typeof f=="object"&&s(f)==="[object Array]"}a.__isArray=l;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)})(Tu);var Qr,Cg=new Uint8Array(16);function Nu(){if(!Qr&&(Qr=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Qr))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Qr(Cg)}const Sg=/^(?:[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 Wr(e){return typeof e=="string"&&Sg.test(e)}for(var ke=[],vo=0;vo<256;++vo)ke.push((vo+256).toString(16).substr(1));function Gr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(ke[e[t+0]]+ke[e[t+1]]+ke[e[t+2]]+ke[e[t+3]]+"-"+ke[e[t+4]]+ke[e[t+5]]+"-"+ke[e[t+6]]+ke[e[t+7]]+"-"+ke[e[t+8]]+ke[e[t+9]]+"-"+ke[e[t+10]]+ke[e[t+11]]+ke[e[t+12]]+ke[e[t+13]]+ke[e[t+14]]+ke[e[t+15]]).toLowerCase();if(!Wr(n))throw TypeError("Stringified UUID is invalid");return n}var Eu,yo,_o=0,bo=0;function Ag(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||Eu,a=e.clockseq!==void 0?e.clockseq:yo;if(o==null||a==null){var s=e.random||(e.rng||Nu)();o==null&&(o=Eu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=yo=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:bo+1,c=u-_o+(l-bo)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>_o)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_o=u,bo=l,yo=a,u+=122192928e5;var d=((u&268435455)*1e4+l)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;var f=u/4294967296*1e4&268435455;i[r++]=f>>>8&255,i[r++]=f&255,i[r++]=f>>>24&15|16,i[r++]=f>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(var h=0;h<6;++h)i[r+h]=o[h];return t||Gr(i)}function Du(e){if(!Wr(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function Ig(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var zg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",kg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Ou(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=Ig(i)),typeof o=="string"&&(o=Du(o)),o.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var u=new Uint8Array(16+i.length);if(u.set(o),u.set(i,o.length),u=n(u),u[6]=u[6]&15|t,u[8]=u[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=u[l];return a}return Gr(u)}try{r.name=e}catch{}return r.DNS=zg,r.URL=kg,r}function jg(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return $g(Rg(Lg(e),e.length*8))}function $g(e){for(var t=[],n=e.length*32,r="0123456789abcdef",i=0;i<n;i+=8){var o=e[i>>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(o&15),16);t.push(a)}return t}function Cu(e){return(e+64>>>9<<4)+14+1}function Rg(e,t){e[t>>5]|=128<<t%32,e[Cu(t)-1]=t;for(var n=1732584193,r=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=n,u=r,l=i,c=o;n=$e(n,r,i,o,e[a],7,-680876936),o=$e(o,n,r,i,e[a+1],12,-389564586),i=$e(i,o,n,r,e[a+2],17,606105819),r=$e(r,i,o,n,e[a+3],22,-1044525330),n=$e(n,r,i,o,e[a+4],7,-176418897),o=$e(o,n,r,i,e[a+5],12,1200080426),i=$e(i,o,n,r,e[a+6],17,-1473231341),r=$e(r,i,o,n,e[a+7],22,-45705983),n=$e(n,r,i,o,e[a+8],7,1770035416),o=$e(o,n,r,i,e[a+9],12,-1958414417),i=$e(i,o,n,r,e[a+10],17,-42063),r=$e(r,i,o,n,e[a+11],22,-1990404162),n=$e(n,r,i,o,e[a+12],7,1804603682),o=$e(o,n,r,i,e[a+13],12,-40341101),i=$e(i,o,n,r,e[a+14],17,-1502002290),r=$e(r,i,o,n,e[a+15],22,1236535329),n=Re(n,r,i,o,e[a+1],5,-165796510),o=Re(o,n,r,i,e[a+6],9,-1069501632),i=Re(i,o,n,r,e[a+11],14,643717713),r=Re(r,i,o,n,e[a],20,-373897302),n=Re(n,r,i,o,e[a+5],5,-701558691),o=Re(o,n,r,i,e[a+10],9,38016083),i=Re(i,o,n,r,e[a+15],14,-660478335),r=Re(r,i,o,n,e[a+4],20,-405537848),n=Re(n,r,i,o,e[a+9],5,568446438),o=Re(o,n,r,i,e[a+14],9,-1019803690),i=Re(i,o,n,r,e[a+3],14,-187363961),r=Re(r,i,o,n,e[a+8],20,1163531501),n=Re(n,r,i,o,e[a+13],5,-1444681467),o=Re(o,n,r,i,e[a+2],9,-51403784),i=Re(i,o,n,r,e[a+7],14,1735328473),r=Re(r,i,o,n,e[a+12],20,-1926607734),n=Le(n,r,i,o,e[a+5],4,-378558),o=Le(o,n,r,i,e[a+8],11,-2022574463),i=Le(i,o,n,r,e[a+11],16,1839030562),r=Le(r,i,o,n,e[a+14],23,-35309556),n=Le(n,r,i,o,e[a+1],4,-1530992060),o=Le(o,n,r,i,e[a+4],11,1272893353),i=Le(i,o,n,r,e[a+7],16,-155497632),r=Le(r,i,o,n,e[a+10],23,-1094730640),n=Le(n,r,i,o,e[a+13],4,681279174),o=Le(o,n,r,i,e[a],11,-358537222),i=Le(i,o,n,r,e[a+3],16,-722521979),r=Le(r,i,o,n,e[a+6],23,76029189),n=Le(n,r,i,o,e[a+9],4,-640364487),o=Le(o,n,r,i,e[a+12],11,-421815835),i=Le(i,o,n,r,e[a+15],16,530742520),r=Le(r,i,o,n,e[a+2],23,-995338651),n=Pe(n,r,i,o,e[a],6,-198630844),o=Pe(o,n,r,i,e[a+7],10,1126891415),i=Pe(i,o,n,r,e[a+14],15,-1416354905),r=Pe(r,i,o,n,e[a+5],21,-57434055),n=Pe(n,r,i,o,e[a+12],6,1700485571),o=Pe(o,n,r,i,e[a+3],10,-1894986606),i=Pe(i,o,n,r,e[a+10],15,-1051523),r=Pe(r,i,o,n,e[a+1],21,-2054922799),n=Pe(n,r,i,o,e[a+8],6,1873313359),o=Pe(o,n,r,i,e[a+15],10,-30611744),i=Pe(i,o,n,r,e[a+6],15,-1560198380),r=Pe(r,i,o,n,e[a+13],21,1309151649),n=Pe(n,r,i,o,e[a+4],6,-145523070),o=Pe(o,n,r,i,e[a+11],10,-1120210379),i=Pe(i,o,n,r,e[a+2],15,718787259),r=Pe(r,i,o,n,e[a+9],21,-343485551),n=zt(n,s),r=zt(r,u),i=zt(i,l),o=zt(o,c)}return[n,r,i,o]}function Lg(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(Cu(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function zt(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function Pg(e,t){return e<<t|e>>>32-t}function Kr(e,t,n,r,i,o){return zt(Pg(zt(zt(t,e),zt(r,o)),i),n)}function $e(e,t,n,r,i,o,a){return Kr(t&n|~t&r,e,t,i,o,a)}function Re(e,t,n,r,i,o,a){return Kr(t&r|n&~r,e,t,i,o,a)}function Le(e,t,n,r,i,o,a){return Kr(t^n^r,e,t,i,o,a)}function Pe(e,t,n,r,i,o,a){return Kr(n^(t|~r),e,t,i,o,a)}var Fg=Ou("v3",48,jg);const Ug=Fg;function Yg(e,t,n){e=e||{};var r=e.random||(e.rng||Nu)();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 Gr(r)}function qg(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function xo(e,t){return e<<t|e>>>32-t}function Vg(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var i=0;i<r.length;++i)e.push(r.charCodeAt(i))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=e.length/4+2,a=Math.ceil(o/16),s=new Array(a),u=0;u<a;++u){for(var l=new Uint32Array(16),c=0;c<16;++c)l[c]=e[u*64+c*4]<<24|e[u*64+c*4+1]<<16|e[u*64+c*4+2]<<8|e[u*64+c*4+3];s[u]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=s[d][h];for(var v=16;v<80;++v)f[v]=xo(f[v-3]^f[v-8]^f[v-14]^f[v-16],1);for(var p=n[0],m=n[1],x=n[2],M=n[3],N=n[4],b=0;b<80;++b){var y=Math.floor(b/20),S=xo(p,5)+qg(y,m,x,M)+N+t[y]+f[b]>>>0;N=M,M=x,x=xo(m,30)>>>0,m=p,p=S}n[0]=n[0]+p>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+x>>>0,n[3]=n[3]+M>>>0,n[4]=n[4]+N>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var Bg=Ou("v5",80,Vg);const Qg=Bg,Wg="00000000-0000-0000-0000-000000000000";function Gg(e){if(!Wr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Kg=St(Object.freeze(Object.defineProperty({__proto__:null,v1:Ag,v3:Ug,v4:Yg,v5:Qg,NIL:Wg,version:Gg,validate:Wr,stringify:Gr,parse:Du},Symbol.toStringTag,{value:"Module"})));var Mo={},wo={exports:{}},ue={exports:{}},To={exports:{}},ge={};/** @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 Su;function Xg(){if(Su)return he;Su=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,u=e?Symbol.for("react.async_mode"):60111,l=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,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function N(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case t:switch(y=y.type,y){case u:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case c:case v:case h:case a:return y;default:return S}}case n:return S}}}function b(y){return N(y)===l}return he.AsyncMode=u,he.ConcurrentMode=l,he.ContextConsumer=s,he.ContextProvider=a,he.Element=t,he.ForwardRef=c,he.Fragment=r,he.Lazy=v,he.Memo=h,he.Portal=n,he.Profiler=o,he.StrictMode=i,he.Suspense=d,he.isAsyncMode=function(y){return b(y)||N(y)===u},he.isConcurrentMode=b,he.isContextConsumer=function(y){return N(y)===s},he.isContextProvider=function(y){return N(y)===a},he.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},he.isForwardRef=function(y){return N(y)===c},he.isFragment=function(y){return N(y)===r},he.isLazy=function(y){return N(y)===v},he.isMemo=function(y){return N(y)===h},he.isPortal=function(y){return N(y)===n},he.isProfiler=function(y){return N(y)===o},he.isStrictMode=function(y){return N(y)===i},he.isSuspense=function(y){return N(y)===d},he.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||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===m||y.$$typeof===x||y.$$typeof===M||y.$$typeof===p)},he.typeOf=N,he}var pe={};/** @license React v16.13.1
34
+ */var Su;function Xg(){if(Su)return ge;Su=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,u=e?Symbol.for("react.async_mode"):60111,l=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,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function N(y){if(typeof y=="object"&&y!==null){var S=y.$$typeof;switch(S){case t:switch(y=y.type,y){case u:case l:case r:case o:case i:case d:return y;default:switch(y=y&&y.$$typeof,y){case s:case c:case v:case h:case a:return y;default:return S}}case n:return S}}}function b(y){return N(y)===l}return ge.AsyncMode=u,ge.ConcurrentMode=l,ge.ContextConsumer=s,ge.ContextProvider=a,ge.Element=t,ge.ForwardRef=c,ge.Fragment=r,ge.Lazy=v,ge.Memo=h,ge.Portal=n,ge.Profiler=o,ge.StrictMode=i,ge.Suspense=d,ge.isAsyncMode=function(y){return b(y)||N(y)===u},ge.isConcurrentMode=b,ge.isContextConsumer=function(y){return N(y)===s},ge.isContextProvider=function(y){return N(y)===a},ge.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===t},ge.isForwardRef=function(y){return N(y)===c},ge.isFragment=function(y){return N(y)===r},ge.isLazy=function(y){return N(y)===v},ge.isMemo=function(y){return N(y)===h},ge.isPortal=function(y){return N(y)===n},ge.isProfiler=function(y){return N(y)===o},ge.isStrictMode=function(y){return N(y)===i},ge.isSuspense=function(y){return N(y)===d},ge.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===l||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===m||y.$$typeof===x||y.$$typeof===M||y.$$typeof===p)},ge.typeOf=N,ge}var me={};/** @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 Au;function Jg(){return Au||(Au=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,u=e?Symbol.for("react.async_mode"):60111,l=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,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function N(P){return typeof P=="string"||typeof P=="function"||P===r||P===l||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===c||P.$$typeof===m||P.$$typeof===x||P.$$typeof===M||P.$$typeof===p)}function b(P){if(typeof P=="object"&&P!==null){var Ye=P.$$typeof;switch(Ye){case t:var Q=P.type;switch(Q){case u:case l:case r:case o:case i:case d:return Q;default:var at=Q&&Q.$$typeof;switch(at){case s:case c:case v:case h:case a:return at;default:return Ye}}case n:return Ye}}}var y=u,S=l,A=s,C=a,D=t,E=c,z=r,g=v,w=h,k=n,R=o,L=i,B=d,V=!1;function te(P){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(P)||b(P)===u}function O(P){return b(P)===l}function $(P){return b(P)===s}function G(P){return b(P)===a}function K(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function U(P){return b(P)===c}function J(P){return b(P)===r}function X(P){return b(P)===v}function H(P){return b(P)===h}function ee(P){return b(P)===n}function re(P){return b(P)===o}function ne(P){return b(P)===i}function Se(P){return b(P)===d}pe.AsyncMode=y,pe.ConcurrentMode=S,pe.ContextConsumer=A,pe.ContextProvider=C,pe.Element=D,pe.ForwardRef=E,pe.Fragment=z,pe.Lazy=g,pe.Memo=w,pe.Portal=k,pe.Profiler=R,pe.StrictMode=L,pe.Suspense=B,pe.isAsyncMode=te,pe.isConcurrentMode=O,pe.isContextConsumer=$,pe.isContextProvider=G,pe.isElement=K,pe.isForwardRef=U,pe.isFragment=J,pe.isLazy=X,pe.isMemo=H,pe.isPortal=ee,pe.isProfiler=re,pe.isStrictMode=ne,pe.isSuspense=Se,pe.isValidElementType=N,pe.typeOf=b}()),pe}var Iu;function zu(){return Iu||(Iu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Xg():e.exports=Jg()}(To)),To.exports}/*
41
+ */var Au;function Jg(){return Au||(Au=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,u=e?Symbol.for("react.async_mode"):60111,l=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,p=e?Symbol.for("react.block"):60121,m=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,M=e?Symbol.for("react.scope"):60119;function N(P){return typeof P=="string"||typeof P=="function"||P===r||P===l||P===o||P===i||P===d||P===f||typeof P=="object"&&P!==null&&(P.$$typeof===v||P.$$typeof===h||P.$$typeof===a||P.$$typeof===s||P.$$typeof===c||P.$$typeof===m||P.$$typeof===x||P.$$typeof===M||P.$$typeof===p)}function b(P){if(typeof P=="object"&&P!==null){var qe=P.$$typeof;switch(qe){case t:var Q=P.type;switch(Q){case u:case l:case r:case o:case i:case d:return Q;default:var ot=Q&&Q.$$typeof;switch(ot){case s:case c:case v:case h:case a:return ot;default:return qe}}case n:return qe}}}var y=u,S=l,A=s,C=a,D=t,E=c,z=r,g=v,w=h,k=n,R=o,L=i,B=d,V=!1;function te(P){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),O(P)||b(P)===u}function O(P){return b(P)===l}function $(P){return b(P)===s}function G(P){return b(P)===a}function K(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function Y(P){return b(P)===c}function J(P){return b(P)===r}function X(P){return b(P)===v}function H(P){return b(P)===h}function ee(P){return b(P)===n}function re(P){return b(P)===o}function ne(P){return b(P)===i}function Ce(P){return b(P)===d}me.AsyncMode=y,me.ConcurrentMode=S,me.ContextConsumer=A,me.ContextProvider=C,me.Element=D,me.ForwardRef=E,me.Fragment=z,me.Lazy=g,me.Memo=w,me.Portal=k,me.Profiler=R,me.StrictMode=L,me.Suspense=B,me.isAsyncMode=te,me.isConcurrentMode=O,me.isContextConsumer=$,me.isContextProvider=G,me.isElement=K,me.isForwardRef=Y,me.isFragment=J,me.isLazy=X,me.isMemo=H,me.isPortal=ee,me.isProfiler=re,me.isStrictMode=ne,me.isSuspense=Ce,me.isValidElementType=N,me.typeOf=b}()),me}var Iu;function zu(){return Iu||(Iu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Xg():e.exports=Jg()}(To)),To.exports}/*
42
42
  object-assign
43
43
  (c) Sindre Sorhus
44
44
  @license MIT
45
- */var No,ku;function Hg(){if(ku)return No;ku=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 u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return No=i()?Object.assign:function(o,a){for(var s,u=r(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(u[l[f]]=s[l[f]])}}return u},No}var Eo,ju;function Do(){if(ju)return Eo;ju=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Eo=e,Eo}var Oo,$u;function Ru(){return $u||($u=1,Oo=Function.call.bind(Object.prototype.hasOwnProperty)),Oo}var Co,Lu;function Zg(){if(Lu)return Co;Lu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Do(),n={},r=Ru();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){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((u||"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,u,s,null,t)}catch(v){d=v}if(d&&!(d instanceof Error)&&e((u||"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=l?l():"";e("Failed "+s+" type: "+d.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Co=i,Co}var So,Pu;function e1(){if(Pu)return So;Pu=1;var e=zu(),t=Hg(),n=Do(),r=Ru(),i=Zg(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return So=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(O){var $=O&&(l&&O[l]||O[c]);if(typeof $=="function")return $}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:M(),arrayOf:N,element:b(),elementType:y(),instanceOf:S,node:E(),objectOf:C,oneOf:A,oneOfType:D,shape:g,exact:w};function v(O,$){return O===$?O!==0||1/O===1/$:O!==O&&$!==$}function p(O,$){this.message=O,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function m(O){if(process.env.NODE_ENV!=="production")var $={},G=0;function K(J,X,H,ee,re,ne,Se){if(ee=ee||f,ne=ne||H,Se!==n){if(u){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ye=ee+":"+H;!$[Ye]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),$[Ye]=!0,G++)}}return X[H]==null?J?X[H]===null?new p("The "+re+" `"+ne+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+re+" `"+ne+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:O(X,H,ee,re,ne)}var U=K.bind(null,!1);return U.isRequired=K.bind(null,!0),U}function x(O){function $(G,K,U,J,X,H){var ee=G[K],re=L(ee);if(re!==O){var ne=B(ee);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ne+"` supplied to `"+U+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return m($)}function M(){return m(a)}function N(O){function $(G,K,U,J,X){if(typeof O!="function")return new p("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside arrayOf.");var H=G[K];if(!Array.isArray(H)){var ee=L(H);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected an array."))}for(var re=0;re<H.length;re++){var ne=O(H,re,U,J,X+"["+re+"]",n);if(ne instanceof Error)return ne}return null}return m($)}function b(){function O($,G,K,U,J){var X=$[G];if(!s(X)){var H=L(X);return new p("Invalid "+U+" `"+J+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return m(O)}function y(){function O($,G,K,U,J){var X=$[G];if(!e.isValidElementType(X)){var H=L(X);return new p("Invalid "+U+" `"+J+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return m(O)}function S(O){function $(G,K,U,J,X){if(!(G[K]instanceof O)){var H=O.name||f,ee=te(G[K]);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected ")+("instance of `"+H+"`."))}return null}return m($)}function A(O){if(!Array.isArray(O))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 $(G,K,U,J,X){for(var H=G[K],ee=0;ee<O.length;ee++)if(v(H,O[ee]))return null;var re=JSON.stringify(O,function(Se,P){var Ye=B(P);return Ye==="symbol"?String(P):P});return new p("Invalid "+J+" `"+X+"` of value `"+String(H)+"` "+("supplied to `"+U+"`, expected one of "+re+"."))}return m($)}function C(O){function $(G,K,U,J,X){if(typeof O!="function")return new p("Property `"+X+"` of component `"+U+"` has invalid PropType notation inside objectOf.");var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+U+"`, expected an object."));for(var re in H)if(r(H,re)){var ne=O(H,re,U,J,X+"."+re,n);if(ne instanceof Error)return ne}return null}return m($)}function D(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<O.length;$++){var G=O[$];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+$+"."),a}function K(U,J,X,H,ee){for(var re=[],ne=0;ne<O.length;ne++){var Se=O[ne],P=Se(U,J,X,H,ee,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&re.push(P.data.expectedType)}var Ye=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new p("Invalid "+H+" `"+ee+"` supplied to "+("`"+X+"`"+Ye+"."))}return m(K)}function E(){function O($,G,K,U,J){return k($[G])?null:new p("Invalid "+U+" `"+J+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return m(O)}function z(O,$,G,K,U){return new p((O||"React class")+": "+$+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+U+"`.")}function g(O){function $(G,K,U,J,X){var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type `"+ee+"` "+("supplied to `"+U+"`, expected `object`."));for(var re in O){var ne=O[re];if(typeof ne!="function")return z(U,J,X,re,B(ne));var Se=ne(H,re,U,J,X+"."+re,n);if(Se)return Se}return null}return m($)}function w(O){function $(G,K,U,J,X){var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type `"+ee+"` "+("supplied to `"+U+"`, expected `object`."));var re=t({},G[K],O);for(var ne in re){var Se=O[ne];if(r(O,ne)&&typeof Se!="function")return z(U,J,X,ne,B(Se));if(!Se)return new p("Invalid "+J+" `"+X+"` key `"+ne+"` supplied to `"+U+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
46
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=Se(H,ne,U,J,X+"."+ne,n);if(P)return P}return null}return m($)}function k(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(k);if(O===null||s(O))return!0;var $=d(O);if($){var G=$.call(O),K;if($!==O.entries){for(;!(K=G.next()).done;)if(!k(K.value))return!1}else for(;!(K=G.next()).done;){var U=K.value;if(U&&!k(U[1]))return!1}}else return!1;return!0;default:return!1}}function R(O,$){return O==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function L(O){var $=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":R($,O)?"symbol":$}function B(O){if(typeof O>"u"||O===null)return""+O;var $=L(O);if($==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return $}function V(O){var $=B(O);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function te(O){return!O.constructor||!O.constructor.name?f:O.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},So}var Ao,Fu;function t1(){if(Fu)return Ao;Fu=1;var e=Do();function t(){}function n(){}return n.resetWarningCache=t,Ao=function(){function r(a,s,u,l,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},Ao}if(process.env.NODE_ENV!=="production"){var n1=zu(),r1=!0;ue.exports=e1()(n1.isElement,r1)}else ue.exports=t1()();var Xr={exports:{}},i1=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)}})},Uu=function(){};process.env.NODE_ENV!=="production"&&(Uu=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 o1=Uu;function Yu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function qu(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function Vu(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}}Yu.__suppressDeprecationWarning=!0,qu.__suppressDeprecationWarning=!0,Vu.__suppressDeprecationWarning=!0;function a1(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 No,ku;function Hg(){if(ku)return No;ku=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 u=Object.getOwnPropertyNames(a).map(function(c){return a[c]});if(u.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(c){l[c]=c}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return No=i()?Object.assign:function(o,a){for(var s,u=r(o),l,c=1;c<arguments.length;c++){s=Object(arguments[c]);for(var d in s)t.call(s,d)&&(u[d]=s[d]);if(e){l=e(s);for(var f=0;f<l.length;f++)n.call(s,l[f])&&(u[l[f]]=s[l[f]])}}return u},No}var Eo,ju;function Do(){if(ju)return Eo;ju=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Eo=e,Eo}var Oo,$u;function Ru(){return $u||($u=1,Oo=Function.call.bind(Object.prototype.hasOwnProperty)),Oo}var Co,Lu;function Zg(){if(Lu)return Co;Lu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Do(),n={},r=Ru();e=function(o){var a="Warning: "+o;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(o,a,s,u,l){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((u||"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,u,s,null,t)}catch(v){d=v}if(d&&!(d instanceof Error)&&e((u||"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=l?l():"";e("Failed "+s+" type: "+d.message+(h!=null?h:""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Co=i,Co}var So,Pu;function e1(){if(Pu)return So;Pu=1;var e=zu(),t=Hg(),n=Do(),r=Ru(),i=Zg(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var u="Warning: "+s;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return So=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(O){var $=O&&(l&&O[l]||O[c]);if(typeof $=="function")return $}var f="<<anonymous>>",h={array:x("array"),bigint:x("bigint"),bool:x("boolean"),func:x("function"),number:x("number"),object:x("object"),string:x("string"),symbol:x("symbol"),any:M(),arrayOf:N,element:b(),elementType:y(),instanceOf:S,node:E(),objectOf:C,oneOf:A,oneOfType:D,shape:g,exact:w};function v(O,$){return O===$?O!==0||1/O===1/$:O!==O&&$!==$}function p(O,$){this.message=O,this.data=$&&typeof $=="object"?$:{},this.stack=""}p.prototype=Error.prototype;function m(O){if(process.env.NODE_ENV!=="production")var $={},G=0;function K(J,X,H,ee,re,ne,Ce){if(ee=ee||f,ne=ne||H,Ce!==n){if(u){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var qe=ee+":"+H;!$[qe]&&G<3&&(o("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),$[qe]=!0,G++)}}return X[H]==null?J?X[H]===null?new p("The "+re+" `"+ne+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+re+" `"+ne+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:O(X,H,ee,re,ne)}var Y=K.bind(null,!1);return Y.isRequired=K.bind(null,!0),Y}function x(O){function $(G,K,Y,J,X,H){var ee=G[K],re=L(ee);if(re!==O){var ne=B(ee);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ne+"` supplied to `"+Y+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return m($)}function M(){return m(a)}function N(O){function $(G,K,Y,J,X){if(typeof O!="function")return new p("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside arrayOf.");var H=G[K];if(!Array.isArray(H)){var ee=L(H);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an array."))}for(var re=0;re<H.length;re++){var ne=O(H,re,Y,J,X+"["+re+"]",n);if(ne instanceof Error)return ne}return null}return m($)}function b(){function O($,G,K,Y,J){var X=$[G];if(!s(X)){var H=L(X);return new p("Invalid "+Y+" `"+J+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement."))}return null}return m(O)}function y(){function O($,G,K,Y,J){var X=$[G];if(!e.isValidElementType(X)){var H=L(X);return new p("Invalid "+Y+" `"+J+"` of type "+("`"+H+"` supplied to `"+K+"`, expected a single ReactElement type."))}return null}return m(O)}function S(O){function $(G,K,Y,J,X){if(!(G[K]instanceof O)){var H=O.name||f,ee=te(G[K]);return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected ")+("instance of `"+H+"`."))}return null}return m($)}function A(O){if(!Array.isArray(O))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 $(G,K,Y,J,X){for(var H=G[K],ee=0;ee<O.length;ee++)if(v(H,O[ee]))return null;var re=JSON.stringify(O,function(Ce,P){var qe=B(P);return qe==="symbol"?String(P):P});return new p("Invalid "+J+" `"+X+"` of value `"+String(H)+"` "+("supplied to `"+Y+"`, expected one of "+re+"."))}return m($)}function C(O){function $(G,K,Y,J,X){if(typeof O!="function")return new p("Property `"+X+"` of component `"+Y+"` has invalid PropType notation inside objectOf.");var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type "+("`"+ee+"` supplied to `"+Y+"`, expected an object."));for(var re in H)if(r(H,re)){var ne=O(H,re,Y,J,X+"."+re,n);if(ne instanceof Error)return ne}return null}return m($)}function D(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var $=0;$<O.length;$++){var G=O[$];if(typeof G!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+V(G)+" at index "+$+"."),a}function K(Y,J,X,H,ee){for(var re=[],ne=0;ne<O.length;ne++){var Ce=O[ne],P=Ce(Y,J,X,H,ee,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&re.push(P.data.expectedType)}var qe=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new p("Invalid "+H+" `"+ee+"` supplied to "+("`"+X+"`"+qe+"."))}return m(K)}function E(){function O($,G,K,Y,J){return k($[G])?null:new p("Invalid "+Y+" `"+J+"` supplied to "+("`"+K+"`, expected a ReactNode."))}return m(O)}function z(O,$,G,K,Y){return new p((O||"React class")+": "+$+" type `"+G+"."+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Y+"`.")}function g(O){function $(G,K,Y,J,X){var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));for(var re in O){var ne=O[re];if(typeof ne!="function")return z(Y,J,X,re,B(ne));var Ce=ne(H,re,Y,J,X+"."+re,n);if(Ce)return Ce}return null}return m($)}function w(O){function $(G,K,Y,J,X){var H=G[K],ee=L(H);if(ee!=="object")return new p("Invalid "+J+" `"+X+"` of type `"+ee+"` "+("supplied to `"+Y+"`, expected `object`."));var re=t({},G[K],O);for(var ne in re){var Ce=O[ne];if(r(O,ne)&&typeof Ce!="function")return z(Y,J,X,ne,B(Ce));if(!Ce)return new p("Invalid "+J+" `"+X+"` key `"+ne+"` supplied to `"+Y+"`.\nBad object: "+JSON.stringify(G[K],null," ")+`
46
+ Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=Ce(H,ne,Y,J,X+"."+ne,n);if(P)return P}return null}return m($)}function k(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(k);if(O===null||s(O))return!0;var $=d(O);if($){var G=$.call(O),K;if($!==O.entries){for(;!(K=G.next()).done;)if(!k(K.value))return!1}else for(;!(K=G.next()).done;){var Y=K.value;if(Y&&!k(Y[1]))return!1}}else return!1;return!0;default:return!1}}function R(O,$){return O==="symbol"?!0:$?$["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&$ instanceof Symbol:!1}function L(O){var $=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":R($,O)?"symbol":$}function B(O){if(typeof O>"u"||O===null)return""+O;var $=L(O);if($==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return $}function V(O){var $=B(O);switch($){case"array":case"object":return"an "+$;case"boolean":case"date":case"regexp":return"a "+$;default:return $}}function te(O){return!O.constructor||!O.constructor.name?f:O.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},So}var Ao,Fu;function t1(){if(Fu)return Ao;Fu=1;var e=Do();function t(){}function n(){}return n.resetWarningCache=t,Ao=function(){function r(a,s,u,l,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},Ao}if(process.env.NODE_ENV!=="production"){var n1=zu(),r1=!0;ue.exports=e1()(n1.isElement,r1)}else ue.exports=t1()();var Xr={exports:{}},i1=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)}})},Uu=function(){};process.env.NODE_ENV!=="production"&&(Uu=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 o1=Uu;function Yu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function qu(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function Vu(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}}Yu.__suppressDeprecationWarning=!0,qu.__suppressDeprecationWarning=!0,Vu.__suppressDeprecationWarning=!0;function a1(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(O),null," "));var P=Se(H,ne,U,J,X+"."+
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=Yu,t.componentWillReceiveProps=qu),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=Vu;var s=t.componentDidUpdate;t.componentDidUpdate=function(l,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,l,c,f)}}return e}const s1=Ct(Object.freeze(Object.defineProperty({__proto__:null,polyfill:a1},Symbol.toStringTag,{value:"Module"})));var Jr={};Jr.__esModule=!0,Jr.getChildMapping=l1,Jr.mergeChildMappings=c1;var u1=st.default;function l1(e){if(!e)return e;var t={};return u1.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function c1(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 u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}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(b){for(var y=1;y<arguments.length;y++){var S=arguments[y];for(var A in S)Object.prototype.hasOwnProperty.call(S,A)&&(b[A]=S[A])}return b},r=i1,i=h(r),o=st.default,a=h(o),s=ue.exports,u=h(s),l=o1,c=h(l),d=s1,f=Jr;function h(b){return b&&b.__esModule?b:{default:b}}function v(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},M={component:"span",childFactory:function(y){return y}},N=function(b){m(y,b);function y(S,A){v(this,y);var C=p(this,b.call(this,S,A));return C.performAppear=function(D,E){C.currentlyTransitioningKeys[D]=!0,E.componentWillAppear?E.componentWillAppear(C._handleDoneAppearing.bind(C,D,E)):C._handleDoneAppearing(D,E)},C._handleDoneAppearing=function(D,E){E&&E.componentDidAppear&&E.componentDidAppear(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);(!z||!z.hasOwnProperty(D))&&C.performLeave(D,E)},C.performEnter=function(D,E){C.currentlyTransitioningKeys[D]=!0,E.componentWillEnter?E.componentWillEnter(C._handleDoneEntering.bind(C,D,E)):C._handleDoneEntering(D,E)},C._handleDoneEntering=function(D,E){E&&E.componentDidEnter&&E.componentDidEnter(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);(!z||!z.hasOwnProperty(D))&&C.performLeave(D,E)},C.performLeave=function(D,E){C.currentlyTransitioningKeys[D]=!0,E&&E.componentWillLeave?E.componentWillLeave(C._handleDoneLeaving.bind(C,D,E)):C._handleDoneLeaving(D,E)},C._handleDoneLeaving=function(D,E){E&&E.componentDidLeave&&E.componentDidLeave(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);z&&z.hasOwnProperty(D)?C.keysToEnter.push(D):C.setState(function(g){var w=n({},g.children);return delete w[D],{children:w}})},C.childRefs=Object.create(null),C.currentlyTransitioningKeys={},C.keysToEnter=[],C.keysToLeave=[],C.state={children:(0,f.getChildMapping)(S.children)},C}return y.prototype.componentDidMount=function(){var A=this.state.children;for(var C in A)A[C]&&this.performAppear(C,this.childRefs[C])},y.getDerivedStateFromProps=function(A,C){var D=(0,f.getChildMapping)(A.children),E=C.children;return{children:(0,f.mergeChildMappings)(E,D)}},y.prototype.componentDidUpdate=function(A,C){var D=this,E=(0,f.getChildMapping)(this.props.children),z=C.children;for(var g in E){var w=z&&z.hasOwnProperty(g);E[g]&&!w&&!this.currentlyTransitioningKeys[g]&&this.keysToEnter.push(g)}for(var k in z){var R=E&&E.hasOwnProperty(k);z[k]&&!R&&!this.currentlyTransitioningKeys[k]&&this.keysToLeave.push(k)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(V){return D.performEnter(V,D.childRefs[V])});var B=this.keysToLeave;this.keysToLeave=[],B.forEach(function(V){return D.performLeave(V,D.childRefs[V])})},y.prototype.render=function(){var A=this,C=[],D=function(w){var k=A.state.children[w];if(k){var R=typeof k.ref!="string",L=A.props.childFactory(k),B=function(te){A.childRefs[w]=te};process.env.NODE_ENV!=="production"&&(0,c.default)(R,"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"),L===k&&R&&(B=(0,i.default)(k.ref,B)),C.push(a.default.cloneElement(L,{key:w,ref:B}))}};for(var E in this.state.children)D(E);var z=n({},this.props);return delete z.transitionLeave,delete z.transitionName,delete z.transitionAppear,delete z.transitionEnter,delete z.childFactory,delete z.transitionLeaveTimeout,delete z.transitionEnterTimeout,delete z.transitionAppearTimeout,delete z.component,a.default.createElement(this.props.component,z,C)},y}(a.default.Component);N.displayName="TransitionGroup",N.propTypes=process.env.NODE_ENV!=="production"?x:{},N.defaultProps=M,t.default=(0,d.polyfill)(N),e.exports=t.default})(Xr,Xr.exports);var Io={exports:{}},zo={exports:{}},Ie={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})(Ie);var Hr={exports:{}},Bu;function f1(){return Bu||(Bu=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}(Hr,Hr.exports)),Hr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=i;var r=n(f1());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})(zo,zo.exports);function Qu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var d1=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=Qu(t.className,n):t.setAttribute("class",Qu(t.className&&t.className.baseVal||"",n))},ko={exports:{}},Zr={exports:{}},Wu;function Gu(){return Wu||(Wu=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}(Zr,Zr.exports)),Zr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=void 0;var r=n(Gu()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,v){return h+(h?v[0].toUpperCase()+v.substr(1):v)+"AnimationFrame"};r.default&&i.some(function(f){var h=u(f,"request");if(h in window)return o=u(f,"cancel"),a=function(p){return window[h](p)}});var l=new Date().getTime();function c(f){var h=new Date().getTime(),v=Math.max(0,16-(h-l)),p=setTimeout(f,v);return l=h,p}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})(ko,ko.exports);var ae={},h1=Ie.exports;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 p1=h1(Gu()),ei="transform";ae.transform=ei;var vt,jo,Ku;ae.animationEnd=Ku,ae.transitionEnd=jo;var $o,Ro,Lo,Po;ae.transitionDelay=Po,ae.transitionTiming=Lo,ae.transitionDuration=Ro,ae.transitionProperty=$o;var Xu,Ju,Hu,Zu;if(ae.animationDelay=Zu,ae.animationTiming=Hu,ae.animationDuration=Ju,ae.animationName=Xu,p1.default){var Fo=m1();vt=Fo.prefix,ae.transitionEnd=jo=Fo.transitionEnd,ae.animationEnd=Ku=Fo.animationEnd,ae.transform=ei=vt+"-"+ei,ae.transitionProperty=$o=vt+"-transition-property",ae.transitionDuration=Ro=vt+"-transition-duration",ae.transitionDelay=Po=vt+"-transition-delay",ae.transitionTiming=Lo=vt+"-transition-timing-function",ae.animationName=Xu=vt+"-animation-name",ae.animationDuration=Ju=vt+"-animation-duration",ae.animationTiming=Hu=vt+"-animation-delay",ae.animationDelay=Zu=vt+"-animation-timing-function"}var g1={transform:ei,end:jo,property:$o,timing:Lo,delay:Po,duration:Ro};ae.default=g1;function m1(){for(var e=document.createElement("div").style,t={O:function(l){return"o"+l.toLowerCase()},Moz:function(l){return l.toLowerCase()},Webkit:function(l){return"webkit"+l},ms:function(l){return"MS"+l}},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 dn={};dn.__esModule=!0,dn.nameShape=void 0,dn.transitionTimeout=_1;var v1=st.default;el(v1);var y1=ue.exports,nt=el(y1);function el(e){return e&&e.__esModule?e:{default:e}}function _1(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}}dn.nameShape=nt.default.oneOfType([nt.default.string,nt.default.shape({enter:nt.default.string,leave:nt.default.string,active:nt.default.string}),nt.default.shape({enter:nt.default.string,enterActive:nt.default.string,leave:nt.default.string,leaveActive:nt.default.string,appear:nt.default.string,appearActive:nt.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(C){for(var D=1;D<arguments.length;D++){var E=arguments[D];for(var z in E)Object.prototype.hasOwnProperty.call(E,z)&&(C[z]=E[z])}return C},r=zo.exports,i=m(r),o=d1,a=m(o),s=ko.exports,u=m(s),l=ae,c=st.default,d=m(c),f=ue.exports,h=m(f),v=td.default,p=dn;function m(C){return C&&C.__esModule?C:{default:C}}function x(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}function M(C,D){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:C}function N(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(C,D):C.__proto__=D)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function y(C,D){return b.length?b.forEach(function(E){return C.addEventListener(E,D,!1)}):setTimeout(D,0),function(){!b.length||b.forEach(function(E){return C.removeEventListener(E,D,!1)})}}var S={children:h.default.node,name:p.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},A=function(C){N(D,C);function D(E,z){x(this,D);var g=M(this,C.call(this,E,z));return g.componentWillAppear=function(w){g.props.appear?g.transition("appear",w,g.props.appearTimeout):w()},g.componentWillEnter=function(w){g.props.enter?g.transition("enter",w,g.props.enterTimeout):w()},g.componentWillLeave=function(w){g.props.leave?g.transition("leave",w,g.props.leaveTimeout):w()},g.classNameAndNodeQueue=[],g.transitionTimeouts=[],g}return D.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(z){clearTimeout(z)}),this.classNameAndNodeQueue.length=0},D.prototype.transition=function(z,g,w){var k=(0,v.findDOMNode)(this);if(!k){g&&g();return}var R=this.props.name[z]||this.props.name+"-"+z,L=this.props.name[z+"Active"]||R+"-active",B=null,V=void 0;(0,i.default)(k,R),this.queueClassAndNode(L,k);var te=function($){$&&$.target!==k||(clearTimeout(B),V&&V(),(0,a.default)(k,R),(0,a.default)(k,L),V&&V(),g&&g())};w?(B=setTimeout(te,w),this.transitionTimeouts.push(B)):l.transitionEnd&&(V=y(k,te))},D.prototype.queueClassAndNode=function(z,g){var w=this;this.classNameAndNodeQueue.push({className:z,node:g}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return w.flushClassNameAndNodeQueue()}))},D.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(z){z.node.scrollTop,(0,i.default)(z.node,z.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},D.prototype.render=function(){var z=n({},this.props);return delete z.name,delete z.appear,delete z.enter,delete z.leave,delete z.appearTimeout,delete z.enterTimeout,delete z.leaveTimeout,delete z.children,d.default.cloneElement(d.default.Children.only(this.props.children),z)},D}(d.default.Component);A.displayName="CSSTransitionGroupChild",A.propTypes=process.env.NODE_ENV!=="production"?S:{},t.default=A,e.exports=t.default}(Io,Io.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(N){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(N[S]=y[S])}return N},r=st.default,i=f(r),o=ue.exports,a=f(o),s=Xr.exports,u=f(s),l=Io.exports,c=f(l),d=dn;function f(N){return N&&N.__esModule?N:{default:N}}function h(N,b){if(!(N instanceof b))throw new TypeError("Cannot call a class as a function")}function v(N,b){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:N}function p(N,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);N.prototype=Object.create(b&&b.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(N,b):N.__proto__=b)}var m={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")},x={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},M=function(N){p(b,N);function b(){var y,S,A;h(this,b);for(var C=arguments.length,D=Array(C),E=0;E<C;E++)D[E]=arguments[E];return A=(y=(S=v(this,N.call.apply(N,[this].concat(D))),S),S._wrapChild=function(z){return i.default.createElement(c.default,{name:S.props.transitionName,appear:S.props.transitionAppear,enter:S.props.transitionEnter,leave:S.props.transitionLeave,appearTimeout:S.props.transitionAppearTimeout,enterTimeout:S.props.transitionEnterTimeout,leaveTimeout:S.props.transitionLeaveTimeout},z)},y),v(S,A)}return b.prototype.render=function(){return i.default.createElement(u.default,n({},this.props,{childFactory:this._wrapChild}))},b}(i.default.Component);M.displayName="CSSTransitionGroup",M.propTypes=process.env.NODE_ENV!=="production"?m:{},M.defaultProps=x,t.default=M,e.exports=t.default}(wo,wo.exports);var b1=wo.exports,x1=tl(b1),M1=Xr.exports,w1=tl(M1);function tl(e){return e&&e.__esModule?e:{default:e}}var T1={TransitionGroup:w1.default,CSSTransitionGroup:x1.default},N1=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mo,"__esModule",{value:!0});var nl=N1(st.default),E1=T1,D1=function(e){return e.enableLegacyTransitions?nl.default.createElement(E1.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):nl.default.createElement("g",{className:e.className,transform:e.transform},e.children)};Mo.default=D1;var Uo={},Yo={},ti=Te&&Te.__assign||function(){return ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ti.apply(this,arguments)},O1=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yo,"__esModule",{value:!0});var Wt=O1(st.default),C1=15,rl={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},S1=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Wt.default.createElement(Wt.default.Fragment,null,Wt.default.createElement("circle",{r:C1,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Wt.default.createElement("g",{className:"rd3t-label"},Wt.default.createElement("text",ti({className:"rd3t-label__title"},rl.title),t.name),Wt.default.createElement("text",{className:"rd3t-label__attributes"},t.attributes&&Object.entries(t.attributes).map(function(a,s){var u=a[0],l=a[1];return Wt.default.createElement("tspan",ti({key:u+"-"+s},rl.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};Yo.default=S1;var A1=Te&&Te.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),il=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});var ol=il(st.default),al=Xi,I1=il(Yo),z1=function(e){A1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.nodeRef=null,n.state={transform:n.setTransform(n.props.position,n.props.parent,n.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},n.shouldNodeTransform=function(r,i){return i.subscriptions!==r.subscriptions||i.position.x!==r.position.x||i.position.y!==r.position.y||i.orientation!==r.orientation},n.renderNodeElement=function(){var r=n.props,i=r.data,o=r.hierarchyPointNode,a=r.renderCustomNodeElement,s=typeof a=="function"?a:I1.default,u={hierarchyPointNode:o,nodeDatum:i,toggleNode:n.handleNodeToggle,onNodeClick:n.handleOnClick,onNodeMouseOver:n.handleOnMouseOver,onNodeMouseOut:n.handleOnMouseOut};return s(u)},n.handleNodeToggle=function(){n.setState({wasClicked:!0}),n.props.onNodeToggle(n.props.data.__rd3t.id)},n.handleOnClick=function(r){n.setState({wasClicked:!0}),n.props.onNodeClick(n.props.hierarchyPointNode,r)},n.handleOnMouseOver=function(r){n.props.onNodeMouseOver(n.props.hierarchyPointNode,r)},n.handleOnMouseOut=function(r){n.props.onNodeMouseOut(n.props.hierarchyPointNode,r)},n}return t.prototype.componentDidMount=function(){this.commitTransform()},t.prototype.componentDidUpdate=function(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()},t.prototype.shouldComponentUpdate=function(n){return this.shouldNodeTransform(this.props,n)},t.prototype.setTransform=function(n,r,i,o){if(o===void 0&&(o=!1),o){var a=r!=null,s=a?r.x:0,u=a?r.y:0;return i==="horizontal"?"translate("+u+","+s+")":"translate("+s+","+u+")"}return i==="horizontal"?"translate("+n.y+","+n.x+")":"translate("+n.x+","+n.y+")"},t.prototype.applyTransform=function(n,r,i,o){i===void 0&&(i=1),o===void 0&&(o=function(){}),this.props.enableLegacyTransitions?al.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(al.select(this.nodeRef).attr("transform",n).style("opacity",i),o())},t.prototype.commitTransform=function(){var n=this.props,r=n.orientation,i=n.transitionDuration,o=n.position,a=n.parent,s=this.setTransform(o,a,r);this.applyTransform(s,i)},t.prototype.componentWillLeave=function(n){var r=this.props,i=r.orientation,o=r.transitionDuration,a=r.position,s=r.parent,u=this.setTransform(a,s,i,!0);this.applyTransform(u,o,0,n)},t.prototype.render=function(){var n=this,r=this.props,i=r.data,o=r.nodeClassName;return ol.default.createElement("g",{id:i.__rd3t.id,ref:function(a){n.nodeRef=a},style:this.state.initialStyle,className:[i.children?"rd3t-node":"rd3t-leaf-node",o].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())},t}(ol.default.Component);Uo.default=z1;var qo={},Vo=Math.PI,Bo=2*Vo,Gt=1e-6,k1=Bo-Gt;function Qo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function hn(){return new Qo}Qo.prototype=hn.prototype={constructor:Qo,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,u=r-t,l=o-e,c=a-t,d=l*l+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>Gt)if(!(Math.abs(c*s-u*l)>Gt)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,v=s*s+u*u,p=f*f+h*h,m=Math.sqrt(v),x=Math.sqrt(d),M=i*Math.tan((Vo-Math.acos((v+d-p)/(2*m*x)))/2),N=M/x,b=M/m;Math.abs(N-1)>Gt&&(this._+="L"+(e+N*l)+","+(t+N*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},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),u=e+a,l=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"+u+","+l:(Math.abs(this._x1-u)>Gt||Math.abs(this._y1-l)>Gt)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%Bo+Bo),d>k1?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Gt&&(this._+="A"+n+","+n+",0,"+ +(d>=Vo)+","+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 ie(e){return function(){return e}}var sl=Math.abs,Pe=Math.atan2,Kt=Math.cos,j1=Math.max,Wo=Math.min,yt=Math.sin,pn=Math.sqrt,Fe=1e-12,zt=Math.PI,ni=zt/2,kt=2*zt;function $1(e){return e>1?0:e<-1?zt:Math.acos(e)}function ul(e){return e>=1?ni:e<=-1?-ni:Math.asin(e)}function R1(e){return e.innerRadius}function L1(e){return e.outerRadius}function P1(e){return e.startAngle}function F1(e){return e.endAngle}function U1(e){return e&&e.padAngle}function Y1(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,d=s-o,f=d*u-c*l;if(!(f*f<Fe))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function ri(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/pn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,v=n+c,p=r+d,m=(f+v)/2,x=(h+p)/2,M=v-f,N=p-h,b=M*M+N*N,y=i-o,S=f*p-v*h,A=(N<0?-1:1)*pn(j1(0,y*y*b-S*S)),C=(S*N-M*A)/b,D=(-S*M-N*A)/b,E=(S*N+M*A)/b,z=(-S*M+N*A)/b,g=C-m,w=D-x,k=E-m,R=z-x;return g*g+w*w>k*k+R*R&&(C=E,D=z),{cx:C,cy:D,x01:-c,y01:-d,x11:C*(i/y-1),y11:D*(i/y-1)}}function q1(){var e=R1,t=L1,n=ie(0),r=null,i=P1,o=F1,a=U1,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-ni,v=o.apply(this,arguments)-ni,p=sl(v-h),m=v>h;if(s||(s=l=hn()),f<d&&(c=f,f=d,d=c),!(f>Fe))s.moveTo(0,0);else if(p>kt-Fe)s.moveTo(f*Kt(h),f*yt(h)),s.arc(0,0,f,h,v,!m),d>Fe&&(s.moveTo(d*Kt(v),d*yt(v)),s.arc(0,0,d,v,h,m));else{var x=h,M=v,N=h,b=v,y=p,S=p,A=a.apply(this,arguments)/2,C=A>Fe&&(r?+r.apply(this,arguments):pn(d*d+f*f)),D=Wo(sl(f-d)/2,+n.apply(this,arguments)),E=D,z=D,g,w;if(C>Fe){var k=ul(C/d*yt(A)),R=ul(C/f*yt(A));(y-=k*2)>Fe?(k*=m?1:-1,N+=k,b-=k):(y=0,N=b=(h+v)/2),(S-=R*2)>Fe?(R*=m?1:-1,x+=R,M-=R):(S=0,x=M=(h+v)/2)}var L=f*Kt(x),B=f*yt(x),V=d*Kt(b),te=d*yt(b);if(D>Fe){var O=f*Kt(M),$=f*yt(M),G=d*Kt(N),K=d*yt(N),U;if(p<zt&&(U=Y1(L,B,G,K,O,$,V,te))){var J=L-U[0],X=B-U[1],H=O-U[0],ee=$-U[1],re=1/yt($1((J*H+X*ee)/(pn(J*J+X*X)*pn(H*H+ee*ee)))/2),ne=pn(U[0]*U[0]+U[1]*U[1]);E=Wo(D,(d-ne)/(re-1)),z=Wo(D,(f-ne)/(re+1))}}S>Fe?z>Fe?(g=ri(G,K,L,B,f,z,m),w=ri(O,$,V,te,f,z,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),z<D?s.arc(g.cx,g.cy,z,Pe(g.y01,g.x01),Pe(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,z,Pe(g.y01,g.x01),Pe(g.y11,g.x11),!m),s.arc(0,0,f,Pe(g.cy+g.y11,g.cx+g.x11),Pe(w.cy+w.y11,w.cx+w.x11),!m),s.arc(w.cx,w.cy,z,Pe(w.y11,w.x11),Pe(w.y01,w.x01),!m))):(s.moveTo(L,B),s.arc(0,0,f,x,M,!m)):s.moveTo(L,B),!(d>Fe)||!(y>Fe)?s.lineTo(V,te):E>Fe?(g=ri(V,te,O,$,d,-E,m),w=ri(L,B,G,K,d,-E,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),E<D?s.arc(g.cx,g.cy,E,Pe(g.y01,g.x01),Pe(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,E,Pe(g.y01,g.x01),Pe(g.y11,g.x11),!m),s.arc(0,0,d,Pe(g.cy+g.y11,g.cx+g.x11),Pe(w.cy+w.y11,w.cx+w.x11),m),s.arc(w.cx,w.cy,E,Pe(w.y11,w.x11),Pe(w.y01,w.x01),!m))):s.arc(0,0,d,b,N,m)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-zt/2;return[Kt(c)*l,yt(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ie(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ie(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ie(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ie(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ie(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function ll(e){this._context=e}ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ii(e){return new ll(e)}function Go(e){return e[0]}function Ko(e){return e[1]}function Xo(){var e=Go,t=Ko,n=ie(!0),r=null,i=ii,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=hn())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,s),+t(c,u,s));if(f)return o=null,f+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ie(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function cl(){var e=Go,t=null,n=ie(0),r=Ko,i=ie(!0),o=null,a=ii,s=null;function u(c){var d,f,h,v=c.length,p,m=!1,x,M=new Array(v),N=new Array(v);for(o==null&&(s=a(x=hn())),d=0;d<=v;++d){if(!(d<v&&i(p=c[d],d,c))===m)if(m=!m)f=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=d-1;h>=f;--h)s.point(M[h],N[h]);s.lineEnd(),s.areaEnd()}m&&(M[d]=+e(p,d,c),N[d]=+n(p,d,c),s.point(t?+t(p,d,c):M[d],r?+r(p,d,c):N[d]))}if(x)return s=null,x+""||null}function l(){return Xo().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ie(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ie(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ie(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function V1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function B1(e){return e}function Q1(){var e=B1,t=V1,n=null,r=ie(0),i=ie(kt),o=ie(0);function a(s){var u,l=s.length,c,d,f=0,h=new Array(l),v=new Array(l),p=+r.apply(this,arguments),m=Math.min(kt,Math.max(-kt,i.apply(this,arguments)-p)),x,M=Math.min(Math.abs(m)/l,o.apply(this,arguments)),N=M*(m<0?-1:1),b;for(u=0;u<l;++u)(b=v[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(y,S){return t(v[y],v[S])}):n!=null&&h.sort(function(y,S){return n(s[y],s[S])}),u=0,d=f?(m-l*N)/f:0;u<l;++u,p=x)c=h[u],b=v[c],x=p+(b>0?b*d:0)+N,v[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:M};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ie(+s),a):o},a}var fl=Jo(ii);function dl(e){this._curve=e}dl.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Jo(e){function t(n){return new dl(e(n))}return t._curve=e,t}function Jn(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Jo(n)):t()._curve},e}function hl(){return Jn(Xo().curve(fl))}function pl(){var e=cl().curve(fl),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Jn(n())},delete e.lineX0,e.lineEndAngle=function(){return Jn(r())},delete e.lineX1,e.lineInnerRadius=function(){return Jn(i())},delete e.lineY0,e.lineOuterRadius=function(){return Jn(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Jo(a)):t()._curve},e}function Hn(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var Ho=Array.prototype.slice;function W1(e){return e.source}function G1(e){return e.target}function Zo(e){var t=W1,n=G1,r=Go,i=Ko,o=null;function a(){var s,u=Ho.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=hn()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),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:ie(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function K1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function X1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function J1(e,t,n,r,i){var o=Hn(t,n),a=Hn(t,n=(n+i)/2),s=Hn(r,n),u=Hn(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function H1(){return Zo(K1)}function Z1(){return Zo(X1)}function em(){var e=Zo(J1);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ea={draw:function(e,t){var n=Math.sqrt(t/zt);e.moveTo(n,0),e.arc(0,0,n,0,kt)}},gl={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var ml=Math.sqrt(1/3),tm=ml*2;const vl={draw:function(e,t){var n=Math.sqrt(t/tm),r=n*ml;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var nm=.8908130915292852,yl=Math.sin(zt/10)/Math.sin(7*zt/10),rm=Math.sin(kt/10)*yl,im=-Math.cos(kt/10)*yl;const _l={draw:function(e,t){var n=Math.sqrt(t*nm),r=rm*n,i=im*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=kt*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},bl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var ta=Math.sqrt(3);const xl={draw:function(e,t){var n=-Math.sqrt(t/(ta*3));e.moveTo(0,n*2),e.lineTo(-ta*n,-n),e.lineTo(ta*n,-n),e.closePath()}};var ut=-.5,lt=Math.sqrt(3)/2,na=1/Math.sqrt(12),om=(na/2+1)*3;const Ml={draw:function(e,t){var n=Math.sqrt(t/om),r=n/2,i=n*na,o=r,a=n*na+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ut*r-lt*i,lt*r+ut*i),e.lineTo(ut*o-lt*a,lt*o+ut*a),e.lineTo(ut*s-lt*u,lt*s+ut*u),e.lineTo(ut*r+lt*i,ut*i-lt*r),e.lineTo(ut*o+lt*a,ut*a-lt*o),e.lineTo(ut*s+lt*u,ut*u-lt*s),e.closePath()}};var am=[ea,gl,vl,bl,_l,xl,Ml];function sm(){var e=ie(ea),t=ie(64),n=null;function r(){var i;if(n||(n=i=hn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ie(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ie(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function jt(){}function oi(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ai(e){this._context=e}ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:oi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function um(e){return new ai(e)}function wl(e){this._context=e}wl.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lm(e){return new wl(e)}function Tl(e){this._context=e}Tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cm(e){return new Tl(e)}function Nl(e,t){this._basis=new ai(e),this._beta=t}Nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const fm=function e(t){function n(r){return t===1?new ai(r):new Nl(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function si(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ra(e,t){this._context=e,this._k=(1-t)/6}ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:si(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dm=function e(t){function n(r){return new ra(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ia(e,t){this._context=e,this._k=(1-t)/6}ia.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hm=function e(t){function n(r){return new ia(r,t)}return n.tension=function(r){return e(+r)},n}(0);function oa(e,t){this._context=e,this._k=(1-t)/6}oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pm=function e(t){function n(r){return new oa(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aa(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Fe){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Fe){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function El(e,t){this._context=e,this._alpha=t}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gm=function e(t){function n(r){return t?new El(r,t):new ra(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Dl(e,t){this._context=e,this._alpha=t}Dl.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mm=function e(t){function n(r){return t?new Dl(r,t):new ia(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ol(e,t){this._context=e,this._alpha=t}Ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vm=function e(t){function n(r){return t?new Ol(r,t):new oa(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Cl(e){this._context=e}Cl.prototype={areaStart:jt,areaEnd:jt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ym(e){return new Cl(e)}function Sl(e){return e<0?-1:1}function Al(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Sl(o)+Sl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Il(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sa(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function ui(e){this._context=e}ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sa(this,this._t0,Il(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sa(this,Il(this,n=Al(this,e,t)),n);break;default:sa(this,this._t0,n=Al(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function zl(e){this._context=new kl(e)}(zl.prototype=Object.create(ui.prototype)).point=function(e,t){ui.prototype.point.call(this,t,e)};function kl(e){this._context=e}kl.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function _m(e){return new ui(e)}function bm(e){return new zl(e)}function jl(e){this._context=e}jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$l(e),i=$l(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $l(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function xm(e){return new jl(e)}function li(e,t){this._context=e,this._t=t}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Mm(e){return new li(e,.5)}function wm(e){return new li(e,0)}function Tm(e){return new li(e,1)}function gn(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function mn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Nm(e,t){return e[t]}function Em(){var e=ie([]),t=mn,n=gn,r=Nm;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),d;for(s=0;s<l;++s){for(var f=a[s],h=c[s]=new Array(u),v=0,p;v<u;++v)h[v]=p=[0,+r(o[v],f,v,o)],p.data=o[v];h.key=f}for(s=0,d=t(c);s<l;++s)c[d[s]].index=s;return n(c,d),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ie(Ho.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ie(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?mn:typeof o=="function"?o:ie(Ho.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?gn:o,i):n},i}function Dm(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}gn(e,t)}}function Om(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Cm(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}gn(e,t)}}function Sm(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],d=c[r][1]||0,f=c[r-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var p=e[t[v]],m=p[r][1]||0,x=p[r-1][1]||0;h+=m-x}u+=d,l+=h*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,gn(e,t)}}function Rl(e){var t=e.map(Am);return mn(e).sort(function(n,r){return t[n]-t[r]})}function Am(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function Ll(e){var t=e.map(Pl);return mn(e).sort(function(n,r){return t[n]-t[r]})}function Pl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Im(e){return Ll(e).reverse()}function zm(e){var t=e.length,n,r,i=e.map(Pl),o=Rl(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function km(e){return mn(e).reverse()}const jm=Ct(Object.freeze(Object.defineProperty({__proto__:null,arc:q1,area:cl,line:Xo,pie:Q1,areaRadial:pl,radialArea:pl,lineRadial:hl,radialLine:hl,pointRadial:Hn,linkHorizontal:H1,linkVertical:Z1,linkRadial:em,symbol:sm,symbols:am,symbolCircle:ea,symbolCross:gl,symbolDiamond:vl,symbolSquare:bl,symbolStar:_l,symbolTriangle:xl,symbolWye:Ml,curveBasisClosed:lm,curveBasisOpen:cm,curveBasis:um,curveBundle:fm,curveCardinalClosed:hm,curveCardinalOpen:pm,curveCardinal:dm,curveCatmullRomClosed:mm,curveCatmullRomOpen:vm,curveCatmullRom:gm,curveLinearClosed:ym,curveLinear:ii,curveMonotoneX:_m,curveMonotoneY:bm,curveNatural:xm,curveStep:Mm,curveStepAfter:Tm,curveStepBefore:wm,stack:Em,stackOffsetExpand:Dm,stackOffsetDiverging:Om,stackOffsetNone:gn,stackOffsetSilhouette:Cm,stackOffsetWiggle:Sm,stackOrderAppearance:Rl,stackOrderAscending:Ll,stackOrderDescending:Im,stackOrderInsideOut:zm,stackOrderNone:mn,stackOrderReverse:km},Symbol.toStringTag,{value:"Module"})));var $m=Te&&Te.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ua=Te&&Te.__assign||function(){return ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ua.apply(this,arguments)},Rm=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qo,"__esModule",{value:!0});var Fl=Rm(st.default),Ul=jm,Yl=Xi,Lm=function(e){$m(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.linkRef=null,n.state={initialStyle:{opacity:0}},n.handleOnClick=function(r){n.props.onClick(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOver=function(r){n.props.onMouseOver(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOut=function(r){n.props.onMouseOut(n.props.linkData.source,n.props.linkData.target,r)},n}return t.prototype.componentDidMount=function(){this.applyOpacity(1,this.props.transitionDuration)},t.prototype.componentWillLeave=function(n){this.applyOpacity(0,this.props.transitionDuration,n)},t.prototype.applyOpacity=function(n,r,i){i===void 0&&(i=function(){}),this.props.enableLegacyTransitions?Yl.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(Yl.select(this.linkRef).style("opacity",n),i())},t.prototype.drawStepPath=function(n,r){var i=n.source,o=n.target,a=o.y-i.y;return r==="horizontal"?"M"+i.y+","+i.x+" H"+(i.y+a/2)+" V"+o.x+" H"+o.y:"M"+i.x+","+i.y+" V"+(i.y+a/2)+" H"+o.x+" V"+o.y},t.prototype.drawDiagonalPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?Ul.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):Ul.linkVertical()({source:[i.x,i.y],target:[o.x,o.y]})},t.prototype.drawStraightPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?"M"+i.y+","+i.x+"L"+o.y+","+o.x:"M"+i.x+","+i.y+"L"+o.x+","+o.y},t.prototype.drawElbowPath=function(n,r){return r==="horizontal"?"M"+n.source.y+","+n.source.x+"V"+n.target.x+"H"+n.target.y:"M"+n.source.x+","+n.source.y+"V"+n.target.y+"H"+n.target.x},t.prototype.drawPath=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathFunc;return typeof o=="function"?o(r,i):o==="elbow"?this.drawElbowPath(r,i):o==="straight"?this.drawStraightPath(r,i):o==="step"?this.drawStepPath(r,i):this.drawDiagonalPath(r,i)},t.prototype.getClassNames=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathClassFunc,a=["rd3t-link"];return typeof o=="function"&&a.push(o(r,i)),a.join(" ").trim()},t.prototype.render=function(){var n=this,r=this.props.linkData;return Fl.default.createElement("path",{ref:function(i){n.linkRef=i},style:ua({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":r.source.id,"data-target-id":r.target.id})},t}(Fl.default.PureComponent);qo.default=Lm;var la={};Object.defineProperty(la,"__esModule",{value:!0}),la.default=`
54
+ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=Yu,t.componentWillReceiveProps=qu),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=Vu;var s=t.componentDidUpdate;t.componentDidUpdate=function(l,c,d){var f=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:d;s.call(this,l,c,f)}}return e}const s1=St(Object.freeze(Object.defineProperty({__proto__:null,polyfill:a1},Symbol.toStringTag,{value:"Module"})));var Jr={};Jr.__esModule=!0,Jr.getChildMapping=l1,Jr.mergeChildMappings=c1;var u1=st.default;function l1(e){if(!e)return e;var t={};return u1.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function c1(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 u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}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(b){for(var y=1;y<arguments.length;y++){var S=arguments[y];for(var A in S)Object.prototype.hasOwnProperty.call(S,A)&&(b[A]=S[A])}return b},r=i1,i=h(r),o=st.default,a=h(o),s=ue.exports,u=h(s),l=o1,c=h(l),d=s1,f=Jr;function h(b){return b&&b.__esModule?b:{default:b}}function v(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function p(b,y){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y&&(typeof y=="object"||typeof y=="function")?y:b}function m(b,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(b,y):b.__proto__=y)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},M={component:"span",childFactory:function(y){return y}},N=function(b){m(y,b);function y(S,A){v(this,y);var C=p(this,b.call(this,S,A));return C.performAppear=function(D,E){C.currentlyTransitioningKeys[D]=!0,E.componentWillAppear?E.componentWillAppear(C._handleDoneAppearing.bind(C,D,E)):C._handleDoneAppearing(D,E)},C._handleDoneAppearing=function(D,E){E&&E.componentDidAppear&&E.componentDidAppear(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);(!z||!z.hasOwnProperty(D))&&C.performLeave(D,E)},C.performEnter=function(D,E){C.currentlyTransitioningKeys[D]=!0,E.componentWillEnter?E.componentWillEnter(C._handleDoneEntering.bind(C,D,E)):C._handleDoneEntering(D,E)},C._handleDoneEntering=function(D,E){E&&E.componentDidEnter&&E.componentDidEnter(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);(!z||!z.hasOwnProperty(D))&&C.performLeave(D,E)},C.performLeave=function(D,E){C.currentlyTransitioningKeys[D]=!0,E&&E.componentWillLeave?E.componentWillLeave(C._handleDoneLeaving.bind(C,D,E)):C._handleDoneLeaving(D,E)},C._handleDoneLeaving=function(D,E){E&&E.componentDidLeave&&E.componentDidLeave(),delete C.currentlyTransitioningKeys[D];var z=(0,f.getChildMapping)(C.props.children);z&&z.hasOwnProperty(D)?C.keysToEnter.push(D):C.setState(function(g){var w=n({},g.children);return delete w[D],{children:w}})},C.childRefs=Object.create(null),C.currentlyTransitioningKeys={},C.keysToEnter=[],C.keysToLeave=[],C.state={children:(0,f.getChildMapping)(S.children)},C}return y.prototype.componentDidMount=function(){var A=this.state.children;for(var C in A)A[C]&&this.performAppear(C,this.childRefs[C])},y.getDerivedStateFromProps=function(A,C){var D=(0,f.getChildMapping)(A.children),E=C.children;return{children:(0,f.mergeChildMappings)(E,D)}},y.prototype.componentDidUpdate=function(A,C){var D=this,E=(0,f.getChildMapping)(this.props.children),z=C.children;for(var g in E){var w=z&&z.hasOwnProperty(g);E[g]&&!w&&!this.currentlyTransitioningKeys[g]&&this.keysToEnter.push(g)}for(var k in z){var R=E&&E.hasOwnProperty(k);z[k]&&!R&&!this.currentlyTransitioningKeys[k]&&this.keysToLeave.push(k)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(V){return D.performEnter(V,D.childRefs[V])});var B=this.keysToLeave;this.keysToLeave=[],B.forEach(function(V){return D.performLeave(V,D.childRefs[V])})},y.prototype.render=function(){var A=this,C=[],D=function(w){var k=A.state.children[w];if(k){var R=typeof k.ref!="string",L=A.props.childFactory(k),B=function(te){A.childRefs[w]=te};process.env.NODE_ENV!=="production"&&(0,c.default)(R,"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"),L===k&&R&&(B=(0,i.default)(k.ref,B)),C.push(a.default.cloneElement(L,{key:w,ref:B}))}};for(var E in this.state.children)D(E);var z=n({},this.props);return delete z.transitionLeave,delete z.transitionName,delete z.transitionAppear,delete z.transitionEnter,delete z.childFactory,delete z.transitionLeaveTimeout,delete z.transitionEnterTimeout,delete z.transitionAppearTimeout,delete z.component,a.default.createElement(this.props.component,z,C)},y}(a.default.Component);N.displayName="TransitionGroup",N.propTypes=process.env.NODE_ENV!=="production"?x:{},N.defaultProps=M,t.default=(0,d.polyfill)(N),e.exports=t.default})(Xr,Xr.exports);var Io={exports:{}},zo={exports:{}},Ae={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})(Ae);var Hr={exports:{}},Bu;function f1(){return Bu||(Bu=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}(Hr,Hr.exports)),Hr.exports}(function(e,t){var n=Ae.exports;t.__esModule=!0,t.default=i;var r=n(f1());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})(zo,zo.exports);function Qu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var d1=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=Qu(t.className,n):t.setAttribute("class",Qu(t.className&&t.className.baseVal||"",n))},ko={exports:{}},Zr={exports:{}},Wu;function Gu(){return Wu||(Wu=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}(Zr,Zr.exports)),Zr.exports}(function(e,t){var n=Ae.exports;t.__esModule=!0,t.default=void 0;var r=n(Gu()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,v){return h+(h?v[0].toUpperCase()+v.substr(1):v)+"AnimationFrame"};r.default&&i.some(function(f){var h=u(f,"request");if(h in window)return o=u(f,"cancel"),a=function(p){return window[h](p)}});var l=new Date().getTime();function c(f){var h=new Date().getTime(),v=Math.max(0,16-(h-l)),p=setTimeout(f,v);return l=h,p}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})(ko,ko.exports);var ae={},h1=Ae.exports;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 p1=h1(Gu()),ei="transform";ae.transform=ei;var yt,jo,Ku;ae.animationEnd=Ku,ae.transitionEnd=jo;var $o,Ro,Lo,Po;ae.transitionDelay=Po,ae.transitionTiming=Lo,ae.transitionDuration=Ro,ae.transitionProperty=$o;var Xu,Ju,Hu,Zu;if(ae.animationDelay=Zu,ae.animationTiming=Hu,ae.animationDuration=Ju,ae.animationName=Xu,p1.default){var Fo=m1();yt=Fo.prefix,ae.transitionEnd=jo=Fo.transitionEnd,ae.animationEnd=Ku=Fo.animationEnd,ae.transform=ei=yt+"-"+ei,ae.transitionProperty=$o=yt+"-transition-property",ae.transitionDuration=Ro=yt+"-transition-duration",ae.transitionDelay=Po=yt+"-transition-delay",ae.transitionTiming=Lo=yt+"-transition-timing-function",ae.animationName=Xu=yt+"-animation-name",ae.animationDuration=Ju=yt+"-animation-duration",ae.animationTiming=Hu=yt+"-animation-delay",ae.animationDelay=Zu=yt+"-animation-timing-function"}var g1={transform:ei,end:jo,property:$o,timing:Lo,delay:Po,duration:Ro};ae.default=g1;function m1(){for(var e=document.createElement("div").style,t={O:function(l){return"o"+l.toLowerCase()},Moz:function(l){return l.toLowerCase()},Webkit:function(l){return"webkit"+l},ms:function(l){return"MS"+l}},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 hn={};hn.__esModule=!0,hn.nameShape=void 0,hn.transitionTimeout=_1;var v1=st.default;el(v1);var y1=ue.exports,tt=el(y1);function el(e){return e&&e.__esModule?e:{default:e}}function _1(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}}hn.nameShape=tt.default.oneOfType([tt.default.string,tt.default.shape({enter:tt.default.string,leave:tt.default.string,active:tt.default.string}),tt.default.shape({enter:tt.default.string,enterActive:tt.default.string,leave:tt.default.string,leaveActive:tt.default.string,appear:tt.default.string,appearActive:tt.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(C){for(var D=1;D<arguments.length;D++){var E=arguments[D];for(var z in E)Object.prototype.hasOwnProperty.call(E,z)&&(C[z]=E[z])}return C},r=zo.exports,i=m(r),o=d1,a=m(o),s=ko.exports,u=m(s),l=ae,c=st.default,d=m(c),f=ue.exports,h=m(f),v=td.default,p=hn;function m(C){return C&&C.__esModule?C:{default:C}}function x(C,D){if(!(C instanceof D))throw new TypeError("Cannot call a class as a function")}function M(C,D){if(!C)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:C}function N(C,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);C.prototype=Object.create(D&&D.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(C,D):C.__proto__=D)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function y(C,D){return b.length?b.forEach(function(E){return C.addEventListener(E,D,!1)}):setTimeout(D,0),function(){!b.length||b.forEach(function(E){return C.removeEventListener(E,D,!1)})}}var S={children:h.default.node,name:p.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},A=function(C){N(D,C);function D(E,z){x(this,D);var g=M(this,C.call(this,E,z));return g.componentWillAppear=function(w){g.props.appear?g.transition("appear",w,g.props.appearTimeout):w()},g.componentWillEnter=function(w){g.props.enter?g.transition("enter",w,g.props.enterTimeout):w()},g.componentWillLeave=function(w){g.props.leave?g.transition("leave",w,g.props.leaveTimeout):w()},g.classNameAndNodeQueue=[],g.transitionTimeouts=[],g}return D.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(z){clearTimeout(z)}),this.classNameAndNodeQueue.length=0},D.prototype.transition=function(z,g,w){var k=(0,v.findDOMNode)(this);if(!k){g&&g();return}var R=this.props.name[z]||this.props.name+"-"+z,L=this.props.name[z+"Active"]||R+"-active",B=null,V=void 0;(0,i.default)(k,R),this.queueClassAndNode(L,k);var te=function($){$&&$.target!==k||(clearTimeout(B),V&&V(),(0,a.default)(k,R),(0,a.default)(k,L),V&&V(),g&&g())};w?(B=setTimeout(te,w),this.transitionTimeouts.push(B)):l.transitionEnd&&(V=y(k,te))},D.prototype.queueClassAndNode=function(z,g){var w=this;this.classNameAndNodeQueue.push({className:z,node:g}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return w.flushClassNameAndNodeQueue()}))},D.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(z){z.node.scrollTop,(0,i.default)(z.node,z.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},D.prototype.render=function(){var z=n({},this.props);return delete z.name,delete z.appear,delete z.enter,delete z.leave,delete z.appearTimeout,delete z.enterTimeout,delete z.leaveTimeout,delete z.children,d.default.cloneElement(d.default.Children.only(this.props.children),z)},D}(d.default.Component);A.displayName="CSSTransitionGroupChild",A.propTypes=process.env.NODE_ENV!=="production"?S:{},t.default=A,e.exports=t.default}(Io,Io.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(N){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var S in y)Object.prototype.hasOwnProperty.call(y,S)&&(N[S]=y[S])}return N},r=st.default,i=f(r),o=ue.exports,a=f(o),s=Xr.exports,u=f(s),l=Io.exports,c=f(l),d=hn;function f(N){return N&&N.__esModule?N:{default:N}}function h(N,b){if(!(N instanceof b))throw new TypeError("Cannot call a class as a function")}function v(N,b){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:N}function p(N,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);N.prototype=Object.create(b&&b.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(N,b):N.__proto__=b)}var m={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")},x={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},M=function(N){p(b,N);function b(){var y,S,A;h(this,b);for(var C=arguments.length,D=Array(C),E=0;E<C;E++)D[E]=arguments[E];return A=(y=(S=v(this,N.call.apply(N,[this].concat(D))),S),S._wrapChild=function(z){return i.default.createElement(c.default,{name:S.props.transitionName,appear:S.props.transitionAppear,enter:S.props.transitionEnter,leave:S.props.transitionLeave,appearTimeout:S.props.transitionAppearTimeout,enterTimeout:S.props.transitionEnterTimeout,leaveTimeout:S.props.transitionLeaveTimeout},z)},y),v(S,A)}return b.prototype.render=function(){return i.default.createElement(u.default,n({},this.props,{childFactory:this._wrapChild}))},b}(i.default.Component);M.displayName="CSSTransitionGroup",M.propTypes=process.env.NODE_ENV!=="production"?m:{},M.defaultProps=x,t.default=M,e.exports=t.default}(wo,wo.exports);var b1=wo.exports,x1=tl(b1),M1=Xr.exports,w1=tl(M1);function tl(e){return e&&e.__esModule?e:{default:e}}var T1={TransitionGroup:w1.default,CSSTransitionGroup:x1.default},N1=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mo,"__esModule",{value:!0});var nl=N1(st.default),E1=T1,D1=function(e){return e.enableLegacyTransitions?nl.default.createElement(E1.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):nl.default.createElement("g",{className:e.className,transform:e.transform},e.children)};Mo.default=D1;var Uo={},Yo={},ti=Ne&&Ne.__assign||function(){return ti=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ti.apply(this,arguments)},O1=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yo,"__esModule",{value:!0});var Wt=O1(st.default),C1=15,rl={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},S1=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Wt.default.createElement(Wt.default.Fragment,null,Wt.default.createElement("circle",{r:C1,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Wt.default.createElement("g",{className:"rd3t-label"},Wt.default.createElement("text",ti({className:"rd3t-label__title"},rl.title),t.name),Wt.default.createElement("text",{className:"rd3t-label__attributes"},t.attributes&&Object.entries(t.attributes).map(function(a,s){var u=a[0],l=a[1];return Wt.default.createElement("tspan",ti({key:u+"-"+s},rl.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};Yo.default=S1;var A1=Ne&&Ne.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),il=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Uo,"__esModule",{value:!0});var ol=il(st.default),al=Xi,I1=il(Yo),z1=function(e){A1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.nodeRef=null,n.state={transform:n.setTransform(n.props.position,n.props.parent,n.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},n.shouldNodeTransform=function(r,i){return i.subscriptions!==r.subscriptions||i.position.x!==r.position.x||i.position.y!==r.position.y||i.orientation!==r.orientation},n.renderNodeElement=function(){var r=n.props,i=r.data,o=r.hierarchyPointNode,a=r.renderCustomNodeElement,s=typeof a=="function"?a:I1.default,u={hierarchyPointNode:o,nodeDatum:i,toggleNode:n.handleNodeToggle,onNodeClick:n.handleOnClick,onNodeMouseOver:n.handleOnMouseOver,onNodeMouseOut:n.handleOnMouseOut};return s(u)},n.handleNodeToggle=function(){n.setState({wasClicked:!0}),n.props.onNodeToggle(n.props.data.__rd3t.id)},n.handleOnClick=function(r){n.setState({wasClicked:!0}),n.props.onNodeClick(n.props.hierarchyPointNode,r)},n.handleOnMouseOver=function(r){n.props.onNodeMouseOver(n.props.hierarchyPointNode,r)},n.handleOnMouseOut=function(r){n.props.onNodeMouseOut(n.props.hierarchyPointNode,r)},n}return t.prototype.componentDidMount=function(){this.commitTransform()},t.prototype.componentDidUpdate=function(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()},t.prototype.shouldComponentUpdate=function(n){return this.shouldNodeTransform(this.props,n)},t.prototype.setTransform=function(n,r,i,o){if(o===void 0&&(o=!1),o){var a=r!=null,s=a?r.x:0,u=a?r.y:0;return i==="horizontal"?"translate("+u+","+s+")":"translate("+s+","+u+")"}return i==="horizontal"?"translate("+n.y+","+n.x+")":"translate("+n.x+","+n.y+")"},t.prototype.applyTransform=function(n,r,i,o){i===void 0&&(i=1),o===void 0&&(o=function(){}),this.props.enableLegacyTransitions?al.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(al.select(this.nodeRef).attr("transform",n).style("opacity",i),o())},t.prototype.commitTransform=function(){var n=this.props,r=n.orientation,i=n.transitionDuration,o=n.position,a=n.parent,s=this.setTransform(o,a,r);this.applyTransform(s,i)},t.prototype.componentWillLeave=function(n){var r=this.props,i=r.orientation,o=r.transitionDuration,a=r.position,s=r.parent,u=this.setTransform(a,s,i,!0);this.applyTransform(u,o,0,n)},t.prototype.render=function(){var n=this,r=this.props,i=r.data,o=r.nodeClassName;return ol.default.createElement("g",{id:i.__rd3t.id,ref:function(a){n.nodeRef=a},style:this.state.initialStyle,className:[i.children?"rd3t-node":"rd3t-leaf-node",o].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())},t}(ol.default.Component);Uo.default=z1;var qo={},Vo=Math.PI,Bo=2*Vo,Gt=1e-6,k1=Bo-Gt;function Qo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function pn(){return new Qo}Qo.prototype=pn.prototype={constructor:Qo,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,u=r-t,l=o-e,c=a-t,d=l*l+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>Gt)if(!(Math.abs(c*s-u*l)>Gt)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,v=s*s+u*u,p=f*f+h*h,m=Math.sqrt(v),x=Math.sqrt(d),M=i*Math.tan((Vo-Math.acos((v+d-p)/(2*m*x)))/2),N=M/x,b=M/m;Math.abs(N-1)>Gt&&(this._+="L"+(e+N*l)+","+(t+N*c)),this._+="A"+i+","+i+",0,0,"+ +(c*f>l*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}},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),u=e+a,l=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"+u+","+l:(Math.abs(this._x1-u)>Gt||Math.abs(this._y1-l)>Gt)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%Bo+Bo),d>k1?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Gt&&(this._+="A"+n+","+n+",0,"+ +(d>=Vo)+","+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 ie(e){return function(){return e}}var sl=Math.abs,Fe=Math.atan2,Kt=Math.cos,j1=Math.max,Wo=Math.min,_t=Math.sin,gn=Math.sqrt,Ue=1e-12,kt=Math.PI,ni=kt/2,jt=2*kt;function $1(e){return e>1?0:e<-1?kt:Math.acos(e)}function ul(e){return e>=1?ni:e<=-1?-ni:Math.asin(e)}function R1(e){return e.innerRadius}function L1(e){return e.outerRadius}function P1(e){return e.startAngle}function F1(e){return e.endAngle}function U1(e){return e&&e.padAngle}function Y1(e,t,n,r,i,o,a,s){var u=n-e,l=r-t,c=a-i,d=s-o,f=d*u-c*l;if(!(f*f<Ue))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function ri(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/gn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,v=n+c,p=r+d,m=(f+v)/2,x=(h+p)/2,M=v-f,N=p-h,b=M*M+N*N,y=i-o,S=f*p-v*h,A=(N<0?-1:1)*gn(j1(0,y*y*b-S*S)),C=(S*N-M*A)/b,D=(-S*M-N*A)/b,E=(S*N+M*A)/b,z=(-S*M+N*A)/b,g=C-m,w=D-x,k=E-m,R=z-x;return g*g+w*w>k*k+R*R&&(C=E,D=z),{cx:C,cy:D,x01:-c,y01:-d,x11:C*(i/y-1),y11:D*(i/y-1)}}function q1(){var e=R1,t=L1,n=ie(0),r=null,i=P1,o=F1,a=U1,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-ni,v=o.apply(this,arguments)-ni,p=sl(v-h),m=v>h;if(s||(s=l=pn()),f<d&&(c=f,f=d,d=c),!(f>Ue))s.moveTo(0,0);else if(p>jt-Ue)s.moveTo(f*Kt(h),f*_t(h)),s.arc(0,0,f,h,v,!m),d>Ue&&(s.moveTo(d*Kt(v),d*_t(v)),s.arc(0,0,d,v,h,m));else{var x=h,M=v,N=h,b=v,y=p,S=p,A=a.apply(this,arguments)/2,C=A>Ue&&(r?+r.apply(this,arguments):gn(d*d+f*f)),D=Wo(sl(f-d)/2,+n.apply(this,arguments)),E=D,z=D,g,w;if(C>Ue){var k=ul(C/d*_t(A)),R=ul(C/f*_t(A));(y-=k*2)>Ue?(k*=m?1:-1,N+=k,b-=k):(y=0,N=b=(h+v)/2),(S-=R*2)>Ue?(R*=m?1:-1,x+=R,M-=R):(S=0,x=M=(h+v)/2)}var L=f*Kt(x),B=f*_t(x),V=d*Kt(b),te=d*_t(b);if(D>Ue){var O=f*Kt(M),$=f*_t(M),G=d*Kt(N),K=d*_t(N),Y;if(p<kt&&(Y=Y1(L,B,G,K,O,$,V,te))){var J=L-Y[0],X=B-Y[1],H=O-Y[0],ee=$-Y[1],re=1/_t($1((J*H+X*ee)/(gn(J*J+X*X)*gn(H*H+ee*ee)))/2),ne=gn(Y[0]*Y[0]+Y[1]*Y[1]);E=Wo(D,(d-ne)/(re-1)),z=Wo(D,(f-ne)/(re+1))}}S>Ue?z>Ue?(g=ri(G,K,L,B,f,z,m),w=ri(O,$,V,te,f,z,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),z<D?s.arc(g.cx,g.cy,z,Fe(g.y01,g.x01),Fe(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,z,Fe(g.y01,g.x01),Fe(g.y11,g.x11),!m),s.arc(0,0,f,Fe(g.cy+g.y11,g.cx+g.x11),Fe(w.cy+w.y11,w.cx+w.x11),!m),s.arc(w.cx,w.cy,z,Fe(w.y11,w.x11),Fe(w.y01,w.x01),!m))):(s.moveTo(L,B),s.arc(0,0,f,x,M,!m)):s.moveTo(L,B),!(d>Ue)||!(y>Ue)?s.lineTo(V,te):E>Ue?(g=ri(V,te,O,$,d,-E,m),w=ri(L,B,G,K,d,-E,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),E<D?s.arc(g.cx,g.cy,E,Fe(g.y01,g.x01),Fe(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,E,Fe(g.y01,g.x01),Fe(g.y11,g.x11),!m),s.arc(0,0,d,Fe(g.cy+g.y11,g.cx+g.x11),Fe(w.cy+w.y11,w.cx+w.x11),m),s.arc(w.cx,w.cy,E,Fe(w.y11,w.x11),Fe(w.y01,w.x01),!m))):s.arc(0,0,d,b,N,m)}if(s.closePath(),l)return s=null,l+""||null}return u.centroid=function(){var l=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,c=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-kt/2;return[Kt(c)*l,_t(c)*l]},u.innerRadius=function(l){return arguments.length?(e=typeof l=="function"?l:ie(+l),u):e},u.outerRadius=function(l){return arguments.length?(t=typeof l=="function"?l:ie(+l),u):t},u.cornerRadius=function(l){return arguments.length?(n=typeof l=="function"?l:ie(+l),u):n},u.padRadius=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:ie(+l),u):r},u.startAngle=function(l){return arguments.length?(i=typeof l=="function"?l:ie(+l),u):i},u.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:ie(+l),u):o},u.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:ie(+l),u):a},u.context=function(l){return arguments.length?(s=l==null?null:l,u):s},u}function ll(e){this._context=e}ll.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ii(e){return new ll(e)}function Go(e){return e[0]}function Ko(e){return e[1]}function Xo(){var e=Go,t=Ko,n=ie(!0),r=null,i=ii,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=pn())),u=0;u<=l;++u)!(u<l&&n(c=s[u],u,s))===d&&((d=!d)?o.lineStart():o.lineEnd()),d&&o.point(+e(c,u,s),+t(c,u,s));if(f)return o=null,f+""||null}return a.x=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.y=function(s){return arguments.length?(t=typeof s=="function"?s:ie(+s),a):t},a.defined=function(s){return arguments.length?(n=typeof s=="function"?s:ie(!!s),a):n},a.curve=function(s){return arguments.length?(i=s,r!=null&&(o=i(r)),a):i},a.context=function(s){return arguments.length?(s==null?r=o=null:o=i(r=s),a):r},a}function cl(){var e=Go,t=null,n=ie(0),r=Ko,i=ie(!0),o=null,a=ii,s=null;function u(c){var d,f,h,v=c.length,p,m=!1,x,M=new Array(v),N=new Array(v);for(o==null&&(s=a(x=pn())),d=0;d<=v;++d){if(!(d<v&&i(p=c[d],d,c))===m)if(m=!m)f=d,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),h=d-1;h>=f;--h)s.point(M[h],N[h]);s.lineEnd(),s.areaEnd()}m&&(M[d]=+e(p,d,c),N[d]=+n(p,d,c),s.point(t?+t(p,d,c):M[d],r?+r(p,d,c):N[d]))}if(x)return s=null,x+""||null}function l(){return Xo().defined(i).curve(a).context(o)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),t=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:ie(+c),u):e},u.x1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:ie(+c),u):t},u.y=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),r=null,u):n},u.y0=function(c){return arguments.length?(n=typeof c=="function"?c:ie(+c),u):n},u.y1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:ie(+c),u):r},u.lineX0=u.lineY0=function(){return l().x(e).y(n)},u.lineY1=function(){return l().x(e).y(r)},u.lineX1=function(){return l().x(t).y(n)},u.defined=function(c){return arguments.length?(i=typeof c=="function"?c:ie(!!c),u):i},u.curve=function(c){return arguments.length?(a=c,o!=null&&(s=a(o)),u):a},u.context=function(c){return arguments.length?(c==null?o=s=null:s=a(o=c),u):o},u}function V1(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function B1(e){return e}function Q1(){var e=B1,t=V1,n=null,r=ie(0),i=ie(jt),o=ie(0);function a(s){var u,l=s.length,c,d,f=0,h=new Array(l),v=new Array(l),p=+r.apply(this,arguments),m=Math.min(jt,Math.max(-jt,i.apply(this,arguments)-p)),x,M=Math.min(Math.abs(m)/l,o.apply(this,arguments)),N=M*(m<0?-1:1),b;for(u=0;u<l;++u)(b=v[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(y,S){return t(v[y],v[S])}):n!=null&&h.sort(function(y,S){return n(s[y],s[S])}),u=0,d=f?(m-l*N)/f:0;u<l;++u,p=x)c=h[u],b=v[c],x=p+(b>0?b*d:0)+N,v[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:M};return v}return a.value=function(s){return arguments.length?(e=typeof s=="function"?s:ie(+s),a):e},a.sortValues=function(s){return arguments.length?(t=s,n=null,a):t},a.sort=function(s){return arguments.length?(n=s,t=null,a):n},a.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:ie(+s),a):r},a.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.padAngle=function(s){return arguments.length?(o=typeof s=="function"?s:ie(+s),a):o},a}var fl=Jo(ii);function dl(e){this._curve=e}dl.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Jo(e){function t(n){return new dl(e(n))}return t._curve=e,t}function Zn(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Jo(n)):t()._curve},e}function hl(){return Zn(Xo().curve(fl))}function pl(){var e=cl().curve(fl),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Zn(n())},delete e.lineX0,e.lineEndAngle=function(){return Zn(r())},delete e.lineX1,e.lineInnerRadius=function(){return Zn(i())},delete e.lineY0,e.lineOuterRadius=function(){return Zn(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Jo(a)):t()._curve},e}function er(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var Ho=Array.prototype.slice;function W1(e){return e.source}function G1(e){return e.target}function Zo(e){var t=W1,n=G1,r=Go,i=Ko,o=null;function a(){var s,u=Ho.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=pn()),e(o,+r.apply(this,(u[0]=l,u)),+i.apply(this,u),+r.apply(this,(u[0]=c,u)),+i.apply(this,u)),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:ie(+s),a):r},a.y=function(s){return arguments.length?(i=typeof s=="function"?s:ie(+s),a):i},a.context=function(s){return arguments.length?(o=s==null?null:s,a):o},a}function K1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function X1(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function J1(e,t,n,r,i){var o=er(t,n),a=er(t,n=(n+i)/2),s=er(r,n),u=er(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function H1(){return Zo(K1)}function Z1(){return Zo(X1)}function em(){var e=Zo(J1);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const ea={draw:function(e,t){var n=Math.sqrt(t/kt);e.moveTo(n,0),e.arc(0,0,n,0,jt)}},gl={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}};var ml=Math.sqrt(1/3),tm=ml*2;const vl={draw:function(e,t){var n=Math.sqrt(t/tm),r=n*ml;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var nm=.8908130915292852,yl=Math.sin(kt/10)/Math.sin(7*kt/10),rm=Math.sin(jt/10)*yl,im=-Math.cos(jt/10)*yl;const _l={draw:function(e,t){var n=Math.sqrt(t*nm),r=rm*n,i=im*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=jt*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},bl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var ta=Math.sqrt(3);const xl={draw:function(e,t){var n=-Math.sqrt(t/(ta*3));e.moveTo(0,n*2),e.lineTo(-ta*n,-n),e.lineTo(ta*n,-n),e.closePath()}};var ut=-.5,lt=Math.sqrt(3)/2,na=1/Math.sqrt(12),om=(na/2+1)*3;const Ml={draw:function(e,t){var n=Math.sqrt(t/om),r=n/2,i=n*na,o=r,a=n*na+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ut*r-lt*i,lt*r+ut*i),e.lineTo(ut*o-lt*a,lt*o+ut*a),e.lineTo(ut*s-lt*u,lt*s+ut*u),e.lineTo(ut*r+lt*i,ut*i-lt*r),e.lineTo(ut*o+lt*a,ut*a-lt*o),e.lineTo(ut*s+lt*u,ut*u-lt*s),e.closePath()}};var am=[ea,gl,vl,bl,_l,xl,Ml];function sm(){var e=ie(ea),t=ie(64),n=null;function r(){var i;if(n||(n=i=pn()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return r.type=function(i){return arguments.length?(e=typeof i=="function"?i:ie(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:ie(+i),r):t},r.context=function(i){return arguments.length?(n=i==null?null:i,r):n},r}function $t(){}function oi(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ai(e){this._context=e}ai.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:oi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function um(e){return new ai(e)}function wl(e){this._context=e}wl.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lm(e){return new wl(e)}function Tl(e){this._context=e}Tl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:oi(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cm(e){return new Tl(e)}function Nl(e,t){this._basis=new ai(e),this._beta=t}Nl.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],o=e[n]-r,a=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*o),this._beta*t[s]+(1-this._beta)*(i+u*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const fm=function e(t){function n(r){return t===1?new ai(r):new Nl(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function si(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function ra(e,t){this._context=e,this._k=(1-t)/6}ra.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:si(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const dm=function e(t){function n(r){return new ra(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ia(e,t){this._context=e,this._k=(1-t)/6}ia.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const hm=function e(t){function n(r){return new ia(r,t)}return n.tension=function(r){return e(+r)},n}(0);function oa(e,t){this._context=e,this._k=(1-t)/6}oa.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:si(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const pm=function e(t){function n(r){return new oa(r,t)}return n.tension=function(r){return e(+r)},n}(0);function aa(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Ue){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Ue){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function El(e,t){this._context=e,this._alpha=t}El.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const gm=function e(t){function n(r){return t?new El(r,t):new ra(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Dl(e,t){this._context=e,this._alpha=t}Dl.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const mm=function e(t){function n(r){return t?new Dl(r,t):new ia(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Ol(e,t){this._context=e,this._alpha=t}Ol.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:aa(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const vm=function e(t){function n(r){return t?new Ol(r,t):new oa(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function Cl(e){this._context=e}Cl.prototype={areaStart:$t,areaEnd:$t,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function ym(e){return new Cl(e)}function Sl(e){return e<0?-1:1}function Al(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(Sl(o)+Sl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Il(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function sa(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function ui(e){this._context=e}ui.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:sa(this,this._t0,Il(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,sa(this,Il(this,n=Al(this,e,t)),n);break;default:sa(this,this._t0,n=Al(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function zl(e){this._context=new kl(e)}(zl.prototype=Object.create(ui.prototype)).point=function(e,t){ui.prototype.point.call(this,t,e)};function kl(e){this._context=e}kl.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function _m(e){return new ui(e)}function bm(e){return new zl(e)}function jl(e){this._context=e}jl.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=$l(e),i=$l(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function $l(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),a=new Array(n);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function xm(e){return new jl(e)}function li(e,t){this._context=e,this._t=t}li.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function Mm(e){return new li(e,.5)}function wm(e){return new li(e,0)}function Tm(e){return new li(e,1)}function mn(e,t){if((a=e.length)>1)for(var n=1,r,i,o=e[t[0]],a,s=o.length;n<a;++n)for(i=o,o=e[t[n]],r=0;r<s;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function vn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Nm(e,t){return e[t]}function Em(){var e=ie([]),t=vn,n=mn,r=Nm;function i(o){var a=e.apply(this,arguments),s,u=o.length,l=a.length,c=new Array(l),d;for(s=0;s<l;++s){for(var f=a[s],h=c[s]=new Array(u),v=0,p;v<u;++v)h[v]=p=[0,+r(o[v],f,v,o)],p.data=o[v];h.key=f}for(s=0,d=t(c);s<l;++s)c[d[s]].index=s;return n(c,d),c}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:ie(Ho.call(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:ie(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?vn:typeof o=="function"?o:ie(Ho.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?mn:o,i):n},i}function Dm(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,a;i<o;++i){for(a=n=0;n<r;++n)a+=e[n][i][1]||0;if(a)for(n=0;n<r;++n)e[n][i][1]/=a}mn(e,t)}}function Om(e,t){if((u=e.length)>0)for(var n,r=0,i,o,a,s,u,l=e[t[0]].length;r<l;++r)for(a=s=0,n=0;n<u;++n)(o=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)}function Cm(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var a=0,s=0;a<i;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}mn(e,t)}}function Sm(e,t){if(!(!((a=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,a;r<o;++r){for(var s=0,u=0,l=0;s<a;++s){for(var c=e[t[s]],d=c[r][1]||0,f=c[r-1][1]||0,h=(d-f)/2,v=0;v<s;++v){var p=e[t[v]],m=p[r][1]||0,x=p[r-1][1]||0;h+=m-x}u+=d,l+=h*d}i[r-1][1]+=i[r-1][0]=n,u&&(n-=l/u)}i[r-1][1]+=i[r-1][0]=n,mn(e,t)}}function Rl(e){var t=e.map(Am);return vn(e).sort(function(n,r){return t[n]-t[r]})}function Am(e){for(var t=-1,n=0,r=e.length,i,o=-1/0;++t<r;)(i=+e[t][1])>o&&(o=i,n=t);return n}function Ll(e){var t=e.map(Pl);return vn(e).sort(function(n,r){return t[n]-t[r]})}function Pl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function Im(e){return Ll(e).reverse()}function zm(e){var t=e.length,n,r,i=e.map(Pl),o=Rl(e),a=0,s=0,u=[],l=[];for(n=0;n<t;++n)r=o[n],a<s?(a+=i[r],u.push(r)):(s+=i[r],l.push(r));return l.reverse().concat(u)}function km(e){return vn(e).reverse()}const jm=St(Object.freeze(Object.defineProperty({__proto__:null,arc:q1,area:cl,line:Xo,pie:Q1,areaRadial:pl,radialArea:pl,lineRadial:hl,radialLine:hl,pointRadial:er,linkHorizontal:H1,linkVertical:Z1,linkRadial:em,symbol:sm,symbols:am,symbolCircle:ea,symbolCross:gl,symbolDiamond:vl,symbolSquare:bl,symbolStar:_l,symbolTriangle:xl,symbolWye:Ml,curveBasisClosed:lm,curveBasisOpen:cm,curveBasis:um,curveBundle:fm,curveCardinalClosed:hm,curveCardinalOpen:pm,curveCardinal:dm,curveCatmullRomClosed:mm,curveCatmullRomOpen:vm,curveCatmullRom:gm,curveLinearClosed:ym,curveLinear:ii,curveMonotoneX:_m,curveMonotoneY:bm,curveNatural:xm,curveStep:Mm,curveStepAfter:Tm,curveStepBefore:wm,stack:Em,stackOffsetExpand:Dm,stackOffsetDiverging:Om,stackOffsetNone:mn,stackOffsetSilhouette:Cm,stackOffsetWiggle:Sm,stackOrderAppearance:Rl,stackOrderAscending:Ll,stackOrderDescending:Im,stackOrderInsideOut:zm,stackOrderNone:vn,stackOrderReverse:km},Symbol.toStringTag,{value:"Module"})));var $m=Ne&&Ne.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),ua=Ne&&Ne.__assign||function(){return ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ua.apply(this,arguments)},Rm=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(qo,"__esModule",{value:!0});var Fl=Rm(st.default),Ul=jm,Yl=Xi,Lm=function(e){$m(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.linkRef=null,n.state={initialStyle:{opacity:0}},n.handleOnClick=function(r){n.props.onClick(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOver=function(r){n.props.onMouseOver(n.props.linkData.source,n.props.linkData.target,r)},n.handleOnMouseOut=function(r){n.props.onMouseOut(n.props.linkData.source,n.props.linkData.target,r)},n}return t.prototype.componentDidMount=function(){this.applyOpacity(1,this.props.transitionDuration)},t.prototype.componentWillLeave=function(n){this.applyOpacity(0,this.props.transitionDuration,n)},t.prototype.applyOpacity=function(n,r,i){i===void 0&&(i=function(){}),this.props.enableLegacyTransitions?Yl.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(Yl.select(this.linkRef).style("opacity",n),i())},t.prototype.drawStepPath=function(n,r){var i=n.source,o=n.target,a=o.y-i.y;return r==="horizontal"?"M"+i.y+","+i.x+" H"+(i.y+a/2)+" V"+o.x+" H"+o.y:"M"+i.x+","+i.y+" V"+(i.y+a/2)+" H"+o.x+" V"+o.y},t.prototype.drawDiagonalPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?Ul.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):Ul.linkVertical()({source:[i.x,i.y],target:[o.x,o.y]})},t.prototype.drawStraightPath=function(n,r){var i=n.source,o=n.target;return r==="horizontal"?"M"+i.y+","+i.x+"L"+o.y+","+o.x:"M"+i.x+","+i.y+"L"+o.x+","+o.y},t.prototype.drawElbowPath=function(n,r){return r==="horizontal"?"M"+n.source.y+","+n.source.x+"V"+n.target.x+"H"+n.target.y:"M"+n.source.x+","+n.source.y+"V"+n.target.y+"H"+n.target.x},t.prototype.drawPath=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathFunc;return typeof o=="function"?o(r,i):o==="elbow"?this.drawElbowPath(r,i):o==="straight"?this.drawStraightPath(r,i):o==="step"?this.drawStepPath(r,i):this.drawDiagonalPath(r,i)},t.prototype.getClassNames=function(){var n=this.props,r=n.linkData,i=n.orientation,o=n.pathClassFunc,a=["rd3t-link"];return typeof o=="function"&&a.push(o(r,i)),a.join(" ").trim()},t.prototype.render=function(){var n=this,r=this.props.linkData;return Fl.default.createElement("path",{ref:function(i){n.linkRef=i},style:ua({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":r.source.id,"data-target-id":r.target.id})},t}(Fl.default.PureComponent);qo.default=Lm;var la={};Object.defineProperty(la,"__esModule",{value:!0}),la.default=`
55
55
  /* Tree */
56
56
  .rd3t-tree-container {
57
57
  width: 100%;
@@ -103,7 +103,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
103
103
  fill: none;
104
104
  stroke: #000;
105
105
  }
106
- `;var Pm=Te&&Te.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=Te&&Te.__assign||function(){return Zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Zn.apply(this,arguments)},vn=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ki,"__esModule",{value:!0});var Xt=vn(st.default),ql=ph,Xe=Xi,er=Og,ca=Mu,rt=vn(Tu.exports),fa=Kg,Fm=vn(Mo),Um=vn(Uo),Ym=vn(qo),qm=vn(la),Vm=function(e){Pm(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(rt.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+fa.v4(),n.gInstanceRef="rd3t-g-"+fa.v4(),n.handleNodeToggle=function(r){var i=rt.default(n.state.data),o=n.findNodesById(r,i,[]),a=o[0];n.props.collapsible&&!n.state.isTransitioning&&(a.__rd3t.collapsed?(t.expandNode(a),n.props.shouldCollapseNeighborNodes&&n.collapseNeighborNodes(a,i)):t.collapseNode(a),n.props.enableLegacyTransitions?(n.setState({data:i,isTransitioning:!0}),setTimeout(function(){return n.setState({isTransitioning:!1})},n.props.transitionDuration+10)):n.setState({data:i}),n.internalState.targetNode=a)},n.handleOnNodeClickCb=function(r,i){var o=n.props.onNodeClick;o&&typeof o=="function"&&(i.persist(),o(rt.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(rt.default(r),rt.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(rt.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(rt.default(r),rt.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(rt.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(rt.default(r),rt.default(i),o))},n.centerNode=function(r){var i=n.props,o=i.dimensions,a=i.orientation,s=i.zoom,u=i.centeringTransitionDuration;if(o){var l=Xe.select("."+n.gInstanceRef),c=Xe.select("."+n.svgInstanceRef),d=n.state.d3.scale,f=void 0,h=void 0;a==="horizontal"?(h=-r.x*d+o.height/2,f=-r.y*d+o.width/2):(f=-r.x*d+o.width/2,h=-r.y*d+o.height/2),l.transition().duration(u).attr("transform","translate("+f+","+h+")scale("+d+")"),c.call(er.zoom().transform,er.zoomIdentity.translate(f,h).scale(s))}},n.getNodeClassName=function(r,i){var o=n.props,a=o.rootNodeClassName,s=o.branchNodeClassName,u=o.leafNodeClassName,l=r!=null;return l?i.children?s:u:a},n}return t.getDerivedStateFromProps=function(n,r){var i=null;n.data!==r.dataRef&&(i={dataRef:n.data,data:t.assignInternalProperties(rt.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return ca.dequal(o,r.d3)||(i=i||{},i.d3=o),i},t.prototype.componentDidMount=function(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})},t.prototype.componentDidUpdate=function(n){this.props.data!==n.data&&this.setState({isInitialRenderForDataset:!1}),(!ca.dequal(this.props.translate,n.translate)||!ca.dequal(this.props.scaleExtent,n.scaleExtent)||this.props.zoomable!==n.zoomable||this.props.zoom!==n.zoom||this.props.enableLegacyTransitions!==n.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?rt.default(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null},t.prototype.setInitialTreeDepth=function(n,r){n.forEach(function(i){i.data.__rd3t.collapsed=i.depth>=r})},t.prototype.bindZoomListener=function(n){var r=this,i=n.zoomable,o=n.scaleExtent,a=n.translate,s=n.zoom,u=n.onUpdate,l=n.hasInteractiveNodes,c=Xe.select("."+this.svgInstanceRef),d=Xe.select("."+this.gInstanceRef);c.call(er.zoom().transform,er.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(er.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Xe.event.target.classList.contains(r.svgInstanceRef)||Xe.event.target.classList.contains(r.gInstanceRef)||Xe.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Xe.event.transform),typeof u=="function"&&(u({node:null,zoom:Xe.event.transform.k,translate:{x:Xe.event.transform.x,y:Xe.event.transform.y}}),r.state.d3.scale=Xe.event.transform.k,r.state.d3.translate={x:Xe.event.transform.x,y:Xe.event.transform.y})}))},t.assignInternalProperties=function(n,r){r===void 0&&(r=0);var i=Array.isArray(n)?n:[n];return i.map(function(o){var a=o;return a.__rd3t={id:null,depth:null,collapsed:!1},a.__rd3t.id=fa.v4(),a.__rd3t.depth=r,a.children&&a.children.length>0&&(a.children=t.assignInternalProperties(a.children,r+1)),a})},t.prototype.findNodesById=function(n,r,i){var o=this;return i.length>0||(i=i.concat(r.filter(function(a){return a.__rd3t.id===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesById(n,a.children,i))})),i},t.prototype.findNodesAtDepth=function(n,r,i){var o=this;return i=i.concat(r.filter(function(a){return a.__rd3t.depth===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesAtDepth(n,a.children,i))}),i},t.collapseNode=function(n){n.__rd3t.collapsed=!0,n.children&&n.children.length>0&&n.children.forEach(function(r){t.collapseNode(r)})},t.expandNode=function(n){n.__rd3t.collapsed=!1},t.prototype.collapseNeighborNodes=function(n,r){var i=this.findNodesAtDepth(n.__rd3t.depth,r,[]).filter(function(o){return o.__rd3t.id!==n.__rd3t.id});i.forEach(function(o){return t.collapseNode(o)})},t.prototype.generateTree=function(){var n=this.props,r=n.initialDepth,i=n.depthFactor,o=n.separation,a=n.nodeSize,s=n.orientation,u=this.state.isInitialRenderForDataset,l=ql.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,v){return h.parent.data.__rd3t.id===v.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(ql.hierarchy(this.state.data[0],function(h){return h.__rd3t.collapsed?null:h.children})),d=c.descendants(),f=c.links();return r!==void 0&&u&&this.setInitialTreeDepth(d,r),i&&d.forEach(function(h){h.y=h.depth*i}),{nodes:d,links:f}},t.calculateD3Geometry=function(n){var r;return n.zoom>n.scaleExtent.max?r=n.scaleExtent.max:n.zoom<n.scaleExtent.min?r=n.scaleExtent.min:r=n.zoom,{translate:n.translate,scale:r}},t.prototype.render=function(){var n=this,r=this.generateTree(),i=r.nodes,o=r.links,a=this.props,s=a.renderCustomNodeElement,u=a.orientation,l=a.pathFunc,c=a.transitionDuration,d=a.nodeSize,f=a.depthFactor,h=a.initialDepth,v=a.separation,p=a.enableLegacyTransitions,m=a.svgClassName,x=a.pathClassFunc,M=this.state.d3,N=M.translate,b=M.scale,y=Zn(Zn(Zn({},d),v),{depthFactor:f,initialDepth:h});return Xt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Xt.default.createElement("style",null,qm.default),Xt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+m,width:"100%",height:"100%"},Xt.default.createElement(Fm.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+N.x+","+N.y+") scale("+b+")"},o.map(function(S,A){return Xt.default.createElement(Ym.default,{key:"link-"+A,orientation:u,pathFunc:l,pathClassFunc:x,linkData:S,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(S,A){var C=S.data,D=S.x,E=S.y,z=S.parent;return Xt.default.createElement(Um.default,{key:"node-"+A,data:C,position:{x:D,y:E},hierarchyPointNode:S,parent:z,nodeClassName:n.getNodeClassName(z,C),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:y,centerNode:n.centerNode})}))))},t.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,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},t}(Xt.default.Component);ki.default=Vm;var Bm=Te&&Te.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ms,"__esModule",{value:!0});var Qm=Bm(ki),Wm=ms.default=Qm.default;const Gm=()=>{const[e,t]=W.useState({x:0,y:0}),[n,r]=W.useState({height:0,width:0}),i=W.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}},Vl=({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:[T("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 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"}),T("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 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"})]}),$t={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},Bl=W.createContext($t),it=()=>W.useContext(Bl),Km=()=>{const{setModalOpen:e}=it();return{handleClick:()=>e("add")}},Xm=()=>{const{t:e}=et.useTranslation("button"),{handleClick:t}=Km();return T(I.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:T(I.Button,{onClick:t,size:"medium",variant:"contained",startIcon:T(Vl,{}),children:e("createTree")})})},da={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${we.borderMedium} !important`}},Ql="tree-link",Jm=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Gm(),{currentTree:a}=it();return!e&&!a.id?T(Xm,{}):a.id&&!e?T(I.Box,{sx:da.progressContainer,children:T(I.CircularProgress,{})}):oe("div",{style:da.container,ref:i,children:[T(I.GlobalStyles,{styles:{[`.${Ql}`]:da.treeLink}}),T(Wm,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>Ql,nodeSize:n})]})},Wl=W.memo(Jm),Hm=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),Gl={fullHeight:{height:"100%"}},Zm=({value:e})=>{const{formatJSON:t}=Hm();return oe("div",{style:Gl.fullHeight,children:[T(I.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),T(nd.default,{value:t(e),extensions:[Kf.json()],editable:!1,theme:Xf.dracula,height:"100%",style:Gl.fullHeight})]})};var ha={},pa={};function _e(){return _e=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},_e.apply(this,arguments)}function ci(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Et(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return ci(e)&&ci(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ci(t[i])&&i in e&&ci(e[i])?r[i]=Et(e[i],t[i],n):r[i]=t[i])}),r}function yn(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 ga={exports:{}},ge={};/**
106
+ `;var Pm=Ne&&Ne.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=Ne&&Ne.__assign||function(){return tr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},tr.apply(this,arguments)},yn=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ki,"__esModule",{value:!0});var Xt=yn(st.default),ql=ph,Ke=Xi,nr=Og,ca=Mu,nt=yn(Tu.exports),fa=Kg,Fm=yn(Mo),Um=yn(Uo),Ym=yn(qo),qm=yn(la),Vm=function(e){Pm(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(nt.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+fa.v4(),n.gInstanceRef="rd3t-g-"+fa.v4(),n.handleNodeToggle=function(r){var i=nt.default(n.state.data),o=n.findNodesById(r,i,[]),a=o[0];n.props.collapsible&&!n.state.isTransitioning&&(a.__rd3t.collapsed?(t.expandNode(a),n.props.shouldCollapseNeighborNodes&&n.collapseNeighborNodes(a,i)):t.collapseNode(a),n.props.enableLegacyTransitions?(n.setState({data:i,isTransitioning:!0}),setTimeout(function(){return n.setState({isTransitioning:!1})},n.props.transitionDuration+10)):n.setState({data:i}),n.internalState.targetNode=a)},n.handleOnNodeClickCb=function(r,i){var o=n.props.onNodeClick;o&&typeof o=="function"&&(i.persist(),o(nt.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(nt.default(r),nt.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(nt.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(nt.default(r),nt.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(nt.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(nt.default(r),nt.default(i),o))},n.centerNode=function(r){var i=n.props,o=i.dimensions,a=i.orientation,s=i.zoom,u=i.centeringTransitionDuration;if(o){var l=Ke.select("."+n.gInstanceRef),c=Ke.select("."+n.svgInstanceRef),d=n.state.d3.scale,f=void 0,h=void 0;a==="horizontal"?(h=-r.x*d+o.height/2,f=-r.y*d+o.width/2):(f=-r.x*d+o.width/2,h=-r.y*d+o.height/2),l.transition().duration(u).attr("transform","translate("+f+","+h+")scale("+d+")"),c.call(nr.zoom().transform,nr.zoomIdentity.translate(f,h).scale(s))}},n.getNodeClassName=function(r,i){var o=n.props,a=o.rootNodeClassName,s=o.branchNodeClassName,u=o.leafNodeClassName,l=r!=null;return l?i.children?s:u:a},n}return t.getDerivedStateFromProps=function(n,r){var i=null;n.data!==r.dataRef&&(i={dataRef:n.data,data:t.assignInternalProperties(nt.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return ca.dequal(o,r.d3)||(i=i||{},i.d3=o),i},t.prototype.componentDidMount=function(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})},t.prototype.componentDidUpdate=function(n){this.props.data!==n.data&&this.setState({isInitialRenderForDataset:!1}),(!ca.dequal(this.props.translate,n.translate)||!ca.dequal(this.props.scaleExtent,n.scaleExtent)||this.props.zoomable!==n.zoomable||this.props.zoom!==n.zoom||this.props.enableLegacyTransitions!==n.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?nt.default(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null},t.prototype.setInitialTreeDepth=function(n,r){n.forEach(function(i){i.data.__rd3t.collapsed=i.depth>=r})},t.prototype.bindZoomListener=function(n){var r=this,i=n.zoomable,o=n.scaleExtent,a=n.translate,s=n.zoom,u=n.onUpdate,l=n.hasInteractiveNodes,c=Ke.select("."+this.svgInstanceRef),d=Ke.select("."+this.gInstanceRef);c.call(nr.zoom().transform,nr.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(nr.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Ke.event.target.classList.contains(r.svgInstanceRef)||Ke.event.target.classList.contains(r.gInstanceRef)||Ke.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Ke.event.transform),typeof u=="function"&&(u({node:null,zoom:Ke.event.transform.k,translate:{x:Ke.event.transform.x,y:Ke.event.transform.y}}),r.state.d3.scale=Ke.event.transform.k,r.state.d3.translate={x:Ke.event.transform.x,y:Ke.event.transform.y})}))},t.assignInternalProperties=function(n,r){r===void 0&&(r=0);var i=Array.isArray(n)?n:[n];return i.map(function(o){var a=o;return a.__rd3t={id:null,depth:null,collapsed:!1},a.__rd3t.id=fa.v4(),a.__rd3t.depth=r,a.children&&a.children.length>0&&(a.children=t.assignInternalProperties(a.children,r+1)),a})},t.prototype.findNodesById=function(n,r,i){var o=this;return i.length>0||(i=i.concat(r.filter(function(a){return a.__rd3t.id===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesById(n,a.children,i))})),i},t.prototype.findNodesAtDepth=function(n,r,i){var o=this;return i=i.concat(r.filter(function(a){return a.__rd3t.depth===n})),r.forEach(function(a){a.children&&a.children.length>0&&(i=o.findNodesAtDepth(n,a.children,i))}),i},t.collapseNode=function(n){n.__rd3t.collapsed=!0,n.children&&n.children.length>0&&n.children.forEach(function(r){t.collapseNode(r)})},t.expandNode=function(n){n.__rd3t.collapsed=!1},t.prototype.collapseNeighborNodes=function(n,r){var i=this.findNodesAtDepth(n.__rd3t.depth,r,[]).filter(function(o){return o.__rd3t.id!==n.__rd3t.id});i.forEach(function(o){return t.collapseNode(o)})},t.prototype.generateTree=function(){var n=this.props,r=n.initialDepth,i=n.depthFactor,o=n.separation,a=n.nodeSize,s=n.orientation,u=this.state.isInitialRenderForDataset,l=ql.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,v){return h.parent.data.__rd3t.id===v.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(ql.hierarchy(this.state.data[0],function(h){return h.__rd3t.collapsed?null:h.children})),d=c.descendants(),f=c.links();return r!==void 0&&u&&this.setInitialTreeDepth(d,r),i&&d.forEach(function(h){h.y=h.depth*i}),{nodes:d,links:f}},t.calculateD3Geometry=function(n){var r;return n.zoom>n.scaleExtent.max?r=n.scaleExtent.max:n.zoom<n.scaleExtent.min?r=n.scaleExtent.min:r=n.zoom,{translate:n.translate,scale:r}},t.prototype.render=function(){var n=this,r=this.generateTree(),i=r.nodes,o=r.links,a=this.props,s=a.renderCustomNodeElement,u=a.orientation,l=a.pathFunc,c=a.transitionDuration,d=a.nodeSize,f=a.depthFactor,h=a.initialDepth,v=a.separation,p=a.enableLegacyTransitions,m=a.svgClassName,x=a.pathClassFunc,M=this.state.d3,N=M.translate,b=M.scale,y=tr(tr(tr({},d),v),{depthFactor:f,initialDepth:h});return Xt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Xt.default.createElement("style",null,qm.default),Xt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+m,width:"100%",height:"100%"},Xt.default.createElement(Fm.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+N.x+","+N.y+") scale("+b+")"},o.map(function(S,A){return Xt.default.createElement(Ym.default,{key:"link-"+A,orientation:u,pathFunc:l,pathClassFunc:x,linkData:S,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(S,A){var C=S.data,D=S.x,E=S.y,z=S.parent;return Xt.default.createElement(Um.default,{key:"node-"+A,data:C,position:{x:D,y:E},hierarchyPointNode:S,parent:z,nodeClassName:n.getNodeClassName(z,C),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:y,centerNode:n.centerNode})}))))},t.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,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},t}(Xt.default.Component);ki.default=Vm;var Bm=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ms,"__esModule",{value:!0});var Qm=Bm(ki),Wm=ms.default=Qm.default;const Gm=()=>{const[e,t]=W.useState({x:0,y:0}),[n,r]=W.useState({height:0,width:0}),i=W.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}},Vl=({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:[T("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 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"}),T("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 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"})]}),Rt={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},Bl=W.createContext(Rt),rt=()=>W.useContext(Bl),Km=()=>{const{setModalOpen:e}=rt();return{handleClick:()=>e("add")}},Xm=()=>{const{t:e}=Ze.useTranslation("button"),{handleClick:t}=Km();return T(I.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:T(I.Button,{onClick:t,size:"medium",variant:"contained",startIcon:T(Vl,{}),children:e("createTree")})})},da={container:{height:"100%",width:"100%"},progressContainer:{alignItems:"center",display:"flex",height:"100%",justifyContent:"center"},treeLink:{stroke:`${Te.borderMedium} !important`}},Ql="tree-link",Jm=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=Gm(),{currentTree:a}=rt();return!e&&!a.id?T(Xm,{}):a.id&&!e?T(I.Box,{sx:da.progressContainer,children:T(I.CircularProgress,{})}):oe("div",{style:da.container,ref:i,children:[T(I.GlobalStyles,{styles:{[`.${Ql}`]:da.treeLink}}),T(Wm,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>Ql,nodeSize:n})]})},Wl=W.memo(Jm),Hm=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),Gl={fullHeight:{height:"100%"}},Zm=({value:e})=>{const{formatJSON:t}=Hm();return oe("div",{style:Gl.fullHeight,children:[T(I.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),T(nd.default,{value:t(e),extensions:[Kf.json()],editable:!1,theme:Xf.dracula,height:"100%",style:Gl.fullHeight})]})};var ha={},pa={};function Me(){return Me=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},Me.apply(this,arguments)}function ci(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Et(e,t,n={clone:!0}){const r=n.clone?Me({},e):e;return ci(e)&&ci(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(ci(t[i])&&i in e&&ci(e[i])?r[i]=Et(e[i],t[i],n):r[i]=t[i])}),r}function _n(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 ga={exports:{}},ve={};/**
107
107
  * @license React
108
108
  * react-is.production.min.js
109
109
  *
@@ -111,7 +111,7 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
111
111
  *
112
112
  * This source code is licensed under the MIT license found in the
113
113
  * LICENSE file in the root directory of this source tree.
114
- */var Kl;function ev(){if(Kl)return ge;Kl=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"),u=Symbol.for("react.forward_ref"),l=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 p(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case e:switch(m=m.type,m){case n:case i:case r:case l:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case a:case u:case f:case d:case o:return m;default:return x}}case t:return x}}}return ge.ContextConsumer=a,ge.ContextProvider=o,ge.Element=e,ge.ForwardRef=u,ge.Fragment=n,ge.Lazy=f,ge.Memo=d,ge.Portal=t,ge.Profiler=i,ge.StrictMode=r,ge.Suspense=l,ge.SuspenseList=c,ge.isAsyncMode=function(){return!1},ge.isConcurrentMode=function(){return!1},ge.isContextConsumer=function(m){return p(m)===a},ge.isContextProvider=function(m){return p(m)===o},ge.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ge.isForwardRef=function(m){return p(m)===u},ge.isFragment=function(m){return p(m)===n},ge.isLazy=function(m){return p(m)===f},ge.isMemo=function(m){return p(m)===d},ge.isPortal=function(m){return p(m)===t},ge.isProfiler=function(m){return p(m)===i},ge.isStrictMode=function(m){return p(m)===r},ge.isSuspense=function(m){return p(m)===l},ge.isSuspenseList=function(m){return p(m)===c},ge.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===l||m===c||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===o||m.$$typeof===a||m.$$typeof===u||m.$$typeof===v||m.getModuleId!==void 0)},ge.typeOf=p,ge}var me={};/**
114
+ */var Kl;function ev(){if(Kl)return ve;Kl=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"),u=Symbol.for("react.forward_ref"),l=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 p(m){if(typeof m=="object"&&m!==null){var x=m.$$typeof;switch(x){case e:switch(m=m.type,m){case n:case i:case r:case l:case c:return m;default:switch(m=m&&m.$$typeof,m){case s:case a:case u:case f:case d:case o:return m;default:return x}}case t:return x}}}return ve.ContextConsumer=a,ve.ContextProvider=o,ve.Element=e,ve.ForwardRef=u,ve.Fragment=n,ve.Lazy=f,ve.Memo=d,ve.Portal=t,ve.Profiler=i,ve.StrictMode=r,ve.Suspense=l,ve.SuspenseList=c,ve.isAsyncMode=function(){return!1},ve.isConcurrentMode=function(){return!1},ve.isContextConsumer=function(m){return p(m)===a},ve.isContextProvider=function(m){return p(m)===o},ve.isElement=function(m){return typeof m=="object"&&m!==null&&m.$$typeof===e},ve.isForwardRef=function(m){return p(m)===u},ve.isFragment=function(m){return p(m)===n},ve.isLazy=function(m){return p(m)===f},ve.isMemo=function(m){return p(m)===d},ve.isPortal=function(m){return p(m)===t},ve.isProfiler=function(m){return p(m)===i},ve.isStrictMode=function(m){return p(m)===r},ve.isSuspense=function(m){return p(m)===l},ve.isSuspenseList=function(m){return p(m)===c},ve.isValidElementType=function(m){return typeof m=="string"||typeof m=="function"||m===n||m===i||m===r||m===l||m===c||m===h||typeof m=="object"&&m!==null&&(m.$$typeof===f||m.$$typeof===d||m.$$typeof===o||m.$$typeof===a||m.$$typeof===u||m.$$typeof===v||m.getModuleId!==void 0)},ve.typeOf=p,ve}var ye={};/**
115
115
  * @license React
116
116
  * react-is.development.js
117
117
  *
@@ -119,35 +119,35 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat
119
119
  *
120
120
  * This source code is licensed under the MIT license found in the
121
121
  * LICENSE file in the root directory of this source tree.
122
- */var Xl;function tv(){return Xl||(Xl=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"),u=Symbol.for("react.forward_ref"),l=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,p=!1,m=!1,x=!1,M=!1,N;N=Symbol.for("react.module.reference");function b(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===i||M||Q===r||Q===l||Q===c||x||Q===h||v||p||m||typeof Q=="object"&&Q!==null&&(Q.$$typeof===f||Q.$$typeof===d||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===N||Q.getModuleId!==void 0))}function y(Q){if(typeof Q=="object"&&Q!==null){var at=Q.$$typeof;switch(at){case e:var pt=Q.type;switch(pt){case n:case i:case r:case l:case c:return pt;default:var Jt=pt&&pt.$$typeof;switch(Jt){case s:case a:case u:case f:case d:case o:return Jt;default:return at}}case t:return at}}}var S=a,A=o,C=e,D=u,E=n,z=f,g=d,w=t,k=i,R=r,L=l,B=c,V=!1,te=!1;function O(Q){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Q){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(Q){return y(Q)===a}function K(Q){return y(Q)===o}function U(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function J(Q){return y(Q)===u}function X(Q){return y(Q)===n}function H(Q){return y(Q)===f}function ee(Q){return y(Q)===d}function re(Q){return y(Q)===t}function ne(Q){return y(Q)===i}function Se(Q){return y(Q)===r}function P(Q){return y(Q)===l}function Ye(Q){return y(Q)===c}me.ContextConsumer=S,me.ContextProvider=A,me.Element=C,me.ForwardRef=D,me.Fragment=E,me.Lazy=z,me.Memo=g,me.Portal=w,me.Profiler=k,me.StrictMode=R,me.Suspense=L,me.SuspenseList=B,me.isAsyncMode=O,me.isConcurrentMode=$,me.isContextConsumer=G,me.isContextProvider=K,me.isElement=U,me.isForwardRef=J,me.isFragment=X,me.isLazy=H,me.isMemo=ee,me.isPortal=re,me.isProfiler=ne,me.isStrictMode=Se,me.isSuspense=P,me.isSuspenseList=Ye,me.isValidElementType=b,me.typeOf=y}()),me}(function(e){process.env.NODE_ENV==="production"?e.exports=ev():e.exports=tv()})(ga);const nv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rv(e){const t=`${e}`.match(nv);return t&&t[1]||""}function Jl(e,t=""){return e.displayName||e.name||rv(e)||t}function Hl(e,t,n){const r=Jl(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function iv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ga.exports.ForwardRef:return Hl(e,e.render,"ForwardRef");case ga.exports.Memo:return Hl(e,e.type,"memo");default:return}}}function Dt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":yn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ov(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function av(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 sv(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,o,a)=>{const s=i||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${o} \`${u}\` of \`${s}\` is deprecated. ${t}`):null}}function uv(e,t){return Me.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Zl(e){return e&&e.ownerDocument||document}function lv(e){return Zl(e).defaultView||window}function cv(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?_e({},t.propTypes):null;return i=>(o,a,s,u,l,...c)=>{const d=l||a,f=n==null?void 0:n[d];if(f){const h=f(o,a,s,u,l,...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 ma(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ec=typeof window<"u"?Me.useLayoutEffect:Me.useEffect;let tc=0;function fv(e){const[t,n]=Me.useState(e),r=e||t;return Me.useEffect(()=>{t==null&&(tc+=1,n(`mui-${tc}`))},[t]),r}const nc=Me["useId"];function dv(e){if(nc!==void 0){const t=nc();return e!=null?e:t}return fv(e)}function hv(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 pv({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=Me.useRef(e!==void 0),[o,a]=Me.useState(t),s=i?e:o;if(process.env.NODE_ENV!=="production"){Me.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(`
123
- `))},[r,n,e]);const{current:l}=Me.useRef(t);Me.useEffect(()=>{!i&&l!==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(`
124
- `))},[JSON.stringify(t)])}const u=Me.useCallback(l=>{i||a(l)},[]);return[s,u]}function gv(e){const t=Me.useRef(e);return ec(()=>{t.current=e}),Me.useCallback((...n)=>(0,t.current)(...n),[])}function mv(e,t){return Me.useMemo(()=>e==null&&t==null?null:n=>{ma(e,n),ma(t,n)},[e,t])}let fi=!0,va=!1,rc;const vv={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 yv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&vv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _v(e){e.metaKey||e.altKey||e.ctrlKey||(fi=!0)}function ya(){fi=!1}function bv(){this.visibilityState==="hidden"&&va&&(fi=!0)}function xv(e){e.addEventListener("keydown",_v,!0),e.addEventListener("mousedown",ya,!0),e.addEventListener("pointerdown",ya,!0),e.addEventListener("touchstart",ya,!0),e.addEventListener("visibilitychange",bv,!0)}function Mv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fi||yv(t)}function wv(){const e=Me.useCallback(i=>{i!=null&&xv(i.ownerDocument)},[]),t=Me.useRef(!1);function n(){return t.current?(va=!0,window.clearTimeout(rc),rc=window.setTimeout(()=>{va=!1},100),t.current=!1,!0):!1}function r(i){return Mv(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Tv(e,t){const n=_e({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Nv(e,t,n){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>(a&&(o.push(t(a)),n&&n[a]&&o.push(n[a])),o),[]).join(" ")}),r}const ic=e=>e,oc=(()=>{let e=ic;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ic}}})(),Ev={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function _a(e,t,n="Mui"){const r=Ev[t];return r?`${n}-${r}`:`${oc.generate(e)}-${t}`}function Dv(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=_a(e,i,n)}),r}function dt(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 ac(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=ac(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ov(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ac(e))&&(r&&(r+=" "),r+=t);return r}function sc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Cv=/^((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)-.*))$/,Sv=sc(function(e){return Cv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Av(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 Iv(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 zv=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(Iv(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:
125
- `+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=Av(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){/.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}(),Ue="-ms-",di="-moz-",de="-webkit-",ba="comm",xa="rule",Ma="decl",kv="@import",uc="@keyframes",jv=Math.abs,hi=String.fromCharCode,$v=Object.assign;function Rv(e,t){return(((t<<2^Je(e,0))<<2^Je(e,1))<<2^Je(e,2))<<2^Je(e,3)}function lc(e){return e.trim()}function Lv(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,n){return e.replace(t,n)}function wa(e,t){return e.indexOf(t)}function Je(e,t){return e.charCodeAt(t)|0}function tr(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function Ta(e){return e.length}function pi(e,t){return t.push(e),e}function Pv(e,t){return e.map(t).join("")}var gi=1,_n=1,cc=0,He=0,Ce=0,bn="";function mi(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:gi,column:_n,length:a,return:""}}function nr(e,t){return $v(mi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fv(){return Ce}function Uv(){return Ce=He>0?Je(bn,--He):0,_n--,Ce===10&&(_n=1,gi--),Ce}function ot(){return Ce=He<cc?Je(bn,He++):0,_n++,Ce===10&&(_n=1,gi++),Ce}function bt(){return Je(bn,He)}function vi(){return He}function rr(e,t){return tr(bn,e,t)}function ir(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 fc(e){return gi=_n=1,cc=_t(bn=e),He=0,[]}function dc(e){return bn="",e}function yi(e){return lc(rr(He-1,Na(e===91?e+2:e===40?e+1:e)))}function Yv(e){for(;(Ce=bt())&&Ce<33;)ot();return ir(e)>2||ir(Ce)>3?"":" "}function qv(e,t){for(;--t&&ot()&&!(Ce<48||Ce>102||Ce>57&&Ce<65||Ce>70&&Ce<97););return rr(e,vi()+(t<6&&bt()==32&&ot()==32))}function Na(e){for(;ot();)switch(Ce){case e:return He;case 34:case 39:e!==34&&e!==39&&Na(Ce);break;case 40:e===41&&Na(e);break;case 92:ot();break}return He}function Vv(e,t){for(;ot()&&e+Ce!==47+10;)if(e+Ce===42+42&&bt()===47)break;return"/*"+rr(t,He-1)+"*"+hi(e===47?e:ot())}function Bv(e){for(;!ir(bt());)ot();return rr(e,He)}function Qv(e){return dc(_i("",null,null,null,[""],e=fc(e),0,[0],e))}function _i(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,v=0,p=1,m=1,x=1,M=0,N="",b=i,y=o,S=r,A=N;m;)switch(v=M,M=ot()){case 40:if(v!=108&&A.charCodeAt(d-1)==58){wa(A+=ve(yi(M),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=yi(M);break;case 9:case 10:case 13:case 32:A+=Yv(v);break;case 92:A+=qv(vi()-1,7);continue;case 47:switch(bt()){case 42:case 47:pi(Wv(Vv(ot(),vi()),t,n),u);break;default:A+="/"}break;case 123*p:s[l++]=_t(A)*x;case 125*p:case 59:case 0:switch(M){case 0:case 125:m=0;case 59+c:h>0&&_t(A)-d&&pi(h>32?pc(A+";",r,n,d-1):pc(ve(A," ","")+";",r,n,d-2),u);break;case 59:A+=";";default:if(pi(S=hc(A,t,n,l,c,i,s,N,b=[],y=[],d),o),M===123)if(c===0)_i(A,t,S,S,b,o,d,s,y);else switch(f){case 100:case 109:case 115:_i(e,S,S,r&&pi(hc(e,S,S,0,0,i,s,N,i,b=[],d),y),i,y,d,s,r?b:y);break;default:_i(A,S,S,S,[""],y,0,s,y)}}l=c=h=0,p=x=1,N=A="",d=a;break;case 58:d=1+_t(A),h=v;default:if(p<1){if(M==123)--p;else if(M==125&&p++==0&&Uv()==125)continue}switch(A+=hi(M),M*p){case 38:x=c>0?1:(A+="\f",-1);break;case 44:s[l++]=(_t(A)-1)*x,x=1;break;case 64:bt()===45&&(A+=yi(ot())),f=bt(),c=d=_t(N=A+=Bv(vi())),M++;break;case 45:v===45&&_t(A)==2&&(p=0)}}return o}function hc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=Ta(f),v=0,p=0,m=0;v<r;++v)for(var x=0,M=tr(e,d+1,d=jv(p=a[v])),N=e;x<h;++x)(N=lc(p>0?f[x]+" "+M:ve(M,/&\f/g,f[x])))&&(u[m++]=N);return mi(e,t,n,i===0?xa:s,u,l,c)}function Wv(e,t,n){return mi(e,t,n,ba,hi(Fv()),tr(e,2,-2),0)}function pc(e,t,n,r){return mi(e,t,n,Ma,tr(e,0,r),tr(e,r+1,-1),r)}function gc(e,t){switch(Rv(e,t)){case 5103:return de+"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 de+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return de+e+di+e+Ue+e+e;case 6828:case 4268:return de+e+Ue+e+e;case 6165:return de+e+Ue+"flex-"+e+e;case 5187:return de+e+ve(e,/(\w+).+(:[^]+)/,de+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return de+e+Ue+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return de+e+Ue+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return de+e+Ue+ve(e,"shrink","negative")+e;case 5292:return de+e+Ue+ve(e,"basis","preferred-size")+e;case 6060:return de+"box-"+ve(e,"-grow","")+de+e+Ue+ve(e,"grow","positive")+e;case 4554:return de+ve(e,/([^-])(transform)/g,"$1"+de+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,de+"$1"),/(image-set)/,de+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,de+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,de+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+de+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,de+"$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(_t(e)-1-t>6)switch(Je(e,t+1)){case 109:if(Je(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+de+"$2-$3$1"+di+(Je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wa(e,"stretch")?gc(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Je(e,t+1)!==115)break;case 6444:switch(Je(e,_t(e)-3-(~wa(e,"!important")&&10))){case 107:return ve(e,":",":"+de)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+de+(Je(e,14)===45?"inline-":"")+"box$3$1"+de+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Je(e,t+11)){case 114:return de+e+Ue+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return de+e+Ue+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return de+e+Ue+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return de+e+Ue+e+e}return e}function xn(e,t){for(var n="",r=Ta(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Gv(e,t,n,r){switch(e.type){case kv:case Ma:return e.return=e.return||e.value;case ba:return"";case uc:return e.return=e.value+"{"+xn(e.children,r)+"}";case xa:e.value=e.props.join(",")}return _t(n=xn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kv(e){var t=Ta(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 Xv(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jv(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ma:e.return=gc(e.value,e.length);break;case uc:return xn([nr(e,{value:ve(e.value,"@","@"+de)})],r);case xa:if(e.length)return Pv(e.props,function(i){switch(Lv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([nr(e,{props:[ve(i,/:(read-\w+)/,":"+di+"$1")]})],r);case"::placeholder":return xn([nr(e,{props:[ve(i,/:(plac\w+)/,":"+de+"input-$1")]}),nr(e,{props:[ve(i,/:(plac\w+)/,":"+di+"$1")]}),nr(e,{props:[ve(i,/:(plac\w+)/,Ue+"input-$1")]})],r)}return""})}}var Hv=function(t,n,r){for(var i=0,o=0;i=o,o=bt(),i===38&&o===12&&(n[r]=1),!ir(o);)ot();return rr(t,He)},Zv=function(t,n){var r=-1,i=44;do switch(ir(i)){case 0:i===38&&bt()===12&&(n[r]=1),t[r]+=Hv(He-1,n,r);break;case 2:t[r]+=yi(i);break;case 4:if(i===44){t[++r]=bt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=hi(i)}while(i=ot());return t},ey=function(t,n){return dc(Zv(fc(t),n))},mc=new WeakMap,ty=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&&!mc.get(r))&&!i){mc.set(t,!0);for(var o=[],a=ey(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},ny=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},ry="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",iy=function(t){return t.type==="comm"&&t.children.indexOf(ry)>-1},oy=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===i[0],s=a?i[0].children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<n.line)break;if(l.column<n.column){if(iy(l))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".')})}}}},vc=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ay=function(t,n){for(var r=t-1;r>=0;r--)if(!vc(n[r]))return!0;return!1},yc=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},sy=function(t,n,r){!vc(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."),yc(t)):ay(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yc(t)))},uy=[Jv],ly=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.
126
- 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(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||uy;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(p){for(var m=p.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)o[m[x]]=!0;s.push(p)});var u,l=[ty,ny];process.env.NODE_ENV!=="production"&&l.push(oy({get compat(){return v.compat}}),sy);{var c,d=[Gv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==ba&&c.insert(p.value+"{}"))}:Xv(function(p){c.insert(p)})],f=Kv(l.concat(i,d)),h=function(m){return xn(Qv(m),f)};u=function(m,x,M,N){c=M,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(y){M.insert(y+x.map)}}),h(m?m+"{"+x.styles+"}":x.styles),N&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new zv({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return v.sheet.hydrate(s),v},cy=!0;function _c(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Ea=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||cy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},bc=function(t,n,r){Ea(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 fy(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 dy={animationIterationCount: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},xc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
122
+ */var Xl;function tv(){return Xl||(Xl=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"),u=Symbol.for("react.forward_ref"),l=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,p=!1,m=!1,x=!1,M=!1,N;N=Symbol.for("react.module.reference");function b(Q){return!!(typeof Q=="string"||typeof Q=="function"||Q===n||Q===i||M||Q===r||Q===l||Q===c||x||Q===h||v||p||m||typeof Q=="object"&&Q!==null&&(Q.$$typeof===f||Q.$$typeof===d||Q.$$typeof===o||Q.$$typeof===a||Q.$$typeof===u||Q.$$typeof===N||Q.getModuleId!==void 0))}function y(Q){if(typeof Q=="object"&&Q!==null){var ot=Q.$$typeof;switch(ot){case e:var pt=Q.type;switch(pt){case n:case i:case r:case l:case c:return pt;default:var Jt=pt&&pt.$$typeof;switch(Jt){case s:case a:case u:case f:case d:case o:return Jt;default:return ot}}case t:return ot}}}var S=a,A=o,C=e,D=u,E=n,z=f,g=d,w=t,k=i,R=r,L=l,B=c,V=!1,te=!1;function O(Q){return V||(V=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function $(Q){return te||(te=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function G(Q){return y(Q)===a}function K(Q){return y(Q)===o}function Y(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function J(Q){return y(Q)===u}function X(Q){return y(Q)===n}function H(Q){return y(Q)===f}function ee(Q){return y(Q)===d}function re(Q){return y(Q)===t}function ne(Q){return y(Q)===i}function Ce(Q){return y(Q)===r}function P(Q){return y(Q)===l}function qe(Q){return y(Q)===c}ye.ContextConsumer=S,ye.ContextProvider=A,ye.Element=C,ye.ForwardRef=D,ye.Fragment=E,ye.Lazy=z,ye.Memo=g,ye.Portal=w,ye.Profiler=k,ye.StrictMode=R,ye.Suspense=L,ye.SuspenseList=B,ye.isAsyncMode=O,ye.isConcurrentMode=$,ye.isContextConsumer=G,ye.isContextProvider=K,ye.isElement=Y,ye.isForwardRef=J,ye.isFragment=X,ye.isLazy=H,ye.isMemo=ee,ye.isPortal=re,ye.isProfiler=ne,ye.isStrictMode=Ce,ye.isSuspense=P,ye.isSuspenseList=qe,ye.isValidElementType=b,ye.typeOf=y}()),ye}(function(e){process.env.NODE_ENV==="production"?e.exports=ev():e.exports=tv()})(ga);const nv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function rv(e){const t=`${e}`.match(nv);return t&&t[1]||""}function Jl(e,t=""){return e.displayName||e.name||rv(e)||t}function Hl(e,t,n){const r=Jl(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function iv(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Jl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ga.exports.ForwardRef:return Hl(e,e.render,"ForwardRef");case ga.exports.Memo:return Hl(e,e.type,"memo");default:return}}}function Dt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":_n(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ov(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function av(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 sv(e,t){return process.env.NODE_ENV==="production"?()=>null:(n,r,i,o,a)=>{const s=i||"<<anonymous>>",u=a||r;return typeof n[r]<"u"?new Error(`The ${o} \`${u}\` of \`${s}\` is deprecated. ${t}`):null}}function uv(e,t){return we.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Zl(e){return e&&e.ownerDocument||document}function lv(e){return Zl(e).defaultView||window}function cv(e,t){if(process.env.NODE_ENV==="production")return()=>null;const n=t?Me({},t.propTypes):null;return i=>(o,a,s,u,l,...c)=>{const d=l||a,f=n==null?void 0:n[d];if(f){const h=f(o,a,s,u,l,...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 ma(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ec=typeof window<"u"?we.useLayoutEffect:we.useEffect;let tc=0;function fv(e){const[t,n]=we.useState(e),r=e||t;return we.useEffect(()=>{t==null&&(tc+=1,n(`mui-${tc}`))},[t]),r}const nc=we["useId"];function dv(e){if(nc!==void 0){const t=nc();return e!=null?e:t}return fv(e)}function hv(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 pv({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=we.useRef(e!==void 0),[o,a]=we.useState(t),s=i?e:o;if(process.env.NODE_ENV!=="production"){we.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(`
123
+ `))},[r,n,e]);const{current:l}=we.useRef(t);we.useEffect(()=>{!i&&l!==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(`
124
+ `))},[JSON.stringify(t)])}const u=we.useCallback(l=>{i||a(l)},[]);return[s,u]}function gv(e){const t=we.useRef(e);return ec(()=>{t.current=e}),we.useCallback((...n)=>(0,t.current)(...n),[])}function mv(e,t){return we.useMemo(()=>e==null&&t==null?null:n=>{ma(e,n),ma(t,n)},[e,t])}let fi=!0,va=!1,rc;const vv={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 yv(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&vv[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _v(e){e.metaKey||e.altKey||e.ctrlKey||(fi=!0)}function ya(){fi=!1}function bv(){this.visibilityState==="hidden"&&va&&(fi=!0)}function xv(e){e.addEventListener("keydown",_v,!0),e.addEventListener("mousedown",ya,!0),e.addEventListener("pointerdown",ya,!0),e.addEventListener("touchstart",ya,!0),e.addEventListener("visibilitychange",bv,!0)}function Mv(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return fi||yv(t)}function wv(){const e=we.useCallback(i=>{i!=null&&xv(i.ownerDocument)},[]),t=we.useRef(!1);function n(){return t.current?(va=!0,window.clearTimeout(rc),rc=window.setTimeout(()=>{va=!1},100),t.current=!1,!0):!1}function r(i){return Mv(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Tv(e,t){const n=Me({},t);return Object.keys(e).forEach(r=>{n[r]===void 0&&(n[r]=e[r])}),n}function Nv(e,t,n){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,a)=>(a&&(o.push(t(a)),n&&n[a]&&o.push(n[a])),o),[]).join(" ")}),r}const ic=e=>e,oc=(()=>{let e=ic;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ic}}})(),Ev={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function _a(e,t,n="Mui"){const r=Ev[t];return r?`${n}-${r}`:`${oc.generate(e)}-${t}`}function Dv(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=_a(e,i,n)}),r}function dt(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 ac(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=ac(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Ov(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=ac(e))&&(r&&(r+=" "),r+=t);return r}function sc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Cv=/^((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)-.*))$/,Sv=sc(function(e){return Cv.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Av(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 Iv(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 zv=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(Iv(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:
125
+ `+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=Av(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){/.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}(),Ye="-ms-",di="-moz-",he="-webkit-",ba="comm",xa="rule",Ma="decl",kv="@import",uc="@keyframes",jv=Math.abs,hi=String.fromCharCode,$v=Object.assign;function Rv(e,t){return(((t<<2^Xe(e,0))<<2^Xe(e,1))<<2^Xe(e,2))<<2^Xe(e,3)}function lc(e){return e.trim()}function Lv(e,t){return(e=t.exec(e))?e[0]:e}function _e(e,t,n){return e.replace(t,n)}function wa(e,t){return e.indexOf(t)}function Xe(e,t){return e.charCodeAt(t)|0}function rr(e,t,n){return e.slice(t,n)}function bt(e){return e.length}function Ta(e){return e.length}function pi(e,t){return t.push(e),e}function Pv(e,t){return e.map(t).join("")}var gi=1,bn=1,cc=0,Je=0,Oe=0,xn="";function mi(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:gi,column:bn,length:a,return:""}}function ir(e,t){return $v(mi("",null,null,"",null,null,0),e,{length:-e.length},t)}function Fv(){return Oe}function Uv(){return Oe=Je>0?Xe(xn,--Je):0,bn--,Oe===10&&(bn=1,gi--),Oe}function it(){return Oe=Je<cc?Xe(xn,Je++):0,bn++,Oe===10&&(bn=1,gi++),Oe}function xt(){return Xe(xn,Je)}function vi(){return Je}function or(e,t){return rr(xn,e,t)}function ar(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 fc(e){return gi=bn=1,cc=bt(xn=e),Je=0,[]}function dc(e){return xn="",e}function yi(e){return lc(or(Je-1,Na(e===91?e+2:e===40?e+1:e)))}function Yv(e){for(;(Oe=xt())&&Oe<33;)it();return ar(e)>2||ar(Oe)>3?"":" "}function qv(e,t){for(;--t&&it()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return or(e,vi()+(t<6&&xt()==32&&it()==32))}function Na(e){for(;it();)switch(Oe){case e:return Je;case 34:case 39:e!==34&&e!==39&&Na(Oe);break;case 40:e===41&&Na(e);break;case 92:it();break}return Je}function Vv(e,t){for(;it()&&e+Oe!==47+10;)if(e+Oe===42+42&&xt()===47)break;return"/*"+or(t,Je-1)+"*"+hi(e===47?e:it())}function Bv(e){for(;!ar(xt());)it();return or(e,Je)}function Qv(e){return dc(_i("",null,null,null,[""],e=fc(e),0,[0],e))}function _i(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,v=0,p=1,m=1,x=1,M=0,N="",b=i,y=o,S=r,A=N;m;)switch(v=M,M=it()){case 40:if(v!=108&&A.charCodeAt(d-1)==58){wa(A+=_e(yi(M),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=yi(M);break;case 9:case 10:case 13:case 32:A+=Yv(v);break;case 92:A+=qv(vi()-1,7);continue;case 47:switch(xt()){case 42:case 47:pi(Wv(Vv(it(),vi()),t,n),u);break;default:A+="/"}break;case 123*p:s[l++]=bt(A)*x;case 125*p:case 59:case 0:switch(M){case 0:case 125:m=0;case 59+c:h>0&&bt(A)-d&&pi(h>32?pc(A+";",r,n,d-1):pc(_e(A," ","")+";",r,n,d-2),u);break;case 59:A+=";";default:if(pi(S=hc(A,t,n,l,c,i,s,N,b=[],y=[],d),o),M===123)if(c===0)_i(A,t,S,S,b,o,d,s,y);else switch(f){case 100:case 109:case 115:_i(e,S,S,r&&pi(hc(e,S,S,0,0,i,s,N,i,b=[],d),y),i,y,d,s,r?b:y);break;default:_i(A,S,S,S,[""],y,0,s,y)}}l=c=h=0,p=x=1,N=A="",d=a;break;case 58:d=1+bt(A),h=v;default:if(p<1){if(M==123)--p;else if(M==125&&p++==0&&Uv()==125)continue}switch(A+=hi(M),M*p){case 38:x=c>0?1:(A+="\f",-1);break;case 44:s[l++]=(bt(A)-1)*x,x=1;break;case 64:xt()===45&&(A+=yi(it())),f=xt(),c=d=bt(N=A+=Bv(vi())),M++;break;case 45:v===45&&bt(A)==2&&(p=0)}}return o}function hc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=Ta(f),v=0,p=0,m=0;v<r;++v)for(var x=0,M=rr(e,d+1,d=jv(p=a[v])),N=e;x<h;++x)(N=lc(p>0?f[x]+" "+M:_e(M,/&\f/g,f[x])))&&(u[m++]=N);return mi(e,t,n,i===0?xa:s,u,l,c)}function Wv(e,t,n){return mi(e,t,n,ba,hi(Fv()),rr(e,2,-2),0)}function pc(e,t,n,r){return mi(e,t,n,Ma,rr(e,0,r),rr(e,r+1,-1),r)}function gc(e,t){switch(Rv(e,t)){case 5103:return he+"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 he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+di+e+Ye+e+e;case 6828:case 4268:return he+e+Ye+e+e;case 6165:return he+e+Ye+"flex-"+e+e;case 5187:return he+e+_e(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+Ye+"flex-$1$2")+e;case 5443:return he+e+Ye+"flex-item-"+_e(e,/flex-|-self/,"")+e;case 4675:return he+e+Ye+"flex-line-pack"+_e(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+Ye+_e(e,"shrink","negative")+e;case 5292:return he+e+Ye+_e(e,"basis","preferred-size")+e;case 6060:return he+"box-"+_e(e,"-grow","")+he+e+Ye+_e(e,"grow","positive")+e;case 4554:return he+_e(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return _e(_e(_e(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return _e(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return _e(_e(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+Ye+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return _e(e,/(.+)-inline(.+)/,he+"$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(bt(e)-1-t>6)switch(Xe(e,t+1)){case 109:if(Xe(e,t+4)!==45)break;case 102:return _e(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+di+(Xe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wa(e,"stretch")?gc(_e(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xe(e,t+1)!==115)break;case 6444:switch(Xe(e,bt(e)-3-(~wa(e,"!important")&&10))){case 107:return _e(e,":",":"+he)+e;case 101:return _e(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(Xe(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+Ye+"$2box$3")+e}break;case 5936:switch(Xe(e,t+11)){case 114:return he+e+Ye+_e(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+Ye+_e(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+Ye+_e(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+Ye+e+e}return e}function Mn(e,t){for(var n="",r=Ta(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Gv(e,t,n,r){switch(e.type){case kv:case Ma:return e.return=e.return||e.value;case ba:return"";case uc:return e.return=e.value+"{"+Mn(e.children,r)+"}";case xa:e.value=e.props.join(",")}return bt(n=Mn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Kv(e){var t=Ta(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 Xv(e){return function(t){t.root||(t=t.return)&&e(t)}}function Jv(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ma:e.return=gc(e.value,e.length);break;case uc:return Mn([ir(e,{value:_e(e.value,"@","@"+he)})],r);case xa:if(e.length)return Pv(e.props,function(i){switch(Lv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Mn([ir(e,{props:[_e(i,/:(read-\w+)/,":"+di+"$1")]})],r);case"::placeholder":return Mn([ir(e,{props:[_e(i,/:(plac\w+)/,":"+he+"input-$1")]}),ir(e,{props:[_e(i,/:(plac\w+)/,":"+di+"$1")]}),ir(e,{props:[_e(i,/:(plac\w+)/,Ye+"input-$1")]})],r)}return""})}}var Hv=function(t,n,r){for(var i=0,o=0;i=o,o=xt(),i===38&&o===12&&(n[r]=1),!ar(o);)it();return or(t,Je)},Zv=function(t,n){var r=-1,i=44;do switch(ar(i)){case 0:i===38&&xt()===12&&(n[r]=1),t[r]+=Hv(Je-1,n,r);break;case 2:t[r]+=yi(i);break;case 4:if(i===44){t[++r]=xt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=hi(i)}while(i=it());return t},ey=function(t,n){return dc(Zv(fc(t),n))},mc=new WeakMap,ty=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&&!mc.get(r))&&!i){mc.set(t,!0);for(var o=[],a=ey(n,o),s=r.props,u=0,l=0;u<a.length;u++)for(var c=0;c<s.length;c++,l++)t.props[l]=o[u]?a[u].replace(/&\f/g,s[c]):s[c]+" "+a[u]}}},ny=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},ry="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",iy=function(t){return t.type==="comm"&&t.children.indexOf(ry)>-1},oy=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===i[0],s=a?i[0].children:i,u=s.length-1;u>=0;u--){var l=s[u];if(l.line<n.line)break;if(l.column<n.column){if(iy(l))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".')})}}}},vc=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},ay=function(t,n){for(var r=t-1;r>=0;r--)if(!vc(n[r]))return!0;return!1},yc=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},sy=function(t,n,r){!vc(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."),yc(t)):ay(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),yc(t)))},uy=[Jv],ly=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.
126
+ 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(p){var m=p.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var i=t.stylisPlugins||uy;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(p){for(var m=p.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)o[m[x]]=!0;s.push(p)});var u,l=[ty,ny];process.env.NODE_ENV!=="production"&&l.push(oy({get compat(){return v.compat}}),sy);{var c,d=[Gv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==ba&&c.insert(p.value+"{}"))}:Xv(function(p){c.insert(p)})],f=Kv(l.concat(i,d)),h=function(m){return Mn(Qv(m),f)};u=function(m,x,M,N){c=M,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(y){M.insert(y+x.map)}}),h(m?m+"{"+x.styles+"}":x.styles),N&&(v.inserted[x.name]=!0)}}var v={key:n,sheet:new zv({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:u};return v.sheet.hydrate(s),v},cy=!0;function _c(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Ea=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||cy===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},bc=function(t,n,r){Ea(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 fy(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 dy={animationIterationCount: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},xc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
127
127
  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';".
128
128
  You can read more about this here:
129
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,hy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",py=/[A-Z]|^ms/g,Mc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Da=function(t){return t.charCodeAt(1)===45},wc=function(t){return t!=null&&typeof t!="boolean"},Oa=sc(function(e){return Da(e)?e:e.replace(py,"-$&").toLowerCase()}),bi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mc,function(r,i,o){return ht={name:i,styles:o,next:ht},i})}return dy[t]!==1&&!Da(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var gy=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,my=["normal","none","initial","inherit","unset"],vy=bi,yy=/^-ms-/,_y=/-(.)/g,Tc={};bi=function(t,n){if(t==="content"&&(typeof n!="string"||my.indexOf(n)===-1&&!gy.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=vy(t,n);return r!==""&&!Da(t)&&t.indexOf("-")!==-1&&Tc[t]===void 0&&(Tc[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(yy,"ms-").replace(_y,function(i,o){return o.toUpperCase()})+"?")),r}}var Nc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function or(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(Nc);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ht={name:n.name,styles:n.styles,next:ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ht={name:r.name,styles:r.styles,next:ht},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return by(e,t,n)}case"function":{if(e!==void 0){var o=ht,a=n(e);return ht=o,or(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=[],u=n.replace(Mc,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,["`"+u+"`"]).join(`
129
+ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,hy="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",py=/[A-Z]|^ms/g,Mc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Da=function(t){return t.charCodeAt(1)===45},wc=function(t){return t!=null&&typeof t!="boolean"},Oa=sc(function(e){return Da(e)?e:e.replace(py,"-$&").toLowerCase()}),bi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mc,function(r,i,o){return ht={name:i,styles:o,next:ht},i})}return dy[t]!==1&&!Da(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var gy=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,my=["normal","none","initial","inherit","unset"],vy=bi,yy=/^-ms-/,_y=/-(.)/g,Tc={};bi=function(t,n){if(t==="content"&&(typeof n!="string"||my.indexOf(n)===-1&&!gy.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=vy(t,n);return r!==""&&!Da(t)&&t.indexOf("-")!==-1&&Tc[t]===void 0&&(Tc[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(yy,"ms-").replace(_y,function(i,o){return o.toUpperCase()})+"?")),r}}var Nc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function sr(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(Nc);return n}switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return ht={name:n.name,styles:n.styles,next:ht},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)ht={name:r.name,styles:r.styles,next:ht},r=r.next;var i=n.styles+";";return process.env.NODE_ENV!=="production"&&n.map!==void 0&&(i+=n.map),i}return by(e,t,n)}case"function":{if(e!==void 0){var o=ht,a=n(e);return ht=o,sr(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=[],u=n.replace(Mc,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,["`"+u+"`"]).join(`
130
130
  `)+`
131
131
 
132
132
  You should wrap it with \`css\` like this:
133
133
 
134
- `+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function by(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=or(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]+"}":wc(a)&&(r+=Oa(o)+":"+bi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Nc);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wc(a[s])&&(r+=Oa(o)+":"+bi(o,a[s])+";");else{var u=or(e,t,a);switch(o){case"animation":case"animationName":{r+=Oa(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(hy),r+=o+"{"+u+"}"}}}}return r}var Ec=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dc;process.env.NODE_ENV!=="production"&&(Dc=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ht,Ca=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="";ht=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=or(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(xc),o+=a[0]);for(var s=1;s<t.length;s++)o+=or(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(xc),o+=a[s]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(Dc,function(f){return u=f,""})),Ec.lastIndex=0;for(var l="",c;(c=Ec.exec(o))!==null;)l+="-"+c[1];var d=fy(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:u,next:ht,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:ht}},xy=function(t){return t()},My=Me["useInsertionEffect"]?Me["useInsertionEffect"]:!1,Oc=My||xy,wy={}.hasOwnProperty,Sa=W.createContext(typeof HTMLElement<"u"?ly({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Sa.displayName="EmotionCacheContext"),Sa.Provider;var Cc=function(t){return W.forwardRef(function(n,r){var i=W.useContext(Sa);return t(n,i,r)})},Aa=W.createContext({});process.env.NODE_ENV!=="production"&&(Aa.displayName="EmotionThemeContext");var Sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ac="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ty=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ea(n,r,i),Oc(function(){return bc(n,r,i)}),null},Ny=Cc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Sc],o=[r],a="";typeof e.className=="string"?a=_c(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ca(o,void 0,W.useContext(Aa));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Ac];u&&(s=Ca([s,"label:"+u+";"]))}a+=t.key+"-"+s.name;var l={};for(var c in e)wy.call(e,c)&&c!=="css"&&c!==Sc&&(process.env.NODE_ENV==="production"||c!==Ac)&&(l[c]=e[c]);return l.ref=n,l.className=a,W.createElement(W.Fragment,null,W.createElement(Ty,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,l))});process.env.NODE_ENV!=="production"&&(Ny.displayName="EmotionCssPropInternal");var Ey=Sv,Dy=function(t){return t!=="theme"},Ic=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ey:Dy},zc=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},kc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
134
+ `+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function by(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=sr(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]+"}":wc(a)&&(r+=Oa(o)+":"+bi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Nc);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)wc(a[s])&&(r+=Oa(o)+":"+bi(o,a[s])+";");else{var u=sr(e,t,a);switch(o){case"animation":case"animationName":{r+=Oa(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(hy),r+=o+"{"+u+"}"}}}}return r}var Ec=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Dc;process.env.NODE_ENV!=="production"&&(Dc=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ht,Ca=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="";ht=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=sr(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(xc),o+=a[0]);for(var s=1;s<t.length;s++)o+=sr(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(xc),o+=a[s]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(Dc,function(f){return u=f,""})),Ec.lastIndex=0;for(var l="",c;(c=Ec.exec(o))!==null;)l+="-"+c[1];var d=fy(o)+l;return process.env.NODE_ENV!=="production"?{name:d,styles:o,map:u,next:ht,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:ht}},xy=function(t){return t()},My=we["useInsertionEffect"]?we["useInsertionEffect"]:!1,Oc=My||xy,wy={}.hasOwnProperty,Sa=W.createContext(typeof HTMLElement<"u"?ly({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Sa.displayName="EmotionCacheContext"),Sa.Provider;var Cc=function(t){return W.forwardRef(function(n,r){var i=W.useContext(Sa);return t(n,i,r)})},Aa=W.createContext({});process.env.NODE_ENV!=="production"&&(Aa.displayName="EmotionThemeContext");var Sc="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ac="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Ty=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ea(n,r,i),Oc(function(){return bc(n,r,i)}),null},Ny=Cc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Sc],o=[r],a="";typeof e.className=="string"?a=_c(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ca(o,void 0,W.useContext(Aa));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[Ac];u&&(s=Ca([s,"label:"+u+";"]))}a+=t.key+"-"+s.name;var l={};for(var c in e)wy.call(e,c)&&c!=="css"&&c!==Sc&&(process.env.NODE_ENV==="production"||c!==Ac)&&(l[c]=e[c]);return l.ref=n,l.className=a,W.createElement(W.Fragment,null,W.createElement(Ty,{cache:t,serialized:s,isStringTag:typeof i=="string"}),W.createElement(i,l))});process.env.NODE_ENV!=="production"&&(Ny.displayName="EmotionCssPropInternal");var Ey=Sv,Dy=function(t){return t!=="theme"},Ic=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Ey:Dy},zc=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},kc=`You have illegal escape sequence in your template literal, most likely inside content's property value.
135
135
  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';".
136
136
  You can read more about this here:
137
137
  https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Oy=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ea(n,r,i),Oc(function(){return bc(n,r,i)}),null},Cy=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.
138
- 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=zc(t,n,r),u=s||Ic(i),l=!u("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(kc),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(kc),d.push(c[h],c[0][h])}var v=Cc(function(p,m,x){var M=l&&p.as||i,N="",b=[],y=p;if(p.theme==null){y={};for(var S in p)y[S]=p[S];y.theme=W.useContext(Aa)}typeof p.className=="string"?N=_c(m.registered,b,p.className):p.className!=null&&(N=p.className+" ");var A=Ca(d.concat(b),m.registered,y);N+=m.key+"-"+A.name,a!==void 0&&(N+=" "+a);var C=l&&s===void 0?Ic(M):u,D={};for(var E in p)l&&E==="as"||C(E)&&(D[E]=p[E]);return D.className=N,D.ref=x,W.createElement(W.Fragment,null,W.createElement(Oy,{cache:m,serialized:A,isStringTag:typeof M=="string"}),W.createElement(M,D))});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(p,m){return e(p,_e({},n,m,{shouldForwardProp:zc(v,m,!0)})).apply(void 0,d)},v}},Sy=["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"],Ia=Cy.bind();Sy.forEach(function(e){Ia[e]=Ia(e)});const Ay=Ia;/** @license MUI v5.10.5
138
+ 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=zc(t,n,r),u=s||Ic(i),l=!u("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(kc),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(kc),d.push(c[h],c[0][h])}var v=Cc(function(p,m,x){var M=l&&p.as||i,N="",b=[],y=p;if(p.theme==null){y={};for(var S in p)y[S]=p[S];y.theme=W.useContext(Aa)}typeof p.className=="string"?N=_c(m.registered,b,p.className):p.className!=null&&(N=p.className+" ");var A=Ca(d.concat(b),m.registered,y);N+=m.key+"-"+A.name,a!==void 0&&(N+=" "+a);var C=l&&s===void 0?Ic(M):u,D={};for(var E in p)l&&E==="as"||C(E)&&(D[E]=p[E]);return D.className=N,D.ref=x,W.createElement(W.Fragment,null,W.createElement(Oy,{cache:m,serialized:A,isStringTag:typeof M=="string"}),W.createElement(M,D))});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(p,m){return e(p,Me({},n,m,{shouldForwardProp:zc(v,m,!0)})).apply(void 0,d)},v}},Sy=["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"],Ia=Cy.bind();Sy.forEach(function(e){Ia[e]=Ia(e)});const Ay=Ia;/** @license MUI v5.10.5
139
139
  *
140
140
  * This source code is licensed under the MIT license found in the
141
141
  * LICENSE file in the root directory of this source tree.
142
142
  */function Iy(e,t){const n=Ay(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(`
143
- `)):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 zy=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Rt=process.env.NODE_ENV!=="production"?ue.exports.oneOfType([ue.exports.number,ue.exports.string,ue.exports.object,ue.exports.array]):{};function ar(e,t){return t?Et(e,t,{clone:!1}):e}const za={xs:0,sm:600,md:900,lg:1200,xl:1536},jc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${za[e]}px)`};function Lt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||jc;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||jc;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||za).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function ky(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function jy(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ka(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 $c(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ka(e,n)||r,t&&(i=t(i)),i}function q(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],u=a.theme,l=ka(u,r)||{};return Lt(a,s,d=>{let f=$c(l,i,d);return d===f&&typeof d=="string"&&(f=$c(l,i,`${t}${d==="default"?"":Dt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},o.filterProps=[t],o}function Pt(...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]?ar(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 $y(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ry={m:"margin",p:"padding"},Ly={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Py=$y(e=>{if(e.length>2)if(Rc[e])e=Rc[e];else return[e];const[t,n]=e.split(""),r=Ry[t],i=Ly[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ja=[...Lc,...Pc];function sr(e,t,n,r){var i;const o=(i=ka(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(`
143
+ `)):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 zy=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Lt=process.env.NODE_ENV!=="production"?ue.exports.oneOfType([ue.exports.number,ue.exports.string,ue.exports.object,ue.exports.array]):{};function ur(e,t){return t?Et(e,t,{clone:!1}):e}const za={xs:0,sm:600,md:900,lg:1200,xl:1536},jc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${za[e]}px)`};function Pt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||jc;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||jc;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||za).indexOf(s)!==-1){const u=o.up(s);a[u]=n(t[s],s)}else{const u=s;a[u]=t[u]}return a},{})}return n(t)}function ky(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function jy(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ka(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 $c(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=ka(e,n)||r,t&&(i=t(i)),i}function q(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],u=a.theme,l=ka(u,r)||{};return Pt(a,s,d=>{let f=$c(l,i,d);return d===f&&typeof d=="string"&&(f=$c(l,i,`${t}${d==="default"?"":Dt(d)}`,d)),n===!1?f:{[n]:f}})};return o.propTypes=process.env.NODE_ENV!=="production"?{[t]:Lt}:{},o.filterProps=[t],o}function Ft(...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]?ur(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 $y(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const Ry={m:"margin",p:"padding"},Ly={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Rc={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Py=$y(e=>{if(e.length>2)if(Rc[e])e=Rc[e];else return[e];const[t,n]=e.split(""),r=Ry[t],i=Ly[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Lc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],ja=[...Lc,...Pc];function lr(e,t,n,r){var i;const o=(i=ka(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(`
144
144
  `)):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(`
145
145
  `))),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(`
146
- `)),()=>{})}function Fc(e){return sr(e,"spacing",8,"spacing")}function ur(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 Fy(e,t){return n=>e.reduce((r,i)=>(r[i]=ur(t,n),r),{})}function Uy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Py(n),o=Fy(i,r),a=e[n];return Lt(e,a,o)}function Yy(e,t){const n=Fc(e.theme);return Object.keys(e).map(r=>Uy(e,t,r,n)).reduce(ar,{})}process.env.NODE_ENV!=="production"&&Lc.reduce((e,t)=>(e[t]=Rt,e),{}),process.env.NODE_ENV!=="production"&&Pc.reduce((e,t)=>(e[t]=Rt,e),{});function xi(e){return Yy(e,ja)}xi.propTypes=process.env.NODE_ENV!=="production"?ja.reduce((e,t)=>(e[t]=Rt,e),{}):{},xi.filterProps=ja;function lr(e){return typeof e!="number"?e:`${e}px solid`}const qy=q({prop:"border",themeKey:"borders",transform:lr}),Vy=q({prop:"borderTop",themeKey:"borders",transform:lr}),By=q({prop:"borderRight",themeKey:"borders",transform:lr}),Qy=q({prop:"borderBottom",themeKey:"borders",transform:lr}),Wy=q({prop:"borderLeft",themeKey:"borders",transform:lr}),Gy=q({prop:"borderColor",themeKey:"palette"}),Ky=q({prop:"borderTopColor",themeKey:"palette"}),Xy=q({prop:"borderRightColor",themeKey:"palette"}),Jy=q({prop:"borderBottomColor",themeKey:"palette"}),Hy=q({prop:"borderLeftColor",themeKey:"palette"}),$a=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=sr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:ur(t,r)});return Lt(e,e.borderRadius,n)}return null};$a.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{},$a.filterProps=["borderRadius"];const Uc=Pt(qy,Vy,By,Qy,Wy,Gy,Ky,Xy,Jy,Hy,$a),Zy=q({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),e_=q({prop:"display"}),t_=q({prop:"overflow"}),n_=q({prop:"textOverflow"}),r_=q({prop:"visibility"}),i_=q({prop:"whiteSpace"}),Yc=Pt(Zy,e_,t_,n_,r_,i_),o_=q({prop:"flexBasis"}),a_=q({prop:"flexDirection"}),s_=q({prop:"flexWrap"}),u_=q({prop:"justifyContent"}),l_=q({prop:"alignItems"}),c_=q({prop:"alignContent"}),f_=q({prop:"order"}),d_=q({prop:"flex"}),h_=q({prop:"flexGrow"}),p_=q({prop:"flexShrink"}),g_=q({prop:"alignSelf"}),m_=q({prop:"justifyItems"}),v_=q({prop:"justifySelf"}),qc=Pt(o_,a_,s_,u_,l_,c_,f_,d_,h_,p_,g_,m_,v_),Ra=e=>{if(e.gap!==void 0&&e.gap!==null){const t=sr(e.theme,"spacing",8,"gap"),n=r=>({gap:ur(t,r)});return Lt(e,e.gap,n)}return null};Ra.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{},Ra.filterProps=["gap"];const La=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=sr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:ur(t,r)});return Lt(e,e.columnGap,n)}return null};La.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{},La.filterProps=["columnGap"];const Pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=sr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:ur(t,r)});return Lt(e,e.rowGap,n)}return null};Pa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{},Pa.filterProps=["rowGap"];const y_=q({prop:"gridColumn"}),__=q({prop:"gridRow"}),b_=q({prop:"gridAutoFlow"}),x_=q({prop:"gridAutoColumns"}),M_=q({prop:"gridAutoRows"}),w_=q({prop:"gridTemplateColumns"}),T_=q({prop:"gridTemplateRows"}),N_=q({prop:"gridTemplateAreas"}),E_=q({prop:"gridArea"}),Vc=Pt(Ra,La,Pa,y_,__,b_,x_,M_,w_,T_,N_,E_),D_=q({prop:"color",themeKey:"palette"}),O_=q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),C_=q({prop:"backgroundColor",themeKey:"palette"}),Bc=Pt(D_,O_,C_),S_=q({prop:"position"}),A_=q({prop:"zIndex",themeKey:"zIndex"}),I_=q({prop:"top"}),z_=q({prop:"right"}),k_=q({prop:"bottom"}),j_=q({prop:"left"}),Qc=Pt(S_,A_,I_,z_,k_,j_),Wc=q({prop:"boxShadow",themeKey:"shadows"});function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const $_=q({prop:"width",transform:Ft}),Gc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||za[n]||Ft(n)}};return Lt(e,e.maxWidth,t)}return null};Gc.filterProps=["maxWidth"];const R_=q({prop:"minWidth",transform:Ft}),L_=q({prop:"height",transform:Ft}),P_=q({prop:"maxHeight",transform:Ft}),F_=q({prop:"minHeight",transform:Ft});q({prop:"size",cssProperty:"width",transform:Ft}),q({prop:"size",cssProperty:"height",transform:Ft});const U_=q({prop:"boxSizing"}),Kc=Pt($_,Gc,R_,L_,P_,F_,U_),Y_=q({prop:"fontFamily",themeKey:"typography"}),q_=q({prop:"fontSize",themeKey:"typography"}),V_=q({prop:"fontStyle",themeKey:"typography"}),B_=q({prop:"fontWeight",themeKey:"typography"}),Q_=q({prop:"letterSpacing"}),W_=q({prop:"textTransform"}),G_=q({prop:"lineHeight"}),K_=q({prop:"textAlign"}),X_=q({prop:"typography",cssProperty:!1,themeKey:"typography"}),Xc=Pt(X_,Y_,q_,V_,B_,Q_,G_,K_,W_),Jc={borders:Uc.filterProps,display:Yc.filterProps,flexbox:qc.filterProps,grid:Vc.filterProps,positions:Qc.filterProps,palette:Bc.filterProps,shadows:Wc.filterProps,sizing:Kc.filterProps,spacing:xi.filterProps,typography:Xc.filterProps},Hc={borders:Uc,display:Yc,flexbox:qc,grid:Vc,positions:Qc,palette:Bc,shadows:Wc,sizing:Kc,spacing:xi,typography:Xc};Object.keys(Jc).reduce((e,t)=>(Jc[t].forEach(n=>{e[n]=Hc[t]}),e),{});function J_(...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 H_(e,t){return typeof e=="function"?e(t):e}function Z_(e=Hc){const t=Object.keys(e).reduce((i,o)=>(e[o].filterProps.forEach(a=>{i[a]=e[o]}),i),{});function n(i,o,a){const s={[i]:o,theme:a},u=t[i];return u?u(s):{[i]:o}}function r(i){const{sx:o,theme:a={}}=i||{};if(!o)return null;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=ky(a.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const v=H_(l[h],a);if(v!=null)if(typeof v=="object")if(t[h])f=ar(f,n(h,v,a));else{const p=Lt({theme:a},v,m=>({[h]:m}));J_(p,v)?f[h]=r({sx:v,theme:a}):f=ar(f,p)}else f=ar(f,n(h,v,a))}),jy(d,f)}return Array.isArray(o)?o.map(s):s(o)}return r}const Zc=Z_();Zc.filterProps=["sx"];const eb=Zc,tb=["values","unit","step"],nb=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)=>_e({},n,{[r.key]:r.val}),{})};function rb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=dt(e,tb),o=nb(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function l(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?l(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?u(a[h]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return _e({keys:a,values:o,up:s,down:u,between:l,only:c,not:d,unit:n},i)}const ib={borderRadius:4};function ob(e=8){if(e.mui)return e;const t=Fc({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}const ab=["breakpoints","palette","spacing","shape"];function Fa(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=dt(e,ab),s=rb(n),u=ob(i);let l=Et({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},r),spacing:u,shape:_e({},ib,o)},a);return l=t.reduce((c,d)=>Et(c,d),l),l}const ef=Me.createContext(null);process.env.NODE_ENV!=="production"&&(ef.displayName="ThemeContext");const sb=ef;function ub(){const e=Me.useContext(sb);return process.env.NODE_ENV!=="production"&&Me.useDebugValue(e),e}function lb(e){return Object.keys(e).length===0}function cb(e=null){const t=ub();return!t||lb(t)?e:t}const fb=Fa();function db(e=fb){return cb(e)}const hb=["variant"];function tf(e){return e.length===0}function nf(e){const{variant:t}=e,n=dt(e,hb);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=tf(r)?e[i]:Dt(e[i]):r+=`${tf(r)?i:Dt(i)}${Dt(e[i].toString())}`}),r}const pb=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],gb=["theme"],mb=["theme"];function cr(e){return Object.keys(e).length===0}function vb(e){return typeof e=="string"&&e.charCodeAt(0)>96}const yb=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,_b=(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=nf(i.props);r[o]=i.style}),r},bb=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],u=n==null||(i=n.components)==null||(o=i[r])==null?void 0:o.variants;return u&&u.forEach(l=>{let c=!0;Object.keys(l.props).forEach(d=>{a[d]!==l.props[d]&&e[d]!==l.props[d]&&(c=!1)}),c&&s.push(t[nf(l.props)])}),s};function Mi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xb=Fa(),Mb=e=>e.charAt(0).toLowerCase()+e.slice(1);function wb(e={}){const{defaultTheme:t=xb,rootShouldForwardProp:n=Mi,slotShouldForwardProp:r=Mi,styleFunctionSx:i=eb}=e,o=a=>{const s=cr(a.theme)?t:a.theme;return i(_e({},a,{theme:s}))};return o.__mui_systemSx=!0,(a,s={})=>{zy(a,b=>b.filter(y=>!(y!=null&&y.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=dt(s,pb),v=c!==void 0?c:l&&l!=="Root"||!1,p=d||!1;let m;process.env.NODE_ENV!=="production"&&u&&(m=`${u}-${Mb(l||"Root")}`);let x=Mi;l==="Root"?x=n:l?x=r:vb(a)&&(x=void 0);const M=Iy(a,_e({shouldForwardProp:x,label:m},h)),N=(b,...y)=>{const S=y?y.map(E=>typeof E=="function"&&E.__emotion_real!==E?z=>{let{theme:g}=z,w=dt(z,gb);return E(_e({theme:cr(g)?t:g},w))}:E):[];let A=b;u&&f&&S.push(E=>{const z=cr(E.theme)?t:E.theme,g=yb(u,z);if(g){const w={};return Object.entries(g).forEach(([k,R])=>{w[k]=typeof R=="function"?R(_e({},E,{theme:z})):R}),f(E,w)}return null}),u&&!v&&S.push(E=>{const z=cr(E.theme)?t:E.theme;return bb(E,_b(u,z),z,u)}),p||S.push(o);const C=S.length-y.length;if(Array.isArray(b)&&C>0){const E=new Array(C).fill("");A=[...b,...E],A.raw=[...b.raw,...E]}else typeof b=="function"&&b.__emotion_real!==b&&(A=E=>{let{theme:z}=E,g=dt(E,mb);return b(_e({theme:cr(z)?t:z},g))});const D=M(A,...S);if(process.env.NODE_ENV!=="production"){let E;u&&(E=`${u}${l||""}`),E===void 0&&(E=`Styled(${iv(a)})`),D.displayName=E}return D};return M.withConfig&&(N.withConfig=M.withConfig),N}}function Tb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tv(t.components[n].defaultProps,r)}function Nb({props:e,name:t,defaultTheme:n}){const r=db(n);return Tb({theme:r,name:t,props:e})}function rf(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 Eb(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 Mn(e){if(e.type)return e;if(e.charAt(0)==="#")return Mn(Eb(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.
147
- The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:yn(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.
148
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:yn(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Ua(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 Db(e){e=Mn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Ua({type:s,values:u})}function of(e){e=Mn(e);let t=e.type==="hsl"?Mn(Db(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 af(e,t){const n=of(e),r=of(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ob(e,t){if(e=Mn(e),t=rf(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 Ua(e)}function Cb(e,t){if(e=Mn(e),t=rf(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 Ua(e)}function Sb(e,t){return _e({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const fr={black:"#000",white:"#fff"},Ab={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"},wn={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"},Tn={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"},dr={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"},Nn={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"},En={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"},Dn={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"},Ib=["mode","contrastThreshold","tonalOffset"],sf={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:fr.white,default:fr.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}},Ya={text:{primary:fr.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:fr.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 uf(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=Cb(e.main,i):t==="dark"&&(e.dark=Ob(e.main,o)))}function zb(e="light"){return e==="dark"?{main:Nn[200],light:Nn[50],dark:Nn[400]}:{main:Nn[700],light:Nn[400],dark:Nn[800]}}function kb(e="light"){return e==="dark"?{main:wn[200],light:wn[50],dark:wn[400]}:{main:wn[500],light:wn[300],dark:wn[700]}}function jb(e="light"){return e==="dark"?{main:Tn[500],light:Tn[300],dark:Tn[700]}:{main:Tn[700],light:Tn[400],dark:Tn[800]}}function $b(e="light"){return e==="dark"?{main:En[400],light:En[300],dark:En[700]}:{main:En[700],light:En[500],dark:En[900]}}function Rb(e="light"){return e==="dark"?{main:Dn[400],light:Dn[300],dark:Dn[700]}:{main:Dn[800],light:Dn[500],dark:Dn[900]}}function Lb(e="light"){return e==="dark"?{main:dr[400],light:dr[300],dark:dr[700]}:{main:"#ed6c02",light:dr[500],dark:dr[900]}}function Pb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=dt(e,Ib),o=e.primary||zb(t),a=e.secondary||kb(t),s=e.error||jb(t),u=e.info||$b(t),l=e.success||Rb(t),c=e.warning||Lb(t);function d(p){const m=af(p,Ya.text.primary)>=n?Ya.text.primary:sf.text.primary;if(process.env.NODE_ENV!=="production"){const x=af(p,m);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${m} on ${p}`,"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(`
149
- `))}return m}const f=({color:p,name:m,mainShade:x=500,lightShade:M=300,darkShade:N=700})=>{if(p=_e({},p),!p.main&&p[x]&&(p.main=p[x]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
150
- The color object needs to have a \`main\` property or a \`${x}\` property.`:yn(11,m?` (${m})`:"",x));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
146
+ `)),()=>{})}function Fc(e){return lr(e,"spacing",8,"spacing")}function cr(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 Fy(e,t){return n=>e.reduce((r,i)=>(r[i]=cr(t,n),r),{})}function Uy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=Py(n),o=Fy(i,r),a=e[n];return Pt(e,a,o)}function Yy(e,t){const n=Fc(e.theme);return Object.keys(e).map(r=>Uy(e,t,r,n)).reduce(ur,{})}process.env.NODE_ENV!=="production"&&Lc.reduce((e,t)=>(e[t]=Lt,e),{}),process.env.NODE_ENV!=="production"&&Pc.reduce((e,t)=>(e[t]=Lt,e),{});function xi(e){return Yy(e,ja)}xi.propTypes=process.env.NODE_ENV!=="production"?ja.reduce((e,t)=>(e[t]=Lt,e),{}):{},xi.filterProps=ja;function fr(e){return typeof e!="number"?e:`${e}px solid`}const qy=q({prop:"border",themeKey:"borders",transform:fr}),Vy=q({prop:"borderTop",themeKey:"borders",transform:fr}),By=q({prop:"borderRight",themeKey:"borders",transform:fr}),Qy=q({prop:"borderBottom",themeKey:"borders",transform:fr}),Wy=q({prop:"borderLeft",themeKey:"borders",transform:fr}),Gy=q({prop:"borderColor",themeKey:"palette"}),Ky=q({prop:"borderTopColor",themeKey:"palette"}),Xy=q({prop:"borderRightColor",themeKey:"palette"}),Jy=q({prop:"borderBottomColor",themeKey:"palette"}),Hy=q({prop:"borderLeftColor",themeKey:"palette"}),$a=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=lr(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:cr(t,r)});return Pt(e,e.borderRadius,n)}return null};$a.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Lt}:{},$a.filterProps=["borderRadius"];const Uc=Ft(qy,Vy,By,Qy,Wy,Gy,Ky,Xy,Jy,Hy,$a),Zy=q({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),e_=q({prop:"display"}),t_=q({prop:"overflow"}),n_=q({prop:"textOverflow"}),r_=q({prop:"visibility"}),i_=q({prop:"whiteSpace"}),Yc=Ft(Zy,e_,t_,n_,r_,i_),o_=q({prop:"flexBasis"}),a_=q({prop:"flexDirection"}),s_=q({prop:"flexWrap"}),u_=q({prop:"justifyContent"}),l_=q({prop:"alignItems"}),c_=q({prop:"alignContent"}),f_=q({prop:"order"}),d_=q({prop:"flex"}),h_=q({prop:"flexGrow"}),p_=q({prop:"flexShrink"}),g_=q({prop:"alignSelf"}),m_=q({prop:"justifyItems"}),v_=q({prop:"justifySelf"}),qc=Ft(o_,a_,s_,u_,l_,c_,f_,d_,h_,p_,g_,m_,v_),Ra=e=>{if(e.gap!==void 0&&e.gap!==null){const t=lr(e.theme,"spacing",8,"gap"),n=r=>({gap:cr(t,r)});return Pt(e,e.gap,n)}return null};Ra.propTypes=process.env.NODE_ENV!=="production"?{gap:Lt}:{},Ra.filterProps=["gap"];const La=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=lr(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:cr(t,r)});return Pt(e,e.columnGap,n)}return null};La.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Lt}:{},La.filterProps=["columnGap"];const Pa=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=lr(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:cr(t,r)});return Pt(e,e.rowGap,n)}return null};Pa.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Lt}:{},Pa.filterProps=["rowGap"];const y_=q({prop:"gridColumn"}),__=q({prop:"gridRow"}),b_=q({prop:"gridAutoFlow"}),x_=q({prop:"gridAutoColumns"}),M_=q({prop:"gridAutoRows"}),w_=q({prop:"gridTemplateColumns"}),T_=q({prop:"gridTemplateRows"}),N_=q({prop:"gridTemplateAreas"}),E_=q({prop:"gridArea"}),Vc=Ft(Ra,La,Pa,y_,__,b_,x_,M_,w_,T_,N_,E_),D_=q({prop:"color",themeKey:"palette"}),O_=q({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),C_=q({prop:"backgroundColor",themeKey:"palette"}),Bc=Ft(D_,O_,C_),S_=q({prop:"position"}),A_=q({prop:"zIndex",themeKey:"zIndex"}),I_=q({prop:"top"}),z_=q({prop:"right"}),k_=q({prop:"bottom"}),j_=q({prop:"left"}),Qc=Ft(S_,A_,I_,z_,k_,j_),Wc=q({prop:"boxShadow",themeKey:"shadows"});function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const $_=q({prop:"width",transform:Ut}),Gc=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i,o;return{maxWidth:((r=e.theme)==null||(i=r.breakpoints)==null||(o=i.values)==null?void 0:o[n])||za[n]||Ut(n)}};return Pt(e,e.maxWidth,t)}return null};Gc.filterProps=["maxWidth"];const R_=q({prop:"minWidth",transform:Ut}),L_=q({prop:"height",transform:Ut}),P_=q({prop:"maxHeight",transform:Ut}),F_=q({prop:"minHeight",transform:Ut});q({prop:"size",cssProperty:"width",transform:Ut}),q({prop:"size",cssProperty:"height",transform:Ut});const U_=q({prop:"boxSizing"}),Kc=Ft($_,Gc,R_,L_,P_,F_,U_),Y_=q({prop:"fontFamily",themeKey:"typography"}),q_=q({prop:"fontSize",themeKey:"typography"}),V_=q({prop:"fontStyle",themeKey:"typography"}),B_=q({prop:"fontWeight",themeKey:"typography"}),Q_=q({prop:"letterSpacing"}),W_=q({prop:"textTransform"}),G_=q({prop:"lineHeight"}),K_=q({prop:"textAlign"}),X_=q({prop:"typography",cssProperty:!1,themeKey:"typography"}),Xc=Ft(X_,Y_,q_,V_,B_,Q_,G_,K_,W_),Jc={borders:Uc.filterProps,display:Yc.filterProps,flexbox:qc.filterProps,grid:Vc.filterProps,positions:Qc.filterProps,palette:Bc.filterProps,shadows:Wc.filterProps,sizing:Kc.filterProps,spacing:xi.filterProps,typography:Xc.filterProps},Hc={borders:Uc,display:Yc,flexbox:qc,grid:Vc,positions:Qc,palette:Bc,shadows:Wc,sizing:Kc,spacing:xi,typography:Xc};Object.keys(Jc).reduce((e,t)=>(Jc[t].forEach(n=>{e[n]=Hc[t]}),e),{});function J_(...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 H_(e,t){return typeof e=="function"?e(t):e}function Z_(e=Hc){const t=Object.keys(e).reduce((i,o)=>(e[o].filterProps.forEach(a=>{i[a]=e[o]}),i),{});function n(i,o,a){const s={[i]:o,theme:a},u=t[i];return u?u(s):{[i]:o}}function r(i){const{sx:o,theme:a={}}=i||{};if(!o)return null;function s(u){let l=u;if(typeof u=="function")l=u(a);else if(typeof u!="object")return u;if(!l)return null;const c=ky(a.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const v=H_(l[h],a);if(v!=null)if(typeof v=="object")if(t[h])f=ur(f,n(h,v,a));else{const p=Pt({theme:a},v,m=>({[h]:m}));J_(p,v)?f[h]=r({sx:v,theme:a}):f=ur(f,p)}else f=ur(f,n(h,v,a))}),jy(d,f)}return Array.isArray(o)?o.map(s):s(o)}return r}const Zc=Z_();Zc.filterProps=["sx"];const eb=Zc,tb=["values","unit","step"],nb=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)=>Me({},n,{[r.key]:r.val}),{})};function rb(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=dt(e,tb),o=nb(t),a=Object.keys(o);function s(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function u(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function l(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?l(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?u(a[h]):l(f,a[a.indexOf(f)+1]).replace("@media","@media not all and")}return Me({keys:a,values:o,up:s,down:u,between:l,only:c,not:d,unit:n},i)}const ib={borderRadius:4};function ob(e=8){if(e.mui)return e;const t=Fc({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}const ab=["breakpoints","palette","spacing","shape"];function Fa(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=dt(e,ab),s=rb(n),u=ob(i);let l=Et({breakpoints:s,direction:"ltr",components:{},palette:Me({mode:"light"},r),spacing:u,shape:Me({},ib,o)},a);return l=t.reduce((c,d)=>Et(c,d),l),l}const ef=we.createContext(null);process.env.NODE_ENV!=="production"&&(ef.displayName="ThemeContext");const sb=ef;function ub(){const e=we.useContext(sb);return process.env.NODE_ENV!=="production"&&we.useDebugValue(e),e}function lb(e){return Object.keys(e).length===0}function cb(e=null){const t=ub();return!t||lb(t)?e:t}const fb=Fa();function db(e=fb){return cb(e)}const hb=["variant"];function tf(e){return e.length===0}function nf(e){const{variant:t}=e,n=dt(e,hb);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=tf(r)?e[i]:Dt(e[i]):r+=`${tf(r)?i:Dt(i)}${Dt(e[i].toString())}`}),r}const pb=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],gb=["theme"],mb=["theme"];function dr(e){return Object.keys(e).length===0}function vb(e){return typeof e=="string"&&e.charCodeAt(0)>96}const yb=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,_b=(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=nf(i.props);r[o]=i.style}),r},bb=(e,t,n,r)=>{var i,o;const{ownerState:a={}}=e,s=[],u=n==null||(i=n.components)==null||(o=i[r])==null?void 0:o.variants;return u&&u.forEach(l=>{let c=!0;Object.keys(l.props).forEach(d=>{a[d]!==l.props[d]&&e[d]!==l.props[d]&&(c=!1)}),c&&s.push(t[nf(l.props)])}),s};function Mi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const xb=Fa(),Mb=e=>e.charAt(0).toLowerCase()+e.slice(1);function wb(e={}){const{defaultTheme:t=xb,rootShouldForwardProp:n=Mi,slotShouldForwardProp:r=Mi,styleFunctionSx:i=eb}=e,o=a=>{const s=dr(a.theme)?t:a.theme;return i(Me({},a,{theme:s}))};return o.__mui_systemSx=!0,(a,s={})=>{zy(a,b=>b.filter(y=>!(y!=null&&y.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=dt(s,pb),v=c!==void 0?c:l&&l!=="Root"||!1,p=d||!1;let m;process.env.NODE_ENV!=="production"&&u&&(m=`${u}-${Mb(l||"Root")}`);let x=Mi;l==="Root"?x=n:l?x=r:vb(a)&&(x=void 0);const M=Iy(a,Me({shouldForwardProp:x,label:m},h)),N=(b,...y)=>{const S=y?y.map(E=>typeof E=="function"&&E.__emotion_real!==E?z=>{let{theme:g}=z,w=dt(z,gb);return E(Me({theme:dr(g)?t:g},w))}:E):[];let A=b;u&&f&&S.push(E=>{const z=dr(E.theme)?t:E.theme,g=yb(u,z);if(g){const w={};return Object.entries(g).forEach(([k,R])=>{w[k]=typeof R=="function"?R(Me({},E,{theme:z})):R}),f(E,w)}return null}),u&&!v&&S.push(E=>{const z=dr(E.theme)?t:E.theme;return bb(E,_b(u,z),z,u)}),p||S.push(o);const C=S.length-y.length;if(Array.isArray(b)&&C>0){const E=new Array(C).fill("");A=[...b,...E],A.raw=[...b.raw,...E]}else typeof b=="function"&&b.__emotion_real!==b&&(A=E=>{let{theme:z}=E,g=dt(E,mb);return b(Me({theme:dr(z)?t:z},g))});const D=M(A,...S);if(process.env.NODE_ENV!=="production"){let E;u&&(E=`${u}${l||""}`),E===void 0&&(E=`Styled(${iv(a)})`),D.displayName=E}return D};return M.withConfig&&(N.withConfig=M.withConfig),N}}function Tb(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Tv(t.components[n].defaultProps,r)}function Nb({props:e,name:t,defaultTheme:n}){const r=db(n);return Tb({theme:r,name:t,props:e})}function rf(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 Eb(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 wn(e){if(e.type)return e;if(e.charAt(0)==="#")return wn(Eb(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.
147
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:_n(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.
148
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:_n(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Ua(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 Db(e){e=wn(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),a=(l,c=(l+n/30)%12)=>i-o*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",u.push(t[3])),Ua({type:s,values:u})}function of(e){e=wn(e);let t=e.type==="hsl"?wn(Db(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 af(e,t){const n=of(e),r=of(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Ob(e,t){if(e=wn(e),t=rf(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 Ua(e)}function Cb(e,t){if(e=wn(e),t=rf(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 Ua(e)}function Sb(e,t){return Me({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const hr={black:"#000",white:"#fff"},Ab={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"},Tn={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"},Nn={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"},pr={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"},En={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"},Dn={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"},On={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"},Ib=["mode","contrastThreshold","tonalOffset"],sf={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:hr.white,default:hr.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}},Ya={text:{primary:hr.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:hr.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 uf(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=Cb(e.main,i):t==="dark"&&(e.dark=Ob(e.main,o)))}function zb(e="light"){return e==="dark"?{main:En[200],light:En[50],dark:En[400]}:{main:En[700],light:En[400],dark:En[800]}}function kb(e="light"){return e==="dark"?{main:Tn[200],light:Tn[50],dark:Tn[400]}:{main:Tn[500],light:Tn[300],dark:Tn[700]}}function jb(e="light"){return e==="dark"?{main:Nn[500],light:Nn[300],dark:Nn[700]}:{main:Nn[700],light:Nn[400],dark:Nn[800]}}function $b(e="light"){return e==="dark"?{main:Dn[400],light:Dn[300],dark:Dn[700]}:{main:Dn[700],light:Dn[500],dark:Dn[900]}}function Rb(e="light"){return e==="dark"?{main:On[400],light:On[300],dark:On[700]}:{main:On[800],light:On[500],dark:On[900]}}function Lb(e="light"){return e==="dark"?{main:pr[400],light:pr[300],dark:pr[700]}:{main:"#ed6c02",light:pr[500],dark:pr[900]}}function Pb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=dt(e,Ib),o=e.primary||zb(t),a=e.secondary||kb(t),s=e.error||jb(t),u=e.info||$b(t),l=e.success||Rb(t),c=e.warning||Lb(t);function d(p){const m=af(p,Ya.text.primary)>=n?Ya.text.primary:sf.text.primary;if(process.env.NODE_ENV!=="production"){const x=af(p,m);x<3&&console.error([`MUI: The contrast ratio of ${x}:1 for ${m} on ${p}`,"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(`
149
+ `))}return m}const f=({color:p,name:m,mainShade:x=500,lightShade:M=300,darkShade:N=700})=>{if(p=Me({},p),!p.main&&p[x]&&(p.main=p[x]),!p.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
150
+ The color object needs to have a \`main\` property or a \`${x}\` property.`:_n(11,m?` (${m})`:"",x));if(typeof p.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
151
151
  \`color.main\` should be a string, but \`${JSON.stringify(p.main)}\` was provided instead.
152
152
 
153
153
  Did you intend to use one of the following approaches?
@@ -160,6 +160,6 @@ const theme1 = createTheme({ palette: {
160
160
 
161
161
  const theme2 = createTheme({ palette: {
162
162
  primary: { main: green[500] },
163
- } });`:yn(12,m?` (${m})`:"",JSON.stringify(p.main)));return uf(p,"light",M,r),uf(p,"dark",N,r),p.contrastText||(p.contrastText=d(p.main)),p},h={dark:Ya,light:sf};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Et(_e({common:_e({},fr),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:u,name:"info"}),success:f({color:l,name:"success"}),grey:Ab,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const Fb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ub(e){return Math.round(e*1e5)/1e5}const lf={textTransform:"uppercase"},cf='"Roboto", "Helvetica", "Arial", sans-serif';function Yb(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=cf,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=n,f=dt(n,Fb);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,v=d||(x=>`${x/l*h}rem`),p=(x,M,N,b,y)=>_e({fontFamily:r,fontWeight:x,fontSize:v(M),lineHeight:N},r===cf?{letterSpacing:`${Ub(b/M)}em`}:{},y,c),m={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,lf),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,lf)};return Et(_e({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},m),f,{clone:!1})}const qb=.2,Vb=.14,Bb=.12;function Ne(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qb})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bb})`].join(",")}const Qb=["none",Ne(0,2,1,-1,0,1,1,0,0,1,3,0),Ne(0,3,1,-2,0,2,2,0,0,1,5,0),Ne(0,3,3,-2,0,3,4,0,0,1,8,0),Ne(0,2,4,-1,0,4,5,0,0,1,10,0),Ne(0,3,5,-1,0,5,8,0,0,1,14,0),Ne(0,3,5,-1,0,6,10,0,0,1,18,0),Ne(0,4,5,-2,0,7,10,1,0,2,16,1),Ne(0,5,5,-3,0,8,10,1,0,3,14,2),Ne(0,5,6,-3,0,9,12,1,0,3,16,2),Ne(0,6,6,-3,0,10,14,1,0,4,18,3),Ne(0,6,7,-4,0,11,15,1,0,4,20,3),Ne(0,7,8,-4,0,12,17,2,0,5,22,4),Ne(0,7,8,-4,0,13,19,2,0,5,24,4),Ne(0,7,9,-4,0,14,21,2,0,5,26,4),Ne(0,8,9,-5,0,15,22,2,0,6,28,5),Ne(0,8,10,-5,0,16,24,2,0,6,30,5),Ne(0,8,11,-5,0,17,26,2,0,6,32,5),Ne(0,9,11,-5,0,18,28,2,0,7,34,6),Ne(0,9,12,-6,0,19,29,2,0,7,36,6),Ne(0,10,13,-6,0,20,31,3,0,8,38,7),Ne(0,10,13,-6,0,21,33,3,0,8,40,7),Ne(0,10,14,-6,0,22,35,3,0,8,42,7),Ne(0,11,14,-7,0,23,36,3,0,9,44,8),Ne(0,11,15,-7,0,24,38,3,0,9,46,8)],Wb=["duration","easing","delay"],Gb={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)"},Kb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ff(e){return`${Math.round(e)}ms`}function Xb(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Jb(e){const t=_e({},Gb,e.easing),n=_e({},Kb,e.duration);return _e({getAutoHeightDuration:Xb,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o,l=dt(o,Wb);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(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:ff(a)} ${s} ${typeof u=="string"?u:ff(u)}`).join(",")}},e,{easing:t,duration:n})}const Hb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Zb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ex(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=dt(e,Zb);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.":yn(18));const s=Pb(r),u=Fa(e);let l=Et(u,{mixins:Sb(u.breakpoints,n),palette:s,shadows:Qb.slice(),typography:Yb(s,o),transitions:Jb(i),zIndex:_e({},Hb)});if(l=Et(l,a),l=t.reduce((c,d)=>Et(c,d),l),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 p=f[v];if(c.indexOf(v)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const m=_a("",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 '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
164
- `))}f[v]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l}const df=ex();function tx({props:e,name:t}){return Nb({props:e,name:t,defaultTheme:df})}const nx=wb({defaultTheme:df,rootShouldForwardProp:e=>Mi(e)&&e!=="classes"});function rx(e){return _a("MuiSvgIcon",e)}Dv("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ix=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ox=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Dt(t)}`,`fontSize${Dt(n)}`]};return Nv(i,rx,r)},ax=nx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Dt(n.color)}`],t[`fontSize${Dt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,u,l,c,d,f,h,v,p,m,x,M;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(o=i.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(v=h[t.color])==null?void 0:v.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(m=p.action)==null?void 0:m.active,disabled:(x=(e.vars||e).palette)==null||(M=x.action)==null?void 0:M.disabled,inherit:void 0}[t.color]}}),qa=Me.forwardRef(function(t,n){const r=tx({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=dt(r,ix),v=_e({},r,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),p={};c||(p.viewBox=f);const m=ox(v);return oe(ax,_e({as:s,className:Ov(m.root,o),ownerState:v,focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},p,h,{children:[i,d?T("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(qa.propTypes={children:ue.exports.node,classes:ue.exports.object,className:ue.exports.string,color:ue.exports.oneOfType([ue.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ue.exports.string]),component:ue.exports.elementType,fontSize:ue.exports.oneOfType([ue.exports.oneOf(["inherit","large","medium","small"]),ue.exports.string]),htmlColor:ue.exports.string,inheritViewBox:ue.exports.bool,shapeRendering:ue.exports.string,sx:ue.exports.oneOfType([ue.exports.arrayOf(ue.exports.oneOfType([ue.exports.func,ue.exports.object,ue.exports.bool])),ue.exports.func,ue.exports.object]),titleAccess:ue.exports.string,viewBox:ue.exports.string}),qa.muiName="SvgIcon";const hf=qa;function sx(e,t){const n=(r,i)=>T(hf,_e({"data-testid":`${t}Icon`,ref:i},r,{children:e}));return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=hf.muiName,Me.memo(Me.forwardRef(n))}const ux=Ct(Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:{configure:e=>{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(`
165
- `)),oc.configure(e)}},capitalize:Dt,createChainedFunction:ov,createSvgIcon:sx,debounce:av,deprecatedPropType:sv,isMuiElement:uv,ownerDocument:Zl,ownerWindow:lv,requirePropFactory:cv,setRef:ma,unstable_useEnhancedEffect:ec,unstable_useId:dv,unsupportedProp:hv,useControlled:pv,useEventCallback:gv,useForkRef:mv,useIsFocusVisible:wv},Symbol.toStringTag,{value:"Module"})));var pf;function Be(){return pf||(pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ux}(pa)),pa}const Qe=Ct(ud);var lx=Ie.exports;Object.defineProperty(ha,"__esModule",{value:!0});var gf=ha.default=void 0,cx=lx(Be()),fx=Qe,dx=(0,cx.default)((0,fx.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");gf=ha.default=dx;var Va={},hx=Ie.exports;Object.defineProperty(Va,"__esModule",{value:!0});var mf=Va.default=void 0,px=hx(Be()),gx=Qe,mx=(0,px.default)((0,gx.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");mf=Va.default=mx;var Ba={},vx=Ie.exports;Object.defineProperty(Ba,"__esModule",{value:!0});var vf=Ba.default=void 0,yx=vx(Be()),_x=Qe,bx=(0,yx.default)((0,_x.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");vf=Ba.default=bx;const Qa=()=>{const{dispatchSnackbar:e}=W.useContext(ps);return{close:()=>e(gs()),open:(r,i="success")=>e(pd(r,i))}},yf=()=>{const{version:e}=it();return{patchWorkflow:r=>on.default.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>on.default.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},xx=e=>{const{postWorkflow:t}=yf();return nn.useMutation(t,e)},Mx=e=>{const{patchWorkflow:t}=yf();return nn.useMutation(t,e)},wx=()=>{const{t:e}=et.useTranslation(["snackMessage"]),{open:t}=Qa(),{setCurrentTree:n,currentTree:r,tree:i}=it(),{mutate:o}=xx({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}=Mx({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})}}}},Tx=({downloadedFileName:e="export",value:t})=>{const{t:n}=et.useTranslation("button"),{getDownloadLink:r,handleSubmit:i}=wx(),{currentTree:o,endPoint:a}=it(),{id:s}=o;return oe(I.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[T(I.Tooltip,{title:n("downloadJSONFile"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:T(I.Box,{children:T(I.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:T(vf,{})})})}),T(I.Tooltip,{title:n(s?"update":"save"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:T(I.Box,{children:T(I.Button,{variant:"outlined",onClick:i,disabled:!t||!a,children:s?T(gf,{}):T(mf,{})})})})]})},Nx={box:{backgroundColor:we.backgroundPrimary,border:`solid 1px ${we.borderLight}`}},_f=({children:e,description:t,open:n,onClose:r,title:i})=>T(I.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(I.Box,{sx:Nx.box,p:4,children:[T("h3",{children:i}),T("p",{children:t}),e]})});var Wa={},Ex=Ie.exports;Object.defineProperty(Wa,"__esModule",{value:!0});var bf=Wa.default=void 0,Dx=Ex(Be()),Ox=Qe,Cx=(0,Dx.default)((0,Ox.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");bf=Wa.default=Cx;const wi={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${we.borderLight}`,height:" 100%",margin:1},toolbar:{backgroundColor:we.backgroundPrimary,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:we.tertiaryMain,border:`solid 1px ${we.primaryMain}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Sx=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>T(I.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Ax=W.forwardRef(Sx),Ix=({children:e,open:t,onClose:n,title:r})=>T(I.Dialog,{PaperProps:{sx:{backgroundColor:we.backgroundPrimary,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Ax,children:oe(I.Box,{sx:wi.container,children:[T(I.AppBar,{position:"sticky",elevation:0,children:T(I.Toolbar,{sx:wi.toolbar,children:oe(I.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:wi.toolbarBox,children:[T(I.Typography,{variant:"h5",children:T("strong",{children:r})}),T(I.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:T(bf,{})})]})})}),T(I.Box,{sx:wi.main,children:e})]})}),zx={box:{border:`solid 1px ${we.borderLight}`,flexGrow:0}},kx=({children:e})=>T(I.Box,{p:2,role:"group",sx:zx.box,children:e}),jx={box:{border:`solid 1px ${we.borderLight}`,flexGrow:0}},$x=({children:e})=>T(I.Box,{sx:jx.box,padding:2,component:"header",children:e}),Rx={box:{border:`solid 1px ${we.borderLight}`,flexGrow:1}},Lx=({children:e})=>T(I.Box,{sx:Rx.box,component:"main",role:"tree",children:e}),xf={stack:{width:"100%"}},Px=({children:e})=>{const t=W.Children.toArray(e);return oe(I.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[T(I.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(I.Stack,{sx:xf.stack,spacing:2,children:[t[0],t[1]]})}),T(I.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(I.Stack,{sx:xf.stack,spacing:2,children:[t[2],t[3]]})})]})},Fx={box:{border:`solid 1px ${we.borderLight}`,flexGrow:1,overflow:"auto"}},Ux=({children:e})=>T(I.Box,{sx:Fx.box,component:"aside",children:e}),Mf=(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=Mf(e.children[a],t);return n},On=(e,t)=>{var a,s,u,l,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=(u=e==null?void 0:e.children)==null?void 0:u.length;if(r)return((l=e==null?void 0:e.attributes)==null?void 0:l.tree)||null;if(i&&(n=On((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=On(e.children[d],t);return n},Ga=(e,t,n)=>{const r=On(e,t);return Mf(r,n)},Yx=(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:!0}}]}),null)},qx=({tree:e,path:t,name:n,child:r})=>{if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const i=structuredClone(e),o=Ga(i,t,n);return Yx(o,r),i},wf=(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=>wf(s,n)).flat()])}),n},Tf=(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=Tf(e.children[s],t,e);return r},Vx=(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),Bx=(e,t,n)=>{const r=On(e,t);return Tf(r,n)},Qx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=Ga(r,t,n),o=Bx(r,t,n);return Vx(o,i),r},Wx=(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)},Gx=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=Ga(i,t,n);return Wx(o,r),i},xt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},Kx=(e,t,n)=>({children:n,name:t,path:e,type:xt.appendTreeCard}),Xx=(e,t,n)=>({children:n,name:t,path:e,type:xt.replaceTreeCard}),Jx=(e,t)=>({name:t,path:e,type:xt.deleteTreeCard}),Hx=()=>({type:xt.resetTree}),Nf=e=>({tree:e,type:xt.setTree}),Zx=(e,t)=>{switch(t.type){case xt.appendTreeCard:{const{name:n,path:r,children:i}=t;return qx({child:i,name:n,path:r,tree:e})}case xt.deleteTreeCard:{const{path:n,name:r}=t;return Qx({name:r,path:n,tree:e})}case xt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return Gx({child:i,name:n,path:r,tree:e})}case xt.resetTree:return null;case xt.setTree:return t.tree;default:throw new Error}},eM=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=it();return{handleSubmit:o=>{var u,l;o.preventDefault();const a=((u=n==null?void 0:n.data)==null?void 0:u.name)||"",s=((l=r==null?void 0:r.at(-1))==null?void 0:l.path)||"";e(Jx(s,a)),t(null)}}},tM=({onClose:e})=>{const{t}=et.useTranslation(),{handleSubmit:n}=eM();return T("form",{onSubmit:n,children:oe(I.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[T(I.Button,{variant:"text",onClick:e,children:t("cancel")}),T(I.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Ka={},nM=Ie.exports;Object.defineProperty(Ka,"__esModule",{value:!0});var Ef=Ka.default=void 0,rM=nM(Be()),iM=Qe,oM=(0,rM.default)((0,iM.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");Ef=Ka.default=oM;var Xa={},aM=Ie.exports;Object.defineProperty(Xa,"__esModule",{value:!0});var Df=Xa.default=void 0,sM=aM(Be()),uM=Qe,lM=(0,sM.default)((0,uM.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");Df=Xa.default=lM;const Ti=[{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!0,type:"tree"}],cM=()=>{const{endPoint:e}=it();return{fields:W.useCallback(()=>Ti.filter(n=>!(n.type==="tree"&&!e)),[e])()}},fM=({onChange:e,value:t})=>{const{t:n}=et.useTranslation(),{fields:r}=cM();return oe(I.FormControl,{sx:{flex:1},required:!0,children:[T(I.InputLabel,{children:n("type")}),T(I.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>T(I.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})},Of=()=>({getAllWorkflow:()=>on.default.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>on.default.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),Ja=(e,t)=>{const{getWorkflow:n}=Of();return nn.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},Cf=e=>new Set([...e]).size===e.length,dM=(e,t,n)=>{const r=[...e,t];return Cf(n?r.filter(i=>i!==n):r)},hM=()=>{var pr,gr,Ut,Ei,mr,vr,Sn,Di,Oi,Ci,Si,Ai;const e=W.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=it(),{open:s}=Qa(),{t:u}=et.useTranslation(),[l,c]=W.useState(e),[d,f]=W.useState(""),[h,v]=W.useState(""),[p,m]=W.useState(!1),[x,M]=W.useState(!1),[N,b]=W.useState("text"),[y,S]=W.useState(""),[A,C]=W.useState(""),[D,E]=W.useState(""),[z,g]=W.useState({off:"",on:""}),[w,k]=W.useState(!1),[R,L]=W.useState(""),B=i==="edit",V=N==="tree",te=Ti.some(Y=>Y.type===N&&(Y==null?void 0:Y.isBooleanField)),O=Ti.some(Y=>Y.type===N&&(Y==null?void 0:Y.isDecisionField)),$=Ti.some(Y=>Y.type===N&&(Y==null?void 0:Y.isRequiredDisabled)),G=Y=>!O&&Y>0,{refetch:K,isLoading:U}=Ja(y,{enabled:!1,onError:()=>{s(u("error.fetchTree",{ns:"snackMessage"}),"error")}}),J=(Y,be)=>{c(ye=>ye.map(Ee=>{const{id:De}=Ee;return Y.target.dataset.id===De?{...Ee,id:De,[be]:Y.target.value}:{...Ee}}))},X=Y=>{v(Y.target.value)},H=Y=>{J(Y,"label")},ee=Y=>{J(Y,"value")},re=Y=>{J(Y,"message")},ne=Y=>{E(Y.target.value)},Se=Y=>{var Ge;const{value:be}=Y.target;if(f(Y.target.value),!t||!be){L("");return}const ye=B&&(r==null?void 0:r.data.name),Ee=(Ge=o==null?void 0:o.at(-1))==null?void 0:Ge.path,De=On(t,Ee),qe=wf(De);if(dM(qe,be,ye)){L("");return}L(u("mustBeUnique",{ns:"form"}))},P=Y=>{m(Y.target.checked)},Ye=Y=>{M(Y.target.checked)},Q=Y=>{k(Y.target.checked)},at=Y=>{b(Y.target.value),M(!1),m(!1)},pt=Y=>{S(Y.target.value)},Jt=Y=>be=>{g(ye=>({...ye,[Y]:be.target.value}))},Ni=Y=>{C(Y.target.value)},Cn=()=>{c(Y=>{const be=Number(Y[Y.length-1].id),ye=String(be+1);return[...Y,{...e[0],id:ye}]})},ss=Y=>{c(be=>be.filter(({id:ye})=>Y!==ye))},us=(Y,be)=>{var Ee,De,qe;const ye=(qe=(De=(Ee=Y==null?void 0:Y.children)==null?void 0:Ee[be])==null?void 0:De.data)==null?void 0:qe.children;return ye?ye.map(({name:Ze,attributes:Ge,children:Mt})=>({attributes:Ge,children:Mt,name:Ze})):[]},hr=Y=>{var be;return x?(be=l==null?void 0:l.filter((ye,Ee)=>!G(Ee)))==null?void 0:be.map(({message:ye,value:Ee,label:De},qe)=>{const Ze=`${d}:${Ee}`,Ge=us(r,qe);return{attributes:{depth:Y+1,label:De,value:Ee,...ye&&{message:ye},...Ge.length===0&&{isLeaf:!0}},children:Ge,name:Ze}}):[]},ls=Y=>Y.map(({message:be,...ye})=>({...ye,...be&&{message:be}})),cs=async Y=>{var en,tn;Y.preventDefault();const{on:be,off:ye}=z,Ee=((en=r==null?void 0:r.data)==null?void 0:en.name)||"",De=(r==null?void 0:r.depth)||0,qe=i==="edit",Ze=De+(qe||r===null?0:1),Ge=hr(Ze),Mt=(tn=o==null?void 0:o.at(-1))==null?void 0:tn.path,Ht=o.length?`${Mt}/${d}`:`/${d}`,{data:Yt,isError:Zt}=V?await K():{data:null,isError:null};if(Zt)return;const qt={attributes:{depth:Ze,label:h,type:N,...A&&{helperText:A},...(ye||be)&&{messages:{...ye&&{off:ye},...be&&{on:be}}},...V&&{tree:{...Yt==null?void 0:Yt.workflow,treeId:y},treePath:Ht},...x&&{isDecision:x},...O&&!x&&{values:ls(l)},...p&&{required:p},...D&&{step:D},...w&&{isRepeatable:w}},children:Ge,name:d};n(qe?Xx(Mt||"",Ee,qt):Kx(Mt||null,Ee,qt)),a(null)};return W.useEffect(()=>{var Y,be,ye,Ee,De,qe,Ze,Ge,Mt,Ht,Yt,Zt,qt,en,tn,yr,Ii,zi;if(i==="edit"){const An=((be=(Y=r==null?void 0:r.data)==null?void 0:Y.attributes)==null?void 0:be.values)||((De=(Ee=(ye=r==null?void 0:r.data)==null?void 0:ye.children)==null?void 0:Ee.filter(({attributes:_})=>!(_!=null&&_.type)))==null?void 0:De.map(({attributes:_},j)=>{const{label:F,value:Z,message:le}=_||{};return{id:String(j),label:String(F),value:String(Z),...le&&{message:String(le)}}}));f((r==null?void 0:r.data.name)||""),b(((qe=r==null?void 0:r.data.attributes)==null?void 0:qe.type)||"text"),C(((Ze=r==null?void 0:r.data.attributes)==null?void 0:Ze.helperText)||""),m(((Ge=r==null?void 0:r.data.attributes)==null?void 0:Ge.required)||!1),E(((Mt=r==null?void 0:r.data.attributes)==null?void 0:Mt.step)||""),v(((Ht=r==null?void 0:r.data.attributes)==null?void 0:Ht.label)||""),M(((Yt=r==null?void 0:r.data.attributes)==null?void 0:Yt.isDecision)||!1),c(An!=null&&An.length?An:e),g({off:((qt=(Zt=r==null?void 0:r.data.attributes)==null?void 0:Zt.messages)==null?void 0:qt.off)||"",on:((tn=(en=r==null?void 0:r.data.attributes)==null?void 0:en.messages)==null?void 0:tn.on)||""}),S(((Ii=(yr=r==null?void 0:r.data.attributes)==null?void 0:yr.tree)==null?void 0:Ii.treeId)||""),k(((zi=r==null?void 0:r.data.attributes)==null?void 0:zi.isRepeatable)||!1)}},[(gr=(pr=r==null?void 0:r.data.attributes)==null?void 0:pr.tree)==null?void 0:gr.treeId,(Ut=r==null?void 0:r.data.attributes)==null?void 0:Ut.messages,(Ei=r==null?void 0:r.data.attributes)==null?void 0:Ei.helperText,(mr=r==null?void 0:r.data.attributes)==null?void 0:mr.isDecision,(vr=r==null?void 0:r.data.attributes)==null?void 0:vr.label,(Sn=r==null?void 0:r.data.attributes)==null?void 0:Sn.required,(Di=r==null?void 0:r.data.attributes)==null?void 0:Di.step,(Oi=r==null?void 0:r.data.attributes)==null?void 0:Oi.type,(Ci=r==null?void 0:r.data.attributes)==null?void 0:Ci.values,(Si=r==null?void 0:r.data)==null?void 0:Si.children,r==null?void 0:r.data.name,(Ai=r==null?void 0:r.data.attributes)==null?void 0:Ai.isRepeatable,e,i]),{getDisabledValueField:G,handleAddValue:Cn,handleChangeHelperText:Ni,handleChangeIsDecisionField:Ye,handleChangeIsRepeatable:Q,handleChangeLabel:X,handleChangeMessage:Jt,handleChangeName:Se,handleChangeOptionLabel:H,handleChangeOptionMessage:re,handleChangeOptionValue:ee,handleChangeRequired:P,handleChangeStep:ne,handleChangeTreeSelect:pt,handleChangeType:at,handleDeleteValue:ss,handleSubmit:cs,helperText:A,isBooleanField:te,isDecision:x,isDecisionField:O,isRepeatable:w,isRequiredDisabled:$,isTree:V,isWorkflowLoading:U,label:h,messages:z,name:d,required:p,step:D,treeSelected:y,type:N,uniqueNameErrorMessage:R,values:l}};var Ha={},pM=Ie.exports;Object.defineProperty(Ha,"__esModule",{value:!0});var Sf=Ha.default=void 0,gM=pM(Be()),mM=Qe,vM=(0,gM.default)((0,mM.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");Sf=Ha.default=vM;const yM=e=>{const{getAllWorkflow:t}=Of();return nn.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},_M=e=>{const{t}=et.useTranslation("snackMessage"),{open:n}=Qa(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=it(),[a,s]=W.useState("");Ja(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:p,workflow:m})=>{e||(i({id:v,name:p}),o(Nf(m)))}});const{data:u,isLoading:l,refetch:c}=yM({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:v})=>{const{value:p}=v;if(p==="add-new-tree"){s(""),i({name:""}),o(Hx());return}s(p)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:u,workflowsSuggestionsLoading:l}},Af={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},If=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const a=W.useMemo(()=>!!i,[i]),{t:s}=et.useTranslation("form"),{handleChangeTree:u,handleOnOpen:l,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=_M(a);return oe(I.FormControl,{size:n,required:t,sx:Af.formControl,children:[!e&&T(I.InputLabel,{children:s("tree")}),oe(I.Select,{value:a?o:f,id:"tree-select",onChange:h=>a?i==null?void 0:i(h):u(h),sx:e?Af.select:void 0,label:s("tree"),onOpen:l,children:[d&&T(I.MenuItem,{children:T(I.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:v})=>T(I.MenuItem,{value:v,children:h},v)),r&&T(I.MenuItem,{disabled:!0,children:T(I.Box,{sx:{height:1,width:"100%"},children:T(I.Divider,{})})}),r&&oe(I.MenuItem,{value:"add-new-tree",children:[T(I.Typography,{mr:1,children:s("newTree")}),T(Sf,{color:"primary"})]})]})]})},zf={marginRight:"-20px !important",minWidth:"auto !important"},kf={iconButton:zf,iconButtonDelete:{...zf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:we.backgroundPrimary,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},bM=({onClose:e})=>{const{t}=et.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,isBooleanField:l,isDecision:c,isDecisionField:d,isRequiredDisabled:f,isTree:h,treeSelected:v,isWorkflowLoading:p,isRepeatable:m,messages:{on:x,off:M},handleChangeTreeSelect:N,handleChangeHelperText:b,handleChangeOptionMessage:y,handleChangeRequired:S,handleChangeName:A,handleChangeType:C,handleChangeIsDecisionField:D,handleChangeOptionLabel:E,handleDeleteValue:z,handleChangeOptionValue:g,handleChangeMessage:w,handleSubmit:k,handleAddValue:R,handleChangeLabel:L,handleChangeIsRepeatable:B}=hM();return oe("form",{onSubmit:k,children:[oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(I.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:L,value:u,required:!0}),T(I.TextField,{label:t("name"),sx:{flex:1},onChange:A,value:i,error:!!o,helperText:o,required:!0})]}),oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(fM,{value:a,onChange:C}),h?T(If,{required:!0,value:v,onChange:N}):T(I.TextField,{sx:{flex:1},label:t("helperText",{ns:"form"}),onChange:b,value:s})]}),l&&oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(I.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:w("on"),value:x}),T(I.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:w("off"),value:M})]}),oe(I.Stack,{paddingY:1,children:[T(I.FormGroup,{children:T(I.FormControlLabel,{control:T(I.Checkbox,{checked:m,onChange:B}),label:t("repeatable",{ns:"form"})})}),T(I.FormGroup,{children:T(I.FormControlLabel,{disabled:f,control:T(I.Checkbox,{checked:r,onChange:S}),label:t("required")})}),T(I.FormGroup,{children:T(I.FormControlLabel,{disabled:!d,control:T(I.Checkbox,{checked:c,onChange:D}),label:t("decisionField",{ns:"form"})})})]}),d&&oe(br,{children:[T("h4",{children:t("values")}),n==null?void 0:n.map(({value:V,label:te,id:O,message:$})=>oe(I.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[T(I.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:E,value:te,inputProps:{"data-id":O},required:!0}),T(I.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:g,value:V,inputProps:{"data-id":O},required:!0}),T(I.TextField,{label:"Message",sx:{flex:1},onChange:y,value:$,inputProps:{"data-id":O}}),n.length>1&&T(I.Button,{color:"warning",sx:kf.iconButtonDelete,"data-id":O,onClick:()=>z(O),children:T(Df,{})})]},O))]}),d&&T(I.Box,{justifyContent:"flex-end",display:"flex",children:T(I.Button,{color:"success",sx:kf.iconButton,onClick:R,children:T(Ef,{})})}),oe(I.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[T(I.Button,{variant:"text",onClick:e,children:t("cancel")}),T(I.Button,{variant:"contained",type:"submit",disabled:!!o||p,children:p?T(I.CircularProgress,{size:14}):t("validate")})]})]})};var Za={},xM=Ie.exports;Object.defineProperty(Za,"__esModule",{value:!0});var jf=Za.default=void 0,MM=xM(Be()),wM=Qe,TM=(0,MM.default)((0,wM.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");jf=Za.default=TM;var es={},NM=Ie.exports;Object.defineProperty(es,"__esModule",{value:!0});var $f=es.default=void 0,EM=NM(Be()),DM=Qe,OM=(0,EM.default)((0,DM.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");$f=es.default=OM;var ts={},CM=Ie.exports;Object.defineProperty(ts,"__esModule",{value:!0});var Rf=ts.default=void 0,SM=CM(Be()),AM=Qe,IM=(0,SM.default)((0,AM.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");Rf=ts.default=IM;var ns={},zM=Ie.exports;Object.defineProperty(ns,"__esModule",{value:!0});var Lf=ns.default=void 0,kM=zM(Be()),jM=Qe,$M=(0,kM.default)((0,jM.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");Lf=ns.default=$M;var rs={},RM=Ie.exports;Object.defineProperty(rs,"__esModule",{value:!0});var Pf=rs.default=void 0,LM=RM(Be()),PM=Qe,FM=(0,LM.default)((0,PM.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");Pf=rs.default=FM;var is={},UM=Ie.exports;Object.defineProperty(is,"__esModule",{value:!0});var Ff=is.default=void 0,YM=UM(Be()),Uf=Qe,qM=(0,YM.default)([(0,Uf.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,Uf.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");Ff=is.default=qM;var os={},VM=Ie.exports;Object.defineProperty(os,"__esModule",{value:!0});var Yf=os.default=void 0,BM=VM(Be()),QM=Qe,WM=(0,BM.default)((0,QM.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");Yf=os.default=WM;var as={},GM=Ie.exports;Object.defineProperty(as,"__esModule",{value:!0});var qf=as.default=void 0,KM=GM(Be()),XM=Qe,JM=(0,KM.default)((0,XM.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");qf=as.default=JM;const We={actionButton:{minWidth:"auto !important"},container:{background:we.backgroundPrimary,borderRadius:"1rem"},containerField:{background:we.backgroundPrimary,border:`solid 1px ${we.primaryMain}`,borderRadius:"1rem"},containerTree:{background:we.tertiaryMain,border:`solid 1px ${we.primaryMain}`,borderRadius:"1rem"},containerValue:{background:we.backgroundPrimary,border:`solid 1px ${we.secondaryMain}`,borderRadius:"1rem"},icon:{color:we.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}},HM=e=>{const t=!!e;return e==="tree"?We.containerTree:t?We.containerField:We.containerValue},ZM=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var N;const{t:s}=et.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:v}=u||{},p=!!h,m=h==="tree",x=!p,M=!l&&!c;return oe("g",{children:[T(I.GlobalStyles,{styles:{".rd3t-node svg":We.nodeSvg}}),T("foreignObject",{height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,style:HM(h),children:oe(I.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(I.Stack,{alignItems:"flex-end",spacing:.5,children:[p&&oe(I.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&T(I.Tooltip,{title:`${s("step",{ns:"form"})} ${(N=e==null?void 0:e.attributes)==null?void 0:N.step}`,placement:"left",arrow:!0,children:T(I.Chip,{color:"primary",size:"small",label:f,sx:We.stepChip})}),T(I.Typography,{variant:"subtitle2",sx:We.title,children:T("strong",{children:v})})]}),p&&T(I.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&T(I.Stack,{direction:"row",spacing:.5,children:d&&T(I.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),T(I.Stack,{spacing:.5,alignItems:"flex-end",children:x&&T(I.Typography,{variant:"subtitle2",sx:We.title,children:T("strong",{children:v})})}),oe(I.Box,{paddingTop:.5,children:[c&&T(I.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:T(Pf,{style:We.icon})}),l&&T(I.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:T(Yf,{style:We.icon})}),M&&T(I.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:T(jf,{style:We.icon})}),m&&T(I.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:T(Ff,{style:We.icon})})]})]}),oe(I.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&T(I.Tooltip,{title:s("remove"),arrow:!0,children:T(I.Button,{variant:"text",sx:We.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:T(Rf,{})})}),!x&&T(I.Tooltip,{title:s("edit"),arrow:!0,children:T(I.Button,{variant:"text",color:"secondary",sx:We.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:T(Lf,{})})}),c&&T(I.Tooltip,{title:s("add"),arrow:!0,children:T(I.Button,{variant:"text",color:"success",sx:We.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:T($f,{})})}),m&&T(I.Tooltip,{title:s("show"),arrow:!0,children:T(I.Button,{variant:"text",color:"info",sx:We.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:T(qf,{})})})]})]})})]})},e2=W.memo(ZM),Vf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=it();return{handleAddChildren:l=>{t(l),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:l=>{t(l),e("delete")},handleEditChildren:l=>{t(l),e("edit")},handleOpenTreeModal:l=>{var d,f;const c={label:l==null?void 0:l.data.attributes.label,path:((f=(d=l==null?void 0:l.data)==null?void 0:d.attributes)==null?void 0:f.treePath)||""};r(h=>[...h,c]),n(!0)}}},t2=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Vf();return T(e2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Bf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>T(t2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),n2=()=>{const{currentHierarchyPointNode:e,modalOpen:t,setModalOpen:n}=it(),{t:r}=et.useTranslation(["modal","snackMessage"]),i=t==="edit";return{closeModal:()=>n(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=e==null?void 0:e.data)==null?void 0:f.attributes)==null?void 0:h.label;return r("deleteTitle",{name:d,ns:"modal"})},getTitleModalMutation:()=>{var h;const d=(h=e==null?void 0:e.data)==null?void 0:h.attributes.label;return d?r(i?"editTitle":"addTitle",{name:d,ns:"modal"}):r("addFirstTitle",{name:d,ns:"modal"})},isDeleteModal:t==="delete",isModalMutationOpen:i||t==="add"}},r2=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=it(),{name:r,errorName:i,id:o}=e;return{disabled:!!e.id&&!n,errorName:i,handleChangeName:u=>{const{value:l}=u.target;if(!l){t(c=>({...c,errorName:"Champs requis",name:u.target.value}));return}t(c=>({...c,errorName:"",name:u.target.value}))},id:o,name:r}},i2=()=>{const{t:e}=et.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=r2();return T(I.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},o2=()=>{var h,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=it(),{handleCloseTreeModal:i}=Vf(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:u,isDeleteModal:l}=n2(),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&&On(e,c);return oe(br,{children:[oe(Px,{children:[T($x,{children:oe(I.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[T(_d,{}),!!r&&oe(I.Stack,{direction:"row",alignItems:"center",spacing:2,children:[T(i2,{}),T(If,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),T(Lx,{children:T(Wl,{data:e,renderCustomNodeElement:Bf})}),T(Ux,{children:T(Zm,{value:e})}),T(kx,{children:T(Tx,{value:e})})]}),T(_f,{open:u,onClose:a,title:o(),children:T(bM,{onClose:a})}),T(_f,{open:l,onClose:a,title:s(),children:T(tM,{onClose:a})}),T(Ix,{open:t,onClose:i,title:d,children:f&&T(Wl,{data:f,renderCustomNodeElement:Bf})})]})},a2="0.5.4",s2=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=W.useState($t.currentHierarchyPointNode),[a,s]=W.useState($t.modalOpen),[u,l]=W.useState($t.treeModalOpen),[c,d]=W.useState($t.treePath),[f,h]=W.useReducer(Zx,n||$t.tree),[v,p]=W.useState(r?{...$t.currentTree,id:r}:$t.currentTree),m=W.useMemo(()=>({currentHierarchyPointNode:i,currentTree:v,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:p,setModalOpen:s,setTreeModalOpen:l,setTreePath:d,tree:f,treeModalOpen:u,treePath:c,version:a2}),[i,a,u,c,f,v,t]);return Ja(v.id,{enabled:!!r,onSuccess:async x=>{!x||(p({id:x==null?void 0:x.id,name:x==null?void 0:x.label}),h(Nf((x==null?void 0:x.workflow)||null)))}}),T(Bl.Provider,{value:m,children:e})},u2={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save",update:"Update"},l2={decisionFields:"Decision fields",helperText:"Helper text",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",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",time:"Time",text:"Text",tree:"Tree",url:"URL"},value:"Value",values:"Values"},c2={saveTree:"Save a Tree",addFirstTitle:"Add a field",addTitle:"Add a field to \xAB {{name}} \xBB",deleteTitle:"Are you sure to delete \xAB {{name}} \xBB",editTitle:"Edit field \xAB {{name}} \xBB"},f2={error:{saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again",fetchTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},d2={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isALeaf:"Is a leaf",isABranch:"Is a branch",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"},h2={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer",update:"Modifier"},p2={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",label:"Label",mustBeUnique:"Doit \xEAtre unique",newTree:"Nouvel arbre",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",repeatable:"R\xE9p\xE9table",staticFields:"Champs statiques",step:"\xC9tape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case \xE0 cocher",date:"Date",email:"Email",file:"Fichier",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"T\xE9l\xE9phone",time:"Temps",text:"Texte",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},g2={saveTree:"Enregistrer l'arbre",addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ \xE0 \xAB {{name}} \xBB",deleteTitle:"Voulez vraiment supprimer \xAB {{name}} \xBB",editTitle:"\xC9diter le champ \xAB {{name}} \xBB"},m2={error:{saveTree:"Une erreur est survenue veuillez r\xE9essayer",updateTree:"Une erreur est survenue veuillez r\xE9essayer",fetchTree:"Une erreur est survenue veuillez r\xE9essayer"},success:{saveTree:"Arbre enregistr\xE9",updateTree:"Arbre mis \xE0 jour"}},v2={add:"Ajouter",cancel:"Annuler",disabled:"D\xE9sactiv\xE9",edit:"\xC9diter",isALeaf:"Est une feuille",isABranch:"Est une branche",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"};rd.default.use(id.default).use(et.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:u2,form:l2,modal:c2,snackMessage:f2,translation:d2},fr:{button:h2,form:p2,modal:g2,snackMessage:m2,translation:v2}}}).then();const y2=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(W.useLayoutEffect(()=>{on.default.defaults.baseURL=t,on.default.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),T(nn.QueryClientProvider,{client:cd,children:T(hd,{authToken:e,children:T(s2,{endPoint:t,initialTree:n,initialTreeId:r,children:T(ld,{children:T(vd,{children:T(o2,{})})})})})}));ze.TreePlusIcon=Vl,ze.Treege=y2,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
163
+ } });`:_n(12,m?` (${m})`:"",JSON.stringify(p.main)));return uf(p,"light",M,r),uf(p,"dark",N,r),p.contrastText||(p.contrastText=d(p.main)),p},h={dark:Ya,light:sf};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Et(Me({common:Me({},hr),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:u,name:"info"}),success:f({color:l,name:"success"}),grey:Ab,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const Fb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Ub(e){return Math.round(e*1e5)/1e5}const lf={textTransform:"uppercase"},cf='"Roboto", "Helvetica", "Arial", sans-serif';function Yb(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=cf,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:u=700,htmlFontSize:l=16,allVariants:c,pxToRem:d}=n,f=dt(n,Fb);process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const h=i/14,v=d||(x=>`${x/l*h}rem`),p=(x,M,N,b,y)=>Me({fontFamily:r,fontWeight:x,fontSize:v(M),lineHeight:N},r===cf?{letterSpacing:`${Ub(b/M)}em`}:{},y,c),m={h1:p(o,96,1.167,-1.5),h2:p(o,60,1.2,-.5),h3:p(a,48,1.167,0),h4:p(a,34,1.235,.25),h5:p(a,24,1.334,0),h6:p(s,20,1.6,.15),subtitle1:p(a,16,1.75,.15),subtitle2:p(s,14,1.57,.1),body1:p(a,16,1.5,.15),body2:p(a,14,1.43,.15),button:p(s,14,1.75,.4,lf),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,lf)};return Et(Me({htmlFontSize:l,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},m),f,{clone:!1})}const qb=.2,Vb=.14,Bb=.12;function Ee(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qb})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Vb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Bb})`].join(",")}const Qb=["none",Ee(0,2,1,-1,0,1,1,0,0,1,3,0),Ee(0,3,1,-2,0,2,2,0,0,1,5,0),Ee(0,3,3,-2,0,3,4,0,0,1,8,0),Ee(0,2,4,-1,0,4,5,0,0,1,10,0),Ee(0,3,5,-1,0,5,8,0,0,1,14,0),Ee(0,3,5,-1,0,6,10,0,0,1,18,0),Ee(0,4,5,-2,0,7,10,1,0,2,16,1),Ee(0,5,5,-3,0,8,10,1,0,3,14,2),Ee(0,5,6,-3,0,9,12,1,0,3,16,2),Ee(0,6,6,-3,0,10,14,1,0,4,18,3),Ee(0,6,7,-4,0,11,15,1,0,4,20,3),Ee(0,7,8,-4,0,12,17,2,0,5,22,4),Ee(0,7,8,-4,0,13,19,2,0,5,24,4),Ee(0,7,9,-4,0,14,21,2,0,5,26,4),Ee(0,8,9,-5,0,15,22,2,0,6,28,5),Ee(0,8,10,-5,0,16,24,2,0,6,30,5),Ee(0,8,11,-5,0,17,26,2,0,6,32,5),Ee(0,9,11,-5,0,18,28,2,0,7,34,6),Ee(0,9,12,-6,0,19,29,2,0,7,36,6),Ee(0,10,13,-6,0,20,31,3,0,8,38,7),Ee(0,10,13,-6,0,21,33,3,0,8,40,7),Ee(0,10,14,-6,0,22,35,3,0,8,42,7),Ee(0,11,14,-7,0,23,36,3,0,9,44,8),Ee(0,11,15,-7,0,24,38,3,0,9,46,8)],Wb=["duration","easing","delay"],Gb={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)"},Kb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function ff(e){return`${Math.round(e)}ms`}function Xb(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Jb(e){const t=Me({},Gb,e.easing),n=Me({},Kb,e.duration);return Me({getAutoHeightDuration:Xb,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o,l=dt(o,Wb);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(u)&&!c(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),Object.keys(l).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(l).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:ff(a)} ${s} ${typeof u=="string"?u:ff(u)}`).join(",")}},e,{easing:t,duration:n})}const Hb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Zb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function ex(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=dt(e,Zb);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.":_n(18));const s=Pb(r),u=Fa(e);let l=Et(u,{mixins:Sb(u.breakpoints,n),palette:s,shadows:Qb.slice(),typography:Yb(s,o),transitions:Jb(i),zIndex:Me({},Hb)});if(l=Et(l,a),l=t.reduce((c,d)=>Et(c,d),l),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 p=f[v];if(c.indexOf(v)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const m=_a("",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 '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
164
+ `))}f[v]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l}const df=ex();function tx({props:e,name:t}){return Nb({props:e,name:t,defaultTheme:df})}const nx=wb({defaultTheme:df,rootShouldForwardProp:e=>Mi(e)&&e!=="classes"});function rx(e){return _a("MuiSvgIcon",e)}Dv("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ix=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],ox=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Dt(t)}`,`fontSize${Dt(n)}`]};return Nv(i,rx,r)},ax=nx("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Dt(n.color)}`],t[`fontSize${Dt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,u,l,c,d,f,h,v,p,m,x,M;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(o=i.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(l=u.pxToRem)==null?void 0:l.call(u,24))||"1.5rem",large:((c=e.typography)==null||(d=c.pxToRem)==null?void 0:d.call(c,35))||"2.1875"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(v=h[t.color])==null?void 0:v.main)!=null?f:{action:(p=(e.vars||e).palette)==null||(m=p.action)==null?void 0:m.active,disabled:(x=(e.vars||e).palette)==null||(M=x.action)==null?void 0:M.disabled,inherit:void 0}[t.color]}}),qa=we.forwardRef(function(t,n){const r=tx({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:u="medium",htmlColor:l,inheritViewBox:c=!1,titleAccess:d,viewBox:f="0 0 24 24"}=r,h=dt(r,ix),v=Me({},r,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),p={};c||(p.viewBox=f);const m=ox(v);return oe(ax,Me({as:s,className:Ov(m.root,o),ownerState:v,focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},p,h,{children:[i,d?T("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(qa.propTypes={children:ue.exports.node,classes:ue.exports.object,className:ue.exports.string,color:ue.exports.oneOfType([ue.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),ue.exports.string]),component:ue.exports.elementType,fontSize:ue.exports.oneOfType([ue.exports.oneOf(["inherit","large","medium","small"]),ue.exports.string]),htmlColor:ue.exports.string,inheritViewBox:ue.exports.bool,shapeRendering:ue.exports.string,sx:ue.exports.oneOfType([ue.exports.arrayOf(ue.exports.oneOfType([ue.exports.func,ue.exports.object,ue.exports.bool])),ue.exports.func,ue.exports.object]),titleAccess:ue.exports.string,viewBox:ue.exports.string}),qa.muiName="SvgIcon";const hf=qa;function sx(e,t){const n=(r,i)=>T(hf,Me({"data-testid":`${t}Icon`,ref:i},r,{children:e}));return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=hf.muiName,we.memo(we.forwardRef(n))}const ux=St(Object.freeze(Object.defineProperty({__proto__:null,unstable_ClassNameGenerator:{configure:e=>{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(`
165
+ `)),oc.configure(e)}},capitalize:Dt,createChainedFunction:ov,createSvgIcon:sx,debounce:av,deprecatedPropType:sv,isMuiElement:uv,ownerDocument:Zl,ownerWindow:lv,requirePropFactory:cv,setRef:ma,unstable_useEnhancedEffect:ec,unstable_useId:dv,unsupportedProp:hv,useControlled:pv,useEventCallback:gv,useForkRef:mv,useIsFocusVisible:wv},Symbol.toStringTag,{value:"Module"})));var pf;function Be(){return pf||(pf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ux}(pa)),pa}const Qe=St(ud);var lx=Ae.exports;Object.defineProperty(ha,"__esModule",{value:!0});var gf=ha.default=void 0,cx=lx(Be()),fx=Qe,dx=(0,cx.default)((0,fx.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");gf=ha.default=dx;var Va={},hx=Ae.exports;Object.defineProperty(Va,"__esModule",{value:!0});var mf=Va.default=void 0,px=hx(Be()),gx=Qe,mx=(0,px.default)((0,gx.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");mf=Va.default=mx;var Ba={},vx=Ae.exports;Object.defineProperty(Ba,"__esModule",{value:!0});var vf=Ba.default=void 0,yx=vx(Be()),_x=Qe,bx=(0,yx.default)((0,_x.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");vf=Ba.default=bx;const Qa=()=>{const{dispatchSnackbar:e}=W.useContext(ps);return{close:()=>e(gs()),open:(r,i="success")=>e(pd(r,i))}},yf=()=>{const{version:e}=rt();return{patchWorkflow:r=>an.default.patch("/v1/workflow",{...r,version:e}).then(i=>i.data),postWorkflow:r=>an.default.post("/v1/workflow",{...r,version:e}).then(i=>i.data)}},xx=e=>{const{postWorkflow:t}=yf();return rn.useMutation(t,e)},Mx=e=>{const{patchWorkflow:t}=yf();return rn.useMutation(t,e)},wx=()=>{const{t:e}=Ze.useTranslation(["snackMessage"]),{open:t}=Qa(),{setCurrentTree:n,currentTree:r,tree:i}=rt(),{mutate:o}=xx({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}=Mx({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})}}}},Tx=({downloadedFileName:e="export",value:t})=>{const{t:n}=Ze.useTranslation("button"),{getDownloadLink:r,handleSubmit:i}=wx(),{currentTree:o,endPoint:a}=rt(),{id:s}=o;return oe(I.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[T(I.Tooltip,{title:n("downloadJSONFile"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:T(I.Box,{children:T(I.Button,{variant:"outlined",href:r(t),download:`${e}.json`,disabled:!t,children:T(vf,{})})})}),T(I.Tooltip,{title:n(s?"update":"save"),enterDelay:1500,disableHoverListener:!t,arrow:!0,children:T(I.Box,{children:T(I.Button,{variant:"outlined",onClick:i,disabled:!t||!a,children:s?T(gf,{}):T(mf,{})})})})]})},Nx={box:{backgroundColor:Te.backgroundPrimary,border:`solid 1px ${Te.borderLight}`}},_f=({children:e,description:t,open:n,onClose:r,title:i})=>T(I.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:oe(I.Box,{sx:Nx.box,p:4,children:[T("h3",{children:i}),T("p",{children:t}),e]})});var Wa={},Ex=Ae.exports;Object.defineProperty(Wa,"__esModule",{value:!0});var bf=Wa.default=void 0,Dx=Ex(Be()),Ox=Qe,Cx=(0,Dx.default)((0,Ox.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");bf=Wa.default=Cx;const wi={container:{display:"flex",flexDirection:"column",height:"100%",margin:1},main:{border:`solid 1px ${Te.borderLight}`,height:" 100%",margin:1},toolbar:{backgroundColor:Te.backgroundPrimary,boxShadow:"none",display:"flex",padding:"0 ! important"},toolbarBox:{backgroundColor:Te.tertiaryMain,border:`solid 1px ${Te.primaryMain}`,margin:1,paddingX:2,paddingY:1,width:"100%"}},Sx=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>T(I.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Ax=W.forwardRef(Sx),Ix=({children:e,open:t,onClose:n,title:r})=>T(I.Dialog,{PaperProps:{sx:{backgroundColor:Te.backgroundPrimary,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Ax,children:oe(I.Box,{sx:wi.container,children:[T(I.AppBar,{position:"sticky",elevation:0,children:T(I.Toolbar,{sx:wi.toolbar,children:oe(I.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:wi.toolbarBox,children:[T(I.Typography,{variant:"h5",children:T("strong",{children:r})}),T(I.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:T(bf,{})})]})})}),T(I.Box,{sx:wi.main,children:e})]})}),zx={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:0}},kx=({children:e})=>T(I.Box,{p:2,role:"group",sx:zx.box,children:e}),jx={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:0}},$x=({children:e})=>T(I.Box,{sx:jx.box,padding:2,component:"header",children:e}),Rx={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:1}},Lx=({children:e})=>T(I.Box,{sx:Rx.box,component:"main",role:"tree",children:e}),xf={stack:{width:"100%"}},Px=({children:e})=>{const t=W.Children.toArray(e);return oe(I.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[T(I.Grid,{item:!0,xs:9,padding:1,display:"flex",children:oe(I.Stack,{sx:xf.stack,spacing:2,children:[t[0],t[1]]})}),T(I.Grid,{item:!0,xs:3,padding:1,display:"flex",children:oe(I.Stack,{sx:xf.stack,spacing:2,children:[t[2],t[3]]})})]})},Fx={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:1,overflow:"auto"}},Ux=({children:e})=>T(I.Box,{sx:Fx.box,component:"aside",children:e}),Mf=(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=Mf(e.children[a],t);return n},Cn=(e,t)=>{var a,s,u,l,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=(u=e==null?void 0:e.children)==null?void 0:u.length;if(r)return((l=e==null?void 0:e.attributes)==null?void 0:l.tree)||null;if(i&&(n=Cn((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Cn(e.children[d],t);return n},Ga=(e,t,n)=>{const r=Cn(e,t);return Mf(r,n)},Yx=(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:!0}}]}),null)},qx=({tree:e,path:t,name:n,child:r})=>{if(!e)return r.children.length?{...r}:{...r,attributes:{...r.attributes,isLeaf:!0,isRoot:!0}};const i=structuredClone(e),o=Ga(i,t,n);return Yx(o,r),i},wf=(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=>wf(s,n)).flat()])}),n},Tf=(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=Tf(e.children[s],t,e);return r},Vx=(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),Bx=(e,t,n)=>{const r=Cn(e,t);return Tf(r,n)},Qx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=Ga(r,t,n),o=Bx(r,t,n);return Vx(o,i),r},Wx=(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)},Gx=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=Ga(i,t,n);return Wx(o,r),i},Mt={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard",resetTree:"resetTree",setTree:"setTree"},Kx=(e,t,n)=>({children:n,name:t,path:e,type:Mt.appendTreeCard}),Xx=(e,t,n)=>({children:n,name:t,path:e,type:Mt.replaceTreeCard}),Jx=(e,t)=>({name:t,path:e,type:Mt.deleteTreeCard}),Hx=()=>({type:Mt.resetTree}),Nf=e=>({tree:e,type:Mt.setTree}),Zx=(e,t)=>{switch(t.type){case Mt.appendTreeCard:{const{name:n,path:r,children:i}=t;return qx({child:i,name:n,path:r,tree:e})}case Mt.deleteTreeCard:{const{path:n,name:r}=t;return Qx({name:r,path:n,tree:e})}case Mt.replaceTreeCard:{const{name:n,path:r,children:i}=t;return Gx({child:i,name:n,path:r,tree:e})}case Mt.resetTree:return null;case Mt.setTree:return t.tree;default:throw new Error}},eM=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=rt();return{handleSubmit:o=>{var u,l;o.preventDefault();const a=((u=n==null?void 0:n.data)==null?void 0:u.name)||"",s=((l=r==null?void 0:r.at(-1))==null?void 0:l.path)||"";e(Jx(s,a)),t(null)}}},tM=({onClose:e})=>{const{t}=Ze.useTranslation(),{handleSubmit:n}=eM();return T("form",{onSubmit:n,children:oe(I.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[T(I.Button,{variant:"text",onClick:e,children:t("cancel")}),T(I.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Ka={},nM=Ae.exports;Object.defineProperty(Ka,"__esModule",{value:!0});var Ef=Ka.default=void 0,rM=nM(Be()),iM=Qe,oM=(0,rM.default)((0,iM.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");Ef=Ka.default=oM;var Xa={},aM=Ae.exports;Object.defineProperty(Xa,"__esModule",{value:!0});var Df=Xa.default=void 0,sM=aM(Be()),uM=Qe,lM=(0,sM.default)((0,uM.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");Df=Xa.default=lM;const Ti=[{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"text"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"number"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"email"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"file"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"password"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"tel"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"address"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"url"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"date"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!1,type:"time"},{isBooleanField:!0,isDecisionField:!1,isRequiredDisabled:!0,type:"switch"},{isBooleanField:!0,isDecisionField:!1,isRequiredDisabled:!0,type:"checkbox"},{isBooleanField:!1,isDecisionField:!0,isRequiredDisabled:!1,type:"radio"},{isBooleanField:!1,isDecisionField:!0,isRequiredDisabled:!1,type:"select"},{isBooleanField:!1,isDecisionField:!1,isRequiredDisabled:!0,type:"tree"}],cM=()=>{const{endPoint:e}=rt();return{fields:W.useCallback(()=>Ti.filter(n=>!(n.type==="tree"&&!e)),[e])()}},fM=({onChange:e,value:t})=>{const{t:n}=Ze.useTranslation(),{fields:r}=cM();return oe(I.FormControl,{sx:{flex:1},required:!0,children:[T(I.InputLabel,{children:n("type")}),T(I.Select,{value:t,label:n("type"),onChange:e,MenuProps:{PaperProps:{sx:{maxHeight:300}}},children:r.map(({type:i})=>T(I.MenuItem,{value:i,children:n(`type.${i}`,{ns:"form"})},i))})]})},Of=()=>({getAllWorkflow:()=>an.default.get("/v1/workflows").then(n=>n.data),getWorkflow:n=>an.default.get(`/v1/workflow?id=${n}`).then(r=>r.data)}),Ja=(e,t)=>{const{getWorkflow:n}=Of();return rn.useQuery(["/v1/workflow",e],()=>e&&n(e),{refetchOnWindowFocus:!1,...t})},Cf=e=>new Set([...e]).size===e.length,dM=(e,t,n)=>{const r=[...e,t];return Cf(n?r.filter(i=>i!==n):r)},hM=()=>{var mr,Yt,Di,vr,yr,An,Oi,Ci,Si,Ai,Ii,zi;const e=W.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=rt(),{open:s}=Qa(),{t:u}=Ze.useTranslation(),[l,c]=W.useState(e),[d,f]=W.useState(""),[h,v]=W.useState(""),[p,m]=W.useState(!1),[x,M]=W.useState(!1),[N,b]=W.useState("text"),[y,S]=W.useState(""),[A,C]=W.useState(""),[D,E]=W.useState(""),[z,g]=W.useState({off:"",on:""}),[w,k]=W.useState(!1),[R,L]=W.useState(""),B=i==="edit",V=N==="tree",te=Ti.some(U=>U.type===N&&(U==null?void 0:U.isBooleanField)),O=Ti.some(U=>U.type===N&&(U==null?void 0:U.isDecisionField)),$=Ti.some(U=>U.type===N&&(U==null?void 0:U.isRequiredDisabled)),G=U=>!O&&U>0,{refetch:K,isLoading:Y}=Ja(y,{enabled:!1,onError:()=>{s(u("error.fetchTree",{ns:"snackMessage"}),"error")}}),J=(U,fe)=>{c(pe=>pe.map(xe=>{const{id:ze}=xe;return U.target.dataset.id===ze?{...xe,id:ze,[fe]:U.target.value}:{...xe}}))},X=U=>{v(U.target.value)},H=U=>{J(U,"label")},ee=U=>{J(U,"value")},re=U=>{J(U,"message")},ne=U=>{E(U.target.value)},Ce=U=>{var He;const{value:fe}=U.target;if(f(U.target.value),!t||!fe){L("");return}const pe=B&&(r==null?void 0:r.data.name),xe=(He=o==null?void 0:o.at(-1))==null?void 0:He.path,ze=Cn(t,xe),je=wf(ze);if(dM(je,fe,pe)){L("");return}L(u("mustBeUnique",{ns:"form"}))},P=U=>{m(U.target.checked)},qe=U=>{M(U.target.checked)},Q=U=>{k(U.target.checked)},ot=U=>{b(U.target.value),M(!1),m(!1)},pt=U=>{S(U.target.value)},Jt=U=>fe=>{g(pe=>({...pe,[U]:fe.target.value}))},Ni=U=>{C(U.target.value)},Sn=()=>{c(U=>{const fe=Number(U[U.length-1].id),pe=String(fe+1);return[...U,{...e[0],id:pe}]})},ss=U=>{c(fe=>fe.filter(({id:pe})=>U!==pe))},us=(U,fe)=>{var xe,ze,je;const pe=(je=(ze=(xe=U==null?void 0:U.children)==null?void 0:xe[fe])==null?void 0:ze.data)==null?void 0:je.children;return pe?pe.map(({name:at,attributes:He,children:gt})=>({attributes:He,children:gt,name:at})):[]},gr=U=>{var fe;return x?(fe=l==null?void 0:l.filter((pe,xe)=>!G(xe)))==null?void 0:fe.map(({message:pe,value:xe,label:ze},je)=>{const at=`${d}:${xe}`,He=us(r,je);return{attributes:{depth:U+1,label:ze,value:xe,...pe&&{message:pe},...He.length===0&&{isLeaf:!0}},children:He,name:at}}):[]},ls=U=>U.map(({message:fe,...pe})=>({...pe,...fe&&{message:fe}})),cs=(U,fe,pe)=>{var xe;return U&&(!fe||pe)?K():U&&fe&&!pe?{data:{workflow:(xe=r==null?void 0:r.data.attributes)==null?void 0:xe.tree},isError:null}:{data:null,isError:null}},Ei=async U=>{var qt,en,tn,nn;U.preventDefault();const{on:fe,off:pe}=z,xe=((qt=r==null?void 0:r.data)==null?void 0:qt.name)||"",ze=(r==null?void 0:r.depth)||0,je=i==="edit",at=ze+(je||r===null?0:1),He=gr(at),gt=(en=o==null?void 0:o.at(-1))==null?void 0:en.path,In=o.length?`${gt}/${d}`:`/${d}`,Ht=((nn=(tn=r==null?void 0:r.data.attributes)==null?void 0:tn.tree)==null?void 0:nn.treeId)!==y,{data:Ot,isError:zn}=await cs(V,je,Ht);if(zn)return;const Zt={attributes:{depth:at,label:h,type:N,...A&&{helperText:A},...(pe||fe)&&{messages:{...pe&&{off:pe},...fe&&{on:fe}}},...V&&{tree:{...Ot==null?void 0:Ot.workflow,treeId:y},treePath:In},...x&&{isDecision:x},...O&&!x&&{values:ls(l)},...p&&{required:p},...D&&{step:D},...w&&{isRepeatable:w}},children:He,name:d};n(je?Xx(gt||"",xe,Zt):Kx(gt||null,xe,Zt)),a(null)};return W.useEffect(()=>{var U,fe,pe,xe,ze,je,at,He,gt,In,Ht,Ot,zn,Zt,qt,en,tn,nn;if(i==="edit"){const _=((fe=(U=r==null?void 0:r.data)==null?void 0:U.attributes)==null?void 0:fe.values)||((ze=(xe=(pe=r==null?void 0:r.data)==null?void 0:pe.children)==null?void 0:xe.filter(({attributes:j})=>!(j!=null&&j.type)))==null?void 0:ze.map(({attributes:j},F)=>{const{label:Z,value:ce,message:be}=j||{};return{id:String(F),label:String(Z),value:String(ce),...be&&{message:String(be)}}}));f((r==null?void 0:r.data.name)||""),b(((je=r==null?void 0:r.data.attributes)==null?void 0:je.type)||"text"),C(((at=r==null?void 0:r.data.attributes)==null?void 0:at.helperText)||""),m(((He=r==null?void 0:r.data.attributes)==null?void 0:He.required)||!1),E(((gt=r==null?void 0:r.data.attributes)==null?void 0:gt.step)||""),v(((In=r==null?void 0:r.data.attributes)==null?void 0:In.label)||""),M(((Ht=r==null?void 0:r.data.attributes)==null?void 0:Ht.isDecision)||!1),c(_!=null&&_.length?_:e),g({off:((zn=(Ot=r==null?void 0:r.data.attributes)==null?void 0:Ot.messages)==null?void 0:zn.off)||"",on:((qt=(Zt=r==null?void 0:r.data.attributes)==null?void 0:Zt.messages)==null?void 0:qt.on)||""}),S(((tn=(en=r==null?void 0:r.data.attributes)==null?void 0:en.tree)==null?void 0:tn.treeId)||""),k(((nn=r==null?void 0:r.data.attributes)==null?void 0:nn.isRepeatable)||!1)}},[(Yt=(mr=r==null?void 0:r.data.attributes)==null?void 0:mr.tree)==null?void 0:Yt.treeId,(Di=r==null?void 0:r.data.attributes)==null?void 0:Di.messages,(vr=r==null?void 0:r.data.attributes)==null?void 0:vr.helperText,(yr=r==null?void 0:r.data.attributes)==null?void 0:yr.isDecision,(An=r==null?void 0:r.data.attributes)==null?void 0:An.label,(Oi=r==null?void 0:r.data.attributes)==null?void 0:Oi.required,(Ci=r==null?void 0:r.data.attributes)==null?void 0:Ci.step,(Si=r==null?void 0:r.data.attributes)==null?void 0:Si.type,(Ai=r==null?void 0:r.data.attributes)==null?void 0:Ai.values,(Ii=r==null?void 0:r.data)==null?void 0:Ii.children,r==null?void 0:r.data.name,(zi=r==null?void 0:r.data.attributes)==null?void 0:zi.isRepeatable,e,i]),{getDisabledValueField:G,handleAddValue:Sn,handleChangeHelperText:Ni,handleChangeIsDecisionField:qe,handleChangeIsRepeatable:Q,handleChangeLabel:X,handleChangeMessage:Jt,handleChangeName:Ce,handleChangeOptionLabel:H,handleChangeOptionMessage:re,handleChangeOptionValue:ee,handleChangeRequired:P,handleChangeStep:ne,handleChangeTreeSelect:pt,handleChangeType:ot,handleDeleteValue:ss,handleSubmit:Ei,helperText:A,isBooleanField:te,isDecision:x,isDecisionField:O,isRepeatable:w,isRequiredDisabled:$,isTree:V,isWorkflowLoading:Y,label:h,messages:z,name:d,required:p,step:D,treeSelected:y,type:N,uniqueNameErrorMessage:R,values:l}};var Ha={},pM=Ae.exports;Object.defineProperty(Ha,"__esModule",{value:!0});var Sf=Ha.default=void 0,gM=pM(Be()),mM=Qe,vM=(0,gM.default)((0,mM.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");Sf=Ha.default=vM;const yM=e=>{const{getAllWorkflow:t}=Of();return rn.useQuery("/v1/workflows",t,{refetchOnWindowFocus:!1,...e})},_M=e=>{const{t}=Ze.useTranslation("snackMessage"),{open:n}=Qa(),{currentTree:r,setCurrentTree:i,dispatchTree:o}=rt(),[a,s]=W.useState("");Ja(a,{enabled:!!a&&!e&&a!==r.id,onError:()=>n(t("error.fetchTree",{ns:"snackMessage"}),"error"),onSuccess:({id:v,label:p,workflow:m})=>{e||(i({id:v,name:p}),o(Nf(m)))}});const{data:u,isLoading:l,refetch:c}=yM({enabled:!1,keepPreviousData:!0,onError:()=>{n(t("error.fetchTree"),"error")},onSuccess:()=>{r.id&&!a&&s(r.id)}}),d=async({target:v})=>{const{value:p}=v;if(p==="add-new-tree"){s(""),i({name:""}),o(Hx());return}s(p)},f=()=>h(),h=()=>c();return{currentTree:r,fetchWorkflowSuggestions:h,handleChangeTree:d,handleOnOpen:f,setTreeSelected:s,treeSelected:a,workflowsSuggestions:u,workflowsSuggestionsLoading:l}},Af={formControl:{flex:1},select:{".MuiOutlinedInput-notchedOutline":{border:0,paddingLeft:5},".MuiSelect-select":{opacity:0,width:0},boxShadow:"none"}},If=({arrowOnly:e,required:t,size:n,showBtnAddNewTree:r,onChange:i,value:o})=>{const a=W.useMemo(()=>!!i,[i]),{t:s}=Ze.useTranslation("form"),{handleChangeTree:u,handleOnOpen:l,workflowsSuggestions:c,workflowsSuggestionsLoading:d,treeSelected:f}=_M(a);return oe(I.FormControl,{size:n,required:t,sx:Af.formControl,children:[!e&&T(I.InputLabel,{children:s("tree")}),oe(I.Select,{value:a?o:f,id:"tree-select",onChange:h=>a?i==null?void 0:i(h):u(h),sx:e?Af.select:void 0,label:s("tree"),onOpen:l,children:[d&&T(I.MenuItem,{children:T(I.Skeleton,{width:"100%"})}),c==null?void 0:c.map(({label:h,id:v})=>T(I.MenuItem,{value:v,children:h},v)),r&&T(I.MenuItem,{disabled:!0,children:T(I.Box,{sx:{height:1,width:"100%"},children:T(I.Divider,{})})}),r&&oe(I.MenuItem,{value:"add-new-tree",children:[T(I.Typography,{mr:1,children:s("newTree")}),T(Sf,{color:"primary"})]})]})]})},zf={marginRight:"-20px !important",minWidth:"auto !important"},kf={iconButton:zf,iconButtonDelete:{...zf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:Te.backgroundPrimary,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},bM=({onClose:e})=>{const{t}=Ze.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,isBooleanField:l,isDecision:c,isDecisionField:d,isRequiredDisabled:f,isTree:h,treeSelected:v,isWorkflowLoading:p,isRepeatable:m,messages:{on:x,off:M},handleChangeTreeSelect:N,handleChangeHelperText:b,handleChangeOptionMessage:y,handleChangeRequired:S,handleChangeName:A,handleChangeType:C,handleChangeIsDecisionField:D,handleChangeOptionLabel:E,handleDeleteValue:z,handleChangeOptionValue:g,handleChangeMessage:w,handleSubmit:k,handleAddValue:R,handleChangeLabel:L,handleChangeIsRepeatable:B}=hM();return oe("form",{onSubmit:k,children:[oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(I.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:L,value:u,required:!0}),T(I.TextField,{label:t("name"),sx:{flex:1},onChange:A,value:i,error:!!o,helperText:o,required:!0})]}),oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(fM,{value:a,onChange:C}),h?T(If,{required:!0,value:v,onChange:N}):T(I.TextField,{sx:{flex:1},label:t("helperText",{ns:"form"}),onChange:b,value:s})]}),l&&oe(I.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[T(I.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:w("on"),value:x}),T(I.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:w("off"),value:M})]}),oe(I.Stack,{paddingY:1,children:[T(I.FormGroup,{children:T(I.FormControlLabel,{control:T(I.Checkbox,{checked:m,onChange:B}),label:t("repeatable",{ns:"form"})})}),T(I.FormGroup,{children:T(I.FormControlLabel,{disabled:f,control:T(I.Checkbox,{checked:r,onChange:S}),label:t("required")})}),T(I.FormGroup,{children:T(I.FormControlLabel,{disabled:!d,control:T(I.Checkbox,{checked:c,onChange:D}),label:t("decisionField",{ns:"form"})})})]}),d&&oe(br,{children:[T("h4",{children:t("values")}),n==null?void 0:n.map(({value:V,label:te,id:O,message:$})=>oe(I.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[T(I.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:E,value:te,inputProps:{"data-id":O},required:!0}),T(I.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:g,value:V,inputProps:{"data-id":O},required:!0}),T(I.TextField,{label:"Message",sx:{flex:1},onChange:y,value:$,inputProps:{"data-id":O}}),n.length>1&&T(I.Button,{color:"warning",sx:kf.iconButtonDelete,"data-id":O,onClick:()=>z(O),children:T(Df,{})})]},O))]}),d&&T(I.Box,{justifyContent:"flex-end",display:"flex",children:T(I.Button,{color:"success",sx:kf.iconButton,onClick:R,children:T(Ef,{})})}),oe(I.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[T(I.Button,{variant:"text",onClick:e,children:t("cancel")}),T(I.Button,{variant:"contained",type:"submit",disabled:!!o||p,children:p?T(I.CircularProgress,{size:14}):t("validate")})]})]})};var Za={},xM=Ae.exports;Object.defineProperty(Za,"__esModule",{value:!0});var jf=Za.default=void 0,MM=xM(Be()),wM=Qe,TM=(0,MM.default)((0,wM.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");jf=Za.default=TM;var es={},NM=Ae.exports;Object.defineProperty(es,"__esModule",{value:!0});var $f=es.default=void 0,EM=NM(Be()),DM=Qe,OM=(0,EM.default)((0,DM.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");$f=es.default=OM;var ts={},CM=Ae.exports;Object.defineProperty(ts,"__esModule",{value:!0});var Rf=ts.default=void 0,SM=CM(Be()),AM=Qe,IM=(0,SM.default)((0,AM.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");Rf=ts.default=IM;var ns={},zM=Ae.exports;Object.defineProperty(ns,"__esModule",{value:!0});var Lf=ns.default=void 0,kM=zM(Be()),jM=Qe,$M=(0,kM.default)((0,jM.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");Lf=ns.default=$M;var rs={},RM=Ae.exports;Object.defineProperty(rs,"__esModule",{value:!0});var Pf=rs.default=void 0,LM=RM(Be()),PM=Qe,FM=(0,LM.default)((0,PM.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");Pf=rs.default=FM;var is={},UM=Ae.exports;Object.defineProperty(is,"__esModule",{value:!0});var Ff=is.default=void 0,YM=UM(Be()),Uf=Qe,qM=(0,YM.default)([(0,Uf.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,Uf.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");Ff=is.default=qM;var os={},VM=Ae.exports;Object.defineProperty(os,"__esModule",{value:!0});var Yf=os.default=void 0,BM=VM(Be()),QM=Qe,WM=(0,BM.default)((0,QM.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");Yf=os.default=WM;var as={},GM=Ae.exports;Object.defineProperty(as,"__esModule",{value:!0});var qf=as.default=void 0,KM=GM(Be()),XM=Qe,JM=(0,KM.default)((0,XM.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");qf=as.default=JM;const We={actionButton:{minWidth:"auto !important"},container:{background:Te.backgroundPrimary,borderRadius:"1rem"},containerField:{background:Te.backgroundPrimary,border:`solid 1px ${Te.primaryMain}`,borderRadius:"1rem"},containerTree:{background:Te.tertiaryMain,border:`solid 1px ${Te.primaryMain}`,borderRadius:"1rem"},containerValue:{background:Te.backgroundPrimary,border:`solid 1px ${Te.secondaryMain}`,borderRadius:"1rem"},icon:{color:Te.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}},HM=e=>{const t=!!e;return e==="tree"?We.containerTree:t?We.containerField:We.containerValue},ZM=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var N;const{t:s}=Ze.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:v}=u||{},p=!!h,m=h==="tree",x=!p,M=!l&&!c;return oe("g",{children:[T(I.GlobalStyles,{styles:{".rd3t-node svg":We.nodeSvg}}),T("foreignObject",{height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,style:HM(h),children:oe(I.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[oe(I.Stack,{alignItems:"flex-end",spacing:.5,children:[p&&oe(I.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&T(I.Tooltip,{title:`${s("step",{ns:"form"})} ${(N=e==null?void 0:e.attributes)==null?void 0:N.step}`,placement:"left",arrow:!0,children:T(I.Chip,{color:"primary",size:"small",label:f,sx:We.stepChip})}),T(I.Typography,{variant:"subtitle2",sx:We.title,children:T("strong",{children:v})})]}),p&&T(I.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&T(I.Stack,{direction:"row",spacing:.5,children:d&&T(I.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),T(I.Stack,{spacing:.5,alignItems:"flex-end",children:x&&T(I.Typography,{variant:"subtitle2",sx:We.title,children:T("strong",{children:v})})}),oe(I.Box,{paddingTop:.5,children:[c&&T(I.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:T(Pf,{style:We.icon})}),l&&T(I.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:T(Yf,{style:We.icon})}),M&&T(I.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:T(jf,{style:We.icon})}),m&&T(I.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:T(Ff,{style:We.icon})})]})]}),oe(I.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&T(I.Tooltip,{title:s("remove"),arrow:!0,children:T(I.Button,{variant:"text",sx:We.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:T(Rf,{})})}),!x&&T(I.Tooltip,{title:s("edit"),arrow:!0,children:T(I.Button,{variant:"text",color:"secondary",sx:We.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:T(Lf,{})})}),c&&T(I.Tooltip,{title:s("add"),arrow:!0,children:T(I.Button,{variant:"text",color:"success",sx:We.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:T($f,{})})}),m&&T(I.Tooltip,{title:s("show"),arrow:!0,children:T(I.Button,{variant:"text",color:"info",sx:We.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:T(qf,{})})})]})]})})]})},e2=W.memo(ZM),Vf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=rt();return{handleAddChildren:l=>{t(l),e("add")},handleCloseTreeModal:()=>{r([]),n(!1)},handleDeleteChildren:l=>{t(l),e("delete")},handleEditChildren:l=>{t(l),e("edit")},handleOpenTreeModal:l=>{var d,f;const c={label:l==null?void 0:l.data.attributes.label,path:((f=(d=l==null?void 0:l.data)==null?void 0:d.attributes)==null?void 0:f.treePath)||""};r(h=>[...h,c]),n(!0)}}},t2=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Vf();return T(e2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Bf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>T(t2,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),n2=()=>{const{currentHierarchyPointNode:e,modalOpen:t,setModalOpen:n}=rt(),{t:r}=Ze.useTranslation(["modal","snackMessage"]),i=t==="edit";return{closeModal:()=>n(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=e==null?void 0:e.data)==null?void 0:f.attributes)==null?void 0:h.label;return r("deleteTitle",{name:d,ns:"modal"})},getTitleModalMutation:()=>{var h;const d=(h=e==null?void 0:e.data)==null?void 0:h.attributes.label;return d?r(i?"editTitle":"addTitle",{name:d,ns:"modal"}):r("addFirstTitle",{name:d,ns:"modal"})},isDeleteModal:t==="delete",isModalMutationOpen:i||t==="add"}},r2=()=>{const{currentTree:e,setCurrentTree:t,tree:n}=rt(),{name:r,errorName:i,id:o}=e;return{disabled:!!e.id&&!n,errorName:i,handleChangeName:u=>{const{value:l}=u.target;if(!l){t(c=>({...c,errorName:"Champs requis",name:u.target.value}));return}t(c=>({...c,errorName:"",name:u.target.value}))},id:o,name:r}},i2=()=>{const{t:e}=Ze.useTranslation("form"),{name:t,handleChangeName:n,errorName:r,disabled:i}=r2();return T(I.TextField,{required:!0,label:e("treeName"),size:"small",onChange:n,value:t,error:!!r,disabled:i})},o2=()=>{var h,v;const{tree:e,treeModalOpen:t,treePath:n,endPoint:r}=rt(),{handleCloseTreeModal:i}=Vf(),{getTitleModalMutation:o,closeModal:a,getTitleModalDelete:s,isModalMutationOpen:u,isDeleteModal:l}=n2(),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&&Cn(e,c);return oe(br,{children:[oe(Px,{children:[T($x,{children:oe(I.Stack,{justifyContent:"space-between",direction:"row",alignItems:"center",children:[T(_d,{}),!!r&&oe(I.Stack,{direction:"row",alignItems:"center",spacing:2,children:[T(i2,{}),T(If,{size:"small",arrowOnly:!0,showBtnAddNewTree:!0})]})]})}),T(Lx,{children:T(Wl,{data:e,renderCustomNodeElement:Bf})}),T(Ux,{children:T(Zm,{value:e})}),T(kx,{children:T(Tx,{value:e})})]}),T(_f,{open:u,onClose:a,title:o(),children:T(bM,{onClose:a})}),T(_f,{open:l,onClose:a,title:s(),children:T(tM,{onClose:a})}),T(Ix,{open:t,onClose:i,title:d,children:f&&T(Wl,{data:f,renderCustomNodeElement:Bf})})]})},a2="0.5.5",s2=({children:e,endPoint:t,initialTree:n,initialTreeId:r})=>{const[i,o]=W.useState(Rt.currentHierarchyPointNode),[a,s]=W.useState(Rt.modalOpen),[u,l]=W.useState(Rt.treeModalOpen),[c,d]=W.useState(Rt.treePath),[f,h]=W.useReducer(Zx,n||Rt.tree),[v,p]=W.useState(r?{...Rt.currentTree,id:r}:Rt.currentTree),m=W.useMemo(()=>({currentHierarchyPointNode:i,currentTree:v,dispatchTree:h,endPoint:t,modalOpen:a,setCurrentHierarchyPointNode:o,setCurrentTree:p,setModalOpen:s,setTreeModalOpen:l,setTreePath:d,tree:f,treeModalOpen:u,treePath:c,version:a2}),[i,a,u,c,f,v,t]);return Ja(v.id,{enabled:!!r,onSuccess:async x=>{!x||(p({id:x==null?void 0:x.id,name:x==null?void 0:x.label}),h(Nf((x==null?void 0:x.workflow)||null)))}}),T(Bl.Provider,{value:m,children:e})},u2={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save",update:"Update"},l2={decisionFields:"Decision fields",helperText:"Helper text",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",number:"Number",password:"Password",radio:"Radio",select:"Select",switch:"Switch",tel:"Tel",time:"Time",text:"Text",tree:"Tree",url:"URL"},value:"Value",values:"Values"},c2={saveTree:"Save a Tree",addFirstTitle:"Add a field",addTitle:"Add a field to \xAB {{name}} \xBB",deleteTitle:"Are you sure to delete \xAB {{name}} \xBB",editTitle:"Edit field \xAB {{name}} \xBB"},f2={error:{saveTree:"An error has occurred. Please try again",updateTree:"An error has occurred. Please try again",fetchTree:"An error has occurred. Please try again"},success:{saveTree:"Tree registered",updateTree:"Tree updated"}},d2={add:"Add",cancel:"Cancel",disabled:"Disabled",edit:"Edit",isALeaf:"Is a leaf",isABranch:"Is a branch",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"},h2={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer",update:"Modifier"},p2={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",label:"Label",mustBeUnique:"Doit \xEAtre unique",newTree:"Nouvel arbre",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",repeatable:"R\xE9p\xE9table",staticFields:"Champs statiques",step:"\xC9tape",tree:"Arbre",treeName:"Nom de l'arbre",type:{address:"Adresse",checkbox:"Case \xE0 cocher",date:"Date",email:"Email",file:"Fichier",number:"Nombre",password:"Mot de passe",radio:"Radio",select:"Select",switch:"Switch",tel:"T\xE9l\xE9phone",time:"Temps",text:"Texte",tree:"Arbre",url:"URL"},value:"Valeur",values:"Valeurs"},g2={saveTree:"Enregistrer l'arbre",addFirstTitle:"Ajouter un champ",addTitle:"Ajouter un champ \xE0 \xAB {{name}} \xBB",deleteTitle:"Voulez vraiment supprimer \xAB {{name}} \xBB",editTitle:"\xC9diter le champ \xAB {{name}} \xBB"},m2={error:{saveTree:"Une erreur est survenue veuillez r\xE9essayer",updateTree:"Une erreur est survenue veuillez r\xE9essayer",fetchTree:"Une erreur est survenue veuillez r\xE9essayer"},success:{saveTree:"Arbre enregistr\xE9",updateTree:"Arbre mis \xE0 jour"}},v2={add:"Ajouter",cancel:"Annuler",disabled:"D\xE9sactiv\xE9",edit:"\xC9diter",isALeaf:"Est une feuille",isABranch:"Est une branche",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"};rd.default.use(id.default).use(Ze.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:u2,form:l2,modal:c2,snackMessage:f2,translation:d2},fr:{button:h2,form:p2,modal:g2,snackMessage:m2,translation:v2}}}).then();const y2=({authToken:e,endPoint:t,initialTree:n,initialTreeId:r})=>(W.useLayoutEffect(()=>{an.default.defaults.baseURL=t,an.default.defaults.headers.common.Authorization=`Bearer ${e}`},[t,e]),T(rn.QueryClientProvider,{client:cd,children:T(hd,{authToken:e,children:T(s2,{endPoint:t,initialTree:n,initialTreeId:r,children:T(ld,{children:T(vd,{children:T(o2,{})})})})})}));Ie.TreePlusIcon=Vl,Ie.Treege=y2,Object.defineProperties(Ie,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});