treege 0.4.15 → 0.4.16
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/CHANGELOG.md +2 -2
- package/dist/components/UI/TreeModal/TreeModal.d.ts +1 -1
- package/dist/main.js +1437 -1415
- package/dist/main.umd.cjs +28 -28
- package/package.json +4 -4
package/dist/main.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Ye,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("design-system-tracktor"),require("react"),require("react-dom"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("react-i18next"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","design-system-tracktor","react","react-dom","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","react-i18next","i18next","i18next-browser-languagedetector"],j):(Ye=typeof globalThis<"u"?globalThis:Ye||self,j(Ye.treege={},Ye.designSystemTracktor,Ye.React,Ye.ReactDOM,Ye.langJson,Ye.codemirrorThemeDracula,Ye.CodeMirror,Ye.reactI18next,Ye.i18n,Ye.LanguageDetector))})(this,function(Ye,j,X,Df,Of,Cf,Sf,Ct,Af,If){"use strict";const Sn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function zf(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 it=Sn(X),Me=zf(X),jf=Sn(Df),kf=Sn(Sf),$f=Sn(Af),Rf=Sn(If),
|
|
1
|
+
(function(Ye,j){typeof exports=="object"&&typeof module<"u"?j(exports,require("design-system-tracktor"),require("react"),require("react-dom"),require("@codemirror/lang-json"),require("@uiw/codemirror-theme-dracula"),require("@uiw/react-codemirror"),require("react-i18next"),require("i18next"),require("i18next-browser-languagedetector")):typeof define=="function"&&define.amd?define(["exports","design-system-tracktor","react","react-dom","@codemirror/lang-json","@uiw/codemirror-theme-dracula","@uiw/react-codemirror","react-i18next","i18next","i18next-browser-languagedetector"],j):(Ye=typeof globalThis<"u"?globalThis:Ye||self,j(Ye.treege={},Ye.designSystemTracktor,Ye.React,Ye.ReactDOM,Ye.langJson,Ye.codemirrorThemeDracula,Ye.CodeMirror,Ye.reactI18next,Ye.i18n,Ye.LanguageDetector))})(this,function(Ye,j,X,Df,Of,Cf,Sf,Ct,Af,If){"use strict";const Sn=e=>e&&typeof e=="object"&&"default"in e?e:{default:e};function zf(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 it=Sn(X),Me=zf(X),jf=Sn(Df),kf=Sn(Sf),$f=Sn(Af),Rf=Sn(If),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"},Lf=j.createTheme({palette:{background:{default:we.backgroundPrimary},mode:"dark",primary:{main:we.primaryMain},secondary:{main:we.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 gr={exports:{}},An={};/**
|
|
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
|
|
9
|
+
*/var rs;function Pf(){if(rs)return An;rs=1;var e=it.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 An.Fragment=n,An.jsx=a,An.jsxs=a,An}var In={};/**
|
|
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
|
|
17
|
+
*/var is;function Ff(){return is||(is=1,process.env.NODE_ENV!=="production"&&function(){var e=it.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"),y=Symbol.iterator,p="@@iterator";function m(_){if(_===null||typeof _!="object")return null;var k=y&&_[y]||_[p];return typeof k=="function"?k:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function M(_){{for(var k=arguments.length,F=new Array(k>1?k-1:0),Z=1;Z<k;Z++)F[Z-1]=arguments[Z];N("error",_,F)}}function N(_,k,F){{var Z=x.ReactDebugCurrentFrame,de=Z.getStackAddendum();de!==""&&(k+="%s",F=F.concat([de]));var xe=F.map(function(ue){return String(ue)});xe.unshift("Warning: "+k),Function.prototype.apply.call(console[_],console,xe)}}var b=!1,v=!1,O=!1,A=!1,D=!1,C;C=Symbol.for("react.module.reference");function T(_){return!!(typeof _=="string"||typeof _=="function"||_===r||_===o||D||_===i||_===l||_===c||A||_===h||b||v||O||typeof _=="object"&&_!==null&&(_.$$typeof===f||_.$$typeof===d||_.$$typeof===a||_.$$typeof===s||_.$$typeof===u||_.$$typeof===C||_.getModuleId!==void 0))}function I(_,k,F){var Z=_.displayName;if(Z)return Z;var de=k.displayName||k.name||"";return de!==""?F+"("+de+")":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 k=_;return g(k)+".Consumer";case a:var F=_;return g(F._context)+".Provider";case u:return I(_,_.render,"ForwardRef");case d:var Z=_.displayName||null;return Z!==null?Z:w(_.type)||"Memo";case f:{var de=_,xe=de._payload,ue=de._init;try{return w(ue(xe))}catch{return null}}}return null}var z=Object.assign,$=0,L,U,B,ne,S,R,W;function G(){}G.__reactDisabledLog=!0;function q(){{if($===0){L=console.log,U=console.info,B=console.warn,ne=console.error,S=console.group,R=console.groupCollapsed,W=console.groupEnd;var _={configurable:!0,enumerable:!0,value:G,writable:!0};Object.defineProperties(console,{info:_,log:_,warn:_,error:_,group:_,groupCollapsed:_,groupEnd:_})}$++}}function H(){{if($--,$===0){var _={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:z({},_,{value:L}),info:z({},_,{value:U}),warn:z({},_,{value:B}),error:z({},_,{value:ne}),group:z({},_,{value:S}),groupCollapsed:z({},_,{value:R}),groupEnd:z({},_,{value:W})})}$<0&&M("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=x.ReactCurrentDispatcher,J;function ee(_,k,F){{if(J===void 0)try{throw Error()}catch(de){var Z=de.stack.trim().match(/\n( *(at )?)/);J=Z&&Z[1]||""}return`
|
|
18
18
|
`+J+_}}var re=!1,te;{var Ce=typeof WeakMap=="function"?WeakMap:Map;te=new Ce}function P(_,k){if(!_||re)return"";{var F=te.get(_);if(F!==void 0)return F}var Z;re=!0;var de=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var xe;xe=K.current,K.current=null,q();try{if(k){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ot){Z=Ot}Reflect.construct(_,[],ue)}else{try{ue.call()}catch(Ot){Z=Ot}_.call(ue.prototype)}}else{try{throw Error()}catch(Ot){Z=Ot}_()}}catch(Ot){if(Ot&&Z&&typeof Ot.stack=="string"){for(var ae=Ot.stack.split(`
|
|
19
19
|
`),Be=Z.stack.split(`
|
|
20
20
|
`),De=ae.length-1,Se=Be.length-1;De>=1&&Se>=0&&ae[De]!==Be[Se];)Se--;for(;De>=1&&Se>=0;De--,Se--)if(ae[De]!==Be[Se]){if(De!==1||Se!==1)do if(De--,Se--,Se<0||ae[De]!==Be[Se]){var ct=`
|
|
21
|
-
`+ae[De].replace(" at new "," at ");return _.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",_.displayName)),typeof _=="function"&&te.set(_,ct),ct}while(De>=1&&Se>=0);break}}}finally{re=!1,K.current=xe,H(),Error.prepareStackTrace=de}var Cn=_?_.displayName||_.name:"",Ef=Cn?ee(Cn):"";return typeof _=="function"&&te.set(_,Ef),Ef}function Fe(_,k,F){return P(_,!1)}function Q(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function rt(_,k,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 Fe(_.render);case d:return rt(_.type,k,F);case f:{var Z=_,de=Z._payload,xe=Z._init;try{return rt(xe(de),k,F)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,Jt={},
|
|
21
|
+
`+ae[De].replace(" at new "," at ");return _.displayName&&ct.includes("<anonymous>")&&(ct=ct.replace("<anonymous>",_.displayName)),typeof _=="function"&&te.set(_,ct),ct}while(De>=1&&Se>=0);break}}}finally{re=!1,K.current=xe,H(),Error.prepareStackTrace=de}var Cn=_?_.displayName||_.name:"",Ef=Cn?ee(Cn):"";return typeof _=="function"&&te.set(_,Ef),Ef}function Fe(_,k,F){return P(_,!1)}function Q(_){var k=_.prototype;return!!(k&&k.isReactComponent)}function rt(_,k,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 Fe(_.render);case d:return rt(_.type,k,F);case f:{var Z=_,de=Z._payload,xe=Z._init;try{return rt(xe(de),k,F)}catch{}}}return""}var pt=Object.prototype.hasOwnProperty,Jt={},xi=x.ReactDebugCurrentFrame;function Dn(_){if(_){var k=_._owner,F=rt(_.type,_._source,k?k.type:null);xi.setExtraStackFrame(F)}else xi.setExtraStackFrame(null)}function Mi(_,k,F,Z,de){{var xe=Function.call.bind(pt);for(var ue in _)if(xe(_,ue)){var ae=void 0;try{if(typeof _[ue]!="function"){var Be=Error((Z||"React class")+": "+F+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof _[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Be.name="Invariant Violation",Be}ae=_[ue](k,ue,Z,F,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(De){ae=De}ae&&!(ae instanceof Error)&&(Dn(de),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,ue,typeof ae),Dn(null)),ae instanceof Error&&!(ae.message in Jt)&&(Jt[ae.message]=!0,Dn(de),M("Failed %s type: %s",F,ae.message),Dn(null))}}}var wi=Array.isArray;function On(_){return wi(_)}function Ni(_){{var k=typeof Symbol=="function"&&Symbol.toStringTag,F=k&&_[Symbol.toStringTag]||_.constructor.name||"Object";return F}}function Ti(_){try{return cr(_),!1}catch{return!0}}function cr(_){return""+_}function fr(_){if(Ti(_))return M("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ni(_)),cr(_)}var Ut=x.ReactCurrentOwner,Ei={key:!0,ref:!0,__self:!0,__source:!0},dr,hr,Y;Y={};function ye(_){if(pt.call(_,"ref")){var k=Object.getOwnPropertyDescriptor(_,"ref").get;if(k&&k.isReactWarning)return!1}return _.ref!==void 0}function be(_){if(pt.call(_,"key")){var k=Object.getOwnPropertyDescriptor(_,"key").get;if(k&&k.isReactWarning)return!1}return _.key!==void 0}function Ee(_,k){if(typeof _.ref=="string"&&Ut.current&&k&&Ut.current.stateNode!==k){var F=w(Ut.current.type);Y[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),Y[F]=!0)}}function Ue(_,k){{var F=function(){dr||(dr=!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)",k))};F.isReactWarning=!0,Object.defineProperty(_,"key",{get:F,configurable:!0})}}function Ke(_,k){{var F=function(){hr||(hr=!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)",k))};F.isReactWarning=!0,Object.defineProperty(_,"ref",{get:F,configurable:!0})}}var st=function(_,k,F,Z,de,xe,ue){var ae={$$typeof:t,type:_,key:k,ref:F,props:ue,_owner:xe};return ae._store={},Object.defineProperty(ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:de}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function Xe(_,k,F,Z,de){{var xe,ue={},ae=null,Be=null;F!==void 0&&(fr(F),ae=""+F),be(k)&&(fr(k.key),ae=""+k.key),ye(k)&&(Be=k.ref,Ee(k,de));for(xe in k)pt.call(k,xe)&&!Ei.hasOwnProperty(xe)&&(ue[xe]=k[xe]);if(_&&_.defaultProps){var De=_.defaultProps;for(xe in De)ue[xe]===void 0&&(ue[xe]=De[xe])}if(ae||Be){var Se=typeof _=="function"?_.displayName||_.name||"Unknown":_;ae&&Ue(ue,Se),Be&&Ke(ue,Se)}return st(_,ae,Be,de,Z,Ut.current,ue)}}var ut=x.ReactCurrentOwner,Ht=x.ReactDebugCurrentFrame;function lt(_){if(_){var k=_._owner,F=rt(_.type,_._source,k?k.type:null);Ht.setExtraStackFrame(F)}else Ht.setExtraStackFrame(null)}var Et;Et=!1;function Dt(_){return typeof _=="object"&&_!==null&&_.$$typeof===t}function Yt(){{if(ut.current){var _=w(ut.current.type);if(_)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+_+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+_+"`."}return""}}function Di(_){{if(_!==void 0){var k=_.fileName.replace(/^.*[\\\/]/,""),F=_.lineNumber;return`
|
|
24
24
|
|
|
25
|
-
Check your code at `+k+":"+F+"."}return""}}var pr={};function
|
|
25
|
+
Check your code at `+k+":"+F+"."}return""}}var pr={};function Oi(_){{var k=Yt();if(!k){var F=typeof _=="string"?_:_.displayName||_.name;F&&(k=`
|
|
26
26
|
|
|
27
|
-
Check the top-level render call using <`+F+">.")}return k}}function Za(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var F=Di(k);if(pr[F])return;pr[F]=!0;var Z="";_&&_._owner&&_._owner!==ut.current&&(Z=" It was passed a child from "+w(_._owner.type)+"."),lt(_),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),lt(null)}}function Zt(_,k){{if(typeof _!="object")return;if(On(_))for(var F=0;F<_.length;F++){var Z=_[F];Dt(Z)&&Za(Z,k)}else if(Dt(_))_._store&&(_._store.validated=!0);else if(_){var de=m(_);if(typeof de=="function"&&de!==_.entries)for(var xe=de.call(_),ue;!(ue=xe.next()).done;)Dt(ue.value)&&Za(ue.value,k)}}}function en(_){{var k=_.type;if(k==null||typeof k=="string")return;var F;if(typeof k=="function")F=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===u||k.$$typeof===d))F=k.propTypes;else return;if(F){var Z=w(k);xi(F,_.props,"prop",Z,_)}else if(k.PropTypes!==void 0&&!Et){Et=!0;var de=w(k);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function es(_){{for(var k=Object.keys(_.props),F=0;F<k.length;F++){var Z=k[F];if(Z!=="children"&&Z!=="key"){lt(_),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),lt(null);break}}_.ref!==null&&(lt(_),M("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}}function Oi(_,k,F,Z,de,xe){{var ue=T(_);if(!ue){var ae="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ae+=" 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 Be=Ei(de);Be?ae+=Be:ae+=Yt();var De;_===null?De="null":On(_)?De="array":_!==void 0&&_.$$typeof===t?(De="<"+(w(_.type)||"Unknown")+" />",ae=" 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,ae)}var Se=Xe(_,k,F,de,xe);if(Se==null)return Se;if(ue){var ct=k.children;if(ct!==void 0)if(Z)if(On(ct)){for(var Cn=0;Cn<ct.length;Cn++)Zt(ct[Cn],_);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 Zt(ct,_)}return _===r?es(Se):en(Se),Se}}function ts(_,k,F){return Oi(_,k,F,!0)}function Ci(_,k,F){return Oi(_,k,F,!1)}var NM=Ci,TM=ts;In.Fragment=r,In.jsx=NM,In.jsxs=TM}()),In}(function(e){process.env.NODE_ENV==="production"?e.exports=Pf():e.exports=Ff()})(gr);const mr=gr.exports.Fragment,D=gr.exports.jsx,le=gr.exports.jsxs,Uf=Object.freeze(Object.defineProperty({__proto__:null,Fragment:mr,jsx:D,jsxs:le},Symbol.toStringTag,{value:"Module"})),Yf=({children:e})=>le(mr,{children:[D(j.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%"}}}),D(j.ThemeProvider,{theme:Lf,children:e})]}),qf={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:0}},Vf=({children:e})=>D(j.Box,{p:2,role:"group",sx:qf.box,children:e}),Bf={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:0}},Qf=({children:e})=>D(j.Box,{sx:Bf.box,padding:2,component:"header",children:e}),Wf={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:1}},Gf=({children:e})=>D(j.Box,{sx:Wf.box,component:"main",role:"tree",children:e}),is={stack:{width:"100%"}},Kf=({children:e})=>{const t=X.Children.toArray(e);return le(j.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[D(j.Grid,{item:!0,xs:9,padding:1,display:"flex",children:le(j.Stack,{sx:is.stack,spacing:2,children:[t[0],t[1]]})}),D(j.Grid,{item:!0,xs:3,padding:1,display:"flex",children:le(j.Stack,{sx:is.stack,spacing:2,children:[t[2],t[3]]})})]})},Xf={box:{border:`solid 1px ${Te.borderLight}`,flexGrow:1,overflow:"auto"}},Jf=({children:e})=>D(j.Box,{sx:Xf.box,component:"aside",children:e}),Hf="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Zf=()=>D("img",{src:Hf,alt:"Treege",height:30,width:"auto"}),ed={box:{backgroundColor:Te.backgroundPrimary,border:`solid 1px ${Te.borderLight}`}},os=({children:e,description:t,open:n,onClose:r,title:i})=>D(j.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:le(j.Box,{sx:ed.box,p:4,children:[D("h3",{children:i}),D("p",{children:t}),e]})});var as={},Si={};function td(e,t){return e.parent===t.parent?1:2}function nd(e){return e.reduce(rd,0)/e.length}function rd(e,t){return e+t.x}function id(e){return 1+e.reduce(od,0)}function od(e,t){return Math.max(e,t.y)}function ad(e){for(var t;t=e.children;)e=t[0];return e}function sd(e){for(var t;t=e.children;)e=t[t.length-1];return e}function ud(){var e=td,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=nd(h),f.y=id(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=ad(o),l=sd(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 ld(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(ld)}function fd(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 dd(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 hd(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 pd(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 gd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function md(e){for(var t=this,n=vd(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 vd(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 yd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function _d(){var e=[];return this.each(function(t){e.push(t)}),e}function bd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function xd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Ai(e,t){var n=new tn(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=wd);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 tn(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(ss)}function Md(){return Ai(this).eachBefore(Nd)}function wd(e){return e.children}function Nd(e){e.data=e.data.data}function ss(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tn(e){this.data=e,this.depth=this.height=0,this.parent=null}tn.prototype=Ai.prototype={constructor:tn,count:cd,each:fd,eachAfter:hd,eachBefore:dd,sum:pd,sort:gd,path:md,ancestors:yd,descendants:_d,leaves:bd,links:xd,copy:Md};var Td=Array.prototype.slice;function Ed(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 us(e){for(var t=0,n=(e=Ed(Td.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&ls(o,i)?++t:(o=Od(r=Dd(r,i)),t=0);return o}function Dd(e,t){var n,r;if(Ii(t,e))return[t];for(n=0;n<e.length;++n)if(vr(t,e[n])&&Ii(zn(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(vr(zn(e[n],e[r]),t)&&vr(zn(e[n],t),e[r])&&vr(zn(e[r],t),e[n])&&Ii(cs(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function vr(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 ls(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 Ii(e,t){for(var n=0;n<t.length;++n)if(!ls(e,t[n]))return!1;return!0}function Od(e){switch(e.length){case 1:return Cd(e[0]);case 2:return zn(e[0],e[1]);case 3:return cs(e[0],e[1],e[2])}}function Cd(e){return{x:e.x,y:e.y,r:e.r}}function zn(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 cs(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,y=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,v=h*y-f*p,O=(y*b-p*N)/(v*2)-r,A=(p*m-y*x)/v,E=(h*N-f*b)/(v*2)-i,C=(f*x-h*m)/v,T=A*A+C*C-1,I=2*(o+O*A+E*C),g=O*O+E*E-o*o,w=-(T?(I+Math.sqrt(I*I-4*T*g))/(2*T):g/I);return{x:r+O+A*w,y:i+E+C*w,r:w}}function fs(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 ds(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 hs(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 yr(e){this._=e,this.next=null,this.previous=null}function ps(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;fs(n,t,r=e[2]),t=new yr(t),n=new yr(n),r=new yr(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){fs(t._,n._,r=e[s]),r=new yr(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(ds(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(ds(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=hs(t);(r=r.next)!==n;)(a=hs(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=us(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Sd(e){return ps(e),e}function Ad(e){return e==null?null:_r(e)}function _r(e){if(typeof e!="function")throw new Error;return e}function qt(){return 0}function nn(e){return function(){return e}}function Id(e){return Math.sqrt(e.value)}function zd(){var e=null,t=1,n=1,r=qt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(gs(e)).eachAfter(zi(r,.5)).eachBefore(ms(1)):o.eachBefore(gs(Id)).eachAfter(zi(qt,1)).eachAfter(zi(r,o.r/Math.min(t,n))).eachBefore(ms(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Ad(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:nn(+o),i):r},i}function gs(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function zi(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=ps(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function ms(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 vs(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 jn(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 jd(){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(vs),a}function o(a,s){return function(u){u.children&&jn(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 ys="$",kd={depth:-1},_s={};function $d(e){return e.id}function Rd(e){return e.parentId}function Ld(){var e=$d,t=Rd;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 tn(i),(d=e(i,o,r))!=null&&(d+="")&&(f=ys+(l.id=d),h[f]=f in h?_s: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[ys+d],!u)throw new Error("missing: "+d);if(u===_s)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=kd,s.eachBefore(function(y){y.depth=y.parent.depth+1,--a}).eachBefore(ss),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=_r(r),n):e},n.parentId=function(r){return arguments.length?(t=_r(r),n):t},n}function Pd(e,t){return e.parent===t.parent?1:2}function ji(e){var t=e.children;return t?t[0]:e.t}function ki(e){var t=e.children;return t?t[t.length-1]:e.t}function Fd(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 Ud(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 Yd(e,t,n){return e.a.parent===t.parent?e.a:n}function br(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}br.prototype=Object.create(tn.prototype);function qd(e){for(var t=new br(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 br(o[a],a)),i.parent=n;return(t.parent=new br(null,0)).children=[t],t}function Vd(){var e=Pd,t=1,n=1,r=null;function i(l){var c=qd(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 y=d===f?1:e(d,f)/2,p=y-d.x,m=t/(f.x+y+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){Ud(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,y=c,p=f.parent.children[0],m=f.m,x=h.m,M=y.m,N=p.m,b;y=ki(y),f=ji(f),y&&f;)p=ji(p),h=ki(h),h.a=l,b=y.z+M-f.z-m+e(y._,f._),b>0&&(Fd(Yd(y,l,d),l,b),m+=b,x+=b),M+=y.m,m+=f.m,N+=p.m,x+=h.m;y&&!ki(h)&&(h.t=y,h.m+=M-x),f&&!ji(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 xr(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 bs=(1+Math.sqrt(5))/2;function xs(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,y,p=t.value,m,x,M,N,b,v,O;c<f;){h=i-n,y=o-r;do m=s[d++].value;while(!m&&d<f);for(x=M=m,v=Math.max(y/h,h/y)/(p*e),O=m*m*v,b=Math.max(M/O,O/x);d<f;++d){if(m+=l=s[d].value,l<x&&(x=l),l>M&&(M=l),O=m*m*v,N=Math.max(M/O,O/x),N>b){m-=l;break}b=N}a.push(u={value:m,dice:h<y,children:s.slice(c,d)}),u.dice?jn(u,n,r,i,p?r+=y*m/p:o):xr(u,n,r,p?n+=h*m/p:i,o),p-=m,c=d}return a}const Ms=function e(t){function n(r,i,o,a,s){xs(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(bs);function Bd(){var e=Ms,t=!1,n=1,r=1,i=[0],o=qt,a=qt,s=qt,u=qt,l=qt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(vs),f}function d(f){var h=i[f.depth],y=f.x0+h,p=f.y0+h,m=f.x1-h,x=f.y1-h;m<y&&(y=m=(y+m)/2),x<p&&(p=x=(p+x)/2),f.x0=y,f.y0=p,f.x1=m,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,y+=l(f)-h,p+=a(f)-h,m-=s(f)-h,x-=u(f)-h,m<y&&(y=m=(y+m)/2),x<p&&(p=x=(p+x)/2),e(f,y,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=_r(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:nn(+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:nn(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:nn(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:nn(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:nn(+f),c):l},c}function Qd(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,y,p,m,x){if(d>=f-1){var M=o[d];M.x0=y,M.y0=p,M.x1=m,M.y1=x;return}for(var N=l[d],b=h/2+N,v=d+1,O=f-1;v<O;){var A=v+O>>>1;l[A]<b?v=A+1:O=A}b-l[v-1]<l[v]-b&&d+1<v&&--v;var E=l[v]-N,C=h-E;if(m-y>x-p){var T=(y*C+m*E)/h;c(d,v,E,y,p,T,x),c(v,f,C,T,p,m,x)}else{var I=(p*C+x*E)/h;c(d,v,E,y,p,m,I),c(v,f,C,y,I,m,x)}}}function Wd(e,t,n,r,i){(e.depth&1?xr:jn)(e,t,n,r,i)}const Gd=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,y=u.length,p=r.value;++f<y;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?jn(l,i,o,a,o+=(s-o)*l.value/p):xr(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=xs(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(bs),Kd=St(Object.freeze(Object.defineProperty({__proto__:null,cluster:ud,hierarchy:Ai,pack:zd,packSiblings:Sd,packEnclose:us,partition:jd,stratify:Ld,tree:Vd,treemap:Bd,treemapBinary:Qd,treemapDice:jn,treemapSlice:xr,treemapSliceDice:Wd,treemapSquarify:Ms,treemapResquarify:Gd},Symbol.toStringTag,{value:"Module"})));var $i="http://www.w3.org/1999/xhtml";const Ri={svg:"http://www.w3.org/2000/svg",xhtml:$i,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Ri.hasOwnProperty(t)?{space:Ri[t],local:e}:e}function Xd(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===$i&&t.documentElement.namespaceURI===$i?t.createElement(e):t.createElementNS(n,e)}}function Jd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Mr(e){var t=kn(e);return(t.local?Jd:Xd)(t)}function Hd(){}function wr(e){return e==null?Hd:function(){return this.querySelector(e)}}function Zd(e){typeof e!="function"&&(e=wr(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 qe(r,this._parents)}function eh(){return[]}function Li(e){return e==null?eh:function(){return this.querySelectorAll(e)}}function th(e){typeof e!="function"&&(e=Li(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 qe(r,i)}function Pi(e){return function(){return this.matches(e)}}function nh(e){typeof e!="function"&&(e=Pi(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 qe(r,this._parents)}function ws(e){return new Array(e.length)}function rh(){return new qe(this._enter||this._groups.map(ws),this._parents)}function Nr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nr.prototype={constructor:Nr,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 ih(e){return function(){return e}}var Ns="$";function oh(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 Nr(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function ah(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=Ns+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=Ns+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Nr(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function sh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(O){h[++l]=O}),h;var n=t?ah:oh,r=this._parents,i=this._groups;typeof e!="function"&&(e=ih(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),y=h.length,p=s[l]=new Array(y),m=a[l]=new Array(y),x=u[l]=new Array(f);n(c,d,p,m,x,h,t);for(var M=0,N=0,b,v;M<y;++M)if(b=p[M]){for(M>=N&&(N=M+1);!(v=m[N])&&++N<y;);b._next=v||null}}return a=new qe(a,r),a._enter=s,a._exit=u,a}function uh(){return new qe(this._exit||this._groups.map(ws),this._parents)}function lh(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 qe(a,this._parents)}function fh(){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 dh(e){e||(e=hh);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 qe(i,this._parents).order()}function hh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ph(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function gh(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function mh(){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 vh(){var e=0;return this.each(function(){++e}),e}function yh(){return!this.node()}function _h(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 bh(e){return function(){this.removeAttribute(e)}}function xh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mh(e,t){return function(){this.setAttribute(e,t)}}function wh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Nh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Th(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 Eh(e,t){var n=kn(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?xh:bh:typeof t=="function"?n.local?Th:Nh:n.local?wh:Mh)(n,t))}function Fi(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dh(e){return function(){this.style.removeProperty(e)}}function Oh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ch(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Sh(e,t,n){return arguments.length>1?this.each((t==null?Dh:typeof t=="function"?Ch:Oh)(e,t,n==null?"":n)):Vt(this.node(),e)}function Vt(e,t){return e.style.getPropertyValue(t)||Fi(e).getComputedStyle(e,null).getPropertyValue(t)}function Ah(e){return function(){delete this[e]}}function Ih(e,t){return function(){this[e]=t}}function zh(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function jh(e,t){return arguments.length>1?this.each((t==null?Ah:typeof t=="function"?zh:Ih)(e,t)):this.node()[e]}function Ts(e){return e.trim().split(/^|\s+/)}function Ui(e){return e.classList||new Es(e)}function Es(e){this._node=e,this._names=Ts(e.getAttribute("class")||"")}Es.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 Ds(e,t){for(var n=Ui(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Os(e,t){for(var n=Ui(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kh(e){return function(){Ds(this,e)}}function $h(e){return function(){Os(this,e)}}function Rh(e,t){return function(){(t.apply(this,arguments)?Ds:Os)(this,e)}}function Lh(e,t){var n=Ts(e+"");if(arguments.length<2){for(var r=Ui(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Rh:t?kh:$h)(n,t))}function Ph(){this.textContent=""}function Fh(e){return function(){this.textContent=e}}function Uh(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function Yh(e){return arguments.length?this.each(e==null?Ph:(typeof e=="function"?Uh:Fh)(e)):this.node().textContent}function qh(){this.innerHTML=""}function Vh(e){return function(){this.innerHTML=e}}function Bh(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function Qh(e){return arguments.length?this.each(e==null?qh:(typeof e=="function"?Bh:Vh)(e)):this.node().innerHTML}function Wh(){this.nextSibling&&this.parentNode.appendChild(this)}function Gh(){return this.each(Wh)}function Kh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xh(){return this.each(Kh)}function Jh(e){var t=typeof e=="function"?e:Mr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Hh(){return null}function Zh(e,t){var n=typeof e=="function"?e:Mr(e),r=t==null?Hh:typeof t=="function"?t:wr(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ep(){var e=this.parentNode;e&&e.removeChild(this)}function tp(){return this.each(ep)}function np(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ip(e){return this.select(e?rp:np)}function op(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Cs={},ce=null;if(typeof document<"u"){var ap=document.documentElement;"onmouseenter"in ap||(Cs={mouseenter:"mouseover",mouseleave:"mouseout"})}function sp(e,t,n){return e=Ss(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function Ss(e,t,n){return function(r){var i=ce;ce=r;try{e.call(this,this.__data__,t,n)}finally{ce=i}}}function up(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 lp(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=Cs.hasOwnProperty(e.type)?sp:Ss;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 fp(e,t,n){var r=up(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:lp,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function As(e,t,n,r){var i=ce;e.sourceEvent=ce,ce=e;try{return t.apply(n,r)}finally{ce=i}}function Is(e,t,n){var r=Fi(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 dp(e,t){return function(){return Is(this,e,t)}}function hp(e,t){return function(){return Is(this,e,t.apply(this,arguments))}}function pp(e,t){return this.each((typeof t=="function"?hp:dp)(e,t))}var Yi=[null];function qe(e,t){this._groups=e,this._parents=t}function rn(){return new qe([[document.documentElement]],Yi)}qe.prototype=rn.prototype={constructor:qe,select:Zd,selectAll:th,filter:nh,data:sh,enter:rh,exit:uh,join:lh,merge:ch,order:fh,sort:dh,call:ph,nodes:gh,node:mh,size:vh,empty:yh,each:_h,attr:Eh,style:Sh,property:jh,classed:Lh,text:Yh,html:Qh,raise:Gh,lower:Xh,append:Jh,insert:Zh,remove:tp,clone:ip,datum:op,on:fp,dispatch:pp};function At(e){return typeof e=="string"?new qe([[document.querySelector(e)]],[document.documentElement]):new qe([[e]],Yi)}function gp(e){return At(Mr(e).call(document.documentElement))}var mp=0;function zs(){return new qi}function qi(){this._="@"+(++mp).toString(36)}qi.prototype=zs.prototype={constructor:qi,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 Vi(){for(var e=ce,t;t=e.sourceEvent;)e=t;return e}function Tr(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 $n(e){var t=Vi();return t.changedTouches&&(t=t.changedTouches[0]),Tr(e,t)}function vp(e){return typeof e=="string"?new qe([document.querySelectorAll(e)],[document.documentElement]):new qe([e==null?[]:e],Yi)}function Bi(e,t,n){arguments.length<3&&(n=t,t=Vi().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return Tr(e,o);return null}function yp(e,t){t==null&&(t=Vi().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Tr(e,t[n]);return i}const Qi=St(Object.freeze(Object.defineProperty({__proto__:null,create:gp,creator:Mr,local:zs,matcher:Pi,mouse:$n,namespace:kn,namespaces:Ri,clientPoint:Tr,select:At,selectAll:vp,selection:rn,selector:wr,selectorAll:Li,style:Vt,touch:Bi,touches:yp,window:Fi,get event(){return ce},customEvent:As},Symbol.toStringTag,{value:"Module"})));var _p={value:function(){}};function Wi(){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 Er(n)}function Er(e){this._=e}function bp(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}})}Er.prototype=Wi.prototype={constructor:Er,on:function(e,t){var n=this._,r=bp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=xp(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]=js(n[i],e.name,t);else if(t==null)for(i in n)n[i]=js(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 Er(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 xp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function js(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=_p,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function Gi(){ce.preventDefault(),ce.stopImmediatePropagation()}function Mp(e){var t=e.document.documentElement,n=At(e).on("dragstart.drag",Gi,!0);"onselectstart"in t?n.on("selectstart.drag",Gi,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function wp(e,t){var n=e.document.documentElement,r=At(e).on("dragstart.drag",null);t&&(r.on("click.drag",Gi,!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 Ki(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ks(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Rn(){}var Ln=.7,Dr=1/Ln,on="\\s*([+-]?\\d+)\\s*",Pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Np=/^#([0-9a-f]{3,8})$/,Tp=new RegExp("^rgb\\("+[on,on,on]+"\\)$"),Ep=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),Dp=new RegExp("^rgba\\("+[on,on,on,Pn]+"\\)$"),Op=new RegExp("^rgba\\("+[gt,gt,gt,Pn]+"\\)$"),Cp=new RegExp("^hsl\\("+[Pn,gt,gt]+"\\)$"),Sp=new RegExp("^hsla\\("+[Pn,gt,gt,Pn]+"\\)$"),$s={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};Ki(Rn,Fn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Rs,formatHex:Rs,formatHsl:Ap,formatRgb:Ls,toString:Ls});function Rs(){return this.rgb().formatHex()}function Ap(){return qs(this).formatHsl()}function Ls(){return this.rgb().formatRgb()}function Fn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Np.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ps(t):n===3?new Je(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Or(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Or(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=Tp.exec(e))?new Je(t[1],t[2],t[3],1):(t=Ep.exec(e))?new Je(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dp.exec(e))?Or(t[1],t[2],t[3],t[4]):(t=Op.exec(e))?Or(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cp.exec(e))?Ys(t[1],t[2]/100,t[3]/100,1):(t=Sp.exec(e))?Ys(t[1],t[2]/100,t[3]/100,t[4]):$s.hasOwnProperty(e)?Ps($s[e]):e==="transparent"?new Je(NaN,NaN,NaN,0):null}function Ps(e){return new Je(e>>16&255,e>>8&255,e&255,1)}function Or(e,t,n,r){return r<=0&&(e=t=n=NaN),new Je(e,t,n,r)}function Ip(e){return e instanceof Rn||(e=Fn(e)),e?(e=e.rgb(),new Je(e.r,e.g,e.b,e.opacity)):new Je}function Xi(e,t,n,r){return arguments.length===1?Ip(e):new Je(e,t,n,r==null?1:r)}function Je(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Ki(Je,Xi,ks(Rn,{brighter:function(e){return e=e==null?Dr:Math.pow(Dr,e),new Je(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ln:Math.pow(Ln,e),new Je(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:Fs,formatHex:Fs,formatRgb:Us,toString:Us}));function Fs(){return"#"+Ji(this.r)+Ji(this.g)+Ji(this.b)}function Us(){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 Ji(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function Ys(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 qs(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);if(e instanceof Rn||(e=Fn(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 zp(e,t,n,r){return arguments.length===1?qs(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}Ki(mt,zp,ks(Rn,{brighter:function(e){return e=e==null?Dr:Math.pow(Dr,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ln:Math.pow(Ln,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 Je(Hi(e>=240?e-240:e+120,i,r),Hi(e,i,r),Hi(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 Hi(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 Vs(e){return function(){return e}}function jp(e,t){return function(n){return e+n*t}}function kp(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 $p(e){return(e=+e)==1?Bs:function(t,n){return n-t?kp(t,n,e):Vs(isNaN(t)?n:t)}}function Bs(e,t){var n=t-e;return n?jp(e,n):Vs(isNaN(e)?t:e)}const Qs=function e(t){var n=$p(t);function r(i,o){var a=n((i=Xi(i)).r,(o=Xi(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=Bs(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 Zi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eo=new RegExp(Zi.source,"g");function Rp(e){return function(){return e}}function Lp(e){return function(t){return e(t)+""}}function Pp(e,t){var n=Zi.lastIndex=eo.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=Zi.exec(e))&&(i=eo.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=eo.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?Lp(u[0].x):Rp(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 Ws=180/Math.PI,to={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Gs(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)*Ws,skewX:Math.atan(u)*Ws,scaleX:a,scaleY:s}}var Un,no,Ks,Cr;function Fp(e){return e==="none"?to:(Un||(Un=document.createElement("DIV"),no=document.documentElement,Ks=document.defaultView),Un.style.transform=e,e=Ks.getComputedStyle(no.appendChild(Un),null).getPropertyValue("transform"),no.removeChild(Un),e=e.slice(7,-1).split(","),Gs(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function Up(e){return e==null||(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",e),!(e=Cr.transform.baseVal.consolidate()))?to:(e=e.matrix,Gs(e.a,e.b,e.c,e.d,e.e,e.f))}function Xs(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,y){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);y.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,y){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");y.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 y=-1,p=f.length,m;++y<p;)d[(m=f[y]).i]=m.x(h);return d.join("")}}}var Yp=Xs(Fp,"px, ","px)","deg)"),qp=Xs(Up,", ",")",")"),Yn=Math.SQRT2,ro=2,Js=4,Vp=1e-12;function Hs(e){return((e=Math.exp(e))+1/e)/2}function Bp(e){return((e=Math.exp(e))-1/e)/2}function Qp(e){return((e=Math.exp(2*e))-1)/(e+1)}function Wp(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<Vp)f=Math.log(s/i)/Yn,d=function(M){return[n+M*u,r+M*l,i*Math.exp(Yn*M*f)]};else{var h=Math.sqrt(c),y=(s*s-i*i+Js*c)/(2*i*ro*h),p=(s*s-i*i-Js*c)/(2*s*ro*h),m=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-m)/Yn,d=function(M){var N=M*f,b=Hs(m),v=i/(ro*h)*(b*Qp(Yn*N+m)-Bp(m));return[n+v*u,r+v*l,i*b/Hs(Yn*N+m)]}}return d.duration=f*1e3,d}var an=0,qn=0,Vn=0,Zs=1e3,Sr,Bn,Ar=0,Bt=0,Ir=0,Qn=typeof performance=="object"&&performance.now?performance:Date,eu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zr(){return Bt||(eu(Gp),Bt=Qn.now()+Ir)}function Gp(){Bt=0}function jr(){this._call=this._time=this._next=null}jr.prototype=tu.prototype={constructor:jr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zr():+n)+(t==null?0:+t),!this._next&&Bn!==this&&(Bn?Bn._next=this:Sr=this,Bn=this),this._call=e,this._time=n,io()},stop:function(){this._call&&(this._call=null,this._time=1/0,io())}};function tu(e,t,n){var r=new jr;return r.restart(e,t,n),r}function Kp(){zr(),++an;for(var e=Sr,t;e;)(t=Bt-e._time)>=0&&e._call.call(null,t),e=e._next;--an}function nu(){Bt=(Ar=Qn.now())+Ir,an=qn=0;try{Kp()}finally{an=0,Jp(),Bt=0}}function Xp(){var e=Qn.now(),t=e-Ar;t>Zs&&(Ir-=t,Ar=e)}function Jp(){for(var e,t=Sr,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:Sr=n);Bn=e,io(r)}function io(e){if(!an){qn&&(qn=clearTimeout(qn));var t=e-Bt;t>24?(e<1/0&&(qn=setTimeout(nu,e-Qn.now()-Ir)),Vn&&(Vn=clearInterval(Vn))):(Vn||(Ar=Qn.now(),Vn=setInterval(Xp,Zs)),an=1,eu(nu))}}function ru(e,t,n){var r=new jr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var Hp=Wi("start","end","cancel","interrupt"),Zp=[],iu=0,ou=1,oo=2,kr=3,au=4,ao=5,$r=6;function Rr(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;e0(e,n,{name:t,index:r,group:i,on:Hp,tween:Zp,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:iu})}function so(e,t){var n=ft(e,t);if(n.state>iu)throw new Error("too late; already scheduled");return n}function xt(e,t){var n=ft(e,t);if(n.state>kr)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 e0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=tu(o,0,n.time);function o(l){n.state=ou,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!==ou)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===kr)return ru(a);h.state===au?(h.state=$r,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=$r,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(ru(function(){n.state===kr&&(n.state=au,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=oo,n.on.call("start",e,e.__data__,n.index,n.group),n.state===oo){for(n.state=kr,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=ao,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===ao&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=$r,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function Lr(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>oo&&r.state<ao,r.state=$r,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function t0(e){return this.each(function(){Lr(this,e)})}function n0(e,t){var n,r;return function(){var i=xt(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 r0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=xt(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 i0(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?n0:r0)(n,e,t))}function uo(e,t,n){var r=e._id;return e.each(function(){var i=xt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ft(i,r).value[t]}}function su(e,t){var n;return(typeof t=="number"?It:t instanceof Fn?Qs:(n=Fn(t))?(t=n,Qs):Pp)(e,t)}function o0(e){return function(){this.removeAttribute(e)}}function a0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function s0(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 u0(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 l0(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 f0(e,t){var n=kn(e),r=n==="transform"?qp:su;return this.attrTween(e,typeof t=="function"?(n.local?c0:l0)(n,r,uo(this,"attr."+e,t)):t==null?(n.local?a0:o0)(n):(n.local?u0:s0)(n,r,t))}function d0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function h0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function p0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&h0(e,o)),n}return i._value=t,i}function g0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&d0(e,o)),n}return i._value=t,i}function m0(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=kn(e);return this.tween(n,(r.local?p0:g0)(r,t))}function v0(e,t){return function(){so(this,e).delay=+t.apply(this,arguments)}}function y0(e,t){return t=+t,function(){so(this,e).delay=t}}function _0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?v0:y0)(t,e)):ft(this.node(),t).delay}function b0(e,t){return function(){xt(this,e).duration=+t.apply(this,arguments)}}function x0(e,t){return t=+t,function(){xt(this,e).duration=t}}function M0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?b0:x0)(t,e)):ft(this.node(),t).duration}function w0(e,t){if(typeof t!="function")throw new Error;return function(){xt(this,e).ease=t}}function N0(e){var t=this._id;return arguments.length?this.each(w0(t,e)):ft(this.node(),t).ease}function T0(e){typeof e!="function"&&(e=Pi(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 Mt(r,this._parents,this._name,this._id)}function E0(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 Mt(a,this._parents,this._name,this._id)}function D0(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 O0(e,t,n){var r,i,o=D0(t)?so:xt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function C0(e,t){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(e):this.each(O0(n,e,t))}function S0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function A0(){return this.on("end.remove",S0(this._id))}function I0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=wr(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,Rr(l[f],t,n,f,l,ft(c,n)));return new Mt(o,this._parents,t,n)}function z0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Li(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,y=ft(c,n),p=0,m=f.length;p<m;++p)(h=f[p])&&Rr(h,t,n,p,f,y);o.push(f),a.push(c)}return new Mt(o,a,t,n)}var j0=rn.prototype.constructor;function k0(){return new j0(this._groups,this._parents)}function $0(e,t){var n,r,i;return function(){var o=Vt(this,e),a=(this.style.removeProperty(e),Vt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function uu(e){return function(){this.style.removeProperty(e)}}function R0(e,t,n){var r,i=n+"",o;return function(){var a=Vt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function L0(e,t,n){var r,i,o;return function(){var a=Vt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Vt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function P0(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=xt(this,e),l=u.on,c=u.value[o]==null?s||(s=uu(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function F0(e,t,n){var r=(e+="")=="transform"?Yp:su;return t==null?this.styleTween(e,$0(e,r)).on("end.style."+e,uu(e)):typeof t=="function"?this.styleTween(e,L0(e,r,uo(this,"style."+e,t))).each(P0(this._id,e)):this.styleTween(e,R0(e,r,t),n).on("end.style."+e,null)}function U0(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Y0(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&U0(e,a,n)),r}return o._value=t,o}function q0(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,Y0(e,t,n==null?"":n))}function V0(e){return function(){this.textContent=e}}function B0(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function Q0(e){return this.tween("text",typeof e=="function"?B0(uo(this,"text",e)):V0(e==null?"":e+""))}function W0(e){return function(t){this.textContent=e.call(this,t)}}function G0(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&W0(i)),t}return r._value=e,r}function K0(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,G0(e))}function X0(){for(var e=this._name,t=this._id,n=lu(),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);Rr(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Mt(r,this._parents,e,n)}function J0(){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=xt(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 H0=0;function Mt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function lu(){return++H0}var sn=rn.prototype;Mt.prototype={constructor:Mt,select:I0,selectAll:z0,filter:T0,merge:E0,selection:k0,transition:X0,call:sn.call,nodes:sn.nodes,node:sn.node,size:sn.size,empty:sn.empty,each:sn.each,on:C0,attr:f0,attrTween:m0,style:F0,styleTween:q0,text:Q0,textTween:K0,remove:A0,tween:i0,delay:_0,duration:M0,ease:N0,end:J0};function Z0(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var lo={time:null,delay:0,duration:250,ease:Z0};function eg(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return lo.time=zr(),lo;return n}function tg(e){var t,n;e instanceof Mt?(t=e._id,e=e._name):(t=lu(),(n=lo).time=zr(),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])&&Rr(u,e,t,l,a,n||eg(u,t));return new Mt(r,this._parents,e,t)}rn.prototype.interrupt=t0,rn.prototype.transition=tg;function Pr(e){return function(){return e}}function ng(e,t,n){this.target=e,this.type=t,this.transform=n}function wt(e,t,n){this.k=e,this.x=t,this.y=n}wt.prototype={constructor:wt,scale:function(e){return e===1?this:new wt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new wt(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 Fr=new wt(1,0,0);cu.prototype=wt.prototype;function cu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Fr;return e.__zoom}function co(){ce.stopImmediatePropagation()}function Wn(){ce.preventDefault(),ce.stopImmediatePropagation()}function rg(){return!ce.ctrlKey&&!ce.button}function ig(){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 fu(){return this.__zoom||Fr}function og(){return-ce.deltaY*(ce.deltaMode===1?.05:ce.deltaMode?1:.002)}function ag(){return navigator.maxTouchPoints||"ontouchstart"in this}function sg(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 ug(){var e=rg,t=ig,n=sg,r=og,i=ag,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Wp,l=Wi("start","zoom","end"),c,d,f=500,h=150,y=0;function p(g){g.property("__zoom",fu).on("wheel.zoom",O).on("mousedown.zoom",A).on("dblclick.zoom",E).filter(i).on("touchstart.zoom",C).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(g,w,z){var $=g.selection?g.selection():g;$.property("__zoom",fu),g!==$?N(g,w,z):$.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},p.scaleBy=function(g,w,z){p.scaleTo(g,function(){var $=this.__zoom.k,L=typeof w=="function"?w.apply(this,arguments):w;return $*L},z)},p.scaleTo=function(g,w,z){p.transform(g,function(){var $=t.apply(this,arguments),L=this.__zoom,U=z==null?M($):typeof z=="function"?z.apply(this,arguments):z,B=L.invert(U),ne=typeof w=="function"?w.apply(this,arguments):w;return n(x(m(L,ne),U,B),$,a)},z)},p.translateBy=function(g,w,z){p.transform(g,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),a)})},p.translateTo=function(g,w,z,$){p.transform(g,function(){var L=t.apply(this,arguments),U=this.__zoom,B=$==null?M(L):typeof $=="function"?$.apply(this,arguments):$;return n(Fr.translate(B[0],B[1]).scale(U.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof z=="function"?-z.apply(this,arguments):-z),L,a)},$)};function m(g,w){return w=Math.max(o[0],Math.min(o[1],w)),w===g.k?g:new wt(w,g.x,g.y)}function x(g,w,z){var $=w[0]-z[0]*g.k,L=w[1]-z[1]*g.k;return $===g.x&&L===g.y?g:new wt(g.k,$,L)}function M(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function N(g,w,z){g.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var $=this,L=arguments,U=b($,L),B=t.apply($,L),ne=z==null?M(B):typeof z=="function"?z.apply($,L):z,S=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),R=$.__zoom,W=typeof w=="function"?w.apply($,L):w,G=u(R.invert(ne).concat(S/R.k),W.invert(ne).concat(S/W.k));return function(q){if(q===1)q=W;else{var H=G(q),K=S/H[2];q=new wt(K,ne[0]-H[0]*K,ne[1]-H[1]*K)}U.zoom(null,q)}})}function b(g,w,z){return!z&&g.__zooming||new v(g,w)}function v(g,w){this.that=g,this.args=w,this.active=0,this.extent=t.apply(g,w),this.taps=0}v.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){As(new ng(p,g,this.that.__zoom),l.apply,l,[g,this.that,this.args])}};function O(){if(!e.apply(this,arguments))return;var g=b(this,arguments),w=this.__zoom,z=Math.max(o[0],Math.min(o[1],w.k*Math.pow(2,r.apply(this,arguments)))),$=$n(this);if(g.wheel)(g.mouse[0][0]!==$[0]||g.mouse[0][1]!==$[1])&&(g.mouse[1]=w.invert(g.mouse[0]=$)),clearTimeout(g.wheel);else{if(w.k===z)return;g.mouse=[$,w.invert($)],Lr(this),g.start()}Wn(),g.wheel=setTimeout(L,h),g.zoom("mouse",n(x(m(w,z),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(ce.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",B,!0),z=$n(this),$=ce.clientX,L=ce.clientY;Mp(ce.view),co(),g.mouse=[z,this.__zoom.invert(z)],Lr(this),g.start();function U(){if(Wn(),!g.moved){var ne=ce.clientX-$,S=ce.clientY-L;g.moved=ne*ne+S*S>y}g.zoom("mouse",n(x(g.that.__zoom,g.mouse[0]=$n(g.that),g.mouse[1]),g.extent,a))}function B(){w.on("mousemove.zoom mouseup.zoom",null),wp(ce.view,g.moved),Wn(),g.end()}}function E(){if(!!e.apply(this,arguments)){var g=this.__zoom,w=$n(this),z=g.invert(w),$=g.k*(ce.shiftKey?.5:2),L=n(x(m(g,$),w,z),t.apply(this,arguments),a);Wn(),s>0?At(this).transition().duration(s).call(N,L,w):At(this).call(p.transform,L)}}function C(){if(!!e.apply(this,arguments)){var g=ce.touches,w=g.length,z=b(this,arguments,ce.changedTouches.length===w),$,L,U,B;for(co(),L=0;L<w;++L)U=g[L],B=Bi(this,g,U.identifier),B=[B,this.__zoom.invert(B),U.identifier],z.touch0?!z.touch1&&z.touch0[2]!==B[2]&&(z.touch1=B,z.taps=0):(z.touch0=B,$=!0,z.taps=1+!!c);c&&(c=clearTimeout(c)),$&&(z.taps<2&&(c=setTimeout(function(){c=null},f)),Lr(this),z.start())}}function T(){if(!!this.__zooming){var g=b(this,arguments),w=ce.changedTouches,z=w.length,$,L,U,B;for(Wn(),c&&(c=clearTimeout(c)),g.taps=0,$=0;$<z;++$)L=w[$],U=Bi(this,w,L.identifier),g.touch0&&g.touch0[2]===L.identifier?g.touch0[0]=U:g.touch1&&g.touch1[2]===L.identifier&&(g.touch1[0]=U);if(L=g.that.__zoom,g.touch1){var ne=g.touch0[0],S=g.touch0[1],R=g.touch1[0],W=g.touch1[1],G=(G=R[0]-ne[0])*G+(G=R[1]-ne[1])*G,q=(q=W[0]-S[0])*q+(q=W[1]-S[1])*q;L=m(L,Math.sqrt(G/q)),U=[(ne[0]+R[0])/2,(ne[1]+R[1])/2],B=[(S[0]+W[0])/2,(S[1]+W[1])/2]}else if(g.touch0)U=g.touch0[0],B=g.touch0[1];else return;g.zoom("touch",n(x(L,U,B),g.extent,a))}}function I(){if(!!this.__zooming){var g=b(this,arguments),w=ce.changedTouches,z=w.length,$,L;for(co(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),$=0;$<z;++$)L=w[$],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 U=At(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return p.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:Pr(+g),p):r},p.filter=function(g){return arguments.length?(e=typeof g=="function"?g:Pr(!!g),p):e},p.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:Pr(!!g),p):i},p.extent=function(g){return arguments.length?(t=typeof g=="function"?g:Pr([[+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?(y=(g=+g)*g,p):Math.sqrt(y)},p}const lg=St(Object.freeze(Object.defineProperty({__proto__:null,zoom:ug,zoomTransform:cu,zoomIdentity:Fr},Symbol.toStringTag,{value:"Module"})));var du={},hu=Object.prototype.hasOwnProperty;function fo(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--&&fo(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(hu.call(e,n)&&++r&&!hu.call(t,n)||!(n in t)||!fo(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}du.dequal=fo;var pu={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,y,p,m){typeof h=="object"&&(y=h.depth,p=h.prototype,m=h.includeNonEnumerable,h=h.circular);var x=[],M=[],N=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof y>"u"&&(y=1/0);function b(v,O){if(v===null)return null;if(O===0)return v;var A,E;if(typeof v!="object")return v;if(n(v,r))A=new r;else if(n(v,i))A=new i;else if(n(v,o))A=new o(function(U,B){v.then(function(ne){U(b(ne,O-1))},function(ne){B(b(ne,O-1))})});else if(a.__isArray(v))A=[];else if(a.__isRegExp(v))A=new RegExp(v.source,d(v)),v.lastIndex&&(A.lastIndex=v.lastIndex);else if(a.__isDate(v))A=new Date(v.getTime());else{if(N&&Buffer.isBuffer(v))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(v.length):A=new Buffer(v.length),v.copy(A),A;n(v,Error)?A=Object.create(v):typeof p>"u"?(E=Object.getPrototypeOf(v),A=Object.create(E)):(A=Object.create(p),E=p)}if(h){var C=x.indexOf(v);if(C!=-1)return M[C];x.push(v),M.push(A)}n(v,r)&&v.forEach(function(U,B){var ne=b(B,O-1),S=b(U,O-1);A.set(ne,S)}),n(v,i)&&v.forEach(function(U){var B=b(U,O-1);A.add(B)});for(var T in v){var I;E&&(I=Object.getOwnPropertyDescriptor(E,T)),!(I&&I.set==null)&&(A[T]=b(v[T],O-1))}if(Object.getOwnPropertySymbols)for(var g=Object.getOwnPropertySymbols(v),T=0;T<g.length;T++){var w=g[T],z=Object.getOwnPropertyDescriptor(v,w);z&&!z.enumerable&&!m||(A[w]=b(v[w],O-1),z.enumerable||Object.defineProperty(A,w,{enumerable:!1}))}if(m)for(var $=Object.getOwnPropertyNames(v),T=0;T<$.length;T++){var L=$[T],z=Object.getOwnPropertyDescriptor(v,L);z&&z.enumerable||(A[L]=b(v[L],O-1),Object.defineProperty(A,L,{enumerable:!1}))}return A}return b(f,y)}a.clonePrototype=function(h){if(h===null)return null;var y=function(){};return y.prototype=h,new y};function s(f){return Object.prototype.toString.call(f)}a.__objToStr=s;function 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)})(pu);var Ur,cg=new Uint8Array(16);function gu(){if(!Ur&&(Ur=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ur))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ur(cg)}const fg=/^(?:[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 Yr(e){return typeof e=="string"&&fg.test(e)}for(var Ae=[],ho=0;ho<256;++ho)Ae.push((ho+256).toString(16).substr(1));function qr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]).toLowerCase();if(!Yr(n))throw TypeError("Stringified UUID is invalid");return n}var mu,po,go=0,mo=0;function dg(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||mu,a=e.clockseq!==void 0?e.clockseq:po;if(o==null||a==null){var s=e.random||(e.rng||gu)();o==null&&(o=mu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=po=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:mo+1,c=u-go+(l-mo)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>go)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");go=u,mo=l,po=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||qr(i)}function vu(e){if(!Yr(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 hg(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var pg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function yu(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=hg(i)),typeof o=="string"&&(o=vu(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 qr(u)}try{r.name=e}catch{}return r.DNS=pg,r.URL=gg,r}function mg(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 vg(yg(_g(e),e.length*8))}function vg(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 _u(e){return(e+64>>>9<<4)+14+1}function yg(e,t){e[t>>5]|=128<<t%32,e[_u(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=ze(n,r,i,o,e[a],7,-680876936),o=ze(o,n,r,i,e[a+1],12,-389564586),i=ze(i,o,n,r,e[a+2],17,606105819),r=ze(r,i,o,n,e[a+3],22,-1044525330),n=ze(n,r,i,o,e[a+4],7,-176418897),o=ze(o,n,r,i,e[a+5],12,1200080426),i=ze(i,o,n,r,e[a+6],17,-1473231341),r=ze(r,i,o,n,e[a+7],22,-45705983),n=ze(n,r,i,o,e[a+8],7,1770035416),o=ze(o,n,r,i,e[a+9],12,-1958414417),i=ze(i,o,n,r,e[a+10],17,-42063),r=ze(r,i,o,n,e[a+11],22,-1990404162),n=ze(n,r,i,o,e[a+12],7,1804603682),o=ze(o,n,r,i,e[a+13],12,-40341101),i=ze(i,o,n,r,e[a+14],17,-1502002290),r=ze(r,i,o,n,e[a+15],22,1236535329),n=je(n,r,i,o,e[a+1],5,-165796510),o=je(o,n,r,i,e[a+6],9,-1069501632),i=je(i,o,n,r,e[a+11],14,643717713),r=je(r,i,o,n,e[a],20,-373897302),n=je(n,r,i,o,e[a+5],5,-701558691),o=je(o,n,r,i,e[a+10],9,38016083),i=je(i,o,n,r,e[a+15],14,-660478335),r=je(r,i,o,n,e[a+4],20,-405537848),n=je(n,r,i,o,e[a+9],5,568446438),o=je(o,n,r,i,e[a+14],9,-1019803690),i=je(i,o,n,r,e[a+3],14,-187363961),r=je(r,i,o,n,e[a+8],20,1163531501),n=je(n,r,i,o,e[a+13],5,-1444681467),o=je(o,n,r,i,e[a+2],9,-51403784),i=je(i,o,n,r,e[a+7],14,1735328473),r=je(r,i,o,n,e[a+12],20,-1926607734),n=ke(n,r,i,o,e[a+5],4,-378558),o=ke(o,n,r,i,e[a+8],11,-2022574463),i=ke(i,o,n,r,e[a+11],16,1839030562),r=ke(r,i,o,n,e[a+14],23,-35309556),n=ke(n,r,i,o,e[a+1],4,-1530992060),o=ke(o,n,r,i,e[a+4],11,1272893353),i=ke(i,o,n,r,e[a+7],16,-155497632),r=ke(r,i,o,n,e[a+10],23,-1094730640),n=ke(n,r,i,o,e[a+13],4,681279174),o=ke(o,n,r,i,e[a],11,-358537222),i=ke(i,o,n,r,e[a+3],16,-722521979),r=ke(r,i,o,n,e[a+6],23,76029189),n=ke(n,r,i,o,e[a+9],4,-640364487),o=ke(o,n,r,i,e[a+12],11,-421815835),i=ke(i,o,n,r,e[a+15],16,530742520),r=ke(r,i,o,n,e[a+2],23,-995338651),n=$e(n,r,i,o,e[a],6,-198630844),o=$e(o,n,r,i,e[a+7],10,1126891415),i=$e(i,o,n,r,e[a+14],15,-1416354905),r=$e(r,i,o,n,e[a+5],21,-57434055),n=$e(n,r,i,o,e[a+12],6,1700485571),o=$e(o,n,r,i,e[a+3],10,-1894986606),i=$e(i,o,n,r,e[a+10],15,-1051523),r=$e(r,i,o,n,e[a+1],21,-2054922799),n=$e(n,r,i,o,e[a+8],6,1873313359),o=$e(o,n,r,i,e[a+15],10,-30611744),i=$e(i,o,n,r,e[a+6],15,-1560198380),r=$e(r,i,o,n,e[a+13],21,1309151649),n=$e(n,r,i,o,e[a+4],6,-145523070),o=$e(o,n,r,i,e[a+11],10,-1120210379),i=$e(i,o,n,r,e[a+2],15,718787259),r=$e(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 _g(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(_u(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 bg(e,t){return e<<t|e>>>32-t}function Vr(e,t,n,r,i,o){return zt(bg(zt(zt(t,e),zt(r,o)),i),n)}function ze(e,t,n,r,i,o,a){return Vr(t&n|~t&r,e,t,i,o,a)}function je(e,t,n,r,i,o,a){return Vr(t&r|n&~r,e,t,i,o,a)}function ke(e,t,n,r,i,o,a){return Vr(t^n^r,e,t,i,o,a)}function $e(e,t,n,r,i,o,a){return Vr(n^(t|~r),e,t,i,o,a)}var xg=yu("v3",48,mg);const Mg=xg;function wg(e,t,n){e=e||{};var r=e.random||(e.rng||gu)();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 qr(r)}function Ng(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 vo(e,t){return e<<t|e>>>32-t}function Tg(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 y=16;y<80;++y)f[y]=vo(f[y-3]^f[y-8]^f[y-14]^f[y-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 v=Math.floor(b/20),O=vo(p,5)+Ng(v,m,x,M)+N+t[v]+f[b]>>>0;N=M,M=x,x=vo(m,30)>>>0,m=p,p=O}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 Eg=yu("v5",80,Tg);const Dg=Eg,Og="00000000-0000-0000-0000-000000000000";function Cg(e){if(!Yr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Sg=St(Object.freeze(Object.defineProperty({__proto__:null,v1:dg,v3:Mg,v4:wg,v5:Dg,NIL:Og,version:Cg,validate:Yr,stringify:qr,parse:vu},Symbol.toStringTag,{value:"Module"})));var yo={},_o={exports:{}},se={exports:{}},bo={exports:{}},he={};/** @license React v16.13.1
|
|
27
|
+
Check the top-level render call using <`+F+">.")}return k}}function es(_,k){{if(!_._store||_._store.validated||_.key!=null)return;_._store.validated=!0;var F=Oi(k);if(pr[F])return;pr[F]=!0;var Z="";_&&_._owner&&_._owner!==ut.current&&(Z=" It was passed a child from "+w(_._owner.type)+"."),lt(_),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),lt(null)}}function Zt(_,k){{if(typeof _!="object")return;if(On(_))for(var F=0;F<_.length;F++){var Z=_[F];Dt(Z)&&es(Z,k)}else if(Dt(_))_._store&&(_._store.validated=!0);else if(_){var de=m(_);if(typeof de=="function"&&de!==_.entries)for(var xe=de.call(_),ue;!(ue=xe.next()).done;)Dt(ue.value)&&es(ue.value,k)}}}function en(_){{var k=_.type;if(k==null||typeof k=="string")return;var F;if(typeof k=="function")F=k.propTypes;else if(typeof k=="object"&&(k.$$typeof===u||k.$$typeof===d))F=k.propTypes;else return;if(F){var Z=w(k);Mi(F,_.props,"prop",Z,_)}else if(k.PropTypes!==void 0&&!Et){Et=!0;var de=w(k);M("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",de||"Unknown")}typeof k.getDefaultProps=="function"&&!k.getDefaultProps.isReactClassApproved&&M("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ts(_){{for(var k=Object.keys(_.props),F=0;F<k.length;F++){var Z=k[F];if(Z!=="children"&&Z!=="key"){lt(_),M("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Z),lt(null);break}}_.ref!==null&&(lt(_),M("Invalid attribute `ref` supplied to `React.Fragment`."),lt(null))}}function Ci(_,k,F,Z,de,xe){{var ue=T(_);if(!ue){var ae="";(_===void 0||typeof _=="object"&&_!==null&&Object.keys(_).length===0)&&(ae+=" 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 Be=Di(de);Be?ae+=Be:ae+=Yt();var De;_===null?De="null":On(_)?De="array":_!==void 0&&_.$$typeof===t?(De="<"+(w(_.type)||"Unknown")+" />",ae=" 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,ae)}var Se=Xe(_,k,F,de,xe);if(Se==null)return Se;if(ue){var ct=k.children;if(ct!==void 0)if(Z)if(On(ct)){for(var Cn=0;Cn<ct.length;Cn++)Zt(ct[Cn],_);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 Zt(ct,_)}return _===r?ts(Se):en(Se),Se}}function ns(_,k,F){return Ci(_,k,F,!0)}function Si(_,k,F){return Ci(_,k,F,!1)}var NM=Si,TM=ns;In.Fragment=r,In.jsx=NM,In.jsxs=TM}()),In}(function(e){process.env.NODE_ENV==="production"?e.exports=Pf():e.exports=Ff()})(gr);const mr=gr.exports.Fragment,E=gr.exports.jsx,le=gr.exports.jsxs,Uf=Object.freeze(Object.defineProperty({__proto__:null,Fragment:mr,jsx:E,jsxs:le},Symbol.toStringTag,{value:"Module"})),Yf=({children:e})=>le(mr,{children:[E(j.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%"}}}),E(j.ThemeProvider,{theme:Lf,children:e})]}),qf={box:{border:`solid 1px ${we.borderLight}`,flexGrow:0}},Vf=({children:e})=>E(j.Box,{p:2,role:"group",sx:qf.box,children:e}),Bf={box:{border:`solid 1px ${we.borderLight}`,flexGrow:0}},Qf=({children:e})=>E(j.Box,{sx:Bf.box,padding:2,component:"header",children:e}),Wf={box:{border:`solid 1px ${we.borderLight}`,flexGrow:1}},Gf=({children:e})=>E(j.Box,{sx:Wf.box,component:"main",role:"tree",children:e}),os={stack:{width:"100%"}},Kf=({children:e})=>{const t=X.Children.toArray(e);return le(j.Grid,{container:!0,padding:1,flexWrap:"nowrap",height:"100%",role:"treegrid",children:[E(j.Grid,{item:!0,xs:9,padding:1,display:"flex",children:le(j.Stack,{sx:os.stack,spacing:2,children:[t[0],t[1]]})}),E(j.Grid,{item:!0,xs:3,padding:1,display:"flex",children:le(j.Stack,{sx:os.stack,spacing:2,children:[t[2],t[3]]})})]})},Xf={box:{border:`solid 1px ${we.borderLight}`,flexGrow:1,overflow:"auto"}},Jf=({children:e})=>E(j.Box,{sx:Xf.box,component:"aside",children:e}),Hf="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDYyIiBoZWlnaHQ9IjE0NCIgdmlld0JveD0iMCAwIDQ2MiAxNDQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yXzY1KSI+CjxwYXRoIGQ9Ik0xMzcgNDEuMzRMMTE2LjU3IDZDMTE2LjIyIDUuMzkzOTkgMTE1LjcxNyA0Ljg5MDM3IDExNS4xMTIgNC41Mzk0MkMxMTQuNTA3IDQuMTg4NDcgMTEzLjgyIDQuMDAyNDcgMTEzLjEyIDRIMzguODNDMzguMTMwMiA0LjAwMjQ3IDM3LjQ0MzQgNC4xODg0NyAzNi44MzggNC41Mzk0MkMzNi4yMzI2IDQuODkwMzcgMzUuNzI5OSA1LjM5Mzk5IDM1LjM4IDZMMTUgNDEuMzRDMTQuNjQ5NSA0MS45NDcgMTQuNDY0NyA0Mi42MzU1IDE0LjQ2NDEgNDMuMzM2NUMxNC40NjM1IDQ0LjAzNzQgMTQuNjQ3MSA0NC43MjYyIDE0Ljk5NjUgNDUuMzMzOUMxNS4zNDU5IDQ1Ljk0MTYgMTUuODQ4OCA0Ni40NDY3IDE2LjQ1NDkgNDYuNzk4OEMxNy4wNjEgNDcuMTUwOSAxNy43NDkgNDcuMzM3NSAxOC40NSA0Ny4zNEgxMzMuNTNDMTM0LjIzMyA0Ny4zNDEgMTM0LjkyMyA0Ny4xNTcgMTM1LjUzMiA0Ni44MDYzQzEzNi4xNDEgNDYuNDU1NyAxMzYuNjQ3IDQ1Ljk1MDggMTM2Ljk5OSA0NS4zNDI2QzEzNy4zNSA0NC43MzQzIDEzNy41MzYgNDQuMDQ0MSAxMzcuNTM2IDQzLjM0MTVDMTM3LjUzNiA0Mi42Mzg4IDEzNy4zNTEgNDEuOTQ4NSAxMzcgNDEuMzRaIiBmaWxsPSIjMTFEM0I0Ii8+CjxwYXRoIGQ9Ik05Mi40OCAxNDAuNjRIMTEzLjFDMTEzLjgwNSAxNDAuNjQzIDExNC40OTggMTQwLjQ1OSAxMTUuMTA5IDE0MC4xMDhDMTE1LjcyIDEzOS43NTcgMTE2LjIyOCAxMzkuMjUgMTE2LjU4IDEzOC42NEwxNTEuMzkgNzguMzRDMTUxLjc0MSA3Ny43MzE1IDE1MS45MjYgNzcuMDQxMiAxNTEuOTI2IDc2LjMzODVDMTUxLjkyNiA3NS42MzU5IDE1MS43NCA3NC45NDU3IDE1MS4zODkgNzQuMzM3NEMxNTEuMDM3IDczLjcyOTIgMTUwLjUzMSA3My4yMjQzIDE0OS45MjIgNzIuODczN0MxNDkuMzEzIDcyLjUyMyAxNDguNjIzIDcyLjMzOSAxNDcuOTIgNzIuMzRIOTIuNDhDOTEuNDE5MSA3Mi4zNCA5MC40MDE3IDcyLjc2MTQgODkuNjUxNiA3My41MTE2Qzg4LjkwMTQgNzQuMjYxNyA4OC40OCA3NS4yNzkxIDg4LjQ4IDc2LjM0VjEzNi42NEM4OC40OCAxMzcuNzAxIDg4LjkwMTQgMTM4LjcxOCA4OS42NTE2IDEzOS40NjhDOTAuNDAxNyAxNDAuMjE5IDkxLjQxOTEgMTQwLjY0IDkyLjQ4IDE0MC42NFoiIGZpbGw9IiMwMDdFRjYiLz4KPHBhdGggZD0iTTU5LjQ4IDcyLjMySDRDMy4yOTgyIDcyLjMyMDcgMi42MDg5NCA3Mi41MDYxIDIuMDAxNDMgNzIuODU3NEMxLjM5MzkzIDczLjIwODggMC44ODk1NTggNzMuNzEzOCAwLjUzODk3IDc0LjMyMThDMC4xODgzODIgNzQuOTI5NyAwLjAwMzkxNjk0IDc1LjYxOTIgMC4wMDQwOTcxMiA3Ni4zMjFDMC4wMDQyNzcyOSA3Ny4wMjI4IDAuMTg5MDk3IDc3LjcxMjIgMC41Mzk5OTcgNzguMzJMMzUuMzggMTM4LjY2QzM1LjcyOTkgMTM5LjI2NiAzNi4yMzI2IDEzOS43NyAzNi44MzggMTQwLjEyMUMzNy40NDM0IDE0MC40NzIgMzguMTMwMiAxNDAuNjU4IDM4LjgzIDE0MC42Nkg1OS40OEM2MC41NDA5IDE0MC42NiA2MS41NTgzIDE0MC4yMzkgNjIuMzA4NCAxMzkuNDg4QzYzLjA1ODYgMTM4LjczOCA2My40OCAxMzcuNzIxIDYzLjQ4IDEzNi42NlY3Ni4zMUM2My40NzczIDc1LjI1MDkgNjMuMDU0OCA3NC4yMzYgNjIuMzA0OSA3My40ODhDNjEuNTU1IDcyLjc0MDEgNjAuNTM5MSA3Mi4zMiA1OS40OCA3Mi4zMloiIGZpbGw9IiMwMTY0QTgiLz4KPC9nPgo8cGF0aCBkPSJNMjA3LjUyIDEwNi45NkMyMDIuMjcyIDEwNi45NiAxOTguMzY4IDEwNS41ODQgMTk1LjgwOCAxMDIuODMyQzE5My4zMTIgMTAwLjA4IDE5Mi4wNjQgOTYuMzM2IDE5Mi4wNjQgOTEuNlY3MC40OEgxODUuNjMyVjYwLjQ5NkgxOTIuMDY0VjUwLjcwNEwyMDUuMDI0IDQ2Ljg2NFY2MC40OTZIMjE2LjU0NEwyMTUuNzc2IDcwLjQ4SDIwNS4wMjRWOTAuNzM2QzIwNS4wMjQgOTMuMjMyIDIwNS42IDk0Ljk2IDIwNi43NTIgOTUuOTJDMjA3LjkwNCA5Ni44MTYgMjA5LjY5NiA5Ny4yNjQgMjEyLjEyOCA5Ny4yNjRDMjEzLjkyIDk3LjI2NCAyMTUuNzc2IDk2Ljk0NCAyMTcuNjk2IDk2LjMwNFYxMDUuMjMyQzIxNi4yODggMTA1LjgwOCAyMTQuNzUyIDEwNi4yMjQgMjEzLjA4OCAxMDYuNDhDMjExLjQyNCAxMDYuOCAyMDkuNTY4IDEwNi45NiAyMDcuNTIgMTA2Ljk2Wk0yMjQuMzQ3IDEwNlY2MC40OTZIMjM2LjM0N0wyMzYuOTIzIDY1LjJDMjM4Ljk3MSA2My45MiAyNDEuNDk5IDYyLjc2OCAyNDQuNTA3IDYxLjc0NEMyNDcuNTc5IDYwLjY1NiAyNTAuNTg3IDU5LjkyIDI1My41MzEgNTkuNTM2VjY5LjMyOEMyNTEuODAzIDY5LjU4NCAyNDkuOTE1IDY5Ljk2OCAyNDcuODY3IDcwLjQ4QzI0NS44MTkgNzAuOTkyIDI0My44NjcgNzEuNTY4IDI0Mi4wMTEgNzIuMjA4QzI0MC4xNTUgNzIuODQ4IDIzOC41ODcgNzMuNTIgMjM3LjMwNyA3NC4yMjRWMTA2SDIyNC4zNDdaTTI4MS45OTcgMTA2Ljk2QzI3NC4xMjUgMTA2Ljk2IDI2Ny44ODUgMTA1LjAwOCAyNjMuMjc3IDEwMS4xMDRDMjU4LjY2OSA5Ny4xMzYgMjU2LjM2NSA5MS4xNTIgMjU2LjM2NSA4My4xNTJDMjU2LjM2NSA3NS45MiAyNTguMjg1IDcwLjE5MiAyNjIuMTI1IDY1Ljk2OEMyNjYuMDI5IDYxLjY4IDI3MS44MjEgNTkuNTM2IDI3OS41MDEgNTkuNTM2QzI4Ni41NDEgNTkuNTM2IDI5MS45MTcgNjEuMzkyIDI5NS42MjkgNjUuMTA0QzI5OS40MDUgNjguNzUyIDMwMS4yOTIgNzMuNTUyIDMwMS4yOTIgNzkuNTA0Vjg3Ljc2SDI2OC4zNjVDMjY5LjA2OSA5MS40MDggMjcwLjczMyA5My45MDQgMjczLjM1NyA5NS4yNDhDMjc2LjA0NSA5Ni41OTIgMjc5LjgyMSA5Ny4yNjQgMjg0LjY4NSA5Ny4yNjRDMjg3LjExNyA5Ny4yNjQgMjg5LjU4MSA5Ny4wNCAyOTIuMDc3IDk2LjU5MkMyOTQuNjM3IDk2LjE0NCAyOTYuODEzIDk1LjU2OCAyOTguNjA1IDk0Ljg2NFYxMDQuMDhDMjk2LjQ5MyAxMDUuMDQgMjk0LjAyOSAxMDUuNzQ0IDI5MS4yMTMgMTA2LjE5MkMyODguMzk3IDEwNi43MDQgMjg1LjMyNSAxMDYuOTYgMjgxLjk5NyAxMDYuOTZaTTI2OC4zNjUgNzkuNzkySDI4OS45NjVWNzcuMjk2QzI4OS45NjUgNzQuNjcyIDI4OS4xOTcgNzIuNjI0IDI4Ny42NjEgNzEuMTUyQzI4Ni4xMjUgNjkuNjE2IDI4My41MzMgNjguODQ4IDI3OS44ODUgNjguODQ4QzI3NS41OTcgNjguODQ4IDI3Mi41ODkgNjkuNzEyIDI3MC44NjEgNzEuNDRDMjY5LjE5NyA3My4xNjggMjY4LjM2NSA3NS45NTIgMjY4LjM2NSA3OS43OTJaTTMzNC4wMjggMTA2Ljk2QzMyNi4xNTYgMTA2Ljk2IDMxOS45MTYgMTA1LjAwOCAzMTUuMzA4IDEwMS4xMDRDMzEwLjcgOTcuMTM2IDMwOC4zOTYgOTEuMTUyIDMwOC4zOTYgODMuMTUyQzMwOC4zOTYgNzUuOTIgMzEwLjMxNiA3MC4xOTIgMzE0LjE1NiA2NS45NjhDMzE4LjA2IDYxLjY4IDMyMy44NTIgNTkuNTM2IDMzMS41MzIgNTkuNTM2QzMzOC41NzIgNTkuNTM2IDM0My45NDggNjEuMzkyIDM0Ny42NiA2NS4xMDRDMzUxLjQzNiA2OC43NTIgMzUzLjMyNCA3My41NTIgMzUzLjMyNCA3OS41MDRWODcuNzZIMzIwLjM5NkMzMjEuMSA5MS40MDggMzIyLjc2NCA5My45MDQgMzI1LjM4OCA5NS4yNDhDMzI4LjA3NiA5Ni41OTIgMzMxLjg1MiA5Ny4yNjQgMzM2LjcxNiA5Ny4yNjRDMzM5LjE0OCA5Ny4yNjQgMzQxLjYxMiA5Ny4wNCAzNDQuMTA4IDk2LjU5MkMzNDYuNjY4IDk2LjE0NCAzNDguODQ0IDk1LjU2OCAzNTAuNjM2IDk0Ljg2NFYxMDQuMDhDMzQ4LjUyNCAxMDUuMDQgMzQ2LjA2IDEwNS43NDQgMzQzLjI0NCAxMDYuMTkyQzM0MC40MjggMTA2LjcwNCAzMzcuMzU2IDEwNi45NiAzMzQuMDI4IDEwNi45NlpNMzIwLjM5NiA3OS43OTJIMzQxLjk5NlY3Ny4yOTZDMzQxLjk5NiA3NC42NzIgMzQxLjIyOCA3Mi42MjQgMzM5LjY5MiA3MS4xNTJDMzM4LjE1NiA2OS42MTYgMzM1LjU2NCA2OC44NDggMzMxLjkxNiA2OC44NDhDMzI3LjYyOCA2OC44NDggMzI0LjYyIDY5LjcxMiAzMjIuODkyIDcxLjQ0QzMyMS4yMjggNzMuMTY4IDMyMC4zOTYgNzUuOTUyIDMyMC4zOTYgNzkuNzkyWk0zODEuNTQ3IDEyMi44OTZDMzc4LjE1NSAxMjIuODk2IDM3NC42NjcgMTIyLjY3MiAzNzEuMDgzIDEyMi4yMjRDMzY3LjU2MyAxMjEuNzc2IDM2NC41ODcgMTIxLjEzNiAzNjIuMTU1IDEyMC4zMDRWMTEwLjYwOEMzNjQuNzE1IDExMS40NCAzNjcuNzIzIDExMi4wOCAzNzEuMTc5IDExMi41MjhDMzc0LjYzNSAxMTMuMDQgMzc3Ljg2NyAxMTMuMjk2IDM4MC44NzUgMTEzLjI5NkMzODUuMjkxIDExMy4yOTYgMzg4LjQ5MSAxMTMuMDQgMzkwLjQ3NSAxMTIuNTI4QzM5Mi40NTkgMTEyLjA4IDM5My40NTEgMTExLjI0OCAzOTMuNDUxIDExMC4wMzJDMzkzLjQ1MSAxMDkuMDA4IDM5My4wMDMgMTA4LjMwNCAzOTIuMTA3IDEwNy45MkMzOTEuMjc1IDEwNy41MzYgMzg5LjQ4MyAxMDcuMzQ0IDM4Ni43MzEgMTA3LjM0NEgzNzQuMzQ3QzM2Ni4yMTkgMTA3LjM0NCAzNjIuMTU1IDEwNC4zMzYgMzYyLjE1NSA5OC4zMkMzNjIuMTU1IDk2LjQ2NCAzNjIuNjY3IDk0Ljc2OCAzNjMuNjkxIDkzLjIzMkMzNjQuNzE1IDkxLjY5NiAzNjYuMzQ3IDkwLjQ4IDM2OC41ODcgODkuNTg0QzM2My40MDMgODYuOTYgMzYwLjgxMSA4Mi41NDQgMzYwLjgxMSA3Ni4zMzZDMzYwLjgxMSA3MC40NDggMzYyLjYzNSA2Ni4xOTIgMzY2LjI4MyA2My41NjhDMzY5LjkzMSA2MC44OCAzNzUuMzM5IDU5LjUzNiAzODIuNTA3IDU5LjUzNkMzODMuOTc5IDU5LjUzNiAzODUuNTc5IDU5LjY2NCAzODcuMzA3IDU5LjkyQzM4OS4wOTkgNjAuMTEyIDM5MC40NDMgNjAuMzA0IDM5MS4zMzkgNjAuNDk2SDQwOC40MjdMNDA4LjEzOSA2OC42NTZINDAwLjkzOUM0MDIuOTIzIDcwLjUxMiA0MDMuOTE1IDczLjEwNCA0MDMuOTE1IDc2LjQzMkM0MDMuOTE1IDgxLjEwNCA0MDIuNDQzIDg0Ljg0OCAzOTkuNDk5IDg3LjY2NEMzOTYuNTU1IDkwLjQxNiAzOTIuMjAzIDkxLjc5MiAzODYuNDQzIDkxLjc5MkMzODUuNDE5IDkxLjc5MiAzODQuNDI3IDkxLjc2IDM4My40NjcgOTEuNjk2QzM4Mi41NzEgOTEuNTY4IDM4MS42NDMgOTEuNDQgMzgwLjY4MyA5MS4zMTJDMzc4Ljc2MyA5MS41NjggMzc3LjEzMSA5Mi4wMTYgMzc1Ljc4NyA5Mi42NTZDMzc0LjUwNyA5My4yOTYgMzczLjg2NyA5NC4xNiAzNzMuODY3IDk1LjI0OEMzNzMuODY3IDk2LjcyIDM3NS4xNzkgOTcuNDU2IDM3Ny44MDMgOTcuNDU2SDM5MC42NjdDMzk1LjI3NSA5Ny40NTYgMzk4LjgyNyA5OC41MTIgNDAxLjMyMyAxMDAuNjI0QzQwMy44MTkgMTAyLjY3MiA0MDUuMDY3IDEwNS42OCA0MDUuMDY3IDEwOS42NDhDNDA1LjA2NyAxMTQuMTI4IDQwMy4wNTEgMTE3LjQ1NiAzOTkuMDE5IDExOS42MzJDMzk0Ljk4NyAxMjEuODA4IDM4OS4xNjMgMTIyLjg5NiAzODEuNTQ3IDEyMi44OTZaTTM4Mi42MDMgODQuNDk2QzM4Ni40NDMgODQuNDk2IDM4OS4wOTkgODMuODU2IDM5MC41NzEgODIuNTc2QzM5Mi4xMDcgODEuMjMyIDM5Mi44NzUgNzguOTkyIDM5Mi44NzUgNzUuODU2QzM5Mi44NzUgNzIuNzIgMzkyLjEwNyA3MC40NDggMzkwLjU3MSA2OS4wNEMzODkuMDk5IDY3LjYzMiAzODYuNDQzIDY2LjkyOCAzODIuNjAzIDY2LjkyOEMzNzguOTU1IDY2LjkyOCAzNzYuMzMxIDY3LjYzMiAzNzQuNzMxIDY5LjA0QzM3My4xMzEgNzAuMzg0IDM3Mi4zMzEgNzIuNjU2IDM3Mi4zMzEgNzUuODU2QzM3Mi4zMzEgNzguOCAzNzMuMDY3IDgwLjk3NiAzNzQuNTM5IDgyLjM4NEMzNzYuMDc1IDgzLjc5MiAzNzguNzYzIDg0LjQ5NiAzODIuNjAzIDg0LjQ5NlpNNDM5LjAyOCAxMDYuOTZDNDMxLjE1NiAxMDYuOTYgNDI0LjkxNiAxMDUuMDA4IDQyMC4zMDggMTAxLjEwNEM0MTUuNyA5Ny4xMzYgNDEzLjM5NiA5MS4xNTIgNDEzLjM5NiA4My4xNTJDNDEzLjM5NiA3NS45MiA0MTUuMzE2IDcwLjE5MiA0MTkuMTU2IDY1Ljk2OEM0MjMuMDYgNjEuNjggNDI4Ljg1MiA1OS41MzYgNDM2LjUzMiA1OS41MzZDNDQzLjU3MiA1OS41MzYgNDQ4Ljk0OCA2MS4zOTIgNDUyLjY2IDY1LjEwNEM0NTYuNDM2IDY4Ljc1MiA0NTguMzI0IDczLjU1MiA0NTguMzI0IDc5LjUwNFY4Ny43Nkg0MjUuMzk2QzQyNi4xIDkxLjQwOCA0MjcuNzY0IDkzLjkwNCA0MzAuMzg4IDk1LjI0OEM0MzMuMDc2IDk2LjU5MiA0MzYuODUyIDk3LjI2NCA0NDEuNzE2IDk3LjI2NEM0NDQuMTQ4IDk3LjI2NCA0NDYuNjEyIDk3LjA0IDQ0OS4xMDggOTYuNTkyQzQ1MS42NjggOTYuMTQ0IDQ1My44NDQgOTUuNTY4IDQ1NS42MzYgOTQuODY0VjEwNC4wOEM0NTMuNTI0IDEwNS4wNCA0NTEuMDYgMTA1Ljc0NCA0NDguMjQ0IDEwNi4xOTJDNDQ1LjQyOCAxMDYuNzA0IDQ0Mi4zNTYgMTA2Ljk2IDQzOS4wMjggMTA2Ljk2Wk00MjUuMzk2IDc5Ljc5Mkg0NDYuOTk2Vjc3LjI5NkM0NDYuOTk2IDc0LjY3MiA0NDYuMjI4IDcyLjYyNCA0NDQuNjkyIDcxLjE1MkM0NDMuMTU2IDY5LjYxNiA0NDAuNTY0IDY4Ljg0OCA0MzYuOTE2IDY4Ljg0OEM0MzIuNjI4IDY4Ljg0OCA0MjkuNjIgNjkuNzEyIDQyNy44OTIgNzEuNDRDNDI2LjIyOCA3My4xNjggNDI1LjM5NiA3NS45NTIgNDI1LjM5NiA3OS43OTJaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8yXzY1Ij4KPHJlY3Qgd2lkdGg9IjE1MS45MyIgaGVpZ2h0PSIxMzYuNjQiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwIDQpIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==",Zf=()=>E("img",{src:Hf,alt:"Treege",height:30,width:"auto"}),ed={box:{backgroundColor:we.backgroundPrimary,border:`solid 1px ${we.borderLight}`}},as=({children:e,description:t,open:n,onClose:r,title:i})=>E(j.Dialog,{open:n,onClose:r,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",scroll:"body",maxWidth:"sm",fullWidth:!0,children:le(j.Box,{sx:ed.box,p:4,children:[E("h3",{children:i}),E("p",{children:t}),e]})});var ss={},Ai={};function td(e,t){return e.parent===t.parent?1:2}function nd(e){return e.reduce(rd,0)/e.length}function rd(e,t){return e+t.x}function id(e){return 1+e.reduce(od,0)}function od(e,t){return Math.max(e,t.y)}function ad(e){for(var t;t=e.children;)e=t[0];return e}function sd(e){for(var t;t=e.children;)e=t[t.length-1];return e}function ud(){var e=td,t=1,n=1,r=!1;function i(o){var a,s=0;o.eachAfter(function(f){var h=f.children;h?(f.x=nd(h),f.y=id(h)):(f.x=a?s+=e(f,a):0,f.y=0,a=f)});var u=ad(o),l=sd(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 ld(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(ld)}function fd(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 dd(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 hd(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 pd(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 gd(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function md(e){for(var t=this,n=vd(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 vd(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 yd(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function _d(){var e=[];return this.each(function(t){e.push(t)}),e}function bd(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function xd(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Ii(e,t){var n=new tn(e),r=+e.value&&(n.value=e.value),i,o=[n],a,s,u,l;for(t==null&&(t=wd);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 tn(s[u])),a.parent=i,a.depth=i.depth+1;return n.eachBefore(us)}function Md(){return Ii(this).eachBefore(Nd)}function wd(e){return e.children}function Nd(e){e.data=e.data.data}function us(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function tn(e){this.data=e,this.depth=this.height=0,this.parent=null}tn.prototype=Ii.prototype={constructor:tn,count:cd,each:fd,eachAfter:hd,eachBefore:dd,sum:pd,sort:gd,path:md,ancestors:yd,descendants:_d,leaves:bd,links:xd,copy:Md};var Td=Array.prototype.slice;function Ed(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 ls(e){for(var t=0,n=(e=Ed(Td.call(e))).length,r=[],i,o;t<n;)i=e[t],o&&cs(o,i)?++t:(o=Od(r=Dd(r,i)),t=0);return o}function Dd(e,t){var n,r;if(zi(t,e))return[t];for(n=0;n<e.length;++n)if(vr(t,e[n])&&zi(zn(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(vr(zn(e[n],e[r]),t)&&vr(zn(e[n],t),e[r])&&vr(zn(e[r],t),e[n])&&zi(fs(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function vr(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 cs(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 zi(e,t){for(var n=0;n<t.length;++n)if(!cs(e,t[n]))return!1;return!0}function Od(e){switch(e.length){case 1:return Cd(e[0]);case 2:return zn(e[0],e[1]);case 3:return fs(e[0],e[1],e[2])}}function Cd(e){return{x:e.x,y:e.y,r:e.r}}function zn(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 fs(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,y=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,v=h*y-f*p,O=(y*b-p*N)/(v*2)-r,A=(p*m-y*x)/v,D=(h*N-f*b)/(v*2)-i,C=(f*x-h*m)/v,T=A*A+C*C-1,I=2*(o+O*A+D*C),g=O*O+D*D-o*o,w=-(T?(I+Math.sqrt(I*I-4*T*g))/(2*T):g/I);return{x:r+O+A*w,y:i+D+C*w,r:w}}function ds(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 hs(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 ps(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 yr(e){this._=e,this.next=null,this.previous=null}function gs(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;ds(n,t,r=e[2]),t=new yr(t),n=new yr(n),r=new yr(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){ds(t._,n._,r=e[s]),r=new yr(r),u=n.next,l=t.previous,c=n._.r,d=t._.r;do if(c<=d){if(hs(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.next}else{if(hs(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=ps(t);(r=r.next)!==n;)(a=ps(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=ls(t),s=0;s<i;++s)t=e[s],t.x-=r.x,t.y-=r.y;return r.r}function Sd(e){return gs(e),e}function Ad(e){return e==null?null:_r(e)}function _r(e){if(typeof e!="function")throw new Error;return e}function qt(){return 0}function nn(e){return function(){return e}}function Id(e){return Math.sqrt(e.value)}function zd(){var e=null,t=1,n=1,r=qt;function i(o){return o.x=t/2,o.y=n/2,e?o.eachBefore(ms(e)).eachAfter(ji(r,.5)).eachBefore(vs(1)):o.eachBefore(ms(Id)).eachAfter(ji(qt,1)).eachAfter(ji(r,o.r/Math.min(t,n))).eachBefore(vs(Math.min(t,n)/(2*o.r))),o}return i.radius=function(o){return arguments.length?(e=Ad(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:nn(+o),i):r},i}function ms(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function ji(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=gs(r),a)for(i=0;i<o;++i)r[i].r-=a;n.r=s+a}}}function vs(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 ys(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 jn(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 jd(){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(ys),a}function o(a,s){return function(u){u.children&&jn(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 _s="$",kd={depth:-1},bs={};function $d(e){return e.id}function Rd(e){return e.parentId}function Ld(){var e=$d,t=Rd;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 tn(i),(d=e(i,o,r))!=null&&(d+="")&&(f=_s+(l.id=d),h[f]=f in h?bs: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[_s+d],!u)throw new Error("missing: "+d);if(u===bs)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=kd,s.eachBefore(function(y){y.depth=y.parent.depth+1,--a}).eachBefore(us),s.parent=null,a>0)throw new Error("cycle");return s}return n.id=function(r){return arguments.length?(e=_r(r),n):e},n.parentId=function(r){return arguments.length?(t=_r(r),n):t},n}function Pd(e,t){return e.parent===t.parent?1:2}function ki(e){var t=e.children;return t?t[0]:e.t}function $i(e){var t=e.children;return t?t[t.length-1]:e.t}function Fd(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 Ud(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 Yd(e,t,n){return e.a.parent===t.parent?e.a:n}function br(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}br.prototype=Object.create(tn.prototype);function qd(e){for(var t=new br(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 br(o[a],a)),i.parent=n;return(t.parent=new br(null,0)).children=[t],t}function Vd(){var e=Pd,t=1,n=1,r=null;function i(l){var c=qd(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 y=d===f?1:e(d,f)/2,p=y-d.x,m=t/(f.x+y+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){Ud(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,y=c,p=f.parent.children[0],m=f.m,x=h.m,M=y.m,N=p.m,b;y=$i(y),f=ki(f),y&&f;)p=ki(p),h=$i(h),h.a=l,b=y.z+M-f.z-m+e(y._,f._),b>0&&(Fd(Yd(y,l,d),l,b),m+=b,x+=b),M+=y.m,m+=f.m,N+=p.m,x+=h.m;y&&!$i(h)&&(h.t=y,h.m+=M-x),f&&!ki(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 xr(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 xs=(1+Math.sqrt(5))/2;function Ms(e,t,n,r,i,o){for(var a=[],s=t.children,u,l,c=0,d=0,f=s.length,h,y,p=t.value,m,x,M,N,b,v,O;c<f;){h=i-n,y=o-r;do m=s[d++].value;while(!m&&d<f);for(x=M=m,v=Math.max(y/h,h/y)/(p*e),O=m*m*v,b=Math.max(M/O,O/x);d<f;++d){if(m+=l=s[d].value,l<x&&(x=l),l>M&&(M=l),O=m*m*v,N=Math.max(M/O,O/x),N>b){m-=l;break}b=N}a.push(u={value:m,dice:h<y,children:s.slice(c,d)}),u.dice?jn(u,n,r,i,p?r+=y*m/p:o):xr(u,n,r,p?n+=h*m/p:i,o),p-=m,c=d}return a}const ws=function e(t){function n(r,i,o,a,s){Ms(t,r,i,o,a,s)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(xs);function Bd(){var e=ws,t=!1,n=1,r=1,i=[0],o=qt,a=qt,s=qt,u=qt,l=qt;function c(f){return f.x0=f.y0=0,f.x1=n,f.y1=r,f.eachBefore(d),i=[0],t&&f.eachBefore(ys),f}function d(f){var h=i[f.depth],y=f.x0+h,p=f.y0+h,m=f.x1-h,x=f.y1-h;m<y&&(y=m=(y+m)/2),x<p&&(p=x=(p+x)/2),f.x0=y,f.y0=p,f.x1=m,f.y1=x,f.children&&(h=i[f.depth+1]=o(f)/2,y+=l(f)-h,p+=a(f)-h,m-=s(f)-h,x-=u(f)-h,m<y&&(y=m=(y+m)/2),x<p&&(p=x=(p+x)/2),e(f,y,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=_r(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:nn(+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:nn(+f),c):a},c.paddingRight=function(f){return arguments.length?(s=typeof f=="function"?f:nn(+f),c):s},c.paddingBottom=function(f){return arguments.length?(u=typeof f=="function"?f:nn(+f),c):u},c.paddingLeft=function(f){return arguments.length?(l=typeof f=="function"?f:nn(+f),c):l},c}function Qd(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,y,p,m,x){if(d>=f-1){var M=o[d];M.x0=y,M.y0=p,M.x1=m,M.y1=x;return}for(var N=l[d],b=h/2+N,v=d+1,O=f-1;v<O;){var A=v+O>>>1;l[A]<b?v=A+1:O=A}b-l[v-1]<l[v]-b&&d+1<v&&--v;var D=l[v]-N,C=h-D;if(m-y>x-p){var T=(y*C+m*D)/h;c(d,v,D,y,p,T,x),c(v,f,C,T,p,m,x)}else{var I=(p*C+x*D)/h;c(d,v,D,y,p,m,I),c(v,f,C,y,I,m,x)}}}function Wd(e,t,n,r,i){(e.depth&1?xr:jn)(e,t,n,r,i)}const Gd=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,y=u.length,p=r.value;++f<y;){for(l=u[f],c=l.children,d=l.value=0,h=c.length;d<h;++d)l.value+=c[d].value;l.dice?jn(l,i,o,a,o+=(s-o)*l.value/p):xr(l,i,o,i+=(a-i)*l.value/p,s),p-=l.value}else r._squarify=u=Ms(t,r,i,o,a,s),u.ratio=t}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(xs),Kd=St(Object.freeze(Object.defineProperty({__proto__:null,cluster:ud,hierarchy:Ii,pack:zd,packSiblings:Sd,packEnclose:ls,partition:jd,stratify:Ld,tree:Vd,treemap:Bd,treemapBinary:Qd,treemapDice:jn,treemapSlice:xr,treemapSliceDice:Wd,treemapSquarify:ws,treemapResquarify:Gd},Symbol.toStringTag,{value:"Module"})));var Ri="http://www.w3.org/1999/xhtml";const Li={svg:"http://www.w3.org/2000/svg",xhtml:Ri,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function kn(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Li.hasOwnProperty(t)?{space:Li[t],local:e}:e}function Xd(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Ri&&t.documentElement.namespaceURI===Ri?t.createElement(e):t.createElementNS(n,e)}}function Jd(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Mr(e){var t=kn(e);return(t.local?Jd:Xd)(t)}function Hd(){}function wr(e){return e==null?Hd:function(){return this.querySelector(e)}}function Zd(e){typeof e!="function"&&(e=wr(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 qe(r,this._parents)}function eh(){return[]}function Pi(e){return e==null?eh:function(){return this.querySelectorAll(e)}}function th(e){typeof e!="function"&&(e=Pi(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 qe(r,i)}function Fi(e){return function(){return this.matches(e)}}function nh(e){typeof e!="function"&&(e=Fi(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 qe(r,this._parents)}function Ns(e){return new Array(e.length)}function rh(){return new qe(this._enter||this._groups.map(Ns),this._parents)}function Nr(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nr.prototype={constructor:Nr,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 ih(e){return function(){return e}}var Ts="$";function oh(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 Nr(e,o[a]);for(;a<u;++a)(s=t[a])&&(i[a]=s)}function ah(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=Ts+a.call(u,u.__data__,s,t),h in l?i[s]=u:l[h]=u);for(s=0;s<d;++s)h=Ts+a.call(e,o[s],s,o),(u=l[h])?(r[s]=u,u.__data__=o[s],l[h]=null):n[s]=new Nr(e,o[s]);for(s=0;s<c;++s)(u=t[s])&&l[f[s]]===u&&(i[s]=u)}function sh(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(O){h[++l]=O}),h;var n=t?ah:oh,r=this._parents,i=this._groups;typeof e!="function"&&(e=ih(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),y=h.length,p=s[l]=new Array(y),m=a[l]=new Array(y),x=u[l]=new Array(f);n(c,d,p,m,x,h,t);for(var M=0,N=0,b,v;M<y;++M)if(b=p[M]){for(M>=N&&(N=M+1);!(v=m[N])&&++N<y;);b._next=v||null}}return a=new qe(a,r),a._enter=s,a._exit=u,a}function uh(){return new qe(this._exit||this._groups.map(Ns),this._parents)}function lh(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 qe(a,this._parents)}function fh(){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 dh(e){e||(e=hh);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 qe(i,this._parents).order()}function hh(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function ph(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function gh(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e}function mh(){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 vh(){var e=0;return this.each(function(){++e}),e}function yh(){return!this.node()}function _h(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 bh(e){return function(){this.removeAttribute(e)}}function xh(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mh(e,t){return function(){this.setAttribute(e,t)}}function wh(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Nh(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Th(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 Eh(e,t){var n=kn(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?xh:bh:typeof t=="function"?n.local?Th:Nh:n.local?wh:Mh)(n,t))}function Ui(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Dh(e){return function(){this.style.removeProperty(e)}}function Oh(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ch(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Sh(e,t,n){return arguments.length>1?this.each((t==null?Dh:typeof t=="function"?Ch:Oh)(e,t,n==null?"":n)):Vt(this.node(),e)}function Vt(e,t){return e.style.getPropertyValue(t)||Ui(e).getComputedStyle(e,null).getPropertyValue(t)}function Ah(e){return function(){delete this[e]}}function Ih(e,t){return function(){this[e]=t}}function zh(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function jh(e,t){return arguments.length>1?this.each((t==null?Ah:typeof t=="function"?zh:Ih)(e,t)):this.node()[e]}function Es(e){return e.trim().split(/^|\s+/)}function Yi(e){return e.classList||new Ds(e)}function Ds(e){this._node=e,this._names=Es(e.getAttribute("class")||"")}Ds.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 Os(e,t){for(var n=Yi(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Cs(e,t){for(var n=Yi(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function kh(e){return function(){Os(this,e)}}function $h(e){return function(){Cs(this,e)}}function Rh(e,t){return function(){(t.apply(this,arguments)?Os:Cs)(this,e)}}function Lh(e,t){var n=Es(e+"");if(arguments.length<2){for(var r=Yi(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Rh:t?kh:$h)(n,t))}function Ph(){this.textContent=""}function Fh(e){return function(){this.textContent=e}}function Uh(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function Yh(e){return arguments.length?this.each(e==null?Ph:(typeof e=="function"?Uh:Fh)(e)):this.node().textContent}function qh(){this.innerHTML=""}function Vh(e){return function(){this.innerHTML=e}}function Bh(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function Qh(e){return arguments.length?this.each(e==null?qh:(typeof e=="function"?Bh:Vh)(e)):this.node().innerHTML}function Wh(){this.nextSibling&&this.parentNode.appendChild(this)}function Gh(){return this.each(Wh)}function Kh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xh(){return this.each(Kh)}function Jh(e){var t=typeof e=="function"?e:Mr(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Hh(){return null}function Zh(e,t){var n=typeof e=="function"?e:Mr(e),r=t==null?Hh:typeof t=="function"?t:wr(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function ep(){var e=this.parentNode;e&&e.removeChild(this)}function tp(){return this.each(ep)}function np(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function rp(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function ip(e){return this.select(e?rp:np)}function op(e){return arguments.length?this.property("__data__",e):this.node().__data__}var Ss={},ce=null;if(typeof document<"u"){var ap=document.documentElement;"onmouseenter"in ap||(Ss={mouseenter:"mouseover",mouseleave:"mouseout"})}function sp(e,t,n){return e=As(e,t,n),function(r){var i=r.relatedTarget;(!i||i!==this&&!(i.compareDocumentPosition(this)&8))&&e.call(this,r)}}function As(e,t,n){return function(r){var i=ce;ce=r;try{e.call(this,this.__data__,t,n)}finally{ce=i}}}function up(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 lp(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=Ss.hasOwnProperty(e.type)?sp:As;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 fp(e,t,n){var r=up(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:lp,n==null&&(n=!1),i=0;i<o;++i)this.each(s(r[i],t,n));return this}function Is(e,t,n,r){var i=ce;e.sourceEvent=ce,ce=e;try{return t.apply(n,r)}finally{ce=i}}function zs(e,t,n){var r=Ui(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 dp(e,t){return function(){return zs(this,e,t)}}function hp(e,t){return function(){return zs(this,e,t.apply(this,arguments))}}function pp(e,t){return this.each((typeof t=="function"?hp:dp)(e,t))}var qi=[null];function qe(e,t){this._groups=e,this._parents=t}function rn(){return new qe([[document.documentElement]],qi)}qe.prototype=rn.prototype={constructor:qe,select:Zd,selectAll:th,filter:nh,data:sh,enter:rh,exit:uh,join:lh,merge:ch,order:fh,sort:dh,call:ph,nodes:gh,node:mh,size:vh,empty:yh,each:_h,attr:Eh,style:Sh,property:jh,classed:Lh,text:Yh,html:Qh,raise:Gh,lower:Xh,append:Jh,insert:Zh,remove:tp,clone:ip,datum:op,on:fp,dispatch:pp};function At(e){return typeof e=="string"?new qe([[document.querySelector(e)]],[document.documentElement]):new qe([[e]],qi)}function gp(e){return At(Mr(e).call(document.documentElement))}var mp=0;function js(){return new Vi}function Vi(){this._="@"+(++mp).toString(36)}Vi.prototype=js.prototype={constructor:Vi,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 Bi(){for(var e=ce,t;t=e.sourceEvent;)e=t;return e}function Tr(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 $n(e){var t=Bi();return t.changedTouches&&(t=t.changedTouches[0]),Tr(e,t)}function vp(e){return typeof e=="string"?new qe([document.querySelectorAll(e)],[document.documentElement]):new qe([e==null?[]:e],qi)}function Qi(e,t,n){arguments.length<3&&(n=t,t=Bi().changedTouches);for(var r=0,i=t?t.length:0,o;r<i;++r)if((o=t[r]).identifier===n)return Tr(e,o);return null}function yp(e,t){t==null&&(t=Bi().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=Tr(e,t[n]);return i}const Wi=St(Object.freeze(Object.defineProperty({__proto__:null,create:gp,creator:Mr,local:js,matcher:Fi,mouse:$n,namespace:kn,namespaces:Li,clientPoint:Tr,select:At,selectAll:vp,selection:rn,selector:wr,selectorAll:Pi,style:Vt,touch:Qi,touches:yp,window:Ui,get event(){return ce},customEvent:Is},Symbol.toStringTag,{value:"Module"})));var _p={value:function(){}};function Gi(){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 Er(n)}function Er(e){this._=e}function bp(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}})}Er.prototype=Gi.prototype={constructor:Er,on:function(e,t){var n=this._,r=bp(e+"",n),i,o=-1,a=r.length;if(arguments.length<2){for(;++o<a;)if((i=(e=r[o]).type)&&(i=xp(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]=ks(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ks(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 Er(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 xp(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ks(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=_p,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}function Ki(){ce.preventDefault(),ce.stopImmediatePropagation()}function Mp(e){var t=e.document.documentElement,n=At(e).on("dragstart.drag",Ki,!0);"onselectstart"in t?n.on("selectstart.drag",Ki,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function wp(e,t){var n=e.document.documentElement,r=At(e).on("dragstart.drag",null);t&&(r.on("click.drag",Ki,!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 Xi(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $s(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Rn(){}var Ln=.7,Dr=1/Ln,on="\\s*([+-]?\\d+)\\s*",Pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",gt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Np=/^#([0-9a-f]{3,8})$/,Tp=new RegExp("^rgb\\("+[on,on,on]+"\\)$"),Ep=new RegExp("^rgb\\("+[gt,gt,gt]+"\\)$"),Dp=new RegExp("^rgba\\("+[on,on,on,Pn]+"\\)$"),Op=new RegExp("^rgba\\("+[gt,gt,gt,Pn]+"\\)$"),Cp=new RegExp("^hsl\\("+[Pn,gt,gt]+"\\)$"),Sp=new RegExp("^hsla\\("+[Pn,gt,gt,Pn]+"\\)$"),Rs={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};Xi(Rn,Fn,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:Ls,formatHex:Ls,formatHsl:Ap,formatRgb:Ps,toString:Ps});function Ls(){return this.rgb().formatHex()}function Ap(){return Vs(this).formatHsl()}function Ps(){return this.rgb().formatRgb()}function Fn(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Np.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Fs(t):n===3?new Je(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Or(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Or(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=Tp.exec(e))?new Je(t[1],t[2],t[3],1):(t=Ep.exec(e))?new Je(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dp.exec(e))?Or(t[1],t[2],t[3],t[4]):(t=Op.exec(e))?Or(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cp.exec(e))?qs(t[1],t[2]/100,t[3]/100,1):(t=Sp.exec(e))?qs(t[1],t[2]/100,t[3]/100,t[4]):Rs.hasOwnProperty(e)?Fs(Rs[e]):e==="transparent"?new Je(NaN,NaN,NaN,0):null}function Fs(e){return new Je(e>>16&255,e>>8&255,e&255,1)}function Or(e,t,n,r){return r<=0&&(e=t=n=NaN),new Je(e,t,n,r)}function Ip(e){return e instanceof Rn||(e=Fn(e)),e?(e=e.rgb(),new Je(e.r,e.g,e.b,e.opacity)):new Je}function Ji(e,t,n,r){return arguments.length===1?Ip(e):new Je(e,t,n,r==null?1:r)}function Je(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xi(Je,Ji,$s(Rn,{brighter:function(e){return e=e==null?Dr:Math.pow(Dr,e),new Je(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=e==null?Ln:Math.pow(Ln,e),new Je(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:Us,formatHex:Us,formatRgb:Ys,toString:Ys}));function Us(){return"#"+Hi(this.r)+Hi(this.g)+Hi(this.b)}function Ys(){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 Hi(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function qs(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 Vs(e){if(e instanceof mt)return new mt(e.h,e.s,e.l,e.opacity);if(e instanceof Rn||(e=Fn(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 zp(e,t,n,r){return arguments.length===1?Vs(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}Xi(mt,zp,$s(Rn,{brighter:function(e){return e=e==null?Dr:Math.pow(Dr,e),new mt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=e==null?Ln:Math.pow(Ln,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 Je(Zi(e>=240?e-240:e+120,i,r),Zi(e,i,r),Zi(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 Zi(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 Bs(e){return function(){return e}}function jp(e,t){return function(n){return e+n*t}}function kp(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 $p(e){return(e=+e)==1?Qs:function(t,n){return n-t?kp(t,n,e):Bs(isNaN(t)?n:t)}}function Qs(e,t){var n=t-e;return n?jp(e,n):Bs(isNaN(e)?t:e)}const Ws=function e(t){var n=$p(t);function r(i,o){var a=n((i=Ji(i)).r,(o=Ji(o)).r),s=n(i.g,o.g),u=n(i.b,o.b),l=Qs(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 eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,to=new RegExp(eo.source,"g");function Rp(e){return function(){return e}}function Lp(e){return function(t){return e(t)+""}}function Pp(e,t){var n=eo.lastIndex=to.lastIndex=0,r,i,o,a=-1,s=[],u=[];for(e=e+"",t=t+"";(r=eo.exec(e))&&(i=to.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=to.lastIndex;return n<t.length&&(o=t.slice(n),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?Lp(u[0].x):Rp(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 Gs=180/Math.PI,no={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ks(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)*Gs,skewX:Math.atan(u)*Gs,scaleX:a,scaleY:s}}var Un,ro,Xs,Cr;function Fp(e){return e==="none"?no:(Un||(Un=document.createElement("DIV"),ro=document.documentElement,Xs=document.defaultView),Un.style.transform=e,e=Xs.getComputedStyle(ro.appendChild(Un),null).getPropertyValue("transform"),ro.removeChild(Un),e=e.slice(7,-1).split(","),Ks(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function Up(e){return e==null||(Cr||(Cr=document.createElementNS("http://www.w3.org/2000/svg","g")),Cr.setAttribute("transform",e),!(e=Cr.transform.baseVal.consolidate()))?no:(e=e.matrix,Ks(e.a,e.b,e.c,e.d,e.e,e.f))}function Js(e,t,n,r){function i(l){return l.length?l.pop()+" ":""}function o(l,c,d,f,h,y){if(l!==d||c!==f){var p=h.push("translate(",null,t,null,n);y.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,y){if(l!==d||c!==f){var p=h.push(i(h)+"scale(",null,",",null,")");y.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 y=-1,p=f.length,m;++y<p;)d[(m=f[y]).i]=m.x(h);return d.join("")}}}var Yp=Js(Fp,"px, ","px)","deg)"),qp=Js(Up,", ",")",")"),Yn=Math.SQRT2,io=2,Hs=4,Vp=1e-12;function Zs(e){return((e=Math.exp(e))+1/e)/2}function Bp(e){return((e=Math.exp(e))-1/e)/2}function Qp(e){return((e=Math.exp(2*e))-1)/(e+1)}function Wp(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<Vp)f=Math.log(s/i)/Yn,d=function(M){return[n+M*u,r+M*l,i*Math.exp(Yn*M*f)]};else{var h=Math.sqrt(c),y=(s*s-i*i+Hs*c)/(2*i*io*h),p=(s*s-i*i-Hs*c)/(2*s*io*h),m=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(p*p+1)-p);f=(x-m)/Yn,d=function(M){var N=M*f,b=Zs(m),v=i/(io*h)*(b*Qp(Yn*N+m)-Bp(m));return[n+v*u,r+v*l,i*b/Zs(Yn*N+m)]}}return d.duration=f*1e3,d}var an=0,qn=0,Vn=0,eu=1e3,Sr,Bn,Ar=0,Bt=0,Ir=0,Qn=typeof performance=="object"&&performance.now?performance:Date,tu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function zr(){return Bt||(tu(Gp),Bt=Qn.now()+Ir)}function Gp(){Bt=0}function jr(){this._call=this._time=this._next=null}jr.prototype=nu.prototype={constructor:jr,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?zr():+n)+(t==null?0:+t),!this._next&&Bn!==this&&(Bn?Bn._next=this:Sr=this,Bn=this),this._call=e,this._time=n,oo()},stop:function(){this._call&&(this._call=null,this._time=1/0,oo())}};function nu(e,t,n){var r=new jr;return r.restart(e,t,n),r}function Kp(){zr(),++an;for(var e=Sr,t;e;)(t=Bt-e._time)>=0&&e._call.call(null,t),e=e._next;--an}function ru(){Bt=(Ar=Qn.now())+Ir,an=qn=0;try{Kp()}finally{an=0,Jp(),Bt=0}}function Xp(){var e=Qn.now(),t=e-Ar;t>eu&&(Ir-=t,Ar=e)}function Jp(){for(var e,t=Sr,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:Sr=n);Bn=e,oo(r)}function oo(e){if(!an){qn&&(qn=clearTimeout(qn));var t=e-Bt;t>24?(e<1/0&&(qn=setTimeout(ru,e-Qn.now()-Ir)),Vn&&(Vn=clearInterval(Vn))):(Vn||(Ar=Qn.now(),Vn=setInterval(Xp,eu)),an=1,tu(ru))}}function iu(e,t,n){var r=new jr;return t=t==null?0:+t,r.restart(function(i){r.stop(),e(i+t)},t,n),r}var Hp=Gi("start","end","cancel","interrupt"),Zp=[],ou=0,au=1,ao=2,kr=3,su=4,so=5,$r=6;function Rr(e,t,n,r,i,o){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;e0(e,n,{name:t,index:r,group:i,on:Hp,tween:Zp,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ou})}function uo(e,t){var n=ft(e,t);if(n.state>ou)throw new Error("too late; already scheduled");return n}function xt(e,t){var n=ft(e,t);if(n.state>kr)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 e0(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=nu(o,0,n.time);function o(l){n.state=au,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!==au)return u();for(c in r)if(h=r[c],h.name===n.name){if(h.state===kr)return iu(a);h.state===su?(h.state=$r,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete r[c]):+c<t&&(h.state=$r,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete r[c])}if(iu(function(){n.state===kr&&(n.state=su,n.timer.restart(s,n.delay,n.time),s(l))}),n.state=ao,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ao){for(n.state=kr,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=so,1),d=-1,f=i.length;++d<f;)i[d].call(e,c);n.state===so&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=$r,n.timer.stop(),delete r[t];for(var l in r)return;delete e.__transition}}function Lr(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>ao&&r.state<so,r.state=$r,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}o&&delete e.__transition}}function t0(e){return this.each(function(){Lr(this,e)})}function n0(e,t){var n,r;return function(){var i=xt(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 r0(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var o=xt(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 i0(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?n0:r0)(n,e,t))}function lo(e,t,n){var r=e._id;return e.each(function(){var i=xt(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return ft(i,r).value[t]}}function uu(e,t){var n;return(typeof t=="number"?It:t instanceof Fn?Ws:(n=Fn(t))?(t=n,Ws):Pp)(e,t)}function o0(e){return function(){this.removeAttribute(e)}}function a0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function s0(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 u0(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 l0(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 f0(e,t){var n=kn(e),r=n==="transform"?qp:uu;return this.attrTween(e,typeof t=="function"?(n.local?c0:l0)(n,r,lo(this,"attr."+e,t)):t==null?(n.local?a0:o0)(n):(n.local?u0:s0)(n,r,t))}function d0(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function h0(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function p0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&h0(e,o)),n}return i._value=t,i}function g0(e,t){var n,r;function i(){var o=t.apply(this,arguments);return o!==r&&(n=(r=o)&&d0(e,o)),n}return i._value=t,i}function m0(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=kn(e);return this.tween(n,(r.local?p0:g0)(r,t))}function v0(e,t){return function(){uo(this,e).delay=+t.apply(this,arguments)}}function y0(e,t){return t=+t,function(){uo(this,e).delay=t}}function _0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?v0:y0)(t,e)):ft(this.node(),t).delay}function b0(e,t){return function(){xt(this,e).duration=+t.apply(this,arguments)}}function x0(e,t){return t=+t,function(){xt(this,e).duration=t}}function M0(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?b0:x0)(t,e)):ft(this.node(),t).duration}function w0(e,t){if(typeof t!="function")throw new Error;return function(){xt(this,e).ease=t}}function N0(e){var t=this._id;return arguments.length?this.each(w0(t,e)):ft(this.node(),t).ease}function T0(e){typeof e!="function"&&(e=Fi(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 Mt(r,this._parents,this._name,this._id)}function E0(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 Mt(a,this._parents,this._name,this._id)}function D0(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 O0(e,t,n){var r,i,o=D0(t)?uo:xt;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}function C0(e,t){var n=this._id;return arguments.length<2?ft(this.node(),n).on.on(e):this.each(O0(n,e,t))}function S0(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function A0(){return this.on("end.remove",S0(this._id))}function I0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=wr(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,Rr(l[f],t,n,f,l,ft(c,n)));return new Mt(o,this._parents,t,n)}function z0(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Pi(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,y=ft(c,n),p=0,m=f.length;p<m;++p)(h=f[p])&&Rr(h,t,n,p,f,y);o.push(f),a.push(c)}return new Mt(o,a,t,n)}var j0=rn.prototype.constructor;function k0(){return new j0(this._groups,this._parents)}function $0(e,t){var n,r,i;return function(){var o=Vt(this,e),a=(this.style.removeProperty(e),Vt(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}function lu(e){return function(){this.style.removeProperty(e)}}function R0(e,t,n){var r,i=n+"",o;return function(){var a=Vt(this,e);return a===i?null:a===r?o:o=t(r=a,n)}}function L0(e,t,n){var r,i,o;return function(){var a=Vt(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Vt(this,e))),a===u?null:a===r&&u===i?o:(i=u,o=t(r=a,s))}}function P0(e,t){var n,r,i,o="style."+t,a="end."+o,s;return function(){var u=xt(this,e),l=u.on,c=u.value[o]==null?s||(s=lu(t)):void 0;(l!==n||i!==c)&&(r=(n=l).copy()).on(a,i=c),u.on=r}}function F0(e,t,n){var r=(e+="")=="transform"?Yp:uu;return t==null?this.styleTween(e,$0(e,r)).on("end.style."+e,lu(e)):typeof t=="function"?this.styleTween(e,L0(e,r,lo(this,"style."+e,t))).each(P0(this._id,e)):this.styleTween(e,R0(e,r,t),n).on("end.style."+e,null)}function U0(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Y0(e,t,n){var r,i;function o(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&U0(e,a,n)),r}return o._value=t,o}function q0(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,Y0(e,t,n==null?"":n))}function V0(e){return function(){this.textContent=e}}function B0(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function Q0(e){return this.tween("text",typeof e=="function"?B0(lo(this,"text",e)):V0(e==null?"":e+""))}function W0(e){return function(t){this.textContent=e.call(this,t)}}function G0(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&W0(i)),t}return r._value=e,r}function K0(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,G0(e))}function X0(){for(var e=this._name,t=this._id,n=cu(),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);Rr(u,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Mt(r,this._parents,e,n)}function J0(){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=xt(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 H0=0;function Mt(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function cu(){return++H0}var sn=rn.prototype;Mt.prototype={constructor:Mt,select:I0,selectAll:z0,filter:T0,merge:E0,selection:k0,transition:X0,call:sn.call,nodes:sn.nodes,node:sn.node,size:sn.size,empty:sn.empty,each:sn.each,on:C0,attr:f0,attrTween:m0,style:F0,styleTween:q0,text:Q0,textTween:K0,remove:A0,tween:i0,delay:_0,duration:M0,ease:N0,end:J0};function Z0(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var co={time:null,delay:0,duration:250,ease:Z0};function eg(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return co.time=zr(),co;return n}function tg(e){var t,n;e instanceof Mt?(t=e._id,e=e._name):(t=cu(),(n=co).time=zr(),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])&&Rr(u,e,t,l,a,n||eg(u,t));return new Mt(r,this._parents,e,t)}rn.prototype.interrupt=t0,rn.prototype.transition=tg;function Pr(e){return function(){return e}}function ng(e,t,n){this.target=e,this.type=t,this.transform=n}function wt(e,t,n){this.k=e,this.x=t,this.y=n}wt.prototype={constructor:wt,scale:function(e){return e===1?this:new wt(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new wt(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 Fr=new wt(1,0,0);fu.prototype=wt.prototype;function fu(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Fr;return e.__zoom}function fo(){ce.stopImmediatePropagation()}function Wn(){ce.preventDefault(),ce.stopImmediatePropagation()}function rg(){return!ce.ctrlKey&&!ce.button}function ig(){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 du(){return this.__zoom||Fr}function og(){return-ce.deltaY*(ce.deltaMode===1?.05:ce.deltaMode?1:.002)}function ag(){return navigator.maxTouchPoints||"ontouchstart"in this}function sg(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 ug(){var e=rg,t=ig,n=sg,r=og,i=ag,o=[0,1/0],a=[[-1/0,-1/0],[1/0,1/0]],s=250,u=Wp,l=Gi("start","zoom","end"),c,d,f=500,h=150,y=0;function p(g){g.property("__zoom",du).on("wheel.zoom",O).on("mousedown.zoom",A).on("dblclick.zoom",D).filter(i).on("touchstart.zoom",C).on("touchmove.zoom",T).on("touchend.zoom touchcancel.zoom",I).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}p.transform=function(g,w,z){var $=g.selection?g.selection():g;$.property("__zoom",du),g!==$?N(g,w,z):$.interrupt().each(function(){b(this,arguments).start().zoom(null,typeof w=="function"?w.apply(this,arguments):w).end()})},p.scaleBy=function(g,w,z){p.scaleTo(g,function(){var $=this.__zoom.k,L=typeof w=="function"?w.apply(this,arguments):w;return $*L},z)},p.scaleTo=function(g,w,z){p.transform(g,function(){var $=t.apply(this,arguments),L=this.__zoom,U=z==null?M($):typeof z=="function"?z.apply(this,arguments):z,B=L.invert(U),ne=typeof w=="function"?w.apply(this,arguments):w;return n(x(m(L,ne),U,B),$,a)},z)},p.translateBy=function(g,w,z){p.transform(g,function(){return n(this.__zoom.translate(typeof w=="function"?w.apply(this,arguments):w,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),a)})},p.translateTo=function(g,w,z,$){p.transform(g,function(){var L=t.apply(this,arguments),U=this.__zoom,B=$==null?M(L):typeof $=="function"?$.apply(this,arguments):$;return n(Fr.translate(B[0],B[1]).scale(U.k).translate(typeof w=="function"?-w.apply(this,arguments):-w,typeof z=="function"?-z.apply(this,arguments):-z),L,a)},$)};function m(g,w){return w=Math.max(o[0],Math.min(o[1],w)),w===g.k?g:new wt(w,g.x,g.y)}function x(g,w,z){var $=w[0]-z[0]*g.k,L=w[1]-z[1]*g.k;return $===g.x&&L===g.y?g:new wt(g.k,$,L)}function M(g){return[(+g[0][0]+ +g[1][0])/2,(+g[0][1]+ +g[1][1])/2]}function N(g,w,z){g.on("start.zoom",function(){b(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){b(this,arguments).end()}).tween("zoom",function(){var $=this,L=arguments,U=b($,L),B=t.apply($,L),ne=z==null?M(B):typeof z=="function"?z.apply($,L):z,S=Math.max(B[1][0]-B[0][0],B[1][1]-B[0][1]),R=$.__zoom,W=typeof w=="function"?w.apply($,L):w,G=u(R.invert(ne).concat(S/R.k),W.invert(ne).concat(S/W.k));return function(q){if(q===1)q=W;else{var H=G(q),K=S/H[2];q=new wt(K,ne[0]-H[0]*K,ne[1]-H[1]*K)}U.zoom(null,q)}})}function b(g,w,z){return!z&&g.__zooming||new v(g,w)}function v(g,w){this.that=g,this.args=w,this.active=0,this.extent=t.apply(g,w),this.taps=0}v.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){Is(new ng(p,g,this.that.__zoom),l.apply,l,[g,this.that,this.args])}};function O(){if(!e.apply(this,arguments))return;var g=b(this,arguments),w=this.__zoom,z=Math.max(o[0],Math.min(o[1],w.k*Math.pow(2,r.apply(this,arguments)))),$=$n(this);if(g.wheel)(g.mouse[0][0]!==$[0]||g.mouse[0][1]!==$[1])&&(g.mouse[1]=w.invert(g.mouse[0]=$)),clearTimeout(g.wheel);else{if(w.k===z)return;g.mouse=[$,w.invert($)],Lr(this),g.start()}Wn(),g.wheel=setTimeout(L,h),g.zoom("mouse",n(x(m(w,z),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(ce.view).on("mousemove.zoom",U,!0).on("mouseup.zoom",B,!0),z=$n(this),$=ce.clientX,L=ce.clientY;Mp(ce.view),fo(),g.mouse=[z,this.__zoom.invert(z)],Lr(this),g.start();function U(){if(Wn(),!g.moved){var ne=ce.clientX-$,S=ce.clientY-L;g.moved=ne*ne+S*S>y}g.zoom("mouse",n(x(g.that.__zoom,g.mouse[0]=$n(g.that),g.mouse[1]),g.extent,a))}function B(){w.on("mousemove.zoom mouseup.zoom",null),wp(ce.view,g.moved),Wn(),g.end()}}function D(){if(!!e.apply(this,arguments)){var g=this.__zoom,w=$n(this),z=g.invert(w),$=g.k*(ce.shiftKey?.5:2),L=n(x(m(g,$),w,z),t.apply(this,arguments),a);Wn(),s>0?At(this).transition().duration(s).call(N,L,w):At(this).call(p.transform,L)}}function C(){if(!!e.apply(this,arguments)){var g=ce.touches,w=g.length,z=b(this,arguments,ce.changedTouches.length===w),$,L,U,B;for(fo(),L=0;L<w;++L)U=g[L],B=Qi(this,g,U.identifier),B=[B,this.__zoom.invert(B),U.identifier],z.touch0?!z.touch1&&z.touch0[2]!==B[2]&&(z.touch1=B,z.taps=0):(z.touch0=B,$=!0,z.taps=1+!!c);c&&(c=clearTimeout(c)),$&&(z.taps<2&&(c=setTimeout(function(){c=null},f)),Lr(this),z.start())}}function T(){if(!!this.__zooming){var g=b(this,arguments),w=ce.changedTouches,z=w.length,$,L,U,B;for(Wn(),c&&(c=clearTimeout(c)),g.taps=0,$=0;$<z;++$)L=w[$],U=Qi(this,w,L.identifier),g.touch0&&g.touch0[2]===L.identifier?g.touch0[0]=U:g.touch1&&g.touch1[2]===L.identifier&&(g.touch1[0]=U);if(L=g.that.__zoom,g.touch1){var ne=g.touch0[0],S=g.touch0[1],R=g.touch1[0],W=g.touch1[1],G=(G=R[0]-ne[0])*G+(G=R[1]-ne[1])*G,q=(q=W[0]-S[0])*q+(q=W[1]-S[1])*q;L=m(L,Math.sqrt(G/q)),U=[(ne[0]+R[0])/2,(ne[1]+R[1])/2],B=[(S[0]+W[0])/2,(S[1]+W[1])/2]}else if(g.touch0)U=g.touch0[0],B=g.touch0[1];else return;g.zoom("touch",n(x(L,U,B),g.extent,a))}}function I(){if(!!this.__zooming){var g=b(this,arguments),w=ce.changedTouches,z=w.length,$,L;for(fo(),d&&clearTimeout(d),d=setTimeout(function(){d=null},f),$=0;$<z;++$)L=w[$],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 U=At(this).on("dblclick.zoom");U&&U.apply(this,arguments)}}}return p.wheelDelta=function(g){return arguments.length?(r=typeof g=="function"?g:Pr(+g),p):r},p.filter=function(g){return arguments.length?(e=typeof g=="function"?g:Pr(!!g),p):e},p.touchable=function(g){return arguments.length?(i=typeof g=="function"?g:Pr(!!g),p):i},p.extent=function(g){return arguments.length?(t=typeof g=="function"?g:Pr([[+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?(y=(g=+g)*g,p):Math.sqrt(y)},p}const lg=St(Object.freeze(Object.defineProperty({__proto__:null,zoom:ug,zoomTransform:fu,zoomIdentity:Fr},Symbol.toStringTag,{value:"Module"})));var hu={},pu=Object.prototype.hasOwnProperty;function ho(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--&&ho(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(pu.call(e,n)&&++r&&!pu.call(t,n)||!(n in t)||!ho(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}hu.dequal=ho;var gu={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,y,p,m){typeof h=="object"&&(y=h.depth,p=h.prototype,m=h.includeNonEnumerable,h=h.circular);var x=[],M=[],N=typeof Buffer<"u";typeof h>"u"&&(h=!0),typeof y>"u"&&(y=1/0);function b(v,O){if(v===null)return null;if(O===0)return v;var A,D;if(typeof v!="object")return v;if(n(v,r))A=new r;else if(n(v,i))A=new i;else if(n(v,o))A=new o(function(U,B){v.then(function(ne){U(b(ne,O-1))},function(ne){B(b(ne,O-1))})});else if(a.__isArray(v))A=[];else if(a.__isRegExp(v))A=new RegExp(v.source,d(v)),v.lastIndex&&(A.lastIndex=v.lastIndex);else if(a.__isDate(v))A=new Date(v.getTime());else{if(N&&Buffer.isBuffer(v))return Buffer.allocUnsafe?A=Buffer.allocUnsafe(v.length):A=new Buffer(v.length),v.copy(A),A;n(v,Error)?A=Object.create(v):typeof p>"u"?(D=Object.getPrototypeOf(v),A=Object.create(D)):(A=Object.create(p),D=p)}if(h){var C=x.indexOf(v);if(C!=-1)return M[C];x.push(v),M.push(A)}n(v,r)&&v.forEach(function(U,B){var ne=b(B,O-1),S=b(U,O-1);A.set(ne,S)}),n(v,i)&&v.forEach(function(U){var B=b(U,O-1);A.add(B)});for(var T in v){var I;D&&(I=Object.getOwnPropertyDescriptor(D,T)),!(I&&I.set==null)&&(A[T]=b(v[T],O-1))}if(Object.getOwnPropertySymbols)for(var g=Object.getOwnPropertySymbols(v),T=0;T<g.length;T++){var w=g[T],z=Object.getOwnPropertyDescriptor(v,w);z&&!z.enumerable&&!m||(A[w]=b(v[w],O-1),z.enumerable||Object.defineProperty(A,w,{enumerable:!1}))}if(m)for(var $=Object.getOwnPropertyNames(v),T=0;T<$.length;T++){var L=$[T],z=Object.getOwnPropertyDescriptor(v,L);z&&z.enumerable||(A[L]=b(v[L],O-1),Object.defineProperty(A,L,{enumerable:!1}))}return A}return b(f,y)}a.clonePrototype=function(h){if(h===null)return null;var y=function(){};return y.prototype=h,new y};function s(f){return Object.prototype.toString.call(f)}a.__objToStr=s;function 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)})(gu);var Ur,cg=new Uint8Array(16);function mu(){if(!Ur&&(Ur=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ur))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ur(cg)}const fg=/^(?:[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 Yr(e){return typeof e=="string"&&fg.test(e)}for(var Ae=[],po=0;po<256;++po)Ae.push((po+256).toString(16).substr(1));function qr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Ae[e[t+0]]+Ae[e[t+1]]+Ae[e[t+2]]+Ae[e[t+3]]+"-"+Ae[e[t+4]]+Ae[e[t+5]]+"-"+Ae[e[t+6]]+Ae[e[t+7]]+"-"+Ae[e[t+8]]+Ae[e[t+9]]+"-"+Ae[e[t+10]]+Ae[e[t+11]]+Ae[e[t+12]]+Ae[e[t+13]]+Ae[e[t+14]]+Ae[e[t+15]]).toLowerCase();if(!Yr(n))throw TypeError("Stringified UUID is invalid");return n}var vu,go,mo=0,vo=0;function dg(e,t,n){var r=t&&n||0,i=t||new Array(16);e=e||{};var o=e.node||vu,a=e.clockseq!==void 0?e.clockseq:go;if(o==null||a==null){var s=e.random||(e.rng||mu)();o==null&&(o=vu=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=go=(s[6]<<8|s[7])&16383)}var u=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:vo+1,c=u-mo+(l-vo)/1e4;if(c<0&&e.clockseq===void 0&&(a=a+1&16383),(c<0||u>mo)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");mo=u,vo=l,go=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||qr(i)}function yu(e){if(!Yr(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 hg(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var pg="6ba7b810-9dad-11d1-80b4-00c04fd430c8",gg="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function _u(e,t,n){function r(i,o,a,s){if(typeof i=="string"&&(i=hg(i)),typeof o=="string"&&(o=yu(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 qr(u)}try{r.name=e}catch{}return r.DNS=pg,r.URL=gg,r}function mg(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 vg(yg(_g(e),e.length*8))}function vg(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 bu(e){return(e+64>>>9<<4)+14+1}function yg(e,t){e[t>>5]|=128<<t%32,e[bu(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=ze(n,r,i,o,e[a],7,-680876936),o=ze(o,n,r,i,e[a+1],12,-389564586),i=ze(i,o,n,r,e[a+2],17,606105819),r=ze(r,i,o,n,e[a+3],22,-1044525330),n=ze(n,r,i,o,e[a+4],7,-176418897),o=ze(o,n,r,i,e[a+5],12,1200080426),i=ze(i,o,n,r,e[a+6],17,-1473231341),r=ze(r,i,o,n,e[a+7],22,-45705983),n=ze(n,r,i,o,e[a+8],7,1770035416),o=ze(o,n,r,i,e[a+9],12,-1958414417),i=ze(i,o,n,r,e[a+10],17,-42063),r=ze(r,i,o,n,e[a+11],22,-1990404162),n=ze(n,r,i,o,e[a+12],7,1804603682),o=ze(o,n,r,i,e[a+13],12,-40341101),i=ze(i,o,n,r,e[a+14],17,-1502002290),r=ze(r,i,o,n,e[a+15],22,1236535329),n=je(n,r,i,o,e[a+1],5,-165796510),o=je(o,n,r,i,e[a+6],9,-1069501632),i=je(i,o,n,r,e[a+11],14,643717713),r=je(r,i,o,n,e[a],20,-373897302),n=je(n,r,i,o,e[a+5],5,-701558691),o=je(o,n,r,i,e[a+10],9,38016083),i=je(i,o,n,r,e[a+15],14,-660478335),r=je(r,i,o,n,e[a+4],20,-405537848),n=je(n,r,i,o,e[a+9],5,568446438),o=je(o,n,r,i,e[a+14],9,-1019803690),i=je(i,o,n,r,e[a+3],14,-187363961),r=je(r,i,o,n,e[a+8],20,1163531501),n=je(n,r,i,o,e[a+13],5,-1444681467),o=je(o,n,r,i,e[a+2],9,-51403784),i=je(i,o,n,r,e[a+7],14,1735328473),r=je(r,i,o,n,e[a+12],20,-1926607734),n=ke(n,r,i,o,e[a+5],4,-378558),o=ke(o,n,r,i,e[a+8],11,-2022574463),i=ke(i,o,n,r,e[a+11],16,1839030562),r=ke(r,i,o,n,e[a+14],23,-35309556),n=ke(n,r,i,o,e[a+1],4,-1530992060),o=ke(o,n,r,i,e[a+4],11,1272893353),i=ke(i,o,n,r,e[a+7],16,-155497632),r=ke(r,i,o,n,e[a+10],23,-1094730640),n=ke(n,r,i,o,e[a+13],4,681279174),o=ke(o,n,r,i,e[a],11,-358537222),i=ke(i,o,n,r,e[a+3],16,-722521979),r=ke(r,i,o,n,e[a+6],23,76029189),n=ke(n,r,i,o,e[a+9],4,-640364487),o=ke(o,n,r,i,e[a+12],11,-421815835),i=ke(i,o,n,r,e[a+15],16,530742520),r=ke(r,i,o,n,e[a+2],23,-995338651),n=$e(n,r,i,o,e[a],6,-198630844),o=$e(o,n,r,i,e[a+7],10,1126891415),i=$e(i,o,n,r,e[a+14],15,-1416354905),r=$e(r,i,o,n,e[a+5],21,-57434055),n=$e(n,r,i,o,e[a+12],6,1700485571),o=$e(o,n,r,i,e[a+3],10,-1894986606),i=$e(i,o,n,r,e[a+10],15,-1051523),r=$e(r,i,o,n,e[a+1],21,-2054922799),n=$e(n,r,i,o,e[a+8],6,1873313359),o=$e(o,n,r,i,e[a+15],10,-30611744),i=$e(i,o,n,r,e[a+6],15,-1560198380),r=$e(r,i,o,n,e[a+13],21,1309151649),n=$e(n,r,i,o,e[a+4],6,-145523070),o=$e(o,n,r,i,e[a+11],10,-1120210379),i=$e(i,o,n,r,e[a+2],15,718787259),r=$e(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 _g(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(bu(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 bg(e,t){return e<<t|e>>>32-t}function Vr(e,t,n,r,i,o){return zt(bg(zt(zt(t,e),zt(r,o)),i),n)}function ze(e,t,n,r,i,o,a){return Vr(t&n|~t&r,e,t,i,o,a)}function je(e,t,n,r,i,o,a){return Vr(t&r|n&~r,e,t,i,o,a)}function ke(e,t,n,r,i,o,a){return Vr(t^n^r,e,t,i,o,a)}function $e(e,t,n,r,i,o,a){return Vr(n^(t|~r),e,t,i,o,a)}var xg=_u("v3",48,mg);const Mg=xg;function wg(e,t,n){e=e||{};var r=e.random||(e.rng||mu)();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 qr(r)}function Ng(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 yo(e,t){return e<<t|e>>>32-t}function Tg(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 y=16;y<80;++y)f[y]=yo(f[y-3]^f[y-8]^f[y-14]^f[y-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 v=Math.floor(b/20),O=yo(p,5)+Ng(v,m,x,M)+N+t[v]+f[b]>>>0;N=M,M=x,x=yo(m,30)>>>0,m=p,p=O}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 Eg=_u("v5",80,Tg);const Dg=Eg,Og="00000000-0000-0000-0000-000000000000";function Cg(e){if(!Yr(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const Sg=St(Object.freeze(Object.defineProperty({__proto__:null,v1:dg,v3:Mg,v4:wg,v5:Dg,NIL:Og,version:Cg,validate:Yr,stringify:qr,parse:yu},Symbol.toStringTag,{value:"Module"})));var _o={},bo={exports:{}},se={exports:{}},xo={exports:{}},he={};/** @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
|
|
34
|
+
*/var xu;function Ag(){if(xu)return he;xu=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,y=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(v){if(typeof v=="object"&&v!==null){var O=v.$$typeof;switch(O){case t:switch(v=v.type,v){case u:case l:case r:case o:case i:case d:return v;default:switch(v=v&&v.$$typeof,v){case s:case c:case y:case h:case a:return v;default:return O}}case n:return O}}}function b(v){return N(v)===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=y,he.Memo=h,he.Portal=n,he.Profiler=o,he.StrictMode=i,he.Suspense=d,he.isAsyncMode=function(v){return b(v)||N(v)===u},he.isConcurrentMode=b,he.isContextConsumer=function(v){return N(v)===s},he.isContextProvider=function(v){return N(v)===a},he.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===t},he.isForwardRef=function(v){return N(v)===c},he.isFragment=function(v){return N(v)===r},he.isLazy=function(v){return N(v)===y},he.isMemo=function(v){return N(v)===h},he.isPortal=function(v){return N(v)===n},he.isProfiler=function(v){return N(v)===o},he.isStrictMode=function(v){return N(v)===i},he.isSuspense=function(v){return N(v)===d},he.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===r||v===l||v===o||v===i||v===d||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===y||v.$$typeof===h||v.$$typeof===a||v.$$typeof===s||v.$$typeof===c||v.$$typeof===m||v.$$typeof===x||v.$$typeof===M||v.$$typeof===p)},he.typeOf=N,he}var pe={};/** @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
|
|
41
|
+
*/var Mu;function Ig(){return Mu||(Mu=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,y=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===y||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 Fe=P.$$typeof;switch(Fe){case t:var Q=P.type;switch(Q){case u:case l:case r:case o:case i:case d:return Q;default:var rt=Q&&Q.$$typeof;switch(rt){case s:case c:case y:case h:case a:return rt;default:return Fe}}case n:return Fe}}}var v=u,O=l,A=s,D=a,C=t,T=c,I=r,g=y,w=h,z=n,$=o,L=i,U=d,B=!1;function ne(P){return B||(B=!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.")),S(P)||b(P)===u}function S(P){return b(P)===l}function R(P){return b(P)===s}function W(P){return b(P)===a}function G(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function q(P){return b(P)===c}function H(P){return b(P)===r}function K(P){return b(P)===y}function J(P){return b(P)===h}function ee(P){return b(P)===n}function re(P){return b(P)===o}function te(P){return b(P)===i}function Ce(P){return b(P)===d}pe.AsyncMode=v,pe.ConcurrentMode=O,pe.ContextConsumer=A,pe.ContextProvider=D,pe.Element=C,pe.ForwardRef=T,pe.Fragment=I,pe.Lazy=g,pe.Memo=w,pe.Portal=z,pe.Profiler=$,pe.StrictMode=L,pe.Suspense=U,pe.isAsyncMode=ne,pe.isConcurrentMode=S,pe.isContextConsumer=R,pe.isContextProvider=W,pe.isElement=G,pe.isForwardRef=q,pe.isFragment=H,pe.isLazy=K,pe.isMemo=J,pe.isPortal=ee,pe.isProfiler=re,pe.isStrictMode=te,pe.isSuspense=Ce,pe.isValidElementType=N,pe.typeOf=b}()),pe}var wu;function Nu(){return wu||(wu=1,function(e){process.env.NODE_ENV==="production"?e.exports=Ag():e.exports=Ig()}(xo)),xo.exports}/*
|
|
42
42
|
object-assign
|
|
43
43
|
(c) Sindre Sorhus
|
|
44
44
|
@license MIT
|
|
45
|
-
*/var
|
|
46
|
-
Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=Ce(J,te,q,H,K+"."+te,n);if(P)return P}return null}return m(R)}function z(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(z);if(S===null||s(S))return!0;var R=d(S);if(R){var W=R.call(S),G;if(R!==S.entries){for(;!(G=W.next()).done;)if(!z(G.value))return!1}else for(;!(G=W.next()).done;){var q=G.value;if(q&&!z(q[1]))return!1}}else return!1;return!0;default:return!1}}function $(S,R){return S==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function L(S){var R=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":$(R,S)?"symbol":R}function U(S){if(typeof S>"u"||S===null)return""+S;var R=L(S);if(R==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return R}function B(S){var R=U(S);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function ne(S){return!S.constructor||!S.constructor.name?f:S.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},
|
|
45
|
+
*/var Mo,Tu;function zg(){if(Tu)return Mo;Tu=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 Mo=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},Mo}var wo,Eu;function No(){if(Eu)return wo;Eu=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return wo=e,wo}var To,Du;function Ou(){return Du||(Du=1,To=Function.call.bind(Object.prototype.hasOwnProperty)),To}var Eo,Cu;function jg(){if(Cu)return Eo;Cu=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=No(),n={},r=Ou();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(y){d=y}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={})},Eo=i,Eo}var Do,Su;function kg(){if(Su)return Do;Su=1;var e=Nu(),t=zg(),n=No(),r=Ou(),i=jg(),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 Do=function(s,u){var l=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function d(S){var R=S&&(l&&S[l]||S[c]);if(typeof R=="function")return R}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:v(),instanceOf:O,node:T(),objectOf:D,oneOf:A,oneOfType:C,shape:g,exact:w};function y(S,R){return S===R?S!==0||1/S===1/R:S!==S&&R!==R}function p(S,R){this.message=S,this.data=R&&typeof R=="object"?R:{},this.stack=""}p.prototype=Error.prototype;function m(S){if(process.env.NODE_ENV!=="production")var R={},W=0;function G(H,K,J,ee,re,te,Ce){if(ee=ee||f,te=te||J,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 Fe=ee+":"+J;!R[Fe]&&W<3&&(o("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+ee+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),R[Fe]=!0,W++)}}return K[J]==null?H?K[J]===null?new p("The "+re+" `"+te+"` is marked as required "+("in `"+ee+"`, but its value is `null`.")):new p("The "+re+" `"+te+"` is marked as required in "+("`"+ee+"`, but its value is `undefined`.")):null:S(K,J,ee,re,te)}var q=G.bind(null,!1);return q.isRequired=G.bind(null,!0),q}function x(S){function R(W,G,q,H,K,J){var ee=W[G],re=L(ee);if(re!==S){var te=U(ee);return new p("Invalid "+H+" `"+K+"` of type "+("`"+te+"` supplied to `"+q+"`, expected ")+("`"+S+"`."),{expectedType:S})}return null}return m(R)}function M(){return m(a)}function N(S){function R(W,G,q,H,K){if(typeof S!="function")return new p("Property `"+K+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var J=W[G];if(!Array.isArray(J)){var ee=L(J);return new p("Invalid "+H+" `"+K+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an array."))}for(var re=0;re<J.length;re++){var te=S(J,re,q,H,K+"["+re+"]",n);if(te instanceof Error)return te}return null}return m(R)}function b(){function S(R,W,G,q,H){var K=R[W];if(!s(K)){var J=L(K);return new p("Invalid "+q+" `"+H+"` of type "+("`"+J+"` supplied to `"+G+"`, expected a single ReactElement."))}return null}return m(S)}function v(){function S(R,W,G,q,H){var K=R[W];if(!e.isValidElementType(K)){var J=L(K);return new p("Invalid "+q+" `"+H+"` of type "+("`"+J+"` supplied to `"+G+"`, expected a single ReactElement type."))}return null}return m(S)}function O(S){function R(W,G,q,H,K){if(!(W[G]instanceof S)){var J=S.name||f,ee=ne(W[G]);return new p("Invalid "+H+" `"+K+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected ")+("instance of `"+J+"`."))}return null}return m(R)}function A(S){if(!Array.isArray(S))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 R(W,G,q,H,K){for(var J=W[G],ee=0;ee<S.length;ee++)if(y(J,S[ee]))return null;var re=JSON.stringify(S,function(Ce,P){var Fe=U(P);return Fe==="symbol"?String(P):P});return new p("Invalid "+H+" `"+K+"` of value `"+String(J)+"` "+("supplied to `"+q+"`, expected one of "+re+"."))}return m(R)}function D(S){function R(W,G,q,H,K){if(typeof S!="function")return new p("Property `"+K+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var J=W[G],ee=L(J);if(ee!=="object")return new p("Invalid "+H+" `"+K+"` of type "+("`"+ee+"` supplied to `"+q+"`, expected an object."));for(var re in J)if(r(J,re)){var te=S(J,re,q,H,K+"."+re,n);if(te instanceof Error)return te}return null}return m(R)}function C(S){if(!Array.isArray(S))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var R=0;R<S.length;R++){var W=S[R];if(typeof W!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+B(W)+" at index "+R+"."),a}function G(q,H,K,J,ee){for(var re=[],te=0;te<S.length;te++){var Ce=S[te],P=Ce(q,H,K,J,ee,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&re.push(P.data.expectedType)}var Fe=re.length>0?", expected one of type ["+re.join(", ")+"]":"";return new p("Invalid "+J+" `"+ee+"` supplied to "+("`"+K+"`"+Fe+"."))}return m(G)}function T(){function S(R,W,G,q,H){return z(R[W])?null:new p("Invalid "+q+" `"+H+"` supplied to "+("`"+G+"`, expected a ReactNode."))}return m(S)}function I(S,R,W,G,q){return new p((S||"React class")+": "+R+" type `"+W+"."+G+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function g(S){function R(W,G,q,H,K){var J=W[G],ee=L(J);if(ee!=="object")return new p("Invalid "+H+" `"+K+"` of type `"+ee+"` "+("supplied to `"+q+"`, expected `object`."));for(var re in S){var te=S[re];if(typeof te!="function")return I(q,H,K,re,U(te));var Ce=te(J,re,q,H,K+"."+re,n);if(Ce)return Ce}return null}return m(R)}function w(S){function R(W,G,q,H,K){var J=W[G],ee=L(J);if(ee!=="object")return new p("Invalid "+H+" `"+K+"` of type `"+ee+"` "+("supplied to `"+q+"`, expected `object`."));var re=t({},W[G],S);for(var te in re){var Ce=S[te];if(r(S,te)&&typeof Ce!="function")return I(q,H,K,te,U(Ce));if(!Ce)return new p("Invalid "+H+" `"+K+"` key `"+te+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(W[G],null," ")+`
|
|
46
|
+
Valid keys: `+JSON.stringify(Object.keys(S),null," "));var P=Ce(J,te,q,H,K+"."+te,n);if(P)return P}return null}return m(R)}function z(S){switch(typeof S){case"number":case"string":case"undefined":return!0;case"boolean":return!S;case"object":if(Array.isArray(S))return S.every(z);if(S===null||s(S))return!0;var R=d(S);if(R){var W=R.call(S),G;if(R!==S.entries){for(;!(G=W.next()).done;)if(!z(G.value))return!1}else for(;!(G=W.next()).done;){var q=G.value;if(q&&!z(q[1]))return!1}}else return!1;return!0;default:return!1}}function $(S,R){return S==="symbol"?!0:R?R["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&R instanceof Symbol:!1}function L(S){var R=typeof S;return Array.isArray(S)?"array":S instanceof RegExp?"object":$(R,S)?"symbol":R}function U(S){if(typeof S>"u"||S===null)return""+S;var R=L(S);if(R==="object"){if(S instanceof Date)return"date";if(S instanceof RegExp)return"regexp"}return R}function B(S){var R=U(S);switch(R){case"array":case"object":return"an "+R;case"boolean":case"date":case"regexp":return"a "+R;default:return R}}function ne(S){return!S.constructor||!S.constructor.name?f:S.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Do}var Oo,Au;function $g(){if(Au)return Oo;Au=1;var e=No();function t(){}function n(){}return n.resetWarningCache=t,Oo=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},Oo}if(process.env.NODE_ENV!=="production"){var Rg=Nu(),Lg=!0;se.exports=kg()(Rg.isElement,Lg)}else se.exports=$g()();var Br={exports:{}},Pg=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)}})},Iu=function(){};process.env.NODE_ENV!=="production"&&(Iu=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 Fg=Iu;function zu(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function ju(e){function t(n){var r=this.constructor.getDerivedStateFromProps(e,n);return r!=null?r:null}this.setState(t.bind(this))}function ku(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}}zu.__suppressDeprecationWarning=!0,ju.__suppressDeprecationWarning=!0,ku.__suppressDeprecationWarning=!0;function Ug(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(S),null," "));var P=Ce(J,te,q,H,K+"."+
|
|
|
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=Iu,t.componentWillReceiveProps=zu),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=ju;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 Yg=St(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Ug},Symbol.toStringTag,{value:"Module"})));var Qr={};Qr.__esModule=!0,Qr.getChildMapping=Vg,Qr.mergeChildMappings=Bg;var qg=it.default;function Vg(e){if(!e)return e;var t={};return qg.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function Bg(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 v=1;v<arguments.length;v++){var O=arguments[v];for(var A in O)Object.prototype.hasOwnProperty.call(O,A)&&(b[A]=O[A])}return b},r=Pg,i=h(r),o=it.default,a=h(o),s=se.exports,u=h(s),l=Fg,c=h(l),d=Yg,f=Qr;function h(b){return b&&b.__esModule?b:{default:b}}function y(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function p(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function m(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},M={component:"span",childFactory:function(v){return v}},N=function(b){m(v,b);function v(O,A){y(this,v);var E=p(this,b.call(this,O,A));return E.performAppear=function(C,T){E.currentlyTransitioningKeys[C]=!0,T.componentWillAppear?T.componentWillAppear(E._handleDoneAppearing.bind(E,C,T)):E._handleDoneAppearing(C,T)},E._handleDoneAppearing=function(C,T){T&&T.componentDidAppear&&T.componentDidAppear(),delete E.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(E.props.children);(!I||!I.hasOwnProperty(C))&&E.performLeave(C,T)},E.performEnter=function(C,T){E.currentlyTransitioningKeys[C]=!0,T.componentWillEnter?T.componentWillEnter(E._handleDoneEntering.bind(E,C,T)):E._handleDoneEntering(C,T)},E._handleDoneEntering=function(C,T){T&&T.componentDidEnter&&T.componentDidEnter(),delete E.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(E.props.children);(!I||!I.hasOwnProperty(C))&&E.performLeave(C,T)},E.performLeave=function(C,T){E.currentlyTransitioningKeys[C]=!0,T&&T.componentWillLeave?T.componentWillLeave(E._handleDoneLeaving.bind(E,C,T)):E._handleDoneLeaving(C,T)},E._handleDoneLeaving=function(C,T){T&&T.componentDidLeave&&T.componentDidLeave(),delete E.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(E.props.children);I&&I.hasOwnProperty(C)?E.keysToEnter.push(C):E.setState(function(g){var w=n({},g.children);return delete w[C],{children:w}})},E.childRefs=Object.create(null),E.currentlyTransitioningKeys={},E.keysToEnter=[],E.keysToLeave=[],E.state={children:(0,f.getChildMapping)(O.children)},E}return v.prototype.componentDidMount=function(){var A=this.state.children;for(var E in A)A[E]&&this.performAppear(E,this.childRefs[E])},v.getDerivedStateFromProps=function(A,E){var C=(0,f.getChildMapping)(A.children),T=E.children;return{children:(0,f.mergeChildMappings)(T,C)}},v.prototype.componentDidUpdate=function(A,E){var C=this,T=(0,f.getChildMapping)(this.props.children),I=E.children;for(var g in T){var w=I&&I.hasOwnProperty(g);T[g]&&!w&&!this.currentlyTransitioningKeys[g]&&this.keysToEnter.push(g)}for(var z in I){var $=T&&T.hasOwnProperty(z);I[z]&&!$&&!this.currentlyTransitioningKeys[z]&&this.keysToLeave.push(z)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(B){return C.performEnter(B,C.childRefs[B])});var U=this.keysToLeave;this.keysToLeave=[],U.forEach(function(B){return C.performLeave(B,C.childRefs[B])})},v.prototype.render=function(){var A=this,E=[],C=function(w){var z=A.state.children[w];if(z){var $=typeof z.ref!="string",L=A.props.childFactory(z),U=function(ne){A.childRefs[w]=ne};process.env.NODE_ENV!=="production"&&(0,c.default)($,"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===z&&$&&(U=(0,i.default)(z.ref,U)),E.push(a.default.cloneElement(L,{key:w,ref:U}))}};for(var T in this.state.children)C(T);var I=n({},this.props);return delete I.transitionLeave,delete I.transitionName,delete I.transitionAppear,delete I.transitionEnter,delete I.childFactory,delete I.transitionLeaveTimeout,delete I.transitionEnterTimeout,delete I.transitionAppearTimeout,delete I.component,a.default.createElement(this.props.component,I,E)},v}(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})(Br,Br.exports);var Oo={exports:{}},Co={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 Wr={exports:{}},ku;function Qg(){return ku||(ku=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}(Wr,Wr.exports)),Wr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=i;var r=n(Qg());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})(Co,Co.exports);function $u(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Wg=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=$u(t.className,n):t.setAttribute("class",$u(t.className&&t.className.baseVal||"",n))},So={exports:{}},Gr={exports:{}},Ru;function Lu(){return Ru||(Ru=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}(Gr,Gr.exports)),Gr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=void 0;var r=n(Lu()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,y){return h+(h?y[0].toUpperCase()+y.substr(1):y)+"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(),y=Math.max(0,16-(h-l)),p=setTimeout(f,y);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})(So,So.exports);var oe={},Gg=Ie.exports;oe.__esModule=!0,oe.default=oe.animationEnd=oe.animationDelay=oe.animationTiming=oe.animationDuration=oe.animationName=oe.transitionEnd=oe.transitionDuration=oe.transitionDelay=oe.transitionTiming=oe.transitionProperty=oe.transform=void 0;var Kg=Gg(Lu()),Kr="transform";oe.transform=Kr;var vt,Ao,Pu;oe.animationEnd=Pu,oe.transitionEnd=Ao;var Io,zo,jo,ko;oe.transitionDelay=ko,oe.transitionTiming=jo,oe.transitionDuration=zo,oe.transitionProperty=Io;var Fu,Uu,Yu,qu;if(oe.animationDelay=qu,oe.animationTiming=Yu,oe.animationDuration=Uu,oe.animationName=Fu,Kg.default){var $o=Jg();vt=$o.prefix,oe.transitionEnd=Ao=$o.transitionEnd,oe.animationEnd=Pu=$o.animationEnd,oe.transform=Kr=vt+"-"+Kr,oe.transitionProperty=Io=vt+"-transition-property",oe.transitionDuration=zo=vt+"-transition-duration",oe.transitionDelay=ko=vt+"-transition-delay",oe.transitionTiming=jo=vt+"-transition-timing-function",oe.animationName=Fu=vt+"-animation-name",oe.animationDuration=Uu=vt+"-animation-duration",oe.animationTiming=Yu=vt+"-animation-delay",oe.animationDelay=qu=vt+"-animation-timing-function"}var Xg={transform:Kr,end:Ao,property:Io,timing:jo,delay:ko,duration:zo};oe.default=Xg;function Jg(){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 un={};un.__esModule=!0,un.nameShape=void 0,un.transitionTimeout=em;var Hg=it.default;Vu(Hg);var Zg=se.exports,He=Vu(Zg);function Vu(e){return e&&e.__esModule?e:{default:e}}function em(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}}un.nameShape=He.default.oneOfType([He.default.string,He.default.shape({enter:He.default.string,leave:He.default.string,active:He.default.string}),He.default.shape({enter:He.default.string,enterActive:He.default.string,leave:He.default.string,leaveActive:He.default.string,appear:He.default.string,appearActive:He.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(E){for(var C=1;C<arguments.length;C++){var T=arguments[C];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(E[I]=T[I])}return E},r=Co.exports,i=m(r),o=Wg,a=m(o),s=So.exports,u=m(s),l=oe,c=it.default,d=m(c),f=se.exports,h=m(f),y=jf.default,p=un;function m(E){return E&&E.__esModule?E:{default:E}}function x(E,C){if(!(E instanceof C))throw new TypeError("Cannot call a class as a function")}function M(E,C){if(!E)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:E}function N(E,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);E.prototype=Object.create(C&&C.prototype,{constructor:{value:E,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(E,C):E.__proto__=C)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function v(E,C){return b.length?b.forEach(function(T){return E.addEventListener(T,C,!1)}):setTimeout(C,0),function(){!b.length||b.forEach(function(T){return E.removeEventListener(T,C,!1)})}}var O={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(E){N(C,E);function C(T,I){x(this,C);var g=M(this,E.call(this,T,I));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 C.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(I){clearTimeout(I)}),this.classNameAndNodeQueue.length=0},C.prototype.transition=function(I,g,w){var z=(0,y.findDOMNode)(this);if(!z){g&&g();return}var $=this.props.name[I]||this.props.name+"-"+I,L=this.props.name[I+"Active"]||$+"-active",U=null,B=void 0;(0,i.default)(z,$),this.queueClassAndNode(L,z);var ne=function(R){R&&R.target!==z||(clearTimeout(U),B&&B(),(0,a.default)(z,$),(0,a.default)(z,L),B&&B(),g&&g())};w?(U=setTimeout(ne,w),this.transitionTimeouts.push(U)):l.transitionEnd&&(B=v(z,ne))},C.prototype.queueClassAndNode=function(I,g){var w=this;this.classNameAndNodeQueue.push({className:I,node:g}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return w.flushClassNameAndNodeQueue()}))},C.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(I){I.node.scrollTop,(0,i.default)(I.node,I.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},C.prototype.render=function(){var I=n({},this.props);return delete I.name,delete I.appear,delete I.enter,delete I.leave,delete I.appearTimeout,delete I.enterTimeout,delete I.leaveTimeout,delete I.children,d.default.cloneElement(d.default.Children.only(this.props.children),I)},C}(d.default.Component);A.displayName="CSSTransitionGroupChild",A.propTypes=process.env.NODE_ENV!=="production"?O:{},t.default=A,e.exports=t.default}(Oo,Oo.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(N){for(var b=1;b<arguments.length;b++){var v=arguments[b];for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(N[O]=v[O])}return N},r=it.default,i=f(r),o=se.exports,a=f(o),s=Br.exports,u=f(s),l=Oo.exports,c=f(l),d=un;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 y(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 v,O,A;h(this,b);for(var E=arguments.length,C=Array(E),T=0;T<E;T++)C[T]=arguments[T];return A=(v=(O=y(this,N.call.apply(N,[this].concat(C))),O),O._wrapChild=function(I){return i.default.createElement(c.default,{name:O.props.transitionName,appear:O.props.transitionAppear,enter:O.props.transitionEnter,leave:O.props.transitionLeave,appearTimeout:O.props.transitionAppearTimeout,enterTimeout:O.props.transitionEnterTimeout,leaveTimeout:O.props.transitionLeaveTimeout},I)},v),y(O,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}(_o,_o.exports);var tm=_o.exports,nm=Bu(tm),rm=Br.exports,im=Bu(rm);function Bu(e){return e&&e.__esModule?e:{default:e}}var om={TransitionGroup:im.default,CSSTransitionGroup:nm.default},am=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yo,"__esModule",{value:!0});var Qu=am(it.default),sm=om,um=function(e){return e.enableLegacyTransitions?Qu.default.createElement(sm.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):Qu.default.createElement("g",{className:e.className,transform:e.transform},e.children)};yo.default=um;var Ro={},Lo={},Xr=we&&we.__assign||function(){return Xr=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},Xr.apply(this,arguments)},lm=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lo,"__esModule",{value:!0});var Qt=lm(it.default),cm=15,Wu={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},fm=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Qt.default.createElement(Qt.default.Fragment,null,Qt.default.createElement("circle",{r:cm,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Qt.default.createElement("g",{className:"rd3t-label"},Qt.default.createElement("text",Xr({className:"rd3t-label__title"},Wu.title),t.name),Qt.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 Qt.default.createElement("tspan",Xr({key:u+"-"+s},Wu.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};Lo.default=fm;var dm=we&&we.__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)}}(),Gu=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ro,"__esModule",{value:!0});var Ku=Gu(it.default),Xu=Qi,hm=Gu(Lo),pm=function(e){dm(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:hm.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?Xu.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(Xu.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 Ku.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}(Ku.default.Component);Ro.default=pm;var Po={},Fo=Math.PI,Uo=2*Fo,Wt=1e-6,gm=Uo-Wt;function Yo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ln(){return new Yo}Yo.prototype=ln.prototype={constructor:Yo,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>Wt)if(!(Math.abs(c*s-u*l)>Wt)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,y=s*s+u*u,p=f*f+h*h,m=Math.sqrt(y),x=Math.sqrt(d),M=i*Math.tan((Fo-Math.acos((y+d-p)/(2*m*x)))/2),N=M/x,b=M/m;Math.abs(N-1)>Wt&&(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)>Wt||Math.abs(this._y1-l)>Wt)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%Uo+Uo),d>gm?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Wt&&(this._+="A"+n+","+n+",0,"+ +(d>=Fo)+","+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 Ju=Math.abs,Re=Math.atan2,Gt=Math.cos,mm=Math.max,qo=Math.min,yt=Math.sin,cn=Math.sqrt,Le=1e-12,jt=Math.PI,Jr=jt/2,kt=2*jt;function vm(e){return e>1?0:e<-1?jt:Math.acos(e)}function Hu(e){return e>=1?Jr:e<=-1?-Jr:Math.asin(e)}function ym(e){return e.innerRadius}function _m(e){return e.outerRadius}function bm(e){return e.startAngle}function xm(e){return e.endAngle}function Mm(e){return e&&e.padAngle}function wm(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<Le))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function Hr(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/cn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,y=n+c,p=r+d,m=(f+y)/2,x=(h+p)/2,M=y-f,N=p-h,b=M*M+N*N,v=i-o,O=f*p-y*h,A=(N<0?-1:1)*cn(mm(0,v*v*b-O*O)),E=(O*N-M*A)/b,C=(-O*M-N*A)/b,T=(O*N+M*A)/b,I=(-O*M+N*A)/b,g=E-m,w=C-x,z=T-m,$=I-x;return g*g+w*w>z*z+$*$&&(E=T,C=I),{cx:E,cy:C,x01:-c,y01:-d,x11:E*(i/v-1),y11:C*(i/v-1)}}function Nm(){var e=ym,t=_m,n=ie(0),r=null,i=bm,o=xm,a=Mm,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-Jr,y=o.apply(this,arguments)-Jr,p=Ju(y-h),m=y>h;if(s||(s=l=ln()),f<d&&(c=f,f=d,d=c),!(f>Le))s.moveTo(0,0);else if(p>kt-Le)s.moveTo(f*Gt(h),f*yt(h)),s.arc(0,0,f,h,y,!m),d>Le&&(s.moveTo(d*Gt(y),d*yt(y)),s.arc(0,0,d,y,h,m));else{var x=h,M=y,N=h,b=y,v=p,O=p,A=a.apply(this,arguments)/2,E=A>Le&&(r?+r.apply(this,arguments):cn(d*d+f*f)),C=qo(Ju(f-d)/2,+n.apply(this,arguments)),T=C,I=C,g,w;if(E>Le){var z=Hu(E/d*yt(A)),$=Hu(E/f*yt(A));(v-=z*2)>Le?(z*=m?1:-1,N+=z,b-=z):(v=0,N=b=(h+y)/2),(O-=$*2)>Le?($*=m?1:-1,x+=$,M-=$):(O=0,x=M=(h+y)/2)}var L=f*Gt(x),U=f*yt(x),B=d*Gt(b),ne=d*yt(b);if(C>Le){var S=f*Gt(M),R=f*yt(M),W=d*Gt(N),G=d*yt(N),q;if(p<jt&&(q=wm(L,U,W,G,S,R,B,ne))){var H=L-q[0],K=U-q[1],J=S-q[0],ee=R-q[1],re=1/yt(vm((H*J+K*ee)/(cn(H*H+K*K)*cn(J*J+ee*ee)))/2),te=cn(q[0]*q[0]+q[1]*q[1]);T=qo(C,(d-te)/(re-1)),I=qo(C,(f-te)/(re+1))}}O>Le?I>Le?(g=Hr(W,G,L,U,f,I,m),w=Hr(S,R,B,ne,f,I,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),I<C?s.arc(g.cx,g.cy,I,Re(g.y01,g.x01),Re(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,I,Re(g.y01,g.x01),Re(g.y11,g.x11),!m),s.arc(0,0,f,Re(g.cy+g.y11,g.cx+g.x11),Re(w.cy+w.y11,w.cx+w.x11),!m),s.arc(w.cx,w.cy,I,Re(w.y11,w.x11),Re(w.y01,w.x01),!m))):(s.moveTo(L,U),s.arc(0,0,f,x,M,!m)):s.moveTo(L,U),!(d>Le)||!(v>Le)?s.lineTo(B,ne):T>Le?(g=Hr(B,ne,S,R,d,-T,m),w=Hr(L,U,W,G,d,-T,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<C?s.arc(g.cx,g.cy,T,Re(g.y01,g.x01),Re(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,T,Re(g.y01,g.x01),Re(g.y11,g.x11),!m),s.arc(0,0,d,Re(g.cy+g.y11,g.cx+g.x11),Re(w.cy+w.y11,w.cx+w.x11),m),s.arc(w.cx,w.cy,T,Re(w.y11,w.x11),Re(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-jt/2;return[Gt(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 Zu(e){this._context=e}Zu.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 Zr(e){return new Zu(e)}function Vo(e){return e[0]}function Bo(e){return e[1]}function Qo(){var e=Vo,t=Bo,n=ie(!0),r=null,i=Zr,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=ln())),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 el(){var e=Vo,t=null,n=ie(0),r=Bo,i=ie(!0),o=null,a=Zr,s=null;function u(c){var d,f,h,y=c.length,p,m=!1,x,M=new Array(y),N=new Array(y);for(o==null&&(s=a(x=ln())),d=0;d<=y;++d){if(!(d<y&&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 Qo().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 Tm(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Em(e){return e}function Dm(){var e=Em,t=Tm,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),y=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=y[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(v,O){return t(y[v],y[O])}):n!=null&&h.sort(function(v,O){return n(s[v],s[O])}),u=0,d=f?(m-l*N)/f:0;u<l;++u,p=x)c=h[u],b=y[c],x=p+(b>0?b*d:0)+N,y[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:M};return y}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 tl=Wo(Zr);function nl(e){this._curve=e}nl.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 Wo(e){function t(n){return new nl(e(n))}return t._curve=e,t}function Gn(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(Wo(n)):t()._curve},e}function rl(){return Gn(Qo().curve(tl))}function il(){var e=el().curve(tl),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 Gn(n())},delete e.lineX0,e.lineEndAngle=function(){return Gn(r())},delete e.lineX1,e.lineInnerRadius=function(){return Gn(i())},delete e.lineY0,e.lineOuterRadius=function(){return Gn(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Wo(a)):t()._curve},e}function Kn(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var Go=Array.prototype.slice;function Om(e){return e.source}function Cm(e){return e.target}function Ko(e){var t=Om,n=Cm,r=Vo,i=Bo,o=null;function a(){var s,u=Go.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=ln()),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 Sm(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Am(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Im(e,t,n,r,i){var o=Kn(t,n),a=Kn(t,n=(n+i)/2),s=Kn(r,n),u=Kn(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function zm(){return Ko(Sm)}function jm(){return Ko(Am)}function km(){var e=Ko(Im);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const Xo={draw:function(e,t){var n=Math.sqrt(t/jt);e.moveTo(n,0),e.arc(0,0,n,0,kt)}},ol={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 al=Math.sqrt(1/3),$m=al*2;const sl={draw:function(e,t){var n=Math.sqrt(t/$m),r=n*al;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var Rm=.8908130915292852,ul=Math.sin(jt/10)/Math.sin(7*jt/10),Lm=Math.sin(kt/10)*ul,Pm=-Math.cos(kt/10)*ul;const ll={draw:function(e,t){var n=Math.sqrt(t*Rm),r=Lm*n,i=Pm*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()}},cl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var Jo=Math.sqrt(3);const fl={draw:function(e,t){var n=-Math.sqrt(t/(Jo*3));e.moveTo(0,n*2),e.lineTo(-Jo*n,-n),e.lineTo(Jo*n,-n),e.closePath()}};var ot=-.5,at=Math.sqrt(3)/2,Ho=1/Math.sqrt(12),Fm=(Ho/2+1)*3;const dl={draw:function(e,t){var n=Math.sqrt(t/Fm),r=n/2,i=n*Ho,o=r,a=n*Ho+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ot*r-at*i,at*r+ot*i),e.lineTo(ot*o-at*a,at*o+ot*a),e.lineTo(ot*s-at*u,at*s+ot*u),e.lineTo(ot*r+at*i,ot*i-at*r),e.lineTo(ot*o+at*a,ot*a-at*o),e.lineTo(ot*s+at*u,ot*u-at*s),e.closePath()}};var Um=[Xo,ol,sl,cl,ll,fl,dl];function Ym(){var e=ie(Xo),t=ie(64),n=null;function r(){var i;if(n||(n=i=ln()),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 ei(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 ti(e){this._context=e}ti.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:ei(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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qm(e){return new ti(e)}function hl(e){this._context=e}hl.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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vm(e){return new hl(e)}function pl(e){this._context=e}pl.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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bm(e){return new pl(e)}function gl(e,t){this._basis=new ti(e),this._beta=t}gl.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 Qm=function e(t){function n(r){return t===1?new ti(r):new gl(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function ni(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 Zo(e,t){this._context=e,this._k=(1-t)/6}Zo.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:ni(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:ni(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 Wm=function e(t){function n(r){return new Zo(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ea(e,t){this._context=e,this._k=(1-t)/6}ea.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:ni(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 Gm=function e(t){function n(r){return new ea(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ta(e,t){this._context=e,this._k=(1-t)/6}ta.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:ni(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 Km=function e(t){function n(r){return new ta(r,t)}return n.tension=function(r){return e(+r)},n}(0);function na(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Le){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>Le){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 ml(e,t){this._context=e,this._alpha=t}ml.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:na(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 Xm=function e(t){function n(r){return t?new ml(r,t):new Zo(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function vl(e,t){this._context=e,this._alpha=t}vl.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:na(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 Jm=function e(t){function n(r){return t?new vl(r,t):new ea(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yl(e,t){this._context=e,this._alpha=t}yl.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:na(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 Hm=function e(t){function n(r){return t?new yl(r,t):new ta(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function _l(e){this._context=e}_l.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 Zm(e){return new _l(e)}function bl(e){return e<0?-1:1}function xl(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(bl(o)+bl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function Ml(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ra(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 ri(e){this._context=e}ri.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:ra(this,this._t0,Ml(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,ra(this,Ml(this,n=xl(this,e,t)),n);break;default:ra(this,this._t0,n=xl(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function wl(e){this._context=new Nl(e)}(wl.prototype=Object.create(ri.prototype)).point=function(e,t){ri.prototype.point.call(this,t,e)};function Nl(e){this._context=e}Nl.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 e1(e){return new ri(e)}function t1(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._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=El(e),i=El(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 El(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 n1(e){return new Tl(e)}function ii(e,t){this._context=e,this._t=t}ii.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 r1(e){return new ii(e,.5)}function i1(e){return new ii(e,0)}function o1(e){return new ii(e,1)}function fn(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 dn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function a1(e,t){return e[t]}function s1(){var e=ie([]),t=dn,n=fn,r=a1;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),y=0,p;y<u;++y)h[y]=p=[0,+r(o[y],f,y,o)],p.data=o[y];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(Go.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?dn:typeof o=="function"?o:ie(Go.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?fn:o,i):n},i}function u1(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}fn(e,t)}}function l1(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 c1(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}fn(e,t)}}function f1(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,y=0;y<s;++y){var p=e[t[y]],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,fn(e,t)}}function Dl(e){var t=e.map(d1);return dn(e).sort(function(n,r){return t[n]-t[r]})}function d1(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 Ol(e){var t=e.map(Cl);return dn(e).sort(function(n,r){return t[n]-t[r]})}function Cl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function h1(e){return Ol(e).reverse()}function p1(e){var t=e.length,n,r,i=e.map(Cl),o=Dl(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 g1(e){return dn(e).reverse()}const m1=St(Object.freeze(Object.defineProperty({__proto__:null,arc:Nm,area:el,line:Qo,pie:Dm,areaRadial:il,radialArea:il,lineRadial:rl,radialLine:rl,pointRadial:Kn,linkHorizontal:zm,linkVertical:jm,linkRadial:km,symbol:Ym,symbols:Um,symbolCircle:Xo,symbolCross:ol,symbolDiamond:sl,symbolSquare:cl,symbolStar:ll,symbolTriangle:fl,symbolWye:dl,curveBasisClosed:Vm,curveBasisOpen:Bm,curveBasis:qm,curveBundle:Qm,curveCardinalClosed:Gm,curveCardinalOpen:Km,curveCardinal:Wm,curveCatmullRomClosed:Jm,curveCatmullRomOpen:Hm,curveCatmullRom:Xm,curveLinearClosed:Zm,curveLinear:Zr,curveMonotoneX:e1,curveMonotoneY:t1,curveNatural:n1,curveStep:r1,curveStepAfter:o1,curveStepBefore:i1,stack:s1,stackOffsetExpand:u1,stackOffsetDiverging:l1,stackOffsetNone:fn,stackOffsetSilhouette:c1,stackOffsetWiggle:f1,stackOrderAppearance:Dl,stackOrderAscending:Ol,stackOrderDescending:h1,stackOrderInsideOut:p1,stackOrderNone:dn,stackOrderReverse:g1},Symbol.toStringTag,{value:"Module"})));var v1=we&&we.__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)}}(),ia=we&&we.__assign||function(){return ia=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},ia.apply(this,arguments)},y1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Po,"__esModule",{value:!0});var Sl=y1(it.default),Al=m1,Il=Qi,_1=function(e){v1(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?Il.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(Il.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"?Al.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):Al.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 Sl.default.createElement("path",{ref:function(i){n.linkRef=i},style:ia({},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}(Sl.default.PureComponent);Po.default=_1;var oa={};Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=`
|
|
54
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=zu,t.componentWillReceiveProps=ju),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=ku;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 Yg=St(Object.freeze(Object.defineProperty({__proto__:null,polyfill:Ug},Symbol.toStringTag,{value:"Module"})));var Qr={};Qr.__esModule=!0,Qr.getChildMapping=Vg,Qr.mergeChildMappings=Bg;var qg=it.default;function Vg(e){if(!e)return e;var t={};return qg.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function Bg(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 v=1;v<arguments.length;v++){var O=arguments[v];for(var A in O)Object.prototype.hasOwnProperty.call(O,A)&&(b[A]=O[A])}return b},r=Pg,i=h(r),o=it.default,a=h(o),s=se.exports,u=h(s),l=Fg,c=h(l),d=Yg,f=Qr;function h(b){return b&&b.__esModule?b:{default:b}}function y(b,v){if(!(b instanceof v))throw new TypeError("Cannot call a class as a function")}function p(b,v){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:b}function m(b,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);b.prototype=Object.create(v&&v.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(b,v):b.__proto__=v)}var x={component:u.default.any,childFactory:u.default.func,children:u.default.node},M={component:"span",childFactory:function(v){return v}},N=function(b){m(v,b);function v(O,A){y(this,v);var D=p(this,b.call(this,O,A));return D.performAppear=function(C,T){D.currentlyTransitioningKeys[C]=!0,T.componentWillAppear?T.componentWillAppear(D._handleDoneAppearing.bind(D,C,T)):D._handleDoneAppearing(C,T)},D._handleDoneAppearing=function(C,T){T&&T.componentDidAppear&&T.componentDidAppear(),delete D.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(D.props.children);(!I||!I.hasOwnProperty(C))&&D.performLeave(C,T)},D.performEnter=function(C,T){D.currentlyTransitioningKeys[C]=!0,T.componentWillEnter?T.componentWillEnter(D._handleDoneEntering.bind(D,C,T)):D._handleDoneEntering(C,T)},D._handleDoneEntering=function(C,T){T&&T.componentDidEnter&&T.componentDidEnter(),delete D.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(D.props.children);(!I||!I.hasOwnProperty(C))&&D.performLeave(C,T)},D.performLeave=function(C,T){D.currentlyTransitioningKeys[C]=!0,T&&T.componentWillLeave?T.componentWillLeave(D._handleDoneLeaving.bind(D,C,T)):D._handleDoneLeaving(C,T)},D._handleDoneLeaving=function(C,T){T&&T.componentDidLeave&&T.componentDidLeave(),delete D.currentlyTransitioningKeys[C];var I=(0,f.getChildMapping)(D.props.children);I&&I.hasOwnProperty(C)?D.keysToEnter.push(C):D.setState(function(g){var w=n({},g.children);return delete w[C],{children:w}})},D.childRefs=Object.create(null),D.currentlyTransitioningKeys={},D.keysToEnter=[],D.keysToLeave=[],D.state={children:(0,f.getChildMapping)(O.children)},D}return v.prototype.componentDidMount=function(){var A=this.state.children;for(var D in A)A[D]&&this.performAppear(D,this.childRefs[D])},v.getDerivedStateFromProps=function(A,D){var C=(0,f.getChildMapping)(A.children),T=D.children;return{children:(0,f.mergeChildMappings)(T,C)}},v.prototype.componentDidUpdate=function(A,D){var C=this,T=(0,f.getChildMapping)(this.props.children),I=D.children;for(var g in T){var w=I&&I.hasOwnProperty(g);T[g]&&!w&&!this.currentlyTransitioningKeys[g]&&this.keysToEnter.push(g)}for(var z in I){var $=T&&T.hasOwnProperty(z);I[z]&&!$&&!this.currentlyTransitioningKeys[z]&&this.keysToLeave.push(z)}var L=this.keysToEnter;this.keysToEnter=[],L.forEach(function(B){return C.performEnter(B,C.childRefs[B])});var U=this.keysToLeave;this.keysToLeave=[],U.forEach(function(B){return C.performLeave(B,C.childRefs[B])})},v.prototype.render=function(){var A=this,D=[],C=function(w){var z=A.state.children[w];if(z){var $=typeof z.ref!="string",L=A.props.childFactory(z),U=function(ne){A.childRefs[w]=ne};process.env.NODE_ENV!=="production"&&(0,c.default)($,"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===z&&$&&(U=(0,i.default)(z.ref,U)),D.push(a.default.cloneElement(L,{key:w,ref:U}))}};for(var T in this.state.children)C(T);var I=n({},this.props);return delete I.transitionLeave,delete I.transitionName,delete I.transitionAppear,delete I.transitionEnter,delete I.childFactory,delete I.transitionLeaveTimeout,delete I.transitionEnterTimeout,delete I.transitionAppearTimeout,delete I.component,a.default.createElement(this.props.component,I,D)},v}(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})(Br,Br.exports);var Co={exports:{}},So={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 Wr={exports:{}},$u;function Qg(){return $u||($u=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}(Wr,Wr.exports)),Wr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=i;var r=n(Qg());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})(So,So.exports);function Ru(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var Wg=function(t,n){t.classList?t.classList.remove(n):typeof t.className=="string"?t.className=Ru(t.className,n):t.setAttribute("class",Ru(t.className&&t.className.baseVal||"",n))},Ao={exports:{}},Gr={exports:{}},Lu;function Pu(){return Lu||(Lu=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}(Gr,Gr.exports)),Gr.exports}(function(e,t){var n=Ie.exports;t.__esModule=!0,t.default=void 0;var r=n(Pu()),i=["","webkit","moz","o","ms"],o="clearTimeout",a=c,s,u=function(h,y){return h+(h?y[0].toUpperCase()+y.substr(1):y)+"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(),y=Math.max(0,16-(h-l)),p=setTimeout(f,y);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})(Ao,Ao.exports);var oe={},Gg=Ie.exports;oe.__esModule=!0,oe.default=oe.animationEnd=oe.animationDelay=oe.animationTiming=oe.animationDuration=oe.animationName=oe.transitionEnd=oe.transitionDuration=oe.transitionDelay=oe.transitionTiming=oe.transitionProperty=oe.transform=void 0;var Kg=Gg(Pu()),Kr="transform";oe.transform=Kr;var vt,Io,Fu;oe.animationEnd=Fu,oe.transitionEnd=Io;var zo,jo,ko,$o;oe.transitionDelay=$o,oe.transitionTiming=ko,oe.transitionDuration=jo,oe.transitionProperty=zo;var Uu,Yu,qu,Vu;if(oe.animationDelay=Vu,oe.animationTiming=qu,oe.animationDuration=Yu,oe.animationName=Uu,Kg.default){var Ro=Jg();vt=Ro.prefix,oe.transitionEnd=Io=Ro.transitionEnd,oe.animationEnd=Fu=Ro.animationEnd,oe.transform=Kr=vt+"-"+Kr,oe.transitionProperty=zo=vt+"-transition-property",oe.transitionDuration=jo=vt+"-transition-duration",oe.transitionDelay=$o=vt+"-transition-delay",oe.transitionTiming=ko=vt+"-transition-timing-function",oe.animationName=Uu=vt+"-animation-name",oe.animationDuration=Yu=vt+"-animation-duration",oe.animationTiming=qu=vt+"-animation-delay",oe.animationDelay=Vu=vt+"-animation-timing-function"}var Xg={transform:Kr,end:Io,property:zo,timing:ko,delay:$o,duration:jo};oe.default=Xg;function Jg(){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 un={};un.__esModule=!0,un.nameShape=void 0,un.transitionTimeout=em;var Hg=it.default;Bu(Hg);var Zg=se.exports,He=Bu(Zg);function Bu(e){return e&&e.__esModule?e:{default:e}}function em(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}}un.nameShape=He.default.oneOfType([He.default.string,He.default.shape({enter:He.default.string,leave:He.default.string,active:He.default.string}),He.default.shape({enter:He.default.string,enterActive:He.default.string,leave:He.default.string,leaveActive:He.default.string,appear:He.default.string,appearActive:He.default.string})]),function(e,t){t.__esModule=!0;var n=Object.assign||function(D){for(var C=1;C<arguments.length;C++){var T=arguments[C];for(var I in T)Object.prototype.hasOwnProperty.call(T,I)&&(D[I]=T[I])}return D},r=So.exports,i=m(r),o=Wg,a=m(o),s=Ao.exports,u=m(s),l=oe,c=it.default,d=m(c),f=se.exports,h=m(f),y=jf.default,p=un;function m(D){return D&&D.__esModule?D:{default:D}}function x(D,C){if(!(D instanceof C))throw new TypeError("Cannot call a class as a function")}function M(D,C){if(!D)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C&&(typeof C=="object"||typeof C=="function")?C:D}function N(D,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof C);D.prototype=Object.create(C&&C.prototype,{constructor:{value:D,enumerable:!1,writable:!0,configurable:!0}}),C&&(Object.setPrototypeOf?Object.setPrototypeOf(D,C):D.__proto__=C)}var b=[];l.transitionEnd&&b.push(l.transitionEnd),l.animationEnd&&b.push(l.animationEnd);function v(D,C){return b.length?b.forEach(function(T){return D.addEventListener(T,C,!1)}):setTimeout(C,0),function(){!b.length||b.forEach(function(T){return D.removeEventListener(T,C,!1)})}}var O={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(D){N(C,D);function C(T,I){x(this,C);var g=M(this,D.call(this,T,I));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 C.prototype.componentWillUnmount=function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(I){clearTimeout(I)}),this.classNameAndNodeQueue.length=0},C.prototype.transition=function(I,g,w){var z=(0,y.findDOMNode)(this);if(!z){g&&g();return}var $=this.props.name[I]||this.props.name+"-"+I,L=this.props.name[I+"Active"]||$+"-active",U=null,B=void 0;(0,i.default)(z,$),this.queueClassAndNode(L,z);var ne=function(R){R&&R.target!==z||(clearTimeout(U),B&&B(),(0,a.default)(z,$),(0,a.default)(z,L),B&&B(),g&&g())};w?(U=setTimeout(ne,w),this.transitionTimeouts.push(U)):l.transitionEnd&&(B=v(z,ne))},C.prototype.queueClassAndNode=function(I,g){var w=this;this.classNameAndNodeQueue.push({className:I,node:g}),this.rafHandle||(this.rafHandle=(0,u.default)(function(){return w.flushClassNameAndNodeQueue()}))},C.prototype.flushClassNameAndNodeQueue=function(){this.unmounted||this.classNameAndNodeQueue.forEach(function(I){I.node.scrollTop,(0,i.default)(I.node,I.className)}),this.classNameAndNodeQueue.length=0,this.rafHandle=null},C.prototype.render=function(){var I=n({},this.props);return delete I.name,delete I.appear,delete I.enter,delete I.leave,delete I.appearTimeout,delete I.enterTimeout,delete I.leaveTimeout,delete I.children,d.default.cloneElement(d.default.Children.only(this.props.children),I)},C}(d.default.Component);A.displayName="CSSTransitionGroupChild",A.propTypes=process.env.NODE_ENV!=="production"?O:{},t.default=A,e.exports=t.default}(Co,Co.exports),function(e,t){t.__esModule=!0;var n=Object.assign||function(N){for(var b=1;b<arguments.length;b++){var v=arguments[b];for(var O in v)Object.prototype.hasOwnProperty.call(v,O)&&(N[O]=v[O])}return N},r=it.default,i=f(r),o=se.exports,a=f(o),s=Br.exports,u=f(s),l=Co.exports,c=f(l),d=un;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 y(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 v,O,A;h(this,b);for(var D=arguments.length,C=Array(D),T=0;T<D;T++)C[T]=arguments[T];return A=(v=(O=y(this,N.call.apply(N,[this].concat(C))),O),O._wrapChild=function(I){return i.default.createElement(c.default,{name:O.props.transitionName,appear:O.props.transitionAppear,enter:O.props.transitionEnter,leave:O.props.transitionLeave,appearTimeout:O.props.transitionAppearTimeout,enterTimeout:O.props.transitionEnterTimeout,leaveTimeout:O.props.transitionLeaveTimeout},I)},v),y(O,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}(bo,bo.exports);var tm=bo.exports,nm=Qu(tm),rm=Br.exports,im=Qu(rm);function Qu(e){return e&&e.__esModule?e:{default:e}}var om={TransitionGroup:im.default,CSSTransitionGroup:nm.default},am=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_o,"__esModule",{value:!0});var Wu=am(it.default),sm=om,um=function(e){return e.enableLegacyTransitions?Wu.default.createElement(sm.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):Wu.default.createElement("g",{className:e.className,transform:e.transform},e.children)};_o.default=um;var Lo={},Po={},Xr=Ne&&Ne.__assign||function(){return Xr=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},Xr.apply(this,arguments)},lm=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Po,"__esModule",{value:!0});var Qt=lm(it.default),cm=15,Gu={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},fm=function(e){var t=e.nodeDatum,n=e.toggleNode,r=e.onNodeClick,i=e.onNodeMouseOver,o=e.onNodeMouseOut;return Qt.default.createElement(Qt.default.Fragment,null,Qt.default.createElement("circle",{r:cm,onClick:function(a){n(),r(a)},onMouseOver:i,onMouseOut:o}),Qt.default.createElement("g",{className:"rd3t-label"},Qt.default.createElement("text",Xr({className:"rd3t-label__title"},Gu.title),t.name),Qt.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 Qt.default.createElement("tspan",Xr({key:u+"-"+s},Gu.attribute),u,": ",typeof l=="boolean"?l.toString():l)}))))};Po.default=fm;var dm=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)}}(),Ku=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Lo,"__esModule",{value:!0});var Xu=Ku(it.default),Ju=Wi,hm=Ku(Po),pm=function(e){dm(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:hm.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?Ju.select(this.nodeRef).transition().duration(r).attr("transform",n).style("opacity",i).on("end",o):(Ju.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 Xu.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}(Xu.default.Component);Lo.default=pm;var Fo={},Uo=Math.PI,Yo=2*Uo,Wt=1e-6,gm=Yo-Wt;function qo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function ln(){return new qo}qo.prototype=ln.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>Wt)if(!(Math.abs(c*s-u*l)>Wt)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var f=n-o,h=r-a,y=s*s+u*u,p=f*f+h*h,m=Math.sqrt(y),x=Math.sqrt(d),M=i*Math.tan((Uo-Math.acos((y+d-p)/(2*m*x)))/2),N=M/x,b=M/m;Math.abs(N-1)>Wt&&(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)>Wt||Math.abs(this._y1-l)>Wt)&&(this._+="L"+u+","+l),n&&(d<0&&(d=d%Yo+Yo),d>gm?this._+="A"+n+","+n+",0,1,"+c+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):d>Wt&&(this._+="A"+n+","+n+",0,"+ +(d>=Uo)+","+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 Hu=Math.abs,Re=Math.atan2,Gt=Math.cos,mm=Math.max,Vo=Math.min,yt=Math.sin,cn=Math.sqrt,Le=1e-12,jt=Math.PI,Jr=jt/2,kt=2*jt;function vm(e){return e>1?0:e<-1?jt:Math.acos(e)}function Zu(e){return e>=1?Jr:e<=-1?-Jr:Math.asin(e)}function ym(e){return e.innerRadius}function _m(e){return e.outerRadius}function bm(e){return e.startAngle}function xm(e){return e.endAngle}function Mm(e){return e&&e.padAngle}function wm(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<Le))return f=(c*(t-o)-d*(e-i))/f,[e+f*u,t+f*l]}function Hr(e,t,n,r,i,o,a){var s=e-n,u=t-r,l=(a?o:-o)/cn(s*s+u*u),c=l*u,d=-l*s,f=e+c,h=t+d,y=n+c,p=r+d,m=(f+y)/2,x=(h+p)/2,M=y-f,N=p-h,b=M*M+N*N,v=i-o,O=f*p-y*h,A=(N<0?-1:1)*cn(mm(0,v*v*b-O*O)),D=(O*N-M*A)/b,C=(-O*M-N*A)/b,T=(O*N+M*A)/b,I=(-O*M+N*A)/b,g=D-m,w=C-x,z=T-m,$=I-x;return g*g+w*w>z*z+$*$&&(D=T,C=I),{cx:D,cy:C,x01:-c,y01:-d,x11:D*(i/v-1),y11:C*(i/v-1)}}function Nm(){var e=ym,t=_m,n=ie(0),r=null,i=bm,o=xm,a=Mm,s=null;function u(){var l,c,d=+e.apply(this,arguments),f=+t.apply(this,arguments),h=i.apply(this,arguments)-Jr,y=o.apply(this,arguments)-Jr,p=Hu(y-h),m=y>h;if(s||(s=l=ln()),f<d&&(c=f,f=d,d=c),!(f>Le))s.moveTo(0,0);else if(p>kt-Le)s.moveTo(f*Gt(h),f*yt(h)),s.arc(0,0,f,h,y,!m),d>Le&&(s.moveTo(d*Gt(y),d*yt(y)),s.arc(0,0,d,y,h,m));else{var x=h,M=y,N=h,b=y,v=p,O=p,A=a.apply(this,arguments)/2,D=A>Le&&(r?+r.apply(this,arguments):cn(d*d+f*f)),C=Vo(Hu(f-d)/2,+n.apply(this,arguments)),T=C,I=C,g,w;if(D>Le){var z=Zu(D/d*yt(A)),$=Zu(D/f*yt(A));(v-=z*2)>Le?(z*=m?1:-1,N+=z,b-=z):(v=0,N=b=(h+y)/2),(O-=$*2)>Le?($*=m?1:-1,x+=$,M-=$):(O=0,x=M=(h+y)/2)}var L=f*Gt(x),U=f*yt(x),B=d*Gt(b),ne=d*yt(b);if(C>Le){var S=f*Gt(M),R=f*yt(M),W=d*Gt(N),G=d*yt(N),q;if(p<jt&&(q=wm(L,U,W,G,S,R,B,ne))){var H=L-q[0],K=U-q[1],J=S-q[0],ee=R-q[1],re=1/yt(vm((H*J+K*ee)/(cn(H*H+K*K)*cn(J*J+ee*ee)))/2),te=cn(q[0]*q[0]+q[1]*q[1]);T=Vo(C,(d-te)/(re-1)),I=Vo(C,(f-te)/(re+1))}}O>Le?I>Le?(g=Hr(W,G,L,U,f,I,m),w=Hr(S,R,B,ne,f,I,m),s.moveTo(g.cx+g.x01,g.cy+g.y01),I<C?s.arc(g.cx,g.cy,I,Re(g.y01,g.x01),Re(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,I,Re(g.y01,g.x01),Re(g.y11,g.x11),!m),s.arc(0,0,f,Re(g.cy+g.y11,g.cx+g.x11),Re(w.cy+w.y11,w.cx+w.x11),!m),s.arc(w.cx,w.cy,I,Re(w.y11,w.x11),Re(w.y01,w.x01),!m))):(s.moveTo(L,U),s.arc(0,0,f,x,M,!m)):s.moveTo(L,U),!(d>Le)||!(v>Le)?s.lineTo(B,ne):T>Le?(g=Hr(B,ne,S,R,d,-T,m),w=Hr(L,U,W,G,d,-T,m),s.lineTo(g.cx+g.x01,g.cy+g.y01),T<C?s.arc(g.cx,g.cy,T,Re(g.y01,g.x01),Re(w.y01,w.x01),!m):(s.arc(g.cx,g.cy,T,Re(g.y01,g.x01),Re(g.y11,g.x11),!m),s.arc(0,0,d,Re(g.cy+g.y11,g.cx+g.x11),Re(w.cy+w.y11,w.cx+w.x11),m),s.arc(w.cx,w.cy,T,Re(w.y11,w.x11),Re(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-jt/2;return[Gt(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 el(e){this._context=e}el.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 Zr(e){return new el(e)}function Bo(e){return e[0]}function Qo(e){return e[1]}function Wo(){var e=Bo,t=Qo,n=ie(!0),r=null,i=Zr,o=null;function a(s){var u,l=s.length,c,d=!1,f;for(r==null&&(o=i(f=ln())),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 tl(){var e=Bo,t=null,n=ie(0),r=Qo,i=ie(!0),o=null,a=Zr,s=null;function u(c){var d,f,h,y=c.length,p,m=!1,x,M=new Array(y),N=new Array(y);for(o==null&&(s=a(x=ln())),d=0;d<=y;++d){if(!(d<y&&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 Wo().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 Tm(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function Em(e){return e}function Dm(){var e=Em,t=Tm,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),y=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=y[h[u]=u]=+e(s[u],u,s))>0&&(f+=b);for(t!=null?h.sort(function(v,O){return t(y[v],y[O])}):n!=null&&h.sort(function(v,O){return n(s[v],s[O])}),u=0,d=f?(m-l*N)/f:0;u<l;++u,p=x)c=h[u],b=y[c],x=p+(b>0?b*d:0)+N,y[c]={data:s[c],index:u,value:b,startAngle:p,endAngle:x,padAngle:M};return y}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 nl=Go(Zr);function rl(e){this._curve=e}rl.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 Go(e){function t(n){return new rl(e(n))}return t._curve=e,t}function Gn(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(Go(n)):t()._curve},e}function il(){return Gn(Wo().curve(nl))}function ol(){var e=tl().curve(nl),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 Gn(n())},delete e.lineX0,e.lineEndAngle=function(){return Gn(r())},delete e.lineX1,e.lineInnerRadius=function(){return Gn(i())},delete e.lineY0,e.lineOuterRadius=function(){return Gn(o())},delete e.lineY1,e.curve=function(a){return arguments.length?t(Go(a)):t()._curve},e}function Kn(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var Ko=Array.prototype.slice;function Om(e){return e.source}function Cm(e){return e.target}function Xo(e){var t=Om,n=Cm,r=Bo,i=Qo,o=null;function a(){var s,u=Ko.call(arguments),l=t.apply(this,u),c=n.apply(this,u);if(o||(o=s=ln()),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 Sm(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Am(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Im(e,t,n,r,i){var o=Kn(t,n),a=Kn(t,n=(n+i)/2),s=Kn(r,n),u=Kn(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function zm(){return Xo(Sm)}function jm(){return Xo(Am)}function km(){var e=Xo(Im);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const Jo={draw:function(e,t){var n=Math.sqrt(t/jt);e.moveTo(n,0),e.arc(0,0,n,0,kt)}},al={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 sl=Math.sqrt(1/3),$m=sl*2;const ul={draw:function(e,t){var n=Math.sqrt(t/$m),r=n*sl;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}};var Rm=.8908130915292852,ll=Math.sin(jt/10)/Math.sin(7*jt/10),Lm=Math.sin(kt/10)*ll,Pm=-Math.cos(kt/10)*ll;const cl={draw:function(e,t){var n=Math.sqrt(t*Rm),r=Lm*n,i=Pm*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()}},fl={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}};var Ho=Math.sqrt(3);const dl={draw:function(e,t){var n=-Math.sqrt(t/(Ho*3));e.moveTo(0,n*2),e.lineTo(-Ho*n,-n),e.lineTo(Ho*n,-n),e.closePath()}};var ot=-.5,at=Math.sqrt(3)/2,Zo=1/Math.sqrt(12),Fm=(Zo/2+1)*3;const hl={draw:function(e,t){var n=Math.sqrt(t/Fm),r=n/2,i=n*Zo,o=r,a=n*Zo+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(ot*r-at*i,at*r+ot*i),e.lineTo(ot*o-at*a,at*o+ot*a),e.lineTo(ot*s-at*u,at*s+ot*u),e.lineTo(ot*r+at*i,ot*i-at*r),e.lineTo(ot*o+at*a,ot*a-at*o),e.lineTo(ot*s+at*u,ot*u-at*s),e.closePath()}};var Um=[Jo,al,ul,fl,cl,dl,hl];function Ym(){var e=ie(Jo),t=ie(64),n=null;function r(){var i;if(n||(n=i=ln()),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 ei(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 ti(e){this._context=e}ti.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:ei(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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qm(e){return new ti(e)}function pl(e){this._context=e}pl.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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Vm(e){return new pl(e)}function gl(e){this._context=e}gl.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:ei(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bm(e){return new gl(e)}function ml(e,t){this._basis=new ti(e),this._beta=t}ml.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 Qm=function e(t){function n(r){return t===1?new ti(r):new ml(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function ni(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 ea(e,t){this._context=e,this._k=(1-t)/6}ea.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:ni(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:ni(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 Wm=function e(t){function n(r){return new ea(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ta(e,t){this._context=e,this._k=(1-t)/6}ta.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:ni(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 Gm=function e(t){function n(r){return new ta(r,t)}return n.tension=function(r){return e(+r)},n}(0);function na(e,t){this._context=e,this._k=(1-t)/6}na.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:ni(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 Km=function e(t){function n(r){return new na(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ra(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>Le){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>Le){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 vl(e,t){this._context=e,this._alpha=t}vl.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:ra(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 Xm=function e(t){function n(r){return t?new vl(r,t):new ea(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function yl(e,t){this._context=e,this._alpha=t}yl.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:ra(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 Jm=function e(t){function n(r){return t?new yl(r,t):new ta(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function _l(e,t){this._context=e,this._alpha=t}_l.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:ra(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 Hm=function e(t){function n(r){return t?new _l(r,t):new na(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function bl(e){this._context=e}bl.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 Zm(e){return new bl(e)}function xl(e){return e<0?-1:1}function Ml(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(xl(o)+xl(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function wl(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function ia(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 ri(e){this._context=e}ri.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:ia(this,this._t0,wl(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,ia(this,wl(this,n=Ml(this,e,t)),n);break;default:ia(this,this._t0,n=Ml(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Nl(e){this._context=new Tl(e)}(Nl.prototype=Object.create(ri.prototype)).point=function(e,t){ri.prototype.point.call(this,t,e)};function Tl(e){this._context=e}Tl.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 e1(e){return new ri(e)}function t1(e){return new Nl(e)}function El(e){this._context=e}El.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=Dl(e),i=Dl(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 Dl(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 n1(e){return new El(e)}function ii(e,t){this._context=e,this._t=t}ii.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 r1(e){return new ii(e,.5)}function i1(e){return new ii(e,0)}function o1(e){return new ii(e,1)}function fn(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 dn(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function a1(e,t){return e[t]}function s1(){var e=ie([]),t=dn,n=fn,r=a1;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),y=0,p;y<u;++y)h[y]=p=[0,+r(o[y],f,y,o)],p.data=o[y];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(Ko.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?dn:typeof o=="function"?o:ie(Ko.call(o)),i):t},i.offset=function(o){return arguments.length?(n=o==null?fn:o,i):n},i}function u1(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}fn(e,t)}}function l1(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 c1(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}fn(e,t)}}function f1(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,y=0;y<s;++y){var p=e[t[y]],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,fn(e,t)}}function Ol(e){var t=e.map(d1);return dn(e).sort(function(n,r){return t[n]-t[r]})}function d1(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 Cl(e){var t=e.map(Sl);return dn(e).sort(function(n,r){return t[n]-t[r]})}function Sl(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function h1(e){return Cl(e).reverse()}function p1(e){var t=e.length,n,r,i=e.map(Sl),o=Ol(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 g1(e){return dn(e).reverse()}const m1=St(Object.freeze(Object.defineProperty({__proto__:null,arc:Nm,area:tl,line:Wo,pie:Dm,areaRadial:ol,radialArea:ol,lineRadial:il,radialLine:il,pointRadial:Kn,linkHorizontal:zm,linkVertical:jm,linkRadial:km,symbol:Ym,symbols:Um,symbolCircle:Jo,symbolCross:al,symbolDiamond:ul,symbolSquare:fl,symbolStar:cl,symbolTriangle:dl,symbolWye:hl,curveBasisClosed:Vm,curveBasisOpen:Bm,curveBasis:qm,curveBundle:Qm,curveCardinalClosed:Gm,curveCardinalOpen:Km,curveCardinal:Wm,curveCatmullRomClosed:Jm,curveCatmullRomOpen:Hm,curveCatmullRom:Xm,curveLinearClosed:Zm,curveLinear:Zr,curveMonotoneX:e1,curveMonotoneY:t1,curveNatural:n1,curveStep:r1,curveStepAfter:o1,curveStepBefore:i1,stack:s1,stackOffsetExpand:u1,stackOffsetDiverging:l1,stackOffsetNone:fn,stackOffsetSilhouette:c1,stackOffsetWiggle:f1,stackOrderAppearance:Ol,stackOrderAscending:Cl,stackOrderDescending:h1,stackOrderInsideOut:p1,stackOrderNone:dn,stackOrderReverse:g1},Symbol.toStringTag,{value:"Module"})));var v1=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)}}(),oa=Ne&&Ne.__assign||function(){return oa=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},oa.apply(this,arguments)},y1=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fo,"__esModule",{value:!0});var Al=y1(it.default),Il=m1,zl=Wi,_1=function(e){v1(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?zl.select(this.linkRef).transition().duration(r).style("opacity",n).on("end",i):(zl.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"?Il.linkHorizontal()({source:[i.y,i.x],target:[o.y,o.x]}):Il.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 Al.default.createElement("path",{ref:function(i){n.linkRef=i},style:oa({},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}(Al.default.PureComponent);Fo.default=_1;var aa={};Object.defineProperty(aa,"__esModule",{value:!0}),aa.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 b1=we&&we.__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)}}(),Xn=we&&we.__assign||function(){return Xn=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},Xn.apply(this,arguments)},hn=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Si,"__esModule",{value:!0});var Kt=hn(it.default),zl=Kd,Qe=Qi,Jn=lg,aa=du,Ze=hn(pu.exports),sa=Sg,x1=hn(yo),M1=hn(Ro),w1=hn(Po),N1=hn(oa),T1=function(e){b1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(Ze.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+sa.v4(),n.gInstanceRef="rd3t-g-"+sa.v4(),n.handleNodeToggle=function(r){var i=Ze.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(Ze.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(Ze.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(Ze.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.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=Qe.select("."+n.gInstanceRef),c=Qe.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(Jn.zoom().transform,Jn.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(Ze.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return aa.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}),(!aa.dequal(this.props.translate,n.translate)||!aa.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?Ze.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=Qe.select("."+this.svgInstanceRef),d=Qe.select("."+this.gInstanceRef);c.call(Jn.zoom().transform,Jn.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(Jn.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Qe.event.target.classList.contains(r.svgInstanceRef)||Qe.event.target.classList.contains(r.gInstanceRef)||Qe.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Qe.event.transform),typeof u=="function"&&(u({node:null,zoom:Qe.event.transform.k,translate:{x:Qe.event.transform.x,y:Qe.event.transform.y}}),r.state.d3.scale=Qe.event.transform.k,r.state.d3.translate={x:Qe.event.transform.x,y:Qe.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=sa.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=zl.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,y){return h.parent.data.__rd3t.id===y.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(zl.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,y=a.separation,p=a.enableLegacyTransitions,m=a.svgClassName,x=a.pathClassFunc,M=this.state.d3,N=M.translate,b=M.scale,v=Xn(Xn(Xn({},d),y),{depthFactor:f,initialDepth:h});return Kt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Kt.default.createElement("style",null,N1.default),Kt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+m,width:"100%",height:"100%"},Kt.default.createElement(x1.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+N.x+","+N.y+") scale("+b+")"},o.map(function(O,A){return Kt.default.createElement(w1.default,{key:"link-"+A,orientation:u,pathFunc:l,pathClassFunc:x,linkData:O,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(O,A){var E=O.data,C=O.x,T=O.y,I=O.parent;return Kt.default.createElement(M1.default,{key:"node-"+A,data:E,position:{x:C,y:T},hierarchyPointNode:O,parent:I,nodeClassName:n.getNodeClassName(I,E),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:v,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}(Kt.default.Component);Si.default=T1;var E1=we&&we.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(as,"__esModule",{value:!0});var D1=E1(Si),O1=as.default=D1.default;const C1=()=>{const[e,t]=X.useState({x:0,y:0}),[n,r]=X.useState({height:0,width:0}),i=X.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}},jl={container:{height:"100%",width:"100%"},treeLink:{stroke:`${Te.borderMedium} !important`}},kl="tree-link",S1=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=C1();return e?le("div",{style:jl.container,ref:i,children:[D(j.GlobalStyles,{styles:{[`.${kl}`]:jl.treeLink}}),D(O1,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>kl,nodeSize:n})]}):null},$l=X.memo(S1);var ua={},la={};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 oi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Nt(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return oi(e)&&oi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(oi(t[i])&&i in e&&oi(e[i])?r[i]=Nt(e[i],t[i],n):r[i]=t[i])}),r}function pn(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 ca={exports:{}},ge={};/**
|
|
106
|
+
`;var b1=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)}}(),Xn=Ne&&Ne.__assign||function(){return Xn=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},Xn.apply(this,arguments)},hn=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ai,"__esModule",{value:!0});var Kt=hn(it.default),jl=Kd,Qe=Wi,Jn=lg,sa=hu,Ze=hn(gu.exports),ua=Sg,x1=hn(_o),M1=hn(Lo),w1=hn(Fo),N1=hn(aa),T1=function(e){b1(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={dataRef:n.props.data,data:t.assignInternalProperties(Ze.default(n.props.data)),d3:t.calculateD3Geometry(n.props),isTransitioning:!1,isInitialRenderForDataset:!0},n.internalState={targetNode:null,isTransitioning:!1},n.svgInstanceRef="rd3t-svg-"+ua.v4(),n.gInstanceRef="rd3t-g-"+ua.v4(),n.handleNodeToggle=function(r){var i=Ze.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(Ze.default(r),i))},n.handleOnLinkClickCb=function(r,i,o){var a=n.props.onLinkClick;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.default(i),o))},n.handleOnNodeMouseOverCb=function(r,i){var o=n.props.onNodeMouseOver;o&&typeof o=="function"&&(i.persist(),o(Ze.default(r),i))},n.handleOnLinkMouseOverCb=function(r,i,o){var a=n.props.onLinkMouseOver;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.default(i),o))},n.handleOnNodeMouseOutCb=function(r,i){var o=n.props.onNodeMouseOut;o&&typeof o=="function"&&(i.persist(),o(Ze.default(r),i))},n.handleOnLinkMouseOutCb=function(r,i,o){var a=n.props.onLinkMouseOut;a&&typeof a=="function"&&(o.persist(),a(Ze.default(r),Ze.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=Qe.select("."+n.gInstanceRef),c=Qe.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(Jn.zoom().transform,Jn.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(Ze.default(n.data)),isInitialRenderForDataset:!0});var o=t.calculateD3Geometry(n);return sa.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}),(!sa.dequal(this.props.translate,n.translate)||!sa.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?Ze.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=Qe.select("."+this.svgInstanceRef),d=Qe.select("."+this.gInstanceRef);c.call(Jn.zoom().transform,Jn.zoomIdentity.translate(a.x,a.y).scale(s)),c.call(Jn.zoom().scaleExtent(i?[o.min,o.max]:[s,s]).filter(function(){return l?Qe.event.target.classList.contains(r.svgInstanceRef)||Qe.event.target.classList.contains(r.gInstanceRef)||Qe.event.shiftKey:!0}).on("zoom",function(){d.attr("transform",Qe.event.transform),typeof u=="function"&&(u({node:null,zoom:Qe.event.transform.k,translate:{x:Qe.event.transform.x,y:Qe.event.transform.y}}),r.state.d3.scale=Qe.event.transform.k,r.state.d3.translate={x:Qe.event.transform.x,y:Qe.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=ua.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=jl.tree().nodeSize(s==="horizontal"?[a.y,a.x]:[a.x,a.y]).separation(function(h,y){return h.parent.data.__rd3t.id===y.parent.data.__rd3t.id?o.siblings:o.nonSiblings}),c=l(jl.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,y=a.separation,p=a.enableLegacyTransitions,m=a.svgClassName,x=a.pathClassFunc,M=this.state.d3,N=M.translate,b=M.scale,v=Xn(Xn(Xn({},d),y),{depthFactor:f,initialDepth:h});return Kt.default.createElement("div",{className:"rd3t-tree-container rd3t-grabbable"},Kt.default.createElement("style",null,N1.default),Kt.default.createElement("svg",{className:"rd3t-svg "+this.svgInstanceRef+" "+m,width:"100%",height:"100%"},Kt.default.createElement(x1.default,{enableLegacyTransitions:p,component:"g",className:"rd3t-g "+this.gInstanceRef,transform:"translate("+N.x+","+N.y+") scale("+b+")"},o.map(function(O,A){return Kt.default.createElement(w1.default,{key:"link-"+A,orientation:u,pathFunc:l,pathClassFunc:x,linkData:O,onClick:n.handleOnLinkClickCb,onMouseOver:n.handleOnLinkMouseOverCb,onMouseOut:n.handleOnLinkMouseOutCb,enableLegacyTransitions:p,transitionDuration:c})}),i.map(function(O,A){var D=O.data,C=O.x,T=O.y,I=O.parent;return Kt.default.createElement(M1.default,{key:"node-"+A,data:D,position:{x:C,y:T},hierarchyPointNode:O,parent:I,nodeClassName:n.getNodeClassName(I,D),renderCustomNodeElement:s,nodeSize:d,orientation:u,enableLegacyTransitions:p,transitionDuration:c,onNodeToggle:n.handleNodeToggle,onNodeClick:n.handleOnNodeClickCb,onNodeMouseOver:n.handleOnNodeMouseOverCb,onNodeMouseOut:n.handleOnNodeMouseOutCb,subscriptions:v,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}(Kt.default.Component);Ai.default=T1;var E1=Ne&&Ne.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ss,"__esModule",{value:!0});var D1=E1(Ai),O1=ss.default=D1.default;const C1=()=>{const[e,t]=X.useState({x:0,y:0}),[n,r]=X.useState({height:0,width:0}),i=X.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}},kl={container:{height:"100%",width:"100%"},treeLink:{stroke:`${we.borderMedium} !important`}},$l="tree-link",S1=({data:e,renderCustomNodeElement:t,nodeSize:n={x:300,y:300}})=>{const{dimensions:r,refContainer:i,translate:o}=C1();return e?le("div",{style:kl.container,ref:i,children:[E(j.GlobalStyles,{styles:{[`.${$l}`]:kl.treeLink}}),E(O1,{data:e,orientation:"vertical",translate:o,dimensions:r,renderCustomNodeElement:t,pathFunc:"diagonal",pathClassFunc:()=>$l,nodeSize:n})]}):null},Rl=X.memo(S1);var la={},ca={};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 oi(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function Nt(e,t,n={clone:!0}){const r=n.clone?_e({},e):e;return oi(e)&&oi(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(oi(t[i])&&i in e&&oi(e[i])?r[i]=Nt(e[i],t[i],n):r[i]=t[i])}),r}function pn(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 fa={exports:{}},ge={};/**
|
|
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
|
|
114
|
+
*/var Ll;function A1(){if(Ll)return ge;Ll=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"),y;y=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===y||m.getModuleId!==void 0)},ge.typeOf=p,ge}var me={};/**
|
|
115
115
|
* @license React
|
|
116
116
|
* react-is.development.js
|
|
117
117
|
*
|
|
@@ -119,33 +119,33 @@ 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
|
|
122
|
+
*/var Pl;function I1(){return Pl||(Pl=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"),y=!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||y||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 v(Q){if(typeof Q=="object"&&Q!==null){var rt=Q.$$typeof;switch(rt){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 rt}}case t:return rt}}}var O=a,A=o,D=e,C=u,T=n,I=f,g=d,w=t,z=i,$=r,L=l,U=c,B=!1,ne=!1;function S(Q){return B||(B=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function R(Q){return ne||(ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(Q){return v(Q)===a}function G(Q){return v(Q)===o}function q(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===e}function H(Q){return v(Q)===u}function K(Q){return v(Q)===n}function J(Q){return v(Q)===f}function ee(Q){return v(Q)===d}function re(Q){return v(Q)===t}function te(Q){return v(Q)===i}function Ce(Q){return v(Q)===r}function P(Q){return v(Q)===l}function Fe(Q){return v(Q)===c}me.ContextConsumer=O,me.ContextProvider=A,me.Element=D,me.ForwardRef=C,me.Fragment=T,me.Lazy=I,me.Memo=g,me.Portal=w,me.Profiler=z,me.StrictMode=$,me.Suspense=L,me.SuspenseList=U,me.isAsyncMode=S,me.isConcurrentMode=R,me.isContextConsumer=W,me.isContextProvider=G,me.isElement=q,me.isForwardRef=H,me.isFragment=K,me.isLazy=J,me.isMemo=ee,me.isPortal=re,me.isProfiler=te,me.isStrictMode=Ce,me.isSuspense=P,me.isSuspenseList=Fe,me.isValidElementType=b,me.typeOf=v}()),me}(function(e){process.env.NODE_ENV==="production"?e.exports=A1():e.exports=I1()})(fa);const z1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function j1(e){const t=`${e}`.match(z1);return t&&t[1]||""}function Fl(e,t=""){return e.displayName||e.name||j1(e)||t}function Ul(e,t,n){const r=Fl(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function k1(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Fl(e,"Component");if(typeof e=="object")switch(e.$$typeof){case fa.exports.ForwardRef:return Ul(e,e.render,"ForwardRef");case fa.exports.Memo:return Ul(e,e.type,"memo");default:return}}}function Tt(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function $1(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function R1(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 L1(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 P1(e,t){return Me.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Yl(e){return e&&e.ownerDocument||document}function F1(e){return Yl(e).defaultView||window}function U1(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 da(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ql=typeof window<"u"?Me.useLayoutEffect:Me.useEffect;let Vl=0;function Y1(e){const[t,n]=Me.useState(e),r=e||t;return Me.useEffect(()=>{t==null&&(Vl+=1,n(`mui-${Vl}`))},[t]),r}const Bl=Me["useId"];function q1(e){if(Bl!==void 0){const t=Bl();return e!=null?e:t}return Y1(e)}function V1(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 B1({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
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 Q1(e){const t=Me.useRef(e);return
|
|
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=uv(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}(),Pe="-ms-",si="-moz-",fe="-webkit-",ga="comm",ma="rule",va="decl",fv="@import",Xl="@keyframes",dv=Math.abs,ui=String.fromCharCode,hv=Object.assign;function pv(e,t){return(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3)}function Jl(e){return e.trim()}function gv(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,n){return e.replace(t,n)}function ya(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Hn(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function _a(e){return e.length}function li(e,t){return t.push(e),e}function mv(e,t){return e.map(t).join("")}var ci=1,gn=1,Hl=0,Ge=0,Oe=0,mn="";function fi(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ci,column:gn,length:a,return:""}}function Zn(e,t){return hv(fi("",null,null,"",null,null,0),e,{length:-e.length},t)}function vv(){return Oe}function yv(){return Oe=Ge>0?We(mn,--Ge):0,gn--,Oe===10&&(gn=1,ci--),Oe}function et(){return Oe=Ge<Hl?We(mn,Ge++):0,gn++,Oe===10&&(gn=1,ci++),Oe}function bt(){return We(mn,Ge)}function di(){return Ge}function er(e,t){return Hn(mn,e,t)}function tr(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 Zl(e){return ci=gn=1,Hl=_t(mn=e),Ge=0,[]}function ec(e){return mn="",e}function hi(e){return Jl(er(Ge-1,ba(e===91?e+2:e===40?e+1:e)))}function _v(e){for(;(Oe=bt())&&Oe<33;)et();return tr(e)>2||tr(Oe)>3?"":" "}function bv(e,t){for(;--t&&et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return er(e,di()+(t<6&&bt()==32&&et()==32))}function ba(e){for(;et();)switch(Oe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&ba(Oe);break;case 40:e===41&&ba(e);break;case 92:et();break}return Ge}function xv(e,t){for(;et()&&e+Oe!==47+10;)if(e+Oe===42+42&&bt()===47)break;return"/*"+er(t,Ge-1)+"*"+ui(e===47?e:et())}function Mv(e){for(;!tr(bt());)et();return er(e,Ge)}function wv(e){return ec(pi("",null,null,null,[""],e=Zl(e),0,[0],e))}function pi(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,y=0,p=1,m=1,x=1,M=0,N="",b=i,v=o,O=r,A=N;m;)switch(y=M,M=et()){case 40:if(y!=108&&A.charCodeAt(d-1)==58){ya(A+=ve(hi(M),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=hi(M);break;case 9:case 10:case 13:case 32:A+=_v(y);break;case 92:A+=bv(di()-1,7);continue;case 47:switch(bt()){case 42:case 47:li(Nv(xv(et(),di()),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&&li(h>32?nc(A+";",r,n,d-1):nc(ve(A," ","")+";",r,n,d-2),u);break;case 59:A+=";";default:if(li(O=tc(A,t,n,l,c,i,s,N,b=[],v=[],d),o),M===123)if(c===0)pi(A,t,O,O,b,o,d,s,v);else switch(f){case 100:case 109:case 115:pi(e,O,O,r&&li(tc(e,O,O,0,0,i,s,N,i,b=[],d),v),i,v,d,s,r?b:v);break;default:pi(A,O,O,O,[""],v,0,s,v)}}l=c=h=0,p=x=1,N=A="",d=a;break;case 58:d=1+_t(A),h=y;default:if(p<1){if(M==123)--p;else if(M==125&&p++==0&&yv()==125)continue}switch(A+=ui(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+=hi(et())),f=bt(),c=d=_t(N=A+=Mv(di())),M++;break;case 45:y===45&&_t(A)==2&&(p=0)}}return o}function tc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=_a(f),y=0,p=0,m=0;y<r;++y)for(var x=0,M=Hn(e,d+1,d=dv(p=a[y])),N=e;x<h;++x)(N=Jl(p>0?f[x]+" "+M:ve(M,/&\f/g,f[x])))&&(u[m++]=N);return fi(e,t,n,i===0?ma:s,u,l,c)}function Nv(e,t,n){return fi(e,t,n,ga,ui(vv()),Hn(e,2,-2),0)}function nc(e,t,n,r){return fi(e,t,n,va,Hn(e,0,r),Hn(e,r+1,-1),r)}function rc(e,t){switch(pv(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+si+e+Pe+e+e;case 6828:case 4268:return fe+e+Pe+e+e;case 6165:return fe+e+Pe+"flex-"+e+e;case 5187:return fe+e+ve(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return fe+e+Pe+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return fe+e+Pe+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Pe+ve(e,"shrink","negative")+e;case 5292:return fe+e+Pe+ve(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+ve(e,"-grow","")+fe+e+Pe+ve(e,"grow","positive")+e;case 4554:return fe+ve(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_t(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+si+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ya(e,"stretch")?rc(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,_t(e)-3-(~ya(e,"!important")&&10))){case 107:return ve(e,":",":"+fe)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(We(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Pe+e+e}return e}function vn(e,t){for(var n="",r=_a(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Tv(e,t,n,r){switch(e.type){case fv:case va:return e.return=e.return||e.value;case ga:return"";case Xl:return e.return=e.value+"{"+vn(e.children,r)+"}";case ma:e.value=e.props.join(",")}return _t(n=vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ev(e){var t=_a(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 Dv(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ov(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case va:e.return=rc(e.value,e.length);break;case Xl:return vn([Zn(e,{value:ve(e.value,"@","@"+fe)})],r);case ma:if(e.length)return mv(e.props,function(i){switch(gv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Zn(e,{props:[ve(i,/:(read-\w+)/,":"+si+"$1")]})],r);case"::placeholder":return vn([Zn(e,{props:[ve(i,/:(plac\w+)/,":"+fe+"input-$1")]}),Zn(e,{props:[ve(i,/:(plac\w+)/,":"+si+"$1")]}),Zn(e,{props:[ve(i,/:(plac\w+)/,Pe+"input-$1")]})],r)}return""})}}var Cv=function(t,n,r){for(var i=0,o=0;i=o,o=bt(),i===38&&o===12&&(n[r]=1),!tr(o);)et();return er(t,Ge)},Sv=function(t,n){var r=-1,i=44;do switch(tr(i)){case 0:i===38&&bt()===12&&(n[r]=1),t[r]+=Cv(Ge-1,n,r);break;case 2:t[r]+=hi(i);break;case 4:if(i===44){t[++r]=bt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ui(i)}while(i=et());return t},Av=function(t,n){return ec(Sv(Zl(t),n))},ic=new WeakMap,Iv=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&&!ic.get(r))&&!i){ic.set(t,!0);for(var o=[],a=Av(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]}}},zv=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},jv="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kv=function(t){return t.type==="comm"&&t.children.indexOf(jv)>-1},$v=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(kv(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".')})}}}},oc=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Rv=function(t,n){for(var r=t-1;r>=0;r--)if(!oc(n[r]))return!0;return!1},ac=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Lv=function(t,n,r){!oc(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."),ac(t)):Rv(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ac(t)))},Pv=[Ov],Fv=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||Pv;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=[Iv,zv];process.env.NODE_ENV!=="production"&&l.push($v({get compat(){return y.compat}}),Lv);{var c,d=[Tv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==
|
|
124
|
+
`))},[JSON.stringify(t)])}const u=Me.useCallback(l=>{i||a(l)},[]);return[s,u]}function Q1(e){const t=Me.useRef(e);return ql(()=>{t.current=e}),Me.useCallback((...n)=>(0,t.current)(...n),[])}function W1(e,t){return Me.useMemo(()=>e==null&&t==null?null:n=>{da(e,n),da(t,n)},[e,t])}let ai=!0,ha=!1,Ql;const G1={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 K1(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&G1[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function X1(e){e.metaKey||e.altKey||e.ctrlKey||(ai=!0)}function pa(){ai=!1}function J1(){this.visibilityState==="hidden"&&ha&&(ai=!0)}function H1(e){e.addEventListener("keydown",X1,!0),e.addEventListener("mousedown",pa,!0),e.addEventListener("pointerdown",pa,!0),e.addEventListener("touchstart",pa,!0),e.addEventListener("visibilitychange",J1,!0)}function Z1(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ai||K1(t)}function ev(){const e=Me.useCallback(i=>{i!=null&&H1(i.ownerDocument)},[]),t=Me.useRef(!1);function n(){return t.current?(ha=!0,window.clearTimeout(Ql),Ql=window.setTimeout(()=>{ha=!1},100),t.current=!1,!0):!1}function r(i){return Z1(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 Wl=e=>e,Gl=(()=>{let e=Wl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Wl}}})(),rv={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function ga(e,t,n="Mui"){const r=rv[t];return r?`${n}-${r}`:`${Gl.generate(e)}-${t}`}function iv(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ga(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 Kl(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=Kl(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=Kl(e))&&(r&&(r+=" "),r+=t);return r}function Xl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var av=/^((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=Xl(function(e){return av.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function uv(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 lv(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 cv=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(lv(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=uv(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}(),Pe="-ms-",si="-moz-",fe="-webkit-",ma="comm",va="rule",ya="decl",fv="@import",Jl="@keyframes",dv=Math.abs,ui=String.fromCharCode,hv=Object.assign;function pv(e,t){return(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3)}function Hl(e){return e.trim()}function gv(e,t){return(e=t.exec(e))?e[0]:e}function ve(e,t,n){return e.replace(t,n)}function _a(e,t){return e.indexOf(t)}function We(e,t){return e.charCodeAt(t)|0}function Hn(e,t,n){return e.slice(t,n)}function _t(e){return e.length}function ba(e){return e.length}function li(e,t){return t.push(e),e}function mv(e,t){return e.map(t).join("")}var ci=1,gn=1,Zl=0,Ge=0,Oe=0,mn="";function fi(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ci,column:gn,length:a,return:""}}function Zn(e,t){return hv(fi("",null,null,"",null,null,0),e,{length:-e.length},t)}function vv(){return Oe}function yv(){return Oe=Ge>0?We(mn,--Ge):0,gn--,Oe===10&&(gn=1,ci--),Oe}function et(){return Oe=Ge<Zl?We(mn,Ge++):0,gn++,Oe===10&&(gn=1,ci++),Oe}function bt(){return We(mn,Ge)}function di(){return Ge}function er(e,t){return Hn(mn,e,t)}function tr(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 ec(e){return ci=gn=1,Zl=_t(mn=e),Ge=0,[]}function tc(e){return mn="",e}function hi(e){return Hl(er(Ge-1,xa(e===91?e+2:e===40?e+1:e)))}function _v(e){for(;(Oe=bt())&&Oe<33;)et();return tr(e)>2||tr(Oe)>3?"":" "}function bv(e,t){for(;--t&&et()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return er(e,di()+(t<6&&bt()==32&&et()==32))}function xa(e){for(;et();)switch(Oe){case e:return Ge;case 34:case 39:e!==34&&e!==39&&xa(Oe);break;case 40:e===41&&xa(e);break;case 92:et();break}return Ge}function xv(e,t){for(;et()&&e+Oe!==47+10;)if(e+Oe===42+42&&bt()===47)break;return"/*"+er(t,Ge-1)+"*"+ui(e===47?e:et())}function Mv(e){for(;!tr(bt());)et();return er(e,Ge)}function wv(e){return tc(pi("",null,null,null,[""],e=ec(e),0,[0],e))}function pi(e,t,n,r,i,o,a,s,u){for(var l=0,c=0,d=a,f=0,h=0,y=0,p=1,m=1,x=1,M=0,N="",b=i,v=o,O=r,A=N;m;)switch(y=M,M=et()){case 40:if(y!=108&&A.charCodeAt(d-1)==58){_a(A+=ve(hi(M),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=hi(M);break;case 9:case 10:case 13:case 32:A+=_v(y);break;case 92:A+=bv(di()-1,7);continue;case 47:switch(bt()){case 42:case 47:li(Nv(xv(et(),di()),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&&li(h>32?rc(A+";",r,n,d-1):rc(ve(A," ","")+";",r,n,d-2),u);break;case 59:A+=";";default:if(li(O=nc(A,t,n,l,c,i,s,N,b=[],v=[],d),o),M===123)if(c===0)pi(A,t,O,O,b,o,d,s,v);else switch(f){case 100:case 109:case 115:pi(e,O,O,r&&li(nc(e,O,O,0,0,i,s,N,i,b=[],d),v),i,v,d,s,r?b:v);break;default:pi(A,O,O,O,[""],v,0,s,v)}}l=c=h=0,p=x=1,N=A="",d=a;break;case 58:d=1+_t(A),h=y;default:if(p<1){if(M==123)--p;else if(M==125&&p++==0&&yv()==125)continue}switch(A+=ui(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+=hi(et())),f=bt(),c=d=_t(N=A+=Mv(di())),M++;break;case 45:y===45&&_t(A)==2&&(p=0)}}return o}function nc(e,t,n,r,i,o,a,s,u,l,c){for(var d=i-1,f=i===0?o:[""],h=ba(f),y=0,p=0,m=0;y<r;++y)for(var x=0,M=Hn(e,d+1,d=dv(p=a[y])),N=e;x<h;++x)(N=Hl(p>0?f[x]+" "+M:ve(M,/&\f/g,f[x])))&&(u[m++]=N);return fi(e,t,n,i===0?va:s,u,l,c)}function Nv(e,t,n){return fi(e,t,n,ma,ui(vv()),Hn(e,2,-2),0)}function rc(e,t,n,r){return fi(e,t,n,ya,Hn(e,0,r),Hn(e,r+1,-1),r)}function ic(e,t){switch(pv(e,t)){case 5103:return fe+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return fe+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return fe+e+si+e+Pe+e+e;case 6828:case 4268:return fe+e+Pe+e+e;case 6165:return fe+e+Pe+"flex-"+e+e;case 5187:return fe+e+ve(e,/(\w+).+(:[^]+)/,fe+"box-$1$2"+Pe+"flex-$1$2")+e;case 5443:return fe+e+Pe+"flex-item-"+ve(e,/flex-|-self/,"")+e;case 4675:return fe+e+Pe+"flex-line-pack"+ve(e,/align-content|flex-|-self/,"")+e;case 5548:return fe+e+Pe+ve(e,"shrink","negative")+e;case 5292:return fe+e+Pe+ve(e,"basis","preferred-size")+e;case 6060:return fe+"box-"+ve(e,"-grow","")+fe+e+Pe+ve(e,"grow","positive")+e;case 4554:return fe+ve(e,/([^-])(transform)/g,"$1"+fe+"$2")+e;case 6187:return ve(ve(ve(e,/(zoom-|grab)/,fe+"$1"),/(image-set)/,fe+"$1"),e,"")+e;case 5495:case 3959:return ve(e,/(image-set\([^]*)/,fe+"$1$`$1");case 4968:return ve(ve(e,/(.+:)(flex-)?(.*)/,fe+"box-pack:$3"+Pe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+fe+e+e;case 4095:case 3583:case 4068:case 2532:return ve(e,/(.+)-inline(.+)/,fe+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_t(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ve(e,/(.+:)(.+)-([^]+)/,"$1"+fe+"$2-$3$1"+si+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~_a(e,"stretch")?ic(ve(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,_t(e)-3-(~_a(e,"!important")&&10))){case 107:return ve(e,":",":"+fe)+e;case 101:return ve(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+fe+(We(e,14)===45?"inline-":"")+"box$3$1"+fe+"$2$3$1"+Pe+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return fe+e+Pe+ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return fe+e+Pe+e+e}return e}function vn(e,t){for(var n="",r=ba(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Tv(e,t,n,r){switch(e.type){case fv:case ya:return e.return=e.return||e.value;case ma:return"";case Jl:return e.return=e.value+"{"+vn(e.children,r)+"}";case va:e.value=e.props.join(",")}return _t(n=vn(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ev(e){var t=ba(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 Dv(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ov(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ya:e.return=ic(e.value,e.length);break;case Jl:return vn([Zn(e,{value:ve(e.value,"@","@"+fe)})],r);case va:if(e.length)return mv(e.props,function(i){switch(gv(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vn([Zn(e,{props:[ve(i,/:(read-\w+)/,":"+si+"$1")]})],r);case"::placeholder":return vn([Zn(e,{props:[ve(i,/:(plac\w+)/,":"+fe+"input-$1")]}),Zn(e,{props:[ve(i,/:(plac\w+)/,":"+si+"$1")]}),Zn(e,{props:[ve(i,/:(plac\w+)/,Pe+"input-$1")]})],r)}return""})}}var Cv=function(t,n,r){for(var i=0,o=0;i=o,o=bt(),i===38&&o===12&&(n[r]=1),!tr(o);)et();return er(t,Ge)},Sv=function(t,n){var r=-1,i=44;do switch(tr(i)){case 0:i===38&&bt()===12&&(n[r]=1),t[r]+=Cv(Ge-1,n,r);break;case 2:t[r]+=hi(i);break;case 4:if(i===44){t[++r]=bt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=ui(i)}while(i=et());return t},Av=function(t,n){return tc(Sv(ec(t),n))},oc=new WeakMap,Iv=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&&!oc.get(r))&&!i){oc.set(t,!0);for(var o=[],a=Av(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]}}},zv=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}},jv="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",kv=function(t){return t.type==="comm"&&t.children.indexOf(jv)>-1},$v=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(kv(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".')})}}}},ac=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Rv=function(t,n){for(var r=t-1;r>=0;r--)if(!ac(n[r]))return!0;return!1},sc=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Lv=function(t,n,r){!ac(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."),sc(t)):Rv(n,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),sc(t)))},Pv=[Ov],Fv=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||Pv;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=[Iv,zv];process.env.NODE_ENV!=="production"&&l.push($v({get compat(){return y.compat}}),Lv);{var c,d=[Tv,process.env.NODE_ENV!=="production"?function(p){p.root||(p.return?c.insert(p.return):p.value&&p.type!==ma&&c.insert(p.value+"{}"))}:Dv(function(p){c.insert(p)})],f=Ev(l.concat(i,d)),h=function(m){return vn(wv(m),f)};u=function(m,x,M,N){c=M,process.env.NODE_ENV!=="production"&&x.map!==void 0&&(c={insert:function(v){M.insert(v+x.map)}}),h(m?m+"{"+x.styles+"}":x.styles),N&&(y.inserted[x.name]=!0)}}var y={key:n,sheet:new cv({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 y.sheet.hydrate(s),y},Uv=!0;function uc(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):r+=i+" "}),r}var Ma=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||Uv===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},lc=function(t,n,r){Ma(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 Yv(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 qv={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},cc=`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`,Vv="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bv=/[A-Z]|^ms/g,
|
|
129
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Vv="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Bv=/[A-Z]|^ms/g,fc=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wa=function(t){return t.charCodeAt(1)===45},dc=function(t){return t!=null&&typeof t!="boolean"},Na=Xl(function(e){return wa(e)?e:e.replace(Bv,"-$&").toLowerCase()}),gi=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fc,function(r,i,o){return ht={name:i,styles:o,next:ht},i})}return qv[t]!==1&&!wa(t)&&typeof n=="number"&&n!==0?n+"px":n};if(process.env.NODE_ENV!=="production"){var Qv=/(var|attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Wv=["normal","none","initial","inherit","unset"],Gv=gi,Kv=/^-ms-/,Xv=/-(.)/g,hc={};gi=function(t,n){if(t==="content"&&(typeof n!="string"||Wv.indexOf(n)===-1&&!Qv.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=Gv(t,n);return r!==""&&!wa(t)&&t.indexOf("-")!==-1&&hc[t]===void 0&&(hc[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Kv,"ms-").replace(Xv,function(i,o){return o.toUpperCase()})+"?")),r}}var pc="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function nr(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(pc);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 Jv(e,t,n)}case"function":{if(e!==void 0){var o=ht,a=n(e);return ht=o,nr(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(fc,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 Jv(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=nr(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]+"}":
|
|
134
|
+
`+("css`"+u+"`"))}break}if(t==null)return n;var l=t[n];return l!==void 0?l:n}function Jv(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=nr(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]+"}":dc(a)&&(r+=Na(o)+":"+gi(o,a)+";");else{if(o==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(pc);if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)dc(a[s])&&(r+=Na(o)+":"+gi(o,a[s])+";");else{var u=nr(e,t,a);switch(o){case"animation":case"animationName":{r+=Na(o)+":"+u+";";break}default:process.env.NODE_ENV!=="production"&&o==="undefined"&&console.error(Vv),r+=o+"{"+u+"}"}}}}return r}var gc=/label:\s*([^\s;\n{]+)\s*(;|$)/g,mc;process.env.NODE_ENV!=="production"&&(mc=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ht,Ta=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+=nr(r,n,a)):(process.env.NODE_ENV!=="production"&&a[0]===void 0&&console.error(cc),o+=a[0]);for(var s=1;s<t.length;s++)o+=nr(r,n,t[s]),i&&(process.env.NODE_ENV!=="production"&&a[s]===void 0&&console.error(cc),o+=a[s]);var u;process.env.NODE_ENV!=="production"&&(o=o.replace(mc,function(f){return u=f,""})),gc.lastIndex=0;for(var l="",c;(c=gc.exec(o))!==null;)l+="-"+c[1];var d=Yv(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}},Hv=function(t){return t()},Zv=Me["useInsertionEffect"]?Me["useInsertionEffect"]:!1,vc=Zv||Hv,ey={}.hasOwnProperty,Ea=X.createContext(typeof HTMLElement<"u"?Fv({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Ea.displayName="EmotionCacheContext"),Ea.Provider;var yc=function(t){return X.forwardRef(function(n,r){var i=X.useContext(Ea);return t(n,i,r)})},Da=X.createContext({});process.env.NODE_ENV!=="production"&&(Da.displayName="EmotionThemeContext");var _c="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",bc="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",ty=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Ma(n,r,i),vc(function(){return lc(n,r,i)}),null},ny=yc(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[_c],o=[r],a="";typeof e.className=="string"?a=uc(t.registered,o,e.className):e.className!=null&&(a=e.className+" ");var s=Ta(o,void 0,X.useContext(Da));if(process.env.NODE_ENV!=="production"&&s.name.indexOf("-")===-1){var u=e[bc];u&&(s=Ta([s,"label:"+u+";"]))}a+=t.key+"-"+s.name;var l={};for(var c in e)ey.call(e,c)&&c!=="css"&&c!==_c&&(process.env.NODE_ENV==="production"||c!==bc)&&(l[c]=e[c]);return l.ref=n,l.className=a,X.createElement(X.Fragment,null,X.createElement(ty,{cache:t,serialized:s,isStringTag:typeof i=="string"}),X.createElement(i,l))});process.env.NODE_ENV!=="production"&&(ny.displayName="EmotionCssPropInternal");var ry=sv,iy=function(t){return t!=="theme"},xc=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?ry:iy},Mc=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},wc=`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
|
-
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
|
|
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=
|
|
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 Ma(n,r,i),vc(function(){return lc(n,r,i)}),null},ay=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=Mc(t,n,r),u=s||xc(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(wc),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(wc),d.push(c[h],c[0][h])}var y=yc(function(p,m,x){var M=l&&p.as||i,N="",b=[],v=p;if(p.theme==null){v={};for(var O in p)v[O]=p[O];v.theme=X.useContext(Da)}typeof p.className=="string"?N=uc(m.registered,b,p.className):p.className!=null&&(N=p.className+" ");var A=Ta(d.concat(b),m.registered,v);N+=m.key+"-"+A.name,a!==void 0&&(N+=" "+a);var D=l&&s===void 0?xc(M):u,C={};for(var T in p)l&&T==="as"||D(T)&&(C[T]=p[T]);return C.className=N,C.ref=x,X.createElement(X.Fragment,null,X.createElement(oy,{cache:m,serialized:A,isStringTag:typeof M=="string"}),X.createElement(M,C))});return y.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=i,y.__emotion_styles=d,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return a===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+a}}),y.withComponent=function(p,m){return e(p,_e({},n,m,{shouldForwardProp:Mc(y,m,!0)})).apply(void 0,d)},y}},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"],Oa=ay.bind();sy.forEach(function(e){Oa[e]=Oa(e)});const uy=Oa;/** @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 ly(e,t){const n=uy(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 cy=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Rt=process.env.NODE_ENV!=="production"?se.exports.oneOfType([se.exports.number,se.exports.string,se.exports.object,se.exports.array]):{};function rr(e,t){return t?Nt(e,t,{clone:!1}):e}const
|
|
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 cy=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Rt=process.env.NODE_ENV!=="production"?se.exports.oneOfType([se.exports.number,se.exports.string,se.exports.object,se.exports.array]):{};function rr(e,t){return t?Nt(e,t,{clone:!1}):e}const Ca={xs:0,sm:600,md:900,lg:1200,xl:1536},Nc={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ca[e]}px)`};function Lt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Nc;return t.reduce((a,s,u)=>(a[o.up(o.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const o=r.breakpoints||Nc;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||Ca).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 fy(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function dy(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Sa(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 Tc(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Sa(e,n)||r,t&&(i=t(i)),i}function V(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=Sa(u,r)||{};return Lt(a,s,d=>{let f=Tc(l,i,d);return d===f&&typeof d=="string"&&(f=Tc(l,i,`${t}${d==="default"?"":Tt(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]?rr(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 hy(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const py={m:"margin",p:"padding"},gy={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ec={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},my=hy(e=>{if(e.length>2)if(Ec[e])e=Ec[e];else return[e];const[t,n]=e.split(""),r=py[t],i=gy[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),Dc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Oc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Aa=[...Dc,...Oc];function ir(e,t,n,r){var i;const o=(i=Sa(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 Oc(e){return ir(e,"spacing",8,"spacing")}function or(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 vy(e,t){return n=>e.reduce((r,i)=>(r[i]=or(t,n),r),{})}function yy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=my(n),o=vy(i,r),a=e[n];return Lt(e,a,o)}function _y(e,t){const n=Oc(e.theme);return Object.keys(e).map(r=>yy(e,t,r,n)).reduce(rr,{})}process.env.NODE_ENV!=="production"&&Ec.reduce((e,t)=>(e[t]=Rt,e),{}),process.env.NODE_ENV!=="production"&&Dc.reduce((e,t)=>(e[t]=Rt,e),{});function mi(e){return _y(e,Sa)}mi.propTypes=process.env.NODE_ENV!=="production"?Sa.reduce((e,t)=>(e[t]=Rt,e),{}):{},mi.filterProps=Sa;function ar(e){return typeof e!="number"?e:`${e}px solid`}const by=V({prop:"border",themeKey:"borders",transform:ar}),xy=V({prop:"borderTop",themeKey:"borders",transform:ar}),My=V({prop:"borderRight",themeKey:"borders",transform:ar}),wy=V({prop:"borderBottom",themeKey:"borders",transform:ar}),Ny=V({prop:"borderLeft",themeKey:"borders",transform:ar}),Ty=V({prop:"borderColor",themeKey:"palette"}),Ey=V({prop:"borderTopColor",themeKey:"palette"}),Dy=V({prop:"borderRightColor",themeKey:"palette"}),Oy=V({prop:"borderBottomColor",themeKey:"palette"}),Cy=V({prop:"borderLeftColor",themeKey:"palette"}),Aa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ir(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:or(t,r)});return Lt(e,e.borderRadius,n)}return null};Aa.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{},Aa.filterProps=["borderRadius"];const Cc=Pt(by,xy,My,wy,Ny,Ty,Ey,Dy,Oy,Cy,Aa),Sy=V({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Ay=V({prop:"display"}),Iy=V({prop:"overflow"}),zy=V({prop:"textOverflow"}),jy=V({prop:"visibility"}),ky=V({prop:"whiteSpace"}),Sc=Pt(Sy,Ay,Iy,zy,jy,ky),$y=V({prop:"flexBasis"}),Ry=V({prop:"flexDirection"}),Ly=V({prop:"flexWrap"}),Py=V({prop:"justifyContent"}),Fy=V({prop:"alignItems"}),Uy=V({prop:"alignContent"}),Yy=V({prop:"order"}),qy=V({prop:"flex"}),Vy=V({prop:"flexGrow"}),By=V({prop:"flexShrink"}),Qy=V({prop:"alignSelf"}),Wy=V({prop:"justifyItems"}),Gy=V({prop:"justifySelf"}),Ac=Pt($y,Ry,Ly,Py,Fy,Uy,Yy,qy,Vy,By,Qy,Wy,Gy),Ia=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ir(e.theme,"spacing",8,"gap"),n=r=>({gap:or(t,r)});return Lt(e,e.gap,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{},Ia.filterProps=["gap"];const za=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ir(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:or(t,r)});return Lt(e,e.columnGap,n)}return null};za.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{},za.filterProps=["columnGap"];const ja=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ir(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:or(t,r)});return Lt(e,e.rowGap,n)}return null};ja.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{},ja.filterProps=["rowGap"];const Ky=V({prop:"gridColumn"}),Xy=V({prop:"gridRow"}),Jy=V({prop:"gridAutoFlow"}),Hy=V({prop:"gridAutoColumns"}),Zy=V({prop:"gridAutoRows"}),e_=V({prop:"gridTemplateColumns"}),t_=V({prop:"gridTemplateRows"}),n_=V({prop:"gridTemplateAreas"}),r_=V({prop:"gridArea"}),Ic=Pt(Ia,za,ja,Ky,Xy,Jy,Hy,Zy,e_,t_,n_,r_),i_=V({prop:"color",themeKey:"palette"}),o_=V({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),a_=V({prop:"backgroundColor",themeKey:"palette"}),zc=Pt(i_,o_,a_),s_=V({prop:"position"}),u_=V({prop:"zIndex",themeKey:"zIndex"}),l_=V({prop:"top"}),c_=V({prop:"right"}),f_=V({prop:"bottom"}),d_=V({prop:"left"}),jc=Pt(s_,u_,l_,c_,f_,d_),kc=V({prop:"boxShadow",themeKey:"shadows"});function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const h_=V({prop:"width",transform:Ft}),$c=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])||Oa[n]||Ft(n)}};return Lt(e,e.maxWidth,t)}return null};$c.filterProps=["maxWidth"];const p_=V({prop:"minWidth",transform:Ft}),g_=V({prop:"height",transform:Ft}),m_=V({prop:"maxHeight",transform:Ft}),v_=V({prop:"minHeight",transform:Ft});V({prop:"size",cssProperty:"width",transform:Ft}),V({prop:"size",cssProperty:"height",transform:Ft});const y_=V({prop:"boxSizing"}),Rc=Pt(h_,$c,p_,g_,m_,v_,y_),__=V({prop:"fontFamily",themeKey:"typography"}),b_=V({prop:"fontSize",themeKey:"typography"}),x_=V({prop:"fontStyle",themeKey:"typography"}),M_=V({prop:"fontWeight",themeKey:"typography"}),w_=V({prop:"letterSpacing"}),N_=V({prop:"textTransform"}),T_=V({prop:"lineHeight"}),E_=V({prop:"textAlign"}),D_=V({prop:"typography",cssProperty:!1,themeKey:"typography"}),Lc=Pt(D_,__,b_,x_,M_,w_,T_,E_,N_),Pc={borders:Cc.filterProps,display:Sc.filterProps,flexbox:Ac.filterProps,grid:Ic.filterProps,positions:jc.filterProps,palette:zc.filterProps,shadows:kc.filterProps,sizing:Rc.filterProps,spacing:mi.filterProps,typography:Lc.filterProps},Fc={borders:Cc,display:Sc,flexbox:Ac,grid:Ic,positions:jc,palette:zc,shadows:kc,sizing:Rc,spacing:mi,typography:Lc};Object.keys(Pc).reduce((e,t)=>(Pc[t].forEach(n=>{e[n]=Fc[t]}),e),{});function O_(...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 C_(e,t){return typeof e=="function"?e(t):e}function S_(e=Fc){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=fy(a.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const y=C_(l[h],a);if(y!=null)if(typeof y=="object")if(t[h])f=rr(f,n(h,y,a));else{const p=Lt({theme:a},y,m=>({[h]:m}));O_(p,y)?f[h]=r({sx:y,theme:a}):f=rr(f,p)}else f=rr(f,n(h,y,a))}),dy(d,f)}return Array.isArray(o)?o.map(s):s(o)}return r}const Uc=S_();Uc.filterProps=["sx"];const A_=Uc,I_=["values","unit","step"],z_=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 j_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=dt(e,I_),o=z_(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 y=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?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 k_={borderRadius:4};function $_(e=8){if(e.mui)return e;const t=Oc({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 R_=["breakpoints","palette","spacing","shape"];function ka(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=dt(e,R_),s=j_(n),u=$_(i);let l=Nt({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},r),spacing:u,shape:_e({},k_,o)},a);return l=t.reduce((c,d)=>Nt(c,d),l),l}const Yc=Me.createContext(null);process.env.NODE_ENV!=="production"&&(Yc.displayName="ThemeContext");const L_=Yc;function P_(){const e=Me.useContext(L_);return process.env.NODE_ENV!=="production"&&Me.useDebugValue(e),e}function F_(e){return Object.keys(e).length===0}function U_(e=null){const t=P_();return!t||F_(t)?e:t}const Y_=ka();function q_(e=Y_){return U_(e)}const V_=["variant"];function qc(e){return e.length===0}function Vc(e){const{variant:t}=e,n=dt(e,V_);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=qc(r)?e[i]:Tt(e[i]):r+=`${qc(r)?i:Tt(i)}${Tt(e[i].toString())}`}),r}const B_=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Q_=["theme"],W_=["theme"];function sr(e){return Object.keys(e).length===0}function G_(e){return typeof e=="string"&&e.charCodeAt(0)>96}const K_=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,X_=(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=Vc(i.props);r[o]=i.style}),r},J_=(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[Vc(l.props)])}),s};function vi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const H_=ka(),Z_=e=>e.charAt(0).toLowerCase()+e.slice(1);function eb(e={}){const{defaultTheme:t=H_,rootShouldForwardProp:n=vi,slotShouldForwardProp:r=vi,styleFunctionSx:i=A_}=e,o=a=>{const s=sr(a.theme)?t:a.theme;return i(_e({},a,{theme:s}))};return o.__mui_systemSx=!0,(a,s={})=>{cy(a,b=>b.filter(v=>!(v!=null&&v.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=dt(s,B_),y=c!==void 0?c:l&&l!=="Root"||!1,p=d||!1;let m;process.env.NODE_ENV!=="production"&&u&&(m=`${u}-${Z_(l||"Root")}`);let x=vi;l==="Root"?x=n:l?x=r:G_(a)&&(x=void 0);const M=ly(a,_e({shouldForwardProp:x,label:m},h)),N=(b,...v)=>{const O=v?v.map(T=>typeof T=="function"&&T.__emotion_real!==T?I=>{let{theme:g}=I,w=dt(I,Q_);return T(_e({theme:sr(g)?t:g},w))}:T):[];let A=b;u&&f&&O.push(T=>{const I=sr(T.theme)?t:T.theme,g=K_(u,I);if(g){const w={};return Object.entries(g).forEach(([z,$])=>{w[z]=typeof $=="function"?$(_e({},T,{theme:I})):$}),f(T,w)}return null}),u&&!y&&O.push(T=>{const I=sr(T.theme)?t:T.theme;return J_(T,X_(u,I),I,u)}),p||O.push(o);const E=O.length-v.length;if(Array.isArray(b)&&E>0){const T=new Array(E).fill("");A=[...b,...T],A.raw=[...b.raw,...T]}else typeof b=="function"&&b.__emotion_real!==b&&(A=T=>{let{theme:I}=T,g=dt(T,W_);return b(_e({theme:sr(I)?t:I},g))});const C=M(A,...O);if(process.env.NODE_ENV!=="production"){let T;u&&(T=`${u}${l||""}`),T===void 0&&(T=`Styled(${k1(a)})`),C.displayName=T}return C};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=q_(n);return tb({theme:r,name:t,props:e})}function Bc(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 rb(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 yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(rb(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.
|
|
146
|
+
`)),()=>{})}function Cc(e){return ir(e,"spacing",8,"spacing")}function or(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 vy(e,t){return n=>e.reduce((r,i)=>(r[i]=or(t,n),r),{})}function yy(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=my(n),o=vy(i,r),a=e[n];return Lt(e,a,o)}function _y(e,t){const n=Cc(e.theme);return Object.keys(e).map(r=>yy(e,t,r,n)).reduce(rr,{})}process.env.NODE_ENV!=="production"&&Dc.reduce((e,t)=>(e[t]=Rt,e),{}),process.env.NODE_ENV!=="production"&&Oc.reduce((e,t)=>(e[t]=Rt,e),{});function mi(e){return _y(e,Aa)}mi.propTypes=process.env.NODE_ENV!=="production"?Aa.reduce((e,t)=>(e[t]=Rt,e),{}):{},mi.filterProps=Aa;function ar(e){return typeof e!="number"?e:`${e}px solid`}const by=V({prop:"border",themeKey:"borders",transform:ar}),xy=V({prop:"borderTop",themeKey:"borders",transform:ar}),My=V({prop:"borderRight",themeKey:"borders",transform:ar}),wy=V({prop:"borderBottom",themeKey:"borders",transform:ar}),Ny=V({prop:"borderLeft",themeKey:"borders",transform:ar}),Ty=V({prop:"borderColor",themeKey:"palette"}),Ey=V({prop:"borderTopColor",themeKey:"palette"}),Dy=V({prop:"borderRightColor",themeKey:"palette"}),Oy=V({prop:"borderBottomColor",themeKey:"palette"}),Cy=V({prop:"borderLeftColor",themeKey:"palette"}),Ia=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ir(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:or(t,r)});return Lt(e,e.borderRadius,n)}return null};Ia.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{},Ia.filterProps=["borderRadius"];const Sc=Pt(by,xy,My,wy,Ny,Ty,Ey,Dy,Oy,Cy,Ia),Sy=V({prop:"displayPrint",cssProperty:!1,transform:e=>({"@media print":{display:e}})}),Ay=V({prop:"display"}),Iy=V({prop:"overflow"}),zy=V({prop:"textOverflow"}),jy=V({prop:"visibility"}),ky=V({prop:"whiteSpace"}),Ac=Pt(Sy,Ay,Iy,zy,jy,ky),$y=V({prop:"flexBasis"}),Ry=V({prop:"flexDirection"}),Ly=V({prop:"flexWrap"}),Py=V({prop:"justifyContent"}),Fy=V({prop:"alignItems"}),Uy=V({prop:"alignContent"}),Yy=V({prop:"order"}),qy=V({prop:"flex"}),Vy=V({prop:"flexGrow"}),By=V({prop:"flexShrink"}),Qy=V({prop:"alignSelf"}),Wy=V({prop:"justifyItems"}),Gy=V({prop:"justifySelf"}),Ic=Pt($y,Ry,Ly,Py,Fy,Uy,Yy,qy,Vy,By,Qy,Wy,Gy),za=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ir(e.theme,"spacing",8,"gap"),n=r=>({gap:or(t,r)});return Lt(e,e.gap,n)}return null};za.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{},za.filterProps=["gap"];const ja=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ir(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:or(t,r)});return Lt(e,e.columnGap,n)}return null};ja.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{},ja.filterProps=["columnGap"];const ka=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ir(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:or(t,r)});return Lt(e,e.rowGap,n)}return null};ka.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{},ka.filterProps=["rowGap"];const Ky=V({prop:"gridColumn"}),Xy=V({prop:"gridRow"}),Jy=V({prop:"gridAutoFlow"}),Hy=V({prop:"gridAutoColumns"}),Zy=V({prop:"gridAutoRows"}),e_=V({prop:"gridTemplateColumns"}),t_=V({prop:"gridTemplateRows"}),n_=V({prop:"gridTemplateAreas"}),r_=V({prop:"gridArea"}),zc=Pt(za,ja,ka,Ky,Xy,Jy,Hy,Zy,e_,t_,n_,r_),i_=V({prop:"color",themeKey:"palette"}),o_=V({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),a_=V({prop:"backgroundColor",themeKey:"palette"}),jc=Pt(i_,o_,a_),s_=V({prop:"position"}),u_=V({prop:"zIndex",themeKey:"zIndex"}),l_=V({prop:"top"}),c_=V({prop:"right"}),f_=V({prop:"bottom"}),d_=V({prop:"left"}),kc=Pt(s_,u_,l_,c_,f_,d_),$c=V({prop:"boxShadow",themeKey:"shadows"});function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const h_=V({prop:"width",transform:Ft}),Rc=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])||Ca[n]||Ft(n)}};return Lt(e,e.maxWidth,t)}return null};Rc.filterProps=["maxWidth"];const p_=V({prop:"minWidth",transform:Ft}),g_=V({prop:"height",transform:Ft}),m_=V({prop:"maxHeight",transform:Ft}),v_=V({prop:"minHeight",transform:Ft});V({prop:"size",cssProperty:"width",transform:Ft}),V({prop:"size",cssProperty:"height",transform:Ft});const y_=V({prop:"boxSizing"}),Lc=Pt(h_,Rc,p_,g_,m_,v_,y_),__=V({prop:"fontFamily",themeKey:"typography"}),b_=V({prop:"fontSize",themeKey:"typography"}),x_=V({prop:"fontStyle",themeKey:"typography"}),M_=V({prop:"fontWeight",themeKey:"typography"}),w_=V({prop:"letterSpacing"}),N_=V({prop:"textTransform"}),T_=V({prop:"lineHeight"}),E_=V({prop:"textAlign"}),D_=V({prop:"typography",cssProperty:!1,themeKey:"typography"}),Pc=Pt(D_,__,b_,x_,M_,w_,T_,E_,N_),Fc={borders:Sc.filterProps,display:Ac.filterProps,flexbox:Ic.filterProps,grid:zc.filterProps,positions:kc.filterProps,palette:jc.filterProps,shadows:$c.filterProps,sizing:Lc.filterProps,spacing:mi.filterProps,typography:Pc.filterProps},Uc={borders:Sc,display:Ac,flexbox:Ic,grid:zc,positions:kc,palette:jc,shadows:$c,sizing:Lc,spacing:mi,typography:Pc};Object.keys(Fc).reduce((e,t)=>(Fc[t].forEach(n=>{e[n]=Uc[t]}),e),{});function O_(...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 C_(e,t){return typeof e=="function"?e(t):e}function S_(e=Uc){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=fy(a.breakpoints),d=Object.keys(c);let f=c;return Object.keys(l).forEach(h=>{const y=C_(l[h],a);if(y!=null)if(typeof y=="object")if(t[h])f=rr(f,n(h,y,a));else{const p=Lt({theme:a},y,m=>({[h]:m}));O_(p,y)?f[h]=r({sx:y,theme:a}):f=rr(f,p)}else f=rr(f,n(h,y,a))}),dy(d,f)}return Array.isArray(o)?o.map(s):s(o)}return r}const Yc=S_();Yc.filterProps=["sx"];const A_=Yc,I_=["values","unit","step"],z_=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 j_(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=dt(e,I_),o=z_(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 y=a.indexOf(h);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(y!==-1&&typeof t[a[y]]=="number"?t[a[y]]:h)-r/100}${n})`}function c(f){return a.indexOf(f)+1<a.length?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 k_={borderRadius:4};function $_(e=8){if(e.mui)return e;const t=Cc({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 R_=["breakpoints","palette","spacing","shape"];function $a(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,a=dt(e,R_),s=j_(n),u=$_(i);let l=Nt({breakpoints:s,direction:"ltr",components:{},palette:_e({mode:"light"},r),spacing:u,shape:_e({},k_,o)},a);return l=t.reduce((c,d)=>Nt(c,d),l),l}const qc=Me.createContext(null);process.env.NODE_ENV!=="production"&&(qc.displayName="ThemeContext");const L_=qc;function P_(){const e=Me.useContext(L_);return process.env.NODE_ENV!=="production"&&Me.useDebugValue(e),e}function F_(e){return Object.keys(e).length===0}function U_(e=null){const t=P_();return!t||F_(t)?e:t}const Y_=$a();function q_(e=Y_){return U_(e)}const V_=["variant"];function Vc(e){return e.length===0}function Bc(e){const{variant:t}=e,n=dt(e,V_);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=Vc(r)?e[i]:Tt(e[i]):r+=`${Vc(r)?i:Tt(i)}${Tt(e[i].toString())}`}),r}const B_=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],Q_=["theme"],W_=["theme"];function sr(e){return Object.keys(e).length===0}function G_(e){return typeof e=="string"&&e.charCodeAt(0)>96}const K_=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,X_=(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=Bc(i.props);r[o]=i.style}),r},J_=(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[Bc(l.props)])}),s};function vi(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const H_=$a(),Z_=e=>e.charAt(0).toLowerCase()+e.slice(1);function eb(e={}){const{defaultTheme:t=H_,rootShouldForwardProp:n=vi,slotShouldForwardProp:r=vi,styleFunctionSx:i=A_}=e,o=a=>{const s=sr(a.theme)?t:a.theme;return i(_e({},a,{theme:s}))};return o.__mui_systemSx=!0,(a,s={})=>{cy(a,b=>b.filter(v=>!(v!=null&&v.__mui_systemSx)));const{name:u,slot:l,skipVariantsResolver:c,skipSx:d,overridesResolver:f}=s,h=dt(s,B_),y=c!==void 0?c:l&&l!=="Root"||!1,p=d||!1;let m;process.env.NODE_ENV!=="production"&&u&&(m=`${u}-${Z_(l||"Root")}`);let x=vi;l==="Root"?x=n:l?x=r:G_(a)&&(x=void 0);const M=ly(a,_e({shouldForwardProp:x,label:m},h)),N=(b,...v)=>{const O=v?v.map(T=>typeof T=="function"&&T.__emotion_real!==T?I=>{let{theme:g}=I,w=dt(I,Q_);return T(_e({theme:sr(g)?t:g},w))}:T):[];let A=b;u&&f&&O.push(T=>{const I=sr(T.theme)?t:T.theme,g=K_(u,I);if(g){const w={};return Object.entries(g).forEach(([z,$])=>{w[z]=typeof $=="function"?$(_e({},T,{theme:I})):$}),f(T,w)}return null}),u&&!y&&O.push(T=>{const I=sr(T.theme)?t:T.theme;return J_(T,X_(u,I),I,u)}),p||O.push(o);const D=O.length-v.length;if(Array.isArray(b)&&D>0){const T=new Array(D).fill("");A=[...b,...T],A.raw=[...b.raw,...T]}else typeof b=="function"&&b.__emotion_real!==b&&(A=T=>{let{theme:I}=T,g=dt(T,W_);return b(_e({theme:sr(I)?t:I},g))});const C=M(A,...O);if(process.env.NODE_ENV!=="production"){let T;u&&(T=`${u}${l||""}`),T===void 0&&(T=`Styled(${k1(a)})`),C.displayName=T}return C};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=q_(n);return tb({theme:r,name:t,props:e})}function Qc(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 rb(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 yn(e){if(e.type)return e;if(e.charAt(0)==="#")return yn(rb(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
147
|
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:pn(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.`:pn(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function
|
|
148
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:pn(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function Ra(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 ib(e){e=yn(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])),Ra({type:s,values:u})}function Wc(e){e=yn(e);let t=e.type==="hsl"?yn(ib(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 Gc(e,t){const n=Wc(e),r=Wc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function ob(e,t){if(e=yn(e),t=Qc(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 Ra(e)}function ab(e,t){if(e=yn(e),t=Qc(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 Ra(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 ur={black:"#000",white:"#fff"},ub={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"},_n={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"},bn={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"},lr={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"},xn={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"},Mn={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"},wn={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"},lb=["mode","contrastThreshold","tonalOffset"],Kc={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:ur.white,default:ur.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}},La={text:{primary:ur.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:ur.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 Xc(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=ab(e.main,i):t==="dark"&&(e.dark=ob(e.main,o)))}function cb(e="light"){return e==="dark"?{main:xn[200],light:xn[50],dark:xn[400]}:{main:xn[700],light:xn[400],dark:xn[800]}}function fb(e="light"){return e==="dark"?{main:_n[200],light:_n[50],dark:_n[400]}:{main:_n[500],light:_n[300],dark:_n[700]}}function db(e="light"){return e==="dark"?{main:bn[500],light:bn[300],dark:bn[700]}:{main:bn[700],light:bn[400],dark:bn[800]}}function hb(e="light"){return e==="dark"?{main:Mn[400],light:Mn[300],dark:Mn[700]}:{main:Mn[700],light:Mn[500],dark:Mn[900]}}function pb(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:wn[800],light:wn[500],dark:wn[900]}}function gb(e="light"){return e==="dark"?{main:lr[400],light:lr[300],dark:lr[700]}:{main:"#ed6c02",light:lr[500],dark:lr[900]}}function mb(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=dt(e,lb),o=e.primary||cb(t),a=e.secondary||fb(t),s=e.error||db(t),u=e.info||hb(t),l=e.success||pb(t),c=e.warning||gb(t);function d(p){const m=Gc(p,La.text.primary)>=n?La.text.primary:Kc.text.primary;if(process.env.NODE_ENV!=="production"){const x=Gc(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
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
150
|
The color object needs to have a \`main\` property or a \`${x}\` property.`:pn(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.
|
|
@@ -160,6 +160,6 @@ const theme1 = createTheme({ palette: {
|
|
|
160
160
|
|
|
161
161
|
const theme2 = createTheme({ palette: {
|
|
162
162
|
primary: { main: green[500] },
|
|
163
|
-
} });`:pn(12,m?` (${m})`:"",JSON.stringify(p.main)));return
|
|
164
|
-
`))}f[y]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l}const
|
|
165
|
-
`)),Wl.configure(e)}},capitalize:Tt,createChainedFunction:$1,createSvgIcon:Lb,debounce:R1,deprecatedPropType:L1,isMuiElement:P1,ownerDocument:Ul,ownerWindow:F1,requirePropFactory:U1,setRef:fa,unstable_useEnhancedEffect:Yl,unstable_useId:q1,unsupportedProp:V1,useControlled:B1,useEventCallback:Q1,useForkRef:W1,useIsFocusVisible:ev},Symbol.toStringTag,{value:"Module"})));var tf;function tt(){return tf||(tf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Pb}(la)),la}const nt=St(Uf);var Fb=Ie.exports;Object.defineProperty(ua,"__esModule",{value:!0});var nf=ua.default=void 0,Ub=Fb(tt()),Yb=nt,qb=(0,Ub.default)((0,Yb.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");nf=ua.default=qb;const rf={mainContainer:{border:`solid 1px ${Te.borderLight}`,height:" 100%"},toolbar:{backgroundColor:Te.secondaryLight,boxShadow:"none",display:"flex"}},Vb=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>D(j.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Bb=X.forwardRef(Vb),Qb=({children:e,open:t,onClose:n,title:r})=>D(j.Dialog,{PaperProps:{sx:{backgroundColor:"#0b1929",backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Bb,children:le(mr,{children:[D(j.AppBar,{position:"sticky",children:le(j.Toolbar,{sx:rf.toolbar,children:[D(j.Box,{sx:{flex:1,ml:2},children:D("h2",{children:r})}),D(j.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:D(nf,{})})]})}),D(j.Box,{sx:rf.mainContainer,m:2,children:e})]})}),Wb=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),of={fullHeight:{height:"100%"}},Gb=({value:e})=>{const{formatJSON:t}=Wb();return le("div",{style:of.fullHeight,children:[D(j.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),D(kf.default,{value:t(e),extensions:[Of.json()],editable:!1,theme:Cf.dracula,height:"100%",style:of.fullHeight})]})};var Pa={},Kb=Ie.exports;Object.defineProperty(Pa,"__esModule",{value:!0});var af=Pa.default=void 0,Xb=Kb(tt()),Jb=nt,Hb=(0,Xb.default)((0,Jb.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");af=Pa.default=Hb;var Fa={},Zb=Ie.exports;Object.defineProperty(Fa,"__esModule",{value:!0});var sf=Fa.default=void 0,ex=Zb(tt()),tx=nt,nx=(0,ex.default)((0,tx.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");sf=Fa.default=nx;const rx=()=>{const e=n=>JSON.stringify(n,null,2);return{formatJSON:e,getDownloadLink:n=>`data:text/json;charset=utf-8,${encodeURIComponent(e(n))}`}},ix=({downloadedFileName:e="export",onSave:t,value:n})=>{const{t:r}=Ct.useTranslation("button"),{getDownloadLink:i}=rx();return le(j.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[D(j.Tooltip,{title:r("downloadJSONFile"),enterDelay:1500,disableHoverListener:!n,arrow:!0,children:D(j.Box,{children:D(j.Button,{variant:"outlined",href:i(n),download:`${e}.json`,disabled:!n,children:D(sf,{})})})}),D(j.Tooltip,{title:r("save"),enterDelay:1500,disableHoverListener:!n,arrow:!0,children:D(j.Box,{children:D(j.Button,{variant:"outlined",onClick:t,disabled:!n,children:D(af,{})})})})]})};var Ua={},ox=Ie.exports;Object.defineProperty(Ua,"__esModule",{value:!0});var Ya=Ua.default=void 0,ax=ox(tt()),sx=nt,ux=(0,ax.default)((0,sx.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");Ya=Ua.default=ux;const Nn={currentHierarchyPointNode:null,dispatchTree:()=>null,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[]},Xt=X.createContext(Nn),lx=()=>{const{setModalOpen:e}=X.useContext(Xt);return{handleClick:()=>e("add")}},cx=()=>{const{t:e}=Ct.useTranslation("button"),{handleClick:t}=lx();return D(j.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:D(j.Button,{onClick:t,size:"medium",variant:"contained",startIcon:D(Ya,{}),children:e("createTree")})})},uf=(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=uf(e.children[a],t);return n},Tn=(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=Tn((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Tn(e.children[d],t);return n},qa=(e,t,n)=>{const r=Tn(e,t);return uf(r,n)},fx=(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)},dx=({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=qa(i,t,n);return fx(o,r),i},lf=(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=>lf(s,n)).flat()])}),n},cf=(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=cf(e.children[s],t,e);return r},hx=(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),px=(e,t,n)=>{const r=Tn(e,t);return cf(r,n)},gx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=qa(r,t,n),o=px(r,t,n);return hx(o,i),r},mx=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,i=e.attributes.depth===0;return n||r?(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)},vx=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=qa(i,t,n);return mx(o,r),i},En={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard"},yx=(e,t,n)=>({children:n,name:t,path:e,type:En.appendTreeCard}),_x=(e,t,n)=>({children:n,name:t,path:e,type:En.replaceTreeCard}),bx=(e,t)=>({name:t,path:e,type:En.deleteTreeCard}),xx=(e,t)=>{switch(t.type){case En.appendTreeCard:{const{name:n,path:r,children:i}=t;return dx({child:i,name:n,path:r,tree:e})}case En.deleteTreeCard:{const{path:n,name:r}=t;return gx({name:r,path:n,tree:e})}case En.replaceTreeCard:{const{name:n,path:r,children:i}=t;return vx({child:i,name:n,path:r,tree:e})}default:throw new Error}},Mx=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=X.useContext(Xt);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(bx(s,a)),t(null)}}},wx=({onClose:e})=>{const{t}=Ct.useTranslation(),{handleSubmit:n}=Mx();return D("form",{onSubmit:n,children:le(j.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[D(j.Button,{variant:"text",onClick:e,children:t("cancel")}),D(j.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Va={},Nx=Ie.exports;Object.defineProperty(Va,"__esModule",{value:!0});var ff=Va.default=void 0,Tx=Nx(tt()),Ex=nt,Dx=(0,Tx.default)((0,Ex.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");ff=Va.default=Dx;var Ba={},Ox=Ie.exports;Object.defineProperty(Ba,"__esModule",{value:!0});var df=Ba.default=void 0,Cx=Ox(tt()),Sx=nt,Ax=(0,Cx.default)((0,Sx.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=Ba.default=Ax;const yi=[{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"}],_i=[{id:"1",label:"User",value:{attributes:{depth:0,isRoot:!0,label:"Username",type:"text"},children:[{attributes:{depth:1,isLeaf:!0,label:"Password",type:"text"},children:[],name:"password"}],name:"username"}},{id:"2",label:"Catalog",value:{attributes:{depth:0,isRoot:!0,label:"Nom de la machine",type:"text"},children:[{attributes:{depth:1,isLeaf:!0,label:"Type",type:"select",values:[{id:"0",label:"Mini-pelle",value:"minipelle"},{id:"1",label:"Nacelle",value:"nacelle"}]},children:[],name:"type"}],name:"machineName"}}],hf=e=>new Set([...e]).size===e.length,Ix=(e,t,n)=>{const r=[...e,t];return hf(n?r.filter(i=>i!==n):r)},zx=()=>{var xi,Mi,On,wi,Ni,cr,fr,Ut,Ti,dr,hr;const e=X.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=X.useContext(Xt),{t:s}=Ct.useTranslation(),[u,l]=X.useState(e),[c,d]=X.useState(""),[f,h]=X.useState(""),[y,p]=X.useState(!1),[m,x]=X.useState(!1),[M,N]=X.useState("text"),[b,v]=X.useState(""),[O,A]=X.useState(""),[E,C]=X.useState(""),[T,I]=X.useState({off:"",on:""}),[g,w]=X.useState(""),z=i==="edit",$=M==="tree",L=yi.some(Y=>Y.type===M&&(Y==null?void 0:Y.isBooleanField)),U=yi.some(Y=>Y.type===M&&(Y==null?void 0:Y.isDecisionField)),B=yi.some(Y=>Y.type===M&&(Y==null?void 0:Y.isRequiredDisabled)),ne=Y=>!U&&Y>0,S=(Y,ye)=>{l(be=>be.map(Ee=>{const{id:Ue}=Ee;return Y.target.dataset.id===Ue?{...Ee,id:Ue,[ye]:Y.target.value}:{...Ee}}))},R=Y=>{h(Y.target.value)},W=Y=>{S(Y,"label")},G=Y=>{S(Y,"value")},q=Y=>{S(Y,"message")},H=Y=>{C(Y.target.value)},K=Y=>{var Xe;const{value:ye}=Y.target;if(d(Y.target.value),!t||!ye){w("");return}const be=z&&(r==null?void 0:r.data.name),Ee=(Xe=o==null?void 0:o.at(-1))==null?void 0:Xe.path,Ue=Tn(t,Ee),Ke=lf(Ue);if(Ix(Ke,ye,be)){w("");return}w(s("mustBeUnique",{ns:"form"}))},J=Y=>{p(Y.target.checked)},ee=Y=>{x(Y.target.checked)},re=Y=>{N(Y.target.value)},te=Y=>{v(Y.target.value)},Ce=Y=>ye=>{I(be=>({...be,[Y]:ye.target.value}))},P=Y=>{A(Y.target.value)},Fe=()=>{l(Y=>{const ye=Number(Y[Y.length-1].id),be=String(ye+1);return[...Y,{...e[0],id:be}]})},Q=Y=>{l(ye=>ye.filter(({id:be})=>Y!==be))},rt=(Y,ye)=>{var Ee,Ue,Ke;const be=(Ke=(Ue=(Ee=Y==null?void 0:Y.children)==null?void 0:Ee[ye])==null?void 0:Ue.data)==null?void 0:Ke.children;return be?be.map(({name:st,attributes:Xe,children:ut})=>({attributes:Xe,children:ut,name:st})):[]},pt=Y=>{var ye;return m?(ye=u==null?void 0:u.filter((be,Ee)=>!ne(Ee)))==null?void 0:ye.map(({message:be,value:Ee,label:Ue},Ke)=>{const st=`${c}:${Ee}`,Xe=rt(r,Ke);return{attributes:{depth:Y+1,label:Ue,value:Ee,...be&&{message:be},...Xe.length===0&&{isLeaf:!0}},children:Xe,name:st}}):[]},Jt=Y=>Y.map(({message:ye,...be})=>({...be,...ye&&{message:ye}})),bi=Y=>_i==null?void 0:_i.find(({id:ye})=>ye===Y),Dn=Y=>{var Et,Dt,Yt;Y.preventDefault();const{on:ye,off:be}=T,Ee=((Et=r==null?void 0:r.data)==null?void 0:Et.name)||"",Ue=(r==null?void 0:r.depth)||0,Ke=i==="edit",st=Ue+(Ke||r===null?0:1),Xe=pt(st),ut=(Dt=o==null?void 0:o.at(-1))==null?void 0:Dt.path,Ht=o.length?`${ut}/${c}`:`/${c}`,lt={attributes:{depth:st,label:f,type:M,...O&&{helperText:O},...(be||ye)&&{messages:{...be&&{off:be},...ye&&{on:ye}}},...$&&{tree:{...(Yt=bi(b))==null?void 0:Yt.value,treeId:b},treePath:Ht},...m&&{isDecision:m},...U&&!m&&{values:Jt(u)},...y&&{required:y},...E&&{step:E}},children:Xe,name:c};n(Ke?_x(ut||"",Ee,lt):yx(ut||null,Ee,lt)),a(null)};return X.useEffect(()=>{var Y,ye,be,Ee,Ue,Ke,st,Xe,ut,Ht,lt,Et,Dt,Yt,Ei,pr,Di;if(i==="edit"){const Zt=((ye=(Y=r==null?void 0:r.data)==null?void 0:Y.attributes)==null?void 0:ye.values)||((Ue=(Ee=(be=r==null?void 0:r.data)==null?void 0:be.children)==null?void 0:Ee.filter(({attributes:en})=>!(en!=null&&en.type)))==null?void 0:Ue.map(({attributes:en},es)=>{const{label:Oi,value:ts,message:Ci}=en||{};return{id:String(es),label:String(Oi),value:String(ts),...Ci&&{message:String(Ci)}}}));d((r==null?void 0:r.data.name)||""),N(((Ke=r==null?void 0:r.data.attributes)==null?void 0:Ke.type)||"text"),A(((st=r==null?void 0:r.data.attributes)==null?void 0:st.helperText)||""),p(((Xe=r==null?void 0:r.data.attributes)==null?void 0:Xe.required)||!1),C(((ut=r==null?void 0:r.data.attributes)==null?void 0:ut.step)||""),h(((Ht=r==null?void 0:r.data.attributes)==null?void 0:Ht.label)||""),x(((lt=r==null?void 0:r.data.attributes)==null?void 0:lt.isDecision)||!1),l(Zt!=null&&Zt.length?Zt:e),I({off:((Dt=(Et=r==null?void 0:r.data.attributes)==null?void 0:Et.messages)==null?void 0:Dt.off)||"",on:((Ei=(Yt=r==null?void 0:r.data.attributes)==null?void 0:Yt.messages)==null?void 0:Ei.on)||""}),v(((Di=(pr=r==null?void 0:r.data.attributes)==null?void 0:pr.tree)==null?void 0:Di.treeId)||"")}},[(Mi=(xi=r==null?void 0:r.data.attributes)==null?void 0:xi.tree)==null?void 0:Mi.treeId,(On=r==null?void 0:r.data.attributes)==null?void 0:On.messages,(wi=r==null?void 0:r.data.attributes)==null?void 0:wi.helperText,(Ni=r==null?void 0:r.data.attributes)==null?void 0:Ni.isDecision,(cr=r==null?void 0:r.data.attributes)==null?void 0:cr.label,(fr=r==null?void 0:r.data.attributes)==null?void 0:fr.required,(Ut=r==null?void 0:r.data.attributes)==null?void 0:Ut.step,(Ti=r==null?void 0:r.data.attributes)==null?void 0:Ti.type,(dr=r==null?void 0:r.data.attributes)==null?void 0:dr.values,(hr=r==null?void 0:r.data)==null?void 0:hr.children,r==null?void 0:r.data.name,e,i]),{getDisabledValueField:ne,handleAddValue:Fe,handleChangeHelperText:P,handleChangeIsDecisionField:ee,handleChangeLabel:R,handleChangeMessage:Ce,handleChangeName:K,handleChangeOptionLabel:W,handleChangeOptionMessage:q,handleChangeOptionValue:G,handleChangeRequired:J,handleChangeStep:H,handleChangeTreeSelect:te,handleChangeType:re,handleDeleteValue:Q,handleSubmit:Dn,helperText:O,isBooleanField:L,isDecision:m,isDecisionField:U,isRequiredDisabled:B,isTree:$,label:f,messages:T,name:c,required:y,step:E,treeSelect:b,type:M,uniqueNameErrorMessage:g,values:u}},pf={marginRight:"-20px !important",minWidth:"auto !important"},gf={iconButton:pf,iconButtonDelete:{...pf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:Te.backgroundPrimary,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},jx=({onClose:e})=>{const{t}=Ct.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,messages:{on:l,off:c},isBooleanField:d,isDecision:f,isDecisionField:h,isRequiredDisabled:y,isTree:p,treeSelect:m,handleChangeTreeSelect:x,handleChangeHelperText:M,handleChangeOptionMessage:N,handleChangeRequired:b,handleChangeName:v,handleChangeType:O,handleChangeIsDecisionField:A,handleChangeOptionLabel:E,handleDeleteValue:C,handleChangeOptionValue:T,handleChangeMessage:I,handleSubmit:g,handleAddValue:w,handleChangeLabel:z}=zx();return le("form",{onSubmit:g,children:[le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[D(j.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:z,value:u,required:!0}),D(j.TextField,{label:t("name"),sx:{flex:1},onChange:v,value:i,error:!!o,helperText:o,required:!0})]}),le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[le(j.FormControl,{sx:{flex:1},required:!0,children:[D(j.InputLabel,{children:t("type")}),D(j.Select,{value:a,label:t("type"),onChange:O,children:yi.map(({type:$})=>D(j.MenuItem,{value:$,children:t(`type.${$}`,{ns:"form"})},$))})]}),p?le(j.FormControl,{sx:{flex:1},required:!0,children:[D(j.InputLabel,{children:t("tree",{ns:"form"})}),D(j.Select,{value:m,label:t("type"),onChange:x,children:_i.map(({label:$,id:L})=>D(j.MenuItem,{value:L,children:$},L))})]}):D(j.TextField,{sx:{flex:1},label:t("helperText",{ns:"form"}),onChange:M,value:s})]}),d&&le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[D(j.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:I("on"),value:l}),D(j.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:I("off"),value:c})]}),le(j.Stack,{paddingY:1,children:[D(j.FormGroup,{children:D(j.FormControlLabel,{disabled:y,control:D(j.Checkbox,{checked:r,onChange:b}),label:t("required")})}),D(j.FormGroup,{children:D(j.FormControlLabel,{disabled:!h,control:D(j.Checkbox,{checked:f,onChange:A}),label:t("decisionField",{ns:"form"})})})]}),h&&le(mr,{children:[D("h4",{children:t("values")}),n==null?void 0:n.map(({value:$,label:L,id:U,message:B})=>le(j.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[D(j.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:E,value:L,inputProps:{"data-id":U},required:!0}),D(j.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:T,value:$,inputProps:{"data-id":U},required:!0}),D(j.TextField,{label:"Message",sx:{flex:1},onChange:N,value:B,inputProps:{"data-id":U}}),n.length>1&&D(j.Button,{color:"warning",sx:gf.iconButtonDelete,"data-id":U,onClick:()=>C(U),children:D(df,{})})]},U))]}),h&&D(j.Box,{justifyContent:"flex-end",display:"flex",children:D(j.Button,{color:"success",sx:gf.iconButton,onClick:w,children:D(ff,{})})}),le(j.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[D(j.Button,{variant:"text",onClick:e,children:t("cancel")}),D(j.Button,{variant:"contained",type:"submit",disabled:!!o,children:t("validate")})]})]})};var Qa={},kx=Ie.exports;Object.defineProperty(Qa,"__esModule",{value:!0});var mf=Qa.default=void 0,$x=kx(tt()),Rx=nt,Lx=(0,$x.default)((0,Rx.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");mf=Qa.default=Lx;var Wa={},Px=Ie.exports;Object.defineProperty(Wa,"__esModule",{value:!0});var vf=Wa.default=void 0,Fx=Px(tt()),Ux=nt,Yx=(0,Fx.default)((0,Ux.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");vf=Wa.default=Yx;var Ga={},qx=Ie.exports;Object.defineProperty(Ga,"__esModule",{value:!0});var yf=Ga.default=void 0,Vx=qx(tt()),Bx=nt,Qx=(0,Vx.default)((0,Bx.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");yf=Ga.default=Qx;var Ka={},Wx=Ie.exports;Object.defineProperty(Ka,"__esModule",{value:!0});var _f=Ka.default=void 0,Gx=Wx(tt()),Kx=nt,Xx=(0,Gx.default)((0,Kx.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");_f=Ka.default=Xx;var Xa={},Jx=Ie.exports;Object.defineProperty(Xa,"__esModule",{value:!0});var bf=Xa.default=void 0,Hx=Jx(tt()),xf=nt,Zx=(0,Hx.default)([(0,xf.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,xf.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");bf=Xa.default=Zx;var Ja={},eM=Ie.exports;Object.defineProperty(Ja,"__esModule",{value:!0});var Mf=Ja.default=void 0,tM=eM(tt()),nM=nt,rM=(0,tM.default)((0,nM.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");Mf=Ja.default=rM;var Ha={},iM=Ie.exports;Object.defineProperty(Ha,"__esModule",{value:!0});var wf=Ha.default=void 0,oM=iM(tt()),aM=nt,sM=(0,oM.default)((0,aM.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");wf=Ha.default=sM;const Ve={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}},uM=e=>{const t=!!e;return e==="tree"?Ve.containerTree:t?Ve.containerField:Ve.containerValue},lM=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var N;const{t:s}=Ct.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:y}=u||{},p=!!h,m=h==="tree",x=!p,M=!l&&!c;return le("g",{children:[D(j.GlobalStyles,{styles:{".rd3t-node svg":Ve.nodeSvg}}),D("foreignObject",{height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,style:uM(h),children:le(j.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[le(j.Stack,{alignItems:"flex-end",spacing:.5,children:[p&&le(j.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&D(j.Tooltip,{title:`${s("step",{ns:"form"})} ${(N=e==null?void 0:e.attributes)==null?void 0:N.step}`,placement:"left",arrow:!0,children:D(j.Chip,{color:"primary",size:"small",label:f,sx:Ve.stepChip})}),D(j.Typography,{variant:"subtitle2",sx:Ve.title,children:D("strong",{children:y})})]}),p&&D(j.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&D(j.Stack,{direction:"row",spacing:.5,children:d&&D(j.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),D(j.Stack,{spacing:.5,alignItems:"flex-end",children:x&&D(j.Typography,{variant:"subtitle2",sx:Ve.title,children:D("strong",{children:y})})}),le(j.Box,{paddingTop:.5,children:[c&&D(j.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:D(_f,{style:Ve.icon})}),l&&D(j.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:D(Mf,{style:Ve.icon})}),M&&D(j.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:D(Ya,{style:Ve.icon})}),m&&D(j.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:D(bf,{style:Ve.icon})})]})]}),le(j.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&D(j.Tooltip,{title:s("remove"),arrow:!0,children:D(j.Button,{variant:"text",sx:Ve.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:D(vf,{})})}),!x&&D(j.Tooltip,{title:s("edit"),arrow:!0,children:D(j.Button,{variant:"text",color:"secondary",sx:Ve.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:D(yf,{})})}),c&&D(j.Tooltip,{title:s("add"),arrow:!0,children:D(j.Button,{variant:"text",color:"success",sx:Ve.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:D(mf,{})})}),m&&D(j.Tooltip,{title:s("show"),arrow:!0,children:D(j.Button,{variant:"text",color:"info",sx:Ve.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:D(wf,{})})})]})]})})]})},cM=X.memo(lM),Nf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=X.useContext(Xt);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)}}},fM=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Nf();return D(cM,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Tf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>D(fM,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),dM=()=>{const{t:e}=Ct.useTranslation("modal"),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=X.useContext(Xt),i=n==="edit";return{closeModal:()=>r(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=t==null?void 0:t.data)==null?void 0:f.attributes)==null?void 0:h.label;return e("deleteTitle",{name:d})},getTitleModalMutation:()=>{var h;const d=(h=t==null?void 0:t.data)==null?void 0:h.attributes.label;return d?e(i?"editTitle":"addTitle",{name:d}):e("addFirstTitle",{name:d})},isDeleteModal:n==="delete",isModalMutationOpen:i||n==="add"}},hM=()=>{var f,h;const{tree:e,treeModalOpen:t,treePath:n}=X.useContext(Xt),{handleCloseTreeModal:r}=Nf(),{getTitleModalMutation:i,closeModal:o,getTitleModalDelete:a,isModalMutationOpen:s,isDeleteModal:u}=dM(),l=(f=n==null?void 0:n.at(-1))==null?void 0:f.path,c=(h=n==null?void 0:n.at(-1))==null?void 0:h.label,d=e&&Tn(e,l);return le(Kf,{children:[D(Qf,{children:D(Zf,{})}),le(Gf,{children:[e?D($l,{data:e,renderCustomNodeElement:Tf}):D(cx,{}),D(os,{open:s,onClose:o,title:i(),children:D(jx,{onClose:o})}),D(os,{open:u,onClose:o,title:a(),children:D(wx,{onClose:o})}),D(Qb,{open:t,onClose:r,title:c,children:d&&D($l,{data:d,renderCustomNodeElement:Tf})})]}),D(Jf,{children:D(Gb,{value:e})}),D(Vf,{children:D(ix,{value:e})})]})},pM=({children:e})=>{const[t,n]=X.useState(Nn.currentHierarchyPointNode),[r,i]=X.useState(Nn.modalOpen),[o,a]=X.useState(Nn.treeModalOpen),[s,u]=X.useState(Nn.treePath),[l,c]=X.useReducer(xx,Nn.tree),d=X.useMemo(()=>({currentHierarchyPointNode:t,dispatchTree:c,modalOpen:r,setCurrentHierarchyPointNode:n,setModalOpen:i,setTreeModalOpen:a,setTreePath:u,tree:l,treeModalOpen:o,treePath:s}),[t,r,o,s,l]);return D(Xt.Provider,{value:d,children:e})},gM={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save"},mM={decisionFields:"Decision fields",helperText:"Helper text",label:"Label",mustBeUnique:"Must be unique",offMessage:"Message (disable)",onMessage:"Message (enable)",staticFields:"Static fields",step:"Step",tree:"Tree",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"},vM={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"},yM={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",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},_M={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer"},bM={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",label:"Label",mustBeUnique:"Doit \xEAtre unique",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",staticFields:"Champs statiques",step:"\xC9tape",tree:"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"},xM={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"},MM={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",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};$f.default.use(Rf.default).use(Ct.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:gM,form:mM,modal:vM,translation:yM},fr:{button:_M,form:bM,modal:xM,translation:MM}}}).then();const wM=()=>D(Yf,{children:D(pM,{children:D(hM,{})})});Ye.Treege=wM,Object.defineProperties(Ye,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
163
|
+
} });`:pn(12,m?` (${m})`:"",JSON.stringify(p.main)));return Xc(p,"light",M,r),Xc(p,"dark",N,r),p.contrastText||(p.contrastText=d(p.main)),p},h={dark:La,light:Kc};return process.env.NODE_ENV!=="production"&&(h[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Nt(_e({common:_e({},ur),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:ub,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},h[t]),i)}const vb=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function yb(e){return Math.round(e*1e5)/1e5}const Jc={textTransform:"uppercase"},Hc='"Roboto", "Helvetica", "Arial", sans-serif';function _b(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Hc,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,vb);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,y=d||(x=>`${x/l*h}rem`),p=(x,M,N,b,v)=>_e({fontFamily:r,fontWeight:x,fontSize:y(M),lineHeight:N},r===Hc?{letterSpacing:`${yb(b/M)}em`}:{},v,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,Jc),caption:p(a,12,1.66,.4),overline:p(a,12,2.66,1,Jc)};return Nt(_e({htmlFontSize:l,pxToRem:y,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:u},m),f,{clone:!1})}const bb=.2,xb=.14,Mb=.12;function Te(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${bb})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xb})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Mb})`].join(",")}const wb=["none",Te(0,2,1,-1,0,1,1,0,0,1,3,0),Te(0,3,1,-2,0,2,2,0,0,1,5,0),Te(0,3,3,-2,0,3,4,0,0,1,8,0),Te(0,2,4,-1,0,4,5,0,0,1,10,0),Te(0,3,5,-1,0,5,8,0,0,1,14,0),Te(0,3,5,-1,0,6,10,0,0,1,18,0),Te(0,4,5,-2,0,7,10,1,0,2,16,1),Te(0,5,5,-3,0,8,10,1,0,3,14,2),Te(0,5,6,-3,0,9,12,1,0,3,16,2),Te(0,6,6,-3,0,10,14,1,0,4,18,3),Te(0,6,7,-4,0,11,15,1,0,4,20,3),Te(0,7,8,-4,0,12,17,2,0,5,22,4),Te(0,7,8,-4,0,13,19,2,0,5,24,4),Te(0,7,9,-4,0,14,21,2,0,5,26,4),Te(0,8,9,-5,0,15,22,2,0,6,28,5),Te(0,8,10,-5,0,16,24,2,0,6,30,5),Te(0,8,11,-5,0,17,26,2,0,6,32,5),Te(0,9,11,-5,0,18,28,2,0,7,34,6),Te(0,9,12,-6,0,19,29,2,0,7,36,6),Te(0,10,13,-6,0,20,31,3,0,8,38,7),Te(0,10,13,-6,0,21,33,3,0,8,40,7),Te(0,10,14,-6,0,22,35,3,0,8,42,7),Te(0,11,14,-7,0,23,36,3,0,9,44,8),Te(0,11,15,-7,0,24,38,3,0,9,46,8)],Nb=["duration","easing","delay"],Tb={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)"},Eb={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Zc(e){return`${Math.round(e)}ms`}function Db(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function Ob(e){const t=_e({},Tb,e.easing),n=_e({},Eb,e.duration);return _e({getAutoHeightDuration:Db,create:(i=["all"],o={})=>{const{duration:a=n.standard,easing:s=t.easeInOut,delay:u=0}=o,l=dt(o,Nb);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:Zc(a)} ${s} ${typeof u=="string"?u:Zc(u)}`).join(",")}},e,{easing:t,duration:n})}const Cb={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Sb=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Ab(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,a=dt(e,Sb);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.":pn(18));const s=mb(r),u=$a(e);let l=Nt(u,{mixins:sb(u.breakpoints,n),palette:s,shadows:wb.slice(),typography:_b(s,o),transitions:Ob(i),zIndex:_e({},Cb)});if(l=Nt(l,a),l=t.reduce((c,d)=>Nt(c,d),l),process.env.NODE_ENV!=="production"){const c=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(f,h)=>{let y;for(y in f){const p=f[y];if(c.indexOf(y)!==-1&&Object.keys(p).length>0){if(process.env.NODE_ENV!=="production"){const m=ga("",y);console.error([`MUI: The \`${h}\` component increases the CSS specificity of the \`${y}\` internal state.`,"You can not override it like this: ",JSON.stringify(f,null,2),"",`Instead, you need to use the '&.${m}' syntax:`,JSON.stringify({root:{[`&.${m}`]:p}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
164
|
+
`))}f[y]={}}}};Object.keys(l.components).forEach(f=>{const h=l.components[f].styleOverrides;h&&f.indexOf("Mui")===0&&d(h,f)})}return l}const ef=Ab();function Ib({props:e,name:t}){return nb({props:e,name:t,defaultTheme:ef})}const zb=eb({defaultTheme:ef,rootShouldForwardProp:e=>vi(e)&&e!=="classes"});function jb(e){return ga("MuiSvgIcon",e)}iv("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const kb=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$b=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Tt(t)}`,`fontSize${Tt(n)}`]};return nv(i,jb,r)},Rb=zb("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Tt(n.color)}`],t[`fontSize${Tt(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,a,s,u,l,c,d,f,h,y,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||(y=h[t.color])==null?void 0:y.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]}}),Pa=Me.forwardRef(function(t,n){const r=Ib({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,kb),y=_e({},r,{color:a,component:s,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:f}),p={};c||(p.viewBox=f);const m=$b(y);return le(Rb,_e({as:s,className:ov(m.root,o),ownerState:y,focusable:"false",color:l,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n},p,h,{children:[i,d?E("title",{children:d}):null]}))});process.env.NODE_ENV!=="production"&&(Pa.propTypes={children:se.exports.node,classes:se.exports.object,className:se.exports.string,color:se.exports.oneOfType([se.exports.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),se.exports.string]),component:se.exports.elementType,fontSize:se.exports.oneOfType([se.exports.oneOf(["inherit","large","medium","small"]),se.exports.string]),htmlColor:se.exports.string,inheritViewBox:se.exports.bool,shapeRendering:se.exports.string,sx:se.exports.oneOfType([se.exports.arrayOf(se.exports.oneOfType([se.exports.func,se.exports.object,se.exports.bool])),se.exports.func,se.exports.object]),titleAccess:se.exports.string,viewBox:se.exports.string}),Pa.muiName="SvgIcon";const tf=Pa;function Lb(e,t){const n=(r,i)=>E(tf,_e({"data-testid":`${t}Icon`,ref:i},r,{children:e}));return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=tf.muiName,Me.memo(Me.forwardRef(n))}const Pb=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
|
+
`)),Gl.configure(e)}},capitalize:Tt,createChainedFunction:$1,createSvgIcon:Lb,debounce:R1,deprecatedPropType:L1,isMuiElement:P1,ownerDocument:Yl,ownerWindow:F1,requirePropFactory:U1,setRef:da,unstable_useEnhancedEffect:ql,unstable_useId:q1,unsupportedProp:V1,useControlled:B1,useEventCallback:Q1,useForkRef:W1,useIsFocusVisible:ev},Symbol.toStringTag,{value:"Module"})));var nf;function tt(){return nf||(nf=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Pb}(ca)),ca}const nt=St(Uf);var Fb=Ie.exports;Object.defineProperty(la,"__esModule",{value:!0});var rf=la.default=void 0,Ub=Fb(tt()),Yb=nt,qb=(0,Ub.default)((0,Yb.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");rf=la.default=qb;const yi={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%"}},Vb=({children:e,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u},l)=>E(j.Slide,{direction:"up",ref:l,appear:t,in:n,onEnter:r,onExited:i,onFocus:o,role:a,tabIndex:s,timeout:u,children:e}),Bb=X.forwardRef(Vb),Qb=({children:e,open:t,onClose:n,title:r})=>E(j.Dialog,{PaperProps:{sx:{backgroundColor:we.backgroundPrimary,backgroundImage:"none"}},open:t,"aria-labelledby":"modal-modal-title","aria-describedby":"modal-modal-description",fullScreen:!0,TransitionComponent:Bb,children:le(j.Box,{sx:yi.container,children:[E(j.AppBar,{position:"sticky",elevation:0,children:E(j.Toolbar,{sx:yi.toolbar,children:le(j.Stack,{direction:"row",alignItems:"center",justifyContent:"space-between",sx:yi.toolbarBox,children:[E(j.Typography,{variant:"h5",children:E("strong",{children:r})}),E(j.IconButton,{edge:"end",color:"inherit",onClick:n,"aria-label":"close",children:E(rf,{})})]})})}),E(j.Box,{sx:yi.main,children:e})]})}),Wb=()=>({formatJSON:t=>JSON.stringify(t!=null?t:{},null,2)}),of={fullHeight:{height:"100%"}},Gb=({value:e})=>{const{formatJSON:t}=Wb();return le("div",{style:of.fullHeight,children:[E(j.GlobalStyles,{styles:{".cm-activeLine.cm-line, .cm-gutterElement.cm-activeLineGutter":{backgroundColor:"transparent"}}}),E(kf.default,{value:t(e),extensions:[Of.json()],editable:!1,theme:Cf.dracula,height:"100%",style:of.fullHeight})]})};var Fa={},Kb=Ie.exports;Object.defineProperty(Fa,"__esModule",{value:!0});var af=Fa.default=void 0,Xb=Kb(tt()),Jb=nt,Hb=(0,Xb.default)((0,Jb.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");af=Fa.default=Hb;var Ua={},Zb=Ie.exports;Object.defineProperty(Ua,"__esModule",{value:!0});var sf=Ua.default=void 0,ex=Zb(tt()),tx=nt,nx=(0,ex.default)((0,tx.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");sf=Ua.default=nx;const rx=()=>{const e=n=>JSON.stringify(n,null,2);return{formatJSON:e,getDownloadLink:n=>`data:text/json;charset=utf-8,${encodeURIComponent(e(n))}`}},ix=({downloadedFileName:e="export",onSave:t,value:n})=>{const{t:r}=Ct.useTranslation("button"),{getDownloadLink:i}=rx();return le(j.Stack,{direction:"row",spacing:2,justifyContent:"center",children:[E(j.Tooltip,{title:r("downloadJSONFile"),enterDelay:1500,disableHoverListener:!n,arrow:!0,children:E(j.Box,{children:E(j.Button,{variant:"outlined",href:i(n),download:`${e}.json`,disabled:!n,children:E(sf,{})})})}),E(j.Tooltip,{title:r("save"),enterDelay:1500,disableHoverListener:!n,arrow:!0,children:E(j.Box,{children:E(j.Button,{variant:"outlined",onClick:t,disabled:!n,children:E(af,{})})})})]})};var Ya={},ox=Ie.exports;Object.defineProperty(Ya,"__esModule",{value:!0});var qa=Ya.default=void 0,ax=ox(tt()),sx=nt,ux=(0,ax.default)((0,sx.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");qa=Ya.default=ux;const Nn={currentHierarchyPointNode:null,dispatchTree:()=>null,modalOpen:null,setCurrentHierarchyPointNode:()=>null,setModalOpen:()=>null,setTreeModalOpen:()=>null,setTreePath:()=>null,tree:null,treeModalOpen:!1,treePath:[]},Xt=X.createContext(Nn),lx=()=>{const{setModalOpen:e}=X.useContext(Xt);return{handleClick:()=>e("add")}},cx=()=>{const{t:e}=Ct.useTranslation("button"),{handleClick:t}=lx();return E(j.Box,{alignItems:"center",justifyContent:"center",display:"flex",height:"100%",children:E(j.Button,{onClick:t,size:"medium",variant:"contained",startIcon:E(qa,{}),children:e("createTree")})})},uf=(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=uf(e.children[a],t);return n},Tn=(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=Tn((c=e.attributes)==null?void 0:c.tree,t)),o)for(let d=0;n===null&&d<e.children.length;d+=1)n=Tn(e.children[d],t);return n},Va=(e,t,n)=>{const r=Tn(e,t);return uf(r,n)},fx=(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)},dx=({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=Va(i,t,n);return fx(o,r),i},lf=(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=>lf(s,n)).flat()])}),n},cf=(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=cf(e.children[s],t,e);return r},hx=(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),px=(e,t,n)=>{const r=Tn(e,t);return cf(r,n)},gx=({tree:e,path:t,name:n})=>{const r=structuredClone(e),i=Va(r,t,n),o=px(r,t,n);return hx(o,i),r},mx=(e,t)=>{if(!e)return null;const n=t.attributes.isDecision,r=e.attributes.isDecision,i=e.attributes.depth===0;return n||r?(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)},vx=({tree:e,path:t,name:n,child:r})=>{const i=structuredClone(e),o=Va(i,t,n);return mx(o,r),i},En={appendTreeCard:"appendTreeCard",deleteTreeCard:"deleteTreeCard",replaceTreeCard:"replaceTreeCard"},yx=(e,t,n)=>({children:n,name:t,path:e,type:En.appendTreeCard}),_x=(e,t,n)=>({children:n,name:t,path:e,type:En.replaceTreeCard}),bx=(e,t)=>({name:t,path:e,type:En.deleteTreeCard}),xx=(e,t)=>{switch(t.type){case En.appendTreeCard:{const{name:n,path:r,children:i}=t;return dx({child:i,name:n,path:r,tree:e})}case En.deleteTreeCard:{const{path:n,name:r}=t;return gx({name:r,path:n,tree:e})}case En.replaceTreeCard:{const{name:n,path:r,children:i}=t;return vx({child:i,name:n,path:r,tree:e})}default:throw new Error}},Mx=()=>{const{dispatchTree:e,setModalOpen:t,currentHierarchyPointNode:n,treePath:r}=X.useContext(Xt);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(bx(s,a)),t(null)}}},wx=({onClose:e})=>{const{t}=Ct.useTranslation(),{handleSubmit:n}=Mx();return E("form",{onSubmit:n,children:le(j.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",children:[E(j.Button,{variant:"text",onClick:e,children:t("cancel")}),E(j.Button,{variant:"contained",color:"error",type:"submit",children:t("remove")})]})})};var Ba={},Nx=Ie.exports;Object.defineProperty(Ba,"__esModule",{value:!0});var ff=Ba.default=void 0,Tx=Nx(tt()),Ex=nt,Dx=(0,Tx.default)((0,Ex.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");ff=Ba.default=Dx;var Qa={},Ox=Ie.exports;Object.defineProperty(Qa,"__esModule",{value:!0});var df=Qa.default=void 0,Cx=Ox(tt()),Sx=nt,Ax=(0,Cx.default)((0,Sx.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=Qa.default=Ax;const _i=[{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"}],bi=[{id:"1",label:"User",value:{attributes:{depth:0,isRoot:!0,label:"Username",type:"text"},children:[{attributes:{depth:1,isLeaf:!0,label:"Password",type:"text"},children:[],name:"password"}],name:"username"}},{id:"2",label:"Catalog",value:{attributes:{depth:0,isRoot:!0,label:"Nom de la machine",type:"text"},children:[{attributes:{depth:1,isLeaf:!0,label:"Type",type:"select",values:[{id:"0",label:"Mini-pelle",value:"minipelle"},{id:"1",label:"Nacelle",value:"nacelle"}]},children:[],name:"type"}],name:"machineName"}}],hf=e=>new Set([...e]).size===e.length,Ix=(e,t,n)=>{const r=[...e,t];return hf(n?r.filter(i=>i!==n):r)},zx=()=>{var Mi,wi,On,Ni,Ti,cr,fr,Ut,Ei,dr,hr;const e=X.useMemo(()=>[{id:"0",label:"",message:"",value:""}],[]),{tree:t,dispatchTree:n,currentHierarchyPointNode:r,modalOpen:i,treePath:o,setModalOpen:a}=X.useContext(Xt),{t:s}=Ct.useTranslation(),[u,l]=X.useState(e),[c,d]=X.useState(""),[f,h]=X.useState(""),[y,p]=X.useState(!1),[m,x]=X.useState(!1),[M,N]=X.useState("text"),[b,v]=X.useState(""),[O,A]=X.useState(""),[D,C]=X.useState(""),[T,I]=X.useState({off:"",on:""}),[g,w]=X.useState(""),z=i==="edit",$=M==="tree",L=_i.some(Y=>Y.type===M&&(Y==null?void 0:Y.isBooleanField)),U=_i.some(Y=>Y.type===M&&(Y==null?void 0:Y.isDecisionField)),B=_i.some(Y=>Y.type===M&&(Y==null?void 0:Y.isRequiredDisabled)),ne=Y=>!U&&Y>0,S=(Y,ye)=>{l(be=>be.map(Ee=>{const{id:Ue}=Ee;return Y.target.dataset.id===Ue?{...Ee,id:Ue,[ye]:Y.target.value}:{...Ee}}))},R=Y=>{h(Y.target.value)},W=Y=>{S(Y,"label")},G=Y=>{S(Y,"value")},q=Y=>{S(Y,"message")},H=Y=>{C(Y.target.value)},K=Y=>{var Xe;const{value:ye}=Y.target;if(d(Y.target.value),!t||!ye){w("");return}const be=z&&(r==null?void 0:r.data.name),Ee=(Xe=o==null?void 0:o.at(-1))==null?void 0:Xe.path,Ue=Tn(t,Ee),Ke=lf(Ue);if(Ix(Ke,ye,be)){w("");return}w(s("mustBeUnique",{ns:"form"}))},J=Y=>{p(Y.target.checked)},ee=Y=>{x(Y.target.checked)},re=Y=>{N(Y.target.value)},te=Y=>{v(Y.target.value)},Ce=Y=>ye=>{I(be=>({...be,[Y]:ye.target.value}))},P=Y=>{A(Y.target.value)},Fe=()=>{l(Y=>{const ye=Number(Y[Y.length-1].id),be=String(ye+1);return[...Y,{...e[0],id:be}]})},Q=Y=>{l(ye=>ye.filter(({id:be})=>Y!==be))},rt=(Y,ye)=>{var Ee,Ue,Ke;const be=(Ke=(Ue=(Ee=Y==null?void 0:Y.children)==null?void 0:Ee[ye])==null?void 0:Ue.data)==null?void 0:Ke.children;return be?be.map(({name:st,attributes:Xe,children:ut})=>({attributes:Xe,children:ut,name:st})):[]},pt=Y=>{var ye;return m?(ye=u==null?void 0:u.filter((be,Ee)=>!ne(Ee)))==null?void 0:ye.map(({message:be,value:Ee,label:Ue},Ke)=>{const st=`${c}:${Ee}`,Xe=rt(r,Ke);return{attributes:{depth:Y+1,label:Ue,value:Ee,...be&&{message:be},...Xe.length===0&&{isLeaf:!0}},children:Xe,name:st}}):[]},Jt=Y=>Y.map(({message:ye,...be})=>({...be,...ye&&{message:ye}})),xi=Y=>bi==null?void 0:bi.find(({id:ye})=>ye===Y),Dn=Y=>{var Et,Dt,Yt;Y.preventDefault();const{on:ye,off:be}=T,Ee=((Et=r==null?void 0:r.data)==null?void 0:Et.name)||"",Ue=(r==null?void 0:r.depth)||0,Ke=i==="edit",st=Ue+(Ke||r===null?0:1),Xe=pt(st),ut=(Dt=o==null?void 0:o.at(-1))==null?void 0:Dt.path,Ht=o.length?`${ut}/${c}`:`/${c}`,lt={attributes:{depth:st,label:f,type:M,...O&&{helperText:O},...(be||ye)&&{messages:{...be&&{off:be},...ye&&{on:ye}}},...$&&{tree:{...(Yt=xi(b))==null?void 0:Yt.value,treeId:b},treePath:Ht},...m&&{isDecision:m},...U&&!m&&{values:Jt(u)},...y&&{required:y},...D&&{step:D}},children:Xe,name:c};n(Ke?_x(ut||"",Ee,lt):yx(ut||null,Ee,lt)),a(null)};return X.useEffect(()=>{var Y,ye,be,Ee,Ue,Ke,st,Xe,ut,Ht,lt,Et,Dt,Yt,Di,pr,Oi;if(i==="edit"){const Zt=((ye=(Y=r==null?void 0:r.data)==null?void 0:Y.attributes)==null?void 0:ye.values)||((Ue=(Ee=(be=r==null?void 0:r.data)==null?void 0:be.children)==null?void 0:Ee.filter(({attributes:en})=>!(en!=null&&en.type)))==null?void 0:Ue.map(({attributes:en},ts)=>{const{label:Ci,value:ns,message:Si}=en||{};return{id:String(ts),label:String(Ci),value:String(ns),...Si&&{message:String(Si)}}}));d((r==null?void 0:r.data.name)||""),N(((Ke=r==null?void 0:r.data.attributes)==null?void 0:Ke.type)||"text"),A(((st=r==null?void 0:r.data.attributes)==null?void 0:st.helperText)||""),p(((Xe=r==null?void 0:r.data.attributes)==null?void 0:Xe.required)||!1),C(((ut=r==null?void 0:r.data.attributes)==null?void 0:ut.step)||""),h(((Ht=r==null?void 0:r.data.attributes)==null?void 0:Ht.label)||""),x(((lt=r==null?void 0:r.data.attributes)==null?void 0:lt.isDecision)||!1),l(Zt!=null&&Zt.length?Zt:e),I({off:((Dt=(Et=r==null?void 0:r.data.attributes)==null?void 0:Et.messages)==null?void 0:Dt.off)||"",on:((Di=(Yt=r==null?void 0:r.data.attributes)==null?void 0:Yt.messages)==null?void 0:Di.on)||""}),v(((Oi=(pr=r==null?void 0:r.data.attributes)==null?void 0:pr.tree)==null?void 0:Oi.treeId)||"")}},[(wi=(Mi=r==null?void 0:r.data.attributes)==null?void 0:Mi.tree)==null?void 0:wi.treeId,(On=r==null?void 0:r.data.attributes)==null?void 0:On.messages,(Ni=r==null?void 0:r.data.attributes)==null?void 0:Ni.helperText,(Ti=r==null?void 0:r.data.attributes)==null?void 0:Ti.isDecision,(cr=r==null?void 0:r.data.attributes)==null?void 0:cr.label,(fr=r==null?void 0:r.data.attributes)==null?void 0:fr.required,(Ut=r==null?void 0:r.data.attributes)==null?void 0:Ut.step,(Ei=r==null?void 0:r.data.attributes)==null?void 0:Ei.type,(dr=r==null?void 0:r.data.attributes)==null?void 0:dr.values,(hr=r==null?void 0:r.data)==null?void 0:hr.children,r==null?void 0:r.data.name,e,i]),{getDisabledValueField:ne,handleAddValue:Fe,handleChangeHelperText:P,handleChangeIsDecisionField:ee,handleChangeLabel:R,handleChangeMessage:Ce,handleChangeName:K,handleChangeOptionLabel:W,handleChangeOptionMessage:q,handleChangeOptionValue:G,handleChangeRequired:J,handleChangeStep:H,handleChangeTreeSelect:te,handleChangeType:re,handleDeleteValue:Q,handleSubmit:Dn,helperText:O,isBooleanField:L,isDecision:m,isDecisionField:U,isRequiredDisabled:B,isTree:$,label:f,messages:T,name:c,required:y,step:D,treeSelect:b,type:M,uniqueNameErrorMessage:g,values:u}},pf={marginRight:"-20px !important",minWidth:"auto !important"},gf={iconButton:pf,iconButtonDelete:{...pf,"&:before":{borderRadius:"50%",content:'""',height:20,position:"absolute",width:20,zIndex:-1},backgroundColor:we.backgroundPrimary,position:"absolute",right:0,top:"50%",transform:"translateY(-50%)"}},jx=({onClose:e})=>{const{t}=Ct.useTranslation(["translation","form"]),{values:n,required:r,name:i,uniqueNameErrorMessage:o,type:a,helperText:s,label:u,messages:{on:l,off:c},isBooleanField:d,isDecision:f,isDecisionField:h,isRequiredDisabled:y,isTree:p,treeSelect:m,handleChangeTreeSelect:x,handleChangeHelperText:M,handleChangeOptionMessage:N,handleChangeRequired:b,handleChangeName:v,handleChangeType:O,handleChangeIsDecisionField:A,handleChangeOptionLabel:D,handleDeleteValue:C,handleChangeOptionValue:T,handleChangeMessage:I,handleSubmit:g,handleAddValue:w,handleChangeLabel:z}=zx();return le("form",{onSubmit:g,children:[le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[E(j.TextField,{sx:{flex:1},label:t("label",{ns:"form"}),onChange:z,value:u,required:!0}),E(j.TextField,{label:t("name"),sx:{flex:1},onChange:v,value:i,error:!!o,helperText:o,required:!0})]}),le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[le(j.FormControl,{sx:{flex:1},required:!0,children:[E(j.InputLabel,{children:t("type")}),E(j.Select,{value:a,label:t("type"),onChange:O,children:_i.map(({type:$})=>E(j.MenuItem,{value:$,children:t(`type.${$}`,{ns:"form"})},$))})]}),p?le(j.FormControl,{sx:{flex:1},required:!0,children:[E(j.InputLabel,{children:t("tree",{ns:"form"})}),E(j.Select,{value:m,label:t("type"),onChange:x,children:bi.map(({label:$,id:L})=>E(j.MenuItem,{value:L,children:$},L))})]}):E(j.TextField,{sx:{flex:1},label:t("helperText",{ns:"form"}),onChange:M,value:s})]}),d&&le(j.Stack,{spacing:1,paddingY:1,direction:{sm:"row",xs:"column"},children:[E(j.TextField,{sx:{flex:1},label:t("onMessage",{ns:"form"}),onChange:I("on"),value:l}),E(j.TextField,{sx:{flex:1},label:t("offMessage",{ns:"form"}),onChange:I("off"),value:c})]}),le(j.Stack,{paddingY:1,children:[E(j.FormGroup,{children:E(j.FormControlLabel,{disabled:y,control:E(j.Checkbox,{checked:r,onChange:b}),label:t("required")})}),E(j.FormGroup,{children:E(j.FormControlLabel,{disabled:!h,control:E(j.Checkbox,{checked:f,onChange:A}),label:t("decisionField",{ns:"form"})})})]}),h&&le(mr,{children:[E("h4",{children:t("values")}),n==null?void 0:n.map(({value:$,label:L,id:U,message:B})=>le(j.Stack,{direction:{sm:"row",xs:"column"},spacing:1,paddingY:1,position:"relative",children:[E(j.TextField,{label:t("label",{ns:"form"}),sx:{flex:1},onChange:D,value:L,inputProps:{"data-id":U},required:!0}),E(j.TextField,{label:t("value",{ns:"form"}),sx:{flex:1},onChange:T,value:$,inputProps:{"data-id":U},required:!0}),E(j.TextField,{label:"Message",sx:{flex:1},onChange:N,value:B,inputProps:{"data-id":U}}),n.length>1&&E(j.Button,{color:"warning",sx:gf.iconButtonDelete,"data-id":U,onClick:()=>C(U),children:E(df,{})})]},U))]}),h&&E(j.Box,{justifyContent:"flex-end",display:"flex",children:E(j.Button,{color:"success",sx:gf.iconButton,onClick:w,children:E(ff,{})})}),le(j.Stack,{spacing:2,direction:"row",justifyContent:"flex-end",paddingTop:3,children:[E(j.Button,{variant:"text",onClick:e,children:t("cancel")}),E(j.Button,{variant:"contained",type:"submit",disabled:!!o,children:t("validate")})]})]})};var Wa={},kx=Ie.exports;Object.defineProperty(Wa,"__esModule",{value:!0});var mf=Wa.default=void 0,$x=kx(tt()),Rx=nt,Lx=(0,$x.default)((0,Rx.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");mf=Wa.default=Lx;var Ga={},Px=Ie.exports;Object.defineProperty(Ga,"__esModule",{value:!0});var vf=Ga.default=void 0,Fx=Px(tt()),Ux=nt,Yx=(0,Fx.default)((0,Ux.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");vf=Ga.default=Yx;var Ka={},qx=Ie.exports;Object.defineProperty(Ka,"__esModule",{value:!0});var yf=Ka.default=void 0,Vx=qx(tt()),Bx=nt,Qx=(0,Vx.default)((0,Bx.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");yf=Ka.default=Qx;var Xa={},Wx=Ie.exports;Object.defineProperty(Xa,"__esModule",{value:!0});var _f=Xa.default=void 0,Gx=Wx(tt()),Kx=nt,Xx=(0,Gx.default)((0,Kx.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");_f=Xa.default=Xx;var Ja={},Jx=Ie.exports;Object.defineProperty(Ja,"__esModule",{value:!0});var bf=Ja.default=void 0,Hx=Jx(tt()),xf=nt,Zx=(0,Hx.default)([(0,xf.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,xf.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");bf=Ja.default=Zx;var Ha={},eM=Ie.exports;Object.defineProperty(Ha,"__esModule",{value:!0});var Mf=Ha.default=void 0,tM=eM(tt()),nM=nt,rM=(0,tM.default)((0,nM.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");Mf=Ha.default=rM;var Za={},iM=Ie.exports;Object.defineProperty(Za,"__esModule",{value:!0});var wf=Za.default=void 0,oM=iM(tt()),aM=nt,sM=(0,oM.default)((0,aM.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");wf=Za.default=sM;const Ve={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}},uM=e=>{const t=!!e;return e==="tree"?Ve.containerTree:t?Ve.containerField:Ve.containerValue},lM=({nodeDatum:e,onAddChildren:t,onEditChildren:n,onDeleteChildren:r,onOpenTreeModal:i,hierarchyPointNode:o,size:a=220})=>{var N;const{t:s}=Ct.useTranslation(["translation","form"]),{attributes:u}=e||{},{isRoot:l,isLeaf:c,required:d,step:f,type:h,label:y}=u||{},p=!!h,m=h==="tree",x=!p,M=!l&&!c;return le("g",{children:[E(j.GlobalStyles,{styles:{".rd3t-node svg":Ve.nodeSvg}}),E("foreignObject",{height:a,width:a,x:`-${a/2}`,y:`-${a/2}`,style:uM(h),children:le(j.Box,{flex:1,display:"flex",p:2,height:"100%",flexDirection:"column",justifyContent:"space-between",children:[le(j.Stack,{alignItems:"flex-end",spacing:.5,children:[p&&le(j.Stack,{direction:"row",spacing:1,alignItems:"center",children:[f&&E(j.Tooltip,{title:`${s("step",{ns:"form"})} ${(N=e==null?void 0:e.attributes)==null?void 0:N.step}`,placement:"left",arrow:!0,children:E(j.Chip,{color:"primary",size:"small",label:f,sx:Ve.stepChip})}),E(j.Typography,{variant:"subtitle2",sx:Ve.title,children:E("strong",{children:y})})]}),p&&E(j.Chip,{color:"info",size:"small",label:s(`type.${h}`,{ns:"form"})}),d&&E(j.Stack,{direction:"row",spacing:.5,children:d&&E(j.Chip,{color:"warning",size:"small",variant:"outlined",label:`${s("required")}`})}),E(j.Stack,{spacing:.5,alignItems:"flex-end",children:x&&E(j.Typography,{variant:"subtitle2",sx:Ve.title,children:E("strong",{children:y})})}),le(j.Box,{paddingTop:.5,children:[c&&E(j.Tooltip,{title:s("isALeaf"),placement:"bottom",arrow:!0,children:E(_f,{style:Ve.icon})}),l&&E(j.Tooltip,{title:s("isTheRoot"),placement:"bottom",arrow:!0,children:E(Mf,{style:Ve.icon})}),M&&E(j.Tooltip,{title:s("isABranch"),placement:"bottom",arrow:!0,children:E(qa,{style:Ve.icon})}),m&&E(j.Tooltip,{title:s("isATree"),placement:"bottom",arrow:!0,children:E(bf,{style:Ve.icon})})]})]}),le(j.Stack,{direction:"row",justifyContent:"flex-end",spacing:0,alignSelf:"flex-end",children:[!l&&E(j.Tooltip,{title:s("remove"),arrow:!0,children:E(j.Button,{variant:"text",sx:Ve.actionButton,size:"small",color:"error",onClick:()=>r==null?void 0:r(o),children:E(vf,{})})}),!x&&E(j.Tooltip,{title:s("edit"),arrow:!0,children:E(j.Button,{variant:"text",color:"secondary",sx:Ve.actionButton,size:"small",onClick:()=>n==null?void 0:n(o),children:E(yf,{})})}),c&&E(j.Tooltip,{title:s("add"),arrow:!0,children:E(j.Button,{variant:"text",color:"success",sx:Ve.actionButton,size:"small",onClick:()=>t==null?void 0:t(o),children:E(mf,{})})}),m&&E(j.Tooltip,{title:s("show"),arrow:!0,children:E(j.Button,{variant:"text",color:"info",sx:Ve.actionButton,size:"small",onClick:()=>i==null?void 0:i(o),children:E(wf,{})})})]})]})})]})},cM=X.memo(lM),Nf=()=>{const{setModalOpen:e,setCurrentHierarchyPointNode:t,setTreeModalOpen:n,setTreePath:r}=X.useContext(Xt);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)}}},fM=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>{const{handleDeleteChildren:a,handleEditChildren:s,handleAddChildren:u,handleOpenTreeModal:l}=Nf();return E(cM,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o,onAddChildren:u,onOpenTreeModal:l,onDeleteChildren:a,onEditChildren:s})},Tf=({nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o})=>E(fM,{nodeDatum:e,hierarchyPointNode:t,toggleNode:n,onNodeClick:r,onNodeMouseOver:i,onNodeMouseOut:o}),dM=()=>{const{t:e}=Ct.useTranslation("modal"),{currentHierarchyPointNode:t,modalOpen:n,setModalOpen:r}=X.useContext(Xt),i=n==="edit";return{closeModal:()=>r(null),getTitleModalDelete:()=>{var f,h;const d=(h=(f=t==null?void 0:t.data)==null?void 0:f.attributes)==null?void 0:h.label;return e("deleteTitle",{name:d})},getTitleModalMutation:()=>{var h;const d=(h=t==null?void 0:t.data)==null?void 0:h.attributes.label;return d?e(i?"editTitle":"addTitle",{name:d}):e("addFirstTitle",{name:d})},isDeleteModal:n==="delete",isModalMutationOpen:i||n==="add"}},hM=()=>{var f,h;const{tree:e,treeModalOpen:t,treePath:n}=X.useContext(Xt),{handleCloseTreeModal:r}=Nf(),{getTitleModalMutation:i,closeModal:o,getTitleModalDelete:a,isModalMutationOpen:s,isDeleteModal:u}=dM(),l=(f=n==null?void 0:n.at(-1))==null?void 0:f.path,c=(h=n==null?void 0:n.at(-1))==null?void 0:h.label,d=e&&Tn(e,l);return le(mr,{children:[le(Kf,{children:[E(Qf,{children:E(Zf,{})}),E(Gf,{children:e?E(Rl,{data:e,renderCustomNodeElement:Tf}):E(cx,{})}),E(Jf,{children:E(Gb,{value:e})}),E(Vf,{children:E(ix,{value:e})})]}),E(as,{open:s,onClose:o,title:i(),children:E(jx,{onClose:o})}),E(as,{open:u,onClose:o,title:a(),children:E(wx,{onClose:o})}),E(Qb,{open:t,onClose:r,title:c,children:d&&E(Rl,{data:d,renderCustomNodeElement:Tf})})]})},pM=({children:e})=>{const[t,n]=X.useState(Nn.currentHierarchyPointNode),[r,i]=X.useState(Nn.modalOpen),[o,a]=X.useState(Nn.treeModalOpen),[s,u]=X.useState(Nn.treePath),[l,c]=X.useReducer(xx,Nn.tree),d=X.useMemo(()=>({currentHierarchyPointNode:t,dispatchTree:c,modalOpen:r,setCurrentHierarchyPointNode:n,setModalOpen:i,setTreeModalOpen:a,setTreePath:u,tree:l,treeModalOpen:o,treePath:s}),[t,r,o,s,l]);return E(Xt.Provider,{value:d,children:e})},gM={createTree:"Create Tree",downloadJSONFile:"Download JSON File",save:"Save"},mM={decisionFields:"Decision fields",helperText:"Helper text",label:"Label",mustBeUnique:"Must be unique",offMessage:"Message (disable)",onMessage:"Message (enable)",staticFields:"Static fields",step:"Step",tree:"Tree",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"},vM={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"},yM={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",show:"Show",type:"Type",validate:"Validate",value:"Value",values:"Values"},_M={createTree:"Cr\xE9er un arbre",downloadJSONFile:"T\xE9l\xE9charger le fichier JSON",save:"Enregistrer"},bM={decisionField:"Champs de d\xE9cision",helperText:"Texte d'information",label:"Label",mustBeUnique:"Doit \xEAtre unique",offMessage:"Message (d\xE9sactiver)",onMessage:"Message (activer)",staticFields:"Champs statiques",step:"\xC9tape",tree:"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"},xM={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"},MM={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",show:"Afficher",type:"Type",validate:"Valider",value:"Valeur",values:"Valeurs"};$f.default.use(Rf.default).use(Ct.initReactI18next).init({debug:!1,fallbackLng:"en",interpolation:{escapeValue:!1},load:"languageOnly",react:{useSuspense:!1},resources:{en:{button:gM,form:mM,modal:vM,translation:yM},fr:{button:_M,form:bM,modal:xM,translation:MM}}}).then();const wM=()=>E(Yf,{children:E(pM,{children:E(hM,{})})});Ye.Treege=wM,Object.defineProperties(Ye,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|