@ansible/ansible-ui-framework 2.4.533 → 2.4.535

Sign up to get free protection for your applications and to get access to all the features.
package/index.umd.cjs CHANGED
@@ -14,17 +14,17 @@ var h1e=Object.defineProperty;var m1e=(q,x,C)=>x in q?h1e(q,x,{enumerable:!0,con
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 Wy;function qP(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,g="@@iterator";function y($){if($===null||typeof $!="object")return null;var de=p&&$[p]||$[g];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b($){{for(var de=arguments.length,ve=new Array(de>1?de-1:0),Te=1;Te<de;Te++)ve[Te-1]=arguments[Te];S("error",$,ve)}}function S($,de,ve){{var Te=_.ReactDebugCurrentFrame,Ge=Te.getStackAddendum();Ge!==""&&(de+="%s",ve=ve.concat([Ge]));var Je=ve.map(function(Ne){return String(Ne)});Je.unshift("Warning: "+de),Function.prototype.apply.call(console[$],console,Je)}}var O=!1,w=!1,A=!1,T=!1,k=!1,P;P=Symbol.for("react.module.reference");function N($){return!!(typeof $=="string"||typeof $=="function"||$===r||$===a||k||$===i||$===c||$===u||T||$===h||O||w||A||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===f||$.$$typeof===o||$.$$typeof===l||$.$$typeof===s||$.$$typeof===P||$.getModuleId!==void 0))}function M($,de,ve){var Te=$.displayName;if(Te)return Te;var Ge=de.displayName||de.name||"";return Ge!==""?ve+"("+Ge+")":ve}function j($){return $.displayName||"Context"}function D($){if($==null)return null;if(typeof $.tag=="number"&&b("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 a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case l:var de=$;return j(de)+".Consumer";case o:var ve=$;return j(ve._context)+".Provider";case s:return M($,$.render,"ForwardRef");case f:var Te=$.displayName||null;return Te!==null?Te:D($.type)||"Memo";case d:{var Ge=$,Je=Ge._payload,Ne=Ge._init;try{return D(Ne(Je))}catch{return null}}}return null}var I=Object.assign,W=0,X,ne,re,Z,R,J,U;function Y(){}Y.__reactDisabledLog=!0;function G(){{if(W===0){X=console.log,ne=console.info,re=console.warn,Z=console.error,R=console.group,J=console.groupCollapsed,U=console.groupEnd;var $={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}W++}}function ie(){{if(W--,W===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:I({},$,{value:X}),info:I({},$,{value:ne}),warn:I({},$,{value:re}),error:I({},$,{value:Z}),group:I({},$,{value:R}),groupCollapsed:I({},$,{value:J}),groupEnd:I({},$,{value:U})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=_.ReactCurrentDispatcher,se;function K($,de,ve){{if(se===void 0)try{throw Error()}catch(Ge){var Te=Ge.stack.trim().match(/\n( *(at )?)/);se=Te&&Te[1]||""}return`
17
+ */var Wy;function qP(){return Wy||(Wy=1,process.env.NODE_ENV!=="production"&&function(){var e=x,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),p=Symbol.iterator,g="@@iterator";function y($){if($===null||typeof $!="object")return null;var de=p&&$[p]||$[g];return typeof de=="function"?de:null}var _=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function b($){{for(var de=arguments.length,ve=new Array(de>1?de-1:0),Te=1;Te<de;Te++)ve[Te-1]=arguments[Te];S("error",$,ve)}}function S($,de,ve){{var Te=_.ReactDebugCurrentFrame,Ge=Te.getStackAddendum();Ge!==""&&(de+="%s",ve=ve.concat([Ge]));var Je=ve.map(function(Ne){return String(Ne)});Je.unshift("Warning: "+de),Function.prototype.apply.call(console[$],console,Je)}}var O=!1,w=!1,A=!1,T=!1,k=!1,j;j=Symbol.for("react.module.reference");function N($){return!!(typeof $=="string"||typeof $=="function"||$===r||$===a||k||$===i||$===c||$===u||T||$===h||O||w||A||typeof $=="object"&&$!==null&&($.$$typeof===d||$.$$typeof===f||$.$$typeof===o||$.$$typeof===l||$.$$typeof===s||$.$$typeof===j||$.getModuleId!==void 0))}function M($,de,ve){var Te=$.displayName;if(Te)return Te;var Ge=de.displayName||de.name||"";return Ge!==""?ve+"("+Ge+")":ve}function E($){return $.displayName||"Context"}function I($){if($==null)return null;if(typeof $.tag=="number"&&b("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 a:return"Profiler";case i:return"StrictMode";case c:return"Suspense";case u:return"SuspenseList"}if(typeof $=="object")switch($.$$typeof){case l:var de=$;return E(de)+".Consumer";case o:var ve=$;return E(ve._context)+".Provider";case s:return M($,$.render,"ForwardRef");case f:var Te=$.displayName||null;return Te!==null?Te:I($.type)||"Memo";case d:{var Ge=$,Je=Ge._payload,Ne=Ge._init;try{return I(Ne(Je))}catch{return null}}}return null}var D=Object.assign,W=0,X,ne,re,Z,R,J,U;function Y(){}Y.__reactDisabledLog=!0;function G(){{if(W===0){X=console.log,ne=console.info,re=console.warn,Z=console.error,R=console.group,J=console.groupCollapsed,U=console.groupEnd;var $={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:$,log:$,warn:$,error:$,group:$,groupCollapsed:$,groupEnd:$})}W++}}function ie(){{if(W--,W===0){var $={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:D({},$,{value:X}),info:D({},$,{value:ne}),warn:D({},$,{value:re}),error:D({},$,{value:Z}),group:D({},$,{value:R}),groupCollapsed:D({},$,{value:J}),groupEnd:D({},$,{value:U})})}W<0&&b("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var z=_.ReactCurrentDispatcher,se;function K($,de,ve){{if(se===void 0)try{throw Error()}catch(Ge){var Te=Ge.stack.trim().match(/\n( *(at )?)/);se=Te&&Te[1]||""}return`
18
18
  `+se+$}}var Q=!1,te;{var ce=typeof WeakMap=="function"?WeakMap:Map;te=new ce}function L($,de){if(!$||Q)return"";{var ve=te.get($);if(ve!==void 0)return ve}var Te;Q=!0;var Ge=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Je;Je=z.current,z.current=null,G();try{if(de){var Ne=function(){throw Error()};if(Object.defineProperty(Ne.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ne,[])}catch(yi){Te=yi}Reflect.construct($,[],Ne)}else{try{Ne.call()}catch(yi){Te=yi}$.call(Ne.prototype)}}else{try{throw Error()}catch(yi){Te=yi}$()}}catch(yi){if(yi&&Te&&typeof yi.stack=="string"){for(var Ie=yi.stack.split(`
19
19
  `),sn=Te.stack.split(`
20
20
  `),yt=Ie.length-1,Tt=sn.length-1;yt>=1&&Tt>=0&&Ie[yt]!==sn[Tt];)Tt--;for(;yt>=1&&Tt>=0;yt--,Tt--)if(Ie[yt]!==sn[Tt]){if(yt!==1||Tt!==1)do if(yt--,Tt--,Tt<0||Ie[yt]!==sn[Tt]){var Qn=`
21
- `+Ie[yt].replace(" at new "," at ");return $.displayName&&Qn.includes("<anonymous>")&&(Qn=Qn.replace("<anonymous>",$.displayName)),typeof $=="function"&&te.set($,Qn),Qn}while(yt>=1&&Tt>=0);break}}}finally{Q=!1,z.current=Je,ie(),Error.prepareStackTrace=Ge}var il=$?$.displayName||$.name:"",WP=il?K(il):"";return typeof $=="function"&&te.set($,WP),WP}function xe($,de,ve){return L($,!1)}function Se($){var de=$.prototype;return!!(de&&de.isReactComponent)}function be($,de,ve){if($==null)return"";if(typeof $=="function")return L($,Se($));if(typeof $=="string")return K($);switch($){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case s:return xe($.render);case f:return be($.type,de,ve);case d:{var Te=$,Ge=Te._payload,Je=Te._init;try{return be(Je(Ge),de,ve)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,E={},V=_.ReactDebugCurrentFrame;function ee($){if($){var de=$._owner,ve=be($.type,$._source,de?de.type:null);V.setExtraStackFrame(ve)}else V.setExtraStackFrame(null)}function he($,de,ve,Te,Ge){{var Je=Function.call.bind(ge);for(var Ne in $)if(Je($,Ne)){var Ie=void 0;try{if(typeof $[Ne]!="function"){var sn=Error((Te||"React class")+": "+ve+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sn.name="Invariant Violation",sn}Ie=$[Ne](de,Ne,Te,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){Ie=yt}Ie&&!(Ie instanceof Error)&&(ee(Ge),b("%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).",Te||"React class",ve,Ne,typeof Ie),ee(null)),Ie instanceof Error&&!(Ie.message in E)&&(E[Ie.message]=!0,ee(Ge),b("Failed %s type: %s",ve,Ie.message),ee(null))}}}var me=Array.isArray;function ue($){return me($)}function le($){{var de=typeof Symbol=="function"&&Symbol.toStringTag,ve=de&&$[Symbol.toStringTag]||$.constructor.name||"Object";return ve}}function H($){try{return oe($),!1}catch{return!0}}function oe($){return""+$}function Ee($){if(H($))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",le($)),oe($)}var De=_.ReactCurrentOwner,je={key:!0,ref:!0,__self:!0,__source:!0},He,ht,Lt;Lt={};function Ut($){if(ge.call($,"ref")){var de=Object.getOwnPropertyDescriptor($,"ref").get;if(de&&de.isReactWarning)return!1}return $.ref!==void 0}function Jn($){if(ge.call($,"key")){var de=Object.getOwnPropertyDescriptor($,"key").get;if(de&&de.isReactWarning)return!1}return $.key!==void 0}function Gi($,de){if(typeof $.ref=="string"&&De.current&&de&&De.current.stateNode!==de){var ve=D(De.current.type);Lt[ve]||(b('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',D(De.current.type),$.ref),Lt[ve]=!0)}}function Ue($,de){{var ve=function(){He||(He=!0,b("%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)",de))};ve.isReactWarning=!0,Object.defineProperty($,"key",{get:ve,configurable:!0})}}function pt($,de){{var ve=function(){ht||(ht=!0,b("%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)",de))};ve.isReactWarning=!0,Object.defineProperty($,"ref",{get:ve,configurable:!0})}}var En=function($,de,ve,Te,Ge,Je,Ne){var Ie={$$typeof:t,type:$,key:de,ref:ve,props:Ne,_owner:Je};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ge}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function Xt($,de,ve,Te,Ge){{var Je,Ne={},Ie=null,sn=null;ve!==void 0&&(Ee(ve),Ie=""+ve),Jn(de)&&(Ee(de.key),Ie=""+de.key),Ut(de)&&(sn=de.ref,Gi(de,Ge));for(Je in de)ge.call(de,Je)&&!je.hasOwnProperty(Je)&&(Ne[Je]=de[Je]);if($&&$.defaultProps){var yt=$.defaultProps;for(Je in yt)Ne[Je]===void 0&&(Ne[Je]=yt[Je])}if(Ie||sn){var Tt=typeof $=="function"?$.displayName||$.name||"Unknown":$;Ie&&Ue(Ne,Tt),sn&&pt(Ne,Tt)}return En($,Ie,sn,Ge,Te,De.current,Ne)}}var vi=_.ReactCurrentOwner,nl=_.ReactDebugCurrentFrame;function rl($){if($){var de=$._owner,ve=be($.type,$._source,de?de.type:null);nl.setExtraStackFrame(ve)}else nl.setExtraStackFrame(null)}var Ly;Ly=!1;function $y($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function $P(){{if(vi.current){var $=D(vi.current.type);if($)return`
21
+ `+Ie[yt].replace(" at new "," at ");return $.displayName&&Qn.includes("<anonymous>")&&(Qn=Qn.replace("<anonymous>",$.displayName)),typeof $=="function"&&te.set($,Qn),Qn}while(yt>=1&&Tt>=0);break}}}finally{Q=!1,z.current=Je,ie(),Error.prepareStackTrace=Ge}var il=$?$.displayName||$.name:"",WP=il?K(il):"";return typeof $=="function"&&te.set($,WP),WP}function xe($,de,ve){return L($,!1)}function Se($){var de=$.prototype;return!!(de&&de.isReactComponent)}function be($,de,ve){if($==null)return"";if(typeof $=="function")return L($,Se($));if(typeof $=="string")return K($);switch($){case c:return K("Suspense");case u:return K("SuspenseList")}if(typeof $=="object")switch($.$$typeof){case s:return xe($.render);case f:return be($.type,de,ve);case d:{var Te=$,Ge=Te._payload,Je=Te._init;try{return be(Je(Ge),de,ve)}catch{}}}return""}var ge=Object.prototype.hasOwnProperty,P={},V=_.ReactDebugCurrentFrame;function ee($){if($){var de=$._owner,ve=be($.type,$._source,de?de.type:null);V.setExtraStackFrame(ve)}else V.setExtraStackFrame(null)}function he($,de,ve,Te,Ge){{var Je=Function.call.bind(ge);for(var Ne in $)if(Je($,Ne)){var Ie=void 0;try{if(typeof $[Ne]!="function"){var sn=Error((Te||"React class")+": "+ve+" type `"+Ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof $[Ne]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw sn.name="Invariant Violation",sn}Ie=$[Ne](de,Ne,Te,ve,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(yt){Ie=yt}Ie&&!(Ie instanceof Error)&&(ee(Ge),b("%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).",Te||"React class",ve,Ne,typeof Ie),ee(null)),Ie instanceof Error&&!(Ie.message in P)&&(P[Ie.message]=!0,ee(Ge),b("Failed %s type: %s",ve,Ie.message),ee(null))}}}var me=Array.isArray;function ue($){return me($)}function le($){{var de=typeof Symbol=="function"&&Symbol.toStringTag,ve=de&&$[Symbol.toStringTag]||$.constructor.name||"Object";return ve}}function H($){try{return oe($),!1}catch{return!0}}function oe($){return""+$}function Ee($){if(H($))return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",le($)),oe($)}var De=_.ReactCurrentOwner,je={key:!0,ref:!0,__self:!0,__source:!0},He,ht,Lt;Lt={};function Ut($){if(ge.call($,"ref")){var de=Object.getOwnPropertyDescriptor($,"ref").get;if(de&&de.isReactWarning)return!1}return $.ref!==void 0}function Jn($){if(ge.call($,"key")){var de=Object.getOwnPropertyDescriptor($,"key").get;if(de&&de.isReactWarning)return!1}return $.key!==void 0}function Gi($,de){if(typeof $.ref=="string"&&De.current&&de&&De.current.stateNode!==de){var ve=I(De.current.type);Lt[ve]||(b('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',I(De.current.type),$.ref),Lt[ve]=!0)}}function Ue($,de){{var ve=function(){He||(He=!0,b("%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)",de))};ve.isReactWarning=!0,Object.defineProperty($,"key",{get:ve,configurable:!0})}}function pt($,de){{var ve=function(){ht||(ht=!0,b("%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)",de))};ve.isReactWarning=!0,Object.defineProperty($,"ref",{get:ve,configurable:!0})}}var En=function($,de,ve,Te,Ge,Je,Ne){var Ie={$$typeof:t,type:$,key:de,ref:ve,props:Ne,_owner:Je};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Te}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ge}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function Xt($,de,ve,Te,Ge){{var Je,Ne={},Ie=null,sn=null;ve!==void 0&&(Ee(ve),Ie=""+ve),Jn(de)&&(Ee(de.key),Ie=""+de.key),Ut(de)&&(sn=de.ref,Gi(de,Ge));for(Je in de)ge.call(de,Je)&&!je.hasOwnProperty(Je)&&(Ne[Je]=de[Je]);if($&&$.defaultProps){var yt=$.defaultProps;for(Je in yt)Ne[Je]===void 0&&(Ne[Je]=yt[Je])}if(Ie||sn){var Tt=typeof $=="function"?$.displayName||$.name||"Unknown":$;Ie&&Ue(Ne,Tt),sn&&pt(Ne,Tt)}return En($,Ie,sn,Ge,Te,De.current,Ne)}}var vi=_.ReactCurrentOwner,nl=_.ReactDebugCurrentFrame;function rl($){if($){var de=$._owner,ve=be($.type,$._source,de?de.type:null);nl.setExtraStackFrame(ve)}else nl.setExtraStackFrame(null)}var Ly;Ly=!1;function $y($){return typeof $=="object"&&$!==null&&$.$$typeof===t}function $P(){{if(vi.current){var $=I(vi.current.type);if($)return`
22
22
 
23
23
  Check the render method of \``+$+"`."}return""}}function a1e($){{if($!==void 0){var de=$.fileName.replace(/^.*[\\\/]/,""),ve=$.lineNumber;return`
24
24
 
25
25
  Check your code at `+de+":"+ve+"."}return""}}var FP={};function o1e($){{var de=$P();if(!de){var ve=typeof $=="string"?$:$.displayName||$.name;ve&&(de=`
26
26
 
27
- Check the top-level render call using <`+ve+">.")}return de}}function NP($,de){{if(!$._store||$._store.validated||$.key!=null)return;$._store.validated=!0;var ve=o1e(de);if(FP[ve])return;FP[ve]=!0;var Te="";$&&$._owner&&$._owner!==vi.current&&(Te=" It was passed a child from "+D($._owner.type)+"."),rl($),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Te),rl(null)}}function zP($,de){{if(typeof $!="object")return;if(ue($))for(var ve=0;ve<$.length;ve++){var Te=$[ve];$y(Te)&&NP(Te,de)}else if($y($))$._store&&($._store.validated=!0);else if($){var Ge=y($);if(typeof Ge=="function"&&Ge!==$.entries)for(var Je=Ge.call($),Ne;!(Ne=Je.next()).done;)$y(Ne.value)&&NP(Ne.value,de)}}}function l1e($){{var de=$.type;if(de==null||typeof de=="string")return;var ve;if(typeof de=="function")ve=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))ve=de.propTypes;else return;if(ve){var Te=D(de);he(ve,$.props,"prop",Te,$)}else if(de.PropTypes!==void 0&&!Ly){Ly=!0;var Ge=D(de);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ge||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function s1e($){{for(var de=Object.keys($.props),ve=0;ve<de.length;ve++){var Te=de[ve];if(Te!=="children"&&Te!=="key"){rl($),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),rl(null);break}}$.ref!==null&&(rl($),b("Invalid attribute `ref` supplied to `React.Fragment`."),rl(null))}}function BP($,de,ve,Te,Ge,Je){{var Ne=N($);if(!Ne){var Ie="";($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(Ie+=" 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 sn=a1e(Ge);sn?Ie+=sn:Ie+=$P();var yt;$===null?yt="null":ue($)?yt="array":$!==void 0&&$.$$typeof===t?(yt="<"+(D($.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):yt=typeof $,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",yt,Ie)}var Tt=Xt($,de,ve,Ge,Je);if(Tt==null)return Tt;if(Ne){var Qn=de.children;if(Qn!==void 0)if(Te)if(ue(Qn)){for(var il=0;il<Qn.length;il++)zP(Qn[il],$);Object.freeze&&Object.freeze(Qn)}else b("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 zP(Qn,$)}return $===r?s1e(Tt):l1e(Tt),Tt}}function c1e($,de,ve){return BP($,de,ve,!0)}function u1e($,de,ve){return BP($,de,ve,!1)}var f1e=u1e,d1e=c1e;ll.Fragment=r,ll.jsx=f1e,ll.jsxs=d1e}()),ll}process.env.NODE_ENV==="production"?nh.exports=UP():nh.exports=qP();var v=nh.exports;const GP={name:"--pf-global--breakpoint--2xl",value:"1450px",var:"var(--pf-global--breakpoint--2xl)"},YP={name:"--pf-global--breakpoint--lg",value:"992px",var:"var(--pf-global--breakpoint--lg)"},KP={name:"--pf-global--breakpoint--md",value:"768px",var:"var(--pf-global--breakpoint--md)"},ZP={name:"--pf-global--breakpoint--sm",value:"576px",var:"var(--pf-global--breakpoint--sm)"},XP={name:"--pf-global--breakpoint--xl",value:"1200px",var:"var(--pf-global--breakpoint--xl)"},yr={xs:Number({name:"--pf-global--breakpoint--xs",value:"0",var:"var(--pf-global--breakpoint--xs)"}.value.replace("px","")),sm:Number(ZP.value.replace("px","")),md:Number(KP.value.replace("px","")),lg:Number(YP.value.replace("px","")),xl:Number(XP.value.replace("px","")),xxl:Number(GP.value.replace("px",""))};function Ry(){const[e,t]=x.useState(()=>window.innerWidth<=yr.sm?"xs":window.innerWidth<=yr.md?"sm":window.innerWidth<=yr.lg?"md":window.innerWidth<=yr.xl?"lg":window.innerWidth<=yr.xxl?"xl":"xxl"),n=x.useCallback(()=>{window.innerWidth<=yr.sm?t("xs"):window.innerWidth<=yr.md?t("sm"):window.innerWidth<=yr.lg?t("md"):window.innerWidth<=yr.xl?t("lg"):window.innerWidth<=yr.xxl?t("xl"):t("xxl")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}function cn(e){const t=Ry();switch(e){case"xs":return!0;case"sm":switch(t){case"sm":case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"md":switch(t){case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"lg":switch(t){case"lg":case"xl":case"xxl":return!0;default:return!1}case"xl":switch(t){case"xl":case"xxl":return!0;default:return!1}case"xxl":switch(t){case"xxl":return!0;default:return!1}}}function JP(){const[e,t]=x.useState(()=>window.innerWidth>window.innerHeight?"landscape":"portrait"),n=x.useCallback(()=>{t(window.innerWidth>window.innerHeight?"landscape":"portrait")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}var rh={exports:{}},Ye={};/** @license React v16.13.1
27
+ Check the top-level render call using <`+ve+">.")}return de}}function NP($,de){{if(!$._store||$._store.validated||$.key!=null)return;$._store.validated=!0;var ve=o1e(de);if(FP[ve])return;FP[ve]=!0;var Te="";$&&$._owner&&$._owner!==vi.current&&(Te=" It was passed a child from "+I($._owner.type)+"."),rl($),b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ve,Te),rl(null)}}function zP($,de){{if(typeof $!="object")return;if(ue($))for(var ve=0;ve<$.length;ve++){var Te=$[ve];$y(Te)&&NP(Te,de)}else if($y($))$._store&&($._store.validated=!0);else if($){var Ge=y($);if(typeof Ge=="function"&&Ge!==$.entries)for(var Je=Ge.call($),Ne;!(Ne=Je.next()).done;)$y(Ne.value)&&NP(Ne.value,de)}}}function l1e($){{var de=$.type;if(de==null||typeof de=="string")return;var ve;if(typeof de=="function")ve=de.propTypes;else if(typeof de=="object"&&(de.$$typeof===s||de.$$typeof===f))ve=de.propTypes;else return;if(ve){var Te=I(de);he(ve,$.props,"prop",Te,$)}else if(de.PropTypes!==void 0&&!Ly){Ly=!0;var Ge=I(de);b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ge||"Unknown")}typeof de.getDefaultProps=="function"&&!de.getDefaultProps.isReactClassApproved&&b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function s1e($){{for(var de=Object.keys($.props),ve=0;ve<de.length;ve++){var Te=de[ve];if(Te!=="children"&&Te!=="key"){rl($),b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Te),rl(null);break}}$.ref!==null&&(rl($),b("Invalid attribute `ref` supplied to `React.Fragment`."),rl(null))}}function BP($,de,ve,Te,Ge,Je){{var Ne=N($);if(!Ne){var Ie="";($===void 0||typeof $=="object"&&$!==null&&Object.keys($).length===0)&&(Ie+=" 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 sn=a1e(Ge);sn?Ie+=sn:Ie+=$P();var yt;$===null?yt="null":ue($)?yt="array":$!==void 0&&$.$$typeof===t?(yt="<"+(I($.type)||"Unknown")+" />",Ie=" Did you accidentally export a JSX literal instead of a component?"):yt=typeof $,b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",yt,Ie)}var Tt=Xt($,de,ve,Ge,Je);if(Tt==null)return Tt;if(Ne){var Qn=de.children;if(Qn!==void 0)if(Te)if(ue(Qn)){for(var il=0;il<Qn.length;il++)zP(Qn[il],$);Object.freeze&&Object.freeze(Qn)}else b("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 zP(Qn,$)}return $===r?s1e(Tt):l1e(Tt),Tt}}function c1e($,de,ve){return BP($,de,ve,!0)}function u1e($,de,ve){return BP($,de,ve,!1)}var f1e=u1e,d1e=c1e;ll.Fragment=r,ll.jsx=f1e,ll.jsxs=d1e}()),ll}process.env.NODE_ENV==="production"?nh.exports=UP():nh.exports=qP();var v=nh.exports;const GP={name:"--pf-global--breakpoint--2xl",value:"1450px",var:"var(--pf-global--breakpoint--2xl)"},YP={name:"--pf-global--breakpoint--lg",value:"992px",var:"var(--pf-global--breakpoint--lg)"},KP={name:"--pf-global--breakpoint--md",value:"768px",var:"var(--pf-global--breakpoint--md)"},ZP={name:"--pf-global--breakpoint--sm",value:"576px",var:"var(--pf-global--breakpoint--sm)"},XP={name:"--pf-global--breakpoint--xl",value:"1200px",var:"var(--pf-global--breakpoint--xl)"},yr={xs:Number({name:"--pf-global--breakpoint--xs",value:"0",var:"var(--pf-global--breakpoint--xs)"}.value.replace("px","")),sm:Number(ZP.value.replace("px","")),md:Number(KP.value.replace("px","")),lg:Number(YP.value.replace("px","")),xl:Number(XP.value.replace("px","")),xxl:Number(GP.value.replace("px",""))};function Ry(){const[e,t]=x.useState(()=>window.innerWidth<=yr.sm?"xs":window.innerWidth<=yr.md?"sm":window.innerWidth<=yr.lg?"md":window.innerWidth<=yr.xl?"lg":window.innerWidth<=yr.xxl?"xl":"xxl"),n=x.useCallback(()=>{window.innerWidth<=yr.sm?t("xs"):window.innerWidth<=yr.md?t("sm"):window.innerWidth<=yr.lg?t("md"):window.innerWidth<=yr.xl?t("lg"):window.innerWidth<=yr.xxl?t("xl"):t("xxl")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}function cn(e){const t=Ry();switch(e){case"xs":return!0;case"sm":switch(t){case"sm":case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"md":switch(t){case"md":case"lg":case"xl":case"xxl":return!0;default:return!1}case"lg":switch(t){case"lg":case"xl":case"xxl":return!0;default:return!1}case"xl":switch(t){case"xl":case"xxl":return!0;default:return!1}case"xxl":switch(t){case"xxl":return!0;default:return!1}}}function JP(){const[e,t]=x.useState(()=>window.innerWidth>window.innerHeight?"landscape":"portrait"),n=x.useCallback(()=>{t(window.innerWidth>window.innerHeight?"landscape":"portrait")},[]);return x.useEffect(()=>{const r=n;return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[n]),x.useEffect(()=>n(),[n]),e}var rh={exports:{}},Ye={};/** @license React v16.13.1
28
28
  * react-is.production.min.js
29
29
  *
30
30
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -38,7 +38,7 @@ Check the top-level render call using <`+ve+">.")}return de}}function NP($,de){{
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 Hy;function e3(){return Hy||(Hy=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,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(L){return typeof L=="string"||typeof L=="function"||L===r||L===c||L===a||L===i||L===f||L===d||typeof L=="object"&&L!==null&&(L.$$typeof===p||L.$$typeof===h||L.$$typeof===o||L.$$typeof===l||L.$$typeof===u||L.$$typeof===y||L.$$typeof===_||L.$$typeof===b||L.$$typeof===g)}function O(L){if(typeof L=="object"&&L!==null){var xe=L.$$typeof;switch(xe){case t:var Se=L.type;switch(Se){case s:case c:case r:case a:case i:case f:return Se;default:var be=Se&&Se.$$typeof;switch(be){case l:case u:case p:case h:case o:return be;default:return xe}}case n:return xe}}}var w=s,A=c,T=l,k=o,P=t,N=u,M=r,j=p,D=h,I=n,W=a,X=i,ne=f,re=!1;function Z(L){return re||(re=!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.")),R(L)||O(L)===s}function R(L){return O(L)===c}function J(L){return O(L)===l}function U(L){return O(L)===o}function Y(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function G(L){return O(L)===u}function ie(L){return O(L)===r}function z(L){return O(L)===p}function se(L){return O(L)===h}function K(L){return O(L)===n}function Q(L){return O(L)===a}function te(L){return O(L)===i}function ce(L){return O(L)===f}Ke.AsyncMode=w,Ke.ConcurrentMode=A,Ke.ContextConsumer=T,Ke.ContextProvider=k,Ke.Element=P,Ke.ForwardRef=N,Ke.Fragment=M,Ke.Lazy=j,Ke.Memo=D,Ke.Portal=I,Ke.Profiler=W,Ke.StrictMode=X,Ke.Suspense=ne,Ke.isAsyncMode=Z,Ke.isConcurrentMode=R,Ke.isContextConsumer=J,Ke.isContextProvider=U,Ke.isElement=Y,Ke.isForwardRef=G,Ke.isFragment=ie,Ke.isLazy=z,Ke.isMemo=se,Ke.isPortal=K,Ke.isProfiler=Q,Ke.isStrictMode=te,Ke.isSuspense=ce,Ke.isValidElementType=S,Ke.typeOf=O}()),Ke}process.env.NODE_ENV==="production"?rh.exports=QP():rh.exports=e3();var Ba=rh.exports;function t3(e){function t(U,Y,G,ie,z){for(var se=0,K=0,Q=0,te=0,ce,L,xe=0,Se=0,be,ge=be=ce=0,E=0,V=0,ee=0,he=0,me=G.length,ue=me-1,le,H="",oe="",Ee="",De="",je;E<me;){if(L=G.charCodeAt(E),E===ue&&K+te+Q+se!==0&&(K!==0&&(L=K===47?10:47),te=Q=se=0,me++,ue++),K+te+Q+se===0){if(E===ue&&(0<V&&(H=H.replace(d,"")),0<H.trim().length)){switch(L){case 32:case 9:case 59:case 13:case 10:break;default:H+=G.charAt(E)}L=59}switch(L){case 123:for(H=H.trim(),ce=H.charCodeAt(0),be=1,he=++E;E<me;){switch(L=G.charCodeAt(E)){case 123:be++;break;case 125:be--;break;case 47:switch(L=G.charCodeAt(E+1)){case 42:case 47:e:{for(ge=E+1;ge<ue;++ge)switch(G.charCodeAt(ge)){case 47:if(L===42&&G.charCodeAt(ge-1)===42&&E+2!==ge){E=ge+1;break e}break;case 10:if(L===47){E=ge+1;break e}}E=ge}}break;case 91:L++;case 40:L++;case 34:case 39:for(;E++<ue&&G.charCodeAt(E)!==L;);}if(be===0)break;E++}switch(be=G.substring(he,E),ce===0&&(ce=(H=H.replace(f,"").trim()).charCodeAt(0)),ce){case 64:switch(0<V&&(H=H.replace(d,"")),L=H.charCodeAt(1),L){case 100:case 109:case 115:case 45:V=Y;break;default:V=X}if(be=t(Y,V,be,L,z+1),he=be.length,0<re&&(V=n(X,H,ee),je=l(3,be,V,Y,D,j,he,L,z,ie),H=V.join(""),je!==void 0&&(he=(be=je.trim()).length)===0&&(L=0,be="")),0<he)switch(L){case 115:H=H.replace(A,o);case 100:case 109:case 45:be=H+"{"+be+"}";break;case 107:H=H.replace(b,"$1 $2"),be=H+"{"+be+"}",be=W===1||W===2&&a("@"+be,3)?"@-webkit-"+be+"@"+be:"@"+be;break;default:be=H+be,ie===112&&(be=(oe+=be,""))}else be="";break;default:be=t(Y,n(Y,H,ee),be,ie,z+1)}Ee+=be,be=ee=V=ge=ce=0,H="",L=G.charCodeAt(++E);break;case 125:case 59:if(H=(0<V?H.replace(d,""):H).trim(),1<(he=H.length))switch(ge===0&&(ce=H.charCodeAt(0),ce===45||96<ce&&123>ce)&&(he=(H=H.replace(" ",":")).length),0<re&&(je=l(1,H,Y,U,D,j,oe.length,ie,z,ie))!==void 0&&(he=(H=je.trim()).length)===0&&(H="\0\0"),ce=H.charCodeAt(0),L=H.charCodeAt(1),ce){case 0:break;case 64:if(L===105||L===99){De+=H+G.charAt(E);break}default:H.charCodeAt(he-1)!==58&&(oe+=i(H,ce,L,H.charCodeAt(2)))}ee=V=ge=ce=0,H="",L=G.charCodeAt(++E)}}switch(L){case 13:case 10:K===47?K=0:1+ce===0&&ie!==107&&0<H.length&&(V=1,H+="\0"),0<re*R&&l(0,H,Y,U,D,j,oe.length,ie,z,ie),j=1,D++;break;case 59:case 125:if(K+te+Q+se===0){j++;break}default:switch(j++,le=G.charAt(E),L){case 9:case 32:if(te+se+K===0)switch(xe){case 44:case 58:case 9:case 32:le="";break;default:L!==32&&(le=" ")}break;case 0:le="\\0";break;case 12:le="\\f";break;case 11:le="\\v";break;case 38:te+K+se===0&&(V=ee=1,le="\f"+le);break;case 108:if(te+K+se+I===0&&0<ge)switch(E-ge){case 2:xe===112&&G.charCodeAt(E-3)===58&&(I=xe);case 8:Se===111&&(I=Se)}break;case 58:te+K+se===0&&(ge=E);break;case 44:K+Q+te+se===0&&(V=1,le+="\r");break;case 34:case 39:K===0&&(te=te===L?0:te===0?L:te);break;case 91:te+K+Q===0&&se++;break;case 93:te+K+Q===0&&se--;break;case 41:te+K+se===0&&Q--;break;case 40:if(te+K+se===0){if(ce===0)switch(2*xe+3*Se){case 533:break;default:ce=1}Q++}break;case 64:K+Q+te+se+ge+be===0&&(be=1);break;case 42:case 47:if(!(0<te+se+Q))switch(K){case 0:switch(2*L+3*G.charCodeAt(E+1)){case 235:K=47;break;case 220:he=E,K=42}break;case 42:L===47&&xe===42&&he+2!==E&&(G.charCodeAt(he+2)===33&&(oe+=G.substring(he,E+1)),le="",K=0)}}K===0&&(H+=le)}Se=xe,xe=L,E++}if(he=oe.length,0<he){if(V=Y,0<re&&(je=l(2,oe,V,U,D,j,he,ie,z,ie),je!==void 0&&(oe=je).length===0))return De+oe+Ee;if(oe=V.join(",")+"{"+oe+"}",W*I!==0){switch(W!==2||a(oe,2)||(I=0),I){case 111:oe=oe.replace(O,":-moz-$1")+oe;break;case 112:oe=oe.replace(S,"::-webkit-input-$1")+oe.replace(S,"::-moz-$1")+oe.replace(S,":-ms-input-$1")+oe}I=0}}return De+oe+Ee}function n(U,Y,G){var ie=Y.trim().split(y);Y=ie;var z=ie.length,se=U.length;switch(se){case 0:case 1:var K=0;for(U=se===0?"":U[0]+" ";K<z;++K)Y[K]=r(U,Y[K],G).trim();break;default:var Q=K=0;for(Y=[];K<z;++K)for(var te=0;te<se;++te)Y[Q++]=r(U[te]+" ",ie[K],G).trim()}return Y}function r(U,Y,G){var ie=Y.charCodeAt(0);switch(33>ie&&(ie=(Y=Y.trim()).charCodeAt(0)),ie){case 38:return Y.replace(_,"$1"+U.trim());case 58:return U.trim()+Y.replace(_,"$1"+U.trim());default:if(0<1*G&&0<Y.indexOf("\f"))return Y.replace(_,(U.charCodeAt(0)===58?"":"$1")+U.trim())}return U+Y}function i(U,Y,G,ie){var z=U+";",se=2*Y+3*G+4*ie;if(se===944){U=z.indexOf(":",9)+1;var K=z.substring(U,z.length-1).trim();return K=z.substring(0,U).trim()+K+";",W===1||W===2&&a(K,1)?"-webkit-"+K+K:K}if(W===0||W===2&&!a(z,1))return z;switch(se){case 1015:return z.charCodeAt(10)===97?"-webkit-"+z+z:z;case 951:return z.charCodeAt(3)===116?"-webkit-"+z+z:z;case 963:return z.charCodeAt(5)===110?"-webkit-"+z+z:z;case 1009:if(z.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+z+z;case 978:return"-webkit-"+z+"-moz-"+z+z;case 1019:case 983:return"-webkit-"+z+"-moz-"+z+"-ms-"+z+z;case 883:if(z.charCodeAt(8)===45)return"-webkit-"+z+z;if(0<z.indexOf("image-set(",11))return z.replace(M,"$1-webkit-$2")+z;break;case 932:if(z.charCodeAt(4)===45)switch(z.charCodeAt(5)){case 103:return"-webkit-box-"+z.replace("-grow","")+"-webkit-"+z+"-ms-"+z.replace("grow","positive")+z;case 115:return"-webkit-"+z+"-ms-"+z.replace("shrink","negative")+z;case 98:return"-webkit-"+z+"-ms-"+z.replace("basis","preferred-size")+z}return"-webkit-"+z+"-ms-"+z+z;case 964:return"-webkit-"+z+"-ms-flex-"+z+z;case 1023:if(z.charCodeAt(8)!==99)break;return K=z.substring(z.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+K+"-webkit-"+z+"-ms-flex-pack"+K+z;case 1005:return p.test(z)?z.replace(h,":-webkit-")+z.replace(h,":-moz-")+z:z;case 1e3:switch(K=z.substring(13).trim(),Y=K.indexOf("-")+1,K.charCodeAt(0)+K.charCodeAt(Y)){case 226:K=z.replace(w,"tb");break;case 232:K=z.replace(w,"tb-rl");break;case 220:K=z.replace(w,"lr");break;default:return z}return"-webkit-"+z+"-ms-"+K+z;case 1017:if(z.indexOf("sticky",9)===-1)break;case 975:switch(Y=(z=U).length-10,K=(z.charCodeAt(Y)===33?z.substring(0,Y):z).substring(U.indexOf(":",7)+1).trim(),se=K.charCodeAt(0)+(K.charCodeAt(7)|0)){case 203:if(111>K.charCodeAt(8))break;case 115:z=z.replace(K,"-webkit-"+K)+";"+z;break;case 207:case 102:z=z.replace(K,"-webkit-"+(102<se?"inline-":"")+"box")+";"+z.replace(K,"-webkit-"+K)+";"+z.replace(K,"-ms-"+K+"box")+";"+z}return z+";";case 938:if(z.charCodeAt(5)===45)switch(z.charCodeAt(6)){case 105:return K=z.replace("-items",""),"-webkit-"+z+"-webkit-box-"+K+"-ms-flex-"+K+z;case 115:return"-webkit-"+z+"-ms-flex-item-"+z.replace(k,"")+z;default:return"-webkit-"+z+"-ms-flex-line-pack"+z.replace("align-content","").replace(k,"")+z}break;case 973:case 989:if(z.charCodeAt(3)!==45||z.charCodeAt(4)===122)break;case 931:case 953:if(N.test(U)===!0)return(K=U.substring(U.indexOf(":")+1)).charCodeAt(0)===115?i(U.replace("stretch","fill-available"),Y,G,ie).replace(":fill-available",":stretch"):z.replace(K,"-webkit-"+K)+z.replace(K,"-moz-"+K.replace("fill-",""))+z;break;case 962:if(z="-webkit-"+z+(z.charCodeAt(5)===102?"-ms-"+z:"")+z,G+ie===211&&z.charCodeAt(13)===105&&0<z.indexOf("transform",10))return z.substring(0,z.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+z}return z}function a(U,Y){var G=U.indexOf(Y===1?":":"{"),ie=U.substring(0,Y!==3?G:10);return G=U.substring(G+1,U.length-1),Z(Y!==2?ie:ie.replace(P,"$1"),G,Y)}function o(U,Y){var G=i(Y,Y.charCodeAt(0),Y.charCodeAt(1),Y.charCodeAt(2));return G!==Y+";"?G.replace(T," or ($1)").substring(4):"("+Y+")"}function l(U,Y,G,ie,z,se,K,Q,te,ce){for(var L=0,xe=Y,Se;L<re;++L)switch(Se=ne[L].call(u,U,xe,G,ie,z,se,K,Q,te,ce)){case void 0:case!1:case!0:case null:break;default:xe=Se}if(xe!==Y)return xe}function s(U){switch(U){case void 0:case null:re=ne.length=0;break;default:if(typeof U=="function")ne[re++]=U;else if(typeof U=="object")for(var Y=0,G=U.length;Y<G;++Y)s(U[Y]);else R=!!U|0}return s}function c(U){return U=U.prefix,U!==void 0&&(Z=null,U?typeof U!="function"?W=1:(W=2,Z=U):W=0),c}function u(U,Y){var G=U;if(33>G.charCodeAt(0)&&(G=G.trim()),J=G,G=[J],0<re){var ie=l(-1,Y,G,G,D,j,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(Y=ie)}var z=t(X,G,Y,0,0);return 0<re&&(ie=l(-2,z,G,G,D,j,z.length,0,0,0),ie!==void 0&&(z=ie)),J="",I=0,j=D=1,z}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,g=/([,: ])(transform)/g,y=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,k=/-self|flex-/g,P=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,j=1,D=1,I=0,W=1,X=[],ne=[],re=0,Z=null,R=0,J="";return u.use=s,u.set=c,e!==void 0&&c(e),u}var n3={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};function r3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var i3=/^((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)-.*))$/,Uy=r3(function(e){return i3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ih=Ba,a3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ah={};ah[ih.ForwardRef]=l3,ah[ih.Memo]=qy;function Gy(e){return ih.isMemo(e)?qy:ah[e.$$typeof]||a3}var s3=Object.defineProperty,c3=Object.getOwnPropertyNames,Yy=Object.getOwnPropertySymbols,u3=Object.getOwnPropertyDescriptor,f3=Object.getPrototypeOf,Ky=Object.prototype;function Zy(e,t,n){if(typeof t!="string"){if(Ky){var r=f3(t);r&&r!==Ky&&Zy(e,r,n)}var i=c3(t);Yy&&(i=i.concat(Yy(t)));for(var a=Gy(e),o=Gy(t),l=0;l<i.length;++l){var s=i[l];if(!o3[s]&&!(n&&n[s])&&!(o&&o[s])&&!(a&&a[s])){var c=u3(t,s);try{s3(e,s,c)}catch{}}}}return e}var d3=Zy;const Ft=Ae(d3);function Rr(){return(Rr=Object.assign||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}).apply(this,arguments)}var Xy=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},oh=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ba.typeOf(e)},nc=Object.freeze([]),_i=Object.freeze({});function sl(e){return typeof e=="function"}function lh(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function sh(e){return e&&typeof e.styledComponentId=="string"}var Wa=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ch=typeof window<"u"&&"HTMLElement"in window,h3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),m3=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
41
+ */var Hy;function e3(){return Hy||(Hy=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,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,p=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,_=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(L){return typeof L=="string"||typeof L=="function"||L===r||L===c||L===a||L===i||L===f||L===d||typeof L=="object"&&L!==null&&(L.$$typeof===p||L.$$typeof===h||L.$$typeof===o||L.$$typeof===l||L.$$typeof===u||L.$$typeof===y||L.$$typeof===_||L.$$typeof===b||L.$$typeof===g)}function O(L){if(typeof L=="object"&&L!==null){var xe=L.$$typeof;switch(xe){case t:var Se=L.type;switch(Se){case s:case c:case r:case a:case i:case f:return Se;default:var be=Se&&Se.$$typeof;switch(be){case l:case u:case p:case h:case o:return be;default:return xe}}case n:return xe}}}var w=s,A=c,T=l,k=o,j=t,N=u,M=r,E=p,I=h,D=n,W=a,X=i,ne=f,re=!1;function Z(L){return re||(re=!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.")),R(L)||O(L)===s}function R(L){return O(L)===c}function J(L){return O(L)===l}function U(L){return O(L)===o}function Y(L){return typeof L=="object"&&L!==null&&L.$$typeof===t}function G(L){return O(L)===u}function ie(L){return O(L)===r}function z(L){return O(L)===p}function se(L){return O(L)===h}function K(L){return O(L)===n}function Q(L){return O(L)===a}function te(L){return O(L)===i}function ce(L){return O(L)===f}Ke.AsyncMode=w,Ke.ConcurrentMode=A,Ke.ContextConsumer=T,Ke.ContextProvider=k,Ke.Element=j,Ke.ForwardRef=N,Ke.Fragment=M,Ke.Lazy=E,Ke.Memo=I,Ke.Portal=D,Ke.Profiler=W,Ke.StrictMode=X,Ke.Suspense=ne,Ke.isAsyncMode=Z,Ke.isConcurrentMode=R,Ke.isContextConsumer=J,Ke.isContextProvider=U,Ke.isElement=Y,Ke.isForwardRef=G,Ke.isFragment=ie,Ke.isLazy=z,Ke.isMemo=se,Ke.isPortal=K,Ke.isProfiler=Q,Ke.isStrictMode=te,Ke.isSuspense=ce,Ke.isValidElementType=S,Ke.typeOf=O}()),Ke}process.env.NODE_ENV==="production"?rh.exports=QP():rh.exports=e3();var Ba=rh.exports;function t3(e){function t(U,Y,G,ie,z){for(var se=0,K=0,Q=0,te=0,ce,L,xe=0,Se=0,be,ge=be=ce=0,P=0,V=0,ee=0,he=0,me=G.length,ue=me-1,le,H="",oe="",Ee="",De="",je;P<me;){if(L=G.charCodeAt(P),P===ue&&K+te+Q+se!==0&&(K!==0&&(L=K===47?10:47),te=Q=se=0,me++,ue++),K+te+Q+se===0){if(P===ue&&(0<V&&(H=H.replace(d,"")),0<H.trim().length)){switch(L){case 32:case 9:case 59:case 13:case 10:break;default:H+=G.charAt(P)}L=59}switch(L){case 123:for(H=H.trim(),ce=H.charCodeAt(0),be=1,he=++P;P<me;){switch(L=G.charCodeAt(P)){case 123:be++;break;case 125:be--;break;case 47:switch(L=G.charCodeAt(P+1)){case 42:case 47:e:{for(ge=P+1;ge<ue;++ge)switch(G.charCodeAt(ge)){case 47:if(L===42&&G.charCodeAt(ge-1)===42&&P+2!==ge){P=ge+1;break e}break;case 10:if(L===47){P=ge+1;break e}}P=ge}}break;case 91:L++;case 40:L++;case 34:case 39:for(;P++<ue&&G.charCodeAt(P)!==L;);}if(be===0)break;P++}switch(be=G.substring(he,P),ce===0&&(ce=(H=H.replace(f,"").trim()).charCodeAt(0)),ce){case 64:switch(0<V&&(H=H.replace(d,"")),L=H.charCodeAt(1),L){case 100:case 109:case 115:case 45:V=Y;break;default:V=X}if(be=t(Y,V,be,L,z+1),he=be.length,0<re&&(V=n(X,H,ee),je=l(3,be,V,Y,I,E,he,L,z,ie),H=V.join(""),je!==void 0&&(he=(be=je.trim()).length)===0&&(L=0,be="")),0<he)switch(L){case 115:H=H.replace(A,o);case 100:case 109:case 45:be=H+"{"+be+"}";break;case 107:H=H.replace(b,"$1 $2"),be=H+"{"+be+"}",be=W===1||W===2&&a("@"+be,3)?"@-webkit-"+be+"@"+be:"@"+be;break;default:be=H+be,ie===112&&(be=(oe+=be,""))}else be="";break;default:be=t(Y,n(Y,H,ee),be,ie,z+1)}Ee+=be,be=ee=V=ge=ce=0,H="",L=G.charCodeAt(++P);break;case 125:case 59:if(H=(0<V?H.replace(d,""):H).trim(),1<(he=H.length))switch(ge===0&&(ce=H.charCodeAt(0),ce===45||96<ce&&123>ce)&&(he=(H=H.replace(" ",":")).length),0<re&&(je=l(1,H,Y,U,I,E,oe.length,ie,z,ie))!==void 0&&(he=(H=je.trim()).length)===0&&(H="\0\0"),ce=H.charCodeAt(0),L=H.charCodeAt(1),ce){case 0:break;case 64:if(L===105||L===99){De+=H+G.charAt(P);break}default:H.charCodeAt(he-1)!==58&&(oe+=i(H,ce,L,H.charCodeAt(2)))}ee=V=ge=ce=0,H="",L=G.charCodeAt(++P)}}switch(L){case 13:case 10:K===47?K=0:1+ce===0&&ie!==107&&0<H.length&&(V=1,H+="\0"),0<re*R&&l(0,H,Y,U,I,E,oe.length,ie,z,ie),E=1,I++;break;case 59:case 125:if(K+te+Q+se===0){E++;break}default:switch(E++,le=G.charAt(P),L){case 9:case 32:if(te+se+K===0)switch(xe){case 44:case 58:case 9:case 32:le="";break;default:L!==32&&(le=" ")}break;case 0:le="\\0";break;case 12:le="\\f";break;case 11:le="\\v";break;case 38:te+K+se===0&&(V=ee=1,le="\f"+le);break;case 108:if(te+K+se+D===0&&0<ge)switch(P-ge){case 2:xe===112&&G.charCodeAt(P-3)===58&&(D=xe);case 8:Se===111&&(D=Se)}break;case 58:te+K+se===0&&(ge=P);break;case 44:K+Q+te+se===0&&(V=1,le+="\r");break;case 34:case 39:K===0&&(te=te===L?0:te===0?L:te);break;case 91:te+K+Q===0&&se++;break;case 93:te+K+Q===0&&se--;break;case 41:te+K+se===0&&Q--;break;case 40:if(te+K+se===0){if(ce===0)switch(2*xe+3*Se){case 533:break;default:ce=1}Q++}break;case 64:K+Q+te+se+ge+be===0&&(be=1);break;case 42:case 47:if(!(0<te+se+Q))switch(K){case 0:switch(2*L+3*G.charCodeAt(P+1)){case 235:K=47;break;case 220:he=P,K=42}break;case 42:L===47&&xe===42&&he+2!==P&&(G.charCodeAt(he+2)===33&&(oe+=G.substring(he,P+1)),le="",K=0)}}K===0&&(H+=le)}Se=xe,xe=L,P++}if(he=oe.length,0<he){if(V=Y,0<re&&(je=l(2,oe,V,U,I,E,he,ie,z,ie),je!==void 0&&(oe=je).length===0))return De+oe+Ee;if(oe=V.join(",")+"{"+oe+"}",W*D!==0){switch(W!==2||a(oe,2)||(D=0),D){case 111:oe=oe.replace(O,":-moz-$1")+oe;break;case 112:oe=oe.replace(S,"::-webkit-input-$1")+oe.replace(S,"::-moz-$1")+oe.replace(S,":-ms-input-$1")+oe}D=0}}return De+oe+Ee}function n(U,Y,G){var ie=Y.trim().split(y);Y=ie;var z=ie.length,se=U.length;switch(se){case 0:case 1:var K=0;for(U=se===0?"":U[0]+" ";K<z;++K)Y[K]=r(U,Y[K],G).trim();break;default:var Q=K=0;for(Y=[];K<z;++K)for(var te=0;te<se;++te)Y[Q++]=r(U[te]+" ",ie[K],G).trim()}return Y}function r(U,Y,G){var ie=Y.charCodeAt(0);switch(33>ie&&(ie=(Y=Y.trim()).charCodeAt(0)),ie){case 38:return Y.replace(_,"$1"+U.trim());case 58:return U.trim()+Y.replace(_,"$1"+U.trim());default:if(0<1*G&&0<Y.indexOf("\f"))return Y.replace(_,(U.charCodeAt(0)===58?"":"$1")+U.trim())}return U+Y}function i(U,Y,G,ie){var z=U+";",se=2*Y+3*G+4*ie;if(se===944){U=z.indexOf(":",9)+1;var K=z.substring(U,z.length-1).trim();return K=z.substring(0,U).trim()+K+";",W===1||W===2&&a(K,1)?"-webkit-"+K+K:K}if(W===0||W===2&&!a(z,1))return z;switch(se){case 1015:return z.charCodeAt(10)===97?"-webkit-"+z+z:z;case 951:return z.charCodeAt(3)===116?"-webkit-"+z+z:z;case 963:return z.charCodeAt(5)===110?"-webkit-"+z+z:z;case 1009:if(z.charCodeAt(4)!==100)break;case 969:case 942:return"-webkit-"+z+z;case 978:return"-webkit-"+z+"-moz-"+z+z;case 1019:case 983:return"-webkit-"+z+"-moz-"+z+"-ms-"+z+z;case 883:if(z.charCodeAt(8)===45)return"-webkit-"+z+z;if(0<z.indexOf("image-set(",11))return z.replace(M,"$1-webkit-$2")+z;break;case 932:if(z.charCodeAt(4)===45)switch(z.charCodeAt(5)){case 103:return"-webkit-box-"+z.replace("-grow","")+"-webkit-"+z+"-ms-"+z.replace("grow","positive")+z;case 115:return"-webkit-"+z+"-ms-"+z.replace("shrink","negative")+z;case 98:return"-webkit-"+z+"-ms-"+z.replace("basis","preferred-size")+z}return"-webkit-"+z+"-ms-"+z+z;case 964:return"-webkit-"+z+"-ms-flex-"+z+z;case 1023:if(z.charCodeAt(8)!==99)break;return K=z.substring(z.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),"-webkit-box-pack"+K+"-webkit-"+z+"-ms-flex-pack"+K+z;case 1005:return p.test(z)?z.replace(h,":-webkit-")+z.replace(h,":-moz-")+z:z;case 1e3:switch(K=z.substring(13).trim(),Y=K.indexOf("-")+1,K.charCodeAt(0)+K.charCodeAt(Y)){case 226:K=z.replace(w,"tb");break;case 232:K=z.replace(w,"tb-rl");break;case 220:K=z.replace(w,"lr");break;default:return z}return"-webkit-"+z+"-ms-"+K+z;case 1017:if(z.indexOf("sticky",9)===-1)break;case 975:switch(Y=(z=U).length-10,K=(z.charCodeAt(Y)===33?z.substring(0,Y):z).substring(U.indexOf(":",7)+1).trim(),se=K.charCodeAt(0)+(K.charCodeAt(7)|0)){case 203:if(111>K.charCodeAt(8))break;case 115:z=z.replace(K,"-webkit-"+K)+";"+z;break;case 207:case 102:z=z.replace(K,"-webkit-"+(102<se?"inline-":"")+"box")+";"+z.replace(K,"-webkit-"+K)+";"+z.replace(K,"-ms-"+K+"box")+";"+z}return z+";";case 938:if(z.charCodeAt(5)===45)switch(z.charCodeAt(6)){case 105:return K=z.replace("-items",""),"-webkit-"+z+"-webkit-box-"+K+"-ms-flex-"+K+z;case 115:return"-webkit-"+z+"-ms-flex-item-"+z.replace(k,"")+z;default:return"-webkit-"+z+"-ms-flex-line-pack"+z.replace("align-content","").replace(k,"")+z}break;case 973:case 989:if(z.charCodeAt(3)!==45||z.charCodeAt(4)===122)break;case 931:case 953:if(N.test(U)===!0)return(K=U.substring(U.indexOf(":")+1)).charCodeAt(0)===115?i(U.replace("stretch","fill-available"),Y,G,ie).replace(":fill-available",":stretch"):z.replace(K,"-webkit-"+K)+z.replace(K,"-moz-"+K.replace("fill-",""))+z;break;case 962:if(z="-webkit-"+z+(z.charCodeAt(5)===102?"-ms-"+z:"")+z,G+ie===211&&z.charCodeAt(13)===105&&0<z.indexOf("transform",10))return z.substring(0,z.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+z}return z}function a(U,Y){var G=U.indexOf(Y===1?":":"{"),ie=U.substring(0,Y!==3?G:10);return G=U.substring(G+1,U.length-1),Z(Y!==2?ie:ie.replace(j,"$1"),G,Y)}function o(U,Y){var G=i(Y,Y.charCodeAt(0),Y.charCodeAt(1),Y.charCodeAt(2));return G!==Y+";"?G.replace(T," or ($1)").substring(4):"("+Y+")"}function l(U,Y,G,ie,z,se,K,Q,te,ce){for(var L=0,xe=Y,Se;L<re;++L)switch(Se=ne[L].call(u,U,xe,G,ie,z,se,K,Q,te,ce)){case void 0:case!1:case!0:case null:break;default:xe=Se}if(xe!==Y)return xe}function s(U){switch(U){case void 0:case null:re=ne.length=0;break;default:if(typeof U=="function")ne[re++]=U;else if(typeof U=="object")for(var Y=0,G=U.length;Y<G;++Y)s(U[Y]);else R=!!U|0}return s}function c(U){return U=U.prefix,U!==void 0&&(Z=null,U?typeof U!="function"?W=1:(W=2,Z=U):W=0),c}function u(U,Y){var G=U;if(33>G.charCodeAt(0)&&(G=G.trim()),J=G,G=[J],0<re){var ie=l(-1,Y,G,G,I,E,0,0,0,0);ie!==void 0&&typeof ie=="string"&&(Y=ie)}var z=t(X,G,Y,0,0);return 0<re&&(ie=l(-2,z,G,G,I,E,z.length,0,0,0),ie!==void 0&&(z=ie)),J="",D=0,E=I=1,z}var f=/^\0+/g,d=/[\0\r\f]/g,h=/: */g,p=/zoo|gra/,g=/([,: ])(transform)/g,y=/,\r+?/g,_=/([\t\r\n ])*\f?&/g,b=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,T=/([\s\S]*?);/g,k=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,N=/stretch|:\s*\w+\-(?:conte|avail)/,M=/([^-])(image-set\()/,E=1,I=1,D=0,W=1,X=[],ne=[],re=0,Z=null,R=0,J="";return u.use=s,u.set=c,e!==void 0&&c(e),u}var n3={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};function r3(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var i3=/^((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)-.*))$/,Uy=r3(function(e){return i3.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ih=Ba,a3={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o3={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l3={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qy={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ah={};ah[ih.ForwardRef]=l3,ah[ih.Memo]=qy;function Gy(e){return ih.isMemo(e)?qy:ah[e.$$typeof]||a3}var s3=Object.defineProperty,c3=Object.getOwnPropertyNames,Yy=Object.getOwnPropertySymbols,u3=Object.getOwnPropertyDescriptor,f3=Object.getPrototypeOf,Ky=Object.prototype;function Zy(e,t,n){if(typeof t!="string"){if(Ky){var r=f3(t);r&&r!==Ky&&Zy(e,r,n)}var i=c3(t);Yy&&(i=i.concat(Yy(t)));for(var a=Gy(e),o=Gy(t),l=0;l<i.length;++l){var s=i[l];if(!o3[s]&&!(n&&n[s])&&!(o&&o[s])&&!(a&&a[s])){var c=u3(t,s);try{s3(e,s,c)}catch{}}}}return e}var d3=Zy;const Ft=Ae(d3);function Rr(){return(Rr=Object.assign||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}).apply(this,arguments)}var Xy=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},oh=function(e){return e!==null&&typeof e=="object"&&(e.toString?e.toString():Object.prototype.toString.call(e))==="[object Object]"&&!Ba.typeOf(e)},nc=Object.freeze([]),_i=Object.freeze({});function sl(e){return typeof e=="function"}function lh(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function sh(e){return e&&typeof e.styledComponentId=="string"}var Wa=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ch=typeof window<"u"&&"HTMLElement"in window,h3=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production")),m3=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
42
42
 
43
43
  `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
44
44
 
@@ -82,9 +82,9 @@ Has styled-components' style tag been unmounted or altered by another script?
82
82
  `}:{};function g3(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach(function(i){e=e.replace(/%[a-z]/,i)}),e}function Ra(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw process.env.NODE_ENV==="production"?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(g3.apply(void 0,[m3[e]].concat(n)).trim())}var p3=function(){function e(n){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=n}var t=e.prototype;return t.indexOfGroup=function(n){for(var r=0,i=0;i<n;i++)r+=this.groupSizes[i];return r},t.insertRules=function(n,r){if(n>=this.groupSizes.length){for(var i=this.groupSizes,a=i.length,o=a;n>=o;)(o<<=1)<0&&Ra(16,""+n);this.groupSizes=new Uint32Array(o),this.groupSizes.set(i),this.length=o;for(var l=a;l<o;l++)this.groupSizes[l]=0}for(var s=this.indexOfGroup(n+1),c=0,u=r.length;c<u;c++)this.tag.insertRule(s,r[c])&&(this.groupSizes[n]++,s++)},t.clearGroup=function(n){if(n<this.length){var r=this.groupSizes[n],i=this.indexOfGroup(n),a=i+r;this.groupSizes[n]=0;for(var o=i;o<a;o++)this.tag.deleteRule(i)}},t.getGroup=function(n){var r="";if(n>=this.length||this.groupSizes[n]===0)return r;for(var i=this.groupSizes[n],a=this.indexOfGroup(n),o=a+i,l=a;l<o;l++)r+=this.tag.getRule(l)+`/*!sc*/
83
83
  `;return r},e}(),rc=new Map,ic=new Map,cl=1,ac=function(e){if(rc.has(e))return rc.get(e);for(;ic.has(cl);)cl++;var t=cl++;return process.env.NODE_ENV!=="production"&&((0|t)<0||t>1<<30)&&Ra(16,""+t),rc.set(e,t),ic.set(t,e),t},v3=function(e){return ic.get(e)},y3=function(e,t){t>=cl&&(cl=t+1),rc.set(e,t),ic.set(t,e)},b3="style["+Wa+'][data-styled-version="5.3.11"]',_3=new RegExp("^"+Wa+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),x3=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},S3=function(e,t){for(var n=(t.textContent||"").split(`/*!sc*/
84
84
  `),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var l=o.match(_3);if(l){var s=0|parseInt(l[1],10),c=l[2];s!==0&&(y3(c,s),x3(e,c,l[3]),e.getTag().insertRules(s,r)),r.length=0}else r.push(o)}}},w3=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null},Jy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(l){for(var s=l.childNodes,c=s.length;c>=0;c--){var u=s[c];if(u&&u.nodeType===1&&u.hasAttribute(Wa))return u}}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(Wa,"active"),r.setAttribute("data-styled-version","5.3.11");var o=w3();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},O3=function(){function e(n){var r=this.element=Jy(n);r.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var a=document.styleSheets,o=0,l=a.length;o<l;o++){var s=a[o];if(s.ownerNode===i)return s}Ra(17)}(r),this.length=0}var t=e.prototype;return t.insertRule=function(n,r){try{return this.sheet.insertRule(r,n),this.length++,!0}catch{return!1}},t.deleteRule=function(n){this.sheet.deleteRule(n),this.length--},t.getRule=function(n){var r=this.sheet.cssRules[n];return r!==void 0&&typeof r.cssText=="string"?r.cssText:""},e}(),C3=function(){function e(n){var r=this.element=Jy(n);this.nodes=r.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(n,r){if(n<=this.length&&n>=0){var i=document.createTextNode(r),a=this.nodes[n];return this.element.insertBefore(i,a||null),this.length++,!0}return!1},t.deleteRule=function(n){this.element.removeChild(this.nodes[n]),this.length--},t.getRule=function(n){return n<this.length?this.nodes[n].textContent:""},e}(),A3=function(){function e(n){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(n,r){return n<=this.length&&(this.rules.splice(n,0,r),this.length++,!0)},t.deleteRule=function(n){this.rules.splice(n,1),this.length--},t.getRule=function(n){return n<this.length?this.rules[n]:""},e}(),Qy=ch,T3={isServer:!ch,useCSSOMInjection:!h3},eb=function(){function e(n,r,i){n===void 0&&(n=_i),r===void 0&&(r={}),this.options=Rr({},T3,{},n),this.gs=r,this.names=new Map(i),this.server=!!n.isServer,!this.server&&ch&&Qy&&(Qy=!1,function(a){for(var o=document.querySelectorAll(b3),l=0,s=o.length;l<s;l++){var c=o[l];c&&c.getAttribute(Wa)!=="active"&&(S3(a,c),c.parentNode&&c.parentNode.removeChild(c))}}(this))}e.registerId=function(n){return ac(n)};var t=e.prototype;return t.reconstructWithOptions=function(n,r){return r===void 0&&(r=!0),new e(Rr({},this.options,{},n),this.gs,r&&this.names||void 0)},t.allocateGSInstance=function(n){return this.gs[n]=(this.gs[n]||0)+1},t.getTag=function(){return this.tag||(this.tag=(i=(r=this.options).isServer,a=r.useCSSOMInjection,o=r.target,n=i?new A3(o):a?new O3(o):new C3(o),new p3(n)));var n,r,i,a,o},t.hasNameForId=function(n,r){return this.names.has(n)&&this.names.get(n).has(r)},t.registerName=function(n,r){if(ac(n),this.names.has(n))this.names.get(n).add(r);else{var i=new Set;i.add(r),this.names.set(n,i)}},t.insertRules=function(n,r,i){this.registerName(n,r),this.getTag().insertRules(ac(n),i)},t.clearNames=function(n){this.names.has(n)&&this.names.get(n).clear()},t.clearRules=function(n){this.getTag().clearGroup(ac(n)),this.clearNames(n)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(n){for(var r=n.getTag(),i=r.length,a="",o=0;o<i;o++){var l=v3(o);if(l!==void 0){var s=n.names.get(l),c=r.getGroup(o);if(s&&c&&s.size){var u=Wa+".g"+o+'[id="'+l+'"]',f="";s!==void 0&&s.forEach(function(d){d.length>0&&(f+=d+",")}),a+=""+c+u+'{content:"'+f+`"}/*!sc*/
85
- `}}}return a}(this)},e}(),k3=/(a)(d)/gi,tb=function(e){return String.fromCharCode(e+(e>25?39:97))};function uh(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tb(t%52)+n;return(tb(t%52)+n).replace(k3,"$1-$2")}var Ki=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},nb=function(e){return Ki(5381,e)};function E3(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(sl(n)&&!sh(n))return!1}return!0}var P3=nb("5.3.11"),j3=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&E3(t),this.componentId=n,this.baseHash=Ki(P3,n),this.baseStyle=r,eb.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))a.push(this.staticRulesId);else{var o=Va(this.rules,t,n,r).join(""),l=uh(Ki(this.baseHash,o)>>>0);if(!n.hasNameForId(i,l)){var s=r(o,"."+l,void 0,i);n.insertRules(i,l,s)}a.push(l),this.staticRulesId=l}else{for(var c=this.rules.length,u=Ki(this.baseHash,r.hash),f="",d=0;d<c;d++){var h=this.rules[d];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(u=Ki(u,h+d));else if(h){var p=Va(h,t,n,r),g=Array.isArray(p)?p.join(""):p;u=Ki(u,g+d),f+=g}}if(f){var y=uh(u>>>0);if(!n.hasNameForId(i,y)){var _=r(f,"."+y,void 0,i);n.insertRules(i,y,_)}a.push(y)}}return a.join(" ")},e}(),M3=/^\s*\/\/.*$/gm,D3=[":","[",".","#"];function I3(e){var t,n,r,i,a=e===void 0?_i:e,o=a.options,l=o===void 0?_i:o,s=a.plugins,c=s===void 0?nc:s,u=new t3(l),f=[],d=function(g){function y(_){if(_)try{g(_+"}")}catch{}}return function(_,b,S,O,w,A,T,k,P,N){switch(_){case 1:if(P===0&&b.charCodeAt(0)===64)return g(b+";"),"";break;case 2:if(k===0)return b+"/*|*/";break;case 3:switch(k){case 102:case 112:return g(S[0]+b),"";default:return b+(N===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(y)}}}(function(g){f.push(g)}),h=function(g,y,_){return y===0&&D3.indexOf(_[n.length])!==-1||_.match(i)?g:"."+t};function p(g,y,_,b){b===void 0&&(b="&");var S=g.replace(M3,""),O=y&&_?_+" "+y+" { "+S+" }":S;return t=b,n=y,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(_||!y?"":y,O)}return u.use([].concat(c,[function(g,y,_){g===2&&_.length&&_[0].lastIndexOf(n)>0&&(_[0]=_[0].replace(r,h))},d,function(g){if(g===-2){var y=f;return f=[],y}}])),p.hash=c.length?c.reduce(function(g,y){return y.name||Ra(15),Ki(g,y.name)},5381).toString():"",p}var rb=x.createContext();rb.Consumer;var ib=x.createContext(),L3=(ib.Consumer,new eb),fh=I3();function $3(){return x.useContext(rb)||L3}function F3(){return x.useContext(ib)||fh}var ab=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=fh);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Ra(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=fh),this.name+t.hash},e}(),N3=/([A-Z])/,z3=/([A-Z])/g,B3=/^ms-/,W3=function(e){return"-"+e.toLowerCase()};function ob(e){return N3.test(e)?e.replace(z3,W3).replace(B3,"-ms-"):e}var lb=function(e){return e==null||e===!1||e===""};function Va(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,l=e.length;o<l;o+=1)(i=Va(e[o],t,n,r))!==""&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(lb(e))return"";if(sh(e))return"."+e.styledComponentId;if(sl(e)){if(typeof(c=e)!="function"||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return process.env.NODE_ENV!=="production"&&Ba.isElement(s)&&console.warn(lh(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Va(s,t,n,r)}var c;return e instanceof ab?n?(e.inject(n,r),e.getName(r)):e:oh(e)?function u(f,d){var h,p,g=[];for(var y in f)f.hasOwnProperty(y)&&!lb(f[y])&&(Array.isArray(f[y])&&f[y].isCss||sl(f[y])?g.push(ob(y)+":",f[y],";"):oh(f[y])?g.push.apply(g,u(f[y],y)):g.push(ob(y)+": "+(h=y,(p=f[y])==null||typeof p=="boolean"||p===""?"":typeof p!="number"||p===0||h in n3||h.startsWith("--")?String(p).trim():p+"px")+";"));return d?[d+" {"].concat(g,["}"]):g}(e):e.toString()}var sb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function cb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return sl(e)||oh(e)?sb(Va(Xy(nc,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:sb(Va(Xy(e,n)))}var ub=/invalid hook call/i,oc=new Set,R3=function(e,t){if(process.env.NODE_ENV!=="production"){var n="The component "+e+(t?' with the id of "'+t+'"':"")+` has been created dynamically.
85
+ `}}}return a}(this)},e}(),k3=/(a)(d)/gi,tb=function(e){return String.fromCharCode(e+(e>25?39:97))};function uh(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=tb(t%52)+n;return(tb(t%52)+n).replace(k3,"$1-$2")}var Ki=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},nb=function(e){return Ki(5381,e)};function E3(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(sl(n)&&!sh(n))return!1}return!0}var P3=nb("5.3.11"),j3=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&E3(t),this.componentId=n,this.baseHash=Ki(P3,n),this.baseStyle=r,eb.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.componentId,a=[];if(this.baseStyle&&a.push(this.baseStyle.generateAndInjectStyles(t,n,r)),this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(i,this.staticRulesId))a.push(this.staticRulesId);else{var o=Va(this.rules,t,n,r).join(""),l=uh(Ki(this.baseHash,o)>>>0);if(!n.hasNameForId(i,l)){var s=r(o,"."+l,void 0,i);n.insertRules(i,l,s)}a.push(l),this.staticRulesId=l}else{for(var c=this.rules.length,u=Ki(this.baseHash,r.hash),f="",d=0;d<c;d++){var h=this.rules[d];if(typeof h=="string")f+=h,process.env.NODE_ENV!=="production"&&(u=Ki(u,h+d));else if(h){var p=Va(h,t,n,r),g=Array.isArray(p)?p.join(""):p;u=Ki(u,g+d),f+=g}}if(f){var y=uh(u>>>0);if(!n.hasNameForId(i,y)){var _=r(f,"."+y,void 0,i);n.insertRules(i,y,_)}a.push(y)}}return a.join(" ")},e}(),M3=/^\s*\/\/.*$/gm,D3=[":","[",".","#"];function I3(e){var t,n,r,i,a=e===void 0?_i:e,o=a.options,l=o===void 0?_i:o,s=a.plugins,c=s===void 0?nc:s,u=new t3(l),f=[],d=function(g){function y(_){if(_)try{g(_+"}")}catch{}}return function(_,b,S,O,w,A,T,k,j,N){switch(_){case 1:if(j===0&&b.charCodeAt(0)===64)return g(b+";"),"";break;case 2:if(k===0)return b+"/*|*/";break;case 3:switch(k){case 102:case 112:return g(S[0]+b),"";default:return b+(N===0?"/*|*/":"")}case-2:b.split("/*|*/}").forEach(y)}}}(function(g){f.push(g)}),h=function(g,y,_){return y===0&&D3.indexOf(_[n.length])!==-1||_.match(i)?g:"."+t};function p(g,y,_,b){b===void 0&&(b="&");var S=g.replace(M3,""),O=y&&_?_+" "+y+" { "+S+" }":S;return t=b,n=y,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),u(_||!y?"":y,O)}return u.use([].concat(c,[function(g,y,_){g===2&&_.length&&_[0].lastIndexOf(n)>0&&(_[0]=_[0].replace(r,h))},d,function(g){if(g===-2){var y=f;return f=[],y}}])),p.hash=c.length?c.reduce(function(g,y){return y.name||Ra(15),Ki(g,y.name)},5381).toString():"",p}var rb=x.createContext();rb.Consumer;var ib=x.createContext(),L3=(ib.Consumer,new eb),fh=I3();function $3(){return x.useContext(rb)||L3}function F3(){return x.useContext(ib)||fh}var ab=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=fh);var o=r.name+a.hash;i.hasNameForId(r.id,o)||i.insertRules(r.id,o,a(r.rules,o,"@keyframes"))},this.toString=function(){return Ra(12,String(r.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=n}return e.prototype.getName=function(t){return t===void 0&&(t=fh),this.name+t.hash},e}(),N3=/([A-Z])/,z3=/([A-Z])/g,B3=/^ms-/,W3=function(e){return"-"+e.toLowerCase()};function ob(e){return N3.test(e)?e.replace(z3,W3).replace(B3,"-ms-"):e}var lb=function(e){return e==null||e===!1||e===""};function Va(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,l=e.length;o<l;o+=1)(i=Va(e[o],t,n,r))!==""&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}if(lb(e))return"";if(sh(e))return"."+e.styledComponentId;if(sl(e)){if(typeof(c=e)!="function"||c.prototype&&c.prototype.isReactComponent||!t)return e;var s=e(t);return process.env.NODE_ENV!=="production"&&Ba.isElement(s)&&console.warn(lh(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),Va(s,t,n,r)}var c;return e instanceof ab?n?(e.inject(n,r),e.getName(r)):e:oh(e)?function u(f,d){var h,p,g=[];for(var y in f)f.hasOwnProperty(y)&&!lb(f[y])&&(Array.isArray(f[y])&&f[y].isCss||sl(f[y])?g.push(ob(y)+":",f[y],";"):oh(f[y])?g.push.apply(g,u(f[y],y)):g.push(ob(y)+": "+(h=y,(p=f[y])==null||typeof p=="boolean"||p===""?"":typeof p!="number"||p===0||h in n3||h.startsWith("--")?String(p).trim():p+"px")+";"));return d?[d+" {"].concat(g,["}"]):g}(e):e.toString()}var sb=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function cb(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return sl(e)||oh(e)?sb(Va(Xy(nc,[e].concat(n)))):n.length===0&&e.length===1&&typeof e[0]=="string"?e:sb(Va(Xy(e,n)))}var ub=/invalid hook call/i,oc=new Set,R3=function(e,t){if(process.env.NODE_ENV!=="production"){var n="The component "+e+(t?' with the id of "'+t+'"':"")+` has been created dynamically.
86
86
  You may see this warning because you've called styled inside another component.
87
- To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var i=!0;console.error=function(a){if(ub.test(a))i=!1,oc.delete(n);else{for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];r.apply(void 0,[a].concat(l))}},x.useRef(),i&&!oc.has(n)&&(console.warn(n),oc.add(n))}catch(a){ub.test(a.message)&&oc.delete(n)}finally{console.error=r}}},V3=function(e,t,n){return n===void 0&&(n=_i),e.theme!==n.theme&&e.theme||t||n.theme},H3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,U3=/(^-|-$)/g;function dh(e){return e.replace(H3,"-").replace(U3,"")}var fb=function(e){return uh(nb(e)>>>0)};function lc(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var hh=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},q3=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function G3(e,t,n){var r=e[n];hh(t)&&hh(r)?db(r,t):e[n]=t}function db(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(hh(o))for(var l in o)q3(l)&&G3(e,o[l],l)}return e}var hb=x.createContext();hb.Consumer;var mh={};function mb(e,t,n){var r=sh(e),i=!lc(e),a=t.attrs,o=a===void 0?nc:a,l=t.componentId,s=l===void 0?function(b,S){var O=typeof b!="string"?"sc":dh(b);mh[O]=(mh[O]||0)+1;var w=O+"-"+fb("5.3.11"+O+mh[O]);return S?S+"-"+w:w}(t.displayName,t.parentComponentId):l,c=t.displayName,u=c===void 0?function(b){return lc(b)?"styled."+b:"Styled("+lh(b)+")"}(e):c,f=t.displayName&&t.componentId?dh(t.displayName)+"-"+t.componentId:t.componentId||s,d=r&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(b,S,O){return e.shouldForwardProp(b,S,O)&&t.shouldForwardProp(b,S,O)}:e.shouldForwardProp);var p,g=new j3(n,f,r?e.componentStyle:void 0),y=g.isStatic&&o.length===0,_=function(b,S){return function(O,w,A,T){var k=O.attrs,P=O.componentStyle,N=O.defaultProps,M=O.foldedComponentIds,j=O.shouldForwardProp,D=O.styledComponentId,I=O.target,W=function(ie,z,se){ie===void 0&&(ie=_i);var K=Rr({},z,{theme:ie}),Q={};return se.forEach(function(te){var ce,L,xe,Se=te;for(ce in sl(Se)&&(Se=Se(K)),Se)K[ce]=Q[ce]=ce==="className"?(L=Q[ce],xe=Se[ce],L&&xe?L+" "+xe:L||xe):Se[ce]}),[K,Q]}(V3(w,x.useContext(hb),N)||_i,w,k),X=W[0],ne=W[1],re=function(ie,z,se,K){var Q=$3(),te=F3(),ce=z?ie.generateAndInjectStyles(_i,Q,te):ie.generateAndInjectStyles(se,Q,te);return process.env.NODE_ENV!=="production"&&!z&&K&&K(ce),ce}(P,T,X,process.env.NODE_ENV!=="production"?O.warnTooManyClasses:void 0),Z=A,R=ne.$as||w.$as||ne.as||w.as||I,J=lc(R),U=ne!==w?Rr({},w,{},ne):w,Y={};for(var G in U)G[0]!=="$"&&G!=="as"&&(G==="forwardedAs"?Y.as=U[G]:(j?j(G,Uy,R):!J||Uy(G))&&(Y[G]=U[G]));return w.style&&ne.style!==w.style&&(Y.style=Rr({},w.style,{},ne.style)),Y.className=Array.prototype.concat(M,D,re!==D?re:null,w.className,ne.className).filter(Boolean).join(" "),Y.ref=Z,x.createElement(R,Y)}(p,b,S,y)};return _.displayName=u,(p=x.forwardRef(_)).attrs=d,p.componentStyle=g,p.displayName=u,p.shouldForwardProp=h,p.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):nc,p.styledComponentId=f,p.target=r?e.target:e,p.withComponent=function(b){var S=t.componentId,O=function(A,T){if(A==null)return{};var k,P,N={},M=Object.keys(A);for(P=0;P<M.length;P++)k=M[P],T.indexOf(k)>=0||(N[k]=A[k]);return N}(t,["componentId"]),w=S&&S+"-"+(lc(b)?b:dh(lh(b)));return mb(b,Rr({},O,{attrs:d,componentId:w}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?db({},e.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(R3(u,f),p.warnTooManyClasses=function(b,S){var O={},w=!1;return function(A){if(!w&&(O[A]=!0,Object.keys(O).length>=200)){var T=S?' with the id of "'+S+'"':"";console.warn("Over 200 classes were generated for component "+b+T+`.
87
+ To resolve this only create new StyledComponents outside of any render method and function component.`,r=console.error;try{var i=!0;console.error=function(a){if(ub.test(a))i=!1,oc.delete(n);else{for(var o=arguments.length,l=new Array(o>1?o-1:0),s=1;s<o;s++)l[s-1]=arguments[s];r.apply(void 0,[a].concat(l))}},x.useRef(),i&&!oc.has(n)&&(console.warn(n),oc.add(n))}catch(a){ub.test(a.message)&&oc.delete(n)}finally{console.error=r}}},V3=function(e,t,n){return n===void 0&&(n=_i),e.theme!==n.theme&&e.theme||t||n.theme},H3=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,U3=/(^-|-$)/g;function dh(e){return e.replace(H3,"-").replace(U3,"")}var fb=function(e){return uh(nb(e)>>>0)};function lc(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var hh=function(e){return typeof e=="function"||typeof e=="object"&&e!==null&&!Array.isArray(e)},q3=function(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"};function G3(e,t,n){var r=e[n];hh(t)&&hh(r)?db(r,t):e[n]=t}function db(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(hh(o))for(var l in o)q3(l)&&G3(e,o[l],l)}return e}var hb=x.createContext();hb.Consumer;var mh={};function mb(e,t,n){var r=sh(e),i=!lc(e),a=t.attrs,o=a===void 0?nc:a,l=t.componentId,s=l===void 0?function(b,S){var O=typeof b!="string"?"sc":dh(b);mh[O]=(mh[O]||0)+1;var w=O+"-"+fb("5.3.11"+O+mh[O]);return S?S+"-"+w:w}(t.displayName,t.parentComponentId):l,c=t.displayName,u=c===void 0?function(b){return lc(b)?"styled."+b:"Styled("+lh(b)+")"}(e):c,f=t.displayName&&t.componentId?dh(t.displayName)+"-"+t.componentId:t.componentId||s,d=r&&e.attrs?Array.prototype.concat(e.attrs,o).filter(Boolean):o,h=t.shouldForwardProp;r&&e.shouldForwardProp&&(h=t.shouldForwardProp?function(b,S,O){return e.shouldForwardProp(b,S,O)&&t.shouldForwardProp(b,S,O)}:e.shouldForwardProp);var p,g=new j3(n,f,r?e.componentStyle:void 0),y=g.isStatic&&o.length===0,_=function(b,S){return function(O,w,A,T){var k=O.attrs,j=O.componentStyle,N=O.defaultProps,M=O.foldedComponentIds,E=O.shouldForwardProp,I=O.styledComponentId,D=O.target,W=function(ie,z,se){ie===void 0&&(ie=_i);var K=Rr({},z,{theme:ie}),Q={};return se.forEach(function(te){var ce,L,xe,Se=te;for(ce in sl(Se)&&(Se=Se(K)),Se)K[ce]=Q[ce]=ce==="className"?(L=Q[ce],xe=Se[ce],L&&xe?L+" "+xe:L||xe):Se[ce]}),[K,Q]}(V3(w,x.useContext(hb),N)||_i,w,k),X=W[0],ne=W[1],re=function(ie,z,se,K){var Q=$3(),te=F3(),ce=z?ie.generateAndInjectStyles(_i,Q,te):ie.generateAndInjectStyles(se,Q,te);return process.env.NODE_ENV!=="production"&&!z&&K&&K(ce),ce}(j,T,X,process.env.NODE_ENV!=="production"?O.warnTooManyClasses:void 0),Z=A,R=ne.$as||w.$as||ne.as||w.as||D,J=lc(R),U=ne!==w?Rr({},w,{},ne):w,Y={};for(var G in U)G[0]!=="$"&&G!=="as"&&(G==="forwardedAs"?Y.as=U[G]:(E?E(G,Uy,R):!J||Uy(G))&&(Y[G]=U[G]));return w.style&&ne.style!==w.style&&(Y.style=Rr({},w.style,{},ne.style)),Y.className=Array.prototype.concat(M,I,re!==I?re:null,w.className,ne.className).filter(Boolean).join(" "),Y.ref=Z,x.createElement(R,Y)}(p,b,S,y)};return _.displayName=u,(p=x.forwardRef(_)).attrs=d,p.componentStyle=g,p.displayName=u,p.shouldForwardProp=h,p.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):nc,p.styledComponentId=f,p.target=r?e.target:e,p.withComponent=function(b){var S=t.componentId,O=function(A,T){if(A==null)return{};var k,j,N={},M=Object.keys(A);for(j=0;j<M.length;j++)k=M[j],T.indexOf(k)>=0||(N[k]=A[k]);return N}(t,["componentId"]),w=S&&S+"-"+(lc(b)?b:dh(lh(b)));return mb(b,Rr({},O,{attrs:d,componentId:w}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(b){this._foldedDefaultProps=r?db({},e.defaultProps,b):b}}),process.env.NODE_ENV!=="production"&&(R3(u,f),p.warnTooManyClasses=function(b,S){var O={},w=!1;return function(A){if(!w&&(O[A]=!0,Object.keys(O).length>=200)){var T=S?' with the id of "'+S+'"':"";console.warn("Over 200 classes were generated for component "+b+T+`.
88
88
  Consider using the attrs method, together with a style object for frequently changed styles.
89
89
  Example:
90
90
  const Component = styled.div.attrs(props => ({
@@ -107,16 +107,16 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
107
107
  margin-left: 16px;
108
108
  margin-right: 16px;
109
109
  margin-bottom: 16px;
110
- `;function ph(e){const{icon:t,iconOnly:n,isDisabled:r,label:i,onOpen:a,position:o,selectedItem:l,selectedItems:s,tooltip:c,variant:u}=e;let{actions:f}=e;f=f.filter(k=>!yb(k,l)),f=Q3(f);const[d,h]=x.useState(!1),p=x.useMemo(()=>!f.every(k=>!("selection"in k)||k.selection!==ot.Multiple),[f]),g=x.useMemo(()=>f.find(k=>k.type!==kt.Seperator&&k.icon!==void 0)!==void 0,[f]),y=x.useMemo(()=>f.find(k=>k.type!==kt.Seperator&&k.type===kt.Switch)!==void 0,[f]);x.useEffect(()=>{a==null||a(i??"default",d)},[d,i,a,e]);const _=br(e.label??"actions-dropdown");if(f.length===0)return v.jsx(v.Fragment,{});const b=t,S=b?v.jsx(b,{}):i,O=u===C.ButtonVariant.primary||p&&!!(s!=null&&s.length),w=u===C.ButtonVariant.primary&&!p&&!!(s!=null&&s.length),A=i||b?v.jsx(C.DropdownToggle,{id:"toggle-dropdown",isDisabled:!!r,onToggle:()=>h(!d),toggleVariant:w?"secondary":O?"primary":void 0,toggleIndicator:b&&n?null:void 0,style:O&&!i?{color:"var(--pf-global--Color--light-100)"}:{},icon:b?v.jsx("div",{children:v.jsx(b,{})}):void 0,ouiaId:_,"data-cy":_,children:n?void 0:i}):v.jsx(C.KebabToggle,{className:"toggle-kebab",isDisabled:!!r,onToggle:()=>h(!d),toggleVariant:O?"primary":void 0,style:O&&!i?{color:"var(--pf-global--Color--light-100)"}:{},ouiaId:_,"data-cy":_,children:S}),T=v.jsx(C.Dropdown,{onSelect:()=>h(!1),toggle:A,isOpen:d,isPlain:!i||n,dropdownItems:f.map((k,P)=>v.jsx(J3,{action:k,selectedItems:s??[],selectedItem:l,hasIcons:g,hasSwitches:y,index:P,"data-cy":_},"label"in k?k.label:`action-${P}`)),position:o,style:{zIndex:d?400:void 0}});return c&&(n||r)?v.jsx(C.Tooltip,{content:c,trigger:c?void 0:"manual",children:T}):{...T}}function J3(e){const{action:t,selectedItems:n,selectedItem:r,hasIcons:i,hasSwitches:a,index:o}=e,s=ul()(t,r,n);switch(t.type){case kt.Button:{let c=t.icon;!c&&i&&(c=_b);let u=s??t.tooltip,f=!!s;return t.selection===ot.Multiple&&!n.length&&(u="No selections",f=!0),v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx(Z3,{hasSwitches:a,isDanger:!!t.isDanger,children:v.jsx(C.DropdownItem,{icon:c?v.jsx(K3,{children:v.jsx(c,{})}):void 0,onClick:()=>{switch(t.selection){case ot.None:t.onClick();break;case ot.Single:r&&t.onClick(r);break;case ot.Multiple:n&&t.onClick(n);break}},isAriaDisabled:f,id:br(t),ouiaId:br(t),"data-cy":br(t),children:t.label})})},t.label)}case kt.Link:{let c=t.icon;!c&&i&&(c=_b);const u=s||t.tooltip;let f;switch(t.selection){case ot.None:f=t.href;break;case ot.Single:r?f=t.href(r):f="";break;default:f="";break}return v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx($t.Link,{...e,to:f,children:v.jsx(C.DropdownItem,{isAriaDisabled:!!s,icon:c?v.jsx("span",{style:{paddingRight:4},children:v.jsx(c,{})}):void 0,style:{color:t.isDanger&&!s?"var(--pf-global--danger-color--100)":void 0},children:t.label})})},t.label)}case kt.Switch:return v.jsx(X3,{children:v.jsx(bb,{action:t,selectedItem:r})});case kt.Dropdown:{const c=t.label;return v.jsx(ph,{label:t.label,actions:t.actions,selectedItem:r,selectedItems:n,isDisabled:s,tooltip:c},t.label)}case kt.Seperator:return v.jsx(C.DropdownSeparator,{},`separator-${o}`)}}const _b=()=>v.jsx(Ce.CircleIcon,{style:{opacity:0}});function Q3(e){let t=[...e];for(;t.length>0&&t[0].type===kt.Seperator;)t.shift();for(;t.length>0&&t[t.length-1].type===kt.Seperator;)t.pop();return t=ej(t),t}function ej(e){const t=[];let n;for(const r of e)r.type===kt.Seperator?(!n||n.type!==kt.Seperator)&&t.push(r):t.push(r),n=r;return t}const tj=Le.span`
110
+ `;function ph(e){const{icon:t,iconOnly:n,isDisabled:r,label:i,onOpen:a,position:o,selectedItem:l,selectedItems:s,tooltip:c,variant:u}=e;let{actions:f}=e;f=f.filter(k=>!yb(k,l)),f=Q3(f);const[d,h]=x.useState(!1),p=x.useMemo(()=>!f.every(k=>!("selection"in k)||k.selection!==ot.Multiple),[f]),g=x.useMemo(()=>f.find(k=>k.type!==kt.Seperator&&k.icon!==void 0)!==void 0,[f]),y=x.useMemo(()=>f.find(k=>k.type!==kt.Seperator&&k.type===kt.Switch)!==void 0,[f]);x.useEffect(()=>{a==null||a(i??"default",d)},[d,i,a,e]);const _=br(e.label??"actions-dropdown");if(f.length===0)return v.jsx(v.Fragment,{});const b=t,S=b?v.jsx(b,{}):i,O=u===C.ButtonVariant.primary||p&&!!(s!=null&&s.length),w=u===C.ButtonVariant.primary&&!p&&!!(s!=null&&s.length),A=i||b?v.jsx(C.DropdownToggle,{id:"toggle-dropdown",isDisabled:!!r,onToggle:()=>h(!d),toggleVariant:w?"secondary":O?"primary":void 0,toggleIndicator:b&&n?null:void 0,style:O&&!i?{color:"var(--pf-global--Color--light-100)"}:{},icon:b?v.jsx("div",{children:v.jsx(b,{})}):void 0,ouiaId:_,"data-cy":_,children:n?void 0:i}):v.jsx(C.KebabToggle,{className:"toggle-kebab",isDisabled:!!r,onToggle:()=>h(!d),toggleVariant:O?"primary":void 0,style:O&&!i?{color:"var(--pf-global--Color--light-100)"}:{},ouiaId:_,"data-cy":_,children:S}),T=v.jsx(C.Dropdown,{onSelect:()=>h(!1),toggle:A,isOpen:d,isPlain:!i||n,dropdownItems:f.map((k,j)=>v.jsx(J3,{action:k,selectedItems:s??[],selectedItem:l,hasIcons:g,hasSwitches:y,index:j,"data-cy":_},"label"in k?k.label:`action-${j}`)),position:o,style:{zIndex:d?400:void 0}});return c&&(n||r)?v.jsx(C.Tooltip,{content:c,trigger:c?void 0:"manual",children:T}):{...T}}function J3(e){const{action:t,selectedItems:n,selectedItem:r,hasIcons:i,hasSwitches:a,index:o}=e,s=ul()(t,r,n);switch(t.type){case kt.Button:{let c=t.icon;!c&&i&&(c=_b);let u=s??t.tooltip,f=!!s;return t.selection===ot.Multiple&&!n.length&&(u="No selections",f=!0),v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx(Z3,{hasSwitches:a,isDanger:!!t.isDanger,children:v.jsx(C.DropdownItem,{icon:c?v.jsx(K3,{children:v.jsx(c,{})}):void 0,onClick:()=>{switch(t.selection){case ot.None:t.onClick();break;case ot.Single:r&&t.onClick(r);break;case ot.Multiple:n&&t.onClick(n);break}},isAriaDisabled:f,id:br(t),ouiaId:br(t),"data-cy":br(t),children:t.label})})},t.label)}case kt.Link:{let c=t.icon;!c&&i&&(c=_b);const u=s||t.tooltip;let f;switch(t.selection){case ot.None:f=t.href;break;case ot.Single:r?f=t.href(r):f="";break;default:f="";break}return v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx($t.Link,{...e,to:f,children:v.jsx(C.DropdownItem,{isAriaDisabled:!!s,icon:c?v.jsx("span",{style:{paddingRight:4},children:v.jsx(c,{})}):void 0,style:{color:t.isDanger&&!s?"var(--pf-global--danger-color--100)":void 0},children:t.label})})},t.label)}case kt.Switch:return v.jsx(X3,{children:v.jsx(bb,{action:t,selectedItem:r})});case kt.Dropdown:{const c=t.label;return v.jsx(ph,{label:t.label,actions:t.actions,selectedItem:r,selectedItems:n,isDisabled:s,tooltip:c},t.label)}case kt.Seperator:return v.jsx(C.DropdownSeparator,{},`separator-${o}`)}}const _b=()=>v.jsx(Ce.CircleIcon,{style:{opacity:0}});function Q3(e){let t=[...e];for(;t.length>0&&t[0].type===kt.Seperator;)t.shift();for(;t.length>0&&t[t.length-1].type===kt.Seperator;)t.pop();return t=ej(t),t}function ej(e){const t=[];let n;for(const r of e)r.type===kt.Seperator?(!n||n.type!==kt.Seperator)&&t.push(r):t.push(r),n=r;return t}const tj=Le.span`
111
111
  padding-right: 4px;
112
112
  `;function nj(e){const{action:t,isSecondary:n,wrapper:r,iconOnly:i,selectedItem:a,selectedItems:o}=e,s=ul()(t,a,o),c=r??x.Fragment,u=t.icon,f=s||(t.tooltip?t.tooltip:i?t.label:void 0);let d=t.variant??C.ButtonVariant.secondary;n&&[C.ButtonVariant.primary,C.ButtonVariant.danger].includes(d)&&(d=C.ButtonVariant.secondary),d===C.ButtonVariant.primary&&t.isDanger&&(d=C.ButtonVariant.danger),i&&(d=C.ButtonVariant.plain);const h=Ha(t),p=i&&u?v.jsx(u,{}):t.label;return v.jsx(c,{children:v.jsx(C.Tooltip,{content:f,trigger:f?void 0:"manual",children:v.jsx(C.Button,{id:h,"data-cy":h,variant:d,isDanger:t.isDanger,icon:u?v.jsx(tj,{children:v.jsx(u,{})}):void 0,isAriaDisabled:!!s,onClick:()=>{switch(t.selection){case ot.None:t.onClick();break;case ot.Single:a&&t.onClick(a);break;case ot.Multiple:o&&t.onClick(o);break}},"aria-label":i?t.label:"",ouiaId:h,children:p})})})}const rj=Le.span`
113
113
  padding-right: 4px;
114
- `;function ij(e){const{action:t,wrapper:n,iconOnly:r,selectedItem:i,selectedItems:a}=e,l=ul()(t,i,a),s=n??x.Fragment,c=t.icon,u=l||(t.tooltip?t.tooltip:r?t.label:void 0),f=Ha(t),d=r&&c?v.jsx(c,{}):t.label;let h;switch(t.selection){case ot.None:h=t.href;break;case ot.Single:i?h=t.href(i):h="";break;default:h="";break}return v.jsx(s,{children:v.jsx(C.Button,{id:f,isDanger:t.isDanger,icon:c?v.jsx(rj,{children:v.jsx(c,{})}):void 0,isAriaDisabled:!!l,component:p=>v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx($t.Link,{...p,to:h})}),variant:r?"plain":void 0,ouiaId:f,"data-cy":f,children:r&&c?v.jsx(c,{}):d})})}function aj(e){const{actions:t,selectedItems:n,selectedItem:r,wrapper:i,iconOnly:a,onOpen:o}=e;return t.length===0?v.jsx(v.Fragment,{}):v.jsx(C.Split,{hasGutter:!a,style:{alignItems:"baseline"},children:t.map((l,s)=>v.jsx(oj,{action:l,selectedItem:r,selectedItems:n,wrapper:i,iconOnly:a,onOpen:o},s))})}function oj(e){const{action:t,selectedItems:n,selectedItem:r,wrapper:i,onOpen:a}=e,o=ul();switch(t.type){case kt.Seperator:return v.jsx(v.Fragment,{});case kt.Button:return v.jsx(nj,{action:t,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,wrapper:i});case kt.Link:return v.jsx(ij,{action:t,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,wrapper:i});case kt.Switch:return v.jsx(bb,{action:t,selectedItem:r,wrapper:i,iconOnly:e.iconOnly});case kt.Dropdown:{const l=o(t,r,n),s=l||(t.tooltip?t.tooltip:t.label);return v.jsx(ph,{icon:t.icon,label:t.label,actions:t.actions,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,position:C.DropdownPosition.right,tooltip:s,isDisabled:l,variant:t.variant,onOpen:a})}}}function Ua(e){const{actions:t,selectedItem:n,iconOnly:r,onOpen:i}=e,a=cn(e.collapse!=="never"&&e.collapse!=="always"?e.collapse??"lg":"lg"),o=e.collapse!=="never"&&(e.collapse==="always"||!a),l=x.useMemo(()=>t.filter(h=>!yb(h,n)),[t,n]),s=x.useMemo(()=>o?[]:l==null?void 0:l.filter(xb),[o,l]),c=x.useMemo(()=>o?l:(l==null?void 0:l.filter(h=>!xb(h)))??[],[o,l]),[u,f]=x.useState({});x.useEffect(()=>{Object.values(u).find(h=>h)?i==null||i(!0):i==null||i(!1)},[i,u]);const d=x.useCallback((h,p)=>{f(g=>(g[h]!==p&&(g={...g},g[h]=p),g))},[]);return v.jsxs(C.Flex,{flexWrap:{default:"nowrap"},spaceItems:{default:r?"spaceItemsNone":"spaceItemsMd"},justifyContent:{default:"justifyContentFlexEnd"},children:[s!==void 0&&s.length>0&&v.jsx(C.FlexItem,{children:v.jsx(aj,{...e,actions:s,onOpen:d})}),c.length>0&&v.jsx(C.FlexItem,{children:v.jsx(ph,{...e,actions:c,onOpen:d})})]})}function xb(e){return"isPinned"in e&&e.isPinned}const vh=x.createContext({addAlert:()=>null,removeAlert:()=>null,replaceAlert:()=>null,removeAlerts:()=>null});function yh(){return x.useContext(vh)}function Sb(e){const[t,n]=x.useState([]),[r]=x.useState(()=>{function i(s){n(c=>s?c.filter(s):[])}function a(s){n(c=>c.filter(u=>u!==s))}function o(s){Number.isInteger(s.timeout)&&(setTimeout(()=>a(s),s.timeout),delete s.timeout),n(c=>{const u=c.findIndex(f=>f===s);if(u!==-1){const f=[...c];return f[u]=s,f}else return[...c,s]})}function l(s,c){n(u=>{const f=u.findIndex(d=>d===s);if(f!==-1){Number.isInteger(c.timeout)&&(setTimeout(()=>a(c),c.timeout),delete c.timeout);const d=[...u];return d[f]=c,d}return u})}return{addAlert:o,removeAlert:a,removeAlerts:i,replaceAlert:l}});return v.jsxs(vh.Provider,{value:r,children:[v.jsx(C.AlertGroup,{isToast:!0,isLiveRegion:!0,children:t.map((i,a)=>x.createElement(C.Alert,{...i,key:i.key??i.id??a,actionClose:v.jsx(C.AlertActionCloseButton,{onClose:()=>r.removeAlert(i)})}))}),e.children]})}function lj(e){return e instanceof Error?{title:e.message,variant:"danger",timeout:2e3}:{title:"Unknown",variant:"danger",timeout:2e3}}class wb extends x.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}render(){return this.state.hasError?v.jsx("h1",{children:this.props.message}):this.props.children}}function Ob(e){const t=cn("xxl")&&e.disablePadding!==!0,[n]=mt();return v.jsx(wb,{message:n.errorText,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:"var(--pf-c-page__main-section--BackgroundColor)",...e.style},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",margin:t?24:0,overflow:"hidden",border:t?"thin solid var(--pf-global--BorderColor--100)":void 0,backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:e.children})})})}function sj(e){const{bytes:t}=e;if(!+t)return v.jsx(v.Fragment,{});const n=1024,r=e.decimals?e.decimals:0,i=r<0?0:r,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(t)/Math.log(n));return v.jsx(v.Fragment,{children:`${parseFloat((t/Math.pow(n,o)).toFixed(i))} ${a[o]}`})}const cj=x.createContext(void 0),uj=x.createContext(()=>null),Cb=x.createContext([void 0,()=>alert("Use PageDialogProvider")]);function Ab(e){const t=x.useState();return v.jsxs(Cb.Provider,{value:t,children:[t[0]!==void 0&&t[0],e.children]})}function _r(){return x.useContext(Cb)}function ze(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qa(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{c(r.next(u))}catch(f){o(f)}}function s(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})}function Ga(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(c){return function(u){return s([c,u])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Tb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function kb(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function We(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const a=We(...r);a&&t.push(a)}else if(i==="object")for(const a in r)n.call(r,a)&&r[a]&&t.push(a)}),t.join(" ")}const S1e="",$e={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let fj=0;class bh extends F.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${fj++}`}render(){return this.props.children(this.id)}}bh.displayName="GenerateId",bh.defaultProps={prefix:"pf-random-id-"};const dj="*";let hj=0;const Eb="OUIA-Generated-",_h={};function xh(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}function Sh(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,_h[n]||(_h[n]=0),`${Eb}${e}-${t?`${t}-`:""}${++_h[n]}`}catch{return`${Eb}${e}-${t?`${t}-`:""}${++hj}`}}const Ya=!!(typeof window<"u"&&window.document&&window.document.createElement);function fl(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function xr(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function wh(e){const t=xr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dl(e){const t=xr(e).Element;return e instanceof t||e instanceof Element}function Sr(e){const t=xr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gj(e){return e===xr(e)||!Sr(e)?wh(e):mj(e)}function er(e){return e?(e.nodeName||"").toLowerCase():null}function Vr(e){return(dl(e)?e.ownerDocument:e.document).documentElement}function Oh(e){return fl(Vr(e)).left+wh(e).scrollLeft}function Hr(e){return xr(e).getComputedStyle(e)}function Ch(e){const{overflow:t,overflowX:n,overflowY:r}=Hr(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function pj(e,t,n=!1){const r=Vr(t),i=fl(e),a=Sr(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&((er(t)!=="body"||Ch(r))&&(o=gj(t)),Sr(t)?(l=fl(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Oh(r))),{x:i.left+o.scrollLeft-l.x,y:i.top+o.scrollTop-l.y,width:i.width,height:i.height}}function Ah(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function sc(e){return er(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Vr(e)}function Pb(e){return["html","body","#document"].indexOf(er(e))>=0?e.ownerDocument.body:Sr(e)&&Ch(e)?e:Pb(sc(e))}function hl(e,t=[]){const n=Pb(e),r=er(n)==="body",i=xr(n),a=r?[i].concat(i.visualViewport||[],Ch(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(hl(sc(a)))}function vj(e){return["table","td","th"].indexOf(er(e))>=0}function jb(e){if(!Sr(e)||Hr(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Vr(t);if(er(t)==="body"&&Hr(t).position==="static"&&Hr(n).position!=="static")return n}return t}function yj(e){let t=sc(e);for(;Sr(t)&&["html","body"].indexOf(er(t))<0;){const n=Hr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function ml(e){const t=xr(e);let n=jb(e);for(;n&&vj(n)&&Hr(n).position==="static";)n=jb(n);return n&&er(n)==="body"&&Hr(n).position==="static"?t:n||yj(e)||t}const jn="top",tr="bottom",nr="right",Mn="left",Th="auto",gl=[jn,tr,nr,Mn],Ka="start",kh="end",bj="clippingParents",Mb="viewport",pl="popper",_j="reference",Db=gl.reduce((e,t)=>e.concat([`${t}-${Ka}`,`${t}-${kh}`]),[]),Ib=[...gl,Th].reduce((e,t)=>e.concat([t,`${t}-${Ka}`,`${t}-${kh}`]),[]),xj=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sj(e){const t=new Map,n=new Set,r=[];e.forEach(a=>{t.set(a.name,a)});function i(a){n.add(a.name),[...a.requires||[],...a.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&i(s)}}),r.push(a)}return e.forEach(a=>{n.has(a.name)||i(a)}),r}function wj(e){const t=Sj(e);return xj.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function Oj(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function wr(e){return e.split("-")[0]}function Cj(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Aj(e){const t=xr(e),n=Vr(e),r=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,o=0,l=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:i,height:a,x:o+Oh(e),y:l}}function Tj(e){const t=Vr(e),n=wh(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+Oh(e);const l=-n.scrollTop;return Hr(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function Lb(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Eh(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e){const t=fl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $b(e,t){return t===Mb?Eh(Aj(e)):Sr(t)?kj(t):Eh(Tj(Vr(e)))}function Ej(e){const t=hl(sc(e)),r=["absolute","fixed"].indexOf(Hr(e).position)>=0&&Sr(e)?ml(e):e;return dl(r)?t.filter(i=>dl(i)&&Lb(i,r)&&er(i)!=="body"):[]}function Pj(e,t,n){const i=[...t==="clippingParents"?Ej(e):[].concat(t),n],a=i[0],o=i.reduce((l,s)=>{const c=$b(e,s);return l.top=Math.max(c.top,l.top),l.right=Math.min(c.right,l.right),l.bottom=Math.min(c.bottom,l.bottom),l.left=Math.max(c.left,l.left),l},$b(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function vl(e){return e.split("-")[1]}function Ph(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fb({reference:e,element:t,placement:n}){const r=n?wr(n):null,i=n?vl(n):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case jn:l={x:a,y:e.y-t.height};break;case tr:l={x:a,y:e.y+e.height};break;case nr:l={x:e.x+e.width,y:o};break;case Mn:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?Ph(r):null;if(s!=null){const c=s==="y"?"height":"width";switch(i){case Ka:l[s]=Math.floor(l[s])-Math.floor(e[c]/2-t[c]/2);break;case kh:l[s]=Math.floor(l[s])+Math.ceil(e[c]/2-t[c]/2);break}}return l}function Nb(){return{top:0,right:0,bottom:0,left:0}}function zb(e){return Object.assign(Object.assign({},Nb()),e)}function Bb(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function yl(e,t={}){const{placement:n=e.placement,boundary:r=bj,rootBoundary:i=Mb,elementContext:a=pl,altBoundary:o=!1,padding:l=0}=t,s=zb(typeof l!="number"?l:Bb(l,gl)),c=a===pl?_j:pl,u=e.elements.reference,f=e.rects.popper,d=e.elements[o?c:a],h=Pj(dl(d)?d:d.contextElement||Vr(e.elements.popper),r,i),p=fl(u),g=Fb({reference:p,element:f,strategy:"absolute",placement:n}),y=Eh(Object.assign(Object.assign({},f),g)),_=a===pl?y:p,b={top:h.top-_.top+s.top,bottom:_.bottom-h.bottom+s.bottom,left:h.left-_.left+s.left,right:_.right-h.right+s.right},S=e.modifiersData.offset;if(a===pl&&S){const O=S[n];Object.keys(b).forEach(w=>{const A=[nr,tr].indexOf(w)>=0?1:-1,T=[jn,tr].indexOf(w)>=0?"y":"x";b[w]+=O[T]*A})}return b}const Wb={placement:"bottom",modifiers:[],strategy:"absolute"};function Rb(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function jj(e={}){const{defaultModifiers:t=[],defaultOptions:n=Wb}=e;return function(i,a,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Wb),n),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},s=[],c=!1;const u={state:l,setOptions(h){d(),l.options=Object.assign(Object.assign(Object.assign({},n),l.options),h),l.scrollParents={reference:dl(i)?hl(i):i.contextElement?hl(i.contextElement):[],popper:hl(a)};const p=wj(Cj([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:p}=l.elements;if(Rb(h,p)){l.rects={reference:pj(h,ml(p),l.options.strategy==="fixed"),popper:Ah(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}const{fn:y,options:_={},name:b}=l.orderedModifiers[g];typeof y=="function"&&(l=y({state:l,options:_,name:b,instance:u})||l)}}},update:Oj(()=>new Promise(h=>{u.forceUpdate(),h(l)})),destroy(){d(),c=!0}};if(!Rb(i,a))return u;u.setOptions(o).then(h=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const y=g({state:l,name:h,instance:u,options:p}),_=()=>{};s.push(y||_)}})}function d(){s.forEach(h=>h()),s=[]}return u}}const cc={passive:!0};function Mj({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,a=xr(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,cc)}),i&&a.addEventListener("resize",t.update,cc),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,cc)}),i&&a.removeEventListener("resize",t.update,cc)}}const Dj={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:Mj,data:{}};function Ij({state:e,name:t}){e.modifiersData[t]=Fb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Lj={name:"popperOffsets",enabled:!0,phase:"read",fn:Ij,data:{}},$j={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fj({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function Vb({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:a,adaptive:o}){let{x:l,y:s}=Fj(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let f=Mn,d=jn;const h=window;if(o){let g=ml(e);g===xr(e)&&(g=Vr(e)),n===jn&&(d=tr,s-=g.clientHeight-t.height,s*=a?1:-1),n===Mn&&(f=nr,l-=g.clientWidth-t.width,l*=a?1:-1)}const p=Object.assign({position:i},o&&$j);return a?Object.assign(Object.assign({},p),{[d]:u?"0":"",[f]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},p),{[d]:u?`${s}px`:"",[f]:c?`${l}px`:"",transform:""})}function Nj({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:wr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Vb(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Vb(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const zj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nj,data:{}};function Bj({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Sr(i)||!er(i)||(Object.assign(i.style,n),Object.keys(r).forEach(a=>{const o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function Wj({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Sr(r)||!er(r)||(Object.assign(r.style,o),Object.keys(i).forEach(l=>{r.removeAttribute(l)}))})}}const Rj={name:"applyStyles",enabled:!0,phase:"write",fn:Bj,effect:Wj,requires:["computeStyles"]};function Vj(e,t,n){const r=wr(e),i=[Mn,jn].indexOf(r)>=0?-1:1;let[a,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,o=(o||0)*i,[Mn,nr].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}function Hj({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=Ib.reduce((l,s)=>(l[s]=Vj(s,e.rects,r),l),{}),{x:a,y:o}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=i}const Uj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hj},qj={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(e){return e.replace(/left|right|bottom|top/g,t=>qj[t])}const Gj={start:"end",end:"start"};function Hb(e){return e.replace(/start|end/g,t=>Gj[t])}function Yj(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:a,flipVariations:o,allowedAutoPlacements:l=Ib}=t,s=vl(n),c=s?o?Db:Db.filter(d=>vl(d)===s):gl;let u=c.filter(d=>l.indexOf(d)>=0);u.length===0&&(u=c);const f=u.reduce((d,h)=>(d[h]=yl(e,{placement:h,boundary:r,rootBoundary:i,padding:a})[wr(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function Kj(e){if(wr(e)===Th)return[];const t=uc(e);return[Hb(e),t,Hb(t)]}function Zj({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:a,padding:o,boundary:l,rootBoundary:s,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=wr(d)===d,g=a||(p||!u?[uc(d)]:Kj(d)),y=[d,...g].reduce((A,T)=>A.concat(wr(T)===Th?Yj(e,{placement:T,boundary:l,rootBoundary:s,padding:o,flipVariations:u,allowedAutoPlacements:f}):T),[]),_=e.rects.reference,b=e.rects.popper,S=new Map;let O=!0,w=y[0];for(let A=0;A<y.length;A++){const T=y[A],k=wr(T),P=vl(T)===Ka,N=[jn,tr].indexOf(k)>=0,M=N?"width":"height",j=yl(e,{placement:T,boundary:l,rootBoundary:s,altBoundary:c,padding:o});let D=N?P?nr:Mn:P?tr:jn;_[M]>b[M]&&(D=uc(D));const I=uc(D),W=[];if(r&&W.push(j[k]<=0),i&&W.push(j[D]<=0,j[I]<=0),W.every(X=>X)){w=T,O=!1;break}S.set(T,W)}if(O){const A=u?3:1;for(let T=A;T>0;T--){const k=y.find(P=>{const N=S.get(P);if(N)return N.slice(0,T).every(M=>M)});if(k){w=k;break}}}e.placement!==w&&(e.modifiersData[n]._skip=!0,e.placement=w,e.reset=!0)}const Xj={name:"flip",enabled:!0,phase:"main",fn:Zj,requiresIfExists:["offset"],data:{_skip:!1}};function Jj(e){return e==="x"?"y":"x"}function fc(e,t,n){return Math.max(e,Math.min(t,n))}function Qj({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:a,rootBoundary:o,altBoundary:l,padding:s,tether:c=!0,tetherOffset:u=0}=t,f=yl(e,{boundary:a,rootBoundary:o,padding:s,altBoundary:l}),d=wr(e.placement),h=vl(e.placement),p=!h,g=Ph(d),y=Jj(g),_=e.modifiersData.popperOffsets,b=e.rects.reference,S=e.rects.popper,O=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,w={x:0,y:0};if(_){if(r){const A=g==="y"?jn:Mn,T=g==="y"?tr:nr,k=g==="y"?"height":"width",P=_[g],N=_[g]+f[A],M=_[g]-f[T],j=c?-S[k]/2:0,D=h===Ka?b[k]:S[k],I=h===Ka?-S[k]:-b[k],W=e.elements.arrow,X=c&&W?Ah(W):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nb(),re=ne[A],Z=ne[T],R=fc(0,b[k],X[k]),J=p?b[k]/2-j-R-re-O:D-R-re-O,U=p?-b[k]/2+j+R+Z+O:I+R+Z+O,Y=e.elements.arrow&&ml(e.elements.arrow),G=Y?g==="y"?Y.clientTop||0:Y.clientLeft||0:0,ie=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,z=_[g]+J-ie-G,se=_[g]+U-ie,K=fc(c?Math.min(N,z):N,P,c?Math.max(M,se):M);_[g]=K,w[g]=K-P}if(i){const A=g==="x"?jn:Mn,T=g==="x"?tr:nr,k=_[y],P=k+f[A],N=k-f[T],M=fc(P,k,N);_[y]=M,w[y]=M-k}e.modifiersData[n]=w}}const e7={name:"preventOverflow",enabled:!0,phase:"main",fn:Qj,requiresIfExists:["offset"]};function t7({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=wr(e.placement),a=Ph(i),l=[Mn,nr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,c=Ah(n),u=a==="y"?jn:Mn,f=a==="y"?tr:nr,d=e.rects.reference[l]+e.rects.reference[a]-r[a]-e.rects.popper[l],h=r[a]-e.rects.reference[a],p=ml(n),g=p?a==="y"?p.clientHeight||0:p.clientWidth||0:0,y=d/2-h/2,_=s[u],b=g-c[l]-s[f],S=g/2-c[l]/2+y,O=fc(_,S,b),w=a;e.modifiersData[t]={[w]:O,centerOffset:O-S}}function n7({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Lb(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:zb(typeof i!="number"?i:Bb(i,gl))}))}const r7={name:"arrow",enabled:!0,phase:"main",fn:t7,effect:n7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ub(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qb(e){return[jn,nr,tr,Mn].some(t=>e[t]>=0)}function i7({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,a=yl(e,{elementContext:"reference"}),o=yl(e,{altBoundary:!0}),l=Ub(a,n),s=Ub(o,r,i),c=qb(l),u=qb(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const a7=jj({defaultModifiers:[Dj,Lj,zj,Rj,Uj,Xj,e7,r7,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:i7}]}),jh=Ya?F.useLayoutEffect:F.useEffect,o7=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Gb=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),l7=[],s7=(e,t,n={})=>{const r=F.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||l7},[a,o]=F.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=F.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const f=Object.keys(u.elements);o({styles:Gb(f.map(d=>[d,u.styles[d]||{}])),attributes:Gb(f.map(d=>[d,u.attributes[d]]))})},requires:["computeStyles"]}),[]),s=F.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return o7(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),c=F.useRef();return jh(()=>{c&&c.current&&c.current.setOptions(s)},[s]),jh(()=>{if(e==null||t==null)return;const f=(n.createPopper||a7)(e,t,s);return c.current=f,()=>{f.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:a.styles,attributes:a.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class Mh extends F.Component{componentDidMount(){const t=zy.findDOMNode(this);this.props.onFoundRef(t)}render(){return this.props.children||null}}Mh.displayName="FindRefWrapper";const I1e="",c7={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},u7=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>c7[t]),Yb=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:a,appendTo:o=()=>document.body,zIndex:l=9999,isVisible:s=!0,positionModifiers:c,distance:u=0,onMouseEnter:f,onMouseLeave:d,onFocus:h,onBlur:p,onDocumentClick:g,onTriggerClick:y,onTriggerEnter:_,onPopperClick:b,onPopperMouseEnter:S,onPopperMouseLeave:O,onDocumentKeyDown:w,enableFlip:A=!0,flipBehavior:T="flip",reference:k,removeFindDomNode:P=!1,popperRef:N})=>{const[M,j]=F.useState(null),[D,I]=F.useState(null),[W,X]=F.useState(null),[ne,re]=F.useState(!1),Z=D||M,R=F.useCallback(ge=>g(ge,Z,W),[s,M,D,W,g]);F.useEffect(()=>{re(!0)},[]),F.useEffect(()=>{k&&(k.current?I(k.current):typeof k=="function"&&I(k()))},[k]),F.useEffect(()=>{N&&(N.current?X(N.current):typeof N=="function"&&X(N()))},[s,N]);const J=(ge,E,V,ee=!1)=>{ge&&E&&E.addEventListener(V,ge,{capture:ee})},U=(ge,E,V,ee=!1)=>{ge&&E&&E.removeEventListener(V,ge,{capture:ee})};F.useEffect(()=>{J(f,Z,"mouseenter"),J(d,Z,"mouseleave"),J(h,Z,"focus"),J(p,Z,"blur"),J(y,Z,"click"),J(_,Z,"keydown"),J(b,W,"click"),J(S,W,"mouseenter"),J(O,W,"mouseleave"),g&&J(R,document,"click",!0),J(w,document,"keydown",!0);const ge=new MutationObserver(()=>{Q&&Q()});return W&&ge.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{U(f,Z,"mouseenter"),U(d,Z,"mouseleave"),U(h,Z,"focus"),U(p,Z,"blur"),U(y,Z,"click"),U(_,Z,"keydown"),U(b,W,"click"),U(S,W,"mouseenter"),U(O,W,"mouseleave"),g&&U(R,document,"click",!0),U(w,document,"keydown",!0),ge.disconnect()}},[M,W,f,d,h,p,y,_,b,S,O,g,w,D]);const Y=()=>{if(a)return a;let ge=r==="up"?"top":"bottom";return i!=="center"&&(ge=`${ge}-${i==="right"?"end":"start"}`),ge},G=F.useMemo(Y,[r,i,a]),ie=F.useMemo(()=>u7(Y()),[r,i,a]),z=F.useMemo(()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:ge})=>{ge.styles.popper.width=`${ge.rects.reference.width}px`},effect:({state:ge})=>(ge.elements.popper.style.width=`${ge.elements.reference.offsetWidth}px`,()=>{})}),[n]),{styles:se,attributes:K,update:Q,forceUpdate:te}=s7(Z,W,{placement:G,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:G.startsWith("auto")||A,options:{fallbackPlacements:T==="flip"?[ie]:T}},z]});F.useEffect(()=>{te&&te()},[t]);const ce=()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const ge=K.popper["data-popper-placement"];return c[ge]}return c.top},L=Object.assign({className:We(t.props&&t.props.className,c&&ce()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),se.popper),{zIndex:l})},K.popper),xe=F.cloneElement(t,L),Se=()=>typeof o=="function"?o():o;let be;return P?be=F.createElement("div",{style:{display:"contents"},ref:ge=>X(ge==null?void 0:ge.firstElementChild)},xe):N?be=xe:be=F.createElement(Mh,{onFoundRef:ge=>X(ge)},xe),F.createElement(F.Fragment,null,!k&&e&&F.isValidElement(e)&&!P&&F.createElement(Mh,{onFoundRef:ge=>j(ge)},e),!k&&e&&F.isValidElement(e)&&P&&F.createElement("div",{style:{display:"contents"},ref:ge=>j(ge==null?void 0:ge.firstElementChild)},e),ne&&s&&zy.createPortal(be,Se()))};Yb.displayName="Popper";const f7=(e,t,n=c=>document.activeElement.contains(c),r=c=>c,i=["A","BUTTON","INPUT"],a=!1,o=!1,l=!0,s=!0)=>{const c=document.activeElement,u=e.key;let f=null;if(!a&&["ArrowUp","ArrowDown"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g<t.length&&g*-1<t.length;)u==="ArrowUp"?g--:g++,d=p+g,d>=t.length&&(d=0),d<0&&(d=t.length-1),f=r(t[d])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){const g=t[p].querySelectorAll(i.join(","));if(!g.length||s){let y=c;for(;y;)if(y=u==="ArrowLeft"?y.previousElementSibling:y.nextElementSibling,y&&i.includes(y.tagName)){f=y;break}}else g.forEach((y,_)=>{e.target===y&&(d=_+(u==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(c.tabIndex=-1,f.tabIndex=0),f.focus())};class Dh extends F.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),f7(t,p,r,i,u,a,o,c,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Ya&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Ya&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Dh.displayName="KeyboardHandler",Dh.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const Zi=F.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),Kb=F.createContext({itemId:null,isDisabled:!1});class dc extends F.Component{constructor(t){super(t),this.menuRef=F.createRef(),this.activeMenu=null,this.state={ouiaStateId:Sh(hc.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(".pf-c-menu")&&!Array.from(r.getElementsByClassName("pf-c-menu")).includes(n.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const i=r.querySelector("#"+this.props.activeMenu)||r||null,a=Array.from(i.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||i.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:i.id});else return;const o=a.filter(l=>!(l.classList.contains("pf-m-disabled")||l.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,i=document.activeElement;if(n.target.closest(".pf-c-menu")!==this.activeMenu&&!n.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=n.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const a=this.activeMenu,o=n.key,l=i.classList.contains("pf-c-breadcrumb__link")||i.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(i.closest("li").classList.contains("pf-m-current-path")&&a.parentElement.tagName==="LI")i.tabIndex=-1,a.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:a.parentElement.firstChild});else if(i.nextElementSibling&&i.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(i.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));i.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[],t.innerRef&&(this.menuRef=t.innerRef)}allowTabFirstItem(){const t=this.menuRef.current;if(t){const n=t.querySelector("ul button:not(:disabled), ul a:not(:disabled)");n&&(n.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Ya&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Ya&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{"aria-label":n,id:r,children:i,className:a,onSelect:o,selected:l=null,onActionClick:s,ouiaId:c,ouiaSafe:u,containsFlyout:f,isNavFlyout:d,containsDrilldown:h,isMenuDrilledIn:p,isPlain:g,isScrollable:y,drilldownItemPath:_,drilledInMenus:b,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,parentMenu:A=null,activeItemId:T=null,innerRef:k,isRootMenu:P,activeMenu:N,role:M}=t,j=ze(t,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),D=p||b&&b.includes(r)||!1;return F.createElement(Zi.Provider,{value:{menuId:r,parentMenu:A||r,onSelect:o,onActionClick:s,activeItemId:T,selected:l,drilledInMenus:b,drilldownItemPath:_,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:I=>this.setState({flyoutRef:I}),disableHover:this.state.disableHover,role:M}},P&&F.createElement(Dh,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:I=>document.activeElement.closest("li")===I||document.activeElement.parentElement===I||document.activeElement.closest(".pf-c-menu__search")===I||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===I,getFocusableElement:I=>I.tagName==="DIV"&&I.querySelector("input")||I.firstChild.tagName==="LABEL"&&I.querySelector("input")||I.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),F.createElement("div",Object.assign({id:r,className:We($e.menu,g&&$e.modifiers.plain,y&&$e.modifiers.scrollable,f&&$e.modifiers.flyout,d&&$e.modifiers.nav,h&&$e.modifiers.drilldown,D&&$e.modifiers.drilledIn,a),"aria-label":n,ref:this.menuRef},xh(hc.displayName,c!==void 0?c:this.state.ouiaStateId,u),j),i))}}dc.displayName="Menu",dc.contextType=Zi,dc.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const hc=F.forwardRef((e,t)=>F.createElement(dc,Object.assign({},e,{innerRef:t})));hc.displayName="Menu";const Zb=F.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:i,maxMenuHeight:a}=e,o=ze(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=F.createRef(),s=(c,u,f)=>{if(c){let d=c.clientHeight,h=null,p=c.closest(`.${$e.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains($e.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),y=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+y}f&&f(u,d),n&&n(d.toString())}return t||l};return F.createElement(Zi.Consumer,null,({menuId:c,onGetMenuHeight:u})=>F.createElement("div",Object.assign({},o,{className:We($e.menuContent,e.className),ref:f=>s(f,c,u),style:Object.assign(Object.assign({},i&&{"--pf-c-menu__content--Height":i}),a&&{"--pf-c-menu__content--MaxHeight":a})}),r))});Zb.displayName="MenuContent";const d7={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},h7={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},m7={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var Xi;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Xi||(Xi={}));const g7=e=>{switch(e){case Xi.sm:return"1em";case Xi.md:return"1.5em";case Xi.lg:return"2em";case Xi.xl:return"3em";default:return"1em"}};let p7=0;function bl({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var o;return o=class extends F.Component{constructor(){super(...arguments),this.id=`icon-title-${p7++}`}render(){const s=this.props,{size:c,color:u,title:f,noVerticalAlign:d}=s,h=ze(s,["size","color","title","noVerticalAlign"]),p=!!f,g=g7(c),y=-.125*Number.parseFloat(g),_=d?null:{verticalAlign:`${y}em`},b=[t,n,r,i].join(" ");return F.createElement("svg",Object.assign({style:_,fill:u,height:g,width:g,viewBox:b,"aria-labelledby":p?this.id:null,"aria-hidden":p?null:!0,role:"img"},h),p&&F.createElement("title",{id:this.id},f),F.createElement("path",{d:a}))}},o.displayName=e,o.defaultProps={color:"currentColor",size:Xi.sm,noVerticalAlign:!1},o}const v7=bl({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),y7=bl({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),b7=bl({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),_7=bl({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),q1e="",xi={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Xb=()=>{};class Za extends F.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n.currentTarget.checked,n)},this.state={ouiaStateId:Sh(Za.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,onChange:i,isValid:a,isDisabled:o,isRequired:l,isChecked:s,label:c,checked:u,defaultChecked:f,description:d,body:h,ouiaId:p,ouiaSafe:g,component:y}=t,_=ze(t,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Checkbox:","id is required to make input accessible");const b={};return([!0,!1].includes(u)||s===!0)&&(b.checked=u||s),i!==Xb&&(b.checked=s),[!1,!0].includes(f)&&(b.defaultChecked=f),b.checked=b.checked===null?!1:b.checked,F.createElement(y,{className:We(xi.check,!c&&xi.modifiers.standalone,r)},F.createElement("input",Object.assign({},_,{className:We(xi.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":n,disabled:o,required:l,ref:S=>S&&(S.indeterminate=s===null)},b,xh(Za.displayName,p!==void 0?p:this.state.ouiaStateId,g))),c&&F.createElement("label",{className:We(xi.checkLabel,o&&xi.modifiers.disabled),htmlFor:_.id},c,l&&F.createElement("span",{className:We(xi.checkLabelRequired),"aria-hidden":"true"},dj)),d&&F.createElement("span",{className:We(xi.checkDescription)},d),h&&F.createElement("span",{className:We(xi.checkBody)},h))}}Za.displayName="Checkbox",Za.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Xb,ouiaSafe:!0,component:"div"};const x7=bl({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),S7=e=>{var{className:t="",icon:n,onClick:r,"aria-label":i,isFavorited:a=null,isDisabled:o,actionId:l,innerRef:s}=e,c=ze(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return F.createElement(Zi.Consumer,null,({onActionClick:u})=>F.createElement(Kb.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),u&&u(p,f,l)};return F.createElement("button",Object.assign({className:We($e.menuItemAction,a!==null&&$e.modifiers.favorite,a&&$e.modifiers.favorited,t),"aria-label":i,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},c),F.createElement("span",{className:We($e.menuItemActionIcon)},n==="favorites"||a!==null?F.createElement(x7,{"aria-hidden":!0}):n))}))},Jb=F.forwardRef((e,t)=>F.createElement(S7,Object.assign({},e,{innerRef:t})));Jb.displayName="MenuItemAction";const Qb=F.createContext({direction:"right"}),w7=e=>{var{children:t,className:n,itemId:r=null,to:i,hasCheck:a=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:c=!1,flyoutMenu:u,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isExternalLink:y=!1,isSelected:_=null,isFocused:b,isDanger:S=!1,icon:O,actions:w,onShowFlyout:A,drilldownMenu:T,isOnPath:k,innerRef:P}=e,N=ze(e,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:M,parentMenu:j,onSelect:D,onActionClick:I,activeItemId:W,selected:X,drilldownItemPath:ne,onDrillIn:re,onDrillOut:Z,flyoutRef:R,setFlyoutRef:J,disableHover:U,role:Y}=F.useContext(Zi);let G=i?"a":p;a&&!i&&(G="label");const[ie,z]=F.useState(null),se=F.useContext(Qb),[K,Q]=F.useState(se.direction),te=F.useRef(),ce=te===R,L=u!==void 0,xe=le=>{!ce&&le?J(te):ce&&!le&&J(null),A&&le&&A()};jh(()=>{if(L&&te.current&&Ya){const le=te.current.lastElementChild;if(le&&le.classList.contains($e.menu)){const H=te.current.getClientRects()[0],oe=le.getClientRects()[0];if(H&&oe){const Ee=H.x-oe.width,De=window.innerWidth-H.x-H.width-oe.width;let je=K;De<0&&je!=="left"?(Q("left"),je="left"):Ee<0&&je!=="right"&&(Q("right"),je="right");let He=0;Ee<0&&De<0&&(He=je==="right"?-De:-Ee),je==="left"?(le.classList.add($e.modifiers.left),le.style.setProperty(h7.name,`-${He}px`)):le.style.setProperty(m7.name,`-${He}px`);const ht=window.innerHeight-H.y-oe.height;window.innerHeight-oe.height<0&&ht<0||ht<0&&le.style.setProperty(d7.name,`${ht}px`)}}}},[ce,u]),F.useEffect(()=>{Q(se.direction)},[se]),F.useEffect(()=>{if(ie)if(ce){const le=ie.nextElementSibling;Array.from(le.getElementsByTagName("UL")[0].children).filter(oe=>!(oe.classList.contains("pf-m-disabled")||oe.classList.contains("pf-c-divider")))[0].firstChild.focus()}else ie.focus()},[ce,ie]);const Se=le=>{const H=le.key,oe=le.target,Ee=le.type;(H===" "||H==="Enter"||H==="ArrowRight"||Ee==="click")&&(le.stopPropagation(),le.preventDefault(),ce||(xe(!0),z(oe))),(H==="Escape"||H==="ArrowLeft")&&ce&&(le.stopPropagation(),xe(!1))},be=(le,H)=>{H&&H(le,r),h&&h(le)},ge=k&&k||ne&&ne.includes(r)||!1;let E;f&&(f==="down"?E=le=>re&&re(le,M,typeof T=="function"?T().props.id:T.props.id,r):E=le=>Z&&Z(le,j,r));let V={};G==="a"?V={href:i,"aria-disabled":g?!0:null,disabled:null}:G==="button"&&(V={type:"button"}),k?V["aria-expanded"]=!0:L&&(V["aria-haspopup"]="menu",V["aria-expanded"]=ce);const ee=()=>o!==null?o?"page":null:r!==null&&W!==null?r===W:null,he=()=>_!==null?_:X!==null&&r!==null?Array.isArray(X)&&X.includes(r)||r===X:!1,me=()=>{U||(L?xe(!0):J(null))},ue=Y==="listbox";return F.createElement("li",Object.assign({className:We($e.menuListItem,g&&$e.modifiers.disabled,ge&&$e.modifiers.currentPath,s&&$e.modifiers.load,c&&$e.modifiers.loading,b&&$e.modifiers.focus,S&&$e.modifiers.danger,n),onMouseOver:me},u&&{onKeyDown:Se},{ref:te,role:a?"menuitem":"none"},N),F.createElement(bh,null,le=>F.createElement(G,Object.assign({tabIndex:-1,className:We($e.menuItem,he()&&!a&&$e.modifiers.selected,n),"aria-current":ee()},!a&&{disabled:g},!a&&!u&&{role:ue?"option":"menuitem"},!a&&!u&&ue&&{"aria-selected":he()},{ref:P},!a&&{onClick:H=>{be(H,D),E&&E(H),u&&Se(H)}},a&&{htmlFor:le},V),F.createElement("span",{className:We($e.menuItemMain)},f==="up"&&F.createElement("span",{className:We($e.menuItemToggleIcon)},F.createElement(b7,{"aria-hidden":!0})),O&&F.createElement("span",{className:We($e.menuItemIcon)},O),a&&F.createElement("span",{className:We("pf-c-menu__item-check")},F.createElement(Za,{id:le,component:"span",isChecked:_||!1,onChange:H=>be(H,D),isDisabled:g})),F.createElement("span",{className:We($e.menuItemText)},t),y&&F.createElement("span",{className:We($e.menuItemExternalIcon)},F.createElement(v7,{"aria-hidden":!0})),(u||f==="down")&&F.createElement("span",{className:We($e.menuItemToggleIcon)},F.createElement(y7,{"aria-hidden":!0})),he()&&F.createElement("span",{className:We($e.menuItemSelectIcon)},F.createElement(_7,{"aria-hidden":!0}))),d&&f!=="up"&&F.createElement("span",{className:We($e.menuItemDescription)},F.createElement("span",null,d)))),ce&&F.createElement(Zi.Provider,{value:{disableHover:U}},F.createElement(Qb.Provider,{value:{direction:K}},u)),typeof T=="function"?T():T,F.createElement(Kb.Provider,{value:{itemId:r,isDisabled:g}},w,l!==null&&F.createElement(Jb,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:le=>I(le,r),tabIndex:-1,actionId:"fav"})))},e_=F.forwardRef((e,t)=>F.createElement(w7,Object.assign({},e,{innerRef:t})));e_.displayName="MenuItem";const t_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1}=e,i=ze(e,["children","className","isAriaMultiselectable"]);const{role:a}=F.useContext(Zi);return F.createElement("ul",Object.assign({role:a},a==="listbox"&&{"aria-multiselectable":r},{className:We($e.menuList,n)},i),t)};t_.displayName="MenuList";const O7=e=>{var{children:t,className:n,onSelect:r,isOpen:i,selected:a,toggle:o,onOpenChange:l,isPlain:s,minWidth:c,innerRef:u,zIndex:f=9999,role:d="listbox"}=e,h=ze(e,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const p=x.useRef(),g=x.useRef(),y=x.useRef(),_=u||p;x.useEffect(()=>{const S=w=>{var A,T,k;(i&&l&&(!((A=_.current)===null||A===void 0)&&A.contains(w.target))||!((T=g.current)===null||T===void 0)&&T.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(l(!1),(k=g.current)===null||k===void 0||k.focus())},O=w=>{var A,T,k;i&&(!((A=g.current)===null||A===void 0)&&A.contains(w.target))&&w.detail===0&&setTimeout(()=>{var P;const N=(P=_==null?void 0:_.current)===null||P===void 0?void 0:P.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),i&&l&&!(!((T=g==null?void 0:g.current)===null||T===void 0)&&T.contains(w.target))&&i&&!(!((k=_.current)===null||k===void 0)&&k.contains(w.target))&&l(!1)};return window.addEventListener("keydown",S),window.addEventListener("click",O),()=>{window.removeEventListener("keydown",S),window.removeEventListener("click",O)}},[i,_,l]);const b=x.createElement(hc,Object.assign({role:d,className:We(n),ref:_,onSelect:(S,O)=>r(S,O),isPlain:s,selected:a},c&&{style:{"--pf-c-menu--MinWidth":c}},xh(_l.displayName,h.ouiaId!==void 0?h.ouiaId:Sh(_l.displayName),h.ouiaSafe!==void 0?h.ouiaSafe:!0),h),x.createElement(Zb,null,t));return x.createElement("div",{ref:y},x.createElement(Yb,{trigger:o(g),removeFindDomNode:!0,popper:b,appendTo:y.current||void 0,isVisible:i,zIndex:f}))},_l=x.forwardRef((e,t)=>x.createElement(O7,Object.assign({innerRef:t},e)));_l.displayName="Select";const Ih=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,i=ze(e,["children","className","isAriaMultiselectable"]);return x.createElement(t_,Object.assign({isAriaMultiselectable:r,className:We(n)},i),t)};Ih.displayName="SelectList";const Lh=e=>{var{children:t,className:n}=e,r=ze(e,["children","className"]);return x.createElement(e_,Object.assign({className:We(n)},r),t)};Lh.displayName="SelectOption";const K1e="",xl={button:"pf-c-button",card:"pf-c-card",drawer:"pf-c-drawer",modalBox:"pf-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-c-page__main-wizard",themeDark:"pf-theme-dark",wizard:"pf-c-wizard",wizardClose:"pf-c-wizard__close",wizardDescription:"pf-c-wizard__description",wizardFooter:"pf-c-wizard__footer",wizardFooterCancel:"pf-c-wizard__footer-cancel",wizardHeader:"pf-c-wizard__header",wizardInnerWrap:"pf-c-wizard__inner-wrap",wizardMain:"pf-c-wizard__main",wizardMainBody:"pf-c-wizard__main-body",wizardNav:"pf-c-wizard__nav",wizardNavItem:"pf-c-wizard__nav-item",wizardNavLink:"pf-c-wizard__nav-link",wizardNavLinkText:"pf-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-c-wizard__nav-list",wizardOuterWrap:"pf-c-wizard__outer-wrap",wizardTitle:"pf-c-wizard__title",wizardToggle:"pf-c-wizard__toggle",wizardToggleIcon:"pf-c-wizard__toggle-icon",wizardToggleList:"pf-c-wizard__toggle-list",wizardToggleListItem:"pf-c-wizard__toggle-list-item",wizardToggleNum:"pf-c-wizard__toggle-num",wizardToggleSeparator:"pf-c-wizard__toggle-separator"};function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function C7(e,t){if(Sl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n_(e){var t=C7(e,"string");return Sl(t)==="symbol"?t:String(t)}function A7(e,t,n){return t=n_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n_(r.key),r)}}function k7(e,t,n){return t&&r_(e.prototype,t),n&&r_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var E7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P7={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},j7=function(t){return P7[t]},M7=function(t){return t.replace(E7,j7)},D7={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:M7},I7,L7=x.createContext();function $7(){return D7}var F7=function(){function e(){T7(this,e),this.usedNamespaces={}}return k7(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function N7(){return I7}function z7(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var i_={};function $h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&i_[t[0]]||(typeof t[0]=="string"&&(i_[t[0]]=new Date),z7.apply(void 0,t))}function a_(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}})}function B7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(s,c){var u=t.services.backendConnector.state["".concat(s,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function W7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return $h("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):B7(e,t,n)}function R7(e){if(Array.isArray(e))return e}function V7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function o_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H7(e,t){if(e){if(typeof e=="string")return o_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o_(e,t)}}function U7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
115
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q7(e,t){return R7(e)||V7(e,t)||H7(e,t)||U7()}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l_(Object(n),!0).forEach(function(r){A7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var G7=function(t,n){var r=x.useRef();return x.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=x.useContext(L7)||{},i=r.i18n,a=r.defaultNS,o=n||i||N7();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new F7),!o){$h("You will need to pass in an i18next instance by using initReactI18next");var l=function(P){return Array.isArray(P)?P[P.length-1]:P},s=[l,{},!1];return s.t=l,s.i18n={},s.ready=!1,s}o.options.react&&o.options.react.wait!==void 0&&$h("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Fh(Fh(Fh({},$7()),o.options.react),t),u=c.useSuspense,f=c.keyPrefix,d=e||a||o.options&&o.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(d);var h=(o.isInitialized||o.initializedStoreOnce)&&d.every(function(k){return W7(k,o,c)});function p(){return o.getFixedT(null,c.nsMode==="fallback"?d:d[0],f)}var g=x.useState(p),y=q7(g,2),_=y[0],b=y[1],S=d.join(),O=G7(S),w=x.useRef(!0);x.useEffect(function(){var k=c.bindI18n,P=c.bindI18nStore;w.current=!0,!h&&!u&&a_(o,d,function(){w.current&&b(p)}),h&&O&&O!==S&&w.current&&b(p);function N(){w.current&&b(p)}return k&&o&&o.on(k,N),P&&o&&o.store.on(P,N),function(){w.current=!1,k&&o&&k.split(" ").forEach(function(M){return o.off(M,N)}),P&&o&&P.split(" ").forEach(function(M){return o.store.off(M,N)})}},[o,S]);var A=x.useRef(!0);x.useEffect(function(){w.current&&!A.current&&b(p),A.current=!1},[o,f]);var T=[_,o,h];if(T.t=_,T.i18n=o,T.ready=h,h||!h&&!u)return T;throw new Promise(function(k){a_(o,d,function(){k()})})}const Z1e="",X1e="";function Dn(e){const{t}=ut(),{id:n,icon:r,value:i,onSelect:a,options:o,placeholder:l}=e,[s,c]=x.useState(!1),u=x.useMemo(()=>o.find(b=>i===b.value),[o,i]),f=b=>v.jsxs(C.MenuToggle,{id:n,ref:b,onClick:()=>c(S=>!S),isExpanded:s,onKeyDown:S=>{switch(S.key){default:c(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),u?u.label:v.jsx("span",{className:"page-select-placeholder",children:l})]}),d=x.useCallback((b,S)=>{const O=o.find(w=>w.key!==void 0?w.key===S:w.label===S);O&&(a(O.value),c(!1))},[a,o]),[h,p]=x.useState(""),g=x.useRef(null);x.useEffect(()=>{p(""),s&&g.current&&g.current.focus()},[s]),x.useEffect(()=>{e.isRequired&&!u&&o.length>0&&a(o[0].value)},[a,o,e.isRequired,u]);const y=x.useMemo(()=>o.filter(b=>h===""?!0:b.label.toLowerCase().includes(h.toLowerCase())),[o,h]);let _=v.jsx("div",{className:"page-single-select",children:v.jsxs(_l,{selected:u==null?void 0:u.label,onSelect:d,isOpen:s,onOpenChange:c,toggle:f,style:{zIndex:s?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:g,value:h,onChange:(b,S)=>p(S),onClear:b=>{b.stopPropagation(),p("")}})}),y.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Ih,{className:"page-select-list",children:y.map(b=>{const S=br(b);return v.jsx(Lh,{itemId:b.key!==void 0?b.key:b.label,description:b.description,"data-cy":S,children:b.label},b.key!==void 0?b.key:b.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})});return e.label&&(_=v.jsx(C.FormGroup,{id:`${n??"select"}-form-group`,fieldId:n,label:e.label,children:_})),_}const Y7=Le.div`
114
+ `;function ij(e){const{action:t,wrapper:n,iconOnly:r,selectedItem:i,selectedItems:a}=e,l=ul()(t,i,a),s=n??x.Fragment,c=t.icon,u=l||(t.tooltip?t.tooltip:r?t.label:void 0),f=Ha(t),d=r&&c?v.jsx(c,{}):t.label;let h;switch(t.selection){case ot.None:h=t.href;break;case ot.Single:i?h=t.href(i):h="";break;default:h="";break}return v.jsx(s,{children:v.jsx(C.Button,{id:f,isDanger:t.isDanger,icon:c?v.jsx(rj,{children:v.jsx(c,{})}):void 0,isAriaDisabled:!!l,component:p=>v.jsx(C.Tooltip,{content:u,trigger:u?void 0:"manual",children:v.jsx($t.Link,{...p,to:h})}),variant:r?"plain":void 0,ouiaId:f,"data-cy":f,children:r&&c?v.jsx(c,{}):d})})}function aj(e){const{actions:t,selectedItems:n,selectedItem:r,wrapper:i,iconOnly:a,onOpen:o}=e;return t.length===0?v.jsx(v.Fragment,{}):v.jsx(C.Split,{hasGutter:!a,style:{alignItems:"baseline"},children:t.map((l,s)=>v.jsx(oj,{action:l,selectedItem:r,selectedItems:n,wrapper:i,iconOnly:a,onOpen:o},s))})}function oj(e){const{action:t,selectedItems:n,selectedItem:r,wrapper:i,onOpen:a}=e,o=ul();switch(t.type){case kt.Seperator:return v.jsx(v.Fragment,{});case kt.Button:return v.jsx(nj,{action:t,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,wrapper:i});case kt.Link:return v.jsx(ij,{action:t,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,wrapper:i});case kt.Switch:return v.jsx(bb,{action:t,selectedItem:r,wrapper:i,iconOnly:e.iconOnly});case kt.Dropdown:{const l=o(t,r,n),s=l||(t.tooltip?t.tooltip:t.label);return v.jsx(ph,{icon:t.icon,label:t.label,actions:t.actions,selectedItem:r,selectedItems:n,iconOnly:e.iconOnly,position:C.DropdownPosition.right,tooltip:s,isDisabled:l,variant:t.variant,onOpen:a})}}}function Ua(e){const{actions:t,selectedItem:n,iconOnly:r,onOpen:i}=e,a=cn(e.collapse!=="never"&&e.collapse!=="always"?e.collapse??"lg":"lg"),o=e.collapse!=="never"&&(e.collapse==="always"||!a),l=x.useMemo(()=>t.filter(h=>!yb(h,n)),[t,n]),s=x.useMemo(()=>o?[]:l==null?void 0:l.filter(xb),[o,l]),c=x.useMemo(()=>o?l:(l==null?void 0:l.filter(h=>!xb(h)))??[],[o,l]),[u,f]=x.useState({});x.useEffect(()=>{Object.values(u).find(h=>h)?i==null||i(!0):i==null||i(!1)},[i,u]);const d=x.useCallback((h,p)=>{f(g=>(g[h]!==p&&(g={...g},g[h]=p),g))},[]);return v.jsxs(C.Flex,{flexWrap:{default:"nowrap"},spaceItems:{default:r?"spaceItemsNone":"spaceItemsMd"},justifyContent:{default:"justifyContentFlexEnd"},children:[s!==void 0&&s.length>0&&v.jsx(C.FlexItem,{children:v.jsx(aj,{...e,actions:s,onOpen:d})}),c.length>0&&v.jsx(C.FlexItem,{children:v.jsx(ph,{...e,actions:c,onOpen:d})})]})}function xb(e){return"isPinned"in e&&e.isPinned}const vh=x.createContext({addAlert:()=>null,removeAlert:()=>null,replaceAlert:()=>null,removeAlerts:()=>null});function yh(){return x.useContext(vh)}function Sb(e){const[t,n]=x.useState([]),[r]=x.useState(()=>{function i(s){n(c=>s?c.filter(s):[])}function a(s){n(c=>c.filter(u=>u!==s))}function o(s){Number.isInteger(s.timeout)&&(setTimeout(()=>a(s),s.timeout),delete s.timeout),n(c=>{const u=c.findIndex(f=>f===s);if(u!==-1){const f=[...c];return f[u]=s,f}else return[...c,s]})}function l(s,c){n(u=>{const f=u.findIndex(d=>d===s);if(f!==-1){Number.isInteger(c.timeout)&&(setTimeout(()=>a(c),c.timeout),delete c.timeout);const d=[...u];return d[f]=c,d}return u})}return{addAlert:o,removeAlert:a,removeAlerts:i,replaceAlert:l}});return v.jsxs(vh.Provider,{value:r,children:[v.jsx(C.AlertGroup,{isToast:!0,isLiveRegion:!0,children:t.map((i,a)=>x.createElement(C.Alert,{...i,key:i.key??i.id??a,actionClose:v.jsx(C.AlertActionCloseButton,{onClose:()=>r.removeAlert(i)})}))}),e.children]})}function lj(e){return e instanceof Error?{title:e.message,variant:"danger",timeout:2e3}:{title:"Unknown",variant:"danger",timeout:2e3}}class wb extends x.Component{constructor(){super(...arguments),this.state={hasError:!1}}static getDerivedStateFromError(t){return{hasError:!0}}componentDidCatch(t,n){console.error("Uncaught error:",t,n)}render(){return this.state.hasError?v.jsx("h1",{children:this.props.message}):this.props.children}}function Ob(e){const t=cn("xxl")&&e.disablePadding!==!0,[n]=mt();return v.jsx(wb,{message:n.errorText,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",overflow:"hidden",backgroundColor:"var(--pf-c-page__main-section--BackgroundColor)",...e.style},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%",margin:t?24:0,overflow:"hidden",border:t?"thin solid var(--pf-global--BorderColor--100)":void 0,backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:e.children})})})}function sj(e){const{bytes:t}=e;if(!+t)return v.jsx(v.Fragment,{});const n=1024,r=e.decimals?e.decimals:0,i=r<0?0:r,a=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(t)/Math.log(n));return v.jsx(v.Fragment,{children:`${parseFloat((t/Math.pow(n,o)).toFixed(i))} ${a[o]}`})}const cj=x.createContext(void 0),uj=x.createContext(()=>null),Cb=x.createContext([void 0,()=>alert("Use PageDialogProvider")]);function Ab(e){const t=x.useState();return v.jsxs(Cb.Provider,{value:t,children:[t[0]!==void 0&&t[0],e.children]})}function _r(){return x.useContext(Cb)}function ze(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function qa(e,t,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function l(u){try{c(r.next(u))}catch(f){o(f)}}function s(u){try{c(r.throw(u))}catch(f){o(f)}}function c(u){u.done?a(u.value):i(u.value).then(l,s)}c((r=r.apply(e,t||[])).next())})}function Ga(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(c){return function(u){return s([c,u])}}function s(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(a=c[0]&2?i.return:c[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,c[1])).done)return a;switch(i=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){n.label=c[1];break}if(c[0]===6&&n.label<a[1]){n.label=a[1],a=c;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(c);break}a[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(u){c=[6,u],i=0}finally{r=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Tb(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(l){o={error:l}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function kb(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function We(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const i=typeof r;if(i==="string"||i==="number")t.push(r);else if(Array.isArray(r)&&r.length){const a=We(...r);a&&t.push(a)}else if(i==="object")for(const a in r)n.call(r,a)&&r[a]&&t.push(a)}),t.join(" ")}const S1e="",$e={breadcrumb:"pf-c-breadcrumb",divider:"pf-c-divider",menu:"pf-c-menu",menuBreadcrumb:"pf-c-menu__breadcrumb",menuContent:"pf-c-menu__content",menuFooter:"pf-c-menu__footer",menuGroup:"pf-c-menu__group",menuGroupTitle:"pf-c-menu__group-title",menuHeader:"pf-c-menu__header",menuItem:"pf-c-menu__item",menuItemAction:"pf-c-menu__item-action",menuItemActionIcon:"pf-c-menu__item-action-icon",menuItemCheck:"pf-c-menu__item-check",menuItemDescription:"pf-c-menu__item-description",menuItemExternalIcon:"pf-c-menu__item-external-icon",menuItemIcon:"pf-c-menu__item-icon",menuItemMain:"pf-c-menu__item-main",menuItemSelectIcon:"pf-c-menu__item-select-icon",menuItemText:"pf-c-menu__item-text",menuItemToggleIcon:"pf-c-menu__item-toggle-icon",menuList:"pf-c-menu__list",menuListItem:"pf-c-menu__list-item",menuSearch:"pf-c-menu__search",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",flyout:"pf-m-flyout",top:"pf-m-top",left:"pf-m-left",drilldown:"pf-m-drilldown",drilledIn:"pf-m-drilled-in",currentPath:"pf-m-current-path",static:"pf-m-static",plain:"pf-m-plain",scrollable:"pf-m-scrollable",nav:"pf-m-nav",focus:"pf-m-focus",disabled:"pf-m-disabled",load:"pf-m-load",loading:"pf-m-loading",danger:"pf-m-danger",selected:"pf-m-selected",favorite:"pf-m-favorite",favorited:"pf-m-favorited"},themeDark:"pf-theme-dark"};let fj=0;class bh extends F.Component{constructor(){super(...arguments),this.id=`${this.props.prefix}${fj++}`}render(){return this.props.children(this.id)}}bh.displayName="GenerateId",bh.defaultProps={prefix:"pf-random-id-"};const dj="*";let hj=0;const Eb="OUIA-Generated-",_h={};function xh(e,t,n=!0){return{"data-ouia-component-type":`PF4/${e}`,"data-ouia-safe":n,"data-ouia-component-id":t}}function Sh(e,t){try{let n;return typeof window<"u"?n=`${window.location.href}-${e}-${t||""}`:n=`${e}-${t||""}`,_h[n]||(_h[n]=0),`${Eb}${e}-${t?`${t}-`:""}${++_h[n]}`}catch{return`${Eb}${e}-${t?`${t}-`:""}${++hj}`}}const Ya=!!(typeof window<"u"&&window.document&&window.document.createElement);function fl(e){const t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}function xr(e){if(e.toString()!=="[object Window]"){const t=e.ownerDocument;return t?t.defaultView:window}return e}function wh(e){const t=xr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function dl(e){const t=xr(e).Element;return e instanceof t||e instanceof Element}function Sr(e){const t=xr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function mj(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gj(e){return e===xr(e)||!Sr(e)?wh(e):mj(e)}function er(e){return e?(e.nodeName||"").toLowerCase():null}function Vr(e){return(dl(e)?e.ownerDocument:e.document).documentElement}function Oh(e){return fl(Vr(e)).left+wh(e).scrollLeft}function Hr(e){return xr(e).getComputedStyle(e)}function Ch(e){const{overflow:t,overflowX:n,overflowY:r}=Hr(e);return/auto|scroll|overlay|hidden/.test(t+r+n)}function pj(e,t,n=!1){const r=Vr(t),i=fl(e),a=Sr(t);let o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(a||!a&&!n)&&((er(t)!=="body"||Ch(r))&&(o=gj(t)),Sr(t)?(l=fl(t),l.x+=t.clientLeft,l.y+=t.clientTop):r&&(l.x=Oh(r))),{x:i.left+o.scrollLeft-l.x,y:i.top+o.scrollTop-l.y,width:i.width,height:i.height}}function Ah(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}function sc(e){return er(e)==="html"?e:e.assignedSlot||e.parentNode||e.host||Vr(e)}function Pb(e){return["html","body","#document"].indexOf(er(e))>=0?e.ownerDocument.body:Sr(e)&&Ch(e)?e:Pb(sc(e))}function hl(e,t=[]){const n=Pb(e),r=er(n)==="body",i=xr(n),a=r?[i].concat(i.visualViewport||[],Ch(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(hl(sc(a)))}function vj(e){return["table","td","th"].indexOf(er(e))>=0}function jb(e){if(!Sr(e)||Hr(e).position==="fixed")return null;const t=e.offsetParent;if(t){const n=Vr(t);if(er(t)==="body"&&Hr(t).position==="static"&&Hr(n).position!=="static")return n}return t}function yj(e){let t=sc(e);for(;Sr(t)&&["html","body"].indexOf(er(t))<0;){const n=Hr(t);if(n.transform!=="none"||n.perspective!=="none"||n.willChange&&n.willChange!=="auto")return t;t=t.parentNode}return null}function ml(e){const t=xr(e);let n=jb(e);for(;n&&vj(n)&&Hr(n).position==="static";)n=jb(n);return n&&er(n)==="body"&&Hr(n).position==="static"?t:n||yj(e)||t}const jn="top",tr="bottom",nr="right",Mn="left",Th="auto",gl=[jn,tr,nr,Mn],Ka="start",kh="end",bj="clippingParents",Mb="viewport",pl="popper",_j="reference",Db=gl.reduce((e,t)=>e.concat([`${t}-${Ka}`,`${t}-${kh}`]),[]),Ib=[...gl,Th].reduce((e,t)=>e.concat([t,`${t}-${Ka}`,`${t}-${kh}`]),[]),xj=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Sj(e){const t=new Map,n=new Set,r=[];e.forEach(a=>{t.set(a.name,a)});function i(a){n.add(a.name),[...a.requires||[],...a.requiresIfExists||[]].forEach(l=>{if(!n.has(l)){const s=t.get(l);s&&i(s)}}),r.push(a)}return e.forEach(a=>{n.has(a.name)||i(a)}),r}function wj(e){const t=Sj(e);return xj.reduce((n,r)=>n.concat(t.filter(i=>i.phase===r)),[])}function Oj(e){let t;return()=>(t||(t=new Promise(n=>{Promise.resolve().then(()=>{t=void 0,n(e())})})),t)}function wr(e){return e.split("-")[0]}function Cj(e){const t=e.reduce((n,r)=>{const i=n[r.name];return n[r.name]=i?Object.assign(Object.assign(Object.assign({},i),r),{options:Object.assign(Object.assign({},i.options),r.options),data:Object.assign(Object.assign({},i.data),r.data)}):r,n},{});return Object.keys(t).map(n=>t[n])}function Aj(e){const t=xr(e),n=Vr(e),r=t.visualViewport;let i=n.clientWidth,a=n.clientHeight,o=0,l=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,l=r.offsetTop)),{width:i,height:a,x:o+Oh(e),y:l}}function Tj(e){const t=Vr(e),n=wh(e),r=e.ownerDocument.body,i=Math.max(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Math.max(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let o=-n.scrollLeft+Oh(e);const l=-n.scrollTop;return Hr(r||t).direction==="rtl"&&(o+=Math.max(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function Lb(e,t){const n=!!(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){let r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Eh(e){return Object.assign(Object.assign({},e),{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kj(e){const t=fl(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function $b(e,t){return t===Mb?Eh(Aj(e)):Sr(t)?kj(t):Eh(Tj(Vr(e)))}function Ej(e){const t=hl(sc(e)),r=["absolute","fixed"].indexOf(Hr(e).position)>=0&&Sr(e)?ml(e):e;return dl(r)?t.filter(i=>dl(i)&&Lb(i,r)&&er(i)!=="body"):[]}function Pj(e,t,n){const i=[...t==="clippingParents"?Ej(e):[].concat(t),n],a=i[0],o=i.reduce((l,s)=>{const c=$b(e,s);return l.top=Math.max(c.top,l.top),l.right=Math.min(c.right,l.right),l.bottom=Math.min(c.bottom,l.bottom),l.left=Math.max(c.left,l.left),l},$b(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function vl(e){return e.split("-")[1]}function Ph(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Fb({reference:e,element:t,placement:n}){const r=n?wr(n):null,i=n?vl(n):null,a=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2;let l;switch(r){case jn:l={x:a,y:e.y-t.height};break;case tr:l={x:a,y:e.y+e.height};break;case nr:l={x:e.x+e.width,y:o};break;case Mn:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}const s=r?Ph(r):null;if(s!=null){const c=s==="y"?"height":"width";switch(i){case Ka:l[s]=Math.floor(l[s])-Math.floor(e[c]/2-t[c]/2);break;case kh:l[s]=Math.floor(l[s])+Math.ceil(e[c]/2-t[c]/2);break}}return l}function Nb(){return{top:0,right:0,bottom:0,left:0}}function zb(e){return Object.assign(Object.assign({},Nb()),e)}function Bb(e,t){return t.reduce((n,r)=>(n[r]=e,n),{})}function yl(e,t={}){const{placement:n=e.placement,boundary:r=bj,rootBoundary:i=Mb,elementContext:a=pl,altBoundary:o=!1,padding:l=0}=t,s=zb(typeof l!="number"?l:Bb(l,gl)),c=a===pl?_j:pl,u=e.elements.reference,f=e.rects.popper,d=e.elements[o?c:a],h=Pj(dl(d)?d:d.contextElement||Vr(e.elements.popper),r,i),p=fl(u),g=Fb({reference:p,element:f,strategy:"absolute",placement:n}),y=Eh(Object.assign(Object.assign({},f),g)),_=a===pl?y:p,b={top:h.top-_.top+s.top,bottom:_.bottom-h.bottom+s.bottom,left:h.left-_.left+s.left,right:_.right-h.right+s.right},S=e.modifiersData.offset;if(a===pl&&S){const O=S[n];Object.keys(b).forEach(w=>{const A=[nr,tr].indexOf(w)>=0?1:-1,T=[jn,tr].indexOf(w)>=0?"y":"x";b[w]+=O[T]*A})}return b}const Wb={placement:"bottom",modifiers:[],strategy:"absolute"};function Rb(...e){return!e.some(t=>!(t&&typeof t.getBoundingClientRect=="function"))}function jj(e={}){const{defaultModifiers:t=[],defaultOptions:n=Wb}=e;return function(i,a,o=n){let l={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Wb),n),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}},s=[],c=!1;const u={state:l,setOptions(h){d(),l.options=Object.assign(Object.assign(Object.assign({},n),l.options),h),l.scrollParents={reference:dl(i)?hl(i):i.contextElement?hl(i.contextElement):[],popper:hl(a)};const p=wj(Cj([...t,...l.options.modifiers]));return l.orderedModifiers=p.filter(g=>g.enabled),f(),u.update()},forceUpdate(){if(c)return;const{reference:h,popper:p}=l.elements;if(Rb(h,p)){l.rects={reference:pj(h,ml(p),l.options.strategy==="fixed"),popper:Ah(p)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(g=>l.modifiersData[g.name]=Object.assign({},g.data));for(let g=0;g<l.orderedModifiers.length;g++){if(l.reset===!0){l.reset=!1,g=-1;continue}const{fn:y,options:_={},name:b}=l.orderedModifiers[g];typeof y=="function"&&(l=y({state:l,options:_,name:b,instance:u})||l)}}},update:Oj(()=>new Promise(h=>{u.forceUpdate(),h(l)})),destroy(){d(),c=!0}};if(!Rb(i,a))return u;u.setOptions(o).then(h=>{!c&&o.onFirstUpdate&&o.onFirstUpdate(h)});function f(){l.orderedModifiers.forEach(({name:h,options:p={},effect:g})=>{if(typeof g=="function"){const y=g({state:l,name:h,instance:u,options:p}),_=()=>{};s.push(y||_)}})}function d(){s.forEach(h=>h()),s=[]}return u}}const cc={passive:!0};function Mj({state:e,instance:t,options:n}){const{scroll:r=!0,resize:i=!0}=n,a=xr(e.elements.popper),o=[...e.scrollParents.reference,...e.scrollParents.popper];return r&&o.forEach(l=>{l.addEventListener("scroll",t.update,cc)}),i&&a.addEventListener("resize",t.update,cc),()=>{r&&o.forEach(l=>{l.removeEventListener("scroll",t.update,cc)}),i&&a.removeEventListener("resize",t.update,cc)}}const Dj={name:"eventListeners",enabled:!0,phase:"write",fn:()=>{},effect:Mj,data:{}};function Ij({state:e,name:t}){e.modifiersData[t]=Fb({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Lj={name:"popperOffsets",enabled:!0,phase:"read",fn:Ij,data:{}},$j={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fj({x:e,y:t}){const r=window.devicePixelRatio||1;return{x:Math.round(e*r)/r||0,y:Math.round(t*r)/r||0}}function Vb({popper:e,popperRect:t,placement:n,offsets:r,position:i,gpuAcceleration:a,adaptive:o}){let{x:l,y:s}=Fj(r);const c=r.hasOwnProperty("x"),u=r.hasOwnProperty("y");let f=Mn,d=jn;const h=window;if(o){let g=ml(e);g===xr(e)&&(g=Vr(e)),n===jn&&(d=tr,s-=g.clientHeight-t.height,s*=a?1:-1),n===Mn&&(f=nr,l-=g.clientWidth-t.width,l*=a?1:-1)}const p=Object.assign({position:i},o&&$j);return a?Object.assign(Object.assign({},p),{[d]:u?"0":"",[f]:c?"0":"",transform:(h.devicePixelRatio||1)<2?`translate(${l}px, ${s}px)`:`translate3d(${l}px, ${s}px, 0)`}):Object.assign(Object.assign({},p),{[d]:u?`${s}px`:"",[f]:c?`${l}px`:"",transform:""})}function Nj({state:e,options:t}){const{gpuAcceleration:n=!0,adaptive:r=!0}=t,i={placement:wr(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),Vb(Object.assign(Object.assign({},i),{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),Vb(Object.assign(Object.assign({},i),{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-placement":e.placement})}const zj={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nj,data:{}};function Bj({state:e}){Object.keys(e.elements).forEach(t=>{const n=e.styles[t]||{},r=e.attributes[t]||{},i=e.elements[t];!Sr(i)||!er(i)||(Object.assign(i.style,n),Object.keys(r).forEach(a=>{const o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function Wj({state:e}){const t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),()=>{Object.keys(e.elements).forEach(n=>{const r=e.elements[n],i=e.attributes[n]||{},o=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:t[n]).reduce((l,s)=>(l[s]="",l),{});!Sr(r)||!er(r)||(Object.assign(r.style,o),Object.keys(i).forEach(l=>{r.removeAttribute(l)}))})}}const Rj={name:"applyStyles",enabled:!0,phase:"write",fn:Bj,effect:Wj,requires:["computeStyles"]};function Vj(e,t,n){const r=wr(e),i=[Mn,jn].indexOf(r)>=0?-1:1;let[a,o]=typeof n=="function"?n(Object.assign(Object.assign({},t),{placement:e})):n;return a=a||0,o=(o||0)*i,[Mn,nr].indexOf(r)>=0?{x:o,y:a}:{x:a,y:o}}function Hj({state:e,options:t,name:n}){const{offset:r=[0,0]}=t,i=Ib.reduce((l,s)=>(l[s]=Vj(s,e.rects,r),l),{}),{x:a,y:o}=i[e.placement];e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=a,e.modifiersData.popperOffsets.y+=o),e.modifiersData[n]=i}const Uj={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Hj},qj={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(e){return e.replace(/left|right|bottom|top/g,t=>qj[t])}const Gj={start:"end",end:"start"};function Hb(e){return e.replace(/start|end/g,t=>Gj[t])}function Yj(e,t={}){const{placement:n,boundary:r,rootBoundary:i,padding:a,flipVariations:o,allowedAutoPlacements:l=Ib}=t,s=vl(n),c=s?o?Db:Db.filter(d=>vl(d)===s):gl;let u=c.filter(d=>l.indexOf(d)>=0);u.length===0&&(u=c);const f=u.reduce((d,h)=>(d[h]=yl(e,{placement:h,boundary:r,rootBoundary:i,padding:a})[wr(h)],d),{});return Object.keys(f).sort((d,h)=>f[d]-f[h])}function Kj(e){if(wr(e)===Th)return[];const t=uc(e);return[Hb(e),t,Hb(t)]}function Zj({state:e,options:t,name:n}){if(e.modifiersData[n]._skip)return;const{mainAxis:r=!0,altAxis:i=!0,fallbackPlacements:a,padding:o,boundary:l,rootBoundary:s,altBoundary:c,flipVariations:u=!0,allowedAutoPlacements:f}=t,d=e.options.placement,p=wr(d)===d,g=a||(p||!u?[uc(d)]:Kj(d)),y=[d,...g].reduce((A,T)=>A.concat(wr(T)===Th?Yj(e,{placement:T,boundary:l,rootBoundary:s,padding:o,flipVariations:u,allowedAutoPlacements:f}):T),[]),_=e.rects.reference,b=e.rects.popper,S=new Map;let O=!0,w=y[0];for(let A=0;A<y.length;A++){const T=y[A],k=wr(T),j=vl(T)===Ka,N=[jn,tr].indexOf(k)>=0,M=N?"width":"height",E=yl(e,{placement:T,boundary:l,rootBoundary:s,altBoundary:c,padding:o});let I=N?j?nr:Mn:j?tr:jn;_[M]>b[M]&&(I=uc(I));const D=uc(I),W=[];if(r&&W.push(E[k]<=0),i&&W.push(E[I]<=0,E[D]<=0),W.every(X=>X)){w=T,O=!1;break}S.set(T,W)}if(O){const A=u?3:1;for(let T=A;T>0;T--){const k=y.find(j=>{const N=S.get(j);if(N)return N.slice(0,T).every(M=>M)});if(k){w=k;break}}}e.placement!==w&&(e.modifiersData[n]._skip=!0,e.placement=w,e.reset=!0)}const Xj={name:"flip",enabled:!0,phase:"main",fn:Zj,requiresIfExists:["offset"],data:{_skip:!1}};function Jj(e){return e==="x"?"y":"x"}function fc(e,t,n){return Math.max(e,Math.min(t,n))}function Qj({state:e,options:t,name:n}){const{mainAxis:r=!0,altAxis:i=!1,boundary:a,rootBoundary:o,altBoundary:l,padding:s,tether:c=!0,tetherOffset:u=0}=t,f=yl(e,{boundary:a,rootBoundary:o,padding:s,altBoundary:l}),d=wr(e.placement),h=vl(e.placement),p=!h,g=Ph(d),y=Jj(g),_=e.modifiersData.popperOffsets,b=e.rects.reference,S=e.rects.popper,O=typeof u=="function"?u(Object.assign(Object.assign({},e.rects),{placement:e.placement})):u,w={x:0,y:0};if(_){if(r){const A=g==="y"?jn:Mn,T=g==="y"?tr:nr,k=g==="y"?"height":"width",j=_[g],N=_[g]+f[A],M=_[g]-f[T],E=c?-S[k]/2:0,I=h===Ka?b[k]:S[k],D=h===Ka?-S[k]:-b[k],W=e.elements.arrow,X=c&&W?Ah(W):{width:0,height:0},ne=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Nb(),re=ne[A],Z=ne[T],R=fc(0,b[k],X[k]),J=p?b[k]/2-E-R-re-O:I-R-re-O,U=p?-b[k]/2+E+R+Z+O:D+R+Z+O,Y=e.elements.arrow&&ml(e.elements.arrow),G=Y?g==="y"?Y.clientTop||0:Y.clientLeft||0:0,ie=e.modifiersData.offset?e.modifiersData.offset[e.placement][g]:0,z=_[g]+J-ie-G,se=_[g]+U-ie,K=fc(c?Math.min(N,z):N,j,c?Math.max(M,se):M);_[g]=K,w[g]=K-j}if(i){const A=g==="x"?jn:Mn,T=g==="x"?tr:nr,k=_[y],j=k+f[A],N=k-f[T],M=fc(j,k,N);_[y]=M,w[y]=M-k}e.modifiersData[n]=w}}const e7={name:"preventOverflow",enabled:!0,phase:"main",fn:Qj,requiresIfExists:["offset"]};function t7({state:e,name:t}){const n=e.elements.arrow,r=e.modifiersData.popperOffsets,i=wr(e.placement),a=Ph(i),l=[Mn,nr].indexOf(i)>=0?"height":"width";if(!n||!r)return;const s=e.modifiersData[`${t}#persistent`].padding,c=Ah(n),u=a==="y"?jn:Mn,f=a==="y"?tr:nr,d=e.rects.reference[l]+e.rects.reference[a]-r[a]-e.rects.popper[l],h=r[a]-e.rects.reference[a],p=ml(n),g=p?a==="y"?p.clientHeight||0:p.clientWidth||0:0,y=d/2-h/2,_=s[u],b=g-c[l]-s[f],S=g/2-c[l]/2+y,O=fc(_,S,b),w=a;e.modifiersData[t]={[w]:O,centerOffset:O-S}}function n7({state:e,options:t,name:n}){let{element:r="[data-popper-arrow]",padding:i=0}=t;r!=null&&(typeof r=="string"&&(r=e.elements.popper.querySelector(r),!r)||Lb(e.elements.popper,r)&&(e.elements.arrow=r,e.modifiersData[`${n}#persistent`]={padding:zb(typeof i!="number"?i:Bb(i,gl))}))}const r7={name:"arrow",enabled:!0,phase:"main",fn:t7,effect:n7,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ub(e,t,n={x:0,y:0}){return{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function qb(e){return[jn,nr,tr,Mn].some(t=>e[t]>=0)}function i7({state:e,name:t}){const n=e.rects.reference,r=e.rects.popper,i=e.modifiersData.preventOverflow,a=yl(e,{elementContext:"reference"}),o=yl(e,{altBoundary:!0}),l=Ub(a,n),s=Ub(o,r,i),c=qb(l),u=qb(s);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:u},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{"data-popper-reference-hidden":c,"data-popper-escaped":u})}const a7=jj({defaultModifiers:[Dj,Lj,zj,Rj,Uj,Xj,e7,r7,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:i7}]}),jh=Ya?F.useLayoutEffect:F.useEffect,o7=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Gb=e=>e.reduce((t,[n,r])=>(t[n]=r,t),{}),l7=[],s7=(e,t,n={})=>{const r=F.useRef(null),i={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||l7},[a,o]=F.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"}},attributes:{}}),l=F.useMemo(()=>({name:"updateState",enabled:!0,phase:"write",fn:({state:u})=>{const f=Object.keys(u.elements);o({styles:Gb(f.map(d=>[d,u.styles[d]||{}])),attributes:Gb(f.map(d=>[d,u.attributes[d]]))})},requires:["computeStyles"]}),[]),s=F.useMemo(()=>{const u={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[...i.modifiers,l,{name:"applyStyles",enabled:!1}]};return o7(r.current,u)?r.current||u:(r.current=u,u)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),c=F.useRef();return jh(()=>{c&&c.current&&c.current.setOptions(s)},[s]),jh(()=>{if(e==null||t==null)return;const f=(n.createPopper||a7)(e,t,s);return c.current=f,()=>{f.destroy(),c.current=null}},[e,t,n.createPopper]),{state:c.current?c.current.state:null,styles:a.styles,attributes:a.attributes,update:c.current?c.current.update:null,forceUpdate:c.current?c.current.forceUpdate:null}};class Mh extends F.Component{componentDidMount(){const t=zy.findDOMNode(this);this.props.onFoundRef(t)}render(){return this.props.children||null}}Mh.displayName="FindRefWrapper";const I1e="",c7={left:"right",right:"left",bottom:"top",top:"bottom","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},u7=e=>e.replace(/left|right|bottom|top|top-start|top-end|bottom-start|bottom-end|right-start|right-end|left-start|left-end/g,t=>c7[t]),Yb=({trigger:e,popper:t,popperMatchesTriggerWidth:n=!0,direction:r="down",position:i="left",placement:a,appendTo:o=()=>document.body,zIndex:l=9999,isVisible:s=!0,positionModifiers:c,distance:u=0,onMouseEnter:f,onMouseLeave:d,onFocus:h,onBlur:p,onDocumentClick:g,onTriggerClick:y,onTriggerEnter:_,onPopperClick:b,onPopperMouseEnter:S,onPopperMouseLeave:O,onDocumentKeyDown:w,enableFlip:A=!0,flipBehavior:T="flip",reference:k,removeFindDomNode:j=!1,popperRef:N})=>{const[M,E]=F.useState(null),[I,D]=F.useState(null),[W,X]=F.useState(null),[ne,re]=F.useState(!1),Z=I||M,R=F.useCallback(ge=>g(ge,Z,W),[s,M,I,W,g]);F.useEffect(()=>{re(!0)},[]),F.useEffect(()=>{k&&(k.current?D(k.current):typeof k=="function"&&D(k()))},[k]),F.useEffect(()=>{N&&(N.current?X(N.current):typeof N=="function"&&X(N()))},[s,N]);const J=(ge,P,V,ee=!1)=>{ge&&P&&P.addEventListener(V,ge,{capture:ee})},U=(ge,P,V,ee=!1)=>{ge&&P&&P.removeEventListener(V,ge,{capture:ee})};F.useEffect(()=>{J(f,Z,"mouseenter"),J(d,Z,"mouseleave"),J(h,Z,"focus"),J(p,Z,"blur"),J(y,Z,"click"),J(_,Z,"keydown"),J(b,W,"click"),J(S,W,"mouseenter"),J(O,W,"mouseleave"),g&&J(R,document,"click",!0),J(w,document,"keydown",!0);const ge=new MutationObserver(()=>{Q&&Q()});return W&&ge.observe(W,{attributes:!0,childList:!0,subtree:!0}),()=>{U(f,Z,"mouseenter"),U(d,Z,"mouseleave"),U(h,Z,"focus"),U(p,Z,"blur"),U(y,Z,"click"),U(_,Z,"keydown"),U(b,W,"click"),U(S,W,"mouseenter"),U(O,W,"mouseleave"),g&&U(R,document,"click",!0),U(w,document,"keydown",!0),ge.disconnect()}},[M,W,f,d,h,p,y,_,b,S,O,g,w,I]);const Y=()=>{if(a)return a;let ge=r==="up"?"top":"bottom";return i!=="center"&&(ge=`${ge}-${i==="right"?"end":"start"}`),ge},G=F.useMemo(Y,[r,i,a]),ie=F.useMemo(()=>u7(Y()),[r,i,a]),z=F.useMemo(()=>({name:"sameWidth",enabled:n,phase:"beforeWrite",requires:["computeStyles"],fn:({state:ge})=>{ge.styles.popper.width=`${ge.rects.reference.width}px`},effect:({state:ge})=>(ge.elements.popper.style.width=`${ge.elements.reference.offsetWidth}px`,()=>{})}),[n]),{styles:se,attributes:K,update:Q,forceUpdate:te}=s7(Z,W,{placement:G,modifiers:[{name:"offset",options:{offset:[0,u]}},{name:"preventOverflow",enabled:!1},{name:"hide",enabled:!0},{name:"flip",enabled:G.startsWith("auto")||A,options:{fallbackPlacements:T==="flip"?[ie]:T}},z]});F.useEffect(()=>{te&&te()},[t]);const ce=()=>{if(K&&K.popper&&K.popper["data-popper-placement"]){const ge=K.popper["data-popper-placement"];return c[ge]}return c.top},L=Object.assign({className:We(t.props&&t.props.className,c&&ce()),style:Object.assign(Object.assign(Object.assign({},t.props&&t.props.style||{}),se.popper),{zIndex:l})},K.popper),xe=F.cloneElement(t,L),Se=()=>typeof o=="function"?o():o;let be;return j?be=F.createElement("div",{style:{display:"contents"},ref:ge=>X(ge==null?void 0:ge.firstElementChild)},xe):N?be=xe:be=F.createElement(Mh,{onFoundRef:ge=>X(ge)},xe),F.createElement(F.Fragment,null,!k&&e&&F.isValidElement(e)&&!j&&F.createElement(Mh,{onFoundRef:ge=>E(ge)},e),!k&&e&&F.isValidElement(e)&&j&&F.createElement("div",{style:{display:"contents"},ref:ge=>E(ge==null?void 0:ge.firstElementChild)},e),ne&&s&&zy.createPortal(be,Se()))};Yb.displayName="Popper";const f7=(e,t,n=c=>document.activeElement.contains(c),r=c=>c,i=["A","BUTTON","INPUT"],a=!1,o=!1,l=!0,s=!0)=>{const c=document.activeElement,u=e.key;let f=null;if(!a&&["ArrowUp","ArrowDown"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){let g=0;for(;!f&&g<t.length&&g*-1<t.length;)u==="ArrowUp"?g--:g++,d=p+g,d>=t.length&&(d=0),d<0&&(d=t.length-1),f=r(t[d])}})}if(!o&&["ArrowLeft","ArrowRight"].includes(u)){e.preventDefault(),e.stopImmediatePropagation();let d=-1;t.forEach((h,p)=>{if(n(h)){const g=t[p].querySelectorAll(i.join(","));if(!g.length||s){let y=c;for(;y;)if(y=u==="ArrowLeft"?y.previousElementSibling:y.nextElementSibling,y&&i.includes(y.tagName)){f=y;break}}else g.forEach((y,_)=>{e.target===y&&(d=_+(u==="ArrowLeft"?-1:1),d>=g.length&&(d=0),d<0&&(d=g.length-1),f=g[d])})}})}f&&(l&&(c.tabIndex=-1,f.tabIndex=0),f.focus())};class Dh extends F.Component{constructor(){super(...arguments),this.keyHandler=t=>{const{isEventFromContainer:n}=this.props;if(n?!n(t):!this._isEventFromContainer(t))return;const{isActiveElement:r,getFocusableElement:i,noVerticalArrowHandling:a,noHorizontalArrowHandling:o,noEnterHandling:l,noSpaceHandling:s,updateTabIndex:c,validSiblingTags:u,additionalKeyHandler:f,createNavigableElements:d,onlyTraverseSiblings:h}=this.props;f&&f(t);const p=d();if(!p){console.warn("No navigable elements have been passed to the KeyboardHandler. Keyboard navigation provided by this component will be ignored.");return}const g=t.key;l||g==="Enter"&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),s||g===" "&&(t.preventDefault(),t.stopImmediatePropagation(),document.activeElement.click()),f7(t,p,r,i,u,a,o,c,h)},this._isEventFromContainer=t=>{const{containerRef:n}=this.props;return n.current&&n.current.contains(t.target)}}componentDidMount(){Ya&&window.addEventListener("keydown",this.keyHandler)}componentWillUnmount(){Ya&&window.removeEventListener("keydown",this.keyHandler)}render(){return null}}Dh.displayName="KeyboardHandler",Dh.defaultProps={containerRef:null,createNavigableElements:()=>null,isActiveElement:e=>document.activeElement===e,getFocusableElement:e=>e,validSiblingTags:["BUTTON","A"],onlyTraverseSiblings:!0,updateTabIndex:!0,noHorizontalArrowHandling:!1,noVerticalArrowHandling:!1,noEnterHandling:!1,noSpaceHandling:!1};const Zi=F.createContext({menuId:null,parentMenu:null,onActionClick:()=>null,onSelect:()=>null,activeItemId:null,selected:null,drilledInMenus:[],drilldownItemPath:[],onDrillIn:null,onDrillOut:null,onGetMenuHeight:()=>null,flyoutRef:null,setFlyoutRef:()=>null,disableHover:!1,role:"menu"}),Kb=F.createContext({itemId:null,isDisabled:!1});class dc extends F.Component{constructor(t){super(t),this.menuRef=F.createRef(),this.activeMenu=null,this.state={ouiaStateId:Sh(hc.displayName),searchInputValue:"",transitionMoveTarget:null,flyoutRef:null,disableHover:!1,currentDrilldownMenuId:this.props.id},this.handleDrilldownTransition=n=>{const r=this.menuRef.current;if(!(!r||r!==n.target.closest(".pf-c-menu")&&!Array.from(r.getElementsByClassName("pf-c-menu")).includes(n.target.closest(".pf-c-menu"))))if(this.state.transitionMoveTarget)this.state.transitionMoveTarget.focus(),this.setState({transitionMoveTarget:null});else{const i=r.querySelector("#"+this.props.activeMenu)||r||null,a=Array.from(i.getElementsByTagName("UL")[0].children);if(!this.state.currentDrilldownMenuId||i.id!==this.state.currentDrilldownMenuId)this.setState({currentDrilldownMenuId:i.id});else return;const o=a.filter(l=>!(l.classList.contains("pf-m-disabled")||l.classList.contains("pf-c-divider")))[0].firstChild;o.focus(),o.tabIndex=0}},this.handleExtraKeys=n=>{const r=this.props.containsDrilldown,i=document.activeElement;if(n.target.closest(".pf-c-menu")!==this.activeMenu&&!n.target.classList.contains("pf-c-breadcrumb__link")&&(this.activeMenu=n.target.closest(".pf-c-menu"),this.setState({disableHover:!0})),n.target.tagName==="INPUT")return;const a=this.activeMenu,o=n.key,l=i.classList.contains("pf-c-breadcrumb__link")||i.classList.contains("pf-c-dropdown__toggle");if(o===" "||o==="Enter"){if(n.preventDefault(),r&&!l){if(i.closest("li").classList.contains("pf-m-current-path")&&a.parentElement.tagName==="LI")i.tabIndex=-1,a.parentElement.firstChild.tabIndex=0,this.setState({transitionMoveTarget:a.parentElement.firstChild});else if(i.nextElementSibling&&i.nextElementSibling.classList.contains("pf-c-menu")){const c=Array.from(i.nextElementSibling.getElementsByTagName("UL")[0].children).filter(u=>!(u.classList.contains("pf-m-disabled")||u.classList.contains("pf-c-divider")));i.tabIndex=-1,c[0].firstChild.tabIndex=0,this.setState({transitionMoveTarget:c[0].firstChild})}}document.activeElement.click()}},this.createNavigableElements=()=>this.props.containsDrilldown?this.activeMenu?Array.from(this.activeMenu.getElementsByTagName("UL")[0].children).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[]:this.menuRef.current?Array.from(this.menuRef.current.getElementsByTagName("LI")).filter(r=>!(r.classList.contains("pf-m-disabled")||r.classList.contains("pf-c-divider"))):[],t.innerRef&&(this.menuRef=t.innerRef)}allowTabFirstItem(){const t=this.menuRef.current;if(t){const n=t.querySelector("ul button:not(:disabled), ul a:not(:disabled)");n&&(n.tabIndex=0)}}componentDidMount(){this.context&&this.setState({disableHover:this.context.disableHover}),Ya&&window.addEventListener("transitionend",this.props.isRootMenu?this.handleDrilldownTransition:null),this.allowTabFirstItem()}componentWillUnmount(){Ya&&window.removeEventListener("transitionend",this.handleDrilldownTransition)}componentDidUpdate(t){t.children!==this.props.children&&this.allowTabFirstItem()}render(){const t=this.props,{"aria-label":n,id:r,children:i,className:a,onSelect:o,selected:l=null,onActionClick:s,ouiaId:c,ouiaSafe:u,containsFlyout:f,isNavFlyout:d,containsDrilldown:h,isMenuDrilledIn:p,isPlain:g,isScrollable:y,drilldownItemPath:_,drilledInMenus:b,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,parentMenu:A=null,activeItemId:T=null,innerRef:k,isRootMenu:j,activeMenu:N,role:M}=t,E=ze(t,["aria-label","id","children","className","onSelect","selected","onActionClick","ouiaId","ouiaSafe","containsFlyout","isNavFlyout","containsDrilldown","isMenuDrilledIn","isPlain","isScrollable","drilldownItemPath","drilledInMenus","onDrillIn","onDrillOut","onGetMenuHeight","parentMenu","activeItemId","innerRef","isRootMenu","activeMenu","role"]),I=p||b&&b.includes(r)||!1;return F.createElement(Zi.Provider,{value:{menuId:r,parentMenu:A||r,onSelect:o,onActionClick:s,activeItemId:T,selected:l,drilledInMenus:b,drilldownItemPath:_,onDrillIn:S,onDrillOut:O,onGetMenuHeight:w,flyoutRef:this.state.flyoutRef,setFlyoutRef:D=>this.setState({flyoutRef:D}),disableHover:this.state.disableHover,role:M}},j&&F.createElement(Dh,{containerRef:this.menuRef||null,additionalKeyHandler:this.handleExtraKeys,createNavigableElements:this.createNavigableElements,isActiveElement:D=>document.activeElement.closest("li")===D||document.activeElement.parentElement===D||document.activeElement.closest(".pf-c-menu__search")===D||document.activeElement.closest("ol")&&document.activeElement.closest("ol").firstChild===D,getFocusableElement:D=>D.tagName==="DIV"&&D.querySelector("input")||D.firstChild.tagName==="LABEL"&&D.querySelector("input")||D.firstChild,noHorizontalArrowHandling:document.activeElement&&(document.activeElement.classList.contains("pf-c-breadcrumb__link")||document.activeElement.classList.contains("pf-c-dropdown__toggle")),noEnterHandling:!0,noSpaceHandling:!0}),F.createElement("div",Object.assign({id:r,className:We($e.menu,g&&$e.modifiers.plain,y&&$e.modifiers.scrollable,f&&$e.modifiers.flyout,d&&$e.modifiers.nav,h&&$e.modifiers.drilldown,I&&$e.modifiers.drilledIn,a),"aria-label":n,ref:this.menuRef},xh(hc.displayName,c!==void 0?c:this.state.ouiaStateId,u),E),i))}}dc.displayName="Menu",dc.contextType=Zi,dc.defaultProps={ouiaSafe:!0,isRootMenu:!0,isPlain:!1,isScrollable:!1,role:"menu"};const hc=F.forwardRef((e,t)=>F.createElement(dc,Object.assign({},e,{innerRef:t})));hc.displayName="Menu";const Zb=F.forwardRef((e,t)=>{const{getHeight:n,children:r,menuHeight:i,maxMenuHeight:a}=e,o=ze(e,["getHeight","children","menuHeight","maxMenuHeight"]),l=F.createRef(),s=(c,u,f)=>{if(c){let d=c.clientHeight,h=null,p=c.closest(`.${$e.menuList}`);for(;p!==null&&p.nodeType===1;)p.classList.contains($e.menuList)&&(h=p),p=p.parentElement;if(h){const g=getComputedStyle(h),y=parseFloat(g.getPropertyValue("padding-top").replace(/px/g,""))+parseFloat(g.getPropertyValue("padding-bottom").replace(/px/g,""))+parseFloat(getComputedStyle(h.parentElement).getPropertyValue("border-bottom-width").replace(/px/g,""));d=d+y}f&&f(u,d),n&&n(d.toString())}return t||l};return F.createElement(Zi.Consumer,null,({menuId:c,onGetMenuHeight:u})=>F.createElement("div",Object.assign({},o,{className:We($e.menuContent,e.className),ref:f=>s(f,c,u),style:Object.assign(Object.assign({},i&&{"--pf-c-menu__content--Height":i}),a&&{"--pf-c-menu__content--MaxHeight":a})}),r))});Zb.displayName="MenuContent";const d7={name:"--pf-c-menu--m-flyout__menu--top-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--top-offset)"},h7={name:"--pf-c-menu--m-flyout__menu--m-left--right-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--m-left--right-offset)"},m7={name:"--pf-c-menu--m-flyout__menu--left-offset",value:"0px",var:"var(--pf-c-menu--m-flyout__menu--left-offset)"};var Xi;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(Xi||(Xi={}));const g7=e=>{switch(e){case Xi.sm:return"1em";case Xi.md:return"1.5em";case Xi.lg:return"2em";case Xi.xl:return"3em";default:return"1em"}};let p7=0;function bl({name:e,xOffset:t=0,yOffset:n=0,width:r,height:i,svgPath:a}){var o;return o=class extends F.Component{constructor(){super(...arguments),this.id=`icon-title-${p7++}`}render(){const s=this.props,{size:c,color:u,title:f,noVerticalAlign:d}=s,h=ze(s,["size","color","title","noVerticalAlign"]),p=!!f,g=g7(c),y=-.125*Number.parseFloat(g),_=d?null:{verticalAlign:`${y}em`},b=[t,n,r,i].join(" ");return F.createElement("svg",Object.assign({style:_,fill:u,height:g,width:g,viewBox:b,"aria-labelledby":p?this.id:null,"aria-hidden":p?null:!0,role:"img"},h),p&&F.createElement("title",{id:this.id},f),F.createElement("path",{d:a}))}},o.displayName=e,o.defaultProps={color:"currentColor",size:Xi.sm,noVerticalAlign:!1},o}const v7=bl({name:"ExternalLinkAltIcon",height:512,width:512,svgPath:"M432,320H400a16,16,0,0,0-16,16V448H64V128H208a16,16,0,0,0,16-16V80a16,16,0,0,0-16-16H48A48,48,0,0,0,0,112V464a48,48,0,0,0,48,48H400a48,48,0,0,0,48-48V336A16,16,0,0,0,432,320ZM488,0h-128c-21.37,0-32.05,25.91-17,41l35.73,35.73L135,320.37a24,24,0,0,0,0,34L157.67,377a24,24,0,0,0,34,0L435.28,133.32,471,169c15,15,41,4.5,41-17V24A24,24,0,0,0,488,0Z",yOffset:0,xOffset:0}),y7=bl({name:"AngleRightIcon",height:512,width:256,svgPath:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z",yOffset:0,xOffset:0}),b7=bl({name:"AngleLeftIcon",height:512,width:256,svgPath:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z",yOffset:0,xOffset:0}),_7=bl({name:"CheckIcon",height:512,width:512,svgPath:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",yOffset:0,xOffset:0}),q1e="",xi={check:"pf-c-check",checkBody:"pf-c-check__body",checkDescription:"pf-c-check__description",checkInput:"pf-c-check__input",checkLabel:"pf-c-check__label",checkLabelRequired:"pf-c-check__label-required",modifiers:{standalone:"pf-m-standalone",disabled:"pf-m-disabled"}},Xb=()=>{};class Za extends F.Component{constructor(t){super(t),this.handleChange=n=>{this.props.onChange(n.currentTarget.checked,n)},this.state={ouiaStateId:Sh(Za.displayName)}}render(){const t=this.props,{"aria-label":n,className:r,onChange:i,isValid:a,isDisabled:o,isRequired:l,isChecked:s,label:c,checked:u,defaultChecked:f,description:d,body:h,ouiaId:p,ouiaSafe:g,component:y}=t,_=ze(t,["aria-label","className","onChange","isValid","isDisabled","isRequired","isChecked","label","checked","defaultChecked","description","body","ouiaId","ouiaSafe","component"]);_.id||console.error("Checkbox:","id is required to make input accessible");const b={};return([!0,!1].includes(u)||s===!0)&&(b.checked=u||s),i!==Xb&&(b.checked=s),[!1,!0].includes(f)&&(b.defaultChecked=f),b.checked=b.checked===null?!1:b.checked,F.createElement(y,{className:We(xi.check,!c&&xi.modifiers.standalone,r)},F.createElement("input",Object.assign({},_,{className:We(xi.checkInput),type:"checkbox",onChange:this.handleChange,"aria-invalid":!a,"aria-label":n,disabled:o,required:l,ref:S=>S&&(S.indeterminate=s===null)},b,xh(Za.displayName,p!==void 0?p:this.state.ouiaStateId,g))),c&&F.createElement("label",{className:We(xi.checkLabel,o&&xi.modifiers.disabled),htmlFor:_.id},c,l&&F.createElement("span",{className:We(xi.checkLabelRequired),"aria-hidden":"true"},dj)),d&&F.createElement("span",{className:We(xi.checkDescription)},d),h&&F.createElement("span",{className:We(xi.checkBody)},h))}}Za.displayName="Checkbox",Za.defaultProps={className:"",isValid:!0,isDisabled:!1,isRequired:!1,isChecked:!1,onChange:Xb,ouiaSafe:!0,component:"div"};const x7=bl({name:"StarIcon",height:512,width:576,svgPath:"M259.3 17.8L194 150.2 47.9 171.5c-26.2 3.8-36.7 36.1-17.7 54.6l105.7 103-25 145.5c-4.5 26.3 23.2 46 46.4 33.7L288 439.6l130.7 68.7c23.2 12.2 50.9-7.4 46.4-33.7l-25-145.5 105.7-103c19-18.5 8.5-50.8-17.7-54.6L382 150.2 316.7 17.8c-11.7-23.6-45.6-23.9-57.4 0z",yOffset:0,xOffset:0}),S7=e=>{var{className:t="",icon:n,onClick:r,"aria-label":i,isFavorited:a=null,isDisabled:o,actionId:l,innerRef:s}=e,c=ze(e,["className","icon","onClick","aria-label","isFavorited","isDisabled","actionId","innerRef"]);return F.createElement(Zi.Consumer,null,({onActionClick:u})=>F.createElement(Kb.Consumer,null,({itemId:f,isDisabled:d})=>{const h=p=>{r&&r(p),u&&u(p,f,l)};return F.createElement("button",Object.assign({className:We($e.menuItemAction,a!==null&&$e.modifiers.favorite,a&&$e.modifiers.favorited,t),"aria-label":i,onClick:h},(o===!0||d===!0)&&{disabled:!0},{ref:s,tabIndex:-1},c),F.createElement("span",{className:We($e.menuItemActionIcon)},n==="favorites"||a!==null?F.createElement(x7,{"aria-hidden":!0}):n))}))},Jb=F.forwardRef((e,t)=>F.createElement(S7,Object.assign({},e,{innerRef:t})));Jb.displayName="MenuItemAction";const Qb=F.createContext({direction:"right"}),w7=e=>{var{children:t,className:n,itemId:r=null,to:i,hasCheck:a=!1,isActive:o=null,isFavorited:l=null,isLoadButton:s=!1,isLoading:c=!1,flyoutMenu:u,direction:f,description:d=null,onClick:h=()=>{},component:p="button",isDisabled:g=!1,isExternalLink:y=!1,isSelected:_=null,isFocused:b,isDanger:S=!1,icon:O,actions:w,onShowFlyout:A,drilldownMenu:T,isOnPath:k,innerRef:j}=e,N=ze(e,["children","className","itemId","to","hasCheck","isActive","isFavorited","isLoadButton","isLoading","flyoutMenu","direction","description","onClick","component","isDisabled","isExternalLink","isSelected","isFocused","isDanger","icon","actions","onShowFlyout","drilldownMenu","isOnPath","innerRef"]);const{menuId:M,parentMenu:E,onSelect:I,onActionClick:D,activeItemId:W,selected:X,drilldownItemPath:ne,onDrillIn:re,onDrillOut:Z,flyoutRef:R,setFlyoutRef:J,disableHover:U,role:Y}=F.useContext(Zi);let G=i?"a":p;a&&!i&&(G="label");const[ie,z]=F.useState(null),se=F.useContext(Qb),[K,Q]=F.useState(se.direction),te=F.useRef(),ce=te===R,L=u!==void 0,xe=le=>{!ce&&le?J(te):ce&&!le&&J(null),A&&le&&A()};jh(()=>{if(L&&te.current&&Ya){const le=te.current.lastElementChild;if(le&&le.classList.contains($e.menu)){const H=te.current.getClientRects()[0],oe=le.getClientRects()[0];if(H&&oe){const Ee=H.x-oe.width,De=window.innerWidth-H.x-H.width-oe.width;let je=K;De<0&&je!=="left"?(Q("left"),je="left"):Ee<0&&je!=="right"&&(Q("right"),je="right");let He=0;Ee<0&&De<0&&(He=je==="right"?-De:-Ee),je==="left"?(le.classList.add($e.modifiers.left),le.style.setProperty(h7.name,`-${He}px`)):le.style.setProperty(m7.name,`-${He}px`);const ht=window.innerHeight-H.y-oe.height;window.innerHeight-oe.height<0&&ht<0||ht<0&&le.style.setProperty(d7.name,`${ht}px`)}}}},[ce,u]),F.useEffect(()=>{Q(se.direction)},[se]),F.useEffect(()=>{if(ie)if(ce){const le=ie.nextElementSibling;Array.from(le.getElementsByTagName("UL")[0].children).filter(oe=>!(oe.classList.contains("pf-m-disabled")||oe.classList.contains("pf-c-divider")))[0].firstChild.focus()}else ie.focus()},[ce,ie]);const Se=le=>{const H=le.key,oe=le.target,Ee=le.type;(H===" "||H==="Enter"||H==="ArrowRight"||Ee==="click")&&(le.stopPropagation(),le.preventDefault(),ce||(xe(!0),z(oe))),(H==="Escape"||H==="ArrowLeft")&&ce&&(le.stopPropagation(),xe(!1))},be=(le,H)=>{H&&H(le,r),h&&h(le)},ge=k&&k||ne&&ne.includes(r)||!1;let P;f&&(f==="down"?P=le=>re&&re(le,M,typeof T=="function"?T().props.id:T.props.id,r):P=le=>Z&&Z(le,E,r));let V={};G==="a"?V={href:i,"aria-disabled":g?!0:null,disabled:null}:G==="button"&&(V={type:"button"}),k?V["aria-expanded"]=!0:L&&(V["aria-haspopup"]="menu",V["aria-expanded"]=ce);const ee=()=>o!==null?o?"page":null:r!==null&&W!==null?r===W:null,he=()=>_!==null?_:X!==null&&r!==null?Array.isArray(X)&&X.includes(r)||r===X:!1,me=()=>{U||(L?xe(!0):J(null))},ue=Y==="listbox";return F.createElement("li",Object.assign({className:We($e.menuListItem,g&&$e.modifiers.disabled,ge&&$e.modifiers.currentPath,s&&$e.modifiers.load,c&&$e.modifiers.loading,b&&$e.modifiers.focus,S&&$e.modifiers.danger,n),onMouseOver:me},u&&{onKeyDown:Se},{ref:te,role:a?"menuitem":"none"},N),F.createElement(bh,null,le=>F.createElement(G,Object.assign({tabIndex:-1,className:We($e.menuItem,he()&&!a&&$e.modifiers.selected,n),"aria-current":ee()},!a&&{disabled:g},!a&&!u&&{role:ue?"option":"menuitem"},!a&&!u&&ue&&{"aria-selected":he()},{ref:j},!a&&{onClick:H=>{be(H,I),P&&P(H),u&&Se(H)}},a&&{htmlFor:le},V),F.createElement("span",{className:We($e.menuItemMain)},f==="up"&&F.createElement("span",{className:We($e.menuItemToggleIcon)},F.createElement(b7,{"aria-hidden":!0})),O&&F.createElement("span",{className:We($e.menuItemIcon)},O),a&&F.createElement("span",{className:We("pf-c-menu__item-check")},F.createElement(Za,{id:le,component:"span",isChecked:_||!1,onChange:H=>be(H,I),isDisabled:g})),F.createElement("span",{className:We($e.menuItemText)},t),y&&F.createElement("span",{className:We($e.menuItemExternalIcon)},F.createElement(v7,{"aria-hidden":!0})),(u||f==="down")&&F.createElement("span",{className:We($e.menuItemToggleIcon)},F.createElement(y7,{"aria-hidden":!0})),he()&&F.createElement("span",{className:We($e.menuItemSelectIcon)},F.createElement(_7,{"aria-hidden":!0}))),d&&f!=="up"&&F.createElement("span",{className:We($e.menuItemDescription)},F.createElement("span",null,d)))),ce&&F.createElement(Zi.Provider,{value:{disableHover:U}},F.createElement(Qb.Provider,{value:{direction:K}},u)),typeof T=="function"?T():T,F.createElement(Kb.Provider,{value:{itemId:r,isDisabled:g}},w,l!==null&&F.createElement(Jb,{icon:"favorites",isFavorited:l,"aria-label":l?"starred":"not starred",onClick:le=>D(le,r),tabIndex:-1,actionId:"fav"})))},e_=F.forwardRef((e,t)=>F.createElement(w7,Object.assign({},e,{innerRef:t})));e_.displayName="MenuItem";const t_=e=>{var{children:t=null,className:n,isAriaMultiselectable:r=!1}=e,i=ze(e,["children","className","isAriaMultiselectable"]);const{role:a}=F.useContext(Zi);return F.createElement("ul",Object.assign({role:a},a==="listbox"&&{"aria-multiselectable":r},{className:We($e.menuList,n)},i),t)};t_.displayName="MenuList";const O7=e=>{var{children:t,className:n,onSelect:r,isOpen:i,selected:a,toggle:o,onOpenChange:l,isPlain:s,minWidth:c,innerRef:u,zIndex:f=9999,role:d="listbox"}=e,h=ze(e,["children","className","onSelect","isOpen","selected","toggle","onOpenChange","isPlain","minWidth","innerRef","zIndex","role"]);const p=x.useRef(),g=x.useRef(),y=x.useRef(),_=u||p;x.useEffect(()=>{const S=w=>{var A,T,k;(i&&l&&(!((A=_.current)===null||A===void 0)&&A.contains(w.target))||!((T=g.current)===null||T===void 0)&&T.contains(w.target))&&(w.key==="Escape"||w.key==="Tab")&&(l(!1),(k=g.current)===null||k===void 0||k.focus())},O=w=>{var A,T,k;i&&(!((A=g.current)===null||A===void 0)&&A.contains(w.target))&&w.detail===0&&setTimeout(()=>{var j;const N=(j=_==null?void 0:_.current)===null||j===void 0?void 0:j.querySelector("li button:not(:disabled),li input:not(:disabled)");N&&N.focus()},0),i&&l&&!(!((T=g==null?void 0:g.current)===null||T===void 0)&&T.contains(w.target))&&i&&!(!((k=_.current)===null||k===void 0)&&k.contains(w.target))&&l(!1)};return window.addEventListener("keydown",S),window.addEventListener("click",O),()=>{window.removeEventListener("keydown",S),window.removeEventListener("click",O)}},[i,_,l]);const b=x.createElement(hc,Object.assign({role:d,className:We(n),ref:_,onSelect:(S,O)=>r(S,O),isPlain:s,selected:a},c&&{style:{"--pf-c-menu--MinWidth":c}},xh(_l.displayName,h.ouiaId!==void 0?h.ouiaId:Sh(_l.displayName),h.ouiaSafe!==void 0?h.ouiaSafe:!0),h),x.createElement(Zb,null,t));return x.createElement("div",{ref:y},x.createElement(Yb,{trigger:o(g),removeFindDomNode:!0,popper:b,appendTo:y.current||void 0,isVisible:i,zIndex:f}))},_l=x.forwardRef((e,t)=>x.createElement(O7,Object.assign({innerRef:t},e)));_l.displayName="Select";const Ih=e=>{var{children:t,className:n,isAriaMultiselectable:r=!1}=e,i=ze(e,["children","className","isAriaMultiselectable"]);return x.createElement(t_,Object.assign({isAriaMultiselectable:r,className:We(n)},i),t)};Ih.displayName="SelectList";const Lh=e=>{var{children:t,className:n}=e,r=ze(e,["children","className"]);return x.createElement(e_,Object.assign({className:We(n)},r),t)};Lh.displayName="SelectOption";const K1e="",xl={button:"pf-c-button",card:"pf-c-card",drawer:"pf-c-drawer",modalBox:"pf-c-modal-box",modifiers:{finished:"pf-m-finished",expanded:"pf-m-expanded",current:"pf-m-current",expandable:"pf-m-expandable",disabled:"pf-m-disabled",noPadding:"pf-m-no-padding"},pageMainWizard:"pf-c-page__main-wizard",themeDark:"pf-theme-dark",wizard:"pf-c-wizard",wizardClose:"pf-c-wizard__close",wizardDescription:"pf-c-wizard__description",wizardFooter:"pf-c-wizard__footer",wizardFooterCancel:"pf-c-wizard__footer-cancel",wizardHeader:"pf-c-wizard__header",wizardInnerWrap:"pf-c-wizard__inner-wrap",wizardMain:"pf-c-wizard__main",wizardMainBody:"pf-c-wizard__main-body",wizardNav:"pf-c-wizard__nav",wizardNavItem:"pf-c-wizard__nav-item",wizardNavLink:"pf-c-wizard__nav-link",wizardNavLinkText:"pf-c-wizard__nav-link-text",wizardNavLinkToggle:"pf-c-wizard__nav-link-toggle",wizardNavLinkToggleIcon:"pf-c-wizard__nav-link-toggle-icon",wizardNavList:"pf-c-wizard__nav-list",wizardOuterWrap:"pf-c-wizard__outer-wrap",wizardTitle:"pf-c-wizard__title",wizardToggle:"pf-c-wizard__toggle",wizardToggleIcon:"pf-c-wizard__toggle-icon",wizardToggleList:"pf-c-wizard__toggle-list",wizardToggleListItem:"pf-c-wizard__toggle-list-item",wizardToggleNum:"pf-c-wizard__toggle-num",wizardToggleSeparator:"pf-c-wizard__toggle-separator"};function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function C7(e,t){if(Sl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(Sl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n_(e){var t=C7(e,"string");return Sl(t)==="symbol"?t:String(t)}function A7(e,t,n){return t=n_(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T7(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,n_(r.key),r)}}function k7(e,t,n){return t&&r_(e.prototype,t),n&&r_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var E7=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,P7={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},j7=function(t){return P7[t]},M7=function(t){return t.replace(E7,j7)},D7={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:M7},I7,L7=x.createContext();function $7(){return D7}var F7=function(){function e(){T7(this,e),this.usedNamespaces={}}return k7(e,[{key:"addUsedNamespaces",value:function(n){var r=this;n.forEach(function(i){r.usedNamespaces[i]||(r.usedNamespaces[i]=!0)})}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function N7(){return I7}function z7(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];typeof n[0]=="string"&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var i_={};function $h(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];typeof t[0]=="string"&&i_[t[0]]||(typeof t[0]=="string"&&(i_[t[0]]=new Date),z7.apply(void 0,t))}function a_(e,t,n){e.loadNamespaces(t,function(){if(e.isInitialized)n();else{var r=function i(){setTimeout(function(){e.off("initialized",i)},0),n()};e.on("initialized",r)}})}function B7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()==="cimode")return!0;var o=function(s,c){var u=t.services.backendConnector.state["".concat(s,"|").concat(c)];return u===-1||u===2};return n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))}function W7(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!t.languages||!t.languages.length)return $h("i18n.languages were undefined or empty",t.languages),!0;var r=t.options.ignoreJSONStructure!==void 0;return r?t.hasLoadedNamespace(e,{precheck:function(a,o){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&a.services.backendConnector.backend&&a.isLanguageChangingTo&&!o(a.isLanguageChangingTo,e))return!1}}):B7(e,t,n)}function R7(e){if(Array.isArray(e))return e}function V7(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],s=!0,c=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(u){c=!0,i=u}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(c)throw i}}return l}}function o_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function H7(e,t){if(e){if(typeof e=="string")return o_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o_(e,t)}}function U7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
115
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function q7(e,t){return R7(e)||V7(e,t)||H7(e,t)||U7()}function l_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l_(Object(n),!0).forEach(function(r){A7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var G7=function(t,n){var r=x.useRef();return x.useEffect(function(){r.current=n?r.current:t},[t,n]),r.current};function ut(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.i18n,r=x.useContext(L7)||{},i=r.i18n,a=r.defaultNS,o=n||i||N7();if(o&&!o.reportNamespaces&&(o.reportNamespaces=new F7),!o){$h("You will need to pass in an i18next instance by using initReactI18next");var l=function(j){return Array.isArray(j)?j[j.length-1]:j},s=[l,{},!1];return s.t=l,s.i18n={},s.ready=!1,s}o.options.react&&o.options.react.wait!==void 0&&$h("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var c=Fh(Fh(Fh({},$7()),o.options.react),t),u=c.useSuspense,f=c.keyPrefix,d=e||a||o.options&&o.options.defaultNS;d=typeof d=="string"?[d]:d||["translation"],o.reportNamespaces.addUsedNamespaces&&o.reportNamespaces.addUsedNamespaces(d);var h=(o.isInitialized||o.initializedStoreOnce)&&d.every(function(k){return W7(k,o,c)});function p(){return o.getFixedT(null,c.nsMode==="fallback"?d:d[0],f)}var g=x.useState(p),y=q7(g,2),_=y[0],b=y[1],S=d.join(),O=G7(S),w=x.useRef(!0);x.useEffect(function(){var k=c.bindI18n,j=c.bindI18nStore;w.current=!0,!h&&!u&&a_(o,d,function(){w.current&&b(p)}),h&&O&&O!==S&&w.current&&b(p);function N(){w.current&&b(p)}return k&&o&&o.on(k,N),j&&o&&o.store.on(j,N),function(){w.current=!1,k&&o&&k.split(" ").forEach(function(M){return o.off(M,N)}),j&&o&&j.split(" ").forEach(function(M){return o.store.off(M,N)})}},[o,S]);var A=x.useRef(!0);x.useEffect(function(){w.current&&!A.current&&b(p),A.current=!1},[o,f]);var T=[_,o,h];if(T.t=_,T.i18n=o,T.ready=h,h||!h&&!u)return T;throw new Promise(function(k){a_(o,d,function(){k()})})}const Z1e="",X1e="";function Dn(e){const{t}=ut(),{id:n,icon:r,value:i,onSelect:a,options:o,placeholder:l}=e,[s,c]=x.useState(!1),u=x.useMemo(()=>o.find(b=>i===b.value),[o,i]),f=b=>v.jsxs(C.MenuToggle,{id:n,ref:b,onClick:()=>c(S=>!S),isExpanded:s,onKeyDown:S=>{switch(S.key){default:c(!0);break}},"data-cy":n,children:[r&&v.jsx("span",{style:{paddingLeft:4,paddingRight:12},children:r}),u?u.label:v.jsx("span",{className:"page-select-placeholder",children:l})]}),d=x.useCallback((b,S)=>{const O=o.find(w=>w.key!==void 0?w.key===S:w.label===S);O&&(a(O.value),c(!1))},[a,o]),[h,p]=x.useState(""),g=x.useRef(null);x.useEffect(()=>{p(""),s&&g.current&&g.current.focus()},[s]),x.useEffect(()=>{e.isRequired&&!u&&o.length>0&&a(o[0].value)},[a,o,e.isRequired,u]);const y=x.useMemo(()=>o.filter(b=>h===""?!0:b.label.toLowerCase().includes(h.toLowerCase())),[o,h]);let _=v.jsx("div",{className:"page-single-select",children:v.jsxs(_l,{selected:u==null?void 0:u.label,onSelect:d,isOpen:s,onOpenChange:c,toggle:f,style:{zIndex:s?9999:void 0},children:[v.jsx("div",{className:"page-select-header",children:v.jsx(C.SearchInput,{id:n?`${n}-search`:void 0,ref:g,value:h,onChange:(b,S)=>p(S),onClear:b=>{b.stopPropagation(),p("")}})}),y.length===0?v.jsx("div",{style:{margin:16},children:t("No results found")}):v.jsx(Ih,{className:"page-select-list",children:y.map(b=>{const S=br(b);return v.jsx(Lh,{itemId:b.key!==void 0?b.key:b.label,description:b.description,"data-cy":S,children:b.label},b.key!==void 0?b.key:b.label)})}),e.footer&&v.jsx("div",{className:"page-select-footer",children:e.footer})]})});return e.label&&(_=v.jsx(C.FormGroup,{id:`${n??"select"}-form-group`,fieldId:n,label:e.label,children:_})),_}const Y7=Le.div`
116
116
  padding: var(--pf-global--spacer--lg);
117
- `,Xa=x.createContext([{},()=>null]);function Ja(){const[e]=x.useContext(Xa);return e}function s_(e){const[t,n]=x.useState(()=>{const i=localStorage.getItem("theme"),a=i!=="dark"&&i!=="light"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i;let o="comfortable";switch(localStorage.getItem("tableLayout")){case"compact":o="compact";break;case"comfortable":o="comfortable";break}let l="multiple";switch(localStorage.getItem("formColumns")){case"single":l="single";break;case"multiple":l="multiple";break}let s="vertical";switch(localStorage.getItem("formLayout")){case"vertical":s="vertical";break;case"horizontal":s="horizontal";break}const c={theme:i,activeTheme:a,tableLayout:o,formColumns:l,formLayout:s};return a==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark"),c}),r=x.useCallback(i=>{localStorage.setItem("theme",i.theme??"system"),localStorage.setItem("tableLayout",i.tableLayout??"comfortable"),localStorage.setItem("formColumns",i.formColumns??"multiple"),localStorage.setItem("formLayout",i.formLayout??"vertical");const a=i.theme!=="light"&&i.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i.theme;i.activeTheme=a,n(i),a==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark")},[]);return v.jsx(Xa.Provider,{value:[t,r],children:e.children})}function K7(e){const[t,n]=x.useState(!1),r=x.useCallback(()=>n(!0),[]),[i,a]=_r();return x.useEffect(()=>{a(t?v.jsx(c_,{open:t,setOpen:n}):void 0)},[t,a,e]),r}function c_(e){const t=()=>e.setOpen(!1),[n,r]=x.useContext(Xa),[i]=mt();return v.jsx(C.Modal,{title:"Settings",ouiaId:"Settings","aria-label":"Settings",isOpen:e.open,onClose:t,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:t,children:i.closeText},"close")],hasNoBodyWrapper:!0,children:v.jsx(Y7,{children:v.jsxs(C.Form,{isHorizontal:n.formLayout==="horizontal",autoComplete:"off",children:[v.jsx(Dn,{id:"theme",label:"Theme",value:n.theme??"system",onSelect:a=>r({...n,theme:a}),placeholder:"Select theme",options:[{label:"System default",value:"system"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}),v.jsx(Dn,{id:"table-layout",label:"Table Layout",value:n.tableLayout??"comfortable",onSelect:a=>r({...n,tableLayout:a}),placeholder:"Select table layout",options:[{label:"Comfortable",value:"comfortable"},{label:"Compact",value:"compact"}]}),v.jsx(Dn,{id:"form-columns",label:"Form Columns",value:n.formColumns??"multiple",onSelect:a=>r({...n,formColumns:a}),placeholder:"Select form columns",options:[{label:"Multiple columns",value:"multiple"},{label:"Single column",value:"single"}]}),v.jsx(Dn,{id:"form-layout",label:"Form Layout",value:n.formLayout??"vertical",onSelect:a=>r({...n,formLayout:a}),placeholder:"Select form layout",options:[{label:"Vertical labels",value:"vertical"},{label:"Horizontal labels",value:"horizontal"}]})]})})})}function Z7(e){const[t]=mt(),n=Ja(),r=e.used/e.capacity;if(e.capacity===0)return v.jsx(v.Fragment,{});const i=r>=.8?"var(--pf-global--palette--red":r>=.5?"var(--pf-global--palette--gold":"var(--pf-global--palette--green",a=n.activeTheme==="light"?`${i}-100)`:`${i}-600)`,o=n.activeTheme==="light"?`${i}-400)`:`${i}-200)`,l=n.activeTheme==="light"?"#0002":"#fff2";return v.jsxs(C.Flex,{alignItems:{default:"alignItemsBaseline"},spaceItems:{default:"spaceItemsSm"},children:[e.capacity>0&&v.jsx(C.FlexItem,{children:v.jsx("div",{style:{width:18,height:25,background:a,marginBottom:-9,paddingTop:Math.max(0,Math.min(25,25*(e.capacity-e.used)/e.capacity)),borderRadius:2,border:`thin solid ${l}`},children:v.jsx("div",{style:{width:"100%",height:"100%",background:o,borderRadius:2}})})}),e.format?v.jsx(C.FlexItem,{children:e.format.replace("{used}",e.used.toString()).replace("{capacity}",e.capacity.toString())}):v.jsxs(C.FlexItem,{children:[e.used,` ${t.ofText} `,e.capacity]})]})}function u_(e=!0){const{t}=ut(),[n,r]=x.useState(!1),i=yh(),a={variant:"success",title:t("Copied to clipboard"),timeout:e},o={variant:"danger",title:t("Failed to copy to clipboard")},l={variant:"warning",title:t("Clipboard is not supported in this browser.")};return{copySuccess:n,writeToClipboard:c=>{(async()=>{if(!navigator.clipboard){i.addAlert(l);return}try{await navigator.clipboard.writeText(c),i.addAlert(a),r(!0)}catch{i.removeAlert(a),i.addAlert(o)}})().catch(()=>{i.removeAlert(a),i.addAlert(o)})}}}function X7(e){const{writeToClipboard:t}=u_(),{t:n}=ut();return e.text?v.jsx(C.ClipboardCopy,{hoverTip:n("Copy to clipboard"),clickTip:n("Successfully copied to clipboard!"),variant:"inline-compact",style:{display:"flex",flexWrap:"nowrap",borderRadius:4},onCopy:()=>{t(e.text??"")},children:v.jsx(C.Truncate,{content:e.text,style:{minWidth:e.minWidth}})}):v.jsx(v.Fragment,{})}class Ji extends Error{}class J7 extends Ji{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Q7 extends Ji{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class eM extends Ji{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class wl extends Ji{}class f_ extends Ji{constructor(t){super(`Invalid unit ${t}`)}}class In extends Ji{}class Si extends Ji{constructor(){super("Zone is an abstract class")}}const pe="numeric",rr="short",_n="long",mc={year:pe,month:pe,day:pe},d_={year:pe,month:rr,day:pe},tM={year:pe,month:rr,day:pe,weekday:rr},h_={year:pe,month:_n,day:pe},m_={year:pe,month:_n,day:pe,weekday:_n},g_={hour:pe,minute:pe},p_={hour:pe,minute:pe,second:pe},v_={hour:pe,minute:pe,second:pe,timeZoneName:rr},y_={hour:pe,minute:pe,second:pe,timeZoneName:_n},b_={hour:pe,minute:pe,hourCycle:"h23"},__={hour:pe,minute:pe,second:pe,hourCycle:"h23"},x_={hour:pe,minute:pe,second:pe,hourCycle:"h23",timeZoneName:rr},S_={hour:pe,minute:pe,second:pe,hourCycle:"h23",timeZoneName:_n},w_={year:pe,month:pe,day:pe,hour:pe,minute:pe},O_={year:pe,month:pe,day:pe,hour:pe,minute:pe,second:pe},C_={year:pe,month:rr,day:pe,hour:pe,minute:pe},A_={year:pe,month:rr,day:pe,hour:pe,minute:pe,second:pe},nM={year:pe,month:rr,day:pe,weekday:rr,hour:pe,minute:pe},T_={year:pe,month:_n,day:pe,hour:pe,minute:pe,timeZoneName:rr},k_={year:pe,month:_n,day:pe,hour:pe,minute:pe,second:pe,timeZoneName:rr},E_={year:pe,month:_n,day:pe,weekday:_n,hour:pe,minute:pe,timeZoneName:_n},P_={year:pe,month:_n,day:pe,weekday:_n,hour:pe,minute:pe,second:pe,timeZoneName:_n};class Ol{get type(){throw new Si}get name(){throw new Si}get ianaName(){return this.name}get isUniversal(){throw new Si}offsetName(t,n){throw new Si}formatOffset(t,n){throw new Si}offset(t){throw new Si}equals(t){throw new Si}get isValid(){throw new Si}}let Nh=null;class gc extends Ol{static get instance(){return Nh===null&&(Nh=new gc),Nh}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return W_(t,n,r)}formatOffset(t,n){return kl(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let pc={};function rM(e){return pc[e]||(pc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),pc[e]}const iM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function aM(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,l,s,c,u]=r;return[o,i,a,l,s,c,u]}function oM(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],l=iM[a];a==="era"?r[l]=o:Fe(l)||(r[l]=parseInt(o,10))}return r}let vc={};class Ur extends Ol{static create(t){return vc[t]||(vc[t]=new Ur(t)),vc[t]}static resetCache(){vc={},pc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Ur.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return W_(t,n,r,this.name)}formatOffset(t,n){return kl(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=rM(this.name);let[i,a,o,l,s,c,u]=r.formatToParts?oM(r,n):aM(r,n);l==="BC"&&(i=-Math.abs(i)+1);const d=xc({year:i,month:a,day:o,hour:s===24?0:s,minute:c,second:u,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let j_={};function lM(e,t={}){const n=JSON.stringify([e,t]);let r=j_[n];return r||(r=new Intl.ListFormat(e,t),j_[n]=r),r}let zh={};function Bh(e,t={}){const n=JSON.stringify([e,t]);let r=zh[n];return r||(r=new Intl.DateTimeFormat(e,t),zh[n]=r),r}let Wh={};function sM(e,t={}){const n=JSON.stringify([e,t]);let r=Wh[n];return r||(r=new Intl.NumberFormat(e,t),Wh[n]=r),r}let Rh={};function cM(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=Rh[i];return a||(a=new Intl.RelativeTimeFormat(e,t),Rh[i]=a),a}let Cl=null;function uM(){return Cl||(Cl=new Intl.DateTimeFormat().resolvedOptions().locale,Cl)}function fM(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=Bh(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=Bh(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function dM(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function hM(e){const t=[];for(let n=1;n<=12;n++){const r=ke.utc(2009,n,1);t.push(e(r))}return t}function mM(e){const t=[];for(let n=1;n<=7;n++){const r=ke.utc(2016,11,13+n);t.push(e(r))}return t}function yc(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function gM(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class pM{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=sM(t,l)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Uh(t,3);return _t(n,this.padTo)}}}class vM{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),l=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Ur.create(l).valid?(i=l,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=Bh(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class yM{constructor(t,n,r){this.opts={style:"long",...r},!n&&z_()&&(this.rtf=cM(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):LM(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class tt{static fromOpts(t){return tt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const a=t||bt.defaultLocale,o=a||(i?"en-US":uM()),l=n||bt.defaultNumberingSystem,s=r||bt.defaultOutputCalendar;return new tt(o,l,s,a)}static resetCache(){Cl=null,zh={},Wh={},Rh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return tt.create(t,n,r)}constructor(t,n,r,i){const[a,o,l]=fM(t);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||l||null,this.intl=dM(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=gM(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:tt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return yc(this,t,H_,()=>{const r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=hM(a=>this.extract(a,r,"month"))),this.monthsCache[i][t]})}weekdays(t,n=!1){return yc(this,t,G_,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=mM(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return yc(this,void 0,()=>Y_,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ke.utc(2016,11,13,9),ke.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return yc(this,t,K_,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ke.utc(-40,1,1),ke.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(l=>l.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new pM(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new vM(t,this.intl,n)}relFormatter(t={}){return new yM(this.intl,this.isEnglish(),t)}listFormatter(t={}){return lM(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Vh=null;class Jt extends Ol{static get utcInstance(){return Vh===null&&(Vh=new Jt(0)),Vh}static instance(t){return t===0?Jt.utcInstance:new Jt(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Jt(wc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${kl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${kl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return kl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class bM extends Ol{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function wi(e,t){if(Fe(e)||e===null)return t;if(e instanceof Ol)return e;if(_M(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?gc.instance:n==="utc"||n==="gmt"?Jt.utcInstance:Jt.parseSpecifier(n)||Ur.create(e)}else return Qi(e)?Jt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bM(e)}let M_=()=>Date.now(),D_="system",I_=null,L_=null,$_=null,F_=60,N_;class bt{static get now(){return M_}static set now(t){M_=t}static set defaultZone(t){D_=t}static get defaultZone(){return wi(D_,gc.instance)}static get defaultLocale(){return I_}static set defaultLocale(t){I_=t}static get defaultNumberingSystem(){return L_}static set defaultNumberingSystem(t){L_=t}static get defaultOutputCalendar(){return $_}static set defaultOutputCalendar(t){$_=t}static get twoDigitCutoffYear(){return F_}static set twoDigitCutoffYear(t){F_=t%100}static get throwOnInvalid(){return N_}static set throwOnInvalid(t){N_=t}static resetCaches(){tt.resetCache(),Ur.resetCache()}}function Fe(e){return typeof e>"u"}function Qi(e){return typeof e=="number"}function bc(e){return typeof e=="number"&&e%1===0}function _M(e){return typeof e=="string"}function xM(e){return Object.prototype.toString.call(e)==="[object Date]"}function z_(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function SM(e){return Array.isArray(e)?e:[e]}function B_(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function wM(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Qa(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qr(e,t,n){return bc(e)&&e>=t&&e<=n}function OM(e,t){return e-t*Math.floor(e/t)}function _t(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Oi(e){if(!(Fe(e)||e===null||e===""))return parseInt(e,10)}function ea(e){if(!(Fe(e)||e===null||e===""))return parseFloat(e)}function Hh(e){if(!(Fe(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Uh(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function Al(e){return e%4===0&&(e%100!==0||e%400===0)}function Tl(e){return Al(e)?366:365}function _c(e,t){const n=OM(t-1,12)+1,r=e+(t-n)/12;return n===2?Al(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Sc(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function qh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function W_(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},l=new Intl.DateTimeFormat(n,o).formatToParts(i).find(s=>s.type.toLowerCase()==="timezonename");return l?l.value:null}function wc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function R_(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new In(`Invalid unit value ${e}`);return t}function Oc(e,t){const n={};for(const r in e)if(Qa(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=R_(i)}return n}function kl(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${_t(n,2)}:${_t(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${_t(n,2)}${_t(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Cc(e){return wM(e,["hour","minute","second","millisecond"])}const CM=["January","February","March","April","May","June","July","August","September","October","November","December"],V_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],AM=["J","F","M","A","M","J","J","A","S","O","N","D"];function H_(e){switch(e){case"narrow":return[...AM];case"short":return[...V_];case"long":return[...CM];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const U_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],q_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],TM=["M","T","W","T","F","S","S"];function G_(e){switch(e){case"narrow":return[...TM];case"short":return[...q_];case"long":return[...U_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Y_=["AM","PM"],kM=["Before Christ","Anno Domini"],EM=["BC","AD"],PM=["B","A"];function K_(e){switch(e){case"narrow":return[...PM];case"short":return[...EM];case"long":return[...kM];default:return null}}function jM(e){return Y_[e.hour<12?0:1]}function MM(e,t){return G_(t)[e.weekday-1]}function DM(e,t){return H_(t)[e.month-1]}function IM(e,t){return K_(t)[e.year<0?0:1]}function LM(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,l=Math.abs(t),s=l===1,c=i[e],u=r?s?c[1]:c[2]||c[1]:s?i[e][0]:e;return o?`${l} ${u} ago`:`in ${l} ${u}`}function Z_(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const $M={D:mc,DD:d_,DDD:h_,DDDD:m_,t:g_,tt:p_,ttt:v_,tttt:y_,T:b_,TT:__,TTT:x_,TTTT:S_,f:w_,ff:C_,fff:T_,ffff:E_,F:O_,FF:A_,FFF:k_,FFFF:P_};class qt{static create(t,n={}){return new qt(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const l=t.charAt(o);l==="'"?(r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),n=null,r="",i=!i):i||l===n?r+=l:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=l,n=l)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return $M[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return _t(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",l=()=>r?jM(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(h,p)=>r?DM(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),c=(h,p)=>r?MM(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const p=qt.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?IM(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Z_(qt.parseFormat(n),d)}formatDurationFromString(t,n){const r=s=>{switch(s[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=s=>c=>{const u=r(c);return u?this.num(s.get(u),c.length):c},a=qt.parseFormat(n),o=a.reduce((s,{literal:c,val:u})=>c?s:s.concat(u),[]),l=t.shiftTo(...o.map(r).filter(s=>s));return Z_(a,i(l))}}class ir{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const X_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function eo(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function to(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,l,s]=a(t,i);return[{...n,...o},l||r,s]},[{},null,1]).slice(0,2)}function no(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function J_(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Oi(t[n+i]);return[r,null,n+i]}}const Q_=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,FM=`(?:${Q_.source}?(?:\\[(${X_.source})\\])?)?`,Gh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ex=RegExp(`${Gh.source}${FM}`),Yh=RegExp(`(?:T${ex.source})?`),NM=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zM=/(\d{4})-?W(\d\d)(?:-?(\d))?/,BM=/(\d{4})-?(\d{3})/,WM=J_("weekYear","weekNumber","weekDay"),RM=J_("year","ordinal"),VM=/(\d{4})-(\d\d)-(\d\d)/,tx=RegExp(`${Gh.source} ?(?:${Q_.source}|(${X_.source}))?`),HM=RegExp(`(?: ${tx.source})?`);function ro(e,t,n){const r=e[t];return Fe(r)?n:Oi(r)}function UM(e,t){return[{year:ro(e,t),month:ro(e,t+1,1),day:ro(e,t+2,1)},null,t+3]}function io(e,t){return[{hours:ro(e,t,0),minutes:ro(e,t+1,0),seconds:ro(e,t+2,0),milliseconds:Hh(e[t+3])},null,t+4]}function El(e,t){const n=!e[t]&&!e[t+1],r=wc(e[t+1],e[t+2]),i=n?null:Jt.instance(r);return[{},i,t+3]}function Pl(e,t){const n=e[t]?Ur.create(e[t]):null;return[{},n,t+1]}const qM=RegExp(`^T?${Gh.source}$`),GM=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function YM(e){const[t,n,r,i,a,o,l,s,c]=e,u=t[0]==="-",f=s&&s[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&u)?-h:h;return[{years:d(ea(n)),months:d(ea(r)),weeks:d(ea(i)),days:d(ea(a)),hours:d(ea(o)),minutes:d(ea(l)),seconds:d(ea(s),s==="-0"),milliseconds:d(Hh(c),f)}]}const KM={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Kh(e,t,n,r,i,a,o){const l={year:t.length===2?qh(Oi(t)):Oi(t),month:V_.indexOf(n)+1,day:Oi(r),hour:Oi(i),minute:Oi(a)};return o&&(l.second=Oi(o)),e&&(l.weekday=e.length>3?U_.indexOf(e)+1:q_.indexOf(e)+1),l}const ZM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function XM(e){const[,t,n,r,i,a,o,l,s,c,u,f]=e,d=Kh(t,i,r,n,a,o,l);let h;return s?h=KM[s]:c?h=0:h=wc(u,f),[d,new Jt(h)]}function JM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const QM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,eD=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tD=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function nx(e){const[,t,n,r,i,a,o,l]=e;return[Kh(t,i,r,n,a,o,l),Jt.utcInstance]}function nD(e){const[,t,n,r,i,a,o,l]=e;return[Kh(t,l,n,r,i,a,o),Jt.utcInstance]}const rD=eo(NM,Yh),iD=eo(zM,Yh),aD=eo(BM,Yh),oD=eo(ex),rx=to(UM,io,El,Pl),lD=to(WM,io,El,Pl),sD=to(RM,io,El,Pl),cD=to(io,El,Pl);function uD(e){return no(e,[rD,rx],[iD,lD],[aD,sD],[oD,cD])}function fD(e){return no(JM(e),[ZM,XM])}function dD(e){return no(e,[QM,nx],[eD,nx],[tD,nD])}function hD(e){return no(e,[GM,YM])}const mD=to(io);function gD(e){return no(e,[qM,mD])}const pD=eo(VM,HM),vD=eo(tx),yD=to(io,El,Pl);function bD(e){return no(e,[pD,rx],[vD,yD])}const ix="Invalid Duration",ax={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},_D={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ax},Ln=146097/400,ao=146097/4800,xD={years:{quarters:4,months:12,weeks:Ln/7,days:Ln,hours:Ln*24,minutes:Ln*24*60,seconds:Ln*24*60*60,milliseconds:Ln*24*60*60*1e3},quarters:{months:3,weeks:Ln/28,days:Ln/4,hours:Ln*24/4,minutes:Ln*24*60/4,seconds:Ln*24*60*60/4,milliseconds:Ln*24*60*60*1e3/4},months:{weeks:ao/7,days:ao,hours:ao*24,minutes:ao*24*60,seconds:ao*24*60*60,milliseconds:ao*24*60*60*1e3},...ax},jl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ox=jl.slice(0).reverse();function Ci(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Be(r)}function lx(e,t){let n=t.milliseconds??0;for(const r of ox.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function sx(e,t){const n=lx(e,t)<0?-1:1;ox.reduce((r,i)=>{if(Fe(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],l=Math.floor(a/o);t[i]+=l*n,t[r]-=l*o*n}return i},null)}function SD(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Be{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?xD:_D;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||tt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Be.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new In(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Be({values:Oc(t,Be.normalizeUnit),loc:tt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Qi(t))return Be.fromMillis(t);if(Be.isDuration(t))return t;if(typeof t=="object")return Be.fromObject(t);throw new In(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=hD(t);return r?Be.fromObject(r,n):Be.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=gD(t);return r?Be.fromObject(r,n):Be.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the Duration is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new eM(r);return new Be({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new f_(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?qt.create(this.loc,r).formatDurationFromString(this,t):ix}toHuman(t={}){if(!this.isValid)return ix;const n=jl.map(r=>{const i=this.values[r];return Fe(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Uh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ke.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?lx(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t),r={};for(const i of jl)(Qa(n.values,i)||Qa(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Ci(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=R_(t(this.values[r],r));return Ci(this,{values:n},!0)}get(t){return this[Be.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Oc(t,Be.normalizeUnit)};return Ci(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Ci(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return sx(this.matrix,t),Ci(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=SD(this.normalize().shiftToAll().toObject());return Ci(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>Be.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of jl)if(t.indexOf(o)>=0){a=o;let l=0;for(const c in r)l+=this.matrix[c][o]*r[c],r[c]=0;Qi(i[o])&&(l+=i[o]);const s=Math.trunc(l);n[o]=s,r[o]=(l*1e3-s*1e3)/1e3}else Qi(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return sx(this.matrix,n),Ci(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ci(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of jl)if(!n(this.values[r],t.values[r]))return!1;return!0}}const oo="Invalid Interval";function wD(e,t){return!e||!e.isValid?gt.invalid("missing or invalid start"):!t||!t.isValid?gt.invalid("missing or invalid end"):t<e?gt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class gt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the Interval is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new Q7(r);return new gt({invalid:r})}static fromDateTimes(t,n){const r=Dl(t),i=Dl(n),a=wD(r,i);return a??new gt({start:r,end:i})}static after(t,n){const r=Be.fromDurationLike(n),i=Dl(t);return gt.fromDateTimes(i,i.plus(r))}static before(t,n){const r=Be.fromDurationLike(n),i=Dl(t);return gt.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=ke.fromISO(r,n),o=a.isValid}catch{o=!1}let l,s;try{l=ke.fromISO(i,n),s=l.isValid}catch{s=!1}if(o&&s)return gt.fromDateTimes(a,l);if(o){const c=Be.fromISO(i,n);if(c.isValid)return gt.after(a,c)}else if(s){const c=Be.fromISO(r,n);if(c.isValid)return gt.before(l,c)}}return gt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?gt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Dl).filter(o=>this.contains(o)).sort(),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,l=+o>+this.e?this.e:o;r.push(gt.fromDateTimes(i,l)),i=l,a+=1}return r}splitBy(t){const n=Be.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const l=this.start.plus(n.mapUnits(s=>s*i));a=+l>+this.e?this.e:l,o.push(gt.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:gt.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return gt.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(s=>[{time:s.s,type:"s"},{time:s.e,type:"e"}]),o=Array.prototype.concat(...a),l=o.sort((s,c)=>s.time-c.time);for(const s of l)r+=s.type==="s"?1:-1,r===1?n=s.time:(n&&+n!=+s.time&&i.push(gt.fromDateTimes(n,s.time)),n=null);return gt.merge(i)}difference(...t){return gt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:oo}toLocaleString(t=mc,n={}){return this.isValid?qt.create(this.s.loc.clone(n),t).formatInterval(this):oo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:oo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:oo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:oo}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:oo}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Be.invalid(this.invalidReason)}mapEndpoints(t){return gt.fromDateTimes(t(this.s),t(this.e))}}class Ac{static hasDST(t=bt.defaultZone){const n=ke.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Ur.isValidZone(t)}static normalizeZone(t){return wi(t,bt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||tt.create(n,r,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||tt.create(n,r,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||tt.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||tt.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return tt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return tt.create(n,null,"gregory").eras(t)}static features(){return{relative:z_()}}}function cx(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Be.fromMillis(r).as("days"))}function OD(e,t,n){const r=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter+(c.year-s.year)*4],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const u=cx(s,c);return(u-u%7)/7}],["days",cx]],i={},a=e;let o,l;for(const[s,c]of r)n.indexOf(s)>=0&&(o=s,i[s]=c(e,t),l=a.plus(i),l>t?(i[s]--,e=a.plus(i),e>t&&(l=e,i[s]--,e=a.plus(i))):e=l);return[e,i,l,o]}function CD(e,t,n,r){let[i,a,o,l]=OD(e,t,n);const s=t-i,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=i.plus({[l]:1})),o!==i&&(a[l]=(a[l]||0)+s/(o-i)));const u=Be.fromObject(a,r);return c.length>0?Be.fromMillis(s,r).shiftTo(...c).plus(u):u}const Zh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ux={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},AD=Zh.hanidec.replace(/[\[|\]]/g,"").split("");function TD(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Zh.hanidec)!==-1)t+=AD.indexOf(e[n]);else for(const i in ux){const[a,o]=ux[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}function ar({numberingSystem:e},t=""){return new RegExp(`${Zh[e||"latn"]}${t}`)}const kD="missing Intl.DateTimeFormat.formatToParts support";function qe(e,t=n=>n){return{regex:e,deser:([n])=>t(TD(n))}}const fx=`[ ${String.fromCharCode(160)}]`,dx=new RegExp(fx,"g");function ED(e){return e.replace(/\./g,"\\.?").replace(dx,fx)}function hx(e){return e.replace(/\./g,"").replace(dx," ").toLowerCase()}function or(e,t){return e===null?null:{regex:RegExp(e.map(ED).join("|")),deser:([n])=>e.findIndex(r=>hx(n)===hx(r))+t}}function mx(e,t){return{regex:e,deser:([,n,r])=>wc(n,r),groups:t}}function Tc(e){return{regex:e,deser:([t])=>t}}function PD(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jD(e,t){const n=ar(t),r=ar(t,"{2}"),i=ar(t,"{3}"),a=ar(t,"{4}"),o=ar(t,"{6}"),l=ar(t,"{1,2}"),s=ar(t,"{1,3}"),c=ar(t,"{1,6}"),u=ar(t,"{1,9}"),f=ar(t,"{2,4}"),d=ar(t,"{4,6}"),h=y=>({regex:RegExp(PD(y.val)),deser:([_])=>_,literal:!0}),g=(y=>{if(e.literal)return h(y);switch(y.val){case"G":return or(t.eras("short"),0);case"GG":return or(t.eras("long"),0);case"y":return qe(c);case"yy":return qe(f,qh);case"yyyy":return qe(a);case"yyyyy":return qe(d);case"yyyyyy":return qe(o);case"M":return qe(l);case"MM":return qe(r);case"MMM":return or(t.months("short",!0),1);case"MMMM":return or(t.months("long",!0),1);case"L":return qe(l);case"LL":return qe(r);case"LLL":return or(t.months("short",!1),1);case"LLLL":return or(t.months("long",!1),1);case"d":return qe(l);case"dd":return qe(r);case"o":return qe(s);case"ooo":return qe(i);case"HH":return qe(r);case"H":return qe(l);case"hh":return qe(r);case"h":return qe(l);case"mm":return qe(r);case"m":return qe(l);case"q":return qe(l);case"qq":return qe(r);case"s":return qe(l);case"ss":return qe(r);case"S":return qe(s);case"SSS":return qe(i);case"u":return Tc(u);case"uu":return Tc(l);case"uuu":return qe(n);case"a":return or(t.meridiems(),0);case"kkkk":return qe(a);case"kk":return qe(f,qh);case"W":return qe(l);case"WW":return qe(r);case"E":case"c":return qe(n);case"EEE":return or(t.weekdays("short",!1),1);case"EEEE":return or(t.weekdays("long",!1),1);case"ccc":return or(t.weekdays("short",!0),1);case"cccc":return or(t.weekdays("long",!0),1);case"Z":case"ZZ":return mx(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return mx(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Tc(/[a-z_+-/]{1,256}?/i);case" ":return Tc(/[^\S\n\r]/);default:return h(y)}})(e)||{invalidReason:kD};return g.token=e,g}const MD={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function DD(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const s=/^\s+$/.test(i);return{literal:!s,val:s?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let l=MD[o];if(typeof l=="object"&&(l=l[a]),l)return{literal:!1,val:l}}function ID(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function LD(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(Qa(n,o)){const l=n[o],s=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(r.slice(a,a+s))),a+=s}return[r,i]}else return[r,{}]}function $D(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Fe(e.z)||(n=Ur.create(e.z)),Fe(e.Z)||(n||(n=new Jt(e.Z)),r=e.Z),Fe(e.q)||(e.M=(e.q-1)*3+1),Fe(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Fe(e.u)||(e.S=Hh(e.u)),[Object.keys(e).reduce((a,o)=>{const l=t(o);return l&&(a[l]=e[o]),a},{}),n,r]}let Xh=null;function FD(){return Xh||(Xh=ke.fromMillis(1555555555555)),Xh}function ND(e,t){if(e.literal)return e;const n=qt.macroTokenToFormatOpts(e.val),r=vx(n,t);return r==null||r.includes(void 0)?e:r}function gx(e,t){return Array.prototype.concat(...e.map(n=>ND(n,t)))}function px(e,t,n){const r=gx(qt.parseFormat(n),e),i=r.map(o=>jD(o,e)),a=i.find(o=>o.invalidReason);if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};{const[o,l]=ID(i),s=RegExp(o,"i"),[c,u]=LD(t,s,l),[f,d,h]=u?$D(u):[null,null,void 0];if(Qa(u,"a")&&Qa(u,"H"))throw new wl("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:s,rawMatches:c,matches:u,result:f,zone:d,specificOffset:h}}}function zD(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=px(e,t,n);return[r,i,a,o]}function vx(e,t){if(!e)return null;const r=qt.create(t,e).dtFormatter(FD()),i=r.formatToParts(),a=r.resolvedOptions();return i.map(o=>DD(o,e,a))}const yx=[0,31,59,90,120,151,181,212,243,273,304,334],bx=[0,31,60,91,121,152,182,213,244,274,305,335];function $n(e,t){return new ir("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _x(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function xx(e,t,n){return n+(Al(e)?bx:yx)[t-1]}function Sx(e,t){const n=Al(e)?bx:yx,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function Jh(e){const{year:t,month:n,day:r}=e,i=xx(t,n,r),a=_x(t,n,r);let o=Math.floor((i-a+10)/7),l;return o<1?(l=t-1,o=Sc(l)):o>Sc(t)?(l=t+1,o=1):l=t,{weekYear:l,weekNumber:o,weekday:a,...Cc(e)}}function wx(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=_x(t,1,4),a=Tl(t);let o=n*7+r-i-3,l;o<1?(l=t-1,o+=Tl(l)):o>a?(l=t+1,o-=Tl(t)):l=t;const{month:s,day:c}=Sx(l,o);return{year:l,month:s,day:c,...Cc(e)}}function Qh(e){const{year:t,month:n,day:r}=e,i=xx(t,n,r);return{year:t,ordinal:i,...Cc(e)}}function Ox(e){const{year:t,ordinal:n}=e,{month:r,day:i}=Sx(t,n);return{year:t,month:r,day:i,...Cc(e)}}function BD(e){const t=bc(e.weekYear),n=qr(e.weekNumber,1,Sc(e.weekYear)),r=qr(e.weekday,1,7);return t?n?r?!1:$n("weekday",e.weekday):$n("week",e.week):$n("weekYear",e.weekYear)}function WD(e){const t=bc(e.year),n=qr(e.ordinal,1,Tl(e.year));return t?n?!1:$n("ordinal",e.ordinal):$n("year",e.year)}function Cx(e){const t=bc(e.year),n=qr(e.month,1,12),r=qr(e.day,1,_c(e.year,e.month));return t?n?r?!1:$n("day",e.day):$n("month",e.month):$n("year",e.year)}function Ax(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=qr(t,0,23)||t===24&&n===0&&r===0&&i===0,o=qr(n,0,59),l=qr(r,0,59),s=qr(i,0,999);return a?o?l?s?!1:$n("millisecond",i):$n("second",r):$n("minute",n):$n("hour",t)}const em="Invalid DateTime",Tx=864e13;function kc(e){return new ir("unsupported zone",`the zone "${e.name}" is not supported`)}function tm(e){return e.weekData===null&&(e.weekData=Jh(e.c)),e.weekData}function ta(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ke({...n,...t,old:n})}function kx(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function Ec(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Pc(e,t,n){return kx(xc(e),t,n)}function Ex(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,_c(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=Be.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=xc(a);let[s,c]=kx(l,n,e.zone);return o!==0&&(s+=o,c=e.zone.offset(s)),{ts:s,o:c}}function Ml(e,t,n,r,i,a){const{setZone:o,zone:l}=n;if(e&&Object.keys(e).length!==0||t){const s=t||l,c=ke.fromObject(e,{...n,zone:s,specificOffset:a});return o?c:c.setZone(l)}else return ke.invalid(new ir("unparsable",`the input "${i}" can't be parsed as ${r}`))}function jc(e,t,n=!0){return e.isValid?qt.create(tt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nm(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=_t(e.c.year,n?6:4),t?(r+="-",r+=_t(e.c.month),r+="-",r+=_t(e.c.day)):(r+=_t(e.c.month),r+=_t(e.c.day)),r}function Px(e,t,n,r,i,a){let o=_t(e.c.hour);return t?(o+=":",o+=_t(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(o+=":")):o+=_t(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(o+=_t(e.c.second),(e.c.millisecond!==0||!r)&&(o+=".",o+=_t(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!a?o+="Z":e.o<0?(o+="-",o+=_t(Math.trunc(-e.o/60)),o+=":",o+=_t(Math.trunc(-e.o%60))):(o+="+",o+=_t(Math.trunc(e.o/60)),o+=":",o+=_t(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const jx={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},RD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},VD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mx=["year","month","day","hour","minute","second","millisecond"],HD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],UD=["year","ordinal","hour","minute","second","millisecond"];function Dx(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new f_(e);return t}function Ix(e,t){const n=wi(t.zone,bt.defaultZone),r=tt.fromObject(t),i=bt.now();let a,o;if(Fe(e.year))a=i;else{for(const c of Mx)Fe(e[c])&&(e[c]=jx[c]);const l=Cx(e)||Ax(e);if(l)return ke.invalid(l);const s=n.offset(i);[a,o]=Pc(e,s,n)}return new ke({ts:a,zone:n,loc:r,o})}function Lx(e,t,n){const r=Fe(n.round)?!0:n.round,i=(o,l)=>(o=Uh(o,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(o,l)),a=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const l=a(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function $x(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class ke{constructor(t){const n=t.zone||bt.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ir("invalid input"):null)||(n.isValid?null:kc(n));this.ts=Fe(t.ts)?bt.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const l=n.offset(this.ts);i=Ec(this.ts,l),r=Number.isNaN(i.year)?new ir("invalid input"):null,i=r?null:i,a=r?null:l}this._zone=n,this.loc=t.loc||tt.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new ke({})}static local(){const[t,n]=$x(arguments),[r,i,a,o,l,s,c]=n;return Ix({year:r,month:i,day:a,hour:o,minute:l,second:s,millisecond:c},t)}static utc(){const[t,n]=$x(arguments),[r,i,a,o,l,s,c]=n;return t.zone=Jt.utcInstance,Ix({year:r,month:i,day:a,hour:o,minute:l,second:s,millisecond:c},t)}static fromJSDate(t,n={}){const r=xM(t)?t.valueOf():NaN;if(Number.isNaN(r))return ke.invalid("invalid input");const i=wi(n.zone,bt.defaultZone);return i.isValid?new ke({ts:r,zone:i,loc:tt.fromObject(n)}):ke.invalid(kc(i))}static fromMillis(t,n={}){if(Qi(t))return t<-Tx||t>Tx?ke.invalid("Timestamp out of range"):new ke({ts:t,zone:wi(n.zone,bt.defaultZone),loc:tt.fromObject(n)});throw new In(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Qi(t))return new ke({ts:t*1e3,zone:wi(n.zone,bt.defaultZone),loc:tt.fromObject(n)});throw new In("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=wi(n.zone,bt.defaultZone);if(!r.isValid)return ke.invalid(kc(r));const i=bt.now(),a=Fe(n.specificOffset)?r.offset(i):n.specificOffset,o=Oc(t,Dx),l=!Fe(o.ordinal),s=!Fe(o.year),c=!Fe(o.month)||!Fe(o.day),u=s||c,f=o.weekYear||o.weekNumber,d=tt.fromObject(n);if((u||l)&&f)throw new wl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new wl("Can't mix ordinal dates with month/day");const h=f||o.weekday&&!u;let p,g,y=Ec(i,a);h?(p=HD,g=RD,y=Jh(y)):l?(p=UD,g=VD,y=Qh(y)):(p=Mx,g=jx);let _=!1;for(const k of p){const P=o[k];Fe(P)?_?o[k]=g[k]:o[k]=y[k]:_=!0}const b=h?BD(o):l?WD(o):Cx(o),S=b||Ax(o);if(S)return ke.invalid(S);const O=h?wx(o):l?Ox(o):o,[w,A]=Pc(O,a,r),T=new ke({ts:w,zone:r,o:A,loc:d});return o.weekday&&u&&t.weekday!==T.weekday?ke.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${T.toISO()}`):T}static fromISO(t,n={}){const[r,i]=uD(t);return Ml(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=fD(t);return Ml(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=dD(t);return Ml(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Fe(t)||Fe(n))throw new In("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=tt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[l,s,c,u]=zD(o,t,n);return u?ke.invalid(u):Ml(l,s,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return ke.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=bD(t);return Ml(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the DateTime is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new J7(r);return new ke({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=vx(t,tt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return gx(qt.parseFormat(t),tt.fromObject(n)).map(i=>i.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?tm(this).weekYear:NaN}get weekNumber(){return this.isValid?tm(this).weekNumber:NaN}get weekday(){return this.isValid?tm(this).weekday:NaN}get ordinal(){return this.isValid?Qh(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ac.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ac.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ac.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ac.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),l=this.zone.offset(r-a*n);if(o===l)return[this];const s=r-o*n,c=r-l*n,u=Ec(s,o),f=Ec(c,l);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ta(this,{ts:s}),ta(this,{ts:c})]:[this]}get isInLeapYear(){return Al(this.year)}get daysInMonth(){return _c(this.year,this.month)}get daysInYear(){return this.isValid?Tl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sc(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=qt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Jt.instance(t),n)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=wi(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=Pc(o,a,t)}return ta(this,{ts:i,zone:t})}else return ke.invalid(kc(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return ta(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Oc(t,Dx),r=!Fe(n.weekYear)||!Fe(n.weekNumber)||!Fe(n.weekday),i=!Fe(n.ordinal),a=!Fe(n.year),o=!Fe(n.month)||!Fe(n.day),l=a||o,s=n.weekYear||n.weekNumber;if((l||i)&&s)throw new wl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new wl("Can't mix ordinal dates with month/day");let c;r?c=wx({...Jh(this.c),...n}):Fe(n.ordinal)?(c={...this.toObject(),...n},Fe(n.day)&&(c.day=Math.min(_c(c.year,c.month),c.day))):c=Ox({...Qh(this.c),...n});const[u,f]=Pc(c,this.o,this.zone);return ta(this,{ts:u,o:f})}plus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t);return ta(this,Ex(this,n))}minus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t).negate();return ta(this,Ex(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=Be.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?qt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):em}toLocaleString(t=mc,n={}){return this.isValid?qt.create(this.loc.clone(n),t).formatDateTime(this):em}toLocaleParts(t={}){return this.isValid?qt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const o=t==="extended";let l=nm(this,o);return l+="T",l+=Px(this,o,n,r,i,a),l}toISODate({format:t="extended"}={}){return this.isValid?nm(this,t==="extended"):null}toISOWeekDate(){return jc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+Px(this,o==="extended",n,t,r,a):null}toRFC2822(){return jc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nm(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),jc(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():em}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Be.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=SM(n).map(Be.normalizeUnit),o=t.valueOf()>this.valueOf(),l=o?this:t,s=o?t:this,c=CD(l,s,a,i);return o?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(ke.now(),t,n)}until(t){return this.isValid?gt.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||ke.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),Lx(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?Lx(t.base||ke.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(ke.isDateTime))throw new In("min requires all arguments be DateTimes");return B_(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(ke.isDateTime))throw new In("max requires all arguments be DateTimes");return B_(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=tt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return px(o,t,n)}static fromStringExplain(t,n,r={}){return ke.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return mc}static get DATE_MED(){return d_}static get DATE_MED_WITH_WEEKDAY(){return tM}static get DATE_FULL(){return h_}static get DATE_HUGE(){return m_}static get TIME_SIMPLE(){return g_}static get TIME_WITH_SECONDS(){return p_}static get TIME_WITH_SHORT_OFFSET(){return v_}static get TIME_WITH_LONG_OFFSET(){return y_}static get TIME_24_SIMPLE(){return b_}static get TIME_24_WITH_SECONDS(){return __}static get TIME_24_WITH_SHORT_OFFSET(){return x_}static get TIME_24_WITH_LONG_OFFSET(){return S_}static get DATETIME_SHORT(){return w_}static get DATETIME_SHORT_WITH_SECONDS(){return O_}static get DATETIME_MED(){return C_}static get DATETIME_MED_WITH_SECONDS(){return A_}static get DATETIME_MED_WITH_WEEKDAY(){return nM}static get DATETIME_FULL(){return T_}static get DATETIME_FULL_WITH_SECONDS(){return k_}static get DATETIME_HUGE(){return E_}static get DATETIME_HUGE_WITH_SECONDS(){return P_}}function Dl(e){if(ke.isDateTime(e))return e;if(e&&e.valueOf&&Qi(e.valueOf()))return ke.fromJSDate(e);if(e&&typeof e=="object")return ke.fromObject(e);throw new In(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function qD(e){return typeof e=="string"&&(e=new Date(e)),e.toLocaleString()}function GD(e){const t=new Date(e.value);return v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{children:t.toLocaleDateString()}),v.jsx(C.SplitItem,{children:t.toLocaleTimeString()})]})}const YD=Le.span`
117
+ `,Xa=x.createContext([{},()=>null]);function Ja(){const[e]=x.useContext(Xa);return e}function s_(e){const[t,n]=x.useState(()=>{const i=localStorage.getItem("theme"),a=i!=="dark"&&i!=="light"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i;let o="comfortable";switch(localStorage.getItem("tableLayout")){case"compact":o="compact";break;case"comfortable":o="comfortable";break}let l="multiple";switch(localStorage.getItem("formColumns")){case"single":l="single";break;case"multiple":l="multiple";break}let s="vertical";switch(localStorage.getItem("formLayout")){case"vertical":s="vertical";break;case"horizontal":s="horizontal";break}const c={theme:i,activeTheme:a,tableLayout:o,formColumns:l,formLayout:s};return a==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark"),c}),r=x.useCallback(i=>{localStorage.setItem("theme",i.theme??"system"),localStorage.setItem("tableLayout",i.tableLayout??"comfortable"),localStorage.setItem("formColumns",i.formColumns??"multiple"),localStorage.setItem("formLayout",i.formLayout??"vertical");const a=i.theme!=="light"&&i.theme!=="dark"?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":i.theme;i.activeTheme=a,n(i),a==="dark"?document.documentElement.classList.add("pf-theme-dark"):document.documentElement.classList.remove("pf-theme-dark")},[]);return v.jsx(Xa.Provider,{value:[t,r],children:e.children})}function K7(e){const[t,n]=x.useState(!1),r=x.useCallback(()=>n(!0),[]),[i,a]=_r();return x.useEffect(()=>{a(t?v.jsx(c_,{open:t,setOpen:n}):void 0)},[t,a,e]),r}function c_(e){const t=()=>e.setOpen(!1),[n,r]=x.useContext(Xa),[i]=mt();return v.jsx(C.Modal,{title:"Settings",ouiaId:"Settings","aria-label":"Settings",isOpen:e.open,onClose:t,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:t,children:i.closeText},"close")],hasNoBodyWrapper:!0,children:v.jsx(Y7,{children:v.jsxs(C.Form,{isHorizontal:n.formLayout==="horizontal",autoComplete:"off",children:[v.jsx(Dn,{id:"theme",label:"Theme",value:n.theme??"system",onSelect:a=>r({...n,theme:a}),placeholder:"Select theme",options:[{label:"System default",value:"system"},{label:"Light",value:"light"},{label:"Dark",value:"dark"}]}),v.jsx(Dn,{id:"table-layout",label:"Table Layout",value:n.tableLayout??"comfortable",onSelect:a=>r({...n,tableLayout:a}),placeholder:"Select table layout",options:[{label:"Comfortable",value:"comfortable"},{label:"Compact",value:"compact"}]}),v.jsx(Dn,{id:"form-columns",label:"Form Columns",value:n.formColumns??"multiple",onSelect:a=>r({...n,formColumns:a}),placeholder:"Select form columns",options:[{label:"Multiple columns",value:"multiple"},{label:"Single column",value:"single"}]}),v.jsx(Dn,{id:"form-layout",label:"Form Layout",value:n.formLayout??"vertical",onSelect:a=>r({...n,formLayout:a}),placeholder:"Select form layout",options:[{label:"Vertical labels",value:"vertical"},{label:"Horizontal labels",value:"horizontal"}]})]})})})}function Z7(e){const[t]=mt(),n=Ja(),r=e.used/e.capacity;if(e.capacity===0)return v.jsx(v.Fragment,{});const i=r>=.8?"var(--pf-global--palette--red":r>=.5?"var(--pf-global--palette--gold":"var(--pf-global--palette--green",a=n.activeTheme==="light"?`${i}-100)`:`${i}-600)`,o=n.activeTheme==="light"?`${i}-400)`:`${i}-200)`,l=n.activeTheme==="light"?"#0002":"#fff2";return v.jsxs(C.Flex,{alignItems:{default:"alignItemsBaseline"},spaceItems:{default:"spaceItemsSm"},children:[e.capacity>0&&v.jsx(C.FlexItem,{children:v.jsx("div",{style:{width:18,height:25,background:a,marginBottom:-9,paddingTop:Math.max(0,Math.min(25,25*(e.capacity-e.used)/e.capacity)),borderRadius:2,border:`thin solid ${l}`},children:v.jsx("div",{style:{width:"100%",height:"100%",background:o,borderRadius:2}})})}),e.format?v.jsx(C.FlexItem,{children:e.format.replace("{used}",e.used.toString()).replace("{capacity}",e.capacity.toString())}):v.jsxs(C.FlexItem,{children:[e.used,` ${t.ofText} `,e.capacity]})]})}function u_(e=!0){const{t}=ut(),[n,r]=x.useState(!1),i=yh(),a={variant:"success",title:t("Copied to clipboard"),timeout:e},o={variant:"danger",title:t("Failed to copy to clipboard")},l={variant:"warning",title:t("Clipboard is not supported in this browser.")};return{copySuccess:n,writeToClipboard:c=>{(async()=>{if(!navigator.clipboard){i.addAlert(l);return}try{await navigator.clipboard.writeText(c),i.addAlert(a),r(!0)}catch{i.removeAlert(a),i.addAlert(o)}})().catch(()=>{i.removeAlert(a),i.addAlert(o)})}}}function X7(e){const{writeToClipboard:t}=u_(),{t:n}=ut();return e.text?v.jsx(C.ClipboardCopy,{hoverTip:n("Copy to clipboard"),clickTip:n("Successfully copied to clipboard!"),variant:"inline-compact",style:{display:"flex",flexWrap:"nowrap",borderRadius:4},onCopy:()=>{t(e.text??"")},children:v.jsx(C.Truncate,{content:e.text,style:{minWidth:e.minWidth}})}):v.jsx(v.Fragment,{})}class Ji extends Error{}class J7 extends Ji{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Q7 extends Ji{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class eM extends Ji{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class wl extends Ji{}class f_ extends Ji{constructor(t){super(`Invalid unit ${t}`)}}class In extends Ji{}class Si extends Ji{constructor(){super("Zone is an abstract class")}}const pe="numeric",rr="short",_n="long",mc={year:pe,month:pe,day:pe},d_={year:pe,month:rr,day:pe},tM={year:pe,month:rr,day:pe,weekday:rr},h_={year:pe,month:_n,day:pe},m_={year:pe,month:_n,day:pe,weekday:_n},g_={hour:pe,minute:pe},p_={hour:pe,minute:pe,second:pe},v_={hour:pe,minute:pe,second:pe,timeZoneName:rr},y_={hour:pe,minute:pe,second:pe,timeZoneName:_n},b_={hour:pe,minute:pe,hourCycle:"h23"},__={hour:pe,minute:pe,second:pe,hourCycle:"h23"},x_={hour:pe,minute:pe,second:pe,hourCycle:"h23",timeZoneName:rr},S_={hour:pe,minute:pe,second:pe,hourCycle:"h23",timeZoneName:_n},w_={year:pe,month:pe,day:pe,hour:pe,minute:pe},O_={year:pe,month:pe,day:pe,hour:pe,minute:pe,second:pe},C_={year:pe,month:rr,day:pe,hour:pe,minute:pe},A_={year:pe,month:rr,day:pe,hour:pe,minute:pe,second:pe},nM={year:pe,month:rr,day:pe,weekday:rr,hour:pe,minute:pe},T_={year:pe,month:_n,day:pe,hour:pe,minute:pe,timeZoneName:rr},k_={year:pe,month:_n,day:pe,hour:pe,minute:pe,second:pe,timeZoneName:rr},E_={year:pe,month:_n,day:pe,weekday:_n,hour:pe,minute:pe,timeZoneName:_n},P_={year:pe,month:_n,day:pe,weekday:_n,hour:pe,minute:pe,second:pe,timeZoneName:_n};class Ol{get type(){throw new Si}get name(){throw new Si}get ianaName(){return this.name}get isUniversal(){throw new Si}offsetName(t,n){throw new Si}formatOffset(t,n){throw new Si}offset(t){throw new Si}equals(t){throw new Si}get isValid(){throw new Si}}let Nh=null;class gc extends Ol{static get instance(){return Nh===null&&(Nh=new gc),Nh}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return W_(t,n,r)}formatOffset(t,n){return kl(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let pc={};function rM(e){return pc[e]||(pc[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),pc[e]}const iM={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function aM(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,a,o,l,s,c,u]=r;return[o,i,a,l,s,c,u]}function oM(e,t){const n=e.formatToParts(t),r=[];for(let i=0;i<n.length;i++){const{type:a,value:o}=n[i],l=iM[a];a==="era"?r[l]=o:Fe(l)||(r[l]=parseInt(o,10))}return r}let vc={};class Ur extends Ol{static create(t){return vc[t]||(vc[t]=new Ur(t)),vc[t]}static resetCache(){vc={},pc={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=Ur.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return W_(t,n,r,this.name)}formatOffset(t,n){return kl(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=rM(this.name);let[i,a,o,l,s,c,u]=r.formatToParts?oM(r,n):aM(r,n);l==="BC"&&(i=-Math.abs(i)+1);const d=xc({year:i,month:a,day:o,hour:s===24?0:s,minute:c,second:u,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(d-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let j_={};function lM(e,t={}){const n=JSON.stringify([e,t]);let r=j_[n];return r||(r=new Intl.ListFormat(e,t),j_[n]=r),r}let zh={};function Bh(e,t={}){const n=JSON.stringify([e,t]);let r=zh[n];return r||(r=new Intl.DateTimeFormat(e,t),zh[n]=r),r}let Wh={};function sM(e,t={}){const n=JSON.stringify([e,t]);let r=Wh[n];return r||(r=new Intl.NumberFormat(e,t),Wh[n]=r),r}let Rh={};function cM(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=Rh[i];return a||(a=new Intl.RelativeTimeFormat(e,t),Rh[i]=a),a}let Cl=null;function uM(){return Cl||(Cl=new Intl.DateTimeFormat().resolvedOptions().locale,Cl)}function fM(e){const t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));const n=e.indexOf("-u-");if(n===-1)return[e];{let r,i;try{r=Bh(e).resolvedOptions(),i=e}catch{const s=e.substring(0,n);r=Bh(s).resolvedOptions(),i=s}const{numberingSystem:a,calendar:o}=r;return[i,a,o]}}function dM(e,t,n){return(n||t)&&(e.includes("-u-")||(e+="-u"),n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function hM(e){const t=[];for(let n=1;n<=12;n++){const r=ke.utc(2009,n,1);t.push(e(r))}return t}function mM(e){const t=[];for(let n=1;n<=7;n++){const r=ke.utc(2016,11,13+n);t.push(e(r))}return t}function yc(e,t,n,r){const i=e.listingMode();return i==="error"?null:i==="en"?n(t):r(t)}function gM(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class pM{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const{padTo:i,floor:a,...o}=r;if(!n||Object.keys(o).length>0){const l={useGrouping:!1,...r};r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=sM(t,l)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Uh(t,3);return _t(n,this.padTo)}}}class vM{constructor(t,n,r){this.opts=r,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){const o=-1*(t.offset/60),l=o>=0?`Etc/GMT+${o}`:`Etc/GMT${o}`;t.offset!==0&&Ur.create(l).valid?(i=l,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const a={...this.opts};a.timeZone=a.timeZone||i,this.dtf=Bh(n,a)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(n=>{if(n.type==="timeZoneName"){const r=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...n,value:r}}else return n}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class yM{constructor(t,n,r){this.opts={style:"long",...r},!n&&z_()&&(this.rtf=cM(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):LM(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class tt{static fromOpts(t){return tt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,i=!1){const a=t||bt.defaultLocale,o=a||(i?"en-US":uM()),l=n||bt.defaultNumberingSystem,s=r||bt.defaultOutputCalendar;return new tt(o,l,s,a)}static resetCache(){Cl=null,zh={},Wh={},Rh={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return tt.create(t,n,r)}constructor(t,n,r,i){const[a,o,l]=fM(t);this.locale=a,this.numberingSystem=n||o||null,this.outputCalendar=r||l||null,this.intl=dM(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=gM(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:tt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,n=!1){return yc(this,t,H_,()=>{const r=n?{month:t,day:"numeric"}:{month:t},i=n?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=hM(a=>this.extract(a,r,"month"))),this.monthsCache[i][t]})}weekdays(t,n=!1){return yc(this,t,G_,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=n?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=mM(a=>this.extract(a,r,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return yc(this,void 0,()=>Y_,()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ke.utc(2016,11,13,9),ke.utc(2016,11,13,19)].map(n=>this.extract(n,t,"dayperiod"))}return this.meridiemCache})}eras(t){return yc(this,t,K_,()=>{const n={era:t};return this.eraCache[t]||(this.eraCache[t]=[ke.utc(-40,1,1),ke.utc(2017,1,1)].map(r=>this.extract(r,n,"era"))),this.eraCache[t]})}extract(t,n,r){const i=this.dtFormatter(t,n),a=i.formatToParts(),o=a.find(l=>l.type.toLowerCase()===r);return o?o.value:null}numberFormatter(t={}){return new pM(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new vM(t,this.intl,n)}relFormatter(t={}){return new yM(this.intl,this.isEnglish(),t)}listFormatter(t={}){return lM(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let Vh=null;class Jt extends Ol{static get utcInstance(){return Vh===null&&(Vh=new Jt(0)),Vh}static instance(t){return t===0?Jt.utcInstance:new Jt(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new Jt(wc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${kl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${kl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return kl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class bM extends Ol{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function wi(e,t){if(Fe(e)||e===null)return t;if(e instanceof Ol)return e;if(_M(e)){const n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?gc.instance:n==="utc"||n==="gmt"?Jt.utcInstance:Jt.parseSpecifier(n)||Ur.create(e)}else return Qi(e)?Jt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bM(e)}let M_=()=>Date.now(),D_="system",I_=null,L_=null,$_=null,F_=60,N_;class bt{static get now(){return M_}static set now(t){M_=t}static set defaultZone(t){D_=t}static get defaultZone(){return wi(D_,gc.instance)}static get defaultLocale(){return I_}static set defaultLocale(t){I_=t}static get defaultNumberingSystem(){return L_}static set defaultNumberingSystem(t){L_=t}static get defaultOutputCalendar(){return $_}static set defaultOutputCalendar(t){$_=t}static get twoDigitCutoffYear(){return F_}static set twoDigitCutoffYear(t){F_=t%100}static get throwOnInvalid(){return N_}static set throwOnInvalid(t){N_=t}static resetCaches(){tt.resetCache(),Ur.resetCache()}}function Fe(e){return typeof e>"u"}function Qi(e){return typeof e=="number"}function bc(e){return typeof e=="number"&&e%1===0}function _M(e){return typeof e=="string"}function xM(e){return Object.prototype.toString.call(e)==="[object Date]"}function z_(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function SM(e){return Array.isArray(e)?e:[e]}function B_(e,t,n){if(e.length!==0)return e.reduce((r,i)=>{const a=[t(i),i];return r&&n(r[0],a[0])===r[0]?r:a},null)[1]}function wM(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function Qa(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function qr(e,t,n){return bc(e)&&e>=t&&e<=n}function OM(e,t){return e-t*Math.floor(e/t)}function _t(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Oi(e){if(!(Fe(e)||e===null||e===""))return parseInt(e,10)}function ea(e){if(!(Fe(e)||e===null||e===""))return parseFloat(e)}function Hh(e){if(!(Fe(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Uh(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function Al(e){return e%4===0&&(e%100!==0||e%400===0)}function Tl(e){return Al(e)?366:365}function _c(e,t){const n=OM(t-1,12)+1,r=e+(t-n)/12;return n===2?Al(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function xc(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function Sc(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function qh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function W_(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},l=new Intl.DateTimeFormat(n,o).formatToParts(i).find(s=>s.type.toLowerCase()==="timezonename");return l?l.value:null}function wc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-r:r;return n*60+i}function R_(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new In(`Invalid unit value ${e}`);return t}function Oc(e,t){const n={};for(const r in e)if(Qa(e,r)){const i=e[r];if(i==null)continue;n[t(r)]=R_(i)}return n}function kl(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${_t(n,2)}:${_t(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${_t(n,2)}${_t(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Cc(e){return wM(e,["hour","minute","second","millisecond"])}const CM=["January","February","March","April","May","June","July","August","September","October","November","December"],V_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],AM=["J","F","M","A","M","J","J","A","S","O","N","D"];function H_(e){switch(e){case"narrow":return[...AM];case"short":return[...V_];case"long":return[...CM];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const U_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],q_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],TM=["M","T","W","T","F","S","S"];function G_(e){switch(e){case"narrow":return[...TM];case"short":return[...q_];case"long":return[...U_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Y_=["AM","PM"],kM=["Before Christ","Anno Domini"],EM=["BC","AD"],PM=["B","A"];function K_(e){switch(e){case"narrow":return[...PM];case"short":return[...EM];case"long":return[...kM];default:return null}}function jM(e){return Y_[e.hour<12?0:1]}function MM(e,t){return G_(t)[e.weekday-1]}function DM(e,t){return H_(t)[e.month-1]}function IM(e,t){return K_(t)[e.year<0?0:1]}function LM(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&a){const f=e==="days";switch(t){case 1:return f?"tomorrow":`next ${i[e][0]}`;case-1:return f?"yesterday":`last ${i[e][0]}`;case 0:return f?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,l=Math.abs(t),s=l===1,c=i[e],u=r?s?c[1]:c[2]||c[1]:s?i[e][0]:e;return o?`${l} ${u} ago`:`in ${l} ${u}`}function Z_(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const $M={D:mc,DD:d_,DDD:h_,DDDD:m_,t:g_,tt:p_,ttt:v_,tttt:y_,T:b_,TT:__,TTT:x_,TTTT:S_,f:w_,ff:C_,fff:T_,ffff:E_,F:O_,FF:A_,FFF:k_,FFFF:P_};class qt{static create(t,n={}){return new qt(t,n)}static parseFormat(t){let n=null,r="",i=!1;const a=[];for(let o=0;o<t.length;o++){const l=t.charAt(o);l==="'"?(r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),n=null,r="",i=!i):i||l===n?r+=l:(r.length>0&&a.push({literal:/^\s+$/.test(r),val:r}),r=l,n=l)}return r.length>0&&a.push({literal:i||/^\s+$/.test(r),val:r}),a}static macroTokenToFormatOpts(t){return $M[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...n}).format()}dtFormatter(t,n={}){return this.loc.dtFormatter(t,{...this.opts,...n})}formatDateTime(t,n){return this.dtFormatter(t,n).format()}formatDateTimeParts(t,n){return this.dtFormatter(t,n).formatToParts()}formatInterval(t,n){return this.dtFormatter(t.start,n).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,n){return this.dtFormatter(t,n).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return _t(t,n);const r={...this.opts};return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",a=(h,p)=>this.loc.extract(t,h,p),o=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",l=()=>r?jM(t):a({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(h,p)=>r?DM(t,h):a(p?{month:h}:{month:h,day:"numeric"},"month"),c=(h,p)=>r?MM(t,h):a(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),u=h=>{const p=qt.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},f=h=>r?IM(t,h):a({era:h},"era"),d=h=>{switch(h){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return i?a({day:"numeric"},"day"):this.num(t.day);case"dd":return i?a({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return i?a({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?a({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return i?a({month:"numeric"},"month"):this.num(t.month);case"MM":return i?a({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return i?a({year:"numeric"},"year"):this.num(t.year);case"yy":return i?a({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?a({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?a({year:"numeric"},"year"):this.num(t.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(h)}};return Z_(qt.parseFormat(n),d)}formatDurationFromString(t,n){const r=s=>{switch(s[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=s=>c=>{const u=r(c);return u?this.num(s.get(u),c.length):c},a=qt.parseFormat(n),o=a.reduce((s,{literal:c,val:u})=>c?s:s.concat(u),[]),l=t.shiftTo(...o.map(r).filter(s=>s));return Z_(a,i(l))}}class ir{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const X_=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function eo(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function to(...e){return t=>e.reduce(([n,r,i],a)=>{const[o,l,s]=a(t,i);return[{...n,...o},l||r,s]},[{},null,1]).slice(0,2)}function no(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const i=n.exec(e);if(i)return r(i)}return[null,null]}function J_(...e){return(t,n)=>{const r={};let i;for(i=0;i<e.length;i++)r[e[i]]=Oi(t[n+i]);return[r,null,n+i]}}const Q_=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,FM=`(?:${Q_.source}?(?:\\[(${X_.source})\\])?)?`,Gh=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ex=RegExp(`${Gh.source}${FM}`),Yh=RegExp(`(?:T${ex.source})?`),NM=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,zM=/(\d{4})-?W(\d\d)(?:-?(\d))?/,BM=/(\d{4})-?(\d{3})/,WM=J_("weekYear","weekNumber","weekDay"),RM=J_("year","ordinal"),VM=/(\d{4})-(\d\d)-(\d\d)/,tx=RegExp(`${Gh.source} ?(?:${Q_.source}|(${X_.source}))?`),HM=RegExp(`(?: ${tx.source})?`);function ro(e,t,n){const r=e[t];return Fe(r)?n:Oi(r)}function UM(e,t){return[{year:ro(e,t),month:ro(e,t+1,1),day:ro(e,t+2,1)},null,t+3]}function io(e,t){return[{hours:ro(e,t,0),minutes:ro(e,t+1,0),seconds:ro(e,t+2,0),milliseconds:Hh(e[t+3])},null,t+4]}function El(e,t){const n=!e[t]&&!e[t+1],r=wc(e[t+1],e[t+2]),i=n?null:Jt.instance(r);return[{},i,t+3]}function Pl(e,t){const n=e[t]?Ur.create(e[t]):null;return[{},n,t+1]}const qM=RegExp(`^T?${Gh.source}$`),GM=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function YM(e){const[t,n,r,i,a,o,l,s,c]=e,u=t[0]==="-",f=s&&s[0]==="-",d=(h,p=!1)=>h!==void 0&&(p||h&&u)?-h:h;return[{years:d(ea(n)),months:d(ea(r)),weeks:d(ea(i)),days:d(ea(a)),hours:d(ea(o)),minutes:d(ea(l)),seconds:d(ea(s),s==="-0"),milliseconds:d(Hh(c),f)}]}const KM={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Kh(e,t,n,r,i,a,o){const l={year:t.length===2?qh(Oi(t)):Oi(t),month:V_.indexOf(n)+1,day:Oi(r),hour:Oi(i),minute:Oi(a)};return o&&(l.second=Oi(o)),e&&(l.weekday=e.length>3?U_.indexOf(e)+1:q_.indexOf(e)+1),l}const ZM=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function XM(e){const[,t,n,r,i,a,o,l,s,c,u,f]=e,d=Kh(t,i,r,n,a,o,l);let h;return s?h=KM[s]:c?h=0:h=wc(u,f),[d,new Jt(h)]}function JM(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const QM=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,eD=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,tD=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function nx(e){const[,t,n,r,i,a,o,l]=e;return[Kh(t,i,r,n,a,o,l),Jt.utcInstance]}function nD(e){const[,t,n,r,i,a,o,l]=e;return[Kh(t,l,n,r,i,a,o),Jt.utcInstance]}const rD=eo(NM,Yh),iD=eo(zM,Yh),aD=eo(BM,Yh),oD=eo(ex),rx=to(UM,io,El,Pl),lD=to(WM,io,El,Pl),sD=to(RM,io,El,Pl),cD=to(io,El,Pl);function uD(e){return no(e,[rD,rx],[iD,lD],[aD,sD],[oD,cD])}function fD(e){return no(JM(e),[ZM,XM])}function dD(e){return no(e,[QM,nx],[eD,nx],[tD,nD])}function hD(e){return no(e,[GM,YM])}const mD=to(io);function gD(e){return no(e,[qM,mD])}const pD=eo(VM,HM),vD=eo(tx),yD=to(io,El,Pl);function bD(e){return no(e,[pD,rx],[vD,yD])}const ix="Invalid Duration",ax={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},_D={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...ax},Ln=146097/400,ao=146097/4800,xD={years:{quarters:4,months:12,weeks:Ln/7,days:Ln,hours:Ln*24,minutes:Ln*24*60,seconds:Ln*24*60*60,milliseconds:Ln*24*60*60*1e3},quarters:{months:3,weeks:Ln/28,days:Ln/4,hours:Ln*24/4,minutes:Ln*24*60/4,seconds:Ln*24*60*60/4,milliseconds:Ln*24*60*60*1e3/4},months:{weeks:ao/7,days:ao,hours:ao*24,minutes:ao*24*60,seconds:ao*24*60*60,milliseconds:ao*24*60*60*1e3},...ax},jl=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ox=jl.slice(0).reverse();function Ci(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Be(r)}function lx(e,t){let n=t.milliseconds??0;for(const r of ox.slice(1))t[r]&&(n+=t[r]*e[r].milliseconds);return n}function sx(e,t){const n=lx(e,t)<0?-1:1;ox.reduce((r,i)=>{if(Fe(t[i]))return r;if(r){const a=t[r]*n,o=e[i][r],l=Math.floor(a/o);t[i]+=l*n,t[r]-=l*o*n}return i},null)}function SD(e){const t={};for(const[n,r]of Object.entries(e))r!==0&&(t[n]=r);return t}class Be{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;let r=n?xD:_D;t.matrix&&(r=t.matrix),this.values=t.values,this.loc=t.loc||tt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=r,this.isLuxonDuration=!0}static fromMillis(t,n){return Be.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new In(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new Be({values:Oc(t,Be.normalizeUnit),loc:tt.fromObject(n),conversionAccuracy:n.conversionAccuracy,matrix:n.matrix})}static fromDurationLike(t){if(Qi(t))return Be.fromMillis(t);if(Be.isDuration(t))return t;if(typeof t=="object")return Be.fromObject(t);throw new In(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=hD(t);return r?Be.fromObject(r,n):Be.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=gD(t);return r?Be.fromObject(r,n):Be.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the Duration is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new eM(r);return new Be({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new f_(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r={...n,floor:n.round!==!1&&n.floor!==!1};return this.isValid?qt.create(this.loc,r).formatDurationFromString(this,t):ix}toHuman(t={}){if(!this.isValid)return ix;const n=jl.map(r=>{const i=this.values[r];return Fe(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:r.slice(0,-1)}).format(i)}).filter(r=>r);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(n)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Uh(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();return n<0||n>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},ke.fromMillis(n,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?lx(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t),r={};for(const i of jl)(Qa(n.values,i)||Qa(this.values,i))&&(r[i]=n.get(i)+this.get(i));return Ci(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=R_(t(this.values[r],r));return Ci(this,{values:n},!0)}get(t){return this[Be.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n={...this.values,...Oc(t,Be.normalizeUnit)};return Ci(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r,matrix:i}={}){const o={loc:this.loc.clone({locale:t,numberingSystem:n}),matrix:i,conversionAccuracy:r};return Ci(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return sx(this.matrix,t),Ci(this,{values:t},!0)}rescale(){if(!this.isValid)return this;const t=SD(this.normalize().shiftToAll().toObject());return Ci(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(o=>Be.normalizeUnit(o));const n={},r={},i=this.toObject();let a;for(const o of jl)if(t.indexOf(o)>=0){a=o;let l=0;for(const c in r)l+=this.matrix[c][o]*r[c],r[c]=0;Qi(i[o])&&(l+=i[o]);const s=Math.trunc(l);n[o]=s,r[o]=(l*1e3-s*1e3)/1e3}else Qi(i[o])&&(r[o]=i[o]);for(const o in r)r[o]!==0&&(n[a]+=o===a?r[o]:r[o]/this.matrix[a][o]);return sx(this.matrix,n),Ci(this,{values:n},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return Ci(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,i){return r===void 0||r===0?i===void 0||i===0:r===i}for(const r of jl)if(!n(this.values[r],t.values[r]))return!1;return!0}}const oo="Invalid Interval";function wD(e,t){return!e||!e.isValid?gt.invalid("missing or invalid start"):!t||!t.isValid?gt.invalid("missing or invalid end"):t<e?gt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class gt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the Interval is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new Q7(r);return new gt({invalid:r})}static fromDateTimes(t,n){const r=Dl(t),i=Dl(n),a=wD(r,i);return a??new gt({start:r,end:i})}static after(t,n){const r=Be.fromDurationLike(n),i=Dl(t);return gt.fromDateTimes(i,i.plus(r))}static before(t,n){const r=Be.fromDurationLike(n),i=Dl(t);return gt.fromDateTimes(i.minus(r),i)}static fromISO(t,n){const[r,i]=(t||"").split("/",2);if(r&&i){let a,o;try{a=ke.fromISO(r,n),o=a.isValid}catch{o=!1}let l,s;try{l=ke.fromISO(i,n),s=l.isValid}catch{s=!1}if(o&&s)return gt.fromDateTimes(a,l);if(o){const c=Be.fromISO(i,n);if(c.isValid)return gt.after(a,c)}else if(s){const c=Be.fromISO(r,n);if(c.isValid)return gt.before(l,c)}}return gt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+(r.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?gt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Dl).filter(o=>this.contains(o)).sort(),r=[];let{s:i}=this,a=0;for(;i<this.e;){const o=n[a]||this.e,l=+o>+this.e?this.e:o;r.push(gt.fromDateTimes(i,l)),i=l,a+=1}return r}splitBy(t){const n=Be.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,i=1,a;const o=[];for(;r<this.e;){const l=this.start.plus(n.mapUnits(s=>s*i));a=+l>+this.e?this.e:l,o.push(gt.fromDateTimes(r,a)),r=a,i+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:gt.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return gt.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((i,a)=>i.s-a.s).reduce(([i,a],o)=>a?a.overlaps(o)||a.abutsStart(o)?[i,a.union(o)]:[i.concat([a]),o]:[i,o],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const i=[],a=t.map(s=>[{time:s.s,type:"s"},{time:s.e,type:"e"}]),o=Array.prototype.concat(...a),l=o.sort((s,c)=>s.time-c.time);for(const s of l)r+=s.type==="s"?1:-1,r===1?n=s.time:(n&&+n!=+s.time&&i.push(gt.fromDateTimes(n,s.time)),n=null);return gt.merge(i)}difference(...t){return gt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:oo}toLocaleString(t=mc,n={}){return this.isValid?qt.create(this.s.loc.clone(n),t).formatInterval(this):oo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:oo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:oo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:oo}toFormat(t,{separator:n=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:oo}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):Be.invalid(this.invalidReason)}mapEndpoints(t){return gt.fromDateTimes(t(this.s),t(this.e))}}class Ac{static hasDST(t=bt.defaultZone){const n=ke.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return Ur.isValidZone(t)}static normalizeZone(t){return wi(t,bt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||tt.create(n,r,a)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null,outputCalendar:a="gregory"}={}){return(i||tt.create(n,r,a)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||tt.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:i=null}={}){return(i||tt.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return tt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return tt.create(n,null,"gregory").eras(t)}static features(){return{relative:z_()}}}function cx(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Be.fromMillis(r).as("days"))}function OD(e,t,n){const r=[["years",(s,c)=>c.year-s.year],["quarters",(s,c)=>c.quarter-s.quarter+(c.year-s.year)*4],["months",(s,c)=>c.month-s.month+(c.year-s.year)*12],["weeks",(s,c)=>{const u=cx(s,c);return(u-u%7)/7}],["days",cx]],i={},a=e;let o,l;for(const[s,c]of r)n.indexOf(s)>=0&&(o=s,i[s]=c(e,t),l=a.plus(i),l>t?(i[s]--,e=a.plus(i),e>t&&(l=e,i[s]--,e=a.plus(i))):e=l);return[e,i,l,o]}function CD(e,t,n,r){let[i,a,o,l]=OD(e,t,n);const s=t-i,c=n.filter(f=>["hours","minutes","seconds","milliseconds"].indexOf(f)>=0);c.length===0&&(o<t&&(o=i.plus({[l]:1})),o!==i&&(a[l]=(a[l]||0)+s/(o-i)));const u=Be.fromObject(a,r);return c.length>0?Be.fromMillis(s,r).shiftTo(...c).plus(u):u}const Zh={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},ux={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},AD=Zh.hanidec.replace(/[\[|\]]/g,"").split("");function TD(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Zh.hanidec)!==-1)t+=AD.indexOf(e[n]);else for(const i in ux){const[a,o]=ux[i];r>=a&&r<=o&&(t+=r-a)}}return parseInt(t,10)}else return t}function ar({numberingSystem:e},t=""){return new RegExp(`${Zh[e||"latn"]}${t}`)}const kD="missing Intl.DateTimeFormat.formatToParts support";function qe(e,t=n=>n){return{regex:e,deser:([n])=>t(TD(n))}}const fx=`[ ${String.fromCharCode(160)}]`,dx=new RegExp(fx,"g");function ED(e){return e.replace(/\./g,"\\.?").replace(dx,fx)}function hx(e){return e.replace(/\./g,"").replace(dx," ").toLowerCase()}function or(e,t){return e===null?null:{regex:RegExp(e.map(ED).join("|")),deser:([n])=>e.findIndex(r=>hx(n)===hx(r))+t}}function mx(e,t){return{regex:e,deser:([,n,r])=>wc(n,r),groups:t}}function Tc(e){return{regex:e,deser:([t])=>t}}function PD(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function jD(e,t){const n=ar(t),r=ar(t,"{2}"),i=ar(t,"{3}"),a=ar(t,"{4}"),o=ar(t,"{6}"),l=ar(t,"{1,2}"),s=ar(t,"{1,3}"),c=ar(t,"{1,6}"),u=ar(t,"{1,9}"),f=ar(t,"{2,4}"),d=ar(t,"{4,6}"),h=y=>({regex:RegExp(PD(y.val)),deser:([_])=>_,literal:!0}),g=(y=>{if(e.literal)return h(y);switch(y.val){case"G":return or(t.eras("short"),0);case"GG":return or(t.eras("long"),0);case"y":return qe(c);case"yy":return qe(f,qh);case"yyyy":return qe(a);case"yyyyy":return qe(d);case"yyyyyy":return qe(o);case"M":return qe(l);case"MM":return qe(r);case"MMM":return or(t.months("short",!0),1);case"MMMM":return or(t.months("long",!0),1);case"L":return qe(l);case"LL":return qe(r);case"LLL":return or(t.months("short",!1),1);case"LLLL":return or(t.months("long",!1),1);case"d":return qe(l);case"dd":return qe(r);case"o":return qe(s);case"ooo":return qe(i);case"HH":return qe(r);case"H":return qe(l);case"hh":return qe(r);case"h":return qe(l);case"mm":return qe(r);case"m":return qe(l);case"q":return qe(l);case"qq":return qe(r);case"s":return qe(l);case"ss":return qe(r);case"S":return qe(s);case"SSS":return qe(i);case"u":return Tc(u);case"uu":return Tc(l);case"uuu":return qe(n);case"a":return or(t.meridiems(),0);case"kkkk":return qe(a);case"kk":return qe(f,qh);case"W":return qe(l);case"WW":return qe(r);case"E":case"c":return qe(n);case"EEE":return or(t.weekdays("short",!1),1);case"EEEE":return or(t.weekdays("long",!1),1);case"ccc":return or(t.weekdays("short",!0),1);case"cccc":return or(t.weekdays("long",!0),1);case"Z":case"ZZ":return mx(new RegExp(`([+-]${l.source})(?::(${r.source}))?`),2);case"ZZZ":return mx(new RegExp(`([+-]${l.source})(${r.source})?`),2);case"z":return Tc(/[a-z_+-/]{1,256}?/i);case" ":return Tc(/[^\S\n\r]/);default:return h(y)}})(e)||{invalidReason:kD};return g.token=e,g}const MD={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};function DD(e,t,n){const{type:r,value:i}=e;if(r==="literal"){const s=/^\s+$/.test(i);return{literal:!s,val:s?" ":i}}const a=t[r];let o=r;r==="hour"&&(t.hour12!=null?o=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?o="hour12":o="hour24":o=n.hour12?"hour12":"hour24");let l=MD[o];if(typeof l=="object"&&(l=l[a]),l)return{literal:!1,val:l}}function ID(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function LD(e,t,n){const r=e.match(t);if(r){const i={};let a=1;for(const o in n)if(Qa(n,o)){const l=n[o],s=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(r.slice(a,a+s))),a+=s}return[r,i]}else return[r,{}]}function $D(e){const t=a=>{switch(a){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return Fe(e.z)||(n=Ur.create(e.z)),Fe(e.Z)||(n||(n=new Jt(e.Z)),r=e.Z),Fe(e.q)||(e.M=(e.q-1)*3+1),Fe(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Fe(e.u)||(e.S=Hh(e.u)),[Object.keys(e).reduce((a,o)=>{const l=t(o);return l&&(a[l]=e[o]),a},{}),n,r]}let Xh=null;function FD(){return Xh||(Xh=ke.fromMillis(1555555555555)),Xh}function ND(e,t){if(e.literal)return e;const n=qt.macroTokenToFormatOpts(e.val),r=vx(n,t);return r==null||r.includes(void 0)?e:r}function gx(e,t){return Array.prototype.concat(...e.map(n=>ND(n,t)))}function px(e,t,n){const r=gx(qt.parseFormat(n),e),i=r.map(o=>jD(o,e)),a=i.find(o=>o.invalidReason);if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};{const[o,l]=ID(i),s=RegExp(o,"i"),[c,u]=LD(t,s,l),[f,d,h]=u?$D(u):[null,null,void 0];if(Qa(u,"a")&&Qa(u,"H"))throw new wl("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:s,rawMatches:c,matches:u,result:f,zone:d,specificOffset:h}}}function zD(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=px(e,t,n);return[r,i,a,o]}function vx(e,t){if(!e)return null;const r=qt.create(t,e).dtFormatter(FD()),i=r.formatToParts(),a=r.resolvedOptions();return i.map(o=>DD(o,e,a))}const yx=[0,31,59,90,120,151,181,212,243,273,304,334],bx=[0,31,60,91,121,152,182,213,244,274,305,335];function $n(e,t){return new ir("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function _x(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return i===0?7:i}function xx(e,t,n){return n+(Al(e)?bx:yx)[t-1]}function Sx(e,t){const n=Al(e)?bx:yx,r=n.findIndex(a=>a<t),i=t-n[r];return{month:r+1,day:i}}function Jh(e){const{year:t,month:n,day:r}=e,i=xx(t,n,r),a=_x(t,n,r);let o=Math.floor((i-a+10)/7),l;return o<1?(l=t-1,o=Sc(l)):o>Sc(t)?(l=t+1,o=1):l=t,{weekYear:l,weekNumber:o,weekday:a,...Cc(e)}}function wx(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=_x(t,1,4),a=Tl(t);let o=n*7+r-i-3,l;o<1?(l=t-1,o+=Tl(l)):o>a?(l=t+1,o-=Tl(t)):l=t;const{month:s,day:c}=Sx(l,o);return{year:l,month:s,day:c,...Cc(e)}}function Qh(e){const{year:t,month:n,day:r}=e,i=xx(t,n,r);return{year:t,ordinal:i,...Cc(e)}}function Ox(e){const{year:t,ordinal:n}=e,{month:r,day:i}=Sx(t,n);return{year:t,month:r,day:i,...Cc(e)}}function BD(e){const t=bc(e.weekYear),n=qr(e.weekNumber,1,Sc(e.weekYear)),r=qr(e.weekday,1,7);return t?n?r?!1:$n("weekday",e.weekday):$n("week",e.week):$n("weekYear",e.weekYear)}function WD(e){const t=bc(e.year),n=qr(e.ordinal,1,Tl(e.year));return t?n?!1:$n("ordinal",e.ordinal):$n("year",e.year)}function Cx(e){const t=bc(e.year),n=qr(e.month,1,12),r=qr(e.day,1,_c(e.year,e.month));return t?n?r?!1:$n("day",e.day):$n("month",e.month):$n("year",e.year)}function Ax(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=qr(t,0,23)||t===24&&n===0&&r===0&&i===0,o=qr(n,0,59),l=qr(r,0,59),s=qr(i,0,999);return a?o?l?s?!1:$n("millisecond",i):$n("second",r):$n("minute",n):$n("hour",t)}const em="Invalid DateTime",Tx=864e13;function kc(e){return new ir("unsupported zone",`the zone "${e.name}" is not supported`)}function tm(e){return e.weekData===null&&(e.weekData=Jh(e.c)),e.weekData}function ta(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ke({...n,...t,old:n})}function kx(e,t,n){let r=e-t*60*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=(i-t)*60*1e3;const a=n.offset(r);return i===a?[r,i]:[e-Math.min(i,a)*60*1e3,Math.max(i,a)]}function Ec(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Pc(e,t,n){return kx(xc(e),t,n)}function Ex(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,a={...e.c,year:r,month:i,day:Math.min(e.c.day,_c(r,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},o=Be.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=xc(a);let[s,c]=kx(l,n,e.zone);return o!==0&&(s+=o,c=e.zone.offset(s)),{ts:s,o:c}}function Ml(e,t,n,r,i,a){const{setZone:o,zone:l}=n;if(e&&Object.keys(e).length!==0||t){const s=t||l,c=ke.fromObject(e,{...n,zone:s,specificOffset:a});return o?c:c.setZone(l)}else return ke.invalid(new ir("unparsable",`the input "${i}" can't be parsed as ${r}`))}function jc(e,t,n=!0){return e.isValid?qt.create(tt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function nm(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=_t(e.c.year,n?6:4),t?(r+="-",r+=_t(e.c.month),r+="-",r+=_t(e.c.day)):(r+=_t(e.c.month),r+=_t(e.c.day)),r}function Px(e,t,n,r,i,a){let o=_t(e.c.hour);return t?(o+=":",o+=_t(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(o+=":")):o+=_t(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!n)&&(o+=_t(e.c.second),(e.c.millisecond!==0||!r)&&(o+=".",o+=_t(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!a?o+="Z":e.o<0?(o+="-",o+=_t(Math.trunc(-e.o/60)),o+=":",o+=_t(Math.trunc(-e.o%60))):(o+="+",o+=_t(Math.trunc(e.o/60)),o+=":",o+=_t(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const jx={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},RD={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},VD={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Mx=["year","month","day","hour","minute","second","millisecond"],HD=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],UD=["year","ordinal","hour","minute","second","millisecond"];function Dx(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new f_(e);return t}function Ix(e,t){const n=wi(t.zone,bt.defaultZone),r=tt.fromObject(t),i=bt.now();let a,o;if(Fe(e.year))a=i;else{for(const c of Mx)Fe(e[c])&&(e[c]=jx[c]);const l=Cx(e)||Ax(e);if(l)return ke.invalid(l);const s=n.offset(i);[a,o]=Pc(e,s,n)}return new ke({ts:a,zone:n,loc:r,o})}function Lx(e,t,n){const r=Fe(n.round)?!0:n.round,i=(o,l)=>(o=Uh(o,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(o,l)),a=o=>n.calendary?t.hasSame(e,o)?0:t.startOf(o).diff(e.startOf(o),o).get(o):t.diff(e,o).get(o);if(n.unit)return i(a(n.unit),n.unit);for(const o of n.units){const l=a(o);if(Math.abs(l)>=1)return i(l,o)}return i(e>t?-0:0,n.units[n.units.length-1])}function $x(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class ke{constructor(t){const n=t.zone||bt.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new ir("invalid input"):null)||(n.isValid?null:kc(n));this.ts=Fe(t.ts)?bt.now():t.ts;let i=null,a=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,a]=[t.old.c,t.old.o];else{const l=n.offset(this.ts);i=Ec(this.ts,l),r=Number.isNaN(i.year)?new ir("invalid input"):null,i=r?null:i,a=r?null:l}this._zone=n,this.loc=t.loc||tt.create(),this.invalid=r,this.weekData=null,this.c=i,this.o=a,this.isLuxonDateTime=!0}static now(){return new ke({})}static local(){const[t,n]=$x(arguments),[r,i,a,o,l,s,c]=n;return Ix({year:r,month:i,day:a,hour:o,minute:l,second:s,millisecond:c},t)}static utc(){const[t,n]=$x(arguments),[r,i,a,o,l,s,c]=n;return t.zone=Jt.utcInstance,Ix({year:r,month:i,day:a,hour:o,minute:l,second:s,millisecond:c},t)}static fromJSDate(t,n={}){const r=xM(t)?t.valueOf():NaN;if(Number.isNaN(r))return ke.invalid("invalid input");const i=wi(n.zone,bt.defaultZone);return i.isValid?new ke({ts:r,zone:i,loc:tt.fromObject(n)}):ke.invalid(kc(i))}static fromMillis(t,n={}){if(Qi(t))return t<-Tx||t>Tx?ke.invalid("Timestamp out of range"):new ke({ts:t,zone:wi(n.zone,bt.defaultZone),loc:tt.fromObject(n)});throw new In(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Qi(t))return new ke({ts:t*1e3,zone:wi(n.zone,bt.defaultZone),loc:tt.fromObject(n)});throw new In("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=wi(n.zone,bt.defaultZone);if(!r.isValid)return ke.invalid(kc(r));const i=bt.now(),a=Fe(n.specificOffset)?r.offset(i):n.specificOffset,o=Oc(t,Dx),l=!Fe(o.ordinal),s=!Fe(o.year),c=!Fe(o.month)||!Fe(o.day),u=s||c,f=o.weekYear||o.weekNumber,d=tt.fromObject(n);if((u||l)&&f)throw new wl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&l)throw new wl("Can't mix ordinal dates with month/day");const h=f||o.weekday&&!u;let p,g,y=Ec(i,a);h?(p=HD,g=RD,y=Jh(y)):l?(p=UD,g=VD,y=Qh(y)):(p=Mx,g=jx);let _=!1;for(const k of p){const j=o[k];Fe(j)?_?o[k]=g[k]:o[k]=y[k]:_=!0}const b=h?BD(o):l?WD(o):Cx(o),S=b||Ax(o);if(S)return ke.invalid(S);const O=h?wx(o):l?Ox(o):o,[w,A]=Pc(O,a,r),T=new ke({ts:w,zone:r,o:A,loc:d});return o.weekday&&u&&t.weekday!==T.weekday?ke.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${T.toISO()}`):T}static fromISO(t,n={}){const[r,i]=uD(t);return Ml(r,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,i]=fD(t);return Ml(r,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,i]=dD(t);return Ml(r,i,n,"HTTP",n)}static fromFormat(t,n,r={}){if(Fe(t)||Fe(n))throw new In("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:a=null}=r,o=tt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0}),[l,s,c,u]=zD(o,t,n);return u?ke.invalid(u):Ml(l,s,r,`format ${n}`,t,c)}static fromString(t,n,r={}){return ke.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,i]=bD(t);return Ml(r,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new In("need to specify a reason the DateTime is invalid");const r=t instanceof ir?t:new ir(t,n);if(bt.throwOnInvalid)throw new J7(r);return new ke({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,n={}){const r=vx(t,tt.fromObject(n));return r?r.map(i=>i?i.val:null).join(""):null}static expandFormat(t,n={}){return gx(qt.parseFormat(t),tt.fromObject(n)).map(i=>i.val).join("")}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?tm(this).weekYear:NaN}get weekNumber(){return this.isValid?tm(this).weekNumber:NaN}get weekday(){return this.isValid?tm(this).weekday:NaN}get ordinal(){return this.isValid?Qh(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ac.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ac.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ac.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ac.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,n=6e4,r=xc(this.c),i=this.zone.offset(r-t),a=this.zone.offset(r+t),o=this.zone.offset(r-i*n),l=this.zone.offset(r-a*n);if(o===l)return[this];const s=r-o*n,c=r-l*n,u=Ec(s,o),f=Ec(c,l);return u.hour===f.hour&&u.minute===f.minute&&u.second===f.second&&u.millisecond===f.millisecond?[ta(this,{ts:s}),ta(this,{ts:c})]:[this]}get isInLeapYear(){return Al(this.year)}get daysInMonth(){return _c(this.year,this.month)}get daysInYear(){return this.isValid?Tl(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sc(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:i}=qt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(Jt.instance(t),n)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=wi(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||r){const a=t.offset(this.ts),o=this.toObject();[i]=Pc(o,a,t)}return ta(this,{ts:i,zone:t})}else return ke.invalid(kc(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return ta(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=Oc(t,Dx),r=!Fe(n.weekYear)||!Fe(n.weekNumber)||!Fe(n.weekday),i=!Fe(n.ordinal),a=!Fe(n.year),o=!Fe(n.month)||!Fe(n.day),l=a||o,s=n.weekYear||n.weekNumber;if((l||i)&&s)throw new wl("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(o&&i)throw new wl("Can't mix ordinal dates with month/day");let c;r?c=wx({...Jh(this.c),...n}):Fe(n.ordinal)?(c={...this.toObject(),...n},Fe(n.day)&&(c.day=Math.min(_c(c.year,c.month),c.day))):c=Ox({...Qh(this.c),...n});const[u,f]=Pc(c,this.o,this.zone);return ta(this,{ts:u,o:f})}plus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t);return ta(this,Ex(this,n))}minus(t){if(!this.isValid)return this;const n=Be.fromDurationLike(t).negate();return ta(this,Ex(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=Be.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?qt.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):em}toLocaleString(t=mc,n={}){return this.isValid?qt.create(this.loc.clone(n),t).formatDateTime(this):em}toLocaleParts(t={}){return this.isValid?qt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:i=!0,extendedZone:a=!1}={}){if(!this.isValid)return null;const o=t==="extended";let l=nm(this,o);return l+="T",l+=Px(this,o,n,r,i,a),l}toISODate({format:t="extended"}={}){return this.isValid?nm(this,t==="extended"):null}toISOWeekDate(){return jc(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:i=!1,extendedZone:a=!1,format:o="extended"}={}){return this.isValid?(i?"T":"")+Px(this,o==="extended",n,t,r,a):null}toRFC2822(){return jc(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return jc(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?nm(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(r&&(i+=" "),n?i+="z":t&&(i+="ZZ")),jc(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():em}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n={...this.c};return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return Be.invalid("created by diffing an invalid DateTime");const i={locale:this.locale,numberingSystem:this.numberingSystem,...r},a=SM(n).map(Be.normalizeUnit),o=t.valueOf()>this.valueOf(),l=o?this:t,s=o?t:this,c=CD(l,s,a,i);return o?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(ke.now(),t,n)}until(t){return this.isValid?gt.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=r&&r<=i.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||ke.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],a=t.unit;return Array.isArray(t.unit)&&(i=t.unit,a=void 0),Lx(n,this.plus(r),{...t,numeric:"always",units:i,unit:a})}toRelativeCalendar(t={}){return this.isValid?Lx(t.base||ke.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(ke.isDateTime))throw new In("min requires all arguments be DateTimes");return B_(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(ke.isDateTime))throw new In("max requires all arguments be DateTimes");return B_(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:i=null,numberingSystem:a=null}=r,o=tt.fromOpts({locale:i,numberingSystem:a,defaultToEN:!0});return px(o,t,n)}static fromStringExplain(t,n,r={}){return ke.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return mc}static get DATE_MED(){return d_}static get DATE_MED_WITH_WEEKDAY(){return tM}static get DATE_FULL(){return h_}static get DATE_HUGE(){return m_}static get TIME_SIMPLE(){return g_}static get TIME_WITH_SECONDS(){return p_}static get TIME_WITH_SHORT_OFFSET(){return v_}static get TIME_WITH_LONG_OFFSET(){return y_}static get TIME_24_SIMPLE(){return b_}static get TIME_24_WITH_SECONDS(){return __}static get TIME_24_WITH_SHORT_OFFSET(){return x_}static get TIME_24_WITH_LONG_OFFSET(){return S_}static get DATETIME_SHORT(){return w_}static get DATETIME_SHORT_WITH_SECONDS(){return O_}static get DATETIME_MED(){return C_}static get DATETIME_MED_WITH_SECONDS(){return A_}static get DATETIME_MED_WITH_WEEKDAY(){return nM}static get DATETIME_FULL(){return T_}static get DATETIME_FULL_WITH_SECONDS(){return k_}static get DATETIME_HUGE(){return E_}static get DATETIME_HUGE_WITH_SECONDS(){return P_}}function Dl(e){if(ke.isDateTime(e))return e;if(e&&e.valueOf&&Qi(e.valueOf()))return ke.fromJSDate(e);if(e&&typeof e=="object")return ke.fromObject(e);throw new In(`Unknown datetime argument: ${e}, of type ${typeof e}`)}function qD(e){return typeof e=="string"&&(e=new Date(e)),e.toLocaleString()}function GD(e){const t=new Date(e.value);return v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{children:t.toLocaleDateString()}),v.jsx(C.SplitItem,{children:t.toLocaleTimeString()})]})}const YD=Le.span`
118
118
  white-space: nowrap;
119
- `;function Fx(e){const[t]=mt(),{author:n,onClick:r}=e,[i,a]=x.useState(null);return x.useEffect(()=>{if(e.format==="date-time"&&typeof e.value=="string"){a(qD(e.value));return}else{typeof e.value=="number"?a(ke.fromMillis(e.value).toRelative()):e.value&&a(ke.fromISO(e.value).toRelative());const o=setInterval(()=>{typeof e.value=="number"?a(ke.fromMillis(e.value).toRelative()):e.value&&a(ke.fromISO(e.value).toRelative())},1e3);return()=>clearTimeout(o)}},[e.format,e.value]),e.value===void 0?v.jsx(v.Fragment,{}):v.jsxs(YD,{className:"date-time",children:[i,n&&v.jsxs("span",{children:[" ",t.by," "]}),r?v.jsx(C.Button,{variant:"link",isInline:!0,onClick:r,children:n}):v.jsx("span",{children:n})]})}function KD(e){const t=x.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=x.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=x.useState(Math.max(0,n-t.valueOf()));x.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),l=Math.floor(a/60%60),s=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?v.jsxs(C.Split,{children:[c!==0&&v.jsxs(C.SplitItem,{children:[c,"d"," "]}),s!==0&&v.jsxs(C.SplitItem,{children:[s,"h"," "]}),l!==0&&v.jsxs(C.SplitItem,{children:[l,"m"," "]}),v.jsxs(C.SplitItem,{children:[o,"s"]})]}):v.jsx(v.Fragment,{})}function Nx(e){return v.jsx(C.LabelGroup,{numLabels:999,style:{flexWrap:"nowrap"},children:e.labels.map(t=>v.jsx(C.Label,{children:t},t))})}var zx=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(zx||{});function Mc(e){switch(e){case"default":return;case"green":case"success":return rm;case"red":case"danger":return im;case"yellow":case"orange":case"warning":return Bx;case"blue":case"info":return am;case"grey":case"disabled":return om}}const rm="var(--pf-global--success-color--100)",im="var(--pf-global--danger-color--100)",Bx="var(--pf-global--warning-color--100)",am="var(--pf-global--info-color--100)",om="var(--pf-global--disabled-color--100)",ZD="var(--pf-global--link--Color)";var Wx=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(Wx||{});function Il(e){const t={};e.color&&(t.color=Mc(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=x.Children.toArray(e.children).map(a=>x.isValidElement(a)?x.cloneElement(a,t):a);return v.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function lm(e){const t=$t.useNavigate();return v.jsxs(C.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&v.jsx(C.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:v.jsx(Il,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&v.jsx(C.FlexItem,{style:{maxWidth:"100%"},children:v.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Mc(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?v.jsx("a",{style:{color:e.color?Mc(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):v.jsx(v.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&v.jsx(C.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:v.jsx(Il,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var na=[],XD=function(){return na.some(function(e){return e.activeTargets.length>0})},JD=function(){return na.some(function(e){return e.skippedTargets.length>0})},Rx="ResizeObserver loop completed with undelivered notifications.",QD=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Rx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Rx),window.dispatchEvent(e)},Ll;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ll||(Ll={}));var ra=function(e){return Object.freeze(e)},eI=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ra(this)}return e}(),Vx=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ra(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),sm=function(e){return e instanceof SVGElement&&"getBBox"in e},Hx=function(e){if(sm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Ux=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},tI=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$l=typeof window<"u"?window:{},Dc=new WeakMap,qx=/auto|scroll/,nI=/^tb|vertical/,rI=/msie|trident/i.test($l.navigator&&$l.navigator.userAgent),Or=function(e){return parseFloat(e||"0")},lo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new eI((n?t:e)||0,(n?e:t)||0)},Gx=ra({devicePixelContentBoxSize:lo(),borderBoxSize:lo(),contentBoxSize:lo(),contentRect:new Vx(0,0,0,0)}),Yx=function(e,t){if(t===void 0&&(t=!1),Dc.has(e)&&!t)return Dc.get(e);if(Hx(e))return Dc.set(e,Gx),Gx;var n=getComputedStyle(e),r=sm(e)&&e.ownerSVGElement&&e.getBBox(),i=!rI&&n.boxSizing==="border-box",a=nI.test(n.writingMode||""),o=!r&&qx.test(n.overflowY||""),l=!r&&qx.test(n.overflowX||""),s=r?0:Or(n.paddingTop),c=r?0:Or(n.paddingRight),u=r?0:Or(n.paddingBottom),f=r?0:Or(n.paddingLeft),d=r?0:Or(n.borderTopWidth),h=r?0:Or(n.borderRightWidth),p=r?0:Or(n.borderBottomWidth),g=r?0:Or(n.borderLeftWidth),y=f+c,_=s+u,b=g+h,S=d+p,O=l?e.offsetHeight-S-e.clientHeight:0,w=o?e.offsetWidth-b-e.clientWidth:0,A=i?y+b:0,T=i?_+S:0,k=r?r.width:Or(n.width)-A-w,P=r?r.height:Or(n.height)-T-O,N=k+y+w+b,M=P+_+O+S,j=ra({devicePixelContentBoxSize:lo(Math.round(k*devicePixelRatio),Math.round(P*devicePixelRatio),a),borderBoxSize:lo(N,M,a),contentBoxSize:lo(k,P,a),contentRect:new Vx(f,s,k,P)});return Dc.set(e,j),j},Kx=function(e,t,n){var r=Yx(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Ll.DEVICE_PIXEL_CONTENT_BOX:return o;case Ll.BORDER_BOX:return i;default:return a}},iI=function(){function e(t){var n=Yx(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ra([n.borderBoxSize]),this.contentBoxSize=ra([n.contentBoxSize]),this.devicePixelContentBoxSize=ra([n.devicePixelContentBoxSize])}return e}(),Zx=function(e){if(Hx(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},aI=function(){var e=1/0,t=[];na.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(c){var u=new iI(c.target),f=Zx(c.target);l.push(u),c.lastReportedSize=Kx(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Xx=function(e){na.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Zx(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},oI=function(){var e=0;for(Xx(e);XD();)e=aI(),Xx(e);return JD()&&QD(),e>0},cm,Jx=[],lI=function(){return Jx.splice(0).forEach(function(e){return e()})},sI=function(e){if(!cm){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return lI()}).observe(n,r),cm=function(){n.textContent="".concat(t?t--:t++)}}Jx.push(e),cm()},cI=function(e){sI(function(){requestAnimationFrame(e)})},Ic=0,uI=function(){return!!Ic},fI=250,dI={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],e1=function(e){return e===void 0&&(e=0),Date.now()+e},um=!1,hI=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=fI),!um){um=!0;var r=e1(t);cI(function(){var i=!1;try{i=oI()}finally{if(um=!1,t=r-e1(),!uI())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,dI)};document.body?n():$l.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return $l.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return $l.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),fm=new hI,t1=function(e){!Ic&&e>0&&fm.start(),Ic+=e,!Ic&&fm.stop()},mI=function(e){return!sm(e)&&!tI(e)&&getComputedStyle(e).display==="inline"},gI=function(){function e(t,n){this.target=t,this.observedBox=n||Ll.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Kx(this.target,this.observedBox,!0);return mI(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),pI=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Lc=new WeakMap,n1=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},$c=function(){function e(){}return e.connect=function(t,n){var r=new pI(t,n);Lc.set(t,r)},e.observe=function(t,n,r){var i=Lc.get(t),a=i.observationTargets.length===0;n1(i.observationTargets,n)<0&&(a&&na.push(i),i.observationTargets.push(new gI(n,r&&r.box)),t1(1),fm.schedule())},e.unobserve=function(t,n){var r=Lc.get(t),i=n1(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&na.splice(na.indexOf(r),1),r.observationTargets.splice(i,1),t1(-1))},e.disconnect=function(t){var n=this,r=Lc.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),vI=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$c.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ux(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$c.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ux(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$c.unobserve(this,t)},e.prototype.disconnect=function(){$c.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const yI=x[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],bI=e=>{const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),t},_I=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:vI;function xI(){}function so(e,t){const n=wI(),r=bI(t);return yI(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return xI;function o(l,s){i||r.current(l,s)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function SI(){let e=!1,t=[];const n=new Map,r=new _I((i,a)=>{t=t.concat(i);function o(){const l=new Set;for(let s=0;s<t.length;s++){if(l.has(t[s].target))continue;l.add(t[s].target);const c=n.get(t[s].target);c==null||c.forEach(u=>u(t[s],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const l=(o=n.get(i))!==null&&o!==void 0?o:[];l.push(a),n.set(i,l)},unsubscribe(i,a){var o;const l=(o=n.get(i))!==null&&o!==void 0?o:[];if(l.length===1){r.unobserve(i),n.delete(i);return}const s=l.indexOf(a);s!==-1&&l.splice(s,1),n.set(i,l)}}}let dm;const wI=()=>dm||(dm=SI()),OI=Le.div`
119
+ `;function Fx(e){const[t]=mt(),{author:n,onClick:r}=e,[i,a]=x.useState(null);return x.useEffect(()=>{if(e.format==="date-time"&&typeof e.value=="string"){a(qD(e.value));return}else{typeof e.value=="number"?a(ke.fromMillis(e.value).toRelative()):e.value&&a(ke.fromISO(e.value).toRelative());const o=setInterval(()=>{typeof e.value=="number"?a(ke.fromMillis(e.value).toRelative()):e.value&&a(ke.fromISO(e.value).toRelative())},1e3);return()=>clearTimeout(o)}},[e.format,e.value]),e.value===void 0?v.jsx(v.Fragment,{}):v.jsxs(YD,{className:"date-time",children:[i,n&&v.jsxs("span",{children:[" ",t.by," "]}),r?v.jsx(C.Button,{variant:"link",isInline:!0,onClick:r,children:n}):v.jsx("span",{children:n})]})}function KD(e){const t=x.useMemo(()=>new Date(e.start??0).valueOf(),[e.start]),n=x.useMemo(()=>new Date(e.finish??0).valueOf(),[e.finish]),[r,i]=x.useState(Math.max(0,n-t.valueOf()));x.useEffect(()=>{const u=setInterval(()=>{t&&(e.finish?i(Math.max(0,n-t)):i(Math.max(0,Date.now()-t)))},1e3);return()=>clearTimeout(u)},[t,n,e.finish]);const a=Math.floor(r/1e3),o=Math.floor(a%60),l=Math.floor(a/60%60),s=Math.floor(a/60/60%24),c=Math.floor(a/60/60/24);return t?v.jsxs(C.Split,{children:[c!==0&&v.jsxs(C.SplitItem,{children:[c,"d"," "]}),s!==0&&v.jsxs(C.SplitItem,{children:[s,"h"," "]}),l!==0&&v.jsxs(C.SplitItem,{children:[l,"m"," "]}),v.jsxs(C.SplitItem,{children:[o,"s"]})]}):v.jsx(v.Fragment,{})}function Nx(e){return v.jsx(C.LabelGroup,{numLabels:999,style:{flexWrap:"nowrap"},children:e.labels.map(t=>v.jsx(C.Label,{children:t},t))})}var zx=(e=>(e.Default="default",e.Green="green",e.Success="success",e.Blue="blue",e.Info="info",e.Red="red",e.Danger="danger",e.Yellow="yellow",e.Orange="orange",e.Warning="warning",e.Grey="grey",e.Disabled="disabled",e))(zx||{});function Mc(e){switch(e){case"default":return;case"green":case"success":return rm;case"red":case"danger":return im;case"yellow":case"orange":case"warning":return Bx;case"blue":case"info":return am;case"grey":case"disabled":return om}}const rm="var(--pf-global--success-color--100)",im="var(--pf-global--danger-color--100)",Bx="var(--pf-global--warning-color--100)",am="var(--pf-global--info-color--100)",om="var(--pf-global--disabled-color--100)",ZD="var(--pf-global--link--Color)";var Wx=(e=>(e.blue="blue",e.cyan="cyan",e.green="green",e.orange="orange",e.purple="purple",e.red="red",e.grey="grey",e))(Wx||{});function Il(e){const t={};e.color&&(t.color=Mc(e.color)),e.size&&(t.size=e.size);let n=0;if(e.padRight)switch(e.size){case"sm":n=6;break;case"md":n=6;break;case"lg":n=8;break;case"xl":n=12;break}let r=0;if(e.padLeft)switch(e.size){case"sm":r=6;break;case"md":r=6;break;case"lg":r=8;break;case"xl":r=12;break}const i=x.Children.toArray(e.children).map(a=>x.isValidElement(a)?x.cloneElement(a,t):a);return v.jsx("div",{style:{paddingRight:n,paddingLeft:r},children:i})}function lm(e){const t=$t.useNavigate();return v.jsxs(C.Flex,{spaceItems:{default:"spaceItemsNone"},flexWrap:{default:"nowrap"},alignItems:{default:"alignItemsBaseline"},children:[e.icon&&((e==null?void 0:e.iconAlign)===void 0||e.iconAlign&&e.iconAlign!=="right")&&v.jsx(C.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:v.jsx(Il,{size:e.iconSize??"sm",color:e.iconColor??e.color,padRight:!0,children:e.icon})}),e.text&&v.jsx(C.FlexItem,{style:{maxWidth:"100%"},children:v.jsx("div",{style:{maxWidth:e.maxWidth??"100%",whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",color:e.color?Mc(e.color):void 0},children:!e.disableLinks&&(e.to||e.onClick)?v.jsx("a",{style:{color:e.color?Mc(e.color):void 0},href:e.to,onClick:n=>{if(n.preventDefault(),e.onClick)e.onClick();else{if(!e.to)return;t(e.to)}},children:e.text}):v.jsx(v.Fragment,{children:e.text})})}),e.icon&&e.iconAlign==="right"&&v.jsx(C.FlexItem,{alignSelf:{default:"alignSelfCenter"},children:v.jsx(Il,{size:e.iconSize??"sm",padLeft:!0,color:e.iconColor??e.color,children:e.icon})})]})}var na=[],XD=function(){return na.some(function(e){return e.activeTargets.length>0})},JD=function(){return na.some(function(e){return e.skippedTargets.length>0})},Rx="ResizeObserver loop completed with undelivered notifications.",QD=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Rx}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Rx),window.dispatchEvent(e)},Ll;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Ll||(Ll={}));var ra=function(e){return Object.freeze(e)},eI=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,ra(this)}return e}(),Vx=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ra(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,a=t.right,o=t.bottom,l=t.left,s=t.width,c=t.height;return{x:n,y:r,top:i,right:a,bottom:o,left:l,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),sm=function(e){return e instanceof SVGElement&&"getBBox"in e},Hx=function(e){if(sm(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},Ux=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},tI=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},$l=typeof window<"u"?window:{},Dc=new WeakMap,qx=/auto|scroll/,nI=/^tb|vertical/,rI=/msie|trident/i.test($l.navigator&&$l.navigator.userAgent),Or=function(e){return parseFloat(e||"0")},lo=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new eI((n?t:e)||0,(n?e:t)||0)},Gx=ra({devicePixelContentBoxSize:lo(),borderBoxSize:lo(),contentBoxSize:lo(),contentRect:new Vx(0,0,0,0)}),Yx=function(e,t){if(t===void 0&&(t=!1),Dc.has(e)&&!t)return Dc.get(e);if(Hx(e))return Dc.set(e,Gx),Gx;var n=getComputedStyle(e),r=sm(e)&&e.ownerSVGElement&&e.getBBox(),i=!rI&&n.boxSizing==="border-box",a=nI.test(n.writingMode||""),o=!r&&qx.test(n.overflowY||""),l=!r&&qx.test(n.overflowX||""),s=r?0:Or(n.paddingTop),c=r?0:Or(n.paddingRight),u=r?0:Or(n.paddingBottom),f=r?0:Or(n.paddingLeft),d=r?0:Or(n.borderTopWidth),h=r?0:Or(n.borderRightWidth),p=r?0:Or(n.borderBottomWidth),g=r?0:Or(n.borderLeftWidth),y=f+c,_=s+u,b=g+h,S=d+p,O=l?e.offsetHeight-S-e.clientHeight:0,w=o?e.offsetWidth-b-e.clientWidth:0,A=i?y+b:0,T=i?_+S:0,k=r?r.width:Or(n.width)-A-w,j=r?r.height:Or(n.height)-T-O,N=k+y+w+b,M=j+_+O+S,E=ra({devicePixelContentBoxSize:lo(Math.round(k*devicePixelRatio),Math.round(j*devicePixelRatio),a),borderBoxSize:lo(N,M,a),contentBoxSize:lo(k,j,a),contentRect:new Vx(f,s,k,j)});return Dc.set(e,E),E},Kx=function(e,t,n){var r=Yx(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case Ll.DEVICE_PIXEL_CONTENT_BOX:return o;case Ll.BORDER_BOX:return i;default:return a}},iI=function(){function e(t){var n=Yx(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=ra([n.borderBoxSize]),this.contentBoxSize=ra([n.contentBoxSize]),this.devicePixelContentBoxSize=ra([n.devicePixelContentBoxSize])}return e}(),Zx=function(e){if(Hx(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},aI=function(){var e=1/0,t=[];na.forEach(function(o){if(o.activeTargets.length!==0){var l=[];o.activeTargets.forEach(function(c){var u=new iI(c.target),f=Zx(c.target);l.push(u),c.lastReportedSize=Kx(c.target,c.observedBox),f<e&&(e=f)}),t.push(function(){o.callback.call(o.observer,l,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},Xx=function(e){na.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(Zx(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},oI=function(){var e=0;for(Xx(e);XD();)e=aI(),Xx(e);return JD()&&QD(),e>0},cm,Jx=[],lI=function(){return Jx.splice(0).forEach(function(e){return e()})},sI=function(e){if(!cm){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return lI()}).observe(n,r),cm=function(){n.textContent="".concat(t?t--:t++)}}Jx.push(e),cm()},cI=function(e){sI(function(){requestAnimationFrame(e)})},Ic=0,uI=function(){return!!Ic},fI=250,dI={attributes:!0,characterData:!0,childList:!0,subtree:!0},Qx=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],e1=function(e){return e===void 0&&(e=0),Date.now()+e},um=!1,hI=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=fI),!um){um=!0;var r=e1(t);cI(function(){var i=!1;try{i=oI()}finally{if(um=!1,t=r-e1(),!uI())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,dI)};document.body?n():$l.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Qx.forEach(function(n){return $l.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Qx.forEach(function(n){return $l.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),fm=new hI,t1=function(e){!Ic&&e>0&&fm.start(),Ic+=e,!Ic&&fm.stop()},mI=function(e){return!sm(e)&&!tI(e)&&getComputedStyle(e).display==="inline"},gI=function(){function e(t,n){this.target=t,this.observedBox=n||Ll.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Kx(this.target,this.observedBox,!0);return mI(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),pI=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),Lc=new WeakMap,n1=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},$c=function(){function e(){}return e.connect=function(t,n){var r=new pI(t,n);Lc.set(t,r)},e.observe=function(t,n,r){var i=Lc.get(t),a=i.observationTargets.length===0;n1(i.observationTargets,n)<0&&(a&&na.push(i),i.observationTargets.push(new gI(n,r&&r.box)),t1(1),fm.schedule())},e.unobserve=function(t,n){var r=Lc.get(t),i=n1(r.observationTargets,n),a=r.observationTargets.length===1;i>=0&&(a&&na.splice(na.indexOf(r),1),r.observationTargets.splice(i,1),t1(-1))},e.disconnect=function(t){var n=this,r=Lc.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),vI=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");$c.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ux(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");$c.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ux(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");$c.unobserve(this,t)},e.prototype.disconnect=function(){$c.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const yI=x[typeof document<"u"&&document.createElement!==void 0?"useLayoutEffect":"useEffect"],bI=e=>{const t=F.useRef(e);return F.useEffect(()=>{t.current=e}),t},_I=typeof window<"u"&&"ResizeObserver"in window?window.ResizeObserver:vI;function xI(){}function so(e,t){const n=wI(),r=bI(t);return yI(()=>{let i=!1;const a=e&&"current"in e?e.current:e;if(!a)return xI;function o(l,s){i||r.current(l,s)}return n.subscribe(a,o),()=>{i=!0,n.unsubscribe(a,o)}},[e,n,r]),n.observer}function SI(){let e=!1,t=[];const n=new Map,r=new _I((i,a)=>{t=t.concat(i);function o(){const l=new Set;for(let s=0;s<t.length;s++){if(l.has(t[s].target))continue;l.add(t[s].target);const c=n.get(t[s].target);c==null||c.forEach(u=>u(t[s],a))}t=[],e=!1}e||window.requestAnimationFrame(o),e=!0});return{observer:r,subscribe(i,a){var o;r.observe(i);const l=(o=n.get(i))!==null&&o!==void 0?o:[];l.push(a),n.set(i,l)},unsubscribe(i,a){var o;const l=(o=n.get(i))!==null&&o!==void 0?o:[];if(l.length===1){r.unobserve(i),n.delete(i);return}const s=l.indexOf(a);s!==-1&&l.splice(s,1),n.set(i,l)}}}let dm;const wI=()=>dm||(dm=SI()),OI=Le.div`
120
120
  width: 100%;
121
121
  height: 100%;
122
122
  flex-grow: 1;
@@ -129,16 +129,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
129
129
  object-assign
130
130
  (c) Sindre Sorhus
131
131
  @license MIT
132
- */var Cm,N1;function Q8(){if(N1)return Cm;N1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var s=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(s.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cm=i()?Object.assign:function(a,o){for(var l,s=r(a),c,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(s[f]=l[f]);if(e){c=e(l);for(var d=0;d<c.length;d++)n.call(l,c[d])&&(s[c[d]]=l[c[d]])}}return s},Cm}var Am,z1;function Tm(){if(z1)return Am;z1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Am=e,Am}var km,B1;function W1(){return B1||(B1=1,km=Function.call.bind(Object.prototype.hasOwnProperty)),km}var Em,R1;function eF(){if(R1)return Em;R1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tm(),n={},r=W1();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,l,s,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((s||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,s,l,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=c?c():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Em=i,Em}var Pm,V1;function tF(){if(V1)return Pm;V1=1;var e=Ba,t=Q8(),n=Tm(),r=W1(),i=eF(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return Pm=function(l,s){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(R){var J=R&&(c&&R[c]||R[u]);if(typeof J=="function")return J}var d="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:O(),elementType:w(),instanceOf:A,node:N(),objectOf:k,oneOf:T,oneOfType:P,shape:j,exact:D};function p(R,J){return R===J?R!==0||1/R===1/J:R!==R&&J!==J}function g(R,J){this.message=R,this.data=J&&typeof J=="object"?J:{},this.stack=""}g.prototype=Error.prototype;function y(R){if(process.env.NODE_ENV!=="production")var J={},U=0;function Y(ie,z,se,K,Q,te,ce){if(K=K||d,te=te||se,ce!==n){if(s){var L=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 L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=K+":"+se;!J[xe]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. 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."),J[xe]=!0,U++)}}return z[se]==null?ie?z[se]===null?new g("The "+Q+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new g("The "+Q+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:R(z,se,K,Q,te)}var G=Y.bind(null,!1);return G.isRequired=Y.bind(null,!0),G}function _(R){function J(U,Y,G,ie,z,se){var K=U[Y],Q=X(K);if(Q!==R){var te=ne(K);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return y(J)}function b(){return y(o)}function S(R){function J(U,Y,G,ie,z){if(typeof R!="function")return new g("Property `"+z+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var se=U[Y];if(!Array.isArray(se)){var K=X(se);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var Q=0;Q<se.length;Q++){var te=R(se,Q,G,ie,z+"["+Q+"]",n);if(te instanceof Error)return te}return null}return y(J)}function O(){function R(J,U,Y,G,ie){var z=J[U];if(!l(z)){var se=X(z);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(R)}function w(){function R(J,U,Y,G,ie){var z=J[U];if(!e.isValidElementType(z)){var se=X(z);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(R)}function A(R){function J(U,Y,G,ie,z){if(!(U[Y]instanceof R)){var se=R.name||d,K=Z(U[Y]);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+se+"`."))}return null}return y(J)}function T(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function J(U,Y,G,ie,z){for(var se=U[Y],K=0;K<R.length;K++)if(p(se,R[K]))return null;var Q=JSON.stringify(R,function(ce,L){var xe=ne(L);return xe==="symbol"?String(L):L});return new g("Invalid "+ie+" `"+z+"` of value `"+String(se)+"` "+("supplied to `"+G+"`, expected one of "+Q+"."))}return y(J)}function k(R){function J(U,Y,G,ie,z){if(typeof R!="function")return new g("Property `"+z+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var Q in se)if(r(se,Q)){var te=R(se,Q,G,ie,z+"."+Q,n);if(te instanceof Error)return te}return null}return y(J)}function P(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var J=0;J<R.length;J++){var U=R[J];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(U)+" at index "+J+"."),o}function Y(G,ie,z,se,K){for(var Q=[],te=0;te<R.length;te++){var ce=R[te],L=ce(G,ie,z,se,K,n);if(L==null)return null;L.data&&r(L.data,"expectedType")&&Q.push(L.data.expectedType)}var xe=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new g("Invalid "+se+" `"+K+"` supplied to "+("`"+z+"`"+xe+"."))}return y(Y)}function N(){function R(J,U,Y,G,ie){return I(J[U])?null:new g("Invalid "+G+" `"+ie+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(R)}function M(R,J,U,Y,G){return new g((R||"React class")+": "+J+" type `"+U+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function j(R){function J(U,Y,G,ie,z){var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Q in R){var te=R[Q];if(typeof te!="function")return M(G,ie,z,Q,ne(te));var ce=te(se,Q,G,ie,z+"."+Q,n);if(ce)return ce}return null}return y(J)}function D(R){function J(U,Y,G,ie,z){var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Q=t({},U[Y],R);for(var te in Q){var ce=R[te];if(r(R,te)&&typeof ce!="function")return M(G,ie,z,te,ne(ce));if(!ce)return new g("Invalid "+ie+" `"+z+"` key `"+te+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(U[Y],null," ")+`
133
- Valid keys: `+JSON.stringify(Object.keys(R),null," "));var L=ce(se,te,G,ie,z+"."+te,n);if(L)return L}return null}return y(J)}function I(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(I);if(R===null||l(R))return!0;var J=f(R);if(J){var U=J.call(R),Y;if(J!==R.entries){for(;!(Y=U.next()).done;)if(!I(Y.value))return!1}else for(;!(Y=U.next()).done;){var G=Y.value;if(G&&!I(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(R,J){return R==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function X(R){var J=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":W(J,R)?"symbol":J}function ne(R){if(typeof R>"u"||R===null)return""+R;var J=X(R);if(J==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return J}function re(R){var J=ne(R);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function Z(R){return!R.constructor||!R.constructor.name?d:R.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Pm}var jm,H1;function nF(){if(H1)return jm;H1=1;var e=Tm();function t(){}function n(){}return n.resetWarningCache=t,jm=function(){function r(o,l,s,c,u,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={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 a.PropTypes=a,a},jm}if(process.env.NODE_ENV!=="production"){var rF=Ba,iF=!0;Om.exports=tF()(rF.isElement,iF)}else Om.exports=nF()();var aF=Om.exports;const m=Ae(aF),oF=e=>+e;function lF(e){return e*e}function sF(e){return e*(2-e)}function U1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function cF(e){return e*e*e}function uF(e){return--e*e*e+1}function q1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mm=3,fF=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(Mm),dF=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(Mm),G1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(Mm),Y1=Math.PI,K1=Y1/2;function hF(e){return+e==1?1:1-Math.cos(e*K1)}function mF(e){return Math.sin(e*K1)}function Z1(e){return(1-Math.cos(Y1*e))/2}function Ei(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function gF(e){return Ei(1-+e)}function pF(e){return 1-Ei(e)}function X1(e){return((e*=2)<=1?Ei(1-e):2-Ei(e-1))/2}function vF(e){return 1-Math.sqrt(1-e*e)}function yF(e){return Math.sqrt(1- --e*e)}function J1(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Dm=4/11,bF=6/11,_F=8/11,xF=3/4,SF=9/11,wF=10/11,OF=15/16,CF=21/22,AF=63/64,Gc=1/Dm/Dm;function TF(e){return 1-Hl(1-e)}function Hl(e){return(e=+e)<Dm?Gc*e*e:e<_F?Gc*(e-=bF)*e+xF:e<wF?Gc*(e-=SF)*e+OF:Gc*(e-=CF)*e+AF}function kF(e){return((e*=2)<=1?1-Hl(1-e):Hl(e-1)+1)/2}var Im=1.70158,EF=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Im),PF=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Im),Q1=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Im),ho=2*Math.PI,Lm=1,$m=.3,jF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return t*Ei(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m),e5=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return 1-t*Ei(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m),MF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return((a=a*2-1)<0?t*Ei(-a)*Math.sin((r-a)/n):2-t*Ei(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m);const DF=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Q1,easeBackIn:EF,easeBackInOut:Q1,easeBackOut:PF,easeBounce:Hl,easeBounceIn:TF,easeBounceInOut:kF,easeBounceOut:Hl,easeCircle:J1,easeCircleIn:vF,easeCircleInOut:J1,easeCircleOut:yF,easeCubic:q1,easeCubicIn:cF,easeCubicInOut:q1,easeCubicOut:uF,easeElastic:e5,easeElasticIn:jF,easeElasticInOut:MF,easeElasticOut:e5,easeExp:X1,easeExpIn:gF,easeExpInOut:X1,easeExpOut:pF,easeLinear:oF,easePoly:G1,easePolyIn:fF,easePolyInOut:G1,easePolyOut:dF,easeQuad:U1,easeQuadIn:lF,easeQuadInOut:U1,easeQuadOut:sF,easeSin:Z1,easeSinIn:hF,easeSinInOut:Z1,easeSinOut:mF},Symbol.toStringTag,{value:"Module"}));function IF(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var mo=IF,LF=Gr,$F=sr,FF="[object Symbol]";function NF(e){return typeof e=="symbol"||$F(e)&&LF(e)==FF}var Ul=NF,zF=Nt,BF=Ul,WF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RF=/^\w*$/;function VF(e,t){if(zF(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||BF(e)?!0:RF.test(e)||!WF.test(e)||t!=null&&e in Object(t)}var Fm=VF,HF=aa,UF=HF(Object,"create"),Yc=UF,t5=Yc;function qF(){this.__data__=t5?t5(null):{},this.size=0}var GF=qF;function YF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var KF=YF,ZF=Yc,XF="__lodash_hash_undefined__",JF=Object.prototype,QF=JF.hasOwnProperty;function eN(e){var t=this.__data__;if(ZF){var n=t[e];return n===XF?void 0:n}return QF.call(t,e)?t[e]:void 0}var tN=eN,nN=Yc,rN=Object.prototype,iN=rN.hasOwnProperty;function aN(e){var t=this.__data__;return nN?t[e]!==void 0:iN.call(t,e)}var oN=aN,lN=Yc,sN="__lodash_hash_undefined__";function cN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lN&&t===void 0?sN:t,this}var uN=cN,fN=GF,dN=KF,hN=tN,mN=oN,gN=uN;function go(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}go.prototype.clear=fN,go.prototype.delete=dN,go.prototype.get=hN,go.prototype.has=mN,go.prototype.set=gN;var pN=go;function vN(){this.__data__=[],this.size=0}var yN=vN,bN=la;function _N(e,t){for(var n=e.length;n--;)if(bN(e[n][0],t))return n;return-1}var Kc=_N,xN=Kc,SN=Array.prototype,wN=SN.splice;function ON(e){var t=this.__data__,n=xN(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():wN.call(t,n,1),--this.size,!0}var CN=ON,AN=Kc;function TN(e){var t=this.__data__,n=AN(t,e);return n<0?void 0:t[n][1]}var kN=TN,EN=Kc;function PN(e){return EN(this.__data__,e)>-1}var jN=PN,MN=Kc;function DN(e,t){var n=this.__data__,r=MN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IN=DN,LN=yN,$N=CN,FN=kN,NN=jN,zN=IN;function po(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}po.prototype.clear=LN,po.prototype.delete=$N,po.prototype.get=FN,po.prototype.has=NN,po.prototype.set=zN;var Zc=po,n5=pN,BN=Zc,WN=gm;function RN(){this.size=0,this.__data__={hash:new n5,map:new(WN||BN),string:new n5}}var VN=RN;function HN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var UN=HN,qN=UN;function GN(e,t){var n=e.__data__;return qN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Xc=GN,YN=Xc;function KN(e){var t=YN(this,e).delete(e);return this.size-=t?1:0,t}var ZN=KN,XN=Xc;function JN(e){return XN(this,e).get(e)}var QN=JN,e9=Xc;function t9(e){return e9(this,e).has(e)}var n9=t9,r9=Xc;function i9(e,t){var n=r9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var a9=i9,o9=VN,l9=ZN,s9=QN,c9=n9,u9=a9;function vo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vo.prototype.clear=o9,vo.prototype.delete=l9,vo.prototype.get=s9,vo.prototype.has=c9,vo.prototype.set=u9;var Nm=vo,r5=Nm,f9="Expected a function";function zm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(f9);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(zm.Cache||r5),n}zm.Cache=r5;var i5=zm;const a5=Ae(i5);var d9=i5,h9=500;function m9(e){var t=d9(e,function(r){return n.size===h9&&n.clear(),r}),n=t.cache;return t}var g9=m9,p9=g9,v9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y9=/\\(\\)?/g,b9=p9(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(v9,function(n,r,i,a){t.push(i?a.replace(y9,"$1"):r||n)}),t}),_9=b9,o5=co,x9=mo,S9=Nt,w9=Ul,O9=1/0,l5=o5?o5.prototype:void 0,s5=l5?l5.toString:void 0;function c5(e){if(typeof e=="string")return e;if(S9(e))return x9(e,c5)+"";if(w9(e))return s5?s5.call(e):"";var t=e+"";return t=="0"&&1/e==-O9?"-0":t}var C9=c5,A9=C9;function T9(e){return e==null?"":A9(e)}var u5=T9,k9=Nt,E9=Fm,P9=_9,j9=u5;function M9(e,t){return k9(e)?e:E9(e,t)?[e]:P9(j9(e))}var Jc=M9,D9=Ul,I9=1/0;function L9(e){if(typeof e=="string"||D9(e))return e;var t=e+"";return t=="0"&&1/e==-I9?"-0":t}var ql=L9,$9=Jc,F9=ql;function N9(e,t){t=$9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[F9(t[n++])];return n&&n==r?e:void 0}var Qc=N9,z9=Zc;function B9(){this.__data__=new z9,this.size=0}var W9=B9;function R9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var V9=R9;function H9(e){return this.__data__.get(e)}var U9=H9;function q9(e){return this.__data__.has(e)}var G9=q9,Y9=Zc,K9=gm,Z9=Nm,X9=200;function J9(e,t){var n=this.__data__;if(n instanceof Y9){var r=n.__data__;if(!K9||r.length<X9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z9(r)}return n.set(e,t),this.size=n.size,this}var Q9=J9,ez=Zc,tz=W9,nz=V9,rz=U9,iz=G9,az=Q9;function yo(e){var t=this.__data__=new ez(e);this.size=t.size}yo.prototype.clear=tz,yo.prototype.delete=nz,yo.prototype.get=rz,yo.prototype.has=iz,yo.prototype.set=az;var Bm=yo,oz="__lodash_hash_undefined__";function lz(e){return this.__data__.set(e,oz),this}var sz=lz;function cz(e){return this.__data__.has(e)}var uz=cz,fz=Nm,dz=sz,hz=uz;function eu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new fz;++t<n;)this.add(e[t])}eu.prototype.add=eu.prototype.push=dz,eu.prototype.has=hz;var Wm=eu;function mz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var f5=mz;function gz(e,t){return e.has(t)}var Rm=gz,pz=Wm,vz=f5,yz=Rm,bz=1,_z=2;function xz(e,t,n,r,i,a){var o=n&bz,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=n&_z?new pz:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var p=e[f],g=t[f];if(r)var y=o?r(g,p,f,t,e,a):r(p,g,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!vz(t,function(_,b){if(!yz(h,b)&&(p===_||i(p,_,n,r,a)))return h.push(b)})){d=!1;break}}else if(!(p===g||i(p,g,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var d5=xz,Sz=lr,wz=Sz.Uint8Array,h5=wz;function Oz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var m5=Oz;function Cz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Vm=Cz,g5=co,p5=h5,Az=la,Tz=d5,kz=m5,Ez=Vm,Pz=1,jz=2,Mz="[object Boolean]",Dz="[object Date]",Iz="[object Error]",Lz="[object Map]",$z="[object Number]",Fz="[object RegExp]",Nz="[object Set]",zz="[object String]",Bz="[object Symbol]",Wz="[object ArrayBuffer]",Rz="[object DataView]",v5=g5?g5.prototype:void 0,Hm=v5?v5.valueOf:void 0;function Vz(e,t,n,r,i,a,o){switch(n){case Rz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wz:return!(e.byteLength!=t.byteLength||!a(new p5(e),new p5(t)));case Mz:case Dz:case $z:return Az(+e,+t);case Iz:return e.name==t.name&&e.message==t.message;case Fz:case zz:return e==t+"";case Lz:var l=kz;case Nz:var s=r&Pz;if(l||(l=Ez),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=jz,o.set(e,t);var u=Tz(l(e),l(t),r,i,a,o);return o.delete(e),u;case Bz:if(Hm)return Hm.call(e)==Hm.call(t)}return!1}var Hz=Vz;function Uz(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Um=Uz,qz=Um,Gz=Nt;function Yz(e,t,n){var r=t(e);return Gz(e)?r:qz(r,n(e))}var y5=Yz;function Kz(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var Zz=Kz;function Xz(){return[]}var b5=Xz,Jz=Zz,Qz=b5,eB=Object.prototype,tB=eB.propertyIsEnumerable,_5=Object.getOwnPropertySymbols,nB=_5?function(e){return e==null?[]:(e=Object(e),Jz(_5(e),function(t){return tB.call(e,t)}))}:Qz,x5=nB,rB=y5,iB=x5,aB=ki;function oB(e){return rB(e,aB,iB)}var lB=oB,S5=lB,sB=1,cB=Object.prototype,uB=cB.hasOwnProperty;function fB(e,t,n,r,i,a){var o=n&sB,l=S5(e),s=l.length,c=S5(t),u=c.length;if(s!=u&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:uB.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<s;){d=l[f];var _=e[d],b=t[d];if(r)var S=o?r(b,_,d,t,e,a):r(_,b,d,e,t,a);if(!(S===void 0?_===b||i(_,b,n,r,a):S)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(g=!1)}return a.delete(e),a.delete(t),g}var dB=fB,qm=Bm,hB=d5,mB=Hz,gB=dB,w5=xm,O5=Nt,C5=Wc,pB=Vc,vB=1,A5="[object Arguments]",T5="[object Array]",tu="[object Object]",yB=Object.prototype,k5=yB.hasOwnProperty;function bB(e,t,n,r,i,a){var o=O5(e),l=O5(t),s=o?T5:w5(e),c=l?T5:w5(t);s=s==A5?tu:s,c=c==A5?tu:c;var u=s==tu,f=c==tu,d=s==c;if(d&&C5(e)){if(!C5(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new qm),o||pB(e)?hB(e,t,n,r,i,a):mB(e,t,s,n,r,i,a);if(!(n&vB)){var h=u&&k5.call(e,"__wrapped__"),p=f&&k5.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,y=p?t.value():t;return a||(a=new qm),i(g,y,n,r,a)}}return d?(a||(a=new qm),gB(e,t,n,r,i,a)):!1}var _B=bB,xB=_B,E5=sr;function P5(e,t,n,r,i){return e===t?!0:e==null||t==null||!E5(e)&&!E5(t)?e!==e&&t!==t:xB(e,t,n,r,P5,i)}var Gm=P5,SB=Bm,wB=Gm,OB=1,CB=2;function AB(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],c=e[s],u=l[1];if(o&&l[2]){if(c===void 0&&!(s in e))return!1}else{var f=new SB;if(r)var d=r(c,u,s,e,t,f);if(!(d===void 0?wB(u,c,OB|CB,r,f):d))return!1}}return!0}var TB=AB,kB=xn;function EB(e){return e===e&&!kB(e)}var j5=EB,PB=j5,jB=ki;function MB(e){for(var t=jB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,PB(i)]}return t}var DB=MB;function IB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var M5=IB,LB=TB,$B=DB,FB=M5;function NB(e){var t=$B(e);return t.length==1&&t[0][2]?FB(t[0][0],t[0][1]):function(n){return n===e||LB(n,e,t)}}var zB=NB,BB=Qc;function WB(e,t,n){var r=e==null?void 0:BB(e,t);return r===void 0?n:r}var RB=WB;function VB(e,t){return e!=null&&t in Object(e)}var HB=VB,UB=Jc,qB=zl,GB=Nt,YB=Hc,KB=Sm,ZB=ql;function XB(e,t,n){t=UB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ZB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&KB(i)&&YB(o,i)&&(GB(e)||qB(e)))}var JB=XB,QB=HB,eW=JB;function tW(e,t){return e!=null&&eW(e,t,QB)}var D5=tW,nW=Gm,rW=RB,iW=D5,aW=Fm,oW=j5,lW=M5,sW=ql,cW=1,uW=2;function fW(e,t){return aW(e)&&oW(t)?lW(sW(e),t):function(n){var r=rW(n,e);return r===void 0&&r===t?iW(n,e):nW(t,r,cW|uW)}}var dW=fW;function hW(e){return function(t){return t==null?void 0:t[e]}}var mW=hW,gW=Qc;function pW(e){return function(t){return gW(t,e)}}var vW=pW,yW=mW,bW=vW,_W=Fm,xW=ql;function SW(e){return _W(e)?yW(xW(e)):bW(e)}var I5=SW;const L5=Ae(I5);var wW=zB,OW=dW,CW=Ti,AW=Nt,TW=I5;function kW(e){return typeof e=="function"?e:e==null?CW:typeof e=="object"?AW(e)?OW(e[0],e[1]):wW(e):TW(e)}var Yr=kW;function EW(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var PW=EW,jW=PW,MW=jW(),$5=MW,DW=$5,IW=ki;function LW(e,t){return e&&DW(e,t,IW)}var nu=LW,$W=Cr;function FW(e,t){return function(n,r){if(n==null)return n;if(!$W(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var NW=FW,zW=nu,BW=NW,WW=BW(zW),Ym=WW,RW=Ym,VW=Cr;function HW(e,t){var n=-1,r=VW(e)?Array(e.length):[];return RW(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var UW=HW;function qW(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var GW=qW,F5=Ul;function YW(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=F5(e),o=t!==void 0,l=t===null,s=t===t,c=F5(t);if(!l&&!c&&!a&&e>t||a&&o&&s&&!l&&!c||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var KW=YW,ZW=KW;function XW(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=ZW(i[r],a[r]);if(s){if(r>=l)return s;var c=n[r];return s*(c=="desc"?-1:1)}}return e.index-t.index}var JW=XW,Km=mo,QW=Qc,eR=Yr,tR=UW,nR=GW,rR=Bl,iR=JW,aR=Ti,oR=Nt;function lR(e,t,n){t.length?t=Km(t,function(a){return oR(a)?function(o){return QW(o,a.length===1?a[0]:a)}:a}):t=[aR];var r=-1;t=Km(t,rR(eR));var i=tR(e,function(a,o,l){var s=Km(t,function(c){return c(a)});return{criteria:s,index:++r,value:a}});return nR(i,function(a,o){return iR(a,o,n)})}var sR=lR,cR=sR,N5=Nt;function uR(e,t,n,r){return e==null?[]:(N5(t)||(t=t==null?[]:[t]),n=r?void 0:n,N5(n)||(n=n==null?[]:[n]),cR(e,t,n))}var fR=uR;const bo=Ae(fR);var dR=o1,hR=dR(Object.getPrototypeOf,Object),Zm=hR,mR=Gr,gR=Zm,pR=sr,vR="[object Object]",yR=Function.prototype,bR=Object.prototype,z5=yR.toString,_R=bR.hasOwnProperty,xR=z5.call(Object);function SR(e){if(!pR(e)||mR(e)!=vR)return!1;var t=gR(e);if(t===null)return!0;var n=_R.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&z5.call(n)==xR}var B5=SR;const Qe=Ae(B5);function Xm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function W5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Gl(){}var Yl=.7,ru=1/Yl,_o="\\s*([+-]?\\d+)\\s*",Kl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wR=/^#([0-9a-f]{3,8})$/,OR=new RegExp(`^rgb\\(${_o},${_o},${_o}\\)$`),CR=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),AR=new RegExp(`^rgba\\(${_o},${_o},${_o},${Kl}\\)$`),TR=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Kl}\\)$`),kR=new RegExp(`^hsl\\(${Kl},${Ar},${Ar}\\)$`),ER=new RegExp(`^hsla\\(${Kl},${Ar},${Ar},${Kl}\\)$`),R5={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};Xm(Gl,Zl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V5,formatHex:V5,formatHex8:PR,formatHsl:jR,formatRgb:H5,toString:H5});function V5(){return this.rgb().formatHex()}function PR(){return this.rgb().formatHex8()}function jR(){return K5(this).formatHsl()}function H5(){return this.rgb().formatRgb()}function Zl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?U5(t):n===3?new un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?iu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?iu(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=OR.exec(e))?new un(t[1],t[2],t[3],1):(t=CR.exec(e))?new un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AR.exec(e))?iu(t[1],t[2],t[3],t[4]):(t=TR.exec(e))?iu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kR.exec(e))?Y5(t[1],t[2]/100,t[3]/100,1):(t=ER.exec(e))?Y5(t[1],t[2]/100,t[3]/100,t[4]):R5.hasOwnProperty(e)?U5(R5[e]):e==="transparent"?new un(NaN,NaN,NaN,0):null}function U5(e){return new un(e>>16&255,e>>8&255,e&255,1)}function iu(e,t,n,r){return r<=0&&(e=t=n=NaN),new un(e,t,n,r)}function MR(e){return e instanceof Gl||(e=Zl(e)),e?(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity)):new un}function Jm(e,t,n,r){return arguments.length===1?MR(e):new un(e,t,n,r??1)}function un(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xm(un,Jm,W5(Gl,{brighter(e){return e=e==null?ru:Math.pow(ru,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yl:Math.pow(Yl,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new un(ca(this.r),ca(this.g),ca(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q5,formatHex:q5,formatHex8:DR,formatRgb:G5,toString:G5}));function q5(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}`}function DR(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}${ua((isNaN(this.opacity)?1:this.opacity)*255)}`}function G5(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${ca(this.r)}, ${ca(this.g)}, ${ca(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ca(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ua(e){return e=ca(e),(e<16?"0":"")+e.toString(16)}function Y5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cr(e,t,n,r)}function K5(e){if(e instanceof cr)return new cr(e.h,e.s,e.l,e.opacity);if(e instanceof Gl||(e=Zl(e)),!e)return new cr;if(e instanceof cr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new cr(o,l,s,e.opacity)}function IR(e,t,n,r){return arguments.length===1?K5(e):new cr(e,t,n,r??1)}function cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xm(cr,IR,W5(Gl,{brighter(e){return e=e==null?ru:Math.pow(ru,e),new cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yl:Math.pow(Yl,e),new cr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new un(Qm(e>=240?e-240:e+120,i,r),Qm(e,i,r),Qm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new cr(Z5(this.h),ou(this.s),ou(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${Z5(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Z5(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function Qm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const e0=e=>()=>e;function LR(e,t){return function(n){return e+n*t}}function $R(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 FR(e){return(e=+e)==1?X5:function(t,n){return n-t?$R(t,n,e):e0(isNaN(t)?n:t)}}function X5(e,t){var n=t-e;return n?LR(e,n):e0(isNaN(e)?t:e)}const J5=function e(t){var n=FR(t);function r(i,a){var o=n((i=Jm(i)).r,(a=Jm(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),c=X5(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=l(u),i.b=s(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function NR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function zR(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BR(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Tr(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function WR(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function lu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function RR(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Tr(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var t0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n0=new RegExp(t0.source,"g");function VR(e){return function(){return e}}function HR(e){return function(t){return e(t)+""}}function UR(e,t){var n=t0.lastIndex=n0.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=t0.exec(e))&&(i=n0.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:lu(r,i)})),n=n0.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?HR(s[0].x):VR(t):(t=s.length,function(c){for(var u=0,f;u<t;++u)l[(f=s[u]).i]=f.x(c);return l.join("")})}function Tr(e,t){var n=typeof t,r;return t==null||n==="boolean"?e0(t):(n==="number"?lu:n==="string"?(r=Zl(t))?(t=r,J5):UR:t instanceof Zl?J5:t instanceof Date?WR:zR(t)?NR:Array.isArray(t)?BR:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RR:lu)(e,t)}function r0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qR(e,t){t===void 0&&(t=e,e=Tr);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}var su=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Qe(e);case"function":return!0}return!1},Q5=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r<n?e:t}},e2=function(e,t){return function(n){return n>=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Tr(r,i)(n)}}},t2=function(e,t){var n=function(l,s){return l===s||!su(l)||!su(s)?Q5(l,s):typeof l=="function"||typeof s=="function"?e2(l,s):typeof l=="object"&&Qe(l)||typeof s=="object"&&Qe(s)?t2(l,s):Tr(l,s)},r=function(l){return Array.isArray(l)?bo(l,"key"):l},i={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?i[o]=n(r(e[o]),r(t[o])):a[o]=t[o];return function(l){for(o in i)a[o]=i[o](l);return a}},GR=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Tr(n(e),n(t))},YR=function(e,t){return e===t||!su(e)||!su(t)?Q5(e,t):typeof e=="function"||typeof t=="function"?e2(e,t):Qe(e)||Qe(t)?t2(e,t):typeof e=="string"||typeof t=="string"?GR(e,t):Tr(e,t)},xo=0,Xl=0,Jl=0,n2=1e3,cu,Ql,uu=0,fa=0,fu=0,es=typeof performance=="object"&&performance.now?performance:Date,r2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function du(){return fa||(r2(KR),fa=es.now()+fu)}function KR(){fa=0}function i0(){this._call=this._time=this._next=null}i0.prototype=i2.prototype={constructor:i0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?du():+n)+(t==null?0:+t),!this._next&&Ql!==this&&(Ql?Ql._next=this:cu=this,Ql=this),this._call=e,this._time=n,a0()},stop:function(){this._call&&(this._call=null,this._time=1/0,a0())}};function i2(e,t,n){var r=new i0;return r.restart(e,t,n),r}function ZR(){du(),++xo;for(var e=cu,t;e;)(t=fa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xo}function a2(){fa=(uu=es.now())+fu,xo=Xl=0;try{ZR()}finally{xo=0,JR(),fa=0}}function XR(){var e=es.now(),t=e-uu;t>n2&&(fu-=t,uu=e)}function JR(){for(var e,t=cu,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:cu=n);Ql=e,a0(r)}function a0(e){if(!xo){Xl&&(Xl=clearTimeout(Xl));var t=e-fa;t>24?(e<1/0&&(Xl=setTimeout(a2,e-es.now()-fu)),Jl&&(Jl=clearInterval(Jl))):(Jl||(uu=es.now(),Jl=setInterval(XR,n2)),xo=1,r2(a2))}}function QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eV(e,t,n){return t&&o2(e.prototype,t),n&&o2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l2=function(){function e(){var t=this;QR(this,e),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){t.subscribers.forEach(function(n){n.callback(du()-n.startTime,n.duration)})},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}return eV(e,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=i2(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(n,r){r=this.shouldAnimate?r:0;var i=this.subscribers.push({startTime:du(),callback:n,duration:r});return this.activeSubscriptions++,this.start(),i}},{key:"unsubscribe",value:function(n){n!==null&&this.subscribers[n-1]&&(delete this.subscribers[n-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}]),e}(),s2=x.createContext({transitionTimer:new l2,animationTimer:new l2});s2.displayName="TimerContext";const hu=s2;var tV=typeof Element<"u",nV=typeof Map=="function",rV=typeof Set=="function",iV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!mu(e[r],t[r]))return!1;return!0}var a;if(nV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!mu(r.value[1],t.get(r.value[0])))return!1;return!0}if(rV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(iV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(tV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!mu(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var aV=function(t,n){try{return mu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fn=Ae(aV);function oV(e){return uV(e)||cV(e)||sV(e)||lV()}function lV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
132
+ */var Cm,N1;function Q8(){if(N1)return Cm;N1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function i(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var o={},l=0;l<10;l++)o["_"+String.fromCharCode(l)]=l;var s=Object.getOwnPropertyNames(o).map(function(u){return o[u]});if(s.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(u){c[u]=u}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Cm=i()?Object.assign:function(a,o){for(var l,s=r(a),c,u=1;u<arguments.length;u++){l=Object(arguments[u]);for(var f in l)t.call(l,f)&&(s[f]=l[f]);if(e){c=e(l);for(var d=0;d<c.length;d++)n.call(l,c[d])&&(s[c[d]]=l[c[d]])}}return s},Cm}var Am,z1;function Tm(){if(z1)return Am;z1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Am=e,Am}var km,B1;function W1(){return B1||(B1=1,km=Function.call.bind(Object.prototype.hasOwnProperty)),km}var Em,R1;function eF(){if(R1)return Em;R1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Tm(),n={},r=W1();e=function(a){var o="Warning: "+a;typeof console<"u"&&console.error(o);try{throw new Error(o)}catch{}}}function i(a,o,l,s,c){if(process.env.NODE_ENV!=="production"){for(var u in a)if(r(a,u)){var f;try{if(typeof a[u]!="function"){var d=Error((s||"React class")+": "+l+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}f=a[u](o,u,s,l,null,t)}catch(p){f=p}if(f&&!(f instanceof Error)&&e((s||"React class")+": type specification of "+l+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var h=c?c():"";e("Failed "+l+" type: "+f.message+(h??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Em=i,Em}var Pm,V1;function tF(){if(V1)return Pm;V1=1;var e=Ba,t=Q8(),n=Tm(),r=W1(),i=eF(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(l){var s="Warning: "+l;typeof console<"u"&&console.error(s);try{throw new Error(s)}catch{}});function o(){return null}return Pm=function(l,s){var c=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function f(R){var J=R&&(c&&R[c]||R[u]);if(typeof J=="function")return J}var d="<<anonymous>>",h={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:O(),elementType:w(),instanceOf:A,node:N(),objectOf:k,oneOf:T,oneOfType:j,shape:E,exact:I};function p(R,J){return R===J?R!==0||1/R===1/J:R!==R&&J!==J}function g(R,J){this.message=R,this.data=J&&typeof J=="object"?J:{},this.stack=""}g.prototype=Error.prototype;function y(R){if(process.env.NODE_ENV!=="production")var J={},U=0;function Y(ie,z,se,K,Q,te,ce){if(K=K||d,te=te||se,ce!==n){if(s){var L=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 L.name="Invariant Violation",L}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var xe=K+":"+se;!J[xe]&&U<3&&(a("You are manually calling a React.PropTypes validation function for the `"+te+"` prop on `"+K+"`. 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."),J[xe]=!0,U++)}}return z[se]==null?ie?z[se]===null?new g("The "+Q+" `"+te+"` is marked as required "+("in `"+K+"`, but its value is `null`.")):new g("The "+Q+" `"+te+"` is marked as required in "+("`"+K+"`, but its value is `undefined`.")):null:R(z,se,K,Q,te)}var G=Y.bind(null,!1);return G.isRequired=Y.bind(null,!0),G}function _(R){function J(U,Y,G,ie,z,se){var K=U[Y],Q=X(K);if(Q!==R){var te=ne(K);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+te+"` supplied to `"+G+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return y(J)}function b(){return y(o)}function S(R){function J(U,Y,G,ie,z){if(typeof R!="function")return new g("Property `"+z+"` of component `"+G+"` has invalid PropType notation inside arrayOf.");var se=U[Y];if(!Array.isArray(se)){var K=X(se);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an array."))}for(var Q=0;Q<se.length;Q++){var te=R(se,Q,G,ie,z+"["+Q+"]",n);if(te instanceof Error)return te}return null}return y(J)}function O(){function R(J,U,Y,G,ie){var z=J[U];if(!l(z)){var se=X(z);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement."))}return null}return y(R)}function w(){function R(J,U,Y,G,ie){var z=J[U];if(!e.isValidElementType(z)){var se=X(z);return new g("Invalid "+G+" `"+ie+"` of type "+("`"+se+"` supplied to `"+Y+"`, expected a single ReactElement type."))}return null}return y(R)}function A(R){function J(U,Y,G,ie,z){if(!(U[Y]instanceof R)){var se=R.name||d,K=Z(U[Y]);return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected ")+("instance of `"+se+"`."))}return null}return y(J)}function T(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):a("Invalid argument supplied to oneOf, expected an array.")),o;function J(U,Y,G,ie,z){for(var se=U[Y],K=0;K<R.length;K++)if(p(se,R[K]))return null;var Q=JSON.stringify(R,function(ce,L){var xe=ne(L);return xe==="symbol"?String(L):L});return new g("Invalid "+ie+" `"+z+"` of value `"+String(se)+"` "+("supplied to `"+G+"`, expected one of "+Q+"."))}return y(J)}function k(R){function J(U,Y,G,ie,z){if(typeof R!="function")return new g("Property `"+z+"` of component `"+G+"` has invalid PropType notation inside objectOf.");var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type "+("`"+K+"` supplied to `"+G+"`, expected an object."));for(var Q in se)if(r(se,Q)){var te=R(se,Q,G,ie,z+"."+Q,n);if(te instanceof Error)return te}return null}return y(J)}function j(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),o;for(var J=0;J<R.length;J++){var U=R[J];if(typeof U!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(U)+" at index "+J+"."),o}function Y(G,ie,z,se,K){for(var Q=[],te=0;te<R.length;te++){var ce=R[te],L=ce(G,ie,z,se,K,n);if(L==null)return null;L.data&&r(L.data,"expectedType")&&Q.push(L.data.expectedType)}var xe=Q.length>0?", expected one of type ["+Q.join(", ")+"]":"";return new g("Invalid "+se+" `"+K+"` supplied to "+("`"+z+"`"+xe+"."))}return y(Y)}function N(){function R(J,U,Y,G,ie){return D(J[U])?null:new g("Invalid "+G+" `"+ie+"` supplied to "+("`"+Y+"`, expected a ReactNode."))}return y(R)}function M(R,J,U,Y,G){return new g((R||"React class")+": "+J+" type `"+U+"."+Y+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+G+"`.")}function E(R){function J(U,Y,G,ie,z){var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));for(var Q in R){var te=R[Q];if(typeof te!="function")return M(G,ie,z,Q,ne(te));var ce=te(se,Q,G,ie,z+"."+Q,n);if(ce)return ce}return null}return y(J)}function I(R){function J(U,Y,G,ie,z){var se=U[Y],K=X(se);if(K!=="object")return new g("Invalid "+ie+" `"+z+"` of type `"+K+"` "+("supplied to `"+G+"`, expected `object`."));var Q=t({},U[Y],R);for(var te in Q){var ce=R[te];if(r(R,te)&&typeof ce!="function")return M(G,ie,z,te,ne(ce));if(!ce)return new g("Invalid "+ie+" `"+z+"` key `"+te+"` supplied to `"+G+"`.\nBad object: "+JSON.stringify(U[Y],null," ")+`
133
+ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var L=ce(se,te,G,ie,z+"."+te,n);if(L)return L}return null}return y(J)}function D(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(D);if(R===null||l(R))return!0;var J=f(R);if(J){var U=J.call(R),Y;if(J!==R.entries){for(;!(Y=U.next()).done;)if(!D(Y.value))return!1}else for(;!(Y=U.next()).done;){var G=Y.value;if(G&&!D(G[1]))return!1}}else return!1;return!0;default:return!1}}function W(R,J){return R==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function X(R){var J=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":W(J,R)?"symbol":J}function ne(R){if(typeof R>"u"||R===null)return""+R;var J=X(R);if(J==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return J}function re(R){var J=ne(R);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function Z(R){return!R.constructor||!R.constructor.name?d:R.constructor.name}return h.checkPropTypes=i,h.resetWarningCache=i.resetWarningCache,h.PropTypes=h,h},Pm}var jm,H1;function nF(){if(H1)return jm;H1=1;var e=Tm();function t(){}function n(){}return n.resetWarningCache=t,jm=function(){function r(o,l,s,c,u,f){if(f!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}r.isRequired=r;function i(){return r}var a={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 a.PropTypes=a,a},jm}if(process.env.NODE_ENV!=="production"){var rF=Ba,iF=!0;Om.exports=tF()(rF.isElement,iF)}else Om.exports=nF()();var aF=Om.exports;const m=Ae(aF),oF=e=>+e;function lF(e){return e*e}function sF(e){return e*(2-e)}function U1(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function cF(e){return e*e*e}function uF(e){return--e*e*e+1}function q1(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Mm=3,fF=function e(t){t=+t;function n(r){return Math.pow(r,t)}return n.exponent=e,n}(Mm),dF=function e(t){t=+t;function n(r){return 1-Math.pow(1-r,t)}return n.exponent=e,n}(Mm),G1=function e(t){t=+t;function n(r){return((r*=2)<=1?Math.pow(r,t):2-Math.pow(2-r,t))/2}return n.exponent=e,n}(Mm),Y1=Math.PI,K1=Y1/2;function hF(e){return+e==1?1:1-Math.cos(e*K1)}function mF(e){return Math.sin(e*K1)}function Z1(e){return(1-Math.cos(Y1*e))/2}function Ei(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function gF(e){return Ei(1-+e)}function pF(e){return 1-Ei(e)}function X1(e){return((e*=2)<=1?Ei(1-e):2-Ei(e-1))/2}function vF(e){return 1-Math.sqrt(1-e*e)}function yF(e){return Math.sqrt(1- --e*e)}function J1(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Dm=4/11,bF=6/11,_F=8/11,xF=3/4,SF=9/11,wF=10/11,OF=15/16,CF=21/22,AF=63/64,Gc=1/Dm/Dm;function TF(e){return 1-Hl(1-e)}function Hl(e){return(e=+e)<Dm?Gc*e*e:e<_F?Gc*(e-=bF)*e+xF:e<wF?Gc*(e-=SF)*e+OF:Gc*(e-=CF)*e+AF}function kF(e){return((e*=2)<=1?1-Hl(1-e):Hl(e-1)+1)/2}var Im=1.70158,EF=function e(t){t=+t;function n(r){return(r=+r)*r*(t*(r-1)+r)}return n.overshoot=e,n}(Im),PF=function e(t){t=+t;function n(r){return--r*r*((r+1)*t+r)+1}return n.overshoot=e,n}(Im),Q1=function e(t){t=+t;function n(r){return((r*=2)<1?r*r*((t+1)*r-t):(r-=2)*r*((t+1)*r+t)+2)/2}return n.overshoot=e,n}(Im),ho=2*Math.PI,Lm=1,$m=.3,jF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return t*Ei(- --a)*Math.sin((r-a)/n)}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m),e5=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return 1-t*Ei(a=+a)*Math.sin((a+r)/n)}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m),MF=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=ho);function i(a){return((a=a*2-1)<0?t*Ei(-a)*Math.sin((r-a)/n):2-t*Ei(a)*Math.sin((r+a)/n))/2}return i.amplitude=function(a){return e(a,n*ho)},i.period=function(a){return e(t,a)},i}(Lm,$m);const DF=Object.freeze(Object.defineProperty({__proto__:null,easeBack:Q1,easeBackIn:EF,easeBackInOut:Q1,easeBackOut:PF,easeBounce:Hl,easeBounceIn:TF,easeBounceInOut:kF,easeBounceOut:Hl,easeCircle:J1,easeCircleIn:vF,easeCircleInOut:J1,easeCircleOut:yF,easeCubic:q1,easeCubicIn:cF,easeCubicInOut:q1,easeCubicOut:uF,easeElastic:e5,easeElasticIn:jF,easeElasticInOut:MF,easeElasticOut:e5,easeExp:X1,easeExpIn:gF,easeExpInOut:X1,easeExpOut:pF,easeLinear:oF,easePoly:G1,easePolyIn:fF,easePolyInOut:G1,easePolyOut:dF,easeQuad:U1,easeQuadIn:lF,easeQuadInOut:U1,easeQuadOut:sF,easeSin:Z1,easeSinIn:hF,easeSinInOut:Z1,easeSinOut:mF},Symbol.toStringTag,{value:"Module"}));function IF(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var mo=IF,LF=Gr,$F=sr,FF="[object Symbol]";function NF(e){return typeof e=="symbol"||$F(e)&&LF(e)==FF}var Ul=NF,zF=Nt,BF=Ul,WF=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RF=/^\w*$/;function VF(e,t){if(zF(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||BF(e)?!0:RF.test(e)||!WF.test(e)||t!=null&&e in Object(t)}var Fm=VF,HF=aa,UF=HF(Object,"create"),Yc=UF,t5=Yc;function qF(){this.__data__=t5?t5(null):{},this.size=0}var GF=qF;function YF(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var KF=YF,ZF=Yc,XF="__lodash_hash_undefined__",JF=Object.prototype,QF=JF.hasOwnProperty;function eN(e){var t=this.__data__;if(ZF){var n=t[e];return n===XF?void 0:n}return QF.call(t,e)?t[e]:void 0}var tN=eN,nN=Yc,rN=Object.prototype,iN=rN.hasOwnProperty;function aN(e){var t=this.__data__;return nN?t[e]!==void 0:iN.call(t,e)}var oN=aN,lN=Yc,sN="__lodash_hash_undefined__";function cN(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=lN&&t===void 0?sN:t,this}var uN=cN,fN=GF,dN=KF,hN=tN,mN=oN,gN=uN;function go(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}go.prototype.clear=fN,go.prototype.delete=dN,go.prototype.get=hN,go.prototype.has=mN,go.prototype.set=gN;var pN=go;function vN(){this.__data__=[],this.size=0}var yN=vN,bN=la;function _N(e,t){for(var n=e.length;n--;)if(bN(e[n][0],t))return n;return-1}var Kc=_N,xN=Kc,SN=Array.prototype,wN=SN.splice;function ON(e){var t=this.__data__,n=xN(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():wN.call(t,n,1),--this.size,!0}var CN=ON,AN=Kc;function TN(e){var t=this.__data__,n=AN(t,e);return n<0?void 0:t[n][1]}var kN=TN,EN=Kc;function PN(e){return EN(this.__data__,e)>-1}var jN=PN,MN=Kc;function DN(e,t){var n=this.__data__,r=MN(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var IN=DN,LN=yN,$N=CN,FN=kN,NN=jN,zN=IN;function po(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}po.prototype.clear=LN,po.prototype.delete=$N,po.prototype.get=FN,po.prototype.has=NN,po.prototype.set=zN;var Zc=po,n5=pN,BN=Zc,WN=gm;function RN(){this.size=0,this.__data__={hash:new n5,map:new(WN||BN),string:new n5}}var VN=RN;function HN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var UN=HN,qN=UN;function GN(e,t){var n=e.__data__;return qN(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Xc=GN,YN=Xc;function KN(e){var t=YN(this,e).delete(e);return this.size-=t?1:0,t}var ZN=KN,XN=Xc;function JN(e){return XN(this,e).get(e)}var QN=JN,e9=Xc;function t9(e){return e9(this,e).has(e)}var n9=t9,r9=Xc;function i9(e,t){var n=r9(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var a9=i9,o9=VN,l9=ZN,s9=QN,c9=n9,u9=a9;function vo(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}vo.prototype.clear=o9,vo.prototype.delete=l9,vo.prototype.get=s9,vo.prototype.has=c9,vo.prototype.set=u9;var Nm=vo,r5=Nm,f9="Expected a function";function zm(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(f9);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(zm.Cache||r5),n}zm.Cache=r5;var i5=zm;const a5=Ae(i5);var d9=i5,h9=500;function m9(e){var t=d9(e,function(r){return n.size===h9&&n.clear(),r}),n=t.cache;return t}var g9=m9,p9=g9,v9=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,y9=/\\(\\)?/g,b9=p9(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(v9,function(n,r,i,a){t.push(i?a.replace(y9,"$1"):r||n)}),t}),_9=b9,o5=co,x9=mo,S9=Nt,w9=Ul,O9=1/0,l5=o5?o5.prototype:void 0,s5=l5?l5.toString:void 0;function c5(e){if(typeof e=="string")return e;if(S9(e))return x9(e,c5)+"";if(w9(e))return s5?s5.call(e):"";var t=e+"";return t=="0"&&1/e==-O9?"-0":t}var C9=c5,A9=C9;function T9(e){return e==null?"":A9(e)}var u5=T9,k9=Nt,E9=Fm,P9=_9,j9=u5;function M9(e,t){return k9(e)?e:E9(e,t)?[e]:P9(j9(e))}var Jc=M9,D9=Ul,I9=1/0;function L9(e){if(typeof e=="string"||D9(e))return e;var t=e+"";return t=="0"&&1/e==-I9?"-0":t}var ql=L9,$9=Jc,F9=ql;function N9(e,t){t=$9(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[F9(t[n++])];return n&&n==r?e:void 0}var Qc=N9,z9=Zc;function B9(){this.__data__=new z9,this.size=0}var W9=B9;function R9(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var V9=R9;function H9(e){return this.__data__.get(e)}var U9=H9;function q9(e){return this.__data__.has(e)}var G9=q9,Y9=Zc,K9=gm,Z9=Nm,X9=200;function J9(e,t){var n=this.__data__;if(n instanceof Y9){var r=n.__data__;if(!K9||r.length<X9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Z9(r)}return n.set(e,t),this.size=n.size,this}var Q9=J9,ez=Zc,tz=W9,nz=V9,rz=U9,iz=G9,az=Q9;function yo(e){var t=this.__data__=new ez(e);this.size=t.size}yo.prototype.clear=tz,yo.prototype.delete=nz,yo.prototype.get=rz,yo.prototype.has=iz,yo.prototype.set=az;var Bm=yo,oz="__lodash_hash_undefined__";function lz(e){return this.__data__.set(e,oz),this}var sz=lz;function cz(e){return this.__data__.has(e)}var uz=cz,fz=Nm,dz=sz,hz=uz;function eu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new fz;++t<n;)this.add(e[t])}eu.prototype.add=eu.prototype.push=dz,eu.prototype.has=hz;var Wm=eu;function mz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var f5=mz;function gz(e,t){return e.has(t)}var Rm=gz,pz=Wm,vz=f5,yz=Rm,bz=1,_z=2;function xz(e,t,n,r,i,a){var o=n&bz,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var c=a.get(e),u=a.get(t);if(c&&u)return c==t&&u==e;var f=-1,d=!0,h=n&_z?new pz:void 0;for(a.set(e,t),a.set(t,e);++f<l;){var p=e[f],g=t[f];if(r)var y=o?r(g,p,f,t,e,a):r(p,g,f,e,t,a);if(y!==void 0){if(y)continue;d=!1;break}if(h){if(!vz(t,function(_,b){if(!yz(h,b)&&(p===_||i(p,_,n,r,a)))return h.push(b)})){d=!1;break}}else if(!(p===g||i(p,g,n,r,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var d5=xz,Sz=lr,wz=Sz.Uint8Array,h5=wz;function Oz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}var m5=Oz;function Cz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Vm=Cz,g5=co,p5=h5,Az=la,Tz=d5,kz=m5,Ez=Vm,Pz=1,jz=2,Mz="[object Boolean]",Dz="[object Date]",Iz="[object Error]",Lz="[object Map]",$z="[object Number]",Fz="[object RegExp]",Nz="[object Set]",zz="[object String]",Bz="[object Symbol]",Wz="[object ArrayBuffer]",Rz="[object DataView]",v5=g5?g5.prototype:void 0,Hm=v5?v5.valueOf:void 0;function Vz(e,t,n,r,i,a,o){switch(n){case Rz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Wz:return!(e.byteLength!=t.byteLength||!a(new p5(e),new p5(t)));case Mz:case Dz:case $z:return Az(+e,+t);case Iz:return e.name==t.name&&e.message==t.message;case Fz:case zz:return e==t+"";case Lz:var l=kz;case Nz:var s=r&Pz;if(l||(l=Ez),e.size!=t.size&&!s)return!1;var c=o.get(e);if(c)return c==t;r|=jz,o.set(e,t);var u=Tz(l(e),l(t),r,i,a,o);return o.delete(e),u;case Bz:if(Hm)return Hm.call(e)==Hm.call(t)}return!1}var Hz=Vz;function Uz(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Um=Uz,qz=Um,Gz=Nt;function Yz(e,t,n){var r=t(e);return Gz(e)?r:qz(r,n(e))}var y5=Yz;function Kz(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}var Zz=Kz;function Xz(){return[]}var b5=Xz,Jz=Zz,Qz=b5,eB=Object.prototype,tB=eB.propertyIsEnumerable,_5=Object.getOwnPropertySymbols,nB=_5?function(e){return e==null?[]:(e=Object(e),Jz(_5(e),function(t){return tB.call(e,t)}))}:Qz,x5=nB,rB=y5,iB=x5,aB=ki;function oB(e){return rB(e,aB,iB)}var lB=oB,S5=lB,sB=1,cB=Object.prototype,uB=cB.hasOwnProperty;function fB(e,t,n,r,i,a){var o=n&sB,l=S5(e),s=l.length,c=S5(t),u=c.length;if(s!=u&&!o)return!1;for(var f=s;f--;){var d=l[f];if(!(o?d in t:uB.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var g=!0;a.set(e,t),a.set(t,e);for(var y=o;++f<s;){d=l[f];var _=e[d],b=t[d];if(r)var S=o?r(b,_,d,t,e,a):r(_,b,d,e,t,a);if(!(S===void 0?_===b||i(_,b,n,r,a):S)){g=!1;break}y||(y=d=="constructor")}if(g&&!y){var O=e.constructor,w=t.constructor;O!=w&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof w=="function"&&w instanceof w)&&(g=!1)}return a.delete(e),a.delete(t),g}var dB=fB,qm=Bm,hB=d5,mB=Hz,gB=dB,w5=xm,O5=Nt,C5=Wc,pB=Vc,vB=1,A5="[object Arguments]",T5="[object Array]",tu="[object Object]",yB=Object.prototype,k5=yB.hasOwnProperty;function bB(e,t,n,r,i,a){var o=O5(e),l=O5(t),s=o?T5:w5(e),c=l?T5:w5(t);s=s==A5?tu:s,c=c==A5?tu:c;var u=s==tu,f=c==tu,d=s==c;if(d&&C5(e)){if(!C5(t))return!1;o=!0,u=!1}if(d&&!u)return a||(a=new qm),o||pB(e)?hB(e,t,n,r,i,a):mB(e,t,s,n,r,i,a);if(!(n&vB)){var h=u&&k5.call(e,"__wrapped__"),p=f&&k5.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,y=p?t.value():t;return a||(a=new qm),i(g,y,n,r,a)}}return d?(a||(a=new qm),gB(e,t,n,r,i,a)):!1}var _B=bB,xB=_B,E5=sr;function P5(e,t,n,r,i){return e===t?!0:e==null||t==null||!E5(e)&&!E5(t)?e!==e&&t!==t:xB(e,t,n,r,P5,i)}var Gm=P5,SB=Bm,wB=Gm,OB=1,CB=2;function AB(e,t,n,r){var i=n.length,a=i,o=!r;if(e==null)return!a;for(e=Object(e);i--;){var l=n[i];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<a;){l=n[i];var s=l[0],c=e[s],u=l[1];if(o&&l[2]){if(c===void 0&&!(s in e))return!1}else{var f=new SB;if(r)var d=r(c,u,s,e,t,f);if(!(d===void 0?wB(u,c,OB|CB,r,f):d))return!1}}return!0}var TB=AB,kB=xn;function EB(e){return e===e&&!kB(e)}var j5=EB,PB=j5,jB=ki;function MB(e){for(var t=jB(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,PB(i)]}return t}var DB=MB;function IB(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var M5=IB,LB=TB,$B=DB,FB=M5;function NB(e){var t=$B(e);return t.length==1&&t[0][2]?FB(t[0][0],t[0][1]):function(n){return n===e||LB(n,e,t)}}var zB=NB,BB=Qc;function WB(e,t,n){var r=e==null?void 0:BB(e,t);return r===void 0?n:r}var RB=WB;function VB(e,t){return e!=null&&t in Object(e)}var HB=VB,UB=Jc,qB=zl,GB=Nt,YB=Hc,KB=Sm,ZB=ql;function XB(e,t,n){t=UB(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=ZB(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&KB(i)&&YB(o,i)&&(GB(e)||qB(e)))}var JB=XB,QB=HB,eW=JB;function tW(e,t){return e!=null&&eW(e,t,QB)}var D5=tW,nW=Gm,rW=RB,iW=D5,aW=Fm,oW=j5,lW=M5,sW=ql,cW=1,uW=2;function fW(e,t){return aW(e)&&oW(t)?lW(sW(e),t):function(n){var r=rW(n,e);return r===void 0&&r===t?iW(n,e):nW(t,r,cW|uW)}}var dW=fW;function hW(e){return function(t){return t==null?void 0:t[e]}}var mW=hW,gW=Qc;function pW(e){return function(t){return gW(t,e)}}var vW=pW,yW=mW,bW=vW,_W=Fm,xW=ql;function SW(e){return _W(e)?yW(xW(e)):bW(e)}var I5=SW;const L5=Ae(I5);var wW=zB,OW=dW,CW=Ti,AW=Nt,TW=I5;function kW(e){return typeof e=="function"?e:e==null?CW:typeof e=="object"?AW(e)?OW(e[0],e[1]):wW(e):TW(e)}var Yr=kW;function EW(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++i];if(n(a[s],s,a)===!1)break}return t}}var PW=EW,jW=PW,MW=jW(),$5=MW,DW=$5,IW=ki;function LW(e,t){return e&&DW(e,t,IW)}var nu=LW,$W=Cr;function FW(e,t){return function(n,r){if(n==null)return n;if(!$W(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=Object(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}var NW=FW,zW=nu,BW=NW,WW=BW(zW),Ym=WW,RW=Ym,VW=Cr;function HW(e,t){var n=-1,r=VW(e)?Array(e.length):[];return RW(e,function(i,a,o){r[++n]=t(i,a,o)}),r}var UW=HW;function qW(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var GW=qW,F5=Ul;function YW(e,t){if(e!==t){var n=e!==void 0,r=e===null,i=e===e,a=F5(e),o=t!==void 0,l=t===null,s=t===t,c=F5(t);if(!l&&!c&&!a&&e>t||a&&o&&s&&!l&&!c||r&&o&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||l&&n&&i||!o&&i||!s)return-1}return 0}var KW=YW,ZW=KW;function XW(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,l=n.length;++r<o;){var s=ZW(i[r],a[r]);if(s){if(r>=l)return s;var c=n[r];return s*(c=="desc"?-1:1)}}return e.index-t.index}var JW=XW,Km=mo,QW=Qc,eR=Yr,tR=UW,nR=GW,rR=Bl,iR=JW,aR=Ti,oR=Nt;function lR(e,t,n){t.length?t=Km(t,function(a){return oR(a)?function(o){return QW(o,a.length===1?a[0]:a)}:a}):t=[aR];var r=-1;t=Km(t,rR(eR));var i=tR(e,function(a,o,l){var s=Km(t,function(c){return c(a)});return{criteria:s,index:++r,value:a}});return nR(i,function(a,o){return iR(a,o,n)})}var sR=lR,cR=sR,N5=Nt;function uR(e,t,n,r){return e==null?[]:(N5(t)||(t=t==null?[]:[t]),n=r?void 0:n,N5(n)||(n=n==null?[]:[n]),cR(e,t,n))}var fR=uR;const bo=Ae(fR);var dR=o1,hR=dR(Object.getPrototypeOf,Object),Zm=hR,mR=Gr,gR=Zm,pR=sr,vR="[object Object]",yR=Function.prototype,bR=Object.prototype,z5=yR.toString,_R=bR.hasOwnProperty,xR=z5.call(Object);function SR(e){if(!pR(e)||mR(e)!=vR)return!1;var t=gR(e);if(t===null)return!0;var n=_R.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&z5.call(n)==xR}var B5=SR;const Qe=Ae(B5);function Xm(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function W5(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Gl(){}var Yl=.7,ru=1/Yl,_o="\\s*([+-]?\\d+)\\s*",Kl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ar="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",wR=/^#([0-9a-f]{3,8})$/,OR=new RegExp(`^rgb\\(${_o},${_o},${_o}\\)$`),CR=new RegExp(`^rgb\\(${Ar},${Ar},${Ar}\\)$`),AR=new RegExp(`^rgba\\(${_o},${_o},${_o},${Kl}\\)$`),TR=new RegExp(`^rgba\\(${Ar},${Ar},${Ar},${Kl}\\)$`),kR=new RegExp(`^hsl\\(${Kl},${Ar},${Ar}\\)$`),ER=new RegExp(`^hsla\\(${Kl},${Ar},${Ar},${Kl}\\)$`),R5={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};Xm(Gl,Zl,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V5,formatHex:V5,formatHex8:PR,formatHsl:jR,formatRgb:H5,toString:H5});function V5(){return this.rgb().formatHex()}function PR(){return this.rgb().formatHex8()}function jR(){return K5(this).formatHsl()}function H5(){return this.rgb().formatRgb()}function Zl(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=wR.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?U5(t):n===3?new un(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?iu(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?iu(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=OR.exec(e))?new un(t[1],t[2],t[3],1):(t=CR.exec(e))?new un(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=AR.exec(e))?iu(t[1],t[2],t[3],t[4]):(t=TR.exec(e))?iu(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kR.exec(e))?Y5(t[1],t[2]/100,t[3]/100,1):(t=ER.exec(e))?Y5(t[1],t[2]/100,t[3]/100,t[4]):R5.hasOwnProperty(e)?U5(R5[e]):e==="transparent"?new un(NaN,NaN,NaN,0):null}function U5(e){return new un(e>>16&255,e>>8&255,e&255,1)}function iu(e,t,n,r){return r<=0&&(e=t=n=NaN),new un(e,t,n,r)}function MR(e){return e instanceof Gl||(e=Zl(e)),e?(e=e.rgb(),new un(e.r,e.g,e.b,e.opacity)):new un}function Jm(e,t,n,r){return arguments.length===1?MR(e):new un(e,t,n,r??1)}function un(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xm(un,Jm,W5(Gl,{brighter(e){return e=e==null?ru:Math.pow(ru,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Yl:Math.pow(Yl,e),new un(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new un(ca(this.r),ca(this.g),ca(this.b),au(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:q5,formatHex:q5,formatHex8:DR,formatRgb:G5,toString:G5}));function q5(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}`}function DR(){return`#${ua(this.r)}${ua(this.g)}${ua(this.b)}${ua((isNaN(this.opacity)?1:this.opacity)*255)}`}function G5(){const e=au(this.opacity);return`${e===1?"rgb(":"rgba("}${ca(this.r)}, ${ca(this.g)}, ${ca(this.b)}${e===1?")":`, ${e})`}`}function au(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ca(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ua(e){return e=ca(e),(e<16?"0":"")+e.toString(16)}function Y5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cr(e,t,n,r)}function K5(e){if(e instanceof cr)return new cr(e.h,e.s,e.l,e.opacity);if(e instanceof Gl||(e=Zl(e)),!e)return new cr;if(e instanceof cr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,s=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?a+i:2-a-i,o*=60):l=s>0&&s<1?0:o,new cr(o,l,s,e.opacity)}function IR(e,t,n,r){return arguments.length===1?K5(e):new cr(e,t,n,r??1)}function cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xm(cr,IR,W5(Gl,{brighter(e){return e=e==null?ru:Math.pow(ru,e),new cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Yl:Math.pow(Yl,e),new cr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new un(Qm(e>=240?e-240:e+120,i,r),Qm(e,i,r),Qm(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new cr(Z5(this.h),ou(this.s),ou(this.l),au(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=au(this.opacity);return`${e===1?"hsl(":"hsla("}${Z5(this.h)}, ${ou(this.s)*100}%, ${ou(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Z5(e){return e=(e||0)%360,e<0?e+360:e}function ou(e){return Math.max(0,Math.min(1,e||0))}function Qm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const e0=e=>()=>e;function LR(e,t){return function(n){return e+n*t}}function $R(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 FR(e){return(e=+e)==1?X5:function(t,n){return n-t?$R(t,n,e):e0(isNaN(t)?n:t)}}function X5(e,t){var n=t-e;return n?LR(e,n):e0(isNaN(e)?t:e)}const J5=function e(t){var n=FR(t);function r(i,a){var o=n((i=Jm(i)).r,(a=Jm(a)).r),l=n(i.g,a.g),s=n(i.b,a.b),c=X5(i.opacity,a.opacity);return function(u){return i.r=o(u),i.g=l(u),i.b=s(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function NR(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function zR(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function BR(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=Tr(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function WR(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function lu(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function RR(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Tr(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var t0=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,n0=new RegExp(t0.source,"g");function VR(e){return function(){return e}}function HR(e){return function(t){return e(t)+""}}function UR(e,t){var n=t0.lastIndex=n0.lastIndex=0,r,i,a,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=t0.exec(e))&&(i=n0.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,s.push({i:o,x:lu(r,i)})),n=n0.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?s[0]?HR(s[0].x):VR(t):(t=s.length,function(c){for(var u=0,f;u<t;++u)l[(f=s[u]).i]=f.x(c);return l.join("")})}function Tr(e,t){var n=typeof t,r;return t==null||n==="boolean"?e0(t):(n==="number"?lu:n==="string"?(r=Zl(t))?(t=r,J5):UR:t instanceof Zl?J5:t instanceof Date?WR:zR(t)?NR:Array.isArray(t)?BR:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RR:lu)(e,t)}function r0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function qR(e,t){t===void 0&&(t=e,e=Tr);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}var su=function(e){if(e!==null)switch(typeof e){case"undefined":return!1;case"number":return!isNaN(e)&&e!==Number.POSITIVE_INFINITY&&e!==Number.NEGATIVE_INFINITY;case"string":return!0;case"boolean":return!1;case"object":return e instanceof Date||Array.isArray(e)||Qe(e);case"function":return!0}return!1},Q5=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return function(r){return r<n?e:t}},e2=function(e,t){return function(n){return n>=1?t:function(){var r=typeof e=="function"?e.apply(this,arguments):e,i=typeof t=="function"?t.apply(this,arguments):t;return Tr(r,i)(n)}}},t2=function(e,t){var n=function(l,s){return l===s||!su(l)||!su(s)?Q5(l,s):typeof l=="function"||typeof s=="function"?e2(l,s):typeof l=="object"&&Qe(l)||typeof s=="object"&&Qe(s)?t2(l,s):Tr(l,s)},r=function(l){return Array.isArray(l)?bo(l,"key"):l},i={},a={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?i[o]=n(r(e[o]),r(t[o])):a[o]=t[o];return function(l){for(o in i)a[o]=i[o](l);return a}},GR=function(e,t){var n=function(r){return typeof r=="string"?r.replace(/,/g,""):r};return Tr(n(e),n(t))},YR=function(e,t){return e===t||!su(e)||!su(t)?Q5(e,t):typeof e=="function"||typeof t=="function"?e2(e,t):Qe(e)||Qe(t)?t2(e,t):typeof e=="string"||typeof t=="string"?GR(e,t):Tr(e,t)},xo=0,Xl=0,Jl=0,n2=1e3,cu,Ql,uu=0,fa=0,fu=0,es=typeof performance=="object"&&performance.now?performance:Date,r2=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function du(){return fa||(r2(KR),fa=es.now()+fu)}function KR(){fa=0}function i0(){this._call=this._time=this._next=null}i0.prototype=i2.prototype={constructor:i0,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?du():+n)+(t==null?0:+t),!this._next&&Ql!==this&&(Ql?Ql._next=this:cu=this,Ql=this),this._call=e,this._time=n,a0()},stop:function(){this._call&&(this._call=null,this._time=1/0,a0())}};function i2(e,t,n){var r=new i0;return r.restart(e,t,n),r}function ZR(){du(),++xo;for(var e=cu,t;e;)(t=fa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--xo}function a2(){fa=(uu=es.now())+fu,xo=Xl=0;try{ZR()}finally{xo=0,JR(),fa=0}}function XR(){var e=es.now(),t=e-uu;t>n2&&(fu-=t,uu=e)}function JR(){for(var e,t=cu,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:cu=n);Ql=e,a0(r)}function a0(e){if(!xo){Xl&&(Xl=clearTimeout(Xl));var t=e-fa;t>24?(e<1/0&&(Xl=setTimeout(a2,e-es.now()-fu)),Jl&&(Jl=clearInterval(Jl))):(Jl||(uu=es.now(),Jl=setInterval(XR,n2)),xo=1,r2(a2))}}function QR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eV(e,t,n){return t&&o2(e.prototype,t),n&&o2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var l2=function(){function e(){var t=this;QR(this,e),this.shouldAnimate=void 0,this.subscribers=void 0,this.activeSubscriptions=void 0,this.timer=void 0,this.loop=function(){t.subscribers.forEach(function(n){n.callback(du()-n.startTime,n.duration)})},this.shouldAnimate=!0,this.subscribers=[],this.timer=null,this.activeSubscriptions=0}return eV(e,[{key:"bypassAnimation",value:function(){this.shouldAnimate=!1}},{key:"resumeAnimation",value:function(){this.shouldAnimate=!0}},{key:"start",value:function(){this.timer||(this.timer=i2(this.loop))}},{key:"stop",value:function(){this.timer&&(this.timer.stop(),this.timer=null)}},{key:"subscribe",value:function(n,r){r=this.shouldAnimate?r:0;var i=this.subscribers.push({startTime:du(),callback:n,duration:r});return this.activeSubscriptions++,this.start(),i}},{key:"unsubscribe",value:function(n){n!==null&&this.subscribers[n-1]&&(delete this.subscribers[n-1],this.activeSubscriptions--),this.activeSubscriptions===0&&this.stop()}}]),e}(),s2=x.createContext({transitionTimer:new l2,animationTimer:new l2});s2.displayName="TimerContext";const hu=s2;var tV=typeof Element<"u",nV=typeof Map=="function",rV=typeof Set=="function",iV=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function mu(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,i;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!mu(e[r],t[r]))return!1;return!0}var a;if(nV&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;for(a=e.entries();!(r=a.next()).done;)if(!mu(r.value[1],t.get(r.value[0])))return!1;return!0}if(rV&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(r=a.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(iV&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,i[r]))return!1;if(tV&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((i[r]==="_owner"||i[r]==="__v"||i[r]==="__o")&&e.$$typeof)&&!mu(e[i[r]],t[i[r]]))return!1;return!0}return e!==e&&t!==t}var aV=function(t,n){try{return mu(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const fn=Ae(aV);function oV(e){return uV(e)||cV(e)||sV(e)||lV()}function lV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
134
134
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sV(e,t){if(e){if(typeof e=="string")return o0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return o0(e,t)}}function cV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uV(e){if(Array.isArray(e))return o0(e)}function o0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function dV(e,t,n){return t&&c2(e.prototype,t),n&&c2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function hV(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l0(e,t)}function l0(e,t){return l0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},l0(e,t)}function mV(e){var t=vV();return function(){var r=gu(e),i;if(t){var a=gu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return gV(this,i)}}function gV(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pV(e)}function pV(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vV(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}var ts=function(e){hV(n,e);var t=mV(n);function n(r,i){var a;return fV(this,n),a=t.call(this,r,i),a.interpolator=void 0,a.queue=void 0,a.ease=void 0,a.timer=void 0,a.loopID=void 0,a.functionToBeRunEachFrame=function(o,l){l=l!==void 0?l:a.props.duration;var s=l?o/l:1;if(s>=1){a.setState({data:a.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}}),a.loopID&&a.timer.unsubscribe(a.loopID),a.queue.shift(),a.traverseQueue();return}a.setState({data:a.interpolator(a.ease(s)),animationInfo:{progress:s,animating:s<1}})},a.state={data:Array.isArray(a.props.data)?a.props.data[0]:a.props.data,animationInfo:{progress:0,animating:!1}},a.interpolator=null,a.queue=Array.isArray(a.props.data)?a.props.data.slice(1):[],a.ease=DF[a.toNewName(a.props.easing)],a.timer=a.context.animationTimer,a}return dV(n,[{key:"componentDidMount",value:function(){this.queue.length&&this.traverseQueue()}},{key:"componentDidUpdate",value:function(i){var a=fn(this.props,i);if(!a)if(this.interpolator&&this.state.animationInfo&&this.state.animationInfo.progress<1)this.setState({data:this.interpolator(1),animationInfo:{progress:1,animating:!1,terminating:!0}});else{if(this.timer.unsubscribe(this.loopID),!Array.isArray(this.props.data))this.queue.length=0,this.queue.push(this.props.data);else{var o;(o=this.queue).push.apply(o,oV(this.props.data))}this.traverseQueue()}}},{key:"componentWillUnmount",value:function(){this.loopID?this.timer.unsubscribe(this.loopID):this.timer.stop()}},{key:"toNewName",value:function(i){var a=function(o){return o&&o[0].toUpperCase()+o.slice(1)};return"ease".concat(a(i))}},{key:"traverseQueue",value:function(){var i=this;if(this.queue.length){var a=this.queue[0];this.interpolator=YR(this.state.data,a),this.props.delay?setTimeout(function(){i.loopID=i.timer.subscribe(i.functionToBeRunEachFrame,i.props.duration)},this.props.delay):this.loopID=this.timer.subscribe(this.functionToBeRunEachFrame,this.props.duration)}else this.props.onEnd&&this.props.onEnd()}},{key:"render",value:function(){return this.props.children(this.state.data,this.state.animationInfo)}}]),n}(x.Component);ts.displayName="VictoryAnimation",ts.propTypes={children:m.func,data:m.oneOfType([m.object,m.array]),delay:m.number,duration:m.number,easing:m.oneOf(["back","backIn","backOut","backInOut","bounce","bounceIn","bounceOut","bounceInOut","circle","circleIn","circleOut","circleInOut","linear","linearIn","linearOut","linearInOut","cubic","cubicIn","cubicOut","cubicInOut","elastic","elasticIn","elasticOut","elasticInOut","exp","expIn","expOut","expInOut","poly","polyIn","polyOut","polyInOut","quad","quadIn","quadOut","quadInOut","sin","sinIn","sinOut","sinInOut"]),onEnd:m.func},ts.defaultProps={data:{},delay:0,duration:1e3,easing:"quadInOut"},ts.contextType=hu;var yV=u5,bV=0;function _V(e){var t=++bV;return yV(e)+t}var xV=_V;const pu=Ae(xV);var SV=Gr,wV=sr,OV="[object RegExp]";function CV(e){return wV(e)&&SV(e)==OV}var AV=CV,TV=AV,kV=Bl,u2=Wl,f2=u2&&u2.isRegExp,EV=f2?kV(f2):TV,PV=EV;const d2=Ae(PV);var jV=Yr,MV=Cr,DV=ki;function IV(e){return function(t,n,r){var i=Object(t);if(!MV(t)){var a=jV(n);t=DV(t),n=function(l){return a(i[l],l,i)}}var o=e(t,n,r);return o>-1?i[a?t[o]:o]:void 0}}var LV=IV;function $V(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var h2=$V,FV=/\s/;function NV(e){for(var t=e.length;t--&&FV.test(e.charAt(t)););return t}var zV=NV,BV=zV,WV=/^\s+/;function RV(e){return e&&e.slice(0,BV(e)+1).replace(WV,"")}var VV=RV,HV=VV,m2=xn,UV=Ul,g2=0/0,qV=/^[-+]0x[0-9a-f]+$/i,GV=/^0b[01]+$/i,YV=/^0o[0-7]+$/i,KV=parseInt;function ZV(e){if(typeof e=="number")return e;if(UV(e))return g2;if(m2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=m2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=HV(e);var n=GV.test(e);return n||YV.test(e)?KV(e.slice(2),n?2:8):qV.test(e)?g2:+e}var s0=ZV,XV=s0,p2=1/0,JV=17976931348623157e292;function QV(e){if(!e)return e===0?e:0;if(e=XV(e),e===p2||e===-p2){var t=e<0?-1:1;return t*JV}return e===e?e:0}var v2=QV,eH=v2;function tH(e){var t=eH(e),n=t%1;return t===t?n?t-n:t:0}var y2=tH,nH=h2,rH=Yr,iH=y2,aH=Math.max;function oH(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:iH(n);return i<0&&(i=aH(r+i,0)),nH(e,rH(t),i)}var lH=oH,sH=LV,cH=lH,uH=sH(cH),fH=uH;const dH=Ae(fH);function So(e){process.env.NODE_ENV!=="production"&&console&&console.warn&&console.warn(e)}function hH(e){return e!==e}var mH=hH;function gH(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var pH=gH,vH=h2,yH=mH,bH=pH;function _H(e,t,n){return t===t?bH(e,t,n):vH(e,yH,n)}var b2=_H,xH=Gr,SH=Nt,wH=sr,OH="[object String]";function CH(e){return typeof e=="string"||!SH(e)&&wH(e)&&xH(e)==OH}var _2=CH;const AH=Ae(_2);var TH=mo;function kH(e,t){return TH(t,function(n){return e[n]})}var EH=kH,PH=EH,jH=ki;function MH(e){return e==null?[]:PH(e,jH(e))}var x2=MH;const vu=Ae(x2);var DH=b2,IH=Cr,LH=_2,$H=y2,FH=x2,NH=Math.max;function zH(e,t,n,r){e=IH(e)?e:FH(e),n=n&&!r?$H(n):0;var i=e.length;return n<0&&(n=NH(i+n,0)),LH(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&DH(e,t,n)>-1}var BH=zH;const Kr=Ae(BH);var WH=wm,RH=Jc,VH=Hc,S2=xn,HH=ql;function UH(e,t,n,r){if(!S2(e))return e;t=RH(t,e);for(var i=-1,a=t.length,o=a-1,l=e;l!=null&&++i<a;){var s=HH(t[i]),c=n;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(i!=o){var u=l[s];c=r?r(u,s,l):void 0,c===void 0&&(c=S2(u)?u:VH(t[i+1])?[]:{})}WH(l,s,c),l=l[s]}return e}var qH=UH,GH=Qc,YH=qH,KH=Jc;function ZH(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],l=GH(e,o);n(l,o)&&YH(a,KH(o,e),l)}return a}var w2=ZH,XH=w2,JH=D5;function QH(e,t){return XH(e,t,function(n,r){return JH(e,r)})}var eU=QH,O2=co,tU=zl,nU=Nt,C2=O2?O2.isConcatSpreadable:void 0;function rU(e){return nU(e)||tU(e)||!!(C2&&e&&e[C2])}var iU=rU,aU=Um,oU=iU;function A2(e,t,n,r,i){var a=-1,o=e.length;for(n||(n=oU),i||(i=[]);++a<o;){var l=e[a];t>0&&n(l)?t>1?A2(l,t-1,n,r,i):aU(i,l):r||(i[i.length]=l)}return i}var T2=A2,lU=T2;function sU(e){var t=e==null?0:e.length;return t?lU(e,1):[]}var k2=sU;const ns=Ae(k2);var cU=k2,uU=j1,fU=I1;function dU(e){return fU(uU(e,void 0,cU),e+"")}var E2=dU,hU=eU,mU=E2,gU=mU(function(e,t){return e==null?{}:hU(e,t)}),pU=gU;const rs=Ae(pU);function vU(e,t){var n=t!=="x",r=lt(e);return n?[e.height-r.bottom,r.top]:[r.left,e.width-r.right]}function yU(e,t){if(t==="x"){var n=st(e.startAngle||0),r=st(e.endAngle||360);return[n,r]}return[e.innerRadius||0,kr(e)]}function wo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function c0(e){var t=function(h){return h!==void 0},n=e._x,r=e._x1,i=e._x0,a=e._voronoiX,o=e._y,l=e._y1,s=e._y0,c=e._voronoiY,u=t(r)?r:n,f=t(l)?l:o,d={x:t(a)?a:u,x0:t(i)?i:n,y:t(c)?c:f,y0:t(s)?s:o};return ae({},d,e)}function Oo(e,t){var n=e.scale,r=e.polar,i=e.horizontal,a=c0(t),o=e.origin||{x:0,y:0},l=i?n.y(a.y):n.x(a.x),s=i?n.y(a.y0):n.x(a.x0),c=i?n.x(a.x):n.y(a.y),u=i?n.x(a.x0):n.y(a.y0);return{x:r?c*Math.cos(l)+o.x:l,x0:r?u*Math.cos(s)+o.x:s,y:r?-c*Math.sin(l)+o.y:c,y0:r?-u*Math.sin(s)+o.x:u}}function lt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"padding",n=e[t],r=typeof n=="number"?n:0,i=typeof n=="object"?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function yu(e){var t=e&&e.type&&e.type.role;return t==="tooltip"}function bu(e,t){var n=e.theme,r=n===void 0?{}:n,i=e.labelComponent,a=r[t]&&r[t].style||{};if(!yu(i))return a;var o=r.tooltip&&r.tooltip.style||{},l=ae({},o,a.labels);return ae({},{labels:l},a)}function is(e,t){var n="100%",r="100%";if(!e)return ae({parent:{height:r,width:n}},t);var i=e.data,a=e.labels,o=e.parent,l=t&&t.parent||{},s=t&&t.labels||{},c=t&&t.data||{};return{parent:ae({},o,l,{width:n,height:r}),labels:ae({},a,s),data:ae({},i,c)}}function fe(e,t){return Oe(e)?e(t):e}function Xe(e,t){return t.disableInlineStyles?{}:!e||!Ze(e).some(function(n){return Oe(e[n])})?e:Ze(e).reduce(function(n,r){return n[r]=fe(e[r],t),n},{})}function st(e){return typeof e=="number"?e*(Math.PI/180):e}function Zr(e){return typeof e=="number"?e/(Math.PI/180):e}function kr(e){var t=lt(e),n=t.left,r=t.right,i=t.top,a=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-i-a)/2}function as(e){var t=e.width,n=e.height,r=lt(e),i=r.top,a=r.bottom,o=r.left,l=r.right,s=Math.min(t-o-l,n-i-a)/2,c=t/2+o-l,u=n/2+i-a;return{x:c+s>t?s+o-l:c,y:u+s>n?s+i-a:u}}function xt(e,t){return e.range&&e.range[t]?e.range[t]:e.range&&Array.isArray(e.range)?e.range:e.polar?yU(e,t):vU(e,t)}function _u(e){return Oe(e)?e:e==null?function(t){return t}:L5(e)}function St(e,t,n){var r=e.theme&&e.theme[n]?e.theme[n]:{},i=wo(r,["style"]),a=_U(e),o=a===void 0?{}:{horizontal:a};return ae(o,e,i,t)}function bU(e,t){var n=e==="x"?"y":"x";return t?n:e}function Pi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[],i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(s,c){return s.concat(c)},a=["data","domain","categories","polar","startAngle","endAngle","minDomain","maxDomain","horizontal"],o=function(s,c,u){return s.reduce(function(f,d,h){var p=d.type&&d.type.role,g=d.props.name||"".concat(p,"-").concat(c[h]);if(d.props&&d.props.children){var y=B({},d.props,rs(n,a)),_=d.type&&d.type.role==="stack"&&Oe(d.type.getChildren)?d.type.getChildren(y):x.Children.toArray(d.props.children).map(function(w){var A=B({},w.props,rs(y,a));return x.cloneElement(w,A)}),b=_.map(function(w,A){return"".concat(g,"-").concat(A)}),S=o(_,b,d);f=i(f,S)}else{var O=t(d,g,u);O&&(f=i(f,O))}return f},r)},l=e.map(function(s,c){return c});return o(e,l)}function _U(e){if(e.horizontal!==void 0||!e.children)return e.horizontal;var t=function(n){return n.reduce(function(r,i){var a=i.props||{};return r||a.horizontal||!a.children?(r=r||a.horizontal,r):t(x.Children.toArray(a.children))},!1)};return t(x.Children.toArray(e.children))}function xu(e){return OU(e)||wU(e)||SU(e)||xU()}function xU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
135
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SU(e,t){if(e){if(typeof e=="string")return u0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u0(e,t)}}function wU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OU(e){if(Array.isArray(e))return u0(e)}function u0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P2(e){return Array.isArray(e)&&e.length>0}function Su(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Fn(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function CU(e){return P2(e)&&e.every(function(t){return typeof t=="string"})}function j2(e){return P2(e)&&e.every(Array.isArray)}function M2(e){return e.filter(function(t){return t!==void 0})}function Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return Fn(i)?new Date(Math.max.apply(Math,xu(i))):Math.max.apply(Math,xu(i))}function dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return Fn(i)?new Date(Math.min.apply(Math,xu(i))):Math.min.apply(Math,xu(i))}function ji(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f0(e){let t,n,r;e.length!==2?(t=ji,n=(l,s)=>ji(e(l),s),r=(l,s)=>e(l)-s):(t=e===ji||e===AU?e:TU,n=e,r=e);function i(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;n(l[f],s)<0?c=f+1:u=f}while(c<u)}return c}function a(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;n(l[f],s)<=0?c=f+1:u=f}while(c<u)}return c}function o(l,s,c=0,u=l.length){const f=i(l,s,c,u-1);return f>c&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function TU(){return 0}function D2(e){return e===null?NaN:+e}function*kU(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const EU=f0(ji).right;f0(D2).center;const os=EU;class I2 extends Map{constructor(t,n=MU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(L2(this,t))}has(t){return super.has(L2(this,t))}set(t,n){return super.set(PU(this,t),n)}delete(t){return super.delete(jU(this,t))}}function L2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function PU({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function jU({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function MU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function DU(e=ji){if(e===ji)return $2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function $2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var d0=Math.sqrt(50),h0=Math.sqrt(10),m0=Math.sqrt(2);function g0(e,t,n){var r,i=-1,a,o,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(l=F2(e,t,n))===0||!isFinite(l))return[];if(l>0){let s=Math.round(e/l),c=Math.round(t/l);for(s*l<e&&++s,c*l>t&&--c,o=new Array(a=c-s+1);++i<a;)o[i]=(s+i)*l}else{l=-l;let s=Math.round(e*l),c=Math.round(t*l);for(s/l<e&&++s,c/l>t&&--c,o=new Array(a=c-s+1);++i<a;)o[i]=(s+i)/l}return r&&o.reverse(),o}function F2(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=d0?10:a>=h0?5:a>=m0?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=d0?10:a>=h0?5:a>=m0?2:1)}function p0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=d0?i*=10:a>=h0?i*=5:a>=m0&&(i*=2),t<e?-i:i}function N2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function z2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function B2(e,t,n=0,r=e.length-1,i){for(i=i===void 0?$2:DU(i);r>n;){if(r-n>600){const s=r-n+1,c=t-n+1,u=Math.log(s),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(s-f)/s)*(c-s/2<0?-1:1),h=Math.max(n,Math.floor(t-c*f/s+d)),p=Math.min(r,Math.floor(t+(s-c)*f/s+d));B2(e,t,h,p,i)}const a=e[t];let o=n,l=r;for(ls(e,n,t),i(e[r],a)>0&&ls(e,n,r);o<l;){for(ls(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?ls(e,n,l):(++l,ls(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function ls(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function IU(e,t,n){if(e=Float64Array.from(kU(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return z2(e);if(t>=1)return N2(e);var r,i=(r-1)*t,a=Math.floor(i),o=N2(B2(e,a).subarray(0,a+1)),l=z2(e.subarray(a+1));return o+(l-o)*(i-a)}}function LU(e,t,n=D2){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function $U(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function zn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const v0=Symbol("implicit");function y0(){var e=new I2,t=[],n=[],r=v0;function i(a){let o=e.get(a);if(o===void 0){if(r!==v0)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new I2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return y0(t,n).unknown(r)},zn.apply(i,arguments),i}function b0(){var e=y0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<r,p=h?i:r,g=h?r:i;a=(g-p)/Math.max(1,d-s+c*2),l&&(a=Math.floor(a)),p+=(g-p-a*(d-s))*u,o=a*(1-s),l&&(p=Math.round(p),o=Math.round(o));var y=$U(d).map(function(_){return p+a*_});return n(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return b0(t(),[r,i]).round(l).paddingInner(s).paddingOuter(c).align(u)},zn.apply(f(),arguments)}function W2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return W2(t())},e}function FU(){return W2(b0.apply(null,arguments).paddingInner(1))}function NU(e){return function(){return e}}function wu(e){return+e}var R2=[0,1];function Qt(e){return e}function _0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:NU(isNaN(t)?NaN:.5)}function zU(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BU(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=_0(i,r),a=n(o,a)):(r=_0(r,i),a=n(a,o)),function(l){return a(r(l))}}function WU(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=_0(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=os(e,l,1,r)-1;return a[s](i[s](l))}}function ss(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ou(){var e=R2,t=R2,n=Tr,r,i,a,o=Qt,l,s,c;function u(){var d=Math.min(e.length,t.length);return o!==Qt&&(o=zU(e[0],e[d-1])),l=d>2?WU:BU,s=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((c||(c=l(t,e.map(r),lu)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,wu),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=r0,u()},f.clamp=function(d){return arguments.length?(o=d?!0:Qt,u()):o!==Qt},f.interpolate=function(d){return arguments.length?(n=d,u()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return r=d,i=h,u()}}function x0(){return Ou()(Qt,Qt)}function RU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Co(e){return e=Cu(Math.abs(e)),e?e[1]:NaN}function VU(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function HU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(e){if(!(t=UU.exec(e)))throw new Error("invalid format: "+e);var t;return new S0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}cs.prototype=S0.prototype;function S0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}S0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qU(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var V2;function GU(e,t){var n=Cu(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(V2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Cu(e,Math.max(0,t+a-1))[0]}function H2(e,t){var n=Cu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const U2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:RU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>H2(e*100,t),r:H2,s:GU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function q2(e){return e}var G2=Array.prototype.map,Y2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YU(e){var t=e.grouping===void 0||e.thousands===void 0?q2:VU(G2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?q2:HU(G2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f){f=cs(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,y=f.zero,_=f.width,b=f.comma,S=f.precision,O=f.trim,w=f.type;w==="n"?(b=!0,w="g"):U2[w]||(S===void 0&&(S=12),O=!0,w="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var A=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T=g==="$"?r:/[%p]/.test(w)?o:"",k=U2[w],P=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(M){var j=A,D=T,I,W,X;if(w==="c")D=k(M)+D,M="";else{M=+M;var ne=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),S),O&&(M=qU(M)),ne&&+M==0&&p!=="+"&&(ne=!1),j=(ne?p==="("?p:l:p==="-"||p==="("?"":p)+j,D=(w==="s"?Y2[8+V2/3]:"")+D+(ne&&p==="("?")":""),P){for(I=-1,W=M.length;++I<W;)if(X=M.charCodeAt(I),48>X||X>57){D=(X===46?i+M.slice(I+1):M.slice(I))+D,M=M.slice(0,I);break}}}b&&!y&&(M=t(M,1/0));var re=j.length+M.length+D.length,Z=re<_?new Array(_-re+1).join(d):"";switch(b&&y&&(M=t(Z+M,Z.length?_-D.length:1/0),Z=""),h){case"<":M=j+M+D+Z;break;case"=":M=j+Z+M+D;break;case"^":M=Z.slice(0,re=Z.length>>1)+j+M+D+Z.slice(re);break;default:M=Z+j+M+D;break}return a(M)}return N.toString=function(){return f+""},N}function u(f,d){var h=c((f=cs(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Co(d)/3)))*3,g=Math.pow(10,-p),y=Y2[8+p/3];return function(_){return h(g*_)+y}}return{format:c,formatPrefix:u}}var Au,w0,K2;KU({thousands:",",grouping:[3],currency:["$",""]});function KU(e){return Au=YU(e),w0=Au.format,K2=Au.formatPrefix,Au}function ZU(e){return Math.max(0,-Co(Math.abs(e)))}function XU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Co(t)/3)))*3-Co(Math.abs(e)))}function JU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Co(t)-Co(e))+1}function Z2(e,t,n,r){var i=p0(e,t,n),a;switch(r=cs(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=XU(i,o))&&(r.precision=a),K2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=JU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=ZU(i))&&(r.precision=a-(r.type==="%")*2);break}}return w0(r)}function Mi(e){var t=e.domain;return e.ticks=function(n){var r=t();return g0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Z2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,c,u=10;for(l<o&&(c=o,o=l,l=c,c=i,i=a,a=c);u-- >0;){if(c=F2(o,l,n),c===s)return r[i]=o,r[a]=l,t(r);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;s=c}return e},e}function O0(){var e=x0();return e.copy=function(){return ss(e,O0())},zn.apply(e,arguments),Mi(e)}function X2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,wu),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return X2(e).unknown(t)},e=arguments.length?Array.from(e,wu):[0,1],Mi(n)}function J2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function Q2(e){return Math.log(e)}function eS(e){return Math.exp(e)}function QU(e){return-Math.log(-e)}function eq(e){return-Math.exp(-e)}function tq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nq(e){return e===10?tq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rq(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tS(e){return(t,n)=>-e(-t,n)}function C0(e){const t=e(Q2,eS),n=t.domain;let r=10,i,a;function o(){return i=rq(r),a=nq(r),n()[0]<0?(i=tS(i),a=tS(a),e(QU,eq)):e(Q2,eS),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let c=s[0],u=s[s.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),p,g;const y=l==null?10:+l;let _=[];if(!(r%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(p=1;p<r;++p)if(g=d<0?p/a(-d):p*a(d),!(g<c)){if(g>u)break;_.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/a(-d):p*a(d),!(g<c)){if(g>u)break;_.push(g)}_.length*2<y&&(_=g0(c,u,y))}else _=g0(d,h,Math.min(h-d,y)).map(a);return f?_.reverse():_},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=cs(s)).precision==null&&(s.trim=!0),s=w0(s)),l===1/0)return s;const c=Math.max(1,r*l/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*r<r-.5&&(f*=r),f<=c?s(u):""}},t.nice=()=>n(J2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function nS(){const e=C0(Ou()).domain([1,10]);return e.copy=()=>ss(e,nS()).base(e.base()),zn.apply(e,arguments),e}function rS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function A0(e){var t=1,n=e(rS(t),iS(t));return n.constant=function(r){return arguments.length?e(rS(t=+r),iS(t)):t},Mi(n)}function aS(){var e=A0(Ou());return e.copy=function(){return ss(e,aS()).constant(e.constant())},zn.apply(e,arguments)}function oS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function aq(e){return e<0?-e*e:e*e}function T0(e){var t=e(Qt,Qt),n=1;function r(){return n===1?e(Qt,Qt):n===.5?e(iq,aq):e(oS(n),oS(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Mi(t)}function k0(){var e=T0(Ou());return e.copy=function(){return ss(e,k0()).exponent(e.exponent())},zn.apply(e,arguments),e}function oq(){return k0.apply(null,arguments).exponent(.5)}function lS(e){return Math.sign(e)*e*e}function lq(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function sS(){var e=x0(),t=[0,1],n=!1,r;function i(a){var o=lq(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(lS(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,wu)).map(lS)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return sS(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},zn.apply(i,arguments),Mi(i)}function cS(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=LU(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[os(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ji),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return cS().domain(e).range(t).unknown(r)},zn.apply(a,arguments)}function uS(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[os(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return uS().domain([e,t]).range(i).unknown(a)},zn.apply(Mi(o),arguments)}function fS(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[os(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return fS().domain(e).range(t).unknown(n)},zn.apply(i,arguments)}const E0=new Date,P0=new Date;function Et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let c;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=a=>Et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(E0.setTime(+a),P0.setTime(+o),e(E0),e(P0),Math.floor(n(E0,P0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Tu=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Tu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Tu),Tu.range;const Jr=1e3,Bn=Jr*60,Qr=Bn*60,ei=Qr*24,j0=ei*7,dS=ei*30,M0=ei*365,da=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCSeconds());da.range;const D0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getMinutes());D0.range;const I0=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCMinutes());I0.range;const L0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr-e.getMinutes()*Bn)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getHours());L0.range;const $0=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCHours());$0.range;const us=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bn)/ei,e=>e.getDate()-1);us.range;const ku=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);ku.range;const hS=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));hS.range;function ha(e){return Et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Bn)/j0)}const Eu=ha(0),Pu=ha(1),sq=ha(2),cq=ha(3),Ao=ha(4),uq=ha(5),fq=ha(6);Eu.range,Pu.range,sq.range,cq.range,Ao.range,uq.range,fq.range;function ma(e){return Et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/j0)}const ju=ma(0),Mu=ma(1),dq=ma(2),hq=ma(3),To=ma(4),mq=ma(5),gq=ma(6);ju.range,Mu.range,dq.range,hq.range,To.range,mq.range,gq.range;const F0=Et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());F0.range;const N0=Et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());N0.range;const ti=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),ti.range;const ni=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ni.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),ni.range;function mS(e,t,n,r,i,a){const o=[[da,1,Jr],[da,5,5*Jr],[da,15,15*Jr],[da,30,30*Jr],[a,1,Bn],[a,5,5*Bn],[a,15,15*Bn],[a,30,30*Bn],[i,1,Qr],[i,3,3*Qr],[i,6,6*Qr],[i,12,12*Qr],[r,1,ei],[r,2,2*ei],[n,1,j0],[t,1,dS],[t,3,3*dS],[e,1,M0]];function l(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:s(c,u,f),p=h?h.range(c,+u+1):[];return d?p.reverse():p}function s(c,u,f){const d=Math.abs(u-c)/f,h=f0(([,,y])=>y).right(o,d);if(h===o.length)return e.every(p0(c/M0,u/M0,f));if(h===0)return Tu.every(Math.max(p0(c,u,f),1));const[p,g]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(g)}return[l,s]}const[pq,vq]=mS(ni,N0,ju,hS,$0,I0),[yq,bq]=mS(ti,F0,Eu,us,L0,D0);function z0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function B0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _q(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=ds(i),u=hs(i),f=ds(a),d=hs(a),h=ds(o),p=hs(o),g=ds(l),y=hs(l),_=ds(s),b=hs(s),S={a:ne,A:re,b:Z,B:R,c:null,d:_S,e:_S,f:Vq,g:Qq,G:tG,H:Bq,I:Wq,j:Rq,L:xS,m:Hq,M:Uq,p:J,q:U,Q:TS,s:kS,S:qq,u:Gq,U:Yq,V:Kq,w:Zq,W:Xq,x:null,X:null,y:Jq,Y:eG,Z:nG,"%":AS},O={a:Y,A:G,b:ie,B:z,c:null,d:wS,e:wS,f:oG,g:pG,G:yG,H:rG,I:iG,j:aG,L:OS,m:lG,M:sG,p:se,q:K,Q:TS,s:kS,S:cG,u:uG,U:fG,V:dG,w:hG,W:mG,x:null,X:null,y:gG,Y:vG,Z:bG,"%":AS},w={a:N,A:M,b:j,B:D,c:I,d:yS,e:yS,f:$q,g:vS,G:pS,H:bS,I:bS,j:Mq,L:Lq,m:jq,M:Dq,p:P,q:Pq,Q:Nq,s:zq,S:Iq,u:Cq,U:Aq,V:Tq,w:Oq,W:kq,x:W,X,y:vS,Y:pS,Z:Eq,"%":Fq};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),O.x=A(n,O),O.X=A(r,O),O.c=A(t,O);function A(Q,te){return function(ce){var L=[],xe=-1,Se=0,be=Q.length,ge,E,V;for(ce instanceof Date||(ce=new Date(+ce));++xe<be;)Q.charCodeAt(xe)===37&&(L.push(Q.slice(Se,xe)),(E=gS[ge=Q.charAt(++xe)])!=null?ge=Q.charAt(++xe):E=ge==="e"?" ":"0",(V=te[ge])&&(ge=V(ce,E)),L.push(ge),Se=xe+1);return L.push(Q.slice(Se,xe)),L.join("")}}function T(Q,te){return function(ce){var L=fs(1900,void 0,1),xe=k(L,Q,ce+="",0),Se,be;if(xe!=ce.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(te&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(Se=B0(fs(L.y,0,1)),be=Se.getUTCDay(),Se=be>4||be===0?Mu.ceil(Se):Mu(Se),Se=ku.offset(Se,(L.V-1)*7),L.y=Se.getUTCFullYear(),L.m=Se.getUTCMonth(),L.d=Se.getUTCDate()+(L.w+6)%7):(Se=z0(fs(L.y,0,1)),be=Se.getDay(),Se=be>4||be===0?Pu.ceil(Se):Pu(Se),Se=us.offset(Se,(L.V-1)*7),L.y=Se.getFullYear(),L.m=Se.getMonth(),L.d=Se.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),be="Z"in L?B0(fs(L.y,0,1)).getUTCDay():z0(fs(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(be+5)%7:L.w+L.U*7-(be+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,B0(L)):z0(L)}}function k(Q,te,ce,L){for(var xe=0,Se=te.length,be=ce.length,ge,E;xe<Se;){if(L>=be)return-1;if(ge=te.charCodeAt(xe++),ge===37){if(ge=te.charAt(xe++),E=w[ge in gS?te.charAt(xe++):ge],!E||(L=E(Q,ce,L))<0)return-1}else if(ge!=ce.charCodeAt(L++))return-1}return L}function P(Q,te,ce){var L=c.exec(te.slice(ce));return L?(Q.p=u.get(L[0].toLowerCase()),ce+L[0].length):-1}function N(Q,te,ce){var L=h.exec(te.slice(ce));return L?(Q.w=p.get(L[0].toLowerCase()),ce+L[0].length):-1}function M(Q,te,ce){var L=f.exec(te.slice(ce));return L?(Q.w=d.get(L[0].toLowerCase()),ce+L[0].length):-1}function j(Q,te,ce){var L=_.exec(te.slice(ce));return L?(Q.m=b.get(L[0].toLowerCase()),ce+L[0].length):-1}function D(Q,te,ce){var L=g.exec(te.slice(ce));return L?(Q.m=y.get(L[0].toLowerCase()),ce+L[0].length):-1}function I(Q,te,ce){return k(Q,t,te,ce)}function W(Q,te,ce){return k(Q,n,te,ce)}function X(Q,te,ce){return k(Q,r,te,ce)}function ne(Q){return o[Q.getDay()]}function re(Q){return a[Q.getDay()]}function Z(Q){return s[Q.getMonth()]}function R(Q){return l[Q.getMonth()]}function J(Q){return i[+(Q.getHours()>=12)]}function U(Q){return 1+~~(Q.getMonth()/3)}function Y(Q){return o[Q.getUTCDay()]}function G(Q){return a[Q.getUTCDay()]}function ie(Q){return s[Q.getUTCMonth()]}function z(Q){return l[Q.getUTCMonth()]}function se(Q){return i[+(Q.getUTCHours()>=12)]}function K(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var te=A(Q+="",S);return te.toString=function(){return Q},te},parse:function(Q){var te=T(Q+="",!1);return te.toString=function(){return Q},te},utcFormat:function(Q){var te=A(Q+="",O);return te.toString=function(){return Q},te},utcParse:function(Q){var te=T(Q+="",!0);return te.toString=function(){return Q},te}}}var gS={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,xq=/^%/,Sq=/[\\^$*+?|[\]().{}]/g;function Re(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function wq(e){return e.replace(Sq,"\\$&")}function ds(e){return new RegExp("^(?:"+e.map(wq).join("|")+")","i")}function hs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Oq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Aq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pS(e,t,n){var r=zt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function vS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Eq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Mq(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Iq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lq(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $q(e,t,n){var r=zt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fq(e,t,n){var r=xq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nq(e,t,n){var r=zt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zq(e,t,n){var r=zt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _S(e,t){return Re(e.getDate(),t,2)}function Bq(e,t){return Re(e.getHours(),t,2)}function Wq(e,t){return Re(e.getHours()%12||12,t,2)}function Rq(e,t){return Re(1+us.count(ti(e),e),t,3)}function xS(e,t){return Re(e.getMilliseconds(),t,3)}function Vq(e,t){return xS(e,t)+"000"}function Hq(e,t){return Re(e.getMonth()+1,t,2)}function Uq(e,t){return Re(e.getMinutes(),t,2)}function qq(e,t){return Re(e.getSeconds(),t,2)}function Gq(e){var t=e.getDay();return t===0?7:t}function Yq(e,t){return Re(Eu.count(ti(e)-1,e),t,2)}function SS(e){var t=e.getDay();return t>=4||t===0?Ao(e):Ao.ceil(e)}function Kq(e,t){return e=SS(e),Re(Ao.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function Zq(e){return e.getDay()}function Xq(e,t){return Re(Pu.count(ti(e)-1,e),t,2)}function Jq(e,t){return Re(e.getFullYear()%100,t,2)}function Qq(e,t){return e=SS(e),Re(e.getFullYear()%100,t,2)}function eG(e,t){return Re(e.getFullYear()%1e4,t,4)}function tG(e,t){var n=e.getDay();return e=n>=4||n===0?Ao(e):Ao.ceil(e),Re(e.getFullYear()%1e4,t,4)}function nG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Re(t/60|0,"0",2)+Re(t%60,"0",2)}function wS(e,t){return Re(e.getUTCDate(),t,2)}function rG(e,t){return Re(e.getUTCHours(),t,2)}function iG(e,t){return Re(e.getUTCHours()%12||12,t,2)}function aG(e,t){return Re(1+ku.count(ni(e),e),t,3)}function OS(e,t){return Re(e.getUTCMilliseconds(),t,3)}function oG(e,t){return OS(e,t)+"000"}function lG(e,t){return Re(e.getUTCMonth()+1,t,2)}function sG(e,t){return Re(e.getUTCMinutes(),t,2)}function cG(e,t){return Re(e.getUTCSeconds(),t,2)}function uG(e){var t=e.getUTCDay();return t===0?7:t}function fG(e,t){return Re(ju.count(ni(e)-1,e),t,2)}function CS(e){var t=e.getUTCDay();return t>=4||t===0?To(e):To.ceil(e)}function dG(e,t){return e=CS(e),Re(To.count(ni(e),e)+(ni(e).getUTCDay()===4),t,2)}function hG(e){return e.getUTCDay()}function mG(e,t){return Re(Mu.count(ni(e)-1,e),t,2)}function gG(e,t){return Re(e.getUTCFullYear()%100,t,2)}function pG(e,t){return e=CS(e),Re(e.getUTCFullYear()%100,t,2)}function vG(e,t){return Re(e.getUTCFullYear()%1e4,t,4)}function yG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?To(e):To.ceil(e),Re(e.getUTCFullYear()%1e4,t,4)}function bG(){return"+0000"}function AS(){return"%"}function TS(e){return+e}function kS(e){return Math.floor(+e/1e3)}var ko,ES,PS;_G({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _G(e){return ko=_q(e),ES=ko.format,ko.parse,PS=ko.utcFormat,ko.utcParse,ko}function xG(e){return new Date(e)}function SG(e){return e instanceof Date?+e:+new Date(+e)}function W0(e,t,n,r,i,a,o,l,s,c){var u=x0(),f=u.invert,d=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),_=c("%a %d"),b=c("%b %d"),S=c("%B"),O=c("%Y");function w(A){return(s(A)<A?h:l(A)<A?p:o(A)<A?g:a(A)<A?y:r(A)<A?i(A)<A?_:b:n(A)<A?S:O)(A)}return u.invert=function(A){return new Date(f(A))},u.domain=function(A){return arguments.length?d(Array.from(A,SG)):d().map(xG)},u.ticks=function(A){var T=d();return e(T[0],T[T.length-1],A??10)},u.tickFormat=function(A,T){return T==null?w:c(T)},u.nice=function(A){var T=d();return(!A||typeof A.range!="function")&&(A=t(T[0],T[T.length-1],A??10)),A?d(J2(T,A)):u},u.copy=function(){return ss(u,W0(e,t,n,r,i,a,o,l,s,c))},u}function wG(){return zn.apply(W0(yq,bq,ti,F0,Eu,us,L0,D0,da,ES).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function OG(){return zn.apply(W0(pq,vq,ni,N0,ju,ku,$0,I0,da,PS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Du(){var e=0,t=1,n,r,i,a,o=Qt,l=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(l=!!f,c):l},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),c):[o(0),o(1)]}}return c.range=u(Tr),c.rangeRound=u(r0),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Di(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function jS(){var e=Mi(Du()(Qt));return e.copy=function(){return Di(e,jS())},Xr.apply(e,arguments)}function MS(){var e=C0(Du()).domain([1,10]);return e.copy=function(){return Di(e,MS()).base(e.base())},Xr.apply(e,arguments)}function DS(){var e=A0(Du());return e.copy=function(){return Di(e,DS()).constant(e.constant())},Xr.apply(e,arguments)}function R0(){var e=T0(Du());return e.copy=function(){return Di(e,R0()).exponent(e.exponent())},Xr.apply(e,arguments)}function CG(){return R0.apply(null,arguments).exponent(.5)}function IS(){var e=[],t=Qt;function n(r){if(r!=null&&!isNaN(r=+r))return t((os(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ji),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>IU(e,a/r))},n.copy=function(){return IS(t).domain(e)},Xr.apply(n,arguments)}function Iu(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,c=Qt,u,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+u(g))-a)*(r*g<r*a?l:s),c(f?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,n]=g,i=u(e=+e),a=u(t=+t),o=u(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h):[e,t,n]},h.clamp=function(g){return arguments.length?(f=!!g,h):f},h.interpolator=function(g){return arguments.length?(c=g,h):c};function p(g){return function(y){var _,b,S;return arguments.length?([_,b,S]=y,c=qR(g,[_,b,S]),h):[c(0),c(.5),c(1)]}}return h.range=p(Tr),h.rangeRound=p(r0),h.unknown=function(g){return arguments.length?(d=g,h):d},function(g){return u=g,i=g(e),a=g(t),o=g(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h}}function LS(){var e=Mi(Iu()(Qt));return e.copy=function(){return Di(e,LS())},Xr.apply(e,arguments)}function $S(){var e=C0(Iu()).domain([.1,1,10]);return e.copy=function(){return Di(e,$S()).base(e.base())},Xr.apply(e,arguments)}function FS(){var e=A0(Iu());return e.copy=function(){return Di(e,FS()).constant(e.constant())},Xr.apply(e,arguments)}function V0(){var e=T0(Iu());return e.copy=function(){return Di(e,V0()).exponent(e.exponent())},Xr.apply(e,arguments)}function AG(){return V0.apply(null,arguments).exponent(.5)}const TG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:LS,scaleDivergingLog:$S,scaleDivergingPow:V0,scaleDivergingSqrt:AG,scaleDivergingSymlog:FS,scaleIdentity:X2,scaleImplicit:v0,scaleLinear:O0,scaleLog:nS,scaleOrdinal:y0,scalePoint:FU,scalePow:k0,scaleQuantile:cS,scaleQuantize:uS,scaleRadial:sS,scaleSequential:jS,scaleSequentialLog:MS,scaleSequentialPow:R0,scaleSequentialQuantile:IS,scaleSequentialSqrt:CG,scaleSequentialSymlog:DS,scaleSqrt:oq,scaleSymlog:aS,scaleThreshold:fS,scaleTime:wG,scaleUtc:OG,tickFormat:Z2},Symbol.toStringTag,{value:"Module"}));var kG=["linear","time","log","sqrt"];function EG(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"scale".concat(t(e))}function H0(e){return typeof e=="function"?Oe(e.copy)&&Oe(e.domain)&&Oe(e.range):typeof e=="string"?Kr(kG,e):!1}function NS(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function PG(e,t){if(NS(e,t)){var n=e.scale[t]||e.scale;return typeof n=="string"?n:BS(n)}}function jG(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return Fn(n)?"time":"linear"}function zS(e,t){if(!e.data)return"linear";var n=_u(e[t]),r=e.data.map(function(i){var a=Qe(n(i))?n(i)[t]:n(i);return a!==void 0?a:i[t]});return Fn(r)?"time":"linear"}function ms(e){if(H0(e)){var t=EG(e);return TG[t]()}return O0()}function Wn(e,t){var n=gs(e,t);if(n)return typeof n=="string"?ms(n):n;var r=jG(e,t)||zS(e,t);return ms(r)}function gs(e,t){if(NS(e,t)){var n=e.scale[t]||e.scale;if(H0(n))return Oe(n)?n:ms(n)}}function Lu(e,t){return PG(e,t)||zS(e,t)}var MG=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function BS(e){if(typeof e=="string")return e;var t=MG.filter(function(n){return e[n.method]!==void 0})[0];return t?t.name:void 0}function DG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri=function(e){var t=function(r){return function(i,a,o){var l=i[a];if(l==null)return r?new Error("Required `".concat(a,"` was not specified in `").concat(o,"`.")):null;for(var s=arguments.length,c=new Array(s>3?s-3:0),u=3;u<s;u++)c[u-3]=arguments[u];return e.apply(void 0,[i,a,o].concat(c))}},n=Object.assign(t(!1),{isRequired:t(!0)});return n},IG=function(){return null},LG=function(){},WS=function(e){return e===void 0?LG:e===null?IG:e.constructor},RS=function(e){return e===void 0?"undefined":e===null?"null":Object.prototype.toString.call(e).slice(8,-1)};function VS(e,t){return function(n,r,i){var a=n[r];return a!=null&&So('"'.concat(r,'" property of "').concat(i,'" has been deprecated ').concat(t)),m.checkPropTypes(DG({},r,e),n,r,i),null}}function ft(e){return ri(function(t,n,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return e.reduce(function(l,s){return l||s.apply(void 0,[t,n,r].concat(a))},null)})}var _e=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r<0?new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number.")):null}),ct=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r%1!==0?new Error("`".concat(t,"` in `").concat(n,"` must be an integer.")):null}),HS=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r<=0?new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero.")):null}),Ii=ri(function(e,t,n){var r=e[t];return!Array.isArray(r)||r.length!==2||r[1]===r[0]?new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values.")):null}),Er=ri(function(e,t,n){var r=e[t];return H0(r)?null:new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))}),$u=ri(function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(r.length<2)return null;var i=WS(r[0]),a=dH(r,function(s){return i!==WS(s)});if(a){var o=RS(r[0]),l=RS(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(o,"` and ")+"`".concat(l,"`."))}return null});ri(function(e,t){return e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length?new Error("Length of data and ".concat(t," arrays must match.")):null});var $G=ri(function(e,t,n){return e[t]&&!d2(e[t])?new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression.")):null});function FG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function US(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NG(e,t,n){return t&&US(e.prototype,t),n&&US(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U0(e,t)}function U0(e,t){return U0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U0(e,t)}function BG(e){var t=VG();return function(){var r=Fu(e),i;if(t){var a=Fu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return WG(this,i)}}function WG(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RG(e)}function RG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fu(e)}var q0=function(e){zG(n,e);var t=BG(n);function n(r){var i;return FG(this,n),i=t.call(this,r),i.map=void 0,i.index=void 0,i.portalRegister=function(){return++i.index},i.portalUpdate=function(a,o){i.map[a]=o,i.forceUpdate()},i.portalDeregister=function(a){delete i.map[a],i.forceUpdate()},i.map={},i.index=1,i}return NG(n,[{key:"getChildren",value:function(){var i=this;return Ze(this.map).map(function(a){var o=i.map[a];return o&&x.cloneElement(o,{key:a})})}},{key:"render",value:function(){return x.createElement("svg",this.props,this.getChildren())}}]),n}(x.Component);q0.displayName="Portal",q0.propTypes={className:m.string,height:_e,style:m.object,viewBox:m.string,width:_e};var G0=x.createContext({});G0.displayName="PortalContext";function qS(e,t){return GG(e)||qG(e,t)||UG(e,t)||HG()}function HG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UG(e,t){if(e){if(typeof e=="string")return GS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GS(e,t)}}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function GG(e){if(Array.isArray(e))return e}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){KG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KS={startsWith:["data-","aria-"],exactMatch:[]},ZG=function(e){var t=!1;return KS.startsWith.forEach(function(n){var r=new RegExp("\\b(".concat(n,")(\\w|-)+"),"g");r.test(e)&&(t=!0)}),t},XG=function(e){return KS.exactMatch.includes(e)},JG=function(e){return!!(ZG(e)||XG(e))},QG=function(e,t){return typeof e=="function"?e(t):e},ur=function(e){var t=YG({},e);return Object.fromEntries(Object.entries(t).filter(function(n){var r=qS(n,1),i=r[0];return JG(i)}).map(function(n){var r=qS(n,2),i=r[0],a=r[1];return[i,QG(a,e)]}))},Nu=function(e,t){return F.cloneElement(e,ur(t))};function zu(){return zu=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},zu.apply(this,arguments)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){eY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nY(e,t,n){return t&&XS(e.prototype,t),n&&XS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y0(e,t)}function Y0(e,t){return Y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y0(e,t)}function iY(e){var t=lY();return function(){var r=Bu(e),i;if(t){var a=Bu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return aY(this,i)}}function aY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oY(e)}function oY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bu(e)}var Ve=function(e){rY(n,e);var t=iY(n);function n(r){var i;return tY(this,n),i=t.call(this,r),i.containerId=void 0,i.portalRef=void 0,i.containerRef=void 0,i.shouldHandleWheel=void 0,i.savePortalRef=function(a){return i.portalRef=a,a},i.portalUpdate=function(a,o){return i.portalRef.portalUpdate(a,o)},i.portalRegister=function(){return i.portalRef.portalRegister()},i.portalDeregister=function(a){return i.portalRef.portalDeregister(a)},i.saveContainerRef=function(a){return Oe(i.props.containerRef)&&i.props.containerRef(a),i.containerRef=a,a},i.handleWheel=function(a){return a.preventDefault()},i.containerId=!uo(r)||r.containerId===void 0?pu("victory-container-"):r.containerId,i.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),i}return nY(n,[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(i){return"".concat(this.containerId,"-").concat(i)}},{key:"getChildren",value:function(i){return i.children}},{key:"getOUIAProps",value:function(i){var a=i.ouiaId,o=i.ouiaSafe,l=i.ouiaType;return Eo(Eo(Eo({},a&&{"data-ouia-component-id":a}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(i,a,o){var l=i.title,s=i.desc,c=i.portalComponent,u=i.className,f=i.width,d=i.height,h=i.portalZIndex,p=i.responsive,g=this.getChildren(i),y=p?{width:"100%",height:"100%"}:{width:f,height:d},_=B({pointerEvents:"none",touchAction:"none",position:"relative"},y),b=B({zIndex:h,position:"absolute",top:0,left:0},y),S=B({pointerEvents:"all"},y),O=B({overflow:"visible"},y),w={width:f,height:d,viewBox:a.viewBox,preserveAspectRatio:a.preserveAspectRatio,style:O};return x.createElement(G0.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},x.createElement("div",zu({style:ae({},o,_),className:u,ref:this.saveContainerRef},this.getOUIAProps(i)),x.createElement("svg",zu({},a,{style:S}),l?x.createElement("title",{id:this.getIdForElement("title")},l):null,s?x.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),x.createElement("div",{style:b},x.cloneElement(c,Eo(Eo({},w),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var i=this.props,a=i.width,o=i.height,l=i.responsive,s=i.events,c=i.title,u=i.desc,f=i.tabIndex,d=i.preserveAspectRatio,h=i.role,p=l?this.props.style:wo(this.props.style,["height","width"]),g=ur(this.props),y=B(Eo({width:a,height:o,tabIndex:f,role:h,"aria-labelledby":[c&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:l?"0 0 ".concat(a," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,y,p)}}]),n}(x.Component);Ve.displayName="VictoryContainer",Ve.role="container",Ve.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),className:m.string,containerId:m.oneOfType([m.number,m.string]),containerRef:m.func,desc:m.string,events:m.object,height:_e,name:m.string,origin:m.shape({x:_e,y:_e}),ouiaId:m.oneOfType([m.number,m.string]),ouiaSafe:m.bool,ouiaType:m.string,polar:m.bool,portalComponent:m.element,portalZIndex:ct,preserveAspectRatio:m.string,responsive:m.bool,role:m.string,style:m.object,tabIndex:m.number,theme:m.object,title:m.string,width:_e},Ve.defaultProps={className:"VictoryContainer",portalComponent:x.createElement(q0,null),portalZIndex:99,responsive:!0,role:"img"},Ve.contextType=hu;function sY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cY(e,t,n){return t&&JS(e.prototype,t),n&&JS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K0(e,t)}function K0(e,t){return K0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K0(e,t)}function fY(e){var t=mY();return function(){var r=Wu(e),i;if(t){var a=Wu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return dY(this,i)}}function dY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hY(e)}function hY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wu(e){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wu(e)}var ii=function(e){uY(n,e);var t=fY(n);function n(){var r;sY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),r.checkedContext=void 0,r.renderInPlace=void 0,r.element=void 0,r.portalKey=void 0,r}return cY(n,[{key:"componentDidMount",value:function(){if(!this.checkedContext){if(typeof this.context.portalUpdate!="function"){var i="`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place";So(i),this.renderInPlace=!0}this.checkedContext=!0}this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(i){return this.renderInPlace?i:(this.element=i,null)}},{key:"render",value:function(){var i=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,a=this.props.groupComponent,o=i&&i.props||{},l=o.groupComponent?{groupComponent:a,standalone:!1}:{},s=ae(l,o,wo(this.props,["children","groupComponent"])),c=i&&x.cloneElement(i,s);return this.renderPortal(c)}}]),n}(x.Component);ii.displayName="VictoryPortal",ii.role="portal",ii.propTypes={children:m.node,groupComponent:m.element},ii.defaultProps={groupComponent:x.createElement("g",null)},ii.contextType=G0;var gY=["desc"];function Ru(){return Ru=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},Ru.apply(this,arguments)}function pY(e,t){if(e==null)return{};var n=vY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ga=function(e){var t=e.desc,n=pY(e,gY);return t?x.createElement("rect",Ru({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("rect",Ru({vectorEffect:"non-scaling-stroke"},n))},yY=["children","title","desc"];function bY(e,t){if(e==null)return{};var n=_Y(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Y(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var QS=function(e){var t=e.children,n=e.title,r=e.desc,i=bY(e,yY);return x.createElement("text",i,n&&x.createElement("title",null,n),r&&x.createElement("desc",null,r),t)};QS.propTypes={children:m.node,desc:m.string,title:m.string};var xY=function(e){return x.createElement("tspan",e)};function SY(e,t){t=t||{};var n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function wY(e,t){t=t||{};var n=e.style,r=e.horizontal,i=t._y>=0?1:-1,a=n&&n.labels||{};return t.verticalAnchor||a.verticalAnchor?t.verticalAnchor||a.verticalAnchor:r?i>=0?"start":"end":"middle"}function OY(e,t){t=t||{};var n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function CY(e,t){t=t||{};var n=e.horizontal,r=e.style,i=r.labels||{},a=fe(i.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}function AY(e,t){if(e.polar)return{};var n=CY(e,t);return{dx:n.x,dy:n.y}}function TY(e,t){var n=e.polar,r=Oo(e,t),i=r.x,a=r.y;if(!n)return{x:i,y:a};var o=kY(e,t);return{x:i+o.x,y:a+o.y}}function kY(e,t){var n=e.style,r=ps(e,t),i=n.labels||{},a=fe(i.padding,e)||0,o=st(r);return{x:a*Math.cos(o),y:-a*Math.sin(o)}}function Z0(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function EY(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function Vu(e,t,n){return t=t||{},t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function X0(e,t){var n=Z0(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function ew(e,t){var n=Z0(e),r=EY(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function J0(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var i=t!==void 0?t%360:ps(e,r),a=i>90&&i<180||i>270?1:-1,o=0;i===0||i===180?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i);var l=n==="perpendicular"?0:90;return o+a*l}function ps(e,t){var n=c0(t),r=n.x;return Zr(e.scale.x(r))%360}function Q0(e,t){var n=e.scale,r=e.data,i=e.style,a=e.horizontal,o=e.polar,l=e.width,s=e.height,c=e.theme,u=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=ps(e,d),p=o?X0(e,h):wY(e,d),g=o?ew(e,h):SY(e,d),y=OY(e,d),_=Vu(e,d,t),b=Z0(e),S=TY(e,d),O=S.x,w=S.y,A=AY(e,d),T=A.dx,k=A.dy,P={angle:y,data:r,datum:d,disableInlineStyles:f,horizontal:a,index:t,polar:o,scale:n,labelPlacement:b,text:_,textAnchor:p,verticalAnchor:g,x:O,y:w,dx:T,dy:k,width:l,height:s,style:i.labels};if(!yu(u))return P;var N=c&&c.tooltip||{};return ae({},P,wo(N,["style"]))}var eg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(function(l,s){return[l,eg(s)].join(" ")},eg(e)).trim();if(e==null||typeof e=="string")return e;var i=[];for(var a in e)if(e.hasOwnProperty(a)){var o=e[a];i.push("".concat(a,"(").concat(o,")"))}return i.join(" ").trim()};function tg(e){var t={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return e?t[e]:t.grayscale}function PY(e,t){return DY(e)||MY(e,t)||tw(e,t)||jY()}function jY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
135
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SU(e,t){if(e){if(typeof e=="string")return u0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u0(e,t)}}function wU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OU(e){if(Array.isArray(e))return u0(e)}function u0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P2(e){return Array.isArray(e)&&e.length>0}function Su(e){return Array.isArray(e)&&e.some(function(t){return typeof t=="string"})}function Fn(e){return Array.isArray(e)&&e.some(function(t){return t instanceof Date})}function CU(e){return P2(e)&&e.every(function(t){return typeof t=="string"})}function j2(e){return P2(e)&&e.every(Array.isArray)}function M2(e){return e.filter(function(t){return t!==void 0})}function Nn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return Fn(i)?new Date(Math.max.apply(Math,xu(i))):Math.max.apply(Math,xu(i))}function dn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=e.concat(n);return Fn(i)?new Date(Math.min.apply(Math,xu(i))):Math.min.apply(Math,xu(i))}function ji(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function AU(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function f0(e){let t,n,r;e.length!==2?(t=ji,n=(l,s)=>ji(e(l),s),r=(l,s)=>e(l)-s):(t=e===ji||e===AU?e:TU,n=e,r=e);function i(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;n(l[f],s)<0?c=f+1:u=f}while(c<u)}return c}function a(l,s,c=0,u=l.length){if(c<u){if(t(s,s)!==0)return u;do{const f=c+u>>>1;n(l[f],s)<=0?c=f+1:u=f}while(c<u)}return c}function o(l,s,c=0,u=l.length){const f=i(l,s,c,u-1);return f>c&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:i,center:o,right:a}}function TU(){return 0}function D2(e){return e===null?NaN:+e}function*kU(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const EU=f0(ji).right;f0(D2).center;const os=EU;class I2 extends Map{constructor(t,n=MU){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(L2(this,t))}has(t){return super.has(L2(this,t))}set(t,n){return super.set(PU(this,t),n)}delete(t){return super.delete(jU(this,t))}}function L2({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function PU({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function jU({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function MU(e){return e!==null&&typeof e=="object"?e.valueOf():e}function DU(e=ji){if(e===ji)return $2;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function $2(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var d0=Math.sqrt(50),h0=Math.sqrt(10),m0=Math.sqrt(2);function g0(e,t,n){var r,i=-1,a,o,l;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((r=t<e)&&(a=e,e=t,t=a),(l=F2(e,t,n))===0||!isFinite(l))return[];if(l>0){let s=Math.round(e/l),c=Math.round(t/l);for(s*l<e&&++s,c*l>t&&--c,o=new Array(a=c-s+1);++i<a;)o[i]=(s+i)*l}else{l=-l;let s=Math.round(e*l),c=Math.round(t*l);for(s/l<e&&++s,c/l>t&&--c,o=new Array(a=c-s+1);++i<a;)o[i]=(s+i)/l}return r&&o.reverse(),o}function F2(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=d0?10:a>=h0?5:a>=m0?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=d0?10:a>=h0?5:a>=m0?2:1)}function p0(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;return a>=d0?i*=10:a>=h0?i*=5:a>=m0&&(i*=2),t<e?-i:i}function N2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function z2(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function B2(e,t,n=0,r=e.length-1,i){for(i=i===void 0?$2:DU(i);r>n;){if(r-n>600){const s=r-n+1,c=t-n+1,u=Math.log(s),f=.5*Math.exp(2*u/3),d=.5*Math.sqrt(u*f*(s-f)/s)*(c-s/2<0?-1:1),h=Math.max(n,Math.floor(t-c*f/s+d)),p=Math.min(r,Math.floor(t+(s-c)*f/s+d));B2(e,t,h,p,i)}const a=e[t];let o=n,l=r;for(ls(e,n,t),i(e[r],a)>0&&ls(e,n,r);o<l;){for(ls(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?ls(e,n,l):(++l,ls(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function ls(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function IU(e,t,n){if(e=Float64Array.from(kU(e,n)),!!(r=e.length)){if((t=+t)<=0||r<2)return z2(e);if(t>=1)return N2(e);var r,i=(r-1)*t,a=Math.floor(i),o=N2(B2(e,a).subarray(0,a+1)),l=z2(e.subarray(a+1));return o+(l-o)*(i-a)}}function LU(e,t,n=D2){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function $U(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function zn(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xr(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const v0=Symbol("implicit");function y0(){var e=new I2,t=[],n=[],r=v0;function i(a){let o=e.get(a);if(o===void 0){if(r!==v0)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new I2;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return y0(t,n).unknown(r)},zn.apply(i,arguments),i}function b0(){var e=y0().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,s=0,c=0,u=.5;delete e.unknown;function f(){var d=t().length,h=i<r,p=h?i:r,g=h?r:i;a=(g-p)/Math.max(1,d-s+c*2),l&&(a=Math.floor(a)),p+=(g-p-a*(d-s))*u,o=a*(1-s),l&&(p=Math.round(p),o=Math.round(o));var y=$U(d).map(function(_){return p+a*_});return n(h?y.reverse():y)}return e.domain=function(d){return arguments.length?(t(d),f()):t()},e.range=function(d){return arguments.length?([r,i]=d,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(d){return[r,i]=d,r=+r,i=+i,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(l=!!d,f()):l},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),f()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),f()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,f()):c},e.align=function(d){return arguments.length?(u=Math.max(0,Math.min(1,d)),f()):u},e.copy=function(){return b0(t(),[r,i]).round(l).paddingInner(s).paddingOuter(c).align(u)},zn.apply(f(),arguments)}function W2(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return W2(t())},e}function FU(){return W2(b0.apply(null,arguments).paddingInner(1))}function NU(e){return function(){return e}}function wu(e){return+e}var R2=[0,1];function Qt(e){return e}function _0(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:NU(isNaN(t)?NaN:.5)}function zU(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function BU(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=_0(i,r),a=n(o,a)):(r=_0(r,i),a=n(a,o)),function(l){return a(r(l))}}function WU(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=_0(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var s=os(e,l,1,r)-1;return a[s](i[s](l))}}function ss(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ou(){var e=R2,t=R2,n=Tr,r,i,a,o=Qt,l,s,c;function u(){var d=Math.min(e.length,t.length);return o!==Qt&&(o=zU(e[0],e[d-1])),l=d>2?WU:BU,s=c=null,f}function f(d){return d==null||isNaN(d=+d)?a:(s||(s=l(e.map(r),t,n)))(r(o(d)))}return f.invert=function(d){return o(i((c||(c=l(t,e.map(r),lu)))(d)))},f.domain=function(d){return arguments.length?(e=Array.from(d,wu),u()):e.slice()},f.range=function(d){return arguments.length?(t=Array.from(d),u()):t.slice()},f.rangeRound=function(d){return t=Array.from(d),n=r0,u()},f.clamp=function(d){return arguments.length?(o=d?!0:Qt,u()):o!==Qt},f.interpolate=function(d){return arguments.length?(n=d,u()):n},f.unknown=function(d){return arguments.length?(a=d,f):a},function(d,h){return r=d,i=h,u()}}function x0(){return Ou()(Qt,Qt)}function RU(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Cu(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Co(e){return e=Cu(Math.abs(e)),e?e[1]:NaN}function VU(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],s=0;i>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),a.push(n.substring(i-=l,i+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function HU(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var UU=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function cs(e){if(!(t=UU.exec(e)))throw new Error("invalid format: "+e);var t;return new S0({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}cs.prototype=S0.prototype;function S0(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}S0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function qU(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var V2;function GU(e,t){var n=Cu(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(V2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Cu(e,Math.max(0,t+a-1))[0]}function H2(e,t){var n=Cu(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const U2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:RU,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>H2(e*100,t),r:H2,s:GU,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function q2(e){return e}var G2=Array.prototype.map,Y2=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function YU(e){var t=e.grouping===void 0||e.thousands===void 0?q2:VU(G2.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?q2:HU(G2.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(f){f=cs(f);var d=f.fill,h=f.align,p=f.sign,g=f.symbol,y=f.zero,_=f.width,b=f.comma,S=f.precision,O=f.trim,w=f.type;w==="n"?(b=!0,w="g"):U2[w]||(S===void 0&&(S=12),O=!0,w="g"),(y||d==="0"&&h==="=")&&(y=!0,d="0",h="=");var A=g==="$"?n:g==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",T=g==="$"?r:/[%p]/.test(w)?o:"",k=U2[w],j=/[defgprs%]/.test(w);S=S===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function N(M){var E=A,I=T,D,W,X;if(w==="c")I=k(M)+I,M="";else{M=+M;var ne=M<0||1/M<0;if(M=isNaN(M)?s:k(Math.abs(M),S),O&&(M=qU(M)),ne&&+M==0&&p!=="+"&&(ne=!1),E=(ne?p==="("?p:l:p==="-"||p==="("?"":p)+E,I=(w==="s"?Y2[8+V2/3]:"")+I+(ne&&p==="("?")":""),j){for(D=-1,W=M.length;++D<W;)if(X=M.charCodeAt(D),48>X||X>57){I=(X===46?i+M.slice(D+1):M.slice(D))+I,M=M.slice(0,D);break}}}b&&!y&&(M=t(M,1/0));var re=E.length+M.length+I.length,Z=re<_?new Array(_-re+1).join(d):"";switch(b&&y&&(M=t(Z+M,Z.length?_-I.length:1/0),Z=""),h){case"<":M=E+M+I+Z;break;case"=":M=E+Z+M+I;break;case"^":M=Z.slice(0,re=Z.length>>1)+E+M+I+Z.slice(re);break;default:M=Z+E+M+I;break}return a(M)}return N.toString=function(){return f+""},N}function u(f,d){var h=c((f=cs(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Co(d)/3)))*3,g=Math.pow(10,-p),y=Y2[8+p/3];return function(_){return h(g*_)+y}}return{format:c,formatPrefix:u}}var Au,w0,K2;KU({thousands:",",grouping:[3],currency:["$",""]});function KU(e){return Au=YU(e),w0=Au.format,K2=Au.formatPrefix,Au}function ZU(e){return Math.max(0,-Co(Math.abs(e)))}function XU(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Co(t)/3)))*3-Co(Math.abs(e)))}function JU(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Co(t)-Co(e))+1}function Z2(e,t,n,r){var i=p0(e,t,n),a;switch(r=cs(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=XU(i,o))&&(r.precision=a),K2(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=JU(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=ZU(i))&&(r.precision=a-(r.type==="%")*2);break}}return w0(r)}function Mi(e){var t=e.domain;return e.ticks=function(n){var r=t();return g0(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Z2(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],s,c,u=10;for(l<o&&(c=o,o=l,l=c,c=i,i=a,a=c);u-- >0;){if(c=F2(o,l,n),c===s)return r[i]=o,r[a]=l,t(r);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;s=c}return e},e}function O0(){var e=x0();return e.copy=function(){return ss(e,O0())},zn.apply(e,arguments),Mi(e)}function X2(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,wu),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return X2(e).unknown(t)},e=arguments.length?Array.from(e,wu):[0,1],Mi(n)}function J2(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function Q2(e){return Math.log(e)}function eS(e){return Math.exp(e)}function QU(e){return-Math.log(-e)}function eq(e){return-Math.exp(-e)}function tq(e){return isFinite(e)?+("1e"+e):e<0?0:e}function nq(e){return e===10?tq:e===Math.E?Math.exp:t=>Math.pow(e,t)}function rq(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function tS(e){return(t,n)=>-e(-t,n)}function C0(e){const t=e(Q2,eS),n=t.domain;let r=10,i,a;function o(){return i=rq(r),a=nq(r),n()[0]<0?(i=tS(i),a=tS(a),e(QU,eq)):e(Q2,eS),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let c=s[0],u=s[s.length-1];const f=u<c;f&&([c,u]=[u,c]);let d=i(c),h=i(u),p,g;const y=l==null?10:+l;let _=[];if(!(r%1)&&h-d<y){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(p=1;p<r;++p)if(g=d<0?p/a(-d):p*a(d),!(g<c)){if(g>u)break;_.push(g)}}else for(;d<=h;++d)for(p=r-1;p>=1;--p)if(g=d>0?p/a(-d):p*a(d),!(g<c)){if(g>u)break;_.push(g)}_.length*2<y&&(_=g0(c,u,y))}else _=g0(d,h,Math.min(h-d,y)).map(a);return f?_.reverse():_},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=cs(s)).precision==null&&(s.trim=!0),s=w0(s)),l===1/0)return s;const c=Math.max(1,r*l/t.ticks().length);return u=>{let f=u/a(Math.round(i(u)));return f*r<r-.5&&(f*=r),f<=c?s(u):""}},t.nice=()=>n(J2(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function nS(){const e=C0(Ou()).domain([1,10]);return e.copy=()=>ss(e,nS()).base(e.base()),zn.apply(e,arguments),e}function rS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function iS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function A0(e){var t=1,n=e(rS(t),iS(t));return n.constant=function(r){return arguments.length?e(rS(t=+r),iS(t)):t},Mi(n)}function aS(){var e=A0(Ou());return e.copy=function(){return ss(e,aS()).constant(e.constant())},zn.apply(e,arguments)}function oS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function iq(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function aq(e){return e<0?-e*e:e*e}function T0(e){var t=e(Qt,Qt),n=1;function r(){return n===1?e(Qt,Qt):n===.5?e(iq,aq):e(oS(n),oS(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Mi(t)}function k0(){var e=T0(Ou());return e.copy=function(){return ss(e,k0()).exponent(e.exponent())},zn.apply(e,arguments),e}function oq(){return k0.apply(null,arguments).exponent(.5)}function lS(e){return Math.sign(e)*e*e}function lq(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function sS(){var e=x0(),t=[0,1],n=!1,r;function i(a){var o=lq(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(lS(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,wu)).map(lS)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return sS(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},zn.apply(i,arguments),Mi(i)}function cS(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=LU(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[os(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ji),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return cS().domain(e).range(t).unknown(r)},zn.apply(a,arguments)}function uS(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[os(r,s,0,n)]:a}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(i=Array.from(s)).length-1,l()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return uS().domain([e,t]).range(i).unknown(a)},zn.apply(Mi(o),arguments)}function fS(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[os(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return fS().domain(e).range(t).unknown(n)},zn.apply(i,arguments)}const E0=new Date,P0=new Date;function Et(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const s=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return s;let c;do s.push(c=new Date(+a)),t(a,l),e(a);while(c<a&&a<o);return s},i.filter=a=>Et(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(E0.setTime(+a),P0.setTime(+o),e(E0),e(P0),Math.floor(n(E0,P0))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const Tu=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Tu.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Tu),Tu.range;const Jr=1e3,Bn=Jr*60,Qr=Bn*60,ei=Qr*24,j0=ei*7,dS=ei*30,M0=ei*365,da=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCSeconds());da.range;const D0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getMinutes());D0.range;const I0=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Bn)},(e,t)=>(t-e)/Bn,e=>e.getUTCMinutes());I0.range;const L0=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Jr-e.getMinutes()*Bn)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getHours());L0.range;const $0=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCHours());$0.range;const us=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Bn)/ei,e=>e.getDate()-1);us.range;const ku=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);ku.range;const hS=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));hS.range;function ha(e){return Et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Bn)/j0)}const Eu=ha(0),Pu=ha(1),sq=ha(2),cq=ha(3),Ao=ha(4),uq=ha(5),fq=ha(6);Eu.range,Pu.range,sq.range,cq.range,Ao.range,uq.range,fq.range;function ma(e){return Et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/j0)}const ju=ma(0),Mu=ma(1),dq=ma(2),hq=ma(3),To=ma(4),mq=ma(5),gq=ma(6);ju.range,Mu.range,dq.range,hq.range,To.range,mq.range,gq.range;const F0=Et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());F0.range;const N0=Et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());N0.range;const ti=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),ti.range;const ni=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ni.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),ni.range;function mS(e,t,n,r,i,a){const o=[[da,1,Jr],[da,5,5*Jr],[da,15,15*Jr],[da,30,30*Jr],[a,1,Bn],[a,5,5*Bn],[a,15,15*Bn],[a,30,30*Bn],[i,1,Qr],[i,3,3*Qr],[i,6,6*Qr],[i,12,12*Qr],[r,1,ei],[r,2,2*ei],[n,1,j0],[t,1,dS],[t,3,3*dS],[e,1,M0]];function l(c,u,f){const d=u<c;d&&([c,u]=[u,c]);const h=f&&typeof f.range=="function"?f:s(c,u,f),p=h?h.range(c,+u+1):[];return d?p.reverse():p}function s(c,u,f){const d=Math.abs(u-c)/f,h=f0(([,,y])=>y).right(o,d);if(h===o.length)return e.every(p0(c/M0,u/M0,f));if(h===0)return Tu.every(Math.max(p0(c,u,f),1));const[p,g]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return p.every(g)}return[l,s]}const[pq,vq]=mS(ni,N0,ju,hS,$0,I0),[yq,bq]=mS(ti,F0,Eu,us,L0,D0);function z0(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function B0(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function fs(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function _q(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,c=ds(i),u=hs(i),f=ds(a),d=hs(a),h=ds(o),p=hs(o),g=ds(l),y=hs(l),_=ds(s),b=hs(s),S={a:ne,A:re,b:Z,B:R,c:null,d:_S,e:_S,f:Vq,g:Qq,G:tG,H:Bq,I:Wq,j:Rq,L:xS,m:Hq,M:Uq,p:J,q:U,Q:TS,s:kS,S:qq,u:Gq,U:Yq,V:Kq,w:Zq,W:Xq,x:null,X:null,y:Jq,Y:eG,Z:nG,"%":AS},O={a:Y,A:G,b:ie,B:z,c:null,d:wS,e:wS,f:oG,g:pG,G:yG,H:rG,I:iG,j:aG,L:OS,m:lG,M:sG,p:se,q:K,Q:TS,s:kS,S:cG,u:uG,U:fG,V:dG,w:hG,W:mG,x:null,X:null,y:gG,Y:vG,Z:bG,"%":AS},w={a:N,A:M,b:E,B:I,c:D,d:yS,e:yS,f:$q,g:vS,G:pS,H:bS,I:bS,j:Mq,L:Lq,m:jq,M:Dq,p:j,q:Pq,Q:Nq,s:zq,S:Iq,u:Cq,U:Aq,V:Tq,w:Oq,W:kq,x:W,X,y:vS,Y:pS,Z:Eq,"%":Fq};S.x=A(n,S),S.X=A(r,S),S.c=A(t,S),O.x=A(n,O),O.X=A(r,O),O.c=A(t,O);function A(Q,te){return function(ce){var L=[],xe=-1,Se=0,be=Q.length,ge,P,V;for(ce instanceof Date||(ce=new Date(+ce));++xe<be;)Q.charCodeAt(xe)===37&&(L.push(Q.slice(Se,xe)),(P=gS[ge=Q.charAt(++xe)])!=null?ge=Q.charAt(++xe):P=ge==="e"?" ":"0",(V=te[ge])&&(ge=V(ce,P)),L.push(ge),Se=xe+1);return L.push(Q.slice(Se,xe)),L.join("")}}function T(Q,te){return function(ce){var L=fs(1900,void 0,1),xe=k(L,Q,ce+="",0),Se,be;if(xe!=ce.length)return null;if("Q"in L)return new Date(L.Q);if("s"in L)return new Date(L.s*1e3+("L"in L?L.L:0));if(te&&!("Z"in L)&&(L.Z=0),"p"in L&&(L.H=L.H%12+L.p*12),L.m===void 0&&(L.m="q"in L?L.q:0),"V"in L){if(L.V<1||L.V>53)return null;"w"in L||(L.w=1),"Z"in L?(Se=B0(fs(L.y,0,1)),be=Se.getUTCDay(),Se=be>4||be===0?Mu.ceil(Se):Mu(Se),Se=ku.offset(Se,(L.V-1)*7),L.y=Se.getUTCFullYear(),L.m=Se.getUTCMonth(),L.d=Se.getUTCDate()+(L.w+6)%7):(Se=z0(fs(L.y,0,1)),be=Se.getDay(),Se=be>4||be===0?Pu.ceil(Se):Pu(Se),Se=us.offset(Se,(L.V-1)*7),L.y=Se.getFullYear(),L.m=Se.getMonth(),L.d=Se.getDate()+(L.w+6)%7)}else("W"in L||"U"in L)&&("w"in L||(L.w="u"in L?L.u%7:"W"in L?1:0),be="Z"in L?B0(fs(L.y,0,1)).getUTCDay():z0(fs(L.y,0,1)).getDay(),L.m=0,L.d="W"in L?(L.w+6)%7+L.W*7-(be+5)%7:L.w+L.U*7-(be+6)%7);return"Z"in L?(L.H+=L.Z/100|0,L.M+=L.Z%100,B0(L)):z0(L)}}function k(Q,te,ce,L){for(var xe=0,Se=te.length,be=ce.length,ge,P;xe<Se;){if(L>=be)return-1;if(ge=te.charCodeAt(xe++),ge===37){if(ge=te.charAt(xe++),P=w[ge in gS?te.charAt(xe++):ge],!P||(L=P(Q,ce,L))<0)return-1}else if(ge!=ce.charCodeAt(L++))return-1}return L}function j(Q,te,ce){var L=c.exec(te.slice(ce));return L?(Q.p=u.get(L[0].toLowerCase()),ce+L[0].length):-1}function N(Q,te,ce){var L=h.exec(te.slice(ce));return L?(Q.w=p.get(L[0].toLowerCase()),ce+L[0].length):-1}function M(Q,te,ce){var L=f.exec(te.slice(ce));return L?(Q.w=d.get(L[0].toLowerCase()),ce+L[0].length):-1}function E(Q,te,ce){var L=_.exec(te.slice(ce));return L?(Q.m=b.get(L[0].toLowerCase()),ce+L[0].length):-1}function I(Q,te,ce){var L=g.exec(te.slice(ce));return L?(Q.m=y.get(L[0].toLowerCase()),ce+L[0].length):-1}function D(Q,te,ce){return k(Q,t,te,ce)}function W(Q,te,ce){return k(Q,n,te,ce)}function X(Q,te,ce){return k(Q,r,te,ce)}function ne(Q){return o[Q.getDay()]}function re(Q){return a[Q.getDay()]}function Z(Q){return s[Q.getMonth()]}function R(Q){return l[Q.getMonth()]}function J(Q){return i[+(Q.getHours()>=12)]}function U(Q){return 1+~~(Q.getMonth()/3)}function Y(Q){return o[Q.getUTCDay()]}function G(Q){return a[Q.getUTCDay()]}function ie(Q){return s[Q.getUTCMonth()]}function z(Q){return l[Q.getUTCMonth()]}function se(Q){return i[+(Q.getUTCHours()>=12)]}function K(Q){return 1+~~(Q.getUTCMonth()/3)}return{format:function(Q){var te=A(Q+="",S);return te.toString=function(){return Q},te},parse:function(Q){var te=T(Q+="",!1);return te.toString=function(){return Q},te},utcFormat:function(Q){var te=A(Q+="",O);return te.toString=function(){return Q},te},utcParse:function(Q){var te=T(Q+="",!0);return te.toString=function(){return Q},te}}}var gS={"-":"",_:" ",0:"0"},zt=/^\s*\d+/,xq=/^%/,Sq=/[\\^$*+?|[\]().{}]/g;function Re(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function wq(e){return e.replace(Sq,"\\$&")}function ds(e){return new RegExp("^(?:"+e.map(wq).join("|")+")","i")}function hs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Oq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Cq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Aq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Tq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function kq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function pS(e,t,n){var r=zt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function vS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Eq(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Pq(e,t,n){var r=zt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function yS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Mq(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function bS(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Dq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Iq(e,t,n){var r=zt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Lq(e,t,n){var r=zt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function $q(e,t,n){var r=zt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fq(e,t,n){var r=xq.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Nq(e,t,n){var r=zt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function zq(e,t,n){var r=zt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function _S(e,t){return Re(e.getDate(),t,2)}function Bq(e,t){return Re(e.getHours(),t,2)}function Wq(e,t){return Re(e.getHours()%12||12,t,2)}function Rq(e,t){return Re(1+us.count(ti(e),e),t,3)}function xS(e,t){return Re(e.getMilliseconds(),t,3)}function Vq(e,t){return xS(e,t)+"000"}function Hq(e,t){return Re(e.getMonth()+1,t,2)}function Uq(e,t){return Re(e.getMinutes(),t,2)}function qq(e,t){return Re(e.getSeconds(),t,2)}function Gq(e){var t=e.getDay();return t===0?7:t}function Yq(e,t){return Re(Eu.count(ti(e)-1,e),t,2)}function SS(e){var t=e.getDay();return t>=4||t===0?Ao(e):Ao.ceil(e)}function Kq(e,t){return e=SS(e),Re(Ao.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function Zq(e){return e.getDay()}function Xq(e,t){return Re(Pu.count(ti(e)-1,e),t,2)}function Jq(e,t){return Re(e.getFullYear()%100,t,2)}function Qq(e,t){return e=SS(e),Re(e.getFullYear()%100,t,2)}function eG(e,t){return Re(e.getFullYear()%1e4,t,4)}function tG(e,t){var n=e.getDay();return e=n>=4||n===0?Ao(e):Ao.ceil(e),Re(e.getFullYear()%1e4,t,4)}function nG(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Re(t/60|0,"0",2)+Re(t%60,"0",2)}function wS(e,t){return Re(e.getUTCDate(),t,2)}function rG(e,t){return Re(e.getUTCHours(),t,2)}function iG(e,t){return Re(e.getUTCHours()%12||12,t,2)}function aG(e,t){return Re(1+ku.count(ni(e),e),t,3)}function OS(e,t){return Re(e.getUTCMilliseconds(),t,3)}function oG(e,t){return OS(e,t)+"000"}function lG(e,t){return Re(e.getUTCMonth()+1,t,2)}function sG(e,t){return Re(e.getUTCMinutes(),t,2)}function cG(e,t){return Re(e.getUTCSeconds(),t,2)}function uG(e){var t=e.getUTCDay();return t===0?7:t}function fG(e,t){return Re(ju.count(ni(e)-1,e),t,2)}function CS(e){var t=e.getUTCDay();return t>=4||t===0?To(e):To.ceil(e)}function dG(e,t){return e=CS(e),Re(To.count(ni(e),e)+(ni(e).getUTCDay()===4),t,2)}function hG(e){return e.getUTCDay()}function mG(e,t){return Re(Mu.count(ni(e)-1,e),t,2)}function gG(e,t){return Re(e.getUTCFullYear()%100,t,2)}function pG(e,t){return e=CS(e),Re(e.getUTCFullYear()%100,t,2)}function vG(e,t){return Re(e.getUTCFullYear()%1e4,t,4)}function yG(e,t){var n=e.getUTCDay();return e=n>=4||n===0?To(e):To.ceil(e),Re(e.getUTCFullYear()%1e4,t,4)}function bG(){return"+0000"}function AS(){return"%"}function TS(e){return+e}function kS(e){return Math.floor(+e/1e3)}var ko,ES,PS;_G({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function _G(e){return ko=_q(e),ES=ko.format,ko.parse,PS=ko.utcFormat,ko.utcParse,ko}function xG(e){return new Date(e)}function SG(e){return e instanceof Date?+e:+new Date(+e)}function W0(e,t,n,r,i,a,o,l,s,c){var u=x0(),f=u.invert,d=u.domain,h=c(".%L"),p=c(":%S"),g=c("%I:%M"),y=c("%I %p"),_=c("%a %d"),b=c("%b %d"),S=c("%B"),O=c("%Y");function w(A){return(s(A)<A?h:l(A)<A?p:o(A)<A?g:a(A)<A?y:r(A)<A?i(A)<A?_:b:n(A)<A?S:O)(A)}return u.invert=function(A){return new Date(f(A))},u.domain=function(A){return arguments.length?d(Array.from(A,SG)):d().map(xG)},u.ticks=function(A){var T=d();return e(T[0],T[T.length-1],A??10)},u.tickFormat=function(A,T){return T==null?w:c(T)},u.nice=function(A){var T=d();return(!A||typeof A.range!="function")&&(A=t(T[0],T[T.length-1],A??10)),A?d(J2(T,A)):u},u.copy=function(){return ss(u,W0(e,t,n,r,i,a,o,l,s,c))},u}function wG(){return zn.apply(W0(yq,bq,ti,F0,Eu,us,L0,D0,da,ES).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function OG(){return zn.apply(W0(pq,vq,ni,N0,ju,ku,$0,I0,da,PS).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Du(){var e=0,t=1,n,r,i,a,o=Qt,l=!1,s;function c(f){return f==null||isNaN(f=+f)?s:o(i===0?.5:(f=(a(f)-n)*i,l?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(l=!!f,c):l},c.interpolator=function(f){return arguments.length?(o=f,c):o};function u(f){return function(d){var h,p;return arguments.length?([h,p]=d,o=f(h,p),c):[o(0),o(1)]}}return c.range=u(Tr),c.rangeRound=u(r0),c.unknown=function(f){return arguments.length?(s=f,c):s},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Di(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function jS(){var e=Mi(Du()(Qt));return e.copy=function(){return Di(e,jS())},Xr.apply(e,arguments)}function MS(){var e=C0(Du()).domain([1,10]);return e.copy=function(){return Di(e,MS()).base(e.base())},Xr.apply(e,arguments)}function DS(){var e=A0(Du());return e.copy=function(){return Di(e,DS()).constant(e.constant())},Xr.apply(e,arguments)}function R0(){var e=T0(Du());return e.copy=function(){return Di(e,R0()).exponent(e.exponent())},Xr.apply(e,arguments)}function CG(){return R0.apply(null,arguments).exponent(.5)}function IS(){var e=[],t=Qt;function n(r){if(r!=null&&!isNaN(r=+r))return t((os(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(ji),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,a)=>IU(e,a/r))},n.copy=function(){return IS(t).domain(e)},Xr.apply(n,arguments)}function Iu(){var e=0,t=.5,n=1,r=1,i,a,o,l,s,c=Qt,u,f=!1,d;function h(g){return isNaN(g=+g)?d:(g=.5+((g=+u(g))-a)*(r*g<r*a?l:s),c(f?Math.max(0,Math.min(1,g)):g))}h.domain=function(g){return arguments.length?([e,t,n]=g,i=u(e=+e),a=u(t=+t),o=u(n=+n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h):[e,t,n]},h.clamp=function(g){return arguments.length?(f=!!g,h):f},h.interpolator=function(g){return arguments.length?(c=g,h):c};function p(g){return function(y){var _,b,S;return arguments.length?([_,b,S]=y,c=qR(g,[_,b,S]),h):[c(0),c(.5),c(1)]}}return h.range=p(Tr),h.rangeRound=p(r0),h.unknown=function(g){return arguments.length?(d=g,h):d},function(g){return u=g,i=g(e),a=g(t),o=g(n),l=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),r=a<i?-1:1,h}}function LS(){var e=Mi(Iu()(Qt));return e.copy=function(){return Di(e,LS())},Xr.apply(e,arguments)}function $S(){var e=C0(Iu()).domain([.1,1,10]);return e.copy=function(){return Di(e,$S()).base(e.base())},Xr.apply(e,arguments)}function FS(){var e=A0(Iu());return e.copy=function(){return Di(e,FS()).constant(e.constant())},Xr.apply(e,arguments)}function V0(){var e=T0(Iu());return e.copy=function(){return Di(e,V0()).exponent(e.exponent())},Xr.apply(e,arguments)}function AG(){return V0.apply(null,arguments).exponent(.5)}const TG=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:b0,scaleDiverging:LS,scaleDivergingLog:$S,scaleDivergingPow:V0,scaleDivergingSqrt:AG,scaleDivergingSymlog:FS,scaleIdentity:X2,scaleImplicit:v0,scaleLinear:O0,scaleLog:nS,scaleOrdinal:y0,scalePoint:FU,scalePow:k0,scaleQuantile:cS,scaleQuantize:uS,scaleRadial:sS,scaleSequential:jS,scaleSequentialLog:MS,scaleSequentialPow:R0,scaleSequentialQuantile:IS,scaleSequentialSqrt:CG,scaleSequentialSymlog:DS,scaleSqrt:oq,scaleSymlog:aS,scaleThreshold:fS,scaleTime:wG,scaleUtc:OG,tickFormat:Z2},Symbol.toStringTag,{value:"Module"}));var kG=["linear","time","log","sqrt"];function EG(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"scale".concat(t(e))}function H0(e){return typeof e=="function"?Oe(e.copy)&&Oe(e.domain)&&Oe(e.range):typeof e=="string"?Kr(kG,e):!1}function NS(e,t){if(e.scale){if(e.scale.x||e.scale.y)return!!e.scale[t]}else return!1;return!0}function PG(e,t){if(NS(e,t)){var n=e.scale[t]||e.scale;return typeof n=="string"?n:BS(n)}}function jG(e,t){var n;if(e.domain&&e.domain[t]?n=e.domain[t]:e.domain&&Array.isArray(e.domain)&&(n=e.domain),!!n)return Fn(n)?"time":"linear"}function zS(e,t){if(!e.data)return"linear";var n=_u(e[t]),r=e.data.map(function(i){var a=Qe(n(i))?n(i)[t]:n(i);return a!==void 0?a:i[t]});return Fn(r)?"time":"linear"}function ms(e){if(H0(e)){var t=EG(e);return TG[t]()}return O0()}function Wn(e,t){var n=gs(e,t);if(n)return typeof n=="string"?ms(n):n;var r=jG(e,t)||zS(e,t);return ms(r)}function gs(e,t){if(NS(e,t)){var n=e.scale[t]||e.scale;if(H0(n))return Oe(n)?n:ms(n)}}function Lu(e,t){return PG(e,t)||zS(e,t)}var MG=[{name:"quantile",method:"quantiles"},{name:"log",method:"base"}];function BS(e){if(typeof e=="string")return e;var t=MG.filter(function(n){return e[n.method]!==void 0})[0];return t?t.name:void 0}function DG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri=function(e){var t=function(r){return function(i,a,o){var l=i[a];if(l==null)return r?new Error("Required `".concat(a,"` was not specified in `").concat(o,"`.")):null;for(var s=arguments.length,c=new Array(s>3?s-3:0),u=3;u<s;u++)c[u-3]=arguments[u];return e.apply(void 0,[i,a,o].concat(c))}},n=Object.assign(t(!1),{isRequired:t(!0)});return n},IG=function(){return null},LG=function(){},WS=function(e){return e===void 0?LG:e===null?IG:e.constructor},RS=function(e){return e===void 0?"undefined":e===null?"null":Object.prototype.toString.call(e).slice(8,-1)};function VS(e,t){return function(n,r,i){var a=n[r];return a!=null&&So('"'.concat(r,'" property of "').concat(i,'" has been deprecated ').concat(t)),m.checkPropTypes(DG({},r,e),n,r,i),null}}function ft(e){return ri(function(t,n,r){for(var i=arguments.length,a=new Array(i>3?i-3:0),o=3;o<i;o++)a[o-3]=arguments[o];return e.reduce(function(l,s){return l||s.apply(void 0,[t,n,r].concat(a))},null)})}var _e=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r<0?new Error("`".concat(t,"` in `").concat(n,"` must be a non-negative number.")):null}),ct=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r%1!==0?new Error("`".concat(t,"` in `").concat(n,"` must be an integer.")):null}),HS=ri(function(e,t,n){var r=e[t];return typeof r!="number"||r<=0?new Error("`".concat(t,"` in `").concat(n,"` must be a number greater than zero.")):null}),Ii=ri(function(e,t,n){var r=e[t];return!Array.isArray(r)||r.length!==2||r[1]===r[0]?new Error("`".concat(t,"` in `").concat(n,"` must be an array of two unique numeric values.")):null}),Er=ri(function(e,t,n){var r=e[t];return H0(r)?null:new Error("`".concat(t,"` in `").concat(n,"` must be a d3 scale."))}),$u=ri(function(e,t,n){var r=e[t];if(!Array.isArray(r))return new Error("`".concat(t,"` in `").concat(n,"` must be an array."));if(r.length<2)return null;var i=WS(r[0]),a=dH(r,function(s){return i!==WS(s)});if(a){var o=RS(r[0]),l=RS(a);return new Error("Expected `".concat(t,"` in `").concat(n,"` to be a ")+"homogeneous array, but found types `".concat(o,"` and ")+"`".concat(l,"`."))}return null});ri(function(e,t){return e[t]&&Array.isArray(e[t])&&e[t].length!==e.data.length?new Error("Length of data and ".concat(t," arrays must match.")):null});var $G=ri(function(e,t,n){return e[t]&&!d2(e[t])?new Error("`".concat(t,"` in `").concat(n,"` must be a regular expression.")):null});function FG(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function US(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function NG(e,t,n){return t&&US(e.prototype,t),n&&US(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zG(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U0(e,t)}function U0(e,t){return U0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U0(e,t)}function BG(e){var t=VG();return function(){var r=Fu(e),i;if(t){var a=Fu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return WG(this,i)}}function WG(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RG(e)}function RG(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Fu(e){return Fu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fu(e)}var q0=function(e){zG(n,e);var t=BG(n);function n(r){var i;return FG(this,n),i=t.call(this,r),i.map=void 0,i.index=void 0,i.portalRegister=function(){return++i.index},i.portalUpdate=function(a,o){i.map[a]=o,i.forceUpdate()},i.portalDeregister=function(a){delete i.map[a],i.forceUpdate()},i.map={},i.index=1,i}return NG(n,[{key:"getChildren",value:function(){var i=this;return Ze(this.map).map(function(a){var o=i.map[a];return o&&x.cloneElement(o,{key:a})})}},{key:"render",value:function(){return x.createElement("svg",this.props,this.getChildren())}}]),n}(x.Component);q0.displayName="Portal",q0.propTypes={className:m.string,height:_e,style:m.object,viewBox:m.string,width:_e};var G0=x.createContext({});G0.displayName="PortalContext";function qS(e,t){return GG(e)||qG(e,t)||UG(e,t)||HG()}function HG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
136
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UG(e,t){if(e){if(typeof e=="string")return GS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GS(e,t)}}function GS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qG(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function GG(e){if(Array.isArray(e))return e}function YS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function YG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YS(Object(n),!0).forEach(function(r){KG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KS={startsWith:["data-","aria-"],exactMatch:[]},ZG=function(e){var t=!1;return KS.startsWith.forEach(function(n){var r=new RegExp("\\b(".concat(n,")(\\w|-)+"),"g");r.test(e)&&(t=!0)}),t},XG=function(e){return KS.exactMatch.includes(e)},JG=function(e){return!!(ZG(e)||XG(e))},QG=function(e,t){return typeof e=="function"?e(t):e},ur=function(e){var t=YG({},e);return Object.fromEntries(Object.entries(t).filter(function(n){var r=qS(n,1),i=r[0];return JG(i)}).map(function(n){var r=qS(n,2),i=r[0],a=r[1];return[i,QG(a,e)]}))},Nu=function(e,t){return F.cloneElement(e,ur(t))};function zu(){return zu=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},zu.apply(this,arguments)}function ZS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZS(Object(n),!0).forEach(function(r){eY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nY(e,t,n){return t&&XS(e.prototype,t),n&&XS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y0(e,t)}function Y0(e,t){return Y0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y0(e,t)}function iY(e){var t=lY();return function(){var r=Bu(e),i;if(t){var a=Bu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return aY(this,i)}}function aY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oY(e)}function oY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Bu(e){return Bu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bu(e)}var Ve=function(e){rY(n,e);var t=iY(n);function n(r){var i;return tY(this,n),i=t.call(this,r),i.containerId=void 0,i.portalRef=void 0,i.containerRef=void 0,i.shouldHandleWheel=void 0,i.savePortalRef=function(a){return i.portalRef=a,a},i.portalUpdate=function(a,o){return i.portalRef.portalUpdate(a,o)},i.portalRegister=function(){return i.portalRef.portalRegister()},i.portalDeregister=function(a){return i.portalRef.portalDeregister(a)},i.saveContainerRef=function(a){return Oe(i.props.containerRef)&&i.props.containerRef(a),i.containerRef=a,a},i.handleWheel=function(a){return a.preventDefault()},i.containerId=!uo(r)||r.containerId===void 0?pu("victory-container-"):r.containerId,i.shouldHandleWheel=!!(r&&r.events&&r.events.onWheel),i}return nY(n,[{key:"componentDidMount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.addEventListener("wheel",this.handleWheel)}},{key:"componentWillUnmount",value:function(){this.shouldHandleWheel&&this.containerRef&&this.containerRef.removeEventListener("wheel",this.handleWheel)}},{key:"getIdForElement",value:function(i){return"".concat(this.containerId,"-").concat(i)}},{key:"getChildren",value:function(i){return i.children}},{key:"getOUIAProps",value:function(i){var a=i.ouiaId,o=i.ouiaSafe,l=i.ouiaType;return Eo(Eo(Eo({},a&&{"data-ouia-component-id":a}),l&&{"data-ouia-component-type":l}),o!==void 0&&{"data-ouia-safe":o})}},{key:"renderContainer",value:function(i,a,o){var l=i.title,s=i.desc,c=i.portalComponent,u=i.className,f=i.width,d=i.height,h=i.portalZIndex,p=i.responsive,g=this.getChildren(i),y=p?{width:"100%",height:"100%"}:{width:f,height:d},_=B({pointerEvents:"none",touchAction:"none",position:"relative"},y),b=B({zIndex:h,position:"absolute",top:0,left:0},y),S=B({pointerEvents:"all"},y),O=B({overflow:"visible"},y),w={width:f,height:d,viewBox:a.viewBox,preserveAspectRatio:a.preserveAspectRatio,style:O};return x.createElement(G0.Provider,{value:{portalUpdate:this.portalUpdate,portalRegister:this.portalRegister,portalDeregister:this.portalDeregister}},x.createElement("div",zu({style:ae({},o,_),className:u,ref:this.saveContainerRef},this.getOUIAProps(i)),x.createElement("svg",zu({},a,{style:S}),l?x.createElement("title",{id:this.getIdForElement("title")},l):null,s?x.createElement("desc",{id:this.getIdForElement("desc")},s):null,g),x.createElement("div",{style:b},x.cloneElement(c,Eo(Eo({},w),{},{ref:this.savePortalRef})))))}},{key:"render",value:function(){var i=this.props,a=i.width,o=i.height,l=i.responsive,s=i.events,c=i.title,u=i.desc,f=i.tabIndex,d=i.preserveAspectRatio,h=i.role,p=l?this.props.style:wo(this.props.style,["height","width"]),g=ur(this.props),y=B(Eo({width:a,height:o,tabIndex:f,role:h,"aria-labelledby":[c&&this.getIdForElement("title"),this.props["aria-labelledby"]].filter(Boolean).join(" ")||void 0,"aria-describedby":[u&&this.getIdForElement("desc"),this.props["aria-describedby"]].filter(Boolean).join(" ")||void 0,viewBox:l?"0 0 ".concat(a," ").concat(o):void 0,preserveAspectRatio:l?d:void 0},g),s);return this.renderContainer(this.props,y,p)}}]),n}(x.Component);Ve.displayName="VictoryContainer",Ve.role="container",Ve.propTypes={"aria-describedby":m.string,"aria-labelledby":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),className:m.string,containerId:m.oneOfType([m.number,m.string]),containerRef:m.func,desc:m.string,events:m.object,height:_e,name:m.string,origin:m.shape({x:_e,y:_e}),ouiaId:m.oneOfType([m.number,m.string]),ouiaSafe:m.bool,ouiaType:m.string,polar:m.bool,portalComponent:m.element,portalZIndex:ct,preserveAspectRatio:m.string,responsive:m.bool,role:m.string,style:m.object,tabIndex:m.number,theme:m.object,title:m.string,width:_e},Ve.defaultProps={className:"VictoryContainer",portalComponent:x.createElement(q0,null),portalZIndex:99,responsive:!0,role:"img"},Ve.contextType=hu;function sY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JS(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cY(e,t,n){return t&&JS(e.prototype,t),n&&JS(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uY(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K0(e,t)}function K0(e,t){return K0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K0(e,t)}function fY(e){var t=mY();return function(){var r=Wu(e),i;if(t){var a=Wu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return dY(this,i)}}function dY(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hY(e)}function hY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mY(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wu(e){return Wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wu(e)}var ii=function(e){uY(n,e);var t=fY(n);function n(){var r;sY(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=t.call.apply(t,[this].concat(a)),r.checkedContext=void 0,r.renderInPlace=void 0,r.element=void 0,r.portalKey=void 0,r}return cY(n,[{key:"componentDidMount",value:function(){if(!this.checkedContext){if(typeof this.context.portalUpdate!="function"){var i="`renderInPortal` is not supported outside of `VictoryContainer`. Component will be rendered in place";So(i),this.renderInPlace=!0}this.checkedContext=!0}this.forceUpdate()}},{key:"componentDidUpdate",value:function(){this.renderInPlace||(this.portalKey=this.portalKey||this.context.portalRegister(),this.context.portalUpdate(this.portalKey,this.element))}},{key:"componentWillUnmount",value:function(){this.context&&this.context.portalDeregister&&this.context.portalDeregister(this.portalKey)}},{key:"renderPortal",value:function(i){return this.renderInPlace?i:(this.element=i,null)}},{key:"render",value:function(){var i=Array.isArray(this.props.children)?this.props.children[0]:this.props.children,a=this.props.groupComponent,o=i&&i.props||{},l=o.groupComponent?{groupComponent:a,standalone:!1}:{},s=ae(l,o,wo(this.props,["children","groupComponent"])),c=i&&x.cloneElement(i,s);return this.renderPortal(c)}}]),n}(x.Component);ii.displayName="VictoryPortal",ii.role="portal",ii.propTypes={children:m.node,groupComponent:m.element},ii.defaultProps={groupComponent:x.createElement("g",null)},ii.contextType=G0;var gY=["desc"];function Ru(){return Ru=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},Ru.apply(this,arguments)}function pY(e,t){if(e==null)return{};var n=vY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vY(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var ga=function(e){var t=e.desc,n=pY(e,gY);return t?x.createElement("rect",Ru({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("rect",Ru({vectorEffect:"non-scaling-stroke"},n))},yY=["children","title","desc"];function bY(e,t){if(e==null)return{};var n=_Y(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Y(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var QS=function(e){var t=e.children,n=e.title,r=e.desc,i=bY(e,yY);return x.createElement("text",i,n&&x.createElement("title",null,n),r&&x.createElement("desc",null,r),t)};QS.propTypes={children:m.node,desc:m.string,title:m.string};var xY=function(e){return x.createElement("tspan",e)};function SY(e,t){t=t||{};var n=t._y>=0?1:-1,r=e.style&&e.style.labels||{};return t.verticalAnchor||r.verticalAnchor?t.verticalAnchor||r.verticalAnchor:e.horizontal?"middle":n>=0?"end":"start"}function wY(e,t){t=t||{};var n=e.style,r=e.horizontal,i=t._y>=0?1:-1,a=n&&n.labels||{};return t.verticalAnchor||a.verticalAnchor?t.verticalAnchor||a.verticalAnchor:r?i>=0?"start":"end":"middle"}function OY(e,t){t=t||{};var n=e.style&&e.style.labels||{};return t.angle===void 0?n.angle:t.angle}function CY(e,t){t=t||{};var n=e.horizontal,r=e.style,i=r.labels||{},a=fe(i.padding,e)||0,o=t._y<0?-1:1;return{x:n?o*a:0,y:n?0:-1*o*a}}function AY(e,t){if(e.polar)return{};var n=CY(e,t);return{dx:n.x,dy:n.y}}function TY(e,t){var n=e.polar,r=Oo(e,t),i=r.x,a=r.y;if(!n)return{x:i,y:a};var o=kY(e,t);return{x:i+o.x,y:a+o.y}}function kY(e,t){var n=e.style,r=ps(e,t),i=n.labels||{},a=fe(i.padding,e)||0,o=st(r);return{x:a*Math.cos(o),y:-a*Math.sin(o)}}function Z0(e){var t=e.labelComponent,n=e.labelPlacement,r=e.polar,i=r?"perpendicular":"vertical";return n||t.props&&t.props.labelPlacement||i}function EY(e){return e<45||e>315?"right":e>=45&&e<=135?"top":e>135&&e<225?"left":"bottom"}function Vu(e,t,n){return t=t||{},t.label!==void 0?t.label:Array.isArray(e.labels)?e.labels[n]:e.labels}function X0(e,t){var n=Z0(e);return n==="perpendicular"||n==="vertical"&&(t===90||t===270)?"middle":t<=90||t>270?"start":"end"}function ew(e,t){var n=Z0(e),r=EY(t);return n==="parallel"||r==="left"||r==="right"?"middle":r==="top"?"end":"start"}function J0(e,t){var n=e.labelPlacement,r=e.datum;if(!n||n==="vertical")return 0;var i=t!==void 0?t%360:ps(e,r),a=i>90&&i<180||i>270?1:-1,o=0;i===0||i===180?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i);var l=n==="perpendicular"?0:90;return o+a*l}function ps(e,t){var n=c0(t),r=n.x;return Zr(e.scale.x(r))%360}function Q0(e,t){var n=e.scale,r=e.data,i=e.style,a=e.horizontal,o=e.polar,l=e.width,s=e.height,c=e.theme,u=e.labelComponent,f=e.disableInlineStyles,d=r[t],h=ps(e,d),p=o?X0(e,h):wY(e,d),g=o?ew(e,h):SY(e,d),y=OY(e,d),_=Vu(e,d,t),b=Z0(e),S=TY(e,d),O=S.x,w=S.y,A=AY(e,d),T=A.dx,k=A.dy,j={angle:y,data:r,datum:d,disableInlineStyles:f,horizontal:a,index:t,polar:o,scale:n,labelPlacement:b,text:_,textAnchor:p,verticalAnchor:g,x:O,y:w,dx:T,dy:k,width:l,height:s,style:i.labels};if(!yu(u))return j;var N=c&&c.tooltip||{};return ae({},j,wo(N,["style"]))}var eg=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(function(l,s){return[l,eg(s)].join(" ")},eg(e)).trim();if(e==null||typeof e=="string")return e;var i=[];for(var a in e)if(e.hasOwnProperty(a)){var o=e[a];i.push("".concat(a,"(").concat(o,")"))}return i.join(" ").trim()};function tg(e){var t={grayscale:["#cccccc","#969696","#636363","#252525"],qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"]};return e?t[e]:t.grayscale}function PY(e,t){return DY(e)||MY(e,t)||tw(e,t)||jY()}function jY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
137
137
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function DY(e){if(Array.isArray(e))return e}function IY(e){return FY(e)||$Y(e)||tw(e)||LY()}function LY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
138
138
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tw(e,t){if(e){if(typeof e=="string")return ng(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ng(e,t)}}function $Y(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function FY(e){if(Array.isArray(e))return ng(e)}function ng(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nw={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},rw={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},iw={em:1,ex:.5},aw={heightOverlapCoef:1.05,lineCapitalCoef:1.15},ow={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},NY=function(e){return e*Math.PI/180},zY=function(e){var t=e.split(",").map(function(r){return r.replace(/'|"/g,"")}),n=t.find(function(r){return nw[r]})||"Helvetica";return nw[n]},rg=function(e){return Array.isArray(e)?e:e.toString().split(/\r\n|\r|\n/g)},Hu=function(e,t,n){var r=NY(n);return Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t)},ig=function(e,t){var n,r=(n=e.match(/[a-zA-Z%]+/))===null||n===void 0?void 0:n[0],i=Number(e.match(/[0-9.,]+/)),a;return r?rw.hasOwnProperty(r)?a=i*rw[r]:iw.hasOwnProperty(r)?a=(t?i*t:i*ow.fontSize)*iw[r]:a=i:a=i||0,a},ag=function(e,t){var n=Array.isArray(e)?e[t]:e,r=ae({},n,ow);return B({},r,{fontFamily:r.fontFamily,letterSpacing:typeof r.letterSpacing=="number"?r.letterSpacing:ig(String(r.letterSpacing),r.fontSize),fontSize:typeof r.fontSize=="number"?r.fontSize:ig(String(r.fontSize))})},BY=function(e,t){if(e===void 0||e===""||e===null)return 0;var n=rg(e).map(function(r,i){var a=r.toString().length,o=ag(t,i),l=o.fontSize,s=o.letterSpacing,c=o.fontFamily,u=zY(c),f=r.toString().split("").map(function(d){return d.charCodeAt(0)<u.widths.length?u.widths[d.charCodeAt(0)]:u.avg}).reduce(function(d,h){return h+d},0)*l;return f+s*Math.max(a-1,0)});return Math.max.apply(Math,IY(n))},WY=function(e,t){return e===void 0||e===""||e===null?0:rg(e).reduce(function(n,r,i){var a=ag(t,i),o=r.toString().match(/[(A-Z)(0-9)]/),l=o?a.fontSize*aw.lineCapitalCoef:a.fontSize;return n+a.lineHeight*l},0)},RY=function(e,t){var n=Array.isArray(t)?t[0]&&t[0].angle:t&&t.angle,r=WY(e,t),i=BY(e,t),a=n?Hu(i,r,n):i,o=n?Hu(r,i,n):r;return{width:a,height:o*aw.heightOverlapCoef}},VY=a5(function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("xlink","http://www.w3.org/1999/xlink"),e.setAttribute("width","300"),e.setAttribute("height","300"),e.setAttribute("viewBox","0 0 300 300");var t=document.createElementNS("http://www.w3.org/2000/svg","text");return e.appendChild(t),e.style.position="fixed",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e),t}),lw=function(e){return e?"".concat(e.angle,":").concat(e.fontFamily,":").concat(e.fontSize,":").concat(e.letterSpacing,":").concat(e.lineHeight):"null"},HY=a5(function(e,t){var n=VY(),r=rg(e),i=0;for(var a of r.entries()){var o=PY(a,2),l=o[0],s=o[1],c=document.createElementNS("http://www.w3.org/2000/svg","tspan"),u=ag(t,l);c.style.fontFamily=u.fontFamily,c.style.fontSize="".concat(u.fontSize,"px"),c.style.lineHeight=u.lineHeight,c.style.fontFamily=u.fontFamily,c.style.letterSpacing=u.letterSpacing,c.textContent=s,c.setAttribute("x","0"),c.setAttribute("y","".concat(i)),n.appendChild(c),i+=u.lineHeight*c.getBoundingClientRect().height}var f=n.getBoundingClientRect(),d=f.width;return n.innerHTML="",{width:t!=null&&t.angle?Hu(d,i,t==null?void 0:t.angle):d,height:t!=null&&t.angle?Hu(i,d,t==null?void 0:t.angle):i}},function(e,t){var n=Array.isArray(e)?e.join():e,r=Array.isArray(t)?t.map(lw).join():lw(t);return"".concat(n,"::").concat(r)}),UY={impl:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";return!r||n?RY(e,t):HY(e,t)}},pa=function(e,t){return UY.impl(e,t)};function sw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sw(Object(n),!0).forEach(function(r){qY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vs(e){return ZY(e)||KY(e)||YY(e)||GY()}function GY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
139
139
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YY(e,t){if(e){if(typeof e=="string")return og(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return og(e,t)}}function KY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZY(e){if(Array.isArray(e))return og(e)}function og(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var va={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},uw=function(e,t){if(!e.datum)return 0;var n=Oo(e,e.datum);return n[t]},fw=function(e){var t=e&&e.fontSize;if(typeof t=="number")return t;if(t==null)return va.fontSize;if(typeof t=="string"){var n=Number(t.replace("px",""));return isNaN(n)?(So("fontSize should be expressed as a number of pixels"),va.fontSize):n}return va.fontSize},en=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return Array.isArray(e)?e[t]||e[0]:e},dw=function(e){var t=e.backgroundStyle,n=e.backgroundPadding;return Array.isArray(t)&&!rt(t)||Array.isArray(n)&&!rt(n)},XY=function(e,t){if(t.disableInlineStyles){var n=Xe(e,t);return{fontSize:fw(n)}}var r=function(i){i=i?ae({},i,va):va;var a=Xe(i,t);return B({},a,{fontSize:fw(a)})};return Array.isArray(e)&&!rt(e)?e.map(function(i){return r(i)}):r(e)},JY=function(e,t){if(e)return Array.isArray(e)&&!rt(e)?e.map(function(n){return Xe(n,t)}):Xe(e,t)},QY=function(e){if(e.backgroundPadding&&Array.isArray(e.backgroundPadding))return e.backgroundPadding.map(function(n){var r=fe(n,e);return lt({padding:r})});var t=fe(e.backgroundPadding,e);return lt({padding:t})},eK=function(e){var t=fe(e.lineHeight,e);return Array.isArray(t)&&rt(t)?[1]:t},tK=function(e,t){if(e!=null){if(Array.isArray(e))return e.map(function(r){return fe(r,t)});var n=fe(e,t);if(n!=null)return Array.isArray(n)?n:"".concat(n).split(`
140
- `)}},nK=function(e,t,n){var r=e.dy?fe(e.dy,e):0,i=e.inline?1:e.text.length,a=fe(e.capHeight,e),o=t?fe(t,e):"middle",l=vs(Array(i).keys()).map(function(u){return en(e.style,u).fontSize}),s=vs(Array(i).keys()).map(function(u){return en(n,u)});if(o==="start")return r+(a/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(a/2-s[0]/2)*l[0]:r+a/2*l[0];if(i===1)return o==="end"?r+(a/2+(.5-i)*s[0])*l[0]:r+(a/2+(.5-i/2)*s[0])*l[0];var c=vs(Array(i).keys()).reduce(function(u,f){return u+(a/2+(.5-i)*s[f])*l[f]/i},0);return o==="end"?r+c:r+c/2+a/2*s[i-1]*l[i-1]},rK=function(e,t,n){var r=e.polar,i=en(e.style),a=r?J0(e):0,o=i.angle===void 0?fe(e.angle,e):i.angle,l=o===void 0?a:o,s=e.transform||i.transform,c=s&&fe(s,e),u=l&&{rotate:[l,t,n]};return c||l?eg(c,u):void 0},hw=function(e,t){var n=e.direction,r=e.textAnchor,i=e.x,a=e.dx;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(a||0)}},mw=function(e,t){var n=e.verticalAnchor,r=e.y,i=e.originalDy,a=i===void 0?0:i,o=r+a;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},iK=function(e,t){var n=e.dx,r=n===void 0?0:n,i=e.transform,a=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,c=e.capHeight,u=t.map(function(y){return y.textSize}),f=l?Math.max.apply(Math,vs(u.map(function(y){return y.height}))):u.reduce(function(y,_,b){var S=b?0:c/2;return y+_.height*(t[b].lineHeight-S)},0),d=l?u.reduce(function(y,_,b){var S=b?r:0;return y+_.width+S},0):Math.max.apply(Math,vs(u.map(function(y){return y.width}))),h=hw(e,d),p=mw(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:i,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return x.cloneElement(a,ae({},a.props,g))},aK=function(e,t,n){var r=e.textAnchor,i=t.map(function(l){return l.widthWithPadding}),a=i.reduce(function(l,s){return l+s},0),o=-a/2;switch(r){case"start":return i.reduce(function(l,s,c){return l=c<n?l+s:l,l},0);case"end":return i.reduce(function(l,s,c){return l=c>n?l-s:l,l},0);default:return i.reduce(function(l,s,c){var u=c<n?s:0;return l=c===n?l+s/2:l+u,l},o)}},oK=function(e,t){var n=e.dy,r=e.dx,i=e.transform,a=e.backgroundStyle,o=e.backgroundPadding,l=e.backgroundComponent,s=e.inline,c=e.y,u=t.map(function(f,d){var h=en(t,d-1),p=f.textSize,g=f.fontSize*f.lineHeight,y=Math.ceil(g),_=en(o,d),b=en(o,d-1),S=s&&r||0,O=d&&!s?h.fontSize*h.lineHeight+b.top+b.bottom:n-g*.5-(f.fontSize-f.capHeight);return{textHeight:y,labelSize:p,heightWithPadding:y+_.top+_.bottom,widthWithPadding:p.width+_.left+_.right+S,y:c,fontSize:f.fontSize,dy:O}});return u.map(function(f,d){var h=hw(e,f.labelSize.width),p=u.slice(0,d+1).reduce(function(O,w){return O+w.dy},c),g=en(o,d),y=f.heightWithPadding,_=s?aK(e,u,d)+h-g.left:h,b=s?mw(e,y)-g.top:p,S={key:"tspan-background-".concat(d),height:y,style:en(a,d),width:f.widthWithPadding,transform:i,x:_-g.left,y:b};return x.cloneElement(l,ae({},l.props,S))})},lK=function(e,t){return dw(e)?oK(e,t):iK(e,t)},sK=function(e,t,n){var r=en(e,t),i=en(e,t-1),a=i.fontSize*i.lineHeight,o=r.fontSize*r.lineHeight,l=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,c=a-i.fontSize/2+r.fontSize/2-a/2+o/2-s/2+l/2;return dw(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c},cK=function(e,t,n){var r=t.inline,i=en(e,n);return n&&!r?sK(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},uK=function(e){var t=tK(e.text,e),n=XY(e.style,B({},e,{text:t})),r=JY(e.backgroundStyle,B({},e,{text:t,style:n})),i=QY(B({},e,{text:t,style:n,backgroundStyle:r})),a=fe(e.id,e);return B({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:a})},fK=function(e){var t=fe(e.ariaLabel,e),n=en(e.style),r=eK(e),i=e.direction?fe(e.direction,e):"inherit",a=e.textAnchor?fe(e.textAnchor,e):n.textAnchor||"start",o=e.verticalAnchor?fe(e.verticalAnchor,e):n.verticalAnchor||"middle",l=e.dx?fe(e.dx,e):0,s=nK(e,o,r),c=e.x!==void 0?e.x:uw(e,"x"),u=e.y!==void 0?e.y:uw(e,"y"),f=rK(e,c,u);return B({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:a,verticalAnchor:o,dx:l,dy:s,originalDy:e.dy,transform:f,x:c,y:u})},dK=function(e,t){var n=e.ariaLabel,r=e.inline,i=e.className,a=e.title,o=e.events,l=e.direction,s=e.text,c=e.textAnchor,u=e.dx,f=e.dy,d=e.transform,h=e.x,p=e.y,g=e.desc,y=e.id,_=e.tabIndex,b=e.tspanComponent,S=e.textComponent,O=ur(e),w=cw(cw({"aria-label":n,key:"text"},o),{},{direction:l,dx:u,x:h,y:p+f,transform:d,className:i,title:a,desc:fe(g,e),tabIndex:fe(_,e),id:y},O),A=s.map(function(T,k){var P=t[k].style,N={key:"".concat(y,"-key-").concat(k),x:r?void 0:h,dx:r?u+t[k].backgroundPadding.left:u,dy:cK(t,e,k),textAnchor:P.textAnchor||c,style:P,children:T};return x.cloneElement(b,N)});return x.cloneElement(S,w,A)},wt=function(e){if(e=uK(e),e.text===null||e.text===void 0)return null;var t=fK(e),n=t.text,r=t.style,i=t.capHeight,a=t.backgroundPadding,o=t.lineHeight,l=n.map(function(d,h){var p=en(r,h),g=ig("".concat(i,"em"),p.fontSize),y=en(o,h);return{style:p,fontSize:p.fontSize||va.fontSize,capHeight:g,text:d,textSize:pa(d,p),lineHeight:y,backgroundPadding:en(a,h)}}),s=dK(t,l);if(e.backgroundStyle){var c=lK(t,l),u=[c,s],f=x.cloneElement(e.groupComponent,{},u);return e.renderInPortal?x.createElement(ii,null,f):f}return e.renderInPortal?x.createElement(ii,null,s):s};wt.displayName="VictoryLabel",wt.role="label",wt.defaultStyles=va,wt.propTypes={active:m.bool,angle:m.oneOfType([m.string,m.number,m.func]),ariaLabel:m.oneOfType([m.string,m.func]),backgroundComponent:m.element,backgroundPadding:m.oneOfType([m.number,m.object,m.array]),backgroundStyle:m.oneOfType([m.object,m.array]),capHeight:m.oneOfType([m.string,_e,m.func]),className:m.string,data:m.array,datum:m.any,desc:m.oneOfType([m.string,m.func]),direction:m.oneOf(["rtl","ltr","inherit"]),dx:m.oneOfType([m.number,m.string,m.func]),dy:m.oneOfType([m.number,m.string,m.func]),events:m.object,groupComponent:m.element,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),inline:m.bool,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),lineHeight:m.oneOfType([m.string,_e,m.func,m.array]),origin:m.shape({x:_e.isRequired,y:_e.isRequired}),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Er,y:Er}),style:m.oneOfType([m.object,m.array]),tabIndex:m.oneOfType([m.number,m.func]),text:m.oneOfType([m.string,m.number,m.func,m.array]),textAnchor:m.oneOfType([m.oneOf(["start","middle","end","inherit"]),m.func]),textComponent:m.element,title:m.string,transform:m.oneOfType([m.string,m.object,m.func]),tspanComponent:m.element,verticalAnchor:m.oneOfType([m.oneOf(["start","middle","end"]),m.func]),x:m.oneOfType([m.number,m.string]),y:m.oneOfType([m.number,m.string])},wt.defaultProps={backgroundComponent:x.createElement(ga,null),groupComponent:x.createElement("g",null),direction:"inherit",textComponent:x.createElement(QS,null),tspanComponent:x.createElement(xY,null),capHeight:.71,lineHeight:1};function gw(e,t){return(e.key||t).toString()}function pw(e){return e.reduce(function(t,n,r){var i=gw(n,r);return t[i]=n,t},{})}function vw(e,t){var n=!1,r=Ze(e).reduce(function(i,a){return a in t||(n=!0,i[a]=!0),i},{});return n&&r}function hK(e,t){var n=e&&pw(e),r=t&&pw(t);return{entering:n&&vw(r,n),exiting:r&&vw(n,r)}}function lg(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function yw(e,t){var n=!1,r=!1,i=function(l,s){if(!s||l.type!==s.type)return{};var c=hK(lg(l),lg(s))||{},u=c.entering,f=c.exiting;return n=n||!!f,r=r||!!u,{entering:u||!1,exiting:f||!1}},a=function(l,s){return l.map(function(c,u){return c&&c.props&&c.props.children&&s[u]?a(x.Children.toArray(l[u].props.children),x.Children.toArray(s[u].props.children)):i(c,s[u])})},o=a(x.Children.toArray(e),x.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function mK(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:sa;return{data:t.map(function(r,i){return B({},r,n(r,i,t))})}}function gK(e,t,n,r){if(e=B({},e,{onEnd:r}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:n};var i=e.onLoad&&e.onLoad.before?e.onLoad.before:sa;return n=n.map(function(a,o){return B({},a,i(a,o,n))}),{animate:e,data:n,clipWidth:0}}function pK(e,t,n){if(e=B({},e,{onEnd:n}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:t};var r=e.onLoad&&e.onLoad.after?e.onLoad.after:sa;return t=t.map(function(i,a){return B({},i,r(i,a,t))}),{animate:e,data:t}}function vK(e,t,n,r,i){var a=e&&e.onExit;if(e=B({},e,a),r){e.onEnd=i;var o=e.onExit&&e.onExit.before?e.onExit.before:sa;n=n.map(function(l,s){var c=(l.key||s).toString();return r[c]?B({},l,o(l,s,n)):l})}return{animate:e,data:n}}function yK(e,t,n,r,i){if(r){e=B({},e,{onEnd:i});var a=e.onEnter&&e.onEnter.before?e.onEnter.before:sa;n=n.map(function(o,l){var s=(o.key||l).toString();return r[s]?B({},o,a(o,l,n)):o})}return{animate:e,data:n}}function bK(e,t,n,r){var i=e&&e.onEnter;if(e=B({},e,i),n){e.onEnd=r;var a=e.onEnter&&e.onEnter.after?e.onEnter.after:sa;t=t.map(function(o,l){var s=gw(o,l);return n[s]?B({},o,a(o,l,t)):o})}return{animate:e,data:t}}function bw(e,t,n){var r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,a=t&&t.nodesShouldEnter,o=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,s=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=function(p,g,y){return o?pK(y,g,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):gK(y,p,g,function(){n({nodesDoneLoad:!0})})},f=function(p,g,y,_){return vK(_,g,y,p,function(){n({nodesWillExit:!1})})},d=function(p,g,y,_){return a?bK(_,y,p,function(){n({nodesWillEnter:!1})}):yK(_,g,y,p,function(){n({nodesShouldEnter:!0})})},h=function(p,g){var y=p.props.animate;if(!p.type)return{};var _=p.props&&p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;if(_){var b=y[g]&&y[g].duration;return b!==void 0?b:_[g]&&_[g].duration}return{}};return function(g,y){var _=lg(g)||[],b=ae({},e.animate,g.props.animate),S=g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;b.onExit=ae({},b.onExit,S&&S.onExit),b.onEnter=ae({},b.onEnter,S&&S.onEnter),b.onLoad=ae({},b.onLoad,S&&S.onLoad);var O=s[y]||s[0];if(l){if(r){var T=O&&O.exiting,k=c.exit!==void 0?c.exit:h(g,"onExit"),P=T?{duration:k}:{delay:k};return f(T,g,_,B({},b,P))}else if(i){var N=O&&O.entering,M=c.enter!==void 0?c.enter:h(g,"onEnter"),j=c.move!==void 0?c.move:g.props.animate&&g.props.animate.duration,D={duration:a&&N?M:j};return d(N,g,_,B({},b,D))}else if(!t&&b&&b.onExit)return mK(b,_)}else{var w=c.load!==void 0?c.load:h(g,"onLoad"),A={duration:w};return u(g,_,B({},b,A))}return{animate:b,data:_}}}function sg(){return sg=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},sg.apply(this,arguments)}function _K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xK(e,t,n){return t&&_w(e.prototype,t),n&&_w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cg(e,t)}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cg(e,t)}function wK(e){var t=AK();return function(){var r=Uu(e),i;if(t){var a=Uu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return OK(this,i)}}function OK(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CK(e)}function CK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uu(e)}var qu=function(e){SK(n,e);var t=wK(n);function n(r,i){var a;_K(this,n),a=t.call(this,r,i),a.continuous=void 0,a.timer=void 0,a.transitionProps=void 0,a.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=a.props.children,l=o.props.polar;return a.continuous=!l&&o.type&&o.type.continuous===!0,a.timer=a.context.transitionTimer,a}return xK(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(i){var a=this;return fn(this.props,i)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,i),function(){return a.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(i,a){var o=i.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?i:null;return{oldProps:s,nextProps:a}}}else return{};var c=x.Children.toArray(i.children),u=x.Children.toArray(a.children),f=yw(c,u),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?i:null,nextProps:a}}},{key:"getDomainFromChildren",value:function(i,a){var o=function(f){return f.reduce(function(d,h){if(h.type&&Oe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,a);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(x.Children.toArray(h.props.children)));return d},[])},l=x.Children.toArray(i.children)[0],s=l.props||{},c=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[a];if(!s.children&&c)return c;var u=o([l]);return u.length===0?[0,1]:[dn(u),Nn(u)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(i){var a,o=(a=i.animate)===null||a===void 0?void 0:a.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||i:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||i}},{key:"getClipWidth",value:function(i,a){var o=function(){var s=xt(a.props,"x");return s?Math.abs(s[1]-s[0]):i.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var i,a=this,o=this.pickProps(),l=(i=this.props.animate)!==null&&i!==void 0&&i.getTransitions?this.props.animate.getTransitions:bw(o,this.state,function(y){return a.setState(y)}),s=x.Children.toArray(o.children)[0],c=l(s);this.transitionProps=c;var u={x:this.getDomainFromChildren(this.pickDomainProps(o),"x"),y:this.getDomainFromChildren(o,"y")},f=this.getClipWidth(o,s),d=ae({domain:u,clipWidth:f},c,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?rs(d,p):d;return x.createElement(ts,sg({},d.animate,{data:g}),function(y){if(s.props.groupComponent){var _=a.continuous?x.cloneElement(s.props.groupComponent,{clipWidth:y.clipWidth||0}):s.props.groupComponent;return x.cloneElement(s,ae({animate:null,animating:!0,groupComponent:_},y,d))}return x.cloneElement(s,ae({animate:null,animating:!0},y,d))})}}]),n}(x.Component);qu.displayName="VictoryTransition",qu.propTypes={animate:m.oneOfType([m.bool,m.object]),animationWhitelist:m.array,children:m.node},qu.contextType=hu;var xw=function(e){return x.createElement("defs",null,x.createElement("clipPath",{id:e.clipId},e.children))};xw.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),clipId:m.oneOfType([m.number,m.string])};var TK=["desc"];function Gu(){return Gu=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},Gu.apply(this,arguments)}function kK(e,t){if(e==null)return{};var n=EK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sw=function(e){var t=e.desc,n=kK(e,TK);return t?x.createElement("circle",Gu({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("circle",Gu({vectorEffect:"non-scaling-stroke"},n))};function ww(e){return DK(e)||MK(e)||jK(e)||PK()}function PK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jK(e,t){if(e){if(typeof e=="string")return ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ug(e,t)}}function MK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DK(e){if(Array.isArray(e))return ug(e)}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(n),!0).forEach(function(r){IK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ow(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $K(e,t,n){return t&&Aw(e.prototype,t),n&&Aw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fg(e,t)}function fg(e,t){return fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fg(e,t)}function NK(e){var t=WK();return function(){var r=Yu(e),i;if(t){var a=Yu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return zK(this,i)}}function zK(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BK(e)}function BK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yu(e)}var ya=function(e){FK(n,e);var t=NK(n);function n(r){var i;return LK(this,n),i=t.call(this,r),i.clipId=void 0,i.clipId=!uo(r)||r.clipId===void 0?pu("victory-clip-"):r.clipId,i}return $K(n,[{key:"calculateAttributes",value:function(i){var a=i.polar,o=i.origin,l=i.clipWidth,s=l===void 0?0:l,c=i.clipHeight,u=c===void 0?0:c,f=i.translateX,d=f===void 0?0:f,h=i.translateY,p=h===void 0?0:h,g=lt({padding:i.clipPadding}),y=i.radius||kr(i);return{x:(a?o.x:d)-g.left,y:(a?o.y:p)-g.top,width:Math.max((a?y:s)+g.left+g.right,0),height:Math.max((a?y:u)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(i,a){var o=ur(i),l=i.style,s=i.events,c=i.transform,u=i.children,f=i.className,d=i.groupComponent,h=i.tabIndex,p=this.renderClipComponent(i,a),g=B({className:f,style:l,transform:c,key:"clipped-group-".concat(a),clipPath:"url(#".concat(a,")")},s);return x.cloneElement(d,Cw(Cw({},g),{},{tabIndex:h},o),[p].concat(ww(x.Children.toArray(u))))}},{key:"renderGroup",value:function(i){var a=i.style,o=i.events,l=i.transform,s=i.children,c=i.className,u=i.groupComponent,f=i.tabIndex;return x.cloneElement(u,B({className:c,style:a,transform:l,"aria-label":i["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(i,a){var o=i.polar,l=i.origin,s=i.clipWidth,c=s===void 0?0:s,u=i.clipHeight,f=u===void 0?0:u,d=i.translateX,h=d===void 0?0:d,p=i.translateY,g=p===void 0?0:p,y=i.circleComponent,_=i.rectComponent,b=i.clipPathComponent,S=lt({padding:i.clipPadding}),O=S.top,w=S.bottom,A=S.left,T=S.right,k;if(o){var P=i.radius||kr(i),N={r:Math.max(P+A+T,P+O+w,0),cx:l.x-A,cy:l.y-O};k=x.cloneElement(y,N)}else{var M={x:h-A,y:g-O,width:Math.max(c+A+T,0),height:Math.max(f+O+w,0)};k=x.cloneElement(_,M)}return x.cloneElement(b,B({key:"clip-path-".concat(a)},i,{clipId:a}),k)}},{key:"getClipValue",value:function(i,a){var o={x:i.clipWidth,y:i.clipHeight};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(i,a){var o={x:i.translateX,y:i.translateY};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l?Math.min.apply(Math,ww(l)):void 0}},{key:"render",value:function(){var i=this.getClipValue(this.props,"y"),a=this.getClipValue(this.props,"x");if(a===void 0||i===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=ae({},this.props,{clipHeight:i,clipWidth:a,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(x.Component);ya.displayName="VictoryClipContainer",ya.role="container",ya.propTypes={"aria-label":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),circleComponent:m.element,className:m.string,clipHeight:_e,clipId:m.oneOfType([m.number,m.string]),clipPadding:m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number}),clipPathComponent:m.element,clipWidth:_e,events:m.object,groupComponent:m.element,origin:m.shape({x:_e,y:_e}),polar:m.bool,radius:_e,style:m.object,tabIndex:m.number,transform:m.string,translateX:m.number,translateY:m.number},ya.defaultProps={circleComponent:x.createElement(Sw,null),rectComponent:x.createElement(ga,null),clipPathComponent:x.createElement(xw,null),groupComponent:x.createElement("g",null)};var ys=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],tn="#252525",dg="#969696",RK="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",VK="normal",HK=14,Sn={width:450,height:300,padding:50,colorScale:ys},Pt={fontFamily:RK,fontSize:HK,letterSpacing:VK,padding:10,fill:tn,stroke:"transparent"},UK=B({textAnchor:"middle"},Pt),qK="round",GK="round",YK={area:B({style:{data:{fill:tn},labels:Pt}},Sn),axis:B({style:{axis:{fill:"transparent",stroke:tn,strokeWidth:1,strokeLinecap:qK,strokeLinejoin:GK},axisLabel:B({},UK,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Pt}},Sn),bar:B({style:{data:{fill:tn,padding:8,strokeWidth:0},labels:Pt}},Sn),boxplot:B({style:{max:{padding:8,stroke:tn,strokeWidth:1},maxLabels:B({},Pt,{padding:3}),median:{padding:8,stroke:tn,strokeWidth:1},medianLabels:B({},Pt,{padding:3}),min:{padding:8,stroke:tn,strokeWidth:1},minLabels:B({},Pt,{padding:3}),q1:{padding:8,fill:dg},q1Labels:B({},Pt,{padding:3}),q3:{padding:8,fill:dg},q3Labels:B({},Pt,{padding:3})},boxWidth:20},Sn),candlestick:B({style:{data:{stroke:tn,strokeWidth:1},labels:B({},Pt,{padding:5})},candleColors:{positive:"#ffffff",negative:tn}},Sn),chart:Sn,errorbar:B({borderWidth:8,style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),group:B({colorScale:ys},Sn),histogram:B({style:{data:{fill:dg,stroke:tn,strokeWidth:2},labels:Pt}},Sn),legend:{colorScale:ys,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Pt,title:B({},Pt,{padding:5})}},line:B({style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:B({},Pt,{padding:20})},colorScale:ys,width:400,height:400,padding:50},scatter:B({style:{data:{fill:tn,stroke:"transparent",strokeWidth:0},labels:Pt}},Sn),stack:B({colorScale:ys},Sn),tooltip:{style:B({},Pt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:B({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:B({},Pt,{padding:5,pointerEvents:"none"}),flyout:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Sn)},KK="#FFF59D",ZK="#F4511E",XK="#DCE775",JK="#8BC34A",QK="#00796B",eZ="#006064",Ku=[ZK,KK,XK,JK,QK,eZ],Tw="#ECEFF1",kw="#90A4AE",hn="#455A64",Zu="#212121",tZ="'Helvetica Neue', 'Helvetica', sans-serif",nZ="normal",rZ=12,ai=8,mn={width:350,height:350,padding:50},jt={fontFamily:tZ,fontSize:rZ,letterSpacing:nZ,padding:ai,fill:hn,stroke:"transparent",strokeWidth:0},iZ=B({textAnchor:"middle"},jt),aZ="10, 5",hg="round",mg="round",oZ={area:B({style:{data:{fill:Zu},labels:jt}},mn),axis:B({style:{axis:{fill:"transparent",stroke:kw,strokeWidth:2,strokeLinecap:hg,strokeLinejoin:mg},axisLabel:B({},iZ,{padding:ai,stroke:"transparent"}),grid:{fill:"none",stroke:Tw,strokeDasharray:aZ,strokeLinecap:hg,strokeLinejoin:mg,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:kw,strokeWidth:1,strokeLinecap:hg,strokeLinejoin:mg},tickLabels:B({},jt,{fill:hn})}},mn),polarDependentAxis:B({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:B({style:{data:{fill:hn,padding:ai,strokeWidth:0},labels:jt}},mn),boxplot:B({style:{max:{padding:ai,stroke:hn,strokeWidth:1},maxLabels:B({},jt,{padding:3}),median:{padding:ai,stroke:hn,strokeWidth:1},medianLabels:B({},jt,{padding:3}),min:{padding:ai,stroke:hn,strokeWidth:1},minLabels:B({},jt,{padding:3}),q1:{padding:ai,fill:hn},q1Labels:B({},jt,{padding:3}),q3:{padding:ai,fill:hn},q3Labels:B({},jt,{padding:3})},boxWidth:20},mn),candlestick:B({style:{data:{stroke:hn},labels:B({},jt,{padding:5})},candleColors:{positive:"#ffffff",negative:hn}},mn),chart:mn,errorbar:B({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),group:B({colorScale:Ku},mn),histogram:B({style:{data:{fill:hn,stroke:Zu,strokeWidth:2},labels:jt}},mn),legend:{colorScale:Ku,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:jt,title:B({},jt,{padding:5})}},line:B({style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),pie:B({colorScale:Ku,style:{data:{padding:ai,stroke:Tw,strokeWidth:1},labels:B({},jt,{padding:20})}},mn),scatter:B({style:{data:{fill:hn,opacity:1,stroke:"transparent",strokeWidth:0},labels:jt}},mn),stack:B({colorScale:Ku},mn),tooltip:{style:B({},jt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Zu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:B({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:B({},jt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Zu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},mn)},Pr={grayscale:YK,material:oZ},lZ={categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),data:m.oneOfType([m.array,m.object]),dataComponent:m.element,disableInlineStyles:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),samples:_e,sortKey:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),sortOrder:m.oneOf(["ascending","descending"]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),x:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),y:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),y0:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)])},sZ={animate:m.oneOfType([m.bool,m.object]),containerComponent:m.element,domain:m.oneOfType([Ii,m.shape({x:Ii,y:Ii})]),maxDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),minDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),domainPadding:m.oneOfType([m.shape({x:m.oneOfType([m.number,m.arrayOf(m.number)]),y:m.oneOfType([m.number,m.arrayOf(m.number)])}),m.number,m.arrayOf(m.number)]),eventKey:m.oneOfType([m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,name:m.string,origin:m.shape({x:m.number,y:m.number}),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),polar:m.bool,range:m.oneOfType([Ii,m.shape({x:Ii.isRequired,y:Ii.isRequired})]),scale:m.oneOfType([Er,m.shape({x:Er.isRequired,y:Er.isRequired})]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),singleQuadrantDomainPadding:m.oneOfType([m.bool,m.shape({x:m.oneOfType([m.bool]),y:m.oneOfType([m.bool])})]),standalone:m.bool,theme:m.object,width:_e},cZ={active:m.bool,ariaLabel:m.oneOfType([m.string,m.func]),className:m.string,clipPath:m.string,data:m.oneOfType([m.array,m.object]),desc:m.oneOfType([m.string,m.func]),disableInlineStyles:m.bool,events:m.object,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),origin:m.shape({x:m.number,y:m.number}),polar:m.bool,role:m.string,scale:m.oneOfType([Er,m.shape({x:Er,y:Er})]),shapeRendering:m.string,style:m.object,tabIndex:m.oneOfType([m.number,m.func]),transform:m.string},Ot={dataProps:lZ,baseProps:sZ,primitiveProps:cZ},uZ=["desc"];function fZ(e,t){if(e==null)return{};var n=dZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Li=function(e){var t=e.desc,n=fZ(e,uZ);return t?x.createElement("path",n,x.createElement("desc",null,t)):x.createElement("path",n)};function Ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(n),!0).forEach(function(r){hZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mZ=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.startAngle,a=e.endAngle,o=e.closedPath,l=Math.abs(a-i)/2+i,s=t+r*Math.cos(st(i)),c=n-r*Math.sin(st(i)),u=t+r*Math.cos(st(l)),f=n-r*Math.sin(st(l)),d=t+r*Math.cos(st(a)),h=n-r*Math.sin(st(a)),p=l-i<=180?0:1,g=a-l<=180?0:1,y=o?" M ".concat(t,", ").concat(n," L ").concat(s,", ").concat(c):"M ".concat(s,", ").concat(c),_="A ".concat(r,", ").concat(r,", 0, ").concat(p,", 0, ").concat(u,", ").concat(f),b="A ".concat(r,", ").concat(r,", 0, ").concat(g,", 0, ").concat(d,", ").concat(h),S=o?"Z":"";return"".concat(y," ").concat(_," ").concat(b," ").concat(S)},gZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({stroke:"black",fill:"none"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},Ju=function(e){return e=gZ(e),x.cloneElement(e.pathComponent,Xu(Xu({},e.events),{},{"aria-label":e.ariaLabel,d:mZ(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))};Ju.propTypes=Xu(Xu({},Ot.primitiveProps),{},{closedPath:m.bool,cx:m.number,cy:m.number,datum:m.any,endAngle:m.number,pathComponent:m.element,r:m.number,startAngle:m.number}),Ju.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function Pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(n),!0).forEach(function(r){pZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vZ=function(e){var t=fe(e.id,e);return B({},e,{id:t})},gg=function(e){return e=vZ(e),e.polar?x.cloneElement(e.circleComponent,Po(Po({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):x.cloneElement(e.rectComponent,Po(Po({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))};gg.propTypes=Po(Po({},Ot.primitiveProps),{},{circleComponent:m.element,height:m.number,rectComponent:m.element,rx:m.number,ry:m.number,width:m.number,x:m.number,y:m.number}),gg.defaultProps={circleComponent:x.createElement(Sw,null),rectComponent:x.createElement(ga,null),role:"presentation",shapeRendering:"auto"};function jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(n),!0).forEach(function(r){yZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({fill:"none"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},pg=function(e){return e=bZ(e),x.cloneElement(e.rectComponent,Qu(Qu({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath}))};pg.propTypes=Qu(Qu({},Ot.primitiveProps),{},{height:m.number,rectComponent:m.element,width:m.number,x:m.number,y:m.number}),pg.defaultProps={rectComponent:x.createElement(ga,null),role:"presentation",shapeRendering:"auto"};var _Z=["desc"];function ef(){return ef=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},ef.apply(this,arguments)}function xZ(e,t){if(e==null)return{};var n=SZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wZ=function(e){var t=e.desc,n=xZ(e,_Z);return t?x.createElement("line",ef({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("line",ef({vectorEffect:"non-scaling-stroke"},n))};function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({stroke:"black"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},jr=function(e){return e=CZ(e),x.cloneElement(e.lineComponent,tf(tf({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};jr.propTypes=tf(tf({},Ot.primitiveProps),{},{datum:m.any,lineComponent:m.element,x1:m.number,x2:m.number,y1:m.number,y2:m.number}),jr.defaultProps={lineComponent:x.createElement(wZ,null),role:"presentation",shapeRendering:"auto"};var AZ=Math.ceil,TZ=Math.max;function kZ(e,t,n,r){for(var i=-1,a=TZ(AZ((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var EZ=kZ,PZ=EZ,jZ=Uc,vg=v2;function MZ(e){return function(t,n,r){return r&&typeof r!="number"&&jZ(t,n,r)&&(n=r=void 0),t=vg(t),n===void 0?(n=t,t=0):n=vg(n),r=r===void 0?t<n?1:-1:vg(r),PZ(t,n,r,e)}}var DZ=MZ,IZ=DZ,LZ=IZ(),$Z=LZ;const bs=Ae($Z);function FZ(e,t,n){return"M ".concat(e,", ").concat(t,`
140
+ `)}},nK=function(e,t,n){var r=e.dy?fe(e.dy,e):0,i=e.inline?1:e.text.length,a=fe(e.capHeight,e),o=t?fe(t,e):"middle",l=vs(Array(i).keys()).map(function(u){return en(e.style,u).fontSize}),s=vs(Array(i).keys()).map(function(u){return en(n,u)});if(o==="start")return r+(a/2+s[0]/2)*l[0];if(e.inline)return o==="end"?r+(a/2-s[0]/2)*l[0]:r+a/2*l[0];if(i===1)return o==="end"?r+(a/2+(.5-i)*s[0])*l[0]:r+(a/2+(.5-i/2)*s[0])*l[0];var c=vs(Array(i).keys()).reduce(function(u,f){return u+(a/2+(.5-i)*s[f])*l[f]/i},0);return o==="end"?r+c:r+c/2+a/2*s[i-1]*l[i-1]},rK=function(e,t,n){var r=e.polar,i=en(e.style),a=r?J0(e):0,o=i.angle===void 0?fe(e.angle,e):i.angle,l=o===void 0?a:o,s=e.transform||i.transform,c=s&&fe(s,e),u=l&&{rotate:[l,t,n]};return c||l?eg(c,u):void 0},hw=function(e,t){var n=e.direction,r=e.textAnchor,i=e.x,a=e.dx;if(n==="rtl")return i-t;switch(r){case"middle":return Math.round(i-t/2);case"end":return Math.round(i-t);default:return i+(a||0)}},mw=function(e,t){var n=e.verticalAnchor,r=e.y,i=e.originalDy,a=i===void 0?0:i,o=r+a;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-t);default:return Math.floor(o-t/2)}},iK=function(e,t){var n=e.dx,r=n===void 0?0:n,i=e.transform,a=e.backgroundComponent,o=e.backgroundStyle,l=e.inline,s=e.backgroundPadding,c=e.capHeight,u=t.map(function(y){return y.textSize}),f=l?Math.max.apply(Math,vs(u.map(function(y){return y.height}))):u.reduce(function(y,_,b){var S=b?0:c/2;return y+_.height*(t[b].lineHeight-S)},0),d=l?u.reduce(function(y,_,b){var S=b?r:0;return y+_.width+S},0):Math.max.apply(Math,vs(u.map(function(y){return y.width}))),h=hw(e,d),p=mw(e,f),g={key:"background",height:f+s.top+s.bottom,style:o,transform:i,width:d+s.left+s.right,x:l?h-s.left:h+r-s.left,y:p};return x.cloneElement(a,ae({},a.props,g))},aK=function(e,t,n){var r=e.textAnchor,i=t.map(function(l){return l.widthWithPadding}),a=i.reduce(function(l,s){return l+s},0),o=-a/2;switch(r){case"start":return i.reduce(function(l,s,c){return l=c<n?l+s:l,l},0);case"end":return i.reduce(function(l,s,c){return l=c>n?l-s:l,l},0);default:return i.reduce(function(l,s,c){var u=c<n?s:0;return l=c===n?l+s/2:l+u,l},o)}},oK=function(e,t){var n=e.dy,r=e.dx,i=e.transform,a=e.backgroundStyle,o=e.backgroundPadding,l=e.backgroundComponent,s=e.inline,c=e.y,u=t.map(function(f,d){var h=en(t,d-1),p=f.textSize,g=f.fontSize*f.lineHeight,y=Math.ceil(g),_=en(o,d),b=en(o,d-1),S=s&&r||0,O=d&&!s?h.fontSize*h.lineHeight+b.top+b.bottom:n-g*.5-(f.fontSize-f.capHeight);return{textHeight:y,labelSize:p,heightWithPadding:y+_.top+_.bottom,widthWithPadding:p.width+_.left+_.right+S,y:c,fontSize:f.fontSize,dy:O}});return u.map(function(f,d){var h=hw(e,f.labelSize.width),p=u.slice(0,d+1).reduce(function(O,w){return O+w.dy},c),g=en(o,d),y=f.heightWithPadding,_=s?aK(e,u,d)+h-g.left:h,b=s?mw(e,y)-g.top:p,S={key:"tspan-background-".concat(d),height:y,style:en(a,d),width:f.widthWithPadding,transform:i,x:_-g.left,y:b};return x.cloneElement(l,ae({},l.props,S))})},lK=function(e,t){return dw(e)?oK(e,t):iK(e,t)},sK=function(e,t,n){var r=en(e,t),i=en(e,t-1),a=i.fontSize*i.lineHeight,o=r.fontSize*r.lineHeight,l=i.fontSize-i.capHeight,s=r.fontSize-r.capHeight,c=a-i.fontSize/2+r.fontSize/2-a/2+o/2-s/2+l/2;return dw(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c},cK=function(e,t,n){var r=t.inline,i=en(e,n);return n&&!r?sK(e,n,t):r?n===0?i.backgroundPadding.top:void 0:i.backgroundPadding.top},uK=function(e){var t=tK(e.text,e),n=XY(e.style,B({},e,{text:t})),r=JY(e.backgroundStyle,B({},e,{text:t,style:n})),i=QY(B({},e,{text:t,style:n,backgroundStyle:r})),a=fe(e.id,e);return B({},e,{backgroundStyle:r,backgroundPadding:i,style:n,text:t,id:a})},fK=function(e){var t=fe(e.ariaLabel,e),n=en(e.style),r=eK(e),i=e.direction?fe(e.direction,e):"inherit",a=e.textAnchor?fe(e.textAnchor,e):n.textAnchor||"start",o=e.verticalAnchor?fe(e.verticalAnchor,e):n.verticalAnchor||"middle",l=e.dx?fe(e.dx,e):0,s=nK(e,o,r),c=e.x!==void 0?e.x:uw(e,"x"),u=e.y!==void 0?e.y:uw(e,"y"),f=rK(e,c,u);return B({},e,{ariaLabel:t,lineHeight:r,direction:i,textAnchor:a,verticalAnchor:o,dx:l,dy:s,originalDy:e.dy,transform:f,x:c,y:u})},dK=function(e,t){var n=e.ariaLabel,r=e.inline,i=e.className,a=e.title,o=e.events,l=e.direction,s=e.text,c=e.textAnchor,u=e.dx,f=e.dy,d=e.transform,h=e.x,p=e.y,g=e.desc,y=e.id,_=e.tabIndex,b=e.tspanComponent,S=e.textComponent,O=ur(e),w=cw(cw({"aria-label":n,key:"text"},o),{},{direction:l,dx:u,x:h,y:p+f,transform:d,className:i,title:a,desc:fe(g,e),tabIndex:fe(_,e),id:y},O),A=s.map(function(T,k){var j=t[k].style,N={key:"".concat(y,"-key-").concat(k),x:r?void 0:h,dx:r?u+t[k].backgroundPadding.left:u,dy:cK(t,e,k),textAnchor:j.textAnchor||c,style:j,children:T};return x.cloneElement(b,N)});return x.cloneElement(S,w,A)},wt=function(e){if(e=uK(e),e.text===null||e.text===void 0)return null;var t=fK(e),n=t.text,r=t.style,i=t.capHeight,a=t.backgroundPadding,o=t.lineHeight,l=n.map(function(d,h){var p=en(r,h),g=ig("".concat(i,"em"),p.fontSize),y=en(o,h);return{style:p,fontSize:p.fontSize||va.fontSize,capHeight:g,text:d,textSize:pa(d,p),lineHeight:y,backgroundPadding:en(a,h)}}),s=dK(t,l);if(e.backgroundStyle){var c=lK(t,l),u=[c,s],f=x.cloneElement(e.groupComponent,{},u);return e.renderInPortal?x.createElement(ii,null,f):f}return e.renderInPortal?x.createElement(ii,null,s):s};wt.displayName="VictoryLabel",wt.role="label",wt.defaultStyles=va,wt.propTypes={active:m.bool,angle:m.oneOfType([m.string,m.number,m.func]),ariaLabel:m.oneOfType([m.string,m.func]),backgroundComponent:m.element,backgroundPadding:m.oneOfType([m.number,m.object,m.array]),backgroundStyle:m.oneOfType([m.object,m.array]),capHeight:m.oneOfType([m.string,_e,m.func]),className:m.string,data:m.array,datum:m.any,desc:m.oneOfType([m.string,m.func]),direction:m.oneOf(["rtl","ltr","inherit"]),dx:m.oneOfType([m.number,m.string,m.func]),dy:m.oneOfType([m.number,m.string,m.func]),events:m.object,groupComponent:m.element,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),inline:m.bool,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),lineHeight:m.oneOfType([m.string,_e,m.func,m.array]),origin:m.shape({x:_e.isRequired,y:_e.isRequired}),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Er,y:Er}),style:m.oneOfType([m.object,m.array]),tabIndex:m.oneOfType([m.number,m.func]),text:m.oneOfType([m.string,m.number,m.func,m.array]),textAnchor:m.oneOfType([m.oneOf(["start","middle","end","inherit"]),m.func]),textComponent:m.element,title:m.string,transform:m.oneOfType([m.string,m.object,m.func]),tspanComponent:m.element,verticalAnchor:m.oneOfType([m.oneOf(["start","middle","end"]),m.func]),x:m.oneOfType([m.number,m.string]),y:m.oneOfType([m.number,m.string])},wt.defaultProps={backgroundComponent:x.createElement(ga,null),groupComponent:x.createElement("g",null),direction:"inherit",textComponent:x.createElement(QS,null),tspanComponent:x.createElement(xY,null),capHeight:.71,lineHeight:1};function gw(e,t){return(e.key||t).toString()}function pw(e){return e.reduce(function(t,n,r){var i=gw(n,r);return t[i]=n,t},{})}function vw(e,t){var n=!1,r=Ze(e).reduce(function(i,a){return a in t||(n=!0,i[a]=!0),i},{});return n&&r}function hK(e,t){var n=e&&pw(e),r=t&&pw(t);return{entering:n&&vw(r,n),exiting:r&&vw(n,r)}}function lg(e){return e.type&&e.type.getData?e.type.getData(e.props):e.props&&e.props.data||!1}function yw(e,t){var n=!1,r=!1,i=function(l,s){if(!s||l.type!==s.type)return{};var c=hK(lg(l),lg(s))||{},u=c.entering,f=c.exiting;return n=n||!!f,r=r||!!u,{entering:u||!1,exiting:f||!1}},a=function(l,s){return l.map(function(c,u){return c&&c.props&&c.props.children&&s[u]?a(x.Children.toArray(l[u].props.children),x.Children.toArray(s[u].props.children)):i(c,s[u])})},o=a(x.Children.toArray(e),x.Children.toArray(t));return{nodesWillExit:n,nodesWillEnter:r,childrenTransitions:o,nodesShouldEnter:!1}}function mK(e,t){var n=e.onEnter&&e.onEnter.after?e.onEnter.after:sa;return{data:t.map(function(r,i){return B({},r,n(r,i,t))})}}function gK(e,t,n,r){if(e=B({},e,{onEnd:r}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:n};var i=e.onLoad&&e.onLoad.before?e.onLoad.before:sa;return n=n.map(function(a,o){return B({},a,i(a,o,n))}),{animate:e,data:n,clipWidth:0}}function pK(e,t,n){if(e=B({},e,{onEnd:n}),e&&e.onLoad&&!e.onLoad.duration)return{animate:e,data:t};var r=e.onLoad&&e.onLoad.after?e.onLoad.after:sa;return t=t.map(function(i,a){return B({},i,r(i,a,t))}),{animate:e,data:t}}function vK(e,t,n,r,i){var a=e&&e.onExit;if(e=B({},e,a),r){e.onEnd=i;var o=e.onExit&&e.onExit.before?e.onExit.before:sa;n=n.map(function(l,s){var c=(l.key||s).toString();return r[c]?B({},l,o(l,s,n)):l})}return{animate:e,data:n}}function yK(e,t,n,r,i){if(r){e=B({},e,{onEnd:i});var a=e.onEnter&&e.onEnter.before?e.onEnter.before:sa;n=n.map(function(o,l){var s=(o.key||l).toString();return r[s]?B({},o,a(o,l,n)):o})}return{animate:e,data:n}}function bK(e,t,n,r){var i=e&&e.onEnter;if(e=B({},e,i),n){e.onEnd=r;var a=e.onEnter&&e.onEnter.after?e.onEnter.after:sa;t=t.map(function(o,l){var s=gw(o,l);return n[s]?B({},o,a(o,l,t)):o})}return{animate:e,data:t}}function bw(e,t,n){var r=t&&t.nodesWillExit,i=t&&t.nodesWillEnter,a=t&&t.nodesShouldEnter,o=t&&t.nodesShouldLoad,l=t&&t.nodesDoneLoad,s=t&&t.childrenTransitions||[],c={enter:e.animate&&e.animate.onEnter&&e.animate.onEnter.duration,exit:e.animate&&e.animate.onExit&&e.animate.onExit.duration,load:e.animate&&e.animate.onLoad&&e.animate.onLoad.duration,move:e.animate&&e.animate.duration},u=function(p,g,y){return o?pK(y,g,function(){n({nodesShouldLoad:!1,nodesDoneLoad:!0})}):gK(y,p,g,function(){n({nodesDoneLoad:!0})})},f=function(p,g,y,_){return vK(_,g,y,p,function(){n({nodesWillExit:!1})})},d=function(p,g,y,_){return a?bK(_,y,p,function(){n({nodesWillEnter:!1})}):yK(_,g,y,p,function(){n({nodesShouldEnter:!0})})},h=function(p,g){var y=p.props.animate;if(!p.type)return{};var _=p.props&&p.props.polar&&p.type.defaultPolarTransitions||p.type.defaultTransitions;if(_){var b=y[g]&&y[g].duration;return b!==void 0?b:_[g]&&_[g].duration}return{}};return function(g,y){var _=lg(g)||[],b=ae({},e.animate,g.props.animate),S=g.props.polar&&g.type.defaultPolarTransitions||g.type.defaultTransitions;b.onExit=ae({},b.onExit,S&&S.onExit),b.onEnter=ae({},b.onEnter,S&&S.onEnter),b.onLoad=ae({},b.onLoad,S&&S.onLoad);var O=s[y]||s[0];if(l){if(r){var T=O&&O.exiting,k=c.exit!==void 0?c.exit:h(g,"onExit"),j=T?{duration:k}:{delay:k};return f(T,g,_,B({},b,j))}else if(i){var N=O&&O.entering,M=c.enter!==void 0?c.enter:h(g,"onEnter"),E=c.move!==void 0?c.move:g.props.animate&&g.props.animate.duration,I={duration:a&&N?M:E};return d(N,g,_,B({},b,I))}else if(!t&&b&&b.onExit)return mK(b,_)}else{var w=c.load!==void 0?c.load:h(g,"onLoad"),A={duration:w};return u(g,_,B({},b,A))}return{animate:b,data:_}}}function sg(){return sg=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},sg.apply(this,arguments)}function _K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xK(e,t,n){return t&&_w(e.prototype,t),n&&_w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cg(e,t)}function cg(e,t){return cg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cg(e,t)}function wK(e){var t=AK();return function(){var r=Uu(e),i;if(t){var a=Uu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return OK(this,i)}}function OK(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CK(e)}function CK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Uu(e){return Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uu(e)}var qu=function(e){SK(n,e);var t=wK(n);function n(r,i){var a;_K(this,n),a=t.call(this,r,i),a.continuous=void 0,a.timer=void 0,a.transitionProps=void 0,a.state={nodesShouldLoad:!1,nodesDoneLoad:!1};var o=a.props.children,l=o.props.polar;return a.continuous=!l&&o.type&&o.type.continuous===!0,a.timer=a.context.transitionTimer,a}return xK(n,[{key:"componentDidMount",value:function(){this.setState({nodesShouldLoad:!0})}},{key:"shouldComponentUpdate",value:function(i){var a=this;return fn(this.props,i)||(this.timer.bypassAnimation(),this.setState(this.getTransitionState(this.props,i),function(){return a.timer.resumeAnimation()})),!0}},{key:"componentWillUnmount",value:function(){this.timer.stop()}},{key:"getTransitionState",value:function(i,a){var o=i.animate;if(o){if(o.parentState){var l=o.parentState,s=l.nodesWillExit?i:null;return{oldProps:s,nextProps:a}}}else return{};var c=x.Children.toArray(i.children),u=x.Children.toArray(a.children),f=yw(c,u),d=f.nodesWillExit,h=f.nodesWillEnter,p=f.childrenTransitions,g=f.nodesShouldEnter;return{nodesWillExit:d,nodesWillEnter:h,childrenTransitions:p,nodesShouldEnter:g,oldProps:d?i:null,nextProps:a}}},{key:"getDomainFromChildren",value:function(i,a){var o=function(f){return f.reduce(function(d,h){if(h.type&&Oe(h.type.getDomain)){var p=h.props&&h.type.getDomain(h.props,a);return p?d.concat(p):d}else if(h.props&&h.props.children)return d.concat(o(x.Children.toArray(h.props.children)));return d},[])},l=x.Children.toArray(i.children)[0],s=l.props||{},c=Array.isArray(s.domain)?s.domain:s.domain&&s.domain[a];if(!s.children&&c)return c;var u=o([l]);return u.length===0?[0,1]:[dn(u),Nn(u)]}},{key:"pickProps",value:function(){return this.state?this.state.nodesWillExit?this.state.oldProps||this.props:this.props:this.props}},{key:"pickDomainProps",value:function(i){var a,o=(a=i.animate)===null||a===void 0?void 0:a.parentState;return o&&o.nodesWillExit?(this.continuous||o.continuous)&&(o.nextProps||this.state.nextProps)||i:this.continuous&&this.state.nodesWillExit&&this.state.nextProps||i}},{key:"getClipWidth",value:function(i,a){var o=function(){var s=xt(a.props,"x");return s?Math.abs(s[1]-s[0]):i.width},l=this.transitionProps?this.transitionProps.clipWidth:void 0;return l!==void 0?l:o()}},{key:"render",value:function(){var i,a=this,o=this.pickProps(),l=(i=this.props.animate)!==null&&i!==void 0&&i.getTransitions?this.props.animate.getTransitions:bw(o,this.state,function(y){return a.setState(y)}),s=x.Children.toArray(o.children)[0],c=l(s);this.transitionProps=c;var u={x:this.getDomainFromChildren(this.pickDomainProps(o),"x"),y:this.getDomainFromChildren(o,"y")},f=this.getClipWidth(o,s),d=ae({domain:u,clipWidth:f},c,s.props),h=o.animationWhitelist||[],p=h.concat(["clipWidth"]),g=p.length?rs(d,p):d;return x.createElement(ts,sg({},d.animate,{data:g}),function(y){if(s.props.groupComponent){var _=a.continuous?x.cloneElement(s.props.groupComponent,{clipWidth:y.clipWidth||0}):s.props.groupComponent;return x.cloneElement(s,ae({animate:null,animating:!0,groupComponent:_},y,d))}return x.cloneElement(s,ae({animate:null,animating:!0},y,d))})}}]),n}(x.Component);qu.displayName="VictoryTransition",qu.propTypes={animate:m.oneOfType([m.bool,m.object]),animationWhitelist:m.array,children:m.node},qu.contextType=hu;var xw=function(e){return x.createElement("defs",null,x.createElement("clipPath",{id:e.clipId},e.children))};xw.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),clipId:m.oneOfType([m.number,m.string])};var TK=["desc"];function Gu(){return Gu=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},Gu.apply(this,arguments)}function kK(e,t){if(e==null)return{};var n=EK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EK(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Sw=function(e){var t=e.desc,n=kK(e,TK);return t?x.createElement("circle",Gu({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("circle",Gu({vectorEffect:"non-scaling-stroke"},n))};function ww(e){return DK(e)||MK(e)||jK(e)||PK()}function PK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jK(e,t){if(e){if(typeof e=="string")return ug(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ug(e,t)}}function MK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function DK(e){if(Array.isArray(e))return ug(e)}function ug(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ow(Object(n),!0).forEach(function(r){IK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ow(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Aw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $K(e,t,n){return t&&Aw(e.prototype,t),n&&Aw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function FK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fg(e,t)}function fg(e,t){return fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fg(e,t)}function NK(e){var t=WK();return function(){var r=Yu(e),i;if(t){var a=Yu(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return zK(this,i)}}function zK(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BK(e)}function BK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Yu(e){return Yu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yu(e)}var ya=function(e){FK(n,e);var t=NK(n);function n(r){var i;return LK(this,n),i=t.call(this,r),i.clipId=void 0,i.clipId=!uo(r)||r.clipId===void 0?pu("victory-clip-"):r.clipId,i}return $K(n,[{key:"calculateAttributes",value:function(i){var a=i.polar,o=i.origin,l=i.clipWidth,s=l===void 0?0:l,c=i.clipHeight,u=c===void 0?0:c,f=i.translateX,d=f===void 0?0:f,h=i.translateY,p=h===void 0?0:h,g=lt({padding:i.clipPadding}),y=i.radius||kr(i);return{x:(a?o.x:d)-g.left,y:(a?o.y:p)-g.top,width:Math.max((a?y:s)+g.left+g.right,0),height:Math.max((a?y:u)+g.top+g.bottom,0)}}},{key:"renderClippedGroup",value:function(i,a){var o=ur(i),l=i.style,s=i.events,c=i.transform,u=i.children,f=i.className,d=i.groupComponent,h=i.tabIndex,p=this.renderClipComponent(i,a),g=B({className:f,style:l,transform:c,key:"clipped-group-".concat(a),clipPath:"url(#".concat(a,")")},s);return x.cloneElement(d,Cw(Cw({},g),{},{tabIndex:h},o),[p].concat(ww(x.Children.toArray(u))))}},{key:"renderGroup",value:function(i){var a=i.style,o=i.events,l=i.transform,s=i.children,c=i.className,u=i.groupComponent,f=i.tabIndex;return x.cloneElement(u,B({className:c,style:a,transform:l,"aria-label":i["aria-label"],tabIndex:f},o),s)}},{key:"renderClipComponent",value:function(i,a){var o=i.polar,l=i.origin,s=i.clipWidth,c=s===void 0?0:s,u=i.clipHeight,f=u===void 0?0:u,d=i.translateX,h=d===void 0?0:d,p=i.translateY,g=p===void 0?0:p,y=i.circleComponent,_=i.rectComponent,b=i.clipPathComponent,S=lt({padding:i.clipPadding}),O=S.top,w=S.bottom,A=S.left,T=S.right,k;if(o){var j=i.radius||kr(i),N={r:Math.max(j+A+T,j+O+w,0),cx:l.x-A,cy:l.y-O};k=x.cloneElement(y,N)}else{var M={x:h-A,y:g-O,width:Math.max(c+A+T,0),height:Math.max(f+O+w,0)};k=x.cloneElement(_,M)}return x.cloneElement(b,B({key:"clip-path-".concat(a)},i,{clipId:a}),k)}},{key:"getClipValue",value:function(i,a){var o={x:i.clipWidth,y:i.clipHeight};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l&&Math.abs(l[0]-l[1])||void 0}},{key:"getTranslateValue",value:function(i,a){var o={x:i.translateX,y:i.translateY};if(o[a]!==void 0)return o[a];var l=xt(i,a);return l?Math.min.apply(Math,ww(l)):void 0}},{key:"render",value:function(){var i=this.getClipValue(this.props,"y"),a=this.getClipValue(this.props,"x");if(a===void 0||i===void 0)return this.renderGroup(this.props);var o=this.getTranslateValue(this.props,"x"),l=this.getTranslateValue(this.props,"y"),s=ae({},this.props,{clipHeight:i,clipWidth:a,translateX:o,translateY:l});return this.renderClippedGroup(s,this.clipId)}}]),n}(x.Component);ya.displayName="VictoryClipContainer",ya.role="container",ya.propTypes={"aria-label":m.string,children:m.oneOfType([m.arrayOf(m.node),m.node]),circleComponent:m.element,className:m.string,clipHeight:_e,clipId:m.oneOfType([m.number,m.string]),clipPadding:m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number}),clipPathComponent:m.element,clipWidth:_e,events:m.object,groupComponent:m.element,origin:m.shape({x:_e,y:_e}),polar:m.bool,radius:_e,style:m.object,tabIndex:m.number,transform:m.string,translateX:m.number,translateY:m.number},ya.defaultProps={circleComponent:x.createElement(Sw,null),rectComponent:x.createElement(ga,null),clipPathComponent:x.createElement(xw,null),groupComponent:x.createElement("g",null)};var ys=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],tn="#252525",dg="#969696",RK="'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",VK="normal",HK=14,Sn={width:450,height:300,padding:50,colorScale:ys},Pt={fontFamily:RK,fontSize:HK,letterSpacing:VK,padding:10,fill:tn,stroke:"transparent"},UK=B({textAnchor:"middle"},Pt),qK="round",GK="round",YK={area:B({style:{data:{fill:tn},labels:Pt}},Sn),axis:B({style:{axis:{fill:"transparent",stroke:tn,strokeWidth:1,strokeLinecap:qK,strokeLinejoin:GK},axisLabel:B({},UK,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:Pt}},Sn),bar:B({style:{data:{fill:tn,padding:8,strokeWidth:0},labels:Pt}},Sn),boxplot:B({style:{max:{padding:8,stroke:tn,strokeWidth:1},maxLabels:B({},Pt,{padding:3}),median:{padding:8,stroke:tn,strokeWidth:1},medianLabels:B({},Pt,{padding:3}),min:{padding:8,stroke:tn,strokeWidth:1},minLabels:B({},Pt,{padding:3}),q1:{padding:8,fill:dg},q1Labels:B({},Pt,{padding:3}),q3:{padding:8,fill:dg},q3Labels:B({},Pt,{padding:3})},boxWidth:20},Sn),candlestick:B({style:{data:{stroke:tn,strokeWidth:1},labels:B({},Pt,{padding:5})},candleColors:{positive:"#ffffff",negative:tn}},Sn),chart:Sn,errorbar:B({borderWidth:8,style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),group:B({colorScale:ys},Sn),histogram:B({style:{data:{fill:dg,stroke:tn,strokeWidth:2},labels:Pt}},Sn),legend:{colorScale:ys,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:Pt,title:B({},Pt,{padding:5})}},line:B({style:{data:{fill:"transparent",stroke:tn,strokeWidth:2},labels:Pt}},Sn),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:B({},Pt,{padding:20})},colorScale:ys,width:400,height:400,padding:50},scatter:B({style:{data:{fill:tn,stroke:"transparent",strokeWidth:0},labels:Pt}},Sn),stack:B({colorScale:ys},Sn),tooltip:{style:B({},Pt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:B({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:B({},Pt,{padding:5,pointerEvents:"none"}),flyout:{stroke:tn,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},Sn)},KK="#FFF59D",ZK="#F4511E",XK="#DCE775",JK="#8BC34A",QK="#00796B",eZ="#006064",Ku=[ZK,KK,XK,JK,QK,eZ],Tw="#ECEFF1",kw="#90A4AE",hn="#455A64",Zu="#212121",tZ="'Helvetica Neue', 'Helvetica', sans-serif",nZ="normal",rZ=12,ai=8,mn={width:350,height:350,padding:50},jt={fontFamily:tZ,fontSize:rZ,letterSpacing:nZ,padding:ai,fill:hn,stroke:"transparent",strokeWidth:0},iZ=B({textAnchor:"middle"},jt),aZ="10, 5",hg="round",mg="round",oZ={area:B({style:{data:{fill:Zu},labels:jt}},mn),axis:B({style:{axis:{fill:"transparent",stroke:kw,strokeWidth:2,strokeLinecap:hg,strokeLinejoin:mg},axisLabel:B({},iZ,{padding:ai,stroke:"transparent"}),grid:{fill:"none",stroke:Tw,strokeDasharray:aZ,strokeLinecap:hg,strokeLinejoin:mg,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:kw,strokeWidth:1,strokeLinecap:hg,strokeLinejoin:mg},tickLabels:B({},jt,{fill:hn})}},mn),polarDependentAxis:B({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:B({style:{data:{fill:hn,padding:ai,strokeWidth:0},labels:jt}},mn),boxplot:B({style:{max:{padding:ai,stroke:hn,strokeWidth:1},maxLabels:B({},jt,{padding:3}),median:{padding:ai,stroke:hn,strokeWidth:1},medianLabels:B({},jt,{padding:3}),min:{padding:ai,stroke:hn,strokeWidth:1},minLabels:B({},jt,{padding:3}),q1:{padding:ai,fill:hn},q1Labels:B({},jt,{padding:3}),q3:{padding:ai,fill:hn},q3Labels:B({},jt,{padding:3})},boxWidth:20},mn),candlestick:B({style:{data:{stroke:hn},labels:B({},jt,{padding:5})},candleColors:{positive:"#ffffff",negative:hn}},mn),chart:mn,errorbar:B({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),group:B({colorScale:Ku},mn),histogram:B({style:{data:{fill:hn,stroke:Zu,strokeWidth:2},labels:jt}},mn),legend:{colorScale:Ku,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:jt,title:B({},jt,{padding:5})}},line:B({style:{data:{fill:"transparent",opacity:1,stroke:hn,strokeWidth:2},labels:jt}},mn),pie:B({colorScale:Ku,style:{data:{padding:ai,stroke:Tw,strokeWidth:1},labels:B({},jt,{padding:20})}},mn),scatter:B({style:{data:{fill:hn,opacity:1,stroke:"transparent",strokeWidth:0},labels:jt}},mn),stack:B({colorScale:Ku},mn),tooltip:{style:B({},jt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Zu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:B({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:B({},jt,{padding:5,pointerEvents:"none"}),flyout:{stroke:Zu,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},mn)},Pr={grayscale:YK,material:oZ},lZ={categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),data:m.oneOfType([m.array,m.object]),dataComponent:m.element,disableInlineStyles:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),samples:_e,sortKey:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),sortOrder:m.oneOf(["ascending","descending"]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),x:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),y:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)]),y0:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string.isRequired)])},sZ={animate:m.oneOfType([m.bool,m.object]),containerComponent:m.element,domain:m.oneOfType([Ii,m.shape({x:Ii,y:Ii})]),maxDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),minDomain:m.oneOfType([m.number,m.instanceOf(Date),m.shape({x:m.oneOfType([m.number,m.instanceOf(Date)]),y:m.oneOfType([m.number,m.instanceOf(Date)])})]),domainPadding:m.oneOfType([m.shape({x:m.oneOfType([m.number,m.arrayOf(m.number)]),y:m.oneOfType([m.number,m.arrayOf(m.number)])}),m.number,m.arrayOf(m.number)]),eventKey:m.oneOfType([m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,name:m.string,origin:m.shape({x:m.number,y:m.number}),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),polar:m.bool,range:m.oneOfType([Ii,m.shape({x:Ii.isRequired,y:Ii.isRequired})]),scale:m.oneOfType([Er,m.shape({x:Er.isRequired,y:Er.isRequired})]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),singleQuadrantDomainPadding:m.oneOfType([m.bool,m.shape({x:m.oneOfType([m.bool]),y:m.oneOfType([m.bool])})]),standalone:m.bool,theme:m.object,width:_e},cZ={active:m.bool,ariaLabel:m.oneOfType([m.string,m.func]),className:m.string,clipPath:m.string,data:m.oneOfType([m.array,m.object]),desc:m.oneOfType([m.string,m.func]),disableInlineStyles:m.bool,events:m.object,id:m.oneOfType([m.number,m.string,m.func]),index:m.oneOfType([m.number,m.string]),origin:m.shape({x:m.number,y:m.number}),polar:m.bool,role:m.string,scale:m.oneOfType([Er,m.shape({x:Er,y:Er})]),shapeRendering:m.string,style:m.object,tabIndex:m.oneOfType([m.number,m.func]),transform:m.string},Ot={dataProps:lZ,baseProps:sZ,primitiveProps:cZ},uZ=["desc"];function fZ(e,t){if(e==null)return{};var n=dZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Li=function(e){var t=e.desc,n=fZ(e,uZ);return t?x.createElement("path",n,x.createElement("desc",null,t)):x.createElement("path",n)};function Ew(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Xu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ew(Object(n),!0).forEach(function(r){hZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ew(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mZ=function(e){var t=e.cx,n=e.cy,r=e.r,i=e.startAngle,a=e.endAngle,o=e.closedPath,l=Math.abs(a-i)/2+i,s=t+r*Math.cos(st(i)),c=n-r*Math.sin(st(i)),u=t+r*Math.cos(st(l)),f=n-r*Math.sin(st(l)),d=t+r*Math.cos(st(a)),h=n-r*Math.sin(st(a)),p=l-i<=180?0:1,g=a-l<=180?0:1,y=o?" M ".concat(t,", ").concat(n," L ").concat(s,", ").concat(c):"M ".concat(s,", ").concat(c),_="A ".concat(r,", ").concat(r,", 0, ").concat(p,", 0, ").concat(u,", ").concat(f),b="A ".concat(r,", ").concat(r,", 0, ").concat(g,", 0, ").concat(d,", ").concat(h),S=o?"Z":"";return"".concat(y," ").concat(_," ").concat(b," ").concat(S)},gZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({stroke:"black",fill:"none"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},Ju=function(e){return e=gZ(e),x.cloneElement(e.pathComponent,Xu(Xu({},e.events),{},{"aria-label":e.ariaLabel,d:mZ(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,transform:e.transform,clipPath:e.clipPath}))};Ju.propTypes=Xu(Xu({},Ot.primitiveProps),{},{closedPath:m.bool,cx:m.number,cy:m.number,datum:m.any,endAngle:m.number,pathComponent:m.element,r:m.number,startAngle:m.number}),Ju.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function Pw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pw(Object(n),!0).forEach(function(r){pZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vZ=function(e){var t=fe(e.id,e);return B({},e,{id:t})},gg=function(e){return e=vZ(e),e.polar?x.cloneElement(e.circleComponent,Po(Po({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,cx:e.x,cy:e.y,r:e.height,className:e.className})):x.cloneElement(e.rectComponent,Po(Po({},e.events),{},{style:e.style,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,rx:e.rx,ry:e.ry,width:e.width,height:e.height,className:e.className}))};gg.propTypes=Po(Po({},Ot.primitiveProps),{},{circleComponent:m.element,height:m.number,rectComponent:m.element,rx:m.number,ry:m.number,width:m.number,x:m.number,y:m.number}),gg.defaultProps={circleComponent:x.createElement(Sw,null),rectComponent:x.createElement(ga,null),role:"presentation",shapeRendering:"auto"};function jw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jw(Object(n),!0).forEach(function(r){yZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({fill:"none"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},pg=function(e){return e=bZ(e),x.cloneElement(e.rectComponent,Qu(Qu({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,transform:e.transform,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x:e.x,y:e.y,width:e.width,height:e.height,clipPath:e.clipPath}))};pg.propTypes=Qu(Qu({},Ot.primitiveProps),{},{height:m.number,rectComponent:m.element,width:m.number,x:m.number,y:m.number}),pg.defaultProps={rectComponent:x.createElement(ga,null),role:"presentation",shapeRendering:"auto"};var _Z=["desc"];function ef(){return ef=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},ef.apply(this,arguments)}function xZ(e,t){if(e==null)return{};var n=SZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function SZ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var wZ=function(e){var t=e.desc,n=xZ(e,_Z);return t?x.createElement("line",ef({vectorEffect:"non-scaling-stroke"},n),x.createElement("desc",null,t)):x.createElement("line",ef({vectorEffect:"non-scaling-stroke"},n))};function Mw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mw(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({stroke:"black"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},jr=function(e){return e=CZ(e),x.cloneElement(e.lineComponent,tf(tf({},e.events),{},{"aria-label":e.ariaLabel,style:e.style,desc:e.desc,tabIndex:e.tabIndex,className:e.className,role:e.role,shapeRendering:e.shapeRendering,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2,transform:e.transform,clipPath:e.clipPath}))};jr.propTypes=tf(tf({},Ot.primitiveProps),{},{datum:m.any,lineComponent:m.element,x1:m.number,x2:m.number,y1:m.number,y2:m.number}),jr.defaultProps={lineComponent:x.createElement(wZ,null),role:"presentation",shapeRendering:"auto"};var AZ=Math.ceil,TZ=Math.max;function kZ(e,t,n,r){for(var i=-1,a=TZ(AZ((t-e)/(n||1)),0),o=Array(a);a--;)o[r?a:++i]=e,e+=n;return o}var EZ=kZ,PZ=EZ,jZ=Uc,vg=v2;function MZ(e){return function(t,n,r){return r&&typeof r!="number"&&jZ(t,n,r)&&(n=r=void 0),t=vg(t),n===void 0?(n=t,t=0):n=vg(n),r=r===void 0?t<n?1:-1:vg(r),PZ(t,n,r,e)}}var DZ=MZ,IZ=DZ,LZ=IZ(),$Z=LZ;const bs=Ae($Z);function FZ(e,t,n){return"M ".concat(e,", ").concat(t,`
142
142
  m `).concat(-n,`, 0
143
143
  a `).concat(n,", ").concat(n," 0 1,0 ").concat(n*2,`,0
144
144
  a `).concat(n,", ").concat(n," 0 1,0 ").concat(-n*2,",0")}function NZ(e,t,n){var r=.87*n,i=e-r,a=t+r,o=e+r-i;return"M ".concat(i,", ").concat(a,`
@@ -188,19 +188,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
188
188
  h-`).concat(l,`
189
189
  z`)}function UZ(e,t,n){var r=1.35*n,i=Math.PI/5,a=bs(10).map(function(o){var l=o%2===0?r:r/2;return"".concat(l*Math.sin(i*(o+1))+e,`,
190
190
  `).concat(l*Math.cos(i*(o+1))+t)});return"M ".concat(a.join("L")," z")}const qZ=Object.freeze(Object.defineProperty({__proto__:null,circle:FZ,cross:VZ,diamond:zZ,minus:HZ,plus:RZ,square:NZ,star:UZ,triangleDown:BZ,triangleUp:WZ},Symbol.toStringTag,{value:"Module"}));function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){GZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YZ=function(e){var t=e.x,n=e.y,r=e.size,i=e.symbol;if(e.getPath)return e.getPath(t,n,r);var a=qZ,o=typeof a[i]=="function"?a[i]:a.circle;return o(t,n,r)},KZ=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=fe(e.size,e),a=Xe(e.style,e),o=fe(e.symbol,e),l=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,size:i,style:a,symbol:o,tabIndex:l})},rf=function(e){e=KZ(e);var t=ur(e);return x.cloneElement(e.pathComponent,nf(nf({},e.events),{},{"aria-label":e.ariaLabel,d:YZ(e),style:e.style,desc:e.desc,tabIndex:e.tabIndex,role:e.role,shapeRendering:e.shapeRendering,className:e.className,transform:e.transform,clipPath:e.clipPath},t))};rf.propTypes=nf(nf({},Ot.primitiveProps),{},{datum:m.object,getPath:m.func,pathComponent:m.element,size:m.oneOfType([m.number,m.func]),symbol:m.oneOfType([m.oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),m.func]),x:m.number,y:m.number}),rf.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};var ZZ=b2;function XZ(e,t){var n=e==null?0:e.length;return!!n&&ZZ(e,t,0)>-1}var Iw=XZ;function JZ(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Lw=JZ,QZ=Wm,eX=Iw,tX=Lw,nX=mo,rX=Bl,iX=Rm,aX=200;function oX(e,t,n,r){var i=-1,a=eX,o=!0,l=e.length,s=[],c=t.length;if(!l)return s;n&&(t=nX(t,rX(n))),r?(a=tX,o=!1):t.length>=aX&&(a=iX,o=!1,t=new QZ(t));e:for(;++i<l;){var u=e[i],f=n==null?u:n(u);if(u=r||u!==0?u:0,o&&f===f){for(var d=c;d--;)if(t[d]===f)continue e;s.push(u)}else a(t,f,r)||s.push(u)}return s}var $w=oX,lX=Cr,sX=sr;function cX(e){return sX(e)&&lX(e)}var yg=cX,uX=$w,fX=Vl,dX=yg,hX=fX(function(e,t){return dX(e)?uX(e,t):[]}),mX=hX;const _s=Ae(mX);function gX(e){return e==null}var pX=gX;const ba=Ae(pX);var vX=$w,yX=T2,bX=Vl,Fw=yg,_X=bX(function(e,t){return Fw(e)?vX(e,yX(t,1,Fw,!0)):[]}),xX=_X;const af=Ae(xX);function SX(){}var Nw=SX,bg=g1,wX=Nw,OX=Vm,CX=1/0,AX=bg&&1/OX(new bg([,-0]))[1]==CX?function(e){return new bg(e)}:wX,TX=AX,kX=Wm,EX=Iw,PX=Lw,jX=Rm,MX=TX,DX=Vm,IX=200;function LX(e,t,n){var r=-1,i=EX,a=e.length,o=!0,l=[],s=l;if(n)o=!1,i=PX;else if(a>=IX){var c=t?null:MX(e);if(c)return DX(c);o=!1,i=jX,s=new kX}else s=t?[]:l;e:for(;++r<a;){var u=e[r],f=t?t(u):u;if(u=n||u!==0?u:0,o&&f===f){for(var d=s.length;d--;)if(s[d]===f)continue e;t&&s.push(f),l.push(u)}else i(s,f,n)||(s!==l&&s.push(f),l.push(u))}return l}var zw=LX,$X=zw;function FX(e){return e&&e.length?$X(e):[]}var NX=FX;const _a=Ae(NX);var zX="Expected a function";function BX(e){if(typeof e!="function")throw new TypeError(zX);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}var WX=BX,RX=Um,VX=Zm,HX=x5,UX=b5,qX=Object.getOwnPropertySymbols,GX=qX?function(e){for(var t=[];e;)RX(t,HX(e)),e=VX(e);return t}:UX,YX=GX,KX=y5,ZX=YX,XX=qc;function JX(e){return KX(e,XX,ZX)}var QX=JX,eJ=mo,tJ=Yr,nJ=w2,rJ=QX;function iJ(e,t){if(e==null)return{};var n=eJ(rJ(e),function(r){return[r]});return t=tJ(t),nJ(e,n,function(r,i){return t(r,i[0])})}var Bw=iJ;const of=Ae(Bw);var aJ=Yr,oJ=WX,lJ=Bw;function sJ(e,t){return lJ(e,oJ(aJ(t)))}var cJ=sJ;const Ww=Ae(cJ);function lf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rw(e){return hJ(e)||dJ(e)||fJ(e)||uJ()}function uJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
191
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fJ(e,t){if(e){if(typeof e=="string")return _g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _g(e,t)}}function dJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hJ(e){if(Array.isArray(e))return _g(e)}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xg=/^onGlobal(.*)$/;function Vw(e,t,n,r){var i=this,a=function(f){var d=function(){var p=f.reduce(function(g,y){if(y.target!==void 0){var _=Array.isArray(y.target)?Kr(y.target,t):"".concat(y.target)==="".concat(t);return _?g.concat(y):g}return g.concat(y)},[]);return n!==void 0&&t!=="parent"?p.filter(function(g){var y=g.eventKey,_=function(b){return b?"".concat(b)==="".concat(n):!0};return Array.isArray(y)?y.some(function(b){return _(b)}):_(y)}):p},h=d();return Array.isArray(h)&&h.reduce(function(p,g){return g?B(p,g.eventHandlers):p},{})},o=function(){if(Array.isArray(i.componentEvents)){var f;return Array.isArray(e.events)?(f=i.componentEvents).concat.apply(f,Rw(e.events)):i.componentEvents}return e.events},l=o(),s=l&&Oe(r)?r(a(l),t):void 0;if(!e.sharedEvents)return s;var c=e.sharedEvents.getEvents,u=e.sharedEvents.events&&c(a(e.sharedEvents.events),t);return B({},u,s)}function Hw(e,t,n,r){var i=this;if(rt(e))return{};r=r||this.baseProps;var a=function(u,f){var d=u.childName,h=u.target,p=u.key,g=f==="props"?r:i.state||{},y=d==null||!g[d]?g:g[d];return p==="parent"?y.parent:y[p]&&y[p][h]},o=function(u,f){var d=t==="parent"?u.childName:u.childName||n,h=u.target||t,p=function(b){return h==="parent"?"parent":u.eventKey==="all"?r[b]?_s(Ze(r[b]),"parent"):_s(Ze(r),"parent"):u.eventKey===void 0&&f==="parent"?r[b]?Ze(r[b]):Ze(r):u.eventKey!==void 0?u.eventKey:f},g=function(b,S){var O=i.state||{};if(!Oe(u.mutation))return O;var w=a({childName:S,key:b,target:h},"props"),A=a({childName:S,key:b,target:h},"state"),T=u.mutation(B({},w,A),r),k=O[S]||{},P=function(j){return j[b]&&j[b][h]&&delete j[b][h],j[b]&&!Ze(j[b]).length&&delete j[b],j},N=function(j){return h==="parent"?B(j,lf({},b,B(j[b],T))):B(j,lf({},b,B(j[b],lf({},h,T))))},M=function(j){return T?N(j):P(j)};return S!=null?B(O,lf({},S,M(k))):M(O)},y=function(b){var S=p(b);return Array.isArray(S)?S.reduce(function(O,w){return B(O,g(w,b))},{}):g(S,b)},_=d==="all"?_s(Ze(r),"parent"):d;return Array.isArray(_)?_.reduce(function(b,S){return B(b,y(S))},{}):y(_)},l=function(u,f){return Array.isArray(u)?u.reduce(function(d,h){return d=B({},d,o(h,f)),d},{}):o(u,f)},s=function(u){var f=function(p){return Oe(p.callback)&&p.callback},d=Array.isArray(u)?u.map(function(p){return f(p)}):[f(u)],h=d.filter(function(p){return p!==!1});return h.length?function(){return h.forEach(function(p){return p()})}:void 0},c=function(u,f,d,h){var p=e[h](u,f,d,i);if(!rt(p)){var g=s(p);i.setState(l(p,d),g)}};return Ze(e).reduce(function(u,f){return u[f]=c,u},{})}function Uw(e,t,n){return e?Ze(e).reduce(function(r,i){var a=function(o){return e[i](o,n,t,i)};return r[i]=a,r},{}):{}}function qw(e,t,n){var r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function mJ(e,t,n,r){return t=t||{},n=n||{},r.reduce(function(i,a){var o=n[a],l=Gw(e,t[a],n[a],a);return i[a]=l||o,of(i,function(s){return!rt(s)})},{})}function Gw(e,t,n,r){t=t||{},n=n||{};var i=Ze(t);return i.reduce(function(a,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var c={eventKey:o,target:"parent"},u=Yw(e,s,l,c);a[o]=u!==void 0?B({},l,u):l}else{var f=_a(Ze(s).concat(Ze(l)));a[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=Yw(e,s[h],l[h],p);return d[h]=g!==void 0?B({},l[h],g):l[h],of(d,function(y){return!rt(y)})},{})}return of(a,function(d){return!rt(d)})},{})}function Yw(e,t,n,r){var i=function(s,c){if(typeof s[c]=="string")return s[c]==="all"||s[c]===r[c];if(Array.isArray(s[c])){var u=s[c].map(function(f){return"".concat(f)});return Kr(u,r[c])}return!1};e=Array.isArray(e)?e:[e];var a=e;r.childName&&(a=e.filter(function(s){return i(s,"childName")}));var o=a.filter(function(s){return i(s,"target")});if(!rt(o)){var l=o.filter(function(s){return i(s,"eventKey")});if(!rt(l))return l.reduce(function(s,c){var u=c&&Oe(c.mutation)?c.mutation:function(){},f=u(B({},t,n));return B({},s,f)},{})}}function Sg(e,t){var n=Array.isArray(t)&&t.reduce(function(r,i){var a,o=e[i],l=o&&o.type&&o.type.defaultEvents,s=Oe(l)?l(o.props):l;return r=Array.isArray(s)?(a=r).concat.apply(a,Rw(s)):r,r},[]);return n&&n.length?n:void 0}function sf(e){var t=e.match(xg);return t&&t[1]&&t[1].toLowerCase()}var Kw=function(e){return of(e,function(t,n){return xg.test(n)})},Zw=function(e){return Ww(e,function(t,n){return xg.test(n)})},Xw=function(e){return B(e,{nativeEvent:e})};function cf(e){return yJ(e)||vJ(e)||pJ(e)||gJ()}function gJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
191
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fJ(e,t){if(e){if(typeof e=="string")return _g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _g(e,t)}}function dJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hJ(e){if(Array.isArray(e))return _g(e)}function _g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xg=/^onGlobal(.*)$/;function Vw(e,t,n,r){var i=this,a=function(f){var d=function(){var p=f.reduce(function(g,y){if(y.target!==void 0){var _=Array.isArray(y.target)?Kr(y.target,t):"".concat(y.target)==="".concat(t);return _?g.concat(y):g}return g.concat(y)},[]);return n!==void 0&&t!=="parent"?p.filter(function(g){var y=g.eventKey,_=function(b){return b?"".concat(b)==="".concat(n):!0};return Array.isArray(y)?y.some(function(b){return _(b)}):_(y)}):p},h=d();return Array.isArray(h)&&h.reduce(function(p,g){return g?B(p,g.eventHandlers):p},{})},o=function(){if(Array.isArray(i.componentEvents)){var f;return Array.isArray(e.events)?(f=i.componentEvents).concat.apply(f,Rw(e.events)):i.componentEvents}return e.events},l=o(),s=l&&Oe(r)?r(a(l),t):void 0;if(!e.sharedEvents)return s;var c=e.sharedEvents.getEvents,u=e.sharedEvents.events&&c(a(e.sharedEvents.events),t);return B({},u,s)}function Hw(e,t,n,r){var i=this;if(rt(e))return{};r=r||this.baseProps;var a=function(u,f){var d=u.childName,h=u.target,p=u.key,g=f==="props"?r:i.state||{},y=d==null||!g[d]?g:g[d];return p==="parent"?y.parent:y[p]&&y[p][h]},o=function(u,f){var d=t==="parent"?u.childName:u.childName||n,h=u.target||t,p=function(b){return h==="parent"?"parent":u.eventKey==="all"?r[b]?_s(Ze(r[b]),"parent"):_s(Ze(r),"parent"):u.eventKey===void 0&&f==="parent"?r[b]?Ze(r[b]):Ze(r):u.eventKey!==void 0?u.eventKey:f},g=function(b,S){var O=i.state||{};if(!Oe(u.mutation))return O;var w=a({childName:S,key:b,target:h},"props"),A=a({childName:S,key:b,target:h},"state"),T=u.mutation(B({},w,A),r),k=O[S]||{},j=function(E){return E[b]&&E[b][h]&&delete E[b][h],E[b]&&!Ze(E[b]).length&&delete E[b],E},N=function(E){return h==="parent"?B(E,lf({},b,B(E[b],T))):B(E,lf({},b,B(E[b],lf({},h,T))))},M=function(E){return T?N(E):j(E)};return S!=null?B(O,lf({},S,M(k))):M(O)},y=function(b){var S=p(b);return Array.isArray(S)?S.reduce(function(O,w){return B(O,g(w,b))},{}):g(S,b)},_=d==="all"?_s(Ze(r),"parent"):d;return Array.isArray(_)?_.reduce(function(b,S){return B(b,y(S))},{}):y(_)},l=function(u,f){return Array.isArray(u)?u.reduce(function(d,h){return d=B({},d,o(h,f)),d},{}):o(u,f)},s=function(u){var f=function(p){return Oe(p.callback)&&p.callback},d=Array.isArray(u)?u.map(function(p){return f(p)}):[f(u)],h=d.filter(function(p){return p!==!1});return h.length?function(){return h.forEach(function(p){return p()})}:void 0},c=function(u,f,d,h){var p=e[h](u,f,d,i);if(!rt(p)){var g=s(p);i.setState(l(p,d),g)}};return Ze(e).reduce(function(u,f){return u[f]=c,u},{})}function Uw(e,t,n){return e?Ze(e).reduce(function(r,i){var a=function(o){return e[i](o,n,t,i)};return r[i]=a,r},{}):{}}function qw(e,t,n){var r=this.state||{};return n?r[n]&&r[n][e]&&r[n][e][t]:e==="parent"?r[e]&&r[e][t]||r[e]:r[e]&&r[e][t]}function mJ(e,t,n,r){return t=t||{},n=n||{},r.reduce(function(i,a){var o=n[a],l=Gw(e,t[a],n[a],a);return i[a]=l||o,of(i,function(s){return!rt(s)})},{})}function Gw(e,t,n,r){t=t||{},n=n||{};var i=Ze(t);return i.reduce(function(a,o){var l=n[o]||{},s=t[o]||{};if(o==="parent"){var c={eventKey:o,target:"parent"},u=Yw(e,s,l,c);a[o]=u!==void 0?B({},l,u):l}else{var f=_a(Ze(s).concat(Ze(l)));a[o]=f.reduce(function(d,h){var p={eventKey:o,target:h,childName:r},g=Yw(e,s[h],l[h],p);return d[h]=g!==void 0?B({},l[h],g):l[h],of(d,function(y){return!rt(y)})},{})}return of(a,function(d){return!rt(d)})},{})}function Yw(e,t,n,r){var i=function(s,c){if(typeof s[c]=="string")return s[c]==="all"||s[c]===r[c];if(Array.isArray(s[c])){var u=s[c].map(function(f){return"".concat(f)});return Kr(u,r[c])}return!1};e=Array.isArray(e)?e:[e];var a=e;r.childName&&(a=e.filter(function(s){return i(s,"childName")}));var o=a.filter(function(s){return i(s,"target")});if(!rt(o)){var l=o.filter(function(s){return i(s,"eventKey")});if(!rt(l))return l.reduce(function(s,c){var u=c&&Oe(c.mutation)?c.mutation:function(){},f=u(B({},t,n));return B({},s,f)},{})}}function Sg(e,t){var n=Array.isArray(t)&&t.reduce(function(r,i){var a,o=e[i],l=o&&o.type&&o.type.defaultEvents,s=Oe(l)?l(o.props):l;return r=Array.isArray(s)?(a=r).concat.apply(a,Rw(s)):r,r},[]);return n&&n.length?n:void 0}function sf(e){var t=e.match(xg);return t&&t[1]&&t[1].toLowerCase()}var Kw=function(e){return of(e,function(t,n){return xg.test(n)})},Zw=function(e){return Ww(e,function(t,n){return xg.test(n)})},Xw=function(e){return B(e,{nativeEvent:e})};function cf(e){return yJ(e)||vJ(e)||pJ(e)||gJ()}function gJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
192
192
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pJ(e,t){if(e){if(typeof e=="string")return wg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wg(e,t)}}function vJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yJ(e){if(Array.isArray(e))return wg(e)}function wg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _J(e,t,n){return t&&Jw(e.prototype,t),n&&Jw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xJ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Og(e,t)}function Og(e,t){return Og=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Og(e,t)}function SJ(e){var t=OJ();return function(){var r=ff(e),i;if(t){var a=ff(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return wJ(this,i)}}function wJ(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uf(e)}function uf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OJ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ff(e){return ff=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ff(e)}var CJ=function(e){return!ba(e._x)&&!ba(e._y)},AJ=[{name:"parent",index:"parent"},{name:"data"},{name:"labels"}];function xa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=function(r){xJ(a,r);var i=SJ(a);function a(o){var l;return bJ(this,a),l=i.call(this,o),l.state={},l.getEventState=qw.bind(uf(l)),l.getScopedEvents=Hw.bind(uf(l)),l.getEvents=function(s,c,u){return Vw.call(uf(l),s,c,u,l.getScopedEvents)},l.externalMutations=l.getExternalMutations(l.props),l.calculatedState=l.getStateChanges(l.props),l.globalEvents={},l.prevGlobalEventKeys=[],l.boundGlobalEvents={},l.cacheValues(l.getCalculatedValues(o)),l}return _J(a,[{key:"shouldComponentUpdate",value:function(l){var s=this.getExternalMutations(l),c=this.props.animating||this.props.animate,u=!fn(s,this.externalMutations);if(c||u)return this.cacheValues(this.getCalculatedValues(l)),this.externalMutations=s,this.applyExternalMutations(l,s),!0;var f=this.getStateChanges(l);return fn(this.calculatedState,f)?fn(this.props,l)?!1:(this.cacheValues(this.getCalculatedValues(l)),!0):(this.cacheValues(this.getCalculatedValues(l)),!0)}},{key:"componentDidMount",value:function(){var l=this,s=Ze(this.globalEvents);s.forEach(function(c){return l.addGlobalListener(c)}),this.prevGlobalEventKeys=s}},{key:"componentDidUpdate",value:function(l){var s=this,c=this.getStateChanges(l);this.calculatedState=c;var u=Ze(this.globalEvents),f=af(this.prevGlobalEventKeys,u);f.forEach(function(h){return s.removeGlobalListener(h)});var d=af(u,this.prevGlobalEventKeys);d.forEach(function(h){return s.addGlobalListener(h)}),this.prevGlobalEventKeys=u}},{key:"componentWillUnmount",value:function(){var l=this;this.prevGlobalEventKeys.forEach(function(s){return l.removeGlobalListener(s)})}},{key:"addGlobalListener",value:function(l){var s=this,c=function(u){var f=s.globalEvents[l];return f&&f(Xw(u))};this.boundGlobalEvents[l]=c,window.addEventListener(sf(l),c)}},{key:"removeGlobalListener",value:function(l){window.removeEventListener(sf(l),this.boundGlobalEvents[l])}},{key:"getStateChanges",value:function(l){var s=this;if(!this.hasEvents)return{};var c=function(d,h){var p=ae({},s.getEventState(d,h),s.getSharedEventState(d,h));return rt(p)?void 0:p},u=t.components||AJ,f=u.map(function(d){if(!(!l.standalone&&d.name==="parent"))return d.index!==void 0?c(d.index,d.name):s.dataKeys.map(function(h){return c(h,d.name)}).filter(Boolean)}).filter(Boolean);return f}},{key:"applyExternalMutations",value:function(l,s){if(!rt(s)){var c=l.externalEventMutations.reduce(function(f,d){return f=Oe(d.callback)?f.concat(d.callback):f,f},[]),u=c.length?function(){c.forEach(function(f){return f()})}:void 0;this.setState(s,u)}}},{key:"getCalculatedValues",value:function(l){var s=l.sharedEvents,c=e.expectedComponents,u=Sg(l,c),f=s&&Oe(s.getEventState)?s.getEventState:function(){},d=this.getBaseProps(l,f),h=Ze(d).filter(function(y){return y!=="parent"}),p=l.events||l.sharedEvents||u,g=this.getAllEvents(l);return{componentEvents:u,getSharedEventState:f,baseProps:d,dataKeys:h,hasEvents:p,events:g}}},{key:"getExternalMutations",value:function(l){var s=l.sharedEvents,c=l.externalEventMutations;return rt(c)||s?void 0:Gw(c,this.baseProps,this.state)}},{key:"cacheValues",value:function(l){var s=this;Ze(l).forEach(function(c){s[c]=l[c]})}},{key:"getBaseProps",value:function(l,s){s=s||this.getSharedEventState.bind(this);var c=s("parent","parent"),u=this.getEventState("parent","parent"),f=ae({},u,c),d=f.parentControlledProps,h=d?rs(f,d):{},p=ae({},h,l);return typeof e.getBaseProps=="function"?e.getBaseProps(p):{}}},{key:"getAllEvents",value:function(l){if(Array.isArray(this.componentEvents)){var s;return Array.isArray(l.events)?(s=this.componentEvents).concat.apply(s,cf(l.events)):this.componentEvents}return l.events}},{key:"getComponentProps",value:function(l,s,c){var u=this.props.name||e.role,f=this.dataKeys&&this.dataKeys[c]||c,d="".concat(u,"-").concat(s,"-").concat(f),h=this.baseProps[f]&&this.baseProps[f][s]||this.baseProps[f];if(!(!h&&!this.hasEvents)){if(this.hasEvents){var p=this.getEvents(this.props,s,f),g=ae({index:c,key:d},this.getEventState(f,s),this.getSharedEventState(f,s),l.props,h,{id:d}),y=ae({},Uw(p,f,g),g.events);return B({},g,{events:y})}return ae({index:c,key:d},l.props,h,{id:d})}}},{key:"renderContainer",value:function(l,s){var c=l.type&&l.type.role==="container",u=c?this.getComponentProps(l,"parent","parent"):{};return u.events&&(this.globalEvents=Kw(u.events),u.events=Zw(u.events)),x.cloneElement(l,u,s)}},{key:"animateComponent",value:function(l,s){var c,u=typeof l.animate=="object"&&((c=l.animate)===null||c===void 0?void 0:c.animationWhitelist)||s,f=this.constructor;return x.createElement(qu,{animate:l.animate,animationWhitelist:u},x.createElement(f,l))}},{key:"renderContinuousData",value:function(l){var s=this,c=l.dataComponent,u=l.labelComponent,f=l.groupComponent,d=_s(this.dataKeys,"all"),h=d.reduce(function(y,_){var b=s.getComponentProps(u,"labels",_);return b&&b.text!==void 0&&b.text!==null&&(y=y.concat(x.cloneElement(u,b))),y},[]),p=this.getComponentProps(c,"data","all"),g=[x.cloneElement(c,p)].concat(cf(h));return this.renderContainer(f,g)}},{key:"renderData",value:function(l){var s=this,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:CJ,u=l.dataComponent,f=l.labelComponent,d=l.groupComponent,h=this.dataKeys.reduce(function(y,_,b){var S=s.getComponentProps(u,"data",b);return c(S.datum)&&y.push(x.cloneElement(u,S)),y},[]),p=this.dataKeys.map(function(y,_){var b=s.getComponentProps(f,"labels",_);if(b.text!==void 0&&b.text!==null)return x.cloneElement(f,b)}).filter(Boolean),g=[].concat(cf(h),cf(p));return this.renderContainer(d,g)}}]),a}(e);return n}var TJ=nu;function kJ(e,t,n,r){return TJ(e,function(i,a,o){t(r,n(i),a,o)}),r}var EJ=kJ,PJ=EJ;function jJ(e,t){return function(n,r){return PJ(n,e,t(r),{})}}var MJ=jJ,DJ=M1,IJ=MJ,LJ=Ti,$J=Object.prototype,FJ=$J.toString,NJ=IJ(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=FJ.call(t)),e[t]=n},DJ(LJ)),zJ=NJ;const Qw=Ae(zJ);var BJ=Gr,WJ=sr,RJ="[object Date]";function VJ(e){return WJ(e)&&BJ(e)==RJ}var HJ=VJ,UJ=HJ,qJ=Bl,eO=Wl,tO=eO&&eO.isDate,GJ=tO?qJ(tO):UJ,YJ=GJ;const nO=Ae(YJ);var KJ=la;function ZJ(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],l=t?t(o):o;if(!n||!KJ(l,s)){var s=l;a[i++]=o===0?0:o}}return a}var XJ=ZJ,JJ=XJ;function QJ(e){return e&&e.length?JJ(e):[]}var eQ=QJ;const tQ=Ae(eQ);function nQ(e){return e===void 0}var rQ=nQ;const iQ=Ae(rQ);var aQ=Gm;function oQ(e,t){return aQ(e,t)}var lQ=oQ;const sQ=Ae(lQ);function cQ(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var uQ=cQ;const fQ=Ae(uQ);var dQ="@@__IMMUTABLE_ITERABLE__@@",hQ="@@__IMMUTABLE_RECORD__@@",mQ="@@__IMMUTABLE_LIST__@@";function xs(e){return!!(e&&e[dQ])}function gQ(e){return!!(e&&e[hQ])}function pQ(e){return xs(e)||gQ(e)}function vQ(e){return!!(e&&e[mQ])}function rO(e,t){return xs(e)?e.reduce(function(n,r,i){return t&&t[i]&&(r=rO(r)),n[i]=r,n},vQ(e)?[]:{}):e}function Ss(e){return xQ(e)||_Q(e)||bQ(e)||yQ()}function yQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
193
193
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bQ(e,t){if(e){if(typeof e=="string")return Cg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Cg(e,t)}}function _Q(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xQ(e){if(Array.isArray(e))return Cg(e)}function Cg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ag(e){var t={errorX:!0,errorY:!0};return pQ(e)?rO(e,t):e}function iO(e){return xs(e)?e.size:e.length}function aO(e,t){var n=Qe(e.domain)?e.domain[t]:e.domain,r=n||Wn(e,t).domain(),i=e.samples||1,a=Math.max.apply(Math,Ss(r)),o=Math.min.apply(Math,Ss(r)),l=(a-o)/i,s=bs(o,a,l);return fQ(s)===a?s:s.concat(a)}function oO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ascending";if(!t)return e;(t==="x"||t==="y")&&(t="_".concat(t));var r=n==="ascending"?"asc":"desc";return bo(e,t,r)}function SQ(e,t){var n=1/Number.MAX_SAFE_INTEGER,r={x:Lu(t,"x"),y:Lu(t,"y")};if(r.x!=="log"&&r.y!=="log")return e;var i=function(o,l){return r[l]==="log"?o["_".concat(l)]!==0:!0},a=function(o){var l=i(o,"x")?o._x:n,s=i(o,"y")?o._y:n,c=i(o,"y0")?o._y0:n;return B({},o,{_x:l,_y:s,_y0:c})};return e.map(function(o){return i(o,"x")&&i(o,"y")&&i(o,"y0")?o:a(o)})}function wQ(e){return Oe(e)?e:e==null?function(){}:L5(e)}function OQ(e,t){var n=!!e.eventKey,r=wQ(e.eventKey);return t.map(function(i,a){if(i.eventKey!==void 0)return i;if(n){var o=r(i,a);return o!==void 0?B({eventKey:o},i):i}return i})}function CQ(e,t,n){var r=function(p){return p!==void 0},i=dn(t.x),a=Nn(t.x),o=dn(t.y),l=Nn(t.y),s=function(p){return function(g){return r(g)&&g<p}},c=function(p){return function(g){return r(g)&&g>p}},u=s(i),f=s(o),d=c(a),h=c(l);return e.map(function(p){var g=p._x,y=p._y,_=p._y0,b=p._y1;(u(g)||d(g))&&(g=null);var S=r(_)?_:n,O=r(b)?b:y;return r(O)?(!r(S)&&(f(O)||h(O))&&(y=null),(f(S)&&f(O)||h(S)&&h(O))&&(y=_=b=null),f(S)&&!f(O)&&(_=o),h(S)&&!h(O)&&(_=l),B({},p,Ww({_x:g,_y:y,_y0:_,_y1:b},iQ))):p})}function Tg(e,t){var n=lO(e,t),r=sO(e,t),i=kQ(e,t),a=_a([].concat(Ss(n),Ss(r),Ss(i)));return a.length===0?null:a.reduce(function(o,l,s){return o[l]=s+1,o},{})}function AQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=iO(e);if(r>t){var i=Math.pow(2,Math.ceil(Math.log2(r/t)));return e.filter(function(a,o){return(o+n)%i===0})}return e}function kg(e,t,n){var r=Array.isArray(e)||xs(e);if(!r||iO(e)<1)return[];var i=["x","y","y0"];n=Array.isArray(n)?n:i;var a=function(d){return _u(t[d]!==void 0?t[d]:d)},o=n.reduce(function(d,h){return d[h]=a(h),d},{}),l=sQ(n,i)&&t.x==="_x"&&t.y==="_y"&&t.y0==="_y0",s;l===!1&&(s={x:n.indexOf("x")!==-1?Tg(t,"x"):void 0,y:n.indexOf("y")!==-1?Tg(t,"y"):void 0,y0:n.indexOf("y0")!==-1?Tg(t,"y"):void 0});var c=l?e:e.reduce(function(d,h,p){h=Ag(h);var g={x:p,y:h},y=n.reduce(function(b,S){var O=o[S](h),w=O!==void 0?O:g[S];return w!==void 0&&(typeof w=="string"&&s[S]?(b["".concat(S,"Name")]=w,b["_".concat(S)]=s[S][w]):b["_".concat(S)]=w),b},{}),_=B({},y,h);return rt(_)||d.push(_),d},[]),u=oO(c,t.sortKey,t.sortOrder),f=SQ(u,t);return OQ(t,f)}function TQ(e){var t=aO(e,"x"),n=aO(e,"y"),r=t.map(function(i,a){return{x:i,y:n[a]}});return r}function Eg(e,t){return e.categories&&!Array.isArray(e.categories)?e.categories[t]:e.categories}function Gt(e){return e.data?kg(e.data,e):kg(TQ(e),e)}function lO(e,t){var n=e.tickValues,r=e.tickFormat,i;return!n||!Array.isArray(n)&&!n[t]?i=r&&Array.isArray(r)?r:[]:i=n[t]||n,i.filter(function(a){return typeof a=="string"})}function sO(e,t){if(!e.categories)return[];var n=Eg(e,t),r=n&&n.filter(function(i){return typeof i=="string"});return r?M2(r):[]}function kQ(e,t){var n=Array.isArray(e.data)||xs(e.data);if(!n)return[];var r=e[t]===void 0?t:e[t],i=_u(r),a=e.data.reduce(function(s,c){return s.push(Ag(c)),s},[]),o=oO(a,e.sortKey,e.sortOrder),l=o.reduce(function(s,c){return c=Ag(c),s.push(i(c)),s},[]).filter(function(s){return typeof s=="string"});return l.reduce(function(s,c){return c!=null&&s.indexOf(c)===-1&&s.push(c),s},[])}function jo(e){var t=function(a){return a&&a.type?a.type.role:""},n=t(e);if(n==="portal"){var r=x.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var i=["area","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return Kr(i,n)}function cO(e){return MQ(e)||jQ(e)||PQ(e)||EQ()}function EQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
194
194
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function PQ(e,t){if(e){if(typeof e=="string")return Pg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pg(e,t)}}function jQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function MQ(e){if(Array.isArray(e))return Pg(e)}function Pg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DQ(e,t,n){var r=Lu(t,n);if(r!=="log")return e;var i=function(a){var o=a[0]<0||a[1]<0?-1/Number.MAX_SAFE_INTEGER:1/Number.MAX_SAFE_INTEGER,l=a[0]===0?o:a[0],s=a[1]===0?o:a[1];return[l,s]};return i(e)}function IQ(e,t){var n=function(r){return Array.isArray(r)?{left:r[0],right:r[1]}:{left:r,right:r}};return Qe(e.domainPadding)?n(e.domainPadding[t]):n(e.domainPadding)}function LQ(e,t){var n="_".concat(t);return ns(e).map(function(r){return r[n]&&r[n][1]!==void 0?r[n][1]:r[n]})}function uO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"min",r=function(l){return n==="max"?Math.max.apply(Math,cO(l)):Math.min.apply(Math,cO(l))},i=n==="max"?-1/0:1/0,a=!1,o=ns(e).reduce(function(l,s){var c=s["_".concat(t,"0")]!==void 0?s["_".concat(t,"0")]:s["_".concat(t)],u=s["_".concat(t,"1")]!==void 0?s["_".concat(t,"1")]:s["_".concat(t)],f=r([c,u]);return a=a||c instanceof Date||u instanceof Date,r([l,f])},i);return a?new Date(o):o}function $Q(e,t,n){if(!t.domainPadding)return e;var r=Oa(t,n),i=wa(t,n),a=IQ(t,n);if(!a.left&&!a.right)return e;var o=dn(e),l=Nn(e),s=bU(n,t.horizontal),c=xt(t,s),u=Math.abs(c[0]-c[1]),f=Math.max(u-a.left-a.right,1),d=Math.abs(l.valueOf()-o.valueOf())/f*u,h={left:d*a.left/u,right:d*a.right/u},p={min:o.valueOf()-h.left,max:l.valueOf()+h.right},g=Qe(t.singleQuadrantDomainPadding)?t.singleQuadrantDomainPadding[n]:t.singleQuadrantDomainPadding,y=o>=0&&p.min<=0||l<=0&&p.max>=0,_=function(A,T){var k=T==="min"&&o>=0&&A<=0||T==="max"&&l<=0&&A>=0;return k?0:A};if(y&&g!==!1){var b={left:Math.abs(l-o)*a.left/u,right:Math.abs(l-o)*a.right/u},S={min:_(o.valueOf()-b.left,"min"),max:_(l.valueOf()+b.right,"max")},O={left:Math.abs(S.max-S.min)*a.left/u,right:Math.abs(S.max-S.min)*a.right/u};p={min:_(o.valueOf()-O.left,"min"),max:_(l.valueOf()+O.right,"max")}}var w={min:r!==void 0?r:p.min,max:i!==void 0?i:p.max};return o instanceof Date||l instanceof Date?oi(new Date(w.min),new Date(w.max)):oi(w.min,w.max)}function jg(e,t){return e=Oe(e)?e:Dg,t=Oe(t)?t:Mg,function(n,r){var i=Ig(n,r);if(i)return t(i,n,r);var a=Eg(n,r),o=a?FQ(n,r,a):e(n,r);return o?t(o,n,r):void 0}}function Mg(e,t,n){return DQ($Q(e,t,n),t,n)}function Sa(e,t){return jg()(e,t)}function FQ(e,t,n){n=n||Eg(e,t);var r=e.polar,i=e.startAngle,a=i===void 0?0:i,o=e.endAngle,l=o===void 0?360:o;if(n){var s=Oa(e,t),c=wa(e,t),u=Su(n)?sO(e,t):[],f=u.length===0?null:u.reduce(function(y,_,b){return y[_]=b+1,y},{}),d=f?n.map(function(y){return f[y]}):n,h=s!==void 0?s:dn(d),p=c!==void 0?c:Nn(d),g=oi(h,p);return r&&t==="x"&&Math.abs(a-l)===360?$g(g,d):g}}function Dg(e,t,n){n=n||Gt(e);var r=e.polar,i=e.startAngle,a=i===void 0?0:i,o=e.endAngle,l=o===void 0?360:o,s=Oa(e,t),c=wa(e,t);if(n.length<1)return s!==void 0&&c!==void 0?oi(s,c):void 0;var u=s!==void 0?s:uO(n,t,"min"),f=c!==void 0?c:uO(n,t,"max"),d=oi(u,f);return r&&t==="x"&&Math.abs(a-l)===360?$g(d,LQ(n,t)):d}function oi(e,t){var n=function(r){var i=r===0?2*Math.pow(10,-10):Math.pow(10,-10),a=1,o=r instanceof Date?new Date(Number(r)-a):Number(r)-i,l=r instanceof Date?new Date(Number(r)+a):Number(r)+i;return r===0?[0,l]:[o,l]};return Number(e)===Number(t)?n(t):[e,t]}function Ig(e,t){var n=Oa(e,t),r=wa(e,t);if(Qe(e.domain)&&e.domain[t])return e.domain[t];if(Array.isArray(e.domain))return e.domain;if(n!==void 0&&r!==void 0)return oi(n,r)}function Lg(e,t){var n=Ig(e,t);if(n)return n;var r=Gt(e),i=r.reduce(function(s,c){return c._y0<s?c._y0:s},1/0),a=function(s){if(t==="x")return s;var c=i!==1/0?i:0,u=wa(e,t),f=Oa(e,t),d=u!==void 0?u:Nn(s,c),h=f!==void 0?f:dn(s,c);return oi(h,d)},o=function(){return Dg(e,t,r)},l=function(s){return Mg(a(s),e,t)};return jg(o,l)(e,t)}function wa(e,t){return Qe(e.maxDomain)&&e.maxDomain[t]!==void 0?e.maxDomain[t]:typeof e.maxDomain=="number"||nO(e.maxDomain)?e.maxDomain:void 0}function Oa(e,t){return Qe(e.minDomain)&&e.minDomain[t]!==void 0?e.minDomain[t]:typeof e.minDomain=="number"||nO(e.minDomain)?e.minDomain:void 0}function $g(e,t){var n=tQ(t.sort(function(i,a){return i-a})),r=n[1]-n[0];return[e[0],e[1]+r]}function fO(e){var t=function(a){return a&&a.type?a.type.role:""},n=t(e);if(n==="portal"){var r=x.Children.toArray(e.props.children);n=r.length?t(r[0]):""}var i=["area","axis","bar","boxplot","candlestick","errorbar","group","histogram","line","pie","scatter","stack","voronoi"];return Kr(i,n)}function Mo(e){return WQ(e)||BQ(e)||zQ(e)||NQ()}function NQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
195
195
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zQ(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function BQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WQ(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rn(e){var t=e.dependentAxis;return t?"y":"x"}function dO(e,t){t=t||sa;var n=function(r){return r.reduce(function(i,a){return a.type&&a.type.role==="axis"&&t(a)?i.concat(a):a.props&&a.props.children?i.concat(n(x.Children.toArray(a.props.children))):i},[])};return n(e)}function hO(e,t){var n=function(r){var i=r.type.getAxis(r.props);return i===t};return dO(e,n)[0]}function mO(e,t){var n=function(i){return t==="dependent"?i.props.dependentAxis:!i.props.dependentAxis},r=function(i){return i.reduce(function(a,o){if(o.type&&o.type.role==="axis"&&n(o))return a.concat(o);if(o.props&&o.props.children){var l=r(x.Children.toArray(o.props.children));return l.length>0?a.concat(o):a}return a},[])};return r(e)}function gO(e){var t=function(n){var r=Math.min.apply(Math,Mo(n)),i=Math.max.apply(Math,Mo(n));return i<0?i:Math.max(0,r)};return{x:Fn(e.x)?new Date(Math.min.apply(Math,Mo(e.x))):t(e.x),y:Fn(e.y)?new Date(Math.min.apply(Math,Mo(e.y))):t(e.y)}}function pO(e,t){var n=function(){return e<=0&&Math.max.apply(Math,Mo(t))<=0?"negative":"positive"};return Fn(t)?"positive":n()}function df(e){var t=e.orientation||(e.dependentAxis?"left":"bottom"),n={top:!1,bottom:!1,left:!0,right:!0};return n[t]}function hf(e){return e.tickValues!==void 0&&Su(e.tickValues)}function RQ(e){var t=e.tickValues,n=Rn(e),r=e.stringMap&&e.stringMap[n],i=t&&!Fn(t)?function(c){return c}:void 0;if(!r)return hf(e)?function(c,u){return t[u]}:i;var a=r&&Qw(r),o=bo(vu(r),function(c){return c}),l=o.map(function(c){return a[c]}),s=[""].concat(Mo(l),[""]);return function(c){return s[c]}}function VQ(e){var t=Rn(e),n=e.stringMap&&e.stringMap[t],r=Array.isArray(e.categories)?e.categories:e.categories&&e.categories[t],i=r&&CU(r)?r.map(function(o){return n[o]}):void 0,a=n&&vu(n);return i&&i.length!==0?i:a}function Ng(e){var t=e.tickValues,n=e.tickFormat,r=Rn(e),i=e.stringMap&&e.stringMap[r],a=function(){if(!(!n||!Array.isArray(n)))return Su(n)?n.map(function(c,u){return u}):n},o=t;i&&(o=VQ(e)),t&&Su(t)&&(o=i?t.map(function(c){return i[c]}):bs(1,t.length+1));var l=o?_a(o):a(),s=function(c){var u=[],f=e.domain&&e.domain[r]||e.domain;if(c)return c.forEach(function(d,h){Array.isArray(f)?d>=dn(f)&&d<=Nn(f)&&u.push({value:d,index:h}):u.push({value:d,index:h})}),u};return Array.isArray(l)&&l.length?s(l):void 0}function vO(e,t){var n=e.tickFormat,r=Rn(e),i=e.stringMap&&e.stringMap[r];if(n){if(n&&Array.isArray(n)){var l=Ng(e),s=l==null?void 0:l.map(function(f){return f.index}),c=n.filter(function(f,d){return s==null?void 0:s.includes(d)});return function(f,d){return c[d]}}else if(n&&Oe(n)){var u=function(f,d,h){var p=Qw(i),g=h.map(function(y){return p[y]});return e.tickFormat(p[f],d,g)};return i?u:n}}else{var a=RQ(e),o=t.tickFormat&&Oe(t.tickFormat)?t.tickFormat():function(f){return f};return a||o}return function(f){return f}}function yO(e,t){if(!t||!Array.isArray(e)||e.length<=t)return e;var n=Math.floor(e.length/t);return e.filter(function(r,i){return i%n===0})}function bO(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e.tickCount,i=Ng(e),a=i?i.map(function(f){return f.value}):void 0;if(a)return yO(a,r);if(t.ticks&&Oe(t.ticks)){var o=r||5,l=t.ticks(o),s=Array.isArray(l)&&l.length?l:t.domain(),c=yO(s,r);if(n){var u=Kr(c,0)?_s(c,0):c;return u.length?u:c}return c}return t.domain()}function HQ(e,t){var n=e.polar,r=e.startAngle,i=r===void 0?0:r,a=e.endAngle,o=a===void 0?360:a,l=Ng(e),s=l?l.map(function(S){return S.value}):void 0;if(Array.isArray(s)){var c=Oa(e,t),u=wa(e,t),f=hf(e),d=s.map(function(S){return Number(S)}),h=f?1:dn(d),p=f?s.length:Nn(d),g=c!==void 0?c:h,y=u!==void 0?u:p,_=oi(g,y),b=n&&t==="x"&&Math.abs(i-o)===360?$g(_,d):_;return df(e)&&!n&&b.reverse(),b}}function Do(e,t){var n=Rn(e);if(!(t&&t!==n))return jg(HQ)(e,n)}function _O(e,t){if(e.axisValue){var n=t==="x"?"y":"x",r=uo(e.scale)&&Oe(e.scale[n])?e.scale[n]:void 0;if(r){var i=t==="x"?"y":"x",a=uo(e.stringMap)&&e.stringMap[i],o=a&&typeof e.axisValue=="string"?a[e.axisValue]:e.axisValue;return r(o)}}}function mf(e,t){if(!uo(e.theme))return St(e,t,"axis");var n="axis";if(e.dependentAxis&&e.theme.dependentAxis?n="dependentAxis":!e.dependentAxis&&e.theme.independentAxis&&(n="independentAxis"),n==="axis")return St(e,t,"axis");var r=ae({},e.theme[n],e.theme.axis),i=B({},e.theme,{axis:r});return St(B({},e,{theme:i}),t,"axis")}function xO(){return{onLoad:{duration:2e3},onExit:{duration:500},onEnter:{duration:500}}}function SO(){return{onLoad:{duration:2e3,before:function(){return{_y:0,_y1:0,_y0:0}},after:function(e){return{_y:e._y,_y1:e._y1,_y0:e._y0}}},onExit:{duration:500,before:function(e,t,n){var r=function(i){var a=t===0?n[t+1]:n[t-1];return a[i]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}}},onEnter:{duration:500,before:function(e,t,n){var r=function(i){var a=t===0?n[t+1]:n[t-1];return a[i]};return{_x:r("_x"),_y:r("_y"),_y0:r("_y0")}},after:function(e){return{_x:e._x,_y:e._y,_y1:e._y1,_y0:e._y0}}}}}function UQ(){return{onLoad:{duration:2e3,before:function(){return{opacity:0}},after:function(e){return e}},onExit:{duration:600,before:function(){return{opacity:0}}},onEnter:{duration:600,before:function(){return{opacity:0}},after:function(e){return e}}}}function wO(e){var t=x.useRef();return x.useEffect(function(){t.current=e}),t.current}var qQ=Ym;function GQ(e,t){var n;return qQ(e,function(r,i,a){return n=t(r,i,a),!n}),!!n}var YQ=GQ,KQ=f5,ZQ=Yr,XQ=YQ,JQ=Nt,QQ=Uc;function eee(e,t,n){var r=JQ(e)?KQ:XQ;return n&&QQ(e,t,n)&&(t=void 0),r(e,ZQ(t))}var tee=eee;const OO=Ae(tee);function CO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CO(Object(n),!0).forEach(function(r){nee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ree(e,t){return lee(e)||oee(e,t)||aee(e,t)||iee()}function iee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
196
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aee(e,t){if(e){if(typeof e=="string")return TO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TO(e,t)}}function TO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function lee(e){if(Array.isArray(e))return e}var see={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},kO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:see,t=x.useState(e),n=ree(t,2),r=n[0],i=n[1],a=x.useCallback(function(c){i(function(u){return AO(AO({},u),c)})},[i]),o=x.useCallback(function(c,u,f){if(!(c!=null&&c.animate))return u.props.animate;var d=function(){var _=r&&r.childrenTransitions;return _=j2(_)?_[f]:_,ae({childrenTransitions:_},r)},h=c.animate&&c.animate.getTransitions,p=d(),g=c.animate&&c.animate.parentState||p;if(!h){var y=bw(c,p,function(_){return a(_)});h=function(_){return y(_,f)}}return ae({getTransitions:h,parentState:g},c.animate,u.props.animate)},[r,a]),l=x.useCallback(function(c,u){if(c!=null&&c.animate)if(c.animate.parentState){var f=c.animate.parentState.nodesWillExit,d=f?c:null,h=ae({oldProps:d,nextProps:u},c.animate.parentState);a(h)}else{var p=x.Children.toArray(c.children),g=x.Children.toArray(u.children),y=function(T){var k=function(P){return P.type&&P.type.continuous};return Array.isArray(T)?OO(T,k):k(T)},_=!c.polar&&OO(p,function(T){return y(T)||T.props.children&&y(T.props.children)}),b=yw(p,g),S=b.nodesWillExit,O=b.nodesWillEnter,w=b.childrenTransitions,A=b.nodesShouldEnter;a({nodesWillExit:S,nodesWillEnter:O,nodesShouldEnter:A,childrenTransitions:j2(w)?w[0]:w,oldProps:S?c:void 0,nextProps:u,continuous:_})}},[a]),s=x.useCallback(function(c){return r&&r.nodesWillExit&&r.oldProps||c},[r]);return{state:r,setState:a,getAnimationProps:o,setAnimationState:l,getProps:s}};const zg=Math.PI,Bg=2*zg,Ca=1e-6,cee=Bg-Ca;function EO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function uee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return EO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class PO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?EO:uee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,c=i-n,u=o-t,f=l-n,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Ca)if(!(Math.abs(f*s-c*u)>Ca)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-l,g=s*s+c*c,y=h*h+p*p,_=Math.sqrt(g),b=Math.sqrt(d),S=a*Math.tan((zg-Math.acos((g+d-y)/(2*_*b)))/2),O=S/b,w=S/_;Math.abs(O-1)>Ca&&this._append`L${t+O*u},${n+O*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=t+w*s},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),c=t+l,u=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ca||Math.abs(this._y1-u)>Ca)&&this._append`L${c},${u}`,r&&(d<0&&(d=d%Bg+Bg),d>cee?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:d>Ca&&this._append`A${r},${r},0,${+(d>=zg)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Io(){return new PO}Io.prototype=PO.prototype;function Pe(e){return function(){return e}}const jO=Math.abs,Yt=Math.atan2,li=Math.cos,fee=Math.max,Lo=Math.min,gn=Math.sin,it=Math.sqrt,Kt=1e-12,$i=Math.PI,gf=$i/2,Fi=2*$i;function dee(e){return e>1?0:e<-1?$i:Math.acos(e)}function MO(e){return e>=1?gf:e<=-1?-gf:Math.asin(e)}function hee(e){return e.innerRadius}function mee(e){return e.outerRadius}function gee(e){return e.startAngle}function pee(e){return e.endAngle}function vee(e){return e&&e.padAngle}function yee(e,t,n,r,i,a,o,l){var s=n-e,c=r-t,u=o-i,f=l-a,d=f*s-u*c;if(!(d*d<Kt))return d=(u*(t-a)-f*(e-i))/d,[e+d*s,t+d*c]}function pf(e,t,n,r,i,a,o){var l=e-n,s=t-r,c=(o?a:-a)/it(l*l+s*s),u=c*s,f=-c*l,d=e+u,h=t+f,p=n+u,g=r+f,y=(d+p)/2,_=(h+g)/2,b=p-d,S=g-h,O=b*b+S*S,w=i-a,A=d*g-p*h,T=(S<0?-1:1)*it(fee(0,w*w*O-A*A)),k=(A*S-b*T)/O,P=(-A*b-S*T)/O,N=(A*S+b*T)/O,M=(-A*b+S*T)/O,j=k-y,D=P-_,I=N-y,W=M-_;return j*j+D*D>I*I+W*W&&(k=N,P=M),{cx:k,cy:P,x01:-u,y01:-f,x11:k*(i/w-1),y11:P*(i/w-1)}}function Wg(){var e=hee,t=mee,n=Pe(0),r=null,i=gee,a=pee,o=vee,l=null;function s(){var c,u,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-gf,p=a.apply(this,arguments)-gf,g=jO(p-h),y=p>h;if(l||(l=c=Io()),d<f&&(u=d,d=f,f=u),!(d>Kt))l.moveTo(0,0);else if(g>Fi-Kt)l.moveTo(d*li(h),d*gn(h)),l.arc(0,0,d,h,p,!y),f>Kt&&(l.moveTo(f*li(p),f*gn(p)),l.arc(0,0,f,p,h,y));else{var _=h,b=p,S=h,O=p,w=g,A=g,T=o.apply(this,arguments)/2,k=T>Kt&&(r?+r.apply(this,arguments):it(f*f+d*d)),P=Lo(jO(d-f)/2,+n.apply(this,arguments)),N=P,M=P,j,D;if(k>Kt){var I=MO(k/f*gn(T)),W=MO(k/d*gn(T));(w-=I*2)>Kt?(I*=y?1:-1,S+=I,O-=I):(w=0,S=O=(h+p)/2),(A-=W*2)>Kt?(W*=y?1:-1,_+=W,b-=W):(A=0,_=b=(h+p)/2)}var X=d*li(_),ne=d*gn(_),re=f*li(O),Z=f*gn(O);if(P>Kt){var R=d*li(b),J=d*gn(b),U=f*li(S),Y=f*gn(S),G;if(g<$i&&(G=yee(X,ne,U,Y,R,J,re,Z))){var ie=X-G[0],z=ne-G[1],se=R-G[0],K=J-G[1],Q=1/gn(dee((ie*se+z*K)/(it(ie*ie+z*z)*it(se*se+K*K)))/2),te=it(G[0]*G[0]+G[1]*G[1]);N=Lo(P,(f-te)/(Q-1)),M=Lo(P,(d-te)/(Q+1))}}A>Kt?M>Kt?(j=pf(U,Y,X,ne,d,M,y),D=pf(R,J,re,Z,d,M,y),l.moveTo(j.cx+j.x01,j.cy+j.y01),M<P?l.arc(j.cx,j.cy,M,Yt(j.y01,j.x01),Yt(D.y01,D.x01),!y):(l.arc(j.cx,j.cy,M,Yt(j.y01,j.x01),Yt(j.y11,j.x11),!y),l.arc(0,0,d,Yt(j.cy+j.y11,j.cx+j.x11),Yt(D.cy+D.y11,D.cx+D.x11),!y),l.arc(D.cx,D.cy,M,Yt(D.y11,D.x11),Yt(D.y01,D.x01),!y))):(l.moveTo(X,ne),l.arc(0,0,d,_,b,!y)):l.moveTo(X,ne),!(f>Kt)||!(w>Kt)?l.lineTo(re,Z):N>Kt?(j=pf(re,Z,R,J,f,-N,y),D=pf(X,ne,U,Y,f,-N,y),l.lineTo(j.cx+j.x01,j.cy+j.y01),N<P?l.arc(j.cx,j.cy,N,Yt(j.y01,j.x01),Yt(D.y01,D.x01),!y):(l.arc(j.cx,j.cy,N,Yt(j.y01,j.x01),Yt(j.y11,j.x11),!y),l.arc(0,0,f,Yt(j.cy+j.y11,j.cx+j.x11),Yt(D.cy+D.y11,D.cx+D.x11),y),l.arc(D.cx,D.cy,N,Yt(D.y11,D.x11),Yt(D.y01,D.x01),!y))):l.arc(0,0,f,O,S,y)}if(l.closePath(),c)return l=null,c+""||null}return s.centroid=function(){var c=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-$i/2;return[li(u)*c,gn(u)*c]},s.innerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.outerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:Pe(+c),s):n},s.padRadius=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:Pe(+c),s):i},s.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:Pe(+c),s):a},s.padAngle=function(c){return arguments.length?(o=typeof c=="function"?c:Pe(+c),s):o},s.context=function(c){return arguments.length?(l=c??null,s):l},s}var bee=Array.prototype.slice;function vf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DO(e){this._context=e}DO.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 ws(e){return new DO(e)}function Rg(e){return e[0]}function Vg(e){return e[1]}function yf(e,t){var n=Pe(!0),r=null,i=ws,a=null;e=typeof e=="function"?e:e===void 0?Rg:Pe(e),t=typeof t=="function"?t:t===void 0?Vg:Pe(t);function o(l){var s,c=(l=vf(l)).length,u,f=!1,d;for(r==null&&(a=i(d=Io())),s=0;s<=c;++s)!(s<c&&n(u=l[s],s,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,s,l),+t(u,s,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pe(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),o):r},o}function bf(e,t,n){var r=null,i=Pe(!0),a=null,o=ws,l=null;e=typeof e=="function"?e:e===void 0?Rg:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Vg:Pe(+n);function s(u){var f,d,h,p=(u=vf(u)).length,g,y=!1,_,b=new Array(p),S=new Array(p);for(a==null&&(l=o(_=Io())),f=0;f<=p;++f){if(!(f<p&&i(g=u[f],f,u))===y)if(y=!y)d=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=f-1;h>=d;--h)l.point(b[h],S[h]);l.lineEnd(),l.areaEnd()}y&&(b[f]=+e(g,f,u),S[f]=+t(g,f,u),l.point(r?+r(g,f,u):b[f],n?+n(g,f,u):S[f]))}if(_)return l=null,_+""||null}function c(){return yf().defined(i).curve(o).context(a)}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),r=null,s):e},s.x0=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),s):e},s.x1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pe(+u),s):r},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),n=null,s):t},s.y0=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),s):t},s.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:Pe(+u),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(u){return arguments.length?(i=typeof u=="function"?u:Pe(!!u),s):i},s.curve=function(u){return arguments.length?(o=u,a!=null&&(l=o(a)),s):o},s.context=function(u){return arguments.length?(u==null?a=l=null:l=o(a=u),s):a},s}function _ee(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xee(e){return e}function IO(){var e=xee,t=_ee,n=null,r=Pe(0),i=Pe(Fi),a=Pe(0);function o(l){var s,c=(l=vf(l)).length,u,f,d=0,h=new Array(c),p=new Array(c),g=+r.apply(this,arguments),y=Math.min(Fi,Math.max(-Fi,i.apply(this,arguments)-g)),_,b=Math.min(Math.abs(y)/c,a.apply(this,arguments)),S=b*(y<0?-1:1),O;for(s=0;s<c;++s)(O=p[h[s]=s]=+e(l[s],s,l))>0&&(d+=O);for(t!=null?h.sort(function(w,A){return t(p[w],p[A])}):n!=null&&h.sort(function(w,A){return n(l[w],l[A])}),s=0,f=d?(y-c*S)/d:0;s<c;++s,g=_)u=h[s],O=p[u],_=g+(O>0?O*f:0)+S,p[u]={data:l[u],index:s,value:O,startAngle:g,endAngle:_,padAngle:b};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,n=null,o):t},o.sort=function(l){return arguments.length?(n=l,t=null,o):n},o.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:Pe(+l),o):r},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o}var LO=Hg(ws);function $O(e){this._curve=e}$O.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 Hg(e){function t(n){return new $O(e(n))}return t._curve=e,t}function Os(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(Hg(n)):t()._curve},e}function Ug(){return Os(yf().curve(LO))}function qg(){var e=bf().curve(LO),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=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 Os(n())},delete e.lineX0,e.lineEndAngle=function(){return Os(r())},delete e.lineX1,e.lineInnerRadius=function(){return Os(i())},delete e.lineY0,e.lineOuterRadius=function(){return Os(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(Hg(o)):t()._curve},e}function Cs(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class FO{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class See{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point++===0)this._x0=t,this._y0=n;else{const r=Cs(this._x0,this._y0),i=Cs(this._x0,this._y0=(this._y0+n)/2),a=Cs(t,this._y0),o=Cs(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}}}function NO(e){return new FO(e,!0)}function zO(e){return new FO(e,!1)}function wee(e){return new See(e)}function Oee(e){return e.source}function Cee(e){return e.target}function _f(e){let t=Oee,n=Cee,r=Rg,i=Vg,a=null,o=null;function l(){let s;const c=bee.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(a==null&&(o=e(s=Io())),o.lineStart(),c[0]=u,o.point(+r.apply(this,c),+i.apply(this,c)),c[0]=f,o.point(+r.apply(this,c),+i.apply(this,c)),o.lineEnd(),s)return o=null,s+""||null}return l.source=function(s){return arguments.length?(t=s,l):t},l.target=function(s){return arguments.length?(n=s,l):n},l.x=function(s){return arguments.length?(r=typeof s=="function"?s:Pe(+s),l):r},l.y=function(s){return arguments.length?(i=typeof s=="function"?s:Pe(+s),l):i},l.context=function(s){return arguments.length?(s==null?a=o=null:o=e(a=s),l):a},l}function Aee(){return _f(NO)}function Tee(){return _f(zO)}function kee(){const e=_f(wee);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const Eee=it(3),BO={draw(e,t){const n=it(t+Lo(t/28,.75))*.59436,r=n/2,i=r*Eee;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},xf={draw(e,t){const n=it(t/$i);e.moveTo(n,0),e.arc(0,0,n,0,Fi)}},WO={draw(e,t){const n=it(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()}},RO=it(1/3),Pee=RO*2,VO={draw(e,t){const n=it(t/Pee),r=n*RO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},HO={draw(e,t){const n=it(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},UO={draw(e,t){const n=it(t-Lo(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},qO={draw(e,t){const n=it(t),r=-n/2;e.rect(r,r,n,n)}},GO={draw(e,t){const n=it(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},jee=.8908130915292852,YO=gn($i/10)/gn(7*$i/10),Mee=gn(Fi/10)*YO,Dee=-li(Fi/10)*YO,KO={draw(e,t){const n=it(t*jee),r=Mee*n,i=Dee*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Fi*a/5,l=li(o),s=gn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},Gg=it(3),ZO={draw(e,t){const n=-it(t/(Gg*3));e.moveTo(0,n*2),e.lineTo(-Gg*n,-n),e.lineTo(Gg*n,-n),e.closePath()}},Iee=it(3),XO={draw(e,t){const n=it(t)*.6824,r=n/2,i=n*Iee/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Vn=-.5,Hn=it(3)/2,Yg=1/it(12),Lee=(Yg/2+1)*3,JO={draw(e,t){const n=it(t/Lee),r=n/2,i=n*Yg,a=r,o=n*Yg+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Vn*r-Hn*i,Hn*r+Vn*i),e.lineTo(Vn*a-Hn*o,Hn*a+Vn*o),e.lineTo(Vn*l-Hn*s,Hn*l+Vn*s),e.lineTo(Vn*r+Hn*i,Vn*i-Hn*r),e.lineTo(Vn*a+Hn*o,Vn*o-Hn*a),e.lineTo(Vn*l+Hn*s,Vn*s-Hn*l),e.closePath()}},QO={draw(e,t){const n=it(t-Lo(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},eC=[xf,WO,VO,qO,KO,ZO,JO],$ee=[xf,UO,QO,XO,BO,GO,HO];function Fee(e,t){let n=null;e=typeof e=="function"?e:Pe(e||xf),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function r(){let i;if(n||(n=i=Io()),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:Pe(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),r):t},r.context=function(i){return arguments.length?(n=i??null,r):n},r}function Ni(){}function Sf(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 wf(e){this._context=e}wf.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:Sf(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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nee(e){return new wf(e)}function tC(e){this._context=e}tC.prototype={areaStart:Ni,areaEnd:Ni,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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zee(e){return new tC(e)}function nC(e){this._context=e}nC.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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bee(e){return new nC(e)}function rC(e,t){this._basis=new wf(e),this._beta=t}rC.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],a=e[n]-r,o=t[n]-i,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*a),this._beta*t[l]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Wee=function e(t){function n(r){return t===1?new wf(r):new rC(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Of(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 Kg(e,t){this._context=e,this._k=(1-t)/6}Kg.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:Of(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:Of(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 Ree=function e(t){function n(r){return new Kg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Zg(e,t){this._context=e,this._k=(1-t)/6}Zg.prototype={areaStart:Ni,areaEnd:Ni,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:Of(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 Vee=function e(t){function n(r){return new Zg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xg(e,t){this._context=e,this._k=(1-t)/6}Xg.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:Of(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 Hee=function e(t){function n(r){return new Xg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Jg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Kt){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Kt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function iC(e,t){this._context=e,this._alpha=t}iC.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:Jg(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 Uee=function e(t){function n(r){return t?new iC(r,t):new Kg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aC(e,t){this._context=e,this._alpha=t}aC.prototype={areaStart:Ni,areaEnd:Ni,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:Jg(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 qee=function e(t){function n(r){return t?new aC(r,t):new Zg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oC(e,t){this._context=e,this._alpha=t}oC.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:Jg(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 Gee=function e(t){function n(r){return t?new oC(r,t):new Xg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function lC(e){this._context=e}lC.prototype={areaStart:Ni,areaEnd:Ni,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 Yee(e){return new lC(e)}function sC(e){return e<0?-1:1}function cC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(sC(a)+sC(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function uC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qg(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Cf(e){this._context=e}Cf.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:Qg(this,this._t0,uC(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,Qg(this,uC(this,n=cC(this,e,t)),n);break;default:Qg(this,this._t0,n=cC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function fC(e){this._context=new dC(e)}(fC.prototype=Object.create(Cf.prototype)).point=function(e,t){Cf.prototype.point.call(this,t,e)};function dC(e){this._context=e}dC.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Kee(e){return new Cf(e)}function Zee(e){return new fC(e)}function hC(e){this._context=e}hC.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=mC(e),i=mC(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 mC(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Xee(e){return new hC(e)}function Af(e,t){this._context=e,this._t=t}Af.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 Jee(e){return new Af(e,.5)}function Qee(e){return new Af(e,0)}function ete(e){return new Af(e,1)}function $o(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Fo(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function tte(e,t){return e[t]}function nte(e){const t=[];return t.key=e,t}function rte(){var e=Pe([]),t=Fo,n=$o,r=tte;function i(a){var o=Array.from(e.apply(this,arguments),nte),l,s=o.length,c=-1,u;for(const f of a)for(l=0,++c;l<s;++l)(o[l][c]=[0,+r(f,o[l].key,c,a)]).data=f;for(l=0,u=vf(t(o));l<s;++l)o[u[l]].index=l;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pe(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Fo:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??$o,i):n},i}function ite(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}$o(e,t)}}function ate(e,t){if((s=e.length)>0)for(var n,r=0,i,a,o,l,s,c=e[t[0]].length;r<c;++r)for(o=l=0,n=0;n<s;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=l,i[0]=l+=a):(i[0]=0,i[1]=a)}function ote(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}$o(e,t)}}function lte(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],f=u[r][1]||0,d=u[r-1][1]||0,h=(f-d)/2,p=0;p<l;++p){var g=e[t[p]],y=g[r][1]||0,_=g[r-1][1]||0;h+=y-_}s+=f,c+=h*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=c/s)}i[r-1][1]+=i[r-1][0]=n,$o(e,t)}}function gC(e){var t=e.map(ste);return Fo(e).sort(function(n,r){return t[n]-t[r]})}function ste(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function pC(e){var t=e.map(vC);return Fo(e).sort(function(n,r){return t[n]-t[r]})}function vC(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function cte(e){return pC(e).reverse()}function ute(e){var t=e.length,n,r,i=e.map(vC),a=gC(e),o=0,l=0,s=[],c=[];for(n=0;n<t;++n)r=a[n],o<l?(o+=i[r],s.push(r)):(l+=i[r],c.push(r));return c.reverse().concat(s)}function fte(e){return Fo(e).reverse()}const dte=Object.freeze(Object.defineProperty({__proto__:null,arc:Wg,area:bf,areaRadial:qg,curveBasis:Nee,curveBasisClosed:zee,curveBasisOpen:Bee,curveBumpX:NO,curveBumpY:zO,curveBundle:Wee,curveCardinal:Ree,curveCardinalClosed:Vee,curveCardinalOpen:Hee,curveCatmullRom:Uee,curveCatmullRomClosed:qee,curveCatmullRomOpen:Gee,curveLinear:ws,curveLinearClosed:Yee,curveMonotoneX:Kee,curveMonotoneY:Zee,curveNatural:Xee,curveStep:Jee,curveStepAfter:ete,curveStepBefore:Qee,line:yf,lineRadial:Ug,link:_f,linkHorizontal:Aee,linkRadial:kee,linkVertical:Tee,pie:IO,pointRadial:Cs,radialArea:qg,radialLine:Ug,stack:rte,stackOffsetDiverging:ate,stackOffsetExpand:ite,stackOffsetNone:$o,stackOffsetSilhouette:ote,stackOffsetWiggle:lte,stackOrderAppearance:gC,stackOrderAscending:pC,stackOrderDescending:cte,stackOrderInsideOut:ute,stackOrderNone:Fo,stackOrderReverse:fte,symbol:Fee,symbolAsterisk:BO,symbolCircle:xf,symbolCross:WO,symbolDiamond:VO,symbolDiamond2:HO,symbolPlus:UO,symbolSquare:qO,symbolSquare2:GO,symbolStar:KO,symbolTriangle:ZO,symbolTriangle2:XO,symbolWye:JO,symbolX:QO,symbols:eC,symbolsFill:eC,symbolsStroke:$ee},Symbol.toStringTag,{value:"Module"}));var yC=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},bC=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},ep=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},hte=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},_C=function(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"curve".concat(t(e))},mte=function(e){return"".concat(_C(e),"Closed")},Tf=function(e){var t=e.interpolation;if(typeof t=="function")return t;if(typeof t=="string"){var n=e.polar,r=e.openCurve,i=r===void 0?!n:r,a=i?_C(t):mte(t);return dte[a]}return ws},xC=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?Ug().defined(yC).curve(Tf(e)).angle(hte(n)).radius(ep(n)):yf().defined(yC).curve(Tf(e)).x(r?ep(n):bC(n)).y(r?bC(n):ep(n))};function SC(e,t,n){var r=t.a,i=t.d,a=t.e,o=t.f;return n==="y"?i*e+o:r*e+a}function gte(e){return e.getScreenCTM().inverse()}function wC(e){return!!(e&&e.identifier!==void 0)}function pte(e){return e.changedTouches&&e.changedTouches.length>0}function si(e){if(!wC(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function Mr(e,t){if(wC(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=pte(e)?e.changedTouches[0]:e;t=t||si(n);var r=gte(t);return{x:SC(n.clientX,r,"x"),y:SC(n.clientY,r,"y")}}function ci(e,t){var n=e.horizontal,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function kf(e,t,n,r){var i=e.polar,a=e.horizontal;if(!i)return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)};var o=e.origin||{x:0,y:0},l=n-o.x,s=r-o.y,c=Math.abs(l*Math.sqrt(1+Math.pow(-s/l,2))),u=(-Math.atan2(s,l)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(u),y:t.y.invert(c)}}function Ef(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.scale,o=kf(e,a,t,r),l=kf(e,a,n,i),s=function(c,u){return[dn([c,u]),Nn([c,u])]};return{x:s(o.x,l.x),y:s(o.y,l.y)}}var vte=Yr,yte=zw;function bte(e,t){return e&&e.length?yte(e,vte(t)):[]}var _te=bte;const OC=Ae(_te);function xte(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}var Ste=xte,wte=Ym;function Ote(e,t,n,r){return wte(e,function(i,a,o){t(r,i,n(i),o)}),r}var Cte=Ote,Ate=Ste,Tte=Cte,kte=Yr,Ete=Nt;function Pte(e,t){return function(n,r){var i=Ete(n)?Ate:Tte,a=t?t():{};return i(n,e,kte(r),a)}}var jte=Pte,Mte=Rl,Dte=jte,Ite=Object.prototype,Lte=Ite.hasOwnProperty,$te=Dte(function(e,t,n){Lte.call(e,n)?e[n].push(t):Mte(e,n,[t])}),Fte=$te;const Pf=Ae(Fte);function fr(e){return Wte(e)||Bte(e)||zte(e)||Nte()}function Nte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
196
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function aee(e,t){if(e){if(typeof e=="string")return TO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TO(e,t)}}function TO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function lee(e){if(Array.isArray(e))return e}var see={nodesShouldLoad:!1,nodesDoneLoad:!1,animating:!0},kO=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:see,t=x.useState(e),n=ree(t,2),r=n[0],i=n[1],a=x.useCallback(function(c){i(function(u){return AO(AO({},u),c)})},[i]),o=x.useCallback(function(c,u,f){if(!(c!=null&&c.animate))return u.props.animate;var d=function(){var _=r&&r.childrenTransitions;return _=j2(_)?_[f]:_,ae({childrenTransitions:_},r)},h=c.animate&&c.animate.getTransitions,p=d(),g=c.animate&&c.animate.parentState||p;if(!h){var y=bw(c,p,function(_){return a(_)});h=function(_){return y(_,f)}}return ae({getTransitions:h,parentState:g},c.animate,u.props.animate)},[r,a]),l=x.useCallback(function(c,u){if(c!=null&&c.animate)if(c.animate.parentState){var f=c.animate.parentState.nodesWillExit,d=f?c:null,h=ae({oldProps:d,nextProps:u},c.animate.parentState);a(h)}else{var p=x.Children.toArray(c.children),g=x.Children.toArray(u.children),y=function(T){var k=function(j){return j.type&&j.type.continuous};return Array.isArray(T)?OO(T,k):k(T)},_=!c.polar&&OO(p,function(T){return y(T)||T.props.children&&y(T.props.children)}),b=yw(p,g),S=b.nodesWillExit,O=b.nodesWillEnter,w=b.childrenTransitions,A=b.nodesShouldEnter;a({nodesWillExit:S,nodesWillEnter:O,nodesShouldEnter:A,childrenTransitions:j2(w)?w[0]:w,oldProps:S?c:void 0,nextProps:u,continuous:_})}},[a]),s=x.useCallback(function(c){return r&&r.nodesWillExit&&r.oldProps||c},[r]);return{state:r,setState:a,getAnimationProps:o,setAnimationState:l,getProps:s}};const zg=Math.PI,Bg=2*zg,Ca=1e-6,cee=Bg-Ca;function EO(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function uee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return EO;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class PO{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?EO:uee(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,s=r-t,c=i-n,u=o-t,f=l-n,d=u*u+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(d>Ca)if(!(Math.abs(f*s-c*u)>Ca)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-o,p=i-l,g=s*s+c*c,y=h*h+p*p,_=Math.sqrt(g),b=Math.sqrt(d),S=a*Math.tan((zg-Math.acos((g+d-y)/(2*_*b)))/2),O=S/b,w=S/_;Math.abs(O-1)>Ca&&this._append`L${t+O*u},${n+O*f}`,this._append`A${a},${a},0,0,${+(f*h>u*p)},${this._x1=t+w*s},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),s=r*Math.sin(i),c=t+l,u=n+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Ca||Math.abs(this._y1-u)>Ca)&&this._append`L${c},${u}`,r&&(d<0&&(d=d%Bg+Bg),d>cee?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=c},${this._y1=u}`:d>Ca&&this._append`A${r},${r},0,${+(d>=zg)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Io(){return new PO}Io.prototype=PO.prototype;function Pe(e){return function(){return e}}const jO=Math.abs,Yt=Math.atan2,li=Math.cos,fee=Math.max,Lo=Math.min,gn=Math.sin,it=Math.sqrt,Kt=1e-12,$i=Math.PI,gf=$i/2,Fi=2*$i;function dee(e){return e>1?0:e<-1?$i:Math.acos(e)}function MO(e){return e>=1?gf:e<=-1?-gf:Math.asin(e)}function hee(e){return e.innerRadius}function mee(e){return e.outerRadius}function gee(e){return e.startAngle}function pee(e){return e.endAngle}function vee(e){return e&&e.padAngle}function yee(e,t,n,r,i,a,o,l){var s=n-e,c=r-t,u=o-i,f=l-a,d=f*s-u*c;if(!(d*d<Kt))return d=(u*(t-a)-f*(e-i))/d,[e+d*s,t+d*c]}function pf(e,t,n,r,i,a,o){var l=e-n,s=t-r,c=(o?a:-a)/it(l*l+s*s),u=c*s,f=-c*l,d=e+u,h=t+f,p=n+u,g=r+f,y=(d+p)/2,_=(h+g)/2,b=p-d,S=g-h,O=b*b+S*S,w=i-a,A=d*g-p*h,T=(S<0?-1:1)*it(fee(0,w*w*O-A*A)),k=(A*S-b*T)/O,j=(-A*b-S*T)/O,N=(A*S+b*T)/O,M=(-A*b+S*T)/O,E=k-y,I=j-_,D=N-y,W=M-_;return E*E+I*I>D*D+W*W&&(k=N,j=M),{cx:k,cy:j,x01:-u,y01:-f,x11:k*(i/w-1),y11:j*(i/w-1)}}function Wg(){var e=hee,t=mee,n=Pe(0),r=null,i=gee,a=pee,o=vee,l=null;function s(){var c,u,f=+e.apply(this,arguments),d=+t.apply(this,arguments),h=i.apply(this,arguments)-gf,p=a.apply(this,arguments)-gf,g=jO(p-h),y=p>h;if(l||(l=c=Io()),d<f&&(u=d,d=f,f=u),!(d>Kt))l.moveTo(0,0);else if(g>Fi-Kt)l.moveTo(d*li(h),d*gn(h)),l.arc(0,0,d,h,p,!y),f>Kt&&(l.moveTo(f*li(p),f*gn(p)),l.arc(0,0,f,p,h,y));else{var _=h,b=p,S=h,O=p,w=g,A=g,T=o.apply(this,arguments)/2,k=T>Kt&&(r?+r.apply(this,arguments):it(f*f+d*d)),j=Lo(jO(d-f)/2,+n.apply(this,arguments)),N=j,M=j,E,I;if(k>Kt){var D=MO(k/f*gn(T)),W=MO(k/d*gn(T));(w-=D*2)>Kt?(D*=y?1:-1,S+=D,O-=D):(w=0,S=O=(h+p)/2),(A-=W*2)>Kt?(W*=y?1:-1,_+=W,b-=W):(A=0,_=b=(h+p)/2)}var X=d*li(_),ne=d*gn(_),re=f*li(O),Z=f*gn(O);if(j>Kt){var R=d*li(b),J=d*gn(b),U=f*li(S),Y=f*gn(S),G;if(g<$i&&(G=yee(X,ne,U,Y,R,J,re,Z))){var ie=X-G[0],z=ne-G[1],se=R-G[0],K=J-G[1],Q=1/gn(dee((ie*se+z*K)/(it(ie*ie+z*z)*it(se*se+K*K)))/2),te=it(G[0]*G[0]+G[1]*G[1]);N=Lo(j,(f-te)/(Q-1)),M=Lo(j,(d-te)/(Q+1))}}A>Kt?M>Kt?(E=pf(U,Y,X,ne,d,M,y),I=pf(R,J,re,Z,d,M,y),l.moveTo(E.cx+E.x01,E.cy+E.y01),M<j?l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(I.y01,I.x01),!y):(l.arc(E.cx,E.cy,M,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,d,Yt(E.cy+E.y11,E.cx+E.x11),Yt(I.cy+I.y11,I.cx+I.x11),!y),l.arc(I.cx,I.cy,M,Yt(I.y11,I.x11),Yt(I.y01,I.x01),!y))):(l.moveTo(X,ne),l.arc(0,0,d,_,b,!y)):l.moveTo(X,ne),!(f>Kt)||!(w>Kt)?l.lineTo(re,Z):N>Kt?(E=pf(re,Z,R,J,f,-N,y),I=pf(X,ne,U,Y,f,-N,y),l.lineTo(E.cx+E.x01,E.cy+E.y01),N<j?l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(I.y01,I.x01),!y):(l.arc(E.cx,E.cy,N,Yt(E.y01,E.x01),Yt(E.y11,E.x11),!y),l.arc(0,0,f,Yt(E.cy+E.y11,E.cx+E.x11),Yt(I.cy+I.y11,I.cx+I.x11),y),l.arc(I.cx,I.cy,N,Yt(I.y11,I.x11),Yt(I.y01,I.x01),!y))):l.arc(0,0,f,O,S,y)}if(l.closePath(),c)return l=null,c+""||null}return s.centroid=function(){var c=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,u=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-$i/2;return[li(u)*c,gn(u)*c]},s.innerRadius=function(c){return arguments.length?(e=typeof c=="function"?c:Pe(+c),s):e},s.outerRadius=function(c){return arguments.length?(t=typeof c=="function"?c:Pe(+c),s):t},s.cornerRadius=function(c){return arguments.length?(n=typeof c=="function"?c:Pe(+c),s):n},s.padRadius=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Pe(+c),s):r},s.startAngle=function(c){return arguments.length?(i=typeof c=="function"?c:Pe(+c),s):i},s.endAngle=function(c){return arguments.length?(a=typeof c=="function"?c:Pe(+c),s):a},s.padAngle=function(c){return arguments.length?(o=typeof c=="function"?c:Pe(+c),s):o},s.context=function(c){return arguments.length?(l=c??null,s):l},s}var bee=Array.prototype.slice;function vf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function DO(e){this._context=e}DO.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 ws(e){return new DO(e)}function Rg(e){return e[0]}function Vg(e){return e[1]}function yf(e,t){var n=Pe(!0),r=null,i=ws,a=null;e=typeof e=="function"?e:e===void 0?Rg:Pe(e),t=typeof t=="function"?t:t===void 0?Vg:Pe(t);function o(l){var s,c=(l=vf(l)).length,u,f=!1,d;for(r==null&&(a=i(d=Io())),s=0;s<=c;++s)!(s<c&&n(u=l[s],s,l))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(u,s,l),+t(u,s,l));if(d)return a=null,d+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Pe(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Pe(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(a=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=a=null:a=i(r=l),o):r},o}function bf(e,t,n){var r=null,i=Pe(!0),a=null,o=ws,l=null;e=typeof e=="function"?e:e===void 0?Rg:Pe(+e),t=typeof t=="function"?t:Pe(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?Vg:Pe(+n);function s(u){var f,d,h,p=(u=vf(u)).length,g,y=!1,_,b=new Array(p),S=new Array(p);for(a==null&&(l=o(_=Io())),f=0;f<=p;++f){if(!(f<p&&i(g=u[f],f,u))===y)if(y=!y)d=f,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),h=f-1;h>=d;--h)l.point(b[h],S[h]);l.lineEnd(),l.areaEnd()}y&&(b[f]=+e(g,f,u),S[f]=+t(g,f,u),l.point(r?+r(g,f,u):b[f],n?+n(g,f,u):S[f]))}if(_)return l=null,_+""||null}function c(){return yf().defined(i).curve(o).context(a)}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),r=null,s):e},s.x0=function(u){return arguments.length?(e=typeof u=="function"?u:Pe(+u),s):e},s.x1=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:Pe(+u),s):r},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),n=null,s):t},s.y0=function(u){return arguments.length?(t=typeof u=="function"?u:Pe(+u),s):t},s.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:Pe(+u),s):n},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(n)},s.lineX1=function(){return c().x(r).y(t)},s.defined=function(u){return arguments.length?(i=typeof u=="function"?u:Pe(!!u),s):i},s.curve=function(u){return arguments.length?(o=u,a!=null&&(l=o(a)),s):o},s.context=function(u){return arguments.length?(u==null?a=l=null:l=o(a=u),s):a},s}function _ee(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function xee(e){return e}function IO(){var e=xee,t=_ee,n=null,r=Pe(0),i=Pe(Fi),a=Pe(0);function o(l){var s,c=(l=vf(l)).length,u,f,d=0,h=new Array(c),p=new Array(c),g=+r.apply(this,arguments),y=Math.min(Fi,Math.max(-Fi,i.apply(this,arguments)-g)),_,b=Math.min(Math.abs(y)/c,a.apply(this,arguments)),S=b*(y<0?-1:1),O;for(s=0;s<c;++s)(O=p[h[s]=s]=+e(l[s],s,l))>0&&(d+=O);for(t!=null?h.sort(function(w,A){return t(p[w],p[A])}):n!=null&&h.sort(function(w,A){return n(l[w],l[A])}),s=0,f=d?(y-c*S)/d:0;s<c;++s,g=_)u=h[s],O=p[u],_=g+(O>0?O*f:0)+S,p[u]={data:l[u],index:s,value:O,startAngle:g,endAngle:_,padAngle:b};return p}return o.value=function(l){return arguments.length?(e=typeof l=="function"?l:Pe(+l),o):e},o.sortValues=function(l){return arguments.length?(t=l,n=null,o):t},o.sort=function(l){return arguments.length?(n=l,t=null,o):n},o.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:Pe(+l),o):r},o.endAngle=function(l){return arguments.length?(i=typeof l=="function"?l:Pe(+l),o):i},o.padAngle=function(l){return arguments.length?(a=typeof l=="function"?l:Pe(+l),o):a},o}var LO=Hg(ws);function $O(e){this._curve=e}$O.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 Hg(e){function t(n){return new $O(e(n))}return t._curve=e,t}function Os(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(Hg(n)):t()._curve},e}function Ug(){return Os(yf().curve(LO))}function qg(){var e=bf().curve(LO),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,a=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 Os(n())},delete e.lineX0,e.lineEndAngle=function(){return Os(r())},delete e.lineX1,e.lineInnerRadius=function(){return Os(i())},delete e.lineY0,e.lineOuterRadius=function(){return Os(a())},delete e.lineY1,e.curve=function(o){return arguments.length?t(Hg(o)):t()._curve},e}function Cs(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}class FO{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}class See{constructor(t){this._context=t}lineStart(){this._point=0}lineEnd(){}point(t,n){if(t=+t,n=+n,this._point++===0)this._x0=t,this._y0=n;else{const r=Cs(this._x0,this._y0),i=Cs(this._x0,this._y0=(this._y0+n)/2),a=Cs(t,this._y0),o=Cs(t,n);this._context.moveTo(...r),this._context.bezierCurveTo(...i,...a,...o)}}}function NO(e){return new FO(e,!0)}function zO(e){return new FO(e,!1)}function wee(e){return new See(e)}function Oee(e){return e.source}function Cee(e){return e.target}function _f(e){let t=Oee,n=Cee,r=Rg,i=Vg,a=null,o=null;function l(){let s;const c=bee.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(a==null&&(o=e(s=Io())),o.lineStart(),c[0]=u,o.point(+r.apply(this,c),+i.apply(this,c)),c[0]=f,o.point(+r.apply(this,c),+i.apply(this,c)),o.lineEnd(),s)return o=null,s+""||null}return l.source=function(s){return arguments.length?(t=s,l):t},l.target=function(s){return arguments.length?(n=s,l):n},l.x=function(s){return arguments.length?(r=typeof s=="function"?s:Pe(+s),l):r},l.y=function(s){return arguments.length?(i=typeof s=="function"?s:Pe(+s),l):i},l.context=function(s){return arguments.length?(s==null?a=o=null:o=e(a=s),l):a},l}function Aee(){return _f(NO)}function Tee(){return _f(zO)}function kee(){const e=_f(wee);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}const Eee=it(3),BO={draw(e,t){const n=it(t+Lo(t/28,.75))*.59436,r=n/2,i=r*Eee;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},xf={draw(e,t){const n=it(t/$i);e.moveTo(n,0),e.arc(0,0,n,0,Fi)}},WO={draw(e,t){const n=it(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()}},RO=it(1/3),Pee=RO*2,VO={draw(e,t){const n=it(t/Pee),r=n*RO;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},HO={draw(e,t){const n=it(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},UO={draw(e,t){const n=it(t-Lo(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},qO={draw(e,t){const n=it(t),r=-n/2;e.rect(r,r,n,n)}},GO={draw(e,t){const n=it(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},jee=.8908130915292852,YO=gn($i/10)/gn(7*$i/10),Mee=gn(Fi/10)*YO,Dee=-li(Fi/10)*YO,KO={draw(e,t){const n=it(t*jee),r=Mee*n,i=Dee*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=Fi*a/5,l=li(o),s=gn(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*i,s*r+l*i)}e.closePath()}},Gg=it(3),ZO={draw(e,t){const n=-it(t/(Gg*3));e.moveTo(0,n*2),e.lineTo(-Gg*n,-n),e.lineTo(Gg*n,-n),e.closePath()}},Iee=it(3),XO={draw(e,t){const n=it(t)*.6824,r=n/2,i=n*Iee/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Vn=-.5,Hn=it(3)/2,Yg=1/it(12),Lee=(Yg/2+1)*3,JO={draw(e,t){const n=it(t/Lee),r=n/2,i=n*Yg,a=r,o=n*Yg+n,l=-a,s=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,s),e.lineTo(Vn*r-Hn*i,Hn*r+Vn*i),e.lineTo(Vn*a-Hn*o,Hn*a+Vn*o),e.lineTo(Vn*l-Hn*s,Hn*l+Vn*s),e.lineTo(Vn*r+Hn*i,Vn*i-Hn*r),e.lineTo(Vn*a+Hn*o,Vn*o-Hn*a),e.lineTo(Vn*l+Hn*s,Vn*s-Hn*l),e.closePath()}},QO={draw(e,t){const n=it(t-Lo(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},eC=[xf,WO,VO,qO,KO,ZO,JO],$ee=[xf,UO,QO,XO,BO,GO,HO];function Fee(e,t){let n=null;e=typeof e=="function"?e:Pe(e||xf),t=typeof t=="function"?t:Pe(t===void 0?64:+t);function r(){let i;if(n||(n=i=Io()),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:Pe(i),r):e},r.size=function(i){return arguments.length?(t=typeof i=="function"?i:Pe(+i),r):t},r.context=function(i){return arguments.length?(n=i??null,r):n},r}function Ni(){}function Sf(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 wf(e){this._context=e}wf.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:Sf(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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nee(e){return new wf(e)}function tC(e){this._context=e}tC.prototype={areaStart:Ni,areaEnd:Ni,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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zee(e){return new tC(e)}function nC(e){this._context=e}nC.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:Sf(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bee(e){return new nC(e)}function rC(e,t){this._basis=new wf(e),this._beta=t}rC.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],a=e[n]-r,o=t[n]-i,l=-1,s;++l<=n;)s=l/n,this._basis.point(this._beta*e[l]+(1-this._beta)*(r+s*a),this._beta*t[l]+(1-this._beta)*(i+s*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const Wee=function e(t){function n(r){return t===1?new wf(r):new rC(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Of(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 Kg(e,t){this._context=e,this._k=(1-t)/6}Kg.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:Of(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:Of(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 Ree=function e(t){function n(r){return new Kg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Zg(e,t){this._context=e,this._k=(1-t)/6}Zg.prototype={areaStart:Ni,areaEnd:Ni,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:Of(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 Vee=function e(t){function n(r){return new Zg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Xg(e,t){this._context=e,this._k=(1-t)/6}Xg.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:Of(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 Hee=function e(t){function n(r){return new Xg(r,t)}return n.tension=function(r){return e(+r)},n}(0);function Jg(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Kt){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,s=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/s,i=(i*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/s}if(e._l23_a>Kt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function iC(e,t){this._context=e,this._alpha=t}iC.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:Jg(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 Uee=function e(t){function n(r){return t?new iC(r,t):new Kg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function aC(e,t){this._context=e,this._alpha=t}aC.prototype={areaStart:Ni,areaEnd:Ni,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:Jg(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 qee=function e(t){function n(r){return t?new aC(r,t):new Zg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function oC(e,t){this._context=e,this._alpha=t}oC.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:Jg(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 Gee=function e(t){function n(r){return t?new oC(r,t):new Xg(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function lC(e){this._context=e}lC.prototype={areaStart:Ni,areaEnd:Ni,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 Yee(e){return new lC(e)}function sC(e){return e<0?-1:1}function cC(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(sC(a)+sC(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function uC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qg(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Cf(e){this._context=e}Cf.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:Qg(this,this._t0,uC(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,Qg(this,uC(this,n=cC(this,e,t)),n);break;default:Qg(this,this._t0,n=cC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function fC(e){this._context=new dC(e)}(fC.prototype=Object.create(Cf.prototype)).point=function(e,t){Cf.prototype.point.call(this,t,e)};function dC(e){this._context=e}dC.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Kee(e){return new Cf(e)}function Zee(e){return new fC(e)}function hC(e){this._context=e}hC.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=mC(e),i=mC(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 mC(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Xee(e){return new hC(e)}function Af(e,t){this._context=e,this._t=t}Af.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 Jee(e){return new Af(e,.5)}function Qee(e){return new Af(e,0)}function ete(e){return new Af(e,1)}function $o(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Fo(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function tte(e,t){return e[t]}function nte(e){const t=[];return t.key=e,t}function rte(){var e=Pe([]),t=Fo,n=$o,r=tte;function i(a){var o=Array.from(e.apply(this,arguments),nte),l,s=o.length,c=-1,u;for(const f of a)for(l=0,++c;l<s;++l)(o[l][c]=[0,+r(f,o[l].key,c,a)]).data=f;for(l=0,u=vf(t(o));l<s;++l)o[u[l]].index=l;return n(o,u),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Pe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Pe(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?Fo:typeof a=="function"?a:Pe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??$o,i):n},i}function ite(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}$o(e,t)}}function ate(e,t){if((s=e.length)>0)for(var n,r=0,i,a,o,l,s,c=e[t[0]].length;r<c;++r)for(o=l=0,n=0;n<s;++n)(a=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=o,i[1]=o+=a):a<0?(i[1]=l,i[0]=l+=a):(i[0]=0,i[1]=a)}function ote(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}$o(e,t)}}function lte(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,s=0,c=0;l<o;++l){for(var u=e[t[l]],f=u[r][1]||0,d=u[r-1][1]||0,h=(f-d)/2,p=0;p<l;++p){var g=e[t[p]],y=g[r][1]||0,_=g[r-1][1]||0;h+=y-_}s+=f,c+=h*f}i[r-1][1]+=i[r-1][0]=n,s&&(n-=c/s)}i[r-1][1]+=i[r-1][0]=n,$o(e,t)}}function gC(e){var t=e.map(ste);return Fo(e).sort(function(n,r){return t[n]-t[r]})}function ste(e){for(var t=-1,n=0,r=e.length,i,a=-1/0;++t<r;)(i=+e[t][1])>a&&(a=i,n=t);return n}function pC(e){var t=e.map(vC);return Fo(e).sort(function(n,r){return t[n]-t[r]})}function vC(e){for(var t=0,n=-1,r=e.length,i;++n<r;)(i=+e[n][1])&&(t+=i);return t}function cte(e){return pC(e).reverse()}function ute(e){var t=e.length,n,r,i=e.map(vC),a=gC(e),o=0,l=0,s=[],c=[];for(n=0;n<t;++n)r=a[n],o<l?(o+=i[r],s.push(r)):(l+=i[r],c.push(r));return c.reverse().concat(s)}function fte(e){return Fo(e).reverse()}const dte=Object.freeze(Object.defineProperty({__proto__:null,arc:Wg,area:bf,areaRadial:qg,curveBasis:Nee,curveBasisClosed:zee,curveBasisOpen:Bee,curveBumpX:NO,curveBumpY:zO,curveBundle:Wee,curveCardinal:Ree,curveCardinalClosed:Vee,curveCardinalOpen:Hee,curveCatmullRom:Uee,curveCatmullRomClosed:qee,curveCatmullRomOpen:Gee,curveLinear:ws,curveLinearClosed:Yee,curveMonotoneX:Kee,curveMonotoneY:Zee,curveNatural:Xee,curveStep:Jee,curveStepAfter:ete,curveStepBefore:Qee,line:yf,lineRadial:Ug,link:_f,linkHorizontal:Aee,linkRadial:kee,linkVertical:Tee,pie:IO,pointRadial:Cs,radialArea:qg,radialLine:Ug,stack:rte,stackOffsetDiverging:ate,stackOffsetExpand:ite,stackOffsetNone:$o,stackOffsetSilhouette:ote,stackOffsetWiggle:lte,stackOrderAppearance:gC,stackOrderAscending:pC,stackOrderDescending:cte,stackOrderInsideOut:ute,stackOrderNone:Fo,stackOrderReverse:fte,symbol:Fee,symbolAsterisk:BO,symbolCircle:xf,symbolCross:WO,symbolDiamond:VO,symbolDiamond2:HO,symbolPlus:UO,symbolSquare:qO,symbolSquare2:GO,symbolStar:KO,symbolTriangle:ZO,symbolTriangle2:XO,symbolWye:JO,symbolX:QO,symbols:eC,symbolsFill:eC,symbolsStroke:$ee},Symbol.toStringTag,{value:"Module"}));var yC=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},bC=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},ep=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},hte=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},_C=function(e){var t=function(n){return n&&n[0].toUpperCase()+n.slice(1)};return"curve".concat(t(e))},mte=function(e){return"".concat(_C(e),"Closed")},Tf=function(e){var t=e.interpolation;if(typeof t=="function")return t;if(typeof t=="string"){var n=e.polar,r=e.openCurve,i=r===void 0?!n:r,a=i?_C(t):mte(t);return dte[a]}return ws},xC=function(e){var t=e.polar,n=e.scale,r=e.horizontal;return t?Ug().defined(yC).curve(Tf(e)).angle(hte(n)).radius(ep(n)):yf().defined(yC).curve(Tf(e)).x(r?ep(n):bC(n)).y(r?bC(n):ep(n))};function SC(e,t,n){var r=t.a,i=t.d,a=t.e,o=t.f;return n==="y"?i*e+o:r*e+a}function gte(e){return e.getScreenCTM().inverse()}function wC(e){return!!(e&&e.identifier!==void 0)}function pte(e){return e.changedTouches&&e.changedTouches.length>0}function si(e){if(!wC(e.nativeEvent)){var t=function(n){return n.nodeName==="svg"?n:n.parentNode?t(n.parentNode):n};return t(e.target)}}function Mr(e,t){if(wC(e.nativeEvent))return{x:e.nativeEvent.locationX,y:e.nativeEvent.locationY};var n=pte(e)?e.changedTouches[0]:e;t=t||si(n);var r=gte(t);return{x:SC(n.clientX,r,"x"),y:SC(n.clientY,r,"y")}}function ci(e,t){var n=e.horizontal,r=e.scale,i=t||{x:r.x.domain(),y:r.y.domain()};return{x:n?[r.y(i.y[0]),r.y(i.y[1])]:[r.x(i.x[0]),r.x(i.x[1])],y:n?[r.x(i.x[0]),r.x(i.x[1])]:[r.y(i.y[0]),r.y(i.y[1])]}}function kf(e,t,n,r){var i=e.polar,a=e.horizontal;if(!i)return{x:a?t.x.invert(r):t.x.invert(n),y:a?t.y.invert(n):t.y.invert(r)};var o=e.origin||{x:0,y:0},l=n-o.x,s=r-o.y,c=Math.abs(l*Math.sqrt(1+Math.pow(-s/l,2))),u=(-Math.atan2(s,l)+Math.PI*2)%(Math.PI*2);return{x:t.x.invert(u),y:t.y.invert(c)}}function Ef(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.scale,o=kf(e,a,t,r),l=kf(e,a,n,i),s=function(c,u){return[dn([c,u]),Nn([c,u])]};return{x:s(o.x,l.x),y:s(o.y,l.y)}}var vte=Yr,yte=zw;function bte(e,t){return e&&e.length?yte(e,vte(t)):[]}var _te=bte;const OC=Ae(_te);function xte(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}var Ste=xte,wte=Ym;function Ote(e,t,n,r){return wte(e,function(i,a,o){t(r,i,n(i),o)}),r}var Cte=Ote,Ate=Ste,Tte=Cte,kte=Yr,Ete=Nt;function Pte(e,t){return function(n,r){var i=Ete(n)?Ate:Tte,a=t?t():{};return i(n,e,kte(r),a)}}var jte=Pte,Mte=Rl,Dte=jte,Ite=Object.prototype,Lte=Ite.hasOwnProperty,$te=Dte(function(e,t,n){Lte.call(e,n)?e[n].push(t):Mte(e,n,[t])}),Fte=$te;const Pf=Ae(Fte);function fr(e){return Wte(e)||Bte(e)||zte(e)||Nte()}function Nte(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
197
197
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zte(e,t){if(e){if(typeof e=="string")return tp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tp(e,t)}}function Bte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wte(e){if(Array.isArray(e))return tp(e)}function tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function AC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CC(Object(n),!0).forEach(function(r){Rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rte(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vte(e){var t=e.children,n=e.props,r=e.childComponents,i=e.parentProps,a=t.some(function(u){return u.type&&u.type.role==="histogram"}),o=a&&t.length&&t.every(function(u){return u.type&&u.type.role==="histogram"});if(a&&!o&&So("VictoryHistogram only supports being stacked with other VictoryHistogram components. Check to make sure that you are only passing VictoryHistogram components to VictoryStack"),!o)return i;var l=n.bins||r[0].props.bins;if(!Array.isArray(l)){var s=t.reduce(function(u,f){var d=_u(f.props.x||"x");return u.concat(f.props.data.map(function(h){return{x:d(h)}}))},[]),c=t[0].type.getFormattedData;l=c({data:s,bins:l}).reduce(function(u,f,d){var h=f.x0,p=f.x1;return d===0?u.concat([h,p]):u.concat(p)},[])}return AC(AC({},i),{},{bins:l})}function Hte(e,t){var n=e.polar,r=e.startAngle,i=e.endAngle,a=e.categories,o=e.minDomain,l=e.maxDomain,s={polar:n,startAngle:r,endAngle:i,categories:a,minDomain:o,maxDomain:l},c=0,u=t?t.slice(0):x.Children.toArray(e.children);s=Vte({children:u,props:e,childComponents:t,parentProps:s});var f=function(y,_,b){var S=B({},y.props,s),O;if(jo(y))y.type&&Oe(y.type.getData)?(y=b?x.cloneElement(y,b.props):y,O=y.type.getData(S)):O=Gt(S);else return null;return c+=1,O.map(function(w,A){return B({_stack:c,_group:A},w)})},d=u.filter(function(y){return y.type&&y.type.role==="stack"}).length,h=function(y,_){return y.concat(OC(_,"_group"))},p=Pi(u,f,e,[],h),g=d?"_group":"_stack";return vu(Pf(p,g))}function TC(e,t,n){var r=e.datasets,i=e.horizontal,a=i?xt(e,"y"):xt(e,"x"),o=Math.abs(a[1]-a[0]);n=n!==void 0?n:Array.isArray(r[0])&&r[0].length||1,t=t||r.length;var l=t*n,s=.5;return Math.round(s*o/l)}function Ute(e,t,n){if(!(e.polar||t!=="x")){var r=n.filter(function(d){return d.type&&d.type.role&&d.type.role==="group"});if(!(r.length<1)){var i=r[0].props,a=i.offset,o=i.children;if(a){var l=Array.isArray(o)&&o[0];if(l){var s=l.props.barWidth,c=l.props.data&&l.props.data.length||1;if(l&&l.type.role==="stack"){var u=l.props.children&&l.props.children[0];if(!u)return;s=u.props.barWidth,c=l.props.children.length}var f=s||TC(e,o.length,c);return{x:f*o.length/2+(a-f*((o.length-1)/2))}}}}}}function jf(e,t,n){var r=n?n.slice(0):x.Children.toArray(e.children),i=e.data?Gt(e):void 0,a=e.polar,o=e.startAngle,l=e.endAngle,s=e.categories,c=e.minDomain,u=e.maxDomain,f=e.horizontal,d={horizontal:f,polar:a,startAngle:o,endAngle:l,minDomain:c,maxDomain:u,categories:s},h=i?B(d,{data:i}):d,p=function(b){var S=B({},b.props,h);if(fO(b)){if(b.type&&Oe(b.type.getDomain))return b.props&&b.type.getDomain(S,t)}else return null;return Sa(S,t)},g=Pi(r,p,e),y=g.length===0?0:dn(g),_=g.length===0?1:Nn(g);return[y,_]}function np(e,t,n){n=n||x.Children.toArray(e.children);var r=Ig(e,t),i=Ute(e,t,n),a;if(r)a=r;else{var o=Oa(e,t),l=wa(e,t),s=(e.data||e.y)&&Gt(e),c=s?Dg(e,t,s):[],u=jf(e,t,n),f=o||dn([].concat(fr(c),fr(u))),d=l||Nn([].concat(fr(c),fr(u)));a=oi(f,d)}return Mg(a,B({domainPadding:i},e),t)}function Mf(e,t,n){if(e.data)return Wn(e,t);var r=n?n.slice(0):x.Children.toArray(e.children),i=function(o){var l=B({},o.props,{horizontal:e.horizontal});return Lu(l,t)},a=_a(Pi(r,i,e));return a.length>1?ms("linear"):ms(a[0])}function kC(e){var t=["groupComponent","containerComponent","labelComponent"],n=Sg(e,t),r=e.events;return Array.isArray(n)&&(r=Array.isArray(e.events)?n.concat.apply(n,fr(e.events)):n),r||[]}function qte(e,t,n){var r=e.style,i=e.colorScale,a=e.color;if(r&&r.data&&r.data.fill)return r.data.fill;if(i=t.props&&t.props.colorScale?t.props.colorScale:i,a=t.props&&t.props.color?t.props.color:a,!(!i&&!a)){var o=Array.isArray(i)?i:tg(i);return a||o[n%o.length]}}function Gte(e,t,n){var r=e&&e[n]&&e[n].style?e[n].style:{};return is(t,r)}function Yte(e,t,n){var r=n.style,i=n.role,a=e.props.style||{};if(Array.isArray(a))return a;var o=e.type&&e.type.role,l=o==="stack"?void 0:qte(n,e,t),s=o==="line"?{fill:"none",stroke:l}:{fill:l},c=i==="stack"?{}:{width:TC(n)},u=ae({},a.data,B({},c,r.data,s)),f=ae({},a.labels,r.labels);return{parent:r.parent,data:u,labels:f}}function Kte(e,t){var n=function(r){var i=r.props||{};if(!fO(r)||!i.categories)return null;var a=i.categories&&!Array.isArray(i.categories)?i.categories[t]:i.props.categories,o=a&&a.filter(function(l){return typeof l=="string"});return o?M2(o):[]};return Pi(e.slice(0),n)}function Zte(e){var t=function(i){var a=i.props||{},o;if(jo(i))i.type&&Oe(i.type.getData)?o=i.type.getData(a):o=Gt(a);else return null;return o.map(function(l){return{x:l.xName,y:l.yName}})},n={x:[],y:[]},r=function(i,a){var o=Array.isArray(a)?a.map(function(s){return s.x}).filter(Boolean):a.x,l=Array.isArray(a)?a.map(function(s){return s.y}).filter(Boolean):a.y;return{x:o!==void 0?i.x.concat(o):i.x,y:l!==void 0?i.y.concat(l):i.y}};return Pi(e.slice(0),t,{},n,r)}function EC(e,t,n){var r=Qe(e.categories)?e.categories[t]:e.categories,i=hO(n,t),a=i?lO(i.props,t):[],o=r||Kte(n,t);return _a(ns([].concat(fr(o),fr(a))))}function PC(e,t){t=t||x.Children.toArray(e.children);var n=EC(e,"x",t),r=EC(e,"y",t),i=Zte(t);return{x:_a(ns([].concat(fr(n),fr(i.x)))),y:_a(ns([].concat(fr(r),fr(i.y))))}}function jC(e,t,n){var r=e.categories&&!Array.isArray(e.categories)?e.categories.x:e.categories,i=e.categories&&!Array.isArray(e.categories)?e.categories.y:e.categories,a=!r||!i,o=a?n||PC(e,t):{},l=r||o.x,s=i||o.y;return{x:l.length>0?l:void 0,y:s.length>0?s:void 0}}function Xte(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var Jte=Xte;const Qte=Ae(Jte);var rp={exports:{}};(function(e,t){t=e.exports=n,t.getSerialize=r;function n(i,a,o,l){return JSON.stringify(i,r(a,l),o)}function r(i,a){var o=[],l=[];return a==null&&(a=function(s,c){return o[0]===c?"[Circular ~]":"[Circular ~."+l.slice(0,o.indexOf(c)).join(".")+"]"}),function(s,c){if(o.length>0){var u=o.indexOf(this);~u?o.splice(u+1):o.push(this),~u?l.splice(u,1/0,s):l.push(s),~o.indexOf(c)&&(c=a.call(this,s,c))}else o.push(c);return i==null?c:i.call(this,s,c)}}})(rp,rp.exports);var ene=rp.exports;const tne=Ae(ene);function nne(e,t){return ane(e)||ine(e,t)||MC(e,t)||rne()}function rne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
198
198
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ine(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function ane(e){if(Array.isArray(e))return e}function one(e){return cne(e)||sne(e)||MC(e)||lne()}function lne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
199
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(e,t){if(e){if(typeof e=="string")return ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ip(e,t)}}function sne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cne(e){if(Array.isArray(e))return ip(e)}function ip(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fne(e,t,n){return t&&DC(e.prototype,t),n&&DC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ap(e,t)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ap(e,t)}function hne(e){var t=gne();return function(){var r=Df(e),i;if(t){var a=Df(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return mne(this,i)}}function mne(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(e)}function op(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}var Aa=function(e){dne(n,e);var t=hne(n);function n(r){var i;return une(this,n),i=t.call(this,r),i.state=i.state||{},i.getScopedEvents=Hw.bind(op(i)),i.getEventState=qw.bind(op(i)),i.baseProps=i.getBaseProps(r),i.sharedEventsCache={},i.globalEvents={},i.prevGlobalEventKeys=[],i.boundGlobalEvents={},i}return fne(n,[{key:"shouldComponentUpdate",value:function(i){if(!fn(this.props,i)){this.baseProps=this.getBaseProps(i);var a=this.getExternalMutations(i,this.baseProps);this.applyExternalMutations(i,a)}return!0}},{key:"componentDidMount",value:function(){var i=this,a=Ze(this.globalEvents);a.forEach(function(o){return i.addGlobalListener(o)}),this.prevGlobalEventKeys=a}},{key:"componentDidUpdate",value:function(){var i=this,a=Ze(this.globalEvents),o=af(this.prevGlobalEventKeys,a);o.forEach(function(s){return i.removeGlobalListener(s)});var l=af(a,this.prevGlobalEventKeys);l.forEach(function(s){return i.addGlobalListener(s)}),this.prevGlobalEventKeys=a}},{key:"componentWillUnmount",value:function(){var i=this;this.prevGlobalEventKeys.forEach(function(a){return i.removeGlobalListener(a)})}},{key:"addGlobalListener",value:function(i){var a=this,o=function(l){var s=a.globalEvents[i];return s&&s(Xw(l))};this.boundGlobalEvents[i]=o,window.addEventListener(sf(i),o)}},{key:"removeGlobalListener",value:function(i){window.removeEventListener(sf(i),this.boundGlobalEvents[i])}},{key:"getAllEvents",value:function(i){var a=["container","groupComponent"],o=Sg(i,a);return Array.isArray(o)?Array.isArray(i.events)?o.concat.apply(o,one(i.events)):o:i.events}},{key:"applyExternalMutations",value:function(i,a){if(!rt(a)){var o=i.externalEventMutations.reduce(function(s,c){return s=Oe(c.callback)?s.concat(c.callback):s,s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(a,l)}}},{key:"getExternalMutations",value:function(i,a){return rt(i.externalEventMutations)?void 0:mJ(i.externalEventMutations,a,this.state,Ze(a))}},{key:"cacheSharedEvents",value:function(i,a,o){this.sharedEventsCache[i]=[a,o]}},{key:"getCachedSharedEvents",value:function(i,a){var o=this.sharedEventsCache[i]||[],l=nne(o,2),s=l[0],c=l[1];if(s&&fn(a,c))return s}},{key:"getBaseProps",value:function(i){var a=i.container,o=x.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=a?a.props:{};return B({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(i){var a=function(l,s){if(l.type&&Oe(l.type.getBaseProps)){var c=l.props&&l.type.getBaseProps(l.props);return c?[[s,c]]:null}return null},o=Pi(i,a);return Qte(o)}},{key:"getNewChildren",value:function(i,a){var o=this,l=i.events,s=i.eventKey,c=function(d,h){return d.reduce(function(p,g,y){if(g.props.children){var _=x.Children.toArray(g.props.children),b=h.slice(y,y+_.length),S=x.cloneElement(g,g.props,c(_,b));return p.concat(S)}else if(h[y]!=="parent"&&g.type&&Oe(g.type.getBaseProps)){var O=g.props.name||h[y],w=Array.isArray(l)&&l.filter(function(k){return k.target==="parent"?!1:Array.isArray(k.childName)?k.childName.indexOf(O)>-1:k.childName===O||k.childName==="all"}),A=[O,a,w,tne(o.state[O])],T=o.getCachedSharedEvents(O,A)||{events:w,getEvents:function(k,P){return o.getScopedEvents(k,P,O,a)},getEventState:function(k,P){return o.getEventState(k,P,O)}};return o.cacheSharedEvents(O,T,A),p.concat(x.cloneElement(g,B({key:"events-".concat(O),sharedEvents:T,eventKey:s,name:O},g.props)))}return p.concat(g)},[])},u=Ze(a),f=x.Children.toArray(i.children);return c(f,u)}},{key:"getContainer",value:function(i,a,o){var l=this,s=this.getNewChildren(i,a),c=Array.isArray(o)&&o.filter(function(S){return S.target==="parent"}),u=c.length>0?{events:c,getEvents:function(S,O){return l.getScopedEvents(S,O,null,a)},getEventState:this.getEventState}:null,f=i.container||i.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=Vw.bind(this),g=u&&p({sharedEvents:u},"parent"),y=ae({},this.getEventState("parent","parent"),h,a.parent,{children:s}),_=ae({},Uw(g,"parent",y),h.events);this.globalEvents=Kw(_);var b=Zw(_);return d==="container"?x.cloneElement(f,B({},y,{events:b})):x.cloneElement(f,b,s)}},{key:"render",value:function(){var i=this.getAllEvents(this.props);return i?this.getContainer(this.props,this.baseProps,i):x.cloneElement(this.props.container,{children:this.props.children})}}]),n}(x.Component);Aa.displayName="VictorySharedEvents",Aa.role="shared-event-wrapper",Aa.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),container:m.node,eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({childName:m.oneOfType([m.string,m.array]),eventHandlers:m.object,eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),target:m.string})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.node},Aa.defaultProps={groupComponent:x.createElement("g",null)},Aa.contextType=hu;function pne(e){return _ne(e)||bne(e)||yne(e)||vne()}function vne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yne(e,t){if(e){if(typeof e=="string")return lp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lp(e,t)}}function bne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ne(e){if(Array.isArray(e))return lp(e)}function lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sp={top:-1,left:-1,right:1,bottom:1},Lf=function(e){return e!=null},xne=function(e,t){var n=e.orientation,r=e.horizontal;if(n){var i={top:"x",bottom:"x",left:"y",right:"y"};return i[n]}var a=t==="x"?"y":"x";return r?a:t},Sne=function(e){var t=Rn(e),n=xne(e,t),r=Wn(e,t),i=e.domain&&e.domain[t],a=i||Do(e)||r.domain();return r.range(xt(e,n)),r.domain(a),r},wne=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",a=t&&t[i]&&t[i].style,o=function(){var l=["axis","axisLabel","grid","parent","tickLabels","ticks"];return l.reduce(function(s,c){return s[c]=ae({},a[c],r[c]),s},{})};return r&&a?o():a||r},IC=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},One=function(e,t,n){var r=e.position,i=e.transform;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},Cne=function(e,t,n,r,i){var a=e.position,o=e.transform;return{style:t,x:o.x+a.x,y:o.y+a.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},Ane=function(e,t,n){var r=e.edge,i=e.transform;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},Tne=function(e,t,n){var r=t.style,i=t.padding,a=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:a?n.x:i.left+n.x,x2:a?n.x:o-i.right+n.x,y1:a?i.top+n.y:n.y,y2:a?l-i.bottom+n.y:n.y}},kne=function(e,t){return{tickStyle:Xe(e.ticks,t),labelStyle:Xe(e.tickLabels,t),gridStyle:Xe(e.grid,t)}},Ene=function(e,t,n){var r=t.style,i=t.orientation,a=t.padding,o=t.labelPadding,l=t.isVertical,s=sp[i],c=a.left+a.right,u=a.top+a.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-c)/2+a.left+n.x,g=l?(e.height-u)/2+a.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},Pne=function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"},r=n[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},jne=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=df(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},LC=function(e,t,n){var r=t||"positive",i={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},a={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?a[r][e]:i[r][e]},Mne=function(e,t){var n=t.style,r=t.scale,i=t.orientation,a=t.padding,o=t.axis,l=t.ticks,s=t.stringTicks,c=t.isVertical,u=t.labelPadding,f=e.polar,d=e.horizontal,h={scale:If({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=i==="right"?a.right:a.left,g=i==="top"?a.top:a.bottom,y=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,_=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,b=n.axisLabel.fontSize||14,S=l.map(function(k,P){var N=s?e.tickValues[k-1]:k,M=Xe(n.ticks,B({},h,{tick:N,index:P}));return M.size||0}),O=b+2*Math.max.apply(Math,pne(S))+u,w=1.2*b,A=c?O:w,T=c?w:O;return{x:y??A,y:_??T}},Dne=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,c=l.bottom,u=l.left,f=l.right,d={x:i==="bottom"||i==="top"?i:a.x,y:i==="left"||i==="right"?i:a.y},h={x:d.y==="left"?u:f,y:d.x==="bottom"?c:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=g.x?Math.abs(p.x-g.x):h.x,_=g.y?Math.abs(p.y-g.y):h.y,b=Lf(e.offsetX)?e.offsetX:y,S=Lf(e.offsetY)?e.offsetY:_;return{x:b,y:S}},Ine=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,c=l.bottom,u=l.left,f=l.right,d={y:i==="bottom"||i==="top"?i:a.x,x:i==="left"||i==="right"?i:a.y},h={x:d.y==="bottom"?c:s,y:d.x==="left"?u:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=g.x?Math.abs(p.x-g.x):h.x,_=g.y?Math.abs(p.y-g.y):h.y,b=Lf(e.offsetX)?e.offsetX:_,S=Lf(e.offsetY)?e.offsetY:y;return{x:b,y:S}},Lne=function(e,t,n){var r=t.orientation,i=t.axis,a=_O(e,i);return{top:{x:0,y:a!==void 0?a:n.y},bottom:{x:0,y:a!==void 0?a:e.height-n.y},left:{x:a!==void 0?a:n.x,y:0},right:{x:a!==void 0?a:e.width-n.x,y:0}}[r]},$ne=function(e,t,n){var r=e.tickStyle,i=e.labelStyle,a=r.size||0,o=r.padding||0,l=i.padding||0,s=a+o+l,c=sp[t];return{x:n?c*s:0,x2:n?c*a:0,y:n?0:c*s,y2:n?0:c*a}},Fne=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},Nne=function(e,t){var n=t.orientation,r=t.padding,i=t.isVertical,a=-sp[n],o=i?a*(e.width-(r.left+r.right)):0,l=i?0:a*(e.height-(r.top+r.bottom));return{x:o,y:l}},zne=function(e,t){var n=e.padding,r=e.orientation,i=e.crossAxis,a=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:i?t.x-a:0,y:i?t.y-o:0}},Bne=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?Ine(e,t):Dne(e,t):n=Mne(e,t),{globalTransform:Lne(e,t,n),gridOffset:zne(t,n),gridEdge:Nne(e,t)}},Wne=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},Rne=function(e){var t=wne(e),n=IC(e,t),r=lt(e),i=jne(e,n),a=hf(e)?e.tickValues:void 0,o=Rn(e),l=Do(e),s=Sne(e),c=o==="x"?l:void 0,u=o==="y"?l:void 0,f=o==="x"?s:void 0,d=o==="y"?s:void 0,h=!(e.crossAxis===!1||e.standalone===!0),p=bO(e,s,h),g=vO(e,s),y={x:xt(e,"x"),y:xt(e,"y")},_={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:u},b={x:e.domain&&e.domain.x?Wn(e,"x").domain(e.domain.x).range(e.horizontal?y.y:y.x):f,y:e.domain&&e.domain.y?Wn(e,"y").domain(e.domain.y).range(e.horizontal?y.x:y.y):d},S=_.x&&_.y?gO(_):void 0,O=S?{x:pO(S.x,_.x),y:pO(S.y,_.y)}:void 0,w=O?{x:LC("x",O.y,e.horizontal),y:LC("y",O.x,e.horizontal)}:void 0,A=w?e.orientation||w[o]:Wne(e),T=df(Object.assign({},e,{orientation:A})),k=Pne(A,T);return{anchors:k,axis:o,crossAxis:h,domain:_,isVertical:T,labelPadding:i,orientation:A,orientations:w,origin:S,padding:r,scale:b,stringTicks:a,style:n,tickFormat:g,ticks:p}},Vne=function(e,t){e=mf(e,t);var n=Rne(e),r=n.axis,i=n.style,a=n.orientation,o=n.isVertical,l=n.scale,s=n.ticks,c=n.tickFormat,u=n.anchors,f=n.domain,d=n.stringTicks,h=r==="x"?"y":"x",p=e,g=p.width,y=p.height,_=p.standalone,b=p.theme,S=p.polar,O=p.padding,w=p.horizontal,A=Bne(e,n),T=A.globalTransform,k=A.gridOffset,P=A.gridEdge,N={scale:If({},r,l[r]),polar:S,horizontal:w,ticks:s,stringTicks:d},M=Tne(e,n,T),j=Ene(e,n,T),D={parent:B({style:i.parent,ticks:s,standalone:_,theme:b,width:g,height:y,padding:O,domain:f},N)},I={dimension:h,range:If({},h,xt(e,h)),scale:e.scale&&e.scale[h]?If({},h,e.scale[h]):void 0};return s.reduce(function(W,X,ne){var re,Z,R,J=d?d[ne]:X,U=c(X,ne,s),Y=kne(i,B({},N,{tick:J,tickValue:X,index:ne,text:U})),G={position:$ne(Y,a,o),transform:Fne((re=l[r])===null||re===void 0?void 0:re.call(l,X),T,o)},ie={edge:P,transform:{x:o?-k.x+T.x:((Z=l[r])===null||Z===void 0?void 0:Z.call(l,X))+T.x,y:o?((R=l[r])===null||R===void 0?void 0:R.call(l,X))+T.y:k.y+T.y}};return W[ne]={axis:B({dimension:r},N,M),axisLabel:B({},N,j),ticks:B({},N,One(G,Y.tickStyle,X)),tickLabels:B({},N,Cne(G,Y.labelStyle,u,X,U)),grid:B({},N,I,Ane(ie,Y.gridStyle,X))},W},D)};function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){Hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){return Kne(e)||Yne(e)||Gne(e)||qne()}function qne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
199
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MC(e,t){if(e){if(typeof e=="string")return ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ip(e,t)}}function sne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function cne(e){if(Array.isArray(e))return ip(e)}function ip(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function une(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fne(e,t,n){return t&&DC(e.prototype,t),n&&DC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ap(e,t)}function ap(e,t){return ap=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ap(e,t)}function hne(e){var t=gne();return function(){var r=Df(e),i;if(t){var a=Df(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return mne(this,i)}}function mne(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return op(e)}function op(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Df(e){return Df=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Df(e)}var Aa=function(e){dne(n,e);var t=hne(n);function n(r){var i;return une(this,n),i=t.call(this,r),i.state=i.state||{},i.getScopedEvents=Hw.bind(op(i)),i.getEventState=qw.bind(op(i)),i.baseProps=i.getBaseProps(r),i.sharedEventsCache={},i.globalEvents={},i.prevGlobalEventKeys=[],i.boundGlobalEvents={},i}return fne(n,[{key:"shouldComponentUpdate",value:function(i){if(!fn(this.props,i)){this.baseProps=this.getBaseProps(i);var a=this.getExternalMutations(i,this.baseProps);this.applyExternalMutations(i,a)}return!0}},{key:"componentDidMount",value:function(){var i=this,a=Ze(this.globalEvents);a.forEach(function(o){return i.addGlobalListener(o)}),this.prevGlobalEventKeys=a}},{key:"componentDidUpdate",value:function(){var i=this,a=Ze(this.globalEvents),o=af(this.prevGlobalEventKeys,a);o.forEach(function(s){return i.removeGlobalListener(s)});var l=af(a,this.prevGlobalEventKeys);l.forEach(function(s){return i.addGlobalListener(s)}),this.prevGlobalEventKeys=a}},{key:"componentWillUnmount",value:function(){var i=this;this.prevGlobalEventKeys.forEach(function(a){return i.removeGlobalListener(a)})}},{key:"addGlobalListener",value:function(i){var a=this,o=function(l){var s=a.globalEvents[i];return s&&s(Xw(l))};this.boundGlobalEvents[i]=o,window.addEventListener(sf(i),o)}},{key:"removeGlobalListener",value:function(i){window.removeEventListener(sf(i),this.boundGlobalEvents[i])}},{key:"getAllEvents",value:function(i){var a=["container","groupComponent"],o=Sg(i,a);return Array.isArray(o)?Array.isArray(i.events)?o.concat.apply(o,one(i.events)):o:i.events}},{key:"applyExternalMutations",value:function(i,a){if(!rt(a)){var o=i.externalEventMutations.reduce(function(s,c){return s=Oe(c.callback)?s.concat(c.callback):s,s},[]),l=o.length?function(){o.forEach(function(s){return s()})}:void 0;this.setState(a,l)}}},{key:"getExternalMutations",value:function(i,a){return rt(i.externalEventMutations)?void 0:mJ(i.externalEventMutations,a,this.state,Ze(a))}},{key:"cacheSharedEvents",value:function(i,a,o){this.sharedEventsCache[i]=[a,o]}},{key:"getCachedSharedEvents",value:function(i,a){var o=this.sharedEventsCache[i]||[],l=nne(o,2),s=l[0],c=l[1];if(s&&fn(a,c))return s}},{key:"getBaseProps",value:function(i){var a=i.container,o=x.Children.toArray(this.props.children),l=this.getBasePropsFromChildren(o),s=a?a.props:{};return B({},l,{parent:s})}},{key:"getBasePropsFromChildren",value:function(i){var a=function(l,s){if(l.type&&Oe(l.type.getBaseProps)){var c=l.props&&l.type.getBaseProps(l.props);return c?[[s,c]]:null}return null},o=Pi(i,a);return Qte(o)}},{key:"getNewChildren",value:function(i,a){var o=this,l=i.events,s=i.eventKey,c=function(d,h){return d.reduce(function(p,g,y){if(g.props.children){var _=x.Children.toArray(g.props.children),b=h.slice(y,y+_.length),S=x.cloneElement(g,g.props,c(_,b));return p.concat(S)}else if(h[y]!=="parent"&&g.type&&Oe(g.type.getBaseProps)){var O=g.props.name||h[y],w=Array.isArray(l)&&l.filter(function(k){return k.target==="parent"?!1:Array.isArray(k.childName)?k.childName.indexOf(O)>-1:k.childName===O||k.childName==="all"}),A=[O,a,w,tne(o.state[O])],T=o.getCachedSharedEvents(O,A)||{events:w,getEvents:function(k,j){return o.getScopedEvents(k,j,O,a)},getEventState:function(k,j){return o.getEventState(k,j,O)}};return o.cacheSharedEvents(O,T,A),p.concat(x.cloneElement(g,B({key:"events-".concat(O),sharedEvents:T,eventKey:s,name:O},g.props)))}return p.concat(g)},[])},u=Ze(a),f=x.Children.toArray(i.children);return c(f,u)}},{key:"getContainer",value:function(i,a,o){var l=this,s=this.getNewChildren(i,a),c=Array.isArray(o)&&o.filter(function(S){return S.target==="parent"}),u=c.length>0?{events:c,getEvents:function(S,O){return l.getScopedEvents(S,O,null,a)},getEventState:this.getEventState}:null,f=i.container||i.groupComponent,d=f.type&&f.type.role,h=f.props||{},p=Vw.bind(this),g=u&&p({sharedEvents:u},"parent"),y=ae({},this.getEventState("parent","parent"),h,a.parent,{children:s}),_=ae({},Uw(g,"parent",y),h.events);this.globalEvents=Kw(_);var b=Zw(_);return d==="container"?x.cloneElement(f,B({},y,{events:b})):x.cloneElement(f,b,s)}},{key:"render",value:function(){var i=this.getAllEvents(this.props);return i?this.getContainer(this.props,this.baseProps,i):x.cloneElement(this.props.container,{children:this.props.children})}}]),n}(x.Component);Aa.displayName="VictorySharedEvents",Aa.role="shared-event-wrapper",Aa.propTypes={children:m.oneOfType([m.arrayOf(m.node),m.node]),container:m.node,eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({childName:m.oneOfType([m.string,m.array]),eventHandlers:m.object,eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),target:m.string})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.node},Aa.defaultProps={groupComponent:x.createElement("g",null)},Aa.contextType=hu;function pne(e){return _ne(e)||bne(e)||yne(e)||vne()}function vne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
200
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yne(e,t){if(e){if(typeof e=="string")return lp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lp(e,t)}}function bne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ne(e){if(Array.isArray(e))return lp(e)}function lp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var sp={top:-1,left:-1,right:1,bottom:1},Lf=function(e){return e!=null},xne=function(e,t){var n=e.orientation,r=e.horizontal;if(n){var i={top:"x",bottom:"x",left:"y",right:"y"};return i[n]}var a=t==="x"?"y":"x";return r?a:t},Sne=function(e){var t=Rn(e),n=xne(e,t),r=Wn(e,t),i=e.domain&&e.domain[t],a=i||Do(e)||r.domain();return r.range(xt(e,n)),r.domain(a),r},wne=function(e){var t=e.theme,n=e.dependentAxis,r=t&&t.axis&&t.axis.style,i=n?"dependentAxis":"independentAxis",a=t&&t[i]&&t[i].style,o=function(){var l=["axis","axisLabel","grid","parent","tickLabels","ticks"];return l.reduce(function(s,c){return s[c]=ae({},a[c],r[c]),s},{})};return r&&a?o():a||r},IC=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},One=function(e,t,n){var r=e.position,i=e.transform;return{x1:i.x,y1:i.y,x2:i.x+r.x2,y2:i.y+r.y2,style:t,datum:n}},Cne=function(e,t,n,r,i){var a=e.position,o=e.transform;return{style:t,x:o.x+a.x,y:o.y+a.y,verticalAnchor:n.verticalAnchor,textAnchor:n.textAnchor,angle:t.angle,text:i,datum:r}},Ane=function(e,t,n){var r=e.edge,i=e.transform;return{x1:i.x,y1:i.y,x2:r.x+i.x,y2:r.y+i.y,style:t,datum:n}},Tne=function(e,t,n){var r=t.style,i=t.padding,a=t.isVertical,o=e.width,l=e.height;return{style:r.axis,x1:a?n.x:i.left+n.x,x2:a?n.x:o-i.right+n.x,y1:a?i.top+n.y:n.y,y2:a?l-i.bottom+n.y:n.y}},kne=function(e,t){return{tickStyle:Xe(e.ticks,t),labelStyle:Xe(e.tickLabels,t),gridStyle:Xe(e.grid,t)}},Ene=function(e,t,n){var r=t.style,i=t.orientation,a=t.padding,o=t.labelPadding,l=t.isVertical,s=sp[i],c=a.left+a.right,u=a.top+a.bottom,f=s<0?"end":"start",d=r.axisLabel,h=l?-90:0,p=l?n.x+s*o:(e.width-c)/2+a.left+n.x,g=l?(e.height-u)/2+a.top+n.y:s*o+n.y;return{x:p,y:g,verticalAnchor:d.verticalAnchor||f,textAnchor:d.textAnchor||"middle",angle:d.angle===void 0?h:d.angle,style:d,text:e.label}},Pne=function(e,t){var n={top:"end",left:"end",right:"start",bottom:"start"},r=n[e];return{textAnchor:t?r:"middle",verticalAnchor:t?"middle":r}},jne=function(e,t){var n=t.axisLabel||{};if(n.padding!==void 0&&n.padding!==null)return n.padding;var r=df(e),i=n.fontSize||14;return e.label?i*(r?2.3:1.6):0},LC=function(e,t,n){var r=t||"positive",i={positive:{x:"bottom",y:"left"},negative:{x:"top",y:"right"}},a={positive:{x:"left",y:"bottom"},negative:{x:"right",y:"top"}};return n?a[r][e]:i[r][e]},Mne=function(e,t){var n=t.style,r=t.scale,i=t.orientation,a=t.padding,o=t.axis,l=t.ticks,s=t.stringTicks,c=t.isVertical,u=t.labelPadding,f=e.polar,d=e.horizontal,h={scale:If({},o,r),polar:f,horizontal:d,ticks:l,stringTicks:s},p=i==="right"?a.right:a.left,g=i==="top"?a.top:a.bottom,y=e.offsetX!==null&&e.offsetX!==void 0?e.offsetX:p,_=e.offsetY!==null&&e.offsetY!==void 0?e.offsetY:g,b=n.axisLabel.fontSize||14,S=l.map(function(k,j){var N=s?e.tickValues[k-1]:k,M=Xe(n.ticks,B({},h,{tick:N,index:j}));return M.size||0}),O=b+2*Math.max.apply(Math,pne(S))+u,w=1.2*b,A=c?O:w,T=c?w:O;return{x:y??A,y:_??T}},Dne=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,c=l.bottom,u=l.left,f=l.right,d={x:i==="bottom"||i==="top"?i:a.x,y:i==="left"||i==="right"?i:a.y},h={x:d.y==="left"?u:f,y:d.x==="bottom"?c:s},p={x:d.y==="left"?0:e.width,y:d.x==="bottom"?e.height:0},g={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=g.x?Math.abs(p.x-g.x):h.x,_=g.y?Math.abs(p.y-g.y):h.y,b=Lf(e.offsetX)?e.offsetX:y,S=Lf(e.offsetY)?e.offsetY:_;return{x:b,y:S}},Ine=function(e,t){var n=t.scale,r=t.origin,i=t.orientation,a=t.orientations,o=t.domain,l=t.padding,s=l.top,c=l.bottom,u=l.left,f=l.right,d={y:i==="bottom"||i==="top"?i:a.x,x:i==="left"||i==="right"?i:a.y},h={x:d.y==="bottom"?c:s,y:d.x==="left"?u:f},p={y:d.x==="left"?0:e.width,x:d.y==="bottom"?e.height:0},g={x:r.x===o.x[0]||r.x===o.x[1]?0:n.x(r.x),y:r.y===o.y[0]||r.y===o.y[1]?0:n.y(r.y)},y=g.x?Math.abs(p.x-g.x):h.x,_=g.y?Math.abs(p.y-g.y):h.y,b=Lf(e.offsetX)?e.offsetX:_,S=Lf(e.offsetY)?e.offsetY:y;return{x:b,y:S}},Lne=function(e,t,n){var r=t.orientation,i=t.axis,a=_O(e,i);return{top:{x:0,y:a!==void 0?a:n.y},bottom:{x:0,y:a!==void 0?a:e.height-n.y},left:{x:a!==void 0?a:n.x,y:0},right:{x:a!==void 0?a:e.width-n.x,y:0}}[r]},$ne=function(e,t,n){var r=e.tickStyle,i=e.labelStyle,a=r.size||0,o=r.padding||0,l=i.padding||0,s=a+o+l,c=sp[t];return{x:n?c*s:0,x2:n?c*a:0,y:n?0:c*s,y2:n?0:c*a}},Fne=function(e,t,n){return{x:n?t.x:e+t.x,y:n?e+t.y:t.y}},Nne=function(e,t){var n=t.orientation,r=t.padding,i=t.isVertical,a=-sp[n],o=i?a*(e.width-(r.left+r.right)):0,l=i?0:a*(e.height-(r.top+r.bottom));return{x:o,y:l}},zne=function(e,t){var n=e.padding,r=e.orientation,i=e.crossAxis,a=r==="right"?n.right:n.left,o=r==="top"?n.top:n.bottom;return{x:i?t.x-a:0,y:i?t.y-o:0}},Bne=function(e,t){var n;return t.domain.x&&t.domain.y?n=e.horizontal?Ine(e,t):Dne(e,t):n=Mne(e,t),{globalTransform:Lne(e,t,n),gridOffset:zne(t,n),gridEdge:Nne(e,t)}},Wne=function(e){if(e.orientation)return e.orientation;var t={dependent:e.horizontal?"bottom":"left",independent:e.horizontal?"left":"bottom"};return e.dependentAxis?t.dependent:t.independent},Rne=function(e){var t=wne(e),n=IC(e,t),r=lt(e),i=jne(e,n),a=hf(e)?e.tickValues:void 0,o=Rn(e),l=Do(e),s=Sne(e),c=o==="x"?l:void 0,u=o==="y"?l:void 0,f=o==="x"?s:void 0,d=o==="y"?s:void 0,h=!(e.crossAxis===!1||e.standalone===!0),p=bO(e,s,h),g=vO(e,s),y={x:xt(e,"x"),y:xt(e,"y")},_={x:e.domain&&e.domain.x?e.domain.x:c,y:e.domain&&e.domain.y?e.domain.y:u},b={x:e.domain&&e.domain.x?Wn(e,"x").domain(e.domain.x).range(e.horizontal?y.y:y.x):f,y:e.domain&&e.domain.y?Wn(e,"y").domain(e.domain.y).range(e.horizontal?y.x:y.y):d},S=_.x&&_.y?gO(_):void 0,O=S?{x:pO(S.x,_.x),y:pO(S.y,_.y)}:void 0,w=O?{x:LC("x",O.y,e.horizontal),y:LC("y",O.x,e.horizontal)}:void 0,A=w?e.orientation||w[o]:Wne(e),T=df(Object.assign({},e,{orientation:A})),k=Pne(A,T);return{anchors:k,axis:o,crossAxis:h,domain:_,isVertical:T,labelPadding:i,orientation:A,orientations:w,origin:S,padding:r,scale:b,stringTicks:a,style:n,tickFormat:g,ticks:p}},Vne=function(e,t){e=mf(e,t);var n=Rne(e),r=n.axis,i=n.style,a=n.orientation,o=n.isVertical,l=n.scale,s=n.ticks,c=n.tickFormat,u=n.anchors,f=n.domain,d=n.stringTicks,h=r==="x"?"y":"x",p=e,g=p.width,y=p.height,_=p.standalone,b=p.theme,S=p.polar,O=p.padding,w=p.horizontal,A=Bne(e,n),T=A.globalTransform,k=A.gridOffset,j=A.gridEdge,N={scale:If({},r,l[r]),polar:S,horizontal:w,ticks:s,stringTicks:d},M=Tne(e,n,T),E=Ene(e,n,T),I={parent:B({style:i.parent,ticks:s,standalone:_,theme:b,width:g,height:y,padding:O,domain:f},N)},D={dimension:h,range:If({},h,xt(e,h)),scale:e.scale&&e.scale[h]?If({},h,e.scale[h]):void 0};return s.reduce(function(W,X,ne){var re,Z,R,J=d?d[ne]:X,U=c(X,ne,s),Y=kne(i,B({},N,{tick:J,tickValue:X,index:ne,text:U})),G={position:$ne(Y,a,o),transform:Fne((re=l[r])===null||re===void 0?void 0:re.call(l,X),T,o)},ie={edge:j,transform:{x:o?-k.x+T.x:((Z=l[r])===null||Z===void 0?void 0:Z.call(l,X))+T.x,y:o?((R=l[r])===null||R===void 0?void 0:R.call(l,X))+T.y:k.y+T.y}};return W[ne]={axis:B({dimension:r},N,M),axisLabel:B({},N,E),ticks:B({},N,One(G,Y.tickStyle,X)),tickLabels:B({},N,Cne(G,Y.labelStyle,u,X,U)),grid:B({},N,D,Ane(ie,Y.gridStyle,X))},W},I)};function $C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function FC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$C(Object(n),!0).forEach(function(r){Hne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$C(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){return Kne(e)||Yne(e)||Gne(e)||qne()}function qne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
201
201
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gne(e,t){if(e){if(typeof e=="string")return cp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cp(e,t)}}function Yne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kne(e){if(Array.isArray(e))return cp(e)}function cp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xne(e,t,n){return t&&NC(e.prototype,t),n&&NC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jne(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&up(e,t)}function up(e,t){return up=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},up(e,t)}function Qne(e){var t=nre();return function(){var r=$f(e),i;if(t){var a=$f(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ere(this,i)}}function ere(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tre(e)}function tre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $f(e){return $f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$f(e)}var zC={width:450,height:300,padding:50},rre={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},Un=function(e){Jne(n,e);var t=Qne(n);function n(){return Zne(this,n),t.apply(this,arguments)}return Xne(n,[{key:"renderLine",value:function(i){var a=i.axisComponent,o=this.getComponentProps(a,"axis",0);return x.cloneElement(a,o)}},{key:"renderLabel",value:function(i){var a=i.axisLabelComponent,o=i.label;if(!o)return null;var l=this.getComponentProps(a,"axisLabel",0);return x.cloneElement(a,l)}},{key:"renderGridAndTicks",value:function(i){var a=this,o=i.tickComponent,l=i.tickLabelComponent,s=i.gridComponent,c=i.name,u=function(f){var d=f.style,h=d===void 0?{}:d,p=f.events,g=p===void 0?{}:p,y=h.stroke!=="transparent"&&h.stroke!=="none"&&h.strokeWidth!==0;return y||!rt(g)};return this.dataKeys.map(function(f,d){var h=a.getComponentProps(o,"ticks",d),p=x.cloneElement(o,h),g=u(p.props)?p:void 0,y=a.getComponentProps(s,"grid",d),_=x.cloneElement(s,y),b=u(_.props)?_:void 0,S=a.getComponentProps(l,"tickLabels",d),O=x.cloneElement(l,S),w=[b,g,O].filter(Boolean);return x.cloneElement(i.groupComponent,{key:"".concat(c,"-tick-group-").concat(f)},w)})}},{key:"fixLabelOverlap",value:function(i,a){var o=df(a),l=o?a.height:a.width,s=function(y){return y.type&&y.type.role==="label"},c=i.map(function(y){return y.props.children}).reduce(function(y,_){return y.concat(_)},[]).filter(s).map(function(y){return y.props}),u=function(y){return typeof y=="object"?B({},{top:0,right:0,bottom:0,left:0},y):{top:y,right:y,bottom:y,left:y}},f=c.reduce(function(y,_){var b=u(_.style.padding),S=pa(_.text,{angle:_.angle,fontSize:_.style.fontSize,letterSpacing:_.style.letterSpacing,fontFamily:_.style.fontFamily});return y+(o?S.height+b.top+b.bottom:S.width+b.right+b.left)},0),d=Math.floor(l*i.length/f),h=Math.ceil(i.length/d)||1,p=function(y){return y.props.children.filter(s).reduce(function(_,b){return(o?b.props.y:b.props.x)||0},0)},g=i.sort(function(y,_){return o?p(_)-p(y):p(y)-p(_)});return g.filter(function(y,_){return _%h===0})}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=As.animationWhitelist,a=mf(this.props,zC),o=ur(this.props);if(this.shouldAnimate())return this.animateComponent(a,i);var l=this.renderGridAndTicks(a),s=a.fixLabelOverlap?this.fixLabelOverlap(l,a):l,c=[this.renderLine(a),this.renderLabel(a)].concat(Une(s)),u=x.cloneElement(a.containerComponent,o);return a.standalone?this.renderContainer(u,c):x.cloneElement(a.groupComponent,o,c)}}]),n}(x.Component);Un.animationWhitelist=["style","domain","range","tickCount","tickValues","offsetX","offsetY","padding","width","height"],Un.displayName="VictoryAxis",Un.role="axis",Un.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},Un.propTypes=FC(FC({},Ot.baseProps),{},{axisComponent:m.element,axisLabelComponent:m.element,axisValue:m.oneOfType([m.number,m.string,m.object]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),crossAxis:m.bool,dependentAxis:m.bool,events:m.arrayOf(m.shape({target:m.oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),eventHandlers:m.object})),fixLabelOverlap:m.bool,gridComponent:m.element,groupComponent:m.element,invertAxis:m.bool,label:m.any,offsetX:m.number,offsetY:m.number,orientation:m.oneOf(["top","bottom","left","right"]),origin:m.shape({x:m.number,y:m.number}),stringMap:m.object,style:m.shape({parent:m.object,axis:m.object,axisLabel:m.object,grid:m.object,ticks:m.object,tickLabels:m.object}),tickComponent:m.element,tickCount:ft([ct,HS]),tickFormat:m.oneOfType([m.func,$u]),tickLabelComponent:m.element,tickValues:$u}),Un.defaultProps={axisComponent:x.createElement(jr,null),axisLabelComponent:x.createElement(wt,null),tickLabelComponent:x.createElement(wt,null),tickComponent:x.createElement(jr,null),gridComponent:x.createElement(jr,null),standalone:!0,theme:Pr.grayscale,containerComponent:x.createElement(Ve,null),groupComponent:x.createElement("g",{role:"presentation"}),fixLabelOverlap:!1},Un.getDomain=Do,Un.getAxis=Rn,Un.getStyles=function(e){return IC(e)},Un.getBaseProps=function(e){return Vne(e,zC)},Un.expectedComponents=["axisComponent","axisLabelComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent"];var As=xa(Un,rre),pn=function(e,t,n){return n==="x"?e*Math.cos(t):-e*Math.sin(t)},BC=function(e){var t=e.dependentAxis?"radial":"angular",n=t==="angular"?"radial":"angular";return e.horizontal?n:t},ire=function(e,t){var n=function(r){return t(r)%(2*Math.PI)};return OC(e,n)},fp=function(e,t){return{tickStyle:Xe(e.ticks,t),labelStyle:Xe(e.tickLabels,t),gridStyle:Xe(e.grid,t)}},are=function(e){var t=e.theme,n=t===void 0?{}:t,r=e.dependentAxis,i=n.polarAxis&&n.polarAxis.style||n.axis&&n.axis.style,a=r?"polarDependentAxis":"polarIndependentAxis",o=r?"dependentAxis":"independentAxis",l=n[a]&&n[a].style||n[o]&&n[o].style,s=function(){var c=["axis","axisLabel","grid","parent","tickLabels","ticks"];return c.reduce(function(u,f){return u[f]=ae({},l[f],i[f]),u},{})};return i&&l?s():l||i},WC=function(e){var t=lt(e),n=t.left,r=t.right,i=t.top,a=t.bottom,o=e.width,l=e.height;return Math.min(o-n-r,l-i-a)/2},RC=function(e,t){if(e.range&&e.range[t])return e.range[t];if(e.range&&Array.isArray(e.range))return e.range;var n=BC(e);if(n==="angular"){var r=st(e.startAngle),i=st(e.endAngle);return[r,i]}var a=WC(e);return[e.innerRadius||0,a]},VC=function(e){var t=Rn(e),n=Wn(e,t),r=Do(e,t)||n.domain(),i=RC(e,t);return n.range(i),n.domain(r),n},HC=function(e,t){if(e.disableInlineStyles)return{};var n=e.style||{};t=t||{};var r={height:"auto",width:"100%"};return{parent:ae(r,n.parent,t.parent),axis:ae({},n.axis,t.axis),axisLabel:ae({},n.axisLabel,t.axisLabel),grid:ae({},n.grid,t.grid),ticks:ae({},n.ticks,t.ticks),tickLabels:ae({},n.tickLabels,t.tickLabels)}},Ff=function(e){var t=e.axisAngle,n=e.startAngle,r=e.dependentAxis,i=Rn(e),a=_O(e,i);return a===void 0||!r?t===void 0?n:t:Zr(a)},ore=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.scale,l=t.style,s=t.stringTicks,c=t.ticks,u=t.tickFormat,f=t.origin,d=u(n,r,c),h=s?s[r]:n,p=fp(l,{tick:h,tickValue:n,index:r,ticks:c,stringTicks:s,radius:a,scale:o,axisType:i,text:d}),g=p.tickStyle,y=i==="radial"?Ff(e):void 0,_=g.padding||g.size||0,b=st(90-y),S=i==="angular"?o(n):st(-1*y),O=i==="angular"?a:o(n);return i==="angular"?{index:r,datum:h,style:g,x1:pn(O,S,"x")+f.x,y1:pn(O,S,"y")+f.y,x2:pn(O+_,S,"x")+f.x,y2:pn(O+_,S,"y")+f.y}:{index:r,datum:h,style:g,x1:O*Math.cos(S)+Math.cos(b)*_+f.x,x2:O*Math.cos(S)-Math.cos(b)*_+f.x,y1:O*Math.sin(S)+Math.sin(b)*_+f.y,y2:O*Math.sin(S)-Math.sin(b)*_+f.y}},lre=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.tickFormat,l=t.style,s=t.scale,c=t.ticks,u=t.stringTicks,f=t.origin,d=o(n,r,c),h=u?u[r]:n,p=fp(l,{text:d,tick:h,tickValue:n,index:r,ticks:c,stringTicks:u,radius:a,scale:s,axisType:i}),g=p.labelStyle,y=e.tickLabelComponent,_=y.props&&y.props.labelPlacement?y.props.labelPlacement:e.labelPlacement,b=g.padding||0,S=0,O=i==="radial"?Ff(e):void 0,w=i==="angular"?Zr(s(n)):O+S,A=g.angle===void 0?J0(B({},e,{labelPlacement:_}),w):g.angle,T=i==="angular"?a+b:s(n),k=g.textAnchor||X0(B({},e,{labelPlacement:_}),w);return{index:r,datum:h,style:g,angle:A,textAnchor:k,text:d,x:T*Math.cos(st(w))+f.x,y:-T*Math.sin(st(w))+f.y}},sre=function(e,t,n,r){var i=t.axisType,a=t.radius,o=t.style,l=t.scale,s=t.stringTicks,c=t.ticks,u=t.tickFormat,f=t.origin,d=u(n,r,c),h=e.startAngle,p=e.endAngle,g=e.innerRadius,y=g===void 0?0:g,_=s?s[r]:n,b=fp(o,{tick:_,tickValue:n,index:r,ticks:c,stringTicks:s,radius:a,scale:l,axisType:i,text:d}),S=b.gridStyle,O=l(n);return i==="angular"?{index:r,datum:_,style:S,x1:pn(a,O,"x")+f.x,y1:pn(a,O,"y")+f.y,x2:pn(y,O,"x")+f.x,y2:pn(y,O,"y")+f.y}:{style:S,index:r,datum:_,cx:f.x,cy:f.y,r:l(n),startAngle:h,endAngle:p}},cre=function(e,t){var n=t.axisType,r=t.radius,i=t.style;t.scale;var a=t.origin,o=e.axisLabelComponent;if(n!=="radial")return{};var l=o.props&&o.props.labelPlacement?o.props.labelPlacement:e.labelPlacement,s=i&&i.axisLabel||{},c=n==="radial"?Ff(e):void 0,u=s.angle===void 0?J0(B({},e,{labelPlacement:l}),c):s.angle,f=r+(s.padding||0),d=s.textAnchor||X0(B({},e,{labelPlacement:l}),c),h=s.verticalAnchor||ew(B({},e,{labelPlacement:l}),c);return{style:s,angle:u,textAnchor:d,verticalAnchor:h,text:e.label,x:pn(f,st(c),"x")+a.x,y:pn(f,st(c),"y")+a.y}},ure=function(e,t){var n=t.style,r=t.axisType,i=t.radius;t.scale;var a=t.origin,o=e.startAngle,l=e.endAngle,s=e.innerRadius,c=s===void 0?0:s,u=r==="radial"?st(Ff(e)):void 0;return r==="radial"?{style:n.axis,x1:pn(c,u,"x")+a.x,x2:pn(i,u,"x")+a.x,y1:pn(c,u,"y")+a.y,y2:pn(i,u,"y")+a.y}:{style:n.axis,cx:a.x,cy:a.y,r:i,startAngle:o,endAngle:l}},fre=function(e){e=B({polar:!0},e);var t=are(e),n=HC(e,t),r=lt(e),i=Rn(e),a=BC(e),o=hf(e)?e.tickValues:void 0,l=Do(e,i),s=RC(e,i),c=VC(e),u=bO(e,c),f=a==="angular"?ire(u,c):u,d=vO(e,c),h=WC(e),p=as(e);return{axis:i,style:n,padding:r,stringTicks:o,axisType:a,scale:c,ticks:f,tickFormat:d,domain:l,range:s,radius:h,origin:p}},dre=function(e,t){e=mf(e,t);var n=fre(e),r=n.style,i=n.scale,a=n.ticks,o=n.domain,l=e,s=l.width,c=l.height,u=l.standalone,f=l.theme,d=l.name,h=ure(e,n),p=cre(e,n),g={parent:{style:r.parent,ticks:a,scale:i,width:s,height:c,domain:o,standalone:u,theme:f,name:d}};return a.reduce(function(y,_,b){return y[b]={axis:h,axisLabel:p,ticks:ore(e,n,_,b),tickLabels:lre(e,n,_,b),grid:sre(e,n,_,b)},y},g)};function UC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function qC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UC(Object(n),!0).forEach(function(r){hre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dp(e){return vre(e)||pre(e)||gre(e)||mre()}function mre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
202
202
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gre(e,t){if(e){if(typeof e=="string")return hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hp(e,t)}}function pre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vre(e){if(Array.isArray(e))return hp(e)}function hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bre(e,t,n){return t&&GC(e.prototype,t),n&&GC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _re(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mp(e,t)}function mp(e,t){return mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mp(e,t)}function xre(e){var t=Ore();return function(){var r=Nf(e),i;if(t){var a=Nf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Sre(this,i)}}function Sre(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wre(e)}function wre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ore(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nf(e){return Nf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nf(e)}var gp={width:450,height:300,padding:50},Cre={components:[{name:"axis",index:0},{name:"axisLabel",index:0},{name:"grid"},{name:"parent",index:"parent"},{name:"ticks"},{name:"tickLabels"}]},wn=function(e){_re(n,e);var t=xre(n);function n(){return yre(this,n),t.apply(this,arguments)}return bre(n,[{key:"renderAxisLine",value:function(i){var a=i.dependentAxis,o=a?i.axisComponent:i.circularAxisComponent,l=this.getComponentProps(o,"axis",0);return x.cloneElement(o,l)}},{key:"renderLabel",value:function(i){var a=i.axisLabelComponent,o=i.dependentAxis,l=i.label;if(!l||!o)return null;var s=this.getComponentProps(a,"axisLabel",0);return x.cloneElement(a,s)}},{key:"renderAxis",value:function(i){var a=this,o=i.tickComponent,l=i.tickLabelComponent,s=i.name,c=function(b){var S=b.style,O=S===void 0?{}:S,w=b.events,A=w===void 0?{}:w,T=O.stroke!=="transparent"&&O.stroke!=="none"&&O.strokeWidth!==0;return T||!rt(A)},u=i.dependentAxis?"radial":"angular",f=u==="radial"?i.circularGridComponent:i.gridComponent,d=this.dataKeys.map(function(b,S){var O=B({key:"".concat(s,"-tick-").concat(b)},a.getComponentProps(o,"ticks",S)),w=x.cloneElement(o,O);return c(w.props)?w:void 0}).filter(Boolean),h=this.dataKeys.map(function(b,S){var O=B({key:"".concat(s,"-grid-").concat(b)},a.getComponentProps(f,"grid",S)),w=x.cloneElement(f,O);return c(w.props)?w:void 0}).filter(Boolean),p=this.dataKeys.map(function(b,S){var O=B({key:"".concat(s,"-tick-").concat(b)},a.getComponentProps(l,"tickLabels",S));return x.cloneElement(l,O)}),g=this.renderAxisLine(i),y=this.renderLabel(i),_=[g,y].concat(dp(d),dp(h),dp(p));return this.renderGroup(i,_)}},{key:"renderGroup",value:function(i,a){var o=i.groupComponent;return x.cloneElement(o,{},a)}},{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=mf(this.props,gp);if(this.shouldAnimate())return this.animateComponent(a,i);var o=this.renderAxis(a);return a.standalone?this.renderContainer(a.containerComponent,o):o}}]),n}(x.Component);wn.animationWhitelist=["style","domain","range","tickCount","tickValues","padding","width","height"],wn.displayName="VictoryAxis",wn.role="axis",wn.defaultTransitions={onExit:{duration:500},onEnter:{duration:500}},wn.propTypes=qC(qC({},Ot.baseProps),{},{axisAngle:m.number,axisComponent:m.element,axisLabelComponent:m.element,axisValue:m.oneOfType([m.number,m.string,m.object]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),circularAxisComponent:m.element,circularGridComponent:m.element,containerComponent:m.element,dependentAxis:m.bool,disableInlineStyles:m.bool,endAngle:m.number,events:m.arrayOf(m.shape({target:m.oneOf(["axis","axisLabel","grid","ticks","tickLabels"]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),eventHandlers:m.object})),gridComponent:m.element,innerRadius:_e,labelPlacement:m.oneOf(["parallel","perpendicular","vertical"]),startAngle:m.number,stringMap:m.object,style:m.shape({parent:m.object,axis:m.object,axisLabel:m.object,grid:m.object,ticks:m.object,tickLabels:m.object}),tickComponent:m.element,tickCount:ft([ct,HS]),tickFormat:m.oneOfType([m.func,$u]),tickLabelComponent:m.element,tickValues:$u}),wn.defaultProps={axisComponent:x.createElement(jr,null),axisLabelComponent:x.createElement(wt,null),circularAxisComponent:x.createElement(Ju,null),circularGridComponent:x.createElement(Ju,null),containerComponent:x.createElement(Ve,null),endAngle:360,gridComponent:x.createElement(jr,null),groupComponent:x.createElement("g",{role:"presentation"}),labelPlacement:"parallel",startAngle:0,standalone:!0,theme:Pr.grayscale,tickComponent:x.createElement(jr,null),tickLabelComponent:x.createElement(wt,null)},wn.getDomain=Do,wn.getAxis=Rn,wn.getScale=VC,wn.getStyles=function(e){return HC(e,gp.style)},wn.getBaseProps=function(e){return dre(e,gp)},wn.expectedComponents=["axisComponent","circularAxisComponent","groupComponent","containerComponent","tickComponent","tickLabelComponent","gridComponent","circularGridComponent"];const YC=xa(wn,Cre);function Are(e){return Pre(e)||Ere(e)||kre(e)||Tre()}function Tre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
203
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kre(e,t){if(e){if(typeof e=="string")return pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pp(e,t)}}function Ere(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pre(e){if(Array.isArray(e))return pp(e)}function pp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jre={width:450,height:300,padding:50};function Mre(e,t,n){var r=n.domain,i=n.scale,a=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:a,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function Dre(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],o=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:a,s=e.polar?t.origin.y:o,c=e.name||"chart",u={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:s,key:"".concat(c,"-background"),width:i};return x.cloneElement(n,ae({},n.props,u))}function Ire(e,t,n){var r=dO([e]);if(r.length>0)return Mre(r[0],t,n);var i=n.categories,a=n.domain,o=n.range,l=n.scale,s=n.stringMap,c=n.horizontal;return{categories:i,domain:a,range:o,scale:l,stringMap:s,horizontal:c}}function Lre(e){var t=e.style&&e.style.parent;return{parent:ae({},t,{height:"100%",width:"100%",userSelect:"none"})}}function KC(e,t){var n=Lre(e);e=St(e,jre,"chart");var r=e,i=r.horizontal,a=r.polar,o=PC(e,t),l=jC(e,t,o),s=Fre(e,t,o),c={x:XC(B({},e,{categories:l}),"x",t),y:XC(B({},e,{categories:l}),"y",t)},u={x:xt(e,"x"),y:xt(e,"y")},f={x:gs(e,"x")||Mf(e,"x"),y:gs(e,"y")||Mf(e,"y")},d={x:f.x.domain(c.x).range(i?u.y:u.x),y:f.y.domain(c.y).range(i?u.x:u.y)},h=a?as(e):gO(c),p=lt(e);return{categories:l,domain:c,range:u,horizontal:i,scale:d,stringMap:s,style:n,origin:h,padding:p}}function $re(e,t,n){t=t||ZC(e),n=n||KC(e,t);var r=n.style.parent,i=e.height,a=e.polar,o=e.theme,l=e.width,s=n,c=s.origin,u=s.horizontal,f=e.name||"chart";return t.map(function(d,h){var p=d.type&&d.type.role,g=Array.isArray(d.props.style)?d.props.style:ae({},d.props.style,{parent:r}),y=Ire(d,e,n),_=d.props.name||"".concat(f,"-").concat(p,"-").concat(h),b=ae({horizontal:u,height:i,polar:a,theme:o,width:l,style:g,name:_,origin:a?c:void 0,padding:n.padding,key:"".concat(_,"-key-").concat(h),standalone:!1},y);return x.cloneElement(d,b)})}var ZC=function(e,t){var n=x.Children.toArray(e.children),r=Are(n);if(n.length===0)r.push(t.independent,t.dependent);else{var i={dependent:mO(n,"dependent"),independent:mO(n,"independent")};i.dependent.length===0&&i.independent.length===0&&(r=e.prependDefaultAxes?[t.independent,t.dependent].concat(r):r.concat([t.independent,t.dependent]))}return r},XC=function(e,t,n){n=n||x.Children.toArray(e.children);var r=np(e,t,n),i=hO(n,t),a=i&&i.props&&i.props.invertAxis;return a?r.concat().reverse():r},Fre=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(a,o,l){return a[o]=l+1,a},{}),i=!n.y||n.y.length===0?null:n.y.reduce(function(a,o,l){return a[o]=l+1,a},{});return{x:r,y:i}};function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){Nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zre={width:450,height:300,padding:50},vp=function(e){var t="chart",n=kO(),r=n.getAnimationProps,i=n.setAnimationState,a=n.getProps,o=a(e),l=St(o,zre,t),s=l.desc,c=l.eventKey,u=l.containerComponent,f=l.standalone,d=l.groupComponent,h=l.externalEventMutations,p=l.width,g=l.height,y=l.theme,_=l.polar,b=l.name,S=l.title,O=o.polar?l.defaultPolarAxes:l.defaultAxes,w=x.useMemo(function(){return ZC(l,O)},[l,O]),A=x.useMemo(function(){return KC(l,w)},[l,w]),T=A.domain,k=A.scale,P=A.style,N=A.origin,M=A.horizontal,j=x.useMemo(function(){var ne=$re(o,w,A),re=ne.map(function(R,J){var U=B({animate:r(o,R,J)},R.props);return x.cloneElement(R,U)});if(o.style&&o.style.background){var Z=Dre(o,A);re.unshift(Z)}return re},[r,w,o,A]),D=x.useMemo(function(){return f?{desc:s,domain:T,width:p,height:g,horizontal:M,name:b,origin:_?N:void 0,polar:_,theme:y,title:S,scale:k,standalone:f,style:P.parent}:{}},[s,T,g,M,b,N,_,k,f,P,S,y,p]),I=x.useMemo(function(){if(f){var ne=ae({},u.props,D,ur(e));return x.cloneElement(u,ne)}return d},[d,f,u,D,e]),W=x.useMemo(function(){return kC(o)},[o]),X=wO(e);return x.useEffect(function(){return function(){e.animate&&i(X,e)}},[i,X,e]),rt(W)?x.cloneElement(I,I.props,j):x.createElement(Aa,{container:I,eventKey:c,events:W,externalEventMutations:h},j)};vp.propTypes=QC(QC({},Ot.baseProps),{},{backgroundComponent:m.element,children:m.oneOfType([m.arrayOf(m.node),m.node]),defaultAxes:m.shape({independent:m.element,dependent:m.element}),defaultPolarAxes:m.shape({independent:m.element,dependent:m.element}),endAngle:m.number,innerRadius:_e,prependDefaultAxes:m.bool,startAngle:m.number}),vp.defaultProps={backgroundComponent:x.createElement(gg,null),containerComponent:x.createElement(Ve,null),defaultAxes:{independent:x.createElement(As,null),dependent:x.createElement(As,{dependentAxis:!0})},defaultPolarAxes:{independent:x.createElement(YC,null),dependent:x.createElement(YC,{dependentAxis:!0})},groupComponent:x.createElement("g",null),standalone:!0,theme:Pr.grayscale};var zf=x.memo(vp,fn);zf.displayName="VictoryChart",zf.expectedComponents=["groupComponent","containerComponent"];const Bre={name:"--pf-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-chart-container--cursor--line--Fill, #151515)"};var Wre=xn,eA=Object.create,Rre=function(){function e(){}return function(t){if(!Wre(t))return{};if(eA)return eA(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yp=Rre;function Vre(){}var bp=Vre,Hre=yp,Ure=bp;function Bf(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Bf.prototype=Hre(Ure.prototype),Bf.prototype.constructor=Bf;var _p=Bf,tA=p1,qre=tA&&new tA,Gre=qre,nA=Gre,Yre=Nw,Kre=nA?function(e){return nA.get(e)}:Yre,rA=Kre,Zre={},Xre=Zre,iA=Xre,Jre=Object.prototype,Qre=Jre.hasOwnProperty;function eie(e){for(var t=e.name+"",n=iA[t],r=Qre.call(iA,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var aA=eie,tie=yp,nie=bp,rie=4294967295;function Wf(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rie,this.__views__=[]}Wf.prototype=tie(nie.prototype),Wf.prototype.constructor=Wf;var xp=Wf;function iie(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var oA=iie,aie=xp,oie=_p,lie=oA;function sie(e){if(e instanceof aie)return e.clone();var t=new oie(e.__wrapped__,e.__chain__);return t.__actions__=lie(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var cie=sie,uie=xp,lA=_p,fie=bp,die=Nt,hie=sr,mie=cie,gie=Object.prototype,pie=gie.hasOwnProperty;function Rf(e){if(hie(e)&&!die(e)&&!(e instanceof uie)){if(e instanceof lA)return e;if(pie.call(e,"__wrapped__"))return mie(e)}return new lA(e)}Rf.prototype=fie.prototype,Rf.prototype.constructor=Rf;var vie=Rf,yie=xp,bie=rA,_ie=aA,xie=vie;function Sie(e){var t=_ie(e),n=xie[t];if(typeof n!="function"||!(t in yie.prototype))return!1;if(e===n)return!0;var r=bie(n);return!!r&&e===r[0]}var wie=Sie,sA=_p,Oie=E2,Cie=rA,Sp=aA,Aie=Nt,cA=wie,Tie="Expected a function",kie=8,Eie=32,Pie=128,jie=256;function Mie(e){return Oie(function(t){var n=t.length,r=n,i=sA.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if(typeof a!="function")throw new TypeError(Tie);if(i&&!o&&Sp(a)=="wrapper")var o=new sA([],!0)}for(r=o?r:n;++r<n;){a=t[r];var l=Sp(a),s=l=="wrapper"?Cie(a):void 0;s&&cA(s[0])&&s[1]==(Pie|kie|Eie|jie)&&!s[4].length&&s[9]==1?o=o[Sp(s[0])].apply(o,s[3]):o=a.length==1&&cA(a)?o[l]():o.thru(a)}return function(){var c=arguments,u=c[0];if(o&&c.length==1&&Aie(u))return o.plant(u).value();for(var f=0,d=n?t[f].apply(this,c):u;++f<n;)d=t[f].call(this,d);return d}})}var Die=Mie,Iie=Die,Lie=Iie(),$ie=Lie;const Fie=Ae($ie);var Nie=Ti;function zie(e){return typeof e=="function"?e:Nie}var Bie=zie,Wie=nu,Rie=Bie;function Vie(e,t){return e&&Wie(e,Rie(t))}var Hie=Vie;const Uie=Ae(Hie);var qie=mo;function Gie(e,t){return qie(t,function(n){return[n,e[n]]})}var Yie=Gie;function Kie(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Zie=Kie,Xie=Yie,Jie=xm,Qie=m5,eae=Zie,tae="[object Map]",nae="[object Set]";function rae(e){return function(t){var n=Jie(t);return n==tae?Qie(t):n==nae?eae(t):Xie(t,e(t))}}var iae=rae,aae=iae,oae=ki,lae=aae(oae),sae=lae;const cae=Ae(sae);function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){uae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fae=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,l=r==="bottom"?1:-1,s=e.x+(e.dx||0),c=e.y+(e.dy||0),u=Qe(o)&&o.x,f=Qe(o)&&o.y,d=f+l*(a/2),h=f-l*(a/2),p=u+i/2,g=u-i/2,y=l*(c-d)<0?0:e.pointerLength,_=r==="bottom"?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(_);return"M ".concat(u-t/2,", ").concat(d,`
203
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kre(e,t){if(e){if(typeof e=="string")return pp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pp(e,t)}}function Ere(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pre(e){if(Array.isArray(e))return pp(e)}function pp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var jre={width:450,height:300,padding:50};function Mre(e,t,n){var r=n.domain,i=n.scale,a=n.stringMap,o=n.categories,l=n.horizontal;return{stringMap:a,horizontal:l,categories:o,startAngle:t.startAngle,endAngle:t.endAngle,innerRadius:t.innerRadius,domain:r,scale:i}}function Dre(e,t){var n=e.backgroundComponent,r=e.polar?t.range.y[1]:t.range.y[0]-t.range.y[1],i=t.range.x[1]-t.range.x[0],a=e.horizontal?t.scale.y.range()[0]:t.scale.x.range()[0],o=e.horizontal?t.scale.x.range()[1]:t.scale.y.range()[1],l=e.polar?t.origin.x:a,s=e.polar?t.origin.y:o,c=e.name||"chart",u={height:r,polar:e.polar,scale:t.scale,style:e.style.background,x:l,y:s,key:"".concat(c,"-background"),width:i};return x.cloneElement(n,ae({},n.props,u))}function Ire(e,t,n){var r=dO([e]);if(r.length>0)return Mre(r[0],t,n);var i=n.categories,a=n.domain,o=n.range,l=n.scale,s=n.stringMap,c=n.horizontal;return{categories:i,domain:a,range:o,scale:l,stringMap:s,horizontal:c}}function Lre(e){var t=e.style&&e.style.parent;return{parent:ae({},t,{height:"100%",width:"100%",userSelect:"none"})}}function KC(e,t){var n=Lre(e);e=St(e,jre,"chart");var r=e,i=r.horizontal,a=r.polar,o=PC(e,t),l=jC(e,t,o),s=Fre(e,t,o),c={x:XC(B({},e,{categories:l}),"x",t),y:XC(B({},e,{categories:l}),"y",t)},u={x:xt(e,"x"),y:xt(e,"y")},f={x:gs(e,"x")||Mf(e,"x"),y:gs(e,"y")||Mf(e,"y")},d={x:f.x.domain(c.x).range(i?u.y:u.x),y:f.y.domain(c.y).range(i?u.x:u.y)},h=a?as(e):gO(c),p=lt(e);return{categories:l,domain:c,range:u,horizontal:i,scale:d,stringMap:s,style:n,origin:h,padding:p}}function $re(e,t,n){t=t||ZC(e),n=n||KC(e,t);var r=n.style.parent,i=e.height,a=e.polar,o=e.theme,l=e.width,s=n,c=s.origin,u=s.horizontal,f=e.name||"chart";return t.map(function(d,h){var p=d.type&&d.type.role,g=Array.isArray(d.props.style)?d.props.style:ae({},d.props.style,{parent:r}),y=Ire(d,e,n),_=d.props.name||"".concat(f,"-").concat(p,"-").concat(h),b=ae({horizontal:u,height:i,polar:a,theme:o,width:l,style:g,name:_,origin:a?c:void 0,padding:n.padding,key:"".concat(_,"-key-").concat(h),standalone:!1},y);return x.cloneElement(d,b)})}var ZC=function(e,t){var n=x.Children.toArray(e.children),r=Are(n);if(n.length===0)r.push(t.independent,t.dependent);else{var i={dependent:mO(n,"dependent"),independent:mO(n,"independent")};i.dependent.length===0&&i.independent.length===0&&(r=e.prependDefaultAxes?[t.independent,t.dependent].concat(r):r.concat([t.independent,t.dependent]))}return r},XC=function(e,t,n){n=n||x.Children.toArray(e.children);var r=np(e,t,n),i=hO(n,t),a=i&&i.props&&i.props.invertAxis;return a?r.concat().reverse():r},Fre=function(e,t,n){var r=!n.x||n.x.length===0?null:n.x.reduce(function(a,o,l){return a[o]=l+1,a},{}),i=!n.y||n.y.length===0?null:n.y.reduce(function(a,o,l){return a[o]=l+1,a},{});return{x:r,y:i}};function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){Nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var zre={width:450,height:300,padding:50},vp=function(e){var t="chart",n=kO(),r=n.getAnimationProps,i=n.setAnimationState,a=n.getProps,o=a(e),l=St(o,zre,t),s=l.desc,c=l.eventKey,u=l.containerComponent,f=l.standalone,d=l.groupComponent,h=l.externalEventMutations,p=l.width,g=l.height,y=l.theme,_=l.polar,b=l.name,S=l.title,O=o.polar?l.defaultPolarAxes:l.defaultAxes,w=x.useMemo(function(){return ZC(l,O)},[l,O]),A=x.useMemo(function(){return KC(l,w)},[l,w]),T=A.domain,k=A.scale,j=A.style,N=A.origin,M=A.horizontal,E=x.useMemo(function(){var ne=$re(o,w,A),re=ne.map(function(R,J){var U=B({animate:r(o,R,J)},R.props);return x.cloneElement(R,U)});if(o.style&&o.style.background){var Z=Dre(o,A);re.unshift(Z)}return re},[r,w,o,A]),I=x.useMemo(function(){return f?{desc:s,domain:T,width:p,height:g,horizontal:M,name:b,origin:_?N:void 0,polar:_,theme:y,title:S,scale:k,standalone:f,style:j.parent}:{}},[s,T,g,M,b,N,_,k,f,j,S,y,p]),D=x.useMemo(function(){if(f){var ne=ae({},u.props,I,ur(e));return x.cloneElement(u,ne)}return d},[d,f,u,I,e]),W=x.useMemo(function(){return kC(o)},[o]),X=wO(e);return x.useEffect(function(){return function(){e.animate&&i(X,e)}},[i,X,e]),rt(W)?x.cloneElement(D,D.props,E):x.createElement(Aa,{container:D,eventKey:c,events:W,externalEventMutations:h},E)};vp.propTypes=QC(QC({},Ot.baseProps),{},{backgroundComponent:m.element,children:m.oneOfType([m.arrayOf(m.node),m.node]),defaultAxes:m.shape({independent:m.element,dependent:m.element}),defaultPolarAxes:m.shape({independent:m.element,dependent:m.element}),endAngle:m.number,innerRadius:_e,prependDefaultAxes:m.bool,startAngle:m.number}),vp.defaultProps={backgroundComponent:x.createElement(gg,null),containerComponent:x.createElement(Ve,null),defaultAxes:{independent:x.createElement(As,null),dependent:x.createElement(As,{dependentAxis:!0})},defaultPolarAxes:{independent:x.createElement(YC,null),dependent:x.createElement(YC,{dependentAxis:!0})},groupComponent:x.createElement("g",null),standalone:!0,theme:Pr.grayscale};var zf=x.memo(vp,fn);zf.displayName="VictoryChart",zf.expectedComponents=["groupComponent","containerComponent"];const Bre={name:"--pf-chart-container--cursor--line--Fill",value:"#151515",var:"var(--pf-chart-container--cursor--line--Fill, #151515)"};var Wre=xn,eA=Object.create,Rre=function(){function e(){}return function(t){if(!Wre(t))return{};if(eA)return eA(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),yp=Rre;function Vre(){}var bp=Vre,Hre=yp,Ure=bp;function Bf(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Bf.prototype=Hre(Ure.prototype),Bf.prototype.constructor=Bf;var _p=Bf,tA=p1,qre=tA&&new tA,Gre=qre,nA=Gre,Yre=Nw,Kre=nA?function(e){return nA.get(e)}:Yre,rA=Kre,Zre={},Xre=Zre,iA=Xre,Jre=Object.prototype,Qre=Jre.hasOwnProperty;function eie(e){for(var t=e.name+"",n=iA[t],r=Qre.call(iA,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}var aA=eie,tie=yp,nie=bp,rie=4294967295;function Wf(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rie,this.__views__=[]}Wf.prototype=tie(nie.prototype),Wf.prototype.constructor=Wf;var xp=Wf;function iie(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var oA=iie,aie=xp,oie=_p,lie=oA;function sie(e){if(e instanceof aie)return e.clone();var t=new oie(e.__wrapped__,e.__chain__);return t.__actions__=lie(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var cie=sie,uie=xp,lA=_p,fie=bp,die=Nt,hie=sr,mie=cie,gie=Object.prototype,pie=gie.hasOwnProperty;function Rf(e){if(hie(e)&&!die(e)&&!(e instanceof uie)){if(e instanceof lA)return e;if(pie.call(e,"__wrapped__"))return mie(e)}return new lA(e)}Rf.prototype=fie.prototype,Rf.prototype.constructor=Rf;var vie=Rf,yie=xp,bie=rA,_ie=aA,xie=vie;function Sie(e){var t=_ie(e),n=xie[t];if(typeof n!="function"||!(t in yie.prototype))return!1;if(e===n)return!0;var r=bie(n);return!!r&&e===r[0]}var wie=Sie,sA=_p,Oie=E2,Cie=rA,Sp=aA,Aie=Nt,cA=wie,Tie="Expected a function",kie=8,Eie=32,Pie=128,jie=256;function Mie(e){return Oie(function(t){var n=t.length,r=n,i=sA.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if(typeof a!="function")throw new TypeError(Tie);if(i&&!o&&Sp(a)=="wrapper")var o=new sA([],!0)}for(r=o?r:n;++r<n;){a=t[r];var l=Sp(a),s=l=="wrapper"?Cie(a):void 0;s&&cA(s[0])&&s[1]==(Pie|kie|Eie|jie)&&!s[4].length&&s[9]==1?o=o[Sp(s[0])].apply(o,s[3]):o=a.length==1&&cA(a)?o[l]():o.thru(a)}return function(){var c=arguments,u=c[0];if(o&&c.length==1&&Aie(u))return o.plant(u).value();for(var f=0,d=n?t[f].apply(this,c):u;++f<n;)d=t[f].call(this,d);return d}})}var Die=Mie,Iie=Die,Lie=Iie(),$ie=Lie;const Fie=Ae($ie);var Nie=Ti;function zie(e){return typeof e=="function"?e:Nie}var Bie=zie,Wie=nu,Rie=Bie;function Vie(e,t){return e&&Wie(e,Rie(t))}var Hie=Vie;const Uie=Ae(Hie);var qie=mo;function Gie(e,t){return qie(t,function(n){return[n,e[n]]})}var Yie=Gie;function Kie(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=[r,r]}),n}var Zie=Kie,Xie=Yie,Jie=xm,Qie=m5,eae=Zie,tae="[object Map]",nae="[object Set]";function rae(e){return function(t){var n=Jie(t);return n==tae?Qie(t):n==nae?eae(t):Xie(t,e(t))}}var iae=rae,aae=iae,oae=ki,lae=aae(oae),sae=lae;const cae=Ae(sae);function uA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ts(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uA(Object(n),!0).forEach(function(r){uae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fae=function(e){var t=e.pointerWidth,n=e.cornerRadius,r=e.orientation,i=e.width,a=e.height,o=e.center,l=r==="bottom"?1:-1,s=e.x+(e.dx||0),c=e.y+(e.dy||0),u=Qe(o)&&o.x,f=Qe(o)&&o.y,d=f+l*(a/2),h=f-l*(a/2),p=u+i/2,g=u-i/2,y=l*(c-d)<0?0:e.pointerLength,_=r==="bottom"?"0 0 0":"0 0 1",b="".concat(n," ").concat(n," ").concat(_);return"M ".concat(u-t/2,", ").concat(d,`
204
204
  L `).concat(y?s:u+t/2,", ").concat(y?c:d,`
205
205
  L `).concat(u+t/2,", ").concat(d,`
206
206
  L `).concat(p-n,", ").concat(d,`
@@ -223,17 +223,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
223
223
  L `).concat(d+l*n,", ").concat(g,`
224
224
  A `).concat(b," ").concat(d,", ").concat(g+n,`
225
225
  z`)},hae=function(e){var t=e.orientation||"top";return t==="left"||t==="right"?dae(e):fae(e)},mae=function(e){var t=fe(e.id,e),n=Xe(e.style,e);return B({},e,{id:t,style:n})},wp=function(e){e=mae(e);var t=ur(e);return x.cloneElement(e.pathComponent,Ts(Ts(Ts({},e.events),t),{},{style:e.style,d:hae(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath}))};wp.propTypes=Ts(Ts({},Ot.primitiveProps),{},{center:m.shape({x:m.number,y:m.number}),cornerRadius:m.number,datum:m.object,dx:m.number,dy:m.number,height:m.number,orientation:m.oneOf(["top","bottom","left","right"]),pathComponent:m.element,pointerLength:m.number,pointerWidth:m.number,width:m.number,x:m.number,y:m.number}),wp.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};const gae=wp;function pae(e){return _ae(e)||bae(e)||yae(e)||vae()}function vae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
226
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yae(e,t){if(e){if(typeof e=="string")return Op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Op(e,t)}}function bae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ae(e){if(Array.isArray(e))return Op(e)}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sae(e,t,n){return t&&fA(e.prototype,t),n&&fA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cp(e,t)}function Oae(e){var t=Tae();return function(){var r=Vf(e),i;if(t){var a=Vf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Cae(this,i)}}function Cae(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aae(e)}function Aae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}var kae={cornerRadius:5,pointerLength:10,pointerWidth:10},Dr=function(e){wae(n,e);var t=Oae(n);function n(r){var i;return xae(this,n),i=t.call(this,r),i.id=r.id===void 0?pu("tooltip-"):r.id,i}return Sae(n,[{key:"getDefaultOrientation",value:function(i){var a=i.datum,o=i.horizontal,l=i.polar;if(!l){var s=o?"right":"top",c=o?"left":"bottom";return a&&a.y<0?c:s}return this.getPolarOrientation(i,a)}},{key:"getPolarOrientation",value:function(i,a){var o=ps(i,a),l=i.labelPlacement||"vertical";return l===" vertical"?this.getVerticalOrientations(o):l==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(i){return i<45||i>315?"right":i>=45&&i<=135?"top":i>135&&i<225?"left":"bottom"}},{key:"getStyles",value:function(i){var a=i.theme||Pr.grayscale,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},l=Array.isArray(i.style)?i.style.map(function(d){return ae({},d,o)}):ae({},i.style,o),s=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},c=i.flyoutStyle?ae({},i.flyoutStyle,s):s,u=Array.isArray(l)?l.map(function(d){return Xe(d,i)}):Xe(l,i),f=Xe(c,B({},i,{style:u}));return{style:u,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(i){var a=i.cornerRadius,o=i.centerOffset,l=i.dx,s=i.dy,c=fe(i.active,i),u=fe(i.text,B({},i,{active:c})),f=this.getStyles(B({},i,{active:c,text:u})),d=f.style,h=f.flyoutStyle,p=fe(i.orientation,B({},i,{active:c,text:u,style:d,flyoutStyle:h}))||this.getDefaultOrientation(i),g=fe(i.flyoutPadding,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),y=lt({padding:g}),_=fe(i.pointerWidth,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p})),b=fe(i.pointerLength,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p})),S=pa(u,d),O=this.getDimensions(B({},i,{style:d,flyoutStyle:h,active:c,text:u,orientation:p,flyoutPadding:y,pointerWidth:_,pointerLength:b}),S),w=O.flyoutHeight,A=O.flyoutWidth,T=B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p,flyoutHeight:w,flyoutWidth:A,flyoutPadding:y,pointerWidth:_,pointerLength:b}),k=Qe(o)&&o.x!==void 0?fe(o.x,T):0,P=Qe(o)&&o.y!==void 0?fe(o.y,T):0;return B({},T,{centerOffset:{x:k,y:P},dx:l!==void 0?fe(l,T):0,dy:s!==void 0?fe(s,T):0,cornerRadius:fe(a,T)})}},{key:"getCalculatedValues",value:function(i){var a=i.style,o=i.text,l=i.flyoutStyle,s=i.flyoutHeight,c=i.flyoutWidth,u=pa(o,a),f={height:s,width:c},d=this.getFlyoutCenter(i,f),h=this.getTransform(i);return{style:a,flyoutStyle:l,labelSize:u,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(i){var a=i.x,o=i.y,l=i.style,s=l||{},c=s.angle||i.angle||this.getDefaultAngle(i);return c?"rotate(".concat(c," ").concat(a," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(i){var a=i.polar,o=i.labelPlacement,l=i.orientation,s=i.datum;if(!a||!o||o==="vertical")return 0;var c=ps(i,s),u=c>90&&c<180||c>270?1:-1,f=o==="perpendicular"?0:90,d;return c===0||c===180?d=l==="top"&&c===180?270:90:c>0&&c<180?d=90-c:c>180&&c<360&&(d=270-c),d+u*f}},{key:"constrainTooltip",value:function(i,a,o){var l=i.x,s=i.y,c=o.width,u=o.height,f={x:[0,a.width],y:[0,a.height]},d={x:[l-c/2,l+c/2],y:[s-u/2,s+u/2]},h={x:[d.x[0]<f.x[0]?f.x[0]-d.x[0]:0,d.x[1]>f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]<f.y[0]?f.y[0]-d.y[0]:0,d.y[1]>f.y[1]?d.y[1]-f.y[1]:0]};return{x:Math.round(l+h.x[0]-h.x[1]),y:Math.round(s+h.y[0]-h.y[1])}}},{key:"getFlyoutCenter",value:function(i,a){var o=i.x,l=i.y,s=i.dx,c=i.dy,u=i.pointerLength,f=i.orientation,d=i.constrainToVisibleArea,h=i.centerOffset,p=a.height,g=a.width,y=f==="left"?-1:1,_=f==="bottom"?-1:1,b={x:f==="left"||f==="right"?o+y*(u+g/2+y*s):o+s,y:f==="top"||f==="bottom"?l-_*(u+p/2-_*c):l+c},S={x:Qe(i.center)&&i.center.x!==void 0?i.center.x:b.x,y:Qe(i.center)&&i.center.y!==void 0?i.center.y:b.y},O={x:S.x+h.x,y:S.y+h.y};return d?this.constrainTooltip(O,i,a):O}},{key:"getLabelPadding",value:function(i){if(!i)return 0;var a=Array.isArray(i)?i.map(function(o){return o.padding}):[i.padding];return Math.max.apply(Math,pae(a).concat([0]))}},{key:"getDimensions",value:function(i,a){var o=i.orientation,l=i.pointerLength,s=i.pointerWidth,c=i.flyoutHeight,u=i.flyoutWidth,f=i.flyoutPadding,d=fe(i.cornerRadius,i),h=function(){var g=a.height+f.top+f.bottom,y=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(y,g)},p=function(){var g=a.width+f.left+f.right,y=o==="left"||o==="right"?2*d+l:2*d;return Math.max(y,g)};return{flyoutHeight:c?fe(c,i):h(),flyoutWidth:u?fe(u,i):p()}}},{key:"getLabelProps",value:function(i,a){var o=a.flyoutCenter,l=a.style,s=a.labelSize,c=a.dy,u=c===void 0?0:c,f=a.dx,d=f===void 0?0:f,h=i.text,p=i.datum,g=i.activePoints,y=i.labelComponent,_=i.index,b=i.flyoutPadding,S=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",O=function(){if(!S||S==="middle")return o.x;var w=S==="end"?-1:1;return o.x-w*(s.width/2)};return ae({},y.props,{key:"".concat(this.id,"-label-").concat(_),text:h,datum:p,activePoints:g,textAnchor:S,dy:u,dx:d,style:l,x:O()+(b.left-b.right)/2,y:o.y+(b.top-b.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(i,a,o){var l={bottom:a.y+o.height/2,top:a.y-o.height/2,left:a.x-o.width/2,right:a.x+o.width/2},s=[{side:"top",val:l.top>i.y?l.top-i.y:-1},{side:"bottom",val:l.bottom<i.y?i.y-l.bottom:-1},{side:"right",val:l.right<i.x?i.x-l.right:-1},{side:"left",val:l.left>i.x?l.left-i.x:-1}];return bo(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(i,a){var o=a.flyoutDimensions,l=a.flyoutStyle,s=a.flyoutCenter,c=i.x,u=i.y,f=i.dx,d=i.dy,h=i.datum,p=i.activePoints,g=i.index,y=i.pointerLength,_=i.pointerWidth,b=i.cornerRadius,S=i.events,O=i.flyoutComponent,w=fe(i.pointerOrientation,i);return ae({},O.props,{x:c,y:u,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:y,pointerWidth:_,cornerRadius:b,events:S,orientation:w||this.getPointerOrientation({x:c,y:u},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(i){var a=fe(i.active,i),o=i.renderInPortal;if(!a)return o?x.createElement(ii,null,null):null;var l=this.getEvaluatedProps(i),s=l.flyoutComponent,c=l.labelComponent,u=l.groupComponent,f=this.getCalculatedValues(l),d=[x.cloneElement(s,this.getFlyoutProps(l,f)),x.cloneElement(c,this.getLabelProps(l,f))],h=x.cloneElement(u,{role:"presentation",transform:f.transform},d);return o?x.createElement(ii,null,h):h}},{key:"render",value:function(){var i=St(this.props,kae,"tooltip");return this.renderTooltip(i)}}]),n}(x.Component);Dr.displayName="VictoryTooltip",Dr.role="tooltip",Dr.propTypes={activateData:m.bool,active:m.oneOfType([m.bool,m.func]),activePoints:m.array,angle:m.number,center:m.shape({x:_e,y:_e}),centerOffset:m.shape({x:m.oneOfType([m.number,m.func]),y:m.oneOfType([m.number,m.func])}),constrainToVisibleArea:m.bool,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,datum:m.object,dx:m.oneOfType([m.number,m.func]),dy:m.oneOfType([m.number,m.func]),events:m.object,flyoutComponent:m.element,flyoutHeight:m.oneOfType([_e,m.func]),flyoutPadding:m.oneOfType([m.func,m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),flyoutStyle:m.object,flyoutWidth:m.oneOfType([_e,m.func]),groupComponent:m.element,height:m.number,horizontal:m.bool,id:m.oneOfType([m.number,m.string]),index:m.oneOfType([m.number,m.string]),labelComponent:m.element,orientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerLength:m.oneOfType([_e,m.func]),pointerOrientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerWidth:m.oneOfType([_e,m.func]),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Er,y:Er}),style:m.oneOfType([m.object,m.array]),text:m.oneOfType([m.string,m.number,m.func,m.array]),theme:m.object,width:m.number,x:m.number,y:m.number},Dr.defaultProps={active:!1,renderInPortal:!0,labelComponent:x.createElement(wt,null),flyoutComponent:x.createElement(gae,null),groupComponent:x.createElement("g",null)},Dr.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var Eae=lr,Pae=function(){return Eae.Date.now()},jae=Pae,Mae=xn,Ap=jae,dA=s0,Dae="Expected a function",Iae=Math.max,Lae=Math.min;function $ae(e,t,n){var r,i,a,o,l,s,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Dae);t=dA(t)||0,Mae(n)&&(u=!!n.leading,f="maxWait"in n,a=f?Iae(dA(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(A){var T=r,k=i;return r=i=void 0,c=A,o=e.apply(k,T),o}function p(A){return c=A,l=setTimeout(_,t),u?h(A):o}function g(A){var T=A-s,k=A-c,P=t-T;return f?Lae(P,a-k):P}function y(A){var T=A-s,k=A-c;return s===void 0||T>=t||T<0||f&&k>=a}function _(){var A=Ap();if(y(A))return b(A);l=setTimeout(_,g(A))}function b(A){return l=void 0,d&&r?h(A):(r=i=void 0,o)}function S(){l!==void 0&&clearTimeout(l),c=0,r=s=i=l=void 0}function O(){return l===void 0?o:b(Ap())}function w(){var A=Ap(),T=y(A);if(r=arguments,i=this,s=A,T){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(_,t),h(s)}return l===void 0&&(l=setTimeout(_,t)),o}return w.cancel=S,w.flush=O,w}var Fae=$ae,Nae=Fae,zae=xn,Bae="Expected a function";function Wae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Bae);return zae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Nae(e,t,{leading:r,maxWait:t,trailing:i})}var Rae=Wae;const No=Ae(Rae);var hA={},mA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(al,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(_){var b=_.length>>1;if(b>0&&typeof _[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=_;var S=Math.max(2*b-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(b)),this._hullPrev=new Uint32Array(b),this._hullNext=new Uint32Array(b),this._hullTri=new Uint32Array(b),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(b),this._dists=new Float64Array(b),this.update()};i.from=function(_,b,S){b===void 0&&(b=p),S===void 0&&(S=g);for(var O=_.length,w=new Float64Array(O*2),A=0;A<O;A++){var T=_[A];w[2*A]=b(T),w[2*A+1]=S(T)}return new i(w)},i.prototype.update=function(){for(var _=this,b=_.coords,S=_._hullPrev,O=_._hullNext,w=_._hullTri,A=_._hullHash,T=b.length>>1,k=1/0,P=1/0,N=-1/0,M=-1/0,j=0;j<T;j++){var D=b[2*j],I=b[2*j+1];D<k&&(k=D),I<P&&(P=I),D>N&&(N=D),I>M&&(M=I),this._ids[j]=j}for(var W=(k+N)/2,X=(P+M)/2,ne=1/0,re,Z,R,J=0;J<T;J++){var U=o(W,X,b[2*J],b[2*J+1]);U<ne&&(re=J,ne=U)}var Y=b[2*re],G=b[2*re+1];ne=1/0;for(var ie=0;ie<T;ie++)if(ie!==re){var z=o(Y,G,b[2*ie],b[2*ie+1]);z<ne&&z>0&&(Z=ie,ne=z)}for(var se=b[2*Z],K=b[2*Z+1],Q=1/0,te=0;te<T;te++)if(!(te===re||te===Z)){var ce=u(Y,G,se,K,b[2*te],b[2*te+1]);ce<Q&&(R=te,Q=ce)}var L=b[2*R],xe=b[2*R+1];if(Q===1/0){for(var Se=0;Se<T;Se++)this._dists[Se]=b[2*Se]-b[0]||b[2*Se+1]-b[1];d(this._ids,this._dists,0,T-1);for(var be=new Uint32Array(T),ge=0,E=0,V=-1/0;E<T;E++){var ee=this._ids[E];this._dists[ee]>V&&(be[ge++]=ee,V=this._dists[ee])}this.hull=be.subarray(0,ge),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(Y,G,se,K,L,xe)){var he=Z,me=se,ue=K;Z=R,se=L,K=xe,R=he,L=me,xe=ue}var le=f(Y,G,se,K,L,xe);this._cx=le.x,this._cy=le.y;for(var H=0;H<T;H++)this._dists[H]=o(b[2*H],b[2*H+1],le.x,le.y);d(this._ids,this._dists,0,T-1),this._hullStart=re;var oe=3;O[re]=S[R]=Z,O[Z]=S[re]=R,O[R]=S[Z]=re,w[re]=0,w[Z]=1,w[R]=2,A.fill(-1),A[this._hashKey(Y,G)]=re,A[this._hashKey(se,K)]=Z,A[this._hashKey(L,xe)]=R,this.trianglesLen=0,this._addTriangle(re,Z,R,-1,-1,-1);for(var Ee=0,De=void 0,je=void 0;Ee<this._ids.length;Ee++){var He=this._ids[Ee],ht=b[2*He],Lt=b[2*He+1];if(!(Ee>0&&Math.abs(ht-De)<=n&&Math.abs(Lt-je)<=n)&&(De=ht,je=Lt,!(He===re||He===Z||He===R))){for(var Ut=0,Jn=0,Gi=this._hashKey(ht,Lt);Jn<this._hashSize&&(Ut=A[(Gi+Jn)%this._hashSize],!(Ut!==-1&&Ut!==O[Ut]));Jn++);Ut=S[Ut];for(var Ue=Ut,pt=void 0;pt=O[Ue],!s(ht,Lt,b[2*Ue],b[2*Ue+1],b[2*pt],b[2*pt+1]);)if(Ue=pt,Ue===Ut){Ue=-1;break}if(Ue!==-1){var En=this._addTriangle(Ue,He,O[Ue],-1,-1,w[Ue]);w[He]=this._legalize(En+2),w[Ue]=En,oe++;for(var Xt=O[Ue];pt=O[Xt],s(ht,Lt,b[2*Xt],b[2*Xt+1],b[2*pt],b[2*pt+1]);)En=this._addTriangle(Xt,He,pt,w[He],-1,w[Xt]),w[He]=this._legalize(En+2),O[Xt]=Xt,oe--,Xt=pt;if(Ue===Ut)for(;pt=S[Ue],s(ht,Lt,b[2*pt],b[2*pt+1],b[2*Ue],b[2*Ue+1]);)En=this._addTriangle(pt,He,Ue,-1,w[Ue],w[pt]),this._legalize(En+2),w[pt]=En,O[Ue]=Ue,oe--,Ue=pt;this._hullStart=S[He]=Ue,O[Ue]=S[Xt]=He,O[He]=Xt,A[this._hashKey(ht,Lt)]=He,A[this._hashKey(b[2*Ue],b[2*Ue+1])]=Ue}}}this.hull=new Uint32Array(oe);for(var vi=0,nl=this._hullStart;vi<oe;vi++)this.hull[vi]=nl,nl=O[nl];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(_,b){return Math.floor(a(_-this._cx,b-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(_){for(var b=this,S=b._triangles,O=b._halfedges,w=b.coords,A=0,T=0;;){var k=O[_],P=_-_%3;if(T=P+(_+2)%3,k===-1){if(A===0)break;_=r[--A];continue}var N=k-k%3,M=P+(_+1)%3,j=N+(k+2)%3,D=S[T],I=S[_],W=S[M],X=S[j],ne=c(w[2*D],w[2*D+1],w[2*I],w[2*I+1],w[2*W],w[2*W+1],w[2*X],w[2*X+1]);if(ne){S[_]=X,S[k]=D;var re=O[j];if(re===-1){var Z=this._hullStart;do{if(this._hullTri[Z]===j){this._hullTri[Z]=_;break}Z=this._hullPrev[Z]}while(Z!==this._hullStart)}this._link(_,re),this._link(k,O[T]),this._link(T,j);var R=N+(k+1)%3;A<r.length&&(r[A++]=R)}else{if(A===0)break;_=r[--A]}}return T},i.prototype._link=function(_,b){this._halfedges[_]=b,b!==-1&&(this._halfedges[b]=_)},i.prototype._addTriangle=function(_,b,S,O,w,A){var T=this.trianglesLen;return this._triangles[T]=_,this._triangles[T+1]=b,this._triangles[T+2]=S,this._link(T,O),this._link(T+1,w),this._link(T+2,A),this.trianglesLen+=3,T};function a(y,_){var b=y/(Math.abs(y)+Math.abs(_));return(_>0?3-b:1+b)/4}function o(y,_,b,S){var O=y-b,w=_-S;return O*O+w*w}function l(y,_,b,S,O,w){var A=(S-_)*(O-y),T=(b-y)*(w-_);return Math.abs(A-T)>=33306690738754716e-32*Math.abs(A+T)?A-T:0}function s(y,_,b,S,O,w){var A=l(O,w,y,_,b,S)||l(y,_,b,S,O,w)||l(b,S,O,w,y,_);return A<0}function c(y,_,b,S,O,w,A,T){var k=y-A,P=_-T,N=b-A,M=S-T,j=O-A,D=w-T,I=k*k+P*P,W=N*N+M*M,X=j*j+D*D;return k*(M*X-W*D)-P*(N*X-W*j)+I*(N*D-M*j)<0}function u(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,P=w-_,N=A*A+T*T,M=k*k+P*P,j=.5/(A*P-T*k),D=(P*N-T*M)*j,I=(A*M-k*N)*j;return D*D+I*I}function f(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,P=w-_,N=A*A+T*T,M=k*k+P*P,j=.5/(A*P-T*k),D=y+(P*N-T*M)*j,I=_+(A*M-k*N)*j;return{x:D,y:I}}function d(y,_,b,S){if(S-b<=20)for(var O=b+1;O<=S;O++){for(var w=y[O],A=_[w],T=O-1;T>=b&&_[y[T]]>A;)y[T+1]=y[T--];y[T+1]=w}else{var k=b+S>>1,P=b+1,N=S;h(y,k,P),_[y[b]]>_[y[S]]&&h(y,b,S),_[y[P]]>_[y[S]]&&h(y,P,S),_[y[b]]>_[y[P]]&&h(y,b,P);for(var M=y[P],j=_[M];;){do P++;while(_[y[P]]<j);do N--;while(_[y[N]]>j);if(N<P)break;h(y,P,N)}y[b+1]=y[N],y[N]=M,S-P+1>=N-b?(d(y,_,P,S),d(y,_,b,N-1)):(d(y,_,b,N-1),d(y,_,P,S))}}function h(y,_,b){var S=y[_];y[_]=y[b],y[b]=S}function p(y){return y[0]}function g(y){return y[1]}return i})})(mA);var Vae=mA.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Vae);function n(c){return c&&c.__esModule?c:{default:c}}function r(c){return c[0]}function i(c){return c[1]}function a(c){for(var u=c.triangles,f=c.coords,d=0;d<u.length;d+=3){var h=2*u[d],p=2*u[d+1],g=2*u[d+2],y=(f[g]-f[h])*(f[p+1]-f[h+1])-(f[p]-f[h])*(f[g+1]-f[h+1]);if(y>1e-10)return!1}return!0}function o(c,u,f){return[c+Math.sin(c+u)*f,u+Math.cos(c-u)*f]}function l(c,u,f,d){for(var h=c.length,p=new Float64Array(h*2),g=0;g<h;++g){var y=c[g];p[g*2]=u.call(d,y,g,c),p[g*2+1]=f.call(d,y,g,c)}return p}var s=function(){function c(f){var d=new t.default(f);this.inedges=new Int32Array(f.length/2),this._hullIndex=new Int32Array(f.length/2),this.points=d.coords,this._init(d)}var u=c.prototype;return u._init=function(d){var h=d,p=this.points;if(h.hull&&h.hull.length>2&&a(h)){this.collinear=Int32Array.from({length:p.length/2},function(X,ne){return ne}).sort(function(X,ne){return p[2*X]-p[2*ne]||p[2*X+1]-p[2*ne+1]});for(var g=this.collinear[0],y=this.collinear[this.collinear.length-1],_=[p[2*g],p[2*g+1],p[2*y],p[2*y+1]],b=1e-8*Math.sqrt(Math.pow(_[3]-_[1],2)+Math.pow(_[2]-_[0],2)),S=0,O=p.length/2;S<O;++S){var w=o(p[2*S],p[2*S+1],b);p[2*S]=w[0],p[2*S+1]=w[1]}d=new t.default(p)}for(var A=this.halfedges=d.halfedges,T=this.hull=d.hull,k=this.triangles=d.triangles,P=this.inedges.fill(-1),N=this._hullIndex.fill(-1),M=0,j=A.length;M<j;++M){var D=k[M%3===2?M-2:M+1];(A[M]===-1||P[D]===-1)&&(P[D]=M)}for(var I=0,W=T.length;I<W;++I)N[T[I]]=I;T.length<=2&&T.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=T[0],this.triangles[1]=T[1],this.triangles[2]=T[1],P[T[0]]=1,T.length===2&&(P[T[1]]=0))},u.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,y=this._hullIndex,_=this.halfedges,b=this.triangles,S=p[d];if(S===-1)return h;var O=S,w=-1;do{if(w=b[O],h.push(w),O=O%3===2?O-2:O+1,b[O]!==d)break;if(O=_[O],O===-1){var A=g[(y[d]+1)%g.length];A!==w&&h.push(A);break}}while(O!==S);return h},u.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,y;(y=this._step(p,d,h))>=0&&y!==p&&y!==g;)p=y;return y},u._step=function(d,h,p){var g=this.inedges,y=this.points;if(g[d]===-1||!y.length)return(d+1)%(y.length>>1);for(var _=d,b=Math.pow(h-y[d*2],2)+Math.pow(p-y[d*2+1],2),w=this.neighbors(d),S=Array.isArray(w),O=0,w=S?w:w[Symbol.iterator]();;){var A;if(S){if(O>=w.length)break;A=w[O++]}else{if(O=w.next(),O.done)break;A=O.value}var T=A,k=Math.pow(h-y[T*2],2)+Math.pow(p-y[T*2+1],2);k<b&&(b=k,_=T)}return _},c}();e.default=s,s.from=function(c,u,f,d){return u===void 0&&(u=r),f===void 0&&(f=i),new s(l(c,u,f,d))}})(hA);const Hae=Ae(hA);function ks(e){return Yae(e)||Gae(e)||qae(e)||Uae()}function Uae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yae(e,t){if(e){if(typeof e=="string")return Op(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Op(e,t)}}function bae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _ae(e){if(Array.isArray(e))return Op(e)}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sae(e,t,n){return t&&fA(e.prototype,t),n&&fA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cp(e,t)}function Cp(e,t){return Cp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Cp(e,t)}function Oae(e){var t=Tae();return function(){var r=Vf(e),i;if(t){var a=Vf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Cae(this,i)}}function Cae(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Aae(e)}function Aae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Tae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Vf(e){return Vf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vf(e)}var kae={cornerRadius:5,pointerLength:10,pointerWidth:10},Dr=function(e){wae(n,e);var t=Oae(n);function n(r){var i;return xae(this,n),i=t.call(this,r),i.id=r.id===void 0?pu("tooltip-"):r.id,i}return Sae(n,[{key:"getDefaultOrientation",value:function(i){var a=i.datum,o=i.horizontal,l=i.polar;if(!l){var s=o?"right":"top",c=o?"left":"bottom";return a&&a.y<0?c:s}return this.getPolarOrientation(i,a)}},{key:"getPolarOrientation",value:function(i,a){var o=ps(i,a),l=i.labelPlacement||"vertical";return l===" vertical"?this.getVerticalOrientations(o):l==="parallel"?o<90||o>270?"right":"left":o>180?"bottom":"top"}},{key:"getVerticalOrientations",value:function(i){return i<45||i>315?"right":i>=45&&i<=135?"top":i>135&&i<225?"left":"bottom"}},{key:"getStyles",value:function(i){var a=i.theme||Pr.grayscale,o=a&&a.tooltip&&a.tooltip.style?a.tooltip.style:{},l=Array.isArray(i.style)?i.style.map(function(d){return ae({},d,o)}):ae({},i.style,o),s=a&&a.tooltip&&a.tooltip.flyoutStyle?a.tooltip.flyoutStyle:{},c=i.flyoutStyle?ae({},i.flyoutStyle,s):s,u=Array.isArray(l)?l.map(function(d){return Xe(d,i)}):Xe(l,i),f=Xe(c,B({},i,{style:u}));return{style:u,flyoutStyle:f}}},{key:"getEvaluatedProps",value:function(i){var a=i.cornerRadius,o=i.centerOffset,l=i.dx,s=i.dy,c=fe(i.active,i),u=fe(i.text,B({},i,{active:c})),f=this.getStyles(B({},i,{active:c,text:u})),d=f.style,h=f.flyoutStyle,p=fe(i.orientation,B({},i,{active:c,text:u,style:d,flyoutStyle:h}))||this.getDefaultOrientation(i),g=fe(i.flyoutPadding,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p}))||this.getLabelPadding(d),y=lt({padding:g}),_=fe(i.pointerWidth,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p})),b=fe(i.pointerLength,B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p})),S=pa(u,d),O=this.getDimensions(B({},i,{style:d,flyoutStyle:h,active:c,text:u,orientation:p,flyoutPadding:y,pointerWidth:_,pointerLength:b}),S),w=O.flyoutHeight,A=O.flyoutWidth,T=B({},i,{active:c,text:u,style:d,flyoutStyle:h,orientation:p,flyoutHeight:w,flyoutWidth:A,flyoutPadding:y,pointerWidth:_,pointerLength:b}),k=Qe(o)&&o.x!==void 0?fe(o.x,T):0,j=Qe(o)&&o.y!==void 0?fe(o.y,T):0;return B({},T,{centerOffset:{x:k,y:j},dx:l!==void 0?fe(l,T):0,dy:s!==void 0?fe(s,T):0,cornerRadius:fe(a,T)})}},{key:"getCalculatedValues",value:function(i){var a=i.style,o=i.text,l=i.flyoutStyle,s=i.flyoutHeight,c=i.flyoutWidth,u=pa(o,a),f={height:s,width:c},d=this.getFlyoutCenter(i,f),h=this.getTransform(i);return{style:a,flyoutStyle:l,labelSize:u,flyoutDimensions:f,flyoutCenter:d,transform:h}}},{key:"getTransform",value:function(i){var a=i.x,o=i.y,l=i.style,s=l||{},c=s.angle||i.angle||this.getDefaultAngle(i);return c?"rotate(".concat(c," ").concat(a," ").concat(o,")"):void 0}},{key:"getDefaultAngle",value:function(i){var a=i.polar,o=i.labelPlacement,l=i.orientation,s=i.datum;if(!a||!o||o==="vertical")return 0;var c=ps(i,s),u=c>90&&c<180||c>270?1:-1,f=o==="perpendicular"?0:90,d;return c===0||c===180?d=l==="top"&&c===180?270:90:c>0&&c<180?d=90-c:c>180&&c<360&&(d=270-c),d+u*f}},{key:"constrainTooltip",value:function(i,a,o){var l=i.x,s=i.y,c=o.width,u=o.height,f={x:[0,a.width],y:[0,a.height]},d={x:[l-c/2,l+c/2],y:[s-u/2,s+u/2]},h={x:[d.x[0]<f.x[0]?f.x[0]-d.x[0]:0,d.x[1]>f.x[1]?d.x[1]-f.x[1]:0],y:[d.y[0]<f.y[0]?f.y[0]-d.y[0]:0,d.y[1]>f.y[1]?d.y[1]-f.y[1]:0]};return{x:Math.round(l+h.x[0]-h.x[1]),y:Math.round(s+h.y[0]-h.y[1])}}},{key:"getFlyoutCenter",value:function(i,a){var o=i.x,l=i.y,s=i.dx,c=i.dy,u=i.pointerLength,f=i.orientation,d=i.constrainToVisibleArea,h=i.centerOffset,p=a.height,g=a.width,y=f==="left"?-1:1,_=f==="bottom"?-1:1,b={x:f==="left"||f==="right"?o+y*(u+g/2+y*s):o+s,y:f==="top"||f==="bottom"?l-_*(u+p/2-_*c):l+c},S={x:Qe(i.center)&&i.center.x!==void 0?i.center.x:b.x,y:Qe(i.center)&&i.center.y!==void 0?i.center.y:b.y},O={x:S.x+h.x,y:S.y+h.y};return d?this.constrainTooltip(O,i,a):O}},{key:"getLabelPadding",value:function(i){if(!i)return 0;var a=Array.isArray(i)?i.map(function(o){return o.padding}):[i.padding];return Math.max.apply(Math,pae(a).concat([0]))}},{key:"getDimensions",value:function(i,a){var o=i.orientation,l=i.pointerLength,s=i.pointerWidth,c=i.flyoutHeight,u=i.flyoutWidth,f=i.flyoutPadding,d=fe(i.cornerRadius,i),h=function(){var g=a.height+f.top+f.bottom,y=o==="top"||o==="bottom"?2*d:2*d+s;return Math.max(y,g)},p=function(){var g=a.width+f.left+f.right,y=o==="left"||o==="right"?2*d+l:2*d;return Math.max(y,g)};return{flyoutHeight:c?fe(c,i):h(),flyoutWidth:u?fe(u,i):p()}}},{key:"getLabelProps",value:function(i,a){var o=a.flyoutCenter,l=a.style,s=a.labelSize,c=a.dy,u=c===void 0?0:c,f=a.dx,d=f===void 0?0:f,h=i.text,p=i.datum,g=i.activePoints,y=i.labelComponent,_=i.index,b=i.flyoutPadding,S=(Array.isArray(l)&&l.length?l[0].textAnchor:l.textAnchor)||"middle",O=function(){if(!S||S==="middle")return o.x;var w=S==="end"?-1:1;return o.x-w*(s.width/2)};return ae({},y.props,{key:"".concat(this.id,"-label-").concat(_),text:h,datum:p,activePoints:g,textAnchor:S,dy:u,dx:d,style:l,x:O()+(b.left-b.right)/2,y:o.y+(b.top-b.bottom)/2,verticalAnchor:"middle",angle:l.angle})}},{key:"getPointerOrientation",value:function(i,a,o){var l={bottom:a.y+o.height/2,top:a.y-o.height/2,left:a.x-o.width/2,right:a.x+o.width/2},s=[{side:"top",val:l.top>i.y?l.top-i.y:-1},{side:"bottom",val:l.bottom<i.y?i.y-l.bottom:-1},{side:"right",val:l.right<i.x?i.x-l.right:-1},{side:"left",val:l.left>i.x?l.left-i.x:-1}];return bo(s,"val","desc")[0].side}},{key:"getFlyoutProps",value:function(i,a){var o=a.flyoutDimensions,l=a.flyoutStyle,s=a.flyoutCenter,c=i.x,u=i.y,f=i.dx,d=i.dy,h=i.datum,p=i.activePoints,g=i.index,y=i.pointerLength,_=i.pointerWidth,b=i.cornerRadius,S=i.events,O=i.flyoutComponent,w=fe(i.pointerOrientation,i);return ae({},O.props,{x:c,y:u,dx:f,dy:d,datum:h,activePoints:p,index:g,pointerLength:y,pointerWidth:_,cornerRadius:b,events:S,orientation:w||this.getPointerOrientation({x:c,y:u},s,o),key:"".concat(this.id,"-tooltip-").concat(g),width:o.width,height:o.height,style:l,center:s})}},{key:"renderTooltip",value:function(i){var a=fe(i.active,i),o=i.renderInPortal;if(!a)return o?x.createElement(ii,null,null):null;var l=this.getEvaluatedProps(i),s=l.flyoutComponent,c=l.labelComponent,u=l.groupComponent,f=this.getCalculatedValues(l),d=[x.cloneElement(s,this.getFlyoutProps(l,f)),x.cloneElement(c,this.getLabelProps(l,f))],h=x.cloneElement(u,{role:"presentation",transform:f.transform},d);return o?x.createElement(ii,null,h):h}},{key:"render",value:function(){var i=St(this.props,kae,"tooltip");return this.renderTooltip(i)}}]),n}(x.Component);Dr.displayName="VictoryTooltip",Dr.role="tooltip",Dr.propTypes={activateData:m.bool,active:m.oneOfType([m.bool,m.func]),activePoints:m.array,angle:m.number,center:m.shape({x:_e,y:_e}),centerOffset:m.shape({x:m.oneOfType([m.number,m.func]),y:m.oneOfType([m.number,m.func])}),constrainToVisibleArea:m.bool,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,datum:m.object,dx:m.oneOfType([m.number,m.func]),dy:m.oneOfType([m.number,m.func]),events:m.object,flyoutComponent:m.element,flyoutHeight:m.oneOfType([_e,m.func]),flyoutPadding:m.oneOfType([m.func,m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),flyoutStyle:m.object,flyoutWidth:m.oneOfType([_e,m.func]),groupComponent:m.element,height:m.number,horizontal:m.bool,id:m.oneOfType([m.number,m.string]),index:m.oneOfType([m.number,m.string]),labelComponent:m.element,orientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerLength:m.oneOfType([_e,m.func]),pointerOrientation:m.oneOfType([m.oneOf(["top","bottom","left","right"]),m.func]),pointerWidth:m.oneOfType([_e,m.func]),polar:m.bool,renderInPortal:m.bool,scale:m.shape({x:Er,y:Er}),style:m.oneOfType([m.object,m.array]),text:m.oneOfType([m.string,m.number,m.func,m.array]),theme:m.object,width:m.number,x:m.number,y:m.number},Dr.defaultProps={active:!1,renderInPortal:!0,labelComponent:x.createElement(wt,null),flyoutComponent:x.createElement(gae,null),groupComponent:x.createElement("g",null)},Dr.defaultEvents=function(e){var t=e.activateData?[{target:"labels",mutation:function(){return{active:!0}}},{target:"data",mutation:function(){return{active:!0}}}]:[{target:"labels",mutation:function(){return{active:!0}}}],n=e.activateData?[{target:"labels",mutation:function(){return{active:void 0}}},{target:"data",mutation:function(){return{active:void 0}}}]:[{target:"labels",mutation:function(){return{active:void 0}}}];return[{target:"data",eventHandlers:{onMouseOver:function(){return t},onFocus:function(){return t},onTouchStart:function(){return t},onMouseOut:function(){return n},onBlur:function(){return n},onTouchEnd:function(){return n}}}]};var Eae=lr,Pae=function(){return Eae.Date.now()},jae=Pae,Mae=xn,Ap=jae,dA=s0,Dae="Expected a function",Iae=Math.max,Lae=Math.min;function $ae(e,t,n){var r,i,a,o,l,s,c=0,u=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(Dae);t=dA(t)||0,Mae(n)&&(u=!!n.leading,f="maxWait"in n,a=f?Iae(dA(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d);function h(A){var T=r,k=i;return r=i=void 0,c=A,o=e.apply(k,T),o}function p(A){return c=A,l=setTimeout(_,t),u?h(A):o}function g(A){var T=A-s,k=A-c,j=t-T;return f?Lae(j,a-k):j}function y(A){var T=A-s,k=A-c;return s===void 0||T>=t||T<0||f&&k>=a}function _(){var A=Ap();if(y(A))return b(A);l=setTimeout(_,g(A))}function b(A){return l=void 0,d&&r?h(A):(r=i=void 0,o)}function S(){l!==void 0&&clearTimeout(l),c=0,r=s=i=l=void 0}function O(){return l===void 0?o:b(Ap())}function w(){var A=Ap(),T=y(A);if(r=arguments,i=this,s=A,T){if(l===void 0)return p(s);if(f)return clearTimeout(l),l=setTimeout(_,t),h(s)}return l===void 0&&(l=setTimeout(_,t)),o}return w.cancel=S,w.flush=O,w}var Fae=$ae,Nae=Fae,zae=xn,Bae="Expected a function";function Wae(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Bae);return zae(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Nae(e,t,{leading:r,maxWait:t,trailing:i})}var Rae=Wae;const No=Ae(Rae);var hA={},mA={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(al,function(){var n=Math.pow(2,-52),r=new Uint32Array(512),i=function(_){var b=_.length>>1;if(b>0&&typeof _[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=_;var S=Math.max(2*b-5,0);this._triangles=new Uint32Array(S*3),this._halfedges=new Int32Array(S*3),this._hashSize=Math.ceil(Math.sqrt(b)),this._hullPrev=new Uint32Array(b),this._hullNext=new Uint32Array(b),this._hullTri=new Uint32Array(b),this._hullHash=new Int32Array(this._hashSize).fill(-1),this._ids=new Uint32Array(b),this._dists=new Float64Array(b),this.update()};i.from=function(_,b,S){b===void 0&&(b=p),S===void 0&&(S=g);for(var O=_.length,w=new Float64Array(O*2),A=0;A<O;A++){var T=_[A];w[2*A]=b(T),w[2*A+1]=S(T)}return new i(w)},i.prototype.update=function(){for(var _=this,b=_.coords,S=_._hullPrev,O=_._hullNext,w=_._hullTri,A=_._hullHash,T=b.length>>1,k=1/0,j=1/0,N=-1/0,M=-1/0,E=0;E<T;E++){var I=b[2*E],D=b[2*E+1];I<k&&(k=I),D<j&&(j=D),I>N&&(N=I),D>M&&(M=D),this._ids[E]=E}for(var W=(k+N)/2,X=(j+M)/2,ne=1/0,re,Z,R,J=0;J<T;J++){var U=o(W,X,b[2*J],b[2*J+1]);U<ne&&(re=J,ne=U)}var Y=b[2*re],G=b[2*re+1];ne=1/0;for(var ie=0;ie<T;ie++)if(ie!==re){var z=o(Y,G,b[2*ie],b[2*ie+1]);z<ne&&z>0&&(Z=ie,ne=z)}for(var se=b[2*Z],K=b[2*Z+1],Q=1/0,te=0;te<T;te++)if(!(te===re||te===Z)){var ce=u(Y,G,se,K,b[2*te],b[2*te+1]);ce<Q&&(R=te,Q=ce)}var L=b[2*R],xe=b[2*R+1];if(Q===1/0){for(var Se=0;Se<T;Se++)this._dists[Se]=b[2*Se]-b[0]||b[2*Se+1]-b[1];d(this._ids,this._dists,0,T-1);for(var be=new Uint32Array(T),ge=0,P=0,V=-1/0;P<T;P++){var ee=this._ids[P];this._dists[ee]>V&&(be[ge++]=ee,V=this._dists[ee])}this.hull=be.subarray(0,ge),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(s(Y,G,se,K,L,xe)){var he=Z,me=se,ue=K;Z=R,se=L,K=xe,R=he,L=me,xe=ue}var le=f(Y,G,se,K,L,xe);this._cx=le.x,this._cy=le.y;for(var H=0;H<T;H++)this._dists[H]=o(b[2*H],b[2*H+1],le.x,le.y);d(this._ids,this._dists,0,T-1),this._hullStart=re;var oe=3;O[re]=S[R]=Z,O[Z]=S[re]=R,O[R]=S[Z]=re,w[re]=0,w[Z]=1,w[R]=2,A.fill(-1),A[this._hashKey(Y,G)]=re,A[this._hashKey(se,K)]=Z,A[this._hashKey(L,xe)]=R,this.trianglesLen=0,this._addTriangle(re,Z,R,-1,-1,-1);for(var Ee=0,De=void 0,je=void 0;Ee<this._ids.length;Ee++){var He=this._ids[Ee],ht=b[2*He],Lt=b[2*He+1];if(!(Ee>0&&Math.abs(ht-De)<=n&&Math.abs(Lt-je)<=n)&&(De=ht,je=Lt,!(He===re||He===Z||He===R))){for(var Ut=0,Jn=0,Gi=this._hashKey(ht,Lt);Jn<this._hashSize&&(Ut=A[(Gi+Jn)%this._hashSize],!(Ut!==-1&&Ut!==O[Ut]));Jn++);Ut=S[Ut];for(var Ue=Ut,pt=void 0;pt=O[Ue],!s(ht,Lt,b[2*Ue],b[2*Ue+1],b[2*pt],b[2*pt+1]);)if(Ue=pt,Ue===Ut){Ue=-1;break}if(Ue!==-1){var En=this._addTriangle(Ue,He,O[Ue],-1,-1,w[Ue]);w[He]=this._legalize(En+2),w[Ue]=En,oe++;for(var Xt=O[Ue];pt=O[Xt],s(ht,Lt,b[2*Xt],b[2*Xt+1],b[2*pt],b[2*pt+1]);)En=this._addTriangle(Xt,He,pt,w[He],-1,w[Xt]),w[He]=this._legalize(En+2),O[Xt]=Xt,oe--,Xt=pt;if(Ue===Ut)for(;pt=S[Ue],s(ht,Lt,b[2*pt],b[2*pt+1],b[2*Ue],b[2*Ue+1]);)En=this._addTriangle(pt,He,Ue,-1,w[Ue],w[pt]),this._legalize(En+2),w[pt]=En,O[Ue]=Ue,oe--,Ue=pt;this._hullStart=S[He]=Ue,O[Ue]=S[Xt]=He,O[He]=Xt,A[this._hashKey(ht,Lt)]=He,A[this._hashKey(b[2*Ue],b[2*Ue+1])]=Ue}}}this.hull=new Uint32Array(oe);for(var vi=0,nl=this._hullStart;vi<oe;vi++)this.hull[vi]=nl,nl=O[nl];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)},i.prototype._hashKey=function(_,b){return Math.floor(a(_-this._cx,b-this._cy)*this._hashSize)%this._hashSize},i.prototype._legalize=function(_){for(var b=this,S=b._triangles,O=b._halfedges,w=b.coords,A=0,T=0;;){var k=O[_],j=_-_%3;if(T=j+(_+2)%3,k===-1){if(A===0)break;_=r[--A];continue}var N=k-k%3,M=j+(_+1)%3,E=N+(k+2)%3,I=S[T],D=S[_],W=S[M],X=S[E],ne=c(w[2*I],w[2*I+1],w[2*D],w[2*D+1],w[2*W],w[2*W+1],w[2*X],w[2*X+1]);if(ne){S[_]=X,S[k]=I;var re=O[E];if(re===-1){var Z=this._hullStart;do{if(this._hullTri[Z]===E){this._hullTri[Z]=_;break}Z=this._hullPrev[Z]}while(Z!==this._hullStart)}this._link(_,re),this._link(k,O[T]),this._link(T,E);var R=N+(k+1)%3;A<r.length&&(r[A++]=R)}else{if(A===0)break;_=r[--A]}}return T},i.prototype._link=function(_,b){this._halfedges[_]=b,b!==-1&&(this._halfedges[b]=_)},i.prototype._addTriangle=function(_,b,S,O,w,A){var T=this.trianglesLen;return this._triangles[T]=_,this._triangles[T+1]=b,this._triangles[T+2]=S,this._link(T,O),this._link(T+1,w),this._link(T+2,A),this.trianglesLen+=3,T};function a(y,_){var b=y/(Math.abs(y)+Math.abs(_));return(_>0?3-b:1+b)/4}function o(y,_,b,S){var O=y-b,w=_-S;return O*O+w*w}function l(y,_,b,S,O,w){var A=(S-_)*(O-y),T=(b-y)*(w-_);return Math.abs(A-T)>=33306690738754716e-32*Math.abs(A+T)?A-T:0}function s(y,_,b,S,O,w){var A=l(O,w,y,_,b,S)||l(y,_,b,S,O,w)||l(b,S,O,w,y,_);return A<0}function c(y,_,b,S,O,w,A,T){var k=y-A,j=_-T,N=b-A,M=S-T,E=O-A,I=w-T,D=k*k+j*j,W=N*N+M*M,X=E*E+I*I;return k*(M*X-W*I)-j*(N*X-W*E)+D*(N*I-M*E)<0}function u(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),I=(j*N-T*M)*E,D=(A*M-k*N)*E;return I*I+D*D}function f(y,_,b,S,O,w){var A=b-y,T=S-_,k=O-y,j=w-_,N=A*A+T*T,M=k*k+j*j,E=.5/(A*j-T*k),I=y+(j*N-T*M)*E,D=_+(A*M-k*N)*E;return{x:I,y:D}}function d(y,_,b,S){if(S-b<=20)for(var O=b+1;O<=S;O++){for(var w=y[O],A=_[w],T=O-1;T>=b&&_[y[T]]>A;)y[T+1]=y[T--];y[T+1]=w}else{var k=b+S>>1,j=b+1,N=S;h(y,k,j),_[y[b]]>_[y[S]]&&h(y,b,S),_[y[j]]>_[y[S]]&&h(y,j,S),_[y[b]]>_[y[j]]&&h(y,b,j);for(var M=y[j],E=_[M];;){do j++;while(_[y[j]]<E);do N--;while(_[y[N]]>E);if(N<j)break;h(y,j,N)}y[b+1]=y[N],y[N]=M,S-j+1>=N-b?(d(y,_,j,S),d(y,_,b,N-1)):(d(y,_,b,N-1),d(y,_,j,S))}}function h(y,_,b){var S=y[_];y[_]=y[b],y[b]=S}function p(y){return y[0]}function g(y){return y[1]}return i})})(mA);var Vae=mA.exports;(function(e){e.__esModule=!0,e.default=void 0;var t=n(Vae);function n(c){return c&&c.__esModule?c:{default:c}}function r(c){return c[0]}function i(c){return c[1]}function a(c){for(var u=c.triangles,f=c.coords,d=0;d<u.length;d+=3){var h=2*u[d],p=2*u[d+1],g=2*u[d+2],y=(f[g]-f[h])*(f[p+1]-f[h+1])-(f[p]-f[h])*(f[g+1]-f[h+1]);if(y>1e-10)return!1}return!0}function o(c,u,f){return[c+Math.sin(c+u)*f,u+Math.cos(c-u)*f]}function l(c,u,f,d){for(var h=c.length,p=new Float64Array(h*2),g=0;g<h;++g){var y=c[g];p[g*2]=u.call(d,y,g,c),p[g*2+1]=f.call(d,y,g,c)}return p}var s=function(){function c(f){var d=new t.default(f);this.inedges=new Int32Array(f.length/2),this._hullIndex=new Int32Array(f.length/2),this.points=d.coords,this._init(d)}var u=c.prototype;return u._init=function(d){var h=d,p=this.points;if(h.hull&&h.hull.length>2&&a(h)){this.collinear=Int32Array.from({length:p.length/2},function(X,ne){return ne}).sort(function(X,ne){return p[2*X]-p[2*ne]||p[2*X+1]-p[2*ne+1]});for(var g=this.collinear[0],y=this.collinear[this.collinear.length-1],_=[p[2*g],p[2*g+1],p[2*y],p[2*y+1]],b=1e-8*Math.sqrt(Math.pow(_[3]-_[1],2)+Math.pow(_[2]-_[0],2)),S=0,O=p.length/2;S<O;++S){var w=o(p[2*S],p[2*S+1],b);p[2*S]=w[0],p[2*S+1]=w[1]}d=new t.default(p)}for(var A=this.halfedges=d.halfedges,T=this.hull=d.hull,k=this.triangles=d.triangles,j=this.inedges.fill(-1),N=this._hullIndex.fill(-1),M=0,E=A.length;M<E;++M){var I=k[M%3===2?M-2:M+1];(A[M]===-1||j[I]===-1)&&(j[I]=M)}for(var D=0,W=T.length;D<W;++D)N[T[D]]=D;T.length<=2&&T.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=T[0],this.triangles[1]=T[1],this.triangles[2]=T[1],j[T[0]]=1,T.length===2&&(j[T[1]]=0))},u.neighbors=function(d){var h=[],p=this.inedges,g=this.hull,y=this._hullIndex,_=this.halfedges,b=this.triangles,S=p[d];if(S===-1)return h;var O=S,w=-1;do{if(w=b[O],h.push(w),O=O%3===2?O-2:O+1,b[O]!==d)break;if(O=_[O],O===-1){var A=g[(y[d]+1)%g.length];A!==w&&h.push(A);break}}while(O!==S);return h},u.find=function(d,h,p){if(p===void 0&&(p=0),d=+d,d!==d||(h=+h,h!==h))return-1;for(var g=p,y;(y=this._step(p,d,h))>=0&&y!==p&&y!==g;)p=y;return y},u._step=function(d,h,p){var g=this.inedges,y=this.points;if(g[d]===-1||!y.length)return(d+1)%(y.length>>1);for(var _=d,b=Math.pow(h-y[d*2],2)+Math.pow(p-y[d*2+1],2),w=this.neighbors(d),S=Array.isArray(w),O=0,w=S?w:w[Symbol.iterator]();;){var A;if(S){if(O>=w.length)break;A=w[O++]}else{if(O=w.next(),O.done)break;A=O.value}var T=A,k=Math.pow(h-y[T*2],2)+Math.pow(p-y[T*2+1],2);k<b&&(b=k,_=T)}return _},c}();e.default=s,s.from=function(c,u,f,d){return u===void 0&&(u=r),f===void 0&&(f=i),new s(l(c,u,f,d))}})(hA);const Hae=Ae(hA);function ks(e){return Yae(e)||Gae(e)||qae(e)||Uae()}function Uae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
227
227
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qae(e,t){if(e){if(typeof e=="string")return Tp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tp(e,t)}}function Gae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yae(e){if(Array.isArray(e))return Tp(e)}function Tp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hf={withinBounds:function(e,t){var n=e.width,r=e.height,i=e.polar,a=e.origin,o=e.scale,l=lt(e,"voronoiPadding"),s=t.x,c=t.y;if(i){var u=Math.pow(s-a.x,2)+Math.pow(c-a.y,2),f=Math.max.apply(Math,ks(o.y.range()));return u<Math.pow(f,2)}return s>=l.left&&s<=n-l.right&&c>=l.top&&c<=r-l.bottom},getDatasets:function(e){var t={x:dn(e.domain.x),y:dn(e.domain.y)},n=x.Children.toArray(e.children),r=function(o,l,s){var c=s&&s.type&&s.type.continuous,u=s?s.props&&s.props.style:e.style;return o.map(function(f,d){var h=c0(f),p=h.x,g=h.y,y=h.y0,_=h.x0,b=(Number(p)+Number(_))/2,S=(Number(g)+Number(y))/2;return B({_voronoiX:e.voronoiDimension==="y"?t.x:b,_voronoiY:e.voronoiDimension==="x"?t.y:S,eventKey:d,childName:l,continuous:c,style:u},f)})};if(e.data)return r(e.data);var i=function(o){var l=Gt(o);return Array.isArray(l)&&l.length>0?l:void 0},a=function(o,l){var s=o.props||{},c=s.name||l,u=e.voronoiBlacklist||[],f=u.filter(AH),d=u.filter(d2),h=d.some(function(y){return y.test(c)});if(!jo(o)||Kr(f,c)||h)return null;var p=o.type&&Oe(o.type.getData)?o.type.getData:i,g=p(o.props);return g?r(g,c,o):null};return Pi(n,a,e)},findPoints:function(e,t){return e.filter(function(n){return t._voronoiX===n._voronoiX&&t._voronoiY===n._voronoiY})},withinRadius:function(e,t,n){if(!e)return!1;if(!n)return!0;var r=t.x,i=t.y,a=Math.pow(r-e[0],2)+Math.pow(i-e[1],2);return a<Math.pow(n,2)},getVoronoiPoints:function(e,t){var n=this.getDatasets(e),r=n.map(function(s){var c=Oo(e,s),u=c.x,f=c.y;return[u,f]}),i=Hae.from(r),a=i.find(t.x,t.y),o=this.withinRadius(r[a],t,e.radius),l=o?this.findPoints(n,n[a]):[];return{points:l,index:a}},getActiveMutations:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var l=i?["data"]:[],s=o&&!a?l:l.concat("labels");return rt(s)?[]:s.map(function(c){var u=r===!0&&c==="data"?"all":t.eventKey;return{childName:n,eventKey:u,target:c,mutation:function(){return{active:!0}}}})},getInactiveMutations:function(e,t){var n=t.childName,r=t.continuous,i=e.activateData,a=e.activateLabels,o=e.labels;if(!i&&!a)return[];var l=i?["data"]:[],s=o&&!a?l:l.concat("labels");return rt(s)?[]:s.map(function(c){var u=r&&c==="data"?"all":t.eventKey;return{childName:n,eventKey:u,target:c,mutation:function(){return null}}})},getParentMutation:function(e,t,n,r){return[{target:"parent",eventKey:"parent",mutation:function(){return{activePoints:e,mousePosition:t,parentSVG:n,vIndex:r}}}]},onActivated:function(e,t){Oe(e.onActivated)&&e.onActivated(t,e)},onDeactivated:function(e,t){Oe(e.onDeactivated)&&e.onDeactivated(t,e)},onMouseLeave:function(e,t){var n=this,r,i=t.activePoints||[];this.onDeactivated(t,i);var a=i.length?i.map(function(o){return n.getInactiveMutations(t,o)}):[];return(r=this.getParentMutation([])).concat.apply(r,ks(a))},onMouseMove:function(e,t){var n=this,r=t.activePoints||[],i=t.parentSVG||si(e),a=Mr(e,i);if(!this.withinBounds(t,a)){var o;this.onDeactivated(t,r);var l=r.length?r.map(function(g){return n.getInactiveMutations(t,g)}):[];return(o=this.getParentMutation([],a,i)).concat.apply(o,ks(l))}var s=this.getVoronoiPoints(t,a),c=s.points,u=c===void 0?[]:c,f=s.index,d=this.getParentMutation(u,a,i,f);if(r.length&&fn(u,r))return d;this.onActivated(t,u),this.onDeactivated(t,r);var h=u.length?u.map(function(g){return n.getActiveMutations(t,g)}):[],p=r.length?r.map(function(g){return n.getInactiveMutations(t,g)}):[];return d.concat.apply(d,ks(p).concat(ks(h)))}};const Uf={onMouseLeave:Hf.onMouseLeave.bind(Hf),onMouseMove:No(Hf.onMouseMove.bind(Hf),32,{leading:!0,trailing:!1})};var Kae=["childName","eventKey","style","continuous"];function Zae(e){return eoe(e)||Qae(e)||Jae(e)||Xae()}function Xae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
228
228
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jae(e,t){if(e){if(typeof e=="string")return kp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kp(e,t)}}function Qae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function eoe(e){if(Array.isArray(e))return kp(e)}function kp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function toe(e,t){if(e==null)return{};var n=noe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function noe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function gA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gA(Object(n),!0).forEach(function(r){roe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function roe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aoe(e,t,n){return t&&pA(e.prototype,t),n&&pA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ooe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ep(e,t)}function Ep(e,t){return Ep=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ep(e,t)}function loe(e){var t=uoe();return function(){var r=qf(e),i;if(t){var a=qf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return soe(this,i)}}function soe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return coe(e)}function coe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qf(e){return qf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qf(e)}var vA=function(e){var t;return t=function(n){ooe(i,n);var r=loe(i);function i(){return ioe(this,i),r.apply(this,arguments)}return aoe(i,[{key:"getDimension",value:function(o){var l=o.horizontal,s=o.voronoiDimension;return!l||!s?s:s==="x"?"y":"x"}},{key:"getPoint",value:function(o){var l=["_x","_x1","_x0","_y","_y1","_y0"];return rs(o,l)}},{key:"getLabelPosition",value:function(o,l,s){var c=o.mousePosition,u=o.mouseFollowTooltips,f=this.getDimension(o),d=this.getPoint(s[0]),h=Oo(o,d),p=u?c:void 0;if(!f||s.length<2)return zo(zo({},h),{},{center:ae({},l.center,p)});var g=f==="y"?c.x:h.x,y=f==="x"?c.y:h.y;return p=u?c:{x:g,y},{x:g,y,center:ae({},l.center,p)}}},{key:"getStyle",value:function(o,l,s){var c=o.labels,u=o.labelComponent,f=o.theme,d=u.props||{},h=f&&f.voronoi&&f.voronoi.style?f.voronoi.style:{},p=s==="flyout"?d.flyoutStyle:d.style;return l.reduce(function(g,y,_){var b=ae({},d,{datum:y,active:!0}),S=Oe(c)?c(b):void 0,O=S!==void 0?"".concat(S).split(`
229
- `):[],w=y.style&&y.style[s]||{},A=Array.isArray(p)?p[_]:p,T=Xe(ae({},A,w,h[s]),b),k=O.length?O.map(function(){return T}):[T];return g=g.concat(k),g},[])}},{key:"getDefaultLabelProps",value:function(o,l){var s=o.voronoiDimension,c=o.horizontal,u=o.mouseFollowTooltips,f=this.getPoint(l[0]),d=s&&l.length>1,h=f._y1!==void 0?f._y1:f._y,p=h<0?"left":"right",g=h<0?"bottom":"top",y=c?p:g,_=u?void 0:y;return{orientation:_,pointerLength:d?0:void 0,constrainToVisibleArea:d||u?!0:void 0}}},{key:"getLabelProps",value:function(o,l){var s=o.labels,c=o.scale,u=o.labelComponent,f=o.theme,d=o.width,h=o.height,p=u.props||{},g=l.reduce(function(T,k){var P=ae({},p,{datum:k,active:!0}),N=Oe(s)?s(P):null;return N==null||(T=T.concat("".concat(N).split(`
229
+ `):[],w=y.style&&y.style[s]||{},A=Array.isArray(p)?p[_]:p,T=Xe(ae({},A,w,h[s]),b),k=O.length?O.map(function(){return T}):[T];return g=g.concat(k),g},[])}},{key:"getDefaultLabelProps",value:function(o,l){var s=o.voronoiDimension,c=o.horizontal,u=o.mouseFollowTooltips,f=this.getPoint(l[0]),d=s&&l.length>1,h=f._y1!==void 0?f._y1:f._y,p=h<0?"left":"right",g=h<0?"bottom":"top",y=c?p:g,_=u?void 0:y;return{orientation:_,pointerLength:d?0:void 0,constrainToVisibleArea:d||u?!0:void 0}}},{key:"getLabelProps",value:function(o,l){var s=o.labels,c=o.scale,u=o.labelComponent,f=o.theme,d=o.width,h=o.height,p=u.props||{},g=l.reduce(function(T,k){var j=ae({},p,{datum:k,active:!0}),N=Oe(s)?s(j):null;return N==null||(T=T.concat("".concat(N).split(`
230
230
  `))),T},[]),y=l[0],_=y.childName,b=y.eventKey;y.style,y.continuous;var S=toe(y,Kae),O=o.name===_?_:"".concat(o.name,"-").concat(_),w=ae({key:"".concat(O,"-").concat(b,"-voronoi-tooltip"),id:"".concat(O,"-").concat(b,"-voronoi-tooltip"),active:!0,renderInPortal:!1,activePoints:l,datum:S,scale:c,theme:f},p,{text:g,width:d,height:h,style:this.getStyle(o,l,"labels"),flyoutStyle:this.getStyle(o,l,"flyout")[0]},this.getDefaultLabelProps(o,l)),A=this.getLabelPosition(o,w,l);return ae({},A,w)}},{key:"getTooltip",value:function(o){var l=o.labels,s=o.activePoints,c=o.labelComponent;if(!l)return null;if(Array.isArray(s)&&s.length){var u=this.getLabelProps(o,s),f=u.text,d=Array.isArray(f)?f.filter(Boolean).length:f;return d?x.cloneElement(c,u):null}return null}},{key:"getChildren",value:function(o){return[].concat(Zae(x.Children.toArray(o.children)),[this.getTooltip(o)])}}]),i}(e),t.displayName="VictoryVoronoiContainer",t.propTypes=zo(zo({},Ve.propTypes),{},{activateData:m.bool,activateLabels:m.bool,disable:m.bool,labelComponent:m.element,labels:m.func,mouseFollowTooltips:m.bool,onActivated:m.func,onDeactivated:m.func,radius:m.number,voronoiBlacklist:m.arrayOf(m.oneOfType([m.string,$G])),voronoiDimension:m.oneOf(["x","y"]),voronoiPadding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})])}),t.defaultProps=zo(zo({},Ve.defaultProps),{},{activateData:!0,activateLabels:!0,labelComponent:x.createElement(Dr,null),voronoiPadding:5}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseLeave:function(r,i){return n.disable?{}:Uf.onMouseLeave(r,i)},onTouchCancel:function(r,i){return n.disable?{}:Uf.onMouseLeave(r,i)},onMouseMove:function(r,i){return n.disable?{}:Uf.onMouseMove(r,i)},onTouchMove:function(r,i){return n.disable?{}:Uf.onMouseMove(r,i)}}},{target:"data",eventHandlers:n.disable?{}:{onMouseOver:function(){return null},onMouseOut:function(){return null},onMouseMove:function(){return null}}}]},t};vA(Ve);var foe="Expected a function";function doe(e,t,n){if(typeof e!="function")throw new TypeError(foe);return setTimeout(function(){e.apply(void 0,n)},t)}var hoe=doe,moe=hoe,goe=Vl,poe=s0,voe=goe(function(e,t,n){return moe(e,poe(t)||0,n)}),yoe=voe;const boe=Ae(yoe);function _oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ui(e,t){return Ooe(e)||woe(e,t)||Soe(e,t)||xoe()}function xoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
231
231
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Soe(e,t){if(e){if(typeof e=="string")return yA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yA(e,t)}}function yA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function woe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Ooe(e){if(Array.isArray(e))return e}var qn={checkDomainEquality:function(e,t){var n=function(r){var i=e&&e[r],a=t&&t[r];return!i&&!a?!0:!i||!a?!1:Number(i[0])===Number(a[0])&&Number(i[1])===Number(a[1])};return n("x")&&n("y")},scale:function(e,t,n,r){var i=ui(e,2),a=i[0],o=i[1],l=Math.abs(o-a),s=n.minimumZoom&&n.minimumZoom[r],c=this.getScaleFactor(t);if(s&&l<=s&&c<1)return e;var u=ui(this.getDomain(n)[r],2),f=u[0],d=u[1],h=this.getScalePercent(t,n,r),p=c*a+h*(c*l),g=this.getMinimumDomain(p,n,r),y=this.getScaledDomain(e,c,h),_=ui(y,2),b=_[0],S=_[1],O=[b>f&&b<d?b:f,S<d&&S>f?S:d],w=Math.abs(g[1]-g[0])>Math.abs(O[1]-O[0])?g:O;return Fn([f,d])?[new Date(w[0]),new Date(w[1])]:w},getScaledDomain:function(e,t,n){var r=ui(e,2),i=r[0],a=r[1],o=Math.abs(a-i),l=o-o*t,s=Number(i)+l*n,c=Number(a)-l*(1-n);return[Math.min(s,c),Math.max(s,c)]},getMinimumDomain:function(e,t,n){var r=t.minimumZoom,i=this.getDomain(t)[n],a=ui(i,2),o=a[0],l=a[1],s=Math.abs(o-l)/1e3,c=r&&r[n]||s,u=e-c/2,f=e+c/2;return[u>o&&u<l?u:o,f<l&&f>o?f:Number(o)+c/2]},zoommingOut:function(e){return e.deltaY>0},getScaleFactor:function(e){var t=this.zoommingOut(e)?1:-1,n=Math.min(Math.abs(e.deltaY/300),.5);return Math.abs(1+t*n)},getScalePercent:function(e,t,n){var r=this.getDomain(t),i=ui(r[n],2),a=i[0],o=i[1],l=this.getPosition(e,t,r);return(l[n]-a)/Math.abs(o-a)},getPosition:function(e,t,n){var r=Mr(e),i=r.x,a=r.y,o={x:t.scale.x.domain(n.x),y:t.scale.y.domain(n.y)};return kf(t,o,i,a)},pan:function(e,t,n){var r=e.map(function(y){return Number(y)}),i=ui(r,2),a=i[0],o=i[1],l=t.map(function(y){return Number(y)}),s=ui(l,2),c=s[0],u=s[1],f=a+n,d=o+n,h;if(f>c&&d<u)h=[f,d];else if(f<c){var p=o-a;h=[c,c+p]}else if(d>u){var g=o-a;h=[u-g,u]}else h=e;return Fn(e)||Fn(t)?h.map(function(y){return new Date(y)}):h},getDomainScale:function(e,t,n){var r=Array.isArray(e)?e:e[n],i=ui(r,2),a=i[0],o=i[1],l=t[n].range(),s=Math.abs(l[0]-l[1]);return s/(o-a)},handleAnimation:function(e){var t=e.context.animationTimer,n=e.context.transitionTimer;n.bypassAnimation(),t.bypassAnimation();var r=function(){t.resumeAnimation(),n.resumeAnimation()};return boe(r,16)},getLastDomain:function(e,t){var n=e.zoomDomain,r=e.cachedZoomDomain,i=e.currentDomain,a=e.domain;return n&&!this.checkDomainEquality(n,r)?ae({},n,a):ae({},i||n||t,a)},getDomain:function(e){var t=e.originalDomain,n=e.domain,r=e.children,i=e.zoomDimension,a=x.Children.toArray(r),o={};return a.length&&(o=i?_oe({},i,jf(e,i,a)):{x:jf(e,"x",a),y:jf(e,"y",a)}),ae({},o,t,n)},onMouseDown:function(e,t){if(e.preventDefault(),!!t.allowPan){var n=t.parentSVG||si(e),r=Mr(e,n),i=r.x,a=r.y;return[{target:"parent",mutation:function(){return{startX:i,startY:a,panning:!0,parentSVG:n,parentControlledProps:["domain"]}}}]}},onMouseUp:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseLeave:function(e,t){if(t.allowPan)return[{target:"parent",mutation:function(){return{panning:!1}}}]},onMouseMove:function(e,t,n,r){if(t.panning&&t.allowPan){var i=t.scale,a=t.startX,o=t.startY,l=t.onZoomDomainChange,s=t.zoomDomain,c=t.zoomDimension,u=t.horizontal,f=t.parentSVG||si(e),d=Mr(e,f),h=d.x,p=d.y,g=this.getDomain(t),y=this.getLastDomain(t,g),_=u?p-o:a-h,b=u?a-h:p-o,S=_/this.getDomainScale(y,i,"x"),O=b/this.getDomainScale(y,i,"y"),w={x:c==="y"?g.x:this.pan(y.x,g.x,S),y:c==="x"?g.y:this.pan(y.y,g.y,O)},A=this.handleAnimation(r),T=!this.checkDomainEquality(g,y),k={parentControlledProps:["domain"],startX:h,startY:p,parentSVG:f,currentDomain:w,originalDomain:g,cachedZoomDomain:s,zoomActive:T};return Oe(l)&&l(w,ae({},k,t)),[{target:"parent",callback:A,mutation:function(){return k}}]}},onWheel:function(e,t,n,r){if(t.allowZoom){var i=t.onZoomDomainChange,a=t.zoomDimension,o=t.zoomDomain,l=this.getDomain(t),s=this.getLastDomain(t,l),c=s.x,u=s.y,f={x:a==="y"?s.x:this.scale(c,e,t,"x"),y:a==="x"?s.y:this.scale(u,e,t,"y")},d=this.handleAnimation(r),h=!this.zoommingOut(e)||t.zoomActive&&!this.checkDomainEquality(l,s),p={currentDomain:f,originalDomain:l,cachedZoomDomain:o,parentControlledProps:["domain"],panning:!1,zoomActive:h};return Oe(i)&&i(f,ae({},p,t)),[{target:"parent",callback:d,mutation:function(){return p}}]}}};const Ir={checkDomainEquality:qn.checkDomainEquality.bind(qn),onMouseDown:qn.onMouseDown.bind(qn),onMouseUp:qn.onMouseUp.bind(qn),onMouseLeave:qn.onMouseLeave.bind(qn),onMouseMove:No(qn.onMouseMove.bind(qn),16,{leading:!0,trailing:!1}),onWheel:No(qn.onWheel.bind(qn),16,{leading:!0,trailing:!1})};function bA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(n),!0).forEach(function(r){_A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pp(e){return koe(e)||Toe(e)||Aoe(e)||Coe()}function Coe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
232
232
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Aoe(e,t){if(e){if(typeof e=="string")return jp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jp(e,t)}}function Toe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function koe(e){if(Array.isArray(e))return jp(e)}function jp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Eoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Poe(e,t,n){return t&&xA(e.prototype,t),n&&xA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function joe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mp(e,t)}function Mp(e,t){return Mp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Mp(e,t)}function Moe(e){var t=Loe();return function(){var r=Gf(e),i;if(t){var a=Gf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Doe(this,i)}}function Doe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ioe(e)}function Ioe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Loe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Gf(e){return Gf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gf(e)}var $oe=150,SA=function(e){var t;return t=function(n){joe(i,n);var r=Moe(i);function i(){return Eoe(this,i),r.apply(this,arguments)}return Poe(i,[{key:"clipDataComponents",value:function(o,l){var s=l.scale,c=l.clipContainerComponent,u=l.polar,f=l.origin,d=l.horizontal,h=d?s.y.range():s.x.range(),p=d?s.x.range():s.y.range(),g=Math.abs(h[0]-h[1]),y=Math.abs(p[0]-p[1]),_=Math.max.apply(Math,Pp(p)),b=x.cloneElement(c,zi({clipWidth:g,clipHeight:y,translateX:Math.min.apply(Math,Pp(h)),translateY:Math.min.apply(Math,Pp(p)),polar:u,origin:u?f:void 0,radius:u?_:void 0},c.props));return x.Children.toArray(o).map(function(S){return jo(S)?x.cloneElement(S,{groupComponent:b}):S})}},{key:"modifyPolarDomain",value:function(o,l){return{x:l.x,y:[0,o.y[1]]}}},{key:"downsampleZoomData",value:function(o,l,s){var c=o.downsample,u=function(_){var b=_.data,S=_.x,O=_.y,w=l.type&&Oe(l.type.getData)?l.type.getData:function(){};return Array.isArray(b)&&!S&&!O?b:w(_)},f=u(l.props);if(!(!c||!s||!f)){var d=c===!0?$oe:c,h=o.zoomDimension||"x",p=f.findIndex(function(_){return _[h]>=s[h][0]}),g=f.findIndex(function(_){return _[h]>s[h][1]});p!==0&&(p-=1),g!==-1&&(g+=1);var y=f.slice(p,g);return AQ(y,d,p)}}},{key:"modifyChildren",value:function(o){var l=this,s=x.Children.toArray(o.children);return s.map(function(c){var u=c.type&&c.type.role,f=jo(c),d=o.currentDomain,h=o.zoomActive,p=o.allowZoom,g=ae({},o.originalDomain,o.domain),y=ae({},o.zoomDomain,o.domain),_=ae({},o.cachedZoomDomain,o.domain),b;Ir.checkDomainEquality(y,_)?p&&!h?b=c.props.domain:b=ae({},d,g):b=y;var S=o.polar?l.modifyPolarDomain(b,g):b;S&&o.zoomDimension&&(S=zi(zi({},y),{},_A({},o.zoomDimension,S[o.zoomDimension])));var O=f&&u!=="stack"?{domain:S,data:l.downsampleZoomData(o,c,S)}:{domain:S};return x.cloneElement(c,ae(O,c.props))})}},{key:"getChildren",value:function(o){var l=this.modifyChildren(o);return this.clipDataComponents(l,o)}}]),i}(e),t.displayName="VictoryZoomContainer",t.propTypes=zi(zi({},Ve.propTypes),{},{allowPan:m.bool,allowZoom:m.bool,clipContainerComponent:m.element.isRequired,disable:m.bool,downsample:m.oneOfType([m.bool,m.number]),minimumZoom:m.shape({x:m.number,y:m.number}),onZoomDomainChange:m.func,zoomDimension:m.oneOf(["x","y"]),zoomDomain:m.shape({x:Ii,y:Ii})}),t.defaultProps=zi(zi({},Ve.defaultProps),{},{clipContainerComponent:x.createElement(ya,null),allowPan:!0,allowZoom:!0,zoomActive:!1}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:zi({onMouseDown:function(r,i){return n.disable?{}:Ir.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:Ir.onMouseDown(r,i)},onMouseUp:function(r,i){return n.disable?{}:Ir.onMouseUp(r,i)},onTouchEnd:function(r,i){return n.disable?{}:Ir.onMouseUp(r,i)},onMouseLeave:function(r,i){return n.disable?{}:Ir.onMouseLeave(r,i)},onTouchCancel:function(r,i){return n.disable?{}:Ir.onMouseLeave(r,i)},onMouseMove:function(r,i,a,o){return n.disable?{}:Ir.onMouseMove(r,i,a,o)},onTouchMove:function(r,i,a,o){return n.disable?{}:(r.preventDefault(),Ir.onMouseMove(r,i,a,o))}},n.disable||!n.allowZoom?{}:{onWheel:Ir.onWheel})}]},t};SA(Ve);function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){Foe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Foe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Noe(e){return Roe(e)||Woe(e)||Boe(e)||zoe()}function zoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
233
233
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Boe(e,t){if(e){if(typeof e=="string")return Dp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dp(e,t)}}function Woe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Roe(e){if(Array.isArray(e))return Dp(e)}function Dp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ta={getDimension:function(e){var t=e.horizontal,n=e.selectionDimension;return!t||!n?n:n==="x"?"y":"x"},getDatasets:function(e){if(e.data)return[{data:e.data}];var t=function(r){var i=Gt(r);return Array.isArray(i)&&i.length>0?i:void 0},n=function(r,i,a){var o=e.selectionBlacklist||[];if(!jo(r)||Kr(o,i))return null;if(r.type&&Oe(r.type.getData)){r=a?x.cloneElement(r,a.props):r;var l=r.props&&r.type.getData(r.props);return l?{childName:i,data:l}:null}var s=t(r.props);return s?{childName:i,data:s}:null};return Pi(x.Children.toArray(e.children),n,e)},filterDatasets:function(e,t,n){var r=this,i=t.reduce(function(a,o){var l=r.getSelectedData(e,o.data,n);return a=l?a.concat({childName:o.childName,eventKey:l.eventKey,data:l.data}):a,a},[]);return i.length?i:null},getSelectedData:function(e,t){for(var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=function(h){var p=Oo(e,h);return p.x>=Math.min(n,i)&&p.x<=Math.max(n,i)&&p.y>=Math.min(r,a)&&p.y<=Math.max(r,a)},l=[],s=[],c=0,u=0,f=t.length;u<f;u++){var d=t[u];o(d)&&(s[c]=d,l[c]=d.eventKey===void 0?u:d.eventKey,c++)}return c>0?{eventKey:l,data:s}:null},onMouseDown:function(e,t){e.preventDefault();var n=t.activateSelectedData,r=t.allowSelection,i=t.polar,a=t.selectedData;if(!r)return{};var o=this.getDimension(t),l=t.parentSVG||si(e),s=Mr(e,l),c=s.x,u=s.y,f=i||o!=="y"?c:ci(t).x[0],d=i||o!=="x"?u:ci(t).y[0],h=i||o!=="y"?c:ci(t).x[1],p=i||o!=="x"?u:ci(t).y[1],g={x1:f,y1:d,select:!0,x2:h,y2:p,parentSVG:l};a&&Oe(t.onSelectionCleared)&&t.onSelectionCleared(ae({},g,t));var y=[{target:"parent",mutation:function(){return g}}],_=a&&n?a.map(function(b){return{childName:b.childName,eventKey:b.eventKey,target:"data",mutation:function(){return null}}}):[];return y.concat.apply(y,Noe(_))},onMouseMove:function(e,t){var n=t.allowSelection,r=t.select,i=t.polar,a=this.getDimension(t);if(!n||!r)return null;var o=t.parentSVG||si(e),l=Mr(e,o),s=l.x,c=l.y,u=i||a!=="y"?s:ci(t).x[1],f=i||a!=="x"?c:ci(t).y[1];return{target:"parent",mutation:function(){return{x2:u,y2:f,parentSVG:o}}}},onMouseUp:function(e,t){var n=t.activateSelectedData,r=t.allowSelection,i=t.x2,a=t.y2;if(!r)return null;if(!i||!a)return[{target:"parent",mutation:function(){return{select:!1,x1:null,x2:null,y1:null,y2:null}}}];var o=this.getDatasets(t),l=Ef(t),s=this.filterDatasets(t,o,l),c={selectedData:s,datasets:o,select:!1,x1:null,x2:null,y1:null,y2:null},u=s&&Oe(t.onSelection)?t.onSelection(s,l,ae({},c,t)):{},f=[{target:"parent",mutation:function(){return c}}],d=s&&n?s.map(function(h){return{childName:h.childName,eventKey:h.eventKey,target:"data",mutation:function(){return B({active:!0},u)}}}):[];return f.concat(d)}};const Bo=OA(OA({},Ta),{},{onMouseDown:Ta.onMouseDown.bind(Ta),onMouseUp:Ta.onMouseUp.bind(Ta),onMouseMove:No(Ta.onMouseMove.bind(Ta),16,{leading:!0,trailing:!1})});function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){Voe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Voe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hoe(e){return Yoe(e)||Goe(e)||qoe(e)||Uoe()}function Uoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
234
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qoe(e,t){if(e){if(typeof e=="string")return Ip(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ip(e,t)}}function Goe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yoe(e){if(Array.isArray(e))return Ip(e)}function Ip(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Zoe(e,t,n){return t&&AA(e.prototype,t),n&&AA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Lp(e,t)}function Lp(e,t){return Lp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Lp(e,t)}function Joe(e){var t=tle();return function(){var r=Kf(e),i;if(t){var a=Kf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Qoe(this,i)}}function Qoe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ele(e)}function ele(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kf(e){return Kf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kf(e)}var TA=function(e){var t;return t=function(n){Xoe(i,n);var r=Joe(i);function i(){return Koe(this,i),r.apply(this,arguments)}return Zoe(i,[{key:"getRect",value:function(o){var l=o.x1,s=o.x2,c=o.y1,u=o.y2,f=o.selectionStyle,d=o.selectionComponent,h=o.name,p=Math.abs(s-l)||1,g=Math.abs(u-c)||1,y=Math.min(l,s),_=Math.min(c,u);return u&&s&&l&&c?x.cloneElement(d,{key:"".concat(h,"-selection"),x:y,y:_,width:p,height:g,style:f}):null}},{key:"getChildren",value:function(o){return[].concat(Hoe(x.Children.toArray(o.children)),[this.getRect(o)])}}]),i}(e),t.displayName="VictorySelectionContainer",t.propTypes=Yf(Yf({},Ve.propTypes),{},{activateSelectedData:m.bool,allowSelection:m.bool,disable:m.bool,onSelection:m.func,onSelectionCleared:m.func,selectionBlacklist:m.arrayOf(m.string),selectionComponent:m.element,selectionDimension:m.oneOf(["x","y"]),selectionStyle:m.object}),t.defaultProps=Yf(Yf({},Ve.defaultProps),{},{activateSelectedData:!0,allowSelection:!0,selectionComponent:x.createElement(ga,null),selectionStyle:{stroke:"transparent",fill:"black",fillOpacity:.1}}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:Bo.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:Bo.onMouseDown(r,i)},onMouseMove:function(r,i){return n.disable?{}:Bo.onMouseMove(r,i)},onTouchMove:function(r,i){return n.disable?{}:Bo.onMouseMove(r,i)},onMouseUp:function(r,i){return n.disable?{}:Bo.onMouseUp(r,i)},onTouchEnd:function(r,i){return n.disable?{}:Bo.onMouseUp(r,i)}}}]},t};TA(Ve);var nle=Rl,rle=nu,ile=Yr;function ale(e,t){var n={};return t=ile(t),rle(e,function(r,i,a){nle(n,i,t(r,i,a))}),n}var ole=ale;const Wo=Ae(ole);function kA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kA(Object(n),!0).forEach(function(r){lle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bi(e){return fle(e)||ule(e)||cle(e)||sle()}function sle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
235
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cle(e,t){if(e){if(typeof e=="string")return $p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(e,t)}}function ule(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fle(e){if(Array.isArray(e))return $p(e)}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ka={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return!t||!n?n:n==="x"?"y":"x"},withinBounds:function(e,t,n){var r=Wo(t,Number),i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=Wo(e,Number),c=s.x,u=s.y;return n=n?n/2:0,c+n>=Math.min(i,a)&&c-n<=Math.max(i,a)&&u+n>=Math.min(o,l)&&u-n<=Math.max(o,l)},getDomainBox:function(e,t,n){var r=this.getDimension(e);t=ae({},t,e.domain),n=ae({},n,t);var i=ci(e,t),a=ci(e,n);return{x1:r!=="y"?Math.min.apply(Math,Bi(a.x)):Math.min.apply(Math,Bi(i.x)),x2:r!=="y"?Math.max.apply(Math,Bi(a.x)):Math.max.apply(Math,Bi(i.x)),y1:r!=="x"?Math.min.apply(Math,Bi(a.y)):Math.min.apply(Math,Bi(i.y)),y2:r!=="x"?Math.max.apply(Math,Bi(a.y)):Math.max.apply(Math,Bi(i.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,i=t.x2,a=t.y1,o=t.y2,l=Math.min(r,i),s=Math.max(r,i),c=Math.min(a,o),u=Math.max(a,o),f=e.handleWidth/2;return{left:n!=="y"&&{x1:l-f,x2:l+f,y1:a,y2:o},right:n!=="y"&&{x1:s-f,x2:s+f,y1:a,y2:o},top:n!=="x"&&{x1:r,x2:i,y1:c-f,y2:c+f},bottom:n!=="x"&&{x1:r,x2:i,y1:u-f,y2:u+f}}},getActiveHandles:function(e,t,n){var r=this,i=this.getHandles(t,n),a=["top","bottom","left","right"].reduce(function(o,l){return o=i[l]&&r.withinBounds(e,i[l])?o.concat(l):o,o},[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o={left:{x1:Math.max(n,i),x2:Math.min(n,i),y1:r,y2:a},right:{x1:Math.min(n,i),x2:Math.max(n,i),y1:r,y2:a},top:{y1:Math.max(r,a),y2:Math.min(r,a),x1:n,x2:i},bottom:{y1:Math.min(r,a),y2:Math.max(r,a),x1:n,x2:i}};return t.reduce(function(l,s){return B(l,o[s])},{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,i=e.fullDomain,a=e.scale,o=e.horizontal,l=e.allowResize,s=!l&&!e.defaultBrushArea?"move":e.defaultBrushArea;if(s==="none")return this.getMinimumDomain();if(s==="disable")return t;if(s==="move"){var c=this.getDomainBox(e,i,t),u=e.parentSVG||si(n),f=this.panBox(nn(nn(nn({},e),c),{},{brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),Mr(n,u)),d=e.fullDomainBox||this.getDomainBox(e,i),h=this.constrainBox(f,d);return Ef(nn(nn({},h),{},{scale:a,horizontal:o}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,i=e.y,a=t.x1,o=t.x2,l=t.y1,s=t.y2;return{x1:n!=="y"?r:a,y1:n!=="x"?i:l,x2:n!=="y"?r:o,y2:n!=="x"?i:s}},panBox:function(e,t){var n=e.domain,r=e.startX,i=e.startY,a=this.getDimension(e),o=ae({},e.brushDomain,n),l=ae({},e.fullDomain,n),s=e.x1?e:this.getDomainBox(e,l,o),c=s.x1,u=s.x2,f=s.y1,d=s.y2,h=t.x,p=t.y,g={x:r?r-h:0,y:i?i-p:0};return{x1:a!=="y"?Math.min(c,u)-g.x:Math.min(c,u),x2:a!=="y"?Math.max(c,u)-g.x:Math.max(c,u),y1:a!=="x"?Math.min(f,d)-g.y:Math.min(f,d),y2:a!=="x"?Math.max(f,d)-g.y:Math.max(f,d)}},constrainBox:function(e,t){var n=Wo(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>o?o-Math.abs(e.y2-e.y1):Math.max(e.y1,i),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<i?i+Math.abs(e.y2-e.y1):Math.min(e.y2,o)}},constrainPoint:function(e,t){var n=Wo(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,i),o)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.mouseMoveThreshold,o=this.getDimension(e),l=Math.abs(t-n)>=a,s=Math.abs(r-i)>=a;switch(o){case"x":return l;case"y":return s;default:return l||s}},onMouseDown:function(e,t){var n=this;e.preventDefault();var r=t.handleWidth,i=t.cachedBrushDomain,a=t.domain,o=t.allowResize,l=t.allowDrag,s=t.allowDraw,c=this.getDimension(t),u=!o&&!t.defaultBrushArea?"move":t.defaultBrushArea;if(!o&&!l)return{};var f=t.fullDomainBox||this.getDomainBox(t,a),d=t.parentSVG||si(e),h=Mr(e,d),p=h.x,g=h.y;if(!this.withinBounds({x:p,y:g},f,r))return{};var y=ae({},t.brushDomain,a),_=fn(y,i)?t.currentDomain||y||a:y||a,b=this.getDomainBox(t,a,_),S=o&&this.getActiveHandles({x:p,y:g},t,b);return S?[{target:"parent",mutation:function(){return nn({isSelecting:!0,domainBox:b,fullDomainBox:f,cachedBrushDomain:y,currentDomain:_,parentSVG:d},n.getResizeMutation(b,S))}}]:this.withinBounds({x:p,y:g},b)&&!fn(a,_)?[{target:"parent",mutation:function(){return nn({isPanning:l,startX:p,startY:g,domainBox:b,fullDomainBox:f,currentDomain:_,cachedBrushDomain:y,parentSVG:d},b)}}]:s?[{target:"parent",mutation:function(){return nn({isSelecting:o||u==="move",domainBox:b,fullDomainBox:f,parentSVG:d,cachedBrushDomain:y,cachedCurrentDomain:_,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:p,y:g},b,c))}}]:{}},onGlobalMouseMove:function(e,t){var n=t.scale,r=t.isPanning,i=t.isSelecting,a=t.fullDomainBox,o=t.onBrushDomainChange,l=t.allowResize,s=t.allowDrag,c=t.horizontal,u=t.mouseMoveThreshold,f=t.parentSVG,d=this.getDimension(t),h=Mr(e,f),p=h.x,g=h.y;if(!l&&!s||u>0&&!this.hasMoved(nn(nn({},t),{},{x2:p,y2:g})))return{};if(s&&r){var y=t.startX,_=t.startY,b=this.panBox(t,{x:p,y:g}),S=this.constrainBox(b,a),O=Ef(nn(nn({},S),{},{scale:n,horizontal:c})),w=nn({currentDomain:O,parentSVG:f,startX:b.x2>=a.x2||b.x1<=a.x1?y:p,startY:b.y2>=a.y2||b.y1<=a.y1?_:g},S);return Oe(o)&&o(O,ae({},w,t)),[{target:"parent",mutation:function(){return w}}]}else if(l&&i){var A=this.constrainPoint({x:d!=="y"?p:t.x2,y:d!=="x"?g:t.y2},a),T=A.x,k=A.y,P=Ef({x2:T,y2:k,x1:t.x1,y1:t.y1,scale:n,horizontal:c}),N={x2:T,y2:k,currentDomain:P,parentSVG:f};return Oe(o)&&o(P,ae({},N,t)),[{target:"parent",mutation:function(){return N}}]}return{}},onGlobalMouseUp:function(e,t){if(!t.isPanning&&!t.isSelecting)return{};var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.isPanning,l=t.isSelecting,s=t.onBrushDomainChange,c=t.onBrushDomainChangeEnd,u=t.onBrushCleared,f=t.currentDomain,d=t.allowResize,h=t.allowDrag,p=!d&&!t.defaultBrushArea?"move":t.defaultBrushArea,g=p!==void 0&&p!=="none",y={isPanning:!1,isSelecting:!1};if((d||g)&&(n===i||r===a)){var _=t.cachedCurrentDomain||f,b=this.getDefaultBrushArea(t,_,e);y.currentDomain=b,Oe(s)&&s(b,ae({},y,t)),Oe(c)&&c(b,ae({},y,t)),Oe(u)&&u(b,ae({},y,t))}else(h&&o||d&&l)&&Oe(c)&&c(f,ae({},y,t));return[{target:"parent",mutation:function(){return y}}]}},fi=nn(nn({},ka),{},{onMouseDown:ka.onMouseDown.bind(ka),onGlobalMouseUp:ka.onGlobalMouseUp.bind(ka),onGlobalMouseMove:No(ka.onGlobalMouseMove.bind(ka),16,{leading:!0,trailing:!1})});function EA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){dle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PA(e){return ple(e)||gle(e)||mle(e)||hle()}function hle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mle(e,t){if(e){if(typeof e=="string")return Fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fp(e,t)}}function gle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ple(e){if(Array.isArray(e))return Fp(e)}function Fp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yle(e,t,n){return t&&jA(e.prototype,t),n&&jA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ble(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Np(e,t)}function _le(e){var t=wle();return function(){var r=Xf(e),i;if(t){var a=Xf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return xle(this,i)}}function xle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sle(e)}function Sle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xf(e)}var MA=function(e){var t;return t=function(n){ble(i,n);var r=_le(i);function i(){return vle(this,i),r.apply(this,arguments)}return yle(i,[{key:"getSelectBox",value:function(o,l){var s=l.x,c=l.y,u=o.brushStyle,f=o.brushComponent,d=o.name,h=f.props&&f.props.style,p=!o.allowDrag&&!o.allowResize?"auto":"move";return s[0]!==s[1]&&c[0]!==c[1]?x.cloneElement(f,{key:"".concat(d,"-brush"),width:Math.abs(s[1]-s[0])||1,height:Math.abs(c[1]-c[0])||1,x:Math.min(s[0],s[1]),y:Math.min(c[0],c[1]),cursor:p,style:ae({},h,u)}):null}},{key:"getCursorPointers",value:function(o){var l={yProps:"ns-resize",xProps:"ew-resize"};return!o.allowResize&&o.allowDrag?(l.xProps="move",l.yProps="move"):!o.allowResize&&!o.allowDrag&&(l.xProps="auto",l.yProps="auto"),l}},{key:"getHandles",value:function(o,l){var s=o.handleWidth,c=o.handleStyle,u=o.handleComponent,f=o.name,d=fi.getDomainBox(o,l),h=d.x1,p=d.x2,g=d.y1,y=d.y2,_=fi.getHandles(o,d),b=_.top,S=_.bottom,O=_.left,w=_.right,A=Math.abs(p-h)||1,T=Math.abs(y-g)||1,k=u.props&&u.props.style||{},P=ae({},k,c),N=this.getCursorPointers(o),M={style:P,width:A,height:s,cursor:N.yProps},j={style:P,width:s,height:T,cursor:N.xProps},D={top:b&&B({x:b.x1,y:b.y1},M),bottom:S&&B({x:S.x1,y:S.y1},M),left:O&&B({y:O.y1,x:O.x1},j),right:w&&B({y:w.y1,x:w.x1},j)},I=["top","bottom","left","right"].reduce(function(W,X){return W=D[X]?W.concat(x.cloneElement(u,B({key:"".concat(f,"-handle-").concat(X)},D[X]))):W,W},[]);return I.length?I:null}},{key:"getRect",value:function(o){var l=o.currentDomain,s=o.cachedBrushDomain,c=ae({},o.brushDomain,o.domain),u=fn(c,s)?ae({},l,c):c,f=ci(o,u),d=this.getSelectBox(o,f);return d?[d,this.getHandles(o,u)]:[]}},{key:"getChildren",value:function(o){return[].concat(PA(x.Children.toArray(o.children)),PA(this.getRect(o)))}}]),i}(e),t.displayName="VictoryBrushContainer",t.propTypes=Zf(Zf({},Ve.propTypes),{},{allowDrag:m.bool,allowDraw:m.bool,allowResize:m.bool,brushComponent:m.element,brushDimension:m.oneOf(["x","y"]),brushDomain:m.shape({x:m.array,y:m.array}),brushStyle:m.object,defaultBrushArea:m.oneOf(["all","disable","none","move"]),disable:m.bool,handleComponent:m.element,handleStyle:m.object,handleWidth:m.number,onBrushCleared:m.func,onBrushDomainChange:m.func,onBrushDomainChangeEnd:m.func}),t.defaultProps=Zf(Zf({},Ve.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:x.createElement(ga,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:x.createElement(ga,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:fi.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:fi.onMouseDown(r,i)},onGlobalMouseMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:fi.onGlobalMouseMove(r,i)},onGlobalTouchMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:fi.onGlobalMouseMove(r,i)},onGlobalMouseUp:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)},onGlobalTouchEnd:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)},onGlobalTouchCancel:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)}}}]},t};MA(Ve);function Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cle(e,t,n){return t&&DA(e.prototype,t),n&&DA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ale=16,Tle=function(){function e(){var t=this;Ole(this,e),this.handleMouseMove=function(n,r){var i=r.onCursorChange,a=r.domain,o=t.getDimension(r),l=r.parentSVG||si(n),s=Mr(n,l),c=kf(r,r.scale,s.x,s.y),u=t.withinBounds(c,{x1:a.x[0],x2:a.x[1],y1:a.y[0],y2:a.y[1]});if(u||(c=null),Oe(i))if(c){var f=o?c[o]:c;i(f,r)}else c!==r.cursorValue&&i(r.defaultCursorValue||null,r);return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:l}}}]},this.onMouseMove=No(this.handleMouseMove,Ale,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(n,r){var i=r.onCursorChange;return Oe(r.onCursorChange)&&i(null,r),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}return Cle(e,[{key:"getDimension",value:function(n){var r=n.horizontal,i=n.cursorDimension;return!r||!i?i:i==="x"?"y":"x"}},{key:"withinBounds",value:function(n,r){var i=Wo(r,Number),a=i.x1,o=i.x2,l=i.y1,s=i.y2,c=Wo(n,Number),u=c.x,f=c.y;return u>=Math.min(a,o)&&u<=Math.max(a,o)&&f>=Math.min(l,s)&&f<=Math.max(l,s)}}]),e}(),Jf=new Tle;function IA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(n),!0).forEach(function(r){$A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LA(e){return jle(e)||Ple(e)||Ele(e)||kle()}function kle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
235
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cle(e,t){if(e){if(typeof e=="string")return $p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $p(e,t)}}function ule(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fle(e){if(Array.isArray(e))return $p(e)}function $p(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ka={getDimension:function(e){var t=e.horizontal,n=e.brushDimension;return!t||!n?n:n==="x"?"y":"x"},withinBounds:function(e,t,n){var r=Wo(t,Number),i=r.x1,a=r.x2,o=r.y1,l=r.y2,s=Wo(e,Number),c=s.x,u=s.y;return n=n?n/2:0,c+n>=Math.min(i,a)&&c-n<=Math.max(i,a)&&u+n>=Math.min(o,l)&&u-n<=Math.max(o,l)},getDomainBox:function(e,t,n){var r=this.getDimension(e);t=ae({},t,e.domain),n=ae({},n,t);var i=ci(e,t),a=ci(e,n);return{x1:r!=="y"?Math.min.apply(Math,Bi(a.x)):Math.min.apply(Math,Bi(i.x)),x2:r!=="y"?Math.max.apply(Math,Bi(a.x)):Math.max.apply(Math,Bi(i.x)),y1:r!=="x"?Math.min.apply(Math,Bi(a.y)):Math.min.apply(Math,Bi(i.y)),y2:r!=="x"?Math.max.apply(Math,Bi(a.y)):Math.max.apply(Math,Bi(i.y))}},getHandles:function(e,t){var n=this.getDimension(e),r=t.x1,i=t.x2,a=t.y1,o=t.y2,l=Math.min(r,i),s=Math.max(r,i),c=Math.min(a,o),u=Math.max(a,o),f=e.handleWidth/2;return{left:n!=="y"&&{x1:l-f,x2:l+f,y1:a,y2:o},right:n!=="y"&&{x1:s-f,x2:s+f,y1:a,y2:o},top:n!=="x"&&{x1:r,x2:i,y1:c-f,y2:c+f},bottom:n!=="x"&&{x1:r,x2:i,y1:u-f,y2:u+f}}},getActiveHandles:function(e,t,n){var r=this,i=this.getHandles(t,n),a=["top","bottom","left","right"].reduce(function(o,l){return o=i[l]&&r.withinBounds(e,i[l])?o.concat(l):o,o},[]);return a.length&&a},getResizeMutation:function(e,t){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o={left:{x1:Math.max(n,i),x2:Math.min(n,i),y1:r,y2:a},right:{x1:Math.min(n,i),x2:Math.max(n,i),y1:r,y2:a},top:{y1:Math.max(r,a),y2:Math.min(r,a),x1:n,x2:i},bottom:{y1:Math.min(r,a),y2:Math.max(r,a),x1:n,x2:i}};return t.reduce(function(l,s){return B(l,o[s])},{})},getMinimumDomain:function(){return{x:[0,1/Number.MAX_SAFE_INTEGER],y:[0,1/Number.MAX_SAFE_INTEGER]}},getDefaultBrushArea:function(e,t,n){var r=e.domain,i=e.fullDomain,a=e.scale,o=e.horizontal,l=e.allowResize,s=!l&&!e.defaultBrushArea?"move":e.defaultBrushArea;if(s==="none")return this.getMinimumDomain();if(s==="disable")return t;if(s==="move"){var c=this.getDomainBox(e,i,t),u=e.parentSVG||si(n),f=this.panBox(nn(nn(nn({},e),c),{},{brushDomain:t,startX:(c.x1+c.x2)/2,startY:(c.y1+c.y2)/2}),Mr(n,u)),d=e.fullDomainBox||this.getDomainBox(e,i),h=this.constrainBox(f,d);return Ef(nn(nn({},h),{},{scale:a,horizontal:o}))}return r},getSelectionMutation:function(e,t,n){var r=e.x,i=e.y,a=t.x1,o=t.x2,l=t.y1,s=t.y2;return{x1:n!=="y"?r:a,y1:n!=="x"?i:l,x2:n!=="y"?r:o,y2:n!=="x"?i:s}},panBox:function(e,t){var n=e.domain,r=e.startX,i=e.startY,a=this.getDimension(e),o=ae({},e.brushDomain,n),l=ae({},e.fullDomain,n),s=e.x1?e:this.getDomainBox(e,l,o),c=s.x1,u=s.x2,f=s.y1,d=s.y2,h=t.x,p=t.y,g={x:r?r-h:0,y:i?i-p:0};return{x1:a!=="y"?Math.min(c,u)-g.x:Math.min(c,u),x2:a!=="y"?Math.max(c,u)-g.x:Math.max(c,u),y1:a!=="x"?Math.min(f,d)-g.y:Math.min(f,d),y2:a!=="x"?Math.max(f,d)-g.y:Math.max(f,d)}},constrainBox:function(e,t){var n=Wo(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x1:e.x2>a?a-Math.abs(e.x2-e.x1):Math.max(e.x1,r),y1:e.y2>o?o-Math.abs(e.y2-e.y1):Math.max(e.y1,i),x2:e.x1<r?r+Math.abs(e.x2-e.x1):Math.min(e.x2,a),y2:e.y1<i?i+Math.abs(e.y2-e.y1):Math.min(e.y2,o)}},constrainPoint:function(e,t){var n=Wo(t,Number),r=n.x1,i=n.y1,a=n.x2,o=n.y2;return{x:Math.min(Math.max(e.x,r),a),y:Math.min(Math.max(e.y,i),o)}},hasMoved:function(e){var t=e.x1,n=e.x2,r=e.y1,i=e.y2,a=e.mouseMoveThreshold,o=this.getDimension(e),l=Math.abs(t-n)>=a,s=Math.abs(r-i)>=a;switch(o){case"x":return l;case"y":return s;default:return l||s}},onMouseDown:function(e,t){var n=this;e.preventDefault();var r=t.handleWidth,i=t.cachedBrushDomain,a=t.domain,o=t.allowResize,l=t.allowDrag,s=t.allowDraw,c=this.getDimension(t),u=!o&&!t.defaultBrushArea?"move":t.defaultBrushArea;if(!o&&!l)return{};var f=t.fullDomainBox||this.getDomainBox(t,a),d=t.parentSVG||si(e),h=Mr(e,d),p=h.x,g=h.y;if(!this.withinBounds({x:p,y:g},f,r))return{};var y=ae({},t.brushDomain,a),_=fn(y,i)?t.currentDomain||y||a:y||a,b=this.getDomainBox(t,a,_),S=o&&this.getActiveHandles({x:p,y:g},t,b);return S?[{target:"parent",mutation:function(){return nn({isSelecting:!0,domainBox:b,fullDomainBox:f,cachedBrushDomain:y,currentDomain:_,parentSVG:d},n.getResizeMutation(b,S))}}]:this.withinBounds({x:p,y:g},b)&&!fn(a,_)?[{target:"parent",mutation:function(){return nn({isPanning:l,startX:p,startY:g,domainBox:b,fullDomainBox:f,currentDomain:_,cachedBrushDomain:y,parentSVG:d},b)}}]:s?[{target:"parent",mutation:function(){return nn({isSelecting:o||u==="move",domainBox:b,fullDomainBox:f,parentSVG:d,cachedBrushDomain:y,cachedCurrentDomain:_,currentDomain:n.getMinimumDomain()},n.getSelectionMutation({x:p,y:g},b,c))}}]:{}},onGlobalMouseMove:function(e,t){var n=t.scale,r=t.isPanning,i=t.isSelecting,a=t.fullDomainBox,o=t.onBrushDomainChange,l=t.allowResize,s=t.allowDrag,c=t.horizontal,u=t.mouseMoveThreshold,f=t.parentSVG,d=this.getDimension(t),h=Mr(e,f),p=h.x,g=h.y;if(!l&&!s||u>0&&!this.hasMoved(nn(nn({},t),{},{x2:p,y2:g})))return{};if(s&&r){var y=t.startX,_=t.startY,b=this.panBox(t,{x:p,y:g}),S=this.constrainBox(b,a),O=Ef(nn(nn({},S),{},{scale:n,horizontal:c})),w=nn({currentDomain:O,parentSVG:f,startX:b.x2>=a.x2||b.x1<=a.x1?y:p,startY:b.y2>=a.y2||b.y1<=a.y1?_:g},S);return Oe(o)&&o(O,ae({},w,t)),[{target:"parent",mutation:function(){return w}}]}else if(l&&i){var A=this.constrainPoint({x:d!=="y"?p:t.x2,y:d!=="x"?g:t.y2},a),T=A.x,k=A.y,j=Ef({x2:T,y2:k,x1:t.x1,y1:t.y1,scale:n,horizontal:c}),N={x2:T,y2:k,currentDomain:j,parentSVG:f};return Oe(o)&&o(j,ae({},N,t)),[{target:"parent",mutation:function(){return N}}]}return{}},onGlobalMouseUp:function(e,t){if(!t.isPanning&&!t.isSelecting)return{};var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.isPanning,l=t.isSelecting,s=t.onBrushDomainChange,c=t.onBrushDomainChangeEnd,u=t.onBrushCleared,f=t.currentDomain,d=t.allowResize,h=t.allowDrag,p=!d&&!t.defaultBrushArea?"move":t.defaultBrushArea,g=p!==void 0&&p!=="none",y={isPanning:!1,isSelecting:!1};if((d||g)&&(n===i||r===a)){var _=t.cachedCurrentDomain||f,b=this.getDefaultBrushArea(t,_,e);y.currentDomain=b,Oe(s)&&s(b,ae({},y,t)),Oe(c)&&c(b,ae({},y,t)),Oe(u)&&u(b,ae({},y,t))}else(h&&o||d&&l)&&Oe(c)&&c(f,ae({},y,t));return[{target:"parent",mutation:function(){return y}}]}},fi=nn(nn({},ka),{},{onMouseDown:ka.onMouseDown.bind(ka),onGlobalMouseUp:ka.onGlobalMouseUp.bind(ka),onGlobalMouseMove:No(ka.onGlobalMouseMove.bind(ka),16,{leading:!0,trailing:!1})});function EA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){dle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PA(e){return ple(e)||gle(e)||mle(e)||hle()}function hle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mle(e,t){if(e){if(typeof e=="string")return Fp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fp(e,t)}}function gle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ple(e){if(Array.isArray(e))return Fp(e)}function Fp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yle(e,t,n){return t&&jA(e.prototype,t),n&&jA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ble(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Np(e,t)}function _le(e){var t=wle();return function(){var r=Xf(e),i;if(t){var a=Xf(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return xle(this,i)}}function xle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Sle(e)}function Sle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Xf(e){return Xf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xf(e)}var MA=function(e){var t;return t=function(n){ble(i,n);var r=_le(i);function i(){return vle(this,i),r.apply(this,arguments)}return yle(i,[{key:"getSelectBox",value:function(o,l){var s=l.x,c=l.y,u=o.brushStyle,f=o.brushComponent,d=o.name,h=f.props&&f.props.style,p=!o.allowDrag&&!o.allowResize?"auto":"move";return s[0]!==s[1]&&c[0]!==c[1]?x.cloneElement(f,{key:"".concat(d,"-brush"),width:Math.abs(s[1]-s[0])||1,height:Math.abs(c[1]-c[0])||1,x:Math.min(s[0],s[1]),y:Math.min(c[0],c[1]),cursor:p,style:ae({},h,u)}):null}},{key:"getCursorPointers",value:function(o){var l={yProps:"ns-resize",xProps:"ew-resize"};return!o.allowResize&&o.allowDrag?(l.xProps="move",l.yProps="move"):!o.allowResize&&!o.allowDrag&&(l.xProps="auto",l.yProps="auto"),l}},{key:"getHandles",value:function(o,l){var s=o.handleWidth,c=o.handleStyle,u=o.handleComponent,f=o.name,d=fi.getDomainBox(o,l),h=d.x1,p=d.x2,g=d.y1,y=d.y2,_=fi.getHandles(o,d),b=_.top,S=_.bottom,O=_.left,w=_.right,A=Math.abs(p-h)||1,T=Math.abs(y-g)||1,k=u.props&&u.props.style||{},j=ae({},k,c),N=this.getCursorPointers(o),M={style:j,width:A,height:s,cursor:N.yProps},E={style:j,width:s,height:T,cursor:N.xProps},I={top:b&&B({x:b.x1,y:b.y1},M),bottom:S&&B({x:S.x1,y:S.y1},M),left:O&&B({y:O.y1,x:O.x1},E),right:w&&B({y:w.y1,x:w.x1},E)},D=["top","bottom","left","right"].reduce(function(W,X){return W=I[X]?W.concat(x.cloneElement(u,B({key:"".concat(f,"-handle-").concat(X)},I[X]))):W,W},[]);return D.length?D:null}},{key:"getRect",value:function(o){var l=o.currentDomain,s=o.cachedBrushDomain,c=ae({},o.brushDomain,o.domain),u=fn(c,s)?ae({},l,c):c,f=ci(o,u),d=this.getSelectBox(o,f);return d?[d,this.getHandles(o,u)]:[]}},{key:"getChildren",value:function(o){return[].concat(PA(x.Children.toArray(o.children)),PA(this.getRect(o)))}}]),i}(e),t.displayName="VictoryBrushContainer",t.propTypes=Zf(Zf({},Ve.propTypes),{},{allowDrag:m.bool,allowDraw:m.bool,allowResize:m.bool,brushComponent:m.element,brushDimension:m.oneOf(["x","y"]),brushDomain:m.shape({x:m.array,y:m.array}),brushStyle:m.object,defaultBrushArea:m.oneOf(["all","disable","none","move"]),disable:m.bool,handleComponent:m.element,handleStyle:m.object,handleWidth:m.number,onBrushCleared:m.func,onBrushDomainChange:m.func,onBrushDomainChangeEnd:m.func}),t.defaultProps=Zf(Zf({},Ve.defaultProps),{},{allowDrag:!0,allowDraw:!0,allowResize:!0,brushComponent:x.createElement(ga,null),brushStyle:{stroke:"transparent",fill:"black",fillOpacity:.1},handleComponent:x.createElement(ga,null),handleStyle:{stroke:"transparent",fill:"transparent"},handleWidth:8,mouseMoveThreshold:0}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseDown:function(r,i){return n.disable?{}:fi.onMouseDown(r,i)},onTouchStart:function(r,i){return n.disable?{}:fi.onMouseDown(r,i)},onGlobalMouseMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:fi.onGlobalMouseMove(r,i)},onGlobalTouchMove:function(r,i){return n.disable||!i.isPanning&&!i.isSelecting?{}:fi.onGlobalMouseMove(r,i)},onGlobalMouseUp:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)},onGlobalTouchEnd:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)},onGlobalTouchCancel:function(r,i){return n.disable?{}:fi.onGlobalMouseUp(r,i)}}}]},t};MA(Ve);function Ole(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cle(e,t,n){return t&&DA(e.prototype,t),n&&DA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ale=16,Tle=function(){function e(){var t=this;Ole(this,e),this.handleMouseMove=function(n,r){var i=r.onCursorChange,a=r.domain,o=t.getDimension(r),l=r.parentSVG||si(n),s=Mr(n,l),c=kf(r,r.scale,s.x,s.y),u=t.withinBounds(c,{x1:a.x[0],x2:a.x[1],y1:a.y[0],y2:a.y[1]});if(u||(c=null),Oe(i))if(c){var f=o?c[o]:c;i(f,r)}else c!==r.cursorValue&&i(r.defaultCursorValue||null,r);return[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:c,parentSVG:l}}}]},this.onMouseMove=No(this.handleMouseMove,Ale,{leading:!0,trailing:!1}),this.onMouseLeave=this.handleMouseMove,this.onTouchEnd=function(n,r){var i=r.onCursorChange;return Oe(r.onCursorChange)&&i(null,r),[{target:"parent",eventKey:"parent",mutation:function(){return{cursorValue:null}}}]}}return Cle(e,[{key:"getDimension",value:function(n){var r=n.horizontal,i=n.cursorDimension;return!r||!i?i:i==="x"?"y":"x"}},{key:"withinBounds",value:function(n,r){var i=Wo(r,Number),a=i.x1,o=i.x2,l=i.y1,s=i.y2,c=Wo(n,Number),u=c.x,f=c.y;return u>=Math.min(a,o)&&u<=Math.max(a,o)&&f>=Math.min(l,s)&&f<=Math.max(l,s)}}]),e}(),Jf=new Tle;function IA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Qf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(n),!0).forEach(function(r){$A(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LA(e){return jle(e)||Ple(e)||Ele(e)||kle()}function kle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
237
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ele(e,t){if(e){if(typeof e=="string")return zp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zp(e,t)}}function Ple(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jle(e){if(Array.isArray(e))return zp(e)}function zp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dle(e,t,n){return t&&FA(e.prototype,t),n&&FA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ile(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bp(e,t)}function Bp(e,t){return Bp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Bp(e,t)}function Lle(e){var t=Nle();return function(){var r=ed(e),i;if(t){var a=ed(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return $le(this,i)}}function $le(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fle(e)}function Fle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ed(e){return ed=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ed(e)}function NA(e){var t;return t=function(n){Ile(i,n);var r=Lle(i);function i(){return Mle(this,i),r.apply(this,arguments)}return Dle(i,[{key:"getCursorPosition",value:function(o){var l=o.cursorValue,s=o.defaultCursorValue,c=o.domain,u=o.cursorDimension;return l||(typeof s=="number"?$A({x:(c.x[0]+c.x[1])/2,y:(c.y[0]+c.y[1])/2},u,s):s)}},{key:"getCursorLabelOffset",value:function(o){var l=o.cursorLabelOffset;return typeof l=="number"?{x:l,y:l}:l}},{key:"getPadding",value:function(o){if(o.padding===void 0){var l=o.children.find(function(s){return uo(s.props)&&s.props.padding!==void 0});return lt(l.props)}return lt(o)}},{key:"getCursorElements",value:function(o){var l=o.scale,s=o.cursorLabelComponent,c=o.cursorLabel,u=o.cursorComponent,f=o.width,d=o.height,h=o.name,p=o.horizontal,g=o.theme,y=Jf.getDimension(o),_=this.getCursorPosition(o),b=this.getCursorLabelOffset(o);if(!_)return[];var S=[],O=this.getPadding(o),w={x:p?l.y(_.y):l.x(_.x),y:p?l.x(_.x):l.y(_.y)};if(c){var A=ae({active:!0},s.props,{x:w.x+b.x,y:w.y+b.y,datum:_,active:!0,key:"".concat(h,"-cursor-label")});if(yu(s)){var T=g&&g.tooltip||{};A=ae({},A,T)}S.push(x.cloneElement(s,ae({},A,{text:fe(c,A)})))}var k=B({stroke:"black"},u.props.style);return(y==="x"||y===void 0)&&S.push(x.cloneElement(u,{key:"".concat(h,"-x-cursor"),x1:w.x,x2:w.x,y1:O.top,y2:d-O.bottom,style:k})),(y==="y"||y===void 0)&&S.push(x.cloneElement(u,{key:"".concat(h,"-y-cursor"),x1:O.left,x2:f-O.right,y1:w.y,y2:w.y,style:k})),S}},{key:"getChildren",value:function(o){return[].concat(LA(x.Children.toArray(o.children)),LA(this.getCursorElements(o)))}}]),i}(e),t.displayName="VictoryCursorContainer",t.propTypes=Qf(Qf({},Ve.propTypes),{},{cursorDimension:m.oneOf(["x","y"]),cursorLabel:m.func,cursorLabelComponent:m.element,cursorLabelOffset:m.oneOfType([m.number,m.shape({x:m.number,y:m.number})]),defaultCursorValue:m.oneOfType([m.number,m.shape({x:m.number,y:m.number})]),disable:m.bool,onCursorChange:m.func}),t.defaultProps=Qf(Qf({},Ve.defaultProps),{},{cursorLabelComponent:x.createElement(wt,null),cursorLabelOffset:{x:5,y:-10},cursorComponent:x.createElement(jr,null)}),t.defaultEvents=function(n){return[{target:"parent",eventHandlers:{onMouseLeave:function(r,i){return n.disable?{}:Jf.onMouseLeave(r,i)},onTouchCancel:function(){return[]},onMouseMove:function(r,i){return n.disable?{}:Jf.onMouseMove(r,i)},onTouchMove:function(r,i){return n.disable?{}:Jf.onMouseMove(r,i)}}}]},t}NA(Ve);function td(e){return Wle(e)||Ble(e)||WA(e)||zle()}function zle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
238
238
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ble(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wle(e){if(Array.isArray(e))return Rp(e)}function zA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zA(Object(n),!0).forEach(function(r){Rle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rle(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hle(e,t,n){return t&&BA(e.prototype,t),n&&BA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ule(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wp(e,t)}function Wp(e,t){return Wp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Wp(e,t)}function qle(e){var t=Kle();return function(){var r=nd(e),i;if(t){var a=nd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Gle(this,i)}}function Gle(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yle(e)}function Yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kle(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function nd(e){return nd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nd(e)}function Zle(e,t){return Qle(e)||Jle(e,t)||WA(e,t)||Xle()}function Xle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
239
239
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WA(e,t){if(e){if(typeof e=="string")return Rp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rp(e,t)}}function Rp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Qle(e){if(Array.isArray(e))return e}var RA=function(e){if(e){if(!Array.isArray(e))return[e]}else return[];return e},ese=function(e){return e.reduce(function(t,n){return Uie(t,function(r,i){var a=n[i];a?n[i]=function(){var l=RA(a.apply(void 0,arguments)),s=RA(r.apply(void 0,arguments));return l.concat(s)}:n[i]=r}),n})},tse=function(e){var t=Pf(e,"target"),n=cae(t).map(function(r){var i=Zle(r,2),a=i[0],o=i[1];return o=o.filter(Boolean),rt(o)?null:{target:a,eventHandlers:ese(o.map(function(l){return l.eventHandlers}))}});return n.filter(Boolean)},nse=function(e,t){var n,r=e.map(function(l){return l(t)}),i=r.map(function(l){return new l}),a=Fie(e)(t),o=r.map(function(l){var s=l.displayName.match(/Victory(.*)Container/);return s[1]||""}).join("");return n=function(l){Ule(c,l);var s=qle(c);function c(){return Vle(this,c),s.apply(this,arguments)}return Hle(c,[{key:"getChildren",value:function(f){return i.reduce(function(d,h){return h.getChildren(Ro(Ro({},f),{},{children:d}))},f.children)}}]),c}(a),n.displayName="Victory".concat(o,"Container"),n.propTypes=r.reduce(function(l,s){return Ro(Ro({},l),s.propTypes)},{}),n.defaultProps=r.reduce(function(l,s){return Ro(Ro({},l),s.defaultProps)},{}),n.defaultEvents=function(l){return tse(r.reduce(function(s,c){var u=Oe(c.defaultEvents)?c.defaultEvents(l):c.defaultEvents;return[].concat(td(s),td(u))},[]))},n},VA=function(e,t){e&&!Kr(t,e)&&So('"'.concat(e,'" is not a valid behavior. Choose from [').concat(t.join(", "),"]."))},rse=function(e,t){return function(n,r){var i=Ze(e);VA(n,i),VA(r,i),!(arguments.length<=2)&&arguments.length-2&&So("too many arguments given to createContainer (maximum accepted: 2).");var a=e[n],o=e[r]||[];return a?nse([].concat(td(a),td(o)),t):t}},ise=rse({zoom:[SA],voronoi:[vA],selection:[TA],cursor:[NA],brush:[MA]},Ve);const ase=e=>{const{pointerWidth:t,cornerRadius:n,orientation:r,width:i,height:a,center:o}=e,l=r==="bottom"?1:-1,s=Qe(o)&&o.x,c=Qe(o)&&o.y,u=c+l*(a/2),f=c-l*(a/2),d=s+i/2,h=s-i/2,p=o.x+(e.dx||0),g=r==="bottom"?u+e.pointerLength+(e.dy||0):u-e.pointerLength+(e.dy||0),y=l*(g-u)<0?0:e.pointerLength,b=`${n} ${n} ${r==="bottom"?"0 0 0":"0 0 1"}`;return`M ${s-t/2}, ${u}
@@ -259,7 +259,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
259
259
  L ${u+l*n}, ${h}
260
260
  A ${b} ${u}, ${h+n}
261
261
  z`},lse=e=>{const t=e.orientation||"top";return t==="left"||t==="right"?ose(e):ase(e)},sse=e=>{const t=fe(e.id,e),n=Xe(e.style,e);return Object.assign({},e,{id:t,style:n})},Vp=e=>(e=sse(e),F.cloneElement(e.pathComponent,Object.assign(Object.assign({},e.events),{style:e.style,d:lse(e),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})));Vp.propTypes=Object.assign(Object.assign({},Ot.primitiveProps),{center:m.shape({x:m.number,y:m.number}),cornerRadius:m.number,datum:m.object,dx:m.number,dy:m.number,height:m.number,orientation:m.oneOf(["top","bottom","left","right"]),pathComponent:m.element,pointerLength:m.number,pointerWidth:m.number,width:m.number,x:m.number,y:m.number}),Vp.defaultProps={pathComponent:F.createElement(Li,null),role:"presentation",shapeRendering:"auto"};const cse={name:"--pf-chart-axis--grid--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--grid--stroke--Color, #d2d2d2)"},HA={name:"--pf-chart-axis--tick--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--tick--stroke--Color, #d2d2d2)"},use={axis:{style:{grid:{stroke:cse.var},ticks:{stroke:HA.var}}}},UA={name:"--pf-chart-global--FontFamily",value:'"RedHatText", "Overpass", overpass, helvetica, arial, sans-serif',var:'var(--pf-chart-global--FontFamily, "RedHatText", "Overpass", overpass, helvetica, arial, sans-serif)'},qA={name:"--pf-chart-global--letter-spacing",value:"normal",var:"var(--pf-chart-global--letter-spacing, normal)"},Hp={name:"--pf-chart-global--FontSize--sm",value:14,var:"var(--pf-chart-global--FontSize--sm, 14)"},fse={name:"--pf-chart-global--label--Padding",value:10,var:"var(--pf-chart-global--label--Padding, 10)"},dse={name:"--pf-chart-global--label--stroke",value:"transparent",var:"var(--pf-chart-global--label--stroke, transparent)"},hse={name:"--pf-chart-global--label--text-anchor",value:"middle",var:"var(--pf-chart-global--label--text-anchor, middle)"},GA={name:"--pf-chart-global--label--Fill",value:"#151515",var:"var(--pf-chart-global--label--Fill, #151515)"},mse={name:"--pf-chart-global--layout--Padding",value:50,var:"var(--pf-chart-global--layout--Padding, 50)"},gse={name:"--pf-chart-global--layout--Height",value:300,var:"var(--pf-chart-global--layout--Height, 300)"},pse={name:"--pf-chart-global--layout--Width",value:450,var:"var(--pf-chart-global--layout--Width, 450)"},vse={name:"--pf-chart-global--stroke-line-cap",value:"round",var:"var(--pf-chart-global--stroke-line-cap, round)"},yse={name:"--pf-chart-global--stroke-line-join",value:"round",var:"var(--pf-chart-global--stroke-line-join, round)"},bse={name:"--pf-chart-area--data--Fill",value:"#151515",var:"var(--pf-chart-area--data--Fill, #151515)"},_se={name:"--pf-chart-area--Opacity",value:.3,var:"var(--pf-chart-area--Opacity, 0.3)"},xse={name:"--pf-chart-area--stroke--Width",value:2,var:"var(--pf-chart-area--stroke--Width, 2)"},Sse={name:"--pf-chart-axis--axis--stroke--Width",value:1,var:"var(--pf-chart-axis--axis--stroke--Width, 1)"},wse={name:"--pf-chart-axis--axis--stroke--Color",value:"#d2d2d2",var:"var(--pf-chart-axis--axis--stroke--Color, #d2d2d2)"},Ose={name:"--pf-chart-axis--axis--Fill",value:"transparent",var:"var(--pf-chart-axis--axis--Fill, transparent)"},Cse={name:"--pf-chart-axis--axis-label--Padding",value:40,var:"var(--pf-chart-axis--axis-label--Padding, 40)"},Ase={name:"--pf-chart-axis--axis-label--stroke--Color",value:"transparent",var:"var(--pf-chart-axis--axis-label--stroke--Color, transparent)"},Tse={name:"--pf-chart-axis--grid--Fill",value:"none",var:"var(--pf-chart-axis--grid--Fill, none)"},kse={name:"--pf-chart-axis--grid--PointerEvents",value:"painted",var:"var(--pf-chart-axis--grid--PointerEvents, painted)"},Ese={name:"--pf-chart-axis--tick--Fill",value:"transparent",var:"var(--pf-chart-axis--tick--Fill, transparent)"},Pse={name:"--pf-chart-axis--tick--Size",value:5,var:"var(--pf-chart-axis--tick--Size, 5)"},jse={name:"--pf-chart-axis--tick--Width",value:1,var:"var(--pf-chart-axis--tick--Width, 1)"},Mse={name:"--pf-chart-axis--tick-label--Fill",value:"#4f5255",var:"var(--pf-chart-axis--tick-label--Fill, #4f5255)"},Dse={name:"--pf-chart-bar--Width",value:10,var:"var(--pf-chart-bar--Width, 10)"},Ise={name:"--pf-chart-bar--data--stroke",value:"none",var:"var(--pf-chart-bar--data--stroke, none)"},Lse={name:"--pf-chart-bar--data--Fill",value:"#151515",var:"var(--pf-chart-bar--data--Fill, #151515)"},$se={name:"--pf-chart-bar--data--Padding",value:8,var:"var(--pf-chart-bar--data--Padding, 8)"},Fse={name:"--pf-chart-bar--data-stroke--Width",value:0,var:"var(--pf-chart-bar--data-stroke--Width, 0)"},Nse={name:"--pf-chart-boxplot--max--Padding",value:8,var:"var(--pf-chart-boxplot--max--Padding, 8)"},zse={name:"--pf-chart-boxplot--max--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--max--stroke--Color, #151515)"},Bse={name:"--pf-chart-boxplot--max--stroke--Width",value:1,var:"var(--pf-chart-boxplot--max--stroke--Width, 1)"},Wse={name:"--pf-chart-boxplot--median--Padding",value:8,var:"var(--pf-chart-boxplot--median--Padding, 8)"},Rse={name:"--pf-chart-boxplot--median--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--median--stroke--Color, #151515)"},Vse={name:"--pf-chart-boxplot--median--stroke--Width",value:1,var:"var(--pf-chart-boxplot--median--stroke--Width, 1)"},Hse={name:"--pf-chart-boxplot--min--Padding",value:8,var:"var(--pf-chart-boxplot--min--Padding, 8)"},Use={name:"--pf-chart-boxplot--min--stroke--Width",value:1,var:"var(--pf-chart-boxplot--min--stroke--Width, 1)"},qse={name:"--pf-chart-boxplot--min--stroke--Color",value:"#151515",var:"var(--pf-chart-boxplot--min--stroke--Color, #151515)"},Gse={name:"--pf-chart-boxplot--lower-quartile--Padding",value:8,var:"var(--pf-chart-boxplot--lower-quartile--Padding, 8)"},Yse={name:"--pf-chart-boxplot--lower-quartile--Fill",value:"#8a8d90",var:"var(--pf-chart-boxplot--lower-quartile--Fill, #8a8d90)"},Kse={name:"--pf-chart-boxplot--upper-quartile--Padding",value:8,var:"var(--pf-chart-boxplot--upper-quartile--Padding, 8)"},Zse={name:"--pf-chart-boxplot--upper-quartile--Fill",value:"#8a8d90",var:"var(--pf-chart-boxplot--upper-quartile--Fill, #8a8d90)"},Xse={name:"--pf-chart-boxplot--box--Width",value:20,var:"var(--pf-chart-boxplot--box--Width, 20)"},Jse={name:"--pf-chart-candelstick--data--stroke--Width",value:1,var:"var(--pf-chart-candelstick--data--stroke--Width, 1)"},Qse={name:"--pf-chart-candelstick--data--stroke--Color",value:"#151515",var:"var(--pf-chart-candelstick--data--stroke--Color, #151515)"},ece={name:"--pf-chart-candelstick--candle--positive--Color",value:"#fff",var:"var(--pf-chart-candelstick--candle--positive--Color, #fff)"},tce={name:"--pf-chart-candelstick--candle--negative--Color",value:"#151515",var:"var(--pf-chart-candelstick--candle--negative--Color, #151515)"},nce={name:"--pf-chart-errorbar--BorderWidth",value:8,var:"var(--pf-chart-errorbar--BorderWidth, 8)"},rce={name:"--pf-chart-errorbar--data--Fill",value:"transparent",var:"var(--pf-chart-errorbar--data--Fill, transparent)"},ice={name:"--pf-chart-errorbar--data--Opacity",value:1,var:"var(--pf-chart-errorbar--data--Opacity, 1)"},ace={name:"--pf-chart-errorbar--data-stroke--Width",value:2,var:"var(--pf-chart-errorbar--data-stroke--Width, 2)"},oce={name:"--pf-chart-errorbar--data-stroke--Color",value:"#151515",var:"var(--pf-chart-errorbar--data-stroke--Color, #151515)"},lce={name:"--pf-chart-legend--gutter--Width",value:20,var:"var(--pf-chart-legend--gutter--Width, 20)"},sce={name:"--pf-chart-legend--orientation",value:"horizontal",var:"var(--pf-chart-legend--orientation, horizontal)"},cce={name:"--pf-chart-legend--title--orientation",value:"top",var:"var(--pf-chart-legend--title--orientation, top)"},uce={name:"--pf-chart-legend--data--type",value:"square",var:"var(--pf-chart-legend--data--type, square)"},fce={name:"--pf-chart-legend--title--Padding",value:2,var:"var(--pf-chart-legend--title--Padding, 2)"},dce={name:"--pf-chart-line--data--Fill",value:"transparent",var:"var(--pf-chart-line--data--Fill, transparent)"},hce={name:"--pf-chart-line--data--Opacity",value:1,var:"var(--pf-chart-line--data--Opacity, 1)"},mce={name:"--pf-chart-line--data--stroke--Width",value:2,var:"var(--pf-chart-line--data--stroke--Width, 2)"},gce={name:"--pf-chart-line--data--stroke--Color",value:"#151515",var:"var(--pf-chart-line--data--stroke--Color, #151515)"},pce={name:"--pf-chart-pie--Padding",value:20,var:"var(--pf-chart-pie--Padding, 20)"},vce={name:"--pf-chart-pie--data--Padding",value:8,var:"var(--pf-chart-pie--data--Padding, 8)"},yce={name:"--pf-chart-pie--data--stroke--Width",value:1,var:"var(--pf-chart-pie--data--stroke--Width, 1)"},bce={name:"--pf-chart-pie--data--stroke--Color",value:"transparent",var:"var(--pf-chart-pie--data--stroke--Color, transparent)"},_ce={name:"--pf-chart-pie--labels--Padding",value:8,var:"var(--pf-chart-pie--labels--Padding, 8)"},xce={name:"--pf-chart-pie--Height",value:230,var:"var(--pf-chart-pie--Height, 230)"},Sce={name:"--pf-chart-pie--Width",value:230,var:"var(--pf-chart-pie--Width, 230)"},wce={name:"--pf-chart-scatter--data--stroke--Color",value:"transparent",var:"var(--pf-chart-scatter--data--stroke--Color, transparent)"},Oce={name:"--pf-chart-scatter--data--stroke--Width",value:0,var:"var(--pf-chart-scatter--data--stroke--Width, 0)"},Cce={name:"--pf-chart-scatter--data--Opacity",value:1,var:"var(--pf-chart-scatter--data--Opacity, 1)"},Ace={name:"--pf-chart-scatter--data--Fill",value:"#151515",var:"var(--pf-chart-scatter--data--Fill, #151515)"},Tce={name:"--pf-chart-stack--data--stroke--Width",value:1,var:"var(--pf-chart-stack--data--stroke--Width, 1)"},kce={name:"--pf-chart-tooltip--corner-radius",value:0,var:"var(--pf-chart-tooltip--corner-radius, 0)"},Ece={name:"--pf-chart-tooltip--pointer-length",value:10,var:"var(--pf-chart-tooltip--pointer-length, 10)"},Pce={name:"--pf-chart-tooltip--Fill",value:"#f0f0f0",var:"var(--pf-chart-tooltip--Fill, #f0f0f0)"},jce={name:"--pf-chart-tooltip--flyoutStyle--corner-radius",value:0,var:"var(--pf-chart-tooltip--flyoutStyle--corner-radius, 0)"},Mce={name:"--pf-chart-tooltip--flyoutStyle--stroke--Width",value:0,var:"var(--pf-chart-tooltip--flyoutStyle--stroke--Width, 0)"},Dce={name:"--pf-chart-tooltip--flyoutStyle--PointerEvents",value:"none",var:"var(--pf-chart-tooltip--flyoutStyle--PointerEvents, none)"},Ice={name:"--pf-chart-tooltip--flyoutStyle--stroke--Color",value:"#151515",var:"var(--pf-chart-tooltip--flyoutStyle--stroke--Color, #151515)"},Lce={name:"--pf-chart-tooltip--flyoutStyle--Fill",value:"#151515",var:"var(--pf-chart-tooltip--flyoutStyle--Fill, #151515)"},$ce={name:"--pf-chart-tooltip--pointer--Width",value:20,var:"var(--pf-chart-tooltip--pointer--Width, 20)"},Fce={name:"--pf-chart-tooltip--Padding",value:8,var:"var(--pf-chart-tooltip--Padding, 8)"},Nce={name:"--pf-chart-tooltip--PointerEvents",value:"none",var:"var(--pf-chart-tooltip--PointerEvents, none)"},zce={name:"--pf-chart-voronoi--data--Fill",value:"transparent",var:"var(--pf-chart-voronoi--data--Fill, transparent)"},Bce={name:"--pf-chart-voronoi--data--stroke--Color",value:"transparent",var:"var(--pf-chart-voronoi--data--stroke--Color, transparent)"},Wce={name:"--pf-chart-voronoi--data--stroke--Width",value:0,var:"var(--pf-chart-voronoi--data--stroke--Width, 0)"},YA={name:"--pf-chart-voronoi--labels--Fill",value:"#f0f0f0",var:"var(--pf-chart-voronoi--labels--Fill, #f0f0f0)"},Rce={name:"--pf-chart-voronoi--labels--Padding",value:8,var:"var(--pf-chart-voronoi--labels--Padding, 8)"},Vce={name:"--pf-chart-voronoi--labels--PointerEvents",value:"none",var:"var(--pf-chart-voronoi--labels--PointerEvents, none)"},Hce={name:"--pf-chart-voronoi--flyout--stroke--Width",value:1,var:"var(--pf-chart-voronoi--flyout--stroke--Width, 1)"},Uce={name:"--pf-chart-voronoi--flyout--PointerEvents",value:"none",var:"var(--pf-chart-voronoi--flyout--PointerEvents, none)"},qce={name:"--pf-chart-voronoi--flyout--stroke--Color",value:"#151515",var:"var(--pf-chart-voronoi--flyout--stroke--Color, #151515)"},Gce={name:"--pf-chart-voronoi--flyout--stroke--Fill",value:"#151515",var:"var(--pf-chart-voronoi--flyout--stroke--Fill, #151515)"},Yce=UA.value.replace(/ /g,""),Kce=qA.value,KA=Hp.value,dr={fontFamily:Yce,fontSize:KA,letterSpacing:Kce,padding:fse.value,stroke:dse.var,fill:GA.var},Ea=Object.assign(Object.assign({},dr),{textAnchor:hse.value}),Gn={padding:mse.value,height:gse.value,width:pse.value},Up=vse.value,qp=yse.value,Zce={area:Object.assign(Object.assign({},Gn),{style:{data:{fill:bse.var,fillOpacity:_se.value,strokeWidth:xse.value},labels:Ea}}),axis:Object.assign(Object.assign({},Gn),{style:{axis:{fill:Ose.var,strokeWidth:Sse.value,stroke:wse.var,strokeLinecap:Up,strokeLinejoin:qp},axisLabel:Object.assign(Object.assign({},Ea),{padding:Cse.value,stroke:Ase.var}),grid:{fill:Tse.var,stroke:"none",pointerEvents:kse.value,strokeLinecap:Up,strokeLinejoin:qp},ticks:{fill:Ese.var,size:Pse.value,stroke:HA.var,strokeLinecap:Up,strokeLinejoin:qp,strokeWidth:jse.value},tickLabels:Object.assign(Object.assign({},dr),{fill:Mse.var})}}),bar:Object.assign(Object.assign({},Gn),{barWidth:Dse.value,style:{data:{fill:Lse.var,padding:$se.value,stroke:Ise.var,strokeWidth:Fse.value},labels:dr}}),boxplot:Object.assign(Object.assign({},Gn),{style:{max:{padding:Nse.value,stroke:zse.var,strokeWidth:Bse.value},maxLabels:dr,median:{padding:Wse.value,stroke:Rse.var,strokeWidth:Vse.value},medianLabels:dr,min:{padding:Hse.value,stroke:qse.var,strokeWidth:Use.value},minLabels:dr,q1:{fill:Yse.var,padding:Gse.value},q1Labels:dr,q3:{fill:Zse.var,padding:Kse.value},q3Labels:dr},boxWidth:Xse.value}),candlestick:Object.assign(Object.assign({},Gn),{candleColors:{positive:ece.var,negative:tce.var},style:{data:{stroke:Qse.var,strokeWidth:Jse.value},labels:Ea}}),chart:Object.assign({},Gn),errorbar:Object.assign(Object.assign({},Gn),{borderWidth:nce.value,style:{data:{fill:rce.var,opacity:ice.value,stroke:oce.var,strokeWidth:ace.value},labels:Ea}}),group:Object.assign({},Gn),legend:{gutter:lce.value,orientation:sce.value,titleOrientation:cce.value,style:{data:{type:uce.value},labels:dr,title:Object.assign(Object.assign({},dr),{fontSize:KA,padding:fce.value})}},line:Object.assign(Object.assign({},Gn),{style:{data:{fill:dce.var,opacity:hce.value,stroke:gce.var,strokeWidth:mce.value},labels:Ea}}),pie:{padding:pce.value,style:{data:{padding:vce.value,stroke:bce.var,strokeWidth:yce.value},labels:Object.assign(Object.assign({},dr),{padding:_ce.value})},height:xce.value,width:Sce.value},scatter:Object.assign(Object.assign({},Gn),{style:{data:{fill:Ace.var,opacity:Cce.value,stroke:wce.var,strokeWidth:Oce.value},labels:Ea}}),stack:Object.assign(Object.assign({},Gn),{style:{data:{strokeWidth:Tce.value}}}),tooltip:{cornerRadius:kce.value,flyoutPadding:Fce.value,flyoutStyle:{cornerRadius:jce.value,fill:Lce.var,pointerEvents:Dce.var,stroke:Ice.var,strokeWidth:Mce.var},pointerLength:Ece.value,pointerWidth:$ce.value,style:{fill:Pce.var,pointerEvents:Nce.var}},voronoi:Object.assign(Object.assign({},Gn),{style:{data:{fill:zce.var,stroke:Bce.var,strokeWidth:Wce.value},labels:Object.assign(Object.assign({},Ea),{fill:YA.var,padding:Rce.value,pointerEvents:Vce.value}),flyout:{fill:Gce.var,pointerEvents:Uce.var,stroke:qce.var,strokeWidth:Hce.var}}})},Xce={name:"--pf-chart-donut--pie--Height",value:230,var:"var(--pf-chart-donut--pie--Height, 230)"},Jce={name:"--pf-chart-donut--pie--angle--Padding",value:1,var:"var(--pf-chart-donut--pie--angle--Padding, 1)"},Qce={name:"--pf-chart-donut--pie--Padding",value:20,var:"var(--pf-chart-donut--pie--Padding, 20)"},eue={name:"--pf-chart-donut--pie--Width",value:230,var:"var(--pf-chart-donut--pie--Width, 230)"},tue={pie:{height:Xce.value,padding:Qce.value,padAngle:Jce.value,width:eue.value}},ZA={name:"--pf-chart-donut--threshold--first--Color",value:"#f0f0f0",var:"var(--pf-chart-donut--threshold--first--Color, #f0f0f0)"},nue={name:"--pf-chart-donut--threshold--second--Color",value:"#d2d2d2",var:"var(--pf-chart-donut--threshold--second--Color, #d2d2d2)"},rue={name:"--pf-chart-donut--threshold--third--Color",value:"#b8bbbe",var:"var(--pf-chart-donut--threshold--third--Color, #b8bbbe)"},iue={name:"--pf-chart-donut--utilization--dynamic--pie--Height",value:230,var:"var(--pf-chart-donut--utilization--dynamic--pie--Height, 230)"},aue={name:"--pf-chart-donut--utilization--dynamic--pie--angle--Padding",value:1,var:"var(--pf-chart-donut--utilization--dynamic--pie--angle--Padding, 1)"},oue={name:"--pf-chart-donut--utilization--dynamic--pie--Padding",value:20,var:"var(--pf-chart-donut--utilization--dynamic--pie--Padding, 20)"},lue={name:"--pf-chart-donut--utilization--dynamic--pie--Width",value:230,var:"var(--pf-chart-donut--utilization--dynamic--pie--Width, 230)"},sue={name:"--pf-chart-donut--utilization--static--pie--Padding",value:20,var:"var(--pf-chart-donut--utilization--static--pie--Padding, 20)"},cue={pie:{height:iue.value,padding:oue.value,padAngle:aue.value,width:lue.value}},uue={legend:{colorScale:[ZA.var,nue.var,rue.var]},pie:{colorScale:[ZA.var],padding:sue.value}},Lr={blue:"blue",cyan:"cyan",default:"blue",gold:"gold",gray:"gray",green:"green",multi:"multi",multiOrdered:"multi-ordered",multiUnordered:"multi-unordered",orange:"orange",purple:"purple"},fue=use,due=Zce,hue=cue,XA=uue,mue=tue,gue={name:"--pf-chart-global--label--Margin",value:8,var:"var(--pf-chart-global--label--Margin, 8)"},pue={name:"--pf-chart-legend--position",value:"right",var:"var(--pf-chart-legend--position, right)"},vue=UA.var,yue=qA.var,bue=Hp.value,_ue={label:{fontFamily:vue,fontSize:bue,letterSpacing:yue,margin:gue.value,fill:GA.var},legend:{margin:a1.value,position:pue.value}},xue={name:"--pf-chart-global--FontSize--2xl",value:24,var:"var(--pf-chart-global--FontSize--2xl, 24)"},Sue={name:"--pf-chart-donut--label--subtitle--Fill",value:"#b8bbbe",var:"var(--pf-chart-donut--label--subtitle--Fill, #b8bbbe)"},wue={name:"--pf-chart-donut--label--title--Fill",value:"#151515",var:"var(--pf-chart-donut--label--title--Fill, #151515)"},Oue={name:"--pf-chart-donut--label--subtitle--position",value:"center",var:"var(--pf-chart-donut--label--subtitle--position, center)"},Cue={label:{subTitle:{fill:Sue.var,fontSize:Hp.value},subTitlePosition:Oue.value,title:{fill:wue.var,fontSize:xue.value}}},Aue={name:"--pf-chart-donut--threshold--warning--Color",value:"#f0ab00",var:"var(--pf-chart-donut--threshold--warning--Color, #f0ab00)"},Tue={name:"--pf-chart-donut--threshold--danger--Color",value:"#c9190b",var:"var(--pf-chart-donut--threshold--danger--Color, #c9190b)"},kue={thresholds:{colorScale:[Aue.var,Tue.var]}},Eue={name:"--pf-global--FontWeight--bold",value:"600",var:"var(--pf-global--FontWeight--bold)"},Pue={flyout:{padding:40},label:{fill:YA.var,fontWeight:Eue.value}},jue={name:"--pf-chart-scatter--active--size",value:5,var:"var(--pf-chart-scatter--active--size, 5)"},Mue={name:"--pf-chart-scatter--size",value:3,var:"var(--pf-chart-scatter--size, 3)"},Due={activeSize:jue.value,size:Mue.value},Bt=_ue,Es=Cue,JA=kue,Yn=Pue,QA=Due;var eT;(function(e){e.rtl="rtl",e.ltr="ltr",e.inherit="inherit"})(eT||(eT={}));var tT;(function(e){e.parallel="parallel",e.perpendicular="perpendicular",e.vertical="vertical"})(tT||(tT={}));const vn=e=>{var{style:t,textAnchor:n}=e,r=ze(e,["style","textAnchor"]);const i=o=>ae(Object.assign(Object.assign({},o),{textAnchor:n}),{fill:Bt.label.fill,fontFamily:Bt.label.fontFamily,fontSize:Bt.label.fontSize,letterSpacing:Bt.label.letterSpacing}),a=Array.isArray(t)?t.map(i):i(t);return F.createElement(wt,Object.assign({style:a,textAnchor:n},r))};vn.displayName="ChartLabel",Ft(vn,wt);const Ps=e=>{var{constrainToVisibleArea:t=!1,labelComponent:n=F.createElement(vn,null),labelTextAnchor:r,themeColor:i,themeVariant:a,theme:o=rn(i)}=e,l=ze(e,["constrainToVisibleArea","labelComponent","labelTextAnchor","themeColor","themeVariant","theme"]);const s=F.cloneElement(n,Object.assign({textAnchor:r,theme:o},n.props));return F.createElement(Dr,Object.assign({constrainToVisibleArea:t,labelComponent:s,theme:o},l))};Ps.displayName="ChartTooltip",Ft(Ps,Dr);const rd=e=>{var{constrainToVisibleArea:t=!0,flyoutComponent:n=F.createElement(Vp,null),labelTextAnchor:r="start",showPointer:i=!0,style:a,themeColor:o,themeVariant:l,theme:s=rn(o),centerOffset:c=Pme({offsetCursorDimensionX:!0,theme:s}),pointerOrientation:u=jme({horizontal:!0,theme:s}),pointerLength:f=i&&s&&s.tooltip?s.tooltip.pointerLength:0,pointerWidth:d=s.tooltip.pointerWidth}=e,h=ze(e,["constrainToVisibleArea","flyoutComponent","labelTextAnchor","showPointer","style","themeColor","themeVariant","theme","centerOffset","pointerOrientation","pointerLength","pointerWidth"]);const p=_=>Object.assign(Object.assign({},_),{textAnchor:r}),g=Array.isArray(a)?a.map(p):p(a),y=()=>{let _=fe(f);return i&&_===0&&(_=s&&s.tooltip?fe(s.tooltip.pointerLength):10),F.cloneElement(n,Object.assign({pointerLength:_,pointerWidth:d},n.props))};return F.createElement(Ps,Object.assign({centerOffset:c,constrainToVisibleArea:t,flyoutComponent:y(),labelTextAnchor:r,pointerOrientation:u,style:g,theme:s},h))};rd.displayName="ChartCursorTooltip",Ft(rd,Dr);const Iue=(e,t)=>{const n=ise(e,t),r=e==="cursor"||t==="cursor",i=e==="voronoi"||t==="voronoi";return r&&(n.defaultProps.cursorLabelComponent=F.createElement(vn,{textAnchor:"start"}),n.defaultProps.cursorComponent=F.createElement(jr,{style:{stroke:Bre.var}})),i&&(n.defaultProps.labelComponent=F.createElement(rd,null)),n},Gp=({className:e})=>{let t;return e&&(t=e.replace(/VictoryContainer/g,"").replace(/pf-c-chart/g,"").replace(/\s+/g," ").trim()),t&&t.length?`pf-c-chart ${t}`:"pf-c-chart"},id=({height:e,padding:t,width:n})=>{const{top:r,bottom:i,left:a,right:o}=lt({padding:t}),l=kr({height:e,width:n,padding:t}),s=(n-l*2-a-o)/2,c=(e-l*2-r-i)/2;return{x:l+a+s,y:l+r+c}},nT=({dx:e=0,height:t,labelPosition:n,legendPosition:r,padding:i,width:a})=>{const o=id({height:t,padding:i,width:a}),l=kr({height:t,width:a,padding:i});switch(n){case"bottom":case"center":return o.x+e;case"right":switch(r){case"bottom":return o.x+Bt.label.margin+e+l;case"right":return o.x+Bt.label.margin+e;default:return e}default:return e}},rT=({dy:e=0,height:t,labelPosition:n,padding:r,width:i})=>{const a=id({height:t,padding:r,width:i}),o=kr({height:t,width:i,padding:r});switch(n){case"center":case"right":return a.y+e;case"bottom":return a.y+o+Bt.label.margin*2+e;default:return e}},Lue=({text:e,theme:t})=>{const n=t.legend.style.labels;return pa(e,Object.assign({},n))};function $ue(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==void 0&&(n=n===void 0?a:n+a)}return n}var Fue=$ue,Nue=Fue,zue=Ti;function Bue(e){return e&&e.length?Nue(e,zue):0}var Wue=Bue;const ad=Ae(Wue);function iT(e){return Uue(e)||Hue(e)||Vue(e)||Rue()}function Rue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
262
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vue(e,t){if(e){if(typeof e=="string")return Yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yp(e,t)}}function Hue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uue(e){if(Array.isArray(e))return Yp(e)}function Yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){que(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function que(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gue=function(e){var t=e.colorScale;return typeof t=="string"?tg(t):t||[]},lT=function(e){var t=e.data,n=e.style;return t.map(function(r,i){var a=ae({},r.labels,n.labels);return Xe(a,{datum:r,index:i,data:t})})},Yue=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),data:ae({},n.data,t.data),labels:ae({},n.labels,t.labels),border:ae({},n.border,t.border),title:ae({},n.title,t.title)}},sT=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=Yue(e,r),a=Gue(e),o=t==="horizontal",l=lt({padding:e.borderPadding});return B({},e,{style:i,isHorizontal:o,colorScale:a,borderPadding:l})},Kue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Zue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},cT=function(e){var t=e.data,n=e.style&&e.style.data||{},r=lT(e);return t.map(function(i,a){var o=i.symbol||{},l=r[a].fontSize,s=o.size||n.size||l/2.5,c=e.symbolSpacer||Math.max(s,l);return oT(oT({},i),{},{size:s,symbolSpacer:c,fontSize:l,textSize:pa(i.name,r[a]),column:Kue(e,a),row:Zue(e,a)})})},uT=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Pf(t,"column"),a=Ze(i);return a.reduce(function(o,l,s){var c=i[l].map(function(u){return u.textSize.width+u.size+u.symbolSpacer+r});return o[s]=Math.max.apply(Math,iT(c)),o},[])},fT=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Pf(t,"row");return Ze(i).reduce(function(a,o,l){var s=i[o],c=s.map(function(u){return u.textSize.height+u.symbolSpacer+r});return a[l]=Math.max.apply(Math,iT(c)),a},[])},dT=function(e){var t=e.style&&e.style.title||{},n=pa(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Xue=function(e,t,n){var r=e.column,i=e.row;return{x:bs(r).reduce(function(a,o){return a+=n[o],a},0),y:bs(i).reduce(function(a,o){return a+=t[o],a},0)}},Jue=function(e,t){var n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){var r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},Que=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,i=e.style&&e.style.title||{},a=r.props&&r.props.style||{},o=Jue(t,n);return Array.isArray(a)?a.map(function(l){return ae({},l,i,o)}):ae({},a,i,o)},efe=function(e,t){var n=e.title,r=e.titleOrientation,i=e.centerTitle,a=e.borderPadding,o=t.height,l=t.width,s=Que(e),c=Array.isArray(s)?s[0].padding:s.padding,u=r==="top"||r==="bottom",f=r==="bottom"?"bottom":"top",d=r==="right"?"right":"left",h={x:i?l/2:a[f]+(c||0),y:i?o/2:a[d]+(c||0)},p=function(){return a[r]+(c||0)},g=u?h.x:p(),y=u?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-y:e.y+y,style:s,text:n}},tfe=function(e,t,n){var r=e.x,i=e.y,a=e.borderPadding,o=e.style,l=(t||0)+a.top+a.bottom,s=(n||0)+a.left+a.right;return{x:r,y:i,height:l,width:s,style:B({fill:"none"},o.border)}},hT=function(e,t){var n=St(e,t,"legend");e=B({},n,sT(n));var r=e,i=r.title,a=r.titleOrientation,o=cT(e),l=uT(e,o),s=fT(e,o),c=i?dT(e):{height:0,width:0};return{height:a==="left"||a==="right"?Math.max(ad(s),c.height):ad(s)+c.height,width:a==="left"||a==="right"?ad(l)+c.width:Math.max(ad(l),c.width)}},nfe=function(e,t){var n=St(e,t,"legend");e=B({},n,sT(n));var r=e,i=r.data,a=r.standalone,o=r.theme,l=r.padding,s=r.style,c=r.colorScale,u=r.gutter,f=r.rowGutter,d=r.borderPadding,h=r.title,p=r.titleOrientation,g=r.name,y=r.x,_=y===void 0?0:y,b=r.y,S=b===void 0?0:b,O=cT(e),w=uT(e,O),A=fT(e,O),T=lT(e),k=h?dT(e):{height:0,width:0},P={x:p==="left"?k.width:0,y:p==="top"?k.height:0},N={x:u&&typeof u=="object"&&u.left||0,y:f&&typeof f=="object"&&f.top||0},M=hT(e,t),j=M.height,D=M.width,I=tfe(e,j,D),W=efe(e,I),X={parent:{data:i,standalone:a,theme:o,padding:l,name:g,height:e.height,width:e.width,style:s.parent},all:{border:I,title:W}};return O.reduce(function(ne,re,Z){var R=c[Z%c.length],J=ae({},re.symbol,s.data,{fill:R}),U=ba(re.eventKey)?Z:re.eventKey,Y=Xue(re,A,w),G=S+d.top+re.symbolSpacer,ie=_+d.left+re.symbolSpacer,z={index:Z,data:i,datum:re,symbol:J.type||J.symbol||"circle",size:re.size,style:J,y:G+Y.y+P.y+N.y,x:ie+Y.x+P.x+N.x},se={datum:re,data:i,text:re.name,style:T[Z],y:z.y,x:z.x+re.symbolSpacer+re.size/2};return ne[U]={data:z,labels:se},ne},X)};function od(e){return ofe(e)||afe(e)||ife(e)||rfe()}function rfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
262
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vue(e,t){if(e){if(typeof e=="string")return Yp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yp(e,t)}}function Hue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uue(e){if(Array.isArray(e))return Yp(e)}function Yp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aT(Object(n),!0).forEach(function(r){que(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function que(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gue=function(e){var t=e.colorScale;return typeof t=="string"?tg(t):t||[]},lT=function(e){var t=e.data,n=e.style;return t.map(function(r,i){var a=ae({},r.labels,n.labels);return Xe(a,{datum:r,index:i,data:t})})},Yue=function(e,t){var n=e.style||{};t=t||{};var r={height:"100%",width:"100%"};return{parent:ae(n.parent,t.parent,r),data:ae({},n.data,t.data),labels:ae({},n.labels,t.labels),border:ae({},n.border,t.border),title:ae({},n.title,t.title)}},sT=function(e){var t=e.orientation,n=e.theme,r=n&&n.legend&&n.legend.style?n.legend.style:{},i=Yue(e,r),a=Gue(e),o=t==="horizontal",l=lt({padding:e.borderPadding});return B({},e,{style:i,isHorizontal:o,colorScale:a,borderPadding:l})},Kue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?t%n:Math.floor(t/n):r?t:0},Zue=function(e,t){var n=e.itemsPerRow,r=e.isHorizontal;return n?r?Math.floor(t/n):t%n:r?0:t},cT=function(e){var t=e.data,n=e.style&&e.style.data||{},r=lT(e);return t.map(function(i,a){var o=i.symbol||{},l=r[a].fontSize,s=o.size||n.size||l/2.5,c=e.symbolSpacer||Math.max(s,l);return oT(oT({},i),{},{size:s,symbolSpacer:c,fontSize:l,textSize:pa(i.name,r[a]),column:Kue(e,a),row:Zue(e,a)})})},uT=function(e,t){var n=e.gutter||{},r=typeof n=="object"?(n.left||0)+(n.right||0):n||0,i=Pf(t,"column"),a=Ze(i);return a.reduce(function(o,l,s){var c=i[l].map(function(u){return u.textSize.width+u.size+u.symbolSpacer+r});return o[s]=Math.max.apply(Math,iT(c)),o},[])},fT=function(e,t){var n=e.rowGutter||{},r=typeof n=="object"?(n.top||0)+(n.bottom||0):n||0,i=Pf(t,"row");return Ze(i).reduce(function(a,o,l){var s=i[o],c=s.map(function(u){return u.textSize.height+u.symbolSpacer+r});return a[l]=Math.max.apply(Math,iT(c)),a},[])},dT=function(e){var t=e.style&&e.style.title||{},n=pa(e.title,t),r=t.padding||0;return{height:n.height+2*r||0,width:n.width+2*r||0}},Xue=function(e,t,n){var r=e.column,i=e.row;return{x:bs(r).reduce(function(a,o){return a+=n[o],a},0),y:bs(i).reduce(function(a,o){return a+=t[o],a},0)}},Jue=function(e,t){var n={textAnchor:e==="right"?"end":"start",verticalAnchor:e==="bottom"?"end":"start"};if(t){var r=e==="top"||e==="bottom";return{textAnchor:r?"middle":n.textAnchor,verticalAnchor:r?n.verticalAnchor:"middle"}}return n},Que=function(e){var t=e.titleOrientation,n=e.centerTitle,r=e.titleComponent,i=e.style&&e.style.title||{},a=r.props&&r.props.style||{},o=Jue(t,n);return Array.isArray(a)?a.map(function(l){return ae({},l,i,o)}):ae({},a,i,o)},efe=function(e,t){var n=e.title,r=e.titleOrientation,i=e.centerTitle,a=e.borderPadding,o=t.height,l=t.width,s=Que(e),c=Array.isArray(s)?s[0].padding:s.padding,u=r==="top"||r==="bottom",f=r==="bottom"?"bottom":"top",d=r==="right"?"right":"left",h={x:i?l/2:a[f]+(c||0),y:i?o/2:a[d]+(c||0)},p=function(){return a[r]+(c||0)},g=u?h.x:p(),y=u?p():h.y;return{x:r==="right"?e.x+l-g:e.x+g,y:r==="bottom"?e.y+o-y:e.y+y,style:s,text:n}},tfe=function(e,t,n){var r=e.x,i=e.y,a=e.borderPadding,o=e.style,l=(t||0)+a.top+a.bottom,s=(n||0)+a.left+a.right;return{x:r,y:i,height:l,width:s,style:B({fill:"none"},o.border)}},hT=function(e,t){var n=St(e,t,"legend");e=B({},n,sT(n));var r=e,i=r.title,a=r.titleOrientation,o=cT(e),l=uT(e,o),s=fT(e,o),c=i?dT(e):{height:0,width:0};return{height:a==="left"||a==="right"?Math.max(ad(s),c.height):ad(s)+c.height,width:a==="left"||a==="right"?ad(l)+c.width:Math.max(ad(l),c.width)}},nfe=function(e,t){var n=St(e,t,"legend");e=B({},n,sT(n));var r=e,i=r.data,a=r.standalone,o=r.theme,l=r.padding,s=r.style,c=r.colorScale,u=r.gutter,f=r.rowGutter,d=r.borderPadding,h=r.title,p=r.titleOrientation,g=r.name,y=r.x,_=y===void 0?0:y,b=r.y,S=b===void 0?0:b,O=cT(e),w=uT(e,O),A=fT(e,O),T=lT(e),k=h?dT(e):{height:0,width:0},j={x:p==="left"?k.width:0,y:p==="top"?k.height:0},N={x:u&&typeof u=="object"&&u.left||0,y:f&&typeof f=="object"&&f.top||0},M=hT(e,t),E=M.height,I=M.width,D=tfe(e,E,I),W=efe(e,D),X={parent:{data:i,standalone:a,theme:o,padding:l,name:g,height:e.height,width:e.width,style:s.parent},all:{border:D,title:W}};return O.reduce(function(ne,re,Z){var R=c[Z%c.length],J=ae({},re.symbol,s.data,{fill:R}),U=ba(re.eventKey)?Z:re.eventKey,Y=Xue(re,A,w),G=S+d.top+re.symbolSpacer,ie=_+d.left+re.symbolSpacer,z={index:Z,data:i,datum:re,symbol:J.type||J.symbol||"circle",size:re.size,style:J,y:G+Y.y+j.y+N.y,x:ie+Y.x+j.x+N.x},se={datum:re,data:i,text:re.name,style:T[Z],y:z.y,x:z.x+re.symbolSpacer+re.size/2};return ne[U]={data:z,labels:se},ne},X)};function od(e){return ofe(e)||afe(e)||ife(e)||rfe()}function rfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
263
263
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ife(e,t){if(e){if(typeof e=="string")return Kp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kp(e,t)}}function afe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ofe(e){if(Array.isArray(e))return Kp(e)}function Kp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sfe(e,t,n){return t&&mT(e.prototype,t),n&&mT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zp(e,t)}function Zp(e,t){return Zp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Zp(e,t)}function ufe(e){var t=hfe();return function(){var r=ld(e),i;if(t){var a=ld(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ffe(this,i)}}function ffe(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dfe(e)}function dfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hfe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ld(e){return ld=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ld(e)}var Xp={orientation:"vertical",titleOrientation:"top",width:450,height:300,x:0,y:0},mfe=[{name:"Series 1"},{name:"Series 2"}],Wi=function(e){cfe(n,e);var t=ufe(n);function n(){return lfe(this,n),t.apply(this,arguments)}return sfe(n,[{key:"renderChildren",value:function(i){var a=this,o=i.dataComponent,l=i.labelComponent,s=i.title,c=this.dataKeys.map(function(g,y){if(g!=="all"){var _=a.getComponentProps(o,"data",y);return x.cloneElement(o,_)}}).filter(Boolean),u=this.dataKeys.map(function(g,y){if(g!=="all"){var _=a.getComponentProps(l,"labels",y);if(_.text!==void 0&&_.text!==null)return x.cloneElement(l,_)}}).filter(Boolean),f=this.getComponentProps(i.borderComponent,"border","all"),d=x.cloneElement(i.borderComponent,f);if(s){var h=this.getComponentProps(i.title,"title","all"),p=x.cloneElement(i.titleComponent,h);return[d].concat(od(c),[p],od(u))}return[d].concat(od(c),od(u))}},{key:"render",value:function(){var i=this.constructor.role,a=St(this.props,Xp,i),o=[this.renderChildren(a)];return a.standalone?this.renderContainer(a.containerComponent,o):x.cloneElement(a.groupComponent,{},o)}}]),n}(x.Component);Wi.displayName="VictoryLegend",Wi.role="legend",Wi.propTypes={borderComponent:m.element,borderPadding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),centerTitle:m.bool,colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,data:m.arrayOf(m.shape({name:m.string.isRequired,label:m.object,symbol:m.object})),dataComponent:m.element,eventKey:m.oneOfType([m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,gutter:m.oneOfType([m.number,m.shape({left:m.number,right:m.number})]),height:_e,itemsPerRow:_e,labelComponent:m.element,name:m.string,orientation:m.oneOf(["horizontal","vertical"]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),rowGutter:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number})]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),standalone:m.bool,style:m.shape({border:m.object,data:m.object,labels:m.object,parent:m.object,title:m.object}),symbolSpacer:m.number,theme:m.object,title:m.oneOfType([m.string,m.array]),titleComponent:m.element,titleOrientation:m.oneOf(["top","bottom","left","right"]),width:_e,x:_e,y:_e},Wi.defaultProps={borderComponent:x.createElement(pg,null),data:mfe,containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(rf,null),groupComponent:x.createElement("g",null),labelComponent:x.createElement(wt,null),standalone:!0,theme:Pr.grayscale,titleComponent:x.createElement(wt,null)},Wi.getBaseProps=function(e){return nfe(e,Xp)},Wi.getDimensions=function(e){return hT(e,Xp)},Wi.expectedComponents=["borderComponent","containerComponent","dataComponent","groupComponent","labelComponent","titleComponent"];const js=xa(Wi),gT=({allowWrap:e=!0,chartType:t="chart",colorScale:n,dx:r=0,dy:i=0,height:a,legendComponent:o,padding:l,patternScale:s,position:c=Bt.legend.position,theme:u,width:f,orientation:d=u.legend.orientation})=>{const h=o.props?o.props:{},p=e?pfe({chartType:t,dx:r,height:a,legendData:h.data,legendOrientation:h.legendOrientation?h.legendOrientation:d,legendPosition:c,legendProps:h,padding:l,theme:u,width:f}):void 0,g=ae({},o.props,{itemsPerRow:p}),y=vfe({chartType:t,dx:r,height:a,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendPosition:c,legendProps:g,padding:l,theme:u,width:f}),_=yfe({chartType:t,dy:i,height:a,legendData:g.data,legendOrientation:g.legendOrientation?g.legendOrientation:d,legendProps:g,legendPosition:c,padding:l,theme:u,width:f}),b=ae({},o.props,{colorScale:n,itemsPerRow:p,orientation:d,patternScale:s,standalone:!1,theme:u,x:y>0?y:0,y:_>0?_:0});return F.cloneElement(o,b)},Ri=({legendData:e,legendOrientation:t,legendProps:n,theme:r})=>e||n.data?js.getDimensions(Object.assign({data:e,orientation:t,theme:r},n)):{},gfe=({dx:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{left:c,right:u}=lt({padding:o}),f={height:t,width:s-c-u},d=Ri({legendData:r,legendOrientation:i,legendProps:a,theme:l});let h=0;switch(n){case"bottom-left":h=c+e;break;case"right":h=f.width+Bt.legend.margin+c+e;break;default:h=e;break}return s-h>d.width},pfe=({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{let c=r?r.length:0;for(let u=c;u>0;u--)if(gfe({dx:e,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:Object.assign(Object.assign({},a),{itemsPerRow:u}),padding:o,theme:l,width:s})){c=u;break}return c},vfe=e=>{var{chartType:t}=e,n=ze(e,["chartType"]);return t==="pie"?Sfe(n):_fe(n)},yfe=e=>{var{chartType:t}=e,n=ze(e,["chartType"]);switch(t){case"pie":return wfe(n);case"bullet":return bfe(n);default:return xfe(n)}},bfe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{left:c,right:u}=lt({padding:o}),f={height:t,width:s-c-u};switch(n){case"bottom":case"bottom-left":return f.height+Bt.legend.margin+e;case"right":{const d=Ri({legendData:r,legendOrientation:i,legendProps:a,theme:l}),h=p=>p&&p.length>0?17:0;return(f.height-d.height)/2+h(r)}default:return e}},_fe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:a,padding:o,theme:l,width:s})=>{const{top:c,bottom:u,left:f,right:d}=lt({padding:o}),h={height:Math.abs(t-(u+c)),width:Math.abs(s-(f+d))},p=Ri({legendData:n,legendOrientation:r,legendProps:a,theme:l});switch(i){case"bottom":return s>p.width?Math.round((s-p.width)/2)+e:e;case"bottom-left":return f+e;case"right":return h.width+Bt.legend.margin+f+e;default:return e}},xfe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const{top:c,bottom:u,left:f,right:d}=lt({padding:o}),h={height:Math.abs(t-(u+c)),width:Math.abs(s-(f+d))};switch(n){case"bottom":case"bottom-left":return h.height+Bt.legend.margin*2+c+e;case"right":{const p=Ri({legendData:r,legendOrientation:i,legendProps:a,theme:l}),g=h.height/2+c,y=_=>_&&_.length>0?2:0;return g-p.height/2+y(r)}default:return e}},Sfe=({dx:e=0,height:t,legendData:n,legendOrientation:r,legendPosition:i,legendProps:a,padding:o,theme:l,width:s})=>{const c=id({height:t,padding:o,width:s}),u=kr({height:t,width:s,padding:o}),f=Ri({legendData:n,legendOrientation:r,legendProps:a,theme:l});switch(i){case"bottom":return s>f.width?Math.round((s-f.width)/2)+e:e;case"right":return c.x+Bt.label.margin+e+u;default:return e}},wfe=({dy:e=0,height:t,legendPosition:n,legendData:r,legendOrientation:i,legendProps:a,padding:o,theme:l,width:s})=>{const c=id({height:t,padding:o,width:s}),u=kr({height:t,width:s,padding:o});switch(n){case"bottom":return c.y+Bt.legend.margin+u+e;case"right":{const f=Ri({legendData:r,legendOrientation:i,legendProps:a,theme:l}),d=h=>h&&h.length>0?2:0;return c.y-f.height/2+d(r)}default:return e}},On=(e,t,n)=>typeof t=="number"?t:typeof t=="object"&&Object.keys(t).length>0?t[e]||0:On(e,n,0),Ofe=[{d:"M 0 0 L 5 5 M 4.5 -0.5 L 5.5 0.5 M -0.5 4.5 L 0.5 5.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 5 L 5 0 M -0.5 0.5 L 0.5 -0.5 M 4.5 5.5 L 5.5 4.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 2 0 L 2 5 M 4 0 L 4 5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 2 L 5 2 M 0 4 L 5 4",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 1.5 L 2.5 1.5 L 2.5 0 M 2.5 5 L 2.5 3.5 L 5 3.5",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 0 L 5 10 L 10 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 3 L 8 3 L 8 8 L 3 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 5 5 m -4 0 a 4 4 0 1 1 8 0 a 4 4 0 1 1 -8 0",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 0 L 10 10 M 9 -1 L 11 1 M -1 9 L 1 11",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 10 L 10 0 M -1 1 L 1 -1 M 9 11 L 11 9",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 2 5 L 5 2 L 8 5 L 5 8 Z",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 3 0 L 3 10 M 8 0 L 8 10",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 10 3 L 5 3 L 5 0 M 5 10 L 5 7 L 0 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0},{d:"M 0 3 L 10 3 M 0 8 L 10 8",height:5,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",patternTransform:"scale(1.4 1.4)",strokeWidth:2,width:5,x:0,y:0},{d:"M 0 3 L 5 3 L 5 0 M 5 10 L 5 7 L 10 7",height:10,fill:"none",patternContentUnits:"userSpaceOnUse",patternUnits:"userSpaceOnUse",strokeWidth:2,width:10,x:0,y:0}],Cfe=()=>pu("pf-pattern"),pT=(e,t)=>`${e}:${t}`,Jp=({colorScale:e,offset:t=0,patternId:n,patternUnshiftIndex:r=0})=>{const i=[...Ofe];return r>0&&r<i.length&&i.unshift(i.splice(r,1)[0]),F.createElement(F.Fragment,{key:"defs"},F.createElement("defs",null,e.map((o,l)=>{const s=i[(l+t)%i.length],{d:c,fill:u,stroke:f=o,strokeWidth:d}=s,h=ze(s,["d","fill","stroke","strokeWidth"]),p=pT(n,l);return F.createElement("pattern",Object.assign({id:p,key:p},h),F.createElement("path",{d:c,stroke:f,strokeWidth:d,fill:u}))})))},Afe=(e,t)=>e.map((n,r)=>`url(#${pT(t,r)})`),Tfe=(e,t)=>{const n=[];return(e||t).forEach(i=>n.push(i)),n},kfe=(e,t)=>t?e.map((n,r)=>{const i=t[r%t.length];return Object.assign(Object.assign({},i&&{_fill:i}),n)}):e,Efe=({colorScale:e,patternId:t,patternScale:n})=>{if(n)return n;const r=Afe(e,t);return r&&r.length>0?r:void 0},Qp=({colorScale:e,hasPatterns:t,patternScale:n,themeColorScale:r})=>{const i=Tfe(e,r);let a=n,o=!n&&t!==void 0;const l=F.useMemo(()=>o?Cfe():void 0,[o]);if(o&&(a=Efe({colorScale:i,patternId:l,patternScale:n})),Array.isArray(t))for(let s=0;s<a.length;s++)s<t.length&&t[s]||(a[s]=null);else t===!1&&(a=void 0,o=!1);return{defaultColorScale:i,defaultPatternScale:a,isPatternDefs:o,patternId:l}},Pfe=({children:e,patternScale:t})=>F.Children.toArray(e).map((n,r)=>{if(F.isValidElement(n)){const i=ze(n.props,[]),a=i.style?Object.assign({},i.style):{};if(t){const l=t[r%t.length];a.data=Object.assign(Object.assign({},l&&{fill:l}),a.data)}return F.cloneElement(n,Object.assign(Object.assign(Object.assign({},t&&{patternScale:t}),i),{style:a}))}return n});var sd={exports:{}};sd.exports,function(e,t){var n=lr,r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a?n.Buffer:void 0,l=o?o.allocUnsafe:void 0;function s(c,u){if(u)return c.slice();var f=c.length,d=l?l(f):new c.constructor(f);return c.copy(d),d}e.exports=s}(sd,sd.exports);var jfe=sd.exports,vT=h5;function Mfe(e){var t=new e.constructor(e.byteLength);return new vT(t).set(new vT(e)),t}var Dfe=Mfe,yT=co,bT=yT?yT.prototype:void 0;bT&&bT.valueOf;var Ife=Dfe;function Lfe(e,t){var n=t?Ife(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var $fe=Lfe,Ffe=yp,Nfe=Zm,zfe=Fl;function Bfe(e){return typeof e.constructor=="function"&&!zfe(e)?Ffe(Nfe(e)):{}}var Wfe=Bfe,_T=Wl;_T&&_T.isMap;var xT=Wl;xT&&xT.isSet;var Rfe=Rl,Vfe=la;function Hfe(e,t,n){(n!==void 0&&!Vfe(e[t],n)||n===void 0&&!(t in e))&&Rfe(e,t,n)}var ST=Hfe;function Ufe(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var wT=Ufe,qfe=E1,Gfe=qc;function Yfe(e){return qfe(e,Gfe(e))}var Kfe=Yfe,OT=ST,Zfe=jfe,Xfe=$fe,Jfe=oA,Qfe=Wfe,CT=zl,AT=Nt,ede=yg,tde=Wc,nde=zc,rde=xn,ide=B5,ade=Vc,TT=wT,ode=Kfe;function lde(e,t,n,r,i,a,o){var l=TT(e,n),s=TT(t,n),c=o.get(s);if(c){OT(e,n,c);return}var u=a?a(l,s,n+"",e,t,o):void 0,f=u===void 0;if(f){var d=AT(s),h=!d&&tde(s),p=!d&&!h&&ade(s);u=s,d||h||p?AT(l)?u=l:ede(l)?u=Jfe(l):h?(f=!1,u=Zfe(s,!0)):p?(f=!1,u=Xfe(s,!0)):u=[]:ide(s)||CT(s)?(u=l,CT(l)?u=ode(l):(!rde(l)||nde(l))&&(u=Qfe(s))):f=!1}f&&(o.set(s,u),i(u,s,r,a,o),o.delete(s)),OT(e,n,u)}var sde=lde,cde=Bm,ude=ST,fde=$5,dde=sde,hde=xn,mde=qc,gde=wT;function kT(e,t,n,r,i){e!==t&&fde(t,function(a,o){if(i||(i=new cde),hde(a))dde(e,t,o,n,kT,r,i);else{var l=r?r(gde(e,o),a,o+"",e,t,i):void 0;l===void 0&&(l=a),ude(e,o,l)}},mde)}var pde=kT,vde=pde,yde=L1,bde=yde(function(e,t,n){vde(e,t,n)}),_de=bde;const ev=Ae(_de),xde={name:"--pf-chart-theme--blue--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--blue--ColorScale--100, #06c)"},Sde={name:"--pf-chart-theme--blue--ColorScale--200",value:"#8bc1f7",var:"var(--pf-chart-theme--blue--ColorScale--200, #8bc1f7)"},wde={name:"--pf-chart-theme--blue--ColorScale--300",value:"#002f5d",var:"var(--pf-chart-theme--blue--ColorScale--300, #002f5d)"},Ode={name:"--pf-chart-theme--blue--ColorScale--400",value:"#519de9",var:"var(--pf-chart-theme--blue--ColorScale--400, #519de9)"},Cde={name:"--pf-chart-theme--blue--ColorScale--500",value:"#004b95",var:"var(--pf-chart-theme--blue--ColorScale--500, #004b95)"},di=e=>{const{COLOR_SCALE:t}=e;return{area:{colorScale:t,style:{data:{fill:t[0]}}},axis:{colorScale:t},bar:{colorScale:t,style:{data:{fill:t[0]}}},boxplot:{colorScale:t},candlestick:{colorScale:t},chart:{colorScale:t},errorbar:{colorScale:t},group:{colorScale:t},legend:{colorScale:t},line:{colorScale:t,style:{data:{stroke:t[0]}}},pie:{colorScale:t},scatter:{colorScale:t},stack:{colorScale:t},voronoi:{colorScale:t}}},Ade=[xde.var,Sde.var,wde.var,Ode.var,Cde.var],ET=di({COLOR_SCALE:Ade}),Tde={name:"--pf-chart-theme--cyan--ColorScale--100",value:"#009596",var:"var(--pf-chart-theme--cyan--ColorScale--100, #009596)"},kde={name:"--pf-chart-theme--cyan--ColorScale--200",value:"#a2d9d9",var:"var(--pf-chart-theme--cyan--ColorScale--200, #a2d9d9)"},Ede={name:"--pf-chart-theme--cyan--ColorScale--300",value:"#003737",var:"var(--pf-chart-theme--cyan--ColorScale--300, #003737)"},Pde={name:"--pf-chart-theme--cyan--ColorScale--400",value:"#73c5c5",var:"var(--pf-chart-theme--cyan--ColorScale--400, #73c5c5)"},jde={name:"--pf-chart-theme--cyan--ColorScale--500",value:"#005f60",var:"var(--pf-chart-theme--cyan--ColorScale--500, #005f60)"},Mde=[Tde.var,kde.var,Ede.var,Pde.var,jde.var],Dde=di({COLOR_SCALE:Mde}),Ide={name:"--pf-chart-theme--gold--ColorScale--100",value:"#f4c145",var:"var(--pf-chart-theme--gold--ColorScale--100, #f4c145)"},Lde={name:"--pf-chart-theme--gold--ColorScale--200",value:"#f9e0a2",var:"var(--pf-chart-theme--gold--ColorScale--200, #f9e0a2)"},$de={name:"--pf-chart-theme--gold--ColorScale--300",value:"#c58c00",var:"var(--pf-chart-theme--gold--ColorScale--300, #c58c00)"},Fde={name:"--pf-chart-theme--gold--ColorScale--400",value:"#f6d173",var:"var(--pf-chart-theme--gold--ColorScale--400, #f6d173)"},Nde={name:"--pf-chart-theme--gold--ColorScale--500",value:"#f0ab00",var:"var(--pf-chart-theme--gold--ColorScale--500, #f0ab00)"},zde=[Ide.var,Lde.var,$de.var,Fde.var,Nde.var],Bde=di({COLOR_SCALE:zde}),Wde={name:"--pf-chart-theme--gray--ColorScale--100",value:"#b8bbbe",var:"var(--pf-chart-theme--gray--ColorScale--100, #b8bbbe)"},Rde={name:"--pf-chart-theme--gray--ColorScale--200",value:"#f0f0f0",var:"var(--pf-chart-theme--gray--ColorScale--200, #f0f0f0)"},Vde={name:"--pf-chart-theme--gray--ColorScale--300",value:"#6a6e73",var:"var(--pf-chart-theme--gray--ColorScale--300, #6a6e73)"},Hde={name:"--pf-chart-theme--gray--ColorScale--400",value:"#d2d2d2",var:"var(--pf-chart-theme--gray--ColorScale--400, #d2d2d2)"},Ude={name:"--pf-chart-theme--gray--ColorScale--500",value:"#8a8d90",var:"var(--pf-chart-theme--gray--ColorScale--500, #8a8d90)"},qde=[Wde.var,Rde.var,Vde.var,Hde.var,Ude.var],Gde=di({COLOR_SCALE:qde}),Yde={name:"--pf-chart-theme--green--ColorScale--100",value:"#4cb140",var:"var(--pf-chart-theme--green--ColorScale--100, #4cb140)"},Kde={name:"--pf-chart-theme--green--ColorScale--200",value:"#bde2b9",var:"var(--pf-chart-theme--green--ColorScale--200, #bde2b9)"},Zde={name:"--pf-chart-theme--green--ColorScale--300",value:"#23511e",var:"var(--pf-chart-theme--green--ColorScale--300, #23511e)"},Xde={name:"--pf-chart-theme--green--ColorScale--400",value:"#7cc674",var:"var(--pf-chart-theme--green--ColorScale--400, #7cc674)"},Jde={name:"--pf-chart-theme--green--ColorScale--500",value:"#38812f",var:"var(--pf-chart-theme--green--ColorScale--500, #38812f)"},Qde=[Yde.var,Kde.var,Zde.var,Xde.var,Jde.var],ehe=di({COLOR_SCALE:Qde}),the={name:"--pf-chart-theme--multi-color-ordered--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--100, #06c)"},nhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--200",value:"#4cb140",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--200, #4cb140)"},rhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--300",value:"#009596",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--300, #009596)"},ihe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--400",value:"#f4c145",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--400, #f4c145)"},ahe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--500, #ec7a08)"},ohe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--600",value:"#8bc1f7",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--600, #8bc1f7)"},lhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--700",value:"#23511e",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--700, #23511e)"},she={name:"--pf-chart-theme--multi-color-ordered--ColorScale--800",value:"#a2d9d9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--800, #a2d9d9)"},che={name:"--pf-chart-theme--multi-color-ordered--ColorScale--900",value:"#f9e0a2",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--900, #f9e0a2)"},uhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1000",value:"#8f4700",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1000, #8f4700)"},fhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1100",value:"#002f5d",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1100, #002f5d)"},dhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1200",value:"#bde2b9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1200, #bde2b9)"},hhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1300",value:"#003737",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1300, #003737)"},mhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1400",value:"#c58c00",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1400, #c58c00)"},ghe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1500",value:"#f4b678",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1500, #f4b678)"},phe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1600",value:"#519de9",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1600, #519de9)"},vhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1700",value:"#38812f",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1700, #38812f)"},yhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1800",value:"#73c5c5",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1800, #73c5c5)"},bhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--1900",value:"#f6d173",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--1900, #f6d173)"},_he={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2000",value:"#c46100",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2000, #c46100)"},xhe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2100",value:"#004b95",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2100, #004b95)"},She={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2200",value:"#7cc674",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2200, #7cc674)"},whe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2300",value:"#005f60",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2300, #005f60)"},Ohe={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2400",value:"#f0ab00",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2400, #f0ab00)"},Che={name:"--pf-chart-theme--multi-color-ordered--ColorScale--2500",value:"#ef9234",var:"var(--pf-chart-theme--multi-color-ordered--ColorScale--2500, #ef9234)"},Ahe=[the.var,nhe.var,rhe.var,ihe.var,ahe.var,ohe.var,lhe.var,she.var,che.var,uhe.var,fhe.var,dhe.var,hhe.var,mhe.var,ghe.var,phe.var,vhe.var,yhe.var,bhe.var,_he.var,xhe.var,She.var,whe.var,Ohe.var,Che.var],The=di({COLOR_SCALE:Ahe}),khe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--100",value:"#06c",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--100, #06c)"},Ehe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--200",value:"#f4c145",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--200, #f4c145)"},Phe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--300",value:"#4cb140",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--300, #4cb140)"},jhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--400",value:"#5752d1",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--400, #5752d1)"},Mhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--500",value:"#ec7a08",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--500, #ec7a08)"},Dhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--600",value:"#009596",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--600, #009596)"},Ihe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--700",value:"#b8bbbe",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--700, #b8bbbe)"},Lhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--800",value:"#8bc1f7",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--800, #8bc1f7)"},$he={name:"--pf-chart-theme--multi-color-unordered--ColorScale--900",value:"#c58c00",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--900, #c58c00)"},Fhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1000",value:"#bde2b9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1000, #bde2b9)"},Nhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1100",value:"#2a265f",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1100, #2a265f)"},zhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1200",value:"#f4b678",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1200, #f4b678)"},Bhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1300",value:"#003737",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1300, #003737)"},Whe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1400",value:"#f0f0f0",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1400, #f0f0f0)"},Rhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1500",value:"#002f5d",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1500, #002f5d)"},Vhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1600",value:"#f9e0a2",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1600, #f9e0a2)"},Hhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1700",value:"#23511e",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1700, #23511e)"},Uhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1800",value:"#b2b0ea",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1800, #b2b0ea)"},qhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--1900",value:"#8f4700",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--1900, #8f4700)"},Ghe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2000",value:"#a2d9d9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2000, #a2d9d9)"},Yhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2100",value:"#6a6e73",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2100, #6a6e73)"},Khe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2200",value:"#519de9",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2200, #519de9)"},Zhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2300",value:"#f0ab00",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2300, #f0ab00)"},Xhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2400",value:"#7cc674",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2400, #7cc674)"},Jhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2500",value:"#3c3d99",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2500, #3c3d99)"},Qhe={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2600",value:"#ef9234",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2600, #ef9234)"},eme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2700",value:"#005f60",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2700, #005f60)"},tme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2800",value:"#d2d2d2",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2800, #d2d2d2)"},nme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--2900",value:"#004b95",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--2900, #004b95)"},rme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3000",value:"#f6d173",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3000, #f6d173)"},ime={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3100",value:"#38812f",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3100, #38812f)"},ame={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3200",value:"#8481dd",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3200, #8481dd)"},ome={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3300",value:"#c46100",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3300, #c46100)"},lme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3400",value:"#73c5c5",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3400, #73c5c5)"},sme={name:"--pf-chart-theme--multi-color-unordered--ColorScale--3500",value:"#8a8d90",var:"var(--pf-chart-theme--multi-color-unordered--ColorScale--3500, #8a8d90)"},cme=[khe.var,Ehe.var,Phe.var,jhe.var,Mhe.var,Dhe.var,Ihe.var,Lhe.var,$he.var,Fhe.var,Nhe.var,zhe.var,Bhe.var,Whe.var,Rhe.var,Vhe.var,Hhe.var,Uhe.var,qhe.var,Ghe.var,Yhe.var,Khe.var,Zhe.var,Xhe.var,Jhe.var,Qhe.var,eme.var,tme.var,nme.var,rme.var,ime.var,ame.var,ome.var,lme.var,sme.var],ume=di({COLOR_SCALE:cme}),fme={name:"--pf-chart-theme--orange--ColorScale--100",value:"#ec7a08",var:"var(--pf-chart-theme--orange--ColorScale--100, #ec7a08)"},dme={name:"--pf-chart-theme--orange--ColorScale--200",value:"#f4b678",var:"var(--pf-chart-theme--orange--ColorScale--200, #f4b678)"},hme={name:"--pf-chart-theme--orange--ColorScale--300",value:"#8f4700",var:"var(--pf-chart-theme--orange--ColorScale--300, #8f4700)"},mme={name:"--pf-chart-theme--orange--ColorScale--400",value:"#ef9234",var:"var(--pf-chart-theme--orange--ColorScale--400, #ef9234)"},gme={name:"--pf-chart-theme--orange--ColorScale--500",value:"#c46100",var:"var(--pf-chart-theme--orange--ColorScale--500, #c46100)"},pme=[fme.var,dme.var,hme.var,mme.var,gme.var],vme=di({COLOR_SCALE:pme}),yme={name:"--pf-chart-theme--purple--ColorScale--100",value:"#5752d1",var:"var(--pf-chart-theme--purple--ColorScale--100, #5752d1)"},bme={name:"--pf-chart-theme--purple--ColorScale--200",value:"#b2b0ea",var:"var(--pf-chart-theme--purple--ColorScale--200, #b2b0ea)"},_me={name:"--pf-chart-theme--purple--ColorScale--300",value:"#2a265f",var:"var(--pf-chart-theme--purple--ColorScale--300, #2a265f)"},xme={name:"--pf-chart-theme--purple--ColorScale--400",value:"#8481dd",var:"var(--pf-chart-theme--purple--ColorScale--400, #8481dd)"},Sme={name:"--pf-chart-theme--purple--ColorScale--500",value:"#3c3d99",var:"var(--pf-chart-theme--purple--ColorScale--500, #3c3d99)"},wme=[yme.var,bme.var,_me.var,xme.var,Sme.var],Ome=di({COLOR_SCALE:wme}),tv=(e,t)=>ev(rn(e),t),Cme=e=>tv(e,fue),Ame=(e,t)=>{const n=rn(e);return t||(n.axis.padding=0,n.axis.style.axis.fill="none",n.axis.style.axis.stroke="none",n.axis.style.grid.fill="none",n.axis.style.grid.stroke="none",n.axis.style.ticks.fill="none",n.axis.style.ticks.stroke="none",n.axis.style.tickLabels.fill="none"),n},Tme=e=>tv(e,mue),kme=e=>{const t=tv(e,hue);return t.pie.colorScale=[t.pie.colorScale[0],...XA.pie.colorScale],t.legend.colorScale=[t.legend.colorScale[0],...XA.legend.colorScale],t},Eme=e=>{switch(e){case Lr.blue:return ET;case Lr.cyan:return Dde;case Lr.gold:return Bde;case Lr.gray:return Gde;case Lr.green:return ehe;case Lr.multi:case Lr.multiOrdered:return The;case Lr.multiUnordered:return ume;case Lr.orange:return vme;case Lr.purple:return Ome;default:return ET}},rn=e=>{const t=Object.assign({},JSON.parse(JSON.stringify(due)));return ev(t,Eme(e))},PT={name:"--pf-chart-color-black-500",value:"#6a6e73",var:"var(--pf-chart-color-black-500, #6a6e73)"},Pme=({offsetCursorDimensionX:e=!1,offsetCursorDimensionY:t=!1,theme:n})=>{const r=n&&n.tooltip?fe(n.tooltip.pointerLength):10;return{x:e?({center:o,flyoutWidth:l,width:s})=>{const c=l/2+r;return s>o.x+l+r?c:-c}:0,y:t?({center:o,flyoutHeight:l,width:s})=>{const c=l/2+r;return s>o.y+l+r?-c:c}:0}},jme=({horizontal:e=!0,theme:t})=>{const n=t&&t.tooltip?fe(t.tooltip.pointerLength):10;return e?({center:a,flyoutWidth:o,width:l})=>l>a.x+o+n?"left":"right":({center:a,flyoutHeight:o,height:l})=>l>a.y+o+n?"top":"bottom"},jT=e=>ev({borderPadding:0,gutter:0,orientation:"vertical",padding:0,rowGutter:0,style:{labels:{fill:Yn.label.fill,lineHeight:.275,padding:0},title:{fill:Yn.label.fill,padding:0}}},Object.assign({},e)),nv=({legendData:e,legendOrientation:t="vertical",legendProps:n,text:r="",theme:i})=>{const a=fe(r),o=Array.isArray(a)?a:[a];let l=0,s=0;o.map((y,_)=>{y&&(y.length>s&&(s=y.length),e&&e[_]&&e[_].name&&e[_].name.length>l&&(l=e[_].name.length))});let c=l+s;l<20&&(c+=2);const u="x",f=(y,_)=>{let b="";if(c===0)return b;const S=y?y.length:0,O=_?_.length:0,w=S+O;for(;b.length<c-w;)b+=u;return b},h=o.map((y,_)=>{const b=e&&e[_]&&e[_].name,S=b?f(e[_].name,y):"";return{name:`${b?e[_].name:""}${S}${y}`}}).map(y=>({name:y.name.replace(/ /g,u)})),p=Ri({legendData:h,legendOrientation:t,legendProps:n,theme:i});return{height:Ri({legendData:o.map(y=>({name:y})),legendOrientation:t,legendProps:n,theme:i}).height,width:p.width>0?p.width:0}},rv=({activePoints:e,colorScale:t,legendData:n,patternScale:r,text:i,textAsLegendData:a=!1,theme:o})=>{const l=fe(i),s=Array.isArray(l)?l:[l],c=[];if(n){let u=-1;for(let f=0;f<n.length;f++){const d=n[f];if(!(!(e&&e.find(p=>p.childName===d.childName))||d.symbol&&d.symbol.type==="eyeSlash"&&d.symbol.fill===PT.var)&&u++<s.length-1){const p=o&&o.legend&&o.legend.colorScale?o.legend.colorScale[f%o.legend.colorScale.length]:void 0,g=t?t[f%t.length]:p,y=r?r[f%r.length]:void 0;c.push({name:a?s[u]:d.name,symbol:Object.assign({fill:y||g},d.symbol)})}}}return c},MT=({activePoints:e,legendData:t,text:n})=>{const r=fe(n),i=Array.isArray(r)?r:[r],a=[];if(t){let o=-1;for(const l of t)!(e&&e.find(c=>c.childName===l.childName))||l.symbol&&l.symbol.type==="eyeSlash"&&l.symbol.fill===PT.var||o++<i.length-1&&a.push(i[o])}return a},Kn=e=>{var{className:t,themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=ze(e,["className","themeColor","themeVariant","theme"]);const o=Gp({className:t});return F.createElement(Ve,Object.assign({className:o,theme:i},a))};Kn.displayName="ChartContainer",Ft(Kn,Ve);const Cn={circle:(e,t,n)=>`M ${e}, ${t}
264
264
  m ${-n}, 0
265
265
  a ${n}, ${n} 0 1,0 ${n*2},0
@@ -325,9 +325,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
325
325
  z`},triangleUp:(e,t,n)=>{const r=n/2*Math.sqrt(3),i=e-n,a=e+n,o=t-r,l=t+n;return`M ${i}, ${l}
326
326
  L ${a}, ${l}
327
327
  L ${e}, ${o}
328
- z`}},Mme=e=>{const{x:t,y:n}=e,r=fe(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Cn.circle,square:Cn.square,diamond:Cn.diamond,eyeSlash:Cn.eyeSlash,triangleDown:Cn.triangleDown,triangleLeft:Cn.triangleLeft,triangleRight:Cn.triangleRight,triangleUp:Cn.triangleUp,plus:Cn.plus,minus:Cn.minus,star:Cn.star,dash:Cn.dash,threshold:Cn.threshold},o=fe(e.symbol,e);return(typeof i[o]=="function"?i[o]:i.square)(t,n,r)},DT=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:a,events:o,pathComponent:l=F.createElement(Li,null),role:s="presentation",shapeRendering:c="auto",tabIndex:u,transform:f}=e,d=ze(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:a,events:o,role:s,shapeRendering:c,tabIndex:u,transform:f},d);return F.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Mme(h),desc:fe(a,h)},o),{role:s,shapeRendering:c,style:Xe(d.style,h),tabIndex:fe(u,h),transform:f}))};DT.displayName="ChartPoint";var IT;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(IT||(IT={}));var cd;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.right="right"})(cd||(cd={}));var LT;(function(e){e.bottom="bottom",e.top="top"})(LT||(LT={}));const Vo=e=>{var{colorScale:t,containerComponent:n=F.createElement(Kn,null),dataComponent:r=F.createElement(DT,null),labelComponent:i=F.createElement(vn,null),name:a,patternScale:o,responsive:l=!0,style:s,themeColor:c,themeVariant:u,titleComponent:f=F.createElement(vn,null),theme:d=rn(c)}=e,h=ze(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","themeVariant","titleComponent","theme"]);const p=()=>{if(!o)return s;const b=s?Object.assign({},s):{};return b.data=Object.assign({fill:({index:S})=>{const O=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,w=t?t[S%t.length]:O,A=o[S%o.length];return A||w}},b.data),b},g=F.cloneElement(n,Object.assign({responsive:l,theme:d},n.props)),y=()=>F.cloneElement(i,Object.assign(Object.assign({},a&&{id:b=>`${a}-${i.type.displayName}-${b.index}`}),i.props)),_=()=>F.cloneElement(f,Object.assign(Object.assign({},a&&{id:()=>`${a}-${f.type.displayName}`}),f.props));return F.createElement(js,Object.assign({colorScale:t,containerComponent:g,dataComponent:r,labelComponent:y(),name:a,style:p(),theme:d,titleComponent:_()},h))};Vo.displayName="ChartLegend",Ft(Vo,js,{getBaseProps:!0}),Vo.getBaseProps=e=>{const t=rn(null);return js.getBaseProps(Object.assign({titleComponent:F.createElement(vn,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const iv=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:a,legendAllowWrap:o=!1,legendComponent:l=F.createElement(Vo,null),legendData:s,legendPosition:c=Bt.legend.position,name:u,padding:f,patternScale:d,showAxis:h=!0,themeColor:p,themeVariant:g,theme:y=Ame(p,h),containerComponent:_=F.createElement(Kn,null),legendOrientation:b=y.legend.orientation,height:S=y.chart.height,width:O=y.chart.width}=e,w=ze(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","padding","patternScale","showAxis","themeColor","themeVariant","theme","containerComponent","legendOrientation","height","width"]);const A={bottom:On("bottom",f,y.chart.padding),left:On("left",f,y.chart.padding),right:On("right",f,y.chart.padding),top:On("top",f,y.chart.padding)},{defaultColorScale:T,defaultPatternScale:k,isPatternDefs:P,patternId:N}=Qp({colorScale:i,patternScale:d,hasPatterns:a,themeColorScale:y.chart.colorScale});let M;_.props.labelComponent&&_.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(M=F.cloneElement(_.props.labelComponent,Object.assign(Object.assign({theme:y},k&&{patternScale:k}),_.props.labelComponent.props)));const j=F.cloneElement(_,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:y},_.props),{className:Gp({className:_.props.className})}),M&&{labelComponent:M})),D=F.cloneElement(l,Object.assign(Object.assign(Object.assign({data:s},u&&{name:`${u}-${l.type.displayName}`}),{orientation:b,theme:y}),l.props)),I=()=>{if(!D.props.data)return null;let X=0,ne=0,re=0,Z=D.props.title?10:0;return F.Children.toArray(r).map(R=>{R.type.role==="axis"&&R.props.label&&!R.props.dependentAxis&&(re=Lue({text:R.props.label,theme:y}).height+10,Z=0)}),c===cd.bottom?ne+=re+Z:c===cd.bottomLeft&&(ne+=re+Z,X=-10),h||(ne-=a1.value),gT(Object.assign({allowWrap:o,chartType:"chart",colorScale:i,dx:X,dy:ne,height:S,legendComponent:D,padding:A,position:c,theme:y,width:O},k&&{patternScale:k}))},W=()=>F.Children.toArray(r).map((X,ne)=>{if(F.isValidElement(X)){const re=ze(X.props,[]);return F.cloneElement(X,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},k&&{patternScale:k}),u&&typeof X.name!==void 0&&{name:`${u}-${X.type.displayName}-${ne}`}),{theme:y}),re),X.type.displayName==="ChartPie"&&{data:kfe(re.data,k)}))}return X});return F.createElement(zf,Object.assign({colorScale:i,containerComponent:j,height:S,name:u,padding:A,theme:y,width:O},w),W(),I(),P&&Jp({patternId:N,colorScale:T}))};iv.displayName="Chart",Ft(iv,zf);var Dme=function(e,t){var n=Gt(e);n.length<2&&(n=[]);var r=function(i){var a=BS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,o=t[i].domain(),l=dn(o),s=Nn(o),c=a;return l<0&&s<=0?c=s:l>=0&&s>0&&(c=l),Fn(o)?new Date(c):c};return n.map(function(i){var a=i._y1!==void 0?i._y1:i._y,o=i._y0!==void 0?i._y0:r("y"),l=i._x1!==void 0?i._x1:i._x,s=i._x0!==void 0?i._x0:r("x");return B({},i,{_y0:o,_y1:a,_x0:s,_x1:l})})},Ime=function(e){var t=e.polar,n=bu(e,"area"),r=is(e.style,n),i={x:xt(e,"x"),y:xt(e,"y")},a={x:Lg(e,"x"),y:Lg(e,"y")},o={x:Wn(e,"x").domain(a.x).range(e.horizontal?i.y:i.x),y:Wn(e,"y").domain(a.y).range(e.horizontal?i.x:i.y)},l=t?e.origin||as(e):void 0,s=Dme(e,o);return{style:r,data:s,scale:o,domain:a,origin:l}},Lme=function(e,t){var n=St(e,t,"area");e=B({},n,Ime(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,c=r.horizontal,u=r.interpolation,f=r.origin,d=r.padding,h=r.polar,p=r.scale,g=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,width:S,height:s,scale:p,data:i,domain:a,standalone:y,theme:b,polar:h,origin:f,padding:d,name:w,horizontal:c},all:{data:{horizontal:c,polar:h,origin:f,scale:p,data:i,interpolation:u,groupComponent:l,style:A?{}:_.data,disableInlineStyles:A}}};return i.reduce(function(k,P,N){var M=Vu(e,P,N);if(M!=null||O&&(o||g)){var j=ba(P.eventKey)?N:P.eventKey;k[j]={labels:Q0(e,N)}}return k},T)};function $T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$T(Object(n),!0).forEach(function(r){$me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var av=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},FT=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},ov=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},lv=function(e){return function(t){return e.y(t._y0)}},Fme=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},Nme=function(e){var t=e.horizontal,n=e.scale,r=Tf(e);return t?bf().defined(av).curve(r).x0(lv(n)).x1(ov(n)).y(FT(n)):bf().defined(av).curve(r).x(FT(n)).y1(ov(n)).y0(lv(n))},zme=function(e){var t=e.polar,n=e.scale,r=Tf(e);return t?qg().defined(av).curve(r).angle(Fme(n)).outerRadius(ov(n)).innerRadius(lv(n)):Nme(e)},Bme=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({fill:"black"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},sv=function(e){e=Bme(e);var t=e,n=t.ariaLabel,r=t.role,i=t.shapeRendering,a=t.className,o=t.polar,l=t.origin,s=t.data,c=t.pathComponent,u=t.events,f=t.groupComponent,d=t.clipPath,h=t.id,p=t.style,g=t.desc,y=t.tabIndex,_=ur(e),b=o&&l?"translate(".concat(l.x,", ").concat(l.y,")"):void 0,S=e.transform||b,O=p.stroke&&p.stroke!=="none"&&p.stroke!=="transparent",w=zme(e),A=O&&xC(e),T=p.stroke?"none":p.fill,k=ud(ud({"aria-label":n,className:a,role:r,shapeRendering:i,transform:S},u),{},{clipPath:d,tabIndex:y}),P=x.cloneElement(c,B({key:"".concat(h,"-area"),style:B({},p,{stroke:T}),d:w(s),desc:g,tabIndex:y},k,_)),N=O?x.cloneElement(c,B({key:"".concat(h,"-area-stroke"),style:B({},p,{fill:"none"}),d:A(s)},k)):null;return O?x.cloneElement(f,_,[P,N]):P};sv.propTypes=ud(ud({},Ot.primitiveProps),{},{groupComponent:m.element,interpolation:m.oneOfType([m.string,m.func]),pathComponent:m.element}),sv.defaultProps={groupComponent:x.createElement("g",null),pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function NT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NT(Object(n),!0).forEach(function(r){Wme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vme(e,t,n){return t&&zT(e.prototype,t),n&&zT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uv(e,t)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uv(e,t)}function Ume(e){var t=Yme();return function(){var r=fd(e),i;if(t){var a=fd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qme(this,i)}}function qme(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gme(e)}function Gme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}var BT={width:450,height:300,padding:50,interpolation:"linear"},Kme={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},An=function(e){Hme(n,e);var t=Ume(n);function n(){return Rme(this,n),t.apply(this,arguments)}return Vme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,BT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);An.animationWhitelist=["data","domain","height","padding","style","width"],An.propTypes=cv(cv(cv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:VS(m.string,"Use `labels` instead for individual data labels")}),An.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(sv,null),groupComponent:x.createElement(ya,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},An.displayName="VictoryArea",An.role="area",An.continuous=!0,An.defaultTransitions=xO(),An.defaultPolarTransitions=SO(),An.getDomain=Lg,An.getData=Gt,An.getBaseProps=function(e){return Lme(e,BT)},An.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var WT=xa(An,Kme),RT;(function(e){e.ascending="ascending",e.descending="descending"})(RT||(RT={}));const fv=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=ze(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(WT,Object.assign({containerComponent:o,theme:i},a))};fv.displayName="ChartArea",Ft(fv,WT);const dd=e=>{var{axisLabelComponent:t=F.createElement(vn,null),containerComponent:n=F.createElement(Kn,null),name:r,showGrid:i=!1,themeColor:a,themeVariant:o,tickLabelComponent:l=F.createElement(vn,null),theme:s=rn(a)}=e,c=ze(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","themeVariant","tickLabelComponent","theme"]);const u=F.cloneElement(n,Object.assign({theme:s},n.props)),f=()=>F.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),d=()=>F.cloneElement(l,Object.assign(Object.assign({},r&&{id:h=>`${r}-${l.type.displayName}-${h.index}`}),l.props));return F.createElement(As,Object.assign({axisLabelComponent:f(),containerComponent:u,name:r,theme:i?Cme(a):s,tickLabelComponent:d()},c))};dd.displayName="ChartAxis",Ft(dd,As);function dv(e){return Qme(e)||Jme(e)||Xme(e)||Zme()}function Zme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xme(e,t){if(e){if(typeof e=="string")return hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hv(e,t)}}function Jme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qme(e){if(Array.isArray(e))return hv(e)}function hv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var e0e=function(e,t){return t.bubbleProperty?"circle":e.symbol||t.symbol},t0e=function(e,t){var n=t.data,r=t.z,i=t.maxBubbleSize,a=t.minBubbleSize,o=n.map(function(_){return _[r]}),l=Math.min.apply(Math,dv(o)),s=Math.max.apply(Math,dv(o)),c=function(){var _=Math.min.apply(Math,dv(vu(lt(t))));return Math.max(_,5)},u=i||c(),f=a||u*.1;if(s===l)return Math.max(f,1);var d=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(f,2),p=(e[r]-l)/(s-l)*d,g=Math.max(p,h),y=Math.sqrt(g/Math.PI);return Math.max(y,1)},n0e=function(e,t){var n=t.size,r=t.z;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?t0e(e,t):Math.max(n||0,1)},r0e=function(e){var t=bu(e,"scatter"),n=is(e.style,t),r={x:xt(e,"x"),y:xt(e,"y")},i={x:Sa(e,"x"),y:Sa(e,"y")},a={x:Wn(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:Wn(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},o=e.polar?e.origin||as(e):void 0,l=e.bubbleProperty||"z",s=Gt(e);return s=CQ(s,i),{domain:i,data:s,scale:a,style:n,origin:o,z:l}},i0e=function(e,t){var n=St(e,t,"scatter");e=B({},n,r0e(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.height,s=r.origin,c=r.padding,u=r.polar,f=r.scale,d=r.name,h=r.sharedEvents,p=r.standalone,g=r.style,y=r.theme,_=r.width,b=r.labels,S=r.horizontal,O=r.disableInlineStyles,w={parent:{style:g.parent,scale:f,domain:a,data:i,height:l,width:_,standalone:p,theme:y,origin:s,polar:u,padding:c,name:d,horizontal:S}};return i.reduce(function(A,T,k){var P=ba(T.eventKey)?k:T.eventKey,N=Oo(e,T),M=N.x,j=N.y,D={x:M,y:j,datum:T,data:i,index:k,scale:f,polar:u,origin:s,horizontal:S,size:n0e(T,e),symbol:e0e(T,e),style:O?{}:g.data,disableInlineStyles:O};A[P]={data:D};var I=Vu(e,T,k);return(I!=null||b&&(o||h))&&(A[P].labels=Q0(e,k)),A},w)};function VT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(n),!0).forEach(function(r){a0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l0e(e,t,n){return t&&HT(e.prototype,t),n&&HT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gv(e,t)}function gv(e,t){return gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gv(e,t)}function c0e(e){var t=d0e();return function(){var r=hd(e),i;if(t){var a=hd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return u0e(this,i)}}function u0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f0e(e)}function f0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hd(e)}var UT={width:450,height:300,padding:50,size:3,symbol:"circle"},hr=function(e){s0e(n,e);var t=c0e(n);function n(){return o0e(this,n),t.apply(this,arguments)}return l0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=md.animationWhitelist,a=md.role,o=St(this.props,UT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);hr.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],hr.displayName="VictoryScatter",hr.role="scatter",hr.defaultTransitions=UQ(),hr.propTypes=mv(mv(mv({},Ot.baseProps),Ot.dataProps),{},{bubbleProperty:m.string,maxBubbleSize:_e,minBubbleSize:_e,size:m.oneOfType([_e,m.func]),symbol:m.oneOfType([m.oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),m.func])}),hr.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(rf,null),labelComponent:x.createElement(wt,null),groupComponent:x.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},hr.getDomain=Sa,hr.getData=Gt,hr.getBaseProps=function(e){return i0e(e,UT)},hr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var md=xa(hr),qT;(function(e){e.ascending="ascending",e.descending="descending"})(qT||(qT={}));const gd=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n),size:a=({active:s})=>s?QA.activeSize:QA.size}=e,o=ze(e,["containerComponent","themeColor","themeVariant","theme","size"]);const l=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(md,Object.assign({containerComponent:l,size:a,theme:i},o))};gd.displayName="ChartScatter",Ft(gd,md);function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){h0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m0e=function(e){var t=e.slice,n=e.radius,r=e.innerRadius,i=e.cornerRadius;if(Oe(e.pathFunction))return e.pathFunction(t);var a=st(e.padAngle),o=st(e.sliceStartAngle),l=st(e.sliceEndAngle),s=Wg().cornerRadius(i).outerRadius(n).innerRadius(r||0);return s(ae({startAngle:o,endAngle:l,padAngle:a},t))},g0e=function(e){var t=Xe(e.style,e),n=fe(e.radius,B({},e,{style:t})),r=fe(e.innerRadius,B({},e,{style:t,radius:n})),i=fe(e.ariaLabel,e),a=fe(e.id,e),o=fe(e.cornerRadius,e),l=fe(e.padAngle,e),s=fe(e.sliceStartAngle,e),c=fe(e.sliceEndAngle,e),u=fe(e.tabIndex,e);return B({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:a,cornerRadius:o,padAngle:l,sliceStartAngle:s,sliceEndAngle:c,tabIndex:u})},pv=function(e){e=g0e(e);var t=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return x.cloneElement(e.pathComponent,pd(pd({},e.events),{},{"aria-label":e.ariaLabel,d:m0e(e),style:e.style,transform:e.transform||t,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};pv.propTypes=pd(pd({},Ot.primitiveProps),{},{cornerRadius:m.oneOfType([m.number,m.func]),datum:m.object,innerRadius:m.oneOfType([m.number,m.func]),padAngle:m.oneOfType([m.number,m.func]),pathComponent:m.element,pathFunction:m.func,radius:m.oneOfType([m.number,m.func]),slice:m.object,sliceEndAngle:m.oneOfType([m.number,m.func]),sliceStartAngle:m.oneOfType([m.number,m.func])}),pv.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};const p0e=pv;var v0e=function(e){return e==null||Oe(e)?e:"".concat(e)},y0e=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},b0e=function(e,t){return typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2},_0e=function(e,t){var n=e.width,r=e.height,i=Qe(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},x0e=function(e,t){var n=Oe(e.padAngle)?0:e.padAngle,r=IO().sort(null).startAngle(st(e.startAngle)).endAngle(st(e.endAngle)).padAngle(st(n)).value(function(i){return i._y});return r(t)},S0e=function(e){var t=e.colorScale,n=bu(e,"pie"),r=is(e.style,n),i=Array.isArray(t)?t:tg(t),a=lt(e),o=b0e(e,a),l=_0e(e,a),s=Gt(e),c=x0e(e,s);return B({},e,{style:r,colors:i,padding:a,defaultRadius:o,data:s,slices:c,origin:l})},w0e=function(e,t){var n=t.style,r=t.colors,i=y0e(n,r,e);return B({fill:i},n.data)},O0e=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Oe(e.labels)?e.labels:t.xName||t._x,v0e(r)},C0e=function(e,t,n){var r=n&&n.padding||0,i=t||e+r;return Wg().outerRadius(i).innerRadius(i)},A0e=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=B({},t,r);return e.centroid(i)},T0e=function(e,t){return t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"},k0e=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},E0e=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},P0e=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=Zr((e.startAngle+e.endAngle)/2):r=Zr(t==="startAngle"?e.startAngle:e.endAngle);var i=r<0?360-r:r;return i%360},j0e=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},M0e=function(e,t,n){var r=t.index,i=t.datum,a=t.data,o=t.slice,l=t.labelComponent,s=t.theme,c=n.style,u=n.defaultRadius,f=n.origin,d=n.width,h=n.height,p=fe(n.labelRadius,B({text:e},t)),g=fe(n.labelPosition,B({text:e},t))||"centroid",y=fe(n.labelPlacement,B({text:e},t))||"vertical",_=B({padding:0},c.labels),b=Xe(_,B({labelRadius:p,text:e},t)),S=C0e(u,p,b),O=A0e(S,o,g),w=P0e(o,g,_),A=j0e(w,y),T=T0e(w,y),k=_.textAnchor||k0e(T),P=_.verticalAnchor||E0e(T),N={width:d,height:h,index:r,datum:i,data:a,slice:o,orientation:T,text:e,style:_,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:k,verticalAnchor:P,angle:A};if(!yu(l))return N;var M=s&&s.tooltip||{};return ae({},N,wo(M,["style"]))},D0e=function(e,t){e=St(e,t,"pie");var n=S0e(e),r=n.slices,i=n.style,a=n.data,o=n.origin,l=n.defaultRadius,s=n.labels,c=n.events,u=n.sharedEvents,f=n.height,d=n.width,h=n.standalone,p=n.name,g=n.innerRadius,y=n.cornerRadius,_=n.padAngle,b=n.disableInlineStyles,S=e.radius||l,O={parent:{standalone:h,height:f,width:d,slices:r,name:p,style:i.parent}};return r.reduce(function(w,A,T){var k=ae({},a[T],{startAngle:Zr(A.startAngle),endAngle:Zr(A.endAngle),padAngle:Zr(A.padAngle)}),P=ba(k.eventKey)?T:k.eventKey,N={index:T,slice:A,datum:k,data:a,origin:o,innerRadius:g,radius:S,cornerRadius:y,padAngle:_,style:b?{}:w0e(T,n),disableInlineStyles:b};w[P]={data:N};var M=O0e(e,k,T);if(M!=null||s&&(c||u)){var j=fe(M,N);w[P].labels=M0e(j,B({},e,N),n)}return w},O)};function I0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L0e(e,t,n){return t&&YT(e.prototype,t),n&&YT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vv(e,t)}function vv(e,t){return vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vv(e,t)}function F0e(e){var t=B0e();return function(){var r=vd(e),i;if(t){var a=vd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return N0e(this,i)}}function N0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z0e(e)}function z0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vd(e){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vd(e)}var KT={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},$r=function(e){$0e(n,e);var t=F0e(n);function n(){return I0e(this,n),t.apply(this,arguments)}return L0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,KT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);$r.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],$r.displayName="VictoryPie",$r.role="pie",$r.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},$r.propTypes={animate:m.oneOfType([m.bool,m.object]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,dataComponent:m.element,disableInlineStyes:m.bool,endAngle:m.number,eventKey:m.oneOfType([m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,innerRadius:m.oneOfType([_e,m.func]),labelComponent:m.element,labelPlacement:m.oneOfType([m.func,m.oneOf(["parallel","perpendicular","vertical"])]),labelPosition:m.oneOfType([m.func,m.oneOf(["startAngle","centroid","endAngle"])]),labelRadius:m.oneOfType([_e,m.func]),labels:m.oneOfType([m.func,m.array]),name:m.string,origin:m.shape({x:_e,y:_e}),padAngle:m.oneOfType([_e,m.func]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),radius:m.oneOfType([_e,m.func]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),sortKey:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)]),sortOrder:m.oneOf(["ascending","descending"]),standalone:m.bool,startAngle:m.number,style:m.shape({parent:m.object,data:m.object,labels:m.object}),theme:m.object,width:_e,x:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)]),y:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)])},$r.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:x.createElement(p0e,null),labelComponent:x.createElement(wt,null),containerComponent:x.createElement(Ve,null),groupComponent:x.createElement("g",null),sortOrder:"ascending",theme:Pr.grayscale},$r.getBaseProps=function(e){return D0e(e,KT)},$r.getData=Gt,$r.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const yd=xa($r);var ZT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(ZT||(ZT={}));var XT;(function(e){e.bottom="bottom",e.right="right"})(XT||(XT={}));var JT;(function(e){e.ascending="ascending",e.descending="descending"})(JT||(JT={}));const yv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:a=!1,containerComponent:o=F.createElement(Kn,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:c=F.createElement(Vo,null),legendData:u,legendPosition:f=Bt.legend.position,name:d,patternScale:h,patternUnshiftIndex:p,padding:g,radius:y,standalone:_=!0,style:b,themeColor:S,themeVariant:O,theme:w=rn(S),labelComponent:A=t?F.createElement(Ps,{constrainToVisibleArea:a,theme:w}):void 0,legendOrientation:T=w.legend.orientation,height:k=w.pie.height,width:P=w.pie.width}=e,N=ze(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","themeVariant","theme","labelComponent","legendOrientation","height","width"]);const M={bottom:On("bottom",g,w.pie.padding),left:On("left",g,w.pie.padding),right:On("right",g,w.pie.padding),top:On("top",g,w.pie.padding)},{defaultColorScale:j,defaultPatternScale:D,isPatternDefs:I,patternId:W}=Qp({colorScale:i,hasPatterns:l,patternScale:h,themeColorScale:w.pie.colorScale}),ne=y||(()=>{const Y=kr({height:k,width:P,padding:M});return Y>-1?Y:void 0})(),re=()=>{if(!D)return b;const Y=b?Object.assign({},b):{};return Y.data=Object.assign({fill:({slice:G})=>{const ie=D[G.index%D.length];return ie||j[G.index%j.length]}},Y.data),Y},Z=F.createElement(yd,Object.assign({colorScale:i,height:k,key:"pf-chart-pie",labelComponent:A,name:d,padding:g,radius:ne,standalone:!1,style:re(),theme:w,width:P},N)),R=F.cloneElement(c,Object.assign(Object.assign(Object.assign({colorScale:i,data:u},d&&{name:`${d}-${c.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:T,theme:w}),c.props)),J=()=>R.props.data?gT(Object.assign({allowWrap:s,chartType:"pie",height:k,legendComponent:R,padding:M,position:f,theme:w,width:P},D&&{patternScale:D})):null,U=_?F.cloneElement(o,Object.assign({desc:n,height:k,title:r,width:P,theme:w},o.props),[Z,J(),I&&Jp({patternId:W,colorScale:j,patternUnshiftIndex:p})]):null;return _?F.createElement(F.Fragment,null,U):F.createElement(F.Fragment,null,Z,J(),I&&Jp({patternId:W,colorScale:j,patternUnshiftIndex:p}))};yv.displayName="ChartPie",Ft(yv,yd);var QT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(QT||(QT={}));var ek;(function(e){e.ascending="ascending",e.descending="descending"})(ek||(ek={}));var bv;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(bv||(bv={}));const bd=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:a=F.createElement(Kn,null),innerRadius:o,legendAllowWrap:l,legendPosition:s=Bt.legend.position,name:c,padAngle:u,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:y=Es.label.subTitlePosition,themeColor:_,themeVariant:b,title:S,titleComponent:O=F.createElement(vn,null),theme:w=Tme(_),height:A=w.pie.height,width:T=w.pie.width}=e,k=ze(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendAllowWrap","legendPosition","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","themeVariant","title","titleComponent","theme","height","width"]);const P={bottom:On("bottom",f,w.pie.padding),left:On("left",f,w.pie.padding),right:On("right",f,w.pie.padding),top:On("top",f,w.pie.padding)},N=d||kr({height:A,width:T,padding:P}),M=o||N-9,j=p&&y===bv.center,D=()=>!g&&j?X({styles:[Es.label.title,Es.label.subTitle],titles:[S,p]}):F.createElement(F.Fragment,{key:"pf-chart-donut-titles"},X({titles:S,dy:j?-8:0}),W({textComponent:g,dy:j?15:0})),I=({datum:Z})=>Z._y>0?w.pie.padAngle:0,W=({dy:Z=0,textComponent:R=F.createElement(vn,null)})=>{if(!p)return null;const J=R.props?R.props:{};return F.cloneElement(R,Object.assign(Object.assign(Object.assign({},c&&{id:`${c}-${R.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:Es.label.subTitle,text:p,textAnchor:y==="right"?"start":"middle",verticalAnchor:"middle",x:nT({height:A,labelPosition:y,legendPosition:s,padding:P,width:T}),y:rT({dy:Z,height:A,labelPosition:y,padding:P,width:T})}),J))},X=({dy:Z=0,styles:R=Es.label.title,titles:J=S})=>{if(!J)return null;const U=O?O.props:{};return F.cloneElement(O,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(J)&&{capHeight:i}),c&&{id:`${c}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:R,text:J,textAnchor:"middle",verticalAnchor:"middle",x:nT({height:A,labelPosition:"center",legendPosition:s,padding:P,width:T}),y:rT({dy:Z,height:A,labelPosition:"center",padding:P,width:T})}),U))},ne=F.createElement(yv,Object.assign({allowTooltip:t,height:A,innerRadius:M>0?M:0,key:"pf-chart-donut-pie",legendAllowWrap:l,legendPosition:s,name:c,padAngle:u!==void 0?u:I,padding:f,radius:N>0?N:0,standalone:!1,theme:w,width:T},k)),re=F.cloneElement(a,Object.assign({desc:n,height:A,title:r,width:T,theme:w},a.props),[ne,D()]);return h?F.createElement(F.Fragment,null,re):F.createElement(F.Fragment,null,ne,D())};bd.displayName="ChartDonut",Ft(bd,yd);var tk;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(tk||(tk={}));var nk;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(nk||(nk={}));var rk;(function(e){e.bottom="bottom",e.right="right"})(rk||(rk={}));var ik;(function(e){e.ascending="ascending",e.descending="descending"})(ik||(ik={}));var ak;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(ak||(ak={}));const _v=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:a=F.createElement(Kn,null),data:o,invert:l=!1,isStatic:s=!0,legendPosition:c=Bt.legend.position,padding:u,standalone:f=!0,themeColor:d,themeVariant:h,thresholds:p,x:g,y,theme:_=kme(d),height:b=_.pie.height,width:S=_.pie.width}=e,O=ze(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","padding","standalone","themeColor","themeVariant","thresholds","x","y","theme","height","width"]);const w=()=>{const M=A(),j=[{x:M[0]._x,y:M[0]._y||0}];return s&&j.push({y:M[0]._x?Math.abs(100-M[0]._y):100}),j},A=()=>{const M=[Object.assign({},o)];return kg(M,Object.assign({x:g,y},O),["x","y"]).sort((j,D)=>j._y-D._y)},T=()=>{const M=[];if(p){const j=bo(p,"value",l?"desc":"asc"),D=JA.thresholds.colorScale.length;for(let I=0;I<j.length;I++)M.push({color:j[I].color?j[I].color:JA.thresholds.colorScale[I%D],value:j[I].value})}return M},k=()=>{const M=Object.assign({},_),j=A();if(j){const D=T(),I=W=>{M.pie.colorScale instanceof Array?M.pie.colorScale[0]=D[W].color:M.pie.colorScale=D[W].color,M.legend.colorScale instanceof Array?M.legend.colorScale[0]=D[W].color:M.legend.colorScale=D[W].color};for(let W=0;W<D.length;W++)l?j[0]._y<=D[W].value&&I(W):j[0]._y>=D[W].value&&I(W)}return M},P=F.createElement(bd,Object.assign({allowTooltip:t,colorScale:i,data:w(),height:b,key:"pf-chart-donut-utilization",legendPosition:c,padding:u,standalone:!1,theme:k(),width:S},O)),N=F.cloneElement(a,Object.assign({desc:n,height:b,title:r,width:S,theme:_},a.props),[P]);return f?F.createElement(F.Fragment,null,N):F.createElement(F.Fragment,null,P)};_v.displayName="ChartDonutUtilization",Ft(_v,yd);const xv=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=F.createElement(vn,null),style:a,text:o,textAnchor:l="end",valueLabelComponent:s=F.createElement(vn,null),x:c,y:u}=e,f=ze(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const d=_=>{const b=S=>ae(Object.assign({},S),{fill:Yn.label.fill});return Array.isArray(_)?_.map(b):b(_)},h=()=>{const _=r&&r.length?r[n].name:void 0;return F.cloneElement(i,{style:d({}),text:_,textAnchor:"start",x:c,y:u})},p=()=>{const _=c+fe(t);return F.cloneElement(s,Object.assign({style:d(a),text:o,textAnchor:l,x:_,y:u},f))},g=h(),y=p();return F.createElement(F.Fragment,null,g,y)};xv.displayName="ChartLegendTooltipLabel",Ft(xv,wt);const Sv=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:a=0,flyoutHeight:o,flyoutWidth:l,height:s,labelComponent:c=F.createElement(xv,null),legendComponent:u=F.createElement(Vo,null),legendData:f,patternScale:d,text:h,themeColor:p,themeVariant:g,title:y,titleComponent:_=F.createElement(vn,null),width:b,theme:S=rn(p)}=e,O=ze(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","themeVariant","title","titleComponent","width","theme"]);const w=S&&S.tooltip?fe(S.tooltip.pointerLength):10,A=jT(u.props),T=rv({activePoints:t,colorScale:A.colorScale,legendData:f,text:h,theme:S}),k=0,P=y?5:-10,N=10,M=0,j=()=>{if(!(n||l||b)){const R=O.x;return R||void 0}const Z=fe(l);return b>n.x+Z+w?n.x+Yn.flyout.padding/2:n.x<Z+w?Yn.flyout.padding/2-w:n.x-Z},D=()=>{if(!(n||o||s)){const R=O.y;return R||void 0}const Z=fe(o);return n.y<Z/2?Yn.flyout.padding/2:n.y>s-Z/2?s-Z+Yn.flyout.padding/2:n.y-Z/2+Yn.flyout.padding/2},I=nv({legendData:T,legendProps:A,text:MT({activePoints:t,legendData:f,text:h}),theme:S}),W=nv({legendData:[{name:""}],legendProps:A,theme:S}),X=()=>F.cloneElement(c,Object.assign({dx:I.width-W.width,legendData:T},c.props)),ne=()=>{const Z=y instanceof Function?y(r):y;return F.cloneElement(_,Object.assign({style:{fill:Yn.label.fill,fontWeight:Yn.label.fontWeight},text:Z,textAnchor:"start",x:j()+N+fe(i),y:D()+M+fe(a)},_.props))},re=()=>F.cloneElement(u,Object.assign({data:rv({activePoints:t,colorScale:A.colorScale,legendData:f,patternScale:d,text:h,textAsLegendData:!0,theme:S}),labelComponent:X(),patternScale:d,standalone:!1,theme:S,x:j()+k+fe(i),y:D()+P+fe(a)},A));return F.createElement(F.Fragment,null,ne(),re())};Sv.displayName="ChartLegendTooltipContent",Ft(Sv,js,{getBaseProps:!0});const wv=e=>{var{activePoints:t,datum:n,center:r={x:0,y:0},flyoutHeight:i,flyoutWidth:a,height:o,isCursorTooltip:l=!0,labelComponent:s=F.createElement(Sv,null),legendData:c,patternScale:u,text:f,themeColor:d,themeVariant:h,title:p,width:g,theme:y=rn(d)}=e,_=ze(e,["activePoints","datum","center","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","themeVariant","title","width","theme"]);const b=y&&y.tooltip?fe(y.tooltip.pointerLength):10,S=()=>({legendData:rv({activePoints:t,legendData:c,text:f,theme:y}),legendProps:jT(s.props.legendComponent?s.props.legendComponent.props:void 0),text:MT({activePoints:t,legendData:c,text:f}),theme:y}),O=({height:k})=>{const P=k+Yn.flyout.padding;return p?P:P-10},w=({width:k})=>k+Yn.flyout.padding,A=k=>F.cloneElement(s,Object.assign({center:r,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,legendData:c,patternScale:u,title:p,width:g},s.props));return(()=>{const k=nv(S());if(k.height===0&&k.width===0)return null;const P=w(k),N=l?F.createElement(rd,null):F.createElement(Ps,null);return F.cloneElement(N,Object.assign(Object.assign(Object.assign({activePoints:t,center:r,datum:n,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,labelComponent:A(k)},a===void 0&&{showPointer:g>P+r.x+b||r.x>P+b}),{text:f,theme:y,width:g}),_))})()};wv.displayName="ChartLegendTooltip",Ft(wv,Dr);var W0e=function(e){var t=Gt(e);t.length<2&&(t=[]);var n={x:xt(e,"x"),y:xt(e,"y")},r={x:Sa(e,"x"),y:Sa(e,"y")},i={x:Wn(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Wn(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},a=e.polar?e.origin||as(e):void 0,o=bu(e,"line"),l=is(e.style,o);return{domain:r,data:t,scale:i,style:l,origin:a}},R0e=function(e,t){var n=St(e,t,"line");e=B({},n,W0e(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,c=r.horizontal,u=r.interpolation,f=r.origin,d=r.padding,h=r.polar,p=r.scale,g=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,scale:p,data:i,height:s,width:S,name:w,domain:a,standalone:y,polar:h,origin:f,padding:d,horizontal:c},all:{data:{horizontal:c,polar:h,origin:f,scale:p,data:i,interpolation:u,groupComponent:l,style:A?{}:_.data,theme:b,disableInlineStyles:A}}};return i.reduce(function(k,P,N){var M=Vu(e,P,N);if(M!=null||O&&(o||g)){var j=ba(P.eventKey)?N:P.eventKey;k[j]={labels:Q0(e,N)}}return k},T)};function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){V0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H0e=function(e){var t=fe(e.ariaLabel,e),n=fe(e.id,e),r=Xe(B({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},Ov=function(e){e=H0e(e);var t=ur(e),n=e,r=n.polar,i=n.origin,a=xC(e),o=r&&i?"translate(".concat(i.x,", ").concat(i.y,")"):void 0,l=a(e.data);return x.cloneElement(e.pathComponent,Ms(Ms(Ms({},e.events),t),{},{"aria-label":e.ariaLabel,d:l,style:e.style,transform:e.transform||o,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};Ov.propTypes=Ms(Ms({},Ot.primitiveProps),{},{interpolation:m.oneOfType([m.string,m.func]),openCurve:m.bool,origin:m.shape({x:m.number.isRequired,y:m.number.isRequired}),pathComponent:m.element,polar:m.bool}),Ov.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(r){U0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G0e(e,t,n){return t&&sk(e.prototype,t),n&&sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Av(e,t)}function K0e(e){var t=J0e();return function(){var r=_d(e),i;if(t){var a=_d(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Z0e(this,i)}}function Z0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X0e(e)}function X0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_d(e)}var ck={width:450,height:300,padding:50,interpolation:"linear"},Q0e={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Tn=function(e){Y0e(n,e);var t=K0e(n);function n(r){return q0e(this,n),t.call(this,r)}return G0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,ck,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);Tn.animationWhitelist=["data","domain","height","padding","samples","style","width"],Tn.displayName="VictoryLine",Tn.role="line",Tn.defaultTransitions=xO(),Tn.defaultPolarTransitions=SO(),Tn.continuous=!0,Tn.propTypes=Cv(Cv(Cv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:VS(m.string,"Use `labels` instead for individual data labels")}),Tn.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(Ov,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),groupComponent:x.createElement(ya,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},Tn.getDomain=Sa,Tn.getData=Gt,Tn.getBaseProps=function(e){return R0e(e,ck)},Tn.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var uk=xa(Tn,Q0e),fk;(function(e){e.ascending="ascending",e.descending="descending"})(fk||(fk={}));const Tv=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=ze(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(uk,Object.assign({containerComponent:o,theme:i},a))};Tv.displayName="ChartLine",Ft(Tv,uk);function ege(e,t){return ige(e)||rge(e,t)||nge(e,t)||tge()}function tge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nge(e,t){if(e){if(typeof e=="string")return dk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dk(e,t)}}function dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function ige(e){if(Array.isArray(e))return e}function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hk(Object(n),!0).forEach(function(r){age(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function age(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gk={width:450,height:300,padding:50};function oge(e,t){var n=e.fillInMissingData,r=t.reduce(function(o,l){return l.forEach(function(s){o[s._x instanceof Date?s._x.getTime():s._x]=!0}),o},{}),i=Ze(r).map(function(o){return Number(o)}),a=bo(i);return t.map(function(o){var l=0,s=o[0]&&o[0]._x instanceof Date,c=a.map(function(u,f){u=Number(u);var d=o[f-l];if(d){var h=s?d._x.getTime():d._x;if(h===u)return d;l++;var p=n?0:null;return u=s?new Date(u):u,{x:u,y:p,_x:u,_y:p}}var g=n?0:null;return u=s?new Date(u):u,{x:u,y:g,_x:u,_y:g}});return c})}function lge(e,t,n){if(e.y0)return e.y0;var r=e._y,i=e._group,a=n[0].map(function(c){return c.y0}),o=n.slice(0,t),l=o.reduce(function(c,u){return c.concat(u.filter(function(f){return e._x instanceof Date?f._x.getTime()===e._x.getTime():f._x===e._x}).map(function(f){return f._y||0}))},[]),s=l.length&&l.reduce(function(c,u){var f=r<0&&u<0||r>=0&&u>=0;return f?Number(u)+c:c},a[i]||0);return l.some(function(c){return c instanceof Date})?new Date(s):s}function sge(e,t,n){var r=e.xOffset||0;return t[n].map(function(i){var a=lge(i,n,t)||0;return B({},i,{_y0:i._y instanceof Date?a?new Date(a):i._y:a,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(a)):i._y+a,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function cge(e,t){var n=Hte(e,t),r=n.map(function(a){return a.filter(function(o){return o._x!==null&&o._y!==null})}),i=oge(e,r);return i.map(function(a,o){return sge(e,i,o)})}function pk(e,t){t=t||x.Children.toArray(e.children);var n="stack";e=St(e,gk,n);var r=Gte(e.theme,e.style,n),i=e.categories||jC(e,t),a=e.datasets||cge(e,t),o=t.map(function(p,g){return x.cloneElement(p,{data:a[g]})}),l={x:np(B({},e,{categories:i}),"x",o),y:np(B({},e,{categories:i}),"y",o)},s=e.range||{x:xt(e,"x"),y:xt(e,"y")},c={x:gs(e,"x")||Mf(e,"x"),y:gs(e,"y")||Mf(e,"y")},u={x:c.x.domain(l.x).range(e.horizontal?s.y:s.x),y:c.y.domain(l.y).range(e.horizontal?s.x:s.y)},f=e,d=f.colorScale,h=f.horizontal;return{datasets:a,categories:i,range:s,domain:l,horizontal:h,scale:u,style:r,colorScale:d,role:n}}var uge=function(e){var t=e.children,n=x.Children.toArray(t).map(function(r){var i=r;return mk(mk({},i),{},{props:wo(i.props,["sharedEvents"])})});return e.children=n,e};function fge(e){var t=uge(e),n=x.useState(t),r=ege(n,2),i=r[0],a=r[1];return x.useEffect(function(){fn(t,i)||a(t)},[i,a,t]),x.useMemo(function(){return pk(i,i.children)},[i])}function dge(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function hge(e,t){var n=t.categories,r=t.domain,i=t.range,a=t.scale,o=t.horizontal;return{height:e.height,width:e.width,padding:lt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:a,horizontal:o}}function mge(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function vk(e,t,n){e=St(e,gk,"stack"),t=t||x.Children.toArray(e.children),n=n||pk(e,t);var r=n,i=r.datasets,a=hge(e,n),o=e.name||"stack";return t.map(function(l,s){var c=l.type&&l.type.role,u=i[s],f=Yte(l,s,n),d=e.labels?dge(e,i,s):l.props.labels,h=l.props.name||"".concat(o,"-").concat(c,"-").concat(s);return x.cloneElement(l,B({key:"".concat(h,"-key-").concat(s),labels:d,name:h,domainPadding:l.props.domainPadding||e.domainPadding,theme:e.theme,labelComponent:e.labelComponent||l.props.labelComponent,style:f,colorScale:mge(e,l),data:u,polar:e.polar},a))})}function yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(n),!0).forEach(function(r){gge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pge={width:450,height:300,padding:50},kv=function(e){var t=xd.role,n=kO(),r=n.setAnimationState,i=n.getAnimationProps,a=n.getProps,o=a(e),l=St(o,pge,t),s=l.eventKey,c=l.containerComponent,u=l.standalone,f=l.groupComponent,d=l.externalEventMutations,h=l.width,p=l.height,g=l.theme,y=l.polar,_=l.horizontal,b=l.name,S=x.Children.toArray(l.children),O=fge(l),w=O.domain,A=O.scale,T=O.style,k=x.useMemo(function(){var I=vk(o,S,O),W=I.map(function(X,ne){var re=B({animate:i(o,X,ne)},X.props);return x.cloneElement(X,re)});return W.reverse()},[o,S,O,i]),P=x.useMemo(function(){return u?{domain:w,scale:A,width:h,height:p,standalone:u,theme:g,style:T.parent,horizontal:_,polar:y,name:b}:{}},[u,w,A,h,p,g,T,_,y,b]),N=x.useMemo(function(){return ur(e)},[e]),M=x.useMemo(function(){if(u){var I=ae({},c.props,P,N);return x.cloneElement(c,I)}return x.cloneElement(f,N)},[f,u,c,P,N]),j=x.useMemo(function(){return kC(o)},[o]),D=wO(e);return x.useEffect(function(){return function(){e.animate&&r(D,e)}},[r,D,e]),rt(j)?x.cloneElement(M,M.props,k):x.createElement(Aa,{container:M,eventKey:s,events:j,externalEventMutations:d},k)};kv.propTypes=bk(bk({},Ot.baseProps),{},{bins:m.oneOfType([m.arrayOf(m.oneOfType([_e,m.instanceOf(Date)])),_e]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),children:m.oneOfType([m.arrayOf(m.node),m.node]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:m.bool,horizontal:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),xOffset:m.number}),kv.defaultProps={containerComponent:x.createElement(Ve,null),groupComponent:x.createElement("g",null),standalone:!0,theme:Pr.grayscale,fillInMissingData:!0};var vge={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:vk},xd=Object.assign(x.memo(kv,fn),vge);xd.displayName="VictoryStack";const Sd=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:a=F.createElement(Kn,null),hasPatterns:o,patternScale:l,themeColor:s,themeVariant:c,theme:u=rn(s)}=e,f=ze(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const d=F.cloneElement(a,Object.assign(Object.assign({desc:t,title:n,theme:u},a.props),{className:Gp({className:a.props.className})})),{defaultPatternScale:h}=Qp({colorScale:i,hasPatterns:o,patternScale:l,themeColorScale:u.stack.colorScale});return F.createElement(xd,Object.assign({colorScale:i,containerComponent:d,theme:u},f),Pfe({children:r,patternScale:h}))};Sd.displayName="ChartStack",Ft(Sd,xd);function yge(e){return e.horizontal?v.jsx(bge,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(_ge,{children:[v.jsx(_k,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount==!1?null:v.jsx(xk,{count:t.count}),v.jsx(Sk,{label:t.label,link:t.link})]},n))}):v.jsx(xge,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(x.Fragment,{children:[v.jsx(_k,{color:t.color}),e.showLegendCount==!1?null:v.jsx(xk,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),v.jsx(Sk,{label:t.label,link:t.link})]},n))})}function _k(e){return v.jsx(Sge,{id:e.id,style:{backgroundColor:e.color}})}function xk(e){return v.jsx(wge,{id:e.id,children:e.count})}function Sk(e){return v.jsx(Oge,{children:e.link?v.jsx($t.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const bge=Le.div`
328
+ z`}},Mme=e=>{const{x:t,y:n}=e,r=fe(e.size,e);if(e.getPath)return e.getPath(t,n,r);const i={circle:Cn.circle,square:Cn.square,diamond:Cn.diamond,eyeSlash:Cn.eyeSlash,triangleDown:Cn.triangleDown,triangleLeft:Cn.triangleLeft,triangleRight:Cn.triangleRight,triangleUp:Cn.triangleUp,plus:Cn.plus,minus:Cn.minus,star:Cn.star,dash:Cn.dash,threshold:Cn.threshold},o=fe(e.symbol,e);return(typeof i[o]=="function"?i[o]:i.square)(t,n,r)},DT=e=>{var{active:t,className:n,clipPath:r,datum:i,desc:a,events:o,pathComponent:l=F.createElement(Li,null),role:s="presentation",shapeRendering:c="auto",tabIndex:u,transform:f}=e,d=ze(e,["active","className","clipPath","datum","desc","events","pathComponent","role","shapeRendering","tabIndex","transform"]);const h=Object.assign({active:t,className:n,clipPath:r,datum:i,desc:a,events:o,role:s,shapeRendering:c,tabIndex:u,transform:f},d);return F.cloneElement(l,Object.assign(Object.assign({className:n,clipPath:r,d:Mme(h),desc:fe(a,h)},o),{role:s,shapeRendering:c,style:Xe(d.style,h),tabIndex:fe(u,h),transform:f}))};DT.displayName="ChartPoint";var IT;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(IT||(IT={}));var cd;(function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.right="right"})(cd||(cd={}));var LT;(function(e){e.bottom="bottom",e.top="top"})(LT||(LT={}));const Vo=e=>{var{colorScale:t,containerComponent:n=F.createElement(Kn,null),dataComponent:r=F.createElement(DT,null),labelComponent:i=F.createElement(vn,null),name:a,patternScale:o,responsive:l=!0,style:s,themeColor:c,themeVariant:u,titleComponent:f=F.createElement(vn,null),theme:d=rn(c)}=e,h=ze(e,["colorScale","containerComponent","dataComponent","labelComponent","name","patternScale","responsive","style","themeColor","themeVariant","titleComponent","theme"]);const p=()=>{if(!o)return s;const b=s?Object.assign({},s):{};return b.data=Object.assign({fill:({index:S})=>{const O=d&&d.legend&&d.legend.colorScale?d.legend.colorScale[S%d.legend.colorScale.length]:void 0,w=t?t[S%t.length]:O,A=o[S%o.length];return A||w}},b.data),b},g=F.cloneElement(n,Object.assign({responsive:l,theme:d},n.props)),y=()=>F.cloneElement(i,Object.assign(Object.assign({},a&&{id:b=>`${a}-${i.type.displayName}-${b.index}`}),i.props)),_=()=>F.cloneElement(f,Object.assign(Object.assign({},a&&{id:()=>`${a}-${f.type.displayName}`}),f.props));return F.createElement(js,Object.assign({colorScale:t,containerComponent:g,dataComponent:r,labelComponent:y(),name:a,style:p(),theme:d,titleComponent:_()},h))};Vo.displayName="ChartLegend",Ft(Vo,js,{getBaseProps:!0}),Vo.getBaseProps=e=>{const t=rn(null);return js.getBaseProps(Object.assign({titleComponent:F.createElement(vn,null)},e),{height:t.chart.height,orientation:t.legend.orientation,titleOrientation:t.legend.titleOrientation,x:0,y:0,width:t.chart.width})};const iv=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,hasPatterns:a,legendAllowWrap:o=!1,legendComponent:l=F.createElement(Vo,null),legendData:s,legendPosition:c=Bt.legend.position,name:u,padding:f,patternScale:d,showAxis:h=!0,themeColor:p,themeVariant:g,theme:y=Ame(p,h),containerComponent:_=F.createElement(Kn,null),legendOrientation:b=y.legend.orientation,height:S=y.chart.height,width:O=y.chart.width}=e,w=ze(e,["ariaDesc","ariaTitle","children","colorScale","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","padding","patternScale","showAxis","themeColor","themeVariant","theme","containerComponent","legendOrientation","height","width"]);const A={bottom:On("bottom",f,y.chart.padding),left:On("left",f,y.chart.padding),right:On("right",f,y.chart.padding),top:On("top",f,y.chart.padding)},{defaultColorScale:T,defaultPatternScale:k,isPatternDefs:j,patternId:N}=Qp({colorScale:i,patternScale:d,hasPatterns:a,themeColorScale:y.chart.colorScale});let M;_.props.labelComponent&&_.props.labelComponent.type.displayName==="ChartLegendTooltip"&&(M=F.cloneElement(_.props.labelComponent,Object.assign(Object.assign({theme:y},k&&{patternScale:k}),_.props.labelComponent.props)));const E=F.cloneElement(_,Object.assign(Object.assign(Object.assign({desc:t,title:n,theme:y},_.props),{className:Gp({className:_.props.className})}),M&&{labelComponent:M})),I=F.cloneElement(l,Object.assign(Object.assign(Object.assign({data:s},u&&{name:`${u}-${l.type.displayName}`}),{orientation:b,theme:y}),l.props)),D=()=>{if(!I.props.data)return null;let X=0,ne=0,re=0,Z=I.props.title?10:0;return F.Children.toArray(r).map(R=>{R.type.role==="axis"&&R.props.label&&!R.props.dependentAxis&&(re=Lue({text:R.props.label,theme:y}).height+10,Z=0)}),c===cd.bottom?ne+=re+Z:c===cd.bottomLeft&&(ne+=re+Z,X=-10),h||(ne-=a1.value),gT(Object.assign({allowWrap:o,chartType:"chart",colorScale:i,dx:X,dy:ne,height:S,legendComponent:I,padding:A,position:c,theme:y,width:O},k&&{patternScale:k}))},W=()=>F.Children.toArray(r).map((X,ne)=>{if(F.isValidElement(X)){const re=ze(X.props,[]);return F.cloneElement(X,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({colorScale:i},k&&{patternScale:k}),u&&typeof X.name!==void 0&&{name:`${u}-${X.type.displayName}-${ne}`}),{theme:y}),re),X.type.displayName==="ChartPie"&&{data:kfe(re.data,k)}))}return X});return F.createElement(zf,Object.assign({colorScale:i,containerComponent:E,height:S,name:u,padding:A,theme:y,width:O},w),W(),D(),j&&Jp({patternId:N,colorScale:T}))};iv.displayName="Chart",Ft(iv,zf);var Dme=function(e,t){var n=Gt(e);n.length<2&&(n=[]);var r=function(i){var a=BS(t[i])==="log"?1/Number.MAX_SAFE_INTEGER:0,o=t[i].domain(),l=dn(o),s=Nn(o),c=a;return l<0&&s<=0?c=s:l>=0&&s>0&&(c=l),Fn(o)?new Date(c):c};return n.map(function(i){var a=i._y1!==void 0?i._y1:i._y,o=i._y0!==void 0?i._y0:r("y"),l=i._x1!==void 0?i._x1:i._x,s=i._x0!==void 0?i._x0:r("x");return B({},i,{_y0:o,_y1:a,_x0:s,_x1:l})})},Ime=function(e){var t=e.polar,n=bu(e,"area"),r=is(e.style,n),i={x:xt(e,"x"),y:xt(e,"y")},a={x:Lg(e,"x"),y:Lg(e,"y")},o={x:Wn(e,"x").domain(a.x).range(e.horizontal?i.y:i.x),y:Wn(e,"y").domain(a.y).range(e.horizontal?i.x:i.y)},l=t?e.origin||as(e):void 0,s=Dme(e,o);return{style:r,data:s,scale:o,domain:a,origin:l}},Lme=function(e,t){var n=St(e,t,"area");e=B({},n,Ime(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,c=r.horizontal,u=r.interpolation,f=r.origin,d=r.padding,h=r.polar,p=r.scale,g=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,width:S,height:s,scale:p,data:i,domain:a,standalone:y,theme:b,polar:h,origin:f,padding:d,name:w,horizontal:c},all:{data:{horizontal:c,polar:h,origin:f,scale:p,data:i,interpolation:u,groupComponent:l,style:A?{}:_.data,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Vu(e,j,N);if(M!=null||O&&(o||g)){var E=ba(j.eventKey)?N:j.eventKey;k[E]={labels:Q0(e,N)}}return k},T)};function $T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ud(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$T(Object(n),!0).forEach(function(r){$me(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$T(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $me(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var av=function(e){var t=e._y1!==void 0?e._y1:e._y;return t!=null&&e._y0!==null},FT=function(e){return function(t){return e.x(t._x1!==void 0?t._x1:t._x)}},ov=function(e){return function(t){return e.y(t._y1!==void 0?t._y1:t._y)}},lv=function(e){return function(t){return e.y(t._y0)}},Fme=function(e){return function(t){var n=e.x(t._x1!==void 0?t._x1:t._x);return-1*n+Math.PI/2}},Nme=function(e){var t=e.horizontal,n=e.scale,r=Tf(e);return t?bf().defined(av).curve(r).x0(lv(n)).x1(ov(n)).y(FT(n)):bf().defined(av).curve(r).x(FT(n)).y1(ov(n)).y0(lv(n))},zme=function(e){var t=e.polar,n=e.scale,r=Tf(e);return t?qg().defined(av).curve(r).angle(Fme(n)).outerRadius(ov(n)).innerRadius(lv(n)):Nme(e)},Bme=function(e){var t=fe(e.ariaLabel,e),n=fe(e.desc,e),r=fe(e.id,e),i=Xe(B({fill:"black"},e.style),e),a=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,desc:n,id:r,style:i,tabIndex:a})},sv=function(e){e=Bme(e);var t=e,n=t.ariaLabel,r=t.role,i=t.shapeRendering,a=t.className,o=t.polar,l=t.origin,s=t.data,c=t.pathComponent,u=t.events,f=t.groupComponent,d=t.clipPath,h=t.id,p=t.style,g=t.desc,y=t.tabIndex,_=ur(e),b=o&&l?"translate(".concat(l.x,", ").concat(l.y,")"):void 0,S=e.transform||b,O=p.stroke&&p.stroke!=="none"&&p.stroke!=="transparent",w=zme(e),A=O&&xC(e),T=p.stroke?"none":p.fill,k=ud(ud({"aria-label":n,className:a,role:r,shapeRendering:i,transform:S},u),{},{clipPath:d,tabIndex:y}),j=x.cloneElement(c,B({key:"".concat(h,"-area"),style:B({},p,{stroke:T}),d:w(s),desc:g,tabIndex:y},k,_)),N=O?x.cloneElement(c,B({key:"".concat(h,"-area-stroke"),style:B({},p,{fill:"none"}),d:A(s)},k)):null;return O?x.cloneElement(f,_,[j,N]):j};sv.propTypes=ud(ud({},Ot.primitiveProps),{},{groupComponent:m.element,interpolation:m.oneOfType([m.string,m.func]),pathComponent:m.element}),sv.defaultProps={groupComponent:x.createElement("g",null),pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function NT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NT(Object(n),!0).forEach(function(r){Wme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wme(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vme(e,t,n){return t&&zT(e.prototype,t),n&&zT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uv(e,t)}function uv(e,t){return uv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uv(e,t)}function Ume(e){var t=Yme();return function(){var r=fd(e),i;if(t){var a=fd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return qme(this,i)}}function qme(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gme(e)}function Gme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yme(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function fd(e){return fd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fd(e)}var BT={width:450,height:300,padding:50,interpolation:"linear"},Kme={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},An=function(e){Hme(n,e);var t=Ume(n);function n(){return Rme(this,n),t.apply(this,arguments)}return Vme(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,BT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);An.animationWhitelist=["data","domain","height","padding","style","width"],An.propTypes=cv(cv(cv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:VS(m.string,"Use `labels` instead for individual data labels")}),An.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(sv,null),groupComponent:x.createElement(ya,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},An.displayName="VictoryArea",An.role="area",An.continuous=!0,An.defaultTransitions=xO(),An.defaultPolarTransitions=SO(),An.getDomain=Lg,An.getData=Gt,An.getBaseProps=function(e){return Lme(e,BT)},An.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var WT=xa(An,Kme),RT;(function(e){e.ascending="ascending",e.descending="descending"})(RT||(RT={}));const fv=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=ze(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(WT,Object.assign({containerComponent:o,theme:i},a))};fv.displayName="ChartArea",Ft(fv,WT);const dd=e=>{var{axisLabelComponent:t=F.createElement(vn,null),containerComponent:n=F.createElement(Kn,null),name:r,showGrid:i=!1,themeColor:a,themeVariant:o,tickLabelComponent:l=F.createElement(vn,null),theme:s=rn(a)}=e,c=ze(e,["axisLabelComponent","containerComponent","name","showGrid","themeColor","themeVariant","tickLabelComponent","theme"]);const u=F.cloneElement(n,Object.assign({theme:s},n.props)),f=()=>F.cloneElement(t,Object.assign(Object.assign({},r&&{id:()=>`${r}-${t.type.displayName}`}),t.props)),d=()=>F.cloneElement(l,Object.assign(Object.assign({},r&&{id:h=>`${r}-${l.type.displayName}-${h.index}`}),l.props));return F.createElement(As,Object.assign({axisLabelComponent:f(),containerComponent:u,name:r,theme:i?Cme(a):s,tickLabelComponent:d()},c))};dd.displayName="ChartAxis",Ft(dd,As);function dv(e){return Qme(e)||Jme(e)||Xme(e)||Zme()}function Zme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
329
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xme(e,t){if(e){if(typeof e=="string")return hv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hv(e,t)}}function Jme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qme(e){if(Array.isArray(e))return hv(e)}function hv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var e0e=function(e,t){return t.bubbleProperty?"circle":e.symbol||t.symbol},t0e=function(e,t){var n=t.data,r=t.z,i=t.maxBubbleSize,a=t.minBubbleSize,o=n.map(function(_){return _[r]}),l=Math.min.apply(Math,dv(o)),s=Math.max.apply(Math,dv(o)),c=function(){var _=Math.min.apply(Math,dv(vu(lt(t))));return Math.max(_,5)},u=i||c(),f=a||u*.1;if(s===l)return Math.max(f,1);var d=Math.PI*Math.pow(u,2),h=Math.PI*Math.pow(f,2),p=(e[r]-l)/(s-l)*d,g=Math.max(p,h),y=Math.sqrt(g/Math.PI);return Math.max(y,1)},n0e=function(e,t){var n=t.size,r=t.z;return e.size?typeof e.size=="function"?e.size:Math.max(e.size,1):typeof t.size=="function"?n:e[r]?t0e(e,t):Math.max(n||0,1)},r0e=function(e){var t=bu(e,"scatter"),n=is(e.style,t),r={x:xt(e,"x"),y:xt(e,"y")},i={x:Sa(e,"x"),y:Sa(e,"y")},a={x:Wn(e,"x").domain(i.x).range(e.horizontal?r.y:r.x),y:Wn(e,"y").domain(i.y).range(e.horizontal?r.x:r.y)},o=e.polar?e.origin||as(e):void 0,l=e.bubbleProperty||"z",s=Gt(e);return s=CQ(s,i),{domain:i,data:s,scale:a,style:n,origin:o,z:l}},i0e=function(e,t){var n=St(e,t,"scatter");e=B({},n,r0e(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.height,s=r.origin,c=r.padding,u=r.polar,f=r.scale,d=r.name,h=r.sharedEvents,p=r.standalone,g=r.style,y=r.theme,_=r.width,b=r.labels,S=r.horizontal,O=r.disableInlineStyles,w={parent:{style:g.parent,scale:f,domain:a,data:i,height:l,width:_,standalone:p,theme:y,origin:s,polar:u,padding:c,name:d,horizontal:S}};return i.reduce(function(A,T,k){var j=ba(T.eventKey)?k:T.eventKey,N=Oo(e,T),M=N.x,E=N.y,I={x:M,y:E,datum:T,data:i,index:k,scale:f,polar:u,origin:s,horizontal:S,size:n0e(T,e),symbol:e0e(T,e),style:O?{}:g.data,disableInlineStyles:O};A[j]={data:I};var D=Vu(e,T,k);return(D!=null||b&&(o||h))&&(A[j].labels=Q0(e,k)),A},w)};function VT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(n),!0).forEach(function(r){a0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l0e(e,t,n){return t&&HT(e.prototype,t),n&&HT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gv(e,t)}function gv(e,t){return gv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},gv(e,t)}function c0e(e){var t=d0e();return function(){var r=hd(e),i;if(t){var a=hd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return u0e(this,i)}}function u0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return f0e(e)}function f0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function hd(e){return hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hd(e)}var UT={width:450,height:300,padding:50,size:3,symbol:"circle"},hr=function(e){s0e(n,e);var t=c0e(n);function n(){return o0e(this,n),t.apply(this,arguments)}return l0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=md.animationWhitelist,a=md.role,o=St(this.props,UT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);hr.animationWhitelist=["data","domain","height","maxBubbleSize","padding","samples","size","style","width"],hr.displayName="VictoryScatter",hr.role="scatter",hr.defaultTransitions=UQ(),hr.propTypes=mv(mv(mv({},Ot.baseProps),Ot.dataProps),{},{bubbleProperty:m.string,maxBubbleSize:_e,minBubbleSize:_e,size:m.oneOfType([_e,m.func]),symbol:m.oneOfType([m.oneOf(["circle","cross","diamond","plus","minus","square","star","triangleDown","triangleUp"]),m.func])}),hr.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(rf,null),labelComponent:x.createElement(wt,null),groupComponent:x.createElement("g",null),samples:50,sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},hr.getDomain=Sa,hr.getData=Gt,hr.getBaseProps=function(e){return i0e(e,UT)},hr.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var md=xa(hr),qT;(function(e){e.ascending="ascending",e.descending="descending"})(qT||(qT={}));const gd=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n),size:a=({active:s})=>s?QA.activeSize:QA.size}=e,o=ze(e,["containerComponent","themeColor","themeVariant","theme","size"]);const l=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(md,Object.assign({containerComponent:l,size:a,theme:i},o))};gd.displayName="ChartScatter",Ft(gd,md);function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GT(Object(n),!0).forEach(function(r){h0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m0e=function(e){var t=e.slice,n=e.radius,r=e.innerRadius,i=e.cornerRadius;if(Oe(e.pathFunction))return e.pathFunction(t);var a=st(e.padAngle),o=st(e.sliceStartAngle),l=st(e.sliceEndAngle),s=Wg().cornerRadius(i).outerRadius(n).innerRadius(r||0);return s(ae({startAngle:o,endAngle:l,padAngle:a},t))},g0e=function(e){var t=Xe(e.style,e),n=fe(e.radius,B({},e,{style:t})),r=fe(e.innerRadius,B({},e,{style:t,radius:n})),i=fe(e.ariaLabel,e),a=fe(e.id,e),o=fe(e.cornerRadius,e),l=fe(e.padAngle,e),s=fe(e.sliceStartAngle,e),c=fe(e.sliceEndAngle,e),u=fe(e.tabIndex,e);return B({},e,{ariaLabel:i,style:t,radius:n,innerRadius:r,id:a,cornerRadius:o,padAngle:l,sliceStartAngle:s,sliceEndAngle:c,tabIndex:u})},pv=function(e){e=g0e(e);var t=e.origin?"translate(".concat(e.origin.x,", ").concat(e.origin.y,")"):void 0;return x.cloneElement(e.pathComponent,pd(pd({},e.events),{},{"aria-label":e.ariaLabel,d:m0e(e),style:e.style,transform:e.transform||t,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};pv.propTypes=pd(pd({},Ot.primitiveProps),{},{cornerRadius:m.oneOfType([m.number,m.func]),datum:m.object,innerRadius:m.oneOfType([m.number,m.func]),padAngle:m.oneOfType([m.number,m.func]),pathComponent:m.element,pathFunction:m.func,radius:m.oneOfType([m.number,m.func]),slice:m.object,sliceEndAngle:m.oneOfType([m.number,m.func]),sliceStartAngle:m.oneOfType([m.number,m.func])}),pv.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};const p0e=pv;var v0e=function(e){return e==null||Oe(e)?e:"".concat(e)},y0e=function(e,t,n){return e&&e.data&&e.data.fill?e.data.fill:t&&t[n%t.length]},b0e=function(e,t){return typeof e.radius=="number"?e.radius:Math.min(e.width-t.left-t.right,e.height-t.top-t.bottom)/2},_0e=function(e,t){var n=e.width,r=e.height,i=Qe(e.origin)?e.origin:{};return{x:i.x!==void 0?i.x:(t.left-t.right+n)/2,y:i.y!==void 0?i.y:(t.top-t.bottom+r)/2}},x0e=function(e,t){var n=Oe(e.padAngle)?0:e.padAngle,r=IO().sort(null).startAngle(st(e.startAngle)).endAngle(st(e.endAngle)).padAngle(st(n)).value(function(i){return i._y});return r(t)},S0e=function(e){var t=e.colorScale,n=bu(e,"pie"),r=is(e.style,n),i=Array.isArray(t)?t:tg(t),a=lt(e),o=b0e(e,a),l=_0e(e,a),s=Gt(e),c=x0e(e,s);return B({},e,{style:r,colors:i,padding:a,defaultRadius:o,data:s,slices:c,origin:l})},w0e=function(e,t){var n=t.style,r=t.colors,i=y0e(n,r,e);return B({fill:i},n.data)},O0e=function(e,t,n){var r;return t.label?r=t.label:Array.isArray(e.labels)?r=e.labels[n]:r=Oe(e.labels)?e.labels:t.xName||t._x,v0e(r)},C0e=function(e,t,n){var r=n&&n.padding||0,i=t||e+r;return Wg().outerRadius(i).innerRadius(i)},A0e=function(e,t,n){var r={startAngle:n==="startAngle"?t.startAngle:t.endAngle,endAngle:n==="endAngle"?t.endAngle:t.startAngle},i=B({},t,r);return e.centroid(i)},T0e=function(e,t){return t==="perpendicular"?e>90&&e<270?"bottom":"top":t==="parallel"?e>=0&&e<=180?"right":"left":e<45||e>315?"top":e>=45&&e<135?"right":e>=135&&e<225?"bottom":"left"},k0e=function(e){return e==="top"||e==="bottom"?"middle":e==="right"?"start":"end"},E0e=function(e){return e==="left"||e==="right"?"middle":e==="bottom"?"start":"end"},P0e=function(e,t,n){var r=0;t.angle!==void 0?r=n.angle:t==="centroid"?r=Zr((e.startAngle+e.endAngle)/2):r=Zr(t==="startAngle"?e.startAngle:e.endAngle);var i=r<0?360-r:r;return i%360},j0e=function(e,t){return t==="vertical"?0:t==="parallel"?e>180&&e<360?e+90:e-90:e>90&&e<270?e-180:e},M0e=function(e,t,n){var r=t.index,i=t.datum,a=t.data,o=t.slice,l=t.labelComponent,s=t.theme,c=n.style,u=n.defaultRadius,f=n.origin,d=n.width,h=n.height,p=fe(n.labelRadius,B({text:e},t)),g=fe(n.labelPosition,B({text:e},t))||"centroid",y=fe(n.labelPlacement,B({text:e},t))||"vertical",_=B({padding:0},c.labels),b=Xe(_,B({labelRadius:p,text:e},t)),S=C0e(u,p,b),O=A0e(S,o,g),w=P0e(o,g,_),A=j0e(w,y),T=T0e(w,y),k=_.textAnchor||k0e(T),j=_.verticalAnchor||E0e(T),N={width:d,height:h,index:r,datum:i,data:a,slice:o,orientation:T,text:e,style:_,x:Math.round(O[0])+f.x,y:Math.round(O[1])+f.y,textAnchor:k,verticalAnchor:j,angle:A};if(!yu(l))return N;var M=s&&s.tooltip||{};return ae({},N,wo(M,["style"]))},D0e=function(e,t){e=St(e,t,"pie");var n=S0e(e),r=n.slices,i=n.style,a=n.data,o=n.origin,l=n.defaultRadius,s=n.labels,c=n.events,u=n.sharedEvents,f=n.height,d=n.width,h=n.standalone,p=n.name,g=n.innerRadius,y=n.cornerRadius,_=n.padAngle,b=n.disableInlineStyles,S=e.radius||l,O={parent:{standalone:h,height:f,width:d,slices:r,name:p,style:i.parent}};return r.reduce(function(w,A,T){var k=ae({},a[T],{startAngle:Zr(A.startAngle),endAngle:Zr(A.endAngle),padAngle:Zr(A.padAngle)}),j=ba(k.eventKey)?T:k.eventKey,N={index:T,slice:A,datum:k,data:a,origin:o,innerRadius:g,radius:S,cornerRadius:y,padAngle:_,style:b?{}:w0e(T,n),disableInlineStyles:b};w[j]={data:N};var M=O0e(e,k,T);if(M!=null||s&&(c||u)){var E=fe(M,N);w[j].labels=M0e(E,B({},e,N),n)}return w},O)};function I0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L0e(e,t,n){return t&&YT(e.prototype,t),n&&YT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vv(e,t)}function vv(e,t){return vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vv(e,t)}function F0e(e){var t=B0e();return function(){var r=vd(e),i;if(t){var a=vd(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return N0e(this,i)}}function N0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z0e(e)}function z0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vd(e){return vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vd(e)}var KT={endAngle:360,height:400,innerRadius:0,cornerRadius:0,padAngle:0,padding:30,width:400,startAngle:0,colorScale:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],labelPosition:"centroid"},$r=function(e){$0e(n,e);var t=F0e(n);function n(){return I0e(this,n),t.apply(this,arguments)}return L0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,KT,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);$r.animationWhitelist=["data","endAngle","height","innerRadius","cornerRadius","padAngle","padding","colorScale","startAngle","style","width"],$r.displayName="VictoryPie",$r.role="pie",$r.defaultTransitions={onExit:{duration:500,before:function(){return{_y:0,label:" "}}},onEnter:{duration:500,before:function(){return{_y:0,label:" "}},after:function(e){return{y_:e._y,label:e.label}}}},$r.propTypes={animate:m.oneOfType([m.bool,m.object]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),containerComponent:m.element,cornerRadius:m.oneOfType([_e,m.func]),data:m.array,dataComponent:m.element,disableInlineStyes:m.bool,endAngle:m.number,eventKey:m.oneOfType([m.func,ft([ct,_e]),m.string]),events:m.arrayOf(m.shape({target:m.oneOf(["data","labels","parent"]),eventKey:m.oneOfType([m.array,m.func,ft([ct,_e]),m.string]),eventHandlers:m.object})),externalEventMutations:m.arrayOf(m.shape({callback:m.func,childName:m.oneOfType([m.string,m.array]),eventKey:m.oneOfType([m.array,ft([ct,_e]),m.string]),mutation:m.func,target:m.oneOfType([m.string,m.array])})),groupComponent:m.element,height:_e,innerRadius:m.oneOfType([_e,m.func]),labelComponent:m.element,labelPlacement:m.oneOfType([m.func,m.oneOf(["parallel","perpendicular","vertical"])]),labelPosition:m.oneOfType([m.func,m.oneOf(["startAngle","centroid","endAngle"])]),labelRadius:m.oneOfType([_e,m.func]),labels:m.oneOfType([m.func,m.array]),name:m.string,origin:m.shape({x:_e,y:_e}),padAngle:m.oneOfType([_e,m.func]),padding:m.oneOfType([m.number,m.shape({top:m.number,bottom:m.number,left:m.number,right:m.number})]),radius:m.oneOfType([_e,m.func]),sharedEvents:m.shape({events:m.array,getEventState:m.func}),sortKey:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)]),sortOrder:m.oneOf(["ascending","descending"]),standalone:m.bool,startAngle:m.number,style:m.shape({parent:m.object,data:m.object,labels:m.object}),theme:m.object,width:_e,x:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)]),y:m.oneOfType([m.func,ft([ct,_e]),m.string,m.arrayOf(m.string)])},$r.defaultProps={data:[{x:"A",y:1},{x:"B",y:2},{x:"C",y:3},{x:"D",y:1},{x:"E",y:2}],standalone:!0,dataComponent:x.createElement(p0e,null),labelComponent:x.createElement(wt,null),containerComponent:x.createElement(Ve,null),groupComponent:x.createElement("g",null),sortOrder:"ascending",theme:Pr.grayscale},$r.getBaseProps=function(e){return D0e(e,KT)},$r.getData=Gt,$r.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];const yd=xa($r);var ZT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(ZT||(ZT={}));var XT;(function(e){e.bottom="bottom",e.right="right"})(XT||(XT={}));var JT;(function(e){e.ascending="ascending",e.descending="descending"})(JT||(JT={}));const yv=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,constrainToVisibleArea:a=!1,containerComponent:o=F.createElement(Kn,null),hasPatterns:l,legendAllowWrap:s=!1,legendComponent:c=F.createElement(Vo,null),legendData:u,legendPosition:f=Bt.legend.position,name:d,patternScale:h,patternUnshiftIndex:p,padding:g,radius:y,standalone:_=!0,style:b,themeColor:S,themeVariant:O,theme:w=rn(S),labelComponent:A=t?F.createElement(Ps,{constrainToVisibleArea:a,theme:w}):void 0,legendOrientation:T=w.legend.orientation,height:k=w.pie.height,width:j=w.pie.width}=e,N=ze(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","constrainToVisibleArea","containerComponent","hasPatterns","legendAllowWrap","legendComponent","legendData","legendPosition","name","patternScale","patternUnshiftIndex","padding","radius","standalone","style","themeColor","themeVariant","theme","labelComponent","legendOrientation","height","width"]);const M={bottom:On("bottom",g,w.pie.padding),left:On("left",g,w.pie.padding),right:On("right",g,w.pie.padding),top:On("top",g,w.pie.padding)},{defaultColorScale:E,defaultPatternScale:I,isPatternDefs:D,patternId:W}=Qp({colorScale:i,hasPatterns:l,patternScale:h,themeColorScale:w.pie.colorScale}),ne=y||(()=>{const Y=kr({height:k,width:j,padding:M});return Y>-1?Y:void 0})(),re=()=>{if(!I)return b;const Y=b?Object.assign({},b):{};return Y.data=Object.assign({fill:({slice:G})=>{const ie=I[G.index%I.length];return ie||E[G.index%E.length]}},Y.data),Y},Z=F.createElement(yd,Object.assign({colorScale:i,height:k,key:"pf-chart-pie",labelComponent:A,name:d,padding:g,radius:ne,standalone:!1,style:re(),theme:w,width:j},N)),R=F.cloneElement(c,Object.assign(Object.assign(Object.assign({colorScale:i,data:u},d&&{name:`${d}-${c.type.displayName}`}),{key:"pf-chart-pie-legend",orientation:T,theme:w}),c.props)),J=()=>R.props.data?gT(Object.assign({allowWrap:s,chartType:"pie",height:k,legendComponent:R,padding:M,position:f,theme:w,width:j},I&&{patternScale:I})):null,U=_?F.cloneElement(o,Object.assign({desc:n,height:k,title:r,width:j,theme:w},o.props),[Z,J(),D&&Jp({patternId:W,colorScale:E,patternUnshiftIndex:p})]):null;return _?F.createElement(F.Fragment,null,U):F.createElement(F.Fragment,null,Z,J(),D&&Jp({patternId:W,colorScale:E,patternUnshiftIndex:p}))};yv.displayName="ChartPie",Ft(yv,yd);var QT;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(QT||(QT={}));var ek;(function(e){e.ascending="ascending",e.descending="descending"})(ek||(ek={}));var bv;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(bv||(bv={}));const bd=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,capHeight:i=1.1,containerComponent:a=F.createElement(Kn,null),innerRadius:o,legendAllowWrap:l,legendPosition:s=Bt.legend.position,name:c,padAngle:u,padding:f,radius:d,standalone:h=!0,subTitle:p,subTitleComponent:g,subTitlePosition:y=Es.label.subTitlePosition,themeColor:_,themeVariant:b,title:S,titleComponent:O=F.createElement(vn,null),theme:w=Tme(_),height:A=w.pie.height,width:T=w.pie.width}=e,k=ze(e,["allowTooltip","ariaDesc","ariaTitle","capHeight","containerComponent","innerRadius","legendAllowWrap","legendPosition","name","padAngle","padding","radius","standalone","subTitle","subTitleComponent","subTitlePosition","themeColor","themeVariant","title","titleComponent","theme","height","width"]);const j={bottom:On("bottom",f,w.pie.padding),left:On("left",f,w.pie.padding),right:On("right",f,w.pie.padding),top:On("top",f,w.pie.padding)},N=d||kr({height:A,width:T,padding:j}),M=o||N-9,E=p&&y===bv.center,I=()=>!g&&E?X({styles:[Es.label.title,Es.label.subTitle],titles:[S,p]}):F.createElement(F.Fragment,{key:"pf-chart-donut-titles"},X({titles:S,dy:E?-8:0}),W({textComponent:g,dy:E?15:0})),D=({datum:Z})=>Z._y>0?w.pie.padAngle:0,W=({dy:Z=0,textComponent:R=F.createElement(vn,null)})=>{if(!p)return null;const J=R.props?R.props:{};return F.cloneElement(R,Object.assign(Object.assign(Object.assign({},c&&{id:`${c}-${R.type.displayName}-subTitle`}),{key:"pf-chart-donut-subtitle",style:Es.label.subTitle,text:p,textAnchor:y==="right"?"start":"middle",verticalAnchor:"middle",x:nT({height:A,labelPosition:y,legendPosition:s,padding:j,width:T}),y:rT({dy:Z,height:A,labelPosition:y,padding:j,width:T})}),J))},X=({dy:Z=0,styles:R=Es.label.title,titles:J=S})=>{if(!J)return null;const U=O?O.props:{};return F.cloneElement(O,Object.assign(Object.assign(Object.assign(Object.assign({},Array.isArray(J)&&{capHeight:i}),c&&{id:`${c}-${O.type.displayName}-title`}),{key:"pf-chart-donut-title",style:R,text:J,textAnchor:"middle",verticalAnchor:"middle",x:nT({height:A,labelPosition:"center",legendPosition:s,padding:j,width:T}),y:rT({dy:Z,height:A,labelPosition:"center",padding:j,width:T})}),U))},ne=F.createElement(yv,Object.assign({allowTooltip:t,height:A,innerRadius:M>0?M:0,key:"pf-chart-donut-pie",legendAllowWrap:l,legendPosition:s,name:c,padAngle:u!==void 0?u:D,padding:f,radius:N>0?N:0,standalone:!1,theme:w,width:T},k)),re=F.cloneElement(a,Object.assign({desc:n,height:A,title:r,width:T,theme:w},a.props),[ne,I()]);return h?F.createElement(F.Fragment,null,re):F.createElement(F.Fragment,null,ne,I())};bd.displayName="ChartDonut",Ft(bd,yd);var tk;(function(e){e.centroid="centroid",e.endAngle="endAngle",e.startAngle="startAngle"})(tk||(tk={}));var nk;(function(e){e.horizontal="horizontal",e.vertical="vertical"})(nk||(nk={}));var rk;(function(e){e.bottom="bottom",e.right="right"})(rk||(rk={}));var ik;(function(e){e.ascending="ascending",e.descending="descending"})(ik||(ik={}));var ak;(function(e){e.bottom="bottom",e.center="center",e.right="right"})(ak||(ak={}));const _v=e=>{var{allowTooltip:t=!0,ariaDesc:n,ariaTitle:r,colorScale:i,containerComponent:a=F.createElement(Kn,null),data:o,invert:l=!1,isStatic:s=!0,legendPosition:c=Bt.legend.position,padding:u,standalone:f=!0,themeColor:d,themeVariant:h,thresholds:p,x:g,y,theme:_=kme(d),height:b=_.pie.height,width:S=_.pie.width}=e,O=ze(e,["allowTooltip","ariaDesc","ariaTitle","colorScale","containerComponent","data","invert","isStatic","legendPosition","padding","standalone","themeColor","themeVariant","thresholds","x","y","theme","height","width"]);const w=()=>{const M=A(),E=[{x:M[0]._x,y:M[0]._y||0}];return s&&E.push({y:M[0]._x?Math.abs(100-M[0]._y):100}),E},A=()=>{const M=[Object.assign({},o)];return kg(M,Object.assign({x:g,y},O),["x","y"]).sort((E,I)=>E._y-I._y)},T=()=>{const M=[];if(p){const E=bo(p,"value",l?"desc":"asc"),I=JA.thresholds.colorScale.length;for(let D=0;D<E.length;D++)M.push({color:E[D].color?E[D].color:JA.thresholds.colorScale[D%I],value:E[D].value})}return M},k=()=>{const M=Object.assign({},_),E=A();if(E){const I=T(),D=W=>{M.pie.colorScale instanceof Array?M.pie.colorScale[0]=I[W].color:M.pie.colorScale=I[W].color,M.legend.colorScale instanceof Array?M.legend.colorScale[0]=I[W].color:M.legend.colorScale=I[W].color};for(let W=0;W<I.length;W++)l?E[0]._y<=I[W].value&&D(W):E[0]._y>=I[W].value&&D(W)}return M},j=F.createElement(bd,Object.assign({allowTooltip:t,colorScale:i,data:w(),height:b,key:"pf-chart-donut-utilization",legendPosition:c,padding:u,standalone:!1,theme:k(),width:S},O)),N=F.cloneElement(a,Object.assign({desc:n,height:b,title:r,width:S,theme:_},a.props),[j]);return f?F.createElement(F.Fragment,null,N):F.createElement(F.Fragment,null,j)};_v.displayName="ChartDonutUtilization",Ft(_v,yd);const xv=e=>{var{dx:t=0,index:n=0,legendData:r,legendLabelComponent:i=F.createElement(vn,null),style:a,text:o,textAnchor:l="end",valueLabelComponent:s=F.createElement(vn,null),x:c,y:u}=e,f=ze(e,["dx","index","legendData","legendLabelComponent","style","text","textAnchor","valueLabelComponent","x","y"]);const d=_=>{const b=S=>ae(Object.assign({},S),{fill:Yn.label.fill});return Array.isArray(_)?_.map(b):b(_)},h=()=>{const _=r&&r.length?r[n].name:void 0;return F.cloneElement(i,{style:d({}),text:_,textAnchor:"start",x:c,y:u})},p=()=>{const _=c+fe(t);return F.cloneElement(s,Object.assign({style:d(a),text:o,textAnchor:l,x:_,y:u},f))},g=h(),y=p();return F.createElement(F.Fragment,null,g,y)};xv.displayName="ChartLegendTooltipLabel",Ft(xv,wt);const Sv=e=>{var{activePoints:t,center:n,datum:r,dx:i=0,dy:a=0,flyoutHeight:o,flyoutWidth:l,height:s,labelComponent:c=F.createElement(xv,null),legendComponent:u=F.createElement(Vo,null),legendData:f,patternScale:d,text:h,themeColor:p,themeVariant:g,title:y,titleComponent:_=F.createElement(vn,null),width:b,theme:S=rn(p)}=e,O=ze(e,["activePoints","center","datum","dx","dy","flyoutHeight","flyoutWidth","height","labelComponent","legendComponent","legendData","patternScale","text","themeColor","themeVariant","title","titleComponent","width","theme"]);const w=S&&S.tooltip?fe(S.tooltip.pointerLength):10,A=jT(u.props),T=rv({activePoints:t,colorScale:A.colorScale,legendData:f,text:h,theme:S}),k=0,j=y?5:-10,N=10,M=0,E=()=>{if(!(n||l||b)){const R=O.x;return R||void 0}const Z=fe(l);return b>n.x+Z+w?n.x+Yn.flyout.padding/2:n.x<Z+w?Yn.flyout.padding/2-w:n.x-Z},I=()=>{if(!(n||o||s)){const R=O.y;return R||void 0}const Z=fe(o);return n.y<Z/2?Yn.flyout.padding/2:n.y>s-Z/2?s-Z+Yn.flyout.padding/2:n.y-Z/2+Yn.flyout.padding/2},D=nv({legendData:T,legendProps:A,text:MT({activePoints:t,legendData:f,text:h}),theme:S}),W=nv({legendData:[{name:""}],legendProps:A,theme:S}),X=()=>F.cloneElement(c,Object.assign({dx:D.width-W.width,legendData:T},c.props)),ne=()=>{const Z=y instanceof Function?y(r):y;return F.cloneElement(_,Object.assign({style:{fill:Yn.label.fill,fontWeight:Yn.label.fontWeight},text:Z,textAnchor:"start",x:E()+N+fe(i),y:I()+M+fe(a)},_.props))},re=()=>F.cloneElement(u,Object.assign({data:rv({activePoints:t,colorScale:A.colorScale,legendData:f,patternScale:d,text:h,textAsLegendData:!0,theme:S}),labelComponent:X(),patternScale:d,standalone:!1,theme:S,x:E()+k+fe(i),y:I()+j+fe(a)},A));return F.createElement(F.Fragment,null,ne(),re())};Sv.displayName="ChartLegendTooltipContent",Ft(Sv,js,{getBaseProps:!0});const wv=e=>{var{activePoints:t,datum:n,center:r={x:0,y:0},flyoutHeight:i,flyoutWidth:a,height:o,isCursorTooltip:l=!0,labelComponent:s=F.createElement(Sv,null),legendData:c,patternScale:u,text:f,themeColor:d,themeVariant:h,title:p,width:g,theme:y=rn(d)}=e,_=ze(e,["activePoints","datum","center","flyoutHeight","flyoutWidth","height","isCursorTooltip","labelComponent","legendData","patternScale","text","themeColor","themeVariant","title","width","theme"]);const b=y&&y.tooltip?fe(y.tooltip.pointerLength):10,S=()=>({legendData:rv({activePoints:t,legendData:c,text:f,theme:y}),legendProps:jT(s.props.legendComponent?s.props.legendComponent.props:void 0),text:MT({activePoints:t,legendData:c,text:f}),theme:y}),O=({height:k})=>{const j=k+Yn.flyout.padding;return p?j:j-10},w=({width:k})=>k+Yn.flyout.padding,A=k=>F.cloneElement(s,Object.assign({center:r,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,legendData:c,patternScale:u,title:p,width:g},s.props));return(()=>{const k=nv(S());if(k.height===0&&k.width===0)return null;const j=w(k),N=l?F.createElement(rd,null):F.createElement(Ps,null);return F.cloneElement(N,Object.assign(Object.assign(Object.assign({activePoints:t,center:r,datum:n,flyoutHeight:i||O(k),flyoutWidth:a||w(k),height:o,labelComponent:A(k)},a===void 0&&{showPointer:g>j+r.x+b||r.x>j+b}),{text:f,theme:y,width:g}),_))})()};wv.displayName="ChartLegendTooltip",Ft(wv,Dr);var W0e=function(e){var t=Gt(e);t.length<2&&(t=[]);var n={x:xt(e,"x"),y:xt(e,"y")},r={x:Sa(e,"x"),y:Sa(e,"y")},i={x:Wn(e,"x").domain(r.x).range(e.horizontal?n.y:n.x),y:Wn(e,"y").domain(r.y).range(e.horizontal?n.x:n.y)},a=e.polar?e.origin||as(e):void 0,o=bu(e,"line"),l=is(e.style,o);return{domain:r,data:t,scale:i,style:l,origin:a}},R0e=function(e,t){var n=St(e,t,"line");e=B({},n,W0e(n));var r=e,i=r.data,a=r.domain,o=r.events,l=r.groupComponent,s=r.height,c=r.horizontal,u=r.interpolation,f=r.origin,d=r.padding,h=r.polar,p=r.scale,g=r.sharedEvents,y=r.standalone,_=r.style,b=r.theme,S=r.width,O=r.labels,w=r.name,A=r.disableInlineStyles,T={parent:{style:_.parent,scale:p,data:i,height:s,width:S,name:w,domain:a,standalone:y,polar:h,origin:f,padding:d,horizontal:c},all:{data:{horizontal:c,polar:h,origin:f,scale:p,data:i,interpolation:u,groupComponent:l,style:A?{}:_.data,theme:b,disableInlineStyles:A}}};return i.reduce(function(k,j,N){var M=Vu(e,j,N);if(M!=null||O&&(o||g)){var E=ba(j.eventKey)?N:j.eventKey;k[E]={labels:Q0(e,N)}}return k},T)};function ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){V0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var H0e=function(e){var t=fe(e.ariaLabel,e),n=fe(e.id,e),r=Xe(B({fill:"none",stroke:"black",pointerEvents:"stroke"},e.style),e),i=fe(e.tabIndex,e);return B({},e,{ariaLabel:t,id:n,style:r,tabIndex:i})},Ov=function(e){e=H0e(e);var t=ur(e),n=e,r=n.polar,i=n.origin,a=xC(e),o=r&&i?"translate(".concat(i.x,", ").concat(i.y,")"):void 0,l=a(e.data);return x.cloneElement(e.pathComponent,Ms(Ms(Ms({},e.events),t),{},{"aria-label":e.ariaLabel,d:l,style:e.style,transform:e.transform||o,className:e.className,role:e.role,shapeRendering:e.shapeRendering,clipPath:e.clipPath,tabIndex:e.tabIndex}))};Ov.propTypes=Ms(Ms({},Ot.primitiveProps),{},{interpolation:m.oneOfType([m.string,m.func]),openCurve:m.bool,origin:m.shape({x:m.number.isRequired,y:m.number.isRequired}),pathComponent:m.element,polar:m.bool}),Ov.defaultProps={pathComponent:x.createElement(Li,null),role:"presentation",shapeRendering:"auto"};function lk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(r){U0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function U0e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G0e(e,t,n){return t&&sk(e.prototype,t),n&&sk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Av(e,t)}function Av(e,t){return Av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Av(e,t)}function K0e(e){var t=J0e();return function(){var r=_d(e),i;if(t){var a=_d(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Z0e(this,i)}}function Z0e(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X0e(e)}function X0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J0e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _d(e){return _d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_d(e)}var ck={width:450,height:300,padding:50,interpolation:"linear"},Q0e={components:[{name:"parent",index:"parent"},{name:"data",index:"all"},{name:"labels"}]},Tn=function(e){Y0e(n,e);var t=K0e(n);function n(r){return q0e(this,n),t.call(this,r)}return G0e(n,[{key:"shouldAnimate",value:function(){return!!this.props.animate}},{key:"render",value:function(){var i=n.animationWhitelist,a=n.role,o=St(this.props,ck,a);if(this.shouldAnimate())return this.animateComponent(o,i);var l=this.renderContinuousData(o),s=o.standalone?this.renderContainer(o.containerComponent,l):l;return Nu(s,o)}}]),n}(x.Component);Tn.animationWhitelist=["data","domain","height","padding","samples","style","width"],Tn.displayName="VictoryLine",Tn.role="line",Tn.defaultTransitions=xO(),Tn.defaultPolarTransitions=SO(),Tn.continuous=!0,Tn.propTypes=Cv(Cv(Cv({},Ot.baseProps),Ot.dataProps),{},{interpolation:m.oneOfType([m.oneOf(["basis","bundle","cardinal","catmullRom","linear","monotoneX","monotoneY","natural","step","stepAfter","stepBefore"]),m.func]),label:VS(m.string,"Use `labels` instead for individual data labels")}),Tn.defaultProps={containerComponent:x.createElement(Ve,null),dataComponent:x.createElement(Ov,null),labelComponent:x.createElement(wt,{renderInPortal:!0}),groupComponent:x.createElement(ya,null),samples:50,sortKey:"x",sortOrder:"ascending",standalone:!0,theme:Pr.grayscale},Tn.getDomain=Sa,Tn.getData=Gt,Tn.getBaseProps=function(e){return R0e(e,ck)},Tn.expectedComponents=["dataComponent","labelComponent","groupComponent","containerComponent"];var uk=xa(Tn,Q0e),fk;(function(e){e.ascending="ascending",e.descending="descending"})(fk||(fk={}));const Tv=e=>{var{containerComponent:t=F.createElement(Kn,null),themeColor:n,themeVariant:r,theme:i=rn(n)}=e,a=ze(e,["containerComponent","themeColor","themeVariant","theme"]);const o=F.cloneElement(t,Object.assign({theme:i},t.props));return F.createElement(uk,Object.assign({containerComponent:o,theme:i},a))};Tv.displayName="ChartLine",Ft(Tv,uk);function ege(e,t){return ige(e)||rge(e,t)||nge(e,t)||tge()}function tge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
330
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nge(e,t){if(e){if(typeof e=="string")return dk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dk(e,t)}}function dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function ige(e){if(Array.isArray(e))return e}function hk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hk(Object(n),!0).forEach(function(r){age(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function age(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gk={width:450,height:300,padding:50};function oge(e,t){var n=e.fillInMissingData,r=t.reduce(function(o,l){return l.forEach(function(s){o[s._x instanceof Date?s._x.getTime():s._x]=!0}),o},{}),i=Ze(r).map(function(o){return Number(o)}),a=bo(i);return t.map(function(o){var l=0,s=o[0]&&o[0]._x instanceof Date,c=a.map(function(u,f){u=Number(u);var d=o[f-l];if(d){var h=s?d._x.getTime():d._x;if(h===u)return d;l++;var p=n?0:null;return u=s?new Date(u):u,{x:u,y:p,_x:u,_y:p}}var g=n?0:null;return u=s?new Date(u):u,{x:u,y:g,_x:u,_y:g}});return c})}function lge(e,t,n){if(e.y0)return e.y0;var r=e._y,i=e._group,a=n[0].map(function(c){return c.y0}),o=n.slice(0,t),l=o.reduce(function(c,u){return c.concat(u.filter(function(f){return e._x instanceof Date?f._x.getTime()===e._x.getTime():f._x===e._x}).map(function(f){return f._y||0}))},[]),s=l.length&&l.reduce(function(c,u){var f=r<0&&u<0||r>=0&&u>=0;return f?Number(u)+c:c},a[i]||0);return l.some(function(c){return c instanceof Date})?new Date(s):s}function sge(e,t,n){var r=e.xOffset||0;return t[n].map(function(i){var a=lge(i,n,t)||0;return B({},i,{_y0:i._y instanceof Date?a?new Date(a):i._y:a,_y1:i._y===null?null:i._y instanceof Date?new Date(Number(i._y)+Number(a)):i._y+a,_x1:i._x===null?null:i._x instanceof Date?new Date(Number(i._x)+Number(r)):i._x+r})})}function cge(e,t){var n=Hte(e,t),r=n.map(function(a){return a.filter(function(o){return o._x!==null&&o._y!==null})}),i=oge(e,r);return i.map(function(a,o){return sge(e,i,o)})}function pk(e,t){t=t||x.Children.toArray(e.children);var n="stack";e=St(e,gk,n);var r=Gte(e.theme,e.style,n),i=e.categories||jC(e,t),a=e.datasets||cge(e,t),o=t.map(function(p,g){return x.cloneElement(p,{data:a[g]})}),l={x:np(B({},e,{categories:i}),"x",o),y:np(B({},e,{categories:i}),"y",o)},s=e.range||{x:xt(e,"x"),y:xt(e,"y")},c={x:gs(e,"x")||Mf(e,"x"),y:gs(e,"y")||Mf(e,"y")},u={x:c.x.domain(l.x).range(e.horizontal?s.y:s.x),y:c.y.domain(l.y).range(e.horizontal?s.x:s.y)},f=e,d=f.colorScale,h=f.horizontal;return{datasets:a,categories:i,range:s,domain:l,horizontal:h,scale:u,style:r,colorScale:d,role:n}}var uge=function(e){var t=e.children,n=x.Children.toArray(t).map(function(r){var i=r;return mk(mk({},i),{},{props:wo(i.props,["sharedEvents"])})});return e.children=n,e};function fge(e){var t=uge(e),n=x.useState(t),r=ege(n,2),i=r[0],a=r[1];return x.useEffect(function(){fn(t,i)||a(t)},[i,a,t]),x.useMemo(function(){return pk(i,i.children)},[i])}function dge(e,t,n){if(e.labels)return t.length===n+1?e.labels:void 0}function hge(e,t){var n=t.categories,r=t.domain,i=t.range,a=t.scale,o=t.horizontal;return{height:e.height,width:e.width,padding:lt(e),standalone:!1,theme:e.theme,categories:n,domain:r,range:i,scale:a,horizontal:o}}function mge(e,t){var n=t.type&&t.type.role,r=t.props.colorScale||e.colorScale;if(!(n!=="group"&&n!=="stack"))return e.theme?r||e.theme.props.colorScale:r}function vk(e,t,n){e=St(e,gk,"stack"),t=t||x.Children.toArray(e.children),n=n||pk(e,t);var r=n,i=r.datasets,a=hge(e,n),o=e.name||"stack";return t.map(function(l,s){var c=l.type&&l.type.role,u=i[s],f=Yte(l,s,n),d=e.labels?dge(e,i,s):l.props.labels,h=l.props.name||"".concat(o,"-").concat(c,"-").concat(s);return x.cloneElement(l,B({key:"".concat(h,"-key-").concat(s),labels:d,name:h,domainPadding:l.props.domainPadding||e.domainPadding,theme:e.theme,labelComponent:e.labelComponent||l.props.labelComponent,style:f,colorScale:mge(e,l),data:u,polar:e.polar},a))})}function yk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function bk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yk(Object(n),!0).forEach(function(r){gge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gge(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pge={width:450,height:300,padding:50},kv=function(e){var t=xd.role,n=kO(),r=n.setAnimationState,i=n.getAnimationProps,a=n.getProps,o=a(e),l=St(o,pge,t),s=l.eventKey,c=l.containerComponent,u=l.standalone,f=l.groupComponent,d=l.externalEventMutations,h=l.width,p=l.height,g=l.theme,y=l.polar,_=l.horizontal,b=l.name,S=x.Children.toArray(l.children),O=fge(l),w=O.domain,A=O.scale,T=O.style,k=x.useMemo(function(){var D=vk(o,S,O),W=D.map(function(X,ne){var re=B({animate:i(o,X,ne)},X.props);return x.cloneElement(X,re)});return W.reverse()},[o,S,O,i]),j=x.useMemo(function(){return u?{domain:w,scale:A,width:h,height:p,standalone:u,theme:g,style:T.parent,horizontal:_,polar:y,name:b}:{}},[u,w,A,h,p,g,T,_,y,b]),N=x.useMemo(function(){return ur(e)},[e]),M=x.useMemo(function(){if(u){var D=ae({},c.props,j,N);return x.cloneElement(c,D)}return x.cloneElement(f,N)},[f,u,c,j,N]),E=x.useMemo(function(){return kC(o)},[o]),I=wO(e);return x.useEffect(function(){return function(){e.animate&&r(I,e)}},[r,I,e]),rt(E)?x.cloneElement(M,M.props,k):x.createElement(Aa,{container:M,eventKey:s,events:E,externalEventMutations:d},k)};kv.propTypes=bk(bk({},Ot.baseProps),{},{bins:m.oneOfType([m.arrayOf(m.oneOfType([_e,m.instanceOf(Date)])),_e]),categories:m.oneOfType([m.arrayOf(m.string),m.shape({x:m.arrayOf(m.string),y:m.arrayOf(m.string)})]),children:m.oneOfType([m.arrayOf(m.node),m.node]),colorScale:m.oneOfType([m.arrayOf(m.string),m.oneOf(["grayscale","qualitative","heatmap","warm","cool","red","green","blue"])]),fillInMissingData:m.bool,horizontal:m.bool,labelComponent:m.element,labels:m.oneOfType([m.func,m.array]),style:m.shape({parent:m.object,data:m.object,labels:m.object}),xOffset:m.number}),kv.defaultProps={containerComponent:x.createElement(Ve,null),groupComponent:x.createElement("g",null),standalone:!0,theme:Pr.grayscale,fillInMissingData:!0};var vge={role:"stack",expectedComponents:["groupComponent","containerComponent","labelComponent"],getChildren:vk},xd=Object.assign(x.memo(kv,fn),vge);xd.displayName="VictoryStack";const Sd=e=>{var{ariaDesc:t,ariaTitle:n,children:r,colorScale:i,containerComponent:a=F.createElement(Kn,null),hasPatterns:o,patternScale:l,themeColor:s,themeVariant:c,theme:u=rn(s)}=e,f=ze(e,["ariaDesc","ariaTitle","children","colorScale","containerComponent","hasPatterns","patternScale","themeColor","themeVariant","theme"]);const d=F.cloneElement(a,Object.assign(Object.assign({desc:t,title:n,theme:u},a.props),{className:Gp({className:a.props.className})})),{defaultPatternScale:h}=Qp({colorScale:i,hasPatterns:o,patternScale:l,themeColorScale:u.stack.colorScale});return F.createElement(xd,Object.assign({colorScale:i,containerComponent:d,theme:u},f),Pfe({children:r,patternScale:h}))};Sd.displayName="ChartStack",Ft(Sd,xd);function yge(e){return e.horizontal?v.jsx(bge,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(_ge,{children:[v.jsx(_k,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,color:t.color}),e.showLegendCount==!1?null:v.jsx(xk,{count:t.count}),v.jsx(Sk,{label:t.label,link:t.link})]},n))}):v.jsx(xge,{children:e.legend.map((t,n)=>t.count===0&&e.allowZero!=!0?v.jsx(x.Fragment,{},n):v.jsxs(x.Fragment,{children:[v.jsx(_k,{color:t.color}),e.showLegendCount==!1?null:v.jsx(xk,{id:`${e.id}-${t.label.toLowerCase().replace(/ /g,"-")}-count`,count:t.count}),v.jsx(Sk,{label:t.label,link:t.link})]},n))})}function _k(e){return v.jsx(Sge,{id:e.id,style:{backgroundColor:e.color}})}function xk(e){return v.jsx(wge,{id:e.id,children:e.count})}function Sk(e){return v.jsx(Oge,{children:e.link?v.jsx($t.Link,{to:e.link,style:{textDecoration:"none"},children:e.label}):e.label})}const bge=Le.div`
331
331
  display: flex;
332
332
  flex-wrap: wrap;
333
333
  flex-direction: row;
@@ -377,7 +377,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
377
377
  row-gap: 16px;
378
378
  justify-content: end;
379
379
  }
380
- `;function Bk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:c,openColumnModal:u,bottomBorder:f,sort:d,setSort:h,sortDirection:p,setSortDirection:g,sortOptions:y,clearAllFilters:_}=e,b=x.useCallback(()=>{_?_():c&&c({})},[c,_]),S=cn("md"),{viewType:O,setViewType:w}=e;let{toolbarActions:A}=e;A=A??[];const T=x.useCallback((D,I)=>i?i(I):null,[i]),k=x.useCallback((D,I)=>a?a(I):null,[a]),P=o!==void 0,N=A!==void 0&&A.length>0,M=e.showSelect===!0||l!==void 0&&A&&A.find(D=>"selection"in D&&D.selection===ot.Multiple);return M||P||N?t===void 0?v.jsx(C.Toolbar,{className:"page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},children:v.jsx(zk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:b,className:"page-table-toolbar",style:{paddingBottom:S?void 0:8,paddingTop:S?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(zk,{children:[M&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(Dk,{...e})})}),s&&c&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:c}),e.toolbarContent,v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Ua,{actions:A,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(Zge,{children:[v.jsx(qge,{sort:d,setSort:h,sortDirection:p,setSortDirection:g,sortOptions:y}),O&&w&&v.jsx(Kge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:O,setViewType:w,openColumnModal:u}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:T,onPerPageSelect:k,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Xge(e){const{t}=ut(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{isFullHeight:!0,children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Jge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,isFullHeight:!0,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{"data-cy":e.title,headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{"data-cy":e.description,children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Qge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Jge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i})}function jv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var u=Date.now()-o;u<t&&u>=0?r=setTimeout(s,t-u):(r=null,n||(l=e.apply(a,i),a=i=null))}var c=function(){a=this,i=arguments,o=Date.now();var u=n&&!r;return r||(r=setTimeout(s,t)),u&&(l=e.apply(a,i),a=i=null),l};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},c}jv.debounce=jv;var epe=jv;const tpe=Ae(epe);function npe(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:c}=Mv(e,t),{sorted:u,sort:f,setSort:d}=Dv(e),{filtered:h,setFilterFn:p}=Iv(u,t),{searched:g,search:y,setSearch:_,setSearchFn:b}=rpe(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(g),k=x.useCallback(()=>l(S),[S,l]),P=x.useCallback(()=>l(g),[g,l]);return x.useMemo(()=>({allSelected:c,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:g,selectAll:P,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:p,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:u,unselectAll:s,unselectItem:a}),[c,h,o,O,S,A,y,g,P,i,k,r,p,w,T,_,b,d,f,u,s,a])}function Mv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((p,g)=>(p[t(g)]=g,p),{}):{});x.useEffect(()=>{i(p=>{let g=!1;return e.forEach(y=>{const _=t(y);p[_]&&p[_]!==y&&(g=!0,p[_]=y)}),g?{...p}:p})},[e,t]);const a=x.useCallback(p=>{i(g=>{const y=t(p);return g[y]!==p&&(g={...g},g[y]=p),g})},[t]),o=x.useCallback(p=>{i(g=>{const y=t(p);return g[y]&&(g={...g},delete g[y]),g})},[t]),l=x.useCallback(p=>{const g=t(p);return r[g]!==void 0},[t,r]),s=x.useCallback(p=>{i(g=>{g={...g};for(const y of p){const _=t(y);g[_]=y}return g})},[t]),c=x.useCallback(()=>s(e),[e,s]),u=x.useCallback(p=>{for(const g of p)o(g)},[o]),f=x.useCallback(()=>{i(p=>Object.keys(p).length>0?{}:p)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:c,unselectAll:f,allSelected:h,keyFn:t,unselectItems:u}),[h,l,t,c,a,s,d,f,o,u])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let p=!1;const g=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(p=!0,h[O]=S),b},{}):{},y={};for(const b in h)g[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){p=!0;for(const b of _)delete h[b]}return p?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(p=>{const g=t(h);return p[g]!==h&&(p={...p},p[g]=h),p})},[t]),a=x.useCallback(h=>{r(p=>{const g=t(h);return p[g]&&(p={...p},delete p[g]),p})},[t]),o=x.useCallback(h=>{for(const p of h)a(p)},[a]),l=x.useCallback(h=>{const p=t(h);return n[p]!==void 0},[t,n]),s=x.useCallback(h=>{r(p=>{p={...p};for(const g of h){const y=t(g);p[y]=g}return p})},[t]),c=x.useCallback(()=>{s(e??[])},[e,s]),u=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:c,unselectAll:u,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,c,i,s,f,u,a,o])}function Dv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function Iv(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(c=>i(()=>c),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(c=>{const u=t(c);let f=n.current.map[u];return f?f.item!==c&&(f.item=c,f.passes=r?r(c):!0):(f={item:c,passes:r?r(c):!0},n.current.map[u]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function rpe(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[c,u]=x.useState(n??""),f=x.useCallback(tpe(h=>u(h),200),[]);x.useEffect(()=>{r.current.map={}},[c,i]);const d=x.useCallback(h=>{const p=t(h);let g=r.current.map[p];return g?g.item!==h&&(g.item=h,g.score=i?i(h,c):0):(g={item:h,score:i?i(h,c):0},r.current.map[p]=g),g},[t,i,c]);return x.useEffect(()=>{s(i&&c?e.map(d).filter(h=>h.score<.5).sort((h,p)=>h.score-p.score).map(h=>h.item):e)},[c,e,i,d]),x.useMemo(function(){return{searched:l,search:c,setSearch:f,setSearchFn:o}},[l,c,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let c=0;for(const u of s)if(l[c++]!==u)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const sOe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function ipe(e){const{t}=ut(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:c,selectAll:u,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[p,g]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=I=>{if(O.current){const W=O.current.getBoundingClientRect();return I.clientX>W.x&&I.clientX<W.x+W.width&&I.clientY>W.y&&I.clientY<W.y+W.height}return!1},A=I=>{w(I)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(I=>{I.classList.remove(Lv.modifiers.ghostRow),I.setAttribute("aria-pressed","false")}),_(null),g(null),S(!1)},k=I=>{I.preventDefault();const W=I.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const X=W.id,ne=Array.from(O.current.children).findIndex(re=>re.id===X);if(ne!==p&&y){const re=P([...i],y,ne);a(re)}}return null},P=(I,W,X)=>{const ne=I.findIndex(Z=>r(Z)===W);if(ne===X)return I;const re=I.splice(ne,1);return I.splice(X,0,re[0]),I},N=I=>{w(I)||g(null)},M=I=>{const W=I.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),g(null),S(!1)},j=I=>{if(O.current){I.dataTransfer.effectAllowed="move";const W=I.currentTarget.id,X=Array.from(O.current.children).findIndex(ne=>ne.id===I.currentTarget.id);I.currentTarget.setAttribute("aria-pressed","true"),_(W),g(X)}},D=x.useCallback(I=>{const W=i.findIndex(ne=>r(ne)===r(I)),X=[...i];X[W]=I,a(X)},[i,a,r]);return v.jsxs(Me.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(Me.Thead,{children:v.jsxs(Me.Tr,{children:[v.jsx(Me.Th,{}),h&&v.jsx(Me.Th,{select:{onSelect:(I,W)=>{W?u():f()},isSelected:c}}),n.map((I,W)=>v.jsx(Me.Th,{children:I.header},W))]})}),v.jsx(Me.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((I,W)=>{const X=r(I);return v.jsxs(Me.Tr,{id:X.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:j,children:[v.jsx(Me.Td,{draggableRow:{id:`draggable-row-${X.toString()}`}}),h&&v.jsx(Me.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(ne,re)=>{re?l(I):s(I)},isSelected:o(I)}}),n.map(ne=>v.jsx(Me.Td,{children:ne.cell(I,D)},ne.header))]},X)})})]})}function ape(e){const[t,n]=_r(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(p=>typeof p=="object")&&h.every(p=>"key"in p&&"enabled"in p))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(p=>p.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const p=o.findIndex(y=>y.key===r(d)),g=o.findIndex(y=>y.key===r(h));return p===-1&&g===-1?0:p===-1?1:g===-1?-1:p-g}):e.items,[o,r,a,e.items]),c=x.useMemo(()=>o?s.filter(d=>{const h=o.find(p=>p.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),u=x.useCallback((d,h)=>{const p=d.map(g=>({key:r(g),enabled:h.includes(g),state:i?i(g):void 0}));l(p),localStorage.setItem(e.id,JSON.stringify(p))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(ope,{...e,keyFn:r,items:s,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function ope(e){const{t}=ut(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=_r(),c=()=>s(void 0),[u,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:p,unselectItem:g,allSelected:y,selectAll:_,unselectAll:b}=Mv(u,o,e.defaultSelectedItems),S=()=>{a(u,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,ouiaId:n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:c,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(ipe,{keyFn:o,items:u,setItems:f,columns:i,isSelected:h,selectItem:p,unselectItem:g,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function lpe(e,t,n,r,i){const{t:a}=ut(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(Dn,{value:d.table??"",onSelect:p=>{switch(p){case"":h({...d,table:void 0});break;case Vi.Description:case Vi.Expanded:case Vi.Hidden:h({...d,table:p});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Vi.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Vi.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Vi.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(Dn,{value:d.list??"",onSelect:p=>{switch(p){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:p});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(Dn,{value:d.card??"",onSelect:p=>{switch(p){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:p});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:p}=f;return{table:d,list:h,card:p}},[]),{openManageItems:c,managedItems:u}=ape({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}const cOe="";function spe(){return v.jsx(Me.TableComposable,{gridBreakPoint:"",className:"page-table",children:v.jsx(Me.Tbody,{children:new Array(10).fill(0).map((e,t)=>v.jsx(Me.Tr,{children:v.jsx(Me.Td,{children:v.jsx(C.Skeleton,{height:"27px"})})},t))})})}function cpe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!cn("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}function upe(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);so(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const fpe=Le.small`
380
+ `;function Bk(e){const{itemCount:t,page:n,perPage:r,setPage:i,setPerPage:a,toolbarFilters:o,selectedItems:l,filterState:s,setFilterState:c,openColumnModal:u,bottomBorder:f,sort:d,setSort:h,sortDirection:p,setSortDirection:g,sortOptions:y,clearAllFilters:_,perPageOptions:b}=e,S=x.useCallback(()=>{_?_():c&&c({})},[c,_]),O=cn("md"),{viewType:w,setViewType:A}=e;let{toolbarActions:T}=e;T=T??[];const k=x.useCallback((D,W)=>i?i(W):null,[i]),j=x.useCallback((D,W)=>a?a(W):null,[a]),N=o!==void 0,M=T!==void 0&&T.length>0,E=e.showSelect===!0||l!==void 0&&T&&T.find(D=>"selection"in D&&D.selection===ot.Multiple);return E||N||M?t===void 0?v.jsx(C.Toolbar,{className:"page-table-toolbar",style:{paddingBottom:O?void 0:8,paddingTop:O?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},children:v.jsx(zk,{children:v.jsx(C.ToolbarItem,{style:{width:"100%"},children:v.jsx(C.Skeleton,{height:"36px"})})})}):v.jsx(C.Toolbar,{clearAllFilters:S,className:"page-table-toolbar",style:{paddingBottom:O?void 0:8,paddingTop:O?void 0:8,borderBottom:f?"thin solid var(--pf-global--BorderColor--100)":void 0},inset:{default:"insetMd",sm:"insetMd",md:"insetMd",lg:"insetMd",xl:"insetLg","2xl":"insetLg"},children:v.jsxs(zk,{children:[E&&v.jsx(C.ToolbarGroup,{children:v.jsx(C.ToolbarItem,{variant:"bulk-select",children:v.jsx(Dk,{...e})})}),s&&c&&v.jsx(Fk,{toolbarFilters:o,filterState:s,setFilterState:c}),e.toolbarContent,v.jsx(C.ToolbarGroup,{variant:"button-group",children:v.jsx(Ua,{actions:T,selectedItems:l,wrapper:C.ToolbarItem})}),v.jsxs(Zge,{children:[v.jsx(qge,{sort:d,setSort:h,sortDirection:p,setSortDirection:g,sortOptions:y}),w&&A&&v.jsx(Kge,{disableTableView:e.disableTableView,disableListView:e.disableListView,disableCardView:e.disableCardView,viewType:w,setViewType:A,openColumnModal:u}),!e.disablePagination&&v.jsx(C.ToolbarItem,{visibility:{default:"hidden","2xl":"visible"},style:{marginLeft:24,alignSelf:"center"},children:v.jsx(C.Pagination,{variant:C.PaginationVariant.top,isCompact:!0,itemCount:t,perPage:r,page:n,onSetPage:k,onPerPageSelect:j,perPageOptions:b,style:{marginTop:-8,marginBottom:-8}})})]})]})}):v.jsx(x.Fragment,{})}function Xge(e){const{t}=ut(),n=t("Something went wrong"),r=t("Please refresh the page by using the button below."),i=t("Refresh"),{titleProp:a,message:o}=e;return v.jsxs(C.EmptyState,{isFullHeight:!0,children:[v.jsx(C.EmptyStateIcon,{icon:Ce.ExclamationCircleIcon,color:"var(--pf-global--danger-color--100)"}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:a||n}),v.jsx(C.EmptyStateBody,{children:o}),v.jsx(C.EmptyStateBody,{children:r}),v.jsx(C.Button,{variant:"primary",onClick:()=>window.location.reload(),children:i})]})}function Jge(e){const{title:t,description:n,icon:r,button:i,footNote:a,image:o,variant:l,style:s}=e;return v.jsxs(C.EmptyState,{variant:l||C.EmptyStateVariant.full,style:s,isFullHeight:!0,children:[r&&v.jsx(C.EmptyStateIcon,{icon:r}),v.jsx(C.Title,{"data-cy":e.title,headingLevel:"h4",size:"lg",children:t}),v.jsx(C.EmptyStateBody,{"data-cy":e.description,children:n}),i&&v.jsx(C.EmptyStatePrimary,{children:i}),o&&v.jsxs(v.Fragment,{children:[" ",v.jsx("br",{})," ",v.jsx(C.EmptyStateBody,{children:o})]}),a&&v.jsx(C.EmptyStateBody,{children:a})]})}function Qge(e){const{button:t,description:n,title:r,variant:i}=e;return v.jsx(Jge,{icon:t?Ce.PlusCircleIcon:Ce.CubesIcon,title:r,description:n,button:t,variant:i})}function jv(e,t,n){var r,i,a,o,l;t==null&&(t=100);function s(){var u=Date.now()-o;u<t&&u>=0?r=setTimeout(s,t-u):(r=null,n||(l=e.apply(a,i),a=i=null))}var c=function(){a=this,i=arguments,o=Date.now();var u=n&&!r;return r||(r=setTimeout(s,t)),u&&(l=e.apply(a,i),a=i=null),l};return c.clear=function(){r&&(clearTimeout(r),r=null)},c.flush=function(){r&&(l=e.apply(a,i),a=i=null,clearTimeout(r),r=null)},c}jv.debounce=jv;var epe=jv;const tpe=Ae(epe);function npe(e,t,n){const{selectedItems:r,selectItem:i,unselectItem:a,isSelected:o,selectItems:l,unselectAll:s,allSelected:c}=Mv(e,t),{sorted:u,sort:f,setSort:d}=Dv(e),{filtered:h,setFilterFn:p}=Iv(u,t),{searched:g,search:y,setSearch:_,setSearchFn:b}=rpe(h,t,n==null?void 0:n.search),{paged:S,page:O,setPage:w,perPage:A,setPerPage:T}=Is(g),k=x.useCallback(()=>l(S),[S,l]),j=x.useCallback(()=>l(g),[g,l]);return x.useMemo(()=>({allSelected:c,filtered:h,isSelected:o,page:O,paged:S,perPage:A,search:y,searched:g,selectAll:j,selectItem:i,selectPage:k,selectedItems:r,setFilterFn:p,setPage:w,setPerPage:T,setSearch:_,setSearchFn:b,setSort:d,sort:f,sorted:u,unselectAll:s,unselectItem:a}),[c,h,o,O,S,A,y,g,j,i,k,r,p,w,T,_,b,d,f,u,s,a])}function Mv(e,t,n){const[r,i]=x.useState(()=>n?n.reduce((p,g)=>(p[t(g)]=g,p),{}):{});x.useEffect(()=>{i(p=>{let g=!1;return e.forEach(y=>{const _=t(y);p[_]&&p[_]!==y&&(g=!0,p[_]=y)}),g?{...p}:p})},[e,t]);const a=x.useCallback(p=>{i(g=>{const y=t(p);return g[y]!==p&&(g={...g},g[y]=p),g})},[t]),o=x.useCallback(p=>{i(g=>{const y=t(p);return g[y]&&(g={...g},delete g[y]),g})},[t]),l=x.useCallback(p=>{const g=t(p);return r[g]!==void 0},[t,r]),s=x.useCallback(p=>{i(g=>{g={...g};for(const y of p){const _=t(y);g[_]=y}return g})},[t]),c=x.useCallback(()=>s(e),[e,s]),u=x.useCallback(p=>{for(const g of p)o(g)},[o]),f=x.useCallback(()=>{i(p=>Object.keys(p).length>0?{}:p)},[]),d=x.useMemo(()=>Object.values(r),[r]),h=x.useMemo(()=>d.length===e.length,[e.length,d.length]);return x.useMemo(()=>({selectedItems:d,selectItem:a,unselectItem:o,isSelected:l,selectItems:s,selectAll:c,unselectAll:f,allSelected:h,keyFn:t,unselectItems:u}),[h,l,t,c,a,s,d,f,o,u])}function Wk(e,t){const[n,r]=x.useState({});x.useEffect(()=>{r(h=>{let p=!1;const g=e?e.reduce((b,S)=>{const O=t(S);return b[O]=S,h[O]&&h[O]!==S&&(p=!0,h[O]=S),b},{}):{},y={};for(const b in h)g[b]||(y[b]=!0);const _=Object.keys(y);if(_.length){p=!0;for(const b of _)delete h[b]}return p?{...h}:h})},[e,t]);const i=x.useCallback(h=>{r(p=>{const g=t(h);return p[g]!==h&&(p={...p},p[g]=h),p})},[t]),a=x.useCallback(h=>{r(p=>{const g=t(h);return p[g]&&(p={...p},delete p[g]),p})},[t]),o=x.useCallback(h=>{for(const p of h)a(p)},[a]),l=x.useCallback(h=>{const p=t(h);return n[p]!==void 0},[t,n]),s=x.useCallback(h=>{r(p=>{p={...p};for(const g of h){const y=t(g);p[y]=g}return p})},[t]),c=x.useCallback(()=>{s(e??[])},[e,s]),u=x.useCallback(()=>{r(h=>Object.keys(h).length>0?{}:h)},[]),f=x.useMemo(()=>Object.values(n),[n]),d=x.useMemo(()=>f.length===(e==null?void 0:e.length),[e,f.length]);return x.useMemo(()=>({selectedItems:f,selectItem:i,unselectItem:a,isSelected:l,selectItems:s,selectAll:c,unselectAll:u,allSelected:d,keyFn:t,unselectItems:o}),[d,l,t,c,i,s,f,u,a,o])}function Dv(e){const[t,n]=x.useState(),{direction:r,sortFn:i}=t??{},a=x.useMemo(()=>e?i?r==="asc"?[...e.sort(i)]:[...e.sort(i).reverse()]:e:[],[r,e,i]);return x.useMemo(()=>({sorted:a,sort:t,setSort:n}),[t,a])}function Iv(e,t){const n=x.useRef({map:{}}),[r,i]=x.useState(),a=x.useCallback(c=>i(()=>c),[]),[o,l]=x.useState([]);x.useEffect(()=>{n.current.map={}},[r]);const s=x.useCallback(c=>{const u=t(c);let f=n.current.map[u];return f?f.item!==c&&(f.item=c,f.passes=r?r(c):!0):(f={item:c,passes:r?r(c):!0},n.current.map[u]=f),f.passes},[r,t]);return x.useEffect(()=>{l(r?e.filter(s):e)},[e,r,s]),x.useMemo(function(){return{filtered:o,setFilterFn:a}},[o,a])}function rpe(e,t,n){const r=x.useRef({map:{}}),[i,a]=x.useState(),o=x.useCallback(h=>a(()=>h),[]),[l,s]=x.useState([]),[c,u]=x.useState(n??""),f=x.useCallback(tpe(h=>u(h),200),[]);x.useEffect(()=>{r.current.map={}},[c,i]);const d=x.useCallback(h=>{const p=t(h);let g=r.current.map[p];return g?g.item!==h&&(g.item=h,g.score=i?i(h,c):0):(g={item:h,score:i?i(h,c):0},r.current.map[p]=g),g},[t,i,c]);return x.useEffect(()=>{s(i&&c?e.map(d).filter(h=>h.score<.5).sort((h,p)=>h.score-p.score).map(h=>h.item):e)},[c,e,i,d]),x.useMemo(function(){return{searched:l,search:c,setSearch:f,setSearchFn:o}},[l,c,f,o])}function Is(e){const[t,n]=x.useState([]),[r,i]=x.useState(1),[a,o]=x.useState(10);return x.useEffect(()=>{n(l=>{const s=e.slice((r-1)*a,r*a);if(l.length!==s.length)return s;let c=0;for(const u of s)if(l[c++]!==u)return s;return l})},[r,a,e]),x.useEffect(()=>{r>Math.ceil(e.length/a)&&i(1)},[r,a,e.length]),x.useMemo(()=>({paged:t,page:r,setPage:i,perPage:a,setPerPage:o}),[r,t,a])}const sOe="",Lv={button:"pf-c-button",modifiers:{hidden:"pf-m-hidden",hiddenOnSm:"pf-m-hidden-on-sm",visibleOnSm:"pf-m-visible-on-sm",hiddenOnMd:"pf-m-hidden-on-md",visibleOnMd:"pf-m-visible-on-md",hiddenOnLg:"pf-m-hidden-on-lg",visibleOnLg:"pf-m-visible-on-lg",hiddenOnXl:"pf-m-hidden-on-xl",visibleOnXl:"pf-m-visible-on-xl",hiddenOn_2xl:"pf-m-hidden-on-2xl",visibleOn_2xl:"pf-m-visible-on-2xl",fixed:"pf-m-fixed",stickyHeader:"pf-m-sticky-header",nestedColumnHeader:"pf-m-nested-column-header",borderRow:"pf-m-border-row",striped:"pf-m-striped",expandable:"pf-m-expandable",stripedEven:"pf-m-striped-even",ghostRow:"pf-m-ghost-row",center:"pf-m-center",help:"pf-m-help",favorite:"pf-m-favorite",borderRight:"pf-m-border-right",borderLeft:"pf-m-border-left",truncate:"pf-m-truncate",wrap:"pf-m-wrap",nowrap:"pf-m-nowrap",fitContent:"pf-m-fit-content",breakWord:"pf-m-break-word",noBorderRows:"pf-m-no-border-rows",expanded:"pf-m-expanded",hoverable:"pf-m-hoverable",selected:"pf-m-selected",firstCellOffsetReset:"pf-m-first-cell-offset-reset",dragOver:"pf-m-drag-over",favorited:"pf-m-favorited",noPadding:"pf-m-no-padding",compact:"pf-m-compact",width_10:"pf-m-width-10",width_15:"pf-m-width-15",width_20:"pf-m-width-20",width_25:"pf-m-width-25",width_30:"pf-m-width-30",width_35:"pf-m-width-35",width_40:"pf-m-width-40",width_45:"pf-m-width-45",width_50:"pf-m-width-50",width_60:"pf-m-width-60",width_70:"pf-m-width-70",width_80:"pf-m-width-80",width_90:"pf-m-width-90",width_100:"pf-m-width-100"},table:"pf-c-table",tableAction:"pf-c-table__action",tableButton:"pf-c-table__button",tableButtonContent:"pf-c-table__button-content",tableCheck:"pf-c-table__check",tableColumnHelp:"pf-c-table__column-help",tableColumnHelpAction:"pf-c-table__column-help-action",tableCompoundExpansionToggle:"pf-c-table__compound-expansion-toggle",tableControlRow:"pf-c-table__control-row",tableDraggable:"pf-c-table__draggable",tableExpandableRow:"pf-c-table__expandable-row",tableExpandableRowContent:"pf-c-table__expandable-row-content",tableFavorite:"pf-c-table__favorite",tableIcon:"pf-c-table__icon",tableIconInline:"pf-c-table__icon-inline",tableInlineEditAction:"pf-c-table__inline-edit-action",tableSort:"pf-c-table__sort",tableSortIndicator:"pf-c-table__sort-indicator",tableSubhead:"pf-c-table__subhead",tableText:"pf-c-table__text",tableToggle:"pf-c-table__toggle",tableToggleIcon:"pf-c-table__toggle-icon",themeDark:"pf-theme-dark"};function ipe(e){const{t}=ut(),{columns:n,keyFn:r,items:i,setItems:a,isSelected:o,selectItem:l,unselectItem:s,allSelected:c,selectAll:u,unselectAll:f,hideColumnHeaders:d,isSelectableWithCheckbox:h}=e,[p,g]=x.useState(null),[y,_]=x.useState(null),[b,S]=x.useState(!1),O=x.useRef(null),w=D=>{if(O.current){const W=O.current.getBoundingClientRect();return D.clientX>W.x&&D.clientX<W.x+W.width&&D.clientY>W.y&&D.clientY<W.y+W.height}return!1},A=D=>{w(D)||T()},T=()=>{O.current&&Array.from(O.current.children).forEach(D=>{D.classList.remove(Lv.modifiers.ghostRow),D.setAttribute("aria-pressed","false")}),_(null),g(null),S(!1)},k=D=>{D.preventDefault();const W=D.target.closest("tr");if(!W||!(O.current&&O.current.contains(W))||W.id===y)return null;{const X=W.id,ne=Array.from(O.current.children).findIndex(re=>re.id===X);if(ne!==p&&y){const re=j([...i],y,ne);a(re)}}return null},j=(D,W,X)=>{const ne=D.findIndex(Z=>r(Z)===W);if(ne===X)return D;const re=D.splice(ne,1);return D.splice(X,0,re[0]),D},N=D=>{w(D)||g(null)},M=D=>{const W=D.target;W.classList.remove(Lv.modifiers.ghostRow),W.setAttribute("aria-pressed","false"),_(null),g(null),S(!1)},E=D=>{if(O.current){D.dataTransfer.effectAllowed="move";const W=D.currentTarget.id,X=Array.from(O.current.children).findIndex(ne=>ne.id===D.currentTarget.id);D.currentTarget.setAttribute("aria-pressed","true"),_(W),g(X)}},I=x.useCallback(D=>{const W=i.findIndex(ne=>r(ne)===r(D)),X=[...i];X[W]=D,a(X)},[i,a,r]);return v.jsxs(Me.TableComposable,{"aria-label":t("Table with draggable rows"),className:b?Lv.modifiers.dragOver:"",variant:"compact",gridBreakPoint:"",children:[!d&&v.jsx(Me.Thead,{children:v.jsxs(Me.Tr,{children:[v.jsx(Me.Th,{}),h&&v.jsx(Me.Th,{select:{onSelect:(D,W)=>{W?u():f()},isSelected:c}}),n.map((D,W)=>v.jsx(Me.Th,{children:D.header},W))]})}),v.jsx(Me.Tbody,{ref:O,onDragOver:k,onDragLeave:N,children:i.map((D,W)=>{const X=r(D);return v.jsxs(Me.Tr,{id:X.toString(),draggable:!0,onDrop:A,onDragEnd:M,onDragStart:E,children:[v.jsx(Me.Td,{draggableRow:{id:`draggable-row-${X.toString()}`}}),h&&v.jsx(Me.Td,{select:{rowIndex:W,variant:"checkbox",onSelect:(ne,re)=>{re?l(D):s(D)},isSelected:o(D)}}),n.map(ne=>v.jsx(Me.Td,{children:ne.cell(D,I)},ne.header))]},X)})})]})}function ape(e){const[t,n]=_r(),[r]=x.useState(()=>e.keyFn),[i]=x.useState(()=>e.saveFn),[a]=x.useState(()=>e.loadFn),[o,l]=x.useState(()=>{try{const d=localStorage.getItem(e.id);if(typeof d=="string"){const h=JSON.parse(d);if(Array.isArray(h)&&h.every(p=>typeof p=="object")&&h.every(p=>"key"in p&&"enabled"in p))return h}}catch{}}),s=x.useMemo(()=>o?e.items.map(d=>{if(a){const h=o.find(p=>p.key===r(d));h&&h.state&&a(d,h.state)}return d}).sort((d,h)=>{const p=o.findIndex(y=>y.key===r(d)),g=o.findIndex(y=>y.key===r(h));return p===-1&&g===-1?0:p===-1?1:g===-1?-1:p-g}):e.items,[o,r,a,e.items]),c=x.useMemo(()=>o?s.filter(d=>{const h=o.find(p=>p.key===r(d));return h?h.enabled:!0}):s,[s,o,r]),u=x.useCallback((d,h)=>{const p=d.map(g=>({key:r(g),enabled:h.includes(g),state:i?i(g):void 0}));l(p),localStorage.setItem(e.id,JSON.stringify(p))},[r,e.id,i]);return{openManageItems:()=>n(v.jsx(ope,{...e,keyFn:r,items:s,defaultSelectedItems:c,onApplyChanges:u})),managedItems:c}}function ope(e){const{t}=ut(),{title:n,description:r,columns:i,onApplyChanges:a}=e,[o]=x.useState(()=>e.keyFn),[l,s]=_r(),c=()=>s(void 0),[u,f]=x.useState(()=>e.items),{selectedItems:d,isSelected:h,selectItem:p,unselectItem:g,allSelected:y,selectAll:_,unselectAll:b}=Mv(u,o,e.defaultSelectedItems),S=()=>{a(u,d),s(void 0)};return v.jsxs(C.Modal,{title:n,"aria-label":n,ouiaId:n,description:v.jsx("div",{style:{marginBottom:16},children:r}),variant:e.variant??C.ModalVariant.medium,isOpen:!0,onClose:c,actions:[v.jsx(C.Button,{variant:"primary",onClick:S,children:t`Apply`},"apply"),v.jsx(C.Button,{variant:"link",onClick:c,children:t`Cancel`},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.Divider,{}),v.jsx(C.ModalBoxBody,{style:{padding:0},children:v.jsx(ipe,{keyFn:o,items:u,setItems:f,columns:i,isSelected:h,selectItem:p,unselectItem:g,allSelected:y,selectAll:_,unselectAll:b,hideColumnHeaders:e.hideColumnHeaders,isSelectableWithCheckbox:e.hideSelection!==!0})}),v.jsx(C.Divider,{})]})}function lpe(e,t,n,r,i){const{t:a}=ut(),o=x.useMemo(()=>{const f=[{header:a("Column Name"),cell:d=>d.header}];return n||f.push({header:a("Table View"),cell:(d,h)=>v.jsx(Dn,{value:d.table??"",onSelect:p=>{switch(p){case"":h({...d,table:void 0});break;case Vi.Description:case Vi.Expanded:case Vi.Hidden:h({...d,table:p});break}},placeholder:a("Column"),options:[{value:"",label:a("Column"),description:a("Show the column in the table.")},{value:Vi.Description,label:a("Description"),description:a("Show the column when the item is expanded as a full width description.")},{value:Vi.Expanded,label:a("Expanded"),description:a("Show the column when the item is expanded as a detail.")},{value:Vi.Hidden,label:a("Hidden"),description:a("Hide the column.")}]})}),r||f.push({header:a("List View"),cell:(d,h)=>v.jsx(Dn,{value:d.list??"",onSelect:p=>{switch(p){case"":h({...d,list:void 0});break;case"name":case"subtitle":case"description":case"primary":case"secondary":case"hidden":h({...d,list:p});break}},options:[{value:"name",label:a("Name"),description:a("Show the column as the name of the list item.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the list.")},{value:"description",label:a("Description"),description:a("Show the column as the list item description.")},{value:"",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"primary",label:a("Left side"),description:a("Show the column on the left side of the list.")},{value:"secondary",label:a("Right side"),description:a("Show the column on the right side of the list.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the list.")}],placeholder:a("Left side")})}),i||f.push({header:a("Card View"),cell:(d,h)=>v.jsx(Dn,{value:d.card??"",onSelect:p=>{switch(p){case"":h({...d,card:void 0});break;case"name":case"subtitle":case"description":case"hidden":h({...d,card:p});break}},placeholder:a("Detail"),options:[{value:"name",label:a("Name"),description:a("Show the column as the name on the card.")},{value:"subtitle",label:a("Subtitle"),description:a("Show the column as the subtitle under the name on the card.")},{value:"description",label:a("Description"),description:a("Show the column as the card description.")},{value:"",label:a("Detail"),description:a("Show the column one of the details on the card.")},{value:"hidden",label:a("Hidden"),description:a("Hide the column on the card.")}]})}),f},[i,r,n,a]),l=x.useCallback((f,d)=>{typeof d=="object"&&d!==null&&("table"in d&&typeof d.table=="string"?f.table=d.table:f.table=void 0,"list"in d&&typeof d.list=="string"?f.list=d.list:f.list=void 0,"card"in d&&typeof d.card=="string"?f.card=d.card:f.card=void 0)},[]),s=x.useCallback(f=>{const{table:d,list:h,card:p}=f;return{table:d,list:h,card:p}},[]),{openManageItems:c,managedItems:u}=ape({id:e,title:a("Manage Columns"),description:a("Manage the order, placement, and format of columns."),items:t,keyFn:f=>f.id??f.header,columns:o,loadFn:l,saveFn:s,hideSelection:!0});return{openColumnManagement:c,managedColumns:u}}const cOe="";function spe(){return v.jsx(Me.TableComposable,{gridBreakPoint:"",className:"page-table",children:v.jsx(Me.Tbody,{children:new Array(10).fill(0).map((e,t)=>v.jsx(Me.Tr,{children:v.jsx(Me.Td,{children:v.jsx(C.Skeleton,{height:"27px"})})},t))})})}function cpe(e){const{setPage:t,setPerPage:n}=e,r=x.useCallback((o,l)=>t(l),[t]),i=x.useCallback((o,l)=>n(l),[n]),a=!cn("md");return v.jsx(C.Pagination,{variant:C.PaginationVariant.bottom,itemCount:e.itemCount,page:e.page,perPage:e.perPage,onSetPage:r,onPerPageSelect:i,perPageOptions:e.perPageOptions,style:{...e.style,boxShadow:"none",zIndex:400,paddingTop:a?4:6,paddingBottom:a?4:6,borderTop:e.topBorder?"thin solid var(--pf-global--BorderColor--100)":void 0},className:"dark-2"})}function upe(e){const t=e.size??350,n=x.useRef(null),[r,i]=x.useState("1fr"),a=x.useCallback(l=>{let s=Math.min(e.maxColumns??12,Math.max(Math.floor(l/t),1));s<1&&(s=1),i(()=>new Array(s).fill("1fr").join(" "))},[e.maxColumns,t]);so(n,l=>a(l.contentRect.width)),x.useLayoutEffect(()=>{var l;a(((l=n.current)==null?void 0:l.clientWidth)??0)},[a]);const o=16;return v.jsx("div",{ref:n,style:{display:"grid",gridAutoRows:"1fr",gridTemplateColumns:r,gap:o},children:e.children})}const fpe=Le.small`
381
381
  opacity: 0.7;
382
382
  `,dpe=Le.div`
383
383
  display: flex;
@@ -411,7 +411,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
411
411
  align-items: baseline;
412
412
  `;function _pe(e){const{item:t,itemToCardFn:n,isSelected:r,selectItem:i,unselectItem:a,itemActions:o,showSelect:l,defaultCardSubtitle:s}=e,c=x.useMemo(()=>n(t),[t,n]),u=!!(r!=null&&r(t)),f=x.useCallback(()=>{r!=null&&r(t)?a==null||a(t):i==null||i(t)},[r,t,i,a]),d=o!==void 0&&o.length>0,h=l||d;return v.jsxs(C.Card,{id:c.id,ouiaId:c.id,isFlat:!0,isLarge:!0,isRounded:!0,isSelectable:u,isSelected:u,style:{transition:"box-shadow 0.25s",cursor:"default",maxWidth:"100%"},children:[v.jsxs(C.CardHeader,{style:{display:"flex",flexWrap:"nowrap",maxWidth:"100%"},children:[v.jsxs(dpe,{children:[v.jsxs(mpe,{children:[c.iconAboveTitle?null:c.icon&&v.jsx(Il,{size:"xl",children:c.icon}),v.jsxs(gpe,{children:[c.iconAboveTitle?v.jsx(hpe,{children:c.icon&&v.jsx(Il,{size:"xl",children:c.icon})}):null,v.jsx(C.CardTitle,{children:v.jsx(C.Truncate,{content:c.title})}),c.subtitle?v.jsx(C.Text,{component:"small",style:{opacity:.7},children:c.subtitle}):s&&v.jsx(C.Text,{component:"small",style:{opacity:.7},children:s})]})]}),c.badge&&c.badgeTooltip&&v.jsx(C.FlexItem,{children:v.jsx("div",{onClick:p=>p.stopPropagation(),children:v.jsx(C.Popover,{headerContent:c.badgeTooltipTitle,bodyContent:c.badgeTooltip,removeFindDomNode:!0,children:v.jsx(C.Label,{color:c.badgeColor,children:c.badge})})})}),c.badge&&!c.badgeTooltip&&v.jsx(C.FlexItem,{children:v.jsx(C.Label,{color:c.badgeColor,children:c.badge})})]}),h&&v.jsxs(C.CardActions,{children:[o&&o.length&&v.jsx(Ua,{actions:o,position:C.DropdownPosition.right,selectedItem:t,iconOnly:!0,collapse:"always"}),l&&v.jsx(C.Checkbox,{isChecked:r==null?void 0:r(t),onChange:f,id:"check-1"})]})]}),c.cardBody,c.labels&&v.jsx(C.CardFooter,{children:v.jsx(ppe,{children:v.jsx(vpe,{children:c.labels&&v.jsx(C.LabelGroup,{numLabels:999,children:c.labels.map(p=>v.jsx(C.Label,{color:p.color,icon:p.icon,variant:p.variant,children:v.jsx(C.Truncate,{content:p.label,style:{minWidth:0}})},p.label))})})})}),c.alertTitle&&v.jsx(C.Alert,{title:c.alertTitle,isInline:!0,variant:c.alertVariant,children:c.alertContent})]},c.id??c.title)}function xpe(e,t){const n=x.useMemo(()=>{let c,u,f;const d=[];let h;const p=[];for(const g of e)if(g.card!=="hidden")switch(g.type){case"description":f||(f=g);break;case"labels":h||(h=g);break;case"count":d.push(g);break;default:switch(g.card){case"name":c=g;break;case"subtitle":u=g;break;case"description":f=g;break;default:p.push(g);break}break}return{nameColumn:c,subtitleColumn:u,descriptionColumn:f,countColumns:d,cardColumns:p,labelColumn:h}},[e]),{nameColumn:r,subtitleColumn:i,descriptionColumn:a,countColumns:o,cardColumns:l,labelColumn:s}=n;return x.useMemo(()=>c=>{var h,p;let u=!!a;a!=null&&a.value&&!a.value(c)&&(u=!1);const f=l.filter(g=>!g.value||g.value(c)),d={id:t(c),icon:(h=r==null?void 0:r.icon)==null?void 0:h.call(r,c),title:v.jsx(Wt,{column:r,item:c}),subtitle:i&&(!i.value||i.value(c))&&v.jsx(Wt,{column:i,item:c}),cardBody:v.jsx(C.CardBody,{children:v.jsxs(C.DescriptionList,{isCompact:!0,children:[u&&a&&v.jsx(Ds,{children:a.type==="description"?v.jsx("div",{children:a.value(c)}):v.jsx(Wt,{column:a,item:c})},a.id??a.header),f.map(g=>v.jsx(Ds,{label:g.header,children:v.jsx(Wt,{column:g,item:c})},g.id??g.header)),o.length>0&&v.jsx(Ds,{children:v.jsx(ype,{children:o.map((g,y)=>v.jsxs(bpe,{children:[v.jsx(Wt,{column:g,item:c}),v.jsx(fpe,{children:g.header})]},y))})},"count-columns")]})}),labels:s&&((p=s.value(c))==null?void 0:p.map(g=>({label:g})))};return!u&&f.length===0&&o.length===0&&(d.cardBody=void 0),d},[l,o,a,s,r,i,t])}function $v(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:l,showSelect:s,defaultSubtitle:c}=e,u=xpe(r,t),f=x.useMemo(()=>v.jsx(upe,{size:400,children:n==null?void 0:n.map(d=>v.jsx(_pe,{item:d,itemToCardFn:u,isSelected:i,selectItem:a,unselectItem:o,itemActions:l,showSelect:s,defaultCardSubtitle:c},t(d)))}),[n,t,u,i,a,o,l,s,c]);return v.jsx(C.PageSection,{style:{flexGrow:1},children:f})}function Rk(e){const{keyFn:t,pageItems:n,tableColumns:r,isSelected:i,selectItem:a,unselectItem:o,rowActions:l,defaultSubtitle:s,showSelect:c}=e,u=Spe(r,t,i,a,o,l,s,c);return v.jsx(C.DataList,{"aria-label":"TODO",style:{marginTop:-1,maxWidth:"100%",overflow:"hidden"},children:n==null?void 0:n.map(u)})}function Spe(e,t,n,r,i,a,o,l){const s=x.useMemo(()=>{let _,b,S;const O=[];let w;const A=[],T=[];for(const k of e)if(k.list!=="hidden")switch(k.type){case"description":S||(S=k);break;case"labels":w||(w=k);break;case"count":O.push(k);break;default:switch(k.list){case"name":_=k;break;case"subtitle":b=k;break;case"description":S=k;break;case"secondary":T.push(k);break;default:A.push(k);break}break}return{nameColumn:_,subtitleColumn:b,descriptionColumn:S,countColumns:O,primaryColumns:A,secondaryColumns:T,labelColumn:w}},[e]),c=x.useCallback(_=>{n!=null&&n(_)?i==null||i(_):r==null||r(_)},[n,r,i]),{nameColumn:u,subtitleColumn:f,descriptionColumn:d,countColumns:h,primaryColumns:p,secondaryColumns:g,labelColumn:y}=s;return x.useCallback(_=>{const b=t(_),S=n==null?void 0:n(_);return v.jsx(C.DataListItem,{"aria-labelledby":`data-list-${b}`,isExpanded:S,children:v.jsxs(C.DataListItemRow,{children:[l&&v.jsx(C.DataListCheck,{"aria-labelledby":`data-list-check-${b}`,name:`data-list-check-${b}`,isChecked:n==null?void 0:n(_),onClick:()=>c(_)}),v.jsx(C.DataListItemCells,{dataListCells:[v.jsx(C.DataListCell,{width:5,children:v.jsx(C.Flex,{children:v.jsxs(C.Stack,{hasGutter:!0,children:[v.jsxs(C.Flex,{alignItems:{default:"alignItemsCenter"},children:[(u==null?void 0:u.icon)&&v.jsx(Il,{size:"xl",children:u==null?void 0:u.icon(_)}),v.jsxs(C.Stack,{children:[v.jsx(C.Title,{headingLevel:"h2",style:{marginTop:-4,fontWeight:"bold"},children:v.jsx("span",{id:`data-list-${b}`,children:v.jsx(Wt,{column:u,item:_})})}),f?v.jsx(C.Text,{component:"small",style:{opacity:.7},children:v.jsx(Wt,{column:f,item:_})}):o&&v.jsx(C.Text,{component:"small",style:{opacity:.7},children:o})]})]}),(d||p.length>0||h.length>0||y)&&v.jsxs(C.DescriptionList,{isCompact:!0,children:[d&&(!d.value||d.value(_))&&v.jsx(C.DescriptionListGroup,{children:v.jsx(C.DescriptionListDescription,{children:v.jsx(Wt,{column:d,item:_})})},d.header),p.map(O=>O.value&&!O.value(_)?v.jsx(v.Fragment,{}):v.jsxs(C.DescriptionListGroup,{children:[v.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:O.header}),v.jsx(C.DescriptionListDescription,{children:v.jsx(Wt,{column:O,item:_})})]},O.header)),h.length>0&&v.jsx(C.DescriptionListGroup,{children:v.jsx(C.DescriptionListDescription,{children:v.jsx("div",{style:{display:"flex",gap:16,marginTop:8,flexWrap:"wrap"},children:h.map((O,w)=>v.jsxs("div",{style:{display:"flex",gap:6,alignItems:"baseline"},children:[v.jsx(Wt,{column:O,item:_}),v.jsx("small",{style:{opacity:.7},children:O.header})]},w))})})},"counts"),y&&v.jsx(C.DescriptionListGroup,{children:v.jsx(C.DescriptionListDescription,{children:v.jsx(Wt,{column:y,item:_})})},y.header)]})]})})},"primary"),g.length>0?v.jsx(C.DataListCell,{children:v.jsx(C.DescriptionList,{isCompact:!0,children:g.map(O=>O.value&&!O.value(_)?v.jsx(v.Fragment,{}):v.jsxs(C.DescriptionListGroup,{children:[v.jsx(C.DescriptionListTerm,{style:{whiteSpace:"nowrap",opacity:.6},children:O.header}),v.jsx(C.DescriptionListDescription,{children:v.jsx(Wt,{column:O,item:_})})]},O.header))})},"secondary"):null]}),a&&v.jsx(C.DataListAction,{"aria-labelledby":"check-action-item1 check-action-action1",id:"check-action-action1","aria-label":"Actions",isPlainButtonAction:!0,style:{whiteSpace:"nowrap"},children:v.jsx(Ua,{actions:a,position:C.DropdownPosition.right,selectedItem:_,iconOnly:!0,collapse:"always"})})]})},b)},[t,n,l,u,f,o,p,d,h,y,g,a,c])}const wpe=Le.div`
413
413
  height: 100%;
414
- `;function Ls(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,{openColumnManagement:o,managedColumns:l}=lpe((t??"")+"-columns",e.tableColumns,e.disableTableView,e.disableListView,e.disableCardView),s=e.showSelect||(n==null?void 0:n.find(y=>"selection"in y&&y.selection===ot.Multiple))!==void 0,c=!e.disableTableView,u=!e.disableListView,[f,d]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return at.Table;case"list":return at.List;case"cards":return at.Cards}return e.defaultTableView??(c?at.Table:u?at.List:at.Cards)}),h=x.useCallback(y=>{d(y),e.id&&localStorage.setItem(e.id+"-view",y)},[e.id]),p=Yge(e.tableColumns);if(i)return v.jsx(Xge,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return v.jsx(Qge,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&v.jsx(C.Button,{variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&v.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:v.jsx(Ua,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-global--BorderColor--100)"},children:e.topContent})),v.jsxs(v.Fragment,{children:[v.jsx(Bk,{...e,openColumnModal:e.id?o:void 0,showSelect:s,viewType:f,setViewType:h,bottomBorder:!0,sortOptions:p}),f===at.Table&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,v.jsx(Vk,{...e,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[g,v.jsx(Vk,{...e,tableColumns:l})]})}),f===at.List&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(Rk,{...e,showSelect:s,tableColumns:l})})]}):v.jsxs(v.Fragment,{children:[g,v.jsx(Ai,{children:v.jsx(C.PageSection,{padding:{default:"noPadding"},children:v.jsx(Rk,{...e,showSelect:s,tableColumns:l})})})]})}),f===at.Cards&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,v.jsx($v,{...e,showSelect:s,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[g,v.jsx(Ai,{children:v.jsx($v,{...e,showSelect:s,tableColumns:l})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&v.jsx(cpe,{...e,topBorder:!0})]})}function Vk(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:u,onSelect:f,unselectAll:d,maxSelections:h}=e,p=Ev(e.tableColumns),g=Pk(e.tableColumns),y=jk(e.tableColumns),_=x.useMemo(()=>{const M=[];if(g.length)for(const D of g)"value"in D?M.push(I=>{var X;const W=(X=D.value)==null?void 0:X.call(D,I);if(W)return v.jsx("div",{children:W},D.id??D.header)}):M.push(I=>D.cell(I));return y.length&&M.push(D=>v.jsx(Mk,{item:D,columns:y,disablePadding:!0,numberOfColumns:"multiple"},o(D))),e.expandedRow&&M.push(e.expandedRow),M.length===0?void 0:M.length===1?M[0]:D=>v.jsx(C.Stack,{hasGutter:!0,style:{gap:12},children:M.map(I=>I(D))})},[g,y,o,e.expandedRow]),[b]=mt(),S=e.showSelect||(s==null?void 0:s.find(M=>"selection"in M&&M.selection===ot.Multiple))!==void 0,O=x.useRef(null),[w,A]=x.useState({left:0,right:0,top:0,bottom:0}),T=x.useCallback(M=>{M&&A({top:M.scrollTop,bottom:M.scrollHeight-M.clientHeight-M.scrollTop,left:M.scrollLeft,right:M.scrollWidth-M.clientWidth-M.scrollLeft})},[]),k=x.useCallback(M=>T(M.currentTarget),[T]);so(O,()=>T(O.current)),x.useEffect(()=>T(O.current),[T]);const P=Ja();let N;return e.itemCount===void 0||t===void 0?N=v.jsx(spe,{}):N=v.jsxs(v.Fragment,{children:[v.jsxs(Me.TableComposable,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||P.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[v.jsx(Ope,{...e,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:p,onSelect:f,expandedRow:_}),v.jsx(Me.Tbody,{children:t.map((M,j)=>v.jsx(Cpe,{columns:p,item:M,isItemSelected:i==null?void 0:i(M),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:l,rowIndex:j,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,unselectAll:d,onSelect:f,expandedRow:_,isLastRow:j===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems},o?o(M):j))})]}),c===0&&v.jsxs(C.EmptyState,{isFullHeight:!0,children:[v.jsx(C.EmptyStateIcon,{icon:Ce.SearchIcon}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:b.noResultsFound}),v.jsx(C.EmptyStateBody,{children:b.noResultsMatchCriteria}),u&&v.jsx(C.EmptyStateSecondaryActions,{children:v.jsx(C.Button,{variant:"primary",onClick:u,children:b.clearAllFilters})})]})]}),e.scrollTopContent||(N=v.jsx(wpe,{className:"pf-c-scroll-inner-wrapper",ref:O,onScroll:k,style:{backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:N})),N}function Ope(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:l,onSelect:s,expandedRow:c}=e,u=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,p,g)=>{d.sort&&(i==null||i(d.sort),o==null||o(g))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return v.jsx(Me.Thead,{children:v.jsxs(Me.Tr,{className:"light dark-2",children:[c&&v.jsx(Me.Th,{style:{padding:0,backgroundColor:"inherit"}}),(l||s)&&v.jsx(Me.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,style:{backgroundColor:"inherit"},"data-cy":"selections-column-header",children:" "}),t.map((f,d)=>v.jsx(Me.Th,{sort:u(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,backgroundColor:"inherit"},"data-cy":br(f.header+"-column-header"),children:f.header},f.header)),n!==void 0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"action-column-header",children:" "})]})})}function Cpe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:l,rowActions:s,rowIndex:c,showSelect:u,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:p,selectedItems:g}=e,[y,_]=x.useState(!1),b=Ja(),S=d==null?void 0:d(l),O=x.useCallback(w=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(w)):!1,[p,g]);return v.jsxs(v.Fragment,{children:[v.jsxs(Me.Tr,{isRowSelected:y,style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`,children:[d&&v.jsx(Me.Td,{expand:S?{rowIndex:c,isExpanded:y,onToggle:()=>_(w=>!w)}:void 0,style:{paddingLeft:S?8:4},"data-cy":"expand-column-cell"}),u&&v.jsx(Me.Th,{select:a!==void 0?{onSelect:(w,A)=>{A?r==null||r(l):i==null||i(l)},isSelected:a,isDisabled:p&&g?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),f&&v.jsx(Me.Td,{select:{rowIndex:c,onSelect:()=>{o||n==null||n(),r==null||r(l),f==null||f(l)},isSelected:a??!1,variant:o?"checkbox":"radio",disable:p&&g?O(l):!1},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),v.jsx(Ape,{columns:t,item:l,rowActions:s,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&y&&S&&v.jsxs(Me.Tr,{isExpanded:y,style:{boxShadow:"unset"},children:[v.jsx(Me.Td,{}),u&&v.jsx(Me.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),f&&v.jsx(Me.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),v.jsx(Me.Td,{colSpan:t.length,style:{paddingBottom:b.tableLayout==="compact"?12:24,paddingTop:0},children:v.jsx(Me.CollapseColumn,{children:S})}),s!==void 0&&s.length>0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function Ape(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return v.jsxs(x.Fragment,{children:[t.map(o=>v.jsx(Me.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":br(o.header+"-column-cell"),children:v.jsx(Wt,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"actions-column-cell",children:v.jsx(Ua,{actions:r,selectedItem:n,position:C.DropdownPosition.right,iconOnly:!0,onOpen:a})})]})}function Tpe(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:l,processingText:s,isDanger:c}=e,[u]=mt(),[f,d]=x.useState(!0),[h,p]=x.useState(!1),[g,y]=x.useState(0),[_,b]=x.useState(""),[S,O]=x.useState(),[w]=x.useState(()=>new AbortController),[A,T]=_r(),k=x.useCallback(()=>{p(!0),w.abort(),d(!1),O(j=>{const D={...j};for(const I of n){const W=r(I);D[W]===void 0&&(D[W]="Cancelled")}return D})},[w,n,r]),P=x.useCallback(()=>{T(void 0),l==null||l()},[l,T]);x.useEffect(()=>{async function j(){const D=Bge(5);let I=0;const W=[];await Promise.all(n.map(X=>D(async()=>{if(w.signal.aborted)return;const ne=r(X);try{await a(X,w.signal),w.signal.aborted||O(re=>({...re??{},[ne]:null})),W.push(X)}catch(re){if(!w.signal.aborted){if(re instanceof Error){const Z=re.message;O(R=>({...R??{},[ne]:Z}))}else O(Z=>({...Z??{},[ne]:"Unknown error"}));b(u.errorText)}}finally{w.signal.aborted||y(++I)}}))),w.signal.aborted||d(!1),o==null||o(W)}j()},[w,a,n,r,o,u.errorText]);const N=Is(n),M=Pv(i);return v.jsxs(C.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{k(),P()},actions:f?[v.jsx(C.Button,{variant:"link",onClick:k,children:u.cancelText},"cancel")]:[v.jsx(C.Button,{variant:"secondary",onClick:P,children:u.closeText},"close")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:v.jsx(Ls,{pageItems:[...N.paged],itemCount:n.length,tableColumns:[...M,{header:"Status",cell:j=>{const D=r(j),I=S==null?void 0:S[D];return I===void 0?v.jsxs("span",{style:{color:am},children:[v.jsx(Ce.PendingIcon,{}),"  ",u.pendingText]}):I===null?v.jsxs("span",{style:{color:rm},children:[v.jsx(Ce.CheckCircleIcon,{}),"  ",u.successText]}):v.jsxs("span",{style:{color:im},children:[v.jsx(Ce.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[D]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...N},"status")})}),v.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:v.jsx(C.Progress,{value:g/n.length*100,title:w.signal.aborted?u.canceledText:_?u.errorText:f?s??u.processingText:u.successText,size:C.ProgressSize.lg,variant:_||h?C.ProgressVariant.danger:g===n.length?C.ProgressVariant.success:void 0})})]})}function Hk(){const[e,t]=_r(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Tpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Uk(e,t){if(e==null&&t==null)return 0;if(e==null)return 1;if(t==null)return-1;if(typeof e=="string"){if(typeof t=="string")return $s(e,t);if(typeof t=="number")return $s(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return qk(e,t);if(typeof t=="string")return $s(e.toString(),t)}return 0}function $s(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}function qk(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}const kpe=Le.div`
414
+ `;function Ls(e){const{id:t,toolbarActions:n,filterState:r,error:i,itemCount:a}=e,{openColumnManagement:o,managedColumns:l}=lpe((t??"")+"-columns",e.tableColumns,e.disableTableView,e.disableListView,e.disableCardView),s=e.showSelect||(n==null?void 0:n.find(y=>"selection"in y&&y.selection===ot.Multiple))!==void 0,c=!e.disableTableView,u=!e.disableListView,[f,d]=x.useState(()=>{switch(e.id?localStorage.getItem(e.id+"-view"):void 0){case"table":return at.Table;case"list":return at.List;case"cards":return at.Cards}return e.defaultTableView??(c?at.Table:u?at.List:at.Cards)}),h=x.useCallback(y=>{d(y),e.id&&localStorage.setItem(e.id+"-view",y)},[e.id]),p=Yge(e.tableColumns);if(i)return v.jsx(Xge,{titleProp:e.errorStateTitle,message:i.message});if(a===0&&Object.keys(r??{}).length===0)return v.jsx(Qge,{title:e.emptyStateTitle,description:e.emptyStateDescription,button:e.emptyStateButtonClick&&v.jsx(C.Button,{variant:"primary",onClick:e.emptyStateButtonClick,icon:e.emptyStateButtonIcon?e.emptyStateButtonIcon:null,children:e.emptyStateButtonText})||e.emptyStateActions&&v.jsx(C.Flex,{justifyContent:{default:"justifyContentCenter"},children:v.jsx(Ua,{actions:e.emptyStateActions})})});let g=e.topContent;return g&&(g=v.jsx(C.PageSection,{variant:"light",padding:{default:"noPadding"},style:{borderBottom:"thin solid var(--pf-global--BorderColor--100)"},children:e.topContent})),v.jsxs(v.Fragment,{children:[v.jsx(Bk,{...e,openColumnModal:e.id?o:void 0,showSelect:s,viewType:f,setViewType:h,bottomBorder:!0,sortOptions:p}),f===at.Table&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,!e.hideTable&&v.jsx(Vk,{...e,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[g,!e.hideTable&&v.jsx(Vk,{...e,tableColumns:l})]})}),f===at.List&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,v.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&v.jsx(Rk,{...e,showSelect:s,tableColumns:l})})]}):v.jsxs(v.Fragment,{children:[g,v.jsx(Ai,{children:v.jsx(C.PageSection,{padding:{default:"noPadding"},children:!e.hideTable&&v.jsx(Rk,{...e,showSelect:s,tableColumns:l})})})]})}),f===at.Cards&&v.jsx(v.Fragment,{children:e.scrollTopContent?v.jsxs(Ai,{children:[g,!e.hideTable&&v.jsx($v,{...e,showSelect:s,tableColumns:l})]}):v.jsxs(v.Fragment,{children:[g,v.jsx(Ai,{children:!e.hideTable&&v.jsx($v,{...e,showSelect:s,tableColumns:l})})]})}),!e.disablePagination&&(!e.autoHidePagination||(e.itemCount??0)>e.perPage)&&v.jsx(cpe,{...e,topBorder:!0})]})}function Vk(e){const{pageItems:t,selectItem:n,unselectItem:r,isSelected:i,isSelectMultiple:a,keyFn:o,rowActions:l,toolbarActions:s,itemCount:c,clearAllFilters:u,onSelect:f,unselectAll:d,maxSelections:h}=e,p=Ev(e.tableColumns),g=Pk(e.tableColumns),y=jk(e.tableColumns),_=x.useMemo(()=>{const M=[];if(g.length)for(const I of g)"value"in I?M.push(D=>{var X;const W=(X=I.value)==null?void 0:X.call(I,D);if(W)return v.jsx("div",{children:W},I.id??I.header)}):M.push(D=>I.cell(D));return y.length&&M.push(I=>v.jsx(Mk,{item:I,columns:y,disablePadding:!0,numberOfColumns:"multiple"},o(I))),e.expandedRow&&M.push(e.expandedRow),M.length===0?void 0:M.length===1?M[0]:I=>v.jsx(C.Stack,{hasGutter:!0,style:{gap:12},children:M.map(D=>D(I))})},[g,y,o,e.expandedRow]),[b]=mt(),S=e.showSelect||(s==null?void 0:s.find(M=>"selection"in M&&M.selection===ot.Multiple))!==void 0,O=x.useRef(null),[w,A]=x.useState({left:0,right:0,top:0,bottom:0}),T=x.useCallback(M=>{M&&A({top:M.scrollTop,bottom:M.scrollHeight-M.clientHeight-M.scrollTop,left:M.scrollLeft,right:M.scrollWidth-M.clientWidth-M.scrollLeft})},[]),k=x.useCallback(M=>T(M.currentTarget),[T]);so(O,()=>T(O.current)),x.useEffect(()=>T(O.current),[T]);const j=Ja();let N;return e.itemCount===void 0||t===void 0?N=v.jsx(spe,{}):N=v.jsxs(v.Fragment,{children:[v.jsxs(Me.TableComposable,{"aria-label":"Simple table",ouiaId:"simple-table",variant:e.compact||j.tableLayout==="compact"?"compact":void 0,gridBreakPoint:"",isStickyHeader:!0,className:"page-table",children:[v.jsx(Ope,{...e,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,tableColumns:p,onSelect:f,expandedRow:_}),v.jsx(Me.Tbody,{children:t.map((M,E)=>v.jsx(Cpe,{columns:p,item:M,isItemSelected:i==null?void 0:i(M),isSelectMultiple:a,selectItem:n,unselectItem:r,rowActions:l,rowIndex:E,showSelect:S,scrollLeft:w.left>0,scrollRight:w.right>1,unselectAll:d,onSelect:f,expandedRow:_,isLastRow:E===t.length-1,disableLastRowBorder:e.disableLastRowBorder,maxSelections:h,selectedItems:e.selectedItems},o?o(M):E))})]}),c===0&&v.jsxs(C.EmptyState,{isFullHeight:!0,children:[v.jsx(C.EmptyStateIcon,{icon:Ce.SearchIcon}),v.jsx(C.Title,{headingLevel:"h2",size:"lg",children:b.noResultsFound}),v.jsx(C.EmptyStateBody,{children:b.noResultsMatchCriteria}),u&&v.jsx(C.EmptyStateSecondaryActions,{children:v.jsx(C.Button,{variant:"primary",onClick:u,children:b.clearAllFilters})})]})]}),e.scrollTopContent||(N=v.jsx(wpe,{className:"pf-c-scroll-inner-wrapper",ref:O,onScroll:k,style:{backgroundColor:"var(--pf-global--BackgroundColor--100)"},children:N})),N}function Ope(e){const{tableColumns:t,rowActions:n,sort:r,setSort:i,sortDirection:a,setSortDirection:o,showSelect:l,onSelect:s,expandedRow:c}=e,u=x.useCallback((f,d)=>{if(d.sort)return{onSort:(h,p,g)=>{d.sort&&(i==null||i(d.sort),o==null||o(g))},sortBy:{index:d.sort===r?f:void 0,direction:d.sort===r?a:void 0,defaultDirection:d.defaultSortDirection},columnIndex:f}},[i,o,r,a]);return v.jsx(Me.Thead,{children:v.jsxs(Me.Tr,{className:"light dark-2",children:[c&&v.jsx(Me.Th,{style:{padding:0,backgroundColor:"inherit"}}),(l||s)&&v.jsx(Me.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,style:{backgroundColor:"inherit"},"data-cy":"selections-column-header",children:" "}),t.map((f,d)=>v.jsx(Me.Th,{sort:u(d,f),modifier:"nowrap",style:{minWidth:f.minWidth===0?"1%":f.minWidth!==void 0?f.minWidth:void 0,maxWidth:f.maxWidth!==void 0?f.maxWidth:void 0,backgroundColor:"inherit"},"data-cy":br(f.header+"-column-header"),children:f.header},f.header)),n!==void 0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0,backgroundColor:"inherit",zIndex:302},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"action-column-header",children:" "})]})})}function Cpe(e){const{columns:t,unselectAll:n,selectItem:r,unselectItem:i,isItemSelected:a,isSelectMultiple:o,item:l,rowActions:s,rowIndex:c,showSelect:u,onSelect:f,expandedRow:d,disableLastRowBorder:h,maxSelections:p,selectedItems:g}=e,[y,_]=x.useState(!1),b=Ja(),S=d==null?void 0:d(l),O=x.useCallback(w=>(g==null?void 0:g.length)===p?!(g!=null&&g.includes(w)):!1,[p,g]);return v.jsxs(v.Fragment,{children:[v.jsxs(Me.Tr,{isRowSelected:y,style:{boxShadow:"unset",borderBottom:y||e.isLastRow&&h?"unset":void 0},"data-cy":"id"in l&&(typeof l.id=="string"||typeof l.id=="number")?`row-id-${l.id.toString()}`:`row-${c}`,children:[d&&v.jsx(Me.Td,{expand:S?{rowIndex:c,isExpanded:y,onToggle:()=>_(w=>!w)}:void 0,style:{paddingLeft:S?8:4},"data-cy":"expand-column-cell"}),u&&v.jsx(Me.Th,{select:a!==void 0?{onSelect:(w,A)=>{A?r==null||r(l):i==null||i(l)},isSelected:a,isDisabled:p&&g?O(l):!1}:void 0,isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),f&&v.jsx(Me.Td,{select:{rowIndex:c,onSelect:()=>{o||n==null||n(),r==null||r(l),f==null||f(l)},isSelected:a??!1,variant:o?"checkbox":"radio",disable:p&&g?O(l):!1},isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft,"data-cy":"checkbox-column-cell"}),v.jsx(Ape,{columns:t,item:l,rowActions:s,scrollLeft:e.scrollLeft,scrollRight:e.scrollRight})]}),d&&y&&S&&v.jsxs(Me.Tr,{isExpanded:y,style:{boxShadow:"unset"},children:[v.jsx(Me.Td,{}),u&&v.jsx(Me.Th,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),f&&v.jsx(Me.Td,{isStickyColumn:!0,stickyMinWidth:"0px",hasRightBorder:e.scrollLeft}),v.jsx(Me.Td,{colSpan:t.length,style:{paddingBottom:b.tableLayout==="compact"?12:24,paddingTop:0},children:v.jsx(Me.CollapseColumn,{children:S})}),s!==void 0&&s.length>0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:0},className:e.scrollRight?"pf-m-border-left":void 0,children:" "})]})]})}function Ape(e){const{columns:t,item:n,rowActions:r}=e,[i,a]=x.useState(!1);return v.jsxs(x.Fragment,{children:[t.map(o=>v.jsx(Me.Td,{dataLabel:o.header,modifier:"nowrap",style:{width:o.minWidth===0?"0%":void 0},"data-cy":br(o.header+"-column-cell"),children:v.jsx(Wt,{item:n,column:o})},o.header)),r!==void 0&&r.length>0&&v.jsx(Me.Td,{isActionCell:!0,isStickyColumn:!0,stickyMinWidth:"0px",style:{right:0,padding:0,paddingRight:8,zIndex:i?400:void 0},className:e.scrollRight?"pf-m-border-left":void 0,"data-cy":"actions-column-cell",children:v.jsx(Ua,{actions:r,selectedItem:n,position:C.DropdownPosition.right,iconOnly:!0,onOpen:a})})]})}function Tpe(e){const{title:t,items:n,keyFn:r,actionColumns:i,actionFn:a,onComplete:o,onClose:l,processingText:s,isDanger:c}=e,[u]=mt(),[f,d]=x.useState(!0),[h,p]=x.useState(!1),[g,y]=x.useState(0),[_,b]=x.useState(""),[S,O]=x.useState(),[w]=x.useState(()=>new AbortController),[A,T]=_r(),k=x.useCallback(()=>{p(!0),w.abort(),d(!1),O(E=>{const I={...E};for(const D of n){const W=r(D);I[W]===void 0&&(I[W]="Cancelled")}return I})},[w,n,r]),j=x.useCallback(()=>{T(void 0),l==null||l()},[l,T]);x.useEffect(()=>{async function E(){const I=Bge(5);let D=0;const W=[];await Promise.all(n.map(X=>I(async()=>{if(w.signal.aborted)return;const ne=r(X);try{await a(X,w.signal),w.signal.aborted||O(re=>({...re??{},[ne]:null})),W.push(X)}catch(re){if(!w.signal.aborted){if(re instanceof Error){const Z=re.message;O(R=>({...R??{},[ne]:Z}))}else O(Z=>({...Z??{},[ne]:"Unknown error"}));b(u.errorText)}}finally{w.signal.aborted||y(++D)}}))),w.signal.aborted||d(!1),o==null||o(W)}E()},[w,a,n,r,o,u.errorText]);const N=Is(n),M=Pv(i);return v.jsxs(C.Modal,{titleIconVariant:c?"warning":void 0,title:t,ouiaId:t,"aria-label":t,variant:C.ModalVariant.medium,isOpen:!0,onClose:()=>{k(),j()},actions:f?[v.jsx(C.Button,{variant:"link",onClick:k,children:u.cancelText},"cancel")]:[v.jsx(C.Button,{variant:"secondary",onClick:j,children:u.closeText},"close")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{paddingBottom:0,paddingLeft:0,paddingRight:0},children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:560,overflow:"hidden",borderTop:"thin solid var(--pf-global--BorderColor--100)"},children:v.jsx(Ls,{pageItems:[...N.paged],itemCount:n.length,tableColumns:[...M,{header:"Status",cell:E=>{const I=r(E),D=S==null?void 0:S[I];return D===void 0?v.jsxs("span",{style:{color:am},children:[v.jsx(Ce.PendingIcon,{}),"  ",u.pendingText]}):D===null?v.jsxs("span",{style:{color:rm},children:[v.jsx(Ce.CheckCircleIcon,{}),"  ",u.successText]}):v.jsxs("span",{style:{color:im},children:[v.jsx(Ce.ExclamationCircleIcon,{}),"  ",S==null?void 0:S[I]]})}}],keyFn:r,compact:!0,errorStateTitle:"",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...N},"status")})}),v.jsx(C.ModalBoxBody,{style:{paddingTop:0},children:v.jsx(C.Progress,{value:g/n.length*100,title:w.signal.aborted?u.canceledText:_?u.errorText:f?s??u.processingText:u.successText,size:C.ProgressSize.lg,variant:_||h?C.ProgressVariant.danger:g===n.length?C.ProgressVariant.success:void 0})})]})}function Hk(){const[e,t]=_r(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Tpe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Uk(e,t){if(e==null&&t==null)return 0;if(e==null)return 1;if(t==null)return-1;if(typeof e=="string"){if(typeof t=="string")return $s(e,t);if(typeof t=="number")return $s(e,t.toString())}else if(typeof e=="number"){if(typeof t=="number")return qk(e,t);if(typeof t=="string")return $s(e.toString(),t)}return 0}function $s(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}function qk(e,t){return e==null&&t==null?0:e==null?1:t==null||e<t?-1:e>t?1:0}const kpe=Le.div`
415
415
  display: flex;
416
416
  flex-direction: column;
417
417
  max-height: 560px;
@@ -422,11 +422,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
422
422
  height: 64px;
423
423
  display: flex;
424
424
  align-items: center;
425
- `;function Ppe(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:a,confirmationColumns:o,isItemNonActionable:l,onConfirm:s,onClose:c,confirmText:u,actionButtonText:f,isDanger:d}=e,[h,p]=_r(),[g]=mt(),y=x.useCallback(()=>{p(void 0),c==null||c()},[c,p]),_=x.useMemo(()=>l&&n.some(l)?n.sort((k,P)=>$s(l(k),l(P))):n,[n,l]),b=Is(_),[S,O]=x.useState(!u),w=x.useMemo(()=>l&&n.some(l)?[{header:"",cell:k=>l(k)?v.jsx(C.Tooltip,{content:l(k),trigger:l(k)?void 0:"manual",children:v.jsx(C.Icon,{status:"warning",children:v.jsx(Ce.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,l,n]),A=x.useMemo(()=>l?n.filter(k=>!l(k)):n,[l,n]),T=Pv(w);return v.jsx(C.Modal,{titleIconVariant:d?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:y,actions:[v.jsx(C.Button,{ouiaId:"submit",variant:d?"danger":"primary",onClick:()=>{y(),s()},isAriaDisabled:!S,children:f},"submit"),v.jsx(C.Button,{variant:"link",onClick:c,children:g.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&v.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[v.jsxs(kpe,{children:[a&&a.length>0&&a.map((k,P)=>v.jsx(C.Alert,{isInline:!0,title:k,variant:"warning"},P)),v.jsx(Ls,{pageItems:b.paged,itemCount:n.length,tableColumns:T,keyFn:r,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...b},"items")]}),u&&A.length>0&&v.jsx(Epe,{children:v.jsx(C.Checkbox,{id:"confirm",ouiaId:"confirm",label:u,isChecked:S,onChange:O})})]})})}function jpe(){const[e,t]=_r(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Ppe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Mpe(){const e=jpe(),t=Hk();return x.useCallback(n=>{const r=Object.assign({},n);return n.isItemNonActionable&&n.isItemNonActionable!==void 0&&(r.items=n.items.filter(i=>n.isItemNonActionable!==void 0&&!n.isItemNonActionable(i))),e({...n,onConfirm:()=>t(r)})},[t,e])}const uOe="";function Fs(e){let t="collapsed";return e.open&&(t+=" expanded"),v.jsx("div",{className:t,children:e.children})}function Dpe(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:a,confirmText:o,cancelText:l,onSelect:s,defaultSort:c,maxSelections:u,allowZeroSelections:f}=e,[d,h]=_r(),p=x.useCallback(()=>h(void 0),[h]),[g]=mt();return v.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:p,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",id:"confirm",onClick:()=>{p(),s(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:o??g.confirmText},"confirm"),v.jsx(C.Button,{variant:"link",onClick:p,children:l??g.cancelText},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:g.selectedText}),r.selectedItems.length>0?v.jsx(C.LabelGroup,{children:r.selectedItems.map((y,_)=>i&&i.length>0?v.jsx(C.Label,{onClose:()=>r.unselectItem(y),children:v.jsx(Wt,{item:y,column:i.find(b=>b.card==="name"||b.list==="name")??i[0]})},_):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:g.noneSelectedText})]})}),v.jsx(Fs,{open:r.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:r.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx(Ls,{tableColumns:i,toolbarFilters:a,...r,emptyStateTitle:e.emptyStateTitle??g.noItemsFound,errorStateTitle:e.errorStateTitle??g.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0,sort:c,maxSelections:u})})})]})}function Ipe(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,isMultiple:l}=e,[s,c]=x.useState(""),[u,f]=x.useState(),d=x.useCallback((g,y)=>{c(y??""),f(()=>g)},[]),[h,p]=_r();return x.useEffect(()=>{u!==void 0?p(v.jsx(Gk,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:u,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,keyFn:t.keyFn})):(p(void 0),t.unselectAll())},[a,i,u,o,p,n,s,r,t,l]),d}function Gk(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:a,view:o,tableColumns:l,toolbarFilters:s,confirm:c,cancel:u,selected:f}=e,d=()=>i(!1),{t:h}=ut();return v.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:t,isOpen:n,onClose:d,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&o.selectedItems.length>0?a(o.selectedItems[0]):r&&a(o.selectedItems),d()},isAriaDisabled:o.selectedItems.length===0,children:c},"confirm"),v.jsx(C.Button,{variant:"link",onClick:d,children:u},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:f}),o.selectedItems.length>0?v.jsx(C.ChipGroup,{children:o.selectedItems.map((p,g)=>l&&l.length>0?v.jsx(C.Chip,{onClick:()=>o.unselectItem(p),children:v.jsx(Wt,{item:p,column:l.find(y=>y.card==="name"||y.list==="name")??l[0]})},g):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),v.jsx(Fs,{open:o.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:o.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx(Ls,{tableColumns:l,toolbarFilters:s,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}var Ns=e=>e.type==="checkbox",Ho=e=>e instanceof Date,an=e=>e==null;const Yk=e=>typeof e=="object";var Mt=e=>!an(e)&&!Array.isArray(e)&&Yk(e)&&!Ho(e),Kk=e=>Mt(e)&&e.target?Ns(e.target)?e.target.checked:e.target.value:e,Lpe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Zk=(e,t)=>e.has(Lpe(t)),$pe=e=>{const t=e.constructor&&e.constructor.prototype;return Mt(t)&&t.hasOwnProperty("isPrototypeOf")},Fv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Fv&&(e instanceof Blob||e instanceof FileList))&&(n||Mt(e)))if(t=n?[]:{},!n&&!$pe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=mr(e[r]));else return e;return t}var zs=e=>Array.isArray(e)?e.filter(Boolean):[],vt=e=>e===void 0,ye=(e,t,n)=>{if(!t||!Mt(e))return n;const r=zs(t.split(/[,[\].]+?/)).reduce((i,a)=>an(i)?i:i[a],e);return vt(r)||r===e?vt(e[t])?n:e[t]:r};const wd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},hi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Xk=x.createContext(null),mi=()=>x.useContext(Xk),Fpe=e=>{const{children:t,...n}=e;return x.createElement(Xk.Provider,{value:n},t)};var Jk=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==gr.all&&(t._proxyFormState[o]=!r||gr.all),n&&(n[o]=!0),e[o]}});return i},Zn=e=>Mt(e)&&!Object.keys(e).length,Qk=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||gr.all))},Od=e=>Array.isArray(e)?e:[e],eE=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Od(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function Nv(e){const t=x.useRef(e);t.current=e,x.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function zv(e){const t=mi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=x.useState(n._formState),s=x.useRef(!0),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=x.useRef(i);return u.current=i,Nv({disabled:r,next:f=>s.current&&eE(u.current,f.name,a)&&Qk(f,c.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),x.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Jk(o,n,c.current,!1)}var Fr=e=>typeof e=="string",tE=(e,t,n,r,i)=>Fr(e)?(r&&t.watch.add(e),ye(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ye(n,a))):(r&&(t.watchAll=!0),n);function Npe(e){const t=mi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=x.useRef(r);l.current=r,Nv({disabled:a,subject:n._subjects.values,next:u=>{eE(l.current,u.name,o)&&c(mr(tE(l.current,n._names,u.values||n._formValues,!1,i)))}});const[s,c]=x.useState(n._getWatch(r,i));return x.useEffect(()=>n._removeUnmounted()),s}var Bv=e=>/^\w*$/.test(e),nE=e=>zs(e.replace(/["|']|\]/g,"").split(/\.|\[/));function et(e,t,n){let r=-1;const i=Bv(t)?[t]:nE(t),a=i.length,o=a-1;for(;++r<a;){const l=i[r];let s=n;if(r!==o){const c=e[l];s=Mt(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[l]=s,e=e[l]}return e}function zpe(e){const t=mi(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Zk(i._names.array,n),l=Npe({control:i,name:n,defaultValue:ye(i._formValues,n,ye(i._defaultValues,n,e.defaultValue)),exact:!0}),s=zv({control:i,name:n}),c=x.useRef(i.register(n,{...e.rules,value:l}));return c.current=i.register(n,e.rules),x.useEffect(()=>{const u=i._options.shouldUnregister||a,f=(d,h)=>{const p=ye(i._fields,d);p&&(p._f.mount=h)};if(f(n,!0),u){const d=mr(ye(i._options.defaultValues,n));et(i._defaultValues,n,d),vt(ye(i._formValues,n))&&et(i._formValues,n,d)}return()=>{(o?u&&!i._state.action:u)?i.unregister(n):f(n,!1)}},[n,i,o,a]),x.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:l,disabled:r,onChange:x.useCallback(u=>c.current.onChange({target:{value:Kk(u),name:n},type:wd.CHANGE}),[n]),onBlur:x.useCallback(()=>c.current.onBlur({target:{value:ye(i._formValues,n),name:n},type:wd.BLUR}),[n,i]),ref:u=>{const f=ye(i._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:d=>u.setCustomValidity(d),reportValidity:()=>u.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ye(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!ye(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ye(s.touchedFields,n)},error:{enumerable:!0,get:()=>ye(s.errors,n)}})}}const Uo=e=>e.render(zpe(e));var Bpe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const Wv=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ye(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Mt(o)&&Wv(o,t)}}};var rE=e=>({isOnSubmit:!e||e===gr.onSubmit,isOnBlur:e===gr.onBlur,isOnChange:e===gr.onChange,isOnAll:e===gr.all,isOnTouch:e===gr.onTouched}),iE=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Wpe=(e,t,n)=>{const r=zs(ye(e,n));return et(r,"root",t[n]),et(e,n,r),e},Pa=e=>typeof e=="boolean",Rv=e=>e.type==="file",Hi=e=>typeof e=="function",Cd=e=>{if(!Fv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ad=e=>Fr(e),Vv=e=>e.type==="radio",Td=e=>e instanceof RegExp;const aE={value:!1,isValid:!1},oE={value:!0,isValid:!0};var lE=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!vt(e[0].attributes.value)?vt(e[0].value)||e[0].value===""?oE:{value:e[0].value,isValid:!0}:oE:aE}return aE};const sE={isValid:!1,value:null};var cE=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,sE):sE;function uE(e,t,n="validate"){if(Ad(e)||Array.isArray(e)&&e.every(Ad)||Pa(e)&&!e)return{type:n,message:Ad(e)?e:"",ref:t}}var qo=e=>Mt(e)&&!Td(e)?e:{value:e,message:""},fE=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:c,min:u,max:f,pattern:d,validate:h,name:p,valueAsNumber:g,mount:y,disabled:_}=e._f,b=ye(t,p);if(!y||_)return{};const S=o?o[0]:a,O=j=>{r&&S.reportValidity&&(S.setCustomValidity(Pa(j)?"":j||""),S.reportValidity())},w={},A=Vv(a),T=Ns(a),k=A||T,P=(g||Rv(a))&&vt(a.value)&&vt(b)||Cd(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,N=Bpe.bind(null,p,n,w),M=(j,D,I,W=hi.maxLength,X=hi.minLength)=>{const ne=j?D:I;w[p]={type:j?W:X,message:ne,ref:a,...N(j?W:X,ne)}};if(i?!Array.isArray(b)||!b.length:l&&(!k&&(P||an(b))||Pa(b)&&!b||T&&!lE(o).isValid||A&&!cE(o).isValid)){const{value:j,message:D}=Ad(l)?{value:!!l,message:l}:qo(l);if(j&&(w[p]={type:hi.required,message:D,ref:S,...N(hi.required,D)},!n))return O(D),w}if(!P&&(!an(u)||!an(f))){let j,D;const I=qo(f),W=qo(u);if(!an(b)&&!isNaN(b)){const X=a.valueAsNumber||b&&+b;an(I.value)||(j=X>I.value),an(W.value)||(D=X<W.value)}else{const X=a.valueAsDate||new Date(b),ne=R=>new Date(new Date().toDateString()+" "+R),re=a.type=="time",Z=a.type=="week";Fr(I.value)&&b&&(j=re?ne(b)>ne(I.value):Z?b>I.value:X>new Date(I.value)),Fr(W.value)&&b&&(D=re?ne(b)<ne(W.value):Z?b<W.value:X<new Date(W.value))}if((j||D)&&(M(!!j,I.message,W.message,hi.max,hi.min),!n))return O(w[p].message),w}if((s||c)&&!P&&(Fr(b)||i&&Array.isArray(b))){const j=qo(s),D=qo(c),I=!an(j.value)&&b.length>+j.value,W=!an(D.value)&&b.length<+D.value;if((I||W)&&(M(I,j.message,D.message),!n))return O(w[p].message),w}if(d&&!P&&Fr(b)){const{value:j,message:D}=qo(d);if(Td(j)&&!b.match(j)&&(w[p]={type:hi.pattern,message:D,ref:a,...N(hi.pattern,D)},!n))return O(D),w}if(h){if(Hi(h)){const j=await h(b,t),D=uE(j,S);if(D&&(w[p]={...D,...N(hi.validate,D.message)},!n))return O(D.message),w}else if(Mt(h)){let j={};for(const D in h){if(!Zn(j)&&!n)break;const I=uE(await h[D](b,t),S,D);I&&(j={...I,...N(D,I.message)},O(I.message),n&&(w[p]=j))}if(!Zn(j)&&(w[p]={ref:S,...j},!n))return w}}return O(!0),w};function Rpe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=vt(e)?r++:e[t[r++]];return e}function Vpe(e){for(const t in e)if(e.hasOwnProperty(t)&&!vt(e[t]))return!1;return!0}function Rt(e,t){const n=Array.isArray(t)?t:Bv(t)?[t]:nE(t),r=n.length===1?e:Rpe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Mt(r)&&Zn(r)||Array.isArray(r)&&Vpe(r))&&Rt(e,n.slice(0,-1)),e}function Hv(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var kd=e=>an(e)||!Yk(e);function ja(e,t){if(kd(e)||kd(t))return e===t;if(Ho(e)&&Ho(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Ho(a)&&Ho(o)||Mt(a)&&Mt(o)||Array.isArray(a)&&Array.isArray(o)?!ja(a,o):a!==o)return!1}}return!0}var dE=e=>e.type==="select-multiple",Hpe=e=>Vv(e)||Ns(e),Uv=e=>Cd(e)&&e.isConnected,hE=e=>{for(const t in e)if(Hi(e[t]))return!0;return!1};function Ed(e,t={}){const n=Array.isArray(e);if(Mt(e)||n)for(const r in e)Array.isArray(e[r])||Mt(e[r])&&!hE(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ed(e[r],t[r])):an(e[r])||(t[r]=!0);return t}function mE(e,t,n){const r=Array.isArray(e);if(Mt(e)||r)for(const i in e)Array.isArray(e[i])||Mt(e[i])&&!hE(e[i])?vt(t)||kd(n[i])?n[i]=Array.isArray(e[i])?Ed(e[i],[]):{...Ed(e[i])}:mE(e[i],an(t)?{}:t[i],n[i]):n[i]=!ja(e[i],t[i]);return n}var qv=(e,t)=>mE(e,t,Ed(t)),gE=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>vt(e)?e:t?e===""?NaN:e&&+e:n&&Fr(e)?new Date(e):r?r(e):e;function Gv(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Rv(t)?t.files:Vv(t)?cE(e.refs).value:dE(t)?[...t.selectedOptions].map(({value:n})=>n):Ns(t)?lE(e.refs).value:gE(vt(t.value)?e.ref.value:t.value,e)}var Upe=(e,t,n,r)=>{const i={};for(const a of e){const o=ye(t,a);o&&et(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Bs=e=>vt(e)?e:Td(e)?e.source:Mt(e)?Td(e.value)?e.value.source:e.value:e,qpe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function pE(e,t,n){const r=ye(e,n);if(r||Bv(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ye(t,a),l=ye(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var Gpe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ype=(e,t)=>!zs(ye(e,t)).length&&Rt(e,t);const Kpe={mode:gr.onSubmit,reValidateMode:gr.onChange,shouldFocusError:!0};function Zpe(e={},t){let n={...Kpe,...e},r={submitCount:0,isDirty:!1,isLoading:Hi(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Mt(n.defaultValues)||Mt(n.values)?mr(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:mr(a),l={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Hv(),array:Hv(),state:Hv()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,p=rE(n.mode),g=rE(n.reValidateMode),y=n.criteriaMode===gr.all,_=E=>V=>{clearTimeout(u),u=setTimeout(E,V)},b=async E=>{if(f.isValid||E){const V=n.resolver?Zn((await P()).errors):await M(i,!0);V!==r.isValid&&d.state.next({isValid:V})}},S=E=>f.isValidating&&d.state.next({isValidating:E}),O=(E,V=[],ee,he,me=!0,ue=!0)=>{if(he&&ee){if(l.action=!0,ue&&Array.isArray(ye(i,E))){const le=ee(ye(i,E),he.argA,he.argB);me&&et(i,E,le)}if(ue&&Array.isArray(ye(r.errors,E))){const le=ee(ye(r.errors,E),he.argA,he.argB);me&&et(r.errors,E,le),Ype(r.errors,E)}if(f.touchedFields&&ue&&Array.isArray(ye(r.touchedFields,E))){const le=ee(ye(r.touchedFields,E),he.argA,he.argB);me&&et(r.touchedFields,E,le)}f.dirtyFields&&(r.dirtyFields=qv(a,o)),d.state.next({name:E,isDirty:D(E,V),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else et(o,E,V)},w=(E,V)=>{et(r.errors,E,V),d.state.next({errors:r.errors})},A=(E,V,ee,he)=>{const me=ye(i,E);if(me){const ue=ye(o,E,vt(ee)?ye(a,E):ee);vt(ue)||he&&he.defaultChecked||V?et(o,E,V?ue:Gv(me._f)):X(E,ue),l.mount&&b()}},T=(E,V,ee,he,me)=>{let ue=!1,le=!1;const H={name:E};if(!ee||he){f.isDirty&&(le=r.isDirty,r.isDirty=H.isDirty=D(),ue=le!==H.isDirty);const oe=ja(ye(a,E),V);le=ye(r.dirtyFields,E),oe?Rt(r.dirtyFields,E):et(r.dirtyFields,E,!0),H.dirtyFields=r.dirtyFields,ue=ue||f.dirtyFields&&le!==!oe}if(ee){const oe=ye(r.touchedFields,E);oe||(et(r.touchedFields,E,ee),H.touchedFields=r.touchedFields,ue=ue||f.touchedFields&&oe!==ee)}return ue&&me&&d.state.next(H),ue?H:{}},k=(E,V,ee,he)=>{const me=ye(r.errors,E),ue=f.isValid&&Pa(V)&&r.isValid!==V;if(e.delayError&&ee?(c=_(()=>w(E,ee)),c(e.delayError)):(clearTimeout(u),c=null,ee?et(r.errors,E,ee):Rt(r.errors,E)),(ee?!ja(me,ee):me)||!Zn(he)||ue){const le={...he,...ue&&Pa(V)?{isValid:V}:{},errors:r.errors,name:E};r={...r,...le},d.state.next(le)}S(!1)},P=async E=>n.resolver(o,n.context,Upe(E||s.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),N=async E=>{const{errors:V}=await P(E);if(E)for(const ee of E){const he=ye(V,ee);he?et(r.errors,ee,he):Rt(r.errors,ee)}else r.errors=V;return V},M=async(E,V,ee={valid:!0})=>{for(const he in E){const me=E[he];if(me){const{_f:ue,...le}=me;if(ue){const H=s.array.has(ue.name),oe=await fE(me,o,y,n.shouldUseNativeValidation&&!V,H);if(oe[ue.name]&&(ee.valid=!1,V))break;!V&&(ye(oe,ue.name)?H?Wpe(r.errors,oe,ue.name):et(r.errors,ue.name,oe[ue.name]):Rt(r.errors,ue.name))}le&&await M(le,V,ee)}}return ee.valid},j=()=>{for(const E of s.unMount){const V=ye(i,E);V&&(V._f.refs?V._f.refs.every(ee=>!Uv(ee)):!Uv(V._f.ref))&&z(E)}s.unMount=new Set},D=(E,V)=>(E&&V&&et(o,E,V),!ja(J(),a)),I=(E,V,ee)=>tE(E,s,{...l.mount?o:vt(V)?a:Fr(E)?{[E]:V}:V},ee,V),W=E=>zs(ye(l.mount?o:a,E,e.shouldUnregister?ye(a,E,[]):[])),X=(E,V,ee={})=>{const he=ye(i,E);let me=V;if(he){const ue=he._f;ue&&(!ue.disabled&&et(o,E,gE(V,ue)),me=Cd(ue.ref)&&an(V)?"":V,dE(ue.ref)?[...ue.ref.options].forEach(le=>le.selected=me.includes(le.value)):ue.refs?Ns(ue.ref)?ue.refs.length>1?ue.refs.forEach(le=>(!le.defaultChecked||!le.disabled)&&(le.checked=Array.isArray(me)?!!me.find(H=>H===le.value):me===le.value)):ue.refs[0]&&(ue.refs[0].checked=!!me):ue.refs.forEach(le=>le.checked=le.value===me):Rv(ue.ref)?ue.ref.value="":(ue.ref.value=me,ue.ref.type||d.values.next({name:E,values:{...o}})))}(ee.shouldDirty||ee.shouldTouch)&&T(E,me,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&R(E)},ne=(E,V,ee)=>{for(const he in V){const me=V[he],ue=`${E}.${he}`,le=ye(i,ue);(s.array.has(E)||!kd(me)||le&&!le._f)&&!Ho(me)?ne(ue,me,ee):X(ue,me,ee)}},re=(E,V,ee={})=>{const he=ye(i,E),me=s.array.has(E),ue=mr(V);et(o,E,ue),me?(d.array.next({name:E,values:{...o}}),(f.isDirty||f.dirtyFields)&&ee.shouldDirty&&d.state.next({name:E,dirtyFields:qv(a,o),isDirty:D(E,ue)})):he&&!he._f&&!an(ue)?ne(E,ue,ee):X(E,ue,ee),iE(E,s)&&d.state.next({...r}),d.values.next({name:E,values:{...o}}),!l.mount&&t()},Z=async E=>{const V=E.target;let ee=V.name,he=!0;const me=ye(i,ee),ue=()=>V.type?Gv(me._f):Kk(E);if(me){let le,H;const oe=ue(),Ee=E.type===wd.BLUR||E.type===wd.FOCUS_OUT,De=!qpe(me._f)&&!n.resolver&&!ye(r.errors,ee)&&!me._f.deps||Gpe(Ee,ye(r.touchedFields,ee),r.isSubmitted,g,p),je=iE(ee,s,Ee);et(o,ee,oe),Ee?(me._f.onBlur&&me._f.onBlur(E),c&&c(0)):me._f.onChange&&me._f.onChange(E);const He=T(ee,oe,Ee,!1),ht=!Zn(He)||je;if(!Ee&&d.values.next({name:ee,type:E.type,values:{...o}}),De)return f.isValid&&b(),ht&&d.state.next({name:ee,...je?{}:He});if(!Ee&&je&&d.state.next({...r}),S(!0),n.resolver){const{errors:Lt}=await P([ee]),Ut=pE(r.errors,i,ee),Jn=pE(Lt,i,Ut.name||ee);le=Jn.error,ee=Jn.name,H=Zn(Lt)}else le=(await fE(me,o,y,n.shouldUseNativeValidation))[ee],he=isNaN(oe)||oe===ye(o,ee,oe),he&&(le?H=!1:f.isValid&&(H=await M(i,!0)));he&&(me._f.deps&&R(me._f.deps),k(ee,H,le,He))}},R=async(E,V={})=>{let ee,he;const me=Od(E);if(S(!0),n.resolver){const ue=await N(vt(E)?E:me);ee=Zn(ue),he=E?!me.some(le=>ye(ue,le)):ee}else E?(he=(await Promise.all(me.map(async ue=>{const le=ye(i,ue);return await M(le&&le._f?{[ue]:le}:le)}))).every(Boolean),!(!he&&!r.isValid)&&b()):he=ee=await M(i);return d.state.next({...!Fr(E)||f.isValid&&ee!==r.isValid?{}:{name:E},...n.resolver||!E?{isValid:ee}:{},errors:r.errors,isValidating:!1}),V.shouldFocus&&!he&&Wv(i,ue=>ue&&ye(r.errors,ue),E?me:s.mount),he},J=E=>{const V={...a,...l.mount?o:{}};return vt(E)?V:Fr(E)?ye(V,E):E.map(ee=>ye(V,ee))},U=(E,V)=>({invalid:!!ye((V||r).errors,E),isDirty:!!ye((V||r).dirtyFields,E),isTouched:!!ye((V||r).touchedFields,E),error:ye((V||r).errors,E)}),Y=E=>{E&&Od(E).forEach(V=>Rt(r.errors,V)),d.state.next({errors:E?r.errors:{}})},G=(E,V,ee)=>{const he=(ye(i,E,{_f:{}})._f||{}).ref;et(r.errors,E,{...V,ref:he}),d.state.next({name:E,errors:r.errors,isValid:!1}),ee&&ee.shouldFocus&&he&&he.focus&&he.focus()},ie=(E,V)=>Hi(E)?d.values.subscribe({next:ee=>E(I(void 0,V),ee)}):I(E,V,!0),z=(E,V={})=>{for(const ee of E?Od(E):s.mount)s.mount.delete(ee),s.array.delete(ee),V.keepValue||(Rt(i,ee),Rt(o,ee)),!V.keepError&&Rt(r.errors,ee),!V.keepDirty&&Rt(r.dirtyFields,ee),!V.keepTouched&&Rt(r.touchedFields,ee),!n.shouldUnregister&&!V.keepDefaultValue&&Rt(a,ee);d.values.next({values:{...o}}),d.state.next({...r,...V.keepDirty?{isDirty:D()}:{}}),!V.keepIsValid&&b()},se=({disabled:E,name:V,field:ee,fields:he})=>{if(Pa(E)){const me=E?void 0:ye(o,V,Gv(ee?ee._f:ye(he,V)._f));et(o,V,me),T(V,me,!1,!1,!0)}},K=(E,V={})=>{let ee=ye(i,E);const he=Pa(V.disabled);return et(i,E,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:E}},name:E,mount:!0,...V}}),s.mount.add(E),ee?se({field:ee,disabled:V.disabled,name:E}):A(E,!0,V.value),{...he?{disabled:V.disabled}:{},...n.progressive?{required:!!V.required,min:Bs(V.min),max:Bs(V.max),minLength:Bs(V.minLength),maxLength:Bs(V.maxLength),pattern:Bs(V.pattern)}:{},name:E,onChange:Z,onBlur:Z,ref:me=>{if(me){K(E,V),ee=ye(i,E);const ue=vt(me.value)&&me.querySelectorAll&&me.querySelectorAll("input,select,textarea")[0]||me,le=Hpe(ue),H=ee._f.refs||[];if(le?H.find(oe=>oe===ue):ue===ee._f.ref)return;et(i,E,{_f:{...ee._f,...le?{refs:[...H.filter(Uv),ue,...Array.isArray(ye(a,E))?[{}]:[]],ref:{type:ue.type,name:E}}:{ref:ue}}}),A(E,!1,void 0,ue)}else ee=ye(i,E,{}),ee._f&&(ee._f.mount=!1),(n.shouldUnregister||V.shouldUnregister)&&!(Zk(s.array,E)&&l.action)&&s.unMount.add(E)}}},Q=()=>n.shouldFocusError&&Wv(i,E=>E&&ye(r.errors,E),s.mount),te=(E,V)=>async ee=>{ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let he=mr(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:me,values:ue}=await P();r.errors=me,he=ue}else await M(i);Rt(r.errors,"root"),Zn(r.errors)?(d.state.next({errors:{}}),await E(he,ee)):(V&&await V({...r.errors},ee),Q(),setTimeout(Q)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zn(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ce=(E,V={})=>{ye(i,E)&&(vt(V.defaultValue)?re(E,ye(a,E)):(re(E,V.defaultValue),et(a,E,V.defaultValue)),V.keepTouched||Rt(r.touchedFields,E),V.keepDirty||(Rt(r.dirtyFields,E),r.isDirty=V.defaultValue?D(E,ye(a,E)):D()),V.keepError||(Rt(r.errors,E),f.isValid&&b()),d.state.next({...r}))},L=(E,V={})=>{const ee=E?mr(E):a,he=mr(ee),me=E&&!Zn(E)?he:a;if(V.keepDefaultValues||(a=ee),!V.keepValues){if(V.keepDirtyValues||h)for(const ue of s.mount)ye(r.dirtyFields,ue)?et(me,ue,ye(o,ue)):re(ue,ye(me,ue));else{if(Fv&&vt(E))for(const ue of s.mount){const le=ye(i,ue);if(le&&le._f){const H=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Cd(H)){const oe=H.closest("form");if(oe){oe.reset();break}}}}i={}}o=e.shouldUnregister?V.keepDefaultValues?mr(a):{}:mr(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!V.keepIsValid,l.watch=!!e.shouldUnregister,d.state.next({submitCount:V.keepSubmitCount?r.submitCount:0,isDirty:V.keepDirty?r.isDirty:!!(V.keepDefaultValues&&!ja(E,a)),isSubmitted:V.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:V.keepDirtyValues?r.dirtyFields:V.keepDefaultValues&&E?qv(a,E):{},touchedFields:V.keepTouched?r.touchedFields:{},errors:V.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},xe=(E,V)=>L(Hi(E)?E(o):E,V);return{control:{register:K,unregister:z,getFieldState:U,handleSubmit:te,setError:G,_executeSchema:P,_getWatch:I,_getDirty:D,_updateValid:b,_removeUnmounted:j,_updateFieldArray:O,_updateDisabledField:se,_getFieldArray:W,_reset:L,_resetDefaultValues:()=>Hi(n.defaultValues)&&n.defaultValues().then(E=>{xe(E,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:E=>{r={...r,...E}},_subjects:d,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return l},set _state(E){l=E},get _defaultValues(){return a},get _names(){return s},set _names(E){s=E},get _formState(){return r},set _formState(E){r=E},get _options(){return n},set _options(E){n={...n,...E}}},trigger:R,register:K,handleSubmit:te,watch:ie,setValue:re,getValues:J,reset:xe,resetField:ce,clearErrors:Y,unregister:z,setError:G,setFocus:(E,V={})=>{const ee=ye(i,E),he=ee&&ee._f;if(he){const me=he.refs?he.refs[0]:he.ref;me.focus&&(me.focus(),V.shouldSelect&&me.select())}},getFieldState:U}}function vE(e={}){const t=x.useRef(),n=x.useRef(),[r,i]=x.useState({isDirty:!1,isValidating:!1,isLoading:Hi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Hi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zpe(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Nv({subject:a._subjects.state,next:o=>{Qk(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),x.useEffect(()=>{e.values&&!ja(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),x.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Jk(r,a),t.current}function Xpe(e){const{name:t,readOnly:n,validate:r,...i}=e,{control:a,formState:{isSubmitting:o}}=mi();return v.jsx(Uo,{name:t,control:a,shouldUnregister:!0,render:({field:{onChange:l,value:s}})=>v.jsx(C.Checkbox,{...i,id:e.id??t.split(".").join("-"),"data-cy":e.id??t.split(".").join("-"),isChecked:!!s,onChange:l,readOnly:n||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:r}})}var Jpe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ws(e,t){var n=Qpe(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Qpe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Jpe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var eve=[".DS_Store","Thumbs.db"];function tve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return Pd(e)&&nve(e.dataTransfer)?[2,ove(e.dataTransfer,e.type)]:rve(e)?[2,ive(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,ave(e)]:[2,[]]})})}function nve(e){return Pd(e)}function rve(e){return Pd(e)&&Pd(e.target)}function Pd(e){return typeof e=="object"&&e!==null}function ive(e){return Yv(e.target.files).map(function(t){return Ws(t)})}function ave(e){return qa(this,void 0,void 0,function(){var t;return Ga(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ws(r)})]}})})}function ove(e,t){return qa(this,void 0,void 0,function(){var n,r;return Ga(this,function(i){switch(i.label){case 0:return e.items?(n=Yv(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(lve))]):[3,2];case 1:return r=i.sent(),[2,yE(bE(r))];case 2:return[2,yE(Yv(e.files).map(function(a){return Ws(a)}))]}})})}function yE(e){return e.filter(function(t){return eve.indexOf(t.name)===-1})}function Yv(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function lve(e){if(typeof e.webkitGetAsEntry!="function")return _E(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?xE(t):_E(e)}function bE(e){return e.reduce(function(t,n){return kb(kb([],Tb(t),!1),Tb(Array.isArray(n)?bE(n):[n]),!1)},[])}function _E(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ws(t);return Promise.resolve(n)}function sve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return[2,e.isDirectory?xE(e):cve(e)]})})}function xE(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(l){return qa(o,void 0,void 0,function(){var s,c,u;return Ga(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return s=f.sent(),n(s),[3,4];case 3:return c=f.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(l.map(sve)),i.push(u),a(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}a()})}function cve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Ws(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var uve=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function SE(e){return hve(e)||dve(e)||AE(e)||fve()}function fve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
425
+ `;function Ppe(e){const{title:t,items:n,keyFn:r,prompt:i,alertPrompts:a,confirmationColumns:o,isItemNonActionable:l,onConfirm:s,onClose:c,confirmText:u,actionButtonText:f,isDanger:d}=e,[h,p]=_r(),[g]=mt(),y=x.useCallback(()=>{p(void 0),c==null||c()},[c,p]),_=x.useMemo(()=>l&&n.some(l)?n.sort((k,j)=>$s(l(k),l(j))):n,[n,l]),b=Is(_),[S,O]=x.useState(!u),w=x.useMemo(()=>l&&n.some(l)?[{header:"",cell:k=>l(k)?v.jsx(C.Tooltip,{content:l(k),trigger:l(k)?void 0:"manual",children:v.jsx(C.Icon,{status:"warning",children:v.jsx(Ce.ExclamationTriangleIcon,{})})}):null},...o]:o,[o,l,n]),A=x.useMemo(()=>l?n.filter(k=>!l(k)):n,[l,n]),T=Pv(w);return v.jsx(C.Modal,{titleIconVariant:d?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:i,variant:C.ModalVariant.medium,isOpen:!0,onClose:y,actions:[v.jsx(C.Button,{ouiaId:"submit",variant:d?"danger":"primary",onClick:()=>{y(),s()},isAriaDisabled:!S,children:f},"submit"),v.jsx(C.Button,{variant:"link",onClick:c,children:g.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&v.jsxs(C.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[v.jsxs(kpe,{children:[a&&a.length>0&&a.map((k,j)=>v.jsx(C.Alert,{isInline:!0,title:k,variant:"warning"},j)),v.jsx(Ls,{pageItems:b.paged,itemCount:n.length,tableColumns:T,keyFn:r,compact:!0,errorStateTitle:"Error",emptyStateTitle:"No items",autoHidePagination:!0,disableBodyPadding:!0,...b},"items")]}),u&&A.length>0&&v.jsx(Epe,{children:v.jsx(C.Checkbox,{id:"confirm",ouiaId:"confirm",label:u,isChecked:S,onChange:O})})]})})}function jpe(){const[e,t]=_r(),[n,r]=x.useState();return x.useEffect(()=>{if(n){const i=()=>{var a;r(void 0),(a=n.onClose)==null||a.call(n)};t(v.jsx(Ppe,{...n,onClose:i}))}else t(void 0)},[n,t]),r}function Mpe(){const e=jpe(),t=Hk();return x.useCallback(n=>{const r=Object.assign({},n);return n.isItemNonActionable&&n.isItemNonActionable!==void 0&&(r.items=n.items.filter(i=>n.isItemNonActionable!==void 0&&!n.isItemNonActionable(i))),e({...n,onConfirm:()=>t(r)})},[t,e])}const uOe="";function Fs(e){let t="collapsed";return e.open&&(t+=" expanded"),v.jsx("div",{className:t,children:e.children})}function Dpe(e){const{title:t,description:n,view:r,tableColumns:i,toolbarFilters:a,confirmText:o,cancelText:l,onSelect:s,defaultSort:c,maxSelections:u,allowZeroSelections:f}=e,[d,h]=_r(),p=x.useCallback(()=>h(void 0),[h]),[g]=mt();return v.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:p,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",id:"confirm",onClick:()=>{p(),s(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!f,children:o??g.confirmText},"confirm"),v.jsx(C.Button,{variant:"link",onClick:p,children:l??g.cancelText},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:g.selectedText}),r.selectedItems.length>0?v.jsx(C.LabelGroup,{children:r.selectedItems.map((y,_)=>i&&i.length>0?v.jsx(C.Label,{onClose:()=>r.unselectItem(y),children:v.jsx(Wt,{item:y,column:i.find(b=>b.card==="name"||b.list==="name")??i[0]})},_):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:g.noneSelectedText})]})}),v.jsx(Fs,{open:r.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:r.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx(Ls,{tableColumns:i,toolbarFilters:a,...r,emptyStateTitle:e.emptyStateTitle??g.noItemsFound,errorStateTitle:e.errorStateTitle??g.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0,sort:c,maxSelections:u})})})]})}function Ipe(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,isMultiple:l}=e,[s,c]=x.useState(""),[u,f]=x.useState(),d=x.useCallback((g,y)=>{c(y??""),f(()=>g)},[]),[h,p]=_r();return x.useEffect(()=>{u!==void 0?p(v.jsx(Gk,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:u,view:t,tableColumns:n,toolbarFilters:r,confirm:i,cancel:a,selected:o,keyFn:t.keyFn})):(p(void 0),t.unselectAll())},[a,i,u,o,p,n,s,r,t,l]),d}function Gk(e){const{title:t,open:n,isMultiple:r=!1,setOpen:i,onSelect:a,view:o,tableColumns:l,toolbarFilters:s,confirm:c,cancel:u,selected:f}=e,d=()=>i(!1),{t:h}=ut();return v.jsxs(C.Modal,{title:t,"aria-label":t,ouiaId:t,isOpen:n,onClose:d,variant:C.ModalVariant.medium,tabIndex:0,actions:[v.jsx(C.Button,{variant:"primary",onClick:()=>{!r&&o.selectedItems.length>0?a(o.selectedItems[0]):r&&a(o.selectedItems),d()},isAriaDisabled:o.selectedItems.length===0,children:c},"confirm"),v.jsx(C.Button,{variant:"link",onClick:d,children:u},"cancel")],hasNoBodyWrapper:!0,children:[v.jsx(C.ModalBoxBody,{style:{overflow:"hidden"},children:v.jsxs(C.Split,{hasGutter:!0,children:[v.jsx(C.SplitItem,{style:{fontWeight:"bold"},children:f}),o.selectedItems.length>0?v.jsx(C.ChipGroup,{children:o.selectedItems.map((p,g)=>l&&l.length>0?v.jsx(C.Chip,{onClick:()=>o.unselectItem(p),children:v.jsx(Wt,{item:p,column:l.find(y=>y.card==="name"||y.list==="name")??l[0]})},g):v.jsx(v.Fragment,{}))}):v.jsx(C.SplitItem,{style:{fontStyle:"italic"},children:h`None - Please make a selection below.`})]})}),v.jsx(Fs,{open:o.itemCount===void 0,children:v.jsx(C.Skeleton,{height:"80px"})}),v.jsx(Fs,{open:o.itemCount!==void 0,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:v.jsx(Ls,{tableColumns:l,toolbarFilters:s,emptyStateTitle:"No organizations found",errorStateTitle:"Error loading organizations",...o,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}var Ns=e=>e.type==="checkbox",Ho=e=>e instanceof Date,an=e=>e==null;const Yk=e=>typeof e=="object";var Mt=e=>!an(e)&&!Array.isArray(e)&&Yk(e)&&!Ho(e),Kk=e=>Mt(e)&&e.target?Ns(e.target)?e.target.checked:e.target.value:e,Lpe=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Zk=(e,t)=>e.has(Lpe(t)),$pe=e=>{const t=e.constructor&&e.constructor.prototype;return Mt(t)&&t.hasOwnProperty("isPrototypeOf")},Fv=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function mr(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Fv&&(e instanceof Blob||e instanceof FileList))&&(n||Mt(e)))if(t=n?[]:{},!n&&!$pe(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=mr(e[r]));else return e;return t}var zs=e=>Array.isArray(e)?e.filter(Boolean):[],vt=e=>e===void 0,ye=(e,t,n)=>{if(!t||!Mt(e))return n;const r=zs(t.split(/[,[\].]+?/)).reduce((i,a)=>an(i)?i:i[a],e);return vt(r)||r===e?vt(e[t])?n:e[t]:r};const wd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},gr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},hi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Xk=x.createContext(null),mi=()=>x.useContext(Xk),Fpe=e=>{const{children:t,...n}=e;return x.createElement(Xk.Provider,{value:n},t)};var Jk=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const o=a;return t._proxyFormState[o]!==gr.all&&(t._proxyFormState[o]=!r||gr.all),n&&(n[o]=!0),e[o]}});return i},Zn=e=>Mt(e)&&!Object.keys(e).length,Qk=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return Zn(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(o=>t[o]===(!r||gr.all))},Od=e=>Array.isArray(e)?e:[e],eE=(e,t,n)=>n&&t?e===t||Array.isArray(e)&&e.some(r=>r&&n&&r===t):!e||!t||e===t||Od(e).some(r=>r&&(r.startsWith(t)||t.startsWith(r)));function Nv(e){const t=x.useRef(e);t.current=e,x.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function zv(e){const t=mi(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,l]=x.useState(n._formState),s=x.useRef(!0),c=x.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=x.useRef(i);return u.current=i,Nv({disabled:r,next:f=>s.current&&eE(u.current,f.name,a)&&Qk(f,c.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),x.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Jk(o,n,c.current,!1)}var Fr=e=>typeof e=="string",tE=(e,t,n,r,i)=>Fr(e)?(r&&t.watch.add(e),ye(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ye(n,a))):(r&&(t.watchAll=!0),n);function Npe(e){const t=mi(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},l=x.useRef(r);l.current=r,Nv({disabled:a,subject:n._subjects.values,next:u=>{eE(l.current,u.name,o)&&c(mr(tE(l.current,n._names,u.values||n._formValues,!1,i)))}});const[s,c]=x.useState(n._getWatch(r,i));return x.useEffect(()=>n._removeUnmounted()),s}var Bv=e=>/^\w*$/.test(e),nE=e=>zs(e.replace(/["|']|\]/g,"").split(/\.|\[/));function et(e,t,n){let r=-1;const i=Bv(t)?[t]:nE(t),a=i.length,o=a-1;for(;++r<a;){const l=i[r];let s=n;if(r!==o){const c=e[l];s=Mt(c)||Array.isArray(c)?c:isNaN(+i[r+1])?{}:[]}e[l]=s,e=e[l]}return e}function zpe(e){const t=mi(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Zk(i._names.array,n),l=Npe({control:i,name:n,defaultValue:ye(i._formValues,n,ye(i._defaultValues,n,e.defaultValue)),exact:!0}),s=zv({control:i,name:n}),c=x.useRef(i.register(n,{...e.rules,value:l}));return c.current=i.register(n,e.rules),x.useEffect(()=>{const u=i._options.shouldUnregister||a,f=(d,h)=>{const p=ye(i._fields,d);p&&(p._f.mount=h)};if(f(n,!0),u){const d=mr(ye(i._options.defaultValues,n));et(i._defaultValues,n,d),vt(ye(i._formValues,n))&&et(i._formValues,n,d)}return()=>{(o?u&&!i._state.action:u)?i.unregister(n):f(n,!1)}},[n,i,o,a]),x.useEffect(()=>{i._updateDisabledField({disabled:r,fields:i._fields,name:n})},[r,n,i]),{field:{name:n,value:l,disabled:r,onChange:x.useCallback(u=>c.current.onChange({target:{value:Kk(u),name:n},type:wd.CHANGE}),[n]),onBlur:x.useCallback(()=>c.current.onBlur({target:{value:ye(i._formValues,n),name:n},type:wd.BLUR}),[n,i]),ref:u=>{const f=ye(i._fields,n);f&&u&&(f._f.ref={focus:()=>u.focus(),select:()=>u.select(),setCustomValidity:d=>u.setCustomValidity(d),reportValidity:()=>u.reportValidity()})}},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ye(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!ye(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ye(s.touchedFields,n)},error:{enumerable:!0,get:()=>ye(s.errors,n)}})}}const Uo=e=>e.render(zpe(e));var Bpe=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{};const Wv=(e,t,n)=>{for(const r of n||Object.keys(e)){const i=ye(e,r);if(i){const{_f:a,...o}=i;if(a&&t(a.name)){if(a.ref.focus){a.ref.focus();break}else if(a.refs&&a.refs[0].focus){a.refs[0].focus();break}}else Mt(o)&&Wv(o,t)}}};var rE=e=>({isOnSubmit:!e||e===gr.onSubmit,isOnBlur:e===gr.onBlur,isOnChange:e===gr.onChange,isOnAll:e===gr.all,isOnTouch:e===gr.onTouched}),iE=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length)))),Wpe=(e,t,n)=>{const r=zs(ye(e,n));return et(r,"root",t[n]),et(e,n,r),e},Pa=e=>typeof e=="boolean",Rv=e=>e.type==="file",Hi=e=>typeof e=="function",Cd=e=>{if(!Fv)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Ad=e=>Fr(e),Vv=e=>e.type==="radio",Td=e=>e instanceof RegExp;const aE={value:!1,isValid:!1},oE={value:!0,isValid:!0};var lE=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!vt(e[0].attributes.value)?vt(e[0].value)||e[0].value===""?oE:{value:e[0].value,isValid:!0}:oE:aE}return aE};const sE={isValid:!1,value:null};var cE=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,sE):sE;function uE(e,t,n="validate"){if(Ad(e)||Array.isArray(e)&&e.every(Ad)||Pa(e)&&!e)return{type:n,message:Ad(e)?e:"",ref:t}}var qo=e=>Mt(e)&&!Td(e)?e:{value:e,message:""},fE=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:l,maxLength:s,minLength:c,min:u,max:f,pattern:d,validate:h,name:p,valueAsNumber:g,mount:y,disabled:_}=e._f,b=ye(t,p);if(!y||_)return{};const S=o?o[0]:a,O=E=>{r&&S.reportValidity&&(S.setCustomValidity(Pa(E)?"":E||""),S.reportValidity())},w={},A=Vv(a),T=Ns(a),k=A||T,j=(g||Rv(a))&&vt(a.value)&&vt(b)||Cd(a)&&a.value===""||b===""||Array.isArray(b)&&!b.length,N=Bpe.bind(null,p,n,w),M=(E,I,D,W=hi.maxLength,X=hi.minLength)=>{const ne=E?I:D;w[p]={type:E?W:X,message:ne,ref:a,...N(E?W:X,ne)}};if(i?!Array.isArray(b)||!b.length:l&&(!k&&(j||an(b))||Pa(b)&&!b||T&&!lE(o).isValid||A&&!cE(o).isValid)){const{value:E,message:I}=Ad(l)?{value:!!l,message:l}:qo(l);if(E&&(w[p]={type:hi.required,message:I,ref:S,...N(hi.required,I)},!n))return O(I),w}if(!j&&(!an(u)||!an(f))){let E,I;const D=qo(f),W=qo(u);if(!an(b)&&!isNaN(b)){const X=a.valueAsNumber||b&&+b;an(D.value)||(E=X>D.value),an(W.value)||(I=X<W.value)}else{const X=a.valueAsDate||new Date(b),ne=R=>new Date(new Date().toDateString()+" "+R),re=a.type=="time",Z=a.type=="week";Fr(D.value)&&b&&(E=re?ne(b)>ne(D.value):Z?b>D.value:X>new Date(D.value)),Fr(W.value)&&b&&(I=re?ne(b)<ne(W.value):Z?b<W.value:X<new Date(W.value))}if((E||I)&&(M(!!E,D.message,W.message,hi.max,hi.min),!n))return O(w[p].message),w}if((s||c)&&!j&&(Fr(b)||i&&Array.isArray(b))){const E=qo(s),I=qo(c),D=!an(E.value)&&b.length>+E.value,W=!an(I.value)&&b.length<+I.value;if((D||W)&&(M(D,E.message,I.message),!n))return O(w[p].message),w}if(d&&!j&&Fr(b)){const{value:E,message:I}=qo(d);if(Td(E)&&!b.match(E)&&(w[p]={type:hi.pattern,message:I,ref:a,...N(hi.pattern,I)},!n))return O(I),w}if(h){if(Hi(h)){const E=await h(b,t),I=uE(E,S);if(I&&(w[p]={...I,...N(hi.validate,I.message)},!n))return O(I.message),w}else if(Mt(h)){let E={};for(const I in h){if(!Zn(E)&&!n)break;const D=uE(await h[I](b,t),S,I);D&&(E={...D,...N(I,D.message)},O(D.message),n&&(w[p]=E))}if(!Zn(E)&&(w[p]={ref:S,...E},!n))return w}}return O(!0),w};function Rpe(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=vt(e)?r++:e[t[r++]];return e}function Vpe(e){for(const t in e)if(e.hasOwnProperty(t)&&!vt(e[t]))return!1;return!0}function Rt(e,t){const n=Array.isArray(t)?t:Bv(t)?[t]:nE(t),r=n.length===1?e:Rpe(e,n),i=n.length-1,a=n[i];return r&&delete r[a],i!==0&&(Mt(r)&&Zn(r)||Array.isArray(r)&&Vpe(r))&&Rt(e,n.slice(0,-1)),e}function Hv(){let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}}var kd=e=>an(e)||!Yk(e);function ja(e,t){if(kd(e)||kd(t))return e===t;if(Ho(e)&&Ho(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const o=t[i];if(Ho(a)&&Ho(o)||Mt(a)&&Mt(o)||Array.isArray(a)&&Array.isArray(o)?!ja(a,o):a!==o)return!1}}return!0}var dE=e=>e.type==="select-multiple",Hpe=e=>Vv(e)||Ns(e),Uv=e=>Cd(e)&&e.isConnected,hE=e=>{for(const t in e)if(Hi(e[t]))return!0;return!1};function Ed(e,t={}){const n=Array.isArray(e);if(Mt(e)||n)for(const r in e)Array.isArray(e[r])||Mt(e[r])&&!hE(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Ed(e[r],t[r])):an(e[r])||(t[r]=!0);return t}function mE(e,t,n){const r=Array.isArray(e);if(Mt(e)||r)for(const i in e)Array.isArray(e[i])||Mt(e[i])&&!hE(e[i])?vt(t)||kd(n[i])?n[i]=Array.isArray(e[i])?Ed(e[i],[]):{...Ed(e[i])}:mE(e[i],an(t)?{}:t[i],n[i]):n[i]=!ja(e[i],t[i]);return n}var qv=(e,t)=>mE(e,t,Ed(t)),gE=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>vt(e)?e:t?e===""?NaN:e&&+e:n&&Fr(e)?new Date(e):r?r(e):e;function Gv(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Rv(t)?t.files:Vv(t)?cE(e.refs).value:dE(t)?[...t.selectedOptions].map(({value:n})=>n):Ns(t)?lE(e.refs).value:gE(vt(t.value)?e.ref.value:t.value,e)}var Upe=(e,t,n,r)=>{const i={};for(const a of e){const o=ye(t,a);o&&et(i,a,o._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Bs=e=>vt(e)?e:Td(e)?e.source:Mt(e)?Td(e.value)?e.value.source:e.value:e,qpe=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function pE(e,t,n){const r=ye(e,n);if(r||Bv(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),o=ye(t,a),l=ye(e,a);if(o&&!Array.isArray(o)&&n!==a)return{name:n};if(l&&l.type)return{name:a,error:l};i.pop()}return{name:n}}var Gpe=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,Ype=(e,t)=>!zs(ye(e,t)).length&&Rt(e,t);const Kpe={mode:gr.onSubmit,reValidateMode:gr.onChange,shouldFocusError:!0};function Zpe(e={},t){let n={...Kpe,...e},r={submitCount:0,isDirty:!1,isLoading:Hi(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{}},i={},a=Mt(n.defaultValues)||Mt(n.values)?mr(n.defaultValues||n.values)||{}:{},o=n.shouldUnregister?{}:mr(a),l={action:!1,mount:!1,watch:!1},s={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c,u=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Hv(),array:Hv(),state:Hv()},h=e.resetOptions&&e.resetOptions.keepDirtyValues,p=rE(n.mode),g=rE(n.reValidateMode),y=n.criteriaMode===gr.all,_=P=>V=>{clearTimeout(u),u=setTimeout(P,V)},b=async P=>{if(f.isValid||P){const V=n.resolver?Zn((await j()).errors):await M(i,!0);V!==r.isValid&&d.state.next({isValid:V})}},S=P=>f.isValidating&&d.state.next({isValidating:P}),O=(P,V=[],ee,he,me=!0,ue=!0)=>{if(he&&ee){if(l.action=!0,ue&&Array.isArray(ye(i,P))){const le=ee(ye(i,P),he.argA,he.argB);me&&et(i,P,le)}if(ue&&Array.isArray(ye(r.errors,P))){const le=ee(ye(r.errors,P),he.argA,he.argB);me&&et(r.errors,P,le),Ype(r.errors,P)}if(f.touchedFields&&ue&&Array.isArray(ye(r.touchedFields,P))){const le=ee(ye(r.touchedFields,P),he.argA,he.argB);me&&et(r.touchedFields,P,le)}f.dirtyFields&&(r.dirtyFields=qv(a,o)),d.state.next({name:P,isDirty:I(P,V),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else et(o,P,V)},w=(P,V)=>{et(r.errors,P,V),d.state.next({errors:r.errors})},A=(P,V,ee,he)=>{const me=ye(i,P);if(me){const ue=ye(o,P,vt(ee)?ye(a,P):ee);vt(ue)||he&&he.defaultChecked||V?et(o,P,V?ue:Gv(me._f)):X(P,ue),l.mount&&b()}},T=(P,V,ee,he,me)=>{let ue=!1,le=!1;const H={name:P};if(!ee||he){f.isDirty&&(le=r.isDirty,r.isDirty=H.isDirty=I(),ue=le!==H.isDirty);const oe=ja(ye(a,P),V);le=ye(r.dirtyFields,P),oe?Rt(r.dirtyFields,P):et(r.dirtyFields,P,!0),H.dirtyFields=r.dirtyFields,ue=ue||f.dirtyFields&&le!==!oe}if(ee){const oe=ye(r.touchedFields,P);oe||(et(r.touchedFields,P,ee),H.touchedFields=r.touchedFields,ue=ue||f.touchedFields&&oe!==ee)}return ue&&me&&d.state.next(H),ue?H:{}},k=(P,V,ee,he)=>{const me=ye(r.errors,P),ue=f.isValid&&Pa(V)&&r.isValid!==V;if(e.delayError&&ee?(c=_(()=>w(P,ee)),c(e.delayError)):(clearTimeout(u),c=null,ee?et(r.errors,P,ee):Rt(r.errors,P)),(ee?!ja(me,ee):me)||!Zn(he)||ue){const le={...he,...ue&&Pa(V)?{isValid:V}:{},errors:r.errors,name:P};r={...r,...le},d.state.next(le)}S(!1)},j=async P=>n.resolver(o,n.context,Upe(P||s.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),N=async P=>{const{errors:V}=await j(P);if(P)for(const ee of P){const he=ye(V,ee);he?et(r.errors,ee,he):Rt(r.errors,ee)}else r.errors=V;return V},M=async(P,V,ee={valid:!0})=>{for(const he in P){const me=P[he];if(me){const{_f:ue,...le}=me;if(ue){const H=s.array.has(ue.name),oe=await fE(me,o,y,n.shouldUseNativeValidation&&!V,H);if(oe[ue.name]&&(ee.valid=!1,V))break;!V&&(ye(oe,ue.name)?H?Wpe(r.errors,oe,ue.name):et(r.errors,ue.name,oe[ue.name]):Rt(r.errors,ue.name))}le&&await M(le,V,ee)}}return ee.valid},E=()=>{for(const P of s.unMount){const V=ye(i,P);V&&(V._f.refs?V._f.refs.every(ee=>!Uv(ee)):!Uv(V._f.ref))&&z(P)}s.unMount=new Set},I=(P,V)=>(P&&V&&et(o,P,V),!ja(J(),a)),D=(P,V,ee)=>tE(P,s,{...l.mount?o:vt(V)?a:Fr(P)?{[P]:V}:V},ee,V),W=P=>zs(ye(l.mount?o:a,P,e.shouldUnregister?ye(a,P,[]):[])),X=(P,V,ee={})=>{const he=ye(i,P);let me=V;if(he){const ue=he._f;ue&&(!ue.disabled&&et(o,P,gE(V,ue)),me=Cd(ue.ref)&&an(V)?"":V,dE(ue.ref)?[...ue.ref.options].forEach(le=>le.selected=me.includes(le.value)):ue.refs?Ns(ue.ref)?ue.refs.length>1?ue.refs.forEach(le=>(!le.defaultChecked||!le.disabled)&&(le.checked=Array.isArray(me)?!!me.find(H=>H===le.value):me===le.value)):ue.refs[0]&&(ue.refs[0].checked=!!me):ue.refs.forEach(le=>le.checked=le.value===me):Rv(ue.ref)?ue.ref.value="":(ue.ref.value=me,ue.ref.type||d.values.next({name:P,values:{...o}})))}(ee.shouldDirty||ee.shouldTouch)&&T(P,me,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&R(P)},ne=(P,V,ee)=>{for(const he in V){const me=V[he],ue=`${P}.${he}`,le=ye(i,ue);(s.array.has(P)||!kd(me)||le&&!le._f)&&!Ho(me)?ne(ue,me,ee):X(ue,me,ee)}},re=(P,V,ee={})=>{const he=ye(i,P),me=s.array.has(P),ue=mr(V);et(o,P,ue),me?(d.array.next({name:P,values:{...o}}),(f.isDirty||f.dirtyFields)&&ee.shouldDirty&&d.state.next({name:P,dirtyFields:qv(a,o),isDirty:I(P,ue)})):he&&!he._f&&!an(ue)?ne(P,ue,ee):X(P,ue,ee),iE(P,s)&&d.state.next({...r}),d.values.next({name:P,values:{...o}}),!l.mount&&t()},Z=async P=>{const V=P.target;let ee=V.name,he=!0;const me=ye(i,ee),ue=()=>V.type?Gv(me._f):Kk(P);if(me){let le,H;const oe=ue(),Ee=P.type===wd.BLUR||P.type===wd.FOCUS_OUT,De=!qpe(me._f)&&!n.resolver&&!ye(r.errors,ee)&&!me._f.deps||Gpe(Ee,ye(r.touchedFields,ee),r.isSubmitted,g,p),je=iE(ee,s,Ee);et(o,ee,oe),Ee?(me._f.onBlur&&me._f.onBlur(P),c&&c(0)):me._f.onChange&&me._f.onChange(P);const He=T(ee,oe,Ee,!1),ht=!Zn(He)||je;if(!Ee&&d.values.next({name:ee,type:P.type,values:{...o}}),De)return f.isValid&&b(),ht&&d.state.next({name:ee,...je?{}:He});if(!Ee&&je&&d.state.next({...r}),S(!0),n.resolver){const{errors:Lt}=await j([ee]),Ut=pE(r.errors,i,ee),Jn=pE(Lt,i,Ut.name||ee);le=Jn.error,ee=Jn.name,H=Zn(Lt)}else le=(await fE(me,o,y,n.shouldUseNativeValidation))[ee],he=isNaN(oe)||oe===ye(o,ee,oe),he&&(le?H=!1:f.isValid&&(H=await M(i,!0)));he&&(me._f.deps&&R(me._f.deps),k(ee,H,le,He))}},R=async(P,V={})=>{let ee,he;const me=Od(P);if(S(!0),n.resolver){const ue=await N(vt(P)?P:me);ee=Zn(ue),he=P?!me.some(le=>ye(ue,le)):ee}else P?(he=(await Promise.all(me.map(async ue=>{const le=ye(i,ue);return await M(le&&le._f?{[ue]:le}:le)}))).every(Boolean),!(!he&&!r.isValid)&&b()):he=ee=await M(i);return d.state.next({...!Fr(P)||f.isValid&&ee!==r.isValid?{}:{name:P},...n.resolver||!P?{isValid:ee}:{},errors:r.errors,isValidating:!1}),V.shouldFocus&&!he&&Wv(i,ue=>ue&&ye(r.errors,ue),P?me:s.mount),he},J=P=>{const V={...a,...l.mount?o:{}};return vt(P)?V:Fr(P)?ye(V,P):P.map(ee=>ye(V,ee))},U=(P,V)=>({invalid:!!ye((V||r).errors,P),isDirty:!!ye((V||r).dirtyFields,P),isTouched:!!ye((V||r).touchedFields,P),error:ye((V||r).errors,P)}),Y=P=>{P&&Od(P).forEach(V=>Rt(r.errors,V)),d.state.next({errors:P?r.errors:{}})},G=(P,V,ee)=>{const he=(ye(i,P,{_f:{}})._f||{}).ref;et(r.errors,P,{...V,ref:he}),d.state.next({name:P,errors:r.errors,isValid:!1}),ee&&ee.shouldFocus&&he&&he.focus&&he.focus()},ie=(P,V)=>Hi(P)?d.values.subscribe({next:ee=>P(D(void 0,V),ee)}):D(P,V,!0),z=(P,V={})=>{for(const ee of P?Od(P):s.mount)s.mount.delete(ee),s.array.delete(ee),V.keepValue||(Rt(i,ee),Rt(o,ee)),!V.keepError&&Rt(r.errors,ee),!V.keepDirty&&Rt(r.dirtyFields,ee),!V.keepTouched&&Rt(r.touchedFields,ee),!n.shouldUnregister&&!V.keepDefaultValue&&Rt(a,ee);d.values.next({values:{...o}}),d.state.next({...r,...V.keepDirty?{isDirty:I()}:{}}),!V.keepIsValid&&b()},se=({disabled:P,name:V,field:ee,fields:he})=>{if(Pa(P)){const me=P?void 0:ye(o,V,Gv(ee?ee._f:ye(he,V)._f));et(o,V,me),T(V,me,!1,!1,!0)}},K=(P,V={})=>{let ee=ye(i,P);const he=Pa(V.disabled);return et(i,P,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:P}},name:P,mount:!0,...V}}),s.mount.add(P),ee?se({field:ee,disabled:V.disabled,name:P}):A(P,!0,V.value),{...he?{disabled:V.disabled}:{},...n.progressive?{required:!!V.required,min:Bs(V.min),max:Bs(V.max),minLength:Bs(V.minLength),maxLength:Bs(V.maxLength),pattern:Bs(V.pattern)}:{},name:P,onChange:Z,onBlur:Z,ref:me=>{if(me){K(P,V),ee=ye(i,P);const ue=vt(me.value)&&me.querySelectorAll&&me.querySelectorAll("input,select,textarea")[0]||me,le=Hpe(ue),H=ee._f.refs||[];if(le?H.find(oe=>oe===ue):ue===ee._f.ref)return;et(i,P,{_f:{...ee._f,...le?{refs:[...H.filter(Uv),ue,...Array.isArray(ye(a,P))?[{}]:[]],ref:{type:ue.type,name:P}}:{ref:ue}}}),A(P,!1,void 0,ue)}else ee=ye(i,P,{}),ee._f&&(ee._f.mount=!1),(n.shouldUnregister||V.shouldUnregister)&&!(Zk(s.array,P)&&l.action)&&s.unMount.add(P)}}},Q=()=>n.shouldFocusError&&Wv(i,P=>P&&ye(r.errors,P),s.mount),te=(P,V)=>async ee=>{ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let he=mr(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:me,values:ue}=await j();r.errors=me,he=ue}else await M(i);Rt(r.errors,"root"),Zn(r.errors)?(d.state.next({errors:{}}),await P(he,ee)):(V&&await V({...r.errors},ee),Q(),setTimeout(Q)),d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Zn(r.errors),submitCount:r.submitCount+1,errors:r.errors})},ce=(P,V={})=>{ye(i,P)&&(vt(V.defaultValue)?re(P,ye(a,P)):(re(P,V.defaultValue),et(a,P,V.defaultValue)),V.keepTouched||Rt(r.touchedFields,P),V.keepDirty||(Rt(r.dirtyFields,P),r.isDirty=V.defaultValue?I(P,ye(a,P)):I()),V.keepError||(Rt(r.errors,P),f.isValid&&b()),d.state.next({...r}))},L=(P,V={})=>{const ee=P?mr(P):a,he=mr(ee),me=P&&!Zn(P)?he:a;if(V.keepDefaultValues||(a=ee),!V.keepValues){if(V.keepDirtyValues||h)for(const ue of s.mount)ye(r.dirtyFields,ue)?et(me,ue,ye(o,ue)):re(ue,ye(me,ue));else{if(Fv&&vt(P))for(const ue of s.mount){const le=ye(i,ue);if(le&&le._f){const H=Array.isArray(le._f.refs)?le._f.refs[0]:le._f.ref;if(Cd(H)){const oe=H.closest("form");if(oe){oe.reset();break}}}}i={}}o=e.shouldUnregister?V.keepDefaultValues?mr(a):{}:mr(me),d.array.next({values:{...me}}),d.values.next({values:{...me}})}s={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!l.mount&&t(),l.mount=!f.isValid||!!V.keepIsValid,l.watch=!!e.shouldUnregister,d.state.next({submitCount:V.keepSubmitCount?r.submitCount:0,isDirty:V.keepDirty?r.isDirty:!!(V.keepDefaultValues&&!ja(P,a)),isSubmitted:V.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:V.keepDirtyValues?r.dirtyFields:V.keepDefaultValues&&P?qv(a,P):{},touchedFields:V.keepTouched?r.touchedFields:{},errors:V.keepErrors?r.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})},xe=(P,V)=>L(Hi(P)?P(o):P,V);return{control:{register:K,unregister:z,getFieldState:U,handleSubmit:te,setError:G,_executeSchema:j,_getWatch:D,_getDirty:I,_updateValid:b,_removeUnmounted:E,_updateFieldArray:O,_updateDisabledField:se,_getFieldArray:W,_reset:L,_resetDefaultValues:()=>Hi(n.defaultValues)&&n.defaultValues().then(P=>{xe(P,n.resetOptions),d.state.next({isLoading:!1})}),_updateFormState:P=>{r={...r,...P}},_subjects:d,_proxyFormState:f,get _fields(){return i},get _formValues(){return o},get _state(){return l},set _state(P){l=P},get _defaultValues(){return a},get _names(){return s},set _names(P){s=P},get _formState(){return r},set _formState(P){r=P},get _options(){return n},set _options(P){n={...n,...P}}},trigger:R,register:K,handleSubmit:te,watch:ie,setValue:re,getValues:J,reset:xe,resetField:ce,clearErrors:Y,unregister:z,setError:G,setFocus:(P,V={})=>{const ee=ye(i,P),he=ee&&ee._f;if(he){const me=he.refs?he.refs[0]:he.ref;me.focus&&(me.focus(),V.shouldSelect&&me.select())}},getFieldState:U}}function vE(e={}){const t=x.useRef(),n=x.useRef(),[r,i]=x.useState({isDirty:!1,isValidating:!1,isLoading:Hi(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},defaultValues:Hi(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zpe(e,()=>i(o=>({...o}))),formState:r});const a=t.current.control;return a._options=e,Nv({subject:a._subjects.state,next:o=>{Qk(o,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),x.useEffect(()=>{e.values&&!ja(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values):a._resetDefaultValues()},[e.values,a]),x.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Jk(r,a),t.current}function Xpe(e){const{name:t,readOnly:n,validate:r,...i}=e,{control:a,formState:{isSubmitting:o}}=mi();return v.jsx(Uo,{name:t,control:a,shouldUnregister:!0,render:({field:{onChange:l,value:s}})=>v.jsx(C.Checkbox,{...i,id:e.id??t.split(".").join("-"),"data-cy":e.id??t.split(".").join("-"),isChecked:!!s,onChange:l,readOnly:n||o,minLength:void 0,maxLength:void 0,ref:void 0}),rules:{validate:r}})}var Jpe=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function Ws(e,t){var n=Qpe(e);if(typeof n.path!="string"){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:typeof t=="string"?t:typeof r=="string"&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}function Qpe(e){var t=e.name,n=t&&t.lastIndexOf(".")!==-1;if(n&&!e.type){var r=t.split(".").pop().toLowerCase(),i=Jpe.get(r);i&&Object.defineProperty(e,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return e}var eve=[".DS_Store","Thumbs.db"];function tve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return Pd(e)&&nve(e.dataTransfer)?[2,ove(e.dataTransfer,e.type)]:rve(e)?[2,ive(e)]:Array.isArray(e)&&e.every(function(n){return"getFile"in n&&typeof n.getFile=="function"})?[2,ave(e)]:[2,[]]})})}function nve(e){return Pd(e)}function rve(e){return Pd(e)&&Pd(e.target)}function Pd(e){return typeof e=="object"&&e!==null}function ive(e){return Yv(e.target.files).map(function(t){return Ws(t)})}function ave(e){return qa(this,void 0,void 0,function(){var t;return Ga(this,function(n){switch(n.label){case 0:return[4,Promise.all(e.map(function(r){return r.getFile()}))];case 1:return t=n.sent(),[2,t.map(function(r){return Ws(r)})]}})})}function ove(e,t){return qa(this,void 0,void 0,function(){var n,r;return Ga(this,function(i){switch(i.label){case 0:return e.items?(n=Yv(e.items).filter(function(a){return a.kind==="file"}),t!=="drop"?[2,n]:[4,Promise.all(n.map(lve))]):[3,2];case 1:return r=i.sent(),[2,yE(bE(r))];case 2:return[2,yE(Yv(e.files).map(function(a){return Ws(a)}))]}})})}function yE(e){return e.filter(function(t){return eve.indexOf(t.name)===-1})}function Yv(e){if(e===null)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function lve(e){if(typeof e.webkitGetAsEntry!="function")return _E(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?xE(t):_E(e)}function bE(e){return e.reduce(function(t,n){return kb(kb([],Tb(t),!1),Tb(Array.isArray(n)?bE(n):[n]),!1)},[])}function _E(e){var t=e.getAsFile();if(!t)return Promise.reject("".concat(e," is not a File"));var n=Ws(t);return Promise.resolve(n)}function sve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return[2,e.isDirectory?xE(e):cve(e)]})})}function xE(e){var t=e.createReader();return new Promise(function(n,r){var i=[];function a(){var o=this;t.readEntries(function(l){return qa(o,void 0,void 0,function(){var s,c,u;return Ga(this,function(f){switch(f.label){case 0:if(l.length)return[3,5];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return s=f.sent(),n(s),[3,4];case 3:return c=f.sent(),r(c),[3,4];case 4:return[3,6];case 5:u=Promise.all(l.map(sve)),i.push(u),a(),f.label=6;case 6:return[2]}})})},function(l){r(l)})}a()})}function cve(e){return qa(this,void 0,void 0,function(){return Ga(this,function(t){return[2,new Promise(function(n,r){e.file(function(i){var a=Ws(i,e.fullPath);n(a)},function(i){r(i)})})]})})}var uve=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",i=(e.type||"").toLowerCase(),a=i.replace(/\/.*$/,"");return n.some(function(o){var l=o.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?a===l.replace(/\/.*$/,""):i===l})}return!0};function SE(e){return hve(e)||dve(e)||AE(e)||fve()}function fve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
426
426
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hve(e){if(Array.isArray(e))return Kv(e)}function wE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function OE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wE(Object(n),!0).forEach(function(r){CE(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rs(e,t){return pve(e)||gve(e,t)||AE(e,t)||mve()}function mve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
427
427
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AE(e,t){if(e){if(typeof e=="string")return Kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(e,t)}}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function pve(e){if(Array.isArray(e))return e}var vve="file-invalid-type",yve="file-too-large",bve="file-too-small",_ve="too-many-files",xve=function(t){t=Array.isArray(t)&&t.length===1?t[0]:t;var n=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:vve,message:"File type must be ".concat(n)}},TE=function(t){return{code:yve,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},kE=function(t){return{code:bve,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},Sve={code:_ve,message:"Too many files"};function EE(e,t){var n=e.type==="application/x-moz-file"||uve(e,t);return[n,n?null:xve(t)]}function PE(e,t,n){if(Ma(e.size))if(Ma(t)&&Ma(n)){if(e.size>n)return[!1,TE(n)];if(e.size<t)return[!1,kE(t)]}else{if(Ma(t)&&e.size<t)return[!1,kE(t)];if(Ma(n)&&e.size>n)return[!1,TE(n)]}return[!0,null]}function Ma(e){return e!=null}function wve(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,o=e.maxFiles,l=e.validator;return!a&&t.length>1||a&&o>=1&&t.length>o?!1:t.every(function(s){var c=EE(s,n),u=Rs(c,1),f=u[0],d=PE(s,r,i),h=Rs(d,1),p=h[0],g=l?l(s):null;return f&&p&&!g})}function jd(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Md(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function jE(e){e.preventDefault()}function Ove(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function Cve(e){return e.indexOf("Edge/")!==-1}function Ave(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Ove(e)||Cve(e)}function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];return t.some(function(l){return!jd(r)&&l&&l.apply(void 0,[r].concat(a)),jd(r)})}}function Tve(){return"showOpenFilePicker"in window}function kve(e){if(Ma(e)){var t=Object.entries(e).filter(function(n){var r=Rs(n,2),i=r[0],a=r[1],o=!0;return ME(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),o=!1),(!Array.isArray(a)||!a.every(DE))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),o=!1),o}).reduce(function(n,r){var i=Rs(r,2),a=i[0],o=i[1];return OE(OE({},n),{},CE({},a,o))},{});return[{description:"Files",accept:t}]}return e}function Eve(e){if(Ma(e))return Object.entries(e).reduce(function(t,n){var r=Rs(n,2),i=r[0],a=r[1];return[].concat(SE(t),[i],SE(a))},[]).filter(function(t){return ME(t)||DE(t)}).join(",")}function Pve(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function jve(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function ME(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||/\w+\/[-+.\w]+/g.test(e)}function DE(e){return/^.*\.[\w]+$/.test(e)}var Mve=["children"],Dve=["open"],Ive=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],Lve=["refKey","onChange","onClick"];function $ve(e){return zve(e)||Nve(e)||IE(e)||Fve()}function Fve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
428
428
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Nve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e){if(Array.isArray(e))return Xv(e)}function Zv(e,t){return Rve(e)||Wve(e,t)||IE(e,t)||Bve()}function Bve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
429
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IE(e,t){if(e){if(typeof e=="string")return Xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xv(e,t)}}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Rve(e){if(Array.isArray(e))return e}function LE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dd(e,t){if(e==null)return{};var n=Vve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qv=x.forwardRef(function(e,t){var n=e.children,r=Dd(e,Mve),i=FE(r),a=i.open,o=Dd(i,Dve);return x.useImperativeHandle(t,function(){return{open:a}},[a]),x.createElement(x.Fragment,null,n(dt(dt({},o),{},{open:a})))});Qv.displayName="Dropzone";var $E={disabled:!1,getFilesFromEvent:tve,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qv.defaultProps=$E,Qv.propTypes={children:m.func,accept:m.objectOf(m.arrayOf(m.string)),multiple:m.bool,preventDropOnDocument:m.bool,noClick:m.bool,noKeyboard:m.bool,noDrag:m.bool,noDragEventsBubbling:m.bool,minSize:m.number,maxSize:m.number,maxFiles:m.number,disabled:m.bool,getFilesFromEvent:m.func,onFileDialogCancel:m.func,onFileDialogOpen:m.func,useFsAccessApi:m.bool,autoFocus:m.bool,onDragEnter:m.func,onDragLeave:m.func,onDragOver:m.func,onDrop:m.func,onDropAccepted:m.func,onDropRejected:m.func,onError:m.func,validator:m.func};var ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function FE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dt(dt({},$E),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,s=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,S=t.preventDropOnDocument,O=t.noClick,w=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,k=t.onError,P=t.validator,N=x.useMemo(function(){return Eve(n)},[n]),M=x.useMemo(function(){return kve(n)},[n]),j=x.useMemo(function(){return typeof y=="function"?y:NE},[y]),D=x.useMemo(function(){return typeof g=="function"?g:NE},[g]),I=x.useRef(null),W=x.useRef(null),X=x.useReducer(Hve,ey),ne=Zv(X,2),re=ne[0],Z=ne[1],R=re.isFocused,J=re.isFileDialogActive,U=x.useRef(typeof window<"u"&&window.isSecureContext&&_&&Tve()),Y=function(){!U.current&&J&&setTimeout(function(){if(W.current){var oe=W.current.files;oe.length||(Z({type:"closeDialog"}),D())}},300)};x.useEffect(function(){return window.addEventListener("focus",Y,!1),function(){window.removeEventListener("focus",Y,!1)}},[W,J,D,U]);var G=x.useRef([]),ie=function(oe){I.current&&I.current.contains(oe.target)||(oe.preventDefault(),G.current=[])};x.useEffect(function(){return S&&(document.addEventListener("dragover",jE,!1),document.addEventListener("drop",ie,!1)),function(){S&&(document.removeEventListener("dragover",jE),document.removeEventListener("drop",ie))}},[I,S]),x.useEffect(function(){return!r&&b&&I.current&&I.current.focus(),function(){}},[I,b,r]);var z=x.useCallback(function(H){k?k(H):console.error(H)},[k]),se=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H),G.current=[].concat($ve(G.current),[H.target]),Md(H)&&Promise.resolve(i(H)).then(function(oe){if(!(jd(H)&&!T)){var Ee=oe.length,De=Ee>0&&wve({files:oe,accept:N,minSize:o,maxSize:a,multiple:l,maxFiles:s,validator:P}),je=Ee>0&&!De;Z({isDragAccept:De,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H)}}).catch(function(oe){return z(oe)})},[i,c,z,T,N,o,a,l,s,P]),K=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H);var oe=Md(H);if(oe&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return oe&&f&&f(H),!1},[f,T]),Q=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H);var oe=G.current.filter(function(De){return I.current&&I.current.contains(De)}),Ee=oe.indexOf(H.target);Ee!==-1&&oe.splice(Ee,1),G.current=oe,!(oe.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Md(H)&&u&&u(H))},[I,u,T]),te=x.useCallback(function(H,oe){var Ee=[],De=[];H.forEach(function(je){var He=EE(je,N),ht=Zv(He,2),Lt=ht[0],Ut=ht[1],Jn=PE(je,o,a),Gi=Zv(Jn,2),Ue=Gi[0],pt=Gi[1],En=P?P(je):null;if(Lt&&Ue&&!En)Ee.push(je);else{var Xt=[Ut,pt];En&&(Xt=Xt.concat(En)),De.push({file:je,errors:Xt.filter(function(vi){return vi})})}}),(!l&&Ee.length>1||l&&s>=1&&Ee.length>s)&&(Ee.forEach(function(je){De.push({file:je,errors:[Sve]})}),Ee.splice(0)),Z({acceptedFiles:Ee,fileRejections:De,type:"setFiles"}),d&&d(Ee,De,oe),De.length>0&&p&&p(De,oe),Ee.length>0&&h&&h(Ee,oe)},[Z,l,N,o,a,s,d,h,p,P]),ce=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H),G.current=[],Md(H)&&Promise.resolve(i(H)).then(function(oe){jd(H)&&!T||te(oe,H)}).catch(function(oe){return z(oe)}),Z({type:"reset"})},[i,te,z,T]),L=x.useCallback(function(){if(U.current){Z({type:"openDialog"}),j();var H={multiple:l,types:M};window.showOpenFilePicker(H).then(function(oe){return i(oe)}).then(function(oe){te(oe,null),Z({type:"closeDialog"})}).catch(function(oe){Pve(oe)?(D(oe),Z({type:"closeDialog"})):jve(oe)?(U.current=!1,W.current?(W.current.value=null,W.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(oe)});return}W.current&&(Z({type:"openDialog"}),j(),W.current.value=null,W.current.click())},[Z,j,D,_,te,z,M,l]),xe=x.useCallback(function(H){!I.current||!I.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),L())},[I,L]),Se=x.useCallback(function(){Z({type:"focus"})},[]),be=x.useCallback(function(){Z({type:"blur"})},[]),ge=x.useCallback(function(){O||(Ave()?setTimeout(L,0):L())},[O,L]),E=function(oe){return r?null:oe},V=function(oe){return w?null:E(oe)},ee=function(oe){return A?null:E(oe)},he=function(oe){T&&oe.stopPropagation()},me=x.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=H.refKey,Ee=oe===void 0?"ref":oe,De=H.role,je=H.onKeyDown,He=H.onFocus,ht=H.onBlur,Lt=H.onClick,Ut=H.onDragEnter,Jn=H.onDragOver,Gi=H.onDragLeave,Ue=H.onDrop,pt=Dd(H,Ive);return dt(dt(Jv({onKeyDown:V(Nr(je,xe)),onFocus:V(Nr(He,Se)),onBlur:V(Nr(ht,be)),onClick:E(Nr(Lt,ge)),onDragEnter:ee(Nr(Ut,se)),onDragOver:ee(Nr(Jn,K)),onDragLeave:ee(Nr(Gi,Q)),onDrop:ee(Nr(Ue,ce)),role:typeof De=="string"&&De!==""?De:"presentation"},Ee,I),!r&&!w?{tabIndex:0}:{}),pt)}},[I,xe,Se,be,ge,se,K,Q,ce,w,A,r]),ue=x.useCallback(function(H){H.stopPropagation()},[]),le=x.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=H.refKey,Ee=oe===void 0?"ref":oe,De=H.onChange,je=H.onClick,He=Dd(H,Lve),ht=Jv({accept:N,multiple:l,type:"file",style:{display:"none"},onChange:E(Nr(De,ce)),onClick:E(Nr(je,ue)),tabIndex:-1},Ee,W);return dt(dt({},ht),He)}},[W,n,l,ce,r]);return dt(dt({},re),{},{isFocused:R&&!r,getRootProps:me,getInputProps:le,rootRef:I,inputRef:W,open:E(L)})}function Hve(e,t){switch(t.type){case"focus":return dt(dt({},e),{},{isFocused:!0});case"blur":return dt(dt({},e),{},{isFocused:!1});case"openDialog":return dt(dt({},ey),{},{isFileDialogActive:!0});case"closeDialog":return dt(dt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return dt(dt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return dt(dt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dt({},ey);default:return e}}function NE(){}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function zE(e){return typeof e>"u"||e===null}function Uve(e){return typeof e=="object"&&e!==null}function qve(e){return Array.isArray(e)?e:zE(e)?[]:[e]}function Gve(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Yve(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Kve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Zve=zE,Xve=Uve,Jve=qve,Qve=Yve,eye=Kve,tye=Gve,Dt={isNothing:Zve,isObject:Xve,toArray:Jve,repeat:Qve,isNegativeZero:eye,extend:tye};function BE(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
429
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IE(e,t){if(e){if(typeof e=="string")return Xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xv(e,t)}}function Xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,l;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(s){a=!0,l=s}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw l}}return r}}function Rve(e){if(Array.isArray(e))return e}function LE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LE(Object(n),!0).forEach(function(r){Jv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dd(e,t){if(e==null)return{};var n=Vve(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vve(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qv=x.forwardRef(function(e,t){var n=e.children,r=Dd(e,Mve),i=FE(r),a=i.open,o=Dd(i,Dve);return x.useImperativeHandle(t,function(){return{open:a}},[a]),x.createElement(x.Fragment,null,n(dt(dt({},o),{},{open:a})))});Qv.displayName="Dropzone";var $E={disabled:!1,getFilesFromEvent:tve,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0,autoFocus:!1};Qv.defaultProps=$E,Qv.propTypes={children:m.func,accept:m.objectOf(m.arrayOf(m.string)),multiple:m.bool,preventDropOnDocument:m.bool,noClick:m.bool,noKeyboard:m.bool,noDrag:m.bool,noDragEventsBubbling:m.bool,minSize:m.number,maxSize:m.number,maxFiles:m.number,disabled:m.bool,getFilesFromEvent:m.func,onFileDialogCancel:m.func,onFileDialogOpen:m.func,useFsAccessApi:m.bool,autoFocus:m.bool,onDragEnter:m.func,onDragLeave:m.func,onDragOver:m.func,onDrop:m.func,onDropAccepted:m.func,onDropRejected:m.func,onError:m.func,validator:m.func};var ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function FE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=dt(dt({},$E),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,o=t.minSize,l=t.multiple,s=t.maxFiles,c=t.onDragEnter,u=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,p=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,_=t.useFsAccessApi,b=t.autoFocus,S=t.preventDropOnDocument,O=t.noClick,w=t.noKeyboard,A=t.noDrag,T=t.noDragEventsBubbling,k=t.onError,j=t.validator,N=x.useMemo(function(){return Eve(n)},[n]),M=x.useMemo(function(){return kve(n)},[n]),E=x.useMemo(function(){return typeof y=="function"?y:NE},[y]),I=x.useMemo(function(){return typeof g=="function"?g:NE},[g]),D=x.useRef(null),W=x.useRef(null),X=x.useReducer(Hve,ey),ne=Zv(X,2),re=ne[0],Z=ne[1],R=re.isFocused,J=re.isFileDialogActive,U=x.useRef(typeof window<"u"&&window.isSecureContext&&_&&Tve()),Y=function(){!U.current&&J&&setTimeout(function(){if(W.current){var oe=W.current.files;oe.length||(Z({type:"closeDialog"}),I())}},300)};x.useEffect(function(){return window.addEventListener("focus",Y,!1),function(){window.removeEventListener("focus",Y,!1)}},[W,J,I,U]);var G=x.useRef([]),ie=function(oe){D.current&&D.current.contains(oe.target)||(oe.preventDefault(),G.current=[])};x.useEffect(function(){return S&&(document.addEventListener("dragover",jE,!1),document.addEventListener("drop",ie,!1)),function(){S&&(document.removeEventListener("dragover",jE),document.removeEventListener("drop",ie))}},[D,S]),x.useEffect(function(){return!r&&b&&D.current&&D.current.focus(),function(){}},[D,b,r]);var z=x.useCallback(function(H){k?k(H):console.error(H)},[k]),se=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H),G.current=[].concat($ve(G.current),[H.target]),Md(H)&&Promise.resolve(i(H)).then(function(oe){if(!(jd(H)&&!T)){var Ee=oe.length,De=Ee>0&&wve({files:oe,accept:N,minSize:o,maxSize:a,multiple:l,maxFiles:s,validator:j}),je=Ee>0&&!De;Z({isDragAccept:De,isDragReject:je,isDragActive:!0,type:"setDraggedFiles"}),c&&c(H)}}).catch(function(oe){return z(oe)})},[i,c,z,T,N,o,a,l,s,j]),K=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H);var oe=Md(H);if(oe&&H.dataTransfer)try{H.dataTransfer.dropEffect="copy"}catch{}return oe&&f&&f(H),!1},[f,T]),Q=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H);var oe=G.current.filter(function(De){return D.current&&D.current.contains(De)}),Ee=oe.indexOf(H.target);Ee!==-1&&oe.splice(Ee,1),G.current=oe,!(oe.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Md(H)&&u&&u(H))},[D,u,T]),te=x.useCallback(function(H,oe){var Ee=[],De=[];H.forEach(function(je){var He=EE(je,N),ht=Zv(He,2),Lt=ht[0],Ut=ht[1],Jn=PE(je,o,a),Gi=Zv(Jn,2),Ue=Gi[0],pt=Gi[1],En=j?j(je):null;if(Lt&&Ue&&!En)Ee.push(je);else{var Xt=[Ut,pt];En&&(Xt=Xt.concat(En)),De.push({file:je,errors:Xt.filter(function(vi){return vi})})}}),(!l&&Ee.length>1||l&&s>=1&&Ee.length>s)&&(Ee.forEach(function(je){De.push({file:je,errors:[Sve]})}),Ee.splice(0)),Z({acceptedFiles:Ee,fileRejections:De,type:"setFiles"}),d&&d(Ee,De,oe),De.length>0&&p&&p(De,oe),Ee.length>0&&h&&h(Ee,oe)},[Z,l,N,o,a,s,d,h,p,j]),ce=x.useCallback(function(H){H.preventDefault(),H.persist(),he(H),G.current=[],Md(H)&&Promise.resolve(i(H)).then(function(oe){jd(H)&&!T||te(oe,H)}).catch(function(oe){return z(oe)}),Z({type:"reset"})},[i,te,z,T]),L=x.useCallback(function(){if(U.current){Z({type:"openDialog"}),E();var H={multiple:l,types:M};window.showOpenFilePicker(H).then(function(oe){return i(oe)}).then(function(oe){te(oe,null),Z({type:"closeDialog"})}).catch(function(oe){Pve(oe)?(I(oe),Z({type:"closeDialog"})):jve(oe)?(U.current=!1,W.current?(W.current.value=null,W.current.click()):z(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):z(oe)});return}W.current&&(Z({type:"openDialog"}),E(),W.current.value=null,W.current.click())},[Z,E,I,_,te,z,M,l]),xe=x.useCallback(function(H){!D.current||!D.current.isEqualNode(H.target)||(H.key===" "||H.key==="Enter"||H.keyCode===32||H.keyCode===13)&&(H.preventDefault(),L())},[D,L]),Se=x.useCallback(function(){Z({type:"focus"})},[]),be=x.useCallback(function(){Z({type:"blur"})},[]),ge=x.useCallback(function(){O||(Ave()?setTimeout(L,0):L())},[O,L]),P=function(oe){return r?null:oe},V=function(oe){return w?null:P(oe)},ee=function(oe){return A?null:P(oe)},he=function(oe){T&&oe.stopPropagation()},me=x.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=H.refKey,Ee=oe===void 0?"ref":oe,De=H.role,je=H.onKeyDown,He=H.onFocus,ht=H.onBlur,Lt=H.onClick,Ut=H.onDragEnter,Jn=H.onDragOver,Gi=H.onDragLeave,Ue=H.onDrop,pt=Dd(H,Ive);return dt(dt(Jv({onKeyDown:V(Nr(je,xe)),onFocus:V(Nr(He,Se)),onBlur:V(Nr(ht,be)),onClick:P(Nr(Lt,ge)),onDragEnter:ee(Nr(Ut,se)),onDragOver:ee(Nr(Jn,K)),onDragLeave:ee(Nr(Gi,Q)),onDrop:ee(Nr(Ue,ce)),role:typeof De=="string"&&De!==""?De:"presentation"},Ee,D),!r&&!w?{tabIndex:0}:{}),pt)}},[D,xe,Se,be,ge,se,K,Q,ce,w,A,r]),ue=x.useCallback(function(H){H.stopPropagation()},[]),le=x.useMemo(function(){return function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},oe=H.refKey,Ee=oe===void 0?"ref":oe,De=H.onChange,je=H.onClick,He=Dd(H,Lve),ht=Jv({accept:N,multiple:l,type:"file",style:{display:"none"},onChange:P(Nr(De,ce)),onClick:P(Nr(je,ue)),tabIndex:-1},Ee,W);return dt(dt({},ht),He)}},[W,n,l,ce,r]);return dt(dt({},re),{},{isFocused:R&&!r,getRootProps:me,getInputProps:le,rootRef:D,inputRef:W,open:P(L)})}function Hve(e,t){switch(t.type){case"focus":return dt(dt({},e),{},{isFocused:!0});case"blur":return dt(dt({},e),{},{isFocused:!1});case"openDialog":return dt(dt({},ey),{},{isFileDialogActive:!0});case"closeDialog":return dt(dt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return dt(dt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return dt(dt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return dt({},ey);default:return e}}function NE(){}/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function zE(e){return typeof e>"u"||e===null}function Uve(e){return typeof e=="object"&&e!==null}function qve(e){return Array.isArray(e)?e:zE(e)?[]:[e]}function Gve(e,t){var n,r,i,a;if(t)for(a=Object.keys(t),n=0,r=a.length;n<r;n+=1)i=a[n],e[i]=t[i];return e}function Yve(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Kve(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Zve=zE,Xve=Uve,Jve=qve,Qve=Yve,eye=Kve,tye=Gve,Dt={isNothing:Zve,isObject:Xve,toArray:Jve,repeat:Qve,isNegativeZero:eye,extend:tye};function BE(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
430
430
 
431
431
  `+e.mark.snippet),r+" "+n):r}function Vs(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=BE(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Vs.prototype=Object.create(Error.prototype),Vs.prototype.constructor=Vs,Vs.prototype.toString=function(t){return this.name+": "+BE(this,t)};var on=Vs;function ty(e,t,n,r,i){var a="",o="",l=Math.floor(i/2)-1;return r-t>l&&(a=" ... ",t=r-l+a.length),n-r>l&&(o=" ...",n=r+l-o.length),{str:a+e.slice(t,n).replace(/\t/g,"→")+o,pos:r-t+a.length}}function ny(e,t){return Dt.repeat(" ",t-e.length)+e}function nye(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],i=[],a,o=-1;a=n.exec(e.buffer);)i.push(a.index),r.push(a.index+a[0].length),e.position<=a.index&&o<0&&(o=r.length-2);o<0&&(o=r.length-1);var l="",s,c,u=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+u+3);for(s=1;s<=t.linesBefore&&!(o-s<0);s++)c=ty(e.buffer,r[o-s],i[o-s],e.position-(r[o]-r[o-s]),f),l=Dt.repeat(" ",t.indent)+ny((e.line-s+1).toString(),u)+" | "+c.str+`
432
432
  `+l;for(c=ty(e.buffer,r[o],i[o],e.position,f),l+=Dt.repeat(" ",t.indent)+ny((e.line+1).toString(),u)+" | "+c.str+`
@@ -461,17 +461,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
461
461
  `;const t=JSON.parse(e);return Object.entries(t).length===0?`---
462
462
  `:W6.dump(t)}function f_e(e){return typeof e=="object"&&e!==null}function d_e(e){if(typeof e!="string")return!1;let t;try{t=JSON.parse(e)}catch{return!1}return typeof t=="object"&&t!==null}function h_e(e,t){const n=new Blob(t.split("/n"),{type:"text/plain"}),r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=e+".txt",document.body.appendChild(r),r.click(),document.body.removeChild(r)}function Xn(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}let gy;function pr(){if(!gy)throw new Error("Monaco is undefined. Call setMonaco(monaco) first.");return gy}function m_e(e){gy=e}function g_e(e){const{MarkerSeverity:t}=pr();return e===t.Error?1:e===t.Warning?2:e===t.Info?3:4}function p_e(e){const{MarkerSeverity:t}=pr();return e===1?t.Error:e===2?t.Warning:e===3?t.Info:t.Hint}function v_e(e){return e}function y_e(e){return e}function py(e){return{start:{line:e.startLineNumber-1,character:e.startColumn-1},end:{line:e.endLineNumber-1,character:e.endColumn-1}}}function ln(e){return{startLineNumber:e.start.line+1,startColumn:e.start.character+1,endLineNumber:e.end.line+1,endColumn:e.end.character+1}}function b_e(e){return{location:{range:py(e),uri:String(e.resource)},message:e.message}}function __e(e){const{Uri:t}=pr();return{...ln(e.location.range),message:e.message,resource:t.parse(e.location.uri)}}function x_e(e){const t={message:e.message,range:py(e),severity:g_e(e.severity)};return typeof e.code=="string"?t.code=e.code:e.code!=null&&(t.code=e.code.value,t.codeDescription={href:String(e.code.target)}),e.relatedInformation&&(t.relatedInformation=e.relatedInformation.map(b_e)),e.tags&&(t.tags=e.tags.map(v_e)),e.source!=null&&(t.source=e.source),t}function V6(e,t){var n;const{MarkerSeverity:r,Uri:i}=pr(),a={...ln(e.range),message:e.message,severity:e.severity?p_e(e.severity):(n=t==null?void 0:t.defaultSeverity)!==null&&n!==void 0?n:r.Error};return e.code!=null&&(a.code=e.codeDescription==null?String(e.code):{value:String(e.code),target:i.parse(e.codeDescription.href)}),e.relatedInformation&&(a.relatedInformation=e.relatedInformation.map(__e)),e.tags&&(a.tags=e.tags.map(y_e)),e.source!=null&&(a.source=e.source),a}function H6(e){return{range:ln(e.range),text:e.newText}}function S_e(e){const t={};return e.ignoreIfExists!=null&&(t.ignoreIfExists=e.ignoreIfExists),e.ignoreIfNotExists!=null&&(t.ignoreIfNotExists=e.ignoreIfNotExists),e.overwrite!=null&&(t.overwrite=e.overwrite),e.recursive!=null&&(t.recursive=e.recursive),t}function w_e(e){const{Uri:t}=pr(),n=e.kind==="create"?{newResource:t.parse(e.uri)}:e.kind==="delete"?{oldResource:t.parse(e.uri)}:{oldResource:t.parse(e.oldUri),newResource:t.parse(e.newUri)};return e.options&&(n.options=S_e(e.options)),n}function U6(e,t,n){const{Uri:r}=pr();return{resource:r.parse(t),versionId:n,textEdit:H6(e)}}function O_e(e){var t;const n=[];if(e.changes)for(const[r,i]of Object.entries(e.changes))for(const a of i)n.push(U6(a,r));if(e.documentChanges)for(const r of e.documentChanges)if("textDocument"in r)for(const i of r.edits)n.push(U6(i,r.textDocument.uri,(t=r.textDocument.version)!==null&&t!==void 0?t:void 0));else n.push(w_e(r));return{edits:n}}function C_e(e,t){const n={title:e.title,isPreferred:e.isPreferred};return e.diagnostics&&(n.diagnostics=e.diagnostics.map(r=>V6(r,t))),e.disabled&&(n.disabled=e.disabled.reason),e.edit&&(n.edit=O_e(e.edit)),e.isPreferred!=null&&(n.isPreferred=e.isPreferred),e.kind&&(n.kind=e.kind),n}function fOe(e){return e}function A_e(e){const t={diagnostics:e.markers.map(x_e),triggerKind:e.trigger};return e.only!=null&&(t.only=[e.only]),t}function T_e(e){const t={title:e.title,id:e.command};return e.arguments&&(t.arguments=e.arguments),t}function k_e(e){const{CompletionItemKind:t}=pr().languages;return e===1?t.Text:e===2?t.Method:e===3?t.Function:e===4?t.Constructor:e===5?t.Field:e===6?t.Variable:e===7?t.Class:e===8?t.Interface:e===9?t.Module:e===10?t.Property:e===11?t.Unit:e===12?t.Value:e===13?t.Enum:e===14?t.Keyword:e===15?t.Snippet:e===16?t.Color:e===17?t.File:e===18?t.Reference:e===19?t.Folder:e===20?t.EnumMember:e===21?t.Constant:e===22?t.Struct:e===23?t.Event:e===24?t.Operator:t.TypeParameter}function E_e(e){return e}function q6(e){return{value:e.value}}function P_e(e){return{range:ln(e.range),text:e.newText}}function j_e(e){return"range"in e?ln(e.range):"insert"in e&&"replace"in e?{insert:ln(e.insert),replace:ln(e.replace)}:ln(e)}function M_e(e,t){var n,r,i,a,o;const{CompletionItemInsertTextRule:l,CompletionItemKind:s}=pr().languages,c=(n=t.itemDefaults)!==null&&n!==void 0?n:{},u=(r=e.textEdit)!==null&&r!==void 0?r:c.editRange,f=(i=e.commitCharacters)!==null&&i!==void 0?i:c.commitCharacters,d=(a=e.insertTextFormat)!==null&&a!==void 0?a:c.insertTextFormat,h=(o=e.insertTextMode)!==null&&o!==void 0?o:c.insertTextMode;let p=e.insertText,g;u?(g=j_e(u),"newText"in u&&(p=u.newText)):g={...t.range};const y={insertText:p??"",kind:e.kind==null?s.Text:k_e(e.kind),label:e.label,range:g};return e.additionalTextEdits&&(y.additionalTextEdits=e.additionalTextEdits.map(P_e)),e.command&&(y.command=T_e(e.command)),f&&(y.commitCharacters=f),e.detail!=null&&(y.detail=e.detail),typeof e.documentation=="string"?y.documentation=e.documentation:e.documentation&&(y.documentation=q6(e.documentation)),e.filterText!=null&&(y.filterText=e.filterText),d===2?y.insertTextRules=l.InsertAsSnippet:h===2&&(y.insertTextRules=l.KeepWhitespace),e.preselect!=null&&(y.preselect=e.preselect),e.sortText!=null&&(y.sortText=e.sortText),e.tags&&(y.tags=e.tags.map(E_e)),y}function D_e(e,t){return{incomplete:!!e.isIncomplete,suggestions:e.items.map(n=>M_e(n,{range:t.range,itemDefaults:e.itemDefaults}))}}function I_e(e){const{SymbolKind:t}=pr().languages;return e===1?t.File:e===2?t.Module:e===3?t.Namespace:e===4?t.Package:e===5?t.Class:e===6?t.Method:e===7?t.Property:e===8?t.Field:e===9?t.Constructor:e===10?t.Enum:e===11?t.Interface:e===12?t.Function:e===13?t.Variable:e===14?t.Constant:e===15?t.String:e===16?t.Number:e===17?t.Boolean:e===18?t.Array:e===19?t.Object:e===20?t.Key:e===21?t.Null:e===22?t.EnumMember:e===23?t.Struct:e===24?t.Event:e===25?t.Operator:t.TypeParameter}function L_e(e){return e}function G6(e){var t,n,r;const i={detail:(t=e.detail)!==null&&t!==void 0?t:"",kind:I_e(e.kind),name:e.name,range:ln(e.range),selectionRange:ln(e.selectionRange),tags:(r=(n=e.tags)===null||n===void 0?void 0:n.map(L_e))!==null&&r!==void 0?r:[]};return e.children&&(i.children=e.children.map(G6)),i}function $_e(e){const t={start:e.startLine+1,end:e.endLine+1};return e.kind!=null&&(t.kind={value:e.kind}),t}function Y6(e){return typeof e=="string"?{value:e}:{value:`\`\`\`${e.language}
463
463
  ${e.value}
464
- \`\`\``}}function F_e(e){return typeof e=="string"||"language"in e?[Y6(e)]:Array.isArray(e)?e.map(Y6):[q6(e)]}function N_e(e){const t={contents:F_e(e.contents)};return e.range&&(t.range=ln(e.range)),t}function vy(e){return{character:e.column-1,line:e.lineNumber-1}}function z_e(e){const{Uri:t}=pr(),n={range:ln(e.range)};return e.tooltip!=null&&(n.tooltip=e.tooltip),e.target!=null&&(n.url=t.parse(e.target)),n}function B_e(e){const{Uri:t}=pr(),n={range:ln(e.targetRange),targetSelectionRange:ln(e.targetSelectionRange),uri:t.parse(e.targetUri)};return e.originSelectionRange&&(n.originSelectionRange=ln(e.originSelectionRange)),n}function K6(e,t,n){const r=new Map,i=c=>{if(t==="*")return!0;const u=c.getLanguageId();return Array.isArray(t)?t.includes(u):t===u},a=async c=>{const u=await n.provideMarkerData(c);!c.isDisposed()&&i(c)&&e.editor.setModelMarkers(c,n.owner,u??[])},o=c=>{if(!i(c))return;let u;r.set(String(c.uri),c.onDidChangeContent(()=>{clearTimeout(u),u=setTimeout(()=>{a(c)},500)})),a(c)},l=c=>{e.editor.setModelMarkers(c,n.owner,[]);const u=String(c.uri),f=r.get(u);f&&(f.dispose(),r.delete(u))},s=[e.editor.onDidCreateModel(o),e.editor.onWillDisposeModel(c=>{var u;l(c),(u=n.doReset)==null||u.call(n,c)}),e.editor.onDidChangeModelLanguage(c=>{var u;l(c.model),o(c.model),(u=n.doReset)==null||u.call(n,c.model)})];for(const c of e.editor.getModels())o(c);return{dispose(){for(const c of r.keys())l(e.editor.getModel(e.Uri.parse(c)));for(;s.length;)s.pop().dispose()}}}function W_e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,l,s=0,c=!1;const u=()=>{l&&(l.dispose(),l=void 0)},f=setInterval(()=>{if(!l)return;Date.now()-s>o&&u()},r);return{dispose(){c=!0,clearInterval(f),u()},getWorker(...d){if(c)throw new Error("Worker manager has been disposed");return s=Date.now(),l||(l=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),l.withSyncedResources(d)},updateCreateData(d){n=d,u()}}}function Z6(e){return{owner:"yaml",async provideMarkerData(t){const r=await(await e(t.uri)).doValidation(String(t.uri));return r==null?void 0:r.map(i=>V6(i))},async doReset(t){await(await e(t.uri)).resetSchema(String(t.uri))}}}function R_e(e){return{triggerCharacters:[" ",":"],async provideCompletionItems(t,n){const r=t.uri,i=t.getWordUntilPosition(n),o=await(await e(r)).doComplete(String(r),vy(n));if(o)return D_e(o,{range:{startLineNumber:n.lineNumber,startColumn:i.startColumn,endLineNumber:n.lineNumber,endColumn:i.endColumn}})}}}function V_e(e){return{async provideDefinition(t,n){const r=t.uri,a=await(await e(r)).doDefinition(String(r),vy(n));return a==null?void 0:a.map(B_e)}}}function H_e(e){return{async provideHover(t,n){const r=t.uri,a=await(await e(r)).doHover(String(r),vy(n));if(a)return N_e(a)}}}function U_e(e){return{async provideDocumentSymbols(t){const n=t.uri,i=await(await e(n)).findDocumentSymbols(String(n));return i==null?void 0:i.map(G6)}}}function q_e(e){return{async provideDocumentFormattingEdits(t){const n=t.uri,i=await(await e(n)).format(String(n));return i==null?void 0:i.map(H6)}}}function G_e(e){return{async provideLinks(t){const n=t.uri,i=await(await e(n)).findLinks(String(n));if(i)return{links:i.map(z_e)}}}}function Y_e(e){return{async provideCodeActions(t,n,r){const i=t.uri,o=await(await e(i)).getCodeAction(String(i),py(n),A_e(r));if(o)return{actions:o.map(l=>C_e(l)),dispose(){}}}}}function K_e(e){return{async provideFoldingRanges(t){const n=t.uri,i=await(await e(n)).getFoldingRanges(String(n));return i==null?void 0:i.map($_e)}}}function Z_e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};m_e(e),e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=W_e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n});let i=K6(e,"yaml",Z6(r.getWorker));const a=[r,e.languages.registerCompletionItemProvider("yaml",R_e(r.getWorker)),e.languages.registerHoverProvider("yaml",H_e(r.getWorker)),e.languages.registerDefinitionProvider("yaml",V_e(r.getWorker)),e.languages.registerDocumentSymbolProvider("yaml",U_e(r.getWorker)),e.languages.registerDocumentFormattingEditProvider("yaml",q_e(r.getWorker)),e.languages.registerLinkProvider("yaml",G_e(r.getWorker)),e.languages.registerCodeActionProvider("yaml",Y_e(r.getWorker)),e.languages.registerFoldingRangeProvider("yaml",K_e(r.getWorker)),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.languages.IndentAction.Indent}}]})];return{dispose(){for(const o of a)o.dispose()},update(o){r.updateCreateData(Object.assign(n,o)),i.dispose(),i=K6(e,"yaml",Z6(r.getWorker))}}}function X_e(e){const{onChange:t,language:n,setError:r,name:i,clearErrors:a}=e,o="data-editor",l=x.useRef(null),s=x.useRef({}),c=Ja();return x.useEffect(()=>{var f;Z_e(Pn,{validate:!0,format:!0,schemas:[{uri:"",fileMatch:[],schema:{type:"object",properties:{},additionalProperties:!0}}]}),Pn.editor.defineTheme("my-dark",{base:"vs-dark",inherit:!0,colors:{"editor.background":"#00000000","minimap.background":"#00000000","scrollbarSlider.background":"#FFFFFF22"},rules:[{token:"",background:"#222222"}]}),Pn.editor.defineTheme("my-light",{base:"vs",inherit:!0,colors:{"editor.background":"#FFFFFF00","minimap.background":"#FFFFFF00","scrollbarSlider.background":"#FFFFFF22"},rules:[]});let u;return Pn.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),l.current&&(u=(f=Pn==null?void 0:Pn.editor)==null?void 0:f.create(l.current,{lineNumbers:"on",theme:"my-dark",lineDecorationsWidth:8,padding:{top:6,bottom:8},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0}),s.current.editor=u),window.MonacoEnvironment={getWorker(d,h){switch(h){case"editorWorkerService":return new Worker(new URL("/assets/editor.worker-9a091e5f.js",self.location),{type:"module"});case"json":return new Worker(new URL("/assets/json.worker-f7b9576c.js",self.location),{type:"module"});case"yaml":return new Worker(new URL("/assets/yaml.worker-b08097eb.js",self.location),{type:"module"});default:throw new Error(`Unknown label ${h}`)}}},()=>{u.dispose()}},[]),x.useEffect(()=>{var g,y,_,b,S,O,w,A,T;const u=(g=s==null?void 0:s.current)==null?void 0:g.editor,f=Pn.editor.getModels()[0];u&&f&&n&&Pn.editor.setModelLanguage(f,n),(b=(_=(y=s.current)==null?void 0:y.editor)==null?void 0:_.getModel())==null||b.onDidChangeContent(()=>{var k,P;t(((P=(k=s.current)==null?void 0:k.editor)==null?void 0:P.getValue())??"")});const d=(O=(S=s.current)==null?void 0:S.editor)==null?void 0:O.getValue();(w=s.current)!=null&&w.editor&&d!==e.value&&((T=(A=s.current)==null?void 0:A.editor)==null||T.setValue(e.value));const h=e.value.split(`
464
+ \`\`\``}}function F_e(e){return typeof e=="string"||"language"in e?[Y6(e)]:Array.isArray(e)?e.map(Y6):[q6(e)]}function N_e(e){const t={contents:F_e(e.contents)};return e.range&&(t.range=ln(e.range)),t}function vy(e){return{character:e.column-1,line:e.lineNumber-1}}function z_e(e){const{Uri:t}=pr(),n={range:ln(e.range)};return e.tooltip!=null&&(n.tooltip=e.tooltip),e.target!=null&&(n.url=t.parse(e.target)),n}function B_e(e){const{Uri:t}=pr(),n={range:ln(e.targetRange),targetSelectionRange:ln(e.targetSelectionRange),uri:t.parse(e.targetUri)};return e.originSelectionRange&&(n.originSelectionRange=ln(e.originSelectionRange)),n}function K6(e,t,n){const r=new Map,i=c=>{if(t==="*")return!0;const u=c.getLanguageId();return Array.isArray(t)?t.includes(u):t===u},a=async c=>{const u=await n.provideMarkerData(c);!c.isDisposed()&&i(c)&&e.editor.setModelMarkers(c,n.owner,u??[])},o=c=>{if(!i(c))return;let u;r.set(String(c.uri),c.onDidChangeContent(()=>{clearTimeout(u),u=setTimeout(()=>{a(c)},500)})),a(c)},l=c=>{e.editor.setModelMarkers(c,n.owner,[]);const u=String(c.uri),f=r.get(u);f&&(f.dispose(),r.delete(u))},s=[e.editor.onDidCreateModel(o),e.editor.onWillDisposeModel(c=>{var u;l(c),(u=n.doReset)==null||u.call(n,c)}),e.editor.onDidChangeModelLanguage(c=>{var u;l(c.model),o(c.model),(u=n.doReset)==null||u.call(n,c.model)})];for(const c of e.editor.getModels())o(c);return{dispose(){for(const c of r.keys())l(e.editor.getModel(e.Uri.parse(c)));for(;s.length;)s.pop().dispose()}}}function W_e(e,t){let{createData:n,interval:r=3e4,label:i,moduleId:a,stopWhenIdleFor:o=12e4}=t,l,s=0,c=!1;const u=()=>{l&&(l.dispose(),l=void 0)},f=setInterval(()=>{if(!l)return;Date.now()-s>o&&u()},r);return{dispose(){c=!0,clearInterval(f),u()},getWorker(...d){if(c)throw new Error("Worker manager has been disposed");return s=Date.now(),l||(l=e.editor.createWebWorker({createData:n,label:i,moduleId:a})),l.withSyncedResources(d)},updateCreateData(d){n=d,u()}}}function Z6(e){return{owner:"yaml",async provideMarkerData(t){const r=await(await e(t.uri)).doValidation(String(t.uri));return r==null?void 0:r.map(i=>V6(i))},async doReset(t){await(await e(t.uri)).resetSchema(String(t.uri))}}}function R_e(e){return{triggerCharacters:[" ",":"],async provideCompletionItems(t,n){const r=t.uri,i=t.getWordUntilPosition(n),o=await(await e(r)).doComplete(String(r),vy(n));if(o)return D_e(o,{range:{startLineNumber:n.lineNumber,startColumn:i.startColumn,endLineNumber:n.lineNumber,endColumn:i.endColumn}})}}}function V_e(e){return{async provideDefinition(t,n){const r=t.uri,a=await(await e(r)).doDefinition(String(r),vy(n));return a==null?void 0:a.map(B_e)}}}function H_e(e){return{async provideHover(t,n){const r=t.uri,a=await(await e(r)).doHover(String(r),vy(n));if(a)return N_e(a)}}}function U_e(e){return{async provideDocumentSymbols(t){const n=t.uri,i=await(await e(n)).findDocumentSymbols(String(n));return i==null?void 0:i.map(G6)}}}function q_e(e){return{async provideDocumentFormattingEdits(t){const n=t.uri,i=await(await e(n)).format(String(n));return i==null?void 0:i.map(H6)}}}function G_e(e){return{async provideLinks(t){const n=t.uri,i=await(await e(n)).findLinks(String(n));if(i)return{links:i.map(z_e)}}}}function Y_e(e){return{async provideCodeActions(t,n,r){const i=t.uri,o=await(await e(i)).getCodeAction(String(i),py(n),A_e(r));if(o)return{actions:o.map(l=>C_e(l)),dispose(){}}}}}function K_e(e){return{async provideFoldingRanges(t){const n=t.uri,i=await(await e(n)).getFoldingRanges(String(n));return i==null?void 0:i.map($_e)}}}function Z_e(e,t){const n={completion:!0,customTags:[],enableSchemaRequest:!1,format:!0,isKubernetes:!1,hover:!0,schemas:[],validate:!0,yamlVersion:"1.2",...t};m_e(e),e.languages.register({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml"]});const r=W_e(e,{label:"yaml",moduleId:"monaco-yaml/yaml.worker",createData:n});let i=K6(e,"yaml",Z6(r.getWorker));const a=[r,e.languages.registerCompletionItemProvider("yaml",R_e(r.getWorker)),e.languages.registerHoverProvider("yaml",H_e(r.getWorker)),e.languages.registerDefinitionProvider("yaml",V_e(r.getWorker)),e.languages.registerDocumentSymbolProvider("yaml",U_e(r.getWorker)),e.languages.registerDocumentFormattingEditProvider("yaml",q_e(r.getWorker)),e.languages.registerLinkProvider("yaml",G_e(r.getWorker)),e.languages.registerCodeActionProvider("yaml",Y_e(r.getWorker)),e.languages.registerFoldingRangeProvider("yaml",K_e(r.getWorker)),e.languages.setLanguageConfiguration("yaml",{comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.languages.IndentAction.Indent}}]})];return{dispose(){for(const o of a)o.dispose()},update(o){r.updateCreateData(Object.assign(n,o)),i.dispose(),i=K6(e,"yaml",Z6(r.getWorker))}}}function X_e(e){const{onChange:t,language:n,setError:r,name:i,clearErrors:a}=e,o="data-editor",l=x.useRef(null),s=x.useRef({}),c=Ja();return x.useEffect(()=>{var f;Z_e(Pn,{validate:!0,format:!0,schemas:[{uri:"",fileMatch:[],schema:{type:"object",properties:{},additionalProperties:!0}}]}),Pn.editor.defineTheme("my-dark",{base:"vs-dark",inherit:!0,colors:{"editor.background":"#00000000","minimap.background":"#00000000","scrollbarSlider.background":"#FFFFFF22"},rules:[{token:"",background:"#222222"}]}),Pn.editor.defineTheme("my-light",{base:"vs",inherit:!0,colors:{"editor.background":"#FFFFFF00","minimap.background":"#FFFFFF00","scrollbarSlider.background":"#FFFFFF22"},rules:[]});let u;return Pn.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0}),l.current&&(u=(f=Pn==null?void 0:Pn.editor)==null?void 0:f.create(l.current,{lineNumbers:"on",theme:"my-dark",lineDecorationsWidth:8,padding:{top:6,bottom:8},fontSize:14,fontFamily:"RedHatMono",scrollBeyondLastLine:!1,minimap:{enabled:!1},renderLineHighlightOnlyWhenFocus:!0}),s.current.editor=u),window.MonacoEnvironment={getWorker(d,h){switch(h){case"editorWorkerService":return new Worker(new URL("/assets/editor.worker-9a091e5f.js",self.location),{type:"module"});case"json":return new Worker(new URL("/assets/json.worker-f7b9576c.js",self.location),{type:"module"});case"yaml":return new Worker(new URL("/assets/yaml.worker-b08097eb.js",self.location),{type:"module"});default:throw new Error(`Unknown label ${h}`)}}},()=>{u.dispose()}},[]),x.useEffect(()=>{var g,y,_,b,S,O,w,A,T;const u=(g=s==null?void 0:s.current)==null?void 0:g.editor,f=Pn.editor.getModels()[0];u&&f&&n&&Pn.editor.setModelLanguage(f,n),(b=(_=(y=s.current)==null?void 0:y.editor)==null?void 0:_.getModel())==null||b.onDidChangeContent(()=>{var k,j;t(((j=(k=s.current)==null?void 0:k.editor)==null?void 0:j.getValue())??"")});const d=(O=(S=s.current)==null?void 0:S.editor)==null?void 0:O.getValue();(w=s.current)!=null&&w.editor&&d!==e.value&&((T=(A=s.current)==null?void 0:A.editor)==null||T.setValue(e.value));const h=e.value.split(`
465
465
  `),p=document.getElementById(o);h.length>0&&p&&(p.style.minHeight="75px",p.style.height=`${(h.length+3)*19}px`)},[e.value,n,t]),so(l,()=>{var u;(u=s.current)!=null&&u.editor&&s.current.editor.layout()}),x.useEffect(()=>{var u;(u=s.current)!=null&&u.editor&&s.current.editor.updateOptions({theme:c.activeTheme==="dark"?"my-dark":"my-light"})},[c.activeTheme]),x.useEffect(()=>{Pn.editor.onDidChangeMarkers(()=>{var f,d;const u=Pn.editor.getModelMarkers({owner:(d=(f=Pn.editor)==null?void 0:f.getModels()[0])==null?void 0:d.getLanguageId()});u.length>0?r(i,{message:u.map(h=>h.message).join(`
466
- `)}):a(i)})},[r,a,i]),v.jsx("div",{className:"pf-c-form-control",id:o,style:{backgroundPosition:"calc(100% - 1.2em) .5em",padding:0},"aria-invalid":e.invalid?"true":void 0,children:v.jsx("div",{id:e.id,ref:l,style:{height:"100%"}})})}function J_e(e){const{name:t,children:n,helperText:r,helperTextInvalid:i,isRequired:a,labelHelp:o,labelHelpTitle:l,label:s}=e;return v.jsx(C.FormGroup,{id:`${e.id??""}-form-group`,"data-cy":t+"-form-group",fieldId:e.id,label:s,helperText:r,helperTextInvalid:i,validated:i?"error":void 0,isRequired:a,labelInfo:e.additionalControls,labelIcon:o?v.jsx(ia,{title:l,help:o}):void 0,children:n})}const Bd=Le(C.ToggleGroupItem)`
466
+ `)}):a(i)})},[r,a,i]),v.jsx("div",{className:"pf-c-form-control",id:o,style:{backgroundPosition:"calc(100% - 1.2em) .5em",padding:0},"aria-invalid":e.invalid?"true":void 0,children:v.jsx("div",{id:e.id,"data-cy":e.id,ref:l,style:{height:"100%"}})})}function J_e(e){const{name:t,children:n,helperText:r,helperTextInvalid:i,isRequired:a,labelHelp:o,labelHelpTitle:l,label:s}=e;return v.jsx(C.FormGroup,{id:`${e.id??""}-form-group`,"data-cy":t+"-form-group",fieldId:e.id,label:s,helperText:r,helperTextInvalid:i,validated:i?"error":void 0,isRequired:a,labelInfo:e.additionalControls,labelIcon:o?v.jsx(ia,{title:l,help:o}):void 0,children:n})}const Bd=Le(C.ToggleGroupItem)`
467
467
  &&:first-child#copy-button {
468
468
  margin-right: auto;
469
469
  }
470
470
  `,Q_e=Le.p`
471
471
  color: var(--pf-c-form__helper-text--m-error--Color);
472
472
  font-size: var(--pf-c-form__helper-text--FontSize);
473
- `;function exe(e){const{t}=ut(),{handleCopy:n,handleDownload:r,handleUpload:i,allowCopy:a,allowDownload:o,allowUpload:l,toggleLanguages:s,setLanguage:c,selectedLanguage:u,errors:f,name:d}=e,h=[];a&&h.push(v.jsx(C.Tooltip,{content:t("Copy"),children:v.jsx(Bd,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),icon:v.jsx(Ce.CopyIcon,{}),type:"button",onClick:()=>n()},"copy-button")},"copy-file")),l&&h.push(v.jsx(C.Tooltip,{content:t("Upload"),children:v.jsx(Bd,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),icon:v.jsx(Ce.UploadIcon,{}),type:"button",onClick:()=>i()},"upload-button")},"upload-file")),o&&h.push(v.jsx(C.Tooltip,{content:t("Download"),children:v.jsx(Bd,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),icon:v.jsx(Ce.DownloadIcon,{}),type:"button",onClick:()=>r()},"download-button")},"download-file"));const p=(s==null?void 0:s.map(g=>v.jsx(Bd,{id:`toggle-${g}`,"data-cy":`toggle-${g}`,"aria-label":t("Toggle to {{language}}",{language:g}),isSelected:u===g,isDisabled:!!f[d],text:g,type:"button",onChange:()=>c(g)},g)))||[];return v.jsxs(C.Flex,{justifyContent:{default:"justifyContentSpaceBetween"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.ToggleGroup,{isCompact:!0,children:h})}),v.jsx(C.FlexItem,{align:{default:"alignRight"},children:v.jsx(C.ToggleGroup,{isCompact:!0,children:p})})]})}function txe(e){const{t}=ut(),{allowCopy:n=!0,allowDownload:r=!0,allowUpload:i=!0,defaultExpanded:a,isExpandable:o,isReadOnly:l,isRequired:s,label:c,name:u,toggleLanguages:f,validate:d,...h}=e,{formState:{isSubmitting:p,isValidating:g,errors:y},setError:_,clearErrors:b,getValues:S,control:O,setValue:w}=mi(),[A,T]=x.useState("yaml"),[k,P]=x.useState(!a),N=x.useRef(null),M=yh(),{writeToClipboard:j}=u_(),D=e.id??u.split(".").join("-");x.useEffect(()=>{y[u]||b(u)},[y,u,b]);const I=x.useCallback(J=>{const U=S(u);if(!(J!=="json"&&J!=="yaml"||!U)){if(d_e(U))return J==="json"?w(u,U):w(u,R6(U));if(f_e(U))return J==="json"?w(u,U):w(u,R6(JSON.stringify(U)));J==="json"?w(u,u_e(U)):w(u,U)}},[S,u,w]),W=x.useCallback(J=>{try{I(J),T(J)}catch(U){U instanceof Error?_(u,{message:U.message}):_(u,{message:t("Invalid syntax")})}},[I,u,_,t]),X=x.useCallback(()=>{j(S(u))},[S,u,j]),ne=x.useCallback(()=>{N.current&&N.current.click()},[]),re=x.useCallback(()=>{h_e(u||"codeEditorData",S(u));const U={variant:"success",title:t("File downloaded")};M.addAlert(U)},[M,S,u,t]),Z=x.useCallback(J=>{const U=J[0],Y=new FileReader;Y.onload=()=>{const G=Y.result;if(typeof G=="string"){w(u,G);const ie={variant:"success",title:t("File uploaded")};M.addAlert(ie)}},Y.onerror=()=>{const G={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};M.addAlert(G)},Y.readAsText(U)},[w,u,t,M]),R=FE({onDrop:Z,multiple:!1});return v.jsx(Uo,{name:u,control:O,shouldUnregister:!0,render:({field:{name:J,onChange:U,value:Y},fieldState:{error:G}})=>{var se;const ie=[...new Set((se=G==null?void 0:G.message)==null?void 0:se.split(`
474
- `))],z=Y!=null&&Y!=="";return v.jsx(J_e,{...h,label:o?v.jsxs("span",{style:{alignItems:"center"},children:[v.jsx(Ce.AngleRightIcon,{style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>P(K=>!K),"aria-label":t("Expand or collapse extra variables")}),e.label]}):e.label,id:D,helperTextInvalid:!(d&&g)&&(ie==null?void 0:ie.map(K=>v.jsx(Q_e,{children:K},K))),children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(exe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>X(),handleDownload:re,handleUpload:ne,name:J,selectedLanguage:A,setLanguage:W,toggleLanguages:f},"actions-row"),v.jsxs("div",{id:"code-editor-dropzone",...R.getRootProps({disabled:z}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...R.getInputProps(),ref:N}),v.jsx(X_e,{setError:_,clearErrors:b,id:D,"data-cy":D,name:J,language:A,value:Y,onChange:U,isReadOnly:l||p,invalid:!(d&&g)&&(G==null?void 0:G.message)!==void 0})]})]})})},rules:{required:typeof c=="string"&&s===!0?{value:!0,message:`${Xn(c.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function nxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:p}=e,g=Ha(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=mi(),[O,w]=x.useState(!1),A=x.useCallback(()=>w(!O),[O]),[T]=mt();return v.jsx(Uo,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:P},fieldState:{error:N}})=>{P===""&&l.length===1&&d&&k(l[0].value);const M=(I,W)=>{var X;k((X=l.find(ne=>ne.label===W.toString()))==null?void 0:X.value),p&&S(p),w(!1)},j=N!=null&&N.message?h&&b?T.validating:N==null?void 0:N.message:void 0,D=l.find(I=>I.value===P);return v.jsx(C.FormGroup,{id:`${g??""}-form-group`,fieldId:g,label:n,labelIcon:i?v.jsx(ia,{title:r,help:i}):void 0,labelInfo:a,helperText:c,helperTextInvalid:j,validated:j?"error":void 0,isRequired:d,"data-cy":`${g??""}-form-group`,children:v.jsx(C.Select,{id:g,label:void 0,placeholderText:o,variant:"single","aria-describedby":g?`${g}-form-group`:void 0,selections:D==null?void 0:D.label,onSelect:M,isOpen:O,onToggle:A,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:j?"error":void 0,isDisabled:u||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:"menu-select","data-cy":g,children:l.map(I=>{const W=br(I);return v.jsx(C.SelectOption,{id:W,value:I.label,label:I.label,description:I.description,"data-cy":W,children:I.label},I.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${Xn(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function rxe(e){const{name:t,id:n,helperText:r,validate:i,additionalControls:a,formLabel:o,labelHelp:l,labelHelpTitle:s,...c}=e,{control:u,formState:{isSubmitting:f,isValidating:d}}=mi();return v.jsx(Uo,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:h,value:p},fieldState:{error:g}})=>v.jsx(C.FormGroup,{helperTextInvalid:!(i&&d)&&(g==null?void 0:g.message),fieldId:n,"data-cy":n+"-form-group",label:o,helperText:r,validated:g!=null&&g.message?"error":void 0,labelInfo:a,labelIcon:l?v.jsx(ia,{title:s,help:l}):void 0,children:v.jsx(C.Switch,{"data-cy":n+"-toggle",...c,isChecked:p,onChange:y=>h(y),isDisabled:f})})})}function ixe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A,autoComplete:T}=e,k=Ha(e),{control:P,setValue:N,formState:{isSubmitting:M,isValidating:j}}=mi(),[D,I]=x.useState(!1),[W]=mt();return v.jsx(Uo,{name:n,control:P,shouldUnregister:!0,render:({field:{onChange:X,value:ne,name:re},fieldState:{error:Z}})=>{const R=Z!=null&&Z.message?h&&j?W.validating:Z==null?void 0:Z.message:void 0;function J(U){X(U.trimStart())}return v.jsx(C.FormGroup,{id:`${k??""}-form-group`,fieldId:k,label:r,helperText:c,helperTextInvalid:R,validated:R?"error":void 0,isRequired:d,labelIcon:a?v.jsx(ia,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${r==null?void 0:r.toLowerCase().split(" ").join("-")}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextArea,{id:k,placeholder:l,onChange:J,value:ne??"","aria-describedby":k?`${k}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?D?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:A,autoComplete:T||"off","data-cy":k}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>I(!D),isDisabled:u||f,children:D?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(U=>{if(w){const Y=w(U);N(re,Y,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Xn(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xn(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Xn(r.toLocaleLowerCase())} must be less than ${y}.`}:p,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:p,pattern:b}})}function axe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A,autoComplete:T}=e,k=Ha(e),{control:P,setValue:N,formState:{isSubmitting:M,isValidating:j}}=mi(),[D,I]=x.useState(!1),[W]=mt();return v.jsx(Uo,{name:n,control:P,shouldUnregister:!0,render:({field:{onChange:X,value:ne,name:re},fieldState:{error:Z}})=>{const R=Z!=null&&Z.message?h&&j?W.validating:Z==null?void 0:Z.message:void 0;function J(U){X(U.trimStart())}return v.jsx(C.FormGroup,{id:`${k??""}-form-group`,fieldId:k,label:r,helperText:c,helperTextInvalid:R,validated:R?"error":void 0,isRequired:d,labelIcon:a?v.jsx(ia,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${r==null?void 0:r.toLowerCase().split(" ").join("-")}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{id:k,placeholder:l,onChange:J,value:ne??"","aria-describedby":k?`${k}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?D?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:A,autoComplete:T||"off","data-cy":k}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>I(!D),isDisabled:u||f,children:D?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(U=>{if(w){const Y=w(U);N(re,Y,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Xn(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xn(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Xn(r.toLocaleLowerCase())} must be less than ${y}.`}:p,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:p,pattern:b}})}const yy=Symbol.for("yaml.alias"),oxe=Symbol.for("yaml.document"),Ia=Symbol.for("yaml.map"),X6=Symbol.for("yaml.pair"),by=Symbol.for("yaml.scalar"),Ys=Symbol.for("yaml.seq"),Br=Symbol.for("yaml.node.type"),Jo=e=>!!e&&typeof e=="object"&&e[Br]===yy,Wd=e=>!!e&&typeof e=="object"&&e[Br]===oxe,J6=e=>!!e&&typeof e=="object"&&e[Br]===Ia,Ht=e=>!!e&&typeof e=="object"&&e[Br]===X6,It=e=>!!e&&typeof e=="object"&&e[Br]===by,_y=e=>!!e&&typeof e=="object"&&e[Br]===Ys;function kn(e){if(e&&typeof e=="object")switch(e[Br]){case Ia:case Ys:return!0}return!1}function bn(e){if(e&&typeof e=="object")switch(e[Br]){case yy:case Ia:case by:case Ys:return!0}return!1}const lxe=e=>(It(e)||kn(e))&&!!e.anchor,La=Symbol("break visit"),sxe=Symbol("skip children"),Ks=Symbol("remove node");function Zs(e,t){const n=cxe(t);Wd(e)?Qo(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Qo(null,e,n,Object.freeze([]))}Zs.BREAK=La,Zs.SKIP=sxe,Zs.REMOVE=Ks;function Qo(e,t,n,r){const i=uxe(e,t,n,r);if(bn(i)||Ht(i))return fxe(e,r,i),Qo(e,i,n,r);if(typeof i!="symbol"){if(kn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Qo(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===La)return La;o===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Ht(t)){r=Object.freeze(r.concat(t));const a=Qo("key",t.key,n,r);if(a===La)return La;a===Ks&&(t.key=null);const o=Qo("value",t.value,n,r);if(o===La)return La;o===Ks&&(t.value=null)}}return i}function cxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function uxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(J6(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(_y(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(Ht(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(It(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Jo(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function fxe(e,t,n){const r=t[t.length-1];if(kn(r))r.items[e]=n;else if(Ht(r))e==="key"?r.key=n:r.value=n;else if(Wd(r))r.contents=n;else{const i=Jo(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function Q6(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Xs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Xs(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Xs(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Xs(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Xs(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function vr(e,t,n){if(Array.isArray(e))return e.map((r,i)=>vr(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!lxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class xy{constructor(t){Object.defineProperty(this,Br,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Wd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=vr(this,"",o);if(typeof i=="function")for(const{count:s,res:c}of o.anchors.values())i(c,s);return typeof a=="function"?Xs(a,{"":l},"",l):l}}class dxe extends xy{constructor(t){super(yy),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Zs(t,{Node:(r,i)=>{if(i===this)return Zs.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||(vr(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Rd(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(Q6(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function Rd(e,t,n){if(Jo(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(kn(t)){let r=0;for(const i of t.items){const a=Rd(e,i,n);a>r&&(r=a)}return r}else if(Ht(t)){const r=Rd(e,t.key,n),i=Rd(e,t.value,n);return Math.max(r,i)}return 1}const eP=e=>!e||typeof e!="function"&&typeof e!="object";class At extends xy{constructor(t){super(by),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:vr(this.value,t,n)}toString(){return String(this.value)}}At.BLOCK_FOLDED="BLOCK_FOLDED",At.BLOCK_LITERAL="BLOCK_LITERAL",At.PLAIN="PLAIN",At.QUOTE_DOUBLE="QUOTE_DOUBLE",At.QUOTE_SINGLE="QUOTE_SINGLE";const hxe="tag:yaml.org,2002:";function mxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Vd(e,t,n){var f,d,h;if(Wd(e)&&(e=e.contents),bn(e))return e;if(Ht(e)){const p=(d=(f=n.schema[Ia]).createNode)==null?void 0:d.call(f,n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new dxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=hxe+t.slice(2));let c=mxe(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new At(e);return s&&(s.node=p),p}c=e instanceof Map?o[Ia]:Symbol.iterator in Object(e)?o[Ys]:o[Ia]}a&&(a(c),delete n.onTagObj);const u=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((h=c==null?void 0:c.nodeClass)==null?void 0:h.from)=="function"?c.nodeClass.from(n.schema,e,n):new At(e);return t?u.tag=t:c.default||(u.tag=c.tag),s&&(s.node=u),u}function tP(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Vd(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const gxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Hd extends xy{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>bn(r)||Ht(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(gxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(kn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,tP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(kn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&It(a)?a.value:a:kn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ht(n))return!1;const r=n.value;return r==null||t&&It(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return kn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(kn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,tP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}Hd.maxFlowStringSingleLineLength=60;const pxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Js(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const $a=(e,t,n)=>e.endsWith(`
473
+ `;function exe(e){const{t}=ut(),{handleCopy:n,handleDownload:r,handleUpload:i,allowCopy:a,allowDownload:o,allowUpload:l,toggleLanguages:s,setLanguage:c,selectedLanguage:u,errors:f,name:d}=e,h=[];a&&h.push(v.jsx(C.Tooltip,{content:t("Copy"),children:v.jsx(Bd,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),icon:v.jsx(Ce.CopyIcon,{}),type:"button",onClick:()=>n()},"copy-button")},"copy-file")),l&&h.push(v.jsx(C.Tooltip,{content:t("Upload"),children:v.jsx(Bd,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),icon:v.jsx(Ce.UploadIcon,{}),type:"button",onClick:()=>i()},"upload-button")},"upload-file")),o&&h.push(v.jsx(C.Tooltip,{content:t("Download"),children:v.jsx(Bd,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),icon:v.jsx(Ce.DownloadIcon,{}),type:"button",onClick:()=>r()},"download-button")},"download-file"));const p=(s==null?void 0:s.map(g=>v.jsx(Bd,{id:`toggle-${g}`,"data-cy":`toggle-${g}`,"aria-label":t("Toggle to {{language}}",{language:g}),isSelected:u===g,isDisabled:!!f[d],text:g,type:"button",onChange:()=>c(g)},g)))||[];return v.jsxs(C.Flex,{justifyContent:{default:"justifyContentSpaceBetween"},children:[v.jsx(C.FlexItem,{children:v.jsx(C.ToggleGroup,{isCompact:!0,children:h})}),v.jsx(C.FlexItem,{align:{default:"alignRight"},children:v.jsx(C.ToggleGroup,{isCompact:!0,children:p})})]})}function txe(e){const{t}=ut(),{allowCopy:n=!0,allowDownload:r=!0,allowUpload:i=!0,defaultExpanded:a,isExpandable:o,isReadOnly:l,isRequired:s,label:c,name:u,toggleLanguages:f,validate:d,...h}=e,{formState:{isSubmitting:p,isValidating:g,errors:y},setError:_,clearErrors:b,getValues:S,control:O,setValue:w}=mi(),[A,T]=x.useState("yaml"),[k,j]=x.useState(!a),N=x.useRef(null),M=yh(),{writeToClipboard:E}=u_(),I=e.id??u.split(".").join("-");x.useEffect(()=>{y[u]||b(u)},[y,u,b]);const D=x.useCallback(J=>{const U=S(u);if(!(J!=="json"&&J!=="yaml"||!U)){if(d_e(U))return J==="json"?w(u,U):w(u,R6(U));if(f_e(U))return J==="json"?w(u,U):w(u,R6(JSON.stringify(U)));J==="json"?w(u,u_e(U)):w(u,U)}},[S,u,w]),W=x.useCallback(J=>{try{D(J),T(J)}catch(U){U instanceof Error?_(u,{message:U.message}):_(u,{message:t("Invalid syntax")})}},[D,u,_,t]),X=x.useCallback(()=>{E(S(u))},[S,u,E]),ne=x.useCallback(()=>{N.current&&N.current.click()},[]),re=x.useCallback(()=>{h_e(u||"codeEditorData",S(u));const U={variant:"success",title:t("File downloaded")};M.addAlert(U)},[M,S,u,t]),Z=x.useCallback(J=>{const U=J[0],Y=new FileReader;Y.onload=()=>{const G=Y.result;if(typeof G=="string"){w(u,G);const ie={variant:"success",title:t("File uploaded")};M.addAlert(ie)}},Y.onerror=()=>{const G={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};M.addAlert(G)},Y.readAsText(U)},[w,u,t,M]),R=FE({onDrop:Z,multiple:!1});return v.jsx(Uo,{name:u,control:O,shouldUnregister:!0,render:({field:{name:J,onChange:U,value:Y},fieldState:{error:G}})=>{var se;const ie=[...new Set((se=G==null?void 0:G.message)==null?void 0:se.split(`
474
+ `))],z=Y!=null&&Y!=="";return v.jsx(J_e,{...h,label:o?v.jsxs("span",{"data-cy":"expandable",style:{alignItems:"center"},children:[v.jsx(Ce.AngleRightIcon,{style:{transform:k?"rotate(0deg)":"rotate(90deg)",transition:"transform"},onClick:()=>j(K=>!K),"aria-label":t("Expand or collapse extra variables")}),e.label]}):e.label,id:I,helperTextInvalid:!(d&&g)&&(ie==null?void 0:ie.map(K=>v.jsx(Q_e,{children:K},K))),children:(!o||!k)&&v.jsxs(v.Fragment,{children:[v.jsx(exe,{allowCopy:n,allowDownload:r,allowUpload:i,errors:y,handleCopy:()=>X(),handleDownload:re,handleUpload:ne,name:J,selectedLanguage:A,setLanguage:W,toggleLanguages:f},"actions-row"),v.jsxs("div",{id:"code-editor-dropzone",...R.getRootProps({disabled:z}),style:{width:"100%",height:"100%"},children:[v.jsx("input",{id:"code-editor-dropzone-input",...R.getInputProps(),ref:N}),v.jsx(X_e,{setError:_,clearErrors:b,id:I,"data-cy":I,name:J,language:A,value:Y,onChange:U,isReadOnly:l||p,invalid:!(d&&g)&&(G==null?void 0:G.message)!==void 0})]})]})})},rules:{required:typeof c=="string"&&s===!0?{value:!0,message:`${Xn(c.toLocaleLowerCase())} is required.`}:void 0,validate:e.validate}})}function nxe(e){const{name:t,label:n,labelHelpTitle:r,labelHelp:i,additionalControls:a,placeholderText:o,options:l,footer:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,fieldNameToResetOnFieldChange:p}=e,g=Ha(e),{control:y,formState:{isSubmitting:_,isValidating:b},resetField:S}=mi(),[O,w]=x.useState(!1),A=x.useCallback(()=>w(!O),[O]),[T]=mt();return v.jsx(Uo,{name:t,control:y,shouldUnregister:!0,render:({field:{onChange:k,value:j},fieldState:{error:N}})=>{j===""&&l.length===1&&d&&k(l[0].value);const M=(D,W)=>{var X;k((X=l.find(ne=>ne.label===W.toString()))==null?void 0:X.value),p&&S(p),w(!1)},E=N!=null&&N.message?h&&b?T.validating:N==null?void 0:N.message:void 0,I=l.find(D=>D.value===j);return v.jsx(C.FormGroup,{id:`${g??""}-form-group`,fieldId:g,label:n,labelIcon:i?v.jsx(ia,{title:r,help:i}):void 0,labelInfo:a,helperText:c,helperTextInvalid:E,validated:E?"error":void 0,isRequired:d,"data-cy":`${g??""}-form-group`,children:v.jsx(C.Select,{id:g,label:void 0,placeholderText:o,variant:"single","aria-describedby":g?`${g}-form-group`:void 0,selections:I==null?void 0:I.label,onSelect:M,isOpen:O,onToggle:A,onClear:d?void 0:()=>{k(null),w(!1)},maxHeight:280,validated:E?"error":void 0,isDisabled:u||f||_,hasPlaceholderStyle:!0,footer:s,ouiaId:"menu-select","data-cy":g,children:l.map(D=>{const W=br(D);return v.jsx(C.SelectOption,{id:W,value:D.label,label:D.label,description:D.description,"data-cy":W,children:D.label},D.label)})})})},rules:{required:typeof n=="string"&&d===!0?{value:!0,message:`${Xn(n.toLocaleLowerCase())} is required.`}:void 0,validate:h}})}function rxe(e){const{name:t,id:n,helperText:r,validate:i,additionalControls:a,formLabel:o,labelHelp:l,labelHelpTitle:s,...c}=e,{control:u,formState:{isSubmitting:f,isValidating:d}}=mi();return v.jsx(Uo,{name:t,control:u,shouldUnregister:!0,render:({field:{onChange:h,value:p},fieldState:{error:g}})=>v.jsx(C.FormGroup,{helperTextInvalid:!(i&&d)&&(g==null?void 0:g.message),fieldId:n,"data-cy":n+"-form-group",label:o,helperText:r,validated:g!=null&&g.message?"error":void 0,labelInfo:a,labelIcon:l?v.jsx(ia,{title:s,help:l}):void 0,children:v.jsx(C.Switch,{"data-cy":n+"-toggle",...c,isChecked:p,onChange:y=>h(y),isDisabled:f})})})}function ixe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A,autoComplete:T}=e,k=Ha(e),{control:j,setValue:N,formState:{isSubmitting:M,isValidating:E}}=mi(),[I,D]=x.useState(!1),[W]=mt();return v.jsx(Uo,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:X,value:ne,name:re},fieldState:{error:Z}})=>{const R=Z!=null&&Z.message?h&&E?W.validating:Z==null?void 0:Z.message:void 0;function J(U){X(U.trimStart())}return v.jsx(C.FormGroup,{id:`${k??""}-form-group`,fieldId:k,label:r,helperText:c,helperTextInvalid:R,validated:R?"error":void 0,isRequired:d,labelIcon:a?v.jsx(ia,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${r==null?void 0:r.toLowerCase().split(" ").join("-")}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextArea,{id:k,placeholder:l,onChange:J,value:ne??"","aria-describedby":k?`${k}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?I?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:A,autoComplete:T||"off","data-cy":k}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>D(!I),isDisabled:u||f,children:I?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(U=>{if(w){const Y=w(U);N(re,Y,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Xn(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xn(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Xn(r.toLocaleLowerCase())} must be less than ${y}.`}:p,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:p,pattern:b}})}function axe(e){const{type:t,name:n,label:r,labelHelpTitle:i,labelHelp:a,additionalControls:o,placeholder:l,button:s,helperText:c,isDisabled:u,isReadOnly:f,isRequired:d,validate:h,minLength:p,maxLength:g,min:y,max:_,pattern:b,selectTitle:S,selectOpen:O,selectValue:w,autoFocus:A,autoComplete:T}=e,k=Ha(e),{control:j,setValue:N,formState:{isSubmitting:M,isValidating:E}}=mi(),[I,D]=x.useState(!1),[W]=mt();return v.jsx(Uo,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:X,value:ne,name:re},fieldState:{error:Z}})=>{const R=Z!=null&&Z.message?h&&E?W.validating:Z==null?void 0:Z.message:void 0;function J(U){X(U.trimStart())}return v.jsx(C.FormGroup,{id:`${k??""}-form-group`,fieldId:k,label:r,helperText:c,helperTextInvalid:R,validated:R?"error":void 0,isRequired:d,labelIcon:a?v.jsx(ia,{title:i,help:a}):void 0,labelInfo:o,"data-cy":`${r==null?void 0:r.toLowerCase().split(" ").join("-")}-form-group`,children:v.jsxs(C.InputGroup,{children:[v.jsx(C.TextInput,{id:k,placeholder:l,onChange:J,value:ne??"","aria-describedby":k?`${k}-form-group`:void 0,validated:R?"error":void 0,type:t==="password"?I?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:u,autoFocus:A,autoComplete:T||"off","data-cy":k}),t==="password"&&v.jsx(C.Button,{variant:"control",onClick:()=>D(!I),isDisabled:u||f,children:I?v.jsx(Ce.EyeIcon,{}):v.jsx(Ce.EyeSlashIcon,{})}),S&&v.jsx(C.Button,{ouiaId:`lookup-${re}-button`,variant:"control",onClick:()=>O==null?void 0:O(U=>{if(w){const Y=w(U);N(re,Y,{shouldValidate:!0})}},S),"aria-label":"Options menu",isDisabled:u||M,children:v.jsx(Ce.SearchIcon,{})}),s&&s]})})},rules:{required:typeof r=="string"&&d===!0?{value:!0,message:`${Xn(r.toLocaleLowerCase())} is required.`}:void 0,validate:h,minLength:typeof r=="string"&&typeof p=="number"?{value:p,message:`${Xn(r.toLocaleLowerCase())} must be at least ${p} characters.`}:p,maxLength:typeof r=="string"&&typeof g=="number"?{value:g,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${g} characters.`}:g,min:typeof r=="string"&&(typeof y=="number"||typeof y=="string")?{value:y,message:`${Xn(r.toLocaleLowerCase())} must be less than ${y}.`}:p,max:typeof r=="string"&&(typeof _=="number"||typeof _=="string")?{value:_,message:`${Xn(r.toLocaleLowerCase())} cannot be greater than ${_}.`}:p,pattern:b}})}const yy=Symbol.for("yaml.alias"),oxe=Symbol.for("yaml.document"),Ia=Symbol.for("yaml.map"),X6=Symbol.for("yaml.pair"),by=Symbol.for("yaml.scalar"),Ys=Symbol.for("yaml.seq"),Br=Symbol.for("yaml.node.type"),Jo=e=>!!e&&typeof e=="object"&&e[Br]===yy,Wd=e=>!!e&&typeof e=="object"&&e[Br]===oxe,J6=e=>!!e&&typeof e=="object"&&e[Br]===Ia,Ht=e=>!!e&&typeof e=="object"&&e[Br]===X6,It=e=>!!e&&typeof e=="object"&&e[Br]===by,_y=e=>!!e&&typeof e=="object"&&e[Br]===Ys;function kn(e){if(e&&typeof e=="object")switch(e[Br]){case Ia:case Ys:return!0}return!1}function bn(e){if(e&&typeof e=="object")switch(e[Br]){case yy:case Ia:case by:case Ys:return!0}return!1}const lxe=e=>(It(e)||kn(e))&&!!e.anchor,La=Symbol("break visit"),sxe=Symbol("skip children"),Ks=Symbol("remove node");function Zs(e,t){const n=cxe(t);Wd(e)?Qo(null,e.contents,n,Object.freeze([e]))===Ks&&(e.contents=null):Qo(null,e,n,Object.freeze([]))}Zs.BREAK=La,Zs.SKIP=sxe,Zs.REMOVE=Ks;function Qo(e,t,n,r){const i=uxe(e,t,n,r);if(bn(i)||Ht(i))return fxe(e,r,i),Qo(e,i,n,r);if(typeof i!="symbol"){if(kn(t)){r=Object.freeze(r.concat(t));for(let a=0;a<t.items.length;++a){const o=Qo(a,t.items[a],n,r);if(typeof o=="number")a=o-1;else{if(o===La)return La;o===Ks&&(t.items.splice(a,1),a-=1)}}}else if(Ht(t)){r=Object.freeze(r.concat(t));const a=Qo("key",t.key,n,r);if(a===La)return La;a===Ks&&(t.key=null);const o=Qo("value",t.value,n,r);if(o===La)return La;o===Ks&&(t.value=null)}}return i}function cxe(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function uxe(e,t,n,r){var i,a,o,l,s;if(typeof n=="function")return n(e,t,r);if(J6(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(_y(t))return(a=n.Seq)==null?void 0:a.call(n,e,t,r);if(Ht(t))return(o=n.Pair)==null?void 0:o.call(n,e,t,r);if(It(t))return(l=n.Scalar)==null?void 0:l.call(n,e,t,r);if(Jo(t))return(s=n.Alias)==null?void 0:s.call(n,e,t,r)}function fxe(e,t,n){const r=t[t.length-1];if(kn(r))r.items[e]=n;else if(Ht(r))e==="key"?r.key=n:r.value=n;else if(Wd(r))r.contents=n;else{const i=Jo(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}function Q6(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Xs(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,a=r.length;i<a;++i){const o=r[i],l=Xs(e,r,String(i),o);l===void 0?delete r[i]:l!==o&&(r[i]=l)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const a=r.get(i),o=Xs(e,r,i,a);o===void 0?r.delete(i):o!==a&&r.set(i,o)}else if(r instanceof Set)for(const i of Array.from(r)){const a=Xs(e,r,i,i);a===void 0?r.delete(i):a!==i&&(r.delete(i),r.add(a))}else for(const[i,a]of Object.entries(r)){const o=Xs(e,r,i,a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}return e.call(t,n,r)}function vr(e,t,n){if(Array.isArray(e))return e.map((r,i)=>vr(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!lxe(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=a=>{r.res=a,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class xy{constructor(t){Object.defineProperty(this,Br,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:a}={}){if(!Wd(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},l=vr(this,"",o);if(typeof i=="function")for(const{count:s,res:c}of o.anchors.values())i(c,s);return typeof a=="function"?Xs(a,{"":l},"",l):l}}class dxe extends xy{constructor(t){super(yy),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Zs(t,{Node:(r,i)=>{if(i===this)return Zs.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:a}=n,o=this.resolve(i);if(!o){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(s)}let l=r.get(o);if(l||(vr(o,null,n),l=r.get(o)),!l||l.res===void 0){const s="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(s)}if(a>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=Rd(i,o,r)),l.count*l.aliasCount>a)){const s="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(s)}return l.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(Q6(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(a)}if(t.implicitKey)return`${i} `}return i}}function Rd(e,t,n){if(Jo(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(kn(t)){let r=0;for(const i of t.items){const a=Rd(e,i,n);a>r&&(r=a)}return r}else if(Ht(t)){const r=Rd(e,t.key,n),i=Rd(e,t.value,n);return Math.max(r,i)}return 1}const eP=e=>!e||typeof e!="function"&&typeof e!="object";class At extends xy{constructor(t){super(by),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:vr(this.value,t,n)}toString(){return String(this.value)}}At.BLOCK_FOLDED="BLOCK_FOLDED",At.BLOCK_LITERAL="BLOCK_LITERAL",At.PLAIN="PLAIN",At.QUOTE_DOUBLE="QUOTE_DOUBLE",At.QUOTE_SINGLE="QUOTE_SINGLE";const hxe="tag:yaml.org,2002:";function mxe(e,t,n){if(t){const r=n.filter(a=>a.tag===t),i=r.find(a=>!a.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function Vd(e,t,n){var f,d,h;if(Wd(e)&&(e=e.contents),bn(e))return e;if(Ht(e)){const p=(d=(f=n.schema[Ia]).createNode)==null?void 0:d.call(f,n.schema,null,n);return p.items.push(e),p}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:a,schema:o,sourceObjects:l}=n;let s;if(r&&e&&typeof e=="object"){if(s=l.get(e),s)return s.anchor||(s.anchor=i(e)),new dxe(s.anchor);s={anchor:null,node:null},l.set(e,s)}t!=null&&t.startsWith("!!")&&(t=hxe+t.slice(2));let c=mxe(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const p=new At(e);return s&&(s.node=p),p}c=e instanceof Map?o[Ia]:Symbol.iterator in Object(e)?o[Ys]:o[Ia]}a&&(a(c),delete n.onTagObj);const u=c!=null&&c.createNode?c.createNode(n.schema,e,n):typeof((h=c==null?void 0:c.nodeClass)==null?void 0:h.from)=="function"?c.nodeClass.from(n.schema,e,n):new At(e);return t?u.tag=t:c.default||(u.tag=c.tag),s&&(s.node=u),u}function tP(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const a=t[i];if(typeof a=="number"&&Number.isInteger(a)&&a>=0){const o=[];o[a]=r,r=o}else r=new Map([[a,r]])}return Vd(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const gxe=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Hd extends xy{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>bn(r)||Ht(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(gxe(t))this.add(n);else{const[r,...i]=t,a=this.get(r,!0);if(kn(a))a.addIn(i,n);else if(a===void 0&&this.schema)this.set(r,tP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(kn(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,a=this.get(r,!0);return i.length===0?!n&&It(a)?a.value:a:kn(a)?a.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!Ht(n))return!1;const r=n.value;return r==null||t&&It(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return kn(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const a=this.get(r,!0);if(kn(a))a.setIn(i,n);else if(a===void 0&&this.schema)this.set(r,tP(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}Hd.maxFlowStringSingleLineLength=60;const pxe=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function Js(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const $a=(e,t,n)=>e.endsWith(`
475
475
  `)?Js(n,t):n.includes(`
476
476
  `)?`
477
477
  `+Js(n,t):(e.endsWith(" ")?"":" ")+n,nP="flow",Sy="block",Ud="quoted";function qd(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:a=20,onFold:o,onOverflow:l}={}){if(!i||i<0)return e;const s=Math.max(1+a,1+i-t.length);if(e.length<=s)return e;const c=[],u={};let f=i-t.length;typeof r=="number"&&(r>i-Math.max(2,a)?c.push(0):f=i-r);let d,h,p=!1,g=-1,y=-1,_=-1;n===Sy&&(g=rP(e,g),g!==-1&&(f=g+s));for(let S;S=e[g+=1];){if(n===Ud&&S==="\\"){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}_=g}if(S===`
@@ -511,7 +511,7 @@ ${Js(T,n.indent)}`}w===""&&!n.inFlow?A===`
511
511
 
512
512
  `):A+=`
513
513
  ${n.indent}`}else if(!h&&kn(t)){const T=w[0],k=w.indexOf(`
514
- `),P=k!==-1,N=n.inFlow??t.flow??t.items.length===0;if(P||!N){let M=!1;if(P&&(T==="&"||T==="!")){let j=w.indexOf(" ");T==="&"&&j!==-1&&j<k&&w[j+1]==="!"&&(j=w.indexOf(" ",j+1)),(j===-1||k<j)&&(M=!0)}M||(A=`
514
+ `),j=k!==-1,N=n.inFlow??t.flow??t.items.length===0;if(j||!N){let M=!1;if(j&&(T==="&"||T==="!")){let E=w.indexOf(" ");T==="&"&&E!==-1&&E<k&&w[E+1]==="!"&&(E=w.indexOf(" ",E+1)),(E===-1||k<E)&&(M=!0)}M||(A=`
515
515
  ${n.indent}`)}}else(w===""||w[0]===`
516
516
  `)&&(A="");return y+=A+w,n.inFlow?O&&r&&r():S&&!O?y+=$a(y,n.indent,c(S)):g&&i&&i(),y}function Oxe(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const iP="<<";function aP(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Cxe(n))if(r=Jo(r)?r.resolve(e.doc):r,_y(r))for(const i of r.items)Cy(e,t,i);else if(Array.isArray(r))for(const i of r)Cy(e,t,i);else Cy(e,t,r);else{const i=vr(n,"",e);if(t instanceof Map)t.set(i,vr(r,i,e));else if(t instanceof Set)t.add(i);else{const a=Axe(n,i,e),o=vr(r,a,e);a in t?Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[a]=o}}return t}const Cxe=e=>e===iP||It(e)&&e.value===iP&&(!e.type||e.type===At.PLAIN);function Cy(e,t,n){const r=e&&Jo(n)?n.resolve(e.doc):n;if(!J6(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[a,o]of i)t instanceof Map?t.has(a)||t.set(a,o):t instanceof Set?t.add(a):Object.prototype.hasOwnProperty.call(t,a)||Object.defineProperty(t,a,{value:o,writable:!0,enumerable:!0,configurable:!0});return t}function Axe(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(bn(e)&&(n!=null&&n.doc)){const r=_xe(n.doc,{});r.anchors=new Set;for(const a of n.anchors.keys())r.anchors.add(a.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let a=JSON.stringify(i);a.length>40&&(a=a.substring(0,36)+'..."'),Oxe(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${a}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function Ay(e,t,n){const r=Vd(e,void 0,n),i=Vd(t,void 0,n);return new pi(r,i)}class pi{constructor(t,n=null){Object.defineProperty(this,Br,{value:X6}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return bn(n)&&(n=n.clone(t)),bn(r)&&(r=r.clone(t)),new pi(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return aP(n,r,this)}toString(t,n,r){return t!=null&&t.doc?wxe(this,t,n,r):JSON.stringify(this)}}function oP(e,t,n){return(t.inFlow??e.flow?kxe:Txe)(e,t,n)}function Txe({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:a,onChompKeep:o,onComment:l}){const{indent:s,options:{commentString:c}}=n,u=Object.assign({},n,{indent:a,type:null});let f=!1;const d=[];for(let p=0;p<t.length;++p){const g=t[p];let y=null;if(bn(g))!f&&g.spaceBefore&&d.push(""),Xd(n,d,g.commentBefore,f),g.comment&&(y=g.comment);else if(Ht(g)){const b=bn(g.key)?g.key:null;b&&(!f&&b.spaceBefore&&d.push(""),Xd(n,d,b.commentBefore,f))}f=!1;let _=Zd(g,u,()=>y=null,()=>f=!0);y&&(_+=$a(_,a,c(y))),f&&y&&(f=!1),d.push(r+_)}let h;if(d.length===0)h=i.start+i.end;else{h=d[0];for(let p=1;p<d.length;++p){const g=d[p];h+=g?`
517
517
  ${s}${g}`:`