drizzle-cube 0.4.47 → 0.4.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/adapters/{compiler-O3T1u7jl.js → compiler-B_Nl7ZZb.js} +1 -1
  2. package/dist/adapters/{compiler-CA6iopu7.cjs → compiler-CdL3ksb3.cjs} +1 -1
  3. package/dist/adapters/express/index.cjs +1 -1
  4. package/dist/adapters/express/index.js +4 -4
  5. package/dist/adapters/fastify/index.cjs +1 -1
  6. package/dist/adapters/fastify/index.js +39 -39
  7. package/dist/adapters/{handler-BO2nq6IS.cjs → handler-DumFgnNM.cjs} +10 -10
  8. package/dist/adapters/{handler-CjVc3ytc.js → handler-RItnSaEl.js} +128 -350
  9. package/dist/adapters/hono/index.cjs +1 -1
  10. package/dist/adapters/hono/index.js +4 -4
  11. package/dist/adapters/mcp-prompts-BUFyQLHQ.js +377 -0
  12. package/dist/adapters/mcp-prompts-B_NvEJT_.cjs +111 -0
  13. package/dist/adapters/mcp-tools.cjs +1 -1
  14. package/dist/adapters/mcp-tools.js +2 -2
  15. package/dist/adapters/mcp-transport-CG5Aw2cs.js +515 -0
  16. package/dist/adapters/mcp-transport-DlFvZl2c.cjs +35 -0
  17. package/dist/adapters/mcp-transport.d.ts +310 -5
  18. package/dist/adapters/nextjs/index.cjs +1 -1
  19. package/dist/adapters/nextjs/index.js +4 -4
  20. package/dist/adapters/utils-CyBt-as9.cjs +15 -0
  21. package/dist/adapters/{utils-C7Nrw9Wb.js → utils-IH1ePsBd.js} +707 -655
  22. package/dist/adapters/utils.cjs +1 -1
  23. package/dist/adapters/utils.d.ts +11 -0
  24. package/dist/adapters/utils.js +2 -2
  25. package/dist/mcp-app/mcp-app.html +78 -44
  26. package/dist/server/index.cjs +144 -38
  27. package/dist/server/index.d.ts +24 -19
  28. package/dist/server/index.js +538 -674
  29. package/package.json +1 -1
  30. package/dist/adapters/mcp-prompts-BAutSQYA.js +0 -344
  31. package/dist/adapters/mcp-prompts-DsAkafVn.cjs +0 -5
  32. package/dist/adapters/mcp-transport-Cim_5cBN.js +0 -424
  33. package/dist/adapters/mcp-transport-DPpBCNea.cjs +0 -70
  34. package/dist/adapters/utils-tNZ6Cvzw.cjs +0 -15
@@ -4,16 +4,16 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Drizzle Cube Visualization</title>
7
- <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var 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`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function ee(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function te(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+ee(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),te(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+ee(s,l);c+=te(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+ee(s,l++),c+=te(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function ne(e,t,n){if(e==null)return e;var r=[],i=0;return te(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function A(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var re={current:null},ie={transition:null},ae={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:ie,ReactCurrentOwner:C};function oe(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:ne,forEach:function(e,t,n){ne(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ne(e,function(){t++}),t},toArray:function(e){return ne(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ae,e.act=oe,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:A}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ie.transition;ie.transition={};try{e()}finally{ie.transition=t}},e.unstable_act=oe,e.useCallback=function(e,t){return re.current.useCallback(e,t)},e.useContext=function(e){return re.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return re.current.useDeferredValue(e)},e.useEffect=function(e,t){return re.current.useEffect(e,t)},e.useId=function(){return re.current.useId()},e.useImperativeHandle=function(e,t,n){return re.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return re.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return re.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return re.current.useMemo(e,t)},e.useReducer=function(e,t,n){return re.current.useReducer(e,t,n)},e.useRef=function(e){return re.current.useRef(e)},e.useState=function(e){return re.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return re.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return re.current.useTransition()},e.version=`18.3.1`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,ne(x);else{var t=n(l);t!==null&&A(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&A(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var ee=new MessageChannel,te=ee.port2;ee.port1.onmessage=O,k=function(){te.postMessage(null)}}else k=function(){g(O,0)};function ne(e){C=e,S||(S=!0,k())}function A(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,ne(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,A(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,ne(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d(),n=p();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e){return l.call(m,e)?!0:l.call(f,e)?!1:u.test(e)?m[e]=!0:(f[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),ee=Symbol.for(`react.context`),te=Symbol.for(`react.forward_ref`),ne=Symbol.for(`react.suspense`),A=Symbol.for(`react.suspense_list`),re=Symbol.for(`react.memo`),ie=Symbol.for(`react.lazy`),ae=Symbol.for(`react.offscreen`),oe=Symbol.iterator;function se(e){return typeof e!=`object`||!e?null:(e=oe&&e[oe]||e[`@@iterator`],typeof e==`function`?e:null)}var ce=Object.assign,le;function ue(e){if(le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);le=t&&t[1]||``}return`
8
- `+le+e}var j=!1;function de(e,t){if(!e||j)return``;j=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
7
+ <script type="module" crossorigin>var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(e&&(t=e(e=0)),t),s=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var d=s((e=>{var 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`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function D(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function O(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var k=/\/+/g;function A(e,t){return typeof e==`object`&&e&&e.key!=null?O(``+e.key):t.toString(36)}function j(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+A(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(k,`$&/`)+`/`),j(o,r,i,``,function(e){return e})):o!=null&&(D(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(k,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+A(s,l);c+=j(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+A(s,l++),c+=j(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function M(e,t,n){if(e==null)return e;var r=[],i=0;return j(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var ee={current:null},te={transition:null},ne={ReactCurrentDispatcher:ee,ReactCurrentBatchConfig:te,ReactCurrentOwner:C};function re(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:M,forEach:function(e,t,n){M(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return M(e,function(){t++}),t},toArray:function(e){return M(e,function(e){return e})||[]},only:function(e){if(!D(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ne,e.act=re,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=D,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=te.transition;te.transition={};try{e()}finally{te.transition=t}},e.unstable_act=re,e.useCallback=function(e,t){return ee.current.useCallback(e,t)},e.useContext=function(e){return ee.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return ee.current.useDeferredValue(e)},e.useEffect=function(e,t){return ee.current.useEffect(e,t)},e.useId=function(){return ee.current.useId()},e.useImperativeHandle=function(e,t,n){return ee.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return ee.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return ee.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return ee.current.useMemo(e,t)},e.useReducer=function(e,t,n){return ee.current.useReducer(e,t,n)},e.useRef=function(e){return ee.current.useRef(e)},e.useState=function(e){return ee.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return ee.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return ee.current.useTransition()},e.version=`18.3.1`})),f=s(((e,t)=>{t.exports=d()})),p=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m)if(n(c)!==null)m=!0,M(x);else{var t=n(l);t!==null&&N(b,t.startTime-e)}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!D());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&N(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function D(){return!(e.unstable_now()-E<T)}function O(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?k():(S=!1,C=null)}}else S=!1}var k;if(typeof v==`function`)k=function(){v(O)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=O,k=function(){j.postMessage(null)}}else k=function(){g(O,0)};function M(e){C=e,S||(S=!0,k())}function N(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,M(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,N(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,M(x))),r},e.unstable_shouldYield=D,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),m=s(((e,t)=>{t.exports=p()})),h=s((e=>{var t=f(),n=m();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function h(e){return l.call(p,e)?!0:l.call(d,e)?!1:u.test(e)?p[e]=!0:(d[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?h(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),D=Symbol.for(`react.strict_mode`),O=Symbol.for(`react.profiler`),k=Symbol.for(`react.provider`),A=Symbol.for(`react.context`),j=Symbol.for(`react.forward_ref`),M=Symbol.for(`react.suspense`),N=Symbol.for(`react.suspense_list`),ee=Symbol.for(`react.memo`),te=Symbol.for(`react.lazy`),ne=Symbol.for(`react.offscreen`),re=Symbol.iterator;function ie(e){return typeof e!=`object`||!e?null:(e=re&&e[re]||e[`@@iterator`],typeof e==`function`?e:null)}var ae=Object.assign,oe;function se(e){if(oe===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);oe=t&&t[1]||``}return`
8
+ `+oe+e}var ce=!1;function P(e,t){if(!e||ce)return``;ce=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
9
9
  `),a=r.stack.split(`
10
10
  `),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
11
- `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{j=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ue(e):``}function fe(e){switch(e.tag){case 5:return ue(e.type);case 16:return ue(`Lazy`);case 13:return ue(`Suspense`);case 19:return ue(`SuspenseList`);case 0:case 2:case 15:return e=de(e.type,!1),e;case 11:return e=de(e.type.render,!1),e;case 1:return e=de(e.type,!0),e;default:return``}}function pe(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case ne:return`Suspense`;case A:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ee:return(e.displayName||`Context`)+`.Consumer`;case k:return(e._context.displayName||`Context`)+`.Provider`;case te:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case re:return t=e.displayName||null,t===null?pe(e.type)||`Memo`:t;case ie:t=e._payload,e=e._init;try{return pe(e(t))}catch{}}return null}function me(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return pe(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function he(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function ge(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function _e(e){var t=ge(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ve(e){e._valueTracker||=_e(e)}function ye(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ge(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function be(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function xe(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Se(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=he(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Ce(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function we(e,t){Ce(e,t);var n=he(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ee(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ee(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Te(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ee(e,t,n){(t!==`number`||be(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var De=Array.isArray;function Oe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+he(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function ke(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return ce({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function Ae(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(De(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:he(n)}}function je(e,t){var n=he(t.value),r=he(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function Me(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Ne(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Pe(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ne(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Fe,Ie=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Fe||=document.createElement(`div`),Fe.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Fe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Le(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Re={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ze=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Re).forEach(function(e){ze.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Re[t]=Re[e]})});function Be(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Re.hasOwnProperty(e)&&Re[e]?(``+t).trim():t+`px`}function Ve(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Be(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var He=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ue(e,t){if(t){if(He[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function We(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Ge=null;function Ke(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qe=null,Je=null,Ye=null;function Xe(e){if(e=Yi(e)){if(typeof qe!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Zi(t),qe(e.stateNode,e.type,t))}}function Ze(e){Je?Ye?Ye.push(e):Ye=[e]:Je=e}function Qe(){if(Je){var e=Je,t=Ye;if(Ye=Je=null,Xe(e),t)for(e=0;e<t.length;e++)Xe(t[e])}}function $e(e,t){return e(t)}function et(){}var tt=!1;function nt(e,t,n){if(tt)return e(t,n);tt=!0;try{return $e(e,t,n)}finally{tt=!1,(Je!==null||Ye!==null)&&(et(),Qe())}}function rt(e,t){var n=e.stateNode;if(n===null)return null;var i=Zi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var it=!1;if(c)try{var at={};Object.defineProperty(at,`passive`,{get:function(){it=!0}}),window.addEventListener(`test`,at,at),window.removeEventListener(`test`,at,at)}catch{it=!1}function ot(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var st=!1,ct=null,lt=!1,ut=null,dt={onError:function(e){st=!0,ct=e}};function ft(e,t,n,r,i,a,o,s,c){st=!1,ct=null,ot.apply(dt,arguments)}function pt(e,t,n,i,a,o,s,c,l){if(ft.apply(this,arguments),st){if(st){var u=ct;st=!1,ct=null}else throw Error(r(198));lt||(lt=!0,ut=u)}}function mt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ht(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gt(e){if(mt(e)!==e)throw Error(r(188))}function _t(e){var t=e.alternate;if(!t){if(t=mt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return gt(a),e;if(o===i)return gt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function vt(e){return e=_t(e),e===null?null:yt(e)}function yt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=yt(e);if(t!==null)return t;e=e.sibling}return null}var bt=n.unstable_scheduleCallback,xt=n.unstable_cancelCallback,St=n.unstable_shouldYield,Ct=n.unstable_requestPaint,wt=n.unstable_now,Tt=n.unstable_getCurrentPriorityLevel,Et=n.unstable_ImmediatePriority,Dt=n.unstable_UserBlockingPriority,Ot=n.unstable_NormalPriority,kt=n.unstable_LowPriority,At=n.unstable_IdlePriority,jt=null,Mt=null;function Nt(e){if(Mt&&typeof Mt.onCommitFiberRoot==`function`)try{Mt.onCommitFiberRoot(jt,e,void 0,(e.current.flags&128)==128)}catch{}}var Pt=Math.clz32?Math.clz32:Lt,Ft=Math.log,It=Math.LN2;function Lt(e){return e>>>=0,e===0?32:31-(Ft(e)/It|0)|0}var Rt=64,zt=4194304;function Bt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Vt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Bt(a))):r=Bt(s)}else o=n&~i,o===0?a!==0&&(r=Bt(a)):r=Bt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Pt(t),i=1<<n,r|=e[n],t&=~i;return r}function Ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ut(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-Pt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ht(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Wt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Gt(){var e=Rt;return Rt<<=1,!(Rt&4194240)&&(Rt=64),e}function Kt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function qt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pt(t),e[t]=n}function Jt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Pt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var Xt=0;function Zt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qt,$t,en,tn,nn,rn=!1,an=[],on=null,sn=null,cn=null,ln=new Map,un=new Map,dn=[],fn=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function pn(e,t){switch(e){case`focusin`:case`focusout`:on=null;break;case`dragenter`:case`dragleave`:sn=null;break;case`mouseover`:case`mouseout`:cn=null;break;case`pointerover`:case`pointerout`:ln.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:un.delete(t.pointerId)}}function mn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Yi(t),t!==null&&$t(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function hn(e,t,n,r,i){switch(t){case`focusin`:return on=mn(on,e,t,n,r,i),!0;case`dragenter`:return sn=mn(sn,e,t,n,r,i),!0;case`mouseover`:return cn=mn(cn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return ln.set(a,mn(ln.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,un.set(a,mn(un.get(a)||null,e,t,n,r,i)),!0}return!1}function gn(e){var t=Ji(e.target);if(t!==null){var n=mt(t);if(n!==null){if(t=n.tag,t===13){if(t=ht(n),t!==null){e.blockedOn=t,nn(e.priority,function(){en(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function _n(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=On(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ge=r,n.target.dispatchEvent(r),Ge=null}else return t=Yi(n),t!==null&&$t(t),e.blockedOn=n,!1;t.shift()}return!0}function vn(e,t,n){_n(e)&&n.delete(t)}function yn(){rn=!1,on!==null&&_n(on)&&(on=null),sn!==null&&_n(sn)&&(sn=null),cn!==null&&_n(cn)&&(cn=null),ln.forEach(vn),un.forEach(vn)}function bn(e,t){e.blockedOn===t&&(e.blockedOn=null,rn||(rn=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,yn)))}function xn(e){function t(t){return bn(t,e)}if(0<an.length){bn(an[0],e);for(var n=1;n<an.length;n++){var r=an[n];r.blockedOn===e&&(r.blockedOn=null)}}for(on!==null&&bn(on,e),sn!==null&&bn(sn,e),cn!==null&&bn(cn,e),ln.forEach(t),un.forEach(t),n=0;n<dn.length;n++)r=dn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<dn.length&&(n=dn[0],n.blockedOn===null);)gn(n),n.blockedOn===null&&dn.shift()}var Sn=C.ReactCurrentBatchConfig,Cn=!0;function wn(e,t,n,r){var i=Xt,a=Sn.transition;Sn.transition=null;try{Xt=1,En(e,t,n,r)}finally{Xt=i,Sn.transition=a}}function Tn(e,t,n,r){var i=Xt,a=Sn.transition;Sn.transition=null;try{Xt=4,En(e,t,n,r)}finally{Xt=i,Sn.transition=a}}function En(e,t,n,r){if(Cn){var i=On(e,t,n,r);if(i===null)xi(e,t,r,Dn,n),pn(e,r);else if(hn(i,e,t,n,r))r.stopPropagation();else if(pn(e,r),t&4&&-1<fn.indexOf(e)){for(;i!==null;){var a=Yi(i);if(a!==null&&Qt(a),a=On(e,t,n,r),a===null&&xi(e,t,r,Dn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else xi(e,t,r,null,n)}}var Dn=null;function On(e,t,n,r){if(Dn=null,e=Ke(r),e=Ji(e),e!==null)if(t=mt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ht(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Dn=e,null}function kn(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(Tt()){case Et:return 1;case Dt:return 4;case Ot:case kt:return 16;case At:return 536870912;default:return 16}default:return 16}}var An=null,jn=null,Mn=null;function Nn(){if(Mn)return Mn;var e,t=jn,n=t.length,r,i=`value`in An?An.value:An.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Mn=i.slice(e,1<r?1-r:void 0)}function Pn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Fn(){return!0}function In(){return!1}function Ln(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Fn:In,this.isPropagationStopped=In,this}return ce(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Fn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Fn)},persist:function(){},isPersistent:Fn}),t}var Rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zn=Ln(Rn),Bn=ce({},Rn,{view:0,detail:0}),Vn=Ln(Bn),Hn,Un,Wn,Gn=ce({},Bn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Wn&&(Wn&&e.type===`mousemove`?(Hn=e.screenX-Wn.screenX,Un=e.screenY-Wn.screenY):Un=Hn=0,Wn=e),Hn)},movementY:function(e){return`movementY`in e?e.movementY:Un}}),Kn=Ln(Gn),qn=Ln(ce({},Gn,{dataTransfer:0})),Jn=Ln(ce({},Bn,{relatedTarget:0})),Yn=Ln(ce({},Rn,{animationName:0,elapsedTime:0,pseudoElement:0})),Xn=Ln(ce({},Rn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Zn=Ln(ce({},Rn,{data:0})),Qn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},$n={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},er={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=er[e])?!!t[e]:!1}function nr(){return tr}var rr=Ln(ce({},Bn,{key:function(e){if(e.key){var t=Qn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?$n[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(e){return e.type===`keypress`?Pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),ir=Ln(ce({},Gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),ar=Ln(ce({},Bn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr})),or=Ln(ce({},Rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),sr=Ln(ce({},Gn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),cr=[9,13,27,32],lr=c&&`CompositionEvent`in window,ur=null;c&&`documentMode`in document&&(ur=document.documentMode);var dr=c&&`TextEvent`in window&&!ur,fr=c&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=Nn(),Mn=jn=An=null,_r=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){Ze(r),t=Ci(t,`onChange`),0<t.length&&(n=new zn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){gi(e,0)}function Er(e){if(ye(Xi(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(c){var kr;if(c){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,Ke(e)),nt(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hr(e,t){var n=Vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Vr(n)}}function Ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(){for(var e=window,t=be();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=be(e.document)}return t}function Gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Kr(e){var t=Wr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ur(n.ownerDocument.documentElement,n)){if(r!==null&&Gr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Hr(n,a);var o=Hr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var qr=c&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==be(r)||(r=Jr,`selectionStart`in r&&Gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Xr&&Br(Xr,r)||(Xr=r,r=Ci(Yr,`onSelect`),0<r.length&&(t=new zn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};c&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var ii=ri(`animationend`),ai=ri(`animationiteration`),oi=ri(`animationstart`),si=ri(`transitionend`),ci=new Map,li=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ui(e,t){ci.set(e,t),o(t,[e])}for(var di=0;di<li.length;di++){var fi=li[di];ui(fi.toLowerCase(),`on`+(fi[0].toUpperCase()+fi.slice(1)))}ui(ii,`onAnimationEnd`),ui(ai,`onAnimationIteration`),ui(oi,`onAnimationStart`),ui(`dblclick`,`onDoubleClick`),ui(`focusin`,`onFocus`),ui(`focusout`,`onBlur`),ui(si,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var pi=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),mi=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(pi));function hi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,pt(r,t,void 0,e),e.currentTarget=null}function gi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;hi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;hi(i,s,l),a=c}}}if(lt)throw e=ut,lt=!1,ut=null,e}function M(e,t){var n=t[Gi];n===void 0&&(n=t[Gi]=new Set);var r=e+`__bubble`;n.has(r)||(bi(t,e,2,!1),n.add(r))}function _i(e,t,n){var r=0;t&&(r|=4),bi(n,e,r,t)}var vi=`_reactListening`+Math.random().toString(36).slice(2);function yi(e){if(!e[vi]){e[vi]=!0,i.forEach(function(t){t!==`selectionchange`&&(mi.has(t)||_i(t,!1,e),_i(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vi]||(t[vi]=!0,_i(`selectionchange`,!1,t))}}function bi(e,t,n,r){switch(kn(t)){case 1:var i=wn;break;case 4:i=Tn;break;default:i=En}n=i.bind(null,t,n,e),i=void 0,!it||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function xi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ji(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}nt(function(){var r=a,i=Ke(n),o=[];a:{var s=ci.get(e);if(s!==void 0){var c=zn,l=e;switch(e){case`keypress`:if(Pn(n)===0)break a;case`keydown`:case`keyup`:c=rr;break;case`focusin`:l=`focus`,c=Jn;break;case`focusout`:l=`blur`,c=Jn;break;case`beforeblur`:case`afterblur`:c=Jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=qn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=ar;break;case ii:case ai:case oi:c=Yn;break;case si:c=or;break;case`scroll`:c=Vn;break;case`wheel`:c=sr;break;case`copy`:case`cut`:case`paste`:c=Xn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=ir}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=rt(p,f),h!=null&&u.push(Si(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ge&&(l=n.relatedTarget||n.fromElement)&&(Ji(l)||l[Wi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ji(l):null,l!==null&&(d=mt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Kn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=ir,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Xi(c),m=l==null?s:Xi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ji(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=wi(m))p++;for(m=0,h=f;h;h=wi(h))m++;for(;0<p-m;)u=wi(u),p--;for(;0<m-p;)f=wi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=wi(u),f=wi(f)}u=null}else u=null;c!==null&&Ti(o,s,c,u,!1),l!==null&&d!==null&&Ti(o,d,l,u,!0)}}a:{if(s=r?Xi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=Dr;else if(xr(s))if(Or)g=Lr;else{g=Fr;var _=Pr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Ir);if(g&&=g(e,r)){Sr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ee(s,`number`,s.value)}switch(_=r?Xi(r):window,e){case`focusin`:(xr(_)||_.contentEditable===`true`)&&(Jr=_,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(o,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(o,n,i)}var v;if(lr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else _r?hr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(fr&&n.locale!==`ko`&&(_r||y!==`onCompositionStart`?y===`onCompositionEnd`&&_r&&(v=Nn()):(An=i,jn=`value`in An?An.value:An.textContent,_r=!0)),_=Ci(r,y),0<_.length&&(y=new Zn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=gr(n),v!==null&&(y.data=v)))),(v=dr?vr(e,n):yr(e,n))&&(r=Ci(r,`onBeforeInput`),0<r.length&&(i=new Zn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}gi(o,t)})}function Si(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ci(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=rt(e,n),a!=null&&r.unshift(Si(e,a,i)),a=rt(e,t),a!=null&&r.push(Si(e,a,i))),e=e.return}return r}function wi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ti(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=rt(n,a),c!=null&&o.unshift(Si(n,c,s))):i||(c=rt(n,a),c!=null&&o.push(Si(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Ei=/\r\n?/g,Di=/\u0000|\uFFFD/g;function Oi(e){return(typeof e==`string`?e:``+e).replace(Ei,`
12
- `).replace(Di,``)}function ki(e,t,n){if(t=Oi(t),Oi(e)!==t&&n)throw Error(r(425))}function Ai(){}var ji=null,Mi=null;function Ni(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pi=typeof setTimeout==`function`?setTimeout:void 0,Fi=typeof clearTimeout==`function`?clearTimeout:void 0,Ii=typeof Promise==`function`?Promise:void 0,Li=typeof queueMicrotask==`function`?queueMicrotask:Ii===void 0?Pi:function(e){return Ii.resolve(null).then(e).catch(Ri)};function Ri(e){setTimeout(function(){throw e})}function zi(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),xn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);xn(t)}function Bi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Vi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Hi=Math.random().toString(36).slice(2),N=`__reactFiber$`+Hi,Ui=`__reactProps$`+Hi,Wi=`__reactContainer$`+Hi,Gi=`__reactEvents$`+Hi,Ki=`__reactListeners$`+Hi,qi=`__reactHandles$`+Hi;function Ji(e){var t=e[N];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Wi]||n[N]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Vi(e);e!==null;){if(n=e[N])return n;e=Vi(e)}return t}e=n,n=e.parentNode}return null}function Yi(e){return e=e[N]||e[Wi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Xi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Zi(e){return e[Ui]||null}var Qi=[],$i=-1;function ea(e){return{current:e}}function ta(e){0>$i||(e.current=Qi[$i],Qi[$i]=null,$i--)}function na(e,t){$i++,Qi[$i]=e.current,e.current=t}var ra={},ia=ea(ra),aa=ea(!1),oa=ra;function sa(e,t){var n=e.type.contextTypes;if(!n)return ra;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ca(e){return e=e.childContextTypes,e!=null}function la(){ta(aa),ta(ia)}function ua(e,t,n){if(ia.current!==ra)throw Error(r(168));na(ia,t),na(aa,n)}function da(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,me(e)||`Unknown`,a));return ce({},n,i)}function fa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ra,oa=ia.current,na(ia,e),na(aa,aa.current),!0}function pa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=da(e,t,oa),i.__reactInternalMemoizedMergedChildContext=e,ta(aa),ta(ia),na(ia,e)):ta(aa),na(aa,n)}var ma=null,ha=!1,ga=!1;function _a(e){ma===null?ma=[e]:ma.push(e)}function va(e){ha=!0,_a(e)}function P(){if(!ga&&ma!==null){ga=!0;var e=0,t=Xt;try{var n=ma;for(Xt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}ma=null,ha=!1}catch(t){throw ma!==null&&(ma=ma.slice(e+1)),bt(Et,P),t}finally{Xt=t,ga=!1}}return null}var ya=[],ba=0,xa=null,Sa=0,Ca=[],wa=0,Ta=null,Ea=1,Da=``;function Oa(e,t){ya[ba++]=Sa,ya[ba++]=xa,xa=e,Sa=t}function ka(e,t,n){Ca[wa++]=Ea,Ca[wa++]=Da,Ca[wa++]=Ta,Ta=e;var r=Ea;e=Da;var i=32-Pt(r)-1;r&=~(1<<i),n+=1;var a=32-Pt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ea=1<<32-Pt(t)+i|n<<i|r,Da=a+e}else Ea=1<<a|n<<i|r,Da=e}function Aa(e){e.return!==null&&(Oa(e,1),ka(e,1,0))}function ja(e){for(;e===xa;)xa=ya[--ba],ya[ba]=null,Sa=ya[--ba],ya[ba]=null;for(;e===Ta;)Ta=Ca[--wa],Ca[wa]=null,Da=Ca[--wa],Ca[wa]=null,Ea=Ca[--wa],Ca[wa]=null}var Ma=null,Na=null,Pa=!1,Fa=null;function Ia(e,t){var n=tu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function La(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,Ma=e,Na=Bi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,Ma=e,Na=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=Ta===null?null:{id:Ea,overflow:Da},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=tu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Ma=e,Na=null,!0);default:return!1}}function Ra(e){return(e.mode&1)!=0&&(e.flags&128)==0}function za(e){if(Pa){var t=Na;if(t){var n=t;if(!La(e,t)){if(Ra(e))throw Error(r(418));t=Bi(n.nextSibling);var i=Ma;t&&La(e,t)?Ia(i,n):(e.flags=e.flags&-4097|2,Pa=!1,Ma=e)}}else{if(Ra(e))throw Error(r(418));e.flags=e.flags&-4097|2,Pa=!1,Ma=e}}}function F(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Ma=e}function Ba(e){if(e!==Ma)return!1;if(!Pa)return F(e),Pa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Ni(e.type,e.memoizedProps)),t&&=Na){if(Ra(e))throw Va(),Error(r(418));for(;t;)Ia(e,t),t=Bi(t.nextSibling)}if(F(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Na=Bi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Na=null}}else Na=Ma?Bi(e.stateNode.nextSibling):null;return!0}function Va(){for(var e=Na;e;)e=Bi(e.nextSibling)}function Ha(){Na=Ma=null,Pa=!1}function I(e){Fa===null?Fa=[e]:Fa.push(e)}var Ua=C.ReactCurrentBatchConfig;function Wa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ka(e){var t=e._init;return t(e._payload)}function qa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=iu(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=cu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ie&&Ka(i)===t.type)?(r=a(t,n.props),r.ref=Wa(e,t,n),r.return=e,r):(r=au(n.type,n.key,n.props,null,e.mode,r),r.ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=lu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=ou(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=cu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=au(t.type,t.key,t.props,null,e.mode,n),n.ref=Wa(e,null,t),n.return=e,n;case T:return t=lu(t,e.mode,n),t.return=e,t;case ie:var r=t._init;return f(e,r(t._payload),n)}if(De(t)||se(t))return t=ou(t,e.mode,n,null),t.return=e,t;Ga(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case ie:return i=n._init,p(e,t,i(n._payload),r)}if(De(n)||se(n))return i===null?d(e,t,n,r,null):null;Ga(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ie:var a=r._init;return m(e,t,n,a(r._payload),i)}if(De(r)||se(r))return e=e.get(n)||null,d(t,e,r,i,null);Ga(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Pa&&Oa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Pa&&Oa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Pa&&Oa(r,h),l}function g(a,s,c,l){var u=se(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Pa&&Oa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Pa&&Oa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Pa&&Oa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ie&&Ka(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Wa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=ou(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=au(i.type,i.key,i.props,null,e.mode,o),o.ref=Wa(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=lu(i,e.mode,o),r.return=e,e=r}return s(e);case ie:return l=i._init,_(e,r,l(i._payload),o)}if(De(i))return h(e,r,i,o);if(se(i))return g(e,r,i,o);Ga(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=cu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var L=qa(!0),Ja=qa(!1),Ya=ea(null),Xa=null,R=null,Za=null;function z(){Za=R=Xa=null}function Qa(e){var t=Ya.current;ta(Ya),e._currentValue=t}function $a(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function B(e,t){Xa=e,Za=R=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Vs=!0),e.firstContext=null)}function eo(e){var t=e._currentValue;if(Za!==e)if(e={context:e,memoizedValue:t,next:null},R===null){if(Xa===null)throw Error(r(308));R=e,Xa.dependencies={lanes:0,firstContext:e}}else R=R.next=e;return t}var to=null;function no(e){to===null?to=[e]:to.push(e)}function ro(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,no(t)):(n.next=i.next,i.next=n),t.interleaved=n,io(e,r)}function io(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var V=!1;function ao(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function oo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function so(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function H(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Xc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,io(e,n)}return i=r.interleaved,i===null?(t.next=t,no(r)):(t.next=i.next,i.next=t),r.interleaved=t,io(e,n)}function co(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yt(e,n)}}function lo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function uo(e,t,n,r){var i=e.updateQueue;V=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=ce({},d,f);break a;case 2:V=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);il|=o,e.lanes=o,e.memoizedState=d}}function fo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var po={},mo=ea(po),ho=ea(po),go=ea(po);function _o(e){if(e===po)throw Error(r(174));return e}function vo(e,t){switch(na(go,t),na(ho,e),na(mo,po),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Pe(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Pe(t,e)}ta(mo),na(mo,t)}function yo(){ta(mo),ta(ho),ta(go)}function bo(e){_o(go.current);var t=_o(mo.current),n=Pe(t,e.type);t!==n&&(na(ho,e),na(mo,n))}function xo(e){ho.current===e&&(ta(mo),ta(ho))}var So=ea(0);function Co(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var wo=[];function To(){for(var e=0;e<wo.length;e++)wo[e]._workInProgressVersionPrimary=null;wo.length=0}var Eo=C.ReactCurrentDispatcher,Do=C.ReactCurrentBatchConfig,Oo=0,ko=null,Ao=null,jo=null,Mo=!1,No=!1,Po=0,Fo=0;function Io(){throw Error(r(321))}function Lo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Ro(e,t,n,i,a,o){if(Oo=o,ko=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Eo.current=e===null||e.memoizedState===null?xs:Ss,e=n(i,a),No){o=0;do{if(No=!1,Po=0,25<=o)throw Error(r(301));o+=1,jo=Ao=null,t.updateQueue=null,Eo.current=Cs,e=n(i,a)}while(No)}if(Eo.current=bs,t=Ao!==null&&Ao.next!==null,Oo=0,jo=Ao=ko=null,Mo=!1,t)throw Error(r(300));return e}function zo(){var e=Po!==0;return Po=0,e}function Bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return jo===null?ko.memoizedState=jo=e:jo=jo.next=e,jo}function Vo(){if(Ao===null){var e=ko.alternate;e=e===null?null:e.memoizedState}else e=Ao.next;var t=jo===null?ko.memoizedState:jo.next;if(t!==null)jo=t,Ao=e;else{if(e===null)throw Error(r(310));Ao=e,e={memoizedState:Ao.memoizedState,baseState:Ao.baseState,baseQueue:Ao.baseQueue,queue:Ao.queue,next:null},jo===null?ko.memoizedState=jo=e:jo=jo.next=e}return jo}function Ho(e,t){return typeof t==`function`?t(e):t}function Uo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Ao,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Oo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,ko.lanes|=d,il|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,zr(i,t.memoizedState)||(Vs=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,ko.lanes|=o,il|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Wo(e){var t=Vo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);zr(o,t.memoizedState)||(Vs=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Go(){}function Ko(e,t){var n=ko,i=Vo(),a=t(),o=!zr(i.memoizedState,a);if(o&&(i.memoizedState=a,Vs=!0),i=i.queue,is(Yo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||jo!==null&&jo.memoizedState.tag&1){if(n.flags|=2048,$o(9,Jo.bind(null,n,i,a,t),void 0,null),Zc===null)throw Error(r(349));Oo&30||qo(n,t,a)}return a}function qo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Jo(e,t,n,r){t.value=n,t.getSnapshot=r,Xo(t)&&Zo(e)}function Yo(e,t,n){return n(function(){Xo(t)&&Zo(e)})}function Xo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function Zo(e){var t=io(e,1);t!==null&&wl(t,e,1,-1)}function Qo(e){var t=Bo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ho,lastRenderedState:e},t.queue=e,e=e.dispatch=gs.bind(null,ko,e),[t.memoizedState,e]}function $o(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=ko.updateQueue,t===null?(t={lastEffect:null,stores:null},ko.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function es(){return Vo().memoizedState}function ts(e,t,n,r){var i=Bo();ko.flags|=e,i.memoizedState=$o(1|t,n,void 0,r===void 0?null:r)}function ns(e,t,n,r){var i=Vo();r=r===void 0?null:r;var a=void 0;if(Ao!==null){var o=Ao.memoizedState;if(a=o.destroy,r!==null&&Lo(r,o.deps)){i.memoizedState=$o(t,n,a,r);return}}ko.flags|=e,i.memoizedState=$o(1|t,n,a,r)}function rs(e,t){return ts(8390656,8,e,t)}function is(e,t){return ns(2048,8,e,t)}function as(e,t){return ns(4,2,e,t)}function os(e,t){return ns(4,4,e,t)}function ss(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function cs(e,t,n){return n=n==null?null:n.concat([e]),ns(4,4,ss.bind(null,t,e),n)}function ls(){}function us(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ds(e,t){var n=Vo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Lo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function fs(e,t,n){return Oo&21?(zr(n,t)||(n=Gt(),ko.lanes|=n,il|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Vs=!0),e.memoizedState=n)}function ps(e,t){var n=Xt;Xt=n!==0&&4>n?n:4,e(!0);var r=Do.transition;Do.transition={};try{e(!1),t()}finally{Xt=n,Do.transition=r}}function ms(){return Vo().memoizedState}function hs(e,t,n){var r=Cl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},_s(e))vs(t,n);else if(n=ro(e,t,n,r),n!==null){var i=Sl();wl(n,e,r,i),ys(n,t,r)}}function gs(e,t,n){var r=Cl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(_s(e))vs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,zr(s,o)){var c=t.interleaved;c===null?(i.next=i,no(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=ro(e,t,i,r),n!==null&&(i=Sl(),wl(n,e,r,i),ys(n,t,r))}}function _s(e){var t=e.alternate;return e===ko||t!==null&&t===ko}function vs(e,t){No=Mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ys(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Yt(e,n)}}var bs={readContext:eo,useCallback:Io,useContext:Io,useEffect:Io,useImperativeHandle:Io,useInsertionEffect:Io,useLayoutEffect:Io,useMemo:Io,useReducer:Io,useRef:Io,useState:Io,useDebugValue:Io,useDeferredValue:Io,useTransition:Io,useMutableSource:Io,useSyncExternalStore:Io,useId:Io,unstable_isNewReconciler:!1},xs={readContext:eo,useCallback:function(e,t){return Bo().memoizedState=[e,t===void 0?null:t],e},useContext:eo,useEffect:rs,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),ts(4194308,4,ss.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ts(4194308,4,e,t)},useInsertionEffect:function(e,t){return ts(4,2,e,t)},useMemo:function(e,t){var n=Bo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Bo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=hs.bind(null,ko,e),[r.memoizedState,e]},useRef:function(e){var t=Bo();return e={current:e},t.memoizedState=e},useState:Qo,useDebugValue:ls,useDeferredValue:function(e){return Bo().memoizedState=e},useTransition:function(){var e=Qo(!1),t=e[0];return e=ps.bind(null,e[1]),Bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=ko,a=Bo();if(Pa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),Zc===null)throw Error(r(349));Oo&30||qo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,rs(Yo.bind(null,i,o,e),[e]),i.flags|=2048,$o(9,Jo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Bo(),t=Zc.identifierPrefix;if(Pa){var n=Da,r=Ea;n=(r&~(1<<32-Pt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Po++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Fo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ss={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Uo,useRef:es,useState:function(){return Uo(Ho)},useDebugValue:ls,useDeferredValue:function(e){return fs(Vo(),Ao.memoizedState,e)},useTransition:function(){return[Uo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1},Cs={readContext:eo,useCallback:us,useContext:eo,useEffect:is,useImperativeHandle:cs,useInsertionEffect:as,useLayoutEffect:os,useMemo:ds,useReducer:Wo,useRef:es,useState:function(){return Wo(Ho)},useDebugValue:ls,useDeferredValue:function(e){var t=Vo();return Ao===null?t.memoizedState=e:fs(t,Ao.memoizedState,e)},useTransition:function(){return[Wo(Ho)[0],Vo().memoizedState]},useMutableSource:Go,useSyncExternalStore:Ko,useId:ms,unstable_isNewReconciler:!1};function ws(e,t){if(e&&e.defaultProps){for(var n in t=ce({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ts(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ce({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Es={isMounted:function(e){return(e=e._reactInternals)?mt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=so(r,i);a.payload=t,n!=null&&(a.callback=n),t=H(e,a,i),t!==null&&(wl(t,e,i,r),co(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Sl(),i=Cl(e),a=so(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=H(e,a,i),t!==null&&(wl(t,e,i,r),co(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Sl(),r=Cl(e),i=so(n,r);i.tag=2,t!=null&&(i.callback=t),t=H(e,i,r),t!==null&&(wl(t,e,r,n),co(t,e,r))}};function Ds(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Br(n,r)||!Br(i,a):!0}function Os(e,t,n){var r=!1,i=ra,a=t.contextType;return typeof a==`object`&&a?a=eo(a):(i=ca(t)?oa:ia.current,r=t.contextTypes,a=(r=r!=null)?sa(e,i):ra),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Es,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Es.enqueueReplaceState(t,t.state,null)}function As(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},ao(e);var a=t.contextType;typeof a==`object`&&a?i.context=eo(a):(a=ca(t)?oa:ia.current,i.context=sa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ts(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Es.enqueueReplaceState(i,i.state,null),uo(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function js(e,t){try{var n=``,r=t;do n+=fe(r),r=r.return;while(r);var i=n}catch(e){i=`
11
+ `+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{ce=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?se(e):``}function le(e){switch(e.tag){case 5:return se(e.type);case 16:return se(`Lazy`);case 13:return se(`Suspense`);case 19:return se(`SuspenseList`);case 0:case 2:case 15:return e=P(e.type,!1),e;case 11:return e=P(e.type.render,!1),e;case 1:return e=P(e.type,!0),e;default:return``}}function ue(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case O:return`Profiler`;case D:return`StrictMode`;case M:return`Suspense`;case N:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case A:return(e.displayName||`Context`)+`.Consumer`;case k:return(e._context.displayName||`Context`)+`.Provider`;case j:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ee:return t=e.displayName||null,t===null?ue(e.type)||`Memo`:t;case te:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}function de(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return ue(t);case 8:return t===D?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function fe(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function pe(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function me(e){var t=pe(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function he(e){e._valueTracker||=me(e)}function ge(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=pe(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function _e(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function ve(e,t){var n=t.checked;return ae({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ye(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=fe(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function be(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function xe(e,t){be(e,t);var n=fe(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Ce(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Ce(e,t.type,fe(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Ce(e,t,n){(t!==`number`||_e(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var we=Array.isArray;function Te(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+fe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Ee(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return ae({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function De(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(we(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:fe(n)}}function Oe(e,t){var n=fe(t.value),r=fe(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function ke(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Ae(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function je(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Ae(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Me,Ne=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;else{for(Me||=document.createElement(`div`),Me.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Me.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ie=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Fe).forEach(function(e){Ie.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Fe[t]=Fe[e]})});function Le(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Fe.hasOwnProperty(e)&&Fe[e]?(``+t).trim():t+`px`}function Re(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=Le(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var ze=ae({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Be(e,t){if(t){if(ze[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function Ve(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var He=null;function Ue(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var We=null,Ge=null,Ke=null;function qe(e){if(e=Ji(e)){if(typeof We!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Xi(t),We(e.stateNode,e.type,t))}}function Je(e){Ge?Ke?Ke.push(e):Ke=[e]:Ge=e}function Ye(){if(Ge){var e=Ge,t=Ke;if(Ke=Ge=null,qe(e),t)for(e=0;e<t.length;e++)qe(t[e])}}function Xe(e,t){return e(t)}function Ze(){}var Qe=!1;function $e(e,t,n){if(Qe)return e(t,n);Qe=!0;try{return Xe(e,t,n)}finally{Qe=!1,(Ge!==null||Ke!==null)&&(Ze(),Ye())}}function et(e,t){var n=e.stateNode;if(n===null)return null;var i=Xi(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var tt=!1;if(c)try{var nt={};Object.defineProperty(nt,`passive`,{get:function(){tt=!0}}),window.addEventListener(`test`,nt,nt),window.removeEventListener(`test`,nt,nt)}catch{tt=!1}function rt(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var it=!1,at=null,ot=!1,st=null,ct={onError:function(e){it=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){it=!1,at=null,rt.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),it){if(it){var u=at;it=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ft(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return pt(a),e;if(o===i)return pt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,xt=n.unstable_now,St=n.unstable_getCurrentPriorityLevel,Ct=n.unstable_ImmediatePriority,wt=n.unstable_UserBlockingPriority,Tt=n.unstable_NormalPriority,Et=n.unstable_LowPriority,Dt=n.unstable_IdlePriority,Ot=null,kt=null;function At(e){if(kt&&typeof kt.onCommitFiberRoot==`function`)try{kt.onCommitFiberRoot(Ot,e,void 0,(e.current.flags&128)==128)}catch{}}var jt=Math.clz32?Math.clz32:Pt,Mt=Math.log,Nt=Math.LN2;function Pt(e){return e>>>=0,e===0?32:31-(Mt(e)/Nt|0)|0}var Ft=64,It=4194304;function Lt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Lt(a))):r=Lt(s)}else o=n&~i,o===0?a!==0&&(r=Lt(a)):r=Lt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-jt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=zt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Vt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ht(){var e=Ft;return Ft<<=1,!(Ft&4194240)&&(Ft=64),e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wt(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Gt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Kt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var qt=0;function Jt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Yt,Xt,Zt,Qt,$t,en=!1,tn=[],nn=null,rn=null,an=null,on=new Map,sn=new Map,cn=[],ln=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit`.split(` `);function un(e,t){switch(e){case`focusin`:case`focusout`:nn=null;break;case`dragenter`:case`dragleave`:rn=null;break;case`mouseover`:case`mouseout`:an=null;break;case`pointerover`:case`pointerout`:on.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:sn.delete(t.pointerId)}}function dn(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Ji(t),t!==null&&Xt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function fn(e,t,n,r,i){switch(t){case`focusin`:return nn=dn(nn,e,t,n,r,i),!0;case`dragenter`:return rn=dn(rn,e,t,n,r,i),!0;case`mouseover`:return an=dn(an,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return on.set(a,dn(on.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,sn.set(a,dn(sn.get(a)||null,e,t,n,r,i)),!0}return!1}function pn(e){var t=qi(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,$t(e.priority,function(){Zt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);He=r,n.target.dispatchEvent(r),He=null}else return t=Ji(n),t!==null&&Xt(t),e.blockedOn=n,!1;t.shift()}return!0}function hn(e,t,n){mn(e)&&n.delete(t)}function gn(){en=!1,nn!==null&&mn(nn)&&(nn=null),rn!==null&&mn(rn)&&(rn=null),an!==null&&mn(an)&&(an=null),on.forEach(hn),sn.forEach(hn)}function _n(e,t){e.blockedOn===t&&(e.blockedOn=null,en||(en=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,gn)))}function vn(e){function t(t){return _n(t,e)}if(0<tn.length){_n(tn[0],e);for(var n=1;n<tn.length;n++){var r=tn[n];r.blockedOn===e&&(r.blockedOn=null)}}for(nn!==null&&_n(nn,e),rn!==null&&_n(rn,e),an!==null&&_n(an,e),on.forEach(t),sn.forEach(t),n=0;n<cn.length;n++)r=cn[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<cn.length&&(n=cn[0],n.blockedOn===null);)pn(n),n.blockedOn===null&&cn.shift()}var yn=C.ReactCurrentBatchConfig,bn=!0;function xn(e,t,n,r){var i=qt,a=yn.transition;yn.transition=null;try{qt=1,Cn(e,t,n,r)}finally{qt=i,yn.transition=a}}function Sn(e,t,n,r){var i=qt,a=yn.transition;yn.transition=null;try{qt=4,Cn(e,t,n,r)}finally{qt=i,yn.transition=a}}function Cn(e,t,n,r){if(bn){var i=Tn(e,t,n,r);if(i===null)yi(e,t,r,wn,n),un(e,r);else if(fn(i,e,t,n,r))r.stopPropagation();else if(un(e,r),t&4&&-1<ln.indexOf(e)){for(;i!==null;){var a=Ji(i);if(a!==null&&Yt(a),a=Tn(e,t,n,r),a===null&&yi(e,t,r,wn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else yi(e,t,r,null,n)}}var wn=null;function Tn(e,t,n,r){if(wn=null,e=Ue(r),e=qi(e),e!==null)if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return wn=e,null}function En(e){switch(e){case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 1;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(St()){case Ct:return 1;case wt:return 4;case Tt:case Et:return 16;case Dt:return 536870912;default:return 16}default:return 16}}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return kn=i.slice(e,1<r?1-r:void 0)}function jn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,this}return ae(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=ae({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=ae({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(ae({},Hn,{dataTransfer:0})),Gn=Pn(ae({},Ln,{relatedTarget:0})),Kn=Pn(ae({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(ae({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(ae({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(ae({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(ae({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(ae({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),rr=Pn(ae({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ir=Pn(ae({},Hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),ar=[9,13,27,32],or=c&&`CompositionEvent`in window,sr=null;c&&`documentMode`in document&&(sr=document.documentMode);var cr=c&&`TextEvent`in window&&!sr,lr=c&&(!or||sr&&8<sr&&11>=sr),ur=` `,dr=!1;function fr(e,t){switch(e){case`keyup`:return ar.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function pr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var mr=!1;function hr(e,t){switch(e){case`compositionend`:return pr(t);case`keypress`:return t.which===32?(dr=!0,ur):null;case`textInput`:return e=t.data,e===ur&&dr?null:e;default:return null}}function gr(e,t){if(mr)return e===`compositionend`||!or&&fr(e,t)?(e=An(),kn=On=Dn=null,mr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return lr&&t.locale!==`ko`?null:t.data;default:return null}}var _r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function vr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!_r[e.type]:t===`textarea`}function yr(e,t,n,r){Je(r),t=xi(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var br=null,xr=null;function Sr(e){pi(e,0)}function Cr(e){if(ge(Yi(e)))return e}function wr(e,t){if(e===`change`)return t}var Tr=!1;if(c){var Er;if(c){var Dr=`oninput`in document;if(!Dr){var Or=document.createElement(`div`);Or.setAttribute(`oninput`,`return;`),Dr=typeof Or.oninput==`function`}Er=Dr}else Er=!1;Tr=Er&&(!document.documentMode||9<document.documentMode)}function kr(){br&&(br.detachEvent(`onpropertychange`,Ar),xr=br=null)}function Ar(e){if(e.propertyName===`value`&&Cr(xr)){var t=[];yr(t,xr,e,Ue(e)),$e(Sr,t)}}function jr(e,t,n){e===`focusin`?(kr(),br=t,xr=n,br.attachEvent(`onpropertychange`,Ar)):e===`focusout`&&kr()}function Mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Cr(xr)}function Nr(e,t){if(e===`click`)return Cr(t)}function Pr(e,t){if(e===`input`||e===`change`)return Cr(t)}function Fr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Ir=typeof Object.is==`function`?Object.is:Fr;function Lr(e,t){if(Ir(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Ir(e[i],t[i]))return!1}return!0}function Rr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zr(e,t){var n=Rr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Rr(n)}}function Br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Vr(){for(var e=window,t=_e();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=_e(e.document)}return t}function Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Ur(e){var t=Vr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Br(n.ownerDocument.documentElement,n)){if(r!==null&&Hr(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=zr(n,a);var o=zr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Wr=c&&`documentMode`in document&&11>=document.documentMode,Gr=null,Kr=null,qr=null,Jr=!1;function Yr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Jr||Gr==null||Gr!==_e(r)||(r=Gr,`selectionStart`in r&&Hr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&Lr(qr,r)||(qr=r,r=xi(Kr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Gr)))}function Xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Zr={animationend:Xr(`Animation`,`AnimationEnd`),animationiteration:Xr(`Animation`,`AnimationIteration`),animationstart:Xr(`Animation`,`AnimationStart`),transitionend:Xr(`Transition`,`TransitionEnd`)},Qr={},$r={};c&&($r=document.createElement(`div`).style,`AnimationEvent`in window||(delete Zr.animationend.animation,delete Zr.animationiteration.animation,delete Zr.animationstart.animation),`TransitionEvent`in window||delete Zr.transitionend.transition);function ei(e){if(Qr[e])return Qr[e];if(!Zr[e])return e;var t=Zr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $r)return Qr[e]=t[n];return e}var ti=ei(`animationend`),ni=ei(`animationiteration`),ri=ei(`animationstart`),ii=ei(`transitionend`),ai=new Map,oi=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function si(e,t){ai.set(e,t),o(t,[e])}for(var ci=0;ci<oi.length;ci++){var li=oi[ci];si(li.toLowerCase(),`on`+(li[0].toUpperCase()+li.slice(1)))}si(ti,`onAnimationEnd`),si(ni,`onAnimationIteration`),si(ri,`onAnimationStart`),si(`dblclick`,`onDoubleClick`),si(`focusin`,`onFocus`),si(`focusout`,`onBlur`),si(ii,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var ui=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),di=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(ui));function fi(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function pi(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;fi(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;fi(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function mi(e,t){var n=t[Wi];n===void 0&&(n=t[Wi]=new Set);var r=e+`__bubble`;n.has(r)||(vi(t,e,2,!1),n.add(r))}function hi(e,t,n){var r=0;t&&(r|=4),vi(n,e,r,t)}var gi=`_reactListening`+Math.random().toString(36).slice(2);function _i(e){if(!e[gi]){e[gi]=!0,i.forEach(function(t){t!==`selectionchange`&&(di.has(t)||hi(t,!1,e),hi(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gi]||(t[gi]=!0,hi(`selectionchange`,!1,t))}}function vi(e,t,n,r){switch(En(t)){case 1:var i=xn;break;case 4:i=Sn;break;default:i=Cn}n=i.bind(null,t,n,e),i=void 0,!tt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function yi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=qi(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}$e(function(){var r=a,i=Ue(n),o=[];a:{var s=ai.get(e);if(s!==void 0){var c=In,l=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:c=er;break;case`focusin`:l=`focus`,c=Gn;break;case`focusout`:l=`blur`,c=Gn;break;case`beforeblur`:case`afterblur`:c=Gn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=nr;break;case ti:case ni:case ri:c=Kn;break;case ii:c=rr;break;case`scroll`:c=Rn;break;case`wheel`:c=ir;break;case`copy`:case`cut`:case`paste`:c=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=tr}var u=(t&4)!=0,d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=et(p,f),h!=null&&u.push(bi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==He&&(l=n.relatedTarget||n.fromElement)&&(qi(l)||l[Ui]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?qi(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Un,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=tr,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Yi(c),m=l==null?s:Yi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,qi(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=Si(m))p++;for(m=0,h=f;h;h=Si(h))m++;for(;0<p-m;)u=Si(u),p--;for(;0<m-p;)f=Si(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=Si(u),f=Si(f)}u=null}else u=null;c!==null&&Ci(o,s,c,u,!1),l!==null&&d!==null&&Ci(o,d,l,u,!0)}}a:{if(s=r?Yi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=wr;else if(vr(s))if(Tr)g=Pr;else{g=Mr;var _=jr}else (c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=Nr);if(g&&=g(e,r)){yr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Ce(s,`number`,s.value)}switch(_=r?Yi(r):window,e){case`focusin`:(vr(_)||_.contentEditable===`true`)&&(Gr=_,Kr=r,qr=null);break;case`focusout`:qr=Kr=Gr=null;break;case`mousedown`:Jr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Jr=!1,Yr(o,n,i);break;case`selectionchange`:if(Wr)break;case`keydown`:case`keyup`:Yr(o,n,i)}var v;if(or)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else mr?fr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(lr&&n.locale!==`ko`&&(mr||y!==`onCompositionStart`?y===`onCompositionEnd`&&mr&&(v=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,mr=!0)),_=xi(r,y),0<_.length&&(y=new Jn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=pr(n),v!==null&&(y.data=v)))),(v=cr?hr(e,n):gr(e,n))&&(r=xi(r,`onBeforeInput`),0<r.length&&(i=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}pi(o,t)})}function bi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function xi(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=et(e,n),a!=null&&r.unshift(bi(e,a,i)),a=et(e,t),a!=null&&r.push(bi(e,a,i))),e=e.return}return r}function Si(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ci(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=et(n,a),c!=null&&o.unshift(bi(n,c,s))):i||(c=et(n,a),c!=null&&o.push(bi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var wi=/\r\n?/g,Ti=/\u0000|\uFFFD/g;function Ei(e){return(typeof e==`string`?e:``+e).replace(wi,`
12
+ `).replace(Ti,``)}function Di(e,t,n){if(t=Ei(t),Ei(e)!==t&&n)throw Error(r(425))}function Oi(){}var ki=null,Ai=null;function ji(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Mi=typeof setTimeout==`function`?setTimeout:void 0,Ni=typeof clearTimeout==`function`?clearTimeout:void 0,Pi=typeof Promise==`function`?Promise:void 0,Fi=typeof queueMicrotask==`function`?queueMicrotask:Pi===void 0?Mi:function(e){return Pi.resolve(null).then(e).catch(Ii)};function Ii(e){setTimeout(function(){throw e})}function Li(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),vn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++;n=i}while(n);vn(t)}function Ri(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function zi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Bi=Math.random().toString(36).slice(2),Vi=`__reactFiber$`+Bi,Hi=`__reactProps$`+Bi,Ui=`__reactContainer$`+Bi,Wi=`__reactEvents$`+Bi,Gi=`__reactListeners$`+Bi,Ki=`__reactHandles$`+Bi;function qi(e){var t=e[Vi];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ui]||n[Vi]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zi(e);e!==null;){if(n=e[Vi])return n;e=zi(e)}return t}e=n,n=e.parentNode}return null}function Ji(e){return e=e[Vi]||e[Ui],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Yi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Xi(e){return e[Hi]||null}var Zi=[],Qi=-1;function $i(e){return{current:e}}function ea(e){0>Qi||(e.current=Zi[Qi],Zi[Qi]=null,Qi--)}function ta(e,t){Qi++,Zi[Qi]=e.current,e.current=t}var na={},ra=$i(na),ia=$i(!1),aa=na;function oa(e,t){var n=e.type.contextTypes;if(!n)return na;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function sa(e){return e=e.childContextTypes,e!=null}function ca(){ea(ia),ea(ra)}function la(e,t,n){if(ra.current!==na)throw Error(r(168));ta(ra,t),ta(ia,n)}function ua(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,de(e)||`Unknown`,a));return ae({},n,i)}function da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||na,aa=ra.current,ta(ra,e),ta(ia,ia.current),!0}function fa(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=ua(e,t,aa),i.__reactInternalMemoizedMergedChildContext=e,ea(ia),ea(ra),ta(ra,e)):ea(ia),ta(ia,n)}var pa=null,ma=!1,ha=!1;function ga(e){pa===null?pa=[e]:pa.push(e)}function _a(e){ma=!0,ga(e)}function va(){if(!ha&&pa!==null){ha=!0;var e=0,t=qt;try{var n=pa;for(qt=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}pa=null,ma=!1}catch(t){throw pa!==null&&(pa=pa.slice(e+1)),_t(Ct,va),t}finally{qt=t,ha=!1}}return null}var F=[],ya=0,ba=null,xa=0,Sa=[],Ca=0,wa=null,Ta=1,Ea=``;function Da(e,t){F[ya++]=xa,F[ya++]=ba,ba=e,xa=t}function Oa(e,t,n){Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,wa=e;var r=Ta;e=Ea;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var a=32-jt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ta=1<<32-jt(t)+i|n<<i|r,Ea=a+e}else Ta=1<<a|n<<i|r,Ea=e}function ka(e){e.return!==null&&(Da(e,1),Oa(e,1,0))}function Aa(e){for(;e===ba;)ba=F[--ya],F[ya]=null,xa=F[--ya],F[ya]=null;for(;e===wa;)wa=Sa[--Ca],Sa[Ca]=null,Ea=Sa[--Ca],Sa[Ca]=null,Ta=Sa[--Ca],Sa[Ca]=null}var ja=null,Ma=null,Na=!1,Pa=null;function Fa(e,t){var n=ru(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Ia(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t===null?!1:(e.stateNode=t,ja=e,Ma=Ri(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t===null?!1:(e.stateNode=t,ja=e,Ma=null,!0);case 13:return t=t.nodeType===8?t:null,t===null?!1:(n=wa===null?null:{id:Ta,overflow:Ea},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=ru(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,ja=e,Ma=null,!0);default:return!1}}function La(e){return(e.mode&1)!=0&&(e.flags&128)==0}function Ra(e){if(Na){var t=Ma;if(t){var n=t;if(!Ia(e,t)){if(La(e))throw Error(r(418));t=Ri(n.nextSibling);var i=ja;t&&Ia(e,t)?Fa(i,n):(e.flags=e.flags&-4097|2,Na=!1,ja=e)}}else{if(La(e))throw Error(r(418));e.flags=e.flags&-4097|2,Na=!1,ja=e}}}function za(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ja=e}function I(e){if(e!==ja)return!1;if(!Na)return za(e),Na=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!ji(e.type,e.memoizedProps)),t&&=Ma){if(La(e))throw Ba(),Error(r(418));for(;t;)Fa(e,t),t=Ri(t.nextSibling)}if(za(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){Ma=Ri(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}Ma=null}}else Ma=ja?Ri(e.stateNode.nextSibling):null;return!0}function Ba(){for(var e=Ma;e;)e=Ri(e.nextSibling)}function Va(){Ma=ja=null,Na=!1}function Ha(e){Pa===null?Pa=[e]:Pa.push(e)}var Ua=C.ReactCurrentBatchConfig;function Wa(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ga(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Ka(e){var t=e._init;return t(e._payload)}function qa(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=ou(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=uu(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===te&&Ka(i)===t.type)?(r=a(t,n.props),r.ref=Wa(e,t,n),r.return=e,r):(r=su(n.type,n.key,n.props,null,e.mode,r),r.ref=Wa(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=du(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=cu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=uu(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=su(t.type,t.key,t.props,null,e.mode,n),n.ref=Wa(e,null,t),n.return=e,n;case T:return t=du(t,e.mode,n),t.return=e,t;case te:var r=t._init;return f(e,r(t._payload),n)}if(we(t)||ie(t))return t=cu(t,e.mode,n,null),t.return=e,t;Ga(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case te:return i=n._init,p(e,t,i(n._payload),r)}if(we(n)||ie(n))return i===null?d(e,t,n,r,null):null;Ga(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case te:var a=r._init;return m(e,t,n,a(r._payload),i)}if(we(r)||ie(r))return e=e.get(n)||null,d(t,e,r,i,null);Ga(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Na&&Da(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Na&&Da(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Na&&Da(r,h),l}function g(a,s,c,l){var u=ie(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Na&&Da(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Na&&Da(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Na&&Da(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===te&&Ka(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Wa(e,l,i),r.return=e,e=r;break a}n(e,l);break}else t(e,l);l=l.sibling}i.type===E?(r=cu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=su(i.type,i.key,i.props,null,e.mode,o),o.ref=Wa(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}else{n(e,r);break}else t(e,r);r=r.sibling}r=du(i,e.mode,o),r.return=e,e=r}return s(e);case te:return l=i._init,_(e,r,l(i._payload),o)}if(we(i))return h(e,r,i,o);if(ie(i))return g(e,r,i,o);Ga(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=uu(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ja=qa(!0),Ya=qa(!1),Xa=$i(null),Za=null,Qa=null,L=null;function $a(){L=Qa=Za=null}function R(e){var t=Xa.current;ea(Xa),e._currentValue=t}function eo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function to(e,t){Za=e,L=Qa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Us=!0),e.firstContext=null)}function z(e){var t=e._currentValue;if(L!==e)if(e={context:e,memoizedValue:t,next:null},Qa===null){if(Za===null)throw Error(r(308));Qa=e,Za.dependencies={lanes:0,firstContext:e}}else Qa=Qa.next=e;return t}var no=null;function ro(e){no===null?no=[e]:no.push(e)}function io(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,ro(t)):(n.next=i.next,i.next=n),t.interleaved=n,ao(e,r)}function ao(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var oo=!1;function so(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function co(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function uo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Qc&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,ao(e,n)}return i=r.interleaved,i===null?(t.next=t,ro(r)):(t.next=i.next,i.next=t),r.interleaved=t,ao(e,n)}function B(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kt(e,n)}}function fo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function po(e,t,n,r){var i=e.updateQueue;oo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=ae({},d,f);break a;case 2:oo=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);ol|=o,e.lanes=o,e.memoizedState=d}}function mo(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var ho={},go=$i(ho),_o=$i(ho),vo=$i(ho);function yo(e){if(e===ho)throw Error(r(174));return e}function bo(e,t){switch(ta(vo,t),ta(_o,e),ta(go,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:je(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=je(t,e)}ea(go),ta(go,t)}function xo(){ea(go),ea(_o),ea(vo)}function So(e){yo(vo.current);var t=yo(go.current),n=je(t,e.type);t!==n&&(ta(_o,e),ta(go,n))}function Co(e){_o.current===e&&(ea(go),ea(_o))}var wo=$i(0);function To(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Eo=[];function Do(){for(var e=0;e<Eo.length;e++)Eo[e]._workInProgressVersionPrimary=null;Eo.length=0}var Oo=C.ReactCurrentDispatcher,ko=C.ReactCurrentBatchConfig,Ao=0,jo=null,Mo=null,No=null,Po=!1,Fo=!1,Io=0,Lo=0;function Ro(){throw Error(r(321))}function zo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ir(e[n],t[n]))return!1;return!0}function Bo(e,t,n,i,a,o){if(Ao=o,jo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oo.current=e===null||e.memoizedState===null?Cs:ws,e=n(i,a),Fo){o=0;do{if(Fo=!1,Io=0,25<=o)throw Error(r(301));o+=1,No=Mo=null,t.updateQueue=null,Oo.current=Ts,e=n(i,a)}while(Fo)}if(Oo.current=Ss,t=Mo!==null&&Mo.next!==null,Ao=0,No=Mo=jo=null,Po=!1,t)throw Error(r(300));return e}function Vo(){var e=Io!==0;return Io=0,e}function Ho(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return No===null?jo.memoizedState=No=e:No=No.next=e,No}function Uo(){if(Mo===null){var e=jo.alternate;e=e===null?null:e.memoizedState}else e=Mo.next;var t=No===null?jo.memoizedState:No.next;if(t!==null)No=t,Mo=e;else{if(e===null)throw Error(r(310));Mo=e,e={memoizedState:Mo.memoizedState,baseState:Mo.baseState,baseQueue:Mo.baseQueue,queue:Mo.queue,next:null},No===null?jo.memoizedState=No=e:No=No.next=e}return No}function Wo(e,t){return typeof t==`function`?t(e):t}function Go(e){var t=Uo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Mo,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Ao&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,jo.lanes|=d,ol|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Ir(i,t.memoizedState)||(Us=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,jo.lanes|=o,ol|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Ko(e){var t=Uo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Ir(o,t.memoizedState)||(Us=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function qo(){}function Jo(e,t){var n=jo,i=Uo(),a=t(),o=!Ir(i.memoizedState,a);if(o&&(i.memoizedState=a,Us=!0),i=i.queue,os(Zo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||No!==null&&No.memoizedState.tag&1){if(n.flags|=2048,ts(9,Xo.bind(null,n,i,a,t),void 0,null),$c===null)throw Error(r(349));Ao&30||Yo(n,t,a)}return a}function Yo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Xo(e,t,n,r){t.value=n,t.getSnapshot=r,Qo(t)&&$o(e)}function Zo(e,t,n){return n(function(){Qo(t)&&$o(e)})}function Qo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ir(e,n)}catch{return!0}}function $o(e){var t=ao(e,1);t!==null&&El(t,e,1,-1)}function es(e){var t=Ho();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Wo,lastRenderedState:e},t.queue=e,e=e.dispatch=vs.bind(null,jo,e),[t.memoizedState,e]}function ts(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=jo.updateQueue,t===null?(t={lastEffect:null,stores:null},jo.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ns(){return Uo().memoizedState}function rs(e,t,n,r){var i=Ho();jo.flags|=e,i.memoizedState=ts(1|t,n,void 0,r===void 0?null:r)}function is(e,t,n,r){var i=Uo();r=r===void 0?null:r;var a=void 0;if(Mo!==null){var o=Mo.memoizedState;if(a=o.destroy,r!==null&&zo(r,o.deps)){i.memoizedState=ts(t,n,a,r);return}}jo.flags|=e,i.memoizedState=ts(1|t,n,a,r)}function as(e,t){return rs(8390656,8,e,t)}function os(e,t){return is(2048,8,e,t)}function ss(e,t){return is(4,2,e,t)}function cs(e,t){return is(4,4,e,t)}function ls(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function us(e,t,n){return n=n==null?null:n.concat([e]),is(4,4,ls.bind(null,t,e),n)}function ds(){}function fs(e,t){var n=Uo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ps(e,t){var n=Uo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&zo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function ms(e,t,n){return Ao&21?(Ir(n,t)||(n=Ht(),jo.lanes|=n,ol|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Us=!0),e.memoizedState=n)}function hs(e,t){var n=qt;qt=n!==0&&4>n?n:4,e(!0);var r=ko.transition;ko.transition={};try{e(!1),t()}finally{qt=n,ko.transition=r}}function gs(){return Uo().memoizedState}function _s(e,t,n){var r=Tl(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ys(e))bs(t,n);else if(n=io(e,t,n,r),n!==null){var i=wl();El(n,e,r,i),xs(n,t,r)}}function vs(e,t,n){var r=Tl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ys(e))bs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Ir(s,o)){var c=t.interleaved;c===null?(i.next=i,ro(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=io(e,t,i,r),n!==null&&(i=wl(),El(n,e,r,i),xs(n,t,r))}}function ys(e){var t=e.alternate;return e===jo||t!==null&&t===jo}function bs(e,t){Fo=Po=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function xs(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Kt(e,n)}}var Ss={readContext:z,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useInsertionEffect:Ro,useLayoutEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useMutableSource:Ro,useSyncExternalStore:Ro,useId:Ro,unstable_isNewReconciler:!1},Cs={readContext:z,useCallback:function(e,t){return Ho().memoizedState=[e,t===void 0?null:t],e},useContext:z,useEffect:as,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),rs(4194308,4,ls.bind(null,t,e),n)},useLayoutEffect:function(e,t){return rs(4194308,4,e,t)},useInsertionEffect:function(e,t){return rs(4,2,e,t)},useMemo:function(e,t){var n=Ho();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ho();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=_s.bind(null,jo,e),[r.memoizedState,e]},useRef:function(e){var t=Ho();return e={current:e},t.memoizedState=e},useState:es,useDebugValue:ds,useDeferredValue:function(e){return Ho().memoizedState=e},useTransition:function(){var e=es(!1),t=e[0];return e=hs.bind(null,e[1]),Ho().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=jo,a=Ho();if(Na){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),$c===null)throw Error(r(349));Ao&30||Yo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,as(Zo.bind(null,i,o,e),[e]),i.flags|=2048,ts(9,Xo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Ho(),t=$c.identifierPrefix;if(Na){var n=Ea,r=Ta;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Io++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=Lo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},ws={readContext:z,useCallback:fs,useContext:z,useEffect:os,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Go,useRef:ns,useState:function(){return Go(Wo)},useDebugValue:ds,useDeferredValue:function(e){return ms(Uo(),Mo.memoizedState,e)},useTransition:function(){return[Go(Wo)[0],Uo().memoizedState]},useMutableSource:qo,useSyncExternalStore:Jo,useId:gs,unstable_isNewReconciler:!1},Ts={readContext:z,useCallback:fs,useContext:z,useEffect:os,useImperativeHandle:us,useInsertionEffect:ss,useLayoutEffect:cs,useMemo:ps,useReducer:Ko,useRef:ns,useState:function(){return Ko(Wo)},useDebugValue:ds,useDeferredValue:function(e){var t=Uo();return Mo===null?t.memoizedState=e:ms(t,Mo.memoizedState,e)},useTransition:function(){return[Ko(Wo)[0],Uo().memoizedState]},useMutableSource:qo,useSyncExternalStore:Jo,useId:gs,unstable_isNewReconciler:!1};function Es(e,t){if(e&&e.defaultProps){for(var n in t=ae({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Ds(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ae({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Os={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=wl(),i=Tl(e),a=lo(r,i);a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,i),t!==null&&(El(t,e,i,r),B(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=wl(),i=Tl(e),a=lo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=uo(e,a,i),t!==null&&(El(t,e,i,r),B(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wl(),r=Tl(e),i=lo(n,r);i.tag=2,t!=null&&(i.callback=t),t=uo(e,i,r),t!==null&&(El(t,e,r,n),B(t,e,r))}};function ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Lr(n,r)||!Lr(i,a):!0}function As(e,t,n){var r=!1,i=na,a=t.contextType;return typeof a==`object`&&a?a=z(a):(i=sa(t)?aa:ra.current,r=t.contextTypes,a=(r=r!=null)?oa(e,i):na),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Os,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function js(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Os.enqueueReplaceState(t,t.state,null)}function Ms(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},so(e);var a=t.contextType;typeof a==`object`&&a?i.context=z(a):(a=sa(t)?aa:ra.current,i.context=oa(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Ds(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&Os.enqueueReplaceState(i,i.state,null),po(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ns(e,t){try{var n=``,r=t;do n+=le(r),r=r.return;while(r);var i=n}catch(e){i=`
13
13
  Error generating stack: `+e.message+`
14
- `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ms(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Ns(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ps=typeof WeakMap==`function`?WeakMap:Map;function Fs(e,t,n){n=so(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){fl||(fl=!0,pl=r),Ns(e,t)},n}function Is(e,t,n){n=so(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Ns(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Ns(e,t),typeof r!=`function`&&(ml===null?ml=new Set([this]):ml.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Ls(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ps;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Jl.bind(null,e,t,n),t.then(e,e))}function Rs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function zs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=so(-1,1),t.tag=2,H(n,t,1))),n.lanes|=1),e)}var Bs=C.ReactCurrentOwner,Vs=!1;function Hs(e,t,n,r){t.child=e===null?Ja(t,null,n,r):L(t,e.child,n,r)}function Us(e,t,n,r,i){n=n.render;var a=t.ref;return B(t,i),r=Ro(e,t,n,r,a,i),n=zo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Pa&&n&&Aa(t),t.flags|=1,Hs(e,t,r,i),t.child)}function Ws(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!nu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Gs(e,t,a,r,i)):(e=au(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return lc(e,t,i)}return t.flags|=1,e=iu(a,r),e.ref=t.ref,e.return=t,t.child=e}function Gs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref)if(Vs=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Vs=!0);else return t.lanes=e.lanes,lc(e,t,i)}return Js(e,t,n,r,i)}function Ks(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},na(tl,el),el|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,na(tl,el),el|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,na(tl,el),el|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),na(tl,el),el|=r;return Hs(e,t,i,n),t.child}function qs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Js(e,t,n,r,i){var a=ca(n)?oa:ia.current;return a=sa(t,a),B(t,i),n=Ro(e,t,n,r,a,i),r=zo(),e!==null&&!Vs?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,lc(e,t,i)):(Pa&&r&&Aa(t),t.flags|=1,Hs(e,t,n,i),t.child)}function Ys(e,t,n,r,i){if(ca(n)){var a=!0;fa(t)}else a=!1;if(B(t,i),t.stateNode===null)cc(e,t),Os(t,n,r),As(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=eo(l):(l=ca(n)?oa:ia.current,l=sa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&ks(t,o,r,l),V=!1;var f=t.memoizedState;o.state=f,uo(t,r,o,i),c=t.memoizedState,s!==r||f!==c||aa.current||V?(typeof u==`function`&&(Ts(t,n,u,r),c=t.memoizedState),(s=V||Ds(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,oo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:ws(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=eo(c):(c=ca(n)?oa:ia.current,c=sa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&ks(t,o,r,c),V=!1,f=t.memoizedState,o.state=f,uo(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||aa.current||V?(typeof p==`function`&&(Ts(t,n,p,r),m=t.memoizedState),(l=V||Ds(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Xs(e,t,n,r,a,i)}function Xs(e,t,n,r,i,a){qs(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&pa(t,n,!1),lc(e,t,a);r=t.stateNode,Bs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=L(t,e.child,null,a),t.child=L(t,null,s,a)):Hs(e,t,s,a),t.memoizedState=r.state,i&&pa(t,n,!0),t.child}function Zs(e){var t=e.stateNode;t.pendingContext?ua(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ua(e,t.context,!1),vo(e,t.containerInfo)}function Qs(e,t,n,r,i){return Ha(),I(i),t.flags|=256,Hs(e,t,n,r),t.child}var $s={dehydrated:null,treeContext:null,retryLane:0};function ec(e){return{baseLanes:e,cachePool:null,transitions:null}}function tc(e,t,n){var r=t.pendingProps,i=So.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),na(So,i&1),e===null)return za(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=su(o,r,0,null),e=ou(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=ec(n),t.memoizedState=$s,e):nc(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return ic(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=iu(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=ou(a,o,n,null),a.flags|=2):a=iu(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?ec(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=$s,r}return a=e.child,e=a.sibling,r=iu(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function nc(e,t){return t=su({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function rc(e,t,n,r){return r!==null&&I(r),L(t,e.child,null,n),e=nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ic(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ms(Error(r(422))),rc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=su({mode:`visible`,children:i.children},a,0,null),o=ou(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&L(t,e.child,null,s),t.child.memoizedState=ec(s),t.memoizedState=$s,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return rc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ms(o,i,void 0),rc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Vs||c){if(i=Zc,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,io(e,a),wl(i,e,a,-1))}return Rl(),i=Ms(Error(r(421))),rc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Xl.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Na=Bi(a.nextSibling),Ma=t,Pa=!0,Fa=null,e!==null&&(Ca[wa++]=Ea,Ca[wa++]=Da,Ca[wa++]=Ta,Ea=e.id,Da=e.overflow,Ta=t),t=nc(t,i.children),t.flags|=4096,t)}function ac(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$a(e.return,t,n)}function oc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function sc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Hs(e,t,r.children,n),r=So.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ac(e,n,t);else if(e.tag===19)ac(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(na(So,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Co(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),oc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Co(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}oc(t,!0,n,null,a);break;case`together`:oc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function cc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function lc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),il|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=iu(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=iu(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function uc(e,t,n){switch(t.tag){case 3:Zs(t),Ha();break;case 5:bo(t);break;case 1:ca(t.type)&&fa(t);break;case 4:vo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;na(Ya,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(na(So,So.current&1),e=lc(e,t,n),e===null?null:e.sibling):tc(e,t,n):(na(So,So.current&1),t.flags|=128,null);na(So,So.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return sc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),na(So,So.current),r)break;return null;case 22:case 23:return t.lanes=0,Ks(e,t,n)}return lc(e,t,n)}var dc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},fc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,_o(mo.current);var o=null;switch(n){case`input`:i=xe(e,i),r=xe(e,r),o=[];break;case`select`:i=ce({},i,{value:void 0}),r=ce({},r,{value:void 0}),o=[];break;case`textarea`:i=ke(e,i),r=ke(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Ai)}Ue(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&M(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},pc=function(e,t,n,r){n!==r&&(t.flags|=4)};function mc(e,t){if(!Pa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function hc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gc(e,t,n){var i=t.pendingProps;switch(ja(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return hc(t),null;case 1:return ca(t.type)&&la(),hc(t),null;case 3:return i=t.stateNode,yo(),ta(aa),ta(ia),To(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ba(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Fa!==null&&(Ol(Fa),Fa=null))),hc(t),null;case 5:xo(t);var o=_o(go.current);if(n=t.type,e!==null&&t.stateNode!=null)fc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return hc(t),null}if(e=_o(mo.current),Ba(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[N]=t,i[Ui]=s,e=(t.mode&1)!=0,n){case`dialog`:M(`cancel`,i),M(`close`,i);break;case`iframe`:case`object`:case`embed`:M(`load`,i);break;case`video`:case`audio`:for(o=0;o<pi.length;o++)M(pi[o],i);break;case`source`:M(`error`,i);break;case`img`:case`image`:case`link`:M(`error`,i),M(`load`,i);break;case`details`:M(`toggle`,i);break;case`input`:Se(i,s),M(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},M(`invalid`,i);break;case`textarea`:Ae(i,s),M(`invalid`,i)}for(var c in Ue(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&ki(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&ki(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&M(`scroll`,i)}switch(n){case`input`:ve(i),Te(i,s,!0);break;case`textarea`:ve(i),Me(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Ai)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ne(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[N]=t,e[Ui]=i,dc(e,t,!1,!1),t.stateNode=e;a:{switch(c=We(n,i),n){case`dialog`:M(`cancel`,e),M(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:M(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<pi.length;o++)M(pi[o],e);o=i;break;case`source`:M(`error`,e),o=i;break;case`img`:case`image`:case`link`:M(`error`,e),M(`load`,e),o=i;break;case`details`:M(`toggle`,e),o=i;break;case`input`:Se(e,i),o=xe(e,i),M(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=ce({},i,{value:void 0}),M(`invalid`,e);break;case`textarea`:Ae(e,i),o=ke(e,i),M(`invalid`,e);break;default:o=i}for(s in Ue(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Ve(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ie(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Le(e,u):typeof u==`number`&&Le(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&M(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:ve(e),Te(e,i,!1);break;case`textarea`:ve(e),Me(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+he(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Oe(e,!!i.multiple,i.defaultValue,!0):Oe(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Ai)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return hc(t),null;case 6:if(e&&t.stateNode!=null)pc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=_o(go.current),_o(mo.current),Ba(t)){if(i=t.stateNode,n=t.memoizedProps,i[N]=t,(s=i.nodeValue!==n)&&(e=Ma,e!==null))switch(e.tag){case 3:ki(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&ki(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[N]=t,t.stateNode=i}return hc(t),null;case 13:if(ta(So),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Pa&&Na!==null&&t.mode&1&&!(t.flags&128))Va(),Ha(),t.flags|=98560,s=!1;else if(s=Ba(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[N]=t}else Ha(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;hc(t),s=!1}else Fa!==null&&(Ol(Fa),Fa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||So.current&1?nl===0&&(nl=3):Rl())),t.updateQueue!==null&&(t.flags|=4),hc(t),null);case 4:return yo(),e===null&&yi(t.stateNode.containerInfo),hc(t),null;case 10:return Qa(t.type._context),hc(t),null;case 17:return ca(t.type)&&la(),hc(t),null;case 19:if(ta(So),s=t.memoizedState,s===null)return hc(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)mc(s,!1);else{if(nl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Co(e),c!==null){for(t.flags|=128,mc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return na(So,So.current&1|2),t.child}e=e.sibling}s.tail!==null&&wt()>ul&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304)}else{if(!i)if(e=Co(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),mc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Pa)return hc(t),null}else 2*wt()-s.renderingStartTime>ul&&n!==1073741824&&(t.flags|=128,i=!0,mc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(hc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=wt(),t.sibling=null,n=So.current,na(So,i?n&1|2:n&1),t);case 22:case 23:return Pl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?el&1073741824&&(hc(t),t.subtreeFlags&6&&(t.flags|=8192)):hc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function _c(e,t){switch(ja(t),t.tag){case 1:return ca(t.type)&&la(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return yo(),ta(aa),ta(ia),To(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return xo(t),null;case 13:if(ta(So),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Ha()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ta(So),null;case 4:return yo(),null;case 10:return Qa(t.type._context),null;case 22:case 23:return Pl(),null;case 24:return null;default:return null}}var vc=!1,yc=!1,bc=typeof WeakSet==`function`?WeakSet:Set,U=null;function xc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){ql(e,t,n)}else n.current=null}function Sc(e,t,n){try{n()}catch(n){ql(e,t,n)}}var Cc=!1;function wc(e,t){if(ji=Cn,e=Wr(),Gr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Mi={focusedElem:e,selectionRange:n},Cn=!1,U=t;U!==null;)if(t=U,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,U=e;else for(;U!==null;){t=U;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:ws(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){ql(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,U=e;break}U=t.return}return h=Cc,Cc=!1,h}function Tc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Sc(t,n,a)}i=i.next}while(i!==r)}}function Ec(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Dc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Oc(e){var t=e.alternate;t!==null&&(e.alternate=null,Oc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[N],delete t[Ui],delete t[Gi],delete t[Ki],delete t[qi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function kc(e){return e.tag===5||e.tag===3||e.tag===4}function Ac(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||kc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ai));else if(r!==4&&(e=e.child,e!==null))for(jc(e,t,n),e=e.sibling;e!==null;)jc(e,t,n),e=e.sibling}function Mc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Mc(e,t,n),e=e.sibling;e!==null;)Mc(e,t,n),e=e.sibling}var Nc=null,Pc=!1;function Fc(e,t,n){for(n=n.child;n!==null;)Ic(e,t,n),n=n.sibling}function Ic(e,t,n){if(Mt&&typeof Mt.onCommitFiberUnmount==`function`)try{Mt.onCommitFiberUnmount(jt,n)}catch{}switch(n.tag){case 5:yc||xc(n,t);case 6:var r=Nc,i=Pc;Nc=null,Fc(e,t,n),Nc=r,Pc=i,Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Nc.removeChild(n.stateNode));break;case 18:Nc!==null&&(Pc?(e=Nc,n=n.stateNode,e.nodeType===8?zi(e.parentNode,n):e.nodeType===1&&zi(e,n),xn(e)):zi(Nc,n.stateNode));break;case 4:r=Nc,i=Pc,Nc=n.stateNode.containerInfo,Pc=!0,Fc(e,t,n),Nc=r,Pc=i;break;case 0:case 11:case 14:case 15:if(!yc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Sc(n,t,o),i=i.next}while(i!==r)}Fc(e,t,n);break;case 1:if(!yc&&(xc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){ql(n,t,e)}Fc(e,t,n);break;case 21:Fc(e,t,n);break;case 22:n.mode&1?(yc=(r=yc)||n.memoizedState!==null,Fc(e,t,n),yc=r):Fc(e,t,n);break;default:Fc(e,t,n)}}function Lc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new bc),t.forEach(function(t){var r=Zl.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Rc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Nc=c.stateNode,Pc=!1;break a;case 3:Nc=c.stateNode.containerInfo,Pc=!0;break a;case 4:Nc=c.stateNode.containerInfo,Pc=!0;break a}c=c.return}if(Nc===null)throw Error(r(160));Ic(o,s,a),Nc=null,Pc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){ql(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)zc(t,e),t=t.sibling}function zc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Rc(t,e),Bc(e),i&4){try{Tc(3,e,e.return),Ec(3,e)}catch(t){ql(e,e.return,t)}try{Tc(5,e,e.return)}catch(t){ql(e,e.return,t)}}break;case 1:Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return);break;case 5:if(Rc(t,e),Bc(e),i&512&&n!==null&&xc(n,n.return),e.flags&32){var a=e.stateNode;try{Le(a,``)}catch(t){ql(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Ce(a,o),We(c,s);var u=We(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Ve(a,f):d===`dangerouslySetInnerHTML`?Ie(a,f):d===`children`?Le(a,f):S(a,d,f,u)}switch(c){case`input`:we(a,o);break;case`textarea`:je(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Oe(a,!!o.multiple,o.multiple?[]:``,!1):Oe(a,!!o.multiple,o.defaultValue,!0)):Oe(a,!!o.multiple,m,!1)}a[Ui]=o}catch(t){ql(e,e.return,t)}}break;case 6:if(Rc(t,e),Bc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){ql(e,e.return,t)}}break;case 3:if(Rc(t,e),Bc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{xn(t.containerInfo)}catch(t){ql(e,e.return,t)}break;case 4:Rc(t,e),Bc(e);break;case 13:Rc(t,e),Bc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(ll=wt())),i&4&&Lc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(yc=(u=yc)||d,Rc(t,e),yc=u):Rc(t,e),Bc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(U=e,d=e.child;d!==null;){for(f=U=d;U!==null;){switch(p=U,m=p.child,p.tag){case 0:case 11:case 14:case 15:Tc(4,p,p.return);break;case 1:xc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){ql(i,n,e)}}break;case 5:xc(p,p.return);break;case 22:if(p.memoizedState!==null){Wc(f);continue}}m===null?Wc(f):(m.return=p,U=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Be(`display`,s))}catch(t){ql(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){ql(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Rc(t,e),Bc(e),i&4&&Lc(e);break;case 21:break;default:Rc(t,e),Bc(e)}}function Bc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(kc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Le(a,``),i.flags&=-33),Mc(e,Ac(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;jc(e,Ac(e),o);break;default:throw Error(r(161))}}catch(t){ql(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Vc(e,t,n){U=e,Hc(e,t,n)}function Hc(e,t,n){for(var r=(e.mode&1)!=0;U!==null;){var i=U,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||vc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||yc;s=vc;var l=yc;if(vc=o,(yc=c)&&!l)for(U=i;U!==null;)o=U,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Gc(i):(c.return=o,U=c);for(;a!==null;)U=a,Hc(a,t,n),a=a.sibling;U=i,vc=s,yc=l}Uc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,U=a):Uc(e,t,n)}}function Uc(e){for(;U!==null;){var t=U;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:yc||Ec(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!yc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&fo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}fo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&xn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}yc||t.flags&512&&Dc(t)}catch(e){ql(t,t.return,e)}}if(t===e){U=null;break}if(n=t.sibling,n!==null){n.return=t.return,U=n;break}U=t.return}}function Wc(e){for(;U!==null;){var t=U;if(t===e){U=null;break}var n=t.sibling;if(n!==null){n.return=t.return,U=n;break}U=t.return}}function Gc(e){for(;U!==null;){var t=U;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ec(4,t)}catch(e){ql(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){ql(t,i,e)}}var a=t.return;try{Dc(t)}catch(e){ql(t,a,e)}break;case 5:var o=t.return;try{Dc(t)}catch(e){ql(t,o,e)}}}catch(e){ql(t,t.return,e)}if(t===e){U=null;break}var s=t.sibling;if(s!==null){s.return=t.return,U=s;break}U=t.return}}var Kc=Math.ceil,qc=C.ReactCurrentDispatcher,Jc=C.ReactCurrentOwner,Yc=C.ReactCurrentBatchConfig,Xc=0,Zc=null,Qc=null,$c=0,el=0,tl=ea(0),nl=0,rl=null,il=0,al=0,ol=0,sl=null,cl=null,ll=0,ul=1/0,dl=null,fl=!1,pl=null,ml=null,hl=!1,gl=null,_l=0,vl=0,yl=null,bl=-1,xl=0;function Sl(){return Xc&6?wt():bl===-1?bl=wt():bl}function Cl(e){return e.mode&1?Xc&2&&$c!==0?$c&-$c:Ua.transition===null?(e=Xt,e===0?(e=window.event,e=e===void 0?16:kn(e.type),e):e):(xl===0&&(xl=Gt()),xl):1}function wl(e,t,n,i){if(50<vl)throw vl=0,yl=null,Error(r(185));qt(e,n,i),(!(Xc&2)||e!==Zc)&&(e===Zc&&(!(Xc&2)&&(al|=n),nl===4&&Al(e,$c)),Tl(e,i),n===1&&Xc===0&&!(t.mode&1)&&(ul=wt()+500,ha&&P()))}function Tl(e,t){var n=e.callbackNode;Ut(e,t);var r=Vt(e,e===Zc?$c:0);if(r===0)n!==null&&xt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&xt(n),t===1)e.tag===0?va(jl.bind(null,e)):_a(jl.bind(null,e)),Li(function(){!(Xc&6)&&P()}),n=null;else{switch(Zt(r)){case 1:n=Et;break;case 4:n=Dt;break;case 16:n=Ot;break;case 536870912:n=At;break;default:n=Ot}n=$l(n,El.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function El(e,t){if(bl=-1,xl=0,Xc&6)throw Error(r(327));var n=e.callbackNode;if(Kl()&&e.callbackNode!==n)return null;var i=Vt(e,e===Zc?$c:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=zl(e,i);else{t=i;var a=Xc;Xc|=2;var o=Ll();(Zc!==e||$c!==t)&&(dl=null,ul=wt()+500,Fl(e,t));do try{Vl();break}catch(t){Il(e,t)}while(1);z(),qc.current=o,Xc=a,Qc===null?(Zc=null,$c=0,t=nl):t=0}if(t!==0){if(t===2&&(a=Wt(e),a!==0&&(i=a,t=Dl(e,a))),t===1)throw n=rl,Fl(e,0),Al(e,i),Tl(e,wt()),n;if(t===6)Al(e,i);else{if(a=e.current.alternate,!(i&30)&&!kl(a)&&(t=zl(e,i),t===2&&(o=Wt(e),o!==0&&(i=o,t=Dl(e,o))),t===1))throw n=rl,Fl(e,0),Al(e,i),Tl(e,wt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Wl(e,cl,dl);break;case 3:if(Al(e,i),(i&130023424)===i&&(t=ll+500-wt(),10<t)){if(Vt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Sl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Pi(Wl.bind(null,e,cl,dl),t);break}Wl(e,cl,dl);break;case 4:if(Al(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-Pt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=wt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Kc(i/1960))-i,10<i){e.timeoutHandle=Pi(Wl.bind(null,e,cl,dl),i);break}Wl(e,cl,dl);break;case 5:Wl(e,cl,dl);break;default:throw Error(r(329))}}}return Tl(e,wt()),e.callbackNode===n?El.bind(null,e):null}function Dl(e,t){var n=sl;return e.current.memoizedState.isDehydrated&&(Fl(e,t).flags|=256),e=zl(e,t),e!==2&&(t=cl,cl=n,t!==null&&Ol(t)),e}function Ol(e){cl===null?cl=e:cl.push.apply(cl,e)}function kl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!zr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Al(e,t){for(t&=~ol,t&=~al,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Pt(t),r=1<<n;e[n]=-1,t&=~r}}function jl(e){if(Xc&6)throw Error(r(327));Kl();var t=Vt(e,0);if(!(t&1))return Tl(e,wt()),null;var n=zl(e,t);if(e.tag!==0&&n===2){var i=Wt(e);i!==0&&(t=i,n=Dl(e,i))}if(n===1)throw n=rl,Fl(e,0),Al(e,t),Tl(e,wt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Wl(e,cl,dl),Tl(e,wt()),null}function Ml(e,t){var n=Xc;Xc|=1;try{return e(t)}finally{Xc=n,Xc===0&&(ul=wt()+500,ha&&P())}}function Nl(e){gl!==null&&gl.tag===0&&!(Xc&6)&&Kl();var t=Xc;Xc|=1;var n=Yc.transition,r=Xt;try{if(Yc.transition=null,Xt=1,e)return e()}finally{Xt=r,Yc.transition=n,Xc=t,!(Xc&6)&&P()}}function Pl(){el=tl.current,ta(tl)}function Fl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Fi(n)),Qc!==null)for(n=Qc.return;n!==null;){var r=n;switch(ja(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&la();break;case 3:yo(),ta(aa),ta(ia),To();break;case 5:xo(r);break;case 4:yo();break;case 13:ta(So);break;case 19:ta(So);break;case 10:Qa(r.type._context);break;case 22:case 23:Pl()}n=n.return}if(Zc=e,Qc=e=iu(e.current,null),$c=el=t,nl=0,rl=null,ol=al=il=0,cl=sl=null,to!==null){for(t=0;t<to.length;t++)if(n=to[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}to=null}return e}function Il(e,t){do{var n=Qc;try{if(z(),Eo.current=bs,Mo){for(var i=ko.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Mo=!1}if(Oo=0,jo=Ao=ko=null,No=!1,Po=0,Jc.current=null,n===null||n.return===null){nl=1,rl=t,Qc=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=$c,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Rs(s);if(m!==null){m.flags&=-257,zs(m,s,c,o,t),m.mode&1&&Ls(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){Ls(o,u,t),Rl();break a}l=Error(r(426))}}else if(Pa&&c.mode&1){var _=Rs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),zs(_,s,c,o,t),I(js(l,c));break a}}o=l=js(l,c),nl!==4&&(nl=2),sl===null?sl=[o]:sl.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Fs(o,l,t);lo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(ml===null||!ml.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Is(o,c,t);lo(o,x);break a}}o=o.return}while(o!==null)}Ul(n)}catch(e){t=e,Qc===n&&n!==null&&(Qc=n=n.return);continue}break}while(1)}function Ll(){var e=qc.current;return qc.current=bs,e===null?bs:e}function Rl(){(nl===0||nl===3||nl===2)&&(nl=4),Zc===null||!(il&268435455)&&!(al&268435455)||Al(Zc,$c)}function zl(e,t){var n=Xc;Xc|=2;var i=Ll();(Zc!==e||$c!==t)&&(dl=null,Fl(e,t));do try{Bl();break}catch(t){Il(e,t)}while(1);if(z(),Xc=n,qc.current=i,Qc!==null)throw Error(r(261));return Zc=null,$c=0,nl}function Bl(){for(;Qc!==null;)Hl(Qc)}function Vl(){for(;Qc!==null&&!St();)Hl(Qc)}function Hl(e){var t=Ql(e.alternate,e,el);e.memoizedProps=e.pendingProps,t===null?Ul(e):Qc=t,Jc.current=null}function Ul(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=_c(n,t),n!==null){n.flags&=32767,Qc=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{nl=6,Qc=null;return}}else if(n=gc(n,t,el),n!==null){Qc=n;return}if(t=t.sibling,t!==null){Qc=t;return}Qc=t=e}while(t!==null);nl===0&&(nl=5)}function Wl(e,t,n){var r=Xt,i=Yc.transition;try{Yc.transition=null,Xt=1,Gl(e,t,n,r)}finally{Yc.transition=i,Xt=r}return null}function Gl(e,t,n,i){do Kl();while(gl!==null);if(Xc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Jt(e,o),e===Zc&&(Qc=Zc=null,$c=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||hl||(hl=!0,$l(Ot,function(){return Kl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Yc.transition,Yc.transition=null;var s=Xt;Xt=1;var c=Xc;Xc|=4,Jc.current=null,wc(e,n),zc(n,e),Kr(Mi),Cn=!!ji,Mi=ji=null,e.current=n,Vc(n,e,a),Ct(),Xc=c,Xt=s,Yc.transition=o}else e.current=n;if(hl&&(hl=!1,gl=e,_l=a),o=e.pendingLanes,o===0&&(ml=null),Nt(n.stateNode,i),Tl(e,wt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(fl)throw fl=!1,e=pl,pl=null,e;return _l&1&&e.tag!==0&&Kl(),o=e.pendingLanes,o&1?e===yl?vl++:(vl=0,yl=e):vl=0,P(),null}function Kl(){if(gl!==null){var e=Zt(_l),t=Yc.transition,n=Xt;try{if(Yc.transition=null,Xt=16>e?16:e,gl===null)var i=!1;else{if(e=gl,gl=null,_l=0,Xc&6)throw Error(r(331));var a=Xc;for(Xc|=4,U=e.current;U!==null;){var o=U,s=o.child;if(U.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(U=u;U!==null;){var d=U;switch(d.tag){case 0:case 11:case 15:Tc(8,d,o)}var f=d.child;if(f!==null)f.return=d,U=f;else for(;U!==null;){d=U;var p=d.sibling,m=d.return;if(Oc(d),d===u){U=null;break}if(p!==null){p.return=m,U=p;break}U=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}U=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,U=s;else b:for(;U!==null;){if(o=U,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Tc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,U=v;break b}U=o.return}}var y=e.current;for(U=y;U!==null;){s=U;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,U=b;else b:for(s=y;U!==null;){if(c=U,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Ec(9,c)}}catch(e){ql(c,c.return,e)}if(c===s){U=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,U=x;break b}U=c.return}}if(Xc=a,P(),Mt&&typeof Mt.onPostCommitFiberRoot==`function`)try{Mt.onPostCommitFiberRoot(jt,e)}catch{}i=!0}return i}finally{Xt=n,Yc.transition=t}}return!1}function W(e,t,n){t=js(n,t),t=Fs(e,t,1),e=H(e,t,1),t=Sl(),e!==null&&(qt(e,1,t),Tl(e,t))}function ql(e,t,n){if(e.tag===3)W(e,e,n);else for(;t!==null;){if(t.tag===3){W(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ml===null||!ml.has(r))){e=js(n,e),e=Is(t,e,1),t=H(t,e,1),e=Sl(),t!==null&&(qt(t,1,e),Tl(t,e));break}}t=t.return}}function Jl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Sl(),e.pingedLanes|=e.suspendedLanes&n,Zc===e&&($c&n)===n&&(nl===4||nl===3&&($c&130023424)===$c&&500>wt()-ll?Fl(e,0):ol|=n),Tl(e,t)}function Yl(e,t){t===0&&(e.mode&1?(t=zt,zt<<=1,!(zt&130023424)&&(zt=4194304)):t=1);var n=Sl();e=io(e,t),e!==null&&(qt(e,t,n),Tl(e,n))}function Xl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Yl(e,n)}function Zl(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Yl(e,n)}var Ql=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||aa.current)Vs=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Vs=!1,uc(e,t,n);Vs=!!(e.flags&131072)}else Vs=!1,Pa&&t.flags&1048576&&ka(t,Sa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;cc(e,t),e=t.pendingProps;var a=sa(t,ia.current);B(t,n),a=Ro(null,t,i,e,a,n);var o=zo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ca(i)?(o=!0,fa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,ao(t),a.updater=Es,t.stateNode=a,a._reactInternals=t,As(t,i,e,n),t=Xs(null,t,i,!0,o,n)):(t.tag=0,Pa&&o&&Aa(t),Hs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(cc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=ru(i),e=ws(i,e),a){case 0:t=Js(null,t,i,e,n);break a;case 1:t=Ys(null,t,i,e,n);break a;case 11:t=Us(null,t,i,e,n);break a;case 14:t=Ws(null,t,i,ws(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Js(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Ys(e,t,i,a,n);case 3:a:{if(Zs(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,oo(e,t),uo(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=js(Error(r(423)),t),t=Qs(e,t,i,n,a);break a}else if(i!==a){a=js(Error(r(424)),t),t=Qs(e,t,i,n,a);break a}else for(Na=Bi(t.stateNode.containerInfo.firstChild),Ma=t,Pa=!0,Fa=null,n=Ja(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Ha(),i===a){t=lc(e,t,n);break a}Hs(e,t,i,n)}t=t.child}return t;case 5:return bo(t),e===null&&za(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Ni(i,a)?s=null:o!==null&&Ni(i,o)&&(t.flags|=32),qs(e,t),Hs(e,t,s,n),t.child;case 6:return e===null&&za(t),null;case 13:return tc(e,t,n);case 4:return vo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=L(t,null,i,n):Hs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),Us(e,t,i,a,n);case 7:return Hs(e,t,t.pendingProps,n),t.child;case 8:return Hs(e,t,t.pendingProps.children,n),t.child;case 12:return Hs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,na(Ya,i._currentValue),i._currentValue=s,o!==null)if(zr(o.value,s)){if(o.children===a.children&&!aa.current){t=lc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=so(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),$a(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),$a(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Hs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,B(t,n),a=eo(a),i=i(a),t.flags|=1,Hs(e,t,i,n),t.child;case 14:return i=t.type,a=ws(i,t.pendingProps),a=ws(i.type,a),Ws(e,t,i,a,n);case 15:return Gs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:ws(i,a),cc(e,t),t.tag=1,ca(i)?(e=!0,fa(t)):e=!1,B(t,n),Os(t,i,a),As(t,i,a,n),Xs(null,t,i,!0,e,n);case 19:return sc(e,t,n);case 22:return Ks(e,t,n)}throw Error(r(156,t.tag))};function $l(e,t){return bt(e,t)}function eu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tu(e,t,n,r){return new eu(e,t,n,r)}function nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ru(e){if(typeof e==`function`)return nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===te)return 11;if(e===re)return 14}return 2}function iu(e,t){var n=e.alternate;return n===null?(n=tu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function au(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)nu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return ou(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=tu(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case ne:return e=tu(13,n,t,a),e.elementType=ne,e.lanes=o,e;case A:return e=tu(19,n,t,a),e.elementType=A,e.lanes=o,e;case ae:return su(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case k:s=10;break a;case ee:s=9;break a;case te:s=11;break a;case re:s=14;break a;case ie:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=tu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function ou(e,t,n,r){return e=tu(7,e,r,t),e.lanes=n,e}function su(e,t,n,r){return e=tu(22,e,r,t),e.elementType=ae,e.lanes=n,e.stateNode={isHidden:!1},e}function cu(e,t,n){return e=tu(6,e,null,t),e.lanes=n,e}function lu(e,t,n){return t=tu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Kt(0),this.expirationTimes=Kt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function G(e,t,n,r,i,a,o,s,c){return e=new uu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=tu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ao(a),e}function du(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function fu(e){if(!e)return ra;e=e._reactInternals;a:{if(mt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ca(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ca(n))return da(e,n,t)}return t}function pu(e,t,n,r,i,a,o,s,c){return e=G(n,r,!0,e,i,a,o,s,c),e.context=fu(null),n=e.current,r=Sl(),i=Cl(n),a=so(r,i),a.callback=t??null,H(n,a,i),e.current.lanes=i,qt(e,i,r),Tl(e,r),e}function mu(e,t,n,r){var i=t.current,a=Sl(),o=Cl(i);return n=fu(n),t.context===null?t.context=n:t.pendingContext=n,t=so(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=H(i,t,o),e!==null&&(wl(e,i,o,a),co(e,i,o)),o}function hu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function gu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function _u(e,t){gu(e,t),(e=e.alternate)&&gu(e,t)}function vu(){return null}var yu=typeof reportError==`function`?reportError:function(e){console.error(e)};function bu(e){this._internalRoot=e}xu.prototype.render=bu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));mu(e,t,null,null)},xu.prototype.unmount=bu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Nl(function(){mu(null,e,null,null)}),t[Wi]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=tn();e={blockedOn:null,target:e,priority:t};for(var n=0;n<dn.length&&t!==0&&t<dn[n].priority;n++);dn.splice(n,0,e),n===0&&gn(e)}};function Su(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function wu(){}function Tu(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=hu(o);a.call(e)}}var o=pu(t,r,e,0,null,!1,!1,``,wu);return e._reactRootContainer=o,e[Wi]=o.current,yi(e.nodeType===8?e.parentNode:e),Nl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=hu(c);s.call(e)}}var c=G(e,0,!1,null,null,!1,!1,``,wu);return e._reactRootContainer=c,e[Wi]=c.current,yi(e.nodeType===8?e.parentNode:e),Nl(function(){mu(t,c,n,r)}),c}function Eu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=hu(o);s.call(e)}}mu(t,o,e,i)}else o=Tu(n,t,e,i,r);return hu(o)}Qt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Bt(t.pendingLanes);n!==0&&(Yt(t,n|1),Tl(t,wt()),!(Xc&6)&&(ul=wt()+500,P()))}break;case 13:Nl(function(){var t=io(e,1);t!==null&&wl(t,e,1,Sl())}),_u(e,1)}},$t=function(e){if(e.tag===13){var t=io(e,134217728);t!==null&&wl(t,e,134217728,Sl()),_u(e,134217728)}},en=function(e){if(e.tag===13){var t=Cl(e),n=io(e,t);n!==null&&wl(n,e,t,Sl()),_u(e,t)}},tn=function(){return Xt},nn=function(e,t){var n=Xt;try{return Xt=e,t()}finally{Xt=n}},qe=function(e,t,n){switch(t){case`input`:if(we(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Zi(i);if(!a)throw Error(r(90));ye(i),we(i,a)}}}break;case`textarea`:je(e,n);break;case`select`:t=n.value,t!=null&&Oe(e,!!n.multiple,t,!1)}},$e=Ml,et=Nl;var Du={usingClientEntryPoint:!1,Events:[Yi,Xi,Zi,Ze,Qe,Ml]},Ou={findFiberByHostInstance:Ji,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ku={bundleType:Ou.bundleType,version:Ou.version,rendererPackageName:Ou.rendererPackageName,rendererConfig:Ou.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=vt(e),e===null?null:e.stateNode},findFiberByHostInstance:Ou.findFiberByHostInstance||vu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Au.isDisabled&&Au.supportsFiber)try{jt=Au.inject(ku),Mt=Au}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Du,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Su(t))throw Error(r(200));return du(e,t,null,n)},e.createRoot=function(e,t){if(!Su(e))throw Error(r(299));var n=!1,i=``,a=yu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=G(e,1,!1,null,null,n,!1,i,a),e[Wi]=t.current,yi(e.nodeType===8?e.parentNode:e),new bu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=vt(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Nl(e)},e.hydrate=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Su(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=yu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=pu(t,null,e,1,n??null,a,!1,o,s),e[Wi]=t.current,yi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new xu(t)},e.render=function(e,t,n){if(!Cu(t))throw Error(r(200));return Eu(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Cu(e))throw Error(r(40));return e._reactRootContainer?(Nl(function(){Eu(null,null,e,!1,function(){e._reactRootContainer=null,e[Wi]=null})}),!0):!1},e.unstable_batchedUpdates=Ml,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Cu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Eu(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=h();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}));Object.freeze({status:`aborted`});function _(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var v=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},y=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},b={};function x(e){return e&&Object.assign(b,e),b}function S(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function C(e,t){return typeof t==`bigint`?t.toString():t}function w(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function T(e){return e==null}function E(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function D(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var O=Symbol(`evaluating`);function k(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==O)return r===void 0&&(r=O,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function ee(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function te(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function ne(e){return JSON.stringify(e)}function A(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var re=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ie(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var ae=w(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function oe(e){if(ie(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ie(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function se(e){return oe(e)?{...e}:Array.isArray(e)?[...e]:e}var ce=new Set([`string`,`number`,`symbol`]);function le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ue(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function j(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function de(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var fe={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function pe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ue(e,te(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return ee(this,`shape`,e),e},checks:[]}))}function me(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ue(e,te(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return ee(this,`shape`,r),r},checks:[]}))}function he(e,t){if(!oe(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ue(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ee(this,`shape`,n),n}}))}function ge(e,t){if(!oe(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ue(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return ee(this,`shape`,n),n}}))}function _e(e,t){return ue(e,te(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return ee(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function ve(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ue(t,te(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return ee(this,`shape`,i),i},checks:[]}))}function ye(e,t,n){return ue(t,te(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return ee(this,`shape`,i),i}}))}function be(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function xe(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function Se(e){return typeof e==`string`?e:e?.message}function Ce(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=Se(e.inst?._zod.def?.error?.(e))??Se(t?.error?.(e))??Se(n.customError?.(e))??Se(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function we(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Te(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var Ee=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,C,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},De=_(`$ZodError`,Ee),Oe=_(`$ZodError`,Ee,{Parent:Error});function ke(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Ae(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var je=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new v;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ce(e,a,x())));throw re(t,i?.callee),t}return o.value},Me=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>Ce(e,a,x())));throw re(t,i?.callee),t}return o.value},Ne=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new v;return a.issues.length?{success:!1,error:new(e??De)(a.issues.map(e=>Ce(e,i,x())))}:{success:!0,data:a.value}},Pe=Ne(Oe),Fe=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>Ce(e,i,x())))}:{success:!0,data:a.value}},Ie=Fe(Oe),Le=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return je(e)(t,n,i)},Re=e=>(t,n,r)=>je(e)(t,n,r),ze=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Me(e)(t,n,i)},Be=e=>async(t,n,r)=>Me(e)(t,n,r),Ve=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ne(e)(t,n,i)},He=e=>(t,n,r)=>Ne(e)(t,n,r),Ue=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Fe(e)(t,n,i)},We=e=>async(t,n,r)=>Fe(e)(t,n,r),Ge=/^[cC][^\s-]{8,}$/,Ke=/^[0-9a-z]+$/,qe=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Je=/^[0-9a-vA-V]{20}$/,Ye=/^[A-Za-z0-9]{27}$/,Xe=/^[a-zA-Z0-9_-]{21}$/,Ze=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Qe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,$e=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,et=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tt=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function nt(){return new RegExp(tt,`u`)}var rt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,it=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,at=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,ot=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,st=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ct=/^[A-Za-z0-9_-]*$/,lt=/^\+[1-9]\d{6,14}$/,ut=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,dt=RegExp(`^${ut}$`);function ft(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function pt(e){return RegExp(`^${ft(e)}$`)}function mt(e){let t=ft({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${ut}T(?:${r})$`)}var ht=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},gt=/^-?\d+$/,_t=/^-?\d+(?:\.\d+)?$/,vt=/^(?:true|false)$/i,yt=/^null$/i,bt=/^undefined$/i,xt=/^[^A-Z]*$/,St=/^[^a-z]*$/,Ct=_(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),wt={number:`number`,bigint:`bigint`,object:`date`},Tt=_(`$ZodCheckLessThan`,(e,t)=>{Ct.init(e,t);let n=wt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Et=_(`$ZodCheckGreaterThan`,(e,t)=>{Ct.init(e,t);let n=wt[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Dt=_(`$ZodCheckMultipleOf`,(e,t)=>{Ct.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):D(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Ot=_(`$ZodCheckNumberFormat`,(e,t)=>{Ct.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=fe[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=gt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),kt=_(`$ZodCheckMaxLength`,(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!T(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=we(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),At=_(`$ZodCheckMinLength`,(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!T(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=we(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),jt=_(`$ZodCheckLengthEquals`,(e,t)=>{var n;Ct.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!T(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=we(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),Mt=_(`$ZodCheckStringFormat`,(e,t)=>{var n,r;Ct.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Nt=_(`$ZodCheckRegex`,(e,t)=>{Mt.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Pt=_(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=xt,Mt.init(e,t)}),Ft=_(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=St,Mt.init(e,t)}),It=_(`$ZodCheckIncludes`,(e,t)=>{Ct.init(e,t);let n=le(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Lt=_(`$ZodCheckStartsWith`,(e,t)=>{Ct.init(e,t);let n=RegExp(`^${le(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),Rt=_(`$ZodCheckEndsWith`,(e,t)=>{Ct.init(e,t);let n=RegExp(`.*${le(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),zt=_(`$ZodCheckOverwrite`,(e,t)=>{Ct.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Bt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
14
+ `+e.stack}return{value:e,source:t,stack:i,digest:null}}function Ps(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Fs(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Is=typeof WeakMap==`function`?WeakMap:Map;function Ls(e,t,n){n=lo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ml||(ml=!0,hl=r),Fs(e,t)},n}function Rs(e,t,n){n=lo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Fs(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Fs(e,t),typeof r!=`function`&&(gl===null?gl=new Set([this]):gl.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function zs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Is;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Xl.bind(null,e,t,n),t.then(e,e))}function Bs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null?!0:t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Vs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=lo(-1,1),t.tag=2,uo(n,t,1))),n.lanes|=1),e)}var Hs=C.ReactCurrentOwner,Us=!1;function Ws(e,t,n,r){t.child=e===null?Ya(t,null,n,r):Ja(t,e.child,n,r)}function Gs(e,t,n,r,i){n=n.render;var a=t.ref;return to(t,i),r=Bo(e,t,n,r,a,i),n=Vo(),e!==null&&!Us?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dc(e,t,i)):(Na&&n&&ka(t),t.flags|=1,Ws(e,t,r,i),t.child)}function Ks(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!iu(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,qs(e,t,a,r,i)):(e=su(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Lr:n,n(o,r)&&e.ref===t.ref)return dc(e,t,i)}return t.flags|=1,e=ou(a,r),e.ref=t.ref,e.return=t,t.child=e}function qs(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Lr(a,r)&&e.ref===t.ref)if(Us=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Us=!0);else return t.lanes=e.lanes,dc(e,t,i)}return Xs(e,t,n,r,i)}function Js(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`)if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ta(rl,nl),nl|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ta(rl,nl),nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,ta(rl,nl),nl|=r}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),ta(rl,nl),nl|=r;return Ws(e,t,i,n),t.child}function Ys(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Xs(e,t,n,r,i){var a=sa(n)?aa:ra.current;return a=oa(t,a),to(t,i),n=Bo(e,t,n,r,a,i),r=Vo(),e!==null&&!Us?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,dc(e,t,i)):(Na&&r&&ka(t),t.flags|=1,Ws(e,t,n,i),t.child)}function Zs(e,t,n,r,i){if(sa(n)){var a=!0;da(t)}else a=!1;if(to(t,i),t.stateNode===null)uc(e,t),As(t,n,r),Ms(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=z(l):(l=sa(n)?aa:ra.current,l=oa(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&js(t,o,r,l),oo=!1;var f=t.memoizedState;o.state=f,po(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ia.current||oo?(typeof u==`function`&&(Ds(t,n,u,r),c=t.memoizedState),(s=oo||ks(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,co(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Es(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=z(c):(c=sa(n)?aa:ra.current,c=oa(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&js(t,o,r,c),oo=!1,f=t.memoizedState,o.state=f,po(t,r,o,i);var m=t.memoizedState;s!==d||f!==m||ia.current||oo?(typeof p==`function`&&(Ds(t,n,p,r),m=t.memoizedState),(l=oo||ks(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return Qs(e,t,n,r,a,i)}function Qs(e,t,n,r,i,a){Ys(e,t);var o=(t.flags&128)!=0;if(!r&&!o)return i&&fa(t,n,!1),dc(e,t,a);r=t.stateNode,Hs.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ja(t,e.child,null,a),t.child=Ja(t,null,s,a)):Ws(e,t,s,a),t.memoizedState=r.state,i&&fa(t,n,!0),t.child}function $s(e){var t=e.stateNode;t.pendingContext?la(e,t.pendingContext,t.pendingContext!==t.context):t.context&&la(e,t.context,!1),bo(e,t.containerInfo)}function ec(e,t,n,r,i){return Va(),Ha(i),t.flags|=256,Ws(e,t,n,r),t.child}var tc={dehydrated:null,treeContext:null,retryLane:0};function nc(e){return{baseLanes:e,cachePool:null,transitions:null}}function rc(e,t,n){var r=t.pendingProps,i=wo.current,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(i&2)!=0),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),ta(wo,i&1),e===null)return Ra(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data===`$!`?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=lu(o,r,0,null),e=cu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=nc(n),t.memoizedState=tc,e):ic(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return oc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=ou(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=cu(a,o,n,null),a.flags|=2):a=ou(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?nc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=tc,r}return a=e.child,e=a.sibling,r=ou(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ic(e,t){return t=lu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function ac(e,t,n,r){return r!==null&&Ha(r),Ja(t,e.child,null,n),e=ic(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Ps(Error(r(422))),ac(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=lu({mode:`visible`,children:i.children},a,0,null),o=cu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ja(t,e.child,null,s),t.child.memoizedState=nc(s),t.memoizedState=tc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return ac(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Ps(o,i,void 0),ac(e,t,s,i)}if(c=(s&e.childLanes)!==0,Us||c){if(i=$c,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,ao(e,a),El(i,e,a,-1))}return Bl(),i=Ps(Error(r(421))),ac(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=Ql.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ma=Ri(a.nextSibling),ja=t,Na=!0,Pa=null,e!==null&&(Sa[Ca++]=Ta,Sa[Ca++]=Ea,Sa[Ca++]=wa,Ta=e.id,Ea=e.overflow,wa=t),t=ic(t,i.children),t.flags|=4096,t)}function sc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),eo(e.return,t,n)}function cc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function lc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Ws(e,t,r.children,n),r=wo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sc(e,n,t);else if(e.tag===19)sc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ta(wo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&To(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),cc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&To(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}cc(t,!0,n,null,a);break;case`together`:cc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function uc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ol|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=ou(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ou(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function fc(e,t,n){switch(t.tag){case 3:$s(t),Va();break;case 5:So(t);break;case 1:sa(t.type)&&da(t);break;case 4:bo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;ta(Xa,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ta(wo,wo.current&1),e=dc(e,t,n),e===null?null:e.sibling):rc(e,t,n):(ta(wo,wo.current&1),t.flags|=128,null);ta(wo,wo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ta(wo,wo.current),r)break;return null;case 22:case 23:return t.lanes=0,Js(e,t,n)}return dc(e,t,n)}var pc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},mc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,yo(go.current);var o=null;switch(n){case`input`:i=ve(e,i),r=ve(e,r),o=[];break;case`select`:i=ae({},i,{value:void 0}),r=ae({},r,{value:void 0}),o=[];break;case`textarea`:i=Ee(e,i),r=Ee(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=Oi)}Be(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null));for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null))if(u===`style`)if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l;else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&mi(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},hc=function(e,t,n,r){n!==r&&(t.flags|=4)};function gc(e,t){if(!Na)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function _c(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function vc(e,t,n){var i=t.pendingProps;switch(Aa(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _c(t),null;case 1:return sa(t.type)&&ca(),_c(t),null;case 3:return i=t.stateNode,xo(),ea(ia),ea(ra),Do(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(I(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pa!==null&&(Al(Pa),Pa=null))),_c(t),null;case 5:Co(t);var o=yo(vo.current);if(n=t.type,e!==null&&t.stateNode!=null)mc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return _c(t),null}if(e=yo(go.current),I(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Vi]=t,i[Hi]=s,e=(t.mode&1)!=0,n){case`dialog`:mi(`cancel`,i),mi(`close`,i);break;case`iframe`:case`object`:case`embed`:mi(`load`,i);break;case`video`:case`audio`:for(o=0;o<ui.length;o++)mi(ui[o],i);break;case`source`:mi(`error`,i);break;case`img`:case`image`:case`link`:mi(`error`,i),mi(`load`,i);break;case`details`:mi(`toggle`,i);break;case`input`:ye(i,s),mi(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},mi(`invalid`,i);break;case`textarea`:De(i,s),mi(`invalid`,i)}for(var c in Be(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Di(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Di(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&mi(`scroll`,i)}switch(n){case`input`:he(i),Se(i,s,!0);break;case`textarea`:he(i),ke(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=Oi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Ae(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Vi]=t,e[Hi]=i,pc(e,t,!1,!1),t.stateNode=e;a:{switch(c=Ve(n,i),n){case`dialog`:mi(`cancel`,e),mi(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:mi(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<ui.length;o++)mi(ui[o],e);o=i;break;case`source`:mi(`error`,e),o=i;break;case`img`:case`image`:case`link`:mi(`error`,e),mi(`load`,e),o=i;break;case`details`:mi(`toggle`,e),o=i;break;case`input`:ye(e,i),o=ve(e,i),mi(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=ae({},i,{value:void 0}),mi(`invalid`,e);break;case`textarea`:De(e,i),o=Ee(e,i),mi(`invalid`,e);break;default:o=i}for(s in Be(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Re(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Ne(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Pe(e,u):typeof u==`number`&&Pe(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&mi(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:he(e),Se(e,i,!1);break;case`textarea`:he(e),ke(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+fe(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&Te(e,!!i.multiple,i.defaultValue,!0):Te(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=Oi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return _c(t),null;case 6:if(e&&t.stateNode!=null)hc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=yo(vo.current),yo(go.current),I(t)){if(i=t.stateNode,n=t.memoizedProps,i[Vi]=t,(s=i.nodeValue!==n)&&(e=ja,e!==null))switch(e.tag){case 3:Di(i.nodeValue,n,(e.mode&1)!=0);break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Di(i.nodeValue,n,(e.mode&1)!=0)}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Vi]=t,t.stateNode=i}return _c(t),null;case 13:if(ea(wo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Na&&Ma!==null&&t.mode&1&&!(t.flags&128))Ba(),Va(),t.flags|=98560,s=!1;else if(s=I(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Vi]=t}else Va(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;_c(t),s=!1}else Pa!==null&&(Al(Pa),Pa=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||wo.current&1?il===0&&(il=3):Bl())),t.updateQueue!==null&&(t.flags|=4),_c(t),null);case 4:return xo(),e===null&&_i(t.stateNode.containerInfo),_c(t),null;case 10:return R(t.type._context),_c(t),null;case 17:return sa(t.type)&&ca(),_c(t),null;case 19:if(ea(wo),s=t.memoizedState,s===null)return _c(t),null;if(i=(t.flags&128)!=0,c=s.rendering,c===null)if(i)gc(s,!1);else{if(il!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=To(e),c!==null){for(t.flags|=128,gc(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ta(wo,wo.current&1|2),t.child}e=e.sibling}s.tail!==null&&xt()>fl&&(t.flags|=128,i=!0,gc(s,!1),t.lanes=4194304)}else{if(!i)if(e=To(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),gc(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Na)return _c(t),null}else 2*xt()-s.renderingStartTime>fl&&n!==1073741824&&(t.flags|=128,i=!0,gc(s,!1),t.lanes=4194304);s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(_c(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xt(),t.sibling=null,n=wo.current,ta(wo,i?n&1|2:n&1),t);case 22:case 23:return Il(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?nl&1073741824&&(_c(t),t.subtreeFlags&6&&(t.flags|=8192)):_c(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function yc(e,t){switch(Aa(t),t.tag){case 1:return sa(t.type)&&ca(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xo(),ea(ia),ea(ra),Do(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Co(t),null;case 13:if(ea(wo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Va()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ea(wo),null;case 4:return xo(),null;case 10:return R(t.type._context),null;case 22:case 23:return Il(),null;case 24:return null;default:return null}}var bc=!1,xc=!1,Sc=typeof WeakSet==`function`?WeakSet:Set,V=null;function Cc(e,t){var n=e.ref;if(n!==null)if(typeof n==`function`)try{n(null)}catch(n){H(e,t,n)}else n.current=null}function wc(e,t,n){try{n()}catch(n){H(e,t,n)}}var Tc=!1;function Ec(e,t){if(ki=bn,e=Vr(),Hr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ai={focusedElem:e,selectionRange:n},bn=!1,V=t;V!==null;)if(t=V,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,V=e;else for(;V!==null;){t=V;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Es(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){H(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,V=e;break}V=t.return}return h=Tc,Tc=!1,h}function Dc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&wc(t,n,a)}i=i.next}while(i!==r)}}function Oc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function kc(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function Ac(e){var t=e.alternate;t!==null&&(e.alternate=null,Ac(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Vi],delete t[Hi],delete t[Wi],delete t[Gi],delete t[Ki])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function jc(e){return e.tag===5||e.tag===3||e.tag===4}function Mc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Nc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Oi));else if(r!==4&&(e=e.child,e!==null))for(Nc(e,t,n),e=e.sibling;e!==null;)Nc(e,t,n),e=e.sibling}function Pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}var Fc=null,Ic=!1;function Lc(e,t,n){for(n=n.child;n!==null;)Rc(e,t,n),n=n.sibling}function Rc(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount==`function`)try{kt.onCommitFiberUnmount(Ot,n)}catch{}switch(n.tag){case 5:xc||Cc(n,t);case 6:var r=Fc,i=Ic;Fc=null,Lc(e,t,n),Fc=r,Ic=i,Fc!==null&&(Ic?(e=Fc,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Fc.removeChild(n.stateNode));break;case 18:Fc!==null&&(Ic?(e=Fc,n=n.stateNode,e.nodeType===8?Li(e.parentNode,n):e.nodeType===1&&Li(e,n),vn(e)):Li(Fc,n.stateNode));break;case 4:r=Fc,i=Ic,Fc=n.stateNode.containerInfo,Ic=!0,Lc(e,t,n),Fc=r,Ic=i;break;case 0:case 11:case 14:case 15:if(!xc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&wc(n,t,o),i=i.next}while(i!==r)}Lc(e,t,n);break;case 1:if(!xc&&(Cc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){H(n,t,e)}Lc(e,t,n);break;case 21:Lc(e,t,n);break;case 22:n.mode&1?(xc=(r=xc)||n.memoizedState!==null,Lc(e,t,n),xc=r):Lc(e,t,n);break;default:Lc(e,t,n)}}function zc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Sc),t.forEach(function(t){var r=$l.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Bc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Fc=c.stateNode,Ic=!1;break a;case 3:Fc=c.stateNode.containerInfo,Ic=!0;break a;case 4:Fc=c.stateNode.containerInfo,Ic=!0;break a}c=c.return}if(Fc===null)throw Error(r(160));Rc(o,s,a),Fc=null,Ic=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){H(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Vc(t,e),t=t.sibling}function Vc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Bc(t,e),Hc(e),i&4){try{Dc(3,e,e.return),Oc(3,e)}catch(t){H(e,e.return,t)}try{Dc(5,e,e.return)}catch(t){H(e,e.return,t)}}break;case 1:Bc(t,e),Hc(e),i&512&&n!==null&&Cc(n,n.return);break;case 5:if(Bc(t,e),Hc(e),i&512&&n!==null&&Cc(n,n.return),e.flags&32){var a=e.stateNode;try{Pe(a,``)}catch(t){H(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&be(a,o),Ve(c,s);var u=Ve(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Re(a,f):d===`dangerouslySetInnerHTML`?Ne(a,f):d===`children`?Pe(a,f):S(a,d,f,u)}switch(c){case`input`:xe(a,o);break;case`textarea`:Oe(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?Te(a,!!o.multiple,o.multiple?[]:``,!1):Te(a,!!o.multiple,o.defaultValue,!0)):Te(a,!!o.multiple,m,!1)}a[Hi]=o}catch(t){H(e,e.return,t)}}break;case 6:if(Bc(t,e),Hc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){H(e,e.return,t)}}break;case 3:if(Bc(t,e),Hc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{vn(t.containerInfo)}catch(t){H(e,e.return,t)}break;case 4:Bc(t,e),Hc(e);break;case 13:Bc(t,e),Hc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(dl=xt())),i&4&&zc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(xc=(u=xc)||d,Bc(t,e),xc=u):Bc(t,e),Hc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(V=e,d=e.child;d!==null;){for(f=V=d;V!==null;){switch(p=V,m=p.child,p.tag){case 0:case 11:case 14:case 15:Dc(4,p,p.return);break;case 1:Cc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){H(i,n,e)}}break;case 5:Cc(p,p.return);break;case 22:if(p.memoizedState!==null){Kc(f);continue}}m===null?Kc(f):(m.return=p,V=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=Le(`display`,s))}catch(t){H(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){H(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Bc(t,e),Hc(e),i&4&&zc(e);break;case 21:break;default:Bc(t,e),Hc(e)}}function Hc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(jc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Pe(a,``),i.flags&=-33),Pc(e,Mc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Nc(e,Mc(e),o);break;default:throw Error(r(161))}}catch(t){H(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Uc(e,t,n){V=e,Wc(e,t,n)}function Wc(e,t,n){for(var r=(e.mode&1)!=0;V!==null;){var i=V,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||bc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||xc;s=bc;var l=xc;if(bc=o,(xc=c)&&!l)for(V=i;V!==null;)o=V,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?qc(i):(c.return=o,V=c);for(;a!==null;)V=a,Wc(a,t,n),a=a.sibling;V=i,bc=s,xc=l}Gc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,V=a):Gc(e,t,n)}}function Gc(e){for(;V!==null;){var t=V;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:xc||Oc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!xc)if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Es(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&mo(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}mo(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&vn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}xc||t.flags&512&&kc(t)}catch(e){H(t,t.return,e)}}if(t===e){V=null;break}if(n=t.sibling,n!==null){n.return=t.return,V=n;break}V=t.return}}function Kc(e){for(;V!==null;){var t=V;if(t===e){V=null;break}var n=t.sibling;if(n!==null){n.return=t.return,V=n;break}V=t.return}}function qc(e){for(;V!==null;){var t=V;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Oc(4,t)}catch(e){H(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){H(t,i,e)}}var a=t.return;try{kc(t)}catch(e){H(t,a,e)}break;case 5:var o=t.return;try{kc(t)}catch(e){H(t,o,e)}}}catch(e){H(t,t.return,e)}if(t===e){V=null;break}var s=t.sibling;if(s!==null){s.return=t.return,V=s;break}V=t.return}}var Jc=Math.ceil,Yc=C.ReactCurrentDispatcher,Xc=C.ReactCurrentOwner,Zc=C.ReactCurrentBatchConfig,Qc=0,$c=null,el=null,tl=0,nl=0,rl=$i(0),il=0,al=null,ol=0,sl=0,cl=0,ll=null,ul=null,dl=0,fl=1/0,pl=null,ml=!1,hl=null,gl=null,_l=!1,vl=null,yl=0,bl=0,xl=null,Sl=-1,Cl=0;function wl(){return Qc&6?xt():Sl===-1?Sl=xt():Sl}function Tl(e){return e.mode&1?Qc&2&&tl!==0?tl&-tl:Ua.transition===null?(e=qt,e===0?(e=window.event,e=e===void 0?16:En(e.type),e):e):(Cl===0&&(Cl=Ht()),Cl):1}function El(e,t,n,i){if(50<bl)throw bl=0,xl=null,Error(r(185));Wt(e,n,i),(!(Qc&2)||e!==$c)&&(e===$c&&(!(Qc&2)&&(sl|=n),il===4&&Ml(e,tl)),Dl(e,i),n===1&&Qc===0&&!(t.mode&1)&&(fl=xt()+500,ma&&va()))}function Dl(e,t){var n=e.callbackNode;Bt(e,t);var r=Rt(e,e===$c?tl:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?_a(Nl.bind(null,e)):ga(Nl.bind(null,e)),Fi(function(){!(Qc&6)&&va()}),n=null;else{switch(Jt(r)){case 1:n=Ct;break;case 4:n=wt;break;case 16:n=Tt;break;case 536870912:n=Dt;break;default:n=Tt}n=tu(n,Ol.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function Ol(e,t){if(Sl=-1,Cl=0,Qc&6)throw Error(r(327));var n=e.callbackNode;if(Jl()&&e.callbackNode!==n)return null;var i=Rt(e,e===$c?tl:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Vl(e,i);else{t=i;var a=Qc;Qc|=2;var o=zl();($c!==e||tl!==t)&&(pl=null,fl=xt()+500,Ll(e,t));do try{Ul();break}catch(t){Rl(e,t)}while(1);$a(),Yc.current=o,Qc=a,el===null?($c=null,tl=0,t=il):t=0}if(t!==0){if(t===2&&(a=Vt(e),a!==0&&(i=a,t=kl(e,a))),t===1)throw n=al,Ll(e,0),Ml(e,i),Dl(e,xt()),n;if(t===6)Ml(e,i);else{if(a=e.current.alternate,!(i&30)&&!jl(a)&&(t=Vl(e,i),t===2&&(o=Vt(e),o!==0&&(i=o,t=kl(e,o))),t===1))throw n=al,Ll(e,0),Ml(e,i),Dl(e,xt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:Kl(e,ul,pl);break;case 3:if(Ml(e,i),(i&130023424)===i&&(t=dl+500-xt(),10<t)){if(Rt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){wl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Mi(Kl.bind(null,e,ul,pl),t);break}Kl(e,ul,pl);break;case 4:if(Ml(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-jt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=xt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Jc(i/1960))-i,10<i){e.timeoutHandle=Mi(Kl.bind(null,e,ul,pl),i);break}Kl(e,ul,pl);break;case 5:Kl(e,ul,pl);break;default:throw Error(r(329))}}}return Dl(e,xt()),e.callbackNode===n?Ol.bind(null,e):null}function kl(e,t){var n=ll;return e.current.memoizedState.isDehydrated&&(Ll(e,t).flags|=256),e=Vl(e,t),e!==2&&(t=ul,ul=n,t!==null&&Al(t)),e}function Al(e){ul===null?ul=e:ul.push.apply(ul,e)}function jl(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ir(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ml(e,t){for(t&=~cl,t&=~sl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Nl(e){if(Qc&6)throw Error(r(327));Jl();var t=Rt(e,0);if(!(t&1))return Dl(e,xt()),null;var n=Vl(e,t);if(e.tag!==0&&n===2){var i=Vt(e);i!==0&&(t=i,n=kl(e,i))}if(n===1)throw n=al,Ll(e,0),Ml(e,t),Dl(e,xt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Kl(e,ul,pl),Dl(e,xt()),null}function Pl(e,t){var n=Qc;Qc|=1;try{return e(t)}finally{Qc=n,Qc===0&&(fl=xt()+500,ma&&va())}}function Fl(e){vl!==null&&vl.tag===0&&!(Qc&6)&&Jl();var t=Qc;Qc|=1;var n=Zc.transition,r=qt;try{if(Zc.transition=null,qt=1,e)return e()}finally{qt=r,Zc.transition=n,Qc=t,!(Qc&6)&&va()}}function Il(){nl=rl.current,ea(rl)}function Ll(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Ni(n)),el!==null)for(n=el.return;n!==null;){var r=n;switch(Aa(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ca();break;case 3:xo(),ea(ia),ea(ra),Do();break;case 5:Co(r);break;case 4:xo();break;case 13:ea(wo);break;case 19:ea(wo);break;case 10:R(r.type._context);break;case 22:case 23:Il()}n=n.return}if($c=e,el=e=ou(e.current,null),tl=nl=t,il=0,al=null,cl=sl=ol=0,ul=ll=null,no!==null){for(t=0;t<no.length;t++)if(n=no[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}no=null}return e}function Rl(e,t){do{var n=el;try{if($a(),Oo.current=Ss,Po){for(var i=jo.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Po=!1}if(Ao=0,No=Mo=jo=null,Fo=!1,Io=0,Xc.current=null,n===null||n.return===null){il=1,al=t,el=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=tl,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Bs(s);if(m!==null){m.flags&=-257,Vs(m,s,c,o,t),m.mode&1&&zs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}else{if(!(t&1)){zs(o,u,t),Bl();break a}l=Error(r(426))}}else if(Na&&c.mode&1){var _=Bs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Vs(_,s,c,o,t),Ha(Ns(l,c));break a}}o=l=Ns(l,c),il!==4&&(il=2),ll===null?ll=[o]:ll.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Ls(o,l,t);fo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(gl===null||!gl.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Rs(o,c,t);fo(o,x);break a}}o=o.return}while(o!==null)}Gl(n)}catch(e){t=e,el===n&&n!==null&&(el=n=n.return);continue}break}while(1)}function zl(){var e=Yc.current;return Yc.current=Ss,e===null?Ss:e}function Bl(){(il===0||il===3||il===2)&&(il=4),$c===null||!(ol&268435455)&&!(sl&268435455)||Ml($c,tl)}function Vl(e,t){var n=Qc;Qc|=2;var i=zl();($c!==e||tl!==t)&&(pl=null,Ll(e,t));do try{Hl();break}catch(t){Rl(e,t)}while(1);if($a(),Qc=n,Yc.current=i,el!==null)throw Error(r(261));return $c=null,tl=0,il}function Hl(){for(;el!==null;)Wl(el)}function Ul(){for(;el!==null&&!yt();)Wl(el)}function Wl(e){var t=eu(e.alternate,e,nl);e.memoizedProps=e.pendingProps,t===null?Gl(e):el=t,Xc.current=null}function Gl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yc(n,t),n!==null){n.flags&=32767,el=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{il=6,el=null;return}}else if(n=vc(n,t,nl),n!==null){el=n;return}if(t=t.sibling,t!==null){el=t;return}el=t=e}while(t!==null);il===0&&(il=5)}function Kl(e,t,n){var r=qt,i=Zc.transition;try{Zc.transition=null,qt=1,ql(e,t,n,r)}finally{Zc.transition=i,qt=r}return null}function ql(e,t,n,i){do Jl();while(vl!==null);if(Qc&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Gt(e,o),e===$c&&(el=$c=null,tl=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||_l||(_l=!0,tu(Tt,function(){return Jl(),null})),o=(n.flags&15990)!=0,n.subtreeFlags&15990||o){o=Zc.transition,Zc.transition=null;var s=qt;qt=1;var c=Qc;Qc|=4,Xc.current=null,Ec(e,n),Vc(n,e),Ur(Ai),bn=!!ki,Ai=ki=null,e.current=n,Uc(n,e,a),bt(),Qc=c,qt=s,Zc.transition=o}else e.current=n;if(_l&&(_l=!1,vl=e,yl=a),o=e.pendingLanes,o===0&&(gl=null),At(n.stateNode,i),Dl(e,xt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(ml)throw ml=!1,e=hl,hl=null,e;return yl&1&&e.tag!==0&&Jl(),o=e.pendingLanes,o&1?e===xl?bl++:(bl=0,xl=e):bl=0,va(),null}function Jl(){if(vl!==null){var e=Jt(yl),t=Zc.transition,n=qt;try{if(Zc.transition=null,qt=16>e?16:e,vl===null)var i=!1;else{if(e=vl,vl=null,yl=0,Qc&6)throw Error(r(331));var a=Qc;for(Qc|=4,V=e.current;V!==null;){var o=V,s=o.child;if(V.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(V=u;V!==null;){var d=V;switch(d.tag){case 0:case 11:case 15:Dc(8,d,o)}var f=d.child;if(f!==null)f.return=d,V=f;else for(;V!==null;){d=V;var p=d.sibling,m=d.return;if(Ac(d),d===u){V=null;break}if(p!==null){p.return=m,V=p;break}V=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}V=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,V=s;else b:for(;V!==null;){if(o=V,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Dc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,V=v;break b}V=o.return}}var y=e.current;for(V=y;V!==null;){s=V;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,V=b;else b:for(s=y;V!==null;){if(c=V,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:Oc(9,c)}}catch(e){H(c,c.return,e)}if(c===s){V=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,V=x;break b}V=c.return}}if(Qc=a,va(),kt&&typeof kt.onPostCommitFiberRoot==`function`)try{kt.onPostCommitFiberRoot(Ot,e)}catch{}i=!0}return i}finally{qt=n,Zc.transition=t}}return!1}function Yl(e,t,n){t=Ns(n,t),t=Ls(e,t,1),e=uo(e,t,1),t=wl(),e!==null&&(Wt(e,1,t),Dl(e,t))}function H(e,t,n){if(e.tag===3)Yl(e,e,n);else for(;t!==null;){if(t.tag===3){Yl(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(gl===null||!gl.has(r))){e=Ns(n,e),e=Rs(t,e,1),t=uo(t,e,1),e=wl(),t!==null&&(Wt(t,1,e),Dl(t,e));break}}t=t.return}}function Xl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=wl(),e.pingedLanes|=e.suspendedLanes&n,$c===e&&(tl&n)===n&&(il===4||il===3&&(tl&130023424)===tl&&500>xt()-dl?Ll(e,0):cl|=n),Dl(e,t)}function Zl(e,t){t===0&&(e.mode&1?(t=It,It<<=1,!(It&130023424)&&(It=4194304)):t=1);var n=wl();e=ao(e,t),e!==null&&(Wt(e,t,n),Dl(e,n))}function Ql(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Zl(e,n)}function $l(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),Zl(e,n)}var eu=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ia.current)Us=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Us=!1,fc(e,t,n);Us=!!(e.flags&131072)}else Us=!1,Na&&t.flags&1048576&&Oa(t,xa,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;uc(e,t),e=t.pendingProps;var a=oa(t,ra.current);to(t,n),a=Bo(null,t,i,e,a,n);var o=Vo();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,sa(i)?(o=!0,da(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,so(t),a.updater=Os,t.stateNode=a,a._reactInternals=t,Ms(t,i,e,n),t=Qs(null,t,i,!0,o,n)):(t.tag=0,Na&&o&&ka(t),Ws(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(uc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=au(i),e=Es(i,e),a){case 0:t=Xs(null,t,i,e,n);break a;case 1:t=Zs(null,t,i,e,n);break a;case 11:t=Gs(null,t,i,e,n);break a;case 14:t=Ks(null,t,i,Es(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),Xs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),Zs(e,t,i,a,n);case 3:a:{if($s(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,co(e,t),po(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated)if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ns(Error(r(423)),t),t=ec(e,t,i,n,a);break a}else if(i!==a){a=Ns(Error(r(424)),t),t=ec(e,t,i,n,a);break a}else for(Ma=Ri(t.stateNode.containerInfo.firstChild),ja=t,Na=!0,Pa=null,n=Ya(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Va(),i===a){t=dc(e,t,n);break a}Ws(e,t,i,n)}t=t.child}return t;case 5:return So(t),e===null&&Ra(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,ji(i,a)?s=null:o!==null&&ji(i,o)&&(t.flags|=32),Ys(e,t),Ws(e,t,s,n),t.child;case 6:return e===null&&Ra(t),null;case 13:return rc(e,t,n);case 4:return bo(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ja(t,null,i,n):Ws(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),Gs(e,t,i,a,n);case 7:return Ws(e,t,t.pendingProps,n),t.child;case 8:return Ws(e,t,t.pendingProps.children,n),t.child;case 12:return Ws(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,ta(Xa,i._currentValue),i._currentValue=s,o!==null)if(Ir(o.value,s)){if(o.children===a.children&&!ia.current){t=dc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=lo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),eo(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),eo(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ws(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,to(t,n),a=z(a),i=i(a),t.flags|=1,Ws(e,t,i,n),t.child;case 14:return i=t.type,a=Es(i,t.pendingProps),a=Es(i.type,a),Ks(e,t,i,a,n);case 15:return qs(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Es(i,a),uc(e,t),t.tag=1,sa(i)?(e=!0,da(t)):e=!1,to(t,n),As(t,i,a),Ms(t,i,a,n),Qs(null,t,i,!0,e,n);case 19:return lc(e,t,n);case 22:return Js(e,t,n)}throw Error(r(156,t.tag))};function tu(e,t){return _t(e,t)}function nu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ru(e,t,n,r){return new nu(e,t,n,r)}function iu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function au(e){if(typeof e==`function`)return iu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j)return 11;if(e===ee)return 14}return 2}function ou(e,t){var n=e.alternate;return n===null?(n=ru(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function su(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)iu(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return cu(n.children,a,o,t);case D:s=8,a|=8;break;case O:return e=ru(12,n,t,a|2),e.elementType=O,e.lanes=o,e;case M:return e=ru(13,n,t,a),e.elementType=M,e.lanes=o,e;case N:return e=ru(19,n,t,a),e.elementType=N,e.lanes=o,e;case ne:return lu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case k:s=10;break a;case A:s=9;break a;case j:s=11;break a;case ee:s=14;break a;case te:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=ru(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function cu(e,t,n,r){return e=ru(7,e,r,t),e.lanes=n,e}function lu(e,t,n,r){return e=ru(22,e,r,t),e.elementType=ne,e.lanes=n,e.stateNode={isHidden:!1},e}function uu(e,t,n){return e=ru(6,e,null,t),e.lanes=n,e}function du(e,t,n){return t=ru(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function fu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function pu(e,t,n,r,i,a,o,s,c){return e=new fu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=ru(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},so(a),e}function mu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function hu(e){if(!e)return na;e=e._reactInternals;a:{if(dt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(sa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(sa(n))return ua(e,n,t)}return t}function gu(e,t,n,r,i,a,o,s,c){return e=pu(n,r,!0,e,i,a,o,s,c),e.context=hu(null),n=e.current,r=wl(),i=Tl(n),a=lo(r,i),a.callback=t??null,uo(n,a,i),e.current.lanes=i,Wt(e,i,r),Dl(e,r),e}function _u(e,t,n,r){var i=t.current,a=wl(),o=Tl(i);return n=hu(n),t.context===null?t.context=n:t.pendingContext=n,t=lo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=uo(i,t,o),e!==null&&(El(e,i,o,a),B(e,i,o)),o}function vu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function yu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function bu(e,t){yu(e,t),(e=e.alternate)&&yu(e,t)}function xu(){return null}var Su=typeof reportError==`function`?reportError:function(e){console.error(e)};function Cu(e){this._internalRoot=e}U.prototype.render=Cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));_u(e,t,null,null)},U.prototype.unmount=Cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Fl(function(){_u(null,e,null,null)}),t[Ui]=null}};function U(e){this._internalRoot=e}U.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<cn.length&&t!==0&&t<cn[n].priority;n++);cn.splice(n,0,e),n===0&&pn(e)}};function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Tu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Eu(){}function Du(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=vu(o);a.call(e)}}var o=gu(t,r,e,0,null,!1,!1,``,Eu);return e._reactRootContainer=o,e[Ui]=o.current,_i(e.nodeType===8?e.parentNode:e),Fl(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=vu(c);s.call(e)}}var c=pu(e,0,!1,null,null,!1,!1,``,Eu);return e._reactRootContainer=c,e[Ui]=c.current,_i(e.nodeType===8?e.parentNode:e),Fl(function(){_u(t,c,n,r)}),c}function Ou(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=vu(o);s.call(e)}}_u(t,o,e,i)}else o=Du(n,t,e,i,r);return vu(o)}Yt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lt(t.pendingLanes);n!==0&&(Kt(t,n|1),Dl(t,xt()),!(Qc&6)&&(fl=xt()+500,va()))}break;case 13:Fl(function(){var t=ao(e,1);t!==null&&El(t,e,1,wl())}),bu(e,1)}},Xt=function(e){if(e.tag===13){var t=ao(e,134217728);t!==null&&El(t,e,134217728,wl()),bu(e,134217728)}},Zt=function(e){if(e.tag===13){var t=Tl(e),n=ao(e,t);n!==null&&El(n,e,t,wl()),bu(e,t)}},Qt=function(){return qt},$t=function(e,t){var n=qt;try{return qt=e,t()}finally{qt=n}},We=function(e,t,n){switch(t){case`input`:if(xe(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Xi(i);if(!a)throw Error(r(90));ge(i),xe(i,a)}}}break;case`textarea`:Oe(e,n);break;case`select`:t=n.value,t!=null&&Te(e,!!n.multiple,t,!1)}},Xe=Pl,Ze=Fl;var ku={usingClientEntryPoint:!1,Events:[Ji,Yi,Xi,Je,Ye,Pl]},Au={findFiberByHostInstance:qi,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},ju={bundleType:Au.bundleType,version:Au.version,rendererPackageName:Au.rendererPackageName,rendererConfig:Au.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:Au.findFiberByHostInstance||xu,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Mu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mu.isDisabled&&Mu.supportsFiber)try{Ot=Mu.inject(ju),kt=Mu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ku,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!wu(t))throw Error(r(200));return mu(e,t,null,n)},e.createRoot=function(e,t){if(!wu(e))throw Error(r(299));var n=!1,i=``,a=Su;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=pu(e,1,!1,null,null,n,!1,i,a),e[Ui]=t.current,_i(e.nodeType===8?e.parentNode:e),new Cu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Fl(e)},e.hydrate=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!wu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Su;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=gu(t,null,e,1,n??null,a,!1,o,s),e[Ui]=t.current,_i(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new U(t)},e.render=function(e,t,n){if(!Tu(t))throw Error(r(200));return Ou(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Tu(e))throw Error(r(40));return e._reactRootContainer?(Fl(function(){Ou(null,null,e,!1,function(){e._reactRootContainer=null,e[Ui]=null})}),!0):!1},e.unstable_batchedUpdates=Pl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Tu(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Ou(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),g=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=h()})),_=s((e=>{var t=g();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot}));Object.freeze({status:`aborted`});function v(e,t,n){function r(n,r){if(n._zod||Object.defineProperty(n,`_zod`,{value:{def:r,constr:o,traits:new Set},enumerable:!1}),n._zod.traits.has(e))return;n._zod.traits.add(e),t(n,r);let i=o.prototype,a=Object.keys(i);for(let e=0;e<a.length;e++){let t=a[e];t in n||(n[t]=i[t].bind(n))}}let i=n?.Parent??Object;class a extends i{}Object.defineProperty(a,`name`,{value:e});function o(e){var t;let i=n?.Parent?new a:this;r(i,e),(t=i._zod).deferred??(t.deferred=[]);for(let e of i._zod.deferred)e();return i}return Object.defineProperty(o,`init`,{value:r}),Object.defineProperty(o,Symbol.hasInstance,{value:t=>n?.Parent&&t instanceof n.Parent?!0:t?._zod?.traits?.has(e)}),Object.defineProperty(o,`name`,{value:e}),o}var y=class extends Error{constructor(){super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`)}},b=class extends Error{constructor(e){super(`Encountered unidirectional transform during encode: ${e}`),this.name=`ZodEncodeError`}},x={};function S(e){return e&&Object.assign(x,e),x}function C(e){let t=Object.values(e).filter(e=>typeof e==`number`);return Object.entries(e).filter(([e,n])=>t.indexOf(+e)===-1).map(([e,t])=>t)}function w(e,t){return typeof t==`bigint`?t.toString():t}function T(e){return{get value(){{let t=e();return Object.defineProperty(this,`value`,{value:t}),t}throw Error(`cached value already set`)}}}function E(e){return e==null}function D(e){let t=e.startsWith(`^`)?1:0,n=e.endsWith(`$`)?e.length-1:e.length;return e.slice(t,n)}function O(e,t){let n=(e.toString().split(`.`)[1]||``).length,r=t.toString(),i=(r.split(`.`)[1]||``).length;if(i===0&&/\d?e-\d?/.test(r)){let e=r.match(/\d?e-(\d?)/);e?.[1]&&(i=Number.parseInt(e[1]))}let a=n>i?n:i;return Number.parseInt(e.toFixed(a).replace(`.`,``))%Number.parseInt(t.toFixed(a).replace(`.`,``))/10**a}var k=Symbol(`evaluating`);function A(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==k)return r===void 0&&(r=k,r=n()),r},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}function j(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function M(...e){let t={};for(let n of e)Object.assign(t,Object.getOwnPropertyDescriptors(n));return Object.defineProperties({},t)}function N(e){return JSON.stringify(e)}function ee(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,``).replace(/[\s_-]+/g,`-`).replace(/^-+|-+$/g,``)}var te=`captureStackTrace`in Error?Error.captureStackTrace:(...e)=>{};function ne(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var re=T(()=>{if(typeof navigator<`u`&&navigator?.userAgent?.includes(`Cloudflare`))return!1;try{return Function(``),!0}catch{return!1}});function ie(e){if(ne(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!=`function`)return!0;let n=t.prototype;return!(ne(n)===!1||Object.prototype.hasOwnProperty.call(n,`isPrototypeOf`)===!1)}function ae(e){return ie(e)?{...e}:Array.isArray(e)?[...e]:e}var oe=new Set([`string`,`number`,`symbol`]);function se(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function ce(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function P(e){let t=e;if(!t)return{};if(typeof t==`string`)return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error==`string`?{...t,error:()=>t.error}:t}function le(e){return Object.keys(e).filter(t=>e[t]._zod.optin===`optional`&&e[t]._zod.optout===`optional`)}var ue={safeint:[-(2**53-1),2**53-1],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function de(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.pick() cannot be used on object schemas containing refinements`);return ce(e,M(e._zod.def,{get shape(){let e={};for(let r in t){if(!(r in n.shape))throw Error(`Unrecognized key: "${r}"`);t[r]&&(e[r]=n.shape[r])}return j(this,`shape`,e),e},checks:[]}))}function fe(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw Error(`.omit() cannot be used on object schemas containing refinements`);return ce(e,M(e._zod.def,{get shape(){let r={...e._zod.def.shape};for(let e in t){if(!(e in n.shape))throw Error(`Unrecognized key: "${e}"`);t[e]&&delete r[e]}return j(this,`shape`,r),r},checks:[]}))}function pe(e,t){if(!ie(t))throw Error(`Invalid input to extend: expected a plain object`);let n=e._zod.def.checks;if(n&&n.length>0){let n=e._zod.def.shape;for(let e in t)if(Object.getOwnPropertyDescriptor(n,e)!==void 0)throw Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ce(e,M(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return j(this,`shape`,n),n}}))}function me(e,t){if(!ie(t))throw Error(`Invalid input to safeExtend: expected a plain object`);return ce(e,M(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t};return j(this,`shape`,n),n}}))}function he(e,t){return ce(e,M(e._zod.def,{get shape(){let n={...e._zod.def.shape,...t._zod.def.shape};return j(this,`shape`,n),n},get catchall(){return t._zod.def.catchall},checks:[]}))}function ge(e,t,n){let r=t._zod.def.checks;if(r&&r.length>0)throw Error(`.partial() cannot be used on object schemas containing refinements`);return ce(t,M(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in r))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t])}else for(let t in r)i[t]=e?new e({type:`optional`,innerType:r[t]}):r[t];return j(this,`shape`,i),i},checks:[]}))}function _e(e,t,n){return ce(t,M(t._zod.def,{get shape(){let r=t._zod.def.shape,i={...r};if(n)for(let t in n){if(!(t in i))throw Error(`Unrecognized key: "${t}"`);n[t]&&(i[t]=new e({type:`nonoptional`,innerType:r[t]}))}else for(let t in r)i[t]=new e({type:`nonoptional`,innerType:r[t]});return j(this,`shape`,i),i}}))}function ve(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function ye(e,t){return t.map(t=>{var n;return(n=t).path??(n.path=[]),t.path.unshift(e),t})}function be(e){return typeof e==`string`?e:e?.message}function xe(e,t,n){let r={...e,path:e.path??[]};return e.message||(r.message=be(e.inst?._zod.def?.error?.(e))??be(t?.error?.(e))??be(n.customError?.(e))??be(n.localeError?.(e))??`Invalid input`),delete r.inst,delete r.continue,t?.reportInput||delete r.input,r}function Se(e){return Array.isArray(e)?`array`:typeof e==`string`?`string`:`unknown`}function Ce(...e){let[t,n,r]=e;return typeof t==`string`?{message:t,code:`custom`,input:n,inst:r}:{...t}}var we=(e,t)=>{e.name=`$ZodError`,Object.defineProperty(e,`_zod`,{value:e._zod,enumerable:!1}),Object.defineProperty(e,`issues`,{value:t,enumerable:!1}),e.message=JSON.stringify(t,w,2),Object.defineProperty(e,`toString`,{value:()=>e.message,enumerable:!1})},Te=v(`$ZodError`,we),Ee=v(`$ZodError`,we,{Parent:Error});function De(e,t=e=>e.message){let n={},r=[];for(let i of e.issues)i.path.length>0?(n[i.path[0]]=n[i.path[0]]||[],n[i.path[0]].push(t(i))):r.push(t(i));return{formErrors:r,fieldErrors:n}}function Oe(e,t=e=>e.message){let n={_errors:[]},r=e=>{for(let i of e.issues)if(i.code===`invalid_union`&&i.errors.length)i.errors.map(e=>r({issues:e}));else if(i.code===`invalid_key`)r({issues:i.issues});else if(i.code===`invalid_element`)r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let e=n,r=0;for(;r<i.path.length;){let n=i.path[r];r===i.path.length-1?(e[n]=e[n]||{_errors:[]},e[n]._errors.push(t(i))):e[n]=e[n]||{_errors:[]},e=e[n],r++}}};return r(e),n}var ke=e=>(t,n,r,i)=>{let a=r?Object.assign(r,{async:!1}):{async:!1},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise)throw new y;if(o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>xe(e,a,S())));throw te(t,i?.callee),t}return o.value},Ae=e=>async(t,n,r,i)=>{let a=r?Object.assign(r,{async:!0}):{async:!0},o=t._zod.run({value:n,issues:[]},a);if(o instanceof Promise&&(o=await o),o.issues.length){let t=new(i?.Err??e)(o.issues.map(e=>xe(e,a,S())));throw te(t,i?.callee),t}return o.value},je=e=>(t,n,r)=>{let i=r?{...r,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new y;return a.issues.length?{success:!1,error:new(e??Te)(a.issues.map(e=>xe(e,i,S())))}:{success:!0,data:a.value}},Me=je(Ee),Ne=e=>async(t,n,r)=>{let i=r?Object.assign(r,{async:!0}):{async:!0},a=t._zod.run({value:n,issues:[]},i);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(e=>xe(e,i,S())))}:{success:!0,data:a.value}},Pe=Ne(Ee),Fe=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return ke(e)(t,n,i)},Ie=e=>(t,n,r)=>ke(e)(t,n,r),Le=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ae(e)(t,n,i)},Re=e=>async(t,n,r)=>Ae(e)(t,n,r),ze=e=>(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return je(e)(t,n,i)},Be=e=>(t,n,r)=>je(e)(t,n,r),Ve=e=>async(t,n,r)=>{let i=r?Object.assign(r,{direction:`backward`}):{direction:`backward`};return Ne(e)(t,n,i)},He=e=>async(t,n,r)=>Ne(e)(t,n,r),Ue=/^[cC][^\s-]{8,}$/,We=/^[0-9a-z]+$/,Ge=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,Ke=/^[0-9a-vA-V]{20}$/,qe=/^[A-Za-z0-9]{27}$/,Je=/^[a-zA-Z0-9_-]{21}$/,Ye=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xe=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ze=e=>e?RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Qe=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,$e=`^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$`;function et(){return new RegExp($e,`u`)}var tt=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,nt=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,rt=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,it=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,at=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ot=/^[A-Za-z0-9_-]*$/,st=/^\+[1-9]\d{6,14}$/,ct=`(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`,lt=RegExp(`^${ct}$`);function ut(e){let t=`(?:[01]\\d|2[0-3]):[0-5]\\d`;return typeof e.precision==`number`?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function dt(e){return RegExp(`^${ut(e)}$`)}function ft(e){let t=ut({precision:e.precision}),n=[`Z`];e.local&&n.push(``),e.offset&&n.push(`([+-](?:[01]\\d|2[0-3]):[0-5]\\d)`);let r=`${t}(?:${n.join(`|`)})`;return RegExp(`^${ct}T(?:${r})$`)}var pt=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??``}}`:`[\\s\\S]*`;return RegExp(`^${t}$`)},mt=/^-?\d+$/,ht=/^-?\d+(?:\.\d+)?$/,gt=/^(?:true|false)$/i,_t=/^null$/i,vt=/^undefined$/i,yt=/^[^A-Z]*$/,bt=/^[^a-z]*$/,xt=v(`$ZodCheck`,(e,t)=>{var n;e._zod??={},e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),St={number:`number`,bigint:`bigint`,object:`date`},Ct=v(`$ZodCheckLessThan`,(e,t)=>{xt.init(e,t);let n=St[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.maximum:n.exclusiveMaximum)??1/0;t.value<r&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:`too_big`,maximum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wt=v(`$ZodCheckGreaterThan`,(e,t)=>{xt.init(e,t);let n=St[typeof t.value];e._zod.onattach.push(e=>{let n=e._zod.bag,r=(t.inclusive?n.minimum:n.exclusiveMinimum)??-1/0;t.value>r&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:`too_small`,minimum:typeof t.value==`object`?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Tt=v(`$ZodCheckMultipleOf`,(e,t)=>{xt.init(e,t),e._zod.onattach.push(e=>{var n;(n=e._zod.bag).multipleOf??(n.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw Error(`Cannot mix number and bigint in multiple_of check.`);(typeof n.value==`bigint`?n.value%t.value===BigInt(0):O(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:`not_multiple_of`,divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Et=v(`$ZodCheckNumberFormat`,(e,t)=>{xt.init(e,t),t.format=t.format||`float64`;let n=t.format?.includes(`int`),r=n?`int`:`number`,[i,a]=ue[t.format];e._zod.onattach.push(e=>{let r=e._zod.bag;r.format=t.format,r.minimum=i,r.maximum=a,n&&(r.pattern=mt)}),e._zod.check=o=>{let s=o.value;if(n){if(!Number.isInteger(s)){o.issues.push({expected:r,format:t.format,code:`invalid_type`,continue:!1,input:s,inst:e});return}if(!Number.isSafeInteger(s)){s>0?o.issues.push({input:s,code:`too_big`,maximum:2**53-1,note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort}):o.issues.push({input:s,code:`too_small`,minimum:-(2**53-1),note:`Integers must be within the safe integer range.`,inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}s<i&&o.issues.push({origin:`number`,input:s,code:`too_small`,minimum:i,inclusive:!0,inst:e,continue:!t.abort}),s>a&&o.issues.push({origin:`number`,input:s,code:`too_big`,maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),Dt=v(`$ZodCheckMaxLength`,(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!E(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.maximum??1/0;t.maximum<n&&(e._zod.bag.maximum=t.maximum)}),e._zod.check=n=>{let r=n.value;if(r.length<=t.maximum)return;let i=Se(r);n.issues.push({origin:i,code:`too_big`,maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ot=v(`$ZodCheckMinLength`,(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!E(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag.minimum??-1/0;t.minimum>n&&(e._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let r=n.value;if(r.length>=t.minimum)return;let i=Se(r);n.issues.push({origin:i,code:`too_small`,minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),kt=v(`$ZodCheckLengthEquals`,(e,t)=>{var n;xt.init(e,t),(n=e._zod.def).when??(n.when=e=>{let t=e.value;return!E(t)&&t.length!==void 0}),e._zod.onattach.push(e=>{let n=e._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=n=>{let r=n.value,i=r.length;if(i===t.length)return;let a=Se(r),o=i>t.length;n.issues.push({origin:a,...o?{code:`too_big`,maximum:t.length}:{code:`too_small`,minimum:t.length},inclusive:!0,exact:!0,input:n.value,inst:e,continue:!t.abort})}}),At=v(`$ZodCheckStringFormat`,(e,t)=>{var n,r;xt.init(e,t),e._zod.onattach.push(e=>{let n=e._zod.bag;n.format=t.format,t.pattern&&(n.patterns??=new Set,n.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),jt=v(`$ZodCheckRegex`,(e,t)=>{At.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:`string`,code:`invalid_format`,format:`regex`,input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Mt=v(`$ZodCheckLowerCase`,(e,t)=>{t.pattern??=yt,At.init(e,t)}),Nt=v(`$ZodCheckUpperCase`,(e,t)=>{t.pattern??=bt,At.init(e,t)}),Pt=v(`$ZodCheckIncludes`,(e,t)=>{xt.init(e,t);let n=se(t.includes),r=new RegExp(typeof t.position==`number`?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(r)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:`string`,code:`invalid_format`,format:`includes`,includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),Ft=v(`$ZodCheckStartsWith`,(e,t)=>{xt.init(e,t);let n=RegExp(`^${se(t.prefix)}.*`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.startsWith(t.prefix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`starts_with`,prefix:t.prefix,input:n.value,inst:e,continue:!t.abort})}}),It=v(`$ZodCheckEndsWith`,(e,t)=>{xt.init(e,t);let n=RegExp(`.*${se(t.suffix)}$`);t.pattern??=n,e._zod.onattach.push(e=>{let t=e._zod.bag;t.patterns??=new Set,t.patterns.add(n)}),e._zod.check=n=>{n.value.endsWith(t.suffix)||n.issues.push({origin:`string`,code:`invalid_format`,format:`ends_with`,suffix:t.suffix,input:n.value,inst:e,continue:!t.abort})}}),Lt=v(`$ZodCheckOverwrite`,(e,t)=>{xt.init(e,t),e._zod.check=e=>{e.value=t.tx(e.value)}}),Rt=class{constructor(e=[]){this.content=[],this.indent=0,this&&(this.args=e)}indented(e){this.indent+=1,e(this),--this.indent}write(e){if(typeof e==`function`){e(this,{execution:`sync`}),e(this,{execution:`async`});return}let t=e.split(`
15
15
  `).filter(e=>e),n=Math.min(...t.map(e=>e.length-e.trimStart().length)),r=t.map(e=>e.slice(n)).map(e=>` `.repeat(this.indent*2)+e);for(let e of r)this.content.push(e)}compile(){let e=Function,t=this?.args,n=[...(this?.content??[``]).map(e=>` ${e}`)];return new e(...t,n.join(`
16
- `))}},Vt={major:4,minor:3,patch:6},Ht=_(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Vt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=be(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new v;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=be(e,t))});else{if(e.issues.length===t)continue;r||=be(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(be(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new v;return o.then(e=>t(e,r,a))}return t(o,r,a)}}k(e,`~standard`,()=>({validate:t=>{try{let n=Pe(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Ie(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Ut=_(`$ZodString`,(e,t)=>{Ht.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??ht(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Wt=_(`$ZodStringFormat`,(e,t)=>{Mt.init(e,t),Ut.init(e,t)}),Gt=_(`$ZodGUID`,(e,t)=>{t.pattern??=Qe,Wt.init(e,t)}),Kt=_(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=$e(e)}else t.pattern??=$e();Wt.init(e,t)}),qt=_(`$ZodEmail`,(e,t)=>{t.pattern??=et,Wt.init(e,t)}),Jt=_(`$ZodURL`,(e,t)=>{Wt.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),Yt=_(`$ZodEmoji`,(e,t)=>{t.pattern??=nt(),Wt.init(e,t)}),Xt=_(`$ZodNanoID`,(e,t)=>{t.pattern??=Xe,Wt.init(e,t)}),Zt=_(`$ZodCUID`,(e,t)=>{t.pattern??=Ge,Wt.init(e,t)}),Qt=_(`$ZodCUID2`,(e,t)=>{t.pattern??=Ke,Wt.init(e,t)}),$t=_(`$ZodULID`,(e,t)=>{t.pattern??=qe,Wt.init(e,t)}),en=_(`$ZodXID`,(e,t)=>{t.pattern??=Je,Wt.init(e,t)}),tn=_(`$ZodKSUID`,(e,t)=>{t.pattern??=Ye,Wt.init(e,t)}),nn=_(`$ZodISODateTime`,(e,t)=>{t.pattern??=mt(t),Wt.init(e,t)}),rn=_(`$ZodISODate`,(e,t)=>{t.pattern??=dt,Wt.init(e,t)}),an=_(`$ZodISOTime`,(e,t)=>{t.pattern??=pt(t),Wt.init(e,t)}),on=_(`$ZodISODuration`,(e,t)=>{t.pattern??=Ze,Wt.init(e,t)}),sn=_(`$ZodIPv4`,(e,t)=>{t.pattern??=rt,Wt.init(e,t),e._zod.bag.format=`ipv4`}),cn=_(`$ZodIPv6`,(e,t)=>{t.pattern??=it,Wt.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),ln=_(`$ZodCIDRv4`,(e,t)=>{t.pattern??=at,Wt.init(e,t)}),un=_(`$ZodCIDRv6`,(e,t)=>{t.pattern??=ot,Wt.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function dn(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var fn=_(`$ZodBase64`,(e,t)=>{t.pattern??=st,Wt.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{dn(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function pn(e){if(!ct.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return dn(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var mn=_(`$ZodBase64URL`,(e,t)=>{t.pattern??=ct,Wt.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{pn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),hn=_(`$ZodE164`,(e,t)=>{t.pattern??=lt,Wt.init(e,t)});function gn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var _n=_(`$ZodJWT`,(e,t)=>{Wt.init(e,t),e._zod.check=n=>{gn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),vn=_(`$ZodNumber`,(e,t)=>{Ht.init(e,t),e._zod.pattern=e._zod.bag.pattern??_t,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),yn=_(`$ZodNumberFormat`,(e,t)=>{Ot.init(e,t),vn.init(e,t)}),bn=_(`$ZodBoolean`,(e,t)=>{Ht.init(e,t),e._zod.pattern=vt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),xn=_(`$ZodUndefined`,(e,t)=>{Ht.init(e,t),e._zod.pattern=bt,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),Sn=_(`$ZodNull`,(e,t)=>{Ht.init(e,t),e._zod.pattern=yt,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),Cn=_(`$ZodUnknown`,(e,t)=>{Ht.init(e,t),e._zod.parse=e=>e}),wn=_(`$ZodNever`,(e,t)=>{Ht.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Tn(e,t,n){e.issues.length&&t.issues.push(...xe(n,e.issues)),t.value[n]=e.value}var En=_(`$ZodArray`,(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Tn(t,n,e))):Tn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Dn(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...xe(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function On(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=de(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function kn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Dn(e,n,i,t,u))):Dn(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var An=_(`$ZodObject`,(e,t)=>{if(Ht.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=w(()=>On(t));k(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ie,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Dn(n,t,e,s,r))):Dn(i,t,e,s,r)}return i?kn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),jn=_(`$ZodObjectJIT`,(e,t)=>{An.init(e,t);let n=e._zod.parse,r=w(()=>On(t)),i=e=>{let t=new Bt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=ne(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=ne(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
16
+ `))}},zt={major:4,minor:3,patch:6},Bt=v(`$ZodType`,(e,t)=>{var n;e??={},e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zt;let r=[...e._zod.def.checks??[]];e._zod.traits.has(`$ZodCheck`)&&r.unshift(e);for(let t of r)for(let n of t._zod.onattach)n(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let t=(e,t,n)=>{let r=ve(e),i;for(let a of t){if(a._zod.def.when){if(!a._zod.def.when(e))continue}else if(r)continue;let t=e.issues.length,o=a._zod.check(e);if(o instanceof Promise&&n?.async===!1)throw new y;if(i||o instanceof Promise)i=(i??Promise.resolve()).then(async()=>{await o,e.issues.length!==t&&(r||=ve(e,t))});else{if(e.issues.length===t)continue;r||=ve(e,t)}}return i?i.then(()=>e):e},n=(n,i,a)=>{if(ve(n))return n.aborted=!0,n;let o=t(i,r,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(t=>e._zod.parse(t,a))}return e._zod.parse(o,a)};e._zod.run=(i,a)=>{if(a.skipChecks)return e._zod.parse(i,a);if(a.direction===`backward`){let t=e._zod.parse({value:i.value,issues:[]},{...a,skipChecks:!0});return t instanceof Promise?t.then(e=>n(e,i,a)):n(t,i,a)}let o=e._zod.parse(i,a);if(o instanceof Promise){if(a.async===!1)throw new y;return o.then(e=>t(e,r,a))}return t(o,r,a)}}A(e,`~standard`,()=>({validate:t=>{try{let n=Me(e,t);return n.success?{value:n.data}:{issues:n.error?.issues}}catch{return Pe(e,t).then(e=>e.success?{value:e.data}:{issues:e.error?.issues})}},vendor:`zod`,version:1}))}),Vt=v(`$ZodString`,(e,t)=>{Bt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??pt(e._zod.bag),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value==`string`||n.issues.push({expected:`string`,code:`invalid_type`,input:n.value,inst:e}),n}}),Ht=v(`$ZodStringFormat`,(e,t)=>{At.init(e,t),Vt.init(e,t)}),Ut=v(`$ZodGUID`,(e,t)=>{t.pattern??=Xe,Ht.init(e,t)}),Wt=v(`$ZodUUID`,(e,t)=>{if(t.version){let e={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(e===void 0)throw Error(`Invalid UUID version: "${t.version}"`);t.pattern??=Ze(e)}else t.pattern??=Ze();Ht.init(e,t)}),Gt=v(`$ZodEmail`,(e,t)=>{t.pattern??=Qe,Ht.init(e,t)}),Kt=v(`$ZodURL`,(e,t)=>{Ht.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),i=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid hostname`,pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(`:`)?i.protocol.slice(0,-1):i.protocol)||n.issues.push({code:`invalid_format`,format:`url`,note:`Invalid protocol`,pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=i.href:n.value=r;return}catch{n.issues.push({code:`invalid_format`,format:`url`,input:n.value,inst:e,continue:!t.abort})}}}),qt=v(`$ZodEmoji`,(e,t)=>{t.pattern??=et(),Ht.init(e,t)}),Jt=v(`$ZodNanoID`,(e,t)=>{t.pattern??=Je,Ht.init(e,t)}),Yt=v(`$ZodCUID`,(e,t)=>{t.pattern??=Ue,Ht.init(e,t)}),Xt=v(`$ZodCUID2`,(e,t)=>{t.pattern??=We,Ht.init(e,t)}),Zt=v(`$ZodULID`,(e,t)=>{t.pattern??=Ge,Ht.init(e,t)}),Qt=v(`$ZodXID`,(e,t)=>{t.pattern??=Ke,Ht.init(e,t)}),$t=v(`$ZodKSUID`,(e,t)=>{t.pattern??=qe,Ht.init(e,t)}),en=v(`$ZodISODateTime`,(e,t)=>{t.pattern??=ft(t),Ht.init(e,t)}),tn=v(`$ZodISODate`,(e,t)=>{t.pattern??=lt,Ht.init(e,t)}),nn=v(`$ZodISOTime`,(e,t)=>{t.pattern??=dt(t),Ht.init(e,t)}),rn=v(`$ZodISODuration`,(e,t)=>{t.pattern??=Ye,Ht.init(e,t)}),an=v(`$ZodIPv4`,(e,t)=>{t.pattern??=tt,Ht.init(e,t),e._zod.bag.format=`ipv4`}),on=v(`$ZodIPv6`,(e,t)=>{t.pattern??=nt,Ht.init(e,t),e._zod.bag.format=`ipv6`,e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:`invalid_format`,format:`ipv6`,input:n.value,inst:e,continue:!t.abort})}}}),sn=v(`$ZodCIDRv4`,(e,t)=>{t.pattern??=rt,Ht.init(e,t)}),cn=v(`$ZodCIDRv6`,(e,t)=>{t.pattern??=it,Ht.init(e,t),e._zod.check=n=>{let r=n.value.split(`/`);try{if(r.length!==2)throw Error();let[e,t]=r;if(!t)throw Error();let n=Number(t);if(`${n}`!==t||n<0||n>128)throw Error();new URL(`http://[${e}]`)}catch{n.issues.push({code:`invalid_format`,format:`cidrv6`,input:n.value,inst:e,continue:!t.abort})}}});function ln(e){if(e===``)return!0;if(e.length%4!=0)return!1;try{return atob(e),!0}catch{return!1}}var un=v(`$ZodBase64`,(e,t)=>{t.pattern??=at,Ht.init(e,t),e._zod.bag.contentEncoding=`base64`,e._zod.check=n=>{ln(n.value)||n.issues.push({code:`invalid_format`,format:`base64`,input:n.value,inst:e,continue:!t.abort})}});function dn(e){if(!ot.test(e))return!1;let t=e.replace(/[-_]/g,e=>e===`-`?`+`:`/`);return ln(t.padEnd(Math.ceil(t.length/4)*4,`=`))}var fn=v(`$ZodBase64URL`,(e,t)=>{t.pattern??=ot,Ht.init(e,t),e._zod.bag.contentEncoding=`base64url`,e._zod.check=n=>{dn(n.value)||n.issues.push({code:`invalid_format`,format:`base64url`,input:n.value,inst:e,continue:!t.abort})}}),pn=v(`$ZodE164`,(e,t)=>{t.pattern??=st,Ht.init(e,t)});function mn(e,t=null){try{let n=e.split(`.`);if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let i=JSON.parse(atob(r));return!(`typ`in i&&i?.typ!==`JWT`||!i.alg||t&&(!(`alg`in i)||i.alg!==t))}catch{return!1}}var hn=v(`$ZodJWT`,(e,t)=>{Ht.init(e,t),e._zod.check=n=>{mn(n.value,t.alg)||n.issues.push({code:`invalid_format`,format:`jwt`,input:n.value,inst:e,continue:!t.abort})}}),gn=v(`$ZodNumber`,(e,t)=>{Bt.init(e,t),e._zod.pattern=e._zod.bag.pattern??ht,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let i=n.value;if(typeof i==`number`&&!Number.isNaN(i)&&Number.isFinite(i))return n;let a=typeof i==`number`?Number.isNaN(i)?`NaN`:Number.isFinite(i)?void 0:`Infinity`:void 0;return n.issues.push({expected:`number`,code:`invalid_type`,input:i,inst:e,...a?{received:a}:{}}),n}}),_n=v(`$ZodNumberFormat`,(e,t)=>{Et.init(e,t),gn.init(e,t)}),vn=v(`$ZodBoolean`,(e,t)=>{Bt.init(e,t),e._zod.pattern=gt,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let i=n.value;return typeof i==`boolean`||n.issues.push({expected:`boolean`,code:`invalid_type`,input:i,inst:e}),n}}),yn=v(`$ZodUndefined`,(e,t)=>{Bt.init(e,t),e._zod.pattern=vt,e._zod.values=new Set([void 0]),e._zod.optin=`optional`,e._zod.optout=`optional`,e._zod.parse=(t,n)=>{let r=t.value;return r===void 0||t.issues.push({expected:`undefined`,code:`invalid_type`,input:r,inst:e}),t}}),bn=v(`$ZodNull`,(e,t)=>{Bt.init(e,t),e._zod.pattern=_t,e._zod.values=new Set([null]),e._zod.parse=(t,n)=>{let r=t.value;return r===null||t.issues.push({expected:`null`,code:`invalid_type`,input:r,inst:e}),t}}),xn=v(`$ZodUnknown`,(e,t)=>{Bt.init(e,t),e._zod.parse=e=>e}),Sn=v(`$ZodNever`,(e,t)=>{Bt.init(e,t),e._zod.parse=(t,n)=>(t.issues.push({expected:`never`,code:`invalid_type`,input:t.value,inst:e}),t)});function Cn(e,t,n){e.issues.length&&t.issues.push(...ye(n,e.issues)),t.value[n]=e.value}var wn=v(`$ZodArray`,(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!Array.isArray(i))return n.issues.push({expected:`array`,code:`invalid_type`,input:i,inst:e}),n;n.value=Array(i.length);let a=[];for(let e=0;e<i.length;e++){let o=i[e],s=t.element._zod.run({value:o,issues:[]},r);s instanceof Promise?a.push(s.then(t=>Cn(t,n,e))):Cn(s,n,e)}return a.length?Promise.all(a).then(()=>n):n}});function Tn(e,t,n,r,i){if(e.issues.length){if(i&&!(n in r))return;t.issues.push(...ye(n,e.issues))}e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function En(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has(`$ZodType`))throw Error(`Invalid element at key "${n}": expected a Zod schema`);let n=le(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Dn(e,t,n,r,i,a){let o=[],s=i.keySet,c=i.catchall._zod,l=c.def.type,u=c.optout===`optional`;for(let i in t){if(s.has(i))continue;if(l===`never`){o.push(i);continue}let a=c.run({value:t[i],issues:[]},r);a instanceof Promise?e.push(a.then(e=>Tn(e,n,i,t,u))):Tn(a,n,i,t,u)}return o.length&&n.issues.push({code:`unrecognized_keys`,keys:o,input:t,inst:a}),e.length?Promise.all(e).then(()=>n):n}var On=v(`$ZodObject`,(e,t)=>{if(Bt.init(e,t),!Object.getOwnPropertyDescriptor(t,`shape`)?.get){let e=t.shape;Object.defineProperty(t,`shape`,{get:()=>{let n={...e};return Object.defineProperty(t,`shape`,{value:n}),n}})}let n=T(()=>En(t));A(e._zod,`propValues`,()=>{let e=t.shape,n={};for(let t in e){let r=e[t]._zod;if(r.values){n[t]??(n[t]=new Set);for(let e of r.values)n[t].add(e)}}return n});let r=ne,i=t.catchall,a;e._zod.parse=(t,o)=>{a??=n.value;let s=t.value;if(!r(s))return t.issues.push({expected:`object`,code:`invalid_type`,input:s,inst:e}),t;t.value={};let c=[],l=a.shape;for(let e of a.keys){let n=l[e],r=n._zod.optout===`optional`,i=n._zod.run({value:s[e],issues:[]},o);i instanceof Promise?c.push(i.then(n=>Tn(n,t,e,s,r))):Tn(i,t,e,s,r)}return i?Dn(c,s,t,o,n.value,e):c.length?Promise.all(c).then(()=>t):t}}),kn=v(`$ZodObjectJIT`,(e,t)=>{On.init(e,t);let n=e._zod.parse,r=T(()=>En(t)),i=e=>{let t=new Rt([`shape`,`payload`,`ctx`]),n=r.value,i=e=>{let t=N(e);return`shape[${t}]._zod.run({ value: input[${t}], issues: [] }, ctx)`};t.write(`const input = payload.value;`);let a=Object.create(null),o=0;for(let e of n.keys)a[e]=`key_${o++}`;t.write(`const newResult = {};`);for(let r of n.keys){let n=a[r],o=N(r),s=e[r]?._zod?.optout===`optional`;t.write(`const ${n} = ${i(r)};`),s?t.write(`
17
17
  if (${n}.issues.length) {
18
18
  if (${o} in input) {
19
19
  payload.issues = payload.issues.concat(${n}.issues.map(iss => ({
@@ -47,15 +47,15 @@ Error generating stack: `+e.message+`
47
47
  newResult[${o}] = ${n}.value;
48
48
  }
49
49
 
50
- `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ie,s=!b.jitless,c=s&&ae.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?kn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function Mn(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!be(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>Ce(e,r,x())))}),t)}var Nn=_(`$ZodUnion`,(e,t)=>{Ht.init(e,t),k(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),k(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),k(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),k(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>E(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>Mn(t,i,e,a)):Mn(s,i,e,a)}}),Pn=_(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Nn.init(e,t);let n=e._zod.parse;k(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=w(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ie(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),Fn=_(`$ZodIntersection`,(e,t)=>{Ht.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Ln(e,t,n)):Ln(e,i,a)}});function In(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(oe(e)&&oe(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=In(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=In(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Ln(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),be(e))return e;let o=In(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var Rn=_(`$ZodRecord`,(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!oe(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...xe(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...xe(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&_t.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Ce(e,r,x())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...xe(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...xe(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),zn=_(`$ZodEnum`,(e,t)=>{Ht.init(e,t);let n=S(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>ce.has(typeof e)).map(e=>typeof e==`string`?le(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Bn=_(`$ZodLiteral`,(e,t)=>{if(Ht.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?le(e):e?le(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Vn=_(`$ZodTransform`,(e,t)=>{Ht.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new y(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new v;return n.value=i,n}});function Hn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Un=_(`$ZodOptional`,(e,t)=>{Ht.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,k(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),k(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${E(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Hn(t,e.value)):Hn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Wn=_(`$ZodExactOptional`,(e,t)=>{Un.init(e,t),k(e._zod,`values`,()=>t.innerType._zod.values),k(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Gn=_(`$ZodNullable`,(e,t)=>{Ht.init(e,t),k(e._zod,`optin`,()=>t.innerType._zod.optin),k(e._zod,`optout`,()=>t.innerType._zod.optout),k(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${E(e.source)}|null)$`):void 0}),k(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Kn=_(`$ZodDefault`,(e,t)=>{Ht.init(e,t),e._zod.optin=`optional`,k(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>qn(e,t)):qn(r,t)}});function qn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Jn=_(`$ZodPrefault`,(e,t)=>{Ht.init(e,t),e._zod.optin=`optional`,k(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Yn=_(`$ZodNonOptional`,(e,t)=>{Ht.init(e,t),k(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Xn(t,e)):Xn(i,e)}});function Xn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Zn=_(`$ZodCatch`,(e,t)=>{Ht.init(e,t),k(e._zod,`optin`,()=>t.innerType._zod.optin),k(e._zod,`optout`,()=>t.innerType._zod.optout),k(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ce(e,n,x()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>Ce(e,n,x()))},input:e.value}),e.issues=[]),e)}}),Qn=_(`$ZodPipe`,(e,t)=>{Ht.init(e,t),k(e._zod,`values`,()=>t.in._zod.values),k(e._zod,`optin`,()=>t.in._zod.optin),k(e._zod,`optout`,()=>t.out._zod.optout),k(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>$n(e,t.in,n)):$n(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>$n(e,t.out,n)):$n(r,t.out,n)}});function $n(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var er=_(`$ZodReadonly`,(e,t)=>{Ht.init(e,t),k(e._zod,`propValues`,()=>t.innerType._zod.propValues),k(e._zod,`values`,()=>t.innerType._zod.values),k(e._zod,`optin`,()=>t.innerType?._zod?.optin),k(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(tr):tr(r)}});function tr(e){return e.value=Object.freeze(e.value),e}var nr=_(`$ZodCustom`,(e,t)=>{Ct.init(e,t),Ht.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>rr(t,n,r,e));rr(i,n,r,e)}});function rr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Te(e))}}var ir,ar=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function or(){return new ar}(ir=globalThis).__zod_globalRegistry??(ir.__zod_globalRegistry=or());var sr=globalThis.__zod_globalRegistry;function cr(e,t){return new e({type:`string`,...j(t)})}function lr(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...j(t)})}function ur(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...j(t)})}function dr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...j(t)})}function fr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...j(t)})}function pr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...j(t)})}function mr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...j(t)})}function hr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...j(t)})}function gr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...j(t)})}function _r(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...j(t)})}function vr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...j(t)})}function yr(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...j(t)})}function br(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...j(t)})}function xr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...j(t)})}function Sr(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...j(t)})}function Cr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...j(t)})}function wr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...j(t)})}function Tr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...j(t)})}function Er(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...j(t)})}function Dr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...j(t)})}function Or(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...j(t)})}function kr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...j(t)})}function Ar(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...j(t)})}function jr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...j(t)})}function Mr(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...j(t)})}function Nr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...j(t)})}function Pr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...j(t)})}function Fr(e,t){return new e({type:`number`,checks:[],...j(t)})}function Ir(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...j(t)})}function Lr(e,t){return new e({type:`boolean`,...j(t)})}function Rr(e,t){return new e({type:`undefined`,...j(t)})}function zr(e,t){return new e({type:`null`,...j(t)})}function Br(e){return new e({type:`unknown`})}function Vr(e,t){return new e({type:`never`,...j(t)})}function Hr(e,t){return new Tt({check:`less_than`,...j(t),value:e,inclusive:!1})}function Ur(e,t){return new Tt({check:`less_than`,...j(t),value:e,inclusive:!0})}function Wr(e,t){return new Et({check:`greater_than`,...j(t),value:e,inclusive:!1})}function Gr(e,t){return new Et({check:`greater_than`,...j(t),value:e,inclusive:!0})}function Kr(e,t){return new Dt({check:`multiple_of`,...j(t),value:e})}function qr(e,t){return new kt({check:`max_length`,...j(t),maximum:e})}function Jr(e,t){return new At({check:`min_length`,...j(t),minimum:e})}function Yr(e,t){return new jt({check:`length_equals`,...j(t),length:e})}function Xr(e,t){return new Nt({check:`string_format`,format:`regex`,...j(t),pattern:e})}function Zr(e){return new Pt({check:`string_format`,format:`lowercase`,...j(e)})}function Qr(e){return new Ft({check:`string_format`,format:`uppercase`,...j(e)})}function $r(e,t){return new It({check:`string_format`,format:`includes`,...j(t),includes:e})}function ei(e,t){return new Lt({check:`string_format`,format:`starts_with`,...j(t),prefix:e})}function ti(e,t){return new Rt({check:`string_format`,format:`ends_with`,...j(t),suffix:e})}function ni(e){return new zt({check:`overwrite`,tx:e})}function ri(e){return ni(t=>t.normalize(e))}function ii(){return ni(e=>e.trim())}function ai(){return ni(e=>e.toLowerCase())}function oi(){return ni(e=>e.toUpperCase())}function si(){return ni(e=>A(e))}function ci(e,t,n){return new e({type:`array`,element:t,...j(n)})}function li(e,t,n){let r=j(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function ui(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...j(n)})}function di(e){let t=fi(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Te(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Te(r))}},e(n.value,n)));return t}function fi(e,t){let n=new Ct({check:`custom`,...j(t)});return n._zod.check=e,n}function pi(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??sr,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function mi(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,mi(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&M(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function hi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
50
+ `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=ne,s=!x.jitless,c=s&&re.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Dn([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function An(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!ve(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>xe(e,r,S())))}),t)}var jn=v(`$ZodUnion`,(e,t)=>{Bt.init(e,t),A(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),A(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),A(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),A(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>D(e.source)).join(`|`)})$`)}});let n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(i,a)=>{if(n)return r(i,a);let o=!1,s=[];for(let e of t.options){let t=e._zod.run({value:i.value,issues:[]},a);if(t instanceof Promise)s.push(t),o=!0;else{if(t.issues.length===0)return t;s.push(t)}}return o?Promise.all(s).then(t=>An(t,i,e,a)):An(s,i,e,a)}}),Mn=v(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,jn.init(e,t);let n=e._zod.parse;A(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=T(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!ne(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,input:o,path:[t.discriminator],inst:e}),i)}}),Nn=v(`$ZodIntersection`,(e,t)=>{Bt.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Fn(e,t,n)):Fn(e,i,a)}});function Pn(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(ie(e)&&ie(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Pn(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Pn(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Fn(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),ve(e))return e;let o=Pn(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var In=v(`$ZodRecord`,(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!ie(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let e of o)if(typeof e==`string`||typeof e==`number`||typeof e==`symbol`){s.add(typeof e==`number`?e.toString():e);let o=t.valueType._zod.run({value:i[e],issues:[]},r);o instanceof Promise?a.push(o.then(t=>{t.issues.length&&n.issues.push(...ye(e,t.issues)),n.value[e]=t.value})):(o.issues.length&&n.issues.push(...ye(e,o.issues)),n.value[e]=o.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`)continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&ht.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>xe(e,r,S())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...ye(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...ye(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Ln=v(`$ZodEnum`,(e,t)=>{Bt.init(e,t);let n=C(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>oe.has(typeof e)).map(e=>typeof e==`string`?se(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Rn=v(`$ZodLiteral`,(e,t)=>{if(Bt.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?se(e):e?se(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),zn=v(`$ZodTransform`,(e,t)=>{Bt.init(e,t),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new b(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new y;return n.value=i,n}});function Bn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}var Vn=v(`$ZodOptional`,(e,t)=>{Bt.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,A(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),A(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>Bn(t,e.value)):Bn(r,e.value)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),Hn=v(`$ZodExactOptional`,(e,t)=>{Vn.init(e,t),A(e._zod,`values`,()=>t.innerType._zod.values),A(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),Un=v(`$ZodNullable`,(e,t)=>{Bt.init(e,t),A(e._zod,`optin`,()=>t.innerType._zod.optin),A(e._zod,`optout`,()=>t.innerType._zod.optout),A(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${D(e.source)}|null)$`):void 0}),A(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Wn=v(`$ZodDefault`,(e,t)=>{Bt.init(e,t),e._zod.optin=`optional`,A(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Gn(e,t)):Gn(r,t)}});function Gn(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Kn=v(`$ZodPrefault`,(e,t)=>{Bt.init(e,t),e._zod.optin=`optional`,A(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),qn=v(`$ZodNonOptional`,(e,t)=>{Bt.init(e,t),A(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Jn(t,e)):Jn(i,e)}});function Jn(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var Yn=v(`$ZodCatch`,(e,t)=>{Bt.init(e,t),A(e._zod,`optin`,()=>t.innerType._zod.optin),A(e._zod,`optout`,()=>t.innerType._zod.optout),A(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>xe(e,n,S()))},input:e.value}),e.issues=[]),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>xe(e,n,S()))},input:e.value}),e.issues=[]),e)}}),Xn=v(`$ZodPipe`,(e,t)=>{Bt.init(e,t),A(e._zod,`values`,()=>t.in._zod.values),A(e._zod,`optin`,()=>t.in._zod.optin),A(e._zod,`optout`,()=>t.out._zod.optout),A(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Zn(e,t.in,n)):Zn(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Zn(e,t.out,n)):Zn(r,t.out,n)}});function Zn(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Qn=v(`$ZodReadonly`,(e,t)=>{Bt.init(e,t),A(e._zod,`propValues`,()=>t.innerType._zod.propValues),A(e._zod,`values`,()=>t.innerType._zod.values),A(e._zod,`optin`,()=>t.innerType?._zod?.optin),A(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then($n):$n(r)}});function $n(e){return e.value=Object.freeze(e.value),e}var er=v(`$ZodCustom`,(e,t)=>{xt.init(e,t),Bt.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>tr(t,n,r,e));tr(i,n,r,e)}});function tr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Ce(e))}}var nr,rr=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function ir(){return new rr}(nr=globalThis).__zod_globalRegistry??(nr.__zod_globalRegistry=ir());var ar=globalThis.__zod_globalRegistry;function or(e,t){return new e({type:`string`,...P(t)})}function sr(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...P(t)})}function cr(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...P(t)})}function lr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...P(t)})}function ur(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...P(t)})}function dr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...P(t)})}function fr(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...P(t)})}function pr(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...P(t)})}function mr(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...P(t)})}function hr(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...P(t)})}function gr(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...P(t)})}function _r(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...P(t)})}function vr(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...P(t)})}function yr(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...P(t)})}function br(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...P(t)})}function xr(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...P(t)})}function Sr(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...P(t)})}function Cr(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...P(t)})}function wr(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...P(t)})}function Tr(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...P(t)})}function Er(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...P(t)})}function Dr(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...P(t)})}function Or(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...P(t)})}function kr(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...P(t)})}function Ar(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...P(t)})}function jr(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...P(t)})}function Mr(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...P(t)})}function Nr(e,t){return new e({type:`number`,checks:[],...P(t)})}function Pr(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...P(t)})}function Fr(e,t){return new e({type:`boolean`,...P(t)})}function Ir(e,t){return new e({type:`undefined`,...P(t)})}function Lr(e,t){return new e({type:`null`,...P(t)})}function Rr(e){return new e({type:`unknown`})}function zr(e,t){return new e({type:`never`,...P(t)})}function Br(e,t){return new Ct({check:`less_than`,...P(t),value:e,inclusive:!1})}function Vr(e,t){return new Ct({check:`less_than`,...P(t),value:e,inclusive:!0})}function Hr(e,t){return new wt({check:`greater_than`,...P(t),value:e,inclusive:!1})}function Ur(e,t){return new wt({check:`greater_than`,...P(t),value:e,inclusive:!0})}function Wr(e,t){return new Tt({check:`multiple_of`,...P(t),value:e})}function Gr(e,t){return new Dt({check:`max_length`,...P(t),maximum:e})}function Kr(e,t){return new Ot({check:`min_length`,...P(t),minimum:e})}function qr(e,t){return new kt({check:`length_equals`,...P(t),length:e})}function Jr(e,t){return new jt({check:`string_format`,format:`regex`,...P(t),pattern:e})}function Yr(e){return new Mt({check:`string_format`,format:`lowercase`,...P(e)})}function Xr(e){return new Nt({check:`string_format`,format:`uppercase`,...P(e)})}function Zr(e,t){return new Pt({check:`string_format`,format:`includes`,...P(t),includes:e})}function Qr(e,t){return new Ft({check:`string_format`,format:`starts_with`,...P(t),prefix:e})}function $r(e,t){return new It({check:`string_format`,format:`ends_with`,...P(t),suffix:e})}function ei(e){return new Lt({check:`overwrite`,tx:e})}function ti(e){return ei(t=>t.normalize(e))}function ni(){return ei(e=>e.trim())}function ri(){return ei(e=>e.toLowerCase())}function ii(){return ei(e=>e.toUpperCase())}function ai(){return ei(e=>ee(e))}function oi(e,t,n){return new e({type:`array`,element:t,...P(n)})}function si(e,t,n){let r=P(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function ci(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...P(n)})}function li(e){let t=ui(n=>(n.addIssue=e=>{if(typeof e==`string`)n.issues.push(Ce(e,n.value,t._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=n.value,r.inst??=t,r.continue??=!t._zod.def.abort,n.issues.push(Ce(r))}},e(n.value,n)));return t}function ui(e,t){let n=new xt({check:`custom`,...P(t)});return n._zod.check=e,n}function di(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??ar,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function fi(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,fi(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&hi(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&o.schema._prefault&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function pi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
51
51
 
52
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function gi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:vi(t,`input`,e.processors),output:vi(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function M(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return M(r.element,n);if(r.type===`set`)return M(r.valueType,n);if(r.type===`lazy`)return M(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return M(r.innerType,n);if(r.type===`intersection`)return M(r.left,n)||M(r.right,n);if(r.type===`record`||r.type===`map`)return M(r.keyType,n)||M(r.valueType,n);if(r.type===`pipe`)return M(r.in,n)||M(r.out,n);if(r.type===`object`){for(let e in r.shape)if(M(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(M(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(M(e,n))return!0;return!!(r.rest&&M(r.rest,n))}return!1}var _i=(e,t={})=>n=>{let r=pi({...n,processors:t});return mi(e,r),hi(r,e),gi(r,e)},vi=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=pi({...i??{},target:a,io:t,processors:n});return mi(e,o),hi(o,e),gi(o,e)},yi={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},bi=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=yi[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},xi=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},Si=(e,t,n,r)=>{n.type=`boolean`},Ci=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},wi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},Ti=(e,t,n,r)=>{n.not={}},Ei=(e,t,n,r)=>{let i=e._zod.def,a=S(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Di=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Oi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},ki=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Ai=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=mi(a.element,t,{...r,path:[...r.path,`items`]})},ji=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=mi(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=mi(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Mi=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>mi(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Ni=(e,t,n,r)=>{let i=e._zod.def,a=mi(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=mi(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Pi=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=mi(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=mi(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=mi(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Fi=(e,t,n,r)=>{let i=e._zod.def,a=mi(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Ii=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Li=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Ri=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},zi=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Bi=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;mi(a,t,r);let o=t.seen.get(e);o.ref=a},Vi=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Hi=(e,t,n,r)=>{let i=e._zod.def;mi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},N=l(d(),1),Ui=g();function Wi(e){return!!e._zod}function Gi(e,t){return Wi(e)?Pe(e,t):e.safeParse(t)}function Ki(e){if(!e)return;let t;if(t=Wi(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function qi(e){if(Wi(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Ji=_(`ZodISODateTime`,(e,t)=>{nn.init(e,t),ya.init(e,t)});function Yi(e){return jr(Ji,e)}var Xi=_(`ZodISODate`,(e,t)=>{rn.init(e,t),ya.init(e,t)});function Zi(e){return Mr(Xi,e)}var Qi=_(`ZodISOTime`,(e,t)=>{an.init(e,t),ya.init(e,t)});function $i(e){return Nr(Qi,e)}var ea=_(`ZodISODuration`,(e,t)=>{on.init(e,t),ya.init(e,t)});function ta(e){return Pr(ea,e)}var na=(e,t)=>{De.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Ae(e,t)},flatten:{value:t=>ke(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,C,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,C,2)}},isEmpty:{get(){return e.issues.length===0}}})};_(`ZodError`,na);var ra=_(`ZodError`,na,{Parent:Error}),ia=je(ra),aa=Me(ra),oa=Ne(ra),sa=Fe(ra),ca=Le(ra),la=Re(ra),ua=ze(ra),da=Be(ra),fa=Ve(ra),pa=He(ra),ma=Ue(ra),ha=We(ra),ga=_(`ZodType`,(e,t)=>(Ht.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:vi(e,`input`),output:vi(e,`output`)}}),e.toJSONSchema=_i(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(te(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>ue(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ia(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>oa(e,t,n),e.parseAsync=async(t,n)=>aa(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>sa(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ca(e,t,n),e.decode=(t,n)=>la(e,t,n),e.encodeAsync=async(t,n)=>ua(e,t,n),e.decodeAsync=async(t,n)=>da(e,t,n),e.safeEncode=(t,n)=>fa(e,t,n),e.safeDecode=(t,n)=>pa(e,t,n),e.safeEncodeAsync=async(t,n)=>ma(e,t,n),e.safeDecodeAsync=async(t,n)=>ha(e,t,n),e.refine=(t,n)=>e.check(jo(t,n)),e.superRefine=t=>e.check(Mo(t)),e.overwrite=t=>e.check(ni(t)),e.optional=()=>fo(e),e.exactOptional=()=>mo(e),e.nullable=()=>go(e),e.nullish=()=>fo(go(e)),e.nonoptional=t=>So(e,t),e.array=()=>R(e),e.or=t=>B([e,t]),e.and=t=>ro(e,t),e.transform=t=>Eo(e,lo(t)),e.default=t=>vo(e,t),e.prefault=t=>bo(e,t),e.catch=t=>wo(e,t),e.pipe=t=>Eo(e,t),e.readonly=()=>Oo(e),e.describe=t=>{let n=e.clone();return sr.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return sr.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return sr.get(e);let n=e.clone();return sr.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),_a=_(`_ZodString`,(e,t)=>{Ut.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Xr(...t)),e.includes=(...t)=>e.check($r(...t)),e.startsWith=(...t)=>e.check(ei(...t)),e.endsWith=(...t)=>e.check(ti(...t)),e.min=(...t)=>e.check(Jr(...t)),e.max=(...t)=>e.check(qr(...t)),e.length=(...t)=>e.check(Yr(...t)),e.nonempty=(...t)=>e.check(Jr(1,...t)),e.lowercase=t=>e.check(Zr(t)),e.uppercase=t=>e.check(Qr(t)),e.trim=()=>e.check(ii()),e.normalize=(...t)=>e.check(ri(...t)),e.toLowerCase=()=>e.check(ai()),e.toUpperCase=()=>e.check(oi()),e.slugify=()=>e.check(si())}),va=_(`ZodString`,(e,t)=>{Ut.init(e,t),_a.init(e,t),e.email=t=>e.check(lr(ba,t)),e.url=t=>e.check(hr(Ca,t)),e.jwt=t=>e.check(Ar(Ra,t)),e.emoji=t=>e.check(gr(wa,t)),e.guid=t=>e.check(ur(xa,t)),e.uuid=t=>e.check(dr(Sa,t)),e.uuidv4=t=>e.check(fr(Sa,t)),e.uuidv6=t=>e.check(pr(Sa,t)),e.uuidv7=t=>e.check(mr(Sa,t)),e.nanoid=t=>e.check(_r(Ta,t)),e.guid=t=>e.check(ur(xa,t)),e.cuid=t=>e.check(vr(Ea,t)),e.cuid2=t=>e.check(yr(Da,t)),e.ulid=t=>e.check(br(Oa,t)),e.base64=t=>e.check(Dr(Fa,t)),e.base64url=t=>e.check(Or(Ia,t)),e.xid=t=>e.check(xr(ka,t)),e.ksuid=t=>e.check(Sr(Aa,t)),e.ipv4=t=>e.check(Cr(ja,t)),e.ipv6=t=>e.check(wr(Ma,t)),e.cidrv4=t=>e.check(Tr(Na,t)),e.cidrv6=t=>e.check(Er(Pa,t)),e.e164=t=>e.check(kr(La,t)),e.datetime=t=>e.check(Yi(t)),e.date=t=>e.check(Zi(t)),e.time=t=>e.check($i(t)),e.duration=t=>e.check(ta(t))});function P(e){return cr(va,e)}var ya=_(`ZodStringFormat`,(e,t)=>{Wt.init(e,t),_a.init(e,t)}),ba=_(`ZodEmail`,(e,t)=>{qt.init(e,t),ya.init(e,t)}),xa=_(`ZodGUID`,(e,t)=>{Gt.init(e,t),ya.init(e,t)}),Sa=_(`ZodUUID`,(e,t)=>{Kt.init(e,t),ya.init(e,t)}),Ca=_(`ZodURL`,(e,t)=>{Jt.init(e,t),ya.init(e,t)}),wa=_(`ZodEmoji`,(e,t)=>{Yt.init(e,t),ya.init(e,t)}),Ta=_(`ZodNanoID`,(e,t)=>{Xt.init(e,t),ya.init(e,t)}),Ea=_(`ZodCUID`,(e,t)=>{Zt.init(e,t),ya.init(e,t)}),Da=_(`ZodCUID2`,(e,t)=>{Qt.init(e,t),ya.init(e,t)}),Oa=_(`ZodULID`,(e,t)=>{$t.init(e,t),ya.init(e,t)}),ka=_(`ZodXID`,(e,t)=>{en.init(e,t),ya.init(e,t)}),Aa=_(`ZodKSUID`,(e,t)=>{tn.init(e,t),ya.init(e,t)}),ja=_(`ZodIPv4`,(e,t)=>{sn.init(e,t),ya.init(e,t)}),Ma=_(`ZodIPv6`,(e,t)=>{cn.init(e,t),ya.init(e,t)}),Na=_(`ZodCIDRv4`,(e,t)=>{ln.init(e,t),ya.init(e,t)}),Pa=_(`ZodCIDRv6`,(e,t)=>{un.init(e,t),ya.init(e,t)}),Fa=_(`ZodBase64`,(e,t)=>{fn.init(e,t),ya.init(e,t)}),Ia=_(`ZodBase64URL`,(e,t)=>{mn.init(e,t),ya.init(e,t)}),La=_(`ZodE164`,(e,t)=>{hn.init(e,t),ya.init(e,t)}),Ra=_(`ZodJWT`,(e,t)=>{_n.init(e,t),ya.init(e,t)}),za=_(`ZodNumber`,(e,t)=>{vn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi(e,t,n,r),e.gt=(t,n)=>e.check(Wr(t,n)),e.gte=(t,n)=>e.check(Gr(t,n)),e.min=(t,n)=>e.check(Gr(t,n)),e.lt=(t,n)=>e.check(Hr(t,n)),e.lte=(t,n)=>e.check(Ur(t,n)),e.max=(t,n)=>e.check(Ur(t,n)),e.int=t=>e.check(Va(t)),e.safe=t=>e.check(Va(t)),e.positive=t=>e.check(Wr(0,t)),e.nonnegative=t=>e.check(Gr(0,t)),e.negative=t=>e.check(Hr(0,t)),e.nonpositive=t=>e.check(Ur(0,t)),e.multipleOf=(t,n)=>e.check(Kr(t,n)),e.step=(t,n)=>e.check(Kr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function F(e){return Fr(za,e)}var Ba=_(`ZodNumberFormat`,(e,t)=>{yn.init(e,t),za.init(e,t)});function Va(e){return Ir(Ba,e)}var Ha=_(`ZodBoolean`,(e,t)=>{bn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si(e,t,n,r)});function I(e){return Lr(Ha,e)}var Ua=_(`ZodUndefined`,(e,t)=>{xn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi(e,t,n,r)});function Wa(e){return Rr(Ua,e)}var Ga=_(`ZodNull`,(e,t)=>{Sn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci(e,t,n,r)});function Ka(e){return zr(Ga,e)}var qa=_(`ZodUnknown`,(e,t)=>{Cn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function L(){return Br(qa)}var Ja=_(`ZodNever`,(e,t)=>{wn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti(e,t,n,r)});function Ya(e){return Vr(Ja,e)}var Xa=_(`ZodArray`,(e,t)=>{En.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(Jr(t,n)),e.nonempty=t=>e.check(Jr(1,t)),e.max=(t,n)=>e.check(qr(t,n)),e.length=(t,n)=>e.check(Yr(t,n)),e.unwrap=()=>e.element});function R(e,t){return ci(Xa,e,t)}var Za=_(`ZodObject`,(e,t)=>{jn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji(e,t,n,r),k(e,`shape`,()=>t.shape),e.keyof=()=>oo(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:L()}),e.loose=()=>e.clone({...e._zod.def,catchall:L()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ya()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>he(e,t),e.safeExtend=t=>ge(e,t),e.merge=t=>_e(e,t),e.pick=t=>pe(e,t),e.omit=t=>me(e,t),e.partial=(...t)=>ve(uo,e,t[0]),e.required=(...t)=>ye(xo,e,t[0])});function z(e,t){return new Za({type:`object`,shape:e??{},...j(t)})}function Qa(e,t){return new Za({type:`object`,shape:e,catchall:L(),...j(t)})}var $a=_(`ZodUnion`,(e,t)=>{Nn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r),e.options=t.options});function B(e,t){return new $a({type:`union`,options:e,...j(t)})}var eo=_(`ZodDiscriminatedUnion`,(e,t)=>{$a.init(e,t),Pn.init(e,t)});function to(e,t,n){return new eo({type:`union`,options:t,discriminator:e,...j(n)})}var no=_(`ZodIntersection`,(e,t)=>{Fn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ni(e,t,n,r)});function ro(e,t){return new no({type:`intersection`,left:e,right:t})}var io=_(`ZodRecord`,(e,t)=>{Rn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pi(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function V(e,t,n){return new io({type:`record`,keyType:e,valueType:t,...j(n)})}var ao=_(`ZodEnum`,(e,t)=>{zn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new ao({...t,checks:[],...j(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new ao({...t,checks:[],...j(r),entries:i})}});function oo(e,t){return new ao({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...j(t)})}var so=_(`ZodLiteral`,(e,t)=>{Bn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function H(e,t){return new so({type:`literal`,values:Array.isArray(e)?e:[e],...j(t)})}var co=_(`ZodTransform`,(e,t)=>{Vn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new y(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Te(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Te(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function lo(e){return new co({type:`transform`,transform:e})}var uo=_(`ZodOptional`,(e,t)=>{Un.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function fo(e){return new uo({type:`optional`,innerType:e})}var po=_(`ZodExactOptional`,(e,t)=>{Wn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function mo(e){return new po({type:`optional`,innerType:e})}var ho=_(`ZodNullable`,(e,t)=>{Gn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function go(e){return new ho({type:`nullable`,innerType:e})}var _o=_(`ZodDefault`,(e,t)=>{Kn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Li(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function vo(e,t){return new _o({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():se(t)}})}var yo=_(`ZodPrefault`,(e,t)=>{Jn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ri(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function bo(e,t){return new yo({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():se(t)}})}var xo=_(`ZodNonOptional`,(e,t)=>{Yn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ii(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function So(e,t){return new xo({type:`nonoptional`,innerType:e,...j(t)})}var Co=_(`ZodCatch`,(e,t)=>{Zn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function wo(e,t){return new Co({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var To=_(`ZodPipe`,(e,t)=>{Qn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bi(e,t,n,r),e.in=t.in,e.out=t.out});function Eo(e,t){return new To({type:`pipe`,in:e,out:t})}var Do=_(`ZodReadonly`,(e,t)=>{er.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Oo(e){return new Do({type:`readonly`,innerType:e})}var ko=_(`ZodCustom`,(e,t)=>{nr.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi(e,t,n,r)});function Ao(e,t){return li(ko,e??(()=>!0),t)}function jo(e,t={}){return ui(ko,e,t)}function Mo(e){return di(e)}function No(e,t){return Eo(lo(e),t)}var Po=`io.modelcontextprotocol/related-task`,Fo=Ao(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),Io=B([P(),F().int()]),Lo=P();Qa({ttl:B([F(),Ka()]).optional(),pollInterval:F().optional()});var Ro=z({ttl:F().optional()}),zo=z({taskId:P()}),Bo=Qa({progressToken:Io.optional(),[Po]:zo.optional()}),Vo=z({_meta:Bo.optional()}),Ho=Vo.extend({task:Ro.optional()}),Uo=e=>Ho.safeParse(e).success,Wo=z({method:P(),params:Vo.loose().optional()}),Go=z({_meta:Bo.optional()}),Ko=z({method:P(),params:Go.loose().optional()}),qo=Qa({_meta:Bo.optional()}),Jo=B([P(),F().int()]),Yo=z({jsonrpc:H(`2.0`),id:Jo,...Wo.shape}).strict(),Xo=e=>Yo.safeParse(e).success,Zo=z({jsonrpc:H(`2.0`),...Ko.shape}).strict(),Qo=e=>Zo.safeParse(e).success,$o=z({jsonrpc:H(`2.0`),id:Jo,result:qo}).strict(),es=e=>$o.safeParse(e).success,ts;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(ts||={});var ns=z({jsonrpc:H(`2.0`),id:Jo.optional(),error:z({code:F().int(),message:P(),data:L().optional()})}).strict(),rs=e=>ns.safeParse(e).success,is=B([Yo,Zo,$o,ns]);B([$o,ns]);var as=qo.strict(),os=Go.extend({requestId:Jo.optional(),reason:P().optional()}),ss=Ko.extend({method:H(`notifications/cancelled`),params:os}),cs=z({icons:R(z({src:P(),mimeType:P().optional(),sizes:R(P()).optional(),theme:oo([`light`,`dark`]).optional()})).optional()}),ls=z({name:P(),title:P().optional()}),us=ls.extend({...ls.shape,...cs.shape,version:P(),websiteUrl:P().optional(),description:P().optional()}),ds=No(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ro(z({form:ro(z({applyDefaults:I().optional()}),V(P(),L())).optional(),url:Fo.optional()}),V(P(),L()).optional())),fs=Qa({list:Fo.optional(),cancel:Fo.optional(),requests:Qa({sampling:Qa({createMessage:Fo.optional()}).optional(),elicitation:Qa({create:Fo.optional()}).optional()}).optional()}),ps=Qa({list:Fo.optional(),cancel:Fo.optional(),requests:Qa({tools:Qa({call:Fo.optional()}).optional()}).optional()}),ms=z({experimental:V(P(),Fo).optional(),sampling:z({context:Fo.optional(),tools:Fo.optional()}).optional(),elicitation:ds.optional(),roots:z({listChanged:I().optional()}).optional(),tasks:fs.optional()}),hs=Vo.extend({protocolVersion:P(),capabilities:ms,clientInfo:us}),gs=Wo.extend({method:H(`initialize`),params:hs}),_s=z({experimental:V(P(),Fo).optional(),logging:Fo.optional(),completions:Fo.optional(),prompts:z({listChanged:I().optional()}).optional(),resources:z({subscribe:I().optional(),listChanged:I().optional()}).optional(),tools:z({listChanged:I().optional()}).optional(),tasks:ps.optional()}),vs=qo.extend({protocolVersion:P(),capabilities:_s,serverInfo:us,instructions:P().optional()}),ys=Ko.extend({method:H(`notifications/initialized`),params:Go.optional()}),bs=Wo.extend({method:H(`ping`),params:Vo.optional()}),xs=z({progress:F(),total:fo(F()),message:fo(P())}),Ss=z({...Go.shape,...xs.shape,progressToken:Io}),Cs=Ko.extend({method:H(`notifications/progress`),params:Ss}),ws=Vo.extend({cursor:Lo.optional()}),Ts=Wo.extend({params:ws.optional()}),Es=qo.extend({nextCursor:Lo.optional()}),Ds=oo([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Os=z({taskId:P(),status:Ds,ttl:B([F(),Ka()]),createdAt:P(),lastUpdatedAt:P(),pollInterval:fo(F()),statusMessage:fo(P())}),ks=qo.extend({task:Os}),As=Go.merge(Os),js=Ko.extend({method:H(`notifications/tasks/status`),params:As}),Ms=Wo.extend({method:H(`tasks/get`),params:Vo.extend({taskId:P()})}),Ns=qo.merge(Os),Ps=Wo.extend({method:H(`tasks/result`),params:Vo.extend({taskId:P()})});qo.loose();var Fs=Ts.extend({method:H(`tasks/list`)}),Is=Es.extend({tasks:R(Os)}),Ls=Wo.extend({method:H(`tasks/cancel`),params:Vo.extend({taskId:P()})}),Rs=qo.merge(Os),zs=z({uri:P(),mimeType:fo(P()),_meta:V(P(),L()).optional()}),Bs=zs.extend({text:P()}),Vs=P().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Hs=zs.extend({blob:Vs}),Us=oo([`user`,`assistant`]),Ws=z({audience:R(Us).optional(),priority:F().min(0).max(1).optional(),lastModified:Yi({offset:!0}).optional()}),Gs=z({...ls.shape,...cs.shape,uri:P(),description:fo(P()),mimeType:fo(P()),annotations:Ws.optional(),_meta:fo(Qa({}))}),Ks=z({...ls.shape,...cs.shape,uriTemplate:P(),description:fo(P()),mimeType:fo(P()),annotations:Ws.optional(),_meta:fo(Qa({}))}),qs=Ts.extend({method:H(`resources/list`)}),Js=Es.extend({resources:R(Gs)}),Ys=Ts.extend({method:H(`resources/templates/list`)}),Xs=Es.extend({resourceTemplates:R(Ks)}),Zs=Vo.extend({uri:P()}),Qs=Zs,$s=Wo.extend({method:H(`resources/read`),params:Qs}),ec=qo.extend({contents:R(B([Bs,Hs]))}),tc=Ko.extend({method:H(`notifications/resources/list_changed`),params:Go.optional()}),nc=Zs,rc=Wo.extend({method:H(`resources/subscribe`),params:nc}),ic=Zs,ac=Wo.extend({method:H(`resources/unsubscribe`),params:ic}),oc=Go.extend({uri:P()}),sc=Ko.extend({method:H(`notifications/resources/updated`),params:oc}),cc=z({name:P(),description:fo(P()),required:fo(I())}),lc=z({...ls.shape,...cs.shape,description:fo(P()),arguments:fo(R(cc)),_meta:fo(Qa({}))}),uc=Ts.extend({method:H(`prompts/list`)}),dc=Es.extend({prompts:R(lc)}),fc=Vo.extend({name:P(),arguments:V(P(),P()).optional()}),pc=Wo.extend({method:H(`prompts/get`),params:fc}),mc=z({type:H(`text`),text:P(),annotations:Ws.optional(),_meta:V(P(),L()).optional()}),hc=z({type:H(`image`),data:Vs,mimeType:P(),annotations:Ws.optional(),_meta:V(P(),L()).optional()}),gc=z({type:H(`audio`),data:Vs,mimeType:P(),annotations:Ws.optional(),_meta:V(P(),L()).optional()}),_c=z({type:H(`tool_use`),name:P(),id:P(),input:V(P(),L()),_meta:V(P(),L()).optional()}),vc=z({type:H(`resource`),resource:B([Bs,Hs]),annotations:Ws.optional(),_meta:V(P(),L()).optional()}),yc=Gs.extend({type:H(`resource_link`)}),bc=B([mc,hc,gc,yc,vc]),U=z({role:Us,content:bc}),xc=qo.extend({description:P().optional(),messages:R(U)}),Sc=Ko.extend({method:H(`notifications/prompts/list_changed`),params:Go.optional()}),Cc=z({title:P().optional(),readOnlyHint:I().optional(),destructiveHint:I().optional(),idempotentHint:I().optional(),openWorldHint:I().optional()}),wc=z({taskSupport:oo([`required`,`optional`,`forbidden`]).optional()}),Tc=z({...ls.shape,...cs.shape,description:P().optional(),inputSchema:z({type:H(`object`),properties:V(P(),Fo).optional(),required:R(P()).optional()}).catchall(L()),outputSchema:z({type:H(`object`),properties:V(P(),Fo).optional(),required:R(P()).optional()}).catchall(L()).optional(),annotations:Cc.optional(),execution:wc.optional(),_meta:V(P(),L()).optional()}),Ec=Ts.extend({method:H(`tools/list`)}),Dc=Es.extend({tools:R(Tc)}),Oc=qo.extend({content:R(bc).default([]),structuredContent:V(P(),L()).optional(),isError:I().optional()});Oc.or(qo.extend({toolResult:L()}));var kc=Ho.extend({name:P(),arguments:V(P(),L()).optional()}),Ac=Wo.extend({method:H(`tools/call`),params:kc}),jc=Ko.extend({method:H(`notifications/tools/list_changed`),params:Go.optional()});z({autoRefresh:I().default(!0),debounceMs:F().int().nonnegative().default(300)});var Mc=oo([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Nc=Vo.extend({level:Mc}),Pc=Wo.extend({method:H(`logging/setLevel`),params:Nc}),Fc=Go.extend({level:Mc,logger:P().optional(),data:L()}),Ic=Ko.extend({method:H(`notifications/message`),params:Fc}),Lc=z({hints:R(z({name:P().optional()})).optional(),costPriority:F().min(0).max(1).optional(),speedPriority:F().min(0).max(1).optional(),intelligencePriority:F().min(0).max(1).optional()}),Rc=z({mode:oo([`auto`,`required`,`none`]).optional()}),zc=z({type:H(`tool_result`),toolUseId:P().describe(`The unique identifier for the corresponding tool call.`),content:R(bc).default([]),structuredContent:z({}).loose().optional(),isError:I().optional(),_meta:V(P(),L()).optional()}),Bc=to(`type`,[mc,hc,gc]),Vc=to(`type`,[mc,hc,gc,_c,zc]),Hc=z({role:Us,content:B([Vc,R(Vc)]),_meta:V(P(),L()).optional()}),Uc=Ho.extend({messages:R(Hc),modelPreferences:Lc.optional(),systemPrompt:P().optional(),includeContext:oo([`none`,`thisServer`,`allServers`]).optional(),temperature:F().optional(),maxTokens:F().int(),stopSequences:R(P()).optional(),metadata:Fo.optional(),tools:R(Tc).optional(),toolChoice:Rc.optional()}),Wc=Wo.extend({method:H(`sampling/createMessage`),params:Uc}),Gc=qo.extend({model:P(),stopReason:fo(oo([`endTurn`,`stopSequence`,`maxTokens`]).or(P())),role:Us,content:Bc}),Kc=qo.extend({model:P(),stopReason:fo(oo([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(P())),role:Us,content:B([Vc,R(Vc)])}),qc=z({type:H(`boolean`),title:P().optional(),description:P().optional(),default:I().optional()}),Jc=z({type:H(`string`),title:P().optional(),description:P().optional(),minLength:F().optional(),maxLength:F().optional(),format:oo([`email`,`uri`,`date`,`date-time`]).optional(),default:P().optional()}),Yc=z({type:oo([`number`,`integer`]),title:P().optional(),description:P().optional(),minimum:F().optional(),maximum:F().optional(),default:F().optional()}),Xc=z({type:H(`string`),title:P().optional(),description:P().optional(),enum:R(P()),default:P().optional()}),Zc=z({type:H(`string`),title:P().optional(),description:P().optional(),oneOf:R(z({const:P(),title:P()})),default:P().optional()}),Qc=B([B([z({type:H(`string`),title:P().optional(),description:P().optional(),enum:R(P()),enumNames:R(P()).optional(),default:P().optional()}),B([Xc,Zc]),B([z({type:H(`array`),title:P().optional(),description:P().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({type:H(`string`),enum:R(P())}),default:R(P()).optional()}),z({type:H(`array`),title:P().optional(),description:P().optional(),minItems:F().optional(),maxItems:F().optional(),items:z({anyOf:R(z({const:P(),title:P()}))}),default:R(P()).optional()})])]),qc,Jc,Yc]),$c=B([Ho.extend({mode:H(`form`).optional(),message:P(),requestedSchema:z({type:H(`object`),properties:V(P(),Qc),required:R(P()).optional()})}),Ho.extend({mode:H(`url`),message:P(),elicitationId:P(),url:P().url()})]),el=Wo.extend({method:H(`elicitation/create`),params:$c}),tl=Go.extend({elicitationId:P()}),nl=Ko.extend({method:H(`notifications/elicitation/complete`),params:tl}),rl=qo.extend({action:oo([`accept`,`decline`,`cancel`]),content:No(e=>e===null?void 0:e,V(P(),B([P(),F(),I(),R(P())])).optional())}),il=z({type:H(`ref/resource`),uri:P()}),al=z({type:H(`ref/prompt`),name:P()}),ol=Vo.extend({ref:B([al,il]),argument:z({name:P(),value:P()}),context:z({arguments:V(P(),P()).optional()}).optional()}),sl=Wo.extend({method:H(`completion/complete`),params:ol}),cl=qo.extend({completion:Qa({values:R(P()).max(100),total:fo(F().int()),hasMore:fo(I())})}),ll=z({uri:P().startsWith(`file://`),name:P().optional(),_meta:V(P(),L()).optional()}),ul=Wo.extend({method:H(`roots/list`),params:Vo.optional()}),dl=qo.extend({roots:R(ll)}),fl=Ko.extend({method:H(`notifications/roots/list_changed`),params:Go.optional()});B([bs,gs,sl,Pc,pc,uc,qs,Ys,$s,rc,ac,Ac,Ec,Ms,Ps,Fs,Ls]),B([ss,Cs,ys,fl,js]),B([as,Gc,Kc,rl,dl,Ns,Is,ks]),B([bs,Wc,el,ul,Ms,Ps,Fs,Ls]),B([ss,Cs,Ic,sc,tc,jc,Sc,js,nl]),B([as,vs,cl,xc,dc,Js,Xs,ec,Oc,Dc,Ns,Is,ks]);var pl=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===ts.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new ml(e.elicitations,n)}return new e(t,n,r)}},ml=class extends pl{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(ts.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function hl(e){return e===`completed`||e===`failed`||e===`cancelled`}function gl(e){let t=Ki(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=qi(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function _l(e,t){let n=Gi(e,t);if(!n.success)throw n.error;return n.data}var vl=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(ss,e=>{this._oncancel(e)}),this.setNotificationHandler(Cs,e=>{this._onprogress(e)}),this.setRequestHandler(bs,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Ms,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new pl(ts.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Ps,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new pl(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new pl(ts.InvalidParams,`Task not found: ${r}`);if(!hl(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(hl(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Po]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Fs,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new pl(ts.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Ls,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new pl(ts.InvalidParams,`Task not found: ${e.params.taskId}`);if(hl(n.status))throw new pl(ts.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new pl(ts.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof pl?e:new pl(ts.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),pl.fromError(ts.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),es(e)||rs(e)?this._onresponse(e):Xo(e)?this._onrequest(e,t):Qo(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=pl.fromError(ts.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Po]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:ts.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Uo(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new pl(ts.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:ts.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),es(e)?n(e):n(new pl(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(es(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),es(e)?r(e):r(pl.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof pl?e:new pl(ts.InternalError,String(e))}}return}let i;try{let r=await this.request(e,ks,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new pl(ts.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},hl(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new pl(ts.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new pl(ts.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof pl?e:new pl(ts.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Po]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof pl?e:new pl(ts.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Gi(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(pl.fromError(ts.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Ns,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},Is,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Rs,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Po]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Po]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Po]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=gl(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=_l(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=gl(e);this._notificationHandlers.set(n,n=>{let r=_l(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&Xo(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new pl(ts.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new pl(ts.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new pl(ts.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new pl(ts.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=js.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),hl(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new pl(ts.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(hl(a.status))throw new pl(ts.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=js.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),hl(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}},yl=`2026-01-26`,bl=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=is.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},xl=B([H(`light`),H(`dark`)]).describe(`Color theme preference for the host environment.`),Sl=B([H(`inline`),H(`fullscreen`),H(`pip`)]).describe(`Display mode for UI presentation.`),Cl=V(B([H(`--color-background-primary`),H(`--color-background-secondary`),H(`--color-background-tertiary`),H(`--color-background-inverse`),H(`--color-background-ghost`),H(`--color-background-info`),H(`--color-background-danger`),H(`--color-background-success`),H(`--color-background-warning`),H(`--color-background-disabled`),H(`--color-text-primary`),H(`--color-text-secondary`),H(`--color-text-tertiary`),H(`--color-text-inverse`),H(`--color-text-ghost`),H(`--color-text-info`),H(`--color-text-danger`),H(`--color-text-success`),H(`--color-text-warning`),H(`--color-text-disabled`),H(`--color-border-primary`),H(`--color-border-secondary`),H(`--color-border-tertiary`),H(`--color-border-inverse`),H(`--color-border-ghost`),H(`--color-border-info`),H(`--color-border-danger`),H(`--color-border-success`),H(`--color-border-warning`),H(`--color-border-disabled`),H(`--color-ring-primary`),H(`--color-ring-secondary`),H(`--color-ring-inverse`),H(`--color-ring-info`),H(`--color-ring-danger`),H(`--color-ring-success`),H(`--color-ring-warning`),H(`--font-sans`),H(`--font-mono`),H(`--font-weight-normal`),H(`--font-weight-medium`),H(`--font-weight-semibold`),H(`--font-weight-bold`),H(`--font-text-xs-size`),H(`--font-text-sm-size`),H(`--font-text-md-size`),H(`--font-text-lg-size`),H(`--font-heading-xs-size`),H(`--font-heading-sm-size`),H(`--font-heading-md-size`),H(`--font-heading-lg-size`),H(`--font-heading-xl-size`),H(`--font-heading-2xl-size`),H(`--font-heading-3xl-size`),H(`--font-text-xs-line-height`),H(`--font-text-sm-line-height`),H(`--font-text-md-line-height`),H(`--font-text-lg-line-height`),H(`--font-heading-xs-line-height`),H(`--font-heading-sm-line-height`),H(`--font-heading-md-line-height`),H(`--font-heading-lg-line-height`),H(`--font-heading-xl-line-height`),H(`--font-heading-2xl-line-height`),H(`--font-heading-3xl-line-height`),H(`--border-radius-xs`),H(`--border-radius-sm`),H(`--border-radius-md`),H(`--border-radius-lg`),H(`--border-radius-xl`),H(`--border-radius-full`),H(`--border-width-regular`),H(`--shadow-hairline`),H(`--shadow-sm`),H(`--shadow-md`),H(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
52
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function mi(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(a[e.defId]=e.def)}e.external||Object.keys(a).length>0&&(e.target===`draft-2020-12`?i.$defs=a:i.definitions=a);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,`~standard`,{value:{...t[`~standard`],jsonSchema:{input:_i(t,`input`,e.processors),output:_i(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function hi(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return hi(r.element,n);if(r.type===`set`)return hi(r.valueType,n);if(r.type===`lazy`)return hi(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type===`default`||r.type===`prefault`)return hi(r.innerType,n);if(r.type===`intersection`)return hi(r.left,n)||hi(r.right,n);if(r.type===`record`||r.type===`map`)return hi(r.keyType,n)||hi(r.valueType,n);if(r.type===`pipe`)return hi(r.in,n)||hi(r.out,n);if(r.type===`object`){for(let e in r.shape)if(hi(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(hi(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(hi(e,n))return!0;return!!(r.rest&&hi(r.rest,n))}return!1}var gi=(e,t={})=>n=>{let r=di({...n,processors:t});return fi(e,r),pi(r,e),mi(r,e)},_i=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=di({...i??{},target:a,io:t,processors:n});return fi(e,o),pi(o,e),mi(o,e)},vi={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},yi=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=vi[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},bi=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`,typeof u==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u),typeof a==`number`&&(i.minimum=a,typeof u==`number`&&t.target!==`draft-04`&&(u>=a?delete i.minimum:delete i.exclusiveMinimum)),typeof l==`number`&&(t.target===`draft-04`||t.target===`openapi-3.0`?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l),typeof o==`number`&&(i.maximum=o,typeof l==`number`&&t.target!==`draft-04`&&(l<=o?delete i.maximum:delete i.exclusiveMaximum)),typeof c==`number`&&(i.multipleOf=c)},xi=(e,t,n,r)=>{n.type=`boolean`},Si=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Ci=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},wi=(e,t,n,r)=>{n.not={}},Ti=(e,t,n,r)=>{let i=e._zod.def,a=C(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Ei=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},Di=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Oi=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},ki=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=fi(a.element,t,{...r,path:[...r.path,`items`]})},Ai=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=fi(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=fi(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},ji=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>fi(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Mi=(e,t,n,r)=>{let i=e._zod.def,a=fi(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=fi(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ni=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=fi(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else (t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=fi(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=fi(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Pi=(e,t,n,r)=>{let i=e._zod.def,a=fi(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Fi=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ii=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},Li=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Ri=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},zi=(e,t,n,r)=>{let i=e._zod.def,a=t.io===`input`?i.in._zod.def.type===`transform`?i.out:i.in:i.out;fi(a,t,r);let o=t.seen.get(e);o.ref=a},Bi=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Vi=(e,t,n,r)=>{let i=e._zod.def;fi(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Hi=u(f(),1),Ui=_();function Wi(e){return!!e._zod}function Gi(e,t){return Wi(e)?Me(e,t):e.safeParse(t)}function Ki(e){if(!e)return;let t;if(t=Wi(e)?e._zod?.def?.shape:e.shape,t){if(typeof t==`function`)try{return t()}catch{return}return t}}function qi(e){if(Wi(e)){let t=e._zod?.def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}}let t=e._def;if(t){if(t.value!==void 0)return t.value;if(Array.isArray(t.values)&&t.values.length>0)return t.values[0]}let n=e.value;if(n!==void 0)return n}var Ji=v(`ZodISODateTime`,(e,t)=>{en.init(e,t),ya.init(e,t)});function Yi(e){return kr(Ji,e)}var Xi=v(`ZodISODate`,(e,t)=>{tn.init(e,t),ya.init(e,t)});function Zi(e){return Ar(Xi,e)}var Qi=v(`ZodISOTime`,(e,t)=>{nn.init(e,t),ya.init(e,t)});function $i(e){return jr(Qi,e)}var ea=v(`ZodISODuration`,(e,t)=>{rn.init(e,t),ya.init(e,t)});function ta(e){return Mr(ea,e)}var na=(e,t)=>{Te.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Oe(e,t)},flatten:{value:t=>De(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,w,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,w,2)}},isEmpty:{get(){return e.issues.length===0}}})};v(`ZodError`,na);var ra=v(`ZodError`,na,{Parent:Error}),ia=ke(ra),aa=Ae(ra),oa=je(ra),sa=Ne(ra),ca=Fe(ra),la=Ie(ra),ua=Le(ra),da=Re(ra),fa=ze(ra),pa=Be(ra),ma=Ve(ra),ha=He(ra),ga=v(`ZodType`,(e,t)=>(Bt.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:_i(e,`input`),output:_i(e,`output`)}}),e.toJSONSchema=gi(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,`_def`,{value:t}),e.check=(...n)=>e.clone(M(t,{checks:[...t.checks??[],...n.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0}),e.with=e.check,e.clone=(t,n)=>ce(e,t,n),e.brand=()=>e,e.register=((t,n)=>(t.add(e,n),e)),e.parse=(t,n)=>ia(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>oa(e,t,n),e.parseAsync=async(t,n)=>aa(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>sa(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>ca(e,t,n),e.decode=(t,n)=>la(e,t,n),e.encodeAsync=async(t,n)=>ua(e,t,n),e.decodeAsync=async(t,n)=>da(e,t,n),e.safeEncode=(t,n)=>fa(e,t,n),e.safeDecode=(t,n)=>pa(e,t,n),e.safeEncodeAsync=async(t,n)=>ma(e,t,n),e.safeDecodeAsync=async(t,n)=>ha(e,t,n),e.refine=(t,n)=>e.check(Po(t,n)),e.superRefine=t=>e.check(Fo(t)),e.overwrite=t=>e.check(ei(t)),e.optional=()=>ho(e),e.exactOptional=()=>_o(e),e.nullable=()=>yo(e),e.nullish=()=>ho(yo(e)),e.nonoptional=t=>To(e,t),e.array=()=>L(e),e.or=t=>z([e,t]),e.and=t=>ao(e,t),e.transform=t=>ko(e,po(t)),e.default=t=>xo(e,t),e.prefault=t=>Co(e,t),e.catch=t=>Do(e,t),e.pipe=t=>ko(e,t),e.readonly=()=>jo(e),e.describe=t=>{let n=e.clone();return ar.add(n,{description:t}),n},Object.defineProperty(e,`description`,{get(){return ar.get(e)?.description},configurable:!0}),e.meta=(...t)=>{if(t.length===0)return ar.get(e);let n=e.clone();return ar.add(n,t[0]),n},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=t=>t(e),e)),_a=v(`_ZodString`,(e,t)=>{Vt.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yi(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...t)=>e.check(Jr(...t)),e.includes=(...t)=>e.check(Zr(...t)),e.startsWith=(...t)=>e.check(Qr(...t)),e.endsWith=(...t)=>e.check($r(...t)),e.min=(...t)=>e.check(Kr(...t)),e.max=(...t)=>e.check(Gr(...t)),e.length=(...t)=>e.check(qr(...t)),e.nonempty=(...t)=>e.check(Kr(1,...t)),e.lowercase=t=>e.check(Yr(t)),e.uppercase=t=>e.check(Xr(t)),e.trim=()=>e.check(ni()),e.normalize=(...t)=>e.check(ti(...t)),e.toLowerCase=()=>e.check(ri()),e.toUpperCase=()=>e.check(ii()),e.slugify=()=>e.check(ai())}),va=v(`ZodString`,(e,t)=>{Vt.init(e,t),_a.init(e,t),e.email=t=>e.check(sr(ba,t)),e.url=t=>e.check(pr(Ca,t)),e.jwt=t=>e.check(Or(Ra,t)),e.emoji=t=>e.check(mr(wa,t)),e.guid=t=>e.check(cr(xa,t)),e.uuid=t=>e.check(lr(Sa,t)),e.uuidv4=t=>e.check(ur(Sa,t)),e.uuidv6=t=>e.check(dr(Sa,t)),e.uuidv7=t=>e.check(fr(Sa,t)),e.nanoid=t=>e.check(hr(Ta,t)),e.guid=t=>e.check(cr(xa,t)),e.cuid=t=>e.check(gr(Ea,t)),e.cuid2=t=>e.check(_r(Da,t)),e.ulid=t=>e.check(vr(Oa,t)),e.base64=t=>e.check(Tr(Fa,t)),e.base64url=t=>e.check(Er(Ia,t)),e.xid=t=>e.check(yr(ka,t)),e.ksuid=t=>e.check(br(Aa,t)),e.ipv4=t=>e.check(xr(ja,t)),e.ipv6=t=>e.check(Sr(Ma,t)),e.cidrv4=t=>e.check(Cr(Na,t)),e.cidrv6=t=>e.check(wr(Pa,t)),e.e164=t=>e.check(Dr(La,t)),e.datetime=t=>e.check(Yi(t)),e.date=t=>e.check(Zi(t)),e.time=t=>e.check($i(t)),e.duration=t=>e.check(ta(t))});function F(e){return or(va,e)}var ya=v(`ZodStringFormat`,(e,t)=>{Ht.init(e,t),_a.init(e,t)}),ba=v(`ZodEmail`,(e,t)=>{Gt.init(e,t),ya.init(e,t)}),xa=v(`ZodGUID`,(e,t)=>{Ut.init(e,t),ya.init(e,t)}),Sa=v(`ZodUUID`,(e,t)=>{Wt.init(e,t),ya.init(e,t)}),Ca=v(`ZodURL`,(e,t)=>{Kt.init(e,t),ya.init(e,t)}),wa=v(`ZodEmoji`,(e,t)=>{qt.init(e,t),ya.init(e,t)}),Ta=v(`ZodNanoID`,(e,t)=>{Jt.init(e,t),ya.init(e,t)}),Ea=v(`ZodCUID`,(e,t)=>{Yt.init(e,t),ya.init(e,t)}),Da=v(`ZodCUID2`,(e,t)=>{Xt.init(e,t),ya.init(e,t)}),Oa=v(`ZodULID`,(e,t)=>{Zt.init(e,t),ya.init(e,t)}),ka=v(`ZodXID`,(e,t)=>{Qt.init(e,t),ya.init(e,t)}),Aa=v(`ZodKSUID`,(e,t)=>{$t.init(e,t),ya.init(e,t)}),ja=v(`ZodIPv4`,(e,t)=>{an.init(e,t),ya.init(e,t)}),Ma=v(`ZodIPv6`,(e,t)=>{on.init(e,t),ya.init(e,t)}),Na=v(`ZodCIDRv4`,(e,t)=>{sn.init(e,t),ya.init(e,t)}),Pa=v(`ZodCIDRv6`,(e,t)=>{cn.init(e,t),ya.init(e,t)}),Fa=v(`ZodBase64`,(e,t)=>{un.init(e,t),ya.init(e,t)}),Ia=v(`ZodBase64URL`,(e,t)=>{fn.init(e,t),ya.init(e,t)}),La=v(`ZodE164`,(e,t)=>{pn.init(e,t),ya.init(e,t)}),Ra=v(`ZodJWT`,(e,t)=>{hn.init(e,t),ya.init(e,t)}),za=v(`ZodNumber`,(e,t)=>{gn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bi(e,t,n,r),e.gt=(t,n)=>e.check(Hr(t,n)),e.gte=(t,n)=>e.check(Ur(t,n)),e.min=(t,n)=>e.check(Ur(t,n)),e.lt=(t,n)=>e.check(Br(t,n)),e.lte=(t,n)=>e.check(Vr(t,n)),e.max=(t,n)=>e.check(Vr(t,n)),e.int=t=>e.check(Va(t)),e.safe=t=>e.check(Va(t)),e.positive=t=>e.check(Hr(0,t)),e.nonnegative=t=>e.check(Ur(0,t)),e.negative=t=>e.check(Br(0,t)),e.nonpositive=t=>e.check(Vr(0,t)),e.multipleOf=(t,n)=>e.check(Wr(t,n)),e.step=(t,n)=>e.check(Wr(t,n)),e.finite=()=>e;let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function I(e){return Nr(za,e)}var Ba=v(`ZodNumberFormat`,(e,t)=>{_n.init(e,t),za.init(e,t)});function Va(e){return Pr(Ba,e)}var Ha=v(`ZodBoolean`,(e,t)=>{vn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xi(e,t,n,r)});function Ua(e){return Fr(Ha,e)}var Wa=v(`ZodUndefined`,(e,t)=>{yn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ci(e,t,n,r)});function Ga(e){return Ir(Wa,e)}var Ka=v(`ZodNull`,(e,t)=>{bn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Si(e,t,n,r)});function qa(e){return Lr(Ka,e)}var Ja=v(`ZodUnknown`,(e,t)=>{xn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Ya(){return Rr(Ja)}var Xa=v(`ZodNever`,(e,t)=>{Sn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>wi(e,t,n,r)});function Za(e){return zr(Xa,e)}var Qa=v(`ZodArray`,(e,t)=>{wn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ki(e,t,n,r),e.element=t.element,e.min=(t,n)=>e.check(Kr(t,n)),e.nonempty=t=>e.check(Kr(1,t)),e.max=(t,n)=>e.check(Gr(t,n)),e.length=(t,n)=>e.check(qr(t,n)),e.unwrap=()=>e.element});function L(e,t){return oi(Qa,e,t)}var $a=v(`ZodObject`,(e,t)=>{kn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ai(e,t,n,r),A(e,`shape`,()=>t.shape),e.keyof=()=>lo(Object.keys(e._zod.def.shape)),e.catchall=t=>e.clone({...e._zod.def,catchall:t}),e.passthrough=()=>e.clone({...e._zod.def,catchall:Ya()}),e.loose=()=>e.clone({...e._zod.def,catchall:Ya()}),e.strict=()=>e.clone({...e._zod.def,catchall:Za()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=t=>pe(e,t),e.safeExtend=t=>me(e,t),e.merge=t=>he(e,t),e.pick=t=>de(e,t),e.omit=t=>fe(e,t),e.partial=(...t)=>ge(mo,e,t[0]),e.required=(...t)=>_e(wo,e,t[0])});function R(e,t){return new $a({type:`object`,shape:e??{},...P(t)})}function eo(e,t){return new $a({type:`object`,shape:e,catchall:Ya(),...P(t)})}var to=v(`ZodUnion`,(e,t)=>{jn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ji(e,t,n,r),e.options=t.options});function z(e,t){return new to({type:`union`,options:e,...P(t)})}var no=v(`ZodDiscriminatedUnion`,(e,t)=>{to.init(e,t),Mn.init(e,t)});function ro(e,t,n){return new no({type:`union`,options:t,discriminator:e,...P(n)})}var io=v(`ZodIntersection`,(e,t)=>{Nn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mi(e,t,n,r)});function ao(e,t){return new io({type:`intersection`,left:e,right:t})}var oo=v(`ZodRecord`,(e,t)=>{In.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ni(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function so(e,t,n){return new oo({type:`record`,keyType:e,valueType:t,...P(n)})}var co=v(`ZodEnum`,(e,t)=>{Ln.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ti(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new co({...t,checks:[],...P(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new co({...t,checks:[],...P(r),entries:i})}});function lo(e,t){return new co({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...P(t)})}var uo=v(`ZodLiteral`,(e,t)=>{Rn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ei(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,`value`,{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function B(e,t){return new uo({type:`literal`,values:Array.isArray(e)?e:[e],...P(t)})}var fo=v(`ZodTransform`,(e,t)=>{zn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oi(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new b(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Ce(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Ce(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function po(e){return new fo({type:`transform`,transform:e})}var mo=v(`ZodOptional`,(e,t)=>{Vn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ho(e){return new mo({type:`optional`,innerType:e})}var go=v(`ZodExactOptional`,(e,t)=>{Hn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _o(e){return new go({type:`optional`,innerType:e})}var vo=v(`ZodNullable`,(e,t)=>{Un.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function yo(e){return new vo({type:`nullable`,innerType:e})}var bo=v(`ZodDefault`,(e,t)=>{Wn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ii(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xo(e,t){return new bo({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():ae(t)}})}var So=v(`ZodPrefault`,(e,t)=>{Kn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Li(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Co(e,t){return new So({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():ae(t)}})}var wo=v(`ZodNonOptional`,(e,t)=>{qn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function To(e,t){return new wo({type:`nonoptional`,innerType:e,...P(t)})}var Eo=v(`ZodCatch`,(e,t)=>{Yn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ri(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Do(e,t){return new Eo({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Oo=v(`ZodPipe`,(e,t)=>{Xn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zi(e,t,n,r),e.in=t.in,e.out=t.out});function ko(e,t){return new Oo({type:`pipe`,in:e,out:t})}var Ao=v(`ZodReadonly`,(e,t)=>{Qn.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bi(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function jo(e){return new Ao({type:`readonly`,innerType:e})}var Mo=v(`ZodCustom`,(e,t)=>{er.init(e,t),ga.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Di(e,t,n,r)});function No(e,t){return si(Mo,e??(()=>!0),t)}function Po(e,t={}){return ci(Mo,e,t)}function Fo(e){return li(e)}function Io(e,t){return ko(po(e),t)}var Lo=`io.modelcontextprotocol/related-task`,Ro=No(e=>e!==null&&(typeof e==`object`||typeof e==`function`)),zo=z([F(),I().int()]),Bo=F();eo({ttl:z([I(),qa()]).optional(),pollInterval:I().optional()});var Vo=R({ttl:I().optional()}),Ho=R({taskId:F()}),Uo=eo({progressToken:zo.optional(),[Lo]:Ho.optional()}),Wo=R({_meta:Uo.optional()}),Go=Wo.extend({task:Vo.optional()}),Ko=e=>Go.safeParse(e).success,qo=R({method:F(),params:Wo.loose().optional()}),Jo=R({_meta:Uo.optional()}),Yo=R({method:F(),params:Jo.loose().optional()}),Xo=eo({_meta:Uo.optional()}),Zo=z([F(),I().int()]),Qo=R({jsonrpc:B(`2.0`),id:Zo,...qo.shape}).strict(),$o=e=>Qo.safeParse(e).success,es=R({jsonrpc:B(`2.0`),...Yo.shape}).strict(),ts=e=>es.safeParse(e).success,ns=R({jsonrpc:B(`2.0`),id:Zo,result:Xo}).strict(),rs=e=>ns.safeParse(e).success,is;(function(e){e[e.ConnectionClosed=-32e3]=`ConnectionClosed`,e[e.RequestTimeout=-32001]=`RequestTimeout`,e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`})(is||={});var as=R({jsonrpc:B(`2.0`),id:Zo.optional(),error:R({code:I().int(),message:F(),data:Ya().optional()})}).strict(),os=e=>as.safeParse(e).success,ss=z([Qo,es,ns,as]);z([ns,as]);var cs=Xo.strict(),ls=Jo.extend({requestId:Zo.optional(),reason:F().optional()}),us=Yo.extend({method:B(`notifications/cancelled`),params:ls}),ds=R({icons:L(R({src:F(),mimeType:F().optional(),sizes:L(F()).optional(),theme:lo([`light`,`dark`]).optional()})).optional()}),fs=R({name:F(),title:F().optional()}),ps=fs.extend({...fs.shape,...ds.shape,version:F(),websiteUrl:F().optional(),description:F().optional()}),ms=Io(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ao(R({form:ao(R({applyDefaults:Ua().optional()}),so(F(),Ya())).optional(),url:Ro.optional()}),so(F(),Ya()).optional())),hs=eo({list:Ro.optional(),cancel:Ro.optional(),requests:eo({sampling:eo({createMessage:Ro.optional()}).optional(),elicitation:eo({create:Ro.optional()}).optional()}).optional()}),gs=eo({list:Ro.optional(),cancel:Ro.optional(),requests:eo({tools:eo({call:Ro.optional()}).optional()}).optional()}),_s=R({experimental:so(F(),Ro).optional(),sampling:R({context:Ro.optional(),tools:Ro.optional()}).optional(),elicitation:ms.optional(),roots:R({listChanged:Ua().optional()}).optional(),tasks:hs.optional()}),vs=Wo.extend({protocolVersion:F(),capabilities:_s,clientInfo:ps}),ys=qo.extend({method:B(`initialize`),params:vs}),bs=R({experimental:so(F(),Ro).optional(),logging:Ro.optional(),completions:Ro.optional(),prompts:R({listChanged:Ua().optional()}).optional(),resources:R({subscribe:Ua().optional(),listChanged:Ua().optional()}).optional(),tools:R({listChanged:Ua().optional()}).optional(),tasks:gs.optional()}),xs=Xo.extend({protocolVersion:F(),capabilities:bs,serverInfo:ps,instructions:F().optional()}),Ss=Yo.extend({method:B(`notifications/initialized`),params:Jo.optional()}),Cs=qo.extend({method:B(`ping`),params:Wo.optional()}),ws=R({progress:I(),total:ho(I()),message:ho(F())}),Ts=R({...Jo.shape,...ws.shape,progressToken:zo}),Es=Yo.extend({method:B(`notifications/progress`),params:Ts}),Ds=Wo.extend({cursor:Bo.optional()}),Os=qo.extend({params:Ds.optional()}),ks=Xo.extend({nextCursor:Bo.optional()}),As=lo([`working`,`input_required`,`completed`,`failed`,`cancelled`]),js=R({taskId:F(),status:As,ttl:z([I(),qa()]),createdAt:F(),lastUpdatedAt:F(),pollInterval:ho(I()),statusMessage:ho(F())}),Ms=Xo.extend({task:js}),Ns=Jo.merge(js),Ps=Yo.extend({method:B(`notifications/tasks/status`),params:Ns}),Fs=qo.extend({method:B(`tasks/get`),params:Wo.extend({taskId:F()})}),Is=Xo.merge(js),Ls=qo.extend({method:B(`tasks/result`),params:Wo.extend({taskId:F()})});Xo.loose();var Rs=Os.extend({method:B(`tasks/list`)}),zs=ks.extend({tasks:L(js)}),Bs=qo.extend({method:B(`tasks/cancel`),params:Wo.extend({taskId:F()})}),Vs=Xo.merge(js),Hs=R({uri:F(),mimeType:ho(F()),_meta:so(F(),Ya()).optional()}),Us=Hs.extend({text:F()}),Ws=F().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Gs=Hs.extend({blob:Ws}),Ks=lo([`user`,`assistant`]),qs=R({audience:L(Ks).optional(),priority:I().min(0).max(1).optional(),lastModified:Yi({offset:!0}).optional()}),Js=R({...fs.shape,...ds.shape,uri:F(),description:ho(F()),mimeType:ho(F()),annotations:qs.optional(),_meta:ho(eo({}))}),Ys=R({...fs.shape,...ds.shape,uriTemplate:F(),description:ho(F()),mimeType:ho(F()),annotations:qs.optional(),_meta:ho(eo({}))}),Xs=Os.extend({method:B(`resources/list`)}),Zs=ks.extend({resources:L(Js)}),Qs=Os.extend({method:B(`resources/templates/list`)}),$s=ks.extend({resourceTemplates:L(Ys)}),ec=Wo.extend({uri:F()}),tc=ec,nc=qo.extend({method:B(`resources/read`),params:tc}),rc=Xo.extend({contents:L(z([Us,Gs]))}),ic=Yo.extend({method:B(`notifications/resources/list_changed`),params:Jo.optional()}),ac=ec,oc=qo.extend({method:B(`resources/subscribe`),params:ac}),sc=ec,cc=qo.extend({method:B(`resources/unsubscribe`),params:sc}),lc=Jo.extend({uri:F()}),uc=Yo.extend({method:B(`notifications/resources/updated`),params:lc}),dc=R({name:F(),description:ho(F()),required:ho(Ua())}),fc=R({...fs.shape,...ds.shape,description:ho(F()),arguments:ho(L(dc)),_meta:ho(eo({}))}),pc=Os.extend({method:B(`prompts/list`)}),mc=ks.extend({prompts:L(fc)}),hc=Wo.extend({name:F(),arguments:so(F(),F()).optional()}),gc=qo.extend({method:B(`prompts/get`),params:hc}),_c=R({type:B(`text`),text:F(),annotations:qs.optional(),_meta:so(F(),Ya()).optional()}),vc=R({type:B(`image`),data:Ws,mimeType:F(),annotations:qs.optional(),_meta:so(F(),Ya()).optional()}),yc=R({type:B(`audio`),data:Ws,mimeType:F(),annotations:qs.optional(),_meta:so(F(),Ya()).optional()}),bc=R({type:B(`tool_use`),name:F(),id:F(),input:so(F(),Ya()),_meta:so(F(),Ya()).optional()}),xc=R({type:B(`resource`),resource:z([Us,Gs]),annotations:qs.optional(),_meta:so(F(),Ya()).optional()}),Sc=Js.extend({type:B(`resource_link`)}),V=z([_c,vc,yc,Sc,xc]),Cc=R({role:Ks,content:V}),wc=Xo.extend({description:F().optional(),messages:L(Cc)}),Tc=Yo.extend({method:B(`notifications/prompts/list_changed`),params:Jo.optional()}),Ec=R({title:F().optional(),readOnlyHint:Ua().optional(),destructiveHint:Ua().optional(),idempotentHint:Ua().optional(),openWorldHint:Ua().optional()}),Dc=R({taskSupport:lo([`required`,`optional`,`forbidden`]).optional()}),Oc=R({...fs.shape,...ds.shape,description:F().optional(),inputSchema:R({type:B(`object`),properties:so(F(),Ro).optional(),required:L(F()).optional()}).catchall(Ya()),outputSchema:R({type:B(`object`),properties:so(F(),Ro).optional(),required:L(F()).optional()}).catchall(Ya()).optional(),annotations:Ec.optional(),execution:Dc.optional(),_meta:so(F(),Ya()).optional()}),kc=Os.extend({method:B(`tools/list`)}),Ac=ks.extend({tools:L(Oc)}),jc=Xo.extend({content:L(V).default([]),structuredContent:so(F(),Ya()).optional(),isError:Ua().optional()});jc.or(Xo.extend({toolResult:Ya()}));var Mc=Go.extend({name:F(),arguments:so(F(),Ya()).optional()}),Nc=qo.extend({method:B(`tools/call`),params:Mc}),Pc=Yo.extend({method:B(`notifications/tools/list_changed`),params:Jo.optional()});R({autoRefresh:Ua().default(!0),debounceMs:I().int().nonnegative().default(300)});var Fc=lo([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Ic=Wo.extend({level:Fc}),Lc=qo.extend({method:B(`logging/setLevel`),params:Ic}),Rc=Jo.extend({level:Fc,logger:F().optional(),data:Ya()}),zc=Yo.extend({method:B(`notifications/message`),params:Rc}),Bc=R({hints:L(R({name:F().optional()})).optional(),costPriority:I().min(0).max(1).optional(),speedPriority:I().min(0).max(1).optional(),intelligencePriority:I().min(0).max(1).optional()}),Vc=R({mode:lo([`auto`,`required`,`none`]).optional()}),Hc=R({type:B(`tool_result`),toolUseId:F().describe(`The unique identifier for the corresponding tool call.`),content:L(V).default([]),structuredContent:R({}).loose().optional(),isError:Ua().optional(),_meta:so(F(),Ya()).optional()}),Uc=ro(`type`,[_c,vc,yc]),Wc=ro(`type`,[_c,vc,yc,bc,Hc]),Gc=R({role:Ks,content:z([Wc,L(Wc)]),_meta:so(F(),Ya()).optional()}),Kc=Go.extend({messages:L(Gc),modelPreferences:Bc.optional(),systemPrompt:F().optional(),includeContext:lo([`none`,`thisServer`,`allServers`]).optional(),temperature:I().optional(),maxTokens:I().int(),stopSequences:L(F()).optional(),metadata:Ro.optional(),tools:L(Oc).optional(),toolChoice:Vc.optional()}),qc=qo.extend({method:B(`sampling/createMessage`),params:Kc}),Jc=Xo.extend({model:F(),stopReason:ho(lo([`endTurn`,`stopSequence`,`maxTokens`]).or(F())),role:Ks,content:Uc}),Yc=Xo.extend({model:F(),stopReason:ho(lo([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(F())),role:Ks,content:z([Wc,L(Wc)])}),Xc=R({type:B(`boolean`),title:F().optional(),description:F().optional(),default:Ua().optional()}),Zc=R({type:B(`string`),title:F().optional(),description:F().optional(),minLength:I().optional(),maxLength:I().optional(),format:lo([`email`,`uri`,`date`,`date-time`]).optional(),default:F().optional()}),Qc=R({type:lo([`number`,`integer`]),title:F().optional(),description:F().optional(),minimum:I().optional(),maximum:I().optional(),default:I().optional()}),$c=R({type:B(`string`),title:F().optional(),description:F().optional(),enum:L(F()),default:F().optional()}),el=R({type:B(`string`),title:F().optional(),description:F().optional(),oneOf:L(R({const:F(),title:F()})),default:F().optional()}),tl=z([z([R({type:B(`string`),title:F().optional(),description:F().optional(),enum:L(F()),enumNames:L(F()).optional(),default:F().optional()}),z([$c,el]),z([R({type:B(`array`),title:F().optional(),description:F().optional(),minItems:I().optional(),maxItems:I().optional(),items:R({type:B(`string`),enum:L(F())}),default:L(F()).optional()}),R({type:B(`array`),title:F().optional(),description:F().optional(),minItems:I().optional(),maxItems:I().optional(),items:R({anyOf:L(R({const:F(),title:F()}))}),default:L(F()).optional()})])]),Xc,Zc,Qc]),nl=z([Go.extend({mode:B(`form`).optional(),message:F(),requestedSchema:R({type:B(`object`),properties:so(F(),tl),required:L(F()).optional()})}),Go.extend({mode:B(`url`),message:F(),elicitationId:F(),url:F().url()})]),rl=qo.extend({method:B(`elicitation/create`),params:nl}),il=Jo.extend({elicitationId:F()}),al=Yo.extend({method:B(`notifications/elicitation/complete`),params:il}),ol=Xo.extend({action:lo([`accept`,`decline`,`cancel`]),content:Io(e=>e===null?void 0:e,so(F(),z([F(),I(),Ua(),L(F())])).optional())}),sl=R({type:B(`ref/resource`),uri:F()}),cl=R({type:B(`ref/prompt`),name:F()}),ll=Wo.extend({ref:z([cl,sl]),argument:R({name:F(),value:F()}),context:R({arguments:so(F(),F()).optional()}).optional()}),ul=qo.extend({method:B(`completion/complete`),params:ll}),dl=Xo.extend({completion:eo({values:L(F()).max(100),total:ho(I().int()),hasMore:ho(Ua())})}),fl=R({uri:F().startsWith(`file://`),name:F().optional(),_meta:so(F(),Ya()).optional()}),pl=qo.extend({method:B(`roots/list`),params:Wo.optional()}),ml=Xo.extend({roots:L(fl)}),hl=Yo.extend({method:B(`notifications/roots/list_changed`),params:Jo.optional()});z([Cs,ys,ul,Lc,gc,pc,Xs,Qs,nc,oc,cc,Nc,kc,Fs,Ls,Rs,Bs]),z([us,Es,Ss,hl,Ps]),z([cs,Jc,Yc,ol,ml,Is,zs,Ms]),z([Cs,qc,rl,pl,Fs,Ls,Rs,Bs]),z([us,Es,zc,uc,ic,Pc,Tc,Ps,al]),z([cs,xs,dl,wc,mc,Zs,$s,rc,jc,Ac,Is,zs,Ms]);var gl=class e extends Error{constructor(e,t,n){super(`MCP error ${e}: ${t}`),this.code=e,this.data=n,this.name=`McpError`}static fromError(t,n,r){if(t===is.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new _l(e.elicitations,n)}return new e(t,n,r)}},_l=class extends gl{constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(is.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}};function vl(e){return e===`completed`||e===`failed`||e===`cancelled`}function yl(e){let t=Ki(e)?.method;if(!t)throw Error(`Schema is missing a method literal`);let n=qi(t);if(typeof n!=`string`)throw Error(`Schema method literal must be a string`);return n}function bl(e,t){let n=Gi(e,t);if(!n.success)throw n.error;return n.data}var xl=class{constructor(e){this._options=e,this._requestMessageId=0,this._requestHandlers=new Map,this._requestHandlerAbortControllers=new Map,this._notificationHandlers=new Map,this._responseHandlers=new Map,this._progressHandlers=new Map,this._timeoutInfo=new Map,this._pendingDebouncedNotifications=new Set,this._taskProgressTokens=new Map,this._requestResolvers=new Map,this.setNotificationHandler(us,e=>{this._oncancel(e)}),this.setNotificationHandler(Es,e=>{this._onprogress(e)}),this.setRequestHandler(Cs,e=>({})),this._taskStore=e?.taskStore,this._taskMessageQueue=e?.taskMessageQueue,this._taskStore&&(this.setRequestHandler(Fs,async(e,t)=>{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new gl(is.InvalidParams,`Failed to retrieve task: Task not found`);return{...n}}),this.setRequestHandler(Ls,async(e,t)=>{let n=async()=>{let r=e.params.taskId;if(this._taskMessageQueue){let e;for(;e=await this._taskMessageQueue.dequeue(r,t.sessionId);){if(e.type===`response`||e.type===`error`){let t=e.message,n=t.id,r=this._requestResolvers.get(n);if(r)if(this._requestResolvers.delete(n),e.type===`response`)r(t);else{let e=t;r(new gl(e.error.code,e.error.message,e.error.data))}else{let t=e.type===`response`?`Response`:`Error`;this._onerror(Error(`${t} handler missing for request ${n}`))}continue}await this._transport?.send(e.message,{relatedRequestId:t.requestId})}}let i=await this._taskStore.getTask(r,t.sessionId);if(!i)throw new gl(is.InvalidParams,`Task not found: ${r}`);if(!vl(i.status))return await this._waitForTaskUpdate(r,t.signal),await n();if(vl(i.status)){let e=await this._taskStore.getTaskResult(r,t.sessionId);return this._clearTaskQueue(r),{...e,_meta:{...e._meta,[Lo]:{taskId:r}}}}return await n()};return await n()}),this.setRequestHandler(Rs,async(e,t)=>{try{let{tasks:n,nextCursor:r}=await this._taskStore.listTasks(e.params?.cursor,t.sessionId);return{tasks:n,nextCursor:r,_meta:{}}}catch(e){throw new gl(is.InvalidParams,`Failed to list tasks: ${e instanceof Error?e.message:String(e)}`)}}),this.setRequestHandler(Bs,async(e,t)=>{try{let n=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!n)throw new gl(is.InvalidParams,`Task not found: ${e.params.taskId}`);if(vl(n.status))throw new gl(is.InvalidParams,`Cannot cancel task in terminal status: ${n.status}`);await this._taskStore.updateTaskStatus(e.params.taskId,`cancelled`,`Client cancelled task execution.`,t.sessionId),this._clearTaskQueue(e.params.taskId);let r=await this._taskStore.getTask(e.params.taskId,t.sessionId);if(!r)throw new gl(is.InvalidParams,`Task not found after cancellation: ${e.params.taskId}`);return{_meta:{},...r}}catch(e){throw e instanceof gl?e:new gl(is.InvalidRequest,`Failed to cancel task: ${e instanceof Error?e.message:String(e)}`)}}))}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),gl.fromError(is.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){if(this._transport)throw Error(`Already connected to a transport. Call close() before connecting to a new transport, or use a separate Protocol instance per connection.`);this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{t?.(),this._onclose()};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),rs(e)||os(e)?this._onresponse(e):$o(e)?this._onrequest(e,t):ts(e)?this._onnotification(e):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._taskProgressTokens.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();for(let e of this._requestHandlerAbortControllers.values())e.abort();this._requestHandlerAbortControllers.clear();let t=gl.fromError(is.ConnectionClosed,`Connection closed`);this._transport=void 0,this.onclose?.();for(let n of e.values())n(t)}_onerror(e){this.onerror?.(e)}_onnotification(e){let t=this._notificationHandlers.get(e.method)??this.fallbackNotificationHandler;t!==void 0&&Promise.resolve().then(()=>t(e)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let n=this._requestHandlers.get(e.method)??this.fallbackRequestHandler,r=this._transport,i=e.params?._meta?.[Lo]?.taskId;if(n===void 0){let t={jsonrpc:`2.0`,id:e.id,error:{code:is.MethodNotFound,message:`Method not found`}};i&&this._taskMessageQueue?this._enqueueTaskMessage(i,{type:`error`,message:t,timestamp:Date.now()},r?.sessionId).catch(e=>this._onerror(Error(`Failed to enqueue error response: ${e}`))):r?.send(t).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)));return}let a=new AbortController;this._requestHandlerAbortControllers.set(e.id,a);let o=Ko(e.params)?e.params.task:void 0,s=this._taskStore?this.requestTaskStore(e,r?.sessionId):void 0,c={signal:a.signal,sessionId:r?.sessionId,_meta:e.params?._meta,sendNotification:async t=>{if(a.signal.aborted)return;let n={relatedRequestId:e.id};i&&(n.relatedTask={taskId:i}),await this.notification(t,n)},sendRequest:async(t,n,r)=>{if(a.signal.aborted)throw new gl(is.ConnectionClosed,`Request was cancelled`);let o={...r,relatedRequestId:e.id};i&&!o.relatedTask&&(o.relatedTask={taskId:i});let c=o.relatedTask?.taskId??i;return c&&s&&await s.updateTaskStatus(c,`input_required`),await this.request(t,n,o)},authInfo:t?.authInfo,requestId:e.id,requestInfo:t?.requestInfo,taskId:i,taskStore:s,taskRequestedTtl:o?.ttl,closeSSEStream:t?.closeSSEStream,closeStandaloneSSEStream:t?.closeStandaloneSSEStream};Promise.resolve().then(()=>{o&&this.assertTaskHandlerCapability(e.method)}).then(()=>n(e,c)).then(async t=>{if(a.signal.aborted)return;let n={result:t,jsonrpc:`2.0`,id:e.id};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`response`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)},async t=>{if(a.signal.aborted)return;let n={jsonrpc:`2.0`,id:e.id,error:{code:Number.isSafeInteger(t.code)?t.code:is.InternalError,message:t.message??`Internal error`,...t.data!==void 0&&{data:t.data}}};i&&this._taskMessageQueue?await this._enqueueTaskMessage(i,{type:`error`,message:n,timestamp:Date.now()},r?.sessionId):await r?.send(n)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(e.id)===a&&this._requestHandlerAbortControllers.delete(e.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._requestResolvers.get(t);if(n){this._requestResolvers.delete(t),rs(e)?n(e):n(new gl(e.error.code,e.error.message,e.error.data));return}let r=this._responseHandlers.get(t);if(r===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t);let i=!1;if(rs(e)&&e.result&&typeof e.result==`object`){let n=e.result;if(n.task&&typeof n.task==`object`){let e=n.task;typeof e.taskId==`string`&&(i=!0,this._taskProgressTokens.set(e.taskId,t))}}i||this._progressHandlers.delete(t),rs(e)?r(e):r(gl.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}async*requestStream(e,t,n){let{task:r}=n??{};if(!r){try{yield{type:`result`,result:await this.request(e,t,n)}}catch(e){yield{type:`error`,error:e instanceof gl?e:new gl(is.InternalError,String(e))}}return}let i;try{let r=await this.request(e,Ms,n);if(r.task)i=r.task.taskId,yield{type:`taskCreated`,task:r.task};else throw new gl(is.InternalError,`Task creation did not return a task`);for(;;){let e=await this.getTask({taskId:i},n);if(yield{type:`taskStatus`,task:e},vl(e.status)){e.status===`completed`?yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)}:e.status===`failed`?yield{type:`error`,error:new gl(is.InternalError,`Task ${i} failed`)}:e.status===`cancelled`&&(yield{type:`error`,error:new gl(is.InternalError,`Task ${i} was cancelled`)});return}if(e.status===`input_required`){yield{type:`result`,result:await this.getTaskResult({taskId:i},t,n)};return}let r=e.pollInterval??this._options?.defaultTaskPollInterval??1e3;await new Promise(e=>setTimeout(e,r)),n?.signal?.throwIfAborted()}}catch(e){yield{type:`error`,error:e instanceof gl?e:new gl(is.InternalError,String(e))}}}request(e,t,n){let{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a,task:o,relatedTask:s}=n??{};return new Promise((c,l)=>{let u=e=>{l(e)};if(!this._transport){u(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(e.method),o&&this.assertTaskCapability(e.method)}catch(e){u(e);return}n?.signal?.throwIfAborted();let d=this._requestMessageId++,f={...e,jsonrpc:`2.0`,id:d};n?.onprogress&&(this._progressHandlers.set(d,n.onprogress),f.params={...e.params,_meta:{...e.params?._meta||{},progressToken:d}}),o&&(f.params={...f.params,task:o}),s&&(f.params={...f.params,_meta:{...f.params?._meta||{},[Lo]:s}});let p=e=>{this._responseHandlers.delete(d),this._progressHandlers.delete(d),this._cleanupTimeout(d),this._transport?.send({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:d,reason:String(e)}},{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))),l(e instanceof gl?e:new gl(is.RequestTimeout,String(e)))};this._responseHandlers.set(d,e=>{if(!n?.signal?.aborted){if(e instanceof Error)return l(e);try{let n=Gi(t,e.result);n.success?c(n.data):l(n.error)}catch(e){l(e)}}}),n?.signal?.addEventListener(`abort`,()=>{p(n?.signal?.reason)});let m=n?.timeout??6e4;this._setupTimeout(d,m,n?.maxTotalTimeout,()=>p(gl.fromError(is.RequestTimeout,`Request timed out`,{timeout:m})),n?.resetTimeoutOnProgress??!1);let h=s?.taskId;h?(this._requestResolvers.set(d,e=>{let t=this._responseHandlers.get(d);t?t(e):this._onerror(Error(`Response handler missing for side-channeled request ${d}`))}),this._enqueueTaskMessage(h,{type:`request`,message:f,timestamp:Date.now()}).catch(e=>{this._cleanupTimeout(d),l(e)})):this._transport.send(f,{relatedRequestId:r,resumptionToken:i,onresumptiontoken:a}).catch(e=>{this._cleanupTimeout(d),l(e)})})}async getTask(e,t){return this.request({method:`tasks/get`,params:e},Is,t)}async getTaskResult(e,t,n){return this.request({method:`tasks/result`,params:e},t,n)}async listTasks(e,t){return this.request({method:`tasks/list`,params:e},zs,t)}async cancelTask(e,t){return this.request({method:`tasks/cancel`,params:e},Vs,t)}async notification(e,t){if(!this._transport)throw Error(`Not connected`);this.assertNotificationCapability(e.method);let n=t?.relatedTask?.taskId;if(n){let r={...e,jsonrpc:`2.0`,params:{...e.params,_meta:{...e.params?._meta||{},[Lo]:t.relatedTask}}};await this._enqueueTaskMessage(n,{type:`notification`,message:r,timestamp:Date.now()});return}if((this._options?.debouncedNotificationMethods??[]).includes(e.method)&&!e.params&&!t?.relatedRequestId&&!t?.relatedTask){if(this._pendingDebouncedNotifications.has(e.method))return;this._pendingDebouncedNotifications.add(e.method),Promise.resolve().then(()=>{if(this._pendingDebouncedNotifications.delete(e.method),!this._transport)return;let n={...e,jsonrpc:`2.0`};t?.relatedTask&&(n={...n,params:{...n.params,_meta:{...n.params?._meta||{},[Lo]:t.relatedTask}}}),this._transport?.send(n,t).catch(e=>this._onerror(e))});return}let r={...e,jsonrpc:`2.0`};t?.relatedTask&&(r={...r,params:{...r.params,_meta:{...r.params?._meta||{},[Lo]:t.relatedTask}}}),await this._transport.send(r,t)}setRequestHandler(e,t){let n=yl(e);this.assertRequestHandlerCapability(n),this._requestHandlers.set(n,(n,r)=>{let i=bl(e,n);return Promise.resolve(t(i,r))})}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t){let n=yl(e);this._notificationHandlers.set(n,n=>{let r=bl(e,n);return Promise.resolve(t(r))})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}_cleanupTaskProgressHandler(e){let t=this._taskProgressTokens.get(e);t!==void 0&&(this._progressHandlers.delete(t),this._taskProgressTokens.delete(e))}async _enqueueTaskMessage(e,t,n){if(!this._taskStore||!this._taskMessageQueue)throw Error(`Cannot enqueue task message: taskStore and taskMessageQueue are not configured`);let r=this._options?.maxTaskQueueSize;await this._taskMessageQueue.enqueue(e,t,n,r)}async _clearTaskQueue(e,t){if(this._taskMessageQueue){let n=await this._taskMessageQueue.dequeueAll(e,t);for(let t of n)if(t.type===`request`&&$o(t.message)){let n=t.message.id,r=this._requestResolvers.get(n);r?(r(new gl(is.InternalError,`Task cancelled or completed`)),this._requestResolvers.delete(n)):this._onerror(Error(`Resolver missing for request ${n} during task ${e} cleanup`))}}}async _waitForTaskUpdate(e,t){let n=this._options?.defaultTaskPollInterval??1e3;try{let t=await this._taskStore?.getTask(e);t?.pollInterval&&(n=t.pollInterval)}catch{}return new Promise((e,r)=>{if(t.aborted){r(new gl(is.InvalidRequest,`Request cancelled`));return}let i=setTimeout(e,n);t.addEventListener(`abort`,()=>{clearTimeout(i),r(new gl(is.InvalidRequest,`Request cancelled`))},{once:!0})})}requestTaskStore(e,t){let n=this._taskStore;if(!n)throw Error(`No task store configured`);return{createTask:async r=>{if(!e)throw Error(`No request provided`);return await n.createTask(r,e.id,{method:e.method,params:e.params},t)},getTask:async e=>{let r=await n.getTask(e,t);if(!r)throw new gl(is.InvalidParams,`Failed to retrieve task: Task not found`);return r},storeTaskResult:async(e,r,i)=>{await n.storeTaskResult(e,r,i,t);let a=await n.getTask(e,t);if(a){let t=Ps.parse({method:`notifications/tasks/status`,params:a});await this.notification(t),vl(a.status)&&this._cleanupTaskProgressHandler(e)}},getTaskResult:e=>n.getTaskResult(e,t),updateTaskStatus:async(e,r,i)=>{let a=await n.getTask(e,t);if(!a)throw new gl(is.InvalidParams,`Task "${e}" not found - it may have been cleaned up`);if(vl(a.status))throw new gl(is.InvalidParams,`Cannot update task "${e}" from terminal status "${a.status}" to "${r}". Terminal states (completed, failed, cancelled) cannot transition to other states.`);await n.updateTaskStatus(e,r,i,t);let o=await n.getTask(e,t);if(o){let t=Ps.parse({method:`notifications/tasks/status`,params:o});await this.notification(t),vl(o.status)&&this._cleanupTaskProgressHandler(e)}},listTasks:e=>n.listTasks(e,t)}}},Sl=`2026-01-26`,Cl=class{eventTarget;eventSource;messageListener;constructor(e=window.parent,t){this.eventTarget=e,this.eventSource=t,this.messageListener=e=>{if(t&&e.source!==this.eventSource){console.debug(`Ignoring message from unknown source`,e);return}let n=ss.safeParse(e.data);n.success?(console.debug(`Parsed message`,n.data),this.onmessage?.(n.data)):e.data?.jsonrpc===`2.0`?(console.error(`Failed to parse message`,n.error.message,e),this.onerror?.(Error(`Invalid JSON-RPC message received: `+n.error.message))):console.debug(`Ignoring non-JSON-RPC message`,n.error.message,e)}}async start(){window.addEventListener(`message`,this.messageListener)}async send(e,t){e.method!==`ui/notifications/tool-input-partial`&&console.debug(`Sending message`,e),this.eventTarget.postMessage(e,`*`)}async close(){window.removeEventListener(`message`,this.messageListener),this.onclose?.()}onclose;onerror;onmessage;sessionId;setProtocolVersion},wl=z([B(`light`),B(`dark`)]).describe(`Color theme preference for the host environment.`),Tl=z([B(`inline`),B(`fullscreen`),B(`pip`)]).describe(`Display mode for UI presentation.`),El=so(z([B(`--color-background-primary`),B(`--color-background-secondary`),B(`--color-background-tertiary`),B(`--color-background-inverse`),B(`--color-background-ghost`),B(`--color-background-info`),B(`--color-background-danger`),B(`--color-background-success`),B(`--color-background-warning`),B(`--color-background-disabled`),B(`--color-text-primary`),B(`--color-text-secondary`),B(`--color-text-tertiary`),B(`--color-text-inverse`),B(`--color-text-ghost`),B(`--color-text-info`),B(`--color-text-danger`),B(`--color-text-success`),B(`--color-text-warning`),B(`--color-text-disabled`),B(`--color-border-primary`),B(`--color-border-secondary`),B(`--color-border-tertiary`),B(`--color-border-inverse`),B(`--color-border-ghost`),B(`--color-border-info`),B(`--color-border-danger`),B(`--color-border-success`),B(`--color-border-warning`),B(`--color-border-disabled`),B(`--color-ring-primary`),B(`--color-ring-secondary`),B(`--color-ring-inverse`),B(`--color-ring-info`),B(`--color-ring-danger`),B(`--color-ring-success`),B(`--color-ring-warning`),B(`--font-sans`),B(`--font-mono`),B(`--font-weight-normal`),B(`--font-weight-medium`),B(`--font-weight-semibold`),B(`--font-weight-bold`),B(`--font-text-xs-size`),B(`--font-text-sm-size`),B(`--font-text-md-size`),B(`--font-text-lg-size`),B(`--font-heading-xs-size`),B(`--font-heading-sm-size`),B(`--font-heading-md-size`),B(`--font-heading-lg-size`),B(`--font-heading-xl-size`),B(`--font-heading-2xl-size`),B(`--font-heading-3xl-size`),B(`--font-text-xs-line-height`),B(`--font-text-sm-line-height`),B(`--font-text-md-line-height`),B(`--font-text-lg-line-height`),B(`--font-heading-xs-line-height`),B(`--font-heading-sm-line-height`),B(`--font-heading-md-line-height`),B(`--font-heading-lg-line-height`),B(`--font-heading-xl-line-height`),B(`--font-heading-2xl-line-height`),B(`--font-heading-3xl-line-height`),B(`--border-radius-xs`),B(`--border-radius-sm`),B(`--border-radius-md`),B(`--border-radius-lg`),B(`--border-radius-xl`),B(`--border-radius-full`),B(`--border-width-regular`),B(`--shadow-hairline`),B(`--shadow-sm`),B(`--shadow-md`),B(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
53
53
 
54
54
  Individual style keys are optional - hosts may provide any subset of these values.
55
55
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
56
56
 
57
57
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
58
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),B([P(),Wa()]).describe(`Style variables for theming MCP apps.
58
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),z([F(),Ga()]).describe(`Style variables for theming MCP apps.
59
59
 
60
60
  Individual style keys are optional - hosts may provide any subset of these values.
61
61
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -67,18 +67,18 @@ Individual style keys are optional - hosts may provide any subset of these value
67
67
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
68
68
 
69
69
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
70
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);z({method:H(`ui/open-link`),params:z({url:P().describe(`URL to open in the host's browser`)})});var wl=z({isError:I().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Tl=z({isError:I().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),El=z({isError:I().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();z({method:H(`ui/notifications/sandbox-proxy-ready`),params:z({})});var Dl=z({connectDomains:R(P()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
70
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);R({method:B(`ui/open-link`),params:R({url:F().describe(`URL to open in the host's browser`)})});var Dl=R({isError:Ua().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),Ol=R({isError:Ua().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),kl=R({isError:Ua().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough();R({method:B(`ui/notifications/sandbox-proxy-ready`),params:R({})});var Al=R({connectDomains:L(F()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
71
71
 
72
72
  - Maps to CSP \`connect-src\` directive
73
- - Empty or omitted → no network connections (secure default)`),resourceDomains:R(P()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:R(P()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:R(P()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Ol=z({camera:z({}).optional().describe(`Request camera access.
73
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:L(F()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:L(F()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:L(F()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),jl=R({camera:R({}).optional().describe(`Request camera access.
74
74
 
75
- Maps to Permission Policy \`camera\` feature.`),microphone:z({}).optional().describe(`Request microphone access.
75
+ Maps to Permission Policy \`camera\` feature.`),microphone:R({}).optional().describe(`Request microphone access.
76
76
 
77
- Maps to Permission Policy \`microphone\` feature.`),geolocation:z({}).optional().describe(`Request geolocation access.
77
+ Maps to Permission Policy \`microphone\` feature.`),geolocation:R({}).optional().describe(`Request geolocation access.
78
78
 
79
- Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:z({}).optional().describe(`Request clipboard write access.
79
+ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:R({}).optional().describe(`Request clipboard write access.
80
80
 
81
- Maps to Permission Policy \`clipboard-write\` feature.`)});z({method:H(`ui/notifications/size-changed`),params:z({width:F().optional().describe(`New width in pixels.`),height:F().optional().describe(`New height in pixels.`)})});var kl=z({method:H(`ui/notifications/tool-input`),params:z({arguments:V(P(),L().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Al=z({method:H(`ui/notifications/tool-input-partial`),params:z({arguments:V(P(),L().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),jl=z({method:H(`ui/notifications/tool-cancelled`),params:z({reason:P().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),Ml=z({fonts:P().optional()}),Nl=z({variables:Cl.optional().describe(`CSS variables for theming the app.`),css:Ml.optional().describe(`CSS blocks that apps can inject.`)}),Pl=z({method:H(`ui/resource-teardown`),params:z({})});V(P(),L());var Fl=z({text:z({}).optional().describe(`Host supports text content blocks.`),image:z({}).optional().describe(`Host supports image content blocks.`),audio:z({}).optional().describe(`Host supports audio content blocks.`),resource:z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:z({}).optional().describe(`Host supports structured content.`)});z({method:H(`ui/notifications/request-teardown`),params:z({}).optional()});var Il=z({experimental:z({}).optional().describe(`Experimental features (structure TBD).`),openLinks:z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:z({listChanged:I().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:z({listChanged:I().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:z({}).optional().describe(`Host accepts log messages.`),sandbox:z({permissions:Ol.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Dl.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Fl.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Fl.optional().describe(`Host supports receiving content messages (ui/message) from the view.`)}),Ll=z({experimental:z({}).optional().describe(`Experimental features (structure TBD).`),tools:z({listChanged:I().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:R(Sl).optional().describe(`Display modes the app supports.`)});z({method:H(`ui/notifications/initialized`),params:z({}).optional()}),z({csp:Dl.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Ol.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:P().optional().describe(`Dedicated origin for view sandbox.
81
+ Maps to Permission Policy \`clipboard-write\` feature.`)});R({method:B(`ui/notifications/size-changed`),params:R({width:I().optional().describe(`New width in pixels.`),height:I().optional().describe(`New height in pixels.`)})});var Ml=R({method:B(`ui/notifications/tool-input`),params:R({arguments:so(F(),Ya().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),Nl=R({method:B(`ui/notifications/tool-input-partial`),params:R({arguments:so(F(),Ya().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),Pl=R({method:B(`ui/notifications/tool-cancelled`),params:R({reason:F().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})}),Fl=R({fonts:F().optional()}),Il=R({variables:El.optional().describe(`CSS variables for theming the app.`),css:Fl.optional().describe(`CSS blocks that apps can inject.`)}),Ll=R({method:B(`ui/resource-teardown`),params:R({})});so(F(),Ya());var Rl=R({text:R({}).optional().describe(`Host supports text content blocks.`),image:R({}).optional().describe(`Host supports image content blocks.`),audio:R({}).optional().describe(`Host supports audio content blocks.`),resource:R({}).optional().describe(`Host supports resource content blocks.`),resourceLink:R({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:R({}).optional().describe(`Host supports structured content.`)});R({method:B(`ui/notifications/request-teardown`),params:R({}).optional()});var zl=R({experimental:R({}).optional().describe(`Experimental features (structure TBD).`),openLinks:R({}).optional().describe(`Host supports opening external URLs.`),downloadFile:R({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:R({listChanged:Ua().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:R({listChanged:Ua().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:R({}).optional().describe(`Host accepts log messages.`),sandbox:R({permissions:jl.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:Al.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Rl.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Rl.optional().describe(`Host supports receiving content messages (ui/message) from the view.`)}),Bl=R({experimental:R({}).optional().describe(`Experimental features (structure TBD).`),tools:R({listChanged:Ua().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L(Tl).optional().describe(`Display modes the app supports.`)});R({method:B(`ui/notifications/initialized`),params:R({}).optional()}),R({csp:Al.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:jl.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:F().optional().describe(`Dedicated origin for view sandbox.
82
82
 
83
83
  Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
84
84
 
@@ -86,57 +86,90 @@ Useful when views need stable, dedicated origins for OAuth callbacks, CORS polic
86
86
  - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
87
87
  - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
88
88
 
89
- If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:I().optional().describe(`Visual boundary preference - true if view prefers a visible border.
89
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Ua().optional().describe(`Visual boundary preference - true if view prefers a visible border.
90
90
 
91
91
  Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
92
92
 
93
93
  - \`true\`: request visible border + background
94
94
  - \`false\`: request no visible border + background
95
- - omitted: host decides border`)}),z({method:H(`ui/request-display-mode`),params:z({mode:Sl.describe(`The display mode being requested.`)})});var Rl=z({mode:Sl.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),zl=B([H(`model`),H(`app`)]).describe(`Tool visibility scope - who can access the tool.`);z({resourceUri:P().optional(),visibility:R(zl).optional().describe(`Who can access this tool. Default: ["model", "app"]
95
+ - omitted: host decides border`)}),R({method:B(`ui/request-display-mode`),params:R({mode:Tl.describe(`The display mode being requested.`)})});var Vl=R({mode:Tl.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough(),Hl=z([B(`model`),B(`app`)]).describe(`Tool visibility scope - who can access the tool.`);R({resourceUri:F().optional(),visibility:L(Hl).optional().describe(`Who can access this tool. Default: ["model", "app"]
96
96
  - "model": Tool visible to and callable by the agent
97
- - "app": Tool callable by the app from this server only`)}),z({mimeTypes:R(P()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),z({method:H(`ui/download-file`),params:z({contents:R(B([vc,yc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),z({method:H(`ui/message`),params:z({role:H(`user`).describe(`Message role, currently only "user" is supported.`),content:R(bc).describe(`Message content blocks (text, image, etc.).`)})}),z({method:H(`ui/notifications/sandbox-resource-ready`),params:z({html:P().describe(`HTML content to load into the inner iframe.`),sandbox:P().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Dl.optional().describe(`CSP configuration from resource metadata.`),permissions:Ol.optional().describe(`Sandbox permissions from resource metadata.`)})});var Bl=z({method:H(`ui/notifications/tool-result`),params:Oc.describe(`Standard MCP tool execution result.`)}),Vl=z({toolInfo:z({id:Jo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Tc.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:xl.optional().describe(`Current color theme preference.`),styles:Nl.optional().describe(`Style configuration for theming the app.`),displayMode:Sl.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:R(Sl).optional().describe(`Display modes the host supports.`),containerDimensions:B([z({height:F().describe(`Fixed container height in pixels.`)}),z({maxHeight:B([F(),Wa()]).optional().describe(`Maximum container height in pixels.`)})]).and(B([z({width:F().describe(`Fixed container width in pixels.`)}),z({maxWidth:B([F(),Wa()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
98
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:P().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:P().optional().describe(`User's timezone in IANA format.`),userAgent:P().optional().describe(`Host application identifier.`),platform:B([H(`web`),H(`desktop`),H(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:z({touch:I().optional().describe(`Whether the device supports touch input.`),hover:I().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:z({top:F().describe(`Top safe area inset in pixels.`),right:F().describe(`Right safe area inset in pixels.`),bottom:F().describe(`Bottom safe area inset in pixels.`),left:F().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Hl=z({method:H(`ui/notifications/host-context-changed`),params:Vl.describe(`Partial context update containing only changed fields.`)});z({method:H(`ui/update-model-context`),params:z({content:R(bc).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:V(P(),L().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),z({method:H(`ui/initialize`),params:z({appInfo:us.describe(`App identification (name and version).`),appCapabilities:Ll.describe(`Features and capabilities this app provides.`),protocolVersion:P().describe(`Protocol version this app supports.`)})});var Ul=z({protocolVersion:P().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:us.describe(`Host application identification and version.`),hostCapabilities:Il.describe(`Features and capabilities provided by the host.`),hostContext:Vl.describe(`Rich context about the host environment.`)}).passthrough(),Wl=class extends vl{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,this.setRequestHandler(bs,e=>(console.log(`Received ping:`,e.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(e){this.setNotificationHandler(kl,t=>e(t.params))}set ontoolinputpartial(e){this.setNotificationHandler(Al,t=>e(t.params))}set ontoolresult(e){this.setNotificationHandler(Bl,t=>e(t.params))}set ontoolcancelled(e){this.setNotificationHandler(jl,t=>e(t.params))}set onhostcontextchanged(e){this.setNotificationHandler(Hl,t=>{this._hostContext={...this._hostContext,...t.params},e(t.params)})}set onteardown(e){this.setRequestHandler(Pl,(t,n)=>e(t.params,n))}set oncalltool(e){this.setRequestHandler(Ac,(t,n)=>e(t.params,n))}set onlisttools(e){this.setRequestHandler(Ec,(t,n)=>e(t.params,n))}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},Oc,t)}async readServerResource(e,t){return await this.request({method:`resources/read`,params:e},ec,t)}async listServerResources(e,t){return await this.request({method:`resources/list`,params:e},Js,t)}sendMessage(e,t){return this.request({method:`ui/message`,params:e},El,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this.request({method:`ui/update-model-context`,params:e},as,t)}openLink(e,t){return this.request({method:`ui/open-link`,params:e},wl,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this.request({method:`ui/download-file`,params:e},Tl,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Rl,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new bl(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:yl}},Ul,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Gl({appInfo:e,capabilities:t,onAppCreated:n}){let[r,i]=(0,N.useState)(null),[a,o]=(0,N.useState)(!1),[s,c]=(0,N.useState)(null);return(0,N.useEffect)(()=>{let r=!0;async function a(){try{let a=new bl(window.parent,window.parent),s=new Wl(e,t);n?.(s),await s.connect(a),r&&(i(s),o(!0),c(null))}catch(e){r&&(i(null),o(!1),c(e instanceof Error?e:Error(`Failed to connect`)))}}return a(),()=>{r=!1}},[]),{app:r,isConnected:a,error:s}}function Kl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Kl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function W(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Kl(e))&&(r&&(r+=` `),r+=t);return r}var ql=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function Jl(e){return typeof e==`string`?ql.includes(e):!1}var Yl=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.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.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.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.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function Xl(e){return typeof e==`string`?Yl.has(e):!1}function Zl(e){return typeof e==`string`&&e.startsWith(`data-`)}function Ql(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Xl(n)||Zl(n))&&(t[n]=e[n]);return t}function $l(e){if(e==null)return null;if((0,N.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return Ql(t)}return typeof e==`object`&&!Array.isArray(e)?Ql(e):null}function eu(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(Xl(n)||Zl(n)||Jl(n))&&(t[n]=e[n]);return t}function tu(e){return e==null?null:(0,N.isValidElement)(e)?eu(e.props):typeof e==`object`&&!Array.isArray(e)?eu(e):null}var nu=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ru.apply(null,arguments)}function iu(e,t){if(e==null)return{};var n,r,i=au(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function au(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var ou=(0,N.forwardRef)((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=iu(e,nu),d=a||{width:r,height:i,x:0,y:0},f=W(`recharts-surface`,o);return N.createElement(`svg`,ru({},eu(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),N.createElement(`title`,null,c),N.createElement(`desc`,null,l),n)}),su=[`children`,`className`];function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(null,arguments)}function lu(e,t){if(e==null)return{};var n,r,i=uu(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var G=N.forwardRef((e,t)=>{var{children:n,className:r}=e,i=lu(e,su),a=W(`recharts-layer`,r);return N.createElement(`g`,cu({className:a},eu(i),{ref:t}),n)}),du=(0,N.createContext)(null),fu=()=>(0,N.useContext)(du);function pu(e){return function(){return e}}var mu=Math.cos,hu=Math.sin,gu=Math.sqrt,_u=Math.PI;_u/2;var vu=2*_u,yu=Math.PI,bu=2*yu,xu=1e-6,Su=bu-xu;function Cu(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function wu(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Cu;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Tu=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Cu:wu(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>xu)if(!(Math.abs(u*s-c*l)>xu)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((yu-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>xu&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>xu||Math.abs(this._y1-l)>xu)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%bu+bu),d>Su?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>xu&&this._append`A${n},${n},0,${+(d>=yu)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function Eu(){return new Tu}Eu.prototype=Tu.prototype;function Du(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Tu(t)}Array.prototype.slice;function Ou(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function ku(e){this._context=e}ku.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 Au(e){return new ku(e)}function ju(e){return e[0]}function Mu(e){return e[1]}function Nu(e,t){var n=pu(!0),r=null,i=Au,a=null,o=Du(s);e=typeof e==`function`?e:e===void 0?ju:pu(e),t=typeof t==`function`?t:t===void 0?Mu:pu(t);function s(s){var c,l=(s=Ou(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:pu(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:pu(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:pu(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function Pu(e,t,n){var r=null,i=pu(!0),a=null,o=Au,s=null,c=Du(l);e=typeof e==`function`?e:e===void 0?ju:pu(+e),t=typeof t==`function`?t:pu(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?Mu:pu(+n);function l(l){var u,d,f,p=(l=Ou(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return Nu().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:pu(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:pu(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:pu(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:pu(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:pu(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:pu(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:pu(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var Fu=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Iu(e){return new Fu(e,!0)}function Lu(e){return new Fu(e,!1)}var Ru={draw(e,t){let n=gu(t/_u);e.moveTo(n,0),e.arc(0,0,n,0,vu)}},zu={draw(e,t){let n=gu(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()}},Bu=gu(1/3),Vu=Bu*2,Hu={draw(e,t){let n=gu(t/Vu),r=n*Bu;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Uu={draw(e,t){let n=gu(t),r=-n/2;e.rect(r,r,n,n)}},Wu=.8908130915292852,Gu=hu(_u/10)/hu(7*_u/10),Ku=hu(vu/10)*Gu,qu=-mu(vu/10)*Gu,Ju={draw(e,t){let n=gu(t*Wu),r=Ku*n,i=qu*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=vu*t/5,o=mu(a),s=hu(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Yu=gu(3),Xu={draw(e,t){let n=-gu(t/(Yu*3));e.moveTo(0,n*2),e.lineTo(-Yu*n,-n),e.lineTo(Yu*n,-n),e.closePath()}},Zu=-.5,Qu=gu(3)/2,$u=1/gu(12),ed=($u/2+1)*3,td={draw(e,t){let n=gu(t/ed),r=n/2,i=n*$u,a=r,o=n*$u+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Zu*r-Qu*i,Qu*r+Zu*i),e.lineTo(Zu*a-Qu*o,Qu*a+Zu*o),e.lineTo(Zu*s-Qu*c,Qu*s+Zu*c),e.lineTo(Zu*r+Qu*i,Zu*i-Qu*r),e.lineTo(Zu*a+Qu*o,Zu*o-Qu*a),e.lineTo(Zu*s+Qu*c,Zu*c-Qu*s),e.closePath()}};function nd(e,t){let n=null,r=Du(i);e=typeof e==`function`?e:pu(e||Ru),t=typeof t==`function`?t:pu(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:pu(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:pu(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function rd(){}function id(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 ad(e){this._context=e}ad.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:id(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:id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function od(e){return new ad(e)}function sd(e){this._context=e}sd.prototype={areaStart:rd,areaEnd:rd,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:id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function cd(e){return new sd(e)}function ld(e){this._context=e}ld.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:id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ud(e){return new ld(e)}function dd(e){this._context=e}dd.prototype={areaStart:rd,areaEnd:rd,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 fd(e){return new dd(e)}function pd(e){return e<0?-1:1}function md(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),s=(a*i+o*r)/(r+i);return(pd(a)+pd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function hd(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function gd(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function _d(e){this._context=e}_d.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:gd(this,this._t0,hd(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,gd(this,hd(this,n=md(this,e,t)),n);break;default:gd(this,this._t0,n=md(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function vd(e){this._context=new yd(e)}(vd.prototype=Object.create(_d.prototype)).point=function(e,t){_d.prototype.point.call(this,t,e)};function yd(e){this._context=e}yd.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 bd(e){return new _d(e)}function xd(e){return new vd(e)}function Sd(e){this._context=e}Sd.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=Cd(e),i=Cd(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 Cd(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=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 wd(e){return new Sd(e)}function Td(e,t){this._context=e,this._t=t}Td.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 Ed(e){return new Td(e,.5)}function Dd(e){return new Td(e,0)}function Od(e){return new Td(e,1)}function kd(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Ad(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function jd(e,t){return e[t]}function Md(e){let t=[];return t.key=e,t}function Nd(){var e=pu([]),t=Ad,n=kd,r=jd;function i(i){var a=Array.from(e.apply(this,arguments),Md),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Ou(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:pu(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:pu(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Ad:typeof e==`function`?e:pu(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??kd,i):n},i}function Pd(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}kd(e,t)}}function Fd(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,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}kd(e,t)}}function Id(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 s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,kd(e,t)}}var Ld=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),Rd=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),zd=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),Bd=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),Vd=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Bd(),n=zd();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a<i;){let t=e[a];s?t===`\\`&&a+1<i?(a++,o+=e[a]):t===s?s=``:o+=t:c?t===`"`||t===`'`?s=t:t===`]`?(c=!1,r.push(o),o=``):o+=t:t===`[`?(c=!0,o&&=(r.push(o),``)):t===`.`?o&&=(r.push(o),``):o+=t,a++}return o&&r.push(o),r}e.toPath=r})),Hd=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ld(),n=Rd(),r=zd(),i=Vd();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e<n.length;e++){if(i==null||t.isUnsafeProperty(n[e]))return r;i=i[n[e]]}return i===void 0?r:i}e.get=a})),Ud=o(((e,t)=>{t.exports=Hd().get})),Wd=4;function Gd(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wd),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function Kd(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Gd(i)+n},``)}var qd=l(Ud()),Jd=e=>e===0?0:e>0?1:-1,Yd=e=>typeof e==`number`&&e!=+e,Xd=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,K=e=>(typeof e==`number`||e instanceof Number)&&!Yd(e),Zd=e=>K(e)||typeof e==`string`,Qd=0,$d=e=>{var t=++Qd;return`${e||``}${t}`},ef=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(e)&&typeof e!=`string`)return n;var i;if(Xd(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Yd(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},tf=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function nf(e,t,n){return K(e)&&K(t)?Gd(e+n*(t-e)):t}function rf(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):(0,qd.default)(e,t))===n)}var af=e=>{for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u]?.cx||0,l=e[u]?.cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},of=e=>e==null,sf=e=>of(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function cf(e){return e!=null}function lf(){}var uf=[`type`,`size`,`sizeType`];function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(null,arguments)}function ff(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ff(Object(n),!0).forEach(function(t){mf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ff(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mf(e,t,n){return(t=hf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hf(e){var t=gf(e,`string`);return typeof t==`symbol`?t:t+``}function gf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _f(e,t){if(e==null)return{};var n,r,i=vf(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var yf={symbolCircle:Ru,symbolCross:zu,symbolDiamond:Hu,symbolSquare:Uu,symbolStar:Ju,symbolTriangle:Xu,symbolWye:td},bf=Math.PI/180,xf=e=>yf[`symbol${sf(e)}`]||Ru,Sf=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*bf;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Cf=(e,t)=>{yf[`symbol${sf(e)}`]=t},wf=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=pf(pf({},_f(e,uf)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=xf(a),t=nd().type(e).size(Sf(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=eu(i);return K(c)&&K(l)&&K(n)?N.createElement(`path`,df({},u,{className:W(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null};wf.registerSymbol=Cf;var Tf=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Ef=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,N.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Jl(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},Df=(e,t,n)=>r=>(e(t,n,r),null),Of=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Jl(i)&&typeof a==`function`&&(r||={},r[i]=Df(a,t,n))}),r},kf=e=>Array.isArray(e)&&e.length>0;function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Af(Object(n),!0).forEach(function(t){Mf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mf(e,t,n){return(t=Nf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nf(e){var t=Pf(e,`string`);return typeof t==`symbol`?t:t+``}function Pf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ff(e,t){var n=jf({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function If(){return If=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},If.apply(null,arguments)}function Lf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lf(Object(n),!0).forEach(function(t){zf(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zf(e,t,n){return(t=Bf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bf(e){var t=Vf(e,`string`);return typeof t==`symbol`?t:t+``}function Vf(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Hf=32,Uf={align:`center`,iconSize:14,inactiveColor:`#ccc`,layout:`horizontal`,verticalAlign:`middle`,labelStyle:{}};function Wf(e){if(typeof e==`object`&&e&&`strokeDasharray`in e)return String(e.strokeDasharray)}function Gf(e){var{data:t,iconType:n,inactiveColor:r}=e,i=Hf/2,a=Hf/6,o=Hf/3,s=t.inactive?r:t.color,c=n??t.type;if(c===`none`)return null;if(c===`plainline`)return N.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:s,strokeDasharray:Wf(t.payload),x1:0,y1:i,x2:Hf,y2:i,className:`recharts-legend-icon`});if(c===`line`)return N.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:s,d:`M0,${i}h${o}
97
+ - "app": Tool callable by the app from this server only`)}),R({mimeTypes:L(F()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),R({method:B(`ui/download-file`),params:R({contents:L(z([xc,Sc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),R({method:B(`ui/message`),params:R({role:B(`user`).describe(`Message role, currently only "user" is supported.`),content:L(V).describe(`Message content blocks (text, image, etc.).`)})}),R({method:B(`ui/notifications/sandbox-resource-ready`),params:R({html:F().describe(`HTML content to load into the inner iframe.`),sandbox:F().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:Al.optional().describe(`CSP configuration from resource metadata.`),permissions:jl.optional().describe(`Sandbox permissions from resource metadata.`)})});var Ul=R({method:B(`ui/notifications/tool-result`),params:jc.describe(`Standard MCP tool execution result.`)}),Wl=R({toolInfo:R({id:Zo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Oc.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:wl.optional().describe(`Current color theme preference.`),styles:Il.optional().describe(`Style configuration for theming the app.`),displayMode:Tl.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:L(Tl).optional().describe(`Display modes the host supports.`),containerDimensions:z([R({height:I().describe(`Fixed container height in pixels.`)}),R({maxHeight:z([I(),Ga()]).optional().describe(`Maximum container height in pixels.`)})]).and(z([R({width:I().describe(`Fixed container width in pixels.`)}),R({maxWidth:z([I(),Ga()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
98
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:F().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:F().optional().describe(`User's timezone in IANA format.`),userAgent:F().optional().describe(`Host application identifier.`),platform:z([B(`web`),B(`desktop`),B(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:R({touch:Ua().optional().describe(`Whether the device supports touch input.`),hover:Ua().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:R({top:I().describe(`Top safe area inset in pixels.`),right:I().describe(`Right safe area inset in pixels.`),bottom:I().describe(`Bottom safe area inset in pixels.`),left:I().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough(),Gl=R({method:B(`ui/notifications/host-context-changed`),params:Wl.describe(`Partial context update containing only changed fields.`)});R({method:B(`ui/update-model-context`),params:R({content:L(V).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:so(F(),Ya().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),R({method:B(`ui/initialize`),params:R({appInfo:ps.describe(`App identification (name and version).`),appCapabilities:Bl.describe(`Features and capabilities this app provides.`),protocolVersion:F().describe(`Protocol version this app supports.`)})});var Kl=R({protocolVersion:F().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:ps.describe(`Host application identification and version.`),hostCapabilities:zl.describe(`Features and capabilities provided by the host.`),hostContext:Wl.describe(`Rich context about the host environment.`)}).passthrough(),ql=class extends xl{_appInfo;_capabilities;options;_hostCapabilities;_hostInfo;_hostContext;constructor(e,t={},n={autoResize:!0}){super(n),this._appInfo=e,this._capabilities=t,this.options=n,this.setRequestHandler(Cs,e=>(console.log(`Received ping:`,e.params),{})),this.onhostcontextchanged=()=>{}}getHostCapabilities(){return this._hostCapabilities}getHostVersion(){return this._hostInfo}getHostContext(){return this._hostContext}set ontoolinput(e){this.setNotificationHandler(Ml,t=>e(t.params))}set ontoolinputpartial(e){this.setNotificationHandler(Nl,t=>e(t.params))}set ontoolresult(e){this.setNotificationHandler(Ul,t=>e(t.params))}set ontoolcancelled(e){this.setNotificationHandler(Pl,t=>e(t.params))}set onhostcontextchanged(e){this.setNotificationHandler(Gl,t=>{this._hostContext={...this._hostContext,...t.params},e(t.params)})}set onteardown(e){this.setRequestHandler(Ll,(t,n)=>e(t.params,n))}set oncalltool(e){this.setRequestHandler(Nc,(t,n)=>e(t.params,n))}set onlisttools(e){this.setRequestHandler(kc,(t,n)=>e(t.params,n))}assertCapabilityForMethod(e){}assertRequestHandlerCapability(e){switch(e){case`tools/call`:case`tools/list`:if(!this._capabilities.tools)throw Error(`Client does not support tool capability (required for ${e})`);return;case`ping`:case`ui/resource-teardown`:return;default:throw Error(`No handler for method ${e} registered`)}}assertNotificationCapability(e){}assertTaskCapability(e){throw Error(`Tasks are not supported in MCP Apps`)}assertTaskHandlerCapability(e){throw Error(`Task handlers are not supported in MCP Apps`)}async callServerTool(e,t){if(typeof e==`string`)throw Error(`callServerTool() expects an object as its first argument, but received a string ("${e}"). Did you mean: callServerTool({ name: "${e}", arguments: { ... } })?`);return await this.request({method:`tools/call`,params:e},jc,t)}async readServerResource(e,t){return await this.request({method:`resources/read`,params:e},rc,t)}async listServerResources(e,t){return await this.request({method:`resources/list`,params:e},Zs,t)}sendMessage(e,t){return this.request({method:`ui/message`,params:e},kl,t)}sendLog(e){return this.notification({method:`notifications/message`,params:e})}updateModelContext(e,t){return this.request({method:`ui/update-model-context`,params:e},cs,t)}openLink(e,t){return this.request({method:`ui/open-link`,params:e},Dl,t)}sendOpenLink=this.openLink;downloadFile(e,t){return this.request({method:`ui/download-file`,params:e},Ol,t)}requestTeardown(e={}){return this.notification({method:`ui/notifications/request-teardown`,params:e})}requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Vl,t)}sendSizeChanged(e){return this.notification({method:`ui/notifications/size-changed`,params:e})}setupSizeChangedNotifications(){let e=!1,t=0,n=0,r=()=>{e||(e=!0,requestAnimationFrame(()=>{e=!1;let r=document.documentElement,i=r.style.height;r.style.height=`max-content`;let a=Math.ceil(r.getBoundingClientRect().height);r.style.height=i;let o=Math.ceil(window.innerWidth);(o!==t||a!==n)&&(t=o,n=a,this.sendSizeChanged({width:o,height:a}))}))};r();let i=new ResizeObserver(r);return i.observe(document.documentElement),i.observe(document.body),()=>i.disconnect()}async connect(e=new Cl(window.parent,window.parent),t){if(this.transport)throw Error(`App is already connected. Call close() before connecting again.`);await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this._capabilities,appInfo:this._appInfo,protocolVersion:Sl}},Kl,t);if(e===void 0)throw Error(`Server sent invalid initialize result: ${e}`);this._hostCapabilities=e.hostCapabilities,this._hostInfo=e.hostInfo,this._hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.options?.autoResize&&this.setupSizeChangedNotifications()}catch(e){throw this.close(),e}}};function Jl({appInfo:e,capabilities:t,onAppCreated:n}){let[r,i]=(0,Hi.useState)(null),[a,o]=(0,Hi.useState)(!1),[s,c]=(0,Hi.useState)(null);return(0,Hi.useEffect)(()=>{let r=!0;async function a(){try{let a=new Cl(window.parent,window.parent),s=new ql(e,t);n?.(s),await s.connect(a),r&&(i(s),o(!0),c(null))}catch(e){r&&(i(null),o(!1),c(e instanceof Error?e:Error(`Failed to connect`)))}}return a(),()=>{r=!1}},[]),{app:r,isConnected:a,error:s}}function Yl(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Yl(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function H(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yl(e))&&(r&&(r+=` `),r+=t);return r}var Xl=o((()=>{}));function Zl(e){return typeof e==`string`?Ql.includes(e):!1}var Ql,$l=o((()=>{Ql=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`)}));function eu(e){return typeof e==`string`?au.has(e):!1}function tu(e){return typeof e==`string`&&e.startsWith(`data-`)}function nu(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(eu(n)||tu(n))&&(t[n]=e[n]);return t}function ru(e){if(e==null)return null;if((0,iu.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return nu(t)}return typeof e==`object`&&!Array.isArray(e)?nu(e):null}var iu,au,ou=o((()=>{iu=u(f()),au=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.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.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.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.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`))}));function su(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(eu(n)||tu(n)||Zl(n))&&(t[n]=e[n]);return t}function cu(e){return e==null?null:(0,lu.isValidElement)(e)?su(e.props):typeof e==`object`&&!Array.isArray(e)?su(e):null}var lu,uu=o((()=>{lu=u(f()),$l(),ou()}));function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(null,arguments)}function fu(e,t){if(e==null)return{};var n,r,i=pu(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mu,hu,gu,_u,vu=o((()=>{mu=u(f()),hu=u(f()),Xl(),uu(),gu=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`],_u=(0,hu.forwardRef)((e,t)=>{var{children:n,width:r,height:i,viewBox:a,className:o,style:s,title:c,desc:l}=e,u=fu(e,gu),d=a||{width:r,height:i,x:0,y:0},f=H(`recharts-surface`,o);return mu.createElement(`svg`,du({},su(u),{className:f,width:r,height:i,style:s,viewBox:`${d.x} ${d.y} ${d.width} ${d.height}`,ref:t}),mu.createElement(`title`,null,c),mu.createElement(`desc`,null,l),n)})}));function yu(){return yu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yu.apply(null,arguments)}function bu(e,t){if(e==null)return{};var n,r,i=xu(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xu(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Su,Cu,U,wu=o((()=>{Su=u(f()),Xl(),uu(),Cu=[`children`,`className`],U=Su.forwardRef((e,t)=>{var{children:n,className:r}=e,i=bu(e,Cu),a=H(`recharts-layer`,r);return Su.createElement(`g`,yu({className:a},su(i),{ref:t}),n)})})),Tu,Eu,Du,Ou=o((()=>{Tu=u(f()),Eu=(0,Tu.createContext)(null),Du=()=>(0,Tu.useContext)(Eu)}));function ku(e){return function(){return e}}var Au=o((()=>{}));function ju(e){return e>1?0:e<-1?Bu:Math.acos(e)}function Mu(e){return e>=1?Vu:e<=-1?-Vu:Math.asin(e)}var Nu,Pu,Fu,Iu,Lu,Ru,zu,Bu,Vu,Hu,Uu=o((()=>{Nu=Math.abs,Pu=Math.atan2,Fu=Math.cos,Iu=Math.max,Lu=Math.min,Ru=Math.sin,zu=Math.sqrt,Bu=Math.PI,Vu=Bu/2,Hu=2*Bu}));function Wu(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function eee(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Wu;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function Gu(){return new Xu}var Ku,qu,Ju,Yu,Xu,tee=o((()=>{Ku=Math.PI,qu=2*Ku,Ju=1e-6,Yu=qu-Ju,Xu=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Wu:eee(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Ju)if(!(Math.abs(u*s-c*l)>Ju)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Ku-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Ju&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Ju||Math.abs(this._y1-l)>Ju)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%qu+qu),d>Yu?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>Ju&&this._append`A${n},${n},0,${+(d>=Ku)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},Gu.prototype=Xu.prototype})),Zu=o((()=>{tee()}));function Qu(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Xu(t)}var $u=o((()=>{Zu()}));function nee(e){return e.innerRadius}function ree(e){return e.outerRadius}function iee(e){return e.startAngle}function aee(e){return e.endAngle}function oee(e){return e&&e.padAngle}function see(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<1e-12))return f=(u*(t-a)-d*(e-i))/f,[e+f*c,t+f*l]}function ed(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/zu(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*zu(Iu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x01:-u,y01:-d,x11:w*(i/x-1),y11:T*(i/x-1)}}function td(){var e=nee,t=ree,n=ku(0),r=null,i=iee,a=aee,o=oee,s=null,c=Qu(l);function l(){var l,u,d=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-Vu,m=a.apply(this,arguments)-Vu,h=Nu(m-p),g=m>p;if(s||=l=c(),f<d&&(u=f,f=d,d=u),!(f>1e-12))s.moveTo(0,0);else if(h>Hu-1e-12)s.moveTo(f*Fu(p),f*Ru(p)),s.arc(0,0,f,p,m,!g),d>1e-12&&(s.moveTo(d*Fu(m),d*Ru(m)),s.arc(0,0,d,m,p,g));else{var _=p,v=m,y=p,b=m,x=h,S=h,C=o.apply(this,arguments)/2,w=C>1e-12&&(r?+r.apply(this,arguments):zu(d*d+f*f)),T=Lu(Nu(f-d)/2,+n.apply(this,arguments)),E=T,D=T,O,k;if(w>1e-12){var A=Mu(w/d*Ru(C)),j=Mu(w/f*Ru(C));(x-=A*2)>1e-12?(A*=g?1:-1,y+=A,b-=A):(x=0,y=b=(p+m)/2),(S-=j*2)>1e-12?(j*=g?1:-1,_+=j,v-=j):(S=0,_=v=(p+m)/2)}var M=f*Fu(_),N=f*Ru(_),ee=d*Fu(b),te=d*Ru(b);if(T>1e-12){var ne=f*Fu(v),re=f*Ru(v),ie=d*Fu(y),ae=d*Ru(y),oe;if(h<Bu)if(oe=see(M,N,ie,ae,ne,re,ee,te)){var se=M-oe[0],ce=N-oe[1],P=ne-oe[0],le=re-oe[1],ue=1/Ru(ju((se*P+ce*le)/(zu(se*se+ce*ce)*zu(P*P+le*le)))/2),de=zu(oe[0]*oe[0]+oe[1]*oe[1]);E=Lu(T,(d-de)/(ue-1)),D=Lu(T,(f-de)/(ue+1))}else E=D=0}S>1e-12?D>1e-12?(O=ed(ie,ae,M,N,f,D,g),k=ed(ne,re,ee,te,f,D,g),s.moveTo(O.cx+O.x01,O.cy+O.y01),D<T?s.arc(O.cx,O.cy,D,Pu(O.y01,O.x01),Pu(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,D,Pu(O.y01,O.x01),Pu(O.y11,O.x11),!g),s.arc(0,0,f,Pu(O.cy+O.y11,O.cx+O.x11),Pu(k.cy+k.y11,k.cx+k.x11),!g),s.arc(k.cx,k.cy,D,Pu(k.y11,k.x11),Pu(k.y01,k.x01),!g))):(s.moveTo(M,N),s.arc(0,0,f,_,v,!g)):s.moveTo(M,N),!(d>1e-12)||!(x>1e-12)?s.lineTo(ee,te):E>1e-12?(O=ed(ee,te,ne,re,d,-E,g),k=ed(M,N,ie,ae,d,-E,g),s.lineTo(O.cx+O.x01,O.cy+O.y01),E<T?s.arc(O.cx,O.cy,E,Pu(O.y01,O.x01),Pu(k.y01,k.x01),!g):(s.arc(O.cx,O.cy,E,Pu(O.y01,O.x01),Pu(O.y11,O.x11),!g),s.arc(0,0,d,Pu(O.cy+O.y11,O.cx+O.x11),Pu(k.cy+k.y11,k.cx+k.x11),g),s.arc(k.cx,k.cy,E,Pu(k.y11,k.x11),Pu(k.y01,k.x01),!g))):s.arc(0,0,d,b,y,g)}if(s.closePath(),l)return s=null,l+``||null}return l.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Bu/2;return[Fu(r)*n,Ru(r)*n]},l.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:ku(+t),l):e},l.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:ku(+e),l):t},l.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:ku(+e),l):n},l.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:ku(+e),l):r},l.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:ku(+e),l):i},l.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:ku(+e),l):a},l.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:ku(+e),l):o},l.context=function(e){return arguments.length?(s=e??null,l):s},l}var nd=o((()=>{Au(),Uu(),$u()}));function rd(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var id=o((()=>{Array.prototype.slice}));function ad(e){this._context=e}function od(e){return new ad(e)}var sd=o((()=>{ad.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 cd(e){return e[0]}function ld(e){return e[1]}var ud=o((()=>{}));function dd(e,t){var n=ku(!0),r=null,i=od,a=null,o=Qu(s);e=typeof e==`function`?e:e===void 0?cd:ku(e),t=typeof t==`function`?t:t===void 0?ld:ku(t);function s(s){var c,l=(s=rd(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:ku(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:ku(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:ku(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var fd=o((()=>{id(),Au(),sd(),$u(),ud()}));function pd(e,t,n){var r=null,i=ku(!0),a=null,o=od,s=null,c=Qu(l);e=typeof e==`function`?e:e===void 0?cd:ku(+e),t=typeof t==`function`?t:ku(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ld:ku(+n);function l(l){var u,d,f,p=(l=rd(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return dd().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:ku(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:ku(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:ku(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:ku(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:ku(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:ku(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:ku(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var cee=o((()=>{id(),Au(),sd(),fd(),$u(),ud()}));function lee(e){return new md(e,!0)}function uee(e){return new md(e,!1)}var md,dee=o((()=>{md=class{constructor(e,t){this._context=e,this._x=t}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(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._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}}})),hd,gd=o((()=>{Uu(),hd={draw(e,t){let n=zu(t/Bu);e.moveTo(n,0),e.arc(0,0,n,0,Hu)}}})),_d,fee=o((()=>{Uu(),_d={draw(e,t){let n=zu(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()}}})),vd,yd,bd,pee=o((()=>{Uu(),vd=zu(1/3),yd=vd*2,bd={draw(e,t){let n=zu(t/yd),r=n*vd;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}}})),xd,mee=o((()=>{Uu(),xd={draw(e,t){let n=zu(t),r=-n/2;e.rect(r,r,n,n)}}})),Sd,Cd,wd,Td,Ed,hee=o((()=>{Uu(),Sd=.8908130915292852,Cd=Ru(Bu/10)/Ru(7*Bu/10),wd=Ru(Hu/10)*Cd,Td=-Fu(Hu/10)*Cd,Ed={draw(e,t){let n=zu(t*Sd),r=wd*n,i=Td*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=Hu*t/5,o=Fu(a),s=Ru(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}}})),Dd,Od,gee=o((()=>{Uu(),Dd=zu(3),Od={draw(e,t){let n=-zu(t/(Dd*3));e.moveTo(0,n*2),e.lineTo(-Dd*n,-n),e.lineTo(Dd*n,-n),e.closePath()}}})),kd,Ad,jd,Md,Nd,_ee=o((()=>{Uu(),kd=-.5,Ad=zu(3)/2,jd=1/zu(12),Md=(jd/2+1)*3,Nd={draw(e,t){let n=zu(t/Md),r=n/2,i=n*jd,a=r,o=n*jd+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(kd*r-Ad*i,Ad*r+kd*i),e.lineTo(kd*a-Ad*o,Ad*a+kd*o),e.lineTo(kd*s-Ad*c,Ad*s+kd*c),e.lineTo(kd*r+Ad*i,kd*i-Ad*r),e.lineTo(kd*a+Ad*o,kd*o-Ad*a),e.lineTo(kd*s+Ad*c,kd*c-Ad*s),e.closePath()}}}));function vee(e,t){let n=null,r=Qu(i);e=typeof e==`function`?e:ku(e||hd),t=typeof t==`function`?t:ku(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:ku(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:ku(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}var yee=o((()=>{Au(),$u(),gd()}));function Pd(){}var Fd=o((()=>{}));function Id(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 Ld(e){this._context=e}function Rd(e){return new Ld(e)}var zd=o((()=>{Ld.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:Id(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:Id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Bd(e){this._context=e}function Vd(e){return new Bd(e)}var Hd=o((()=>{Fd(),zd(),Bd.prototype={areaStart:Pd,areaEnd:Pd,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:Id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Ud(e){this._context=e}function Wd(e){return new Ud(e)}var Gd=o((()=>{zd(),Ud.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:Id(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Kd(e){this._context=e}function qd(e){return new Kd(e)}var Jd=o((()=>{Fd(),Kd.prototype={areaStart:Pd,areaEnd:Pd,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 Yd(e){return e<0?-1:1}function Xd(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),s=(a*i+o*r)/(r+i);return(Yd(a)+Yd(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Zd(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Qd(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function $d(e){this._context=e}function ef(e){this._context=new tf(e)}function tf(e){this._context=e}function bee(e){return new $d(e)}function xee(e){return new ef(e)}var See=o((()=>{$d.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:Qd(this,this._t0,Zd(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,Qd(this,Zd(this,n=Xd(this,e,t)),n);break;default:Qd(this,this._t0,n=Xd(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ef.prototype=Object.create($d.prototype)).point=function(e,t){$d.prototype.point.call(this,t,e)},tf.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 nf(e){this._context=e}function rf(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=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 Cee(e){return new nf(e)}var wee=o((()=>{nf.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=rf(e),i=rf(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 af(e,t){this._context=e,this._t=t}function Tee(e){return new af(e,.5)}function Eee(e){return new af(e,0)}function Dee(e){return new af(e,1)}var Oee=o((()=>{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 of(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}var sf=o((()=>{}));function cf(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}var lf=o((()=>{}));function kee(e,t){return e[t]}function Aee(e){let t=[];return t.key=e,t}function jee(){var e=ku([]),t=cf,n=of,r=kee;function i(i){var a=Array.from(e.apply(this,arguments),Aee),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=rd(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:ku(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:ku(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?cf:typeof e==`function`?e:ku(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??of,i):n},i}var Mee=o((()=>{id(),Au(),sf(),lf()}));function Nee(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}of(e,t)}}var Pee=o((()=>{sf()}));function Fee(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,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}of(e,t)}}var Iee=o((()=>{sf()}));function Lee(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 s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,of(e,t)}}var Ree=o((()=>{sf()})),uf=o((()=>{nd(),cee(),fd(),yee(),gd(),fee(),pee(),mee(),hee(),gee(),_ee(),Hd(),Gd(),zd(),dee(),Jd(),sd(),See(),wee(),Oee(),Mee(),Pee(),sf(),Iee(),Ree(),lf()})),df=o((()=>{uf()})),ff=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e===`__proto__`}e.isUnsafeProperty=t})),pf=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}e.isDeepKey=t})),mf=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}e.toKey=t})),zee=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(t).join(`,`);let n=String(e);return n===`0`&&Object.is(Number(e),-0)?`-0`:n}e.toString=t})),hf=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=zee(),n=mf();function r(e){if(Array.isArray(e))return e.map(n.toKey);if(typeof e==`symbol`)return[e];e=t.toString(e);let r=[],i=e.length;if(i===0)return r;let a=0,o=``,s=``,c=!1;for(e.charCodeAt(0)===46&&(r.push(``),a++);a<i;){let t=e[a];s?t===`\\`&&a+1<i?(a++,o+=e[a]):t===s?s=``:o+=t:c?t===`"`||t===`'`?s=t:t===`]`?(c=!1,r.push(o),o=``):o+=t:t===`[`?(c=!0,o&&=(r.push(o),``)):t===`.`?o&&=(r.push(o),``):o+=t,a++}return o&&r.push(o),r}e.toPath=r})),gf=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ff(),n=pf(),r=mf(),i=hf();function a(e,s,c){if(e==null)return c;switch(typeof s){case`string`:{if(t.isUnsafeProperty(s))return c;let r=e[s];return r===void 0?n.isDeepKey(s)?a(e,i.toPath(s),c):c:r}case`number`:case`symbol`:{typeof s==`number`&&(s=r.toKey(s));let t=e[s];return t===void 0?c:t}default:{if(Array.isArray(s))return o(e,s,c);if(s=Object.is(s?.valueOf(),-0)?`-0`:String(s),t.isUnsafeProperty(s))return c;let n=e[s];return n===void 0?c:n}}}function o(e,n,r){if(n.length===0)return r;let i=e;for(let e=0;e<n.length;e++){if(i==null||t.isUnsafeProperty(n[e]))return r;i=i[n[e]]}return i===void 0?r:i}e.get=a})),_f=s(((e,t)=>{t.exports=gf().get}));function vf(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:bf),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function yf(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+vf(i)+n},``)}var bf,xf=o((()=>{bf=4}));function W(e,t,n){return G(e)&&G(t)?vf(e+n*(t-e)):t}function Sf(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):(0,Tf.default)(e,t))===n)}function Cf(e){return e!=null}function wf(){}var Tf,Ef,Df,Of,G,kf,Af,jf,Mf,Nf,Pf,Ff,If,K=o((()=>{Tf=u(_f()),xf(),Ef=e=>e===0?0:e>0?1:-1,Df=e=>typeof e==`number`&&e!=+e,Of=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,G=e=>(typeof e==`number`||e instanceof Number)&&!Df(e),kf=e=>G(e)||typeof e==`string`,Af=0,jf=e=>{var t=++Af;return`${e||``}${t}`},Mf=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(e)&&typeof e!=`string`)return n;var i;if(Of(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Df(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Nf=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1},Pf=e=>{for(var t=e.length,n=0,r=0,i=0,a=0,o=1/0,s=-1/0,c=0,l=0,u=0;u<t;u++)c=e[u]?.cx||0,l=e[u]?.cy||0,n+=c,r+=l,i+=c*l,a+=c*c,o=Math.min(o,c),s=Math.max(s,c);var d=t*a===n*n?0:(t*i-n*r)/(t*a-n*n);return{xmin:o,xmax:s,a:d,b:(r-d*n)/t}},Ff=e=>e==null,If=e=>Ff(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`}));function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lf.apply(null,arguments)}function Rf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?Rf(Object(n),!0).forEach(function(t){Bee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rf(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Bee(e,t,n){return(t=Vee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vee(e){var t=Hee(e,`string`);return typeof t==`symbol`?t:t+``}function Hee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Uee(e,t){if(e==null)return{};var n,r,i=Bf(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Bf(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Vf,Hf,Uf,Wf,Gf,Kf,qf,Jf,Yf=o((()=>{Vf=u(f()),df(),Xl(),K(),uu(),Hf=[`type`,`size`,`sizeType`],Uf={symbolCircle:hd,symbolCross:_d,symbolDiamond:bd,symbolSquare:xd,symbolStar:Ed,symbolTriangle:Od,symbolWye:Nd},Wf=Math.PI/180,Gf=e=>Uf[`symbol${If(e)}`]||hd,Kf=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*Wf;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},qf=(e,t)=>{Uf[`symbol${If(e)}`]=t},Jf=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,i=zf(zf({},Uee(e,Hf)),{},{type:t,size:n,sizeType:r}),a=`circle`;typeof t==`string`&&(a=t);var o=()=>{var e=Gf(a),t=vee().type(e).size(Kf(n,r,a))();if(t!==null)return t},{className:s,cx:c,cy:l}=i,u=su(i);return G(c)&&G(l)&&G(n)?Vf.createElement(`path`,Lf({},u,{className:H(`recharts-symbols`,s),transform:`translate(${c}, ${l})`,d:o()})):null},Jf.registerSymbol=qf})),Xf,Zf,Qf,$f,ep,tp,np=o((()=>{Xf=u(f()),$l(),Zf=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Qf=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,Xf.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{Zl(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},$f=(e,t,n)=>r=>(e(t,n,r),null),ep=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];Zl(i)&&typeof a==`function`&&(r||={},r[i]=$f(a,t,n))}),r},tp=e=>Array.isArray(e)&&e.length>0}));function rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Wee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rp(Object(n),!0).forEach(function(t){Gee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gee(e,t,n){return(t=Kee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kee(e){var t=qee(e,`string`);return typeof t==`symbol`?t:t+``}function qee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ip(e,t){var n=Wee({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}var ap=o((()=>{}));function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(null,arguments)}function sp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sp(Object(n),!0).forEach(function(t){Jee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sp(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jee(e,t,n){return(t=Yee(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yee(e){var t=Xee(e,`string`);return typeof t==`symbol`?t:t+``}function Xee(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zee(e){if(typeof e==`object`&&e&&`strokeDasharray`in e)return String(e.strokeDasharray)}function Qee(e){var{data:t,iconType:n,inactiveColor:r}=e,i=up/2,a=up/6,o=up/3,s=t.inactive?r:t.color,c=n??t.type;if(c===`none`)return null;if(c===`plainline`)return lp.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:s,strokeDasharray:Zee(t.payload),x1:0,y1:i,x2:up,y2:i,className:`recharts-legend-icon`});if(c===`line`)return lp.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:s,d:`M0,${i}h${o}
99
99
  A${a},${a},0,1,1,${2*o},${i}
100
- H${Hf}M${2*o},${i}
101
- A${a},${a},0,1,1,${o},${i}`,className:`recharts-legend-icon`});if(c===`rect`)return N.createElement(`path`,{stroke:`none`,fill:s,d:`M0,${Hf/8}h${Hf}v${Hf*3/4}h${-Hf}z`,className:`recharts-legend-icon`});if(N.isValidElement(t.legendIcon)){var l=Rf({},t);return delete l.legendIcon,N.cloneElement(t.legendIcon,l)}return N.createElement(wf,{fill:s,cx:i,cy:i,size:Hf,sizeType:`diameter`,type:c})}function Kf(e){var{payload:t,iconSize:n,layout:r,formatter:i,inactiveColor:a,iconType:o,labelStyle:s}=e,c={x:0,y:0,width:Hf,height:Hf},l={display:r===`horizontal`?`inline-block`:`block`,marginRight:10},u={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return t.map((t,r)=>{var d=t.formatter||i,f=W({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var p=typeof s==`object`?Rf({},s):{};p.color=t.inactive?a:p.color||t.color;var m=d?d(t.value,t,r):t.value;return N.createElement(`li`,If({className:f,style:l,key:`legend-item-${r}`},Of(e,t,r)),N.createElement(ou,{width:n,height:n,viewBox:c,style:u,"aria-label":`${t.value} legend icon`},N.createElement(Gf,{data:t,iconType:o,inactiveColor:a})),N.createElement(`span`,{className:`recharts-legend-item-text`,style:p},m))})}var qf=e=>{var t=Ff(e,Uf),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return N.createElement(`ul`,{className:`recharts-default-legend`,style:a},N.createElement(Kf,If({},t,{payload:n})))},Jf=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}e.uniqBy=t})),Yf=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),Xf=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),Zf=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),Qf=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Zf();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),$f=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),ep=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qf(),n=$f();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),tp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Hd();function n(e){return function(n){return t.get(n,e)}}e.property=n})),np=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),rp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),ip=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),ap=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=np(),n=rp(),r=ip();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n==`string`?n===``:!0:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o<a.length;o++){let s=a[o];if(!n.isPrimitive(e)&&!(s in e)||t[s]===void 0&&e[s]!==void 0||t[s]===null&&e[s]!==null||!r(e[s],t[s],s,e,t,i))return!1}return!0}finally{i?.delete(t)}}function s(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function c(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function l(e,t,n,r){return t.size===0?!0:e instanceof Set?c([...e],[...t],n,r):!1}e.isMatchWith=i,e.isSetMatch=l})),op=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ap();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),sp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),cp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),lp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),up=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),dp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=sp(),n=cp(),r=lp(),i=rp(),a=up();function o(e,t){return s(e,void 0,e,new Map,t)}function s(e,t,n,r=new Map,o=void 0){let u=o?.(e,t,n,r);if(u!==void 0)return u;if(i.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=s(e[i],i,n,r,o);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[i,a]of e)t.set(i,s(a,i,n,r,o));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let i of e)t.add(s(i,void 0,n,r,o));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(a.isTypedArray(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=s(e[i],i,n,r,o);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),c(t,e,n,r,o),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),c(t,e,n,r,o),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,c(t,e,n,r,o),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(typeof e==`object`&&l(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),c(t,e,n,r,o),t}return e}function c(e,n,r=e,i,a){let o=[...Object.keys(n),...t.getSymbols(n)];for(let t=0;t<o.length;t++){let c=o[t],l=Object.getOwnPropertyDescriptor(e,c);(l==null||l.writable)&&(e[c]=s(n[c],c,r,i,a))}}function l(e){switch(n.getTag(e)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=s,e.copyProperties=c})),fp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=dp();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),pp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=op(),n=fp();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),mp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=dp(),n=cp(),r=lp();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),hp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=mp();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),gp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<n;case`symbol`:return!1;case`string`:return t.test(e)}}e.isIndex=n})),_p=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=cp();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),vp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Rd(),n=gp(),r=_p(),i=Vd();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e<o.length;e++){let t=o[e];if((s==null||!Object.hasOwn(s,t))&&!((Array.isArray(s)||r.isArguments(s))&&n.isIndex(t)&&t<s.length))return!1;s=s[t]}return!0}e.has=a})),yp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=op(),n=zd(),r=hp(),i=Hd(),a=vp();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),bp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Xf(),n=tp(),r=pp(),i=yp();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),xp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Jf(),n=Yf(),r=Xf(),i=ep(),a=bp();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),Sp=l(o(((e,t)=>{t.exports=xp().uniqBy}))());function Cp(e,t,n){return t===!0?(0,Sp.default)(e,n):typeof t==`function`?(0,Sp.default)(e,t):e}var wp=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),Tp=o(((e,t)=>{t.exports=wp()})),Ep=o((e=>{var t=d(),n=Tp();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Dp=o(((e,t)=>{t.exports=Ep()})),Op=(0,N.createContext)(null),kp=Dp(),Ap=e=>e,jp=()=>{var e=(0,N.useContext)(Op);return e?e.store.dispatch:Ap},Mp=()=>{},Np=()=>Mp,Pp=(e,t)=>e===t;function q(e){var t=(0,N.useContext)(Op),n=(0,N.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Mp,[t,e]);return(0,kp.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Np,t?t.store.getState:Mp,t?t.store.getState:Mp,n,Pp)}function Fp(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Ip(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function Lp(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Rp=e=>Array.isArray(e)?e:[e];function zp(e){let t=Array.isArray(e[0])?e[0]:e;return Lp(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Bp(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Vp=class{constructor(e){this.value=e}deref(){return this.value}},Hp=typeof WeakRef<`u`?WeakRef:Vp,Up=0,Wp=1;function Gp(){return{s:Up,v:void 0,o:null,p:null}}function Kp(e,t={}){let n=Gp(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Gp(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Gp(),e.set(n,t)):t=r}}let s=t,c;if(t.s===Wp)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new Hp(c):c}return s.s=Wp,s.v=c,c}return o.clearCache=()=>{n=Gp(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function qp(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Fp(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Kp,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Rp(c),p=Rp(u),m=zp(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=Bp(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var J=qp(Kp),Jp=Object.assign((e,t=J)=>{Ip(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>Jp}),Yp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(e<n)return r===`desc`?1:-1;if(e>n)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),Xp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),Zp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Xp(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),Qp=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Yp(),n=Zp(),r=Vd();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},c=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;r<l.length;r++){let i=t.compareValues(e.criteria[r],n.criteria[r],a[r]);if(i!==0)return i}return 0}).map(e=>e.original)}e.orderBy=i})),$p=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}e.flatten=t})),em=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=gp(),n=Qf(),r=np(),i=ip();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a<o.length||typeof a==`string`&&a in o)?i.isEqualsSameValueZero(o[a],e):!1}e.isIterateeCall=a})),tm=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qp(),n=$p(),r=em();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),nm=l(o(((e,t)=>{t.exports=tm().sortBy}))()),rm=e=>e.legend.settings,im=e=>e.legend.size,am=J([e=>e.legend.payload,rm],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,nm.default)(r,n):r});function om(){return q(am)}var sm=1;function cm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,N.useState)({height:0,left:0,top:0,width:0});return[t,(0,N.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>sm||Math.abs(i.left-t.left)>sm||Math.abs(i.top-t.top)>sm||Math.abs(i.width-t.width)>sm)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}function lm(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var um=typeof Symbol==`function`&&Symbol.observable||`@@observable`,dm=()=>Math.random().toString(36).substring(7).split(``).join(`.`),fm={INIT:`@@redux/INIT${dm()}`,REPLACE:`@@redux/REPLACE${dm()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${dm()}`};function pm(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function mm(e,t,n){if(typeof e!=`function`)throw Error(lm(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(lm(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(lm(1));return n(mm)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(lm(3));return i}function d(e){if(typeof e!=`function`)throw Error(lm(4));if(c)throw Error(lm(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(lm(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!pm(e))throw Error(lm(7));if(e.type===void 0)throw Error(lm(8));if(typeof e.type!=`string`)throw Error(lm(17));if(c)throw Error(lm(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(lm(10));r=e,f({type:fm.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(lm(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[um](){return this}}}return f({type:fm.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[um]:m}}function hm(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:fm.INIT})===void 0)throw Error(lm(12));if(n(void 0,{type:fm.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(lm(13))})}function gm(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{hm(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(lm(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function _m(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function vm(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(lm(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=_m(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function ym(e){return pm(e)&&`type`in e&&typeof e.type==`string`}var bm=Symbol.for(`immer-nothing`),xm=Symbol.for(`immer-draftable`),Sm=Symbol.for(`immer-state`);function Cm(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wm=Object,Tm=wm.getPrototypeOf,Em=`constructor`,Dm=`prototype`,Om=`configurable`,km=`enumerable`,Am=`writable`,jm=`value`,Mm=e=>!!e&&!!e[Sm];function Nm(e){return e?Im(e)||Um(e)||!!e[xm]||!!e[Em]?.[xm]||Wm(e)||Gm(e):!1}var Pm=wm[Dm][Em].toString(),Fm=new WeakMap;function Im(e){if(!e||!Km(e))return!1;let t=Tm(e);if(t===null||t===wm[Dm])return!0;let n=wm.hasOwnProperty.call(t,Em)&&t[Em];if(n===Object)return!0;if(!qm(n))return!1;let r=Fm.get(n);return r===void 0&&(r=Function.toString.call(n),Fm.set(n,r)),r===Pm}function Lm(e,t,n=!0){Rm(e)===0?(n?Reflect.ownKeys(e):wm.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Rm(e){let t=e[Sm];return t?t.type_:Um(e)?1:Wm(e)?2:Gm(e)?3:0}var zm=(e,t,n=Rm(e))=>n===2?e.has(t):wm[Dm].hasOwnProperty.call(e,t),Bm=(e,t,n=Rm(e))=>n===2?e.get(t):e[t],Vm=(e,t,n,r=Rm(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Hm(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Um=Array.isArray,Wm=e=>e instanceof Map,Gm=e=>e instanceof Set,Km=e=>typeof e==`object`,qm=e=>typeof e==`function`,Jm=e=>typeof e==`boolean`;function Ym(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Xm=e=>e.copy_||e.base_,Zm=e=>e.modified_?e.copy_:e.base_;function Qm(e,t){if(Wm(e))return new Map(e);if(Gm(e))return new Set(e);if(Um(e))return Array[Dm].slice.call(e);let n=Im(e);if(t===!0||t===`class_only`&&!n){let t=wm.getOwnPropertyDescriptors(e);delete t[Sm];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Am]===!1&&(a[Am]=!0,a[Om]=!0),(a.get||a.set)&&(t[i]={[Om]:!0,[Am]:!0,[km]:a[km],[jm]:e[i]})}return wm.create(Tm(e),t)}else{let t=Tm(e);if(t!==null&&n)return{...e};let r=wm.create(t);return wm.assign(r,e)}}function $m(e,t=!1){return nh(e)||Mm(e)||!Nm(e)?e:(Rm(e)>1&&wm.defineProperties(e,{set:th,add:th,clear:th,delete:th}),wm.freeze(e),t&&Lm(e,(e,t)=>{$m(t,!0)},!1),e)}function eh(){Cm(2)}var th={[jm]:eh};function nh(e){return e===null||!Km(e)?!0:wm.isFrozen(e)}var rh=`MapSet`,ih=`Patches`,ah=`ArrayMethods`,oh={};function sh(e){let t=oh[e];return t||Cm(0,e),t}var ch=e=>!!oh[e],lh,uh=()=>lh,dh=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ch(rh)?sh(rh):void 0,arrayMethodsPlugin_:ch(ah)?sh(ah):void 0});function fh(e,t){t&&(e.patchPlugin_=sh(ih),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ph(e){mh(e),e.drafts_.forEach(gh),e.drafts_=null}function mh(e){e===lh&&(lh=e.parent_)}var hh=e=>lh=dh(lh,e);function gh(e){let t=e[Sm];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _h(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[Sm].modified_&&(ph(t),Cm(4)),Nm(e)&&(e=vh(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[Sm].base_,e,t)}else e=vh(t,n);return yh(t,e,!0),ph(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===bm?void 0:e}function vh(e,t){if(nh(t))return t;let n=t[Sm];if(!n)return Dh(t,e.handledSet_,e);if(!xh(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Th(n,e)}return n.copy_}function yh(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&$m(t,n)}function bh(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var xh=(e,t)=>e.scope_===t,Sh=[];function Ch(e,t,n,r){let i=Xm(e),a=e.type_;if(r!==void 0&&Bm(i,r,a)===t){Vm(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Lm(i,(e,n)=>{if(Mm(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Sh;for(let e of o)Vm(i,e,n,a)}function wh(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!xh(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Zm(i);Ch(e,i.draft_??i,a,n),Th(i,r)})}function Th(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}bh(e)}}function Eh(e,t,n){let{scope_:r}=e;if(Mm(n)){let i=n[Sm];xh(i,r)&&i.callbacks_.push(function(){Fh(e),Ch(e,n,Zm(i),t)})}else Nm(n)&&e.callbacks_.push(function(){let i=Xm(e);e.type_===3?i.has(n)&&Dh(n,r.handledSet_,r):Bm(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Dh(Bm(e.copy_,t,e.type_),r.handledSet_,r)})}function Dh(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Mm(e)||t.has(e)||!Nm(e)||nh(e)?e:(t.add(e),Lm(e,(r,i)=>{if(Mm(i)){let t=i[Sm];xh(t,n)&&(Vm(e,r,Zm(t),e.type_),bh(t))}else Nm(i)&&Dh(i,t,n)}),e)}function Oh(e,t){let n=Um(e),r={type_:n?1:0,scope_:t?t.scope_:uh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=kh;n&&(i=[r],a=Ah);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var kh={get(e,t){if(t===Sm)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Xm(e);if(!zm(i,t,e.type_))return Mh(e,i,t);let a=i[t];if(e.finalized_||!Nm(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ym(t))return a;if(a===jh(e.base_,t)){Fh(e);let n=e.type_===1?+t:t,r=Lh(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Xm(e)},ownKeys(e){return Reflect.ownKeys(Xm(e))},set(e,t,n){let r=Nh(Xm(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=jh(Xm(e),t),i=r?.[Sm];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Hm(n,r)&&(n!==void 0||zm(e.base_,t,e.type_)))return!0;Fh(e),Ph(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),Eh(e,t,n),!0)},deleteProperty(e,t){return Fh(e),jh(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ph(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Xm(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Am]:!0,[Om]:e.type_!==1||t!==`length`,[km]:r[km],[jm]:n[t]}},defineProperty(){Cm(11)},getPrototypeOf(e){return Tm(e.base_)},setPrototypeOf(){Cm(12)}},Ah={};for(let e in kh){let t=kh[e];Ah[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ah.deleteProperty=function(e,t){return Ah.set.call(this,e,t,void 0)},Ah.set=function(e,t,n){return kh.set.call(this,e[0],t,n,e[0])};function jh(e,t){let n=e[Sm];return(n?Xm(n):e)[t]}function Mh(e,t,n){let r=Nh(t,n);return r?jm in r?r[jm]:r.get?.call(e.draft_):void 0}function Nh(e,t){if(!(t in e))return;let n=Tm(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Tm(n)}}function Ph(e){e.modified_||(e.modified_=!0,e.parent_&&Ph(e.parent_))}function Fh(e){e.copy_||=(e.assigned_=new Map,Qm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ih=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(qm(e)&&!qm(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}qm(t)||Cm(6),n!==void 0&&!qm(n)&&Cm(7);let r;if(Nm(e)){let i=hh(this),a=Lh(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ph(i):mh(i)}return fh(i,n),_h(r,i)}else if(!e||!Km(e)){if(r=t(e),r===void 0&&(r=e),r===bm&&(r=void 0),this.autoFreeze_&&$m(r,!0),n){let t=[],i=[];sh(ih).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else Cm(1,e)},this.produceWithPatches=(e,t)=>{if(qm(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Jm(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Jm(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Jm(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Nm(e)||Cm(8),Mm(e)&&(e=Rh(e));let t=hh(this),n=Lh(t,e,void 0);return n[Sm].isManual_=!0,mh(t),n}finishDraft(e,t){let n=e&&e[Sm];(!n||!n.isManual_)&&Cm(9);let{scope_:r}=n;return fh(r,t),_h(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=sh(ih).applyPatches_;return Mm(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Lh(e,t,n,r){let[i,a]=Wm(t)?sh(rh).proxyMap_(t,n):Gm(t)?sh(rh).proxySet_(t,n):Oh(t,n);return(n?.scope_??uh()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?wh(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Rh(e){return Mm(e)||Cm(10,e),zh(e)}function zh(e){if(!Nm(e)||nh(e))return e;let t=e[Sm],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Qm(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Qm(e,!0);return Lm(n,(e,t)=>{Vm(n,e,zh(t))},r),t&&(t.finalized_=!1),n}var Bh=new Ih().produce;function Vh(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Hh=Vh(),Uh=Vh,Wh=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?_m:_m.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Gh(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error($g(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>ym(t)&&t.type===e,n}var Kh=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function qh(e){return Nm(e)?Bh(e,()=>{}):e}function Jh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Yh(e){return typeof e==`boolean`}var Xh=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Kh;return t&&(Yh(t)?a.push(Hh):a.push(Uh(t.extraArgument))),a},Zh=`RTK_autoBatch`,Qh=()=>e=>({payload:e,meta:{[Zh]:!0}}),$h=e=>t=>{setTimeout(t,e)},eg=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:$h(10):e.type===`callback`?e.queueNotification:$h(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[Zh],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},tg=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Kh(e);return n&&r.push(eg(typeof n==`object`?n:void 0)),r};function ng(e){let t=Xh(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(pm(n))c=gm(n);else throw Error($g(1));let l;l=typeof r==`function`?r(t):t();let u=_m;i&&(u=Wh({trace:!1,...typeof i==`object`&&i}));let d=tg(vm(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return mm(c,o,p)}function rg(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error($g(28));if(r in t)throw Error($g(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function ig(e){return typeof e==`function`}function ag(e,t){let[n,r,i]=rg(t),a;if(ig(e))a=()=>qh(e());else{let t=qh(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(Mm(e)){let r=n(e,t);return r===void 0?e:r}else if(Nm(e))return Bh(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}var og=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,sg=(e=21)=>{let t=``,n=e;for(;n--;)t+=og[Math.random()*64|0];return t},cg=Symbol.for(`rtk-slice-createasyncthunk`);function lg(e,t){return`${e}/${t}`}function ug({creators:e}={}){let t=e?.asyncThunk?.[cg];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error($g(11));let i=(typeof e.reducers==`function`?e.reducers(pg()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error($g(12));if(n in o.sliceCaseReducersByType)throw Error($g(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:lg(n,r),createNotation:typeof e.reducers==`function`};hg(a)?_g(o,a,s,t):mg(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?rg(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return ag(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Jh(d,r,m)),i}function i(t=l){return Jh(Jh(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=dg(a,t,()=>Jh(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function dg(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var fg=ug();function pg(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function mg({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!gg(r))throw Error($g(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Gh(e,o):Gh(e))}function hg(e){return e._reducerDefinitionType===`asyncThunk`}function gg(e){return e._reducerDefinitionType===`reducerWithPrepare`}function _g({type:e,reducerName:t},n,r,i){if(!i)throw Error($g(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||vg,pending:s||vg,rejected:c||vg,settled:l||vg})}function vg(){}var yg=`task`,bg=`listener`,xg=`completed`,Sg=`cancelled`,Cg=`task-${Sg}`,wg=`task-${xg}`,Tg=`${bg}-${Sg}`,Eg=`${bg}-${xg}`,Dg=class{constructor(e){this.code=e,this.message=`${yg} ${Sg} (reason: ${e})`}name=`TaskAbortError`;message},Og=(e,t)=>{if(typeof e!=`function`)throw TypeError($g(32))},kg=()=>{},Ag=(e,t=kg)=>(e.catch(t),e),jg=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),Mg=e=>{if(e.aborted)throw new Dg(e.reason)};function Ng(e,t){let n=kg;return new Promise((r,i)=>{let a=()=>i(new Dg(e.reason));if(e.aborted){a();return}n=jg(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=kg})}var Pg=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof Dg?`cancelled`:`rejected`,error:e}}finally{t?.()}},Fg=e=>t=>Ag(Ng(e,t).then(t=>(Mg(e),t))),Ig=e=>{let t=Fg(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Lg}=Object,Rg={},zg=`listenerMiddleware`,Bg=(e,t)=>{let n=t=>jg(e,()=>t.abort(e.reason));return(r,i)=>{Og(r,`taskExecutor`);let a=new AbortController;n(a);let o=Pg(async()=>{Mg(e),Mg(a.signal);let t=await r({pause:Fg(a.signal),delay:Ig(a.signal),signal:a.signal});return Mg(a.signal),t},()=>a.abort(wg));return i?.autoJoin&&t.push(o.catch(kg)),{result:Fg(e)(o),cancel(){a.abort(Cg)}}}},Vg=(e,t)=>{let n=async(n,r)=>{Mg(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await Ng(t,Promise.race(a));return Mg(t),e}finally{i()}};return(e,t)=>Ag(n(e,t))},Hg=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Gh(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error($g(21));return Og(a,`options.listener`),{predicate:i,type:t,effect:a}},Ug=Lg(e=>{let{type:t,predicate:n,effect:r}=Hg(e);return{id:sg(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error($g(22))}}},{withTypes:()=>Ug}),Wg=(e,t)=>{let{type:n,effect:r,predicate:i}=Hg(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Gg=e=>{e.pending.forEach(e=>{e.abort(Tg)})},Kg=(e,t)=>()=>{for(let e of t.keys())Gg(e);e.clear()},qg=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Jg=Lg(Gh(`${zg}/add`),{withTypes:()=>Jg}),Yg=Gh(`${zg}/removeAll`),Xg=Lg(Gh(`${zg}/remove`),{withTypes:()=>Xg}),Zg=(...e)=>{console.error(`${zg}/error`,...e)},Qg=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Zg}=e;Og(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Gg(e)}),c=e=>s(Wg(t,e)??Ug(e));Lg(c,{withTypes:()=>c});let l=e=>{let n=Wg(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Gg(n)),!!n};Lg(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Vg(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Lg({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Ig(u.signal),pause:Fg(u.signal),extra:a,signal:u.signal,fork:Bg(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Tg),n.delete(e))})},cancel:()=>{u.abort(Tg),e.pending.delete(u)},throwIfCancelled:()=>{Mg(u.signal)}})))}catch(e){e instanceof Dg||qg(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(Eg),i(e),e.pending.delete(u)}},d=Kg(t,n);return{middleware:e=>n=>r=>{if(!ym(r))return n(r);if(Jg.match(r))return c(r.payload);if(Yg.match(r)){d();return}if(Xg.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Rg)throw Error($g(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,qg(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Rg}return s},startListening:c,stopListening:l,clearListeners:d}};function $g(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var e_=fg({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:t_,setLayout:n_,setChartSize:r_,setScale:i_}=e_.actions,a_=e_.reducer;function o_(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Y(e){return Number.isFinite(e)}function s_(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function c_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function l_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?c_(Object(n),!0).forEach(function(t){u_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u_(e,t,n){return(t=d_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d_(e){var t=f_(e,`string`);return typeof t==`symbol`?t:t+``}function f_(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function X(e,t,n){return of(e)||of(t)?n:Zd(t)?(0,qd.default)(e,t,n):typeof t==`function`?t(e):n}var p_=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&K(e[a]))return l_(l_({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&K(e[o]))return l_(l_({},e),{},{[o]:e[o]+(i||0)})}return e},m_=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,h_=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},g_=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Jd(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return Y(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(cf):c&&l?l.map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(cf):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(cf):o.domain().map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(cf)},__=(e,t)=>{if(!t||t.length!==2||!K(t[0])||!K(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!K(e[0])||e[0]<n)&&(i[0]=n),(!K(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},v_={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=Yd(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Pd,none:kd,silhouette:Fd,wiggle:Id,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=Yd(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},y_=(e,t,n)=>{var r=v_[n]??kd,i=Nd().keys(t).value((e,t)=>Number(X(e,t,0))).order(Ad).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=X(e[i],t[r],0);Array.isArray(a)&&a.length===2&&K(a[0])&&K(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function b_(e){return e==null?void 0:String(e)}function x_(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!of(i[t.dataKey])){var s=rf(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=X(i,of(o)?t.dataKey:o),l=t.scale.map(c);return K(l)?l:null}var S_=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=X(a,t.dataKey,t.scale.domain()[o]);if(of(s))return null;var c=t.scale.map(s);return K(c)?c-i/2+r:null},C_=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},w_=e=>{var t=e.flat(2).filter(K);return[Math.min(...t),Math.max(...t)]},T_=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],E_=(e,t,n)=>{if(e!=null)return T_(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=w_(o_(r,t,n));return!Y(i[0])||!Y(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},D_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,O_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,k_=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,nm.default)(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0};function A_(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return l_(l_({},t),{},{dataKey:n,payload:r,value:i,name:a})}function j_(e,t){if(e)return String(e);if(typeof t==`string`)return t}var M_=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},N_=(e,t)=>t===`centric`?e.angle:e.radius,P_=e=>e.layout.width,F_=e=>e.layout.height,I_=e=>e.layout.scale,L_=e=>e.layout.margin,R_=J(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),z_=J(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),B_=[`#1890FF`,`#66B5FF`,`#41D9C7`,`#2FC25B`,`#6EDB8F`,`#9AE65C`,`#FACC14`,`#E6965C`,`#57AD71`,`#223273`,`#738AE6`,`#7564CC`,`#8543E0`,`#A877ED`,`#5C8EE6`,`#13C2C2`,`#70E0E0`,`#5CA3E6`,`#3436C7`,`#8082FF`,`#DD81E6`,`#F04864`,`#FA7D92`,`#D598D9`],V_=`data-recharts-item-index`,H_=`data-recharts-item-id`;function U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?U_(Object(n),!0).forEach(function(t){G_(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function G_(e,t,n){return(t=K_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K_(e){var t=q_(e,`string`);return typeof t==`symbol`?t:t+``}function q_(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var J_=e=>e.brush.height;function Y_(e){return z_(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function X_(e){return z_(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Z_(e){return R_(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function Q_(e){return R_(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var $_=J([P_,F_,L_,J_,Y_,X_,Z_,Q_,rm,im],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=W_(W_({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=p_(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return W_(W_({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),ev=J($_,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),tv=J(P_,F_,(e,t)=>({x:0,y:0,width:e,height:t})),nv=(0,N.createContext)(null),rv=()=>(0,N.useContext)(nv)!=null,iv=e=>e.brush,av=J([iv,$_,L_],(e,t,n)=>({height:e.height,x:K(e.x)?e.x:t.left,y:K(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:K(e.width)?e.width:t.width})),ov=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}e.debounce=t})),sv=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=ov();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),cv=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=sv();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),lv=o(((e,t)=>{t.exports=cv().throttle})),uv=!0,dv=function(e,t){var n=[...arguments].slice(2);if(uv&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}},fv={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},pv=(e,t,n)=>{var{width:r=fv.width,height:i=fv.height,aspect:a,maxHeight:o}=n,s=Xd(r)?e:Number(r),c=Xd(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},mv={width:0,height:0,overflow:`visible`},hv={width:0,overflowX:`visible`},gv={height:0,overflowY:`visible`},_v={},vv=e=>{var{width:t,height:n}=e,r=Xd(t),i=Xd(n);return r&&i?mv:r?hv:i?gv:_v};function yv(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=fv.width,a=fv.height):i===void 0?i=r&&r>0?void 0:fv.width:a===void 0&&(a=r&&r>0?void 0:fv.height),{width:i,height:a}}var bv=l(lv());function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(null,arguments)}function Sv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?Sv(Object(n),!0).forEach(function(t){wv(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wv(e,t,n){return(t=Tv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tv(e){var t=Ev(e,`string`);return typeof t==`symbol`?t:t+``}function Ev(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Dv=(0,N.createContext)(fv.initialDimension);function Ov(e){return s_(e.width)&&s_(e.height)}function kv(e){var{children:t,width:n,height:r}=e,i=(0,N.useMemo)(()=>({width:n,height:r}),[n,r]);return Ov(i)?N.createElement(Dv.Provider,{value:i},t):null}var Av=()=>(0,N.useContext)(Dv),jv=(0,N.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=fv.initialDimension,width:i,height:a,minWidth:o=fv.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=fv.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,N.useRef)(null),g=(0,N.useRef)();g.current=p,(0,N.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,N.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,N.useCallback)((e,t)=>{v(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,N.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return lf;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;y(r,i),(t=g.current)==null||t.call(g,r,i)}};u>0&&(e=(0,bv.default)(e,u,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=h.current.getBoundingClientRect();return y(n,r),t.observe(h.current),()=>{t.disconnect()}},[y,u]);var{containerWidth:b,containerHeight:x}=_;dv(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=pv(b,x,{width:i,height:a,aspect:n,maxHeight:c});return dv(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0,
100
+ H${up}M${2*o},${i}
101
+ A${a},${a},0,1,1,${o},${i}`,className:`recharts-legend-icon`});if(c===`rect`)return lp.createElement(`path`,{stroke:`none`,fill:s,d:`M0,${up/8}h${up}v${up*3/4}h${-up}z`,className:`recharts-legend-icon`});if(lp.isValidElement(t.legendIcon)){var l=cp({},t);return delete l.legendIcon,lp.cloneElement(t.legendIcon,l)}return lp.createElement(Jf,{fill:s,cx:i,cy:i,size:up,sizeType:`diameter`,type:c})}function $ee(e){var{payload:t,iconSize:n,layout:r,formatter:i,inactiveColor:a,iconType:o,labelStyle:s}=e,c={x:0,y:0,width:up,height:up},l={display:r===`horizontal`?`inline-block`:`block`,marginRight:10},u={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return t.map((t,r)=>{var d=t.formatter||i,f=H({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var p=typeof s==`object`?cp({},s):{};p.color=t.inactive?a:p.color||t.color;var m=d?d(t.value,t,r):t.value;return lp.createElement(`li`,op({className:f,style:l,key:`legend-item-${r}`},ep(e,t,r)),lp.createElement(_u,{width:n,height:n,viewBox:c,style:u,"aria-label":`${t.value} legend icon`},lp.createElement(Qee,{data:t,iconType:o,inactiveColor:a})),lp.createElement(`span`,{className:`recharts-legend-item-text`,style:p},m))})}var lp,up,dp,fp,pp=o((()=>{lp=u(f()),Xl(),vu(),Yf(),np(),ap(),up=32,dp={align:`center`,iconSize:14,inactiveColor:`#ccc`,layout:`horizontal`,verticalAlign:`middle`,labelStyle:{}},fp=e=>{var t=ip(e,dp),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return lp.createElement(`ul`,{className:`recharts-default-legend`,style:a},lp.createElement($ee,op({},t,{payload:n})))}})),mp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}e.uniqBy=t})),hp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}e.ary=t})),gp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e}e.identity=t})),_p=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Number.isSafeInteger(e)&&e>=0}e.isLength=t})),vp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=_p();function n(e){return e!=null&&typeof e!=`function`&&t.isLength(e.length)}e.isArrayLike=n})),ete=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`object`&&!!e}e.isObjectLike=t})),tte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=vp(),n=ete();function r(e){return n.isObjectLike(e)&&t.isArrayLike(e)}e.isArrayLikeObject=r})),nte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=gf();function n(e){return function(n){return t.get(n,e)}}e.property=n})),yp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}e.isObject=t})),bp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null||typeof e!=`object`&&typeof e!=`function`}e.isPrimitive=t})),xp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}e.isEqualsSameValueZero=t})),rte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=yp(),n=bp(),r=xp();function i(e,t,n){return typeof n==`function`?a(e,t,function e(t,r,i,o,s,c){let l=n(t,r,i,o,s,c);return l===void 0?a(t,r,e,c):!!l},new Map):i(e,t,()=>void 0)}function a(e,n,i,s){if(n===e)return!0;switch(typeof n){case`object`:return o(e,n,i,s);case`function`:return Object.keys(n).length>0?a(e,{...n},i,s):r.isEqualsSameValueZero(e,n);default:return t.isObject(e)?typeof n==`string`?n===``:!0:r.isEqualsSameValueZero(e,n)}}function o(e,t,r,i){if(t==null)return!0;if(Array.isArray(t))return c(e,t,r,i);if(t instanceof Map)return s(e,t,r,i);if(t instanceof Set)return l(e,t,r,i);let a=Object.keys(t);if(e==null||n.isPrimitive(e))return a.length===0;if(a.length===0)return!0;if(i?.has(t))return i.get(t)===e;i?.set(t,e);try{for(let o=0;o<a.length;o++){let s=a[o];if(!n.isPrimitive(e)&&!(s in e)||t[s]===void 0&&e[s]!==void 0||t[s]===null&&e[s]!==null||!r(e[s],t[s],s,e,t,i))return!1}return!0}finally{i?.delete(t)}}function s(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function c(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function l(e,t,n,r){return t.size===0?!0:e instanceof Set?c([...e],[...t],n,r):!1}e.isMatchWith=i,e.isSetMatch=l})),Sp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=rte();function n(e,n){return t.isMatchWith(e,n,()=>void 0)}e.isMatch=n})),Cp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}e.getSymbols=t})),wp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}e.getTag=t})),Tp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),e.argumentsTag=`[object Arguments]`,e.arrayBufferTag=`[object ArrayBuffer]`,e.arrayTag=`[object Array]`,e.bigInt64ArrayTag=`[object BigInt64Array]`,e.bigUint64ArrayTag=`[object BigUint64Array]`,e.booleanTag=`[object Boolean]`,e.dataViewTag=`[object DataView]`,e.dateTag=`[object Date]`,e.errorTag=`[object Error]`,e.float32ArrayTag=`[object Float32Array]`,e.float64ArrayTag=`[object Float64Array]`,e.functionTag=`[object Function]`,e.int16ArrayTag=`[object Int16Array]`,e.int32ArrayTag=`[object Int32Array]`,e.int8ArrayTag=`[object Int8Array]`,e.mapTag=`[object Map]`,e.numberTag=`[object Number]`,e.objectTag=`[object Object]`,e.regexpTag=`[object RegExp]`,e.setTag=`[object Set]`,e.stringTag=`[object String]`,e.symbolTag=`[object Symbol]`,e.uint16ArrayTag=`[object Uint16Array]`,e.uint32ArrayTag=`[object Uint32Array]`,e.uint8ArrayTag=`[object Uint8Array]`,e.uint8ClampedArrayTag=`[object Uint8ClampedArray]`})),Ep=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}e.isTypedArray=t})),Dp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Cp(),n=wp(),r=Tp(),i=bp(),a=Ep();function o(e,t){return s(e,void 0,e,new Map,t)}function s(e,t,n,r=new Map,o=void 0){let u=o?.(e,t,n,r);if(u!==void 0)return u;if(i.isPrimitive(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=s(e[i],i,n,r,o);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[i,a]of e)t.set(i,s(a,i,n,r,o));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let i of e)t.add(s(i,void 0,n,r,o));return t}if(typeof Buffer<`u`&&Buffer.isBuffer(e))return e.subarray();if(a.isTypedArray(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let i=0;i<e.length;i++)t[i]=s(e[i],i,n,r,o);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),c(t,e,n,r,o),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),c(t,e,n,r,o),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof Error){let t=new e.constructor;return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,c(t,e,n,r,o),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),c(t,e,n,r,o),t}if(typeof e==`object`&&l(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),c(t,e,n,r,o),t}return e}function c(e,n,r=e,i,a){let o=[...Object.keys(n),...t.getSymbols(n)];for(let t=0;t<o.length;t++){let c=o[t],l=Object.getOwnPropertyDescriptor(e,c);(l==null||l.writable)&&(e[c]=s(n[c],c,r,i,a))}}function l(e){switch(n.getTag(e)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=o,e.cloneDeepWithImpl=s,e.copyProperties=c})),ite=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Dp();function n(e){return t.cloneDeepWithImpl(e,void 0,e,new Map,void 0)}e.cloneDeep=n})),ate=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Sp(),n=ite();function r(e){return e=n.cloneDeep(e),n=>t.isMatch(n,e)}e.matches=r})),Op=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Dp(),n=wp(),r=Tp();function i(e,i){return t.cloneDeepWith(e,(a,o,s,c)=>{let l=i?.(a,o,s,c);if(l!==void 0)return l;if(typeof e==`object`){if(n.getTag(e)===r.objectTag&&typeof e.constructor!=`function`){let n={};return c.set(e,n),t.copyProperties(n,e,s,c),n}switch(Object.prototype.toString.call(e)){case r.numberTag:case r.stringTag:case r.booleanTag:{let n=new e.constructor(e?.valueOf());return t.copyProperties(n,e),n}case r.argumentsTag:{let n={};return t.copyProperties(n,e),n.length=e.length,n[Symbol.iterator]=e[Symbol.iterator],n}default:return}}})}e.cloneDeepWith=i})),ote=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Op();function n(e){return t.cloneDeepWith(e)}e.cloneDeep=n})),kp=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=/^(?:0|[1-9]\d*)$/;function n(e,n=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<n;case`symbol`:return!1;case`string`:return t.test(e)}}e.isIndex=n})),ste=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=wp();function n(e){return typeof e==`object`&&!!e&&t.getTag(e)===`[object Arguments]`}e.isArguments=n})),cte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=pf(),n=kp(),r=ste(),i=hf();function a(e,a){let o;if(o=Array.isArray(a)?a:typeof a==`string`&&t.isDeepKey(a)&&e?.[a]==null?i.toPath(a):[a],o.length===0)return!1;let s=e;for(let e=0;e<o.length;e++){let t=o[e];if((s==null||!Object.hasOwn(s,t))&&!((Array.isArray(s)||r.isArguments(s))&&n.isIndex(t)&&t<s.length))return!1;s=s[t]}return!0}e.has=a})),lte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Sp(),n=mf(),r=ote(),i=gf(),a=cte();function o(e,o){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=n.toKey(e);break}return o=r.cloneDeep(o),function(n){let r=i.get(n,e);return r===void 0?a.has(n,e):o===void 0?r===void 0:t.isMatch(r,o)}}e.matchesProperty=o})),Ap=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=gp(),n=nte(),r=ate(),i=lte();function a(e){if(e==null)return t.identity;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?i.matchesProperty(e[0],e[1]):r.matches(e);case`string`:case`symbol`:case`number`:return n.property(e)}}e.iteratee=a})),ute=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=mp(),n=hp(),r=gp(),i=tte(),a=Ap();function o(e,o=r.identity){return i.isArrayLikeObject(e)?t.uniqBy(Array.from(e),n.ary(a.iteratee(o),1)):[]}e.uniqBy=o})),dte=s(((e,t)=>{t.exports=ute().uniqBy}));function jp(e,t,n){return t===!0?(0,Mp.default)(e,n):typeof t==`function`?(0,Mp.default)(e,t):e}var Mp,Np=o((()=>{Mp=u(dte())})),Pp=s((e=>{var t=f();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var d=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?d:t.useSyncExternalStore})),Fp=s(((e,t)=>{t.exports=Pp()})),Ip=s((e=>{var t=f(),n=Fp();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),Lp=s(((e,t)=>{t.exports=Ip()})),Rp,zp,Bp=o((()=>{Rp=u(f()),zp=(0,Rp.createContext)(null)}));function q(e){var t=(0,Hp.useContext)(zp),n=(0,Hp.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Gp,[t,e]);return(0,Vp.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Kp,t?t.store.getState:Gp,t?t.store.getState:Gp,n,qp)}var Vp,Hp,Up,Wp,Gp,Kp,qp,Jp=o((()=>{Vp=Lp(),Hp=u(f()),Bp(),Up=e=>e,Wp=()=>{var e=(0,Hp.useContext)(zp);return e?e.store.dispatch:Up},Gp=()=>{},Kp=()=>Gp,qp=(e,t)=>e===t}));function fte(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function pte(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function mte(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}function hte(e){let t=Array.isArray(e[0])?e[0]:e;return mte(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function gte(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}function Yp(){return{s:em,v:void 0,o:null,p:null}}function Xp(e,t={}){let n=Yp(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Yp(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Yp(),e.set(n,t)):t=r}}let s=t,c;if(t.s===tm)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new $p(c):c}return s.s=tm,s.v=c,c}return o.clearCache=()=>{n=Yp(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function _te(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),fte(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Xp,argsMemoizeOptions:u=[],devModeChecks:d={}}={...n,...a},f=Zp(c),p=Zp(u),m=hte(e),h=s(function(){return t++,o.apply(null,arguments)},...f),g=l(function(){r++;let e=gte(m,arguments);return i=h.apply(null,e),i},...p);return Object.assign(g,{resultFunc:o,memoizedResultFunc:h,dependencies:m,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var Zp,Qp,$p,em,tm,J,nm,rm=o((()=>{Zp=e=>Array.isArray(e)?e:[e],Qp=class{constructor(e){this.value=e}deref(){return this.value}},$p=typeof WeakRef<`u`?WeakRef:Qp,em=0,tm=1,J=_te(Xp),nm=Object.assign((e,t=J)=>{pte(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);let n=Object.keys(e);return t(n.map(t=>e[t]),(...e)=>e.reduce((e,t,r)=>(e[n[r]]=t,e),{}))},{withTypes:()=>nm})})),vte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}e.compareValues=(e,n,r)=>{if(e!==n){let i=t(e),a=t(n);if(i===a&&i===0){if(e<n)return r===`desc`?1:-1;if(e>n)return r===`desc`?-1:1}return r===`desc`?a-i:i-a}return 0}})),im=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof e==`symbol`||e instanceof Symbol}e.isSymbol=t})),yte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=im(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(e,i){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||t.isSymbol(e)?!0:typeof e==`string`&&(r.test(e)||!n.test(e))||i!=null&&Object.hasOwn(i,e)}e.isKey=i})),bte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=vte(),n=yte(),r=hf();function i(e,i,a,o){if(e==null)return[];a=o?void 0:a,Array.isArray(e)||(e=Object.values(e)),Array.isArray(i)||(i=i==null?[null]:[i]),i.length===0&&(i=[null]),Array.isArray(a)||(a=a==null?[]:[a]),a=a.map(e=>String(e));let s=(e,t)=>{let n=e;for(let e=0;e<t.length&&n!=null;++e)n=n[t[e]];return n},c=(e,t)=>t==null||e==null?t:typeof e==`object`&&`key`in e?Object.hasOwn(t,e.key)?t[e.key]:s(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?s(t,e):typeof t==`object`?t[e]:t,l=i.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||n.isKey(e)?e:{key:e,path:r.toPath(e)}));return e.map(e=>({original:e,criteria:l.map(t=>c(t,e))})).slice().sort((e,n)=>{for(let r=0;r<l.length;r++){let i=t.compareValues(e.criteria[r],n.criteria[r],a[r]);if(i!==0)return i}return 0}).map(e=>e.original)}e.orderBy=i})),xte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}e.flatten=t})),am=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=kp(),n=vp(),r=yp(),i=xp();function a(e,a,o){return r.isObject(o)&&(typeof a==`number`&&n.isArrayLike(o)&&t.isIndex(a)&&a<o.length||typeof a==`string`&&a in o)?i.isEqualsSameValueZero(o[a],e):!1}e.isIterateeCall=a})),Ste=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=bte(),n=xte(),r=am();function i(e,...i){let a=i.length;return a>1&&r.isIterateeCall(e,i[0],i[1])?i=[]:a>2&&r.isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),t.orderBy(e,n.flatten(i),[`asc`])}e.sortBy=i})),om=s(((e,t)=>{t.exports=Ste().sortBy})),sm,cm,lm,um,dm,fm=o((()=>{rm(),sm=u(om()),cm=e=>e.legend.settings,lm=e=>e.legend.size,um=e=>e.legend.payload,dm=J([um,cm],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?(0,sm.default)(r,n):r})}));function pm(){return q(dm)}var mm=o((()=>{Jp(),fm()}));function hm(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=(0,gm.useState)({height:0,left:0,top:0,width:0});return[t,(0,gm.useCallback)(e=>{if(e!=null){var r=e.getBoundingClientRect(),i={height:r.height,left:r.left,top:r.top,width:r.width};(Math.abs(i.height-t.height)>_m||Math.abs(i.left-t.left)>_m||Math.abs(i.top-t.top)>_m||Math.abs(i.width-t.width)>_m)&&n({height:i.height,left:i.left,top:i.top,width:i.width})}},[t.width,t.height,t.top,t.left,...e])]}var gm,_m,vm=o((()=>{gm=u(f()),_m=1}));function ym(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function bm(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function xm(e,t,n){if(typeof e!=`function`)throw Error(ym(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ym(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ym(1));return n(xm)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ym(3));return i}function d(e){if(typeof e!=`function`)throw Error(ym(4));if(c)throw Error(ym(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ym(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!bm(e))throw Error(ym(7));if(e.type===void 0)throw Error(ym(8));if(typeof e.type!=`string`)throw Error(ym(17));if(c)throw Error(ym(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ym(10));r=e,f({type:Dm.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ym(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Tm](){return this}}}return f({type:Dm.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[Tm]:m}}function Cte(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:Dm.INIT})===void 0)throw Error(ym(12));if(n(void 0,{type:Dm.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ym(13))})}function Sm(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{Cte(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(ym(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function Cm(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function wte(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ym(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=Cm(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function wm(e){return bm(e)&&`type`in e&&typeof e.type==`string`}var Tm,Em,Dm,Om=o((()=>{Tm=typeof Symbol==`function`&&Symbol.observable||`@@observable`,Em=()=>Math.random().toString(36).substring(7).split(``).join(`.`),Dm={INIT:`@@redux/INIT${Em()}`,REPLACE:`@@redux/REPLACE${Em()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Em()}`}}));function km(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}function Am(e){return e?jm(e)||_h(e)||!!e[th]||!!e[ah]?.[th]||vh(e)||yh(e):!1}function jm(e){if(!e||!bh(e))return!1;let t=ih(e);if(t===null||t===rh[oh])return!0;let n=rh.hasOwnProperty.call(t,ah)&&t[ah];if(n===Object)return!0;if(!xh(n))return!1;let r=ph.get(n);return r===void 0&&(r=Function.toString.call(n),ph.set(n,r)),r===fh}function Mm(e,t,n=!0){Nm(e)===0?(n?Reflect.ownKeys(e):rh.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Nm(e){let t=e[nh];return t?t.type_:_h(e)?1:vh(e)?2:yh(e)?3:0}function Tte(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function Ete(e){let t=+e;return Number.isInteger(t)&&String(t)===e}function Pm(e,t){if(vh(e))return new Map(e);if(yh(e))return new Set(e);if(_h(e))return Array[oh].slice.call(e);let n=jm(e);if(t===!0||t===`class_only`&&!n){let t=rh.getOwnPropertyDescriptors(e);delete t[nh];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[lh]===!1&&(a[lh]=!0,a[sh]=!0),(a.get||a.set)&&(t[i]={[sh]:!0,[lh]:!0,[ch]:a[ch],[uh]:e[i]})}return rh.create(ih(e),t)}else{let t=ih(e);if(t!==null&&n)return{...e};let r=rh.create(t);return rh.assign(r,e)}}function Fm(e,t=!1){return Im(e)||dh(e)||!Am(e)?e:(Nm(e)>1&&rh.defineProperties(e,{set:Th,add:Th,clear:Th,delete:Th}),rh.freeze(e),t&&Mm(e,(e,t)=>{Fm(t,!0)},!1),e)}function Dte(){km(2)}function Im(e){return e===null||!bh(e)?!0:rh.isFrozen(e)}function Lm(e){let t=kh[e];return t||km(0,e),t}function Rm(e,t){t&&(e.patchPlugin_=Lm(Dh),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zm(e){Bm(e),e.drafts_.forEach(Ote),e.drafts_=null}function Bm(e){e===jh&&(jh=e.parent_)}function Ote(e){let t=e[nh];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Vm(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[nh].modified_&&(zm(t),km(4)),Am(e)&&(e=Hm(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[nh].base_,e,t)}else e=Hm(t,n);return kte(t,e,!0),zm(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===eh?void 0:e}function Hm(e,t){if(Im(t))return t;let n=t[nh];if(!n)return Km(t,e.handledSet_,e);if(!Fh(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);Gm(n,e)}return n.copy_}function kte(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Fm(t,n)}function Um(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}function Wm(e,t,n,r){let i=Ch(e),a=e.type_;if(r!==void 0&&hh(i,r,a)===t){gh(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Mm(i,(e,n)=>{if(dh(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??Ih;for(let e of o)gh(i,e,n,a)}function Ate(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!Fh(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=wh(i);Wm(e,i.draft_??i,a,n),Gm(i,r)})}function Gm(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}Um(e)}}function jte(e,t,n){let{scope_:r}=e;if(dh(n)){let i=n[nh];Fh(i,r)&&i.callbacks_.push(function(){Xm(e),Wm(e,n,wh(i),t)})}else Am(n)&&e.callbacks_.push(function(){let i=Ch(e);e.type_===3?i.has(n)&&Km(n,r.handledSet_,r):hh(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Km(hh(e.copy_,t,e.type_),r.handledSet_,r)})}function Km(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||dh(e)||t.has(e)||!Am(e)||Im(e)?e:(t.add(e),Mm(e,(r,i)=>{if(dh(i)){let t=i[nh];Fh(t,n)&&(gh(e,r,wh(t),e.type_),Um(t))}else Am(i)&&Km(i,t,n)}),e)}function Mte(e,t){let n=_h(e),r={type_:n?1:0,scope_:t?t.scope_:Mh(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=Lh;n&&(i=[r],a=Rh);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}function qm(e,t){let n=e[nh];return(n?Ch(n):e)[t]}function Nte(e,t,n){let r=Jm(t,n);return r?uh in r?r[uh]:r.get?.call(e.draft_):void 0}function Jm(e,t){if(!(t in e))return;let n=ih(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=ih(n)}}function Ym(e){e.modified_||(e.modified_=!0,e.parent_&&Ym(e.parent_))}function Xm(e){e.copy_||=(e.assigned_=new Map,Pm(e.base_,e.scope_.immer_.useStrictShallowCopy_))}function Zm(e,t,n,r){let[i,a]=vh(t)?Lm(Eh).proxyMap_(t,n):yh(t)?Lm(Eh).proxySet_(t,n):Mte(t,n);return(n?.scope_??Mh()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?Ate(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Qm(e){return dh(e)||km(10,e),$m(e)}function $m(e){if(!Am(e)||Im(e))return e;let t=e[nh],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Pm(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Pm(e,!0);return Mm(n,(e,t)=>{gh(n,e,$m(t))},r),t&&(t.finalized_=!1),n}var eh,th,nh,rh,ih,ah,oh,sh,ch,lh,uh,dh,fh,ph,mh,hh,gh,_h,vh,yh,bh,xh,Sh,Ch,wh,Th,Eh,Dh,Oh,kh,Ah,jh,Mh,Nh,Ph,Fh,Ih,Lh,Rh,zh,Bh,Vh,Hh=o((()=>{eh=Symbol.for(`immer-nothing`),th=Symbol.for(`immer-draftable`),nh=Symbol.for(`immer-state`),rh=Object,ih=rh.getPrototypeOf,ah=`constructor`,oh=`prototype`,sh=`configurable`,ch=`enumerable`,lh=`writable`,uh=`value`,dh=e=>!!e&&!!e[nh],fh=rh[oh][ah].toString(),ph=new WeakMap,mh=(e,t,n=Nm(e))=>n===2?e.has(t):rh[oh].hasOwnProperty.call(e,t),hh=(e,t,n=Nm(e))=>n===2?e.get(t):e[t],gh=(e,t,n,r=Nm(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n},_h=Array.isArray,vh=e=>e instanceof Map,yh=e=>e instanceof Set,bh=e=>typeof e==`object`,xh=e=>typeof e==`function`,Sh=e=>typeof e==`boolean`,Ch=e=>e.copy_||e.base_,wh=e=>e.modified_?e.copy_:e.base_,Th={[uh]:Dte},Eh=`MapSet`,Dh=`Patches`,Oh=`ArrayMethods`,kh={},Ah=e=>!!kh[e],Mh=()=>jh,Nh=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ah(Eh)?Lm(Eh):void 0,arrayMethodsPlugin_:Ah(Oh)?Lm(Oh):void 0}),Ph=e=>jh=Nh(jh,e),Fh=(e,t)=>e.scope_===t,Ih=[],Lh={get(e,t){if(t===nh)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Ch(e);if(!mh(i,t,e.type_))return Nte(e,i,t);let a=i[t];if(e.finalized_||!Am(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Ete(t))return a;if(a===qm(e.base_,t)){Xm(e);let n=e.type_===1?+t:t,r=Zm(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Ch(e)},ownKeys(e){return Reflect.ownKeys(Ch(e))},set(e,t,n){let r=Jm(Ch(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=qm(Ch(e),t),i=r?.[nh];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Tte(n,r)&&(n!==void 0||mh(e.base_,t,e.type_)))return!0;Xm(e),Ym(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_.set(t,!0),jte(e,t,n),!0)},deleteProperty(e,t){return Xm(e),qm(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Ym(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Ch(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[lh]:!0,[sh]:e.type_!==1||t!==`length`,[ch]:r[ch],[uh]:n[t]}},defineProperty(){km(11)},getPrototypeOf(e){return ih(e.base_)},setPrototypeOf(){km(12)}},Rh={};for(let e in Lh){let t=Lh[e];Rh[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Rh.deleteProperty=function(e,t){return Rh.set.call(this,e,t,void 0)},Rh.set=function(e,t,n){return Lh.set.call(this,e[0],t,n,e[0])},zh=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(xh(e)&&!xh(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}xh(t)||km(6),n!==void 0&&!xh(n)&&km(7);let r;if(Am(e)){let i=Ph(this),a=Zm(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?zm(i):Bm(i)}return Rm(i,n),Vm(r,i)}else if(!e||!bh(e)){if(r=t(e),r===void 0&&(r=e),r===eh&&(r=void 0),this.autoFreeze_&&Fm(r,!0),n){let t=[],i=[];Lm(Dh).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}else km(1,e)},this.produceWithPatches=(e,t)=>{if(xh(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Sh(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Sh(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Sh(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Am(e)||km(8),dh(e)&&(e=Qm(e));let t=Ph(this),n=Zm(t,e,void 0);return n[nh].isManual_=!0,Bm(t),n}finishDraft(e,t){let n=e&&e[nh];(!n||!n.isManual_)&&km(9);let{scope_:r}=n;return Rm(r,t),Vm(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=Lm(Dh).applyPatches_;return dh(e)?r(e,t):this.produce(e,e=>r(e,t))}},Bh=new zh,Vh=Bh.produce}));function Uh(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Wh,Gh,Kh=o((()=>{Wh=Uh(),Gh=Uh}));function qh(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(rg(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>wm(t)&&t.type===e,n}function Jh(e){return Am(e)?Vh(e,()=>{}):e}function Yh(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Xh(e){return typeof e==`boolean`}function Zh(e){let t=og(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(bm(n))c=Sm(n);else throw Error(rg(1));let l;l=typeof r==`function`?r(t):t();let u=Cm;i&&(u=ig({trace:!1,...typeof i==`object`&&i}));let d=dg(wte(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return xm(c,o,p)}function Qh(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(rg(28));if(r in t)throw Error(rg(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function $h(e){return typeof e==`function`}function eg(e,t){let[n,r,i]=Qh(t),a;if($h(e))a=()=>Jh(e());else{let t=Jh(e);a=()=>t}function o(e=a(),t){let o=[n[t.type],...r.filter(({matcher:e})=>e(t)).map(({reducer:e})=>e)];return o.filter(e=>!!e).length===0&&(o=[i]),o.reduce((e,n)=>{if(n)if(dh(e)){let r=n(e,t);return r===void 0?e:r}else if(Am(e))return Vh(e,e=>n(e,t));else{let r=n(e,t);if(r===void 0){if(e===null)return e;throw Error(`A case reducer on a non-draftable value must not return undefined`)}return r}return e},e)}return o.getInitialState=a,o}function Pte(e,t){return`${e}/${t}`}function Fte({creators:e}={}){let t=e?.asyncThunk?.[mg];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(rg(11));let i=(typeof e.reducers==`function`?e.reducers(Lte()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(rg(12));if(n in o.sliceCaseReducersByType)throw Error(rg(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:Pte(n,r),createNotation:typeof e.reducers==`function`};zte(a)?Vte(o,a,s,t):Rte(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?Qh(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return eg(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Yh(d,r,m)),i}function i(t=l){return Yh(Yh(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=Ite(a,t,()=>Yh(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function Ite(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}function Lte(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function Rte({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!Bte(r))throw Error(rg(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?qh(e,o):qh(e))}function zte(e){return e._reducerDefinitionType===`asyncThunk`}function Bte(e){return e._reducerDefinitionType===`reducerWithPrepare`}function Vte({type:e,reducerName:t},n,r,i){if(!i)throw Error(rg(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||tg,pending:s||tg,rejected:c||tg,settled:l||tg})}function tg(){}function ng(e,t){let n=Eg;return new Promise((r,i)=>{let a=()=>i(new wg(e.reason));if(e.aborted){a();return}n=Og(e,a),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Eg})}function rg(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ig,ag,og,sg,cg,lg,ug,dg,fg,pg,mg,hg,gg,_g,vg,yg,bg,xg,Sg,Cg,wg,Tg,Eg,Dg,Og,kg,Ag,jg,Mg,Ng,Pg,Fg,Ig,Lg,Rg,zg,Bg,Vg,Hg,Ug,Wg,Gg,Kg,qg,Jg,Yg=o((()=>{Om(),Hh(),Om(),Kh(),ig=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?Cm:Cm.apply(null,arguments)},typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__,ag=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}},og=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new ag;return t&&(Xh(t)?a.push(Wh):a.push(Gh(t.extraArgument))),a},sg=`RTK_autoBatch`,cg=()=>e=>({payload:e,meta:{[sg]:!0}}),lg=e=>t=>{setTimeout(t,e)},ug=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?window.requestAnimationFrame:lg(10):e.type===`callback`?e.queueNotification:lg(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[sg],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},dg=e=>function(t){let{autoBatch:n=!0}=t??{},r=new ag(e);return n&&r.push(ug(typeof n==`object`?n:void 0)),r},fg=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,pg=(e=21)=>{let t=``,n=e;for(;n--;)t+=fg[Math.random()*64|0];return t},mg=Symbol.for(`rtk-slice-createasyncthunk`),hg=Fte(),gg=`task`,_g=`listener`,vg=`completed`,yg=`cancelled`,bg=`task-${yg}`,xg=`task-${vg}`,Sg=`${_g}-${yg}`,Cg=`${_g}-${vg}`,wg=class{constructor(e){this.code=e,this.message=`${gg} ${yg} (reason: ${e})`}name=`TaskAbortError`;message},Tg=(e,t)=>{if(typeof e!=`function`)throw TypeError(rg(32))},Eg=()=>{},Dg=(e,t=Eg)=>(e.catch(t),e),Og=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),kg=e=>{if(e.aborted)throw new wg(e.reason)},Ag=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof wg?`cancelled`:`rejected`,error:e}}finally{t?.()}},jg=e=>t=>Dg(ng(e,t).then(t=>(kg(e),t))),Mg=e=>{let t=jg(e);return e=>t(new Promise(t=>setTimeout(t,e)))},{assign:Ng}=Object,Pg={},Fg=`listenerMiddleware`,Ig=(e,t)=>{let n=t=>Og(e,()=>t.abort(e.reason));return(r,i)=>{Tg(r,`taskExecutor`);let a=new AbortController;n(a);let o=Ag(async()=>{kg(e),kg(a.signal);let t=await r({pause:jg(a.signal),delay:Mg(a.signal),signal:a.signal});return kg(a.signal),t},()=>a.abort(xg));return i?.autoJoin&&t.push(o.catch(Eg)),{result:jg(e)(o),cancel(){a.abort(bg)}}}},Lg=(e,t)=>{let n=async(n,r)=>{kg(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})];r!=null&&a.push(new Promise(e=>setTimeout(e,r,null)));try{let e=await ng(t,Promise.race(a));return kg(t),e}finally{i()}};return(e,t)=>Dg(n(e,t))},Rg=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=qh(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(rg(21));return Tg(a,`options.listener`),{predicate:i,type:t,effect:a}},zg=Ng(e=>{let{type:t,predicate:n,effect:r}=Rg(e);return{id:pg(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(rg(22))}}},{withTypes:()=>zg}),Bg=(e,t)=>{let{type:n,effect:r,predicate:i}=Rg(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Vg=e=>{e.pending.forEach(e=>{e.abort(Sg)})},Hg=(e,t)=>()=>{for(let e of t.keys())Vg(e);e.clear()},Ug=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Wg=Ng(qh(`${Fg}/add`),{withTypes:()=>Wg}),Gg=qh(`${Fg}/removeAll`),Kg=Ng(qh(`${Fg}/remove`),{withTypes:()=>Kg}),qg=(...e)=>{console.error(`${Fg}/error`,...e)},Jg=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=qg}=e;Tg(o,`onError`);let s=e=>(e.unsubscribe=()=>t.delete(e.id),t.set(e.id,e),t=>{e.unsubscribe(),t?.cancelActive&&Vg(e)}),c=e=>s(Bg(t,e)??zg(e));Ng(c,{withTypes:()=>c});let l=e=>{let n=Bg(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Vg(n)),!!n};Ng(l,{withTypes:()=>l});let u=async(e,n,s,l)=>{let u=new AbortController,d=Lg(c,u.signal),f=[];try{e.pending.add(u),r(e),await Promise.resolve(e.effect(n,Ng({},s,{getOriginalState:l,condition:(e,t)=>d(e,t).then(Boolean),take:d,delay:Mg(u.signal),pause:jg(u.signal),extra:a,signal:u.signal,fork:Ig(u.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{t.set(e.id,e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==u&&(e.abort(Sg),n.delete(e))})},cancel:()=>{u.abort(Sg),e.pending.delete(u)},throwIfCancelled:()=>{kg(u.signal)}})))}catch(e){e instanceof wg||Ug(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),u.abort(Cg),i(e),e.pending.delete(u)}},d=Hg(t,n);return{middleware:e=>n=>r=>{if(!wm(r))return n(r);if(Wg.match(r))return c(r.payload);if(Gg.match(r)){d();return}if(Kg.match(r))return l(r.payload);let i=e.getState(),a=()=>{if(i===Pg)throw Error(rg(23));return i},s;try{if(s=n(r),t.size>0){let n=e.getState(),s=Array.from(t.values());for(let t of s){let s=!1;try{s=t.predicate(r,n,i)}catch(e){s=!1,Ug(o,e,{raisedBy:`predicate`})}s&&u(t,r,e,a)}}}finally{i=Pg}return s},startListening:c,stopListening:l,clearListeners:d}}})),Xg,Zg,Qg,$g,e_,t_,n_=o((()=>{Yg(),Xg=hg({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),{setMargin:Zg,setLayout:Qg,setChartSize:$g,setScale:e_}=Xg.actions,t_=Xg.reducer}));function r_(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}var i_=o((()=>{}));function Y(e){return Number.isFinite(e)}function a_(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}var o_=o((()=>{}));function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s_(Object(n),!0).forEach(function(t){Hte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hte(e,t,n){return(t=Ute(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ute(e){var t=Wte(e,`string`);return typeof t==`symbol`?t:t+``}function Wte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function X(e,t,n){return Ff(e)||Ff(t)?n:kf(t)?(0,m_.default)(e,t,n):typeof t==`function`?t(e):n}function l_(e){return e==null?void 0:String(e)}function u_(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:a,dataKey:o}=e;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ff(i[t.dataKey])){var s=Sf(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=X(i,Ff(o)?t.dataKey:o),l=t.scale.map(c);return G(l)?l:null}function d_(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:a}=e;return c_(c_({},t),{},{dataKey:n,payload:r,value:i,name:a})}function f_(e,t){if(e)return String(e);if(typeof t==`string`)return t}var p_,m_,h_,g_,__,v_,y_,b_,x_,S_,C_,w_,T_,E_,D_,O_,k_,A_,j_,M_,N_,P_=o((()=>{p_=u(om()),m_=u(_f()),df(),K(),i_(),o_(),h_=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:a,verticalAlign:o,layout:s}=t;if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&G(e[a]))return c_(c_({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&G(e[o]))return c_(c_({},e),{},{[o]:e[o]+(i||0)})}return e},g_=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,__=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},v_=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:a,scale:o,realScaleType:s,isCategorical:c,categoricalDomain:l,tickCount:u,ticks:d,niceTicks:f,axisType:p}=e;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?Ef(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return Y(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(Cf):c&&l?l.map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Cf):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(Cf):o.domain().map((e,t)=>{var n=o.map(e);return Y(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(Cf)},y_=(e,t)=>{if(!t||t.length!==2||!G(t[0])||!G(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!G(e[0])||e[0]<n)&&(i[0]=n),(!G(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},b_=e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=Df(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},x_=e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=Df(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}},S_={sign:b_,expand:Nee,none:of,silhouette:Fee,wiggle:Lee,positive:x_},C_=(e,t,n)=>{var r=S_[n]??of,i=jee().keys(t).value((e,t)=>Number(X(e,t,0))).order(cf).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=X(e[i],t[r],0);Array.isArray(a)&&a.length===2&&G(a[0])&&G(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i},w_=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:a,index:o}=e;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=X(a,t.dataKey,t.scale.domain()[o]);if(Ff(s))return null;var c=t.scale.map(s);return G(c)?c-i/2+r:null},T_=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},E_=e=>{var t=e.flat(2).filter(G);return[Math.min(...t),Math.max(...t)]},D_=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],O_=(e,t,n)=>{if(e!=null)return D_(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var{stackedData:o}=a,s=o.reduce((e,r)=>{var i=E_(r_(r,t,n));return!Y(i[0])||!Y(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},k_=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,A_=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,j_=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=(0,p_.default)(t,e=>e.coordinate),a=1/0,o=1,s=i.length;o<s;o++){var c=i[o],l=i[o-1];a=Math.min((c?.coordinate||0)-(l?.coordinate||0),a)}return a===1/0?0:a}return n?void 0:0},M_=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},N_=(e,t)=>t===`centric`?e.angle:e.radius})),F_,I_,L_,R_,z_=o((()=>{F_=e=>e.layout.width,I_=e=>e.layout.height,L_=e=>e.layout.scale,R_=e=>e.layout.margin})),B_,V_,H_=o((()=>{rm(),B_=J(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),V_=J(e=>e.cartesianAxis.yAxis,e=>Object.values(e))})),U_,W_,G_,K_=o((()=>{U_=[`#1890FF`,`#66B5FF`,`#41D9C7`,`#2FC25B`,`#6EDB8F`,`#9AE65C`,`#FACC14`,`#E6965C`,`#57AD71`,`#223273`,`#738AE6`,`#7564CC`,`#8543E0`,`#A877ED`,`#5C8EE6`,`#13C2C2`,`#70E0E0`,`#5CA3E6`,`#3436C7`,`#8082FF`,`#DD81E6`,`#F04864`,`#FA7D92`,`#D598D9`],W_=`data-recharts-item-index`,G_=`data-recharts-item-id`}));function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function J_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?q_(Object(n),!0).forEach(function(t){Gte(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gte(e,t,n){return(t=Kte(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kte(e){var t=qte(e,`string`);return typeof t==`symbol`?t:t+``}function qte(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jte(e){return V_(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Yte(e){return V_(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Xte(e){return B_(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+t.height:e,0)}function Zte(e){return B_(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+t.height:e,0)}var Y_,X_,Z_,Q_,$_=o((()=>{rm(),fm(),P_(),z_(),H_(),K_(),Y_=e=>e.brush.height,X_=J([F_,I_,R_,Y_,Jte,Yte,Xte,Zte,cm,lm],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=J_(J_({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=h_(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return J_(J_({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Z_=J(X_,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Q_=J(F_,I_,(e,t)=>({x:0,y:0,width:e,height:t}))})),ev,tv,nv,rv=o((()=>{f(),ev=u(f()),tv=(0,ev.createContext)(null),nv=()=>(0,ev.useContext)(tv)!=null})),iv,av,ov=o((()=>{rm(),$_(),z_(),K(),iv=e=>e.brush,av=J([iv,X_,R_],(e,t,n)=>({height:e.height,x:G(e.x)?e.x:t.left,y:G(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:G(e.width)?e.width:t.width}))})),Qte=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}e.debounce=t})),$te=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qte();function n(e,n=0,r={}){typeof r!=`object`&&(r={});let{leading:i=!1,trailing:a=!0,maxWait:o}=r,s=[,,];i&&(s[0]=`leading`),a&&(s[1]=`trailing`);let c,l=null,u=t.debounce(function(...t){c=e.apply(this,t),l=null},n,{edges:s}),d=function(...t){return o!=null&&(l===null&&(l=Date.now()),Date.now()-l>=o)?(c=e.apply(this,t),l=Date.now(),u.cancel(),u.schedule(),c):(u.apply(this,t),c)};return d.cancel=u.cancel,d.flush=()=>(u.flush(),c),d}e.debounce=n})),ene=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=$te();function n(e,n=0,r={}){let{leading:i=!0,trailing:a=!0}=r;return t.debounce(e,n,{leading:i,maxWait:n,trailing:a})}e.throttle=n})),tne=s(((e,t)=>{t.exports=ene().throttle})),sv,cv,lv=o((()=>{sv=!0,cv=function(e,t){var n=[...arguments].slice(2);if(sv&&typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e))if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}}));function nne(e){var{width:t,height:n,aspect:r}=e,i=t,a=n;return i===void 0&&a===void 0?(i=uv.width,a=uv.height):i===void 0?i=r&&r>0?void 0:uv.width:a===void 0&&(a=r&&r>0?void 0:uv.height),{width:i,height:a}}var uv,dv,fv,pv,mv,hv,gv,rne=o((()=>{K(),uv={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},dv=(e,t,n)=>{var{width:r=uv.width,height:i=uv.height,aspect:a,maxHeight:o}=n,s=Of(r)?e:Number(r),c=Of(i)?t:Number(i);return a&&a>0&&(s?c=s/a:c&&(s=c*a),o&&c!=null&&c>o&&(c=o)),{calculatedWidth:s,calculatedHeight:c}},fv={width:0,height:0,overflow:`visible`},pv={width:0,overflowX:`visible`},mv={height:0,overflowY:`visible`},hv={},gv=e=>{var{width:t,height:n}=e,r=Of(t),i=Of(n);return r&&i?fv:r?pv:i?mv:hv}}));function _v(){return _v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_v.apply(null,arguments)}function vv(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vv(Object(n),!0).forEach(function(t){ine(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vv(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ine(e,t,n){return(t=ane(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ane(e){var t=one(e,`string`);return typeof t==`symbol`?t:t+``}function one(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sne(e){return a_(e.width)&&a_(e.height)}function bv(e){var{children:t,width:n,height:r}=e,i=(0,Sv.useMemo)(()=>({width:n,height:r}),[n,r]);return sne(i)?xv.createElement(wv.Provider,{value:i},t):null}var xv,Sv,Cv,wv,Tv,Ev,Dv,Ov=o((()=>{Xl(),xv=u(f()),Sv=u(f()),Cv=u(tne()),K(),lv(),rne(),o_(),wv=(0,Sv.createContext)(uv.initialDimension),Tv=()=>(0,Sv.useContext)(wv),Ev=(0,Sv.forwardRef)((e,t)=>{var{aspect:n,initialDimension:r=uv.initialDimension,width:i,height:a,minWidth:o=uv.minWidth,minHeight:s,maxHeight:c,children:l,debounce:u=uv.debounce,id:d,className:f,onResize:p,style:m={}}=e,h=(0,Sv.useRef)(null),g=(0,Sv.useRef)();g.current=p,(0,Sv.useImperativeHandle)(t,()=>h.current);var[_,v]=(0,Sv.useState)({containerWidth:r.width,containerHeight:r.height}),y=(0,Sv.useCallback)((e,t)=>{v(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,Sv.useEffect)(()=>{if(h.current==null||typeof ResizeObserver>`u`)return wf;var e=e=>{var t,n=e[0];if(n!=null){var{width:r,height:i}=n.contentRect;y(r,i),(t=g.current)==null||t.call(g,r,i)}};u>0&&(e=(0,Cv.default)(e,u,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),{width:n,height:r}=h.current.getBoundingClientRect();return y(n,r),t.observe(h.current),()=>{t.disconnect()}},[y,u]);var{containerWidth:b,containerHeight:x}=_;cv(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var{calculatedWidth:S,calculatedHeight:C}=dv(b,x,{width:i,height:a,aspect:n,maxHeight:c});return cv(S!=null&&S>0||C!=null&&C>0,`The width(%s) and height(%s) of chart should be greater than 0,
102
102
  please check the style of container, or the props width(%s) and height(%s),
103
103
  or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
104
- height and width.`,S,C,i,a,o,s,n),N.createElement(`div`,{id:d?`${d}`:void 0,className:W(`recharts-responsive-container`,f),style:Cv(Cv({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:c}),ref:h},N.createElement(`div`,{style:vv({width:i,height:a})},N.createElement(kv,{width:S,height:C},l)))}),Mv=(0,N.forwardRef)((e,t)=>{var n=Av();if(s_(n.width)&&s_(n.height))return e.children;var{width:r,height:i}=yv({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=pv(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return K(a)&&K(o)?N.createElement(kv,{width:a,height:o},e.children):N.createElement(jv,xv({},e,{width:r,height:i,ref:t}))});function Nv(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Pv=()=>{var e=rv(),t=q(ev),n=q(av),r=q(iv)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},Fv={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Iv=()=>q($_)??Fv,Lv=()=>q(P_),Rv=()=>q(F_),zv=()=>q(e=>e.layout.margin),Z=e=>e.layout.layoutType,Bv=()=>q(Z),Vv=()=>{var e=Bv();if(e===`horizontal`||e===`vertical`)return e},Hv=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Uv=()=>Bv()!==void 0,Wv=e=>{var t=jp(),n=rv(),{width:r,height:i}=e,a=Av(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,N.useEffect)(()=>{!n&&s_(o)&&s_(s)&&t(r_({width:o,height:s}))},[t,n,o,s]),null},Gv=e=>{var{margin:t}=e,n=jp();return(0,N.useEffect)(()=>{n(t_(t))},[n,t]),null},Kv=Symbol.for(`immer-nothing`),qv=Symbol.for(`immer-draftable`),Jv=Symbol.for(`immer-state`);function Yv(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Xv=Object.getPrototypeOf;function Zv(e){return!!e&&!!e[Jv]}function Qv(e){return e?ty(e)||Array.isArray(e)||!!e[qv]||!!e.constructor?.[qv]||sy(e)||cy(e):!1}var $v=Object.prototype.constructor.toString(),ey=new WeakMap;function ty(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;if(n===Object)return!0;if(typeof n!=`function`)return!1;let r=ey.get(n);return r===void 0&&(r=Function.toString.call(n),ey.set(n,r)),r===$v}function ny(e,t,n=!0){ry(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function ry(e){let t=e[Jv];return t?t.type_:Array.isArray(e)?1:sy(e)?2:cy(e)?3:0}function iy(e,t){return ry(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function ay(e,t,n){let r=ry(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function oy(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function sy(e){return e instanceof Map}function cy(e){return e instanceof Set}function ly(e){return e.copy_||e.base_}function uy(e,t){if(sy(e))return new Map(e);if(cy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=ty(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[Jv];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Xv(e),t)}else{let t=Xv(e);return t!==null&&n?{...e}:Object.assign(Object.create(t),e)}}function dy(e,t=!1){return my(e)||Zv(e)||!Qv(e)?e:(ry(e)>1&&Object.defineProperties(e,{set:py,add:py,clear:py,delete:py}),Object.freeze(e),t&&Object.values(e).forEach(e=>dy(e,!0)),e)}function fy(){Yv(2)}var py={value:fy};function my(e){return typeof e!=`object`||!e?!0:Object.isFrozen(e)}var hy={};function gy(e){let t=hy[e];return t||Yv(0,e),t}var _y;function vy(){return _y}function yy(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function by(e,t){t&&(gy(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function xy(e){Sy(e),e.drafts_.forEach(wy),e.drafts_=null}function Sy(e){e===_y&&(_y=e.parent_)}function Cy(e){return _y=yy(_y,e)}function wy(e){let t=e[Jv];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Ty(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[Jv].modified_&&(xy(t),Yv(4)),Qv(e)&&(e=Ey(t,e),t.parent_||Oy(t,e)),t.patches_&&gy(`Patches`).generateReplacementPatches_(n[Jv].base_,e,t.patches_,t.inversePatches_)):e=Ey(t,n,[]),xy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===Kv?void 0:e}function Ey(e,t,n){if(my(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[Jv];if(!i)return ny(t,(r,a)=>Dy(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return Oy(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,a=t,o=!1;i.type_===3&&(a=new Set(t),t.clear(),o=!0),ny(a,(r,a)=>Dy(e,i,t,r,a,n,o),r),Oy(e,t,!1),n&&e.patches_&&gy(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function Dy(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=my(i);if(!(s&&!o)){if(Zv(i)){let o=Ey(e,i,a&&t&&t.type_!==3&&!iy(t.assigned_,r)?a.concat(r):void 0);if(ay(n,r,o),Zv(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(Qv(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;Ey(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&(sy(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Oy(e,i)}}}function Oy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&dy(t,n)}function ky(e,t){let n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:vy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=Ay;n&&(i=[r],a=jy);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}var Ay={get(e,t){if(t===Jv)return e;let n=ly(e);if(!iy(n,t))return Ny(e,n,t);let r=n[t];return e.finalized_||!Qv(r)?r:r===My(e.base_,t)?(Iy(e),e.copy_[t]=Ry(r,e)):r},has(e,t){return t in ly(e)},ownKeys(e){return Reflect.ownKeys(ly(e))},set(e,t,n){let r=Py(ly(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=My(ly(e),t),i=r?.[Jv];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(oy(n,r)&&(n!==void 0||iy(e.base_,t)))return!0;Iy(e),Fy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return My(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Iy(e),Fy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ly(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){Yv(11)},getPrototypeOf(e){return Xv(e.base_)},setPrototypeOf(){Yv(12)}},jy={};ny(Ay,(e,t)=>{jy[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),jy.deleteProperty=function(e,t){return jy.set.call(this,e,t,void 0)},jy.set=function(e,t,n){return Ay.set.call(this,e[0],t,n,e[0])};function My(e,t){let n=e[Jv];return(n?ly(n):e)[t]}function Ny(e,t,n){let r=Py(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function Py(e,t){if(!(t in e))return;let n=Xv(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Xv(n)}}function Fy(e){e.modified_||(e.modified_=!0,e.parent_&&Fy(e.parent_))}function Iy(e){e.copy_||=uy(e.base_,e.scope_.immer_.useStrictShallowCopy_)}var Ly=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&Yv(6),n!==void 0&&typeof n!=`function`&&Yv(7);let r;if(Qv(e)){let i=Cy(this),a=Ry(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?xy(i):Sy(i)}return by(i,n),Ty(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===Kv&&(r=void 0),this.autoFreeze_&&dy(r,!0),n){let t=[],i=[];gy(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else Yv(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy==`boolean`&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration==`boolean`&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Qv(e)||Yv(8),Zv(e)&&(e=zy(e));let t=Cy(this),n=Ry(e,void 0);return n[Jv].isManual_=!0,Sy(t),n}finishDraft(e,t){let n=e&&e[Jv];(!n||!n.isManual_)&&Yv(9);let{scope_:r}=n;return by(r,t),Ty(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=gy(`Patches`).applyPatches_;return Zv(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Ry(e,t){let n=sy(e)?gy(`MapSet`).proxyMap_(e,t):cy(e)?gy(`MapSet`).proxySet_(e,t):ky(e,t);return(t?t.scope_:vy()).drafts_.push(n),n}function zy(e){return Zv(e)||Yv(10,e),By(e)}function By(e){if(!Qv(e)||my(e))return e;let t=e[Jv],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=uy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=uy(e,!0);return ny(n,(e,t)=>{ay(n,e,By(t))},r),t&&(t.finalized_=!1),n}new Ly().produce;function Vy(e){return e}var Hy=fg({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`middle`,itemSorter:`value`},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(Vy(t.payload))},prepare:Qh()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Rh(e).payload.indexOf(Vy(n));i>-1&&(e.payload[i]=Vy(r))},prepare:Qh()},removeLegendPayload:{reducer(e,t){var n=Rh(e).payload.indexOf(Vy(t.payload));n>-1&&e.payload.splice(n,1)},prepare:Qh()}}}),{setLegendSize:Uy,setLegendSettings:Wy,addLegendPayload:Gy,replaceLegendPayload:Ky,removeLegendPayload:qy}=Hy.actions,Jy=Hy.reducer,Yy=o((e=>{var t=d();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue}));o(((e,t)=>{t.exports=Yy()}))();function Xy(e){e()}function Zy(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Xy(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Qy={notify(){},get:()=>[]};function $y(e,t){let n,r=Qy,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=Zy())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Qy)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var eb=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,tb=typeof navigator<`u`&&navigator.product===`ReactNative`,nb=eb||tb?N.useLayoutEffect:N.useEffect;function rb(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function ib(e,t){if(rb(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!rb(e[n[r]],t[n[r]]))return!1;return!0}var ab=Symbol.for(`react-redux-context`),ob=typeof globalThis<`u`?globalThis:{};function sb(){if(!N.createContext)return{};let e=ob[ab]??=new Map,t=e.get(N.createContext);return t||(t=N.createContext(null),e.set(N.createContext,t)),t}var cb=sb();function lb(e){let{children:t,context:n,serverState:r,store:i}=e,a=N.useMemo(()=>({store:i,subscription:$y(i),getServerState:r?()=>r:void 0}),[i,r]),o=N.useMemo(()=>i.getState(),[i]);nb(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||cb;return N.createElement(s.Provider,{value:a},t)}var ub=lb,db=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`]);function fb(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function pb(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(db.has(n)){if(e[n]==null&&t[n]==null)continue;if(!ib(e[n],t[n]))return!1}else if(!fb(e[n],t[n]))return!1;return!0}var mb=h(),hb=[`contextPayload`];function gb(){return gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gb.apply(null,arguments)}function _b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_b(Object(n),!0).forEach(function(t){yb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_b(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yb(e,t,n){return(t=bb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bb(e){var t=xb(e,`string`);return typeof t==`symbol`?t:t+``}function xb(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Sb(e,t){if(e==null)return{};var n,r,i=Cb(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Cb(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function wb(e){return e.value}function Tb(e){var{contextPayload:t}=e,n=Sb(e,hb),r=Cp(t,e.payloadUniqBy,wb),i=vb(vb({},n),{},{payload:r});return N.isValidElement(e.content)?N.cloneElement(e.content,i):typeof e.content==`function`?N.createElement(e.content,i):N.createElement(qf,i)}function Eb(e,t,n,r,i,a){var{layout:o,align:s,verticalAlign:c}=t,l,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(l=s===`center`&&o===`vertical`?{left:((r||0)-a.width)/2}:s===`right`?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u=c===`middle`?{top:((i||0)-a.height)/2}:c===`bottom`?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),vb(vb({},l),u)}function Db(e){var t=jp();return(0,N.useEffect)(()=>{t(Wy(e))},[t,e]),null}function Ob(e){var t=jp();return(0,N.useEffect)(()=>(t(Uy(e)),()=>{t(Uy({width:0,height:0}))}),[t,e]),null}function kb(e,t,n,r){return e===`vertical`&&t!=null?{height:t}:e===`horizontal`?{width:n||r}:null}var Ab={align:`center`,iconSize:14,inactiveColor:`#ccc`,itemSorter:`value`,layout:`horizontal`,verticalAlign:`bottom`};function jb(e){var t=Ff(e,Ab),n=om(),r=fu(),i=zv(),{width:a,height:o,wrapperStyle:s,portal:c}=t,[l,u]=cm([n]),d=Lv(),f=Rv();if(d==null||f==null)return null;var p=d-(i?.left||0)-(i?.right||0),m=kb(t.layout,o,a,p),h=c?s:vb(vb({position:`absolute`,width:m?.width||a||`auto`,height:m?.height||o||`auto`},Eb(s,t,i,d,f,l)),s),g=c??r;return g==null||n==null?null:(0,mb.createPortal)(N.createElement(`div`,{className:`recharts-legend-wrapper`,style:h,ref:u},N.createElement(Db,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!c&&N.createElement(Ob,{width:l.width,height:l.height}),N.createElement(Tb,gb({},t,m,{margin:i,chartWidth:d,chartHeight:f,contextPayload:n}))),g)}var Mb=N.memo(jb,pb);Mb.displayName=`Legend`;function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(null,arguments)}function Pb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pb(Object(n),!0).forEach(function(t){Ib(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ib(e,t,n){return(t=Lb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lb(e){var t=Rb(e,`string`);return typeof t==`symbol`?t:t+``}function Rb(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zb(e){return Array.isArray(e)&&Zd(e[0])&&Zd(e[1])?e.join(` ~ `):e}var Bb={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1};function Vb(e,t){return t==null?e:(0,nm.default)(e,t)}var Hb=e=>{var{separator:t=Bb.separator,contentStyle:n,itemStyle:r,labelStyle:i=Bb.labelStyle,payload:a,formatter:o,itemSorter:s,wrapperClassName:c,labelClassName:l,label:u,labelFormatter:d,accessibilityLayer:f=Bb.accessibilityLayer}=e,p=()=>{if(a&&a.length){var e={padding:0,margin:0},n=Vb(a,s).map((e,n)=>{if(!e||e.type===`none`)return null;var i=e.formatter||o||zb,{value:s,name:c}=e,l=s,u=c;if(i){var d=i(s,c,e,n,a);if(Array.isArray(d))[l,u]=d;else if(d!=null)l=d;else return null}var f=Fb(Fb({},Bb.itemStyle),{},{color:e.color||Bb.itemStyle.color},r);return N.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${n}`,style:f},Zd(u)?N.createElement(`span`,{className:`recharts-tooltip-item-name`},u):null,Zd(u)?N.createElement(`span`,{className:`recharts-tooltip-item-separator`},t):null,N.createElement(`span`,{className:`recharts-tooltip-item-value`},l),N.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return N.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},n)}return null},m=Fb(Fb({},Bb.contentStyle),n),h=Fb({margin:0},i),g=!of(u),_=g?u:``,v=W(`recharts-default-tooltip`,c),y=W(`recharts-tooltip-label`,l);g&&d&&a!=null&&(_=d(u,a));var b=f?{role:`status`,"aria-live":`assertive`}:{};return N.createElement(`div`,Nb({className:v,style:m},b),N.createElement(`p`,{className:y,style:h},N.isValidElement(_)?_:`${_}`),p())},Ub=`recharts-tooltip-wrapper`,Wb={visibility:`hidden`};function Gb(e){var{coordinate:t,translateX:n,translateY:r}=e;return W(Ub,{[`${Ub}-right`]:K(n)&&t&&K(t.x)&&n>=t.x,[`${Ub}-left`]:K(n)&&t&&K(t.x)&&n<t.x,[`${Ub}-bottom`]:K(r)&&t&&K(t.y)&&r>=t.y,[`${Ub}-top`]:K(r)&&t&&K(t.y)&&r<t.y})}function Kb(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:c,viewBoxDimension:l}=e;if(a&&K(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function qb(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function Jb(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:s,useTranslate3d:c,viewBox:l}=e,u,d,f;return s.height>0&&s.width>0&&n?(d=Kb({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=Kb({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=qb({translateX:d,translateY:f,useTranslate3d:c})):u=Wb,{cssProperties:u,cssClasses:Gb({translateX:d,translateY:f,coordinate:n})}}var Yb={devToolsEnabled:!0,isSsr:!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout)};function Xb(){var[e,t]=(0,N.useState)(()=>Yb.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);return(0,N.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}}},[]),e}function Zb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Qb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Zb(Object(n),!0).forEach(function(t){$b(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $b(e,t,n){return(t=ex(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ex(e){var t=tx(e,`string`);return typeof t==`symbol`?t:t+``}function tx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nx(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active)return`transform ${e.animationDuration}ms ${e.animationEasing}`}function rx(e){var t=Xb(),[n,r]=N.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));N.useEffect(()=>{var t=t=>{t.key===`Escape`&&r({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),n.dismissed&&((e.coordinate?.x??0)!==n.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==n.dismissedAtCoordinate.y)&&r(Qb(Qb({},n),{},{dismissed:!1}));var{cssClasses:i,cssProperties:a}=Jb({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=Qb(Qb({},e.hasPortalFromProps?{}:Qb(Qb({transition:nx({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},a),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!n.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return N.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:i,style:o,ref:e.innerRef},e.children)}var ix=N.memo(rx),ax=()=>q(e=>e.rootProps.accessibilityLayer)??!0;function ox(){return ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ox.apply(null,arguments)}function sx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sx(Object(n),!0).forEach(function(t){lx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lx(e,t,n){return(t=ux(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ux(e){var t=dx(e,`string`);return typeof t==`symbol`?t:t+``}function dx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var fx={curveBasisClosed:cd,curveBasisOpen:ud,curveBasis:od,curveBumpX:Iu,curveBumpY:Lu,curveLinearClosed:fd,curveLinear:Au,curveMonotoneX:bd,curveMonotoneY:xd,curveNatural:wd,curveStep:Ed,curveStepAfter:Od,curveStepBefore:Dd},px=e=>Y(e.x)&&Y(e.y),mx=e=>e.base!=null&&px(e.base)&&px(e),hx=e=>e.x,gx=e=>e.y,_x=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${sf(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=fx[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return fx[n]||Au},vx={connectNulls:!1,type:`linear`},yx=e=>{var{type:t=vx.type,points:n=[],baseLine:r,layout:i,connectNulls:a=vx.connectNulls}=e,o=_x(t,i),s=a?n.filter(px):n;if(Array.isArray(r)){var c,l=n.map((e,t)=>cx(cx({},e),{},{base:r[t]}));return c=i===`vertical`?Pu().y(gx).x1(hx).x0(e=>e.base.x):Pu().x(hx).y1(gx).y0(e=>e.base.y),c.defined(mx).curve(o)(a?l.filter(mx):l)}return(i===`vertical`&&K(r)?Pu().y(gx).x1(hx).x0(r):K(r)?Pu().x(hx).y1(gx).y0(r):Nu().x(hx).y(gx)).defined(px).curve(o)(s)},bx=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=Bv();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=n&&n.length?yx(o):r;return N.createElement(`path`,ox({},Ql(e),Ef(e),{className:W(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))},xx=[`x`,`y`,`top`,`left`,`width`,`height`,`className`];function Sx(){return Sx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sx.apply(null,arguments)}function Cx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cx(Object(n),!0).forEach(function(t){Tx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tx(e,t,n){return(t=Ex(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ex(e){var t=Dx(e,`string`);return typeof t==`symbol`?t:t+``}function Dx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ox(e,t){if(e==null)return{};var n,r,i=kx(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kx(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ax=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,jx=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:o=0,className:s}=e,c=Ox(e,xx),l=wx({x:t,y:n,top:r,left:i,width:a,height:o},c);return!K(t)||!K(n)||!K(a)||!K(o)||!K(r)||!K(i)?null:N.createElement(`path`,Sx({},eu(l),{className:W(`recharts-cross`,s),d:Ax(t,n,a,o,r,i)}))};function Mx(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}function Nx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Px(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nx(Object(n),!0).forEach(function(t){Fx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fx(e,t,n){return(t=Ix(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ix(e){var t=Lx(e,`string`);return typeof t==`symbol`?t:t+``}function Lx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Rx=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),zx=(e,t,n)=>e.map(e=>`${Rx(e)} ${t}ms ${n}`).join(`,`),Bx=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),Vx=(e,t)=>Object.keys(t).reduce((n,r)=>Px(Px({},n),{},{[r]:e(r,t[r])}),{});function Hx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Ux(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Hx(Object(n),!0).forEach(function(t){Wx(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Wx(e,t,n){return(t=Gx(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gx(e){var t=Kx(e,`string`);return typeof t==`symbol`?t:t+``}function Kx(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qx=(e,t,n)=>e+(t-e)*n,Jx=e=>{var{from:t,to:n}=e;return t!==n},Yx=(e,t,n)=>{var r=Vx((t,n)=>{if(Jx(n)){var[r,i]=e(n.from,n.to,n.velocity);return Ux(Ux({},n),{},{from:r,velocity:i})}return n},t);return n<1?Vx((e,t)=>Jx(t)&&r[e]!=null?Ux(Ux({},t),{},{velocity:qx(t.velocity,r[e].velocity,n),from:qx(t.from,r[e].from,n)}):t,t):Yx(e,r,n-1)};function Xx(e,t,n,r,i,a){var o,s=r.reduce((n,r)=>Ux(Ux({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),c=()=>Vx((e,t)=>t.from,s),l=()=>!Object.values(s).filter(Jx).length,u=null,d=r=>{o||=r;var f=(r-o)/n.dt;s=Yx(n,s,f),i(Ux(Ux(Ux({},e),t),c())),o=r,l()||(u=a.setTimeout(d))};return()=>(u=a.setTimeout(d),()=>{var e;(e=u)==null||e()})}function Zx(e,t,n,r,i,a,o){var s=null,c=i.reduce((n,r)=>{var i=e[r],a=t[r];return i==null||a==null?n:Ux(Ux({},n),{},{[r]:[i,a]})},{}),l,u=i=>{l||=i;var d=(i-l)/r,f=Vx((e,t)=>qx(...t,n(d)),c);if(a(Ux(Ux(Ux({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=Vx((e,t)=>qx(...t,n(1)),c);a(Ux(Ux(Ux({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;(e=s)==null||e()})}var Qx=(e,t,n,r,i,a)=>{var o=Bx(e,t);return n==null?()=>(i(Ux(Ux({},e),t)),()=>{}):n.isStepper===!0?Xx(e,t,n,o,i,a):Zx(e,t,n,r,o,i,a)},$x=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],eS=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),tS=(e,t)=>n=>eS($x(e,t),n),nS=(e,t)=>n=>eS([...$x(e,t).map((e,t)=>e*t).slice(1),0],n),rS=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},iS=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=rS(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},aS=(e,t,n,r)=>{var i=tS(e,n),a=tS(t,r),o=nS(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},oS=function(){return aS(...iS(...arguments))},sS=function(){var{stiff:e=100,damping:t=8,dt:n=17}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=(r,i,a)=>{var o=a+(-(r-i)*e-a*t)*n/1e3,s=a*n/1e3+r;return Math.abs(s-i)<1e-4&&Math.abs(o)<1e-4?[i,0]:[s,o]};return r.isStepper=!0,r.dt=n,r},cS=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return oS(e);case`spring`:return sS();default:if(e.split(`(`)[0]===`cubic-bezier`)return oS(e)}return typeof e==`function`?e:null};function lS(e){var t,n=()=>null,r=!1,i=null,a=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var[s,...c]=o;if(typeof s==`number`){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o==`string`&&(t=o,n(t)),typeof o==`object`&&(t=o,n(t)),typeof o==`function`&&o()}};return{stop:()=>{r=!0},start:e=>{r=!1,i&&=(i(),null),a(e)},subscribe:e=>(n=e,()=>{n=()=>null}),getTimeoutController:()=>e}}var uS=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):typeof requestAnimationFrame==`function`&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}};function dS(){return lS(new uS)}var fS=(0,N.createContext)(dS);function pS(e,t){var n=(0,N.useContext)(fS);return(0,N.useMemo)(()=>t??n(e),[e,t,n])}var mS={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},hS={t:0},gS={t:1};function _S(e){var t=Ff(e,mS),{isActive:n,canBegin:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:c,children:l}=t,u=Xb(),d=n===`auto`?!Yb.isSsr&&!u:n,f=pS(t.animationId,t.animationManager),[p,m]=(0,N.useState)(d?hS:gS),h=(0,N.useRef)(null);return(0,N.useEffect)(()=>{d||m(gS)},[d]),(0,N.useEffect)(()=>{if(!d||!r)return lf;var e=Qx(hS,gS,cS(a),i,m,f.getTimeoutController());return f.start([c,o,()=>{h.current=e()},i,s]),()=>{f.stop(),h.current&&h.current(),s()}},[d,r,i,a,o,c,s,f]),l(p.t)}function vS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,N.useRef)($d(t)),r=(0,N.useRef)(e);return r.current!==e&&(n.current=$d(t),r.current=e),n.current}var yS=[`radius`],bS=[`radius`],xS,SS,CS,wS,TS,ES,DS,OS,kS,AS;function jS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?jS(Object(n),!0).forEach(function(t){NS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NS(e,t,n){return(t=PS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PS(e){var t=FS(e,`string`);return typeof t==`symbol`?t:t+``}function FS(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IS(){return IS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IS.apply(null,arguments)}function LS(e,t){if(e==null)return{};var n,r,i=RS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function RS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function zS(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var BS=(e,t,n,r,i)=>{var a=Gd(n),o=Gd(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=o>=0&&a>=0||o<0&&a<0?1:0,d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=Kd(xS||=zS([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=Kd(SS||=zS([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=Kd(CS||=zS([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=Kd(wS||=zS([`A `,`,`,`,0,0,`,`,
105
- `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=Kd(TS||=zS([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=Kd(ES||=zS([`A `,`,`,`,0,0,`,`,
106
- `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=Kd(DS||=zS([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=Kd(OS||=zS([`A `,`,`,`,0,0,`,`,
107
- `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=Kd(kS||=zS(`M .,.
104
+ height and width.`,S,C,i,a,o,s,n),xv.createElement(`div`,{id:d?`${d}`:void 0,className:H(`recharts-responsive-container`,f),style:yv(yv({},m),{},{width:i,height:a,minWidth:o,minHeight:s,maxHeight:c}),ref:h},xv.createElement(`div`,{style:gv({width:i,height:a})},xv.createElement(bv,{width:S,height:C},l)))}),Dv=(0,Sv.forwardRef)((e,t)=>{var n=Tv();if(a_(n.width)&&a_(n.height))return e.children;var{width:r,height:i}=nne({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:a,calculatedHeight:o}=dv(void 0,void 0,{width:r,height:i,aspect:e.aspect,maxHeight:e.maxHeight});return G(a)&&G(o)?xv.createElement(bv,{width:a,height:o},e.children):xv.createElement(Ev,_v({},e,{width:r,height:i,ref:t}))})}));function kv(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Av,jv,Mv,Nv,Pv,Fv,Iv,Z,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv=o((()=>{Av=u(f()),Jp(),n_(),$_(),z_(),rv(),ov(),Ov(),o_(),jv=()=>{var e=nv(),t=q(Z_),n=q(av),r=q(iv)?.padding;return!e||!n||!r?t:{width:n.width-r.left-r.right,height:n.height-r.top-r.bottom,x:r.left,y:r.top}},Mv={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},Nv=()=>q(X_)??Mv,Pv=()=>q(F_),Fv=()=>q(I_),Iv=()=>q(e=>e.layout.margin),Z=e=>e.layout.layoutType,Lv=()=>q(Z),Rv=()=>{var e=Lv();if(e===`horizontal`||e===`vertical`)return e},zv=e=>{var t=e.layout.layoutType;if(t===`centric`||t===`radial`)return t},Bv=()=>q(zv),Vv=()=>Lv()!==void 0,Hv=e=>{var t=Wp(),n=nv(),{width:r,height:i}=e,a=Tv(),o=r,s=i;return a&&(o=a.width>0?a.width:r,s=a.height>0?a.height:i),(0,Av.useEffect)(()=>{!n&&a_(o)&&a_(s)&&t($g({width:o,height:s}))},[t,n,o,s]),null},Uv=e=>{var{margin:t}=e,n=Wp();return(0,Av.useEffect)(()=>{n(Zg(t))},[n,t]),null}}));function Gv(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}function Kv(e){return!!e&&!!e[Ey]}function qv(e){return e?Jv(e)||Array.isArray(e)||!!e[Ty]||!!e.constructor?.[Ty]||$v(e)||ey(e):!1}function Jv(e){if(!e||typeof e!=`object`)return!1;let t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;let n=Object.hasOwnProperty.call(t,`constructor`)&&t.constructor;if(n===Object)return!0;if(typeof n!=`function`)return!1;let r=ky.get(n);return r===void 0&&(r=Function.toString.call(n),ky.set(n,r)),r===Oy}function Yv(e,t,n=!0){Xv(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Xv(e){let t=e[Ey];return t?t.type_:Array.isArray(e)?1:$v(e)?2:ey(e)?3:0}function Zv(e,t){return Xv(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qv(e,t,n){let r=Xv(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function cne(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function $v(e){return e instanceof Map}function ey(e){return e instanceof Set}function ty(e){return e.copy_||e.base_}function ny(e,t){if($v(e))return new Map(e);if(ey(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let n=Jv(e);if(t===!0||t===`class_only`&&!n){let t=Object.getOwnPropertyDescriptors(e);delete t[Ey];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[i]})}return Object.create(Dy(e),t)}else{let t=Dy(e);return t!==null&&n?{...e}:Object.assign(Object.create(t),e)}}function ry(e,t=!1){return ay(e)||Kv(e)||!qv(e)?e:(Xv(e)>1&&Object.defineProperties(e,{set:Ay,add:Ay,clear:Ay,delete:Ay}),Object.freeze(e),t&&Object.values(e).forEach(e=>ry(e,!0)),e)}function iy(){Gv(2)}function ay(e){return typeof e!=`object`||!e?!0:Object.isFrozen(e)}function oy(e){let t=jy[e];return t||Gv(0,e),t}function sy(){return My}function cy(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ly(e,t){t&&(oy(`Patches`),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function uy(e){dy(e),e.drafts_.forEach(lne),e.drafts_=null}function dy(e){e===My&&(My=e.parent_)}function fy(e){return My=cy(My,e)}function lne(e){let t=e[Ey];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function py(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ey].modified_&&(uy(t),Gv(4)),qv(e)&&(e=my(t,e),t.parent_||gy(t,e)),t.patches_&&oy(`Patches`).generateReplacementPatches_(n[Ey].base_,e,t.patches_,t.inversePatches_)):e=my(t,n,[]),uy(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===wy?void 0:e}function my(e,t,n){if(ay(t))return t;let r=e.immer_.shouldUseStrictIteration(),i=t[Ey];if(!i)return Yv(t,(r,a)=>hy(e,i,t,r,a,n),r),t;if(i.scope_!==e)return t;if(!i.modified_)return gy(e,i.base_,!0),i.base_;if(!i.finalized_){i.finalized_=!0,i.scope_.unfinalizedDrafts_--;let t=i.copy_,a=t,o=!1;i.type_===3&&(a=new Set(t),t.clear(),o=!0),Yv(a,(r,a)=>hy(e,i,t,r,a,n,o),r),gy(e,t,!1),n&&e.patches_&&oy(`Patches`).generatePatches_(i,n,e.patches_,e.inversePatches_)}return i.copy_}function hy(e,t,n,r,i,a,o){if(i==null||typeof i!=`object`&&!o)return;let s=ay(i);if(!(s&&!o)){if(Kv(i)){let o=my(e,i,a&&t&&t.type_!==3&&!Zv(t.assigned_,r)?a.concat(r):void 0);if(Qv(n,r,o),Kv(o))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(qv(i)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===i&&s)return;my(e,i),(!t||!t.scope_.parent_)&&typeof r!=`symbol`&&($v(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&gy(e,i)}}}function gy(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&ry(t,n)}function une(e,t){let n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:sy(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=r,a=Ny;n&&(i=[r],a=Py);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}function _y(e,t){let n=e[Ey];return(n?ty(n):e)[t]}function dne(e,t,n){let r=vy(t,n);return r?`value`in r?r.value:r.get?.call(e.draft_):void 0}function vy(e,t){if(!(t in e))return;let n=Dy(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Dy(n)}}function yy(e){e.modified_||(e.modified_=!0,e.parent_&&yy(e.parent_))}function by(e){e.copy_||=ny(e.base_,e.scope_.immer_.useStrictShallowCopy_)}function xy(e,t){let n=$v(e)?oy(`MapSet`).proxyMap_(e,t):ey(e)?oy(`MapSet`).proxySet_(e,t):une(e,t);return(t?t.scope_:sy()).drafts_.push(n),n}function fne(e){return Kv(e)||Gv(10,e),Sy(e)}function Sy(e){if(!qv(e)||ay(e))return e;let t=e[Ey],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=ny(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=ny(e,!0);return Yv(n,(e,t)=>{Qv(n,e,Sy(t))},r),t&&(t.finalized_=!1),n}function Cy(e){return e}var wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My,Ny,Py,Fy,Iy,Ly=o((()=>{wy=Symbol.for(`immer-nothing`),Ty=Symbol.for(`immer-draftable`),Ey=Symbol.for(`immer-state`),Dy=Object.getPrototypeOf,Oy=Object.prototype.constructor.toString(),ky=new WeakMap,Ay={value:iy},jy={},Ny={get(e,t){if(t===Ey)return e;let n=ty(e);if(!Zv(n,t))return dne(e,n,t);let r=n[t];return e.finalized_||!qv(r)?r:r===_y(e.base_,t)?(by(e),e.copy_[t]=xy(r,e)):r},has(e,t){return t in ty(e)},ownKeys(e){return Reflect.ownKeys(ty(e))},set(e,t,n){let r=vy(ty(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=_y(ty(e),t),i=r?.[Ey];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(cne(n,r)&&(n!==void 0||Zv(e.base_,t)))return!0;by(e),yy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])?!0:(e.copy_[t]=n,e.assigned_[t]=!0,!0)},deleteProperty(e,t){return _y(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,by(e),yy(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=ty(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty(){Gv(11)},getPrototypeOf(e){return Dy(e.base_)},setPrototypeOf(){Gv(12)}},Py={},Yv(Ny,(e,t)=>{Py[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),Py.deleteProperty=function(e,t){return Py.set.call(this,e,t,void 0)},Py.set=function(e,t,n){return Ny.set.call(this,e[0],t,n,e[0])},Fy=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,n)=>{if(typeof e==`function`&&typeof t!=`function`){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}typeof t!=`function`&&Gv(6),n!==void 0&&typeof n!=`function`&&Gv(7);let r;if(qv(e)){let i=fy(this),a=xy(e,void 0),o=!0;try{r=t(a),o=!1}finally{o?uy(i):dy(i)}return ly(i,n),py(r,i)}else if(!e||typeof e!=`object`){if(r=t(e),r===void 0&&(r=e),r===wy&&(r=void 0),this.autoFreeze_&&ry(r,!0),n){let t=[],i=[];oy(`Patches`).generateReplacementPatches_(e,r,t,i),n(t,i)}return r}else Gv(1,e)},this.produceWithPatches=(e,t)=>{if(typeof e==`function`)return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},typeof e?.autoFreeze==`boolean`&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy==`boolean`&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration==`boolean`&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){qv(e)||Gv(8),Kv(e)&&(e=fne(e));let t=fy(this),n=xy(e,void 0);return n[Ey].isManual_=!0,dy(t),n}finishDraft(e,t){let n=e&&e[Ey];(!n||!n.isManual_)&&Gv(9);let{scope_:r}=n;return ly(r,t),py(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=oy(`Patches`).applyPatches_;return Kv(e)?r(e,t):this.produce(e,e=>r(e,t))}},Iy=new Fy,Iy.produce})),Ry,zy,By,Vy,Hy,Uy,Wy,Gy=o((()=>{Yg(),Ly(),Ry=hg({name:`legend`,initialState:{settings:{layout:`horizontal`,align:`center`,verticalAlign:`middle`,itemSorter:`value`},size:{width:0,height:0},payload:[]},reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(Cy(t.payload))},prepare:cg()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Qm(e).payload.indexOf(Cy(n));i>-1&&(e.payload[i]=Cy(r))},prepare:cg()},removeLegendPayload:{reducer(e,t){var n=Qm(e).payload.indexOf(Cy(t.payload));n>-1&&e.payload.splice(n,1)},prepare:cg()}}}),{setLegendSize:zy,setLegendSettings:By,addLegendPayload:Vy,replaceLegendPayload:Hy,removeLegendPayload:Uy}=Ry.actions,Wy=Ry.reducer})),pne=s((e=>{var t=f();t.useSyncExternalStore,t.useRef,t.useEffect,t.useMemo,t.useDebugValue})),mne=s(((e,t)=>{t.exports=pne()}));function hne(e){e()}function gne(){let e=null,t=null;return{clear(){e=null,t=null},notify(){hne(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}function _ne(e,t){let n,r=Jy,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=gne())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Jy)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}function Ky(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function vne(e,t){if(Ky(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Ky(e[n[r]],t[n[r]]))return!1;return!0}function yne(){if(!qy.createContext)return{};let e=nb[tb]??=new Map,t=e.get(qy.createContext);return t||(t=qy.createContext(null),e.set(qy.createContext,t)),t}function bne(e){let{children:t,context:n,serverState:r,store:i}=e,a=qy.useMemo(()=>({store:i,subscription:_ne(i),getServerState:r?()=>r:void 0}),[i,r]),o=qy.useMemo(()=>i.getState(),[i]);eb(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||rb;return qy.createElement(s.Provider,{value:a},t)}var qy,Jy,Yy,Xy,Zy,Qy,$y,eb,tb,nb,rb,ib,ab=o((()=>{qy=u(f(),1),mne(),Jy={notify(){},get:()=>[]},Yy=()=>typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Xy=Yy(),Zy=()=>typeof navigator<`u`&&navigator.product===`ReactNative`,Qy=Zy(),$y=()=>Xy||Qy?qy.useLayoutEffect:qy.useEffect,eb=$y(),tb=Symbol.for(`react-redux-context`),nb=typeof globalThis<`u`?globalThis:{},rb=yne(),ib=bne}));function ob(e,t){return e==null&&t==null?!0:typeof e==`number`&&typeof t==`number`?e===t||e!==e&&t!==t:e===t}function sb(e,t){for(var n of new Set([...Object.keys(e),...Object.keys(t)]))if(cb.has(n)){if(e[n]==null&&t[n]==null)continue;if(!vne(e[n],t[n]))return!1}else if(!ob(e[n],t[n]))return!1;return!0}var cb,lb=o((()=>{ab(),cb=new Set([`axisLine`,`tickLine`,`activeBar`,`activeDot`,`activeLabel`,`activeShape`,`allowEscapeViewBox`,`background`,`cursor`,`dot`,`label`,`line`,`margin`,`padding`,`position`,`shape`,`style`,`tick`,`wrapperStyle`,`radius`,`throttledEvents`])}));function ub(){return ub=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ub.apply(null,arguments)}function db(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?db(Object(n),!0).forEach(function(t){pb(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):db(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pb(e,t,n){return(t=mb(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mb(e){var t=hb(e,`string`);return typeof t==`symbol`?t:t+``}function hb(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gb(e,t){if(e==null)return{};var n,r,i=_b(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _b(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vb(e){return e.value}function yb(e){var{contextPayload:t}=e,n=gb(e,Ob),r=jp(t,e.payloadUniqBy,vb),i=fb(fb({},n),{},{payload:r});return Tb.isValidElement(e.content)?Tb.cloneElement(e.content,i):typeof e.content==`function`?Tb.createElement(e.content,i):Tb.createElement(fp,i)}function bb(e,t,n,r,i,a){var{layout:o,align:s,verticalAlign:c}=t,l,u;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(l=s===`center`&&o===`vertical`?{left:((r||0)-a.width)/2}:s===`right`?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(u=c===`middle`?{top:((i||0)-a.height)/2}:c===`bottom`?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),fb(fb({},l),u)}function xb(e){var t=Wp();return(0,Eb.useEffect)(()=>{t(By(e))},[t,e]),null}function Sb(e){var t=Wp();return(0,Eb.useEffect)(()=>(t(zy(e)),()=>{t(zy({width:0,height:0}))}),[t,e]),null}function Cb(e,t,n,r){return e===`vertical`&&t!=null?{height:t}:e===`horizontal`?{width:n||r}:null}function wb(e){var t=ip(e,kb),n=pm(),r=Du(),i=Iv(),{width:a,height:o,wrapperStyle:s,portal:c}=t,[l,u]=hm([n]),d=Pv(),f=Fv();if(d==null||f==null)return null;var p=d-(i?.left||0)-(i?.right||0),m=Cb(t.layout,o,a,p),h=c?s:fb(fb({position:`absolute`,width:m?.width||a||`auto`,height:m?.height||o||`auto`},bb(s,t,i,d,f,l)),s),g=c??r;return g==null||n==null?null:(0,Db.createPortal)(Tb.createElement(`div`,{className:`recharts-legend-wrapper`,style:h,ref:u},Tb.createElement(xb,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!c&&Tb.createElement(Sb,{width:l.width,height:l.height}),Tb.createElement(yb,ub({},t,m,{margin:i,chartWidth:d,chartHeight:f,contextPayload:n}))),g)}var Tb,Eb,Db,Ob,kb,Ab,xne=o((()=>{Tb=u(f()),Eb=u(f()),Db=g(),Ou(),pp(),Np(),mm(),vm(),Wv(),Gy(),Jp(),ap(),lb(),Ob=[`contextPayload`],kb={align:`center`,iconSize:14,inactiveColor:`#ccc`,itemSorter:`value`,layout:`horizontal`,verticalAlign:`bottom`},Ab=Tb.memo(wb,sb),Ab.displayName=`Legend`}));function jb(){return jb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jb.apply(null,arguments)}function Mb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mb(Object(n),!0).forEach(function(t){Sne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sne(e,t,n){return(t=Cne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cne(e){var t=wne(e,`string`);return typeof t==`symbol`?t:t+``}function wne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Tne(e){return Array.isArray(e)&&kf(e[0])&&kf(e[1])?e.join(` ~ `):e}function Ene(e,t){return t==null?e:(0,Fb.default)(e,t)}var Pb,Fb,Ib,Lb,Dne=o((()=>{Pb=u(f()),Fb=u(om()),Xl(),K(),Ib={separator:` : `,contentStyle:{margin:0,padding:10,backgroundColor:`#fff`,border:`1px solid #ccc`,whiteSpace:`nowrap`},itemStyle:{display:`block`,paddingTop:4,paddingBottom:4,color:`#000`},labelStyle:{},accessibilityLayer:!1},Lb=e=>{var{separator:t=Ib.separator,contentStyle:n,itemStyle:r,labelStyle:i=Ib.labelStyle,payload:a,formatter:o,itemSorter:s,wrapperClassName:c,labelClassName:l,label:u,labelFormatter:d,accessibilityLayer:f=Ib.accessibilityLayer}=e,p=()=>{if(a&&a.length){var e={padding:0,margin:0},n=Ene(a,s).map((e,n)=>{if(!e||e.type===`none`)return null;var i=e.formatter||o||Tne,{value:s,name:c}=e,l=s,u=c;if(i){var d=i(s,c,e,n,a);if(Array.isArray(d))[l,u]=d;else if(d!=null)l=d;else return null}var f=Nb(Nb({},Ib.itemStyle),{},{color:e.color||Ib.itemStyle.color},r);return Pb.createElement(`li`,{className:`recharts-tooltip-item`,key:`tooltip-item-${n}`,style:f},kf(u)?Pb.createElement(`span`,{className:`recharts-tooltip-item-name`},u):null,kf(u)?Pb.createElement(`span`,{className:`recharts-tooltip-item-separator`},t):null,Pb.createElement(`span`,{className:`recharts-tooltip-item-value`},l),Pb.createElement(`span`,{className:`recharts-tooltip-item-unit`},e.unit||``))});return Pb.createElement(`ul`,{className:`recharts-tooltip-item-list`,style:e},n)}return null},m=Nb(Nb({},Ib.contentStyle),n),h=Nb({margin:0},i),g=!Ff(u),_=g?u:``,v=H(`recharts-default-tooltip`,c),y=H(`recharts-tooltip-label`,l);g&&d&&a!=null&&(_=d(u,a));var b=f?{role:`status`,"aria-live":`assertive`}:{};return Pb.createElement(`div`,jb({className:v,style:m},b),Pb.createElement(`p`,{className:y,style:h},Pb.isValidElement(_)?_:`${_}`),p())}}));function One(e){var{coordinate:t,translateX:n,translateY:r}=e;return H(zb,{[`${zb}-right`]:G(n)&&t&&G(t.x)&&n>=t.x,[`${zb}-left`]:G(n)&&t&&G(t.x)&&n<t.x,[`${zb}-bottom`]:G(r)&&t&&G(t.y)&&r>=t.y,[`${zb}-top`]:G(r)&&t&&G(t.y)&&r<t.y})}function Rb(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offset:i,position:a,reverseDirection:o,tooltipDimension:s,viewBox:c,viewBoxDimension:l}=e;if(a&&G(a[r]))return a[r];var u=n[r]-s-(i>0?i:0),d=n[r]+i;if(t[r])return o[r]?u:d;var f=c[r];return f==null?0:o[r]?Math.max(u<f?d:u,f):l==null?0:d+s>f+l?Math.max(u,f):Math.max(d,f)}function kne(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?`translate3d(${t}px, ${n}px, 0)`:`translate(${t}px, ${n}px)`}}function Ane(e){var{allowEscapeViewBox:t,coordinate:n,offsetTop:r,offsetLeft:i,position:a,reverseDirection:o,tooltipBox:s,useTranslate3d:c,viewBox:l}=e,u,d,f;return s.height>0&&s.width>0&&n?(d=Rb({allowEscapeViewBox:t,coordinate:n,key:`x`,offset:i,position:a,reverseDirection:o,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=Rb({allowEscapeViewBox:t,coordinate:n,key:`y`,offset:r,position:a,reverseDirection:o,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),u=kne({translateX:d,translateY:f,useTranslate3d:c})):u=Bb,{cssProperties:u,cssClasses:One({translateX:d,translateY:f,coordinate:n})}}var zb,Bb,jne=o((()=>{Xl(),K(),zb=`recharts-tooltip-wrapper`,Bb={visibility:`hidden`}})),Vb,Hb,Ub=o((()=>{Vb=()=>!(typeof window<`u`&&window.document&&window.document.createElement&&window.setTimeout),Hb={devToolsEnabled:!0,isSsr:Vb()}}));function Wb(){var[e,t]=(0,Gb.useState)(()=>Hb.isSsr||!window.matchMedia?!1:window.matchMedia(`(prefers-reduced-motion: reduce)`).matches);return(0,Gb.useEffect)(()=>{if(window.matchMedia){var e=window.matchMedia(`(prefers-reduced-motion: reduce)`),n=()=>{t(e.matches)};return e.addEventListener(`change`,n),()=>{e.removeEventListener(`change`,n)}}},[]),e}var Gb,Kb=o((()=>{Gb=u(f()),Ub()}));function qb(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Jb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qb(Object(n),!0).forEach(function(t){Mne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qb(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mne(e,t,n){return(t=Nne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nne(e){var t=Pne(e,`string`);return typeof t==`symbol`?t:t+``}function Pne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Fne(e){if(!(e.prefersReducedMotion&&e.isAnimationActive===`auto`)&&e.isAnimationActive&&e.active)return`transform ${e.animationDuration}ms ${e.animationEasing}`}function Ine(e){var t=Wb(),[n,r]=Yb.useState(()=>({dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}));Yb.useEffect(()=>{var t=t=>{t.key===`Escape`&&r({dismissed:!0,dismissedAtCoordinate:{x:e.coordinate?.x??0,y:e.coordinate?.y??0}})};return document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`keydown`,t)}},[e.coordinate?.x,e.coordinate?.y]),n.dismissed&&((e.coordinate?.x??0)!==n.dismissedAtCoordinate.x||(e.coordinate?.y??0)!==n.dismissedAtCoordinate.y)&&r(Jb(Jb({},n),{},{dismissed:!1}));var{cssClasses:i,cssProperties:a}=Ane({allowEscapeViewBox:e.allowEscapeViewBox,coordinate:e.coordinate,offsetLeft:typeof e.offset==`number`?e.offset:e.offset.x,offsetTop:typeof e.offset==`number`?e.offset:e.offset.y,position:e.position,reverseDirection:e.reverseDirection,tooltipBox:{height:e.lastBoundingBox.height,width:e.lastBoundingBox.width},useTranslate3d:e.useTranslate3d,viewBox:e.viewBox}),o=Jb(Jb({},e.hasPortalFromProps?{}:Jb(Jb({transition:Fne({prefersReducedMotion:t,isAnimationActive:e.isAnimationActive,active:e.active,animationDuration:e.animationDuration,animationEasing:e.animationEasing})},a),{},{pointerEvents:`none`,position:`absolute`,top:0,left:0})),{},{visibility:!n.dismissed&&e.active&&e.hasPayload?`visible`:`hidden`},e.wrapperStyle);return Yb.createElement(`div`,{xmlns:`http://www.w3.org/1999/xhtml`,tabIndex:-1,className:i,style:o,ref:e.innerRef},e.children)}var Yb,Xb,Lne=o((()=>{Yb=u(f()),jne(),Kb(),Xb=Yb.memo(Ine)})),Zb,Qb=o((()=>{Jp(),Zb=()=>q(e=>e.rootProps.accessibilityLayer)??!0}));function $b(){return $b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$b.apply(null,arguments)}function ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ex(Object(n),!0).forEach(function(t){Rne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rne(e,t,n){return(t=zne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zne(e){var t=Bne(e,`string`);return typeof t==`symbol`?t:t+``}function Bne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nx,rx,ix,ax,ox,sx,cx,lx,ux,dx,fx=o((()=>{nx=u(f()),df(),Xl(),np(),K(),o_(),ou(),Wv(),rx={curveBasisClosed:Vd,curveBasisOpen:Wd,curveBasis:Rd,curveBumpX:lee,curveBumpY:uee,curveLinearClosed:qd,curveLinear:od,curveMonotoneX:bee,curveMonotoneY:xee,curveNatural:Cee,curveStep:Tee,curveStepAfter:Dee,curveStepBefore:Eee},ix=e=>Y(e.x)&&Y(e.y),ax=e=>e.base!=null&&ix(e.base)&&ix(e),ox=e=>e.x,sx=e=>e.y,cx=(e,t)=>{if(typeof e==`function`)return e;var n=`curve${If(e)}`;if((n===`curveMonotone`||n===`curveBump`)&&t){var r=rx[`${n}${t===`vertical`?`Y`:`X`}`];if(r)return r}return rx[n]||od},lx={connectNulls:!1,type:`linear`},ux=e=>{var{type:t=lx.type,points:n=[],baseLine:r,layout:i,connectNulls:a=lx.connectNulls}=e,o=cx(t,i),s=a?n.filter(ix):n;if(Array.isArray(r)){var c,l=n.map((e,t)=>tx(tx({},e),{},{base:r[t]}));return c=i===`vertical`?pd().y(sx).x1(ox).x0(e=>e.base.x):pd().x(ox).y1(sx).y0(e=>e.base.y),c.defined(ax).curve(o)(a?l.filter(ax):l)}return(i===`vertical`&&G(r)?pd().y(sx).x1(ox).x0(r):G(r)?pd().x(ox).y1(sx).y0(r):dd().x(ox).y(sx)).defined(ix).curve(o)(s)},dx=e=>{var{className:t,points:n,path:r,pathRef:i}=e,a=Lv();if((!n||!n.length)&&!r)return null;var o={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||a,connectNulls:e.connectNulls},s=n&&n.length?ux(o):r;return nx.createElement(`path`,$b({},nu(e),Qf(e),{className:H(`recharts-curve`,t),d:s===null?void 0:s,ref:i}))}}));function px(){return px=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},px.apply(null,arguments)}function mx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Vne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mx(Object(n),!0).forEach(function(t){Hne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hne(e,t,n){return(t=Une(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){var t=Wne(e,`string`);return typeof t==`symbol`?t:t+``}function Wne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Gne(e,t){if(e==null)return{};var n,r,i=Kne(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kne(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var hx,gx,_x,vx,qne=o((()=>{hx=u(f()),Xl(),K(),uu(),gx=[`x`,`y`,`top`,`left`,`width`,`height`,`className`],_x=(e,t,n,r,i,a)=>`M${e},${i}v${r}M${a},${t}h${n}`,vx=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:a=0,height:o=0,className:s}=e,c=Gne(e,gx),l=Vne({x:t,y:n,top:r,left:i,width:a,height:o},c);return!G(t)||!G(n)||!G(a)||!G(o)||!G(r)||!G(i)?null:hx.createElement(`path`,px({},su(l),{className:H(`recharts-cross`,s),d:_x(t,n,a,o,r,i)}))}}));function Jne(e,t,n,r){var i=r/2;return{stroke:`none`,fill:`#ccc`,x:e===`horizontal`?t.x-i:n.left+.5,y:e===`horizontal`?n.top+.5:t.y-i,width:e===`horizontal`?r:n.width-1,height:e===`horizontal`?n.height-1:r}}var Yne=o((()=>{}));function yx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yx(Object(n),!0).forEach(function(t){Xne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yx(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Xne(e,t,n){return(t=Zne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zne(e){var t=Qne(e,`string`);return typeof t==`symbol`?t:t+``}function Qne(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var xx,Sx,Cx,wx,Tx=o((()=>{xx=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),Sx=(e,t,n)=>e.map(e=>`${xx(e)} ${t}ms ${n}`).join(`,`),Cx=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((e,t)=>e.filter(e=>t.includes(e))),wx=(e,t)=>Object.keys(t).reduce((n,r)=>bx(bx({},n),{},{[r]:e(r,t[r])}),{})}));function Ex(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ex(Object(n),!0).forEach(function(t){$ne(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ex(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $ne(e,t,n){return(t=ere(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ere(e){var t=tre(e,`string`);return typeof t==`symbol`?t:t+``}function tre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function nre(e,t,n,r,i,a){var o,s=r.reduce((n,r)=>Dx(Dx({},n),{},{[r]:{from:e[r],velocity:0,to:t[r]}}),{}),c=()=>wx((e,t)=>t.from,s),l=()=>!Object.values(s).filter(kx).length,u=null,d=r=>{o||=r;var f=(r-o)/n.dt;s=Ax(n,s,f),i(Dx(Dx(Dx({},e),t),c())),o=r,l()||(u=a.setTimeout(d))};return()=>(u=a.setTimeout(d),()=>{var e;(e=u)==null||e()})}function rre(e,t,n,r,i,a,o){var s=null,c=i.reduce((n,r)=>{var i=e[r],a=t[r];return i==null||a==null?n:Dx(Dx({},n),{},{[r]:[i,a]})},{}),l,u=i=>{l||=i;var d=(i-l)/r,f=wx((e,t)=>Ox(...t,n(d)),c);if(a(Dx(Dx(Dx({},e),t),f)),d<1)s=o.setTimeout(u);else{var p=wx((e,t)=>Ox(...t,n(1)),c);a(Dx(Dx(Dx({},e),t),p))}};return()=>(s=o.setTimeout(u),()=>{var e;(e=s)==null||e()})}var Ox,kx,Ax,jx,ire=o((()=>{Tx(),Ox=(e,t,n)=>e+(t-e)*n,kx=e=>{var{from:t,to:n}=e;return t!==n},Ax=(e,t,n)=>{var r=wx((t,n)=>{if(kx(n)){var[r,i]=e(n.from,n.to,n.velocity);return Dx(Dx({},n),{},{from:r,velocity:i})}return n},t);return n<1?wx((e,t)=>kx(t)&&r[e]!=null?Dx(Dx({},t),{},{velocity:Ox(t.velocity,r[e].velocity,n),from:Ox(t.from,r[e].from,n)}):t,t):Ax(e,r,n-1)},jx=(e,t,n,r,i,a)=>{var o=Cx(e,t);return n==null?()=>(i(Dx(Dx({},e),t)),()=>{}):n.isStepper===!0?nre(e,t,n,o,i,a):rre(e,t,n,r,o,i,a)}})),Mx,Nx,Px,Fx,Ix,Lx,Rx,zx,Bx,Vx,are=o((()=>{Mx=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],Nx=(e,t)=>e.map((e,n)=>e*t**n).reduce((e,t)=>e+t),Px=(e,t)=>n=>Nx(Mx(e,t),n),Fx=(e,t)=>n=>Nx([...Mx(e,t).map((e,t)=>e*t).slice(1),0],n),Ix=e=>{var t,n=e.split(`(`);if(n.length!==2||n[0]!==`cubic-bezier`)return null;var r=(t=n[1])==null||(t=t.split(`)`)[0])==null?void 0:t.split(`,`);if(r==null||r.length!==4)return null;var i=r.map(e=>parseFloat(e));return[i[0],i[1],i[2],i[3]]},Lx=function(){var e=[...arguments];if(e.length===1)switch(e[0]){case`linear`:return[0,0,1,1];case`ease`:return[.25,.1,.25,1];case`ease-in`:return[.42,0,1,1];case`ease-out`:return[.42,0,.58,1];case`ease-in-out`:return[0,0,.58,1];default:var t=Ix(e[0]);if(t)return t}return e.length===4?e:[0,0,1,1]},Rx=(e,t,n,r)=>{var i=Px(e,n),a=Px(t,r),o=Fx(e,n),s=e=>e>1?1:e<0?0:e,c=e=>{for(var t=e>1?1:e,n=t,r=0;r<8;++r){var c=i(n)-t,l=o(n);if(Math.abs(c-t)<1e-4||l<1e-4)return a(n);n=s(n-c/l)}return a(n)};return c.isStepper=!1,c},zx=function(){return Rx(...Lx(...arguments))},Bx=function(){var{stiff:e=100,damping:t=8,dt:n=17}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=(r,i,a)=>{var o=a+(-(r-i)*e-a*t)*n/1e3,s=a*n/1e3+r;return Math.abs(s-i)<1e-4&&Math.abs(o)<1e-4?[i,0]:[s,o]};return r.isStepper=!0,r.dt=n,r},Vx=e=>{if(typeof e==`string`)switch(e){case`ease`:case`ease-in-out`:case`ease-out`:case`ease-in`:case`linear`:return zx(e);case`spring`:return Bx();default:if(e.split(`(`)[0]===`cubic-bezier`)return zx(e)}return typeof e==`function`?e:null}}));function ore(e){var t,n=()=>null,r=!1,i=null,a=o=>{if(!r){if(Array.isArray(o)){if(!o.length)return;var[s,...c]=o;if(typeof s==`number`){i=e.setTimeout(a.bind(null,c),s);return}a(s),i=e.setTimeout(a.bind(null,c));return}typeof o==`string`&&(t=o,n(t)),typeof o==`object`&&(t=o,n(t)),typeof o==`function`&&o()}};return{stop:()=>{r=!0},start:e=>{r=!1,i&&=(i(),null),a(e)},subscribe:e=>(n=e,()=>{n=()=>null}),getTimeoutController:()=>e}}var sre=o((()=>{})),Hx,cre=o((()=>{Hx=class{setTimeout(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=performance.now(),r=null,i=a=>{a-n>=t?e(a):typeof requestAnimationFrame==`function`&&(r=requestAnimationFrame(i))};return r=requestAnimationFrame(i),()=>{r!=null&&cancelAnimationFrame(r)}}}}));function Ux(){return ore(new Hx)}var Wx=o((()=>{sre(),cre()}));function Gx(e,t){var n=(0,Kx.useContext)(qx);return(0,Kx.useMemo)(()=>t??n(e),[e,t,n])}var Kx,qx,Jx=o((()=>{Kx=u(f()),Wx(),qx=(0,Kx.createContext)(Ux)}));function Yx(e){var t=ip(e,Zx),{isActive:n,canBegin:r,duration:i,easing:a,begin:o,onAnimationEnd:s,onAnimationStart:c,children:l}=t,u=Wb(),d=n===`auto`?!Hb.isSsr&&!u:n,f=Gx(t.animationId,t.animationManager),[p,m]=(0,Xx.useState)(d?Qx:$x),h=(0,Xx.useRef)(null);return(0,Xx.useEffect)(()=>{d||m($x)},[d]),(0,Xx.useEffect)(()=>{if(!d||!r)return wf;var e=jx(Qx,$x,Vx(a),i,m,f.getTimeoutController());return f.start([c,o,()=>{h.current=e()},i,s]),()=>{f.stop(),h.current&&h.current(),s()}},[d,r,i,a,o,c,s,f]),l(p.t)}var Xx,Zx,Qx,$x,eS=o((()=>{Xx=u(f()),K(),ap(),ire(),are(),Jx(),Ub(),Kb(),Zx={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},Qx={t:0},$x={t:1}}));function tS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`animation-`,n=(0,nS.useRef)(jf(t)),r=(0,nS.useRef)(e);return r.current!==e&&(n.current=jf(t),r.current=e),n.current}var nS,rS=o((()=>{nS=u(f()),K()}));function iS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iS(Object(n),!0).forEach(function(t){oS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oS(e,t,n){return(t=sS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sS(e){var t=cS(e,`string`);return typeof t==`symbol`?t:t+``}function cS(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(null,arguments)}function uS(e,t){if(e==null)return{};var n,r,i=dS(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dS(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fS(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pS,mS,hS,gS,_S,vS,yS,bS,xS,SS,CS,wS,TS,lre,ES,DS,OS,kS=o((()=>{pS=u(f()),mS=u(f()),Xl(),ap(),eS(),K(),rS(),Tx(),uu(),xf(),hS=[`radius`],gS=[`radius`],ES=(e,t,n,r,i)=>{var a=vf(n),o=vf(r),s=Math.min(Math.abs(a)/2,Math.abs(o)/2),c=o>=0?1:-1,l=a>=0?1:-1,u=o>=0&&a>=0||o<0&&a<0?1:0,d;if(s>0&&Array.isArray(i)){for(var f=[0,0,0,0],p=0,m=4;p<m;p++){var h=i[p]??0;f[p]=h>s?s:h}d=yf(_S||=fS([`M`,`,`,``]),e,t+c*f[0]),f[0]>0&&(d+=yf(vS||=fS([`A `,`,`,`,0,0,`,`,`,`,`,``]),f[0],f[0],u,e+l*f[0],t)),d+=yf(yS||=fS([`L `,`,`,``]),e+n-l*f[1],t),f[1]>0&&(d+=yf(bS||=fS([`A `,`,`,`,0,0,`,`,
105
+ `,`,`,``]),f[1],f[1],u,e+n,t+c*f[1])),d+=yf(xS||=fS([`L `,`,`,``]),e+n,t+r-c*f[2]),f[2]>0&&(d+=yf(SS||=fS([`A `,`,`,`,0,0,`,`,
106
+ `,`,`,``]),f[2],f[2],u,e+n-l*f[2],t+r)),d+=yf(CS||=fS([`L `,`,`,``]),e+l*f[3],t+r),f[3]>0&&(d+=yf(wS||=fS([`A `,`,`,`,0,0,`,`,
107
+ `,`,`,``]),f[3],f[3],u,e,t+r-c*f[3])),d+=`Z`}else if(s>0&&i===+i&&i>0){var g=Math.min(s,i);d=yf(TS||=fS(`M .,.
108
108
  A .,.,0,0,.,.,.
109
109
  L .,.
110
110
  A .,.,0,0,.,.,.
111
111
  L .,.
112
112
  A .,.,0,0,.,.,.
113
113
  L .,.
114
- A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=Kd(AS||=zS([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},VS={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},HS=e=>{var t=Ff(e,VS),n=(0,N.useRef)(null),[r,i]=(0,N.useState)(-1);(0,N.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch{}},[]);var{x:a,y:o,width:s,height:c,radius:l,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:p,isAnimationActive:m,isUpdateAnimationActive:h}=t,g=(0,N.useRef)(s),_=(0,N.useRef)(c),v=(0,N.useRef)(a),y=(0,N.useRef)(o),b=vS((0,N.useMemo)(()=>({x:a,y:o,width:s,height:c,radius:l}),[a,o,s,c,l]),`rectangle-`);if(a!==+a||o!==+o||s!==+s||c!==+c||s===0||c===0)return null;var x=W(`recharts-rectangle`,u);if(!h){var S=eu(t),{radius:C}=S,w=LS(S,yS);return N.createElement(`path`,IS({},w,{x:Gd(a),y:Gd(o),width:Gd(s),height:Gd(c),radius:typeof l==`number`?l:void 0,className:x,d:BS(a,o,s,c,l)}))}var T=g.current,E=_.current,D=v.current,O=y.current,k=`0px ${r===-1?1:r}px`,ee=`${r}px ${r}px`,te=zx([`strokeDasharray`],f,typeof d==`string`?d:VS.animationEasing);return N.createElement(_S,{animationId:b,key:b,canBegin:r>0,duration:f,easing:d,isActive:h,begin:p},e=>{var r=nf(T,s,e),i=nf(E,c,e),u=nf(D,a,e),d=nf(O,o,e);n.current&&(g.current=r,_.current=i,v.current=u,y.current=d);var f=m?e>0?{transition:te,strokeDasharray:ee}:{strokeDasharray:k}:{strokeDasharray:ee},p=eu(t),{radius:h}=p,b=LS(p,bS);return N.createElement(`path`,IS({},b,{radius:typeof l==`number`?l:void 0,className:x,d:BS(u,d,r,i,l),ref:n,style:MS(MS({},f),t.style)}))})};function US(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function WS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?US(Object(n),!0).forEach(function(t){GS(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):US(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function GS(e,t,n){return(t=KS(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KS(e){var t=qS(e,`string`);return typeof t==`symbol`?t:t+``}function qS(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var JS=Math.PI/180,YS=e=>e*180/Math.PI,XS=(e,t,n,r)=>({x:e+Math.cos(-JS*r)*n,y:t+Math.sin(-JS*r)*n}),ZS=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},QS=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},$S=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=QS({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:YS(c),angleInRadian:c}},eC=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},tC=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},nC=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=$S({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:c,endAngle:l}=eC(t),u=a,d;if(c<=l){for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}else{for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}return d?WS(WS({},t),{},{radius:i,angle:tC(u,t)}):null};function rC(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e;return{points:[XS(t,n,r,i),XS(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var iC,aC,oC,sC,cC,lC,uC;function dC(){return dC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dC.apply(null,arguments)}function fC(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var pC=(e,t)=>Jd(t-e)*Math.min(Math.abs(t-e),359.999),mC=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:c}=e,l=s*(o?1:-1)+r,u=Math.asin(s/l)/JS,d=c?i:i+a*u,f=XS(t,n,l,d),p=XS(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:XS(t,n,l*Math.cos(u*JS),m),theta:u}},hC=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=pC(a,o),c=a+s,l=XS(t,n,i,a),u=XS(t,n,i,c),d=Kd(iC||=fC([`M `,`,`,`
114
+ A .,.,0,0,.,.,. Z`.split(`.`)),e,t+c*g,g,g,u,e+l*g,t,e+n-l*g,t,g,g,u,e+n,t+c*g,e+n,t+r-c*g,g,g,u,e+n-l*g,t+r,e+l*g,t+r,g,g,u,e,t+r-c*g)}else d=yf(lre||=fS([`M `,`,`,` h `,` v `,` h `,` Z`]),e,t,n,r,-n);return d},DS={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},OS=e=>{var t=ip(e,DS),n=(0,mS.useRef)(null),[r,i]=(0,mS.useState)(-1);(0,mS.useEffect)(()=>{if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&i(e)}catch{}},[]);var{x:a,y:o,width:s,height:c,radius:l,className:u}=t,{animationEasing:d,animationDuration:f,animationBegin:p,isAnimationActive:m,isUpdateAnimationActive:h}=t,g=(0,mS.useRef)(s),_=(0,mS.useRef)(c),v=(0,mS.useRef)(a),y=(0,mS.useRef)(o),b=tS((0,mS.useMemo)(()=>({x:a,y:o,width:s,height:c,radius:l}),[a,o,s,c,l]),`rectangle-`);if(a!==+a||o!==+o||s!==+s||c!==+c||s===0||c===0)return null;var x=H(`recharts-rectangle`,u);if(!h){var S=su(t),{radius:C}=S,w=uS(S,hS);return pS.createElement(`path`,lS({},w,{x:vf(a),y:vf(o),width:vf(s),height:vf(c),radius:typeof l==`number`?l:void 0,className:x,d:ES(a,o,s,c,l)}))}var T=g.current,E=_.current,D=v.current,O=y.current,k=`0px ${r===-1?1:r}px`,A=`${r}px ${r}px`,j=Sx([`strokeDasharray`],f,typeof d==`string`?d:DS.animationEasing);return pS.createElement(Yx,{animationId:b,key:b,canBegin:r>0,duration:f,easing:d,isActive:h,begin:p},e=>{var r=W(T,s,e),i=W(E,c,e),u=W(D,a,e),d=W(O,o,e);n.current&&(g.current=r,_.current=i,v.current=u,y.current=d);var f=m?e>0?{transition:j,strokeDasharray:A}:{strokeDasharray:k}:{strokeDasharray:A},p=su(t),{radius:h}=p,b=uS(p,gS);return pS.createElement(`path`,lS({},b,{radius:typeof l==`number`?l:void 0,className:x,d:ES(u,d,r,i,l),ref:n,style:aS(aS({},f),t.style)}))})}}));function AS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AS(Object(n),!0).forEach(function(t){ure(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AS(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ure(e,t,n){return(t=dre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dre(e){var t=fre(e,`string`);return typeof t==`symbol`?t:t+``}function fre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var MS,NS,PS,FS,IS,LS,RS,zS,BS,VS,HS=o((()=>{MS=Math.PI/180,NS=e=>e*Math.PI/180,PS=e=>e*180/Math.PI,FS=(e,t,n,r)=>({x:e+Math.cos(-MS*r)*n,y:t+Math.sin(-MS*r)*n}),IS=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0,width:0,height:0,brushBottom:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},LS=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return Math.sqrt((n-i)**2+(r-a)**2)},RS=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:a}=t,o=LS({x:n,y:r},{x:i,y:a});if(o<=0)return{radius:o,angle:0};var s=(n-i)/o,c=Math.acos(s);return r>a&&(c=2*Math.PI-c),{radius:o,angle:PS(c),angleInRadian:c}},zS=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),a=Math.min(r,i);return{startAngle:t-a*360,endAngle:n-a*360}},BS=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),a=Math.floor(r/360);return e+Math.min(i,a)*360},VS=(e,t)=>{var{relativeX:n,relativeY:r}=e,{radius:i,angle:a}=RS({x:n,y:r},t),{innerRadius:o,outerRadius:s}=t;if(i<o||i>s||i===0)return null;var{startAngle:c,endAngle:l}=zS(t),u=a,d;if(c<=l){for(;u>l;)u-=360;for(;u<c;)u+=360;d=u>=c&&u<=l}else{for(;u>c;)u-=360;for(;u<l;)u+=360;d=u>=l&&u<=c}return d?jS(jS({},t),{},{radius:i,angle:BS(u,t)}):null}}));function US(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:a}=e;return{points:[FS(t,n,r,i),FS(t,n,r,a)],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}var WS=o((()=>{HS()}));function GS(){return GS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GS.apply(null,arguments)}function KS(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var qS,pre,mre,hre,gre,_re,vre,yre,JS,YS,XS,ZS,QS,$S,eC=o((()=>{qS=u(f()),Xl(),HS(),K(),ap(),uu(),xf(),JS=(e,t)=>Ef(t-e)*Math.min(Math.abs(t-e),359.999),YS=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:a,isExternal:o,cornerRadius:s,cornerIsExternal:c}=e,l=s*(o?1:-1)+r,u=Math.asin(s/l)/MS,d=c?i:i+a*u,f=FS(t,n,l,d),p=FS(t,n,r,d),m=c?i-a*u:i;return{center:f,circleTangency:p,lineTangency:FS(t,n,l*Math.cos(u*MS),m),theta:u}},XS=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o}=e,s=JS(a,o),c=a+s,l=FS(t,n,i,a),u=FS(t,n,i,c),d=yf(pre||=KS([`M `,`,`,`
115
115
  A `,`,`,`,0,
116
116
  `,`,`,`,
117
117
  `,`,`,`
118
- `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=XS(t,n,r,a),p=XS(t,n,r,c);d+=Kd(aC||=fC([`L `,`,`,`
118
+ `]),l.x,l.y,i,i,+(Math.abs(s)>180),+(a>c),u.x,u.y);if(r>0){var f=FS(t,n,r,a),p=FS(t,n,r,c);d+=yf(mre||=KS([`L `,`,`,`
119
119
  A `,`,`,`,0,
120
120
  `,`,`,`,
121
- `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=Kd(oC||=fC([`L `,`,`,` Z`]),t,n);return d},gC=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:c,endAngle:l}=e,u=Jd(l-c),{circleTangency:d,lineTangency:f,theta:p}=mC({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:h,theta:g}=mC({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),_=s?Math.abs(c-l):Math.abs(c-l)-p-g;if(_<0)return o?Kd(sC||=fC([`M `,`,`,`
121
+ `,`,`,` Z`]),p.x,p.y,r,r,+(Math.abs(s)>180),+(a<=c),f.x,f.y)}else d+=yf(hre||=KS([`L `,`,`,` Z`]),t,n);return d},ZS=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:a,forceCornerRadius:o,cornerIsExternal:s,startAngle:c,endAngle:l}=e,u=Ef(l-c),{circleTangency:d,lineTangency:f,theta:p}=YS({cx:t,cy:n,radius:i,angle:c,sign:u,cornerRadius:a,cornerIsExternal:s}),{circleTangency:m,lineTangency:h,theta:g}=YS({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:a,cornerIsExternal:s}),_=s?Math.abs(c-l):Math.abs(c-l)-p-g;if(_<0)return o?yf(gre||=KS([`M `,`,`,`
122
122
  a`,`,`,`,0,0,1,`,`,0
123
123
  a`,`,`,`,0,0,1,`,`,0
124
- `]),f.x,f.y,a,a,a*2,a,a,-a*2):hC({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var v=Kd(cC||=fC([`M `,`,`,`
124
+ `]),f.x,f.y,a,a,a*2,a,a,-a*2):XS({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:c,endAngle:l});var v=yf(_re||=KS([`M `,`,`,`
125
125
  A`,`,`,`,0,0,`,`,`,`,`,`
126
126
  A`,`,`,`,0,`,`,`,`,`,`,`,`
127
127
  A`,`,`,`,0,0,`,`,`,`,`,`
128
- `]),f.x,f.y,a,a,+(u<0),d.x,d.y,i,i,+(_>180),+(u<0),m.x,m.y,a,a,+(u<0),h.x,h.y);if(r>0){var{circleTangency:y,lineTangency:b,theta:x}=mC({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:S,lineTangency:C,theta:w}=mC({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),T=s?Math.abs(c-l):Math.abs(c-l)-x-w;if(T<0&&a===0)return`${v}L${t},${n}Z`;v+=Kd(lC||=fC([`L`,`,`,`
128
+ `]),f.x,f.y,a,a,+(u<0),d.x,d.y,i,i,+(_>180),+(u<0),m.x,m.y,a,a,+(u<0),h.x,h.y);if(r>0){var{circleTangency:y,lineTangency:b,theta:x}=YS({cx:t,cy:n,radius:r,angle:c,sign:u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),{circleTangency:S,lineTangency:C,theta:w}=YS({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:a,cornerIsExternal:s}),T=s?Math.abs(c-l):Math.abs(c-l)-x-w;if(T<0&&a===0)return`${v}L${t},${n}Z`;v+=yf(vre||=KS([`L`,`,`,`
129
129
  A`,`,`,`,0,0,`,`,`,`,`,`
130
130
  A`,`,`,`,0,`,`,`,`,`,`,`,`
131
- A`,`,`,`,0,0,`,`,`,`,`,`Z`]),C.x,C.y,a,a,+(u<0),S.x,S.y,r,r,+(T>180),+(u>0),y.x,y.y,a,a,+(u<0),b.x,b.y)}else v+=Kd(uC||=fC([`L`,`,`,`Z`]),t,n);return v},_C={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},vC=e=>{var t=Ff(e,_C),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u,className:d}=t;if(a<i||l===u)return null;var f=W(`recharts-sector`,d),p=a-i,m=ef(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?gC({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):hC({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return N.createElement(`path`,dC({},eu(t),{className:f,d:h}))};function yC(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Tf(t)){if(e===`centric`){var{cx:r,cy:i,innerRadius:a,outerRadius:o,angle:s}=t,c=XS(r,i,a,s),l=XS(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return rC(t)}}var bC=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Xp();function n(e){return t.isSymbol(e)?NaN:Number(e)}e.toNumber=n})),xC=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=bC();function n(e){return e?(e=t.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}e.toFinite=n})),SC=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=em(),n=xC();function r(e,r,i){i&&typeof i!=`number`&&t.isIterateeCall(e,r,i)&&(r=i=void 0),e=n.toFinite(e),r===void 0?(r=e,e=0):r=n.toFinite(r),i=i===void 0?e<r?1:-1:n.toFinite(i);let a=Math.max(Math.ceil((r-e)/(i||1)),0),o=Array(a);for(let t=0;t<a;t++)o[t]=e,e+=i;return o}e.range=r})),CC=o(((e,t)=>{t.exports=SC().range})),wC=e=>e.chartData,TC=J([wC],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),EC=(e,t,n,r)=>r?TC(e):wC(e),DC=(e,t,n)=>n?TC(e):wC(e),OC=J([EC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),kC=J([TC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),AC=J([wC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)});function jC(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Y(t)&&Y(n))return!0}return!1}function MC(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function NC(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(Y(n))i=n;else if(typeof n==`function`)return;if(Y(r))a=r;else if(typeof r==`function`)return;var o=[i,a];if(jC(o))return o}}function PC(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(jC(r))return MC(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i===`auto`)t!=null&&(o=Math.min(...t));else if(K(i))o=i;else if(typeof i==`function`)try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i==`string`&&D_.test(i)){var c=D_.exec(i);if(c==null||c[1]==null||t==null)o=void 0;else{var l=+c[1];o=t[0]-l}}else o=t?.[0];if(a===`auto`)t!=null&&(s=Math.max(...t));else if(K(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a==`string`&&O_.test(a)){var u=O_.exec(a);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var f=[o,s];if(jC(f))return t==null?f:MC(f,t,n)}}}var Q=l(o(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),ee(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),ee(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,ee=r.constructor,te=r.s==i.s?1:-1,ne=r.d,A=i.d;if(!r.s)return new ee(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=A.length,T=ne.length,g=new ee(te),_=g.d=[],u=0;A[u]==(ne[u]||0);)++u;if(A[u]>(ne[u]||0)&&--l,x=o==null?o=ee.precision:s?o+(S(r)-S(i))+1:o,x<0)return new ee(0);if(x=x/p+2|0,u=0,O==1)for(d=0,A=A[0],x++;(u<T||d)&&x--;u++)C=d*f+(ne[u]||0),_[u]=C/A|0,d=C%A|0;else{for(d=f/(A[0]+1)|0,d>1&&(A=e(A,d),ne=e(ne,d),O=A.length,T=ne.length),w=O,v=ne.slice(0,O),y=v.length;y<O;)v[y++]=0;k=A.slice(),k.unshift(0),E=A[0],A[1]>=f/2&&++E;do d=0,c=t(A,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(A,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:A,h))):(d==0&&(c=d=1),m=A.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(A,v,O,y),c<1&&(d++,n(v,O<y?k:A,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=ne[w]||0:(v=[ne[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function ee(e,t){if(e.length>t)return e.length=t,!0}function te(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=te,i.config=i.set=ne,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function ne(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=te(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}))());function FC(e){return e===0?1:Math.floor(new Q.default(e).abs().log(10).toNumber())+1}function IC(e,t,n){for(var r=new Q.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var LC=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},RC=(e,t,n)=>{if(e.lte(0))return new Q.default(0);var r=FC(e.toNumber()),i=new Q.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new Q.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new Q.default(s.toNumber()):new Q.default(Math.ceil(s.toNumber()))},zC=(e,t,n)=>{if(e.lte(0))return new Q.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new Q.default(i).abs().log(10).toNumber()),o=new Q.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new Q.default(10).pow(l))}var u=new Q.default(r[c]??1).mul(o);return t?u:new Q.default(Math.ceil(u.toNumber()))},BC=(e,t,n)=>{var r=new Q.default(1),i=new Q.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Q.default(10).pow(FC(e)-1),i=new Q.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Q.default(Math.floor(e)))}else e===0?i=new Q.default(Math.floor((t-1)/2)):n||(i=new Q.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new Q.default(c-o).mul(r)).toNumber());return s},VC=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:RC;if(!Number.isFinite((t-e)/(n-1)))return{step:new Q.default(0),tickMin:new Q.default(0),tickMax:new Q.default(0)};var o=a(new Q.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new Q.default(0):(s=new Q.default(e).add(t).div(2),s=s.sub(new Q.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new Q.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?VC(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new Q.default(c).mul(o)),tickMax:s.add(new Q.default(l).mul(o))})},HC=function(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,o=Math.max(r,2),[s,c]=LC([t,n]);if(s===-1/0||c===1/0){var l=c===1/0?[s,...Array(r-1).fill(1/0)]:[...Array(r-1).fill(-1/0),c];return t>n?l.reverse():l}if(s===c)return BC(s,r,i);var{step:u,tickMin:d,tickMax:f}=VC(s,c,o,i,0,a===`snap125`?zC:RC),p=IC(d,f.add(new Q.default(.1).mul(u)),u);return t>n?p.reverse():p},UC=function(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,[o,s]=LC([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var c=a===`snap125`?zC:RC,l=Math.max(t,2),u=c(new Q.default(s).sub(o).div(l-1),i,0),d=[...IC(new Q.default(o),new Q.default(s),u),s];return i===!1&&(d=d.map(e=>Math.round(e))),n>r?d.reverse():d},WC=e=>e.rootProps.maxBarSize,GC=e=>e.rootProps.barGap,KC=e=>e.rootProps.barCategoryGap,qC=e=>e.rootProps.barSize,JC=e=>e.rootProps.stackOffset,YC=e=>e.rootProps.reverseStackOrder,XC=e=>e.options.chartName,ZC=e=>e.rootProps.syncId,QC=e=>e.rootProps.syncMethod,$C=e=>e.options.eventEmitter,ew=e=>e.rootProps.baseValue,tw={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},nw={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:tw.axis},rw={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:tw.axis},iw=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t};function aw(e,t,n){if(n!==`auto`)return n;if(e!=null)return m_(e,t)?`category`:`number`}function ow(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ow(Object(n),!0).forEach(function(t){cw(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ow(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cw(e,t,n){return(t=lw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lw(e){var t=uw(e,`string`);return typeof t==`symbol`?t:t+``}function uw(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var dw={allowDataOverflow:nw.allowDataOverflow,allowDecimals:nw.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:nw.angleAxisId,includeHidden:!1,name:void 0,reversed:nw.reversed,scale:nw.scale,tick:nw.tick,tickCount:void 0,ticks:void 0,type:nw.type,unit:void 0,niceTicks:`auto`},fw={allowDataOverflow:rw.allowDataOverflow,allowDecimals:rw.allowDecimals,allowDuplicatedCategory:rw.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:rw.radiusAxisId,includeHidden:rw.includeHidden,name:void 0,reversed:rw.reversed,scale:rw.scale,tick:rw.tick,tickCount:rw.tickCount,ticks:void 0,type:rw.type,unit:void 0,niceTicks:`auto`},pw=J([(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},Hv],(e,t)=>{if(e!=null)return e;var n=aw(t,`angleAxis`,dw.type)??`category`;return sw(sw({},dw),{},{type:n})}),mw=J([(e,t)=>e.polarAxis.radiusAxis[t],Hv],(e,t)=>{if(e!=null)return e;var n=aw(t,`radiusAxis`,fw.type)??`category`;return sw(sw({},fw),{},{type:n})}),hw=e=>e.polarOptions,gw=J([P_,F_,$_],ZS),_w=J([hw,gw],(e,t)=>{if(e!=null)return ef(e.innerRadius,t,0)}),vw=J([hw,gw],(e,t)=>{if(e!=null)return ef(e.outerRadius,t,t*.8)}),yw=J([hw],e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]});J([pw,yw],iw);var bw=J([gw,_w,vw],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});J([mw,bw],iw);var xw=J([Z,hw,_w,vw,P_,F_],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:c,endAngle:l}=t;return{cx:ef(o,i,i/2),cy:ef(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}}),Sw=(e,t)=>t,Cw=(e,t,n)=>n;function ww(e){return e?.id}function Tw(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,o=new Map;return e.forEach(e=>{var t=e.data??r;if(!(t==null||t.length===0)){var n=ww(e);t.forEach((t,r)=>{var s=a==null||i?r:String(X(t,a,null)),c=X(t,e.dataKey,0),l=o.has(s)?o.get(s):{};Object.assign(l,{[n]:c}),o.set(s,l)})}}),Array.from(o.values())}function Ew(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var Dw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Ow(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function kw(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Aw=e=>{var t=Z(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`},jw=e=>e.tooltip.settings.axisId;function Mw(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var Nw=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!jC(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];Y(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}};function Pw(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Fw(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Iw(e){let t,n,r;e.length===2?(t=e===Pw||e===Fw?e:Lw,n=e,r=e):(t=Pw,n=(t,n)=>Pw(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Lw(){return 0}function Rw(e){return e===null?NaN:+e}function*zw(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var Bw=Iw(Pw),Vw=Bw.right;Bw.left,Iw(Rw).center;var Hw=class extends Map{constructor(e,t=Kw){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Uw(this,e))}has(e){return super.has(Uw(this,e))}set(e,t){return super.set(Ww(this,e),t)}delete(e){return super.delete(Gw(this,e))}};function Uw({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Ww({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Gw({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Kw(e){return typeof e==`object`&&e?e.valueOf():e}function qw(e=Pw){if(e===Pw)return Jw;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Jw(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Yw=Math.sqrt(50),Xw=Math.sqrt(10),Zw=Math.sqrt(2);function Qw(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=Yw?10:a>=Xw?5:a>=Zw?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Qw(e,t,n*2):[s,c,l]}function $w(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Qw(t,e,n):Qw(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function eT(e,t,n){return t=+t,e=+e,n=+n,Qw(e,t,n)[2]}function tT(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?eT(t,e,n):eT(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function nT(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);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 rT(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);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 iT(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Jw:qw(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));iT(e,t,u,d,i)}let a=e[t],o=n,s=r;for(aT(e,n,t),i(e[r],a)>0&&aT(e,n,r);o<s;){for(aT(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?aT(e,n,s):(++s,aT(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function aT(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function oT(e,t,n){if(e=Float64Array.from(zw(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return rT(e);if(t>=1)return nT(e);var r,i=(r-1)*t,a=Math.floor(i),o=nT(iT(e,a).subarray(0,a+1));return o+(rT(e.subarray(a+1))-o)*(i-a)}}function sT(e,t,n=Rw){if(!(!(r=e.length)||isNaN(t=+t))){if(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);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function cT(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=Array(i);++r<i;)a[r]=e+r*n;return a}function lT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function uT(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}var dT=Symbol(`implicit`);function fT(){var e=new Hw,t=[],n=[],r=dT;function i(i){let a=e.get(i);if(a===void 0){if(r!==dT)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Hw;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return fT(t,n).unknown(r)},lT.apply(i,arguments),i}function pT(){var e=fT().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=cT(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return pT(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},lT.apply(d(),arguments)}function mT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return mT(t())},e}function hT(){return mT(pT.apply(null,arguments).paddingInner(1))}function gT(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _T(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vT(){}var yT=.7,bT=1/yT,xT=`\\s*([+-]?\\d+)\\s*`,ST=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,CT=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,wT=/^#([0-9a-f]{3,8})$/,TT=RegExp(`^rgb\\(${xT},${xT},${xT}\\)$`),ET=RegExp(`^rgb\\(${CT},${CT},${CT}\\)$`),DT=RegExp(`^rgba\\(${xT},${xT},${xT},${ST}\\)$`),OT=RegExp(`^rgba\\(${CT},${CT},${CT},${ST}\\)$`),kT=RegExp(`^hsl\\(${ST},${CT},${CT}\\)$`),AT=RegExp(`^hsla\\(${ST},${CT},${CT},${ST}\\)$`),jT={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};gT(vT,IT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:MT,formatHex:MT,formatHex8:NT,formatHsl:PT,formatRgb:FT,toString:FT});function MT(){return this.rgb().formatHex()}function NT(){return this.rgb().formatHex8()}function PT(){return YT(this).formatHsl()}function FT(){return this.rgb().formatRgb()}function IT(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=wT.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?LT(t):n===3?new VT(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?RT(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?RT(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=TT.exec(e))?new VT(t[1],t[2],t[3],1):(t=ET.exec(e))?new VT(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DT.exec(e))?RT(t[1],t[2],t[3],t[4]):(t=OT.exec(e))?RT(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=kT.exec(e))?JT(t[1],t[2]/100,t[3]/100,1):(t=AT.exec(e))?JT(t[1],t[2]/100,t[3]/100,t[4]):jT.hasOwnProperty(e)?LT(jT[e]):e===`transparent`?new VT(NaN,NaN,NaN,0):null}function LT(e){return new VT(e>>16&255,e>>8&255,e&255,1)}function RT(e,t,n,r){return r<=0&&(e=t=n=NaN),new VT(e,t,n,r)}function zT(e){return e instanceof vT||(e=IT(e)),e?(e=e.rgb(),new VT(e.r,e.g,e.b,e.opacity)):new VT}function BT(e,t,n,r){return arguments.length===1?zT(e):new VT(e,t,n,r??1)}function VT(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}gT(VT,BT,_T(vT,{brighter(e){return e=e==null?bT:bT**+e,new VT(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?yT:yT**+e,new VT(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new VT(KT(this.r),KT(this.g),KT(this.b),GT(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:HT,formatHex:HT,formatHex8:UT,formatRgb:WT,toString:WT}));function HT(){return`#${qT(this.r)}${qT(this.g)}${qT(this.b)}`}function UT(){return`#${qT(this.r)}${qT(this.g)}${qT(this.b)}${qT((isNaN(this.opacity)?1:this.opacity)*255)}`}function WT(){let e=GT(this.opacity);return`${e===1?`rgb(`:`rgba(`}${KT(this.r)}, ${KT(this.g)}, ${KT(this.b)}${e===1?`)`:`, ${e})`}`}function GT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function KT(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function qT(e){return e=KT(e),(e<16?`0`:``)+e.toString(16)}function JT(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ZT(e,t,n,r)}function YT(e){if(e instanceof ZT)return new ZT(e.h,e.s,e.l,e.opacity);if(e instanceof vT||(e=IT(e)),!e)return new ZT;if(e instanceof ZT)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,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new ZT(o,s,c,e.opacity)}function XT(e,t,n,r){return arguments.length===1?YT(e):new ZT(e,t,n,r??1)}function ZT(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}gT(ZT,XT,_T(vT,{brighter(e){return e=e==null?bT:bT**+e,new ZT(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?yT:yT**+e,new ZT(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 VT(eE(e>=240?e-240:e+120,i,r),eE(e,i,r),eE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ZT(QT(this.h),$T(this.s),$T(this.l),GT(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(){let e=GT(this.opacity);return`${e===1?`hsl(`:`hsla(`}${QT(this.h)}, ${$T(this.s)*100}%, ${$T(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function QT(e){return e=(e||0)%360,e<0?e+360:e}function $T(e){return Math.max(0,Math.min(1,e||0))}function eE(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var tE=e=>()=>e;function nE(e,t){return function(n){return e+n*t}}function rE(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function iE(e){return(e=+e)==1?aE:function(t,n){return n-t?rE(t,n,e):tE(isNaN(t)?n:t)}}function aE(e,t){var n=t-e;return n?nE(e,n):tE(isNaN(e)?t:e)}var oE=(function e(t){var n=iE(t);function r(e,t){var r=n((e=BT(e)).r,(t=BT(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=aE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function sE(e,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 cE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function lE(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=vE(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function uE(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function dE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function fE(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=vE(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var pE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mE=new RegExp(pE.source,`g`);function hE(e){return function(){return e}}function gE(e){return function(t){return e(t)+``}}function _E(e,t){var n=pE.lastIndex=mE.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=pE.exec(e))&&(i=mE.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:dE(r,i)})),n=mE.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?gE(c[0].x):hE(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function vE(e,t){var n=typeof t,r;return t==null||n===`boolean`?tE(t):(n===`number`?dE:n===`string`?(r=IT(t))?(t=r,oE):_E:t instanceof IT?oE:t instanceof Date?uE:cE(t)?sE:Array.isArray(t)?lE:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?fE:dE)(e,t)}function yE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function bE(e,t){t===void 0&&(t=e,e=vE);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function xE(e){return function(){return e}}function SE(e){return+e}var CE=[0,1];function wE(e){return e}function TE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:xE(isNaN(t)?NaN:.5)}function EE(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function DE(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=TE(i,r),a=n(o,a)):(r=TE(r,i),a=n(a,o)),function(e){return a(r(e))}}function OE(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=TE(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Vw(e,t,1,r)-1;return a[n](i[n](t))}}function kE(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function AE(){var e=CE,t=CE,n=vE,r,i,a,o=wE,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==wE&&(o=EE(e[0],e[n-1])),s=n>2?OE:DE,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),dE))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,SE),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=yE,u()},d.clamp=function(e){return arguments.length?(o=e?!0:wE,u()):o!==wE},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function jE(){return AE()(wE,wE)}function ME(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function NE(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 PE(e){return e=NE(Math.abs(e)),e?e[1]:NaN}function FE(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function IE(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var LE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function RE(e){if(!(t=LE.exec(e)))throw Error(`invalid format: `+e);var t;return new zE({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]})}RE.prototype=zE.prototype;function zE(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+``}zE.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 BE(e){out: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 out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var VE;function HE(e,t){var n=NE(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(VE=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+NE(e,Math.max(0,t+a-1))[0]}function UE(e,t){var n=NE(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var WE={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+``},d:ME,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return UE(e*100,t)},r:UE,s:HE,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function GE(e){return e}var KE=Array.prototype.map,qE=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function JE(e){var t=e.grouping===void 0||e.thousands===void 0?GE:FE(KE.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?GE:IE(KE.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`-`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e){e=RE(e);var l=e.fill,u=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,h=e.comma,g=e.precision,_=e.trim,v=e.type;v===`n`?(h=!0,v=`g`):WE[v]||(g===void 0&&(g=12),_=!0,v=`g`),(p||l===`0`&&u===`=`)&&(p=!0,l=`0`,u=`=`);var y=f===`$`?n:f===`#`&&/[boxX]/.test(v)?`0`+v.toLowerCase():``,b=f===`$`?r:/[%p]/.test(v)?o:``,x=WE[v],S=/[defgprs%]/.test(v);g=g===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(e){var n=y,r=b,o,f,C;if(v===`c`)r=x(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),_&&(e=BE(e)),w&&+e==0&&d!==`+`&&(w=!1),n=(w?d===`(`?d:s:d===`-`||d===`(`?``:d)+n,r=(v===`s`?qE[8+VE/3]:``)+r+(w&&d===`(`?`)`:``),S){for(o=-1,f=e.length;++o<f;)if(C=e.charCodeAt(o),48>C||C>57){r=(C===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}h&&!p&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<m?Array(m-T+1).join(l):``;switch(h&&p&&(e=t(E+e,E.length?m-r.length:1/0),E=``),u){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return C.toString=function(){return e+``},C}function u(e,t){var n=l((e=RE(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(PE(t)/3)))*3,i=10**-r,a=qE[8+r/3];return function(e){return n(i*e)+a}}return{format:l,formatPrefix:u}}var YE,XE,ZE;QE({decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``],minus:`-`});function QE(e){return YE=JE(e),XE=YE.format,ZE=YE.formatPrefix,YE}function $E(e){return Math.max(0,-PE(Math.abs(e)))}function eD(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(PE(t)/3)))*3-PE(Math.abs(e)))}function tD(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,PE(t)-PE(e))+1}function nD(e,t,n,r){var i=tT(e,t,n),a;switch(r=RE(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=eD(i,o))&&(r.precision=a),ZE(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=tD(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=$E(i))&&(r.precision=a-(r.type===`%`)*2);break}return XE(r)}function rD(e){var t=e.domain;return e.ticks=function(e){var n=t();return $w(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return nD(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=eT(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function iD(){var e=jE();return e.copy=function(){return kE(e,iD())},lT.apply(e,arguments),rD(e)}function aD(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,SE),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return aD(e).unknown(t)},e=arguments.length?Array.from(e,SE):[0,1],rD(n)}function oD(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 sD(e){return Math.log(e)}function cD(e){return Math.exp(e)}function lD(e){return-Math.log(-e)}function uD(e){return-Math.exp(-e)}function dD(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function fD(e){return e===10?dD:e===Math.E?Math.exp:t=>e**+t}function pD(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 mD(e){return(t,n)=>-e(-t,n)}function hD(e){let t=e(sD,cD),n=t.domain,r=10,i,a;function o(){return i=pD(r),a=fD(r),n()[0]<0?(i=mD(i),a=mD(a),e(lD,uD)):e(sD,cD),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=$w(o,s,p))}else m=$w(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=RE(n)).precision==null&&(n.trim=!0),n=XE(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(oD(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function gD(){let e=hD(AE()).domain([1,10]);return e.copy=()=>kE(e,gD()).base(e.base()),lT.apply(e,arguments),e}function _D(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function vD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function yD(e){var t=1,n=e(_D(t),vD(t));return n.constant=function(n){return arguments.length?e(_D(t=+n),vD(t)):t},rD(n)}function bD(){var e=yD(AE());return e.copy=function(){return kE(e,bD()).constant(e.constant())},lT.apply(e,arguments)}function xD(e){return function(t){return t<0?-((-t)**+e):t**+e}}function SD(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function CD(e){return e<0?-e*e:e*e}function wD(e){var t=e(wE,wE),n=1;function r(){return n===1?e(wE,wE):n===.5?e(SD,CD):e(xD(n),xD(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},rD(t)}function TD(){var e=wD(AE());return e.copy=function(){return kE(e,TD()).exponent(e.exponent())},lT.apply(e,arguments),e}function ED(){return TD.apply(null,arguments).exponent(.5)}function DD(e){return Math.sign(e)*e*e}function OD(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function kD(){var e=jE(),t=[0,1],n=!1,r;function i(t){var i=OD(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(DD(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,SE)).map(DD)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return kD(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},lT.apply(i,arguments),rD(i)}function AD(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=sT(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[Vw(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Pw),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return AD().domain(e).range(t).unknown(r)},lT.apply(a,arguments)}function jD(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[Vw(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return jD().domain([e,t]).range(i).unknown(a)},lT.apply(rD(o),arguments)}function MD(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[Vw(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return MD().domain(e).range(t).unknown(n)},lT.apply(i,arguments)}var ND=new Date,PD=new Date;function FD(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>FD(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(ND.setTime(+t),PD.setTime(+r),e(ND),e(PD),Math.floor(n(ND,PD))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var ID=FD(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ID.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?FD(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ID),ID.range;var LD=1e3,RD=LD*60,zD=RD*60,BD=zD*24,VD=BD*7,HD=BD*30,UD=BD*365,WD=FD(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*LD)},(e,t)=>(t-e)/LD,e=>e.getUTCSeconds());WD.range;var GD=FD(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LD)},(e,t)=>{e.setTime(+e+t*RD)},(e,t)=>(t-e)/RD,e=>e.getMinutes());GD.range;var KD=FD(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*RD)},(e,t)=>(t-e)/RD,e=>e.getUTCMinutes());KD.range;var qD=FD(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*LD-e.getMinutes()*RD)},(e,t)=>{e.setTime(+e+t*zD)},(e,t)=>(t-e)/zD,e=>e.getHours());qD.range;var JD=FD(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*zD)},(e,t)=>(t-e)/zD,e=>e.getUTCHours());JD.range;var YD=FD(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RD)/BD,e=>e.getDate()-1);YD.range;var XD=FD(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/BD,e=>e.getUTCDate()-1);XD.range;var ZD=FD(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/BD,e=>Math.floor(e/BD));ZD.range;function QD(e){return FD(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*RD)/VD)}var $D=QD(0),eO=QD(1),tO=QD(2),nO=QD(3),rO=QD(4),iO=QD(5),aO=QD(6);$D.range,eO.range,tO.range,nO.range,rO.range,iO.range,aO.range;function oO(e){return FD(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/VD)}var sO=oO(0),cO=oO(1),lO=oO(2),uO=oO(3),dO=oO(4),fO=oO(5),pO=oO(6);sO.range,cO.range,lO.range,uO.range,dO.range,fO.range,pO.range;var mO=FD(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());mO.range;var hO=FD(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());hO.range;var gO=FD(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());gO.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:FD(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)}),gO.range;var _O=FD(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());_O.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:FD(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)}),_O.range;function vO(e,t,n,r,i,a){let o=[[WD,1,LD],[WD,5,5*LD],[WD,15,15*LD],[WD,30,30*LD],[a,1,RD],[a,5,5*RD],[a,15,15*RD],[a,30,30*RD],[i,1,zD],[i,3,3*zD],[i,6,6*zD],[i,12,12*zD],[r,1,BD],[r,2,2*BD],[n,1,VD],[t,1,HD],[t,3,3*HD],[e,1,UD]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Iw(([,,e])=>e).right(o,i);if(a===o.length)return e.every(tT(t/UD,n/UD,r));if(a===0)return ID.every(Math.max(tT(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[yO,bO]=vO(_O,hO,sO,ZD,JD,KD),[xO,SO]=vO(gO,mO,$D,YD,qD,GD),CO=new Date,wO=new Date;function TO(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return TO(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return CO.setTime(+t),wO.setTime(+r),e(CO),e(wO),Math.floor(n(CO,wO))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var EO=6e4,DO=864e5,OO=6048e5,kO=TO(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EO)/DO},function(e){return e.getDate()-1});kO.range;function AO(e){return TO(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EO)/OO})}var jO=AO(0),MO=AO(1),NO=AO(2),PO=AO(3),FO=AO(4),IO=AO(5),LO=AO(6);jO.range,MO.range,NO.range,PO.range,FO.range,IO.range,LO.range;var RO=TO(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});RO.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:TO(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},RO.range;var zO=TO(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/DO},function(e){return e.getUTCDate()-1});zO.range;function BO(e){return TO(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/OO})}var VO=BO(0),HO=BO(1),UO=BO(2),WO=BO(3),GO=BO(4),KO=BO(5),qO=BO(6);VO.range,HO.range,UO.range,WO.range,GO.range,KO.range,qO.range;var JO=TO(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});JO.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:TO(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},JO.range;function YO(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 XO(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 ZO(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function QO(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=ak(i),u=ok(i),d=ak(a),f=ok(a),p=ak(o),m=ok(o),h=ak(s),g=ok(s),_=ak(c),v=ok(c),y={a:A,A:re,b:ie,B:ae,c:null,d:Dk,e:Dk,f:Mk,g:Uk,G:Gk,H:Ok,I:kk,j:Ak,L:jk,m:Nk,M:Pk,p:oe,q:se,Q:mA,s:hA,S:Fk,u:Ik,U:Lk,V:zk,w:Bk,W:Vk,x:null,X:null,y:Hk,Y:Wk,Z:Kk,"%":pA},b={a:ce,A:le,b:ue,B:j,c:null,d:qk,e:qk,f:Qk,g:lA,G:dA,H:Jk,I:Yk,j:Xk,L:Zk,m:$k,M:eA,p:de,q:fe,Q:mA,s:hA,S:tA,u:nA,U:rA,V:aA,w:oA,W:sA,x:null,X:null,y:cA,Y:uA,Z:fA,"%":pA},x={a:E,A:D,b:O,B:k,c:ee,d:_k,e:_k,f:Ck,g:pk,G:fk,H:yk,I:yk,j:vk,L:Sk,m:gk,M:bk,p:T,q:hk,Q:Tk,s:Ek,S:xk,u:ck,U:lk,V:uk,w:sk,W:dk,x:te,X:ne,y:pk,Y:fk,Z:mk,"%":wk};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=$O[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ZO(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=XO(ZO(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?HO.ceil(a):HO(a),a=zO.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=YO(ZO(r.y,0,1)),o=a.getDay(),a=o>4||o===0?MO.ceil(a):MO(a),a=kO.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?XO(ZO(r.y,0,1)).getUTCDay():YO(ZO(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,XO(r)):YO(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in $O?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function te(e,t,r){return w(e,n,t,r)}function ne(e,t,n){return w(e,r,t,n)}function A(e){return o[e.getDay()]}function re(e){return a[e.getDay()]}function ie(e){return c[e.getMonth()]}function ae(e){return s[e.getMonth()]}function oe(e){return i[+(e.getHours()>=12)]}function se(e){return 1+~~(e.getMonth()/3)}function ce(e){return o[e.getUTCDay()]}function le(e){return a[e.getUTCDay()]}function ue(e){return c[e.getUTCMonth()]}function j(e){return s[e.getUTCMonth()]}function de(e){return i[+(e.getUTCHours()>=12)]}function fe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var $O={"-":``,_:` `,0:`0`},ek=/^\s*\d+/,tk=/^%/,nk=/[\\^$*+?|[\]().{}]/g;function rk(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function ik(e){return e.replace(nk,`\\$&`)}function ak(e){return RegExp(`^(?:`+e.map(ik).join(`|`)+`)`,`i`)}function ok(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function sk(e,t,n){var r=ek.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function ck(e,t,n){var r=ek.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function lk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function uk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function dk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fk(e,t,n){var r=ek.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function pk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function mk(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 hk(e,t,n){var r=ek.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function gk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _k(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function vk(e,t,n){var r=ek.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function yk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function bk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xk(e,t,n){var r=ek.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Sk(e,t,n){var r=ek.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ck(e,t,n){var r=ek.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function wk(e,t,n){var r=tk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Tk(e,t,n){var r=ek.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ek(e,t,n){var r=ek.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Dk(e,t){return rk(e.getDate(),t,2)}function Ok(e,t){return rk(e.getHours(),t,2)}function kk(e,t){return rk(e.getHours()%12||12,t,2)}function Ak(e,t){return rk(1+kO.count(RO(e),e),t,3)}function jk(e,t){return rk(e.getMilliseconds(),t,3)}function Mk(e,t){return jk(e,t)+`000`}function Nk(e,t){return rk(e.getMonth()+1,t,2)}function Pk(e,t){return rk(e.getMinutes(),t,2)}function Fk(e,t){return rk(e.getSeconds(),t,2)}function Ik(e){var t=e.getDay();return t===0?7:t}function Lk(e,t){return rk(jO.count(RO(e)-1,e),t,2)}function Rk(e){var t=e.getDay();return t>=4||t===0?FO(e):FO.ceil(e)}function zk(e,t){return e=Rk(e),rk(FO.count(RO(e),e)+(RO(e).getDay()===4),t,2)}function Bk(e){return e.getDay()}function Vk(e,t){return rk(MO.count(RO(e)-1,e),t,2)}function Hk(e,t){return rk(e.getFullYear()%100,t,2)}function Uk(e,t){return e=Rk(e),rk(e.getFullYear()%100,t,2)}function Wk(e,t){return rk(e.getFullYear()%1e4,t,4)}function Gk(e,t){var n=e.getDay();return e=n>=4||n===0?FO(e):FO.ceil(e),rk(e.getFullYear()%1e4,t,4)}function Kk(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+rk(t/60|0,`0`,2)+rk(t%60,`0`,2)}function qk(e,t){return rk(e.getUTCDate(),t,2)}function Jk(e,t){return rk(e.getUTCHours(),t,2)}function Yk(e,t){return rk(e.getUTCHours()%12||12,t,2)}function Xk(e,t){return rk(1+zO.count(JO(e),e),t,3)}function Zk(e,t){return rk(e.getUTCMilliseconds(),t,3)}function Qk(e,t){return Zk(e,t)+`000`}function $k(e,t){return rk(e.getUTCMonth()+1,t,2)}function eA(e,t){return rk(e.getUTCMinutes(),t,2)}function tA(e,t){return rk(e.getUTCSeconds(),t,2)}function nA(e){var t=e.getUTCDay();return t===0?7:t}function rA(e,t){return rk(VO.count(JO(e)-1,e),t,2)}function iA(e){var t=e.getUTCDay();return t>=4||t===0?GO(e):GO.ceil(e)}function aA(e,t){return e=iA(e),rk(GO.count(JO(e),e)+(JO(e).getUTCDay()===4),t,2)}function oA(e){return e.getUTCDay()}function sA(e,t){return rk(HO.count(JO(e)-1,e),t,2)}function cA(e,t){return rk(e.getUTCFullYear()%100,t,2)}function lA(e,t){return e=iA(e),rk(e.getUTCFullYear()%100,t,2)}function uA(e,t){return rk(e.getUTCFullYear()%1e4,t,4)}function dA(e,t){var n=e.getUTCDay();return e=n>=4||n===0?GO(e):GO.ceil(e),rk(e.getUTCFullYear()%1e4,t,4)}function fA(){return`+0000`}function pA(){return`%`}function mA(e){return+e}function hA(e){return Math.floor(e/1e3)}var gA,_A,vA;yA({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 yA(e){return gA=QO(e),_A=gA.format,gA.parse,vA=gA.utcFormat,gA.utcParse,gA}function bA(e){return new Date(e)}function xA(e){return e instanceof Date?+e:+new Date(+e)}function SA(e,t,n,r,i,a,o,s,c,l){var u=jE(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,xA)):f().map(bA)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(oD(n,e)):u},u.copy=function(){return kE(u,SA(e,t,n,r,i,a,o,s,c,l))},u}function CA(){return lT.apply(SA(xO,SO,gO,mO,$D,YD,qD,GD,WD,_A).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function wA(){return lT.apply(SA(yO,bO,_O,hO,sO,XD,JD,KD,WD,vA).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function TA(){var e=0,t=1,n,r,i,a,o=wE,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(vE),l.rangeRound=u(yE),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function EA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function DA(){var e=rD(TA()(wE));return e.copy=function(){return EA(e,DA())},uT.apply(e,arguments)}function OA(){var e=hD(TA()).domain([1,10]);return e.copy=function(){return EA(e,OA()).base(e.base())},uT.apply(e,arguments)}function kA(){var e=yD(TA());return e.copy=function(){return EA(e,kA()).constant(e.constant())},uT.apply(e,arguments)}function AA(){var e=wD(TA());return e.copy=function(){return EA(e,AA()).exponent(e.exponent())},uT.apply(e,arguments)}function jA(){return AA.apply(null,arguments).exponent(.5)}function MA(){var e=[],t=wE;function n(n){if(n!=null&&!isNaN(n=+n))return t((Vw(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Pw),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>oT(e,r/t))},n.copy=function(){return MA(t).domain(e)},uT.apply(n,arguments)}function NA(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=wE,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=bE(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(vE),p.rangeRound=m(yE),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function PA(){var e=rD(NA()(wE));return e.copy=function(){return EA(e,PA())},uT.apply(e,arguments)}function FA(){var e=hD(NA()).domain([.1,1,10]);return e.copy=function(){return EA(e,FA()).base(e.base())},uT.apply(e,arguments)}function IA(){var e=yD(NA());return e.copy=function(){return EA(e,IA()).constant(e.constant())},uT.apply(e,arguments)}function LA(){var e=wD(NA());return e.copy=function(){return EA(e,LA()).exponent(e.exponent())},uT.apply(e,arguments)}function RA(){return LA.apply(null,arguments).exponent(.5)}var zA=s({scaleBand:()=>pT,scaleDiverging:()=>PA,scaleDivergingLog:()=>FA,scaleDivergingPow:()=>LA,scaleDivergingSqrt:()=>RA,scaleDivergingSymlog:()=>IA,scaleIdentity:()=>aD,scaleImplicit:()=>dT,scaleLinear:()=>iD,scaleLog:()=>gD,scaleOrdinal:()=>fT,scalePoint:()=>hT,scalePow:()=>TD,scaleQuantile:()=>AD,scaleQuantize:()=>jD,scaleRadial:()=>kD,scaleSequential:()=>DA,scaleSequentialLog:()=>OA,scaleSequentialPow:()=>AA,scaleSequentialQuantile:()=>MA,scaleSequentialSqrt:()=>jA,scaleSequentialSymlog:()=>kA,scaleSqrt:()=>ED,scaleSymlog:()=>bD,scaleThreshold:()=>MD,scaleTime:()=>CA,scaleUtc:()=>wA,tickFormat:()=>nD});function BA(e){var t=zA;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${sf(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function VA(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=BA(e);if(r!=null)return r.domain(t).range(n),r}}function HA(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?VA(e.scale,n,r):VA(t,n,r)}function UA(e){return`scale${sf(e)}`}function WA(e){return UA(e)in zA}var GA=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return WA(r)?r:`point`}};function KA(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function qA(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=KA(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}function JA(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):qA(e,void 0)}var YA=l(CC());function XA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ZA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?XA(Object(n),!0).forEach(function(t){QA(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function QA(e,t,n){return(t=$A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $A(e){var t=ej(e,`string`);return typeof t==`symbol`?t:t+``}function ej(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var tj=[0,`auto`],nj={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},rj=(e,t)=>e.cartesianAxis.xAxis[t],ij=(e,t)=>rj(e,t)??nj,aj={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:tj,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},oj=(e,t)=>e.cartesianAxis.yAxis[t],sj=(e,t)=>oj(e,t)??aj,cj={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},lj=(e,t)=>e.cartesianAxis.zAxis[t]??cj,uj=(e,t,n)=>{switch(t){case`xAxis`:return ij(e,n);case`yAxis`:return sj(e,n);case`zAxis`:return lj(e,n);case`angleAxis`:return pw(e,n);case`radiusAxis`:return mw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},dj=(e,t,n)=>{switch(t){case`xAxis`:return ij(e,n);case`yAxis`:return sj(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},fj=(e,t,n)=>{switch(t){case`xAxis`:return ij(e,n);case`yAxis`:return sj(e,n);case`angleAxis`:return pw(e,n);case`radiusAxis`:return mw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},pj=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`);function mj(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}var hj=e=>e.graphicalItems.cartesianItems,gj=J([Sw,Cw],mj),_j=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),vj=J([hj,uj,gj],_j,{memoizeOptions:{resultEqualityCheck:Ow}}),yj=J([vj],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(Ew)),bj=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),xj=J([vj],bj),Sj=e=>e.map(e=>e.data).filter(Boolean).flat(1),Cj=J([vj],e=>e.some(e=>!e.data)),wj=J([vj],Sj,{memoizeOptions:{resultEqualityCheck:Ow}}),Tj=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},Ej=J([wj,EC],Tj),Dj=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:X(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:X(e,t.dataKey)})),Oj=(e,t,n,r,i,a)=>{var{chartData:o=[],dataStartIndex:s,dataEndIndex:c}=r,l=Dj(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...o.slice(s,c+1).map(e=>({value:X(e,t.dataKey)})).filter(e=>e.value!=null),...l]:l},kj=J([Ej,uj,vj,EC,Cj,wj],Oj);function Aj(e){if(Zd(e)||e instanceof Date){var t=Number(e);if(Y(t))return t}}function jj(e){if(Array.isArray(e)){var t=[Aj(e[0]),Aj(e[1])];return jC(t)?t:void 0}var n=Aj(e);if(n!=null)return[n,n]}function Mj(e){return e.map(Aj).filter(cf)}function Nj(e,t){var n=Aj(e),r=Aj(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}var Pj=J([kj],e=>e?.map(e=>e.value).sort(Nj));function Fj(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function Ij(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!Yd(t))r=t;else if(Array.isArray(t)){var i=Mj(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:Mj(n.flatMap(t=>{var n=X(e,t.dataKey),i,a;if(Array.isArray(n)?[i,a]=n:i=a=n,!(!Y(i)||!Y(a)))return[r-i,r+a]}))}var Lj=e=>fj(e,Aw(e),jw(e)),Rj=J([Lj],e=>e?.dataKey),zj=J([yj,EC,Lj],Tw),Bj=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=r?[...a].reverse():a;return[i,{stackedData:y_(e,o.map(ww),n),graphicalItems:o}]}))},Vj=J([zj,yj,JC,YC],Bj),Hj=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!==`zAxis`){var o=E_(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},Uj=J([uj],e=>e.allowDataOverflow),Wj=e=>{if(e==null||!(`domain`in e))return tj;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=Mj(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??tj},Gj=J([uj],Wj),Kj=J([Gj,Uj],NC),qj=J([Vj,wC,Sw,Kj],Hj,{memoizeOptions:{resultEqualityCheck:Dw}}),Jj=e=>e.errorBars,Yj=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>Fj(n,e)),Xj=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},Zj=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>Fj(i,e));n.forEach(n=>{var r=X(n,t.dataKey??e.dataKey),i=Ij(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=jj(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=jj(X(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),Y(o)&&Y(s))return[o,s]},Qj=J([Ej,uj,xj,Jj,Sw,OC],Zj,{memoizeOptions:{resultEqualityCheck:Dw}});function $j(e){var{value:t}=e;if(Zd(t)||t instanceof Date)return t}var eM=(e,t,n)=>{var r=e.map($j).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&tf(r))?(0,YA.default)(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},tM=e=>e.referenceElements.dots,nM=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),rM=J([tM,Sw,Cw],nM),iM=e=>e.referenceElements.areas,aM=J([iM,Sw,Cw],nM),oM=e=>e.referenceElements.lines,sM=J([oM,Sw,Cw],nM),cM=(e,t)=>{if(e!=null){var n=Mj(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},lM=J(rM,Sw,cM),uM=(e,t)=>{if(e!=null){var n=Mj(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},dM=J([aM,Sw],uM);function fM(e){if(e.x!=null)return Mj([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:Mj(t)}function pM(e){if(e.y!=null)return Mj([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:Mj(t)}var mM=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?fM(e):pM(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},hM=J(lM,J([sM,Sw],mM),dM,(e,t,n)=>Xj(e,n,t)),gM=(e,t,n,r,i,a,o,s)=>n??PC(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?Xj(r,a,i):Xj(a,i),e.allowDataOverflow),_M=J([uj,Gj,Kj,qj,Qj,hM,Z,Sw],gM,{memoizeOptions:{resultEqualityCheck:Dw}}),vM=[0,1],yM=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var{dataKey:s,type:c}=e,l=m_(t,a);return l&&s==null?(0,YA.default)(0,n?.length??0):c===`category`?eM(r,e,l):i===`expand`&&!l?vM:o}},bM=J([uj,Z,Ej,kj,JC,Sw,_M],yM),xM=J([uj,pj,XC],GA),SM=(e,t,n)=>{var{niceTicks:r}=t;if(r!==`none`){var i=Wj(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&jC(e)){if(a)return HC(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return UC(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&jC(e))return HC(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&jC(e))return UC(e,t.tickCount,t.allowDecimals,`adaptive`)}}},CM=J([bM,fj,xM],SM),wM=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&jC(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},TM=J([uj,bM,CM,Sw],wM),EM=J(J(kj,uj,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(Mj(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(!(c==null||l==null)){var u=l-c;n=Math.min(n,u)}}return n/o}}),Z,KC,$_,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Y(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=ef(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),DM=(e,t,n)=>{var r=ij(e,t);return r==null||typeof r.padding!=`string`?0:EM(e,`xAxis`,t,n,r.padding)},OM=(e,t,n)=>{var r=sj(e,t);return r==null||typeof r.padding!=`string`?0:EM(e,`yAxis`,t,n,r.padding)},kM=J(ij,DM,(e,t)=>{if(e==null)return{left:0,right:0};var{padding:n}=e;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),AM=J(sj,OM,(e,t)=>{if(e==null)return{top:0,bottom:0};var{padding:n}=e;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),jM=J([$_,kM,av,iv,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),MM=J([$_,Z,AM,av,iv,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),NM=(e,t,n,r)=>{switch(t){case`xAxis`:return jM(e,n,r);case`yAxis`:return MM(e,n,r);case`zAxis`:return lj(e,n)?.range;case`angleAxis`:return yw(e);case`radiusAxis`:return bw(e,n);default:return}},PM=J([uj,NM],iw),FM=J([uj,xM,J([xM,TM],Nw),PM],HA),IM=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n;if(m_(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},LM=J([Z,kj,fj,Sw],IM),RM=J([FM],Mw);J([FM],JA),J([FM,Pj],qA),J([vj,Jj,Sw],Yj);function zM(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var BM=(e,t)=>t,VM=(e,t,n)=>n,HM=J(R_,BM,VM,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(zM)),UM=J(z_,BM,VM,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(zM)),WM=(e,t)=>({width:e.width,height:t.height}),GM=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),KM=J($_,ij,WM),qM=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},JM=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},YM=J(F_,$_,HM,BM,VM,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=WM(t,n);o??=qM(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),XM=J(P_,$_,UM,BM,VM,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=GM(t,n);o??=JM(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),ZM=J([$_,ij,(e,t)=>{var n=ij(e,t);if(n!=null)return YM(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),QM=J([$_,sj,(e,t)=>{var n=sj(e,t);if(n!=null)return XM(e,n.orientation,n.mirror)},(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),$M=J($_,sj,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),eN=(e,t,n)=>{switch(t){case`xAxis`:return KM(e,n).width;case`yAxis`:return $M(e,n).height;default:return}},tN=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=m_(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&tf(l))return c}},nN=J([Z,kj,uj,Sw],tN),rN=J([Z,dj,xM,RM,nN,LM,NM,CM,Sw],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=m_(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),iN=J([Z,fj,xM,RM,CM,NM,nN,LM,Sw],(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=m_(e,c),{type:u,ticks:d,tickCount:f}=t,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?Jd(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return Y(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(cf):l&&s?s.map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(cf):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(cf):r.domain().map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(cf)}}),aN=J([Z,fj,RM,NM,nN,LM,Sw],(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=m_(e,o),{tickCount:c}=t,l=0;return l=o===`angleAxis`&&r?.length>=2?Jd(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(cf):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(cf):n.domain().map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(cf)}}),oN=J(uj,RM,(e,t)=>{if(!(e==null||t==null))return ZA(ZA({},e),{},{scale:t})}),sN=J((e,t,n)=>lj(e,n),J([J([uj,xM,bM,PM],HA)],Mw),(e,t)=>{if(!(e==null||t==null))return ZA(ZA({},e),{},{scale:t})}),cN=J([Z,R_,z_],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}});J([(e,t,n)=>e.renderedTicks[t]?.[n]],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}});var lN=e=>e.options.defaultTooltipEventType,uN=e=>e.options.validateTooltipEventTypes;function dN(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function fN(e,t){return dN(t,lN(e),uN(e))}function pN(e){return q(t=>fN(t,e))}var mN=(e,t)=>{var n,r=Number(t);if(!(Yd(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0},hN=e=>e.tooltip.settings,gN={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},_N=fg({name:`tooltip`,initialState:{itemInteraction:{click:gN,hover:gN},axisInteraction:{click:gN,hover:gN},keyboardInteraction:gN,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Vy(t.payload))},prepare:Qh()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Rh(e).tooltipItemPayloads.indexOf(Vy(n));i>-1&&(e.tooltipItemPayloads[i]=Vy(r))},prepare:Qh()},removeTooltipEntrySettings:{reducer(e,t){var n=Rh(e).tooltipItemPayloads.indexOf(Vy(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:Qh()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:vN,replaceTooltipEntrySettings:yN,removeTooltipEntrySettings:bN,setTooltipSettingsState:xN,setActiveMouseOverItemIndex:SN,mouseLeaveItem:CN,mouseLeaveChart:wN,setActiveClickItemIndex:TN,setMouseOverAxisIndex:EN,setMouseClickAxisIndex:DN,setSyncInteraction:ON,setKeyboardInteraction:kN}=_N.actions,AN=_N.reducer;function jN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jN(Object(n),!0).forEach(function(t){NN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NN(e,t,n){return(t=PN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e){var t=FN(e,`string`);return typeof t==`symbol`?t:t+``}function FN(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IN(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function LN(e){return e.index!=null}var RN=(e,t,n,r)=>{if(t==null)return gN;var i=IN(e,t,n);if(i==null)return gN;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(LN(i)){if(a)return MN(MN({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return MN(MN({},gN),{},{coordinate:i.coordinate})};function zN(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function BN(e,t){var n=zN(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function VN(e,t,n){if(n==null||t==null)return!0;var r=X(e,t);return r==null||!jC(n)?!0:BN(r,n)}var HN=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!Y(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||VN(l,n,r)?String(c):null},UN=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}},WN=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)},GN=e=>e.options.tooltipPayloadSearcher,KN=e=>e.tooltip;function qN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qN(Object(n),!0).forEach(function(t){YN(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YN(e,t,n){return(t=XN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XN(e){var t=ZN(e,`string`);return typeof t==`symbol`?t:t+``}function ZN(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function QN(e){if(typeof e==`string`||typeof e==`number`)return e}function $N(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function eP(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function tP(e){if(typeof e==`string`)return e}function nP(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?QN(e.name):void 0,unit:`unit`in e?$N(e.unit):void 0,dataKey:`dataKey`in e?eP(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?tP(e.color):void 0,fill:`fill`in e?tP(e.fill):void 0}}function rP(e,t){return e??t}var iP=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:c,dataStartIndex:l,dataEndIndex:u}=n;return e.reduce((e,n)=>{var{dataDefinedOnItem:d,settings:f}=n,p=rP(d,s),m=Array.isArray(p)?o_(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?rf(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=nP(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=JN(JN({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(A_({tooltipEntrySettings:o,dataKey:i,payload:a,value:X(a,i),name:r==null?void 0:String(r)}))}):e.push(A_({tooltipEntrySettings:f,dataKey:h,payload:_,value:X(_,h),name:X(_,g)??f?.name})),e},[])}},aP=J([Lj,pj,XC],GA),oP=J([J([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Lj,J([Aw,jw],mj)],_j,{memoizeOptions:{resultEqualityCheck:Ow}}),sP=J([oP],e=>e.filter(Ew)),cP=J([oP],Sj,{memoizeOptions:{resultEqualityCheck:Ow}}),lP=J([oP],e=>e.some(e=>!e.data)),uP=J([cP,wC],Tj),dP=J([sP,wC,Lj],Tw),fP=J([uP,Lj,oP,wC,lP,cP],Oj),pP=J([Lj],Wj),mP=J([pP,J([Lj],e=>e.allowDataOverflow)],NC),hP=J([J([dP,J([oP],e=>e.filter(Ew)),JC,YC],Bj),wC,Aw,mP],Hj),gP=J([uP,Lj,J([oP],bj),Jj,Aw,AC],Zj,{memoizeOptions:{resultEqualityCheck:Dw}}),_P=J([J([tM,Aw,jw],nM),Aw],cM),vP=J([J([iM,Aw,jw],nM),Aw],uM),yP=J([Lj,Z,uP,fP,JC,Aw,J([Lj,pP,mP,hP,gP,J([_P,J([J([oM,Aw,jw],nM),Aw],mM),vP],Xj),Z,Aw],gM)],yM),bP=J([Lj,yP,J([yP,Lj,aP],SM),Aw],wM),xP=e=>NM(e,Aw(e),jw(e),!1),SP=J([Lj,xP],iw),CP=J([J([Lj,aP,bP,SP],HA)],Mw),wP=J([Z,Lj,aP,CP,xP,J([Z,fP,Lj,Aw],tN),J([Z,fP,Lj,Aw],IM),Aw],(e,t,n,r,i,a,o,s)=>{if(t){var{type:c}=t,l=m_(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?Jd(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(cf):r.domain().map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(cf)}}}),TP=J([lN,uN,hN],(e,t,n)=>dN(n.shared,e,t)),EP=e=>e.tooltip.settings.trigger,DP=e=>e.tooltip.settings.defaultIndex,OP=J([KN,TP,EP,DP],RN),kP=J([OP,uP,Rj,yP],HN),AP=J([wP,kP],mN),jP=J([OP],e=>{if(e)return e.dataKey}),MP=J([OP],e=>{if(e)return e.graphicalItemId}),NP=J([KN,TP,EP,DP],WN),PP=J([OP,J([P_,F_,Z,$_,wP,DP,NP],UN)],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),FP=J([OP],e=>e?.active??!1),IP=J([J([NP,kP,wC,Rj,AP,GN,TP],iP)],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}});function LP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?LP(Object(n),!0).forEach(function(t){zP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zP(e,t,n){return(t=BP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BP(e){var t=VP(e,`string`);return typeof t==`symbol`?t:t+``}function VP(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var HP=()=>q(Lj),UP=()=>{var e=HP(),t=q(wP),n=q(CP);return k_(!e||!n?void 0:RP(RP({},e),{},{scale:n}),t)};function WP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function GP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?WP(Object(n),!0).forEach(function(t){KP(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function KP(e,t,n){return(t=qP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qP(e){var t=JP(e,`string`);return typeof t==`symbol`?t:t+``}function JP(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var YP=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},XP=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,{radius:o}=r;return GP(GP(GP({},r),XS(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:c}=r;return GP(GP(GP({},r),XS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function ZP(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var QP=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=0;o<a;o++){var s=o>0?n[o-1]?.coordinate:n[a-1]?.coordinate,c=n[o]?.coordinate,l=o>=a-1?n[0]?.coordinate:n[o+1]?.coordinate,u=void 0;if(!(s==null||c==null||l==null))if(Jd(c-s)!==Jd(l-c)){var d=[];if(Jd(l-c)===Jd(i[1]-i[0])){u=l;var f=c+i[1]-i[0];d[0]=Math.min(f,(f+s)/2),d[1]=Math.max(f,(f+s)/2)}else{u=s;var p=l+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(u+c)/2),Math.max(c,(u+c)/2)];if(e>m[0]&&e<=m[1]||e>=d[0]&&e<=d[1])return n[o]?.index}else{var h=Math.min(s,l),g=Math.max(s,l);if(e>(h+c)/2&&e<=(g+c)/2)return n[o]?.index}}else if(t)for(var _=0;_<a;_++){var v=t[_];if(v!=null){var y=t[_+1],b=t[_-1];if(_===0&&y!=null&&e<=(v.coordinate+y.coordinate)/2||_===a-1&&b!=null&&e>(v.coordinate+b.coordinate)/2||_>0&&_<a-1&&b!=null&&y!=null&&e>(v.coordinate+b.coordinate)/2&&e<=(v.coordinate+y.coordinate)/2)return v.index}}return-1},$P=()=>q(XC),eF=(e,t)=>t,tF=(e,t,n)=>n,nF=(e,t,n,r)=>r,rF=J(wP,e=>(0,nm.default)(e,e=>e.coordinate)),iF=J([KN,eF,tF,nF],RN),aF=J([iF,uP,Rj,yP],HN),oF=(e,t,n)=>{if(t!=null){var r=KN(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},sF=J([KN,eF,tF,nF],WN),cF=J([P_,F_,Z,$_,wP,nF,sF],UN),lF=J([iF,cF],(e,t)=>e.coordinate??t),uF=J([wP,aF],mN),dF=J([sF,aF,wC,Rj,uF,GN,eF],iP),fF=J([iF,aF],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),pF=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&ZP(e,o)){var s=QP(M_(e,t),a,i,n,r),c=YP(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},mF=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=nC(e,n);if(s){var c=QP(N_(s,t),o,a,r,i),l=XP(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},hF=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?pF(e,t,r,i,a,o,s):mF(e,t,n,r,i,a,o)},gF=J(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),_F=J(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(tw));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:kw}});function vF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?vF(Object(n),!0).forEach(function(t){bF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bF(e,t,n){return(t=xF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xF(e){var t=SF(e,`string`);return typeof t==`symbol`?t:t+``}function SF(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var CF={zIndexMap:Object.values(tw).reduce((e,t)=>yF(yF({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},wF=new Set(Object.values(tw));function TF(e){return wF.has(e)}var EF=fg({name:`zIndex`,initialState:CF,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:Qh()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!TF(n)&&delete e.zIndexMap[n])},prepare:Qh()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=Vy(r):e.zIndexMap[n].element=Vy(r):e.zIndexMap[n]={consumers:0,element:i?void 0:Vy(r),panoramaElement:i?Vy(r):void 0}},prepare:Qh()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:Qh()}}}),{registerZIndexPortal:DF,unregisterZIndexPortal:OF,registerZIndexPortalElement:kF,unregisterZIndexPortalElement:AF}=EF.actions,jF=EF.reducer;function MF(e){var{zIndex:t,children:n}=e,r=Uv()&&t!==void 0&&t!==0,i=rv(),a=(0,N.useRef)(void 0),o=(0,N.useRef)(new Set),s=jp(),c=q(e=>gF(e,t,i));if((0,N.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(OF({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(DF({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(OF({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,N.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(OF({zIndex:e}))}),e.clear()}},[s]),!r)return n;var l=c??a.current;return l?(0,mb.createPortal)(n,l):null}function NF(){return NF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NF.apply(null,arguments)}function PF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PF(Object(n),!0).forEach(function(t){IF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function IF(e,t,n){return(t=LF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LF(e){var t=RF(e,`string`);return typeof t==`symbol`?t:t+``}function RF(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zF(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return(0,N.isValidElement)(t)?(0,N.cloneElement)(t,r):(0,N.createElement)(n,r)}function BF(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:c,chartName:l}=e,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=jx,h=tw.cursorLine;else if(l===`BarChart`)p=Mx(o,u,i,a),m=HS,h=tw.cursorRectangle;else if(o===`radial`&&Tf(u)){var{cx:g,cy:_,radius:v,startAngle:y,endAngle:b}=rC(u);p={cx:g,cy:_,startAngle:y,endAngle:b,innerRadius:v,outerRadius:v},m=vC,h=tw.cursorLine}else p={points:yC(o,u,i)},m=bx,h=tw.cursorLine;var x=typeof s==`object`&&`className`in s?s.className:void 0,S=FF(FF(FF(FF({stroke:`#ccc`,pointerEvents:`none`},i),p),$l(s)),{},{payload:d,payloadIndex:f,className:W(`recharts-tooltip-cursor`,x)});return N.createElement(MF,{zIndex:e.zIndex??h},N.createElement(zF,{cursor:s,cursorComp:m,cursorProps:S}))}function VF(e){var t=UP(),n=Iv(),r=Bv(),i=$P();return t==null||n==null||r==null||i==null?null:N.createElement(BF,NF({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var HF=(0,N.createContext)(null),UF=()=>(0,N.useContext)(HF),WF=l(o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)}))(),1).default,GF=new WF,KF=`recharts.syncEvent.tooltip`,qF=`recharts.syncEvent.brush`,JF=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Yd(n))return e[n]}},YF=fg({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),XF=YF.reducer,{createEventEmitter:ZF}=YF.actions;function QF(e){return e.tooltip.syncInteraction}var $F=fg({name:`chartData`,initialState:{chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},reducers:{setChartData(e,t){if(e.chartData=Vy(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:eI,setDataStartEndIndexes:tI,setComputedData:nI}=$F.actions,rI=$F.reducer,iI=[`x`,`y`];function aI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function oI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?aI(Object(n),!0).forEach(function(t){sI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function sI(e,t,n){return(t=cI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cI(e){var t=lI(e,`string`);return typeof t==`symbol`?t:t+``}function lI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function uI(e,t){if(e==null)return{};var n,r,i=dI(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function fI(){var e=q(ZC),t=q($C),n=jp(),r=q(QC),i=q(wP),a=Bv(),o=Pv();(0,N.useEffect)(()=>{if(e==null)return lf;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n(ON({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,{x:f,y:p}=d,m=uI(d,iI),{x:h,y:g,width:_,height:v}=c.payload.sourceViewBox,y=oI(oI({},m),{},{x:o.x+(_?(f-h)/_:0)*o.width,y:o.y+(v?(p-g)/v:0)*o.height});n(oI(oI({},c),{},{payload:oI(oI({},c.payload),{},{coordinate:y})}))}else n(c);return}if(i!=null){var b;typeof r==`function`?b=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(b=i.find(e=>String(e.value)===c.payload.label));var{coordinate:x}=c.payload;if(x==null||o==null){n(ON({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(b==null){n(ON({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:S,y:C}=x,w=Math.min(S,o.x+o.width),T=Math.min(C,o.y+o.height),E={x:a===`horizontal`?b.coordinate:w,y:a===`horizontal`?T:b.coordinate};n(ON({active:c.payload.active,coordinate:E,dataKey:c.payload.dataKey,index:String(b.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return GF.on(KF,s),()=>{GF.off(KF,s)}},[q(e=>e.rootProps.className),n,t,e,r,i,a,o])}function pI(){var e=q(ZC),t=q($C),n=jp();(0,N.useEffect)(()=>{if(e==null)return lf;var r=(r,i,a)=>{t!==a&&e===r&&n(tI(i))};return GF.on(qF,r),()=>{GF.off(qF,r)}},[n,t,e])}function mI(){var e=jp();(0,N.useEffect)(()=>{e(ZF())},[e]),fI(),pI()}function hI(e,t,n,r,i,a){var o=q(n=>oF(n,e,t)),s=q(MP),c=q($C),l=q(ZC),u=q(QC),d=q(QF)?.sourceViewBox!=null,f=Pv();(0,N.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=ON({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});GF.emit(KF,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}function gI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gI(Object(n),!0).forEach(function(t){vI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vI(e,t,n){return(t=yI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yI(e){var t=bI(e,`string`);return typeof t==`symbol`?t:t+``}function bI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xI(e){return e.dataKey}function SI(e,t){return N.isValidElement(e)?N.cloneElement(e,t):typeof e==`function`?N.createElement(e,t):N.createElement(Hb,t)}var CI=[],wI={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}};function TI(e){var t=Ff(e,wI),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:c,offset:l,payloadUniqBy:u,position:d,reverseDirection:f,useTranslate3d:p,wrapperStyle:m,cursor:h,shared:g,trigger:_,defaultIndex:v,portal:y,axisId:b}=t,x=jp(),S=typeof v==`number`?String(v):v;(0,N.useEffect)(()=>{x(xN({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=Pv(),w=ax(),T=pN(g),{activeIndex:E,isActive:D}=q(e=>fF(e,T,_,S))??{},O=q(e=>dF(e,T,_,S)),k=q(e=>uF(e,T,_,S)),ee=q(e=>lF(e,T,_,S)),te=O,ne=UF(),A=n??D??!1,[re,ie]=cm([te,A]),ae=T===`axis`?k:void 0;hI(T,_,ee,ae,E,A);var oe=y??ne;if(oe==null||C==null||T==null)return null;var se=te??CI;A||(se=CI),s&&se.length&&(se=Cp(se.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,xI));var ce=se.length>0,le=_I(_I({},t),{},{payload:se,label:ae,active:A,activeIndex:E,coordinate:ee,accessibilityLayer:w}),ue=N.createElement(ix,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:A,coordinate:ee,hasPayload:ce,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:re,innerRef:ie,hasPortalFromProps:!!y},SI(o,le));return N.createElement(N.Fragment,null,(0,mb.createPortal)(ue,oe),A&&N.createElement(VF,{cursor:h,tooltipEventType:T,coordinate:ee,payload:se,index:E}))}var EI=e=>null;EI.displayName=`Cell`;function DI(e,t,n){return(t=OI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OI(e){var t=kI(e,`string`);return typeof t==`symbol`?t:t+``}function kI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var AI=class{constructor(e){DI(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}};function jI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jI(Object(n),!0).forEach(function(t){NI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NI(e,t,n){return(t=PI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PI(e){var t=FI(e,`string`);return typeof t==`symbol`?t:t+``}function FI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var II=MI({},{cacheSize:2e3,enableCache:!0}),LI=new AI(II.cacheSize),RI={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},zI=`recharts_measurement_span`;function BI(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var VI=(e,t)=>{try{var n=document.getElementById(zI);n||(n=document.createElement(`span`),n.setAttribute(`id`,zI),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,RI,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},HI=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Yb.isSsr)return{width:0,height:0};if(!II.enableCache)return VI(e,t);var n=BI(e,t),r=LI.get(n);if(r)return r;var i=VI(e,t);return LI.set(n,i),i},UI;function WI(e,t,n){return(t=GI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GI(e){var t=KI(e,`string`);return typeof t==`symbol`?t:t+``}function KI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,JI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,YI=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,XI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,ZI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},QI=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`];function $I(e){return QI.includes(e)}var eL=`NaN`;function tL(e,t){return e*ZI[t]}var nL=class e{static parse(t){var[,n,r]=XI.exec(t)??[];return n==null?e.NaN:new e(parseFloat(n),r??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,Yd(e)&&(this.unit=``),t!==``&&!YI.test(t)&&(this.num=NaN,this.unit=``),$I(t)&&(this.num=tL(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return Yd(this.num)}};UI=nL,WI(nL,`NaN`,new UI(NaN,``));function rL(e){if(e==null||e.includes(eL))return eL;for(var t=e;t.includes(`*`)||t.includes(`/`);){var[,n,r,i]=qI.exec(t)??[],a=nL.parse(n??``),o=nL.parse(i??``),s=r===`*`?a.multiply(o):a.divide(o);if(s.isNaN())return eL;t=t.replace(qI,s.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var[,c,l,u]=JI.exec(t)??[],d=nL.parse(c??``),f=nL.parse(u??``),p=l===`+`?d.add(f):d.subtract(f);if(p.isNaN())return eL;t=t.replace(JI,p.toString())}return t}var iL=/\(([^()]*)\)/;function aL(e){for(var t=e,n;(n=iL.exec(t))!=null;){var[,r]=n;t=t.replace(iL,rL(r))}return t}function oL(e){var t=e.replace(/\s+/g,``);return t=aL(t),t=rL(t),t}function sL(e){try{return oL(e)}catch{return eL}}function cL(e){var t=sL(e.slice(5,-1));return t===eL?``:t}var lL=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],uL=[`dx`,`dy`,`angle`,`className`,`breakAll`];function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dL.apply(null,arguments)}function fL(e,t){if(e==null)return{};var n,r,i=pL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mL=/[ \f\n\r\t\v\u2028\u2029]+/,hL=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return of(t)||(i=n?t.toString().split(``):t.toString().split(mL)),{wordsWithComputedWidth:i.map(e=>({word:e,width:HI(e,r).width})),spaceWidth:n?0:HI(`\xA0`,r).width}}catch{return null}};function gL(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function _L(e){return of(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var vL=(e,t,n,r)=>e.reduce((e,i)=>{var{word:a,width:o}=i,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),yL=e=>e.reduce((e,t)=>e.width>t.width?e:t),bL=`…`,xL=(e,t,n,r,i,a,o,s)=>{var c=hL({breakAll:n,style:r,children:e.slice(0,t)+bL});if(!c)return[!1,[]];var l=vL(c.wordsWithComputedWidth,a,o,s);return[l.length>i||yL(l).width>Number(a),l]},SL=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:c}=e,l=K(a),u=String(o),d=vL(t,r,n,i);if(!l||i||!(d.length>a||yL(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),[_,v]=xL(u,g-1,c,s,a,r,n,i),[y]=xL(u,g,c,s,a,r,n,i);if(!_&&!y&&(f=g+1),_&&y&&(p=g-1),!_&&y){h=v;break}m++}return h||d},CL=e=>[{words:of(e)?[]:e.toString().split(mL),width:void 0}],wL=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!Yb.isSsr){var s,c,l=hL({breakAll:a,children:r,style:i});if(l){var{wordsWithComputedWidth:u,spaceWidth:d}=l;s=u,c=d}else return CL(r);return SL({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return CL(r)},TL=`#808080`,EL={angle:0,breakAll:!1,capHeight:`0.71em`,fill:TL,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},DL=(0,N.forwardRef)((e,t)=>{var n=Ff(e,EL),{x:r,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:c,textAnchor:l,verticalAnchor:u}=n,d=fL(n,lL),f=(0,N.useMemo)(()=>wL({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),{dx:p,dy:m,angle:h,className:g,breakAll:_}=d,v=fL(d,uL);if(!Zd(r)||!Zd(i)||f.length===0)return null;var y=Number(r)+(K(p)?p:0),b=Number(i)+(K(m)?m:0);if(!Y(y)||!Y(b))return null;var x;switch(u){case`start`:x=cL(`calc(${o})`);break;case`middle`:x=cL(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=cL(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var w=C.width,{width:T}=d;S.push(`scale(${K(T)&&K(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),N.createElement(`text`,dL({},eu(v),{ref:t,x:y,y:b,className:W(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?TL:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return N.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))});DL.displayName=`Text`;function OL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OL(Object(n),!0).forEach(function(t){AL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AL(e,t,n){return(t=jL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jL(e){var t=ML(e,`string`);return typeof t==`symbol`?t:t+``}function ML(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var NL=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:c,upperWidth:l,lowerWidth:u}=Nv(t),d=o,f=o+(l-u)/2,p=(d+f)/2,m=(l+u)/2,h=d+l/2,g=c>=0?1:-1,_=g*r,v=g>0?`end`:`start`,y=g>0?`start`:`end`,b=l>=0?1:-1,x=b*r,S=b>0?`end`:`start`,C=b>0?`start`:`end`,w=i;if(n===`top`){var T={x:d+l/2,y:s-_,horizontalAnchor:`middle`,verticalAnchor:v};return a&&w&&(T.height=Math.max(s-w.y,0),T.width=l),T}if(n===`bottom`){var E={x:f+u/2,y:s+c+_,horizontalAnchor:`middle`,verticalAnchor:y};return a&&w&&(E.height=Math.max(w.y+w.height-(s+c),0),E.width=u),E}if(n===`left`){var D={x:p-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`};return a&&w&&(D.width=Math.max(D.x-w.x,0),D.height=c),D}if(n===`right`){var O={x:p+m+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`};return a&&w&&(O.width=Math.max(w.x+w.width-O.x,0),O.height=c),O}var k=a&&w?{width:m,height:c}:{};return n===`insideLeft`?kL({x:p+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`},k):n===`insideRight`?kL({x:p+m-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`},k):n===`insideTop`?kL({x:d+l/2,y:s+_,horizontalAnchor:`middle`,verticalAnchor:y},k):n===`insideBottom`?kL({x:f+u/2,y:s+c-_,horizontalAnchor:`middle`,verticalAnchor:v},k):n===`insideTopLeft`?kL({x:d+x,y:s+_,horizontalAnchor:C,verticalAnchor:y},k):n===`insideTopRight`?kL({x:d+l-x,y:s+_,horizontalAnchor:S,verticalAnchor:y},k):n===`insideBottomLeft`?kL({x:f+x,y:s+c-_,horizontalAnchor:C,verticalAnchor:v},k):n===`insideBottomRight`?kL({x:f+u-x,y:s+c-_,horizontalAnchor:S,verticalAnchor:v},k):n&&typeof n==`object`&&(K(n.x)||Xd(n.x))&&(K(n.y)||Xd(n.y))?kL({x:o+ef(n.x,m),y:s+ef(n.y,c),horizontalAnchor:`end`,verticalAnchor:`end`},k):kL({x:h,y:s+c/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},k)},PL=[`labelRef`],FL=[`content`];function IL(e,t){if(e==null)return{};var n,r,i=LL(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function LL(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function RL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RL(Object(n),!0).forEach(function(t){BL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BL(e,t,n){return(t=VL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VL(e){var t=HL(e,`string`);return typeof t==`symbol`?t:t+``}function HL(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UL(){return UL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UL.apply(null,arguments)}var WL=(0,N.createContext)(null),GL=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o,children:s}=e,c=(0,N.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return N.createElement(WL.Provider,{value:c},s)},KL=()=>{var e=(0,N.useContext)(WL),t=Pv();return e||(t?Nv(t):void 0)},qL=(0,N.createContext)(null),JL=()=>{var e=(0,N.useContext)(qL),t=q(xw);return e||t},YL=e=>{var{value:t,formatter:n}=e,r=of(e.children)?t:e.children;return typeof n==`function`?n(r):r},XL=e=>e!=null&&typeof e==`function`,ZL=(e,t)=>Jd(t-e)*Math.min(Math.abs(t-e),360),QL=(e,t,n,r,i)=>{var{offset:a,className:o}=e,{cx:s,cy:c,innerRadius:l,outerRadius:u,startAngle:d,endAngle:f,clockWise:p}=i,m=(l+u)/2,h=ZL(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=XS(s,c,m,_),b=XS(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
131
+ A`,`,`,`,0,0,`,`,`,`,`,`Z`]),C.x,C.y,a,a,+(u<0),S.x,S.y,r,r,+(T>180),+(u>0),y.x,y.y,a,a,+(u<0),b.x,b.y)}else v+=yf(yre||=KS([`L`,`,`,`Z`]),t,n);return v},QS={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},$S=e=>{var t=ip(e,QS),{cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u,className:d}=t;if(a<i||l===u)return null;var f=H(`recharts-sector`,d),p=a-i,m=Mf(o,p,0,!0),h=m>0&&Math.abs(l-u)<360?ZS({cx:n,cy:r,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,p/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:l,endAngle:u}):XS({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:l,endAngle:u});return qS.createElement(`path`,GS({},su(t),{className:f,d:h}))}}));function bre(e,t,n){if(e===`horizontal`)return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e===`vertical`)return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(Zf(t)){if(e===`centric`){var{cx:r,cy:i,innerRadius:a,outerRadius:o,angle:s}=t,c=FS(r,i,a,s),l=FS(r,i,o,s);return[{x:c.x,y:c.y},{x:l.x,y:l.y}]}return US(t)}}var xre=o((()=>{HS(),np(),WS()})),Sre=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=im();function n(e){return t.isSymbol(e)?NaN:Number(e)}e.toNumber=n})),tC=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Sre();function n(e){return e?(e=t.toNumber(e),e===1/0||e===-1/0?(e<0?-1:1)*Number.MAX_VALUE:e===e?e:0):e===0?e:0}e.toFinite=n})),Cre=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=am(),n=tC();function r(e,r,i){i&&typeof i!=`number`&&t.isIterateeCall(e,r,i)&&(r=i=void 0),e=n.toFinite(e),r===void 0?(r=e,e=0):r=n.toFinite(r),i=i===void 0?e<r?1:-1:n.toFinite(i);let a=Math.max(Math.ceil((r-e)/(i||1)),0),o=Array(a);for(let t=0;t<a;t++)o[t]=e,e+=i;return o}e.range=r})),wre=s(((e,t)=>{t.exports=Cre().range})),nC,rC,iC,aC,oC,sC,cC,lC=o((()=>{rm(),nC=e=>e.chartData,rC=J([nC],e=>{var t=e.chartData==null?0:e.chartData.length-1;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),iC=(e,t,n,r)=>r?rC(e):nC(e),aC=(e,t,n)=>n?rC(e):nC(e),oC=J([iC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),sC=J([rC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)}),cC=J([nC],e=>{var{chartData:t,dataStartIndex:n,dataEndIndex:r}=e;return t==null?[]:t.slice(n,r+1)})}));function uC(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Y(t)&&Y(n))return!0}return!1}function dC(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function fC(e,t){if(t&&typeof e!=`function`&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,a;if(Y(n))i=n;else if(typeof n==`function`)return;if(Y(r))a=r;else if(typeof r==`function`)return;var o=[i,a];if(uC(o))return o}}function Tre(e,t,n){if(!(!n&&t==null)){if(typeof e==`function`&&t!=null)try{var r=e(t,n);if(uC(r))return dC(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,a]=e,o,s;if(i===`auto`)t!=null&&(o=Math.min(...t));else if(G(i))o=i;else if(typeof i==`function`)try{t!=null&&(o=i(t?.[0]))}catch{}else if(typeof i==`string`&&k_.test(i)){var c=k_.exec(i);if(c==null||c[1]==null||t==null)o=void 0;else{var l=+c[1];o=t[0]-l}}else o=t?.[0];if(a===`auto`)t!=null&&(s=Math.max(...t));else if(G(a))s=a;else if(typeof a==`function`)try{t!=null&&(s=a(t?.[1]))}catch{}else if(typeof a==`string`&&A_.test(a)){var u=A_.exec(a);if(u==null||u[1]==null||t==null)s=void 0;else{var d=+u[1];s=t[1]+d}}else s=t?.[1];var f=[o,s];if(uC(f))return t==null?f:dC(f,t,n)}}}var pC=o((()=>{P_(),K(),o_()})),mC=s(((e,t)=>{(function(e){var n=1e9,r={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:`2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286`},i=!0,a=`[DecimalError] `,o=a+`Invalid argument: `,s=a+`Exponent out of range: `,c=Math.floor,l=Math.pow,u=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d,f=1e7,p=7,m=9007199254740991,h=c(m/p),g={};g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&=1,e},g.comparedTo=g.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*p;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n},g.dividedBy=g.div=function(e){return b(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this,n=t.constructor;return D(b(t,new n(e),0,1),n.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return S(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return this.s===0},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,n=this,r=n.constructor,o=r.precision,s=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(d))throw Error(a+`NaN`);if(n.s<1)throw Error(a+(n.s?`NaN`:`-Infinity`));return n.eq(d)?new r(0):(i=!1,t=b(T(n,s),T(e,s),s),i=!0,D(t,o))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?O(t,e):_(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(a+`NaN`);return n.s?(i=!1,t=b(n,e,0,1).times(e),i=!0,n.minus(t)):D(new r(n),o)},g.naturalExponential=g.exp=function(){return x(this)},g.naturalLogarithm=g.ln=function(){return T(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?_(t,e):O(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(o+e);if(t=S(i)+1,r=i.d.length-1,n=r*p+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},g.squareRoot=g.sqrt=function(){var e,t,n,r,o,s,l,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(a+`NaN`)}for(e=S(u),i=!1,o=Math.sqrt(+u),o==0||o==1/0?(t=y(u.d),(t.length+e)%2==0&&(t+=`0`),o=Math.sqrt(t),e=c((e+1)/2)-(e<0||e%2),o==1/0?t=`5e`+e:(t=o.toExponential(),t=t.slice(0,t.indexOf(`e`)+1)+e),r=new d(t)):r=new d(o.toString()),n=d.precision,o=l=n+3;;)if(s=r,r=s.plus(b(u,s,l+2)).times(.5),y(s.d).slice(0,l)===(t=y(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),o==l&&t==`4999`){if(D(s,n+1,0),s.times(s).eq(u)){r=s;break}}else if(t!=`9999`)break;l+=4}return i=!0,D(r,n)},g.times=g.mul=function(e){var t,n,r,a,o,s,c,l,u,d=this,p=d.constructor,m=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(o=m,m=h,h=o,s=l,l=u,u=s),o=[],s=l+u,r=s;r--;)o.push(0);for(r=u;--r>=0;){for(t=0,a=l+r;a>r;)c=o[a]+h[r]*m[a-r-1]+t,o[a--]=c%f|0,t=c/f|0;o[a]=(o[a]+t)%f|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,i?D(e,p.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,i=r.constructor;return r=new i(r),e===void 0?r:(v(e,0,n),t===void 0?t=i.rounding:v(t,0,8),D(r,e+S(r)+1,t))},g.toExponential=function(e,t){var r,i=this,a=i.constructor;return e===void 0?r=k(i,!0):(v(e,0,n),t===void 0?t=a.rounding:v(t,0,8),i=D(new a(i),e+1,t),r=k(i,!0,e+1)),r},g.toFixed=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?k(a):(v(e,0,n),t===void 0?t=o.rounding:v(t,0,8),i=D(new o(a),e+S(a)+1,t),r=k(i.abs(),!1,e+S(i)+1),a.isneg()&&!a.isZero()?`-`+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return D(new t(e),S(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,n,r,o,s,l,u=this,f=u.constructor,h=12,g=+(e=new f(e));if(!e.s)return new f(d);if(u=new f(u),!u.s){if(e.s<1)throw Error(a+`Infinity`);return u}if(u.eq(d))return u;if(r=f.precision,e.eq(d))return D(u,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=u.s,!l){if(s<0)throw Error(a+`NaN`)}else if((n=g<0?-g:g)<=m){for(o=new f(d),t=Math.ceil(r/p+4),i=!1;n%2&&(o=o.times(u),A(o.d,t)),n=c(n/2),n!==0;)u=u.times(u),A(u.d,t);return i=!0,e.s<0?new f(d).div(o):D(o,r)}return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,i=!1,o=e.times(T(u,r+h)),i=!0,o=x(o),o.s=s,o},g.toPrecision=function(e,t){var r,i,a=this,o=a.constructor;return e===void 0?(r=S(a),i=k(a,r<=o.toExpNeg||r>=o.toExpPos)):(v(e,1,n),t===void 0?t=o.rounding:v(t,0,8),a=D(new o(a),e,t),r=S(a),i=k(a,e<=r||r<=o.toExpNeg,e)),i},g.toSignificantDigits=g.tosd=function(e,t){var r=this,i=r.constructor;return e===void 0?(e=i.precision,t=i.rounding):(v(e,1,n),t===void 0?t=i.rounding:v(t,0,8)),D(new i(r),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=S(e),n=e.constructor;return k(e,t<=n.toExpNeg||t>=n.toExpPos)};function _(e,t){var n,r,a,o,s,c,l,u,d=e.constructor,m=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),i?D(t,m):t;if(l=e.d,u=t.d,s=e.e,a=t.e,l=l.slice(),o=s-a,o){for(o<0?(r=l,o=-o,c=u.length):(r=u,a=s,c=l.length),s=Math.ceil(m/p),c=s>c?s+1:c+1,o>c&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(c=l.length,o=u.length,c-o<0&&(o=c,r=u,u=l,l=r),n=0;o;)n=(l[--o]=l[o]+u[o]+n)/f|0,l[o]%=f;for(n&&(l.unshift(n),++a),c=l.length;l[--c]==0;)l.pop();return t.d=l,t.e=a,i?D(t,m):t}function v(e,t,n){if(e!==~~e||e<t||e>n)throw Error(o+e)}function y(e){var t,n,r,i=e.length-1,a=``,o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+``,n=p-r.length,n&&(a+=w(n)),a+=r;o=e[t],r=o+``,n=p-r.length,n&&(a+=w(n))}else if(o===0)return`0`;for(;o%10==0;)o/=10;return a+o}var b=(function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%f|0,r=n/f|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,a;if(n!=r)a=n>r?1:-1;else for(i=a=0;i<n;i++)if(e[i]!=t[i]){a=e[i]>t[i]?1:-1;break}return a}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*f+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,s){var c,l,u,d,m,h,g,_,v,y,b,x,C,w,T,E,O,k,A=r.constructor,j=r.s==i.s?1:-1,M=r.d,N=i.d;if(!r.s)return new A(r);if(!i.s)throw Error(a+`Division by zero`);for(l=r.e-i.e,O=N.length,T=M.length,g=new A(j),_=g.d=[],u=0;N[u]==(M[u]||0);)++u;if(N[u]>(M[u]||0)&&--l,x=o==null?o=A.precision:s?o+(S(r)-S(i))+1:o,x<0)return new A(0);if(x=x/p+2|0,u=0,O==1)for(d=0,N=N[0],x++;(u<T||d)&&x--;u++)C=d*f+(M[u]||0),_[u]=C/N|0,d=C%N|0;else{for(d=f/(N[0]+1)|0,d>1&&(N=e(N,d),M=e(M,d),O=N.length,T=M.length),w=O,v=M.slice(0,O),y=v.length;y<O;)v[y++]=0;k=N.slice(),k.unshift(0),E=N[0],N[1]>=f/2&&++E;do d=0,c=t(N,v,O,y),c<0?(b=v[0],O!=y&&(b=b*f+(v[1]||0)),d=b/E|0,d>1?(d>=f&&(d=f-1),m=e(N,d),h=m.length,y=v.length,c=t(m,v,h,y),c==1&&(d--,n(m,O<h?k:N,h))):(d==0&&(c=d=1),m=N.slice()),h=m.length,h<y&&m.unshift(0),n(v,m,y),c==-1&&(y=v.length,c=t(N,v,O,y),c<1&&(d++,n(v,O<y?k:N,y))),y=v.length):c===0&&(d++,v=[0]),_[u++]=d,c&&v[0]?v[y++]=M[w]||0:(v=[M[w]],y=1);while((w++<T||v[0]!==void 0)&&x--)}return _[0]||_.shift(),g.e=l,D(g,s?o+S(g)+1:o)}})();function x(e,t){var n,r,a,o,c,u,f=0,p=0,m=e.constructor,h=m.precision;if(S(e)>16)throw Error(s+S(e));if(!e.s)return new m(d);for(t==null?(i=!1,u=h):u=t,c=new m(.03125);e.abs().gte(.1);)e=e.times(c),p+=5;for(r=Math.log(l(2,p))/Math.LN10*2+5|0,u+=r,n=a=o=new m(d),m.precision=u;;){if(a=D(a.times(e),u),n=n.times(++f),c=o.plus(b(a,n,u)),y(c.d).slice(0,u)===y(o.d).slice(0,u)){for(;p--;)o=D(o.times(o),u);return m.precision=h,t==null?(i=!0,D(o,h)):o}o=c}}function S(e){for(var t=e.e*p,n=e.d[0];n>=10;n/=10)t++;return t}function C(e,t,n){if(t>e.LN10.sd())throw i=!0,n&&(e.precision=n),Error(a+`LN10 precision limit exceeded`);return D(new e(e.LN10),t)}function w(e){for(var t=``;e--;)t+=`0`;return t}function T(e,t){var n,r,o,s,c,l,u,f,p,m=1,h=10,g=e,_=g.d,v=g.constructor,x=v.precision;if(g.s<1)throw Error(a+(g.s?`NaN`:`-Infinity`));if(g.eq(d))return new v(0);if(t==null?(i=!1,f=x):f=t,g.eq(10))return t??(i=!0),C(v,f);if(f+=h,v.precision=f,n=y(_),r=n.charAt(0),s=S(g),Math.abs(s)<0x5543df729c000){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)g=g.times(e),n=y(g.d),r=n.charAt(0),m++;s=S(g),r>1?(g=new v(`0.`+n),s++):g=new v(r+`.`+n.slice(1))}else return u=C(v,f+2,x).times(s+``),g=T(new v(r+`.`+n.slice(1)),f-h).plus(u),v.precision=x,t==null?(i=!0,D(g,x)):g;for(l=c=g=b(g.minus(d),g.plus(d),f),p=D(g.times(g),f),o=3;;){if(c=D(c.times(p),f),u=l.plus(b(c,new v(o),f)),y(u.d).slice(0,f)===y(l.d).slice(0,f))return l=l.times(2),s!==0&&(l=l.plus(C(v,f+2,x).times(s+``))),l=b(l,new v(m),f),v.precision=x,t==null?(i=!0,D(l,x)):l;l=u,o+=2}}function E(e,t){var n,r,a;for((n=t.indexOf(`.`))>-1&&(t=t.replace(`.`,``)),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=c(n/p),e.d=[],r=(n+1)%p,n<0&&(r+=p),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=p;r<a;)e.d.push(+t.slice(r,r+=p));t=t.slice(r),r=p-t.length}else r-=a;for(;r--;)t+=`0`;if(e.d.push(+t),i&&(e.e>h||e.e<-h))throw Error(s+n)}else e.s=0,e.e=0,e.d=[0];return e}function D(e,t,n){var r,a,o,u,d,m,g,_,v=e.d;for(u=1,o=v[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=p,a=t,g=v[_=0];else{if(_=Math.ceil((r+1)/p),o=v.length,_>=o)return e;for(g=o=v[_],u=1;o>=10;o/=10)u++;r%=p,a=r-p+u}if(n!==void 0&&(o=l(10,u-a-1),d=g/o%10|0,m=t<0||v[_+1]!==void 0||g%o,m=n<4?(d||m)&&(n==0||n==(e.s<0?3:2)):d>5||d==5&&(n==4||m||n==6&&(r>0?a>0?g/l(10,u-a):0:v[_-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return m?(o=S(e),v.length=1,t=t-o-1,v[0]=l(10,(p-t%p)%p),e.e=c(-t/p)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(r==0?(v.length=_,o=1,_--):(v.length=_+1,o=l(10,p-r),v[_]=a>0?(g/l(10,u-a)%l(10,a)|0)*o:0),m)for(;;)if(_==0){(v[0]+=o)==f&&(v[0]=1,++e.e);break}else{if(v[_]+=o,v[_]!=f)break;v[_--]=0,o=1}for(r=v.length;v[--r]===0;)v.pop();if(i&&(e.e>h||e.e<-h))throw Error(s+S(e));return e}function O(e,t){var n,r,a,o,s,c,l,u,d,m,h=e.constructor,g=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),i?D(t,g):t;if(l=e.d,m=t.d,r=t.e,u=e.e,l=l.slice(),s=u-r,s){for(d=s<0,d?(n=l,s=-s,c=m.length):(n=m,r=u,c=l.length),a=Math.max(Math.ceil(g/p),c)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,c=m.length,d=a<c,d&&(c=a),a=0;a<c;a++)if(l[a]!=m[a]){d=l[a]<m[a];break}s=0}for(d&&(n=l,l=m,m=n,t.s=-t.s),c=l.length,a=m.length-c;a>0;--a)l[c++]=0;for(a=m.length;a>s;){if(l[--a]<m[a]){for(o=a;o&&l[--o]===0;)l[o]=f-1;--l[o],l[a]+=f}l[a]-=m[a]}for(;l[--c]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,i?D(t,g):t):new h(0)}function k(e,t,n){var r,i=S(e),a=y(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+`.`+a.slice(1)+w(r):o>1&&(a=a.charAt(0)+`.`+a.slice(1)),a=a+(i<0?`e`:`e+`)+i):i<0?(a=`0.`+w(-i-1)+a,n&&(r=n-o)>0&&(a+=w(r))):i>=o?(a+=w(i+1-o),n&&(r=n-i-1)>0&&(a=a+`.`+w(r))):((r=i+1)<o&&(a=a.slice(0,r)+`.`+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+=`.`),a+=w(r))),e.s<0?`-`+a:a}function A(e,t){if(e.length>t)return e.length=t,!0}function j(e){var t,n,r;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i){t.s=e.s,t.e=e.e,t.d=(e=e.d)?e.slice():e;return}if(typeof e==`number`){if(e*0!=0)throw Error(o+e);if(e>0)t.s=1;else if(e<0)e=-e,t.s=-1;else{t.s=0,t.e=0,t.d=[0];return}if(e===~~e&&e<1e7){t.e=0,t.d=[e];return}return E(t,e.toString())}else if(typeof e!=`string`)throw Error(o+e);if(e.charCodeAt(0)===45?(e=e.slice(1),t.s=-1):t.s=1,u.test(e))E(t,e);else throw Error(o+e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=j,i.config=i.set=M,e===void 0&&(e={}),e)for(r=[`precision`,`rounding`,`toExpNeg`,`toExpPos`,`LN10`],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return i.config(e),i}function M(e){if(!e||typeof e!=`object`)throw Error(a+`Object expected`);var t,r,i,s=[`precision`,1,n,`rounding`,0,8,`toExpNeg`,-1/0,0,`toExpPos`,0,1/0];for(t=0;t<s.length;t+=3)if((i=e[r=s[t]])!==void 0)if(c(i)===i&&i>=s[t+1]&&i<=s[t+2])this[r]=i;else throw Error(o+r+`: `+i);if((i=e[r=`LN10`])!==void 0)if(i==Math.LN10)this[r]=new this(i);else throw Error(o+r+`: `+i);return this}r=j(r),r.default=r.Decimal=r,d=new r(1),typeof define==`function`&&define.amd?define(function(){return r}):t!==void 0&&t.exports?t.exports=r:(e||=typeof self<`u`&&self&&self.self==self?self:Function(`return this`)(),e.Decimal=r)})(e)}));function hC(e){return e===0?1:Math.floor(new _C.default(e).abs().log(10).toNumber())+1}function gC(e,t,n){for(var r=new _C.default(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var _C,Ere=o((()=>{_C=u(mC())})),vC,yC,bC,xC,SC,CC,wC,TC,Dre=o((()=>{vC=u(mC()),Ere(),yC=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},bC=(e,t,n)=>{if(e.lte(0))return new vC.default(0);var r=hC(e.toNumber()),i=new vC.default(10).pow(r),a=e.div(i),o=r===1?.1:.05,s=new vC.default(Math.ceil(a.div(o).toNumber())).add(n).mul(o).mul(i);return t?new vC.default(s.toNumber()):new vC.default(Math.ceil(s.toNumber()))},xC=(e,t,n)=>{if(e.lte(0))return new vC.default(0);var r=[1,2,2.5,5],i=e.toNumber(),a=Math.floor(new vC.default(i).abs().log(10).toNumber()),o=new vC.default(10).pow(a),s=e.div(o).toNumber(),c=r.findIndex(e=>e>=s-1e-10);if(c===-1&&(o=o.mul(10),c=0),c+=n,c>=r.length){var l=Math.floor(c/r.length);c%=r.length,o=o.mul(new vC.default(10).pow(l))}var u=new vC.default(r[c]??1).mul(o);return t?u:new vC.default(Math.ceil(u.toNumber()))},SC=(e,t,n)=>{var r=new vC.default(1),i=new vC.default(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new vC.default(10).pow(hC(e)-1),i=new vC.default(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new vC.default(Math.floor(e)))}else e===0?i=new vC.default(Math.floor((t-1)/2)):n||(i=new vC.default(Math.floor(e)));for(var o=Math.floor((t-1)/2),s=[],c=0;c<t;c++)s.push(i.add(new vC.default(c-o).mul(r)).toNumber());return s},CC=function(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:bC;if(!Number.isFinite((t-e)/(n-1)))return{step:new vC.default(0),tickMin:new vC.default(0),tickMax:new vC.default(0)};var o=a(new vC.default(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new vC.default(0):(s=new vC.default(e).add(t).div(2),s=s.sub(new vC.default(s).mod(o)));var c=Math.ceil(s.sub(e).div(o).toNumber()),l=Math.ceil(new vC.default(t).sub(s).div(o).toNumber()),u=c+l+1;return u>n?CC(e,t,n,r,i+1,a):(u<n&&(l=t>0?l+(n-u):l,c=t>0?c:c+(n-u)),{step:o,tickMin:s.sub(new vC.default(c).mul(o)),tickMax:s.add(new vC.default(l).mul(o))})},wC=function(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,o=Math.max(r,2),[s,c]=yC([t,n]);if(s===-1/0||c===1/0){var l=c===1/0?[s,...Array(r-1).fill(1/0)]:[...Array(r-1).fill(-1/0),c];return t>n?l.reverse():l}if(s===c)return SC(s,r,i);var{step:u,tickMin:d,tickMax:f}=CC(s,c,o,i,0,a===`snap125`?xC:bC),p=gC(d,f.add(new vC.default(.1).mul(u)),u);return t>n?p.reverse():p},TC=function(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`auto`,[o,s]=yC([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var c=a===`snap125`?xC:bC,l=Math.max(t,2),u=c(new vC.default(s).sub(o).div(l-1),i,0),d=[...gC(new vC.default(o),new vC.default(s),u),s];return i===!1&&(d=d.map(e=>Math.round(e))),n>r?d.reverse():d}})),Ore=o((()=>{Dre()})),EC,DC,OC,kC,AC,jC,MC,NC,PC,FC,IC,LC=o((()=>{EC=e=>e.rootProps.maxBarSize,DC=e=>e.rootProps.barGap,OC=e=>e.rootProps.barCategoryGap,kC=e=>e.rootProps.barSize,AC=e=>e.rootProps.stackOffset,jC=e=>e.rootProps.reverseStackOrder,MC=e=>e.options.chartName,NC=e=>e.rootProps.syncId,PC=e=>e.rootProps.syncMethod,FC=e=>e.options.eventEmitter,IC=e=>e.rootProps.baseValue})),RC,zC=o((()=>{RC={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3}})),BC,VC=o((()=>{zC(),BC={allowDecimals:!1,allowDuplicatedCategory:!0,allowDataOverflow:!1,angle:0,angleAxisId:0,axisLine:!0,axisLineType:`polygon`,cx:0,cy:0,hide:!1,includeHidden:!1,label:!1,niceTicks:`auto`,orientation:`outer`,reversed:!1,scale:`auto`,tick:!0,tickLine:!0,tickSize:8,type:`auto`,zIndex:RC.axis}})),HC,UC=o((()=>{zC(),HC={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,niceTicks:`auto`,label:!1,orientation:`right`,radiusAxisId:0,reversed:!1,scale:`auto`,stroke:`#ccc`,tick:!0,tickCount:5,tickLine:!0,type:`auto`,zIndex:RC.axis}})),WC,GC=o((()=>{WC=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t}}));function KC(e,t,n){if(n!==`auto`)return n;if(e!=null)return g_(e,t)?`category`:`number`}var qC=o((()=>{P_()}));function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JC(Object(n),!0).forEach(function(t){kre(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kre(e,t,n){return(t=Are(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Are(e){var t=jre(e,`string`);return typeof t==`symbol`?t:t+``}function jre(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var XC,ZC,QC,$C,ew,tw,nw,rw,iw,aw,ow,sw,cw,lw,uw,dw,fw=o((()=>{rm(),z_(),$_(),HS(),K(),VC(),UC(),GC(),Wv(),qC(),XC={allowDataOverflow:BC.allowDataOverflow,allowDecimals:BC.allowDecimals,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:BC.angleAxisId,includeHidden:!1,name:void 0,reversed:BC.reversed,scale:BC.scale,tick:BC.tick,tickCount:void 0,ticks:void 0,type:BC.type,unit:void 0,niceTicks:`auto`},ZC={allowDataOverflow:HC.allowDataOverflow,allowDecimals:HC.allowDecimals,allowDuplicatedCategory:HC.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:HC.radiusAxisId,includeHidden:HC.includeHidden,name:void 0,reversed:HC.reversed,scale:HC.scale,tick:HC.tick,tickCount:HC.tickCount,ticks:void 0,type:HC.type,unit:void 0,niceTicks:`auto`},QC=(e,t)=>{if(t!=null)return e.polarAxis.angleAxis[t]},$C=J([QC,zv],(e,t)=>{if(e!=null)return e;var n=KC(t,`angleAxis`,XC.type)??`category`;return YC(YC({},XC),{},{type:n})}),ew=(e,t)=>e.polarAxis.radiusAxis[t],tw=J([ew,zv],(e,t)=>{if(e!=null)return e;var n=KC(t,`radiusAxis`,ZC.type)??`category`;return YC(YC({},ZC),{},{type:n})}),nw=e=>e.polarOptions,rw=J([F_,I_,X_],IS),iw=J([nw,rw],(e,t)=>{if(e!=null)return Mf(e.innerRadius,t,0)}),aw=J([nw,rw],(e,t)=>{if(e!=null)return Mf(e.outerRadius,t,t*.8)}),ow=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},sw=J([nw],ow),cw=J([$C,sw],WC),lw=J([rw,iw,aw],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]}),uw=J([tw,lw],WC),dw=J([Z,nw,iw,aw,F_,I_],(e,t,n,r,i,a)=>{if(!(e!==`centric`&&e!==`radial`||t==null||n==null||r==null)){var{cx:o,cy:s,startAngle:c,endAngle:l}=t;return{cx:Mf(o,i,i/2),cy:Mf(s,a,a/2),innerRadius:n,outerRadius:r,startAngle:c,endAngle:l,clockWise:!1}}})})),pw,mw=o((()=>{pw=(e,t)=>t})),hw,gw=o((()=>{hw=(e,t,n)=>n}));function _w(e){return e?.id}var vw=o((()=>{}));function yw(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:i,dataKey:a}=n,o=new Map;return e.forEach(e=>{var t=e.data??r;if(!(t==null||t.length===0)){var n=_w(e);t.forEach((t,r)=>{var s=a==null||i?r:String(X(t,a,null)),c=X(t,e.dataKey,0),l=o.has(s)?o.get(s):{};Object.assign(l,{[n]:c}),o.set(s,l)})}}),Array.from(o.values())}var bw=o((()=>{vw(),P_()}));function xw(e){return`stackId`in e&&e.stackId!=null&&e.dataKey!=null}var Sw=o((()=>{})),Cw,ww=o((()=>{Cw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1]}));function Tw(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function Ew(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var Dw=o((()=>{})),Ow,kw=o((()=>{Wv(),Ow=e=>{var t=Z(e);return t===`horizontal`?`xAxis`:t===`vertical`?`yAxis`:t===`centric`?`angleAxis`:`radiusAxis`}})),Aw,jw=o((()=>{Aw=e=>e.tooltip.settings.axisId}));function Mw(e){if(e!=null){var t=e.ticks,n=e.bandwidth,r=e.range(),i=[Math.min(...r),Math.max(...r)];return{domain:()=>e.domain(),range:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(()=>i),rangeMin:()=>i[0],rangeMax:()=>i[1],isInRange(e){var t=i[0],n=i[1];return t<=n?e>=t&&e<=n:e>=n&&e<=t},bandwidth:n?()=>n.call(e):void 0,ticks:t?n=>t.call(e,n):void 0,map:(t,n)=>{var r=e(t);if(r!=null){if(e.bandwidth&&n!=null&&n.position){var i=e.bandwidth();switch(n.position){case`middle`:r+=i/2;break;case`end`:r+=i;break;default:break}}return r}}}}}var Nw=o((()=>{})),Pw,Fw=o((()=>{pC(),o_(),Pw=(e,t)=>{if(t!=null)switch(e){case`linear`:if(!uC(t)){for(var n,r,i=0;i<t.length;i++){var a=t[i];Y(a)&&((n===void 0||a<n)&&(n=a),(r===void 0||a>r)&&(r=a))}return n!==void 0&&r!==void 0?[n,r]:void 0}return t;default:return t}}}));function Iw(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var Lw=o((()=>{}));function Rw(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}var zw=o((()=>{}));function Bw(e){let t,n,r;e.length===2?(t=e===Iw||e===Rw?e:Vw,n=e,r=e):(t=Iw,n=(t,n)=>Iw(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Vw(){return 0}var Hw=o((()=>{Lw(),zw()}));function Uw(e){return e===null?NaN:+e}function*Ww(e,t){if(t===void 0)for(let t of e)t!=null&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}var Gw=o((()=>{})),Kw,qw,Jw=o((()=>{Lw(),Hw(),Gw(),Kw=Bw(Iw),qw=Kw.right,Kw.left,Bw(Uw).center}));function Yw(e,t){let n,r;if(t===void 0)for(let t of e)t!=null&&(n===void 0?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Xw=o((()=>{}));function Zw({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Qw({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $w({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eT(e){return typeof e==`object`&&e?e.valueOf():e}var tT,nT=o((()=>{tT=class extends Map{constructor(e,t=eT){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Zw(this,e))}has(e){return super.has(Zw(this,e))}set(e,t){return super.set(Qw(this,e),t)}delete(e){return super.delete($w(this,e))}}}));function rT(e=Iw){if(e===Iw)return iT;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function iT(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var aT=o((()=>{Lw()}));function oT(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=uT?10:a>=dT?5:a>=fT?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?oT(e,t,n*2):[s,c,l]}function sT(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?oT(t,e,n):oT(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function cT(e,t,n){return t=+t,e=+e,n=+n,oT(e,t,n)[2]}function lT(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?cT(t,e,n):cT(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var uT,dT,fT,pT=o((()=>{uT=Math.sqrt(50),dT=Math.sqrt(10),fT=Math.sqrt(2)}));function mT(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);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}var hT=o((()=>{}));function gT(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);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}var _T=o((()=>{}));function vT(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?iT:rT(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));vT(e,t,u,d,i)}let a=e[t],o=n,s=r;for(yT(e,n,t),i(e[r],a)>0&&yT(e,n,r);o<s;){for(yT(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?yT(e,n,s):(++s,yT(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function yT(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}var bT=o((()=>{aT()}));function xT(e,t,n){if(e=Float64Array.from(Ww(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return gT(e);if(t>=1)return mT(e);var r,i=(r-1)*t,a=Math.floor(i),o=mT(vT(e,a).subarray(0,a+1));return o+(gT(e.subarray(a+1))-o)*(i-a)}}function ST(e,t,n=Uw){if(!(!(r=e.length)||isNaN(t=+t))){if(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);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}var CT=o((()=>{hT(),_T(),bT(),Gw()}));function wT(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=Array(i);++r<i;)a[r]=e+r*n;return a}var TT=o((()=>{})),ET=o((()=>{Jw(),Lw(),Hw(),Xw(),hT(),_T(),CT(),TT(),pT(),nT()}));function DT(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function OT(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}var kT=o((()=>{}));function AT(){var e=new tT,t=[],n=[],r=jT;function i(i){let a=e.get(i);if(a===void 0){if(r!==jT)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new tT;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return AT(t,n).unknown(r)},DT.apply(i,arguments),i}var jT,MT=o((()=>{ET(),kT(),jT=Symbol(`implicit`)}));function NT(){var e=AT().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=wT(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return NT(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},DT.apply(d(),arguments)}function PT(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return PT(t())},e}function FT(){return PT(NT.apply(null,arguments).paddingInner(1))}var IT=o((()=>{ET(),kT(),MT()}));function LT(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function RT(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var zT=o((()=>{}));function BT(){}function VT(){return this.rgb().formatHex()}function HT(){return this.rgb().formatHex8()}function UT(){return nE(this).formatHsl()}function WT(){return this.rgb().formatRgb()}function GT(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=fE.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?KT(t):n===3?new YT(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?qT(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?qT(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=pE.exec(e))?new YT(t[1],t[2],t[3],1):(t=mE.exec(e))?new YT(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=hE.exec(e))?qT(t[1],t[2],t[3],t[4]):(t=gE.exec(e))?qT(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_E.exec(e))?tE(t[1],t[2]/100,t[3]/100,1):(t=vE.exec(e))?tE(t[1],t[2]/100,t[3]/100,t[4]):yE.hasOwnProperty(e)?KT(yE[e]):e===`transparent`?new YT(NaN,NaN,NaN,0):null}function KT(e){return new YT(e>>16&255,e>>8&255,e&255,1)}function qT(e,t,n,r){return r<=0&&(e=t=n=NaN),new YT(e,t,n,r)}function Mre(e){return e instanceof BT||(e=GT(e)),e?(e=e.rgb(),new YT(e.r,e.g,e.b,e.opacity)):new YT}function JT(e,t,n,r){return arguments.length===1?Mre(e):new YT(e,t,n,r??1)}function YT(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function XT(){return`#${eE(this.r)}${eE(this.g)}${eE(this.b)}`}function Nre(){return`#${eE(this.r)}${eE(this.g)}${eE(this.b)}${eE((isNaN(this.opacity)?1:this.opacity)*255)}`}function ZT(){let e=QT(this.opacity);return`${e===1?`rgb(`:`rgba(`}${$T(this.r)}, ${$T(this.g)}, ${$T(this.b)}${e===1?`)`:`, ${e})`}`}function QT(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function $T(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function eE(e){return e=$T(e),(e<16?`0`:``)+e.toString(16)}function tE(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rE(e,t,n,r)}function nE(e){if(e instanceof rE)return new rE(e.h,e.s,e.l,e.opacity);if(e instanceof BT||(e=GT(e)),!e)return new rE;if(e instanceof rE)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,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new rE(o,s,c,e.opacity)}function Pre(e,t,n,r){return arguments.length===1?nE(e):new rE(e,t,n,r??1)}function rE(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function iE(e){return e=(e||0)%360,e<0?e+360:e}function aE(e){return Math.max(0,Math.min(1,e||0))}function oE(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var sE,cE,lE,uE,dE,fE,pE,mE,hE,gE,_E,vE,yE,Fre=o((()=>{zT(),sE=.7,cE=1/sE,lE=`\\s*([+-]?\\d+)\\s*`,uE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,dE=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,fE=/^#([0-9a-f]{3,8})$/,pE=RegExp(`^rgb\\(${lE},${lE},${lE}\\)$`),mE=RegExp(`^rgb\\(${dE},${dE},${dE}\\)$`),hE=RegExp(`^rgba\\(${lE},${lE},${lE},${uE}\\)$`),gE=RegExp(`^rgba\\(${dE},${dE},${dE},${uE}\\)$`),_E=RegExp(`^hsl\\(${uE},${dE},${dE}\\)$`),vE=RegExp(`^hsla\\(${uE},${dE},${dE},${uE}\\)$`),yE={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},LT(BT,GT,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:VT,formatHex:VT,formatHex8:HT,formatHsl:UT,formatRgb:WT,toString:WT}),LT(YT,JT,RT(BT,{brighter(e){return e=e==null?cE:cE**+e,new YT(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sE:sE**+e,new YT(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new YT($T(this.r),$T(this.g),$T(this.b),QT(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:XT,formatHex:XT,formatHex8:Nre,formatRgb:ZT,toString:ZT})),LT(rE,Pre,RT(BT,{brighter(e){return e=e==null?cE:cE**+e,new rE(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sE:sE**+e,new rE(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 YT(oE(e>=240?e-240:e+120,i,r),oE(e,i,r),oE(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new rE(iE(this.h),aE(this.s),aE(this.l),QT(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(){let e=QT(this.opacity);return`${e===1?`hsl(`:`hsla(`}${iE(this.h)}, ${aE(this.s)*100}%, ${aE(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),bE=o((()=>{Fre()})),xE=o((()=>{})),Ire=o((()=>{xE()})),SE,CE=o((()=>{SE=e=>()=>e}));function Lre(e,t){return function(n){return e+n*t}}function Rre(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function zre(e){return(e=+e)==1?wE:function(t,n){return n-t?Rre(t,n,e):SE(isNaN(t)?n:t)}}function wE(e,t){var n=t-e;return n?Lre(e,n):SE(isNaN(e)?t:e)}var Bre=o((()=>{CE()})),TE,EE=o((()=>{bE(),xE(),Ire(),Bre(),TE=(function e(t){var n=zre(t);function r(e,t){var r=n((e=JT(e)).r,(t=JT(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=wE(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Vre(e,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 Hre(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Ure=o((()=>{}));function Wre(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=NE(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}var Gre=o((()=>{PE()}));function Kre(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var qre=o((()=>{}));function DE(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var OE=o((()=>{}));function Jre(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=NE(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Yre=o((()=>{PE()}));function Xre(e){return function(){return e}}function Zre(e){return function(t){return e(t)+``}}function kE(e,t){var n=AE.lastIndex=jE.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=AE.exec(e))&&(i=jE.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:DE(r,i)})),n=jE.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?Zre(c[0].x):Xre(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var AE,jE,ME=o((()=>{OE(),AE=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,jE=new RegExp(AE.source,`g`)}));function NE(e,t){var n=typeof t,r;return t==null||n===`boolean`?SE(t):(n===`number`?DE:n===`string`?(r=GT(t))?(t=r,TE):kE:t instanceof GT?TE:t instanceof Date?Kre:Hre(t)?Vre:Array.isArray(t)?Wre:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Jre:DE)(e,t)}var PE=o((()=>{bE(),EE(),Gre(),qre(),OE(),Yre(),ME(),CE(),Ure()}));function FE(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Qre=o((()=>{}));function IE(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*LE,skewX:Math.atan(c)*LE,scaleX:o,scaleY:s}}var LE,RE,$re=o((()=>{LE=180/Math.PI,RE={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function eie(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?RE:IE(t.a,t.b,t.c,t.d,t.e,t.f)}function tie(e){return e==null||(zE||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),zE.setAttribute(`transform`,e),!(e=zE.transform.baseVal.consolidate()))?RE:(e=e.matrix,IE(e.a,e.b,e.c,e.d,e.e,e.f))}var zE,nie=o((()=>{$re()}));function BE(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:DE(e,i)},{i:c-2,x:DE(r,a)})}else (i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:DE(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:DE(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:DE(e,n)},{i:s-2,x:DE(t,r)})}else (n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var VE,HE,rie=o((()=>{OE(),nie(),VE=BE(eie,`px, `,`px)`,`deg)`),HE=BE(tie,`, `,`)`,`)`)}));function iie(e,t){t===void 0&&(t=e,e=NE);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}var aie=o((()=>{PE()})),UE=o((()=>{PE(),OE(),Qre(),ME(),rie(),EE(),aie()}));function oie(e){return function(){return e}}var sie=o((()=>{}));function WE(e){return+e}var GE=o((()=>{}));function KE(e){return e}function qE(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:oie(isNaN(t)?NaN:.5)}function cie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function lie(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=qE(i,r),a=n(o,a)):(r=qE(r,i),a=n(a,o)),function(e){return a(r(e))}}function uie(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=qE(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=qw(e,t,1,r)-1;return a[n](i[n](t))}}function JE(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function YE(){var e=ZE,t=ZE,n=NE,r,i,a,o=KE,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==KE&&(o=cie(e[0],e[n-1])),s=n>2?uie:lie,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),DE))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,WE),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=FE,u()},d.clamp=function(e){return arguments.length?(o=e?!0:KE,u()):o!==KE},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function XE(){return YE()(KE,KE)}var ZE,QE=o((()=>{ET(),UE(),sie(),GE(),ZE=[0,1]}));function die(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function $E(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)]}var eD=o((()=>{}));function tD(e){return e=$E(Math.abs(e)),e?e[1]:NaN}var nD=o((()=>{eD()}));function fie(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var pie=o((()=>{}));function mie(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var hie=o((()=>{}));function rD(e){if(!(t=aD.exec(e)))throw Error(`invalid format: `+e);var t;return new iD({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]})}function iD(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+``}var aD,oD=o((()=>{aD=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,rD.prototype=iD.prototype,iD.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 gie(e){out: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 out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var _ie=o((()=>{}));function vie(e,t){var n=$E(e,t);if(!n)return e+``;var r=n[0],i=n[1],a=i-(sD=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+$E(e,Math.max(0,t+a-1))[0]}var sD,cD=o((()=>{eD()}));function lD(e,t){var n=$E(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var yie=o((()=>{eD()})),uD,bie=o((()=>{eD(),cD(),yie(),uD={"%":function(e,t){return(e*100).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+``},d:die,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return lD(e*100,t)},r:lD,s:vie,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}}}));function dD(e){return e}var xie=o((()=>{}));function Sie(e){var t=e.grouping===void 0||e.thousands===void 0?dD:fie(fD.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?dD:mie(fD.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`-`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e){e=rD(e);var l=e.fill,u=e.align,d=e.sign,f=e.symbol,p=e.zero,m=e.width,h=e.comma,g=e.precision,_=e.trim,v=e.type;v===`n`?(h=!0,v=`g`):uD[v]||(g===void 0&&(g=12),_=!0,v=`g`),(p||l===`0`&&u===`=`)&&(p=!0,l=`0`,u=`=`);var y=f===`$`?n:f===`#`&&/[boxX]/.test(v)?`0`+v.toLowerCase():``,b=f===`$`?r:/[%p]/.test(v)?o:``,x=uD[v],S=/[defgprs%]/.test(v);g=g===void 0?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function C(e){var n=y,r=b,o,f,C;if(v===`c`)r=x(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:x(Math.abs(e),g),_&&(e=gie(e)),w&&+e==0&&d!==`+`&&(w=!1),n=(w?d===`(`?d:s:d===`-`||d===`(`?``:d)+n,r=(v===`s`?pD[8+sD/3]:``)+r+(w&&d===`(`?`)`:``),S){for(o=-1,f=e.length;++o<f;)if(C=e.charCodeAt(o),48>C||C>57){r=(C===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}h&&!p&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<m?Array(m-T+1).join(l):``;switch(h&&p&&(e=t(E+e,E.length?m-r.length:1/0),E=``),u){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return C.toString=function(){return e+``},C}function u(e,t){var n=l((e=rD(e),e.type=`f`,e)),r=Math.max(-8,Math.min(8,Math.floor(tD(t)/3)))*3,i=10**-r,a=pD[8+r/3];return function(e){return n(i*e)+a}}return{format:l,formatPrefix:u}}var fD,pD,Cie=o((()=>{nD(),pie(),hie(),oD(),_ie(),bie(),cD(),xie(),fD=Array.prototype.map,pD=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function wie(e){return mD=Sie(e),hD=mD.format,gD=mD.formatPrefix,mD}var mD,hD,gD,Tie=o((()=>{Cie(),wie({decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``],minus:`-`})}));function Eie(e){return Math.max(0,-tD(Math.abs(e)))}var Die=o((()=>{nD()}));function Oie(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(tD(t)/3)))*3-tD(Math.abs(e)))}var kie=o((()=>{nD()}));function Aie(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,tD(t)-tD(e))+1}var jie=o((()=>{nD()})),_D=o((()=>{Tie(),oD(),Die(),kie(),jie()}));function vD(e,t,n,r){var i=lT(e,t,n),a;switch(r=rD(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Oie(i,o))&&(r.precision=a),gD(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Aie(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Eie(i))&&(r.precision=a-(r.type===`%`)*2);break}return hD(r)}var yD=o((()=>{ET(),_D()}));function bD(e){var t=e.domain;return e.ticks=function(e){var n=t();return sT(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return vD(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-- >0;){if(l=cT(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function xD(){var e=XE();return e.copy=function(){return JE(e,xD())},DT.apply(e,arguments),bD(e)}var SD=o((()=>{ET(),QE(),kT(),yD()}));function CD(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,WE),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return CD(e).unknown(t)},e=arguments.length?Array.from(e,WE):[0,1],bD(n)}var Mie=o((()=>{SD(),GE()}));function wD(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}var TD=o((()=>{}));function ED(e){return Math.log(e)}function DD(e){return Math.exp(e)}function Nie(e){return-Math.log(-e)}function Pie(e){return-Math.exp(-e)}function Fie(e){return isFinite(e)?+(`1e`+e):e<0?0:e}function Iie(e){return e===10?Fie:e===Math.E?Math.exp:t=>e**+t}function Lie(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 OD(e){return(t,n)=>-e(-t,n)}function kD(e){let t=e(ED,DD),n=t.domain,r=10,i,a;function o(){return i=Lie(r),a=Iie(r),n()[0]<0?(i=OD(i),a=OD(a),e(Nie,Pie)):e(ED,DD),t}return t.base=function(e){return arguments.length?(r=+e,o()):r},t.domain=function(e){return arguments.length?(n(e),o()):n()},t.ticks=e=>{let t=n(),o=t[0],s=t[t.length-1],c=s<o;c&&([o,s]=[s,o]);let l=i(o),u=i(s),d,f,p=e==null?10:+e,m=[];if(!(r%1)&&u-l<p){if(l=Math.floor(l),u=Math.ceil(u),o>0){for(;l<=u;++l)for(d=1;d<r;++d)if(f=l<0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}}else for(;l<=u;++l)for(d=r-1;d>=1;--d)if(f=l>0?d/a(-l):d*a(l),!(f<o)){if(f>s)break;m.push(f)}m.length*2<p&&(m=sT(o,s,p))}else m=sT(l,u,Math.min(u-l,p)).map(a);return c?m.reverse():m},t.tickFormat=(e,n)=>{if(e??=10,n??=r===10?`s`:`,`,typeof n!=`function`&&(!(r%1)&&(n=rD(n)).precision==null&&(n.trim=!0),n=hD(n)),e===1/0)return n;let o=Math.max(1,r*e/t.ticks().length);return e=>{let t=e/a(Math.round(i(e)));return t*r<r-.5&&(t*=r),t<=o?n(e):``}},t.nice=()=>n(wD(n(),{floor:e=>a(Math.floor(i(e))),ceil:e=>a(Math.ceil(i(e)))})),t}function AD(){let e=kD(YE()).domain([1,10]);return e.copy=()=>JE(e,AD()).base(e.base()),DT.apply(e,arguments),e}var jD=o((()=>{ET(),_D(),TD(),QE(),kT()}));function MD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ND(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function PD(e){var t=1,n=e(MD(t),ND(t));return n.constant=function(n){return arguments.length?e(MD(t=+n),ND(t)):t},bD(n)}function FD(){var e=PD(YE());return e.copy=function(){return JE(e,FD()).constant(e.constant())},DT.apply(e,arguments)}var ID=o((()=>{SD(),QE(),kT()}));function LD(e){return function(t){return t<0?-((-t)**+e):t**+e}}function Rie(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function zie(e){return e<0?-e*e:e*e}function RD(e){var t=e(KE,KE),n=1;function r(){return n===1?e(KE,KE):n===.5?e(Rie,zie):e(LD(n),LD(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},bD(t)}function zD(){var e=RD(YE());return e.copy=function(){return JE(e,zD()).exponent(e.exponent())},DT.apply(e,arguments),e}function BD(){return zD.apply(null,arguments).exponent(.5)}var VD=o((()=>{SD(),QE(),kT()}));function HD(e){return Math.sign(e)*e*e}function Bie(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function UD(){var e=XE(),t=[0,1],n=!1,r;function i(t){var i=Bie(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(HD(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,WE)).map(HD)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return UD(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},DT.apply(i,arguments),bD(i)}var Vie=o((()=>{QE(),kT(),SD(),GE()}));function WD(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=ST(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[qw(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Iw),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return WD().domain(e).range(t).unknown(r)},DT.apply(a,arguments)}var Hie=o((()=>{ET(),kT()}));function GD(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[qw(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return GD().domain([e,t]).range(i).unknown(a)},DT.apply(bD(o),arguments)}var Uie=o((()=>{ET(),SD(),kT()}));function KD(){var e=[.5],t=[0,1],n,r=1;function i(i){return i!=null&&i<=i?t[qw(e,i,0,r)]:n}return i.domain=function(n){return arguments.length?(e=Array.from(n),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(n){return arguments.length?(t=Array.from(n),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},i.unknown=function(e){return arguments.length?(n=e,i):n},i.copy=function(){return KD().domain(e).range(t).unknown(n)},DT.apply(i,arguments)}var Wie=o((()=>{ET(),kT()}));function qD(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>qD(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(JD.setTime(+t),YD.setTime(+r),e(JD),e(YD),Math.floor(n(JD,YD))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var JD,YD,XD=o((()=>{JD=new Date,YD=new Date})),ZD,Gie=o((()=>{XD(),ZD=qD(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),ZD.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?qD(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):ZD),ZD.range})),QD,$D,eO,tO,nO,rO,iO,aO=o((()=>{QD=1e3,$D=QD*60,eO=$D*60,tO=eO*24,nO=tO*7,rO=tO*30,iO=tO*365})),oO,sO=o((()=>{XD(),aO(),oO=qD(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*QD)},(e,t)=>(t-e)/QD,e=>e.getUTCSeconds()),oO.range})),cO,lO,uO=o((()=>{XD(),aO(),cO=qD(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*QD)},(e,t)=>{e.setTime(+e+t*$D)},(e,t)=>(t-e)/$D,e=>e.getMinutes()),cO.range,lO=qD(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*$D)},(e,t)=>(t-e)/$D,e=>e.getUTCMinutes()),lO.range})),dO,fO,pO=o((()=>{XD(),aO(),dO=qD(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*QD-e.getMinutes()*$D)},(e,t)=>{e.setTime(+e+t*eO)},(e,t)=>(t-e)/eO,e=>e.getHours()),dO.range,fO=qD(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*eO)},(e,t)=>(t-e)/eO,e=>e.getUTCHours()),fO.range})),mO,hO,gO,_O=o((()=>{XD(),aO(),mO=qD(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$D)/tO,e=>e.getDate()-1),mO.range,hO=qD(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tO,e=>e.getUTCDate()-1),hO.range,gO=qD(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/tO,e=>Math.floor(e/tO)),gO.range}));function vO(e){return qD(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*$D)/nO)}function yO(e){return qD(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/nO)}var bO,xO,SO,CO,wO,TO,EO,DO,OO,kO,AO,jO,MO,NO,PO=o((()=>{XD(),aO(),bO=vO(0),xO=vO(1),SO=vO(2),CO=vO(3),wO=vO(4),TO=vO(5),EO=vO(6),bO.range,xO.range,SO.range,CO.range,wO.range,TO.range,EO.range,DO=yO(0),OO=yO(1),kO=yO(2),AO=yO(3),jO=yO(4),MO=yO(5),NO=yO(6),DO.range,OO.range,kO.range,AO.range,jO.range,MO.range,NO.range})),FO,IO,LO=o((()=>{XD(),FO=qD(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()),FO.range,IO=qD(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()),IO.range})),RO,zO,BO=o((()=>{XD(),RO=qD(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()),RO.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qD(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)}),RO.range,zO=qD(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()),zO.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:qD(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)}),zO.range}));function VO(e,t,n,r,i,a){let o=[[oO,1,QD],[oO,5,5*QD],[oO,15,15*QD],[oO,30,30*QD],[a,1,$D],[a,5,5*$D],[a,15,15*$D],[a,30,30*$D],[i,1,eO],[i,3,3*eO],[i,6,6*eO],[i,12,12*eO],[r,1,tO],[r,2,2*tO],[n,1,nO],[t,1,rO],[t,3,3*rO],[e,1,iO]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Bw(([,,e])=>e).right(o,i);if(a===o.length)return e.every(lT(t/iO,n/iO,r));if(a===0)return ZD.every(Math.max(lT(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var HO,UO,WO,GO,Kie=o((()=>{ET(),aO(),Gie(),sO(),uO(),pO(),_O(),PO(),LO(),BO(),[HO,UO]=VO(zO,IO,DO,gO,fO,lO),[WO,GO]=VO(RO,FO,bO,mO,dO,cO)})),KO=o((()=>{sO(),uO(),pO(),_O(),PO(),LO(),BO(),Kie()}));function qO(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=function(t){return e(t=new Date(+t)),t},i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),n==null?1:Math.floor(n)),e},i.range=function(n,r,a){var o=[],s;if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=function(n){return qO(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return JO.setTime(+t),YO.setTime(+r),e(JO),e(YO),Math.floor(n(JO,YO))},i.every=function(e){return e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?function(t){return r(t)%e===0}:function(t){return i.count(0,t)%e===0}):i}),i}var JO,YO,XO=o((()=>{JO=new Date,YO=new Date})),ZO,QO,$O,ek=o((()=>{ZO=6e4,QO=864e5,$O=6048e5})),tk,qie=o((()=>{XO(),ek(),tk=qO(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ZO)/QO},function(e){return e.getDate()-1}),tk.range}));function nk(e){return qO(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ZO)/$O})}var rk,ik,ak,ok,sk,ck,lk,Jie=o((()=>{XO(),ek(),rk=nk(0),ik=nk(1),ak=nk(2),ok=nk(3),sk=nk(4),ck=nk(5),lk=nk(6),rk.range,ik.range,ak.range,ok.range,sk.range,ck.range,lk.range})),uk,Yie=o((()=>{XO(),uk=qO(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()}),uk.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:qO(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)})},uk.range})),dk,Xie=o((()=>{XO(),ek(),dk=qO(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/QO},function(e){return e.getUTCDate()-1}),dk.range}));function fk(e){return qO(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/$O})}var pk,mk,hk,gk,_k,vk,yk,Zie=o((()=>{XO(),ek(),pk=fk(0),mk=fk(1),hk=fk(2),gk=fk(3),_k=fk(4),vk=fk(5),yk=fk(6),pk.range,mk.range,hk.range,gk.range,_k.range,vk.range,yk.range})),bk,Qie=o((()=>{XO(),bk=qO(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()}),bk.every=function(e){return!isFinite(e=Math.floor(e))||!(e>0)?null:qO(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})},bk.range})),$ie=o((()=>{qie(),Jie(),Yie(),Xie(),Zie(),Qie()}));function xk(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 Sk(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 Ck(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function eae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=Tk(i),u=Ek(i),d=Tk(a),f=Ek(a),p=Tk(o),m=Ek(o),h=Tk(s),g=Ek(s),_=Tk(c),v=Ek(c),y={a:N,A:ee,b:te,B:ne,c:null,d:jk,e:jk,f:xae,g:Pk,G:Ik,H:vae,I:yae,j:bae,L:Mk,m:Sae,M:Cae,p:re,q:ie,Q:Hk,s:Uk,S:wae,u:Tae,U:Eae,V:Dae,w:Oae,W:kae,x:null,X:null,y:Aae,Y:Fk,Z:Lk,"%":Vk},b={a:ae,A:oe,b:se,B:ce,c:null,d:Rk,e:Rk,f:Pae,g:Wae,G:Kae,H:jae,I:Mae,j:Nae,L:zk,m:Fae,M:Iae,p:P,q:le,Q:Hk,s:Uk,S:Lae,u:Rae,U:zae,V:Bae,w:Vae,W:Hae,x:null,X:null,y:Uae,Y:Gae,Z:qae,"%":Vk},x={a:E,A:D,b:O,B:k,c:A,d:kk,e:kk,f:mae,g:Ok,G:Dk,H:Ak,I:Ak,j:uae,L:pae,m:lae,M:dae,p:T,q:cae,Q:gae,s:_ae,S:fae,u:rae,U:iae,V:aae,w:nae,W:oae,x:j,X:M,y:Ok,Y:Dk,Z:sae,"%":hae};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=Wk[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=Ck(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Sk(Ck(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?mk.ceil(a):mk(a),a=dk.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=xk(Ck(r.y,0,1)),o=a.getDay(),a=o>4||o===0?ik.ceil(a):ik(a),a=tk.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?Sk(Ck(r.y,0,1)).getUTCDay():xk(Ck(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Sk(r)):xk(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in Wk?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function te(e){return c[e.getMonth()]}function ne(e){return s[e.getMonth()]}function re(e){return i[+(e.getHours()>=12)]}function ie(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function P(e){return i[+(e.getUTCHours()>=12)]}function le(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}function wk(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function tae(e){return e.replace(qk,`\\$&`)}function Tk(e){return RegExp(`^(?:`+e.map(tae).join(`|`)+`)`,`i`)}function Ek(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function nae(e,t,n){var r=Gk.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function rae(e,t,n){var r=Gk.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function iae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function aae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function oae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Dk(e,t,n){var r=Gk.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ok(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function sae(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 cae(e,t,n){var r=Gk.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function lae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kk(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function uae(e,t,n){var r=Gk.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ak(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function dae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function fae(e,t,n){var r=Gk.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function pae(e,t,n){var r=Gk.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function mae(e,t,n){var r=Gk.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function hae(e,t,n){var r=Kk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function gae(e,t,n){var r=Gk.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function _ae(e,t,n){var r=Gk.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jk(e,t){return wk(e.getDate(),t,2)}function vae(e,t){return wk(e.getHours(),t,2)}function yae(e,t){return wk(e.getHours()%12||12,t,2)}function bae(e,t){return wk(1+tk.count(uk(e),e),t,3)}function Mk(e,t){return wk(e.getMilliseconds(),t,3)}function xae(e,t){return Mk(e,t)+`000`}function Sae(e,t){return wk(e.getMonth()+1,t,2)}function Cae(e,t){return wk(e.getMinutes(),t,2)}function wae(e,t){return wk(e.getSeconds(),t,2)}function Tae(e){var t=e.getDay();return t===0?7:t}function Eae(e,t){return wk(rk.count(uk(e)-1,e),t,2)}function Nk(e){var t=e.getDay();return t>=4||t===0?sk(e):sk.ceil(e)}function Dae(e,t){return e=Nk(e),wk(sk.count(uk(e),e)+(uk(e).getDay()===4),t,2)}function Oae(e){return e.getDay()}function kae(e,t){return wk(ik.count(uk(e)-1,e),t,2)}function Aae(e,t){return wk(e.getFullYear()%100,t,2)}function Pk(e,t){return e=Nk(e),wk(e.getFullYear()%100,t,2)}function Fk(e,t){return wk(e.getFullYear()%1e4,t,4)}function Ik(e,t){var n=e.getDay();return e=n>=4||n===0?sk(e):sk.ceil(e),wk(e.getFullYear()%1e4,t,4)}function Lk(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+wk(t/60|0,`0`,2)+wk(t%60,`0`,2)}function Rk(e,t){return wk(e.getUTCDate(),t,2)}function jae(e,t){return wk(e.getUTCHours(),t,2)}function Mae(e,t){return wk(e.getUTCHours()%12||12,t,2)}function Nae(e,t){return wk(1+dk.count(bk(e),e),t,3)}function zk(e,t){return wk(e.getUTCMilliseconds(),t,3)}function Pae(e,t){return zk(e,t)+`000`}function Fae(e,t){return wk(e.getUTCMonth()+1,t,2)}function Iae(e,t){return wk(e.getUTCMinutes(),t,2)}function Lae(e,t){return wk(e.getUTCSeconds(),t,2)}function Rae(e){var t=e.getUTCDay();return t===0?7:t}function zae(e,t){return wk(pk.count(bk(e)-1,e),t,2)}function Bk(e){var t=e.getUTCDay();return t>=4||t===0?_k(e):_k.ceil(e)}function Bae(e,t){return e=Bk(e),wk(_k.count(bk(e),e)+(bk(e).getUTCDay()===4),t,2)}function Vae(e){return e.getUTCDay()}function Hae(e,t){return wk(mk.count(bk(e)-1,e),t,2)}function Uae(e,t){return wk(e.getUTCFullYear()%100,t,2)}function Wae(e,t){return e=Bk(e),wk(e.getUTCFullYear()%100,t,2)}function Gae(e,t){return wk(e.getUTCFullYear()%1e4,t,4)}function Kae(e,t){var n=e.getUTCDay();return e=n>=4||n===0?_k(e):_k.ceil(e),wk(e.getUTCFullYear()%1e4,t,4)}function qae(){return`+0000`}function Vk(){return`%`}function Hk(e){return+e}function Uk(e){return Math.floor(e/1e3)}var Wk,Gk,Kk,qk,Jae=o((()=>{$ie(),Wk={"-":``,_:` `,0:`0`},Gk=/^\s*\d+/,Kk=/^%/,qk=/[\\^$*+?|[\]().{}]/g}));function Yae(e){return Jk=eae(e),Yk=Jk.format,Xae=Jk.parse,Xk=Jk.utcFormat,Zae=Jk.utcParse,Jk}var Jk,Yk,Xae,Xk,Zae,Qae=o((()=>{Jae(),Yae({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`]})})),Zk=o((()=>{Qae()}));function $ae(e){return new Date(e)}function eoe(e){return e instanceof Date?+e:+new Date(+e)}function Qk(e,t,n,r,i,a,o,s,c,l){var u=XE(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,eoe)):f().map($ae)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(wD(n,e)):u},u.copy=function(){return JE(u,Qk(e,t,n,r,i,a,o,s,c,l))},u}function toe(){return DT.apply(Qk(WO,GO,RO,FO,bO,mO,dO,cO,oO,Yk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var $k=o((()=>{KO(),Zk(),QE(),kT(),TD()}));function noe(){return DT.apply(Qk(HO,UO,zO,IO,DO,hO,fO,lO,oO,Xk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}var roe=o((()=>{KO(),Zk(),$k(),kT()}));function eA(){var e=0,t=1,n,r,i,a,o=KE,s=!1,c;function l(e){return e==null||isNaN(e=+e)?c:o(i===0?.5:(e=(a(e)-n)*i,s?Math.max(0,Math.min(1,e)):e))}l.domain=function(o){return arguments.length?([e,t]=o,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),l):[e,t]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(o=e,l):o};function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,o=e(n,r),l):[o(0),o(1)]}}return l.range=u(NE),l.rangeRound=u(FE),l.unknown=function(e){return arguments.length?(c=e,l):c},function(o){return a=o,n=o(e),r=o(t),i=n===r?0:1/(r-n),l}}function tA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function nA(){var e=bD(eA()(KE));return e.copy=function(){return tA(e,nA())},OT.apply(e,arguments)}function rA(){var e=kD(eA()).domain([1,10]);return e.copy=function(){return tA(e,rA()).base(e.base())},OT.apply(e,arguments)}function iA(){var e=PD(eA());return e.copy=function(){return tA(e,iA()).constant(e.constant())},OT.apply(e,arguments)}function aA(){var e=RD(eA());return e.copy=function(){return tA(e,aA()).exponent(e.exponent())},OT.apply(e,arguments)}function ioe(){return aA.apply(null,arguments).exponent(.5)}var oA=o((()=>{UE(),QE(),kT(),SD(),jD(),ID(),VD()}));function sA(){var e=[],t=KE;function n(n){if(n!=null&&!isNaN(n=+n))return t((qw(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(Iw),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>xT(e,r/t))},n.copy=function(){return sA(t).domain(e)},OT.apply(n,arguments)}var aoe=o((()=>{ET(),QE(),kT()}));function cA(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=KE,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=iie(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(NE),p.rangeRound=m(FE),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function lA(){var e=bD(cA()(KE));return e.copy=function(){return tA(e,lA())},OT.apply(e,arguments)}function uA(){var e=kD(cA()).domain([.1,1,10]);return e.copy=function(){return tA(e,uA()).base(e.base())},OT.apply(e,arguments)}function dA(){var e=PD(cA());return e.copy=function(){return tA(e,dA()).constant(e.constant())},OT.apply(e,arguments)}function fA(){var e=RD(cA());return e.copy=function(){return tA(e,fA()).exponent(e.exponent())},OT.apply(e,arguments)}function ooe(){return fA.apply(null,arguments).exponent(.5)}var soe=o((()=>{UE(),QE(),kT(),SD(),jD(),oA(),ID(),VD()})),pA=o((()=>{IT(),Mie(),SD(),jD(),ID(),MT(),VD(),Vie(),Hie(),Uie(),Wie(),$k(),roe(),oA(),aoe(),soe(),yD()})),mA=c({scaleBand:()=>NT,scaleDiverging:()=>lA,scaleDivergingLog:()=>uA,scaleDivergingPow:()=>fA,scaleDivergingSqrt:()=>ooe,scaleDivergingSymlog:()=>dA,scaleIdentity:()=>CD,scaleImplicit:()=>jT,scaleLinear:()=>xD,scaleLog:()=>AD,scaleOrdinal:()=>AT,scalePoint:()=>FT,scalePow:()=>zD,scaleQuantile:()=>WD,scaleQuantize:()=>GD,scaleRadial:()=>UD,scaleSequential:()=>nA,scaleSequentialLog:()=>rA,scaleSequentialPow:()=>aA,scaleSequentialQuantile:()=>sA,scaleSequentialSqrt:()=>ioe,scaleSequentialSymlog:()=>iA,scaleSqrt:()=>BD,scaleSymlog:()=>FD,scaleThreshold:()=>KD,scaleTime:()=>toe,scaleUtc:()=>noe,tickFormat:()=>vD}),hA=o((()=>{pA()}));function coe(e){var t=mA;if(e in t&&typeof t[e]==`function`)return t[e]();var n=`scale${If(e)}`;if(n in t&&typeof t[n]==`function`)return t[n]()}function gA(e,t,n){if(typeof e==`function`)return e.copy().domain(t).range(n);if(e!=null){var r=coe(e);if(r!=null)return r.domain(t).range(n),r}}function _A(e,t,n,r){if(!(n==null||r==null))return typeof e.scale==`function`?gA(e.scale,n,r):gA(t,n,r)}var vA=o((()=>{hA(),K()}));function loe(e){return`scale${If(e)}`}function uoe(e){return loe(e)in mA}var yA,bA=o((()=>{hA(),K(),yA=(e,t,n)=>{if(e!=null){var{scale:r,type:i}=e;if(r===`auto`)return i===`category`&&n&&(n.indexOf(`LineChart`)>=0||n.indexOf(`AreaChart`)>=0||n.indexOf(`ComposedChart`)>=0&&!t)?`point`:i===`category`?`band`:`linear`;if(typeof r==`string`)return uoe(r)?r:`point`}}}));function doe(e,t){for(var n=0,r=e.length,i=e[0]<e[e.length-1];n<r;){var a=Math.floor((n+r)/2);(i?e[a]<t:e[a]>t)?n=a+1:r=a}return n}function xA(e,t){if(e){var n=t??e.domain(),r=n.map(t=>e(t)??0),i=e.range();if(!(n.length===0||i.length<2))return e=>{var t=doe(r,e);if(t<=0)return n[0];if(t>=n.length)return n[n.length-1];var i=r[t-1]??0,a=r[t]??0;return Math.abs(e-i)<=Math.abs(e-a)?n[t-1]:n[t]}}}var SA=o((()=>{}));function foe(e){if(e!=null)return`invert`in e&&typeof e.invert==`function`?e.invert.bind(e):xA(e,void 0)}var poe=o((()=>{SA()}));function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CA(Object(n),!0).forEach(function(t){moe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function moe(e,t,n){return(t=TA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TA(e){var t=EA(e,`string`);return typeof t==`symbol`?t:t+``}function EA(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DA(e,t){return n=>{switch(e){case`xAxis`:return`xAxisId`in n&&n.xAxisId===t;case`yAxis`:return`yAxisId`in n&&n.yAxisId===t;case`zAxis`:return`zAxisId`in n&&n.zAxisId===t;case`angleAxis`:return`angleAxisId`in n&&n.angleAxisId===t;case`radiusAxis`:return`radiusAxisId`in n&&n.radiusAxisId===t;default:return!1}}}function OA(e){if(kf(e)||e instanceof Date){var t=Number(e);if(Y(t))return t}}function kA(e){if(Array.isArray(e)){var t=[OA(e[0]),OA(e[1])];return uC(t)?t:void 0}var n=OA(e);if(n!=null)return[n,n]}function AA(e){return e.map(OA).filter(Cf)}function jA(e,t){var n=OA(e),r=OA(t);return n==null&&r==null?0:n==null?-1:r==null?1:n-r}function MA(e,t){switch(e){case`xAxis`:return t.direction===`x`;case`yAxis`:return t.direction===`y`;default:return!1}}function NA(e,t,n){if(!n||!n.length)return[];var r;if(typeof t==`number`&&!Df(t))r=t;else if(Array.isArray(t)){var i=AA(t);i.length>0&&(r=Math.max(...i))}return r==null?[]:AA(n.flatMap(t=>{var n=X(e,t.dataKey),i,a;if(Array.isArray(n)?[i,a]=n:i=a=n,!(!Y(i)||!Y(a)))return[r-i,r+a]}))}function PA(e){var{value:t}=e;if(kf(t)||t instanceof Date)return t}function FA(e){if(e.x!=null)return AA([e.x]);var t=e.segment?.map(e=>e.x);return t==null||t.length===0?[]:AA(t)}function hoe(e){if(e.y!=null)return AA([e.y]);var t=e.segment?.map(e=>e.y);return t==null||t.length===0?[]:AA(t)}function IA(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var LA,RA,zA,BA,VA,HA,UA,WA,GA,KA,qA,JA,YA,XA,ZA,QA,$A,ej,tj,nj,rj,ij,aj,oj,sj,cj,lj,uj,dj,fj,pj,mj,hj,gj,_j,vj,yj,bj,xj,Sj,Cj,wj,Tj,Ej,Dj,Oj,kj,Aj,jj,Mj,Nj,Pj,Fj,Ij,Lj,Rj,zj,Bj,Vj,Hj,Uj,Wj,Gj,Kj,qj,Jj,Yj,Xj,Zj,Qj,$j,eM,tM,nM,rM,iM,aM,oM,sM,cM,lM,uM,dM,fM,pM,mM,hM,gM,_M,vM,yM,bM,xM,SM,CM,wM,TM,EM,DM,OM,kM,AM,jM,MM,NM,PM,FM,IM,LM,RM,zM,BM,VM,HM,UM=o((()=>{rm(),LA=u(wre()),Wv(),P_(),lC(),pC(),K(),o_(),Ore(),z_(),H_(),$_(),ov(),LC(),fw(),mw(),gw(),GC(),K_(),vw(),bw(),Sw(),ww(),Dw(),kw(),jw(),Nw(),Fw(),vA(),bA(),SA(),poe(),RA=[0,`auto`],zA={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`bottom`,padding:{left:0,right:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`category`,unit:void 0,niceTicks:`auto`},BA=(e,t)=>e.cartesianAxis.xAxis[t],VA=(e,t)=>BA(e,t)??zA,HA={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:RA,hide:!0,id:0,includeHidden:!1,interval:`preserveEnd`,minTickGap:5,mirror:!1,name:void 0,orientation:`left`,padding:{top:0,bottom:0},reversed:!1,scale:`auto`,tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:`number`,unit:void 0,niceTicks:`auto`,width:60},UA=(e,t)=>e.cartesianAxis.yAxis[t],WA=(e,t)=>UA(e,t)??HA,GA={domain:[0,`auto`],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:``,range:[64,64],scale:`auto`,type:`number`,unit:``},KA=(e,t)=>e.cartesianAxis.zAxis[t]??GA,qA=(e,t,n)=>{switch(t){case`xAxis`:return VA(e,n);case`yAxis`:return WA(e,n);case`zAxis`:return KA(e,n);case`angleAxis`:return $C(e,n);case`radiusAxis`:return tw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},JA=(e,t,n)=>{switch(t){case`xAxis`:return VA(e,n);case`yAxis`:return WA(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},YA=(e,t,n)=>{switch(t){case`xAxis`:return VA(e,n);case`yAxis`:return WA(e,n);case`angleAxis`:return $C(e,n);case`radiusAxis`:return tw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},XA=e=>e.graphicalItems.cartesianItems.some(e=>e.type===`bar`)||e.graphicalItems.polarItems.some(e=>e.type===`radialBar`),ZA=e=>e.graphicalItems.cartesianItems,QA=J([pw,hw],DA),$A=(e,t,n)=>e.filter(n).filter(e=>t?.includeHidden===!0?!0:!e.hide),ej=J([ZA,qA,QA],$A,{memoizeOptions:{resultEqualityCheck:Tw}}),tj=J([ej],e=>e.filter(e=>e.type===`area`||e.type===`bar`).filter(xw)),nj=e=>e.filter(e=>!(`stackId`in e)||e.stackId===void 0),rj=J([ej],nj),ij=e=>e.map(e=>e.data).filter(Boolean).flat(1),aj=J([ej],e=>e.some(e=>!e.data)),oj=J([ej],ij,{memoizeOptions:{resultEqualityCheck:Tw}}),sj=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},cj=J([oj,iC],sj),lj=(e,t,n)=>t?.dataKey==null?n.length>0?n.map(e=>e.dataKey).flatMap(t=>e.map(e=>({value:X(e,t)}))):e.map(e=>({value:e})):e.map(e=>({value:X(e,t.dataKey)})),uj=(e,t,n,r,i,a)=>{var{chartData:o=[],dataStartIndex:s,dataEndIndex:c}=r,l=lj(e,t,n);return i&&t?.dataKey!=null&&a.length>0?[...o.slice(s,c+1).map(e=>({value:X(e,t.dataKey)})).filter(e=>e.value!=null),...l]:l},dj=J([cj,qA,ej,iC,aj,oj],uj),fj=J([dj],e=>e?.map(e=>e.value).sort(jA)),pj=e=>YA(e,Ow(e),Aw(e)),mj=J([pj],e=>e?.dataKey),hj=J([tj,iC,pj],yw),gj=(e,t,n,r)=>{var i=t.reduce((e,t)=>{if(t.stackId==null)return e;var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},{});return Object.fromEntries(Object.entries(i).map(t=>{var[i,a]=t,o=r?[...a].reverse():a;return[i,{stackedData:C_(e,o.map(_w),n),graphicalItems:o}]}))},_j=J([hj,tj,AC,jC],gj),vj=(e,t,n,r)=>{var{dataStartIndex:i,dataEndIndex:a}=t;if(r==null&&n!==`zAxis`){var o=O_(e,i,a);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},yj=J([qA],e=>e.allowDataOverflow),bj=e=>{if(e==null||!(`domain`in e))return RA;if(e.domain!=null)return e.domain;if(`ticks`in e&&e.ticks!=null){if(e.type===`number`){var t=AA(e.ticks);return[Math.min(...t),Math.max(...t)]}if(e.type===`category`)return e.ticks.map(String)}return e?.domain??RA},xj=J([qA],bj),Sj=J([xj,yj],fC),Cj=J([_j,nC,pw,Sj],vj,{memoizeOptions:{resultEqualityCheck:Cw}}),wj=e=>e.errorBars,Tj=(e,t,n)=>e.flatMap(e=>t[e.id]).filter(Boolean).filter(e=>MA(n,e)),Ej=function(){var e=[...arguments].filter(Boolean);if(e.length!==0){var t=e.flat();return[Math.min(...t),Math.max(...t)]}},Dj=function(e,t,n,r,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],o,s;if(n.length>0&&n.forEach(e=>{var n=e.data==null?a:[...e.data],c=r[e.id]?.filter(e=>MA(i,e));n.forEach(n=>{var r=X(n,t.dataKey??e.dataKey),i=NA(n,r,c);if(i.length>=2){var a=Math.min(...i),l=Math.max(...i);(o==null||a<o)&&(o=a),(s==null||l>s)&&(s=l)}var u=kA(r);u!=null&&(o=o==null?u[0]:Math.min(o,u[0]),s=s==null?u[1]:Math.max(s,u[1]))})}),t?.dataKey!=null&&n.length===0&&e.forEach(e=>{var n=kA(X(e,t.dataKey));n!=null&&(o=o==null?n[0]:Math.min(o,n[0]),s=s==null?n[1]:Math.max(s,n[1]))}),Y(o)&&Y(s))return[o,s]},Oj=J([cj,qA,rj,wj,pw,oC],Dj,{memoizeOptions:{resultEqualityCheck:Cw}}),kj=(e,t,n)=>{var r=e.map(PA).filter(e=>e!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&Nf(r))?(0,LA.default)(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},Aj=e=>e.referenceElements.dots,jj=(e,t,n)=>e.filter(e=>e.ifOverflow===`extendDomain`).filter(e=>t===`xAxis`?e.xAxisId===n:e.yAxisId===n),Mj=J([Aj,pw,hw],jj),Nj=e=>e.referenceElements.areas,Pj=J([Nj,pw,hw],jj),Fj=e=>e.referenceElements.lines,Ij=J([Fj,pw,hw],jj),Lj=(e,t)=>{if(e!=null){var n=AA(e.map(e=>t===`xAxis`?e.x:e.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Rj=J(Mj,pw,Lj),zj=(e,t)=>{if(e!=null){var n=AA(e.flatMap(e=>[t===`xAxis`?e.x1:e.y1,t===`xAxis`?e.x2:e.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Bj=J([Pj,pw],zj),Vj=(e,t)=>{if(e!=null){var n=e.flatMap(e=>t===`xAxis`?FA(e):hoe(e));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},Hj=J(Rj,J([Ij,pw],Vj),Bj,(e,t,n)=>Ej(e,n,t)),Uj=(e,t,n,r,i,a,o,s)=>n??Tre(t,o===`vertical`&&s===`xAxis`||o===`horizontal`&&s===`yAxis`?Ej(r,a,i):Ej(a,i),e.allowDataOverflow),Wj=J([qA,xj,Sj,Cj,Oj,Hj,Z,pw],Uj,{memoizeOptions:{resultEqualityCheck:Cw}}),Gj=[0,1],Kj=(e,t,n,r,i,a,o)=>{if(!((e==null||n==null||n.length===0)&&o===void 0)){var{dataKey:s,type:c}=e,l=g_(t,a);return l&&s==null?(0,LA.default)(0,n?.length??0):c===`category`?kj(r,e,l):i===`expand`&&!l?Gj:o}},qj=J([qA,Z,cj,dj,AC,pw,Wj],Kj),Jj=J([qA,XA,MC],yA),Yj=(e,t,n)=>{var{niceTicks:r}=t;if(r!==`none`){var i=bj(t),a=Array.isArray(i)&&(i[0]===`auto`||i[1]===`auto`);if((r===`snap125`||r===`adaptive`)&&t!=null&&t.tickCount&&uC(e)){if(a)return wC(e,t.tickCount,t.allowDecimals,r);if(t.type===`number`)return TC(e,t.tickCount,t.allowDecimals,r)}if(r===`auto`&&n===`linear`&&t!=null&&t.tickCount){if(a&&uC(e))return wC(e,t.tickCount,t.allowDecimals,`adaptive`);if(t.type===`number`&&uC(e))return TC(e,t.tickCount,t.allowDecimals,`adaptive`)}}},Xj=J([qj,YA,Jj],Yj),Zj=(e,t,n,r)=>{if(r!==`angleAxis`&&e?.type===`number`&&uC(t)&&Array.isArray(n)&&n.length>0){var i=t[0],a=n[0]??0,o=t[1],s=n[n.length-1]??0;return[Math.min(i,a),Math.max(o,s)]}return t},Qj=J([qA,qj,Xj,pw],Zj),$j=J(dj,qA,(e,t)=>{if(!(!t||t.type!==`number`)){var n=1/0,r=Array.from(AA(e.map(e=>e.value))).sort((e,t)=>e-t),i=r[0],a=r[r.length-1];if(i==null||a==null)return 1/0;var o=a-i;if(o===0)return 1/0;for(var s=0;s<r.length-1;s++){var c=r[s],l=r[s+1];if(!(c==null||l==null)){var u=l-c;n=Math.min(n,u)}}return n/o}}),eM=J($j,Z,OC,X_,(e,t,n,r,i)=>i,(e,t,n,r,i)=>{if(!Y(e))return 0;var a=t===`vertical`?r.height:r.width;if(i===`gap`)return e*a/2;if(i===`no-gap`){var o=Mf(n,e*a),s=e*a/2;return s-o-(s-o)/a*o}return 0}),tM=(e,t,n)=>{var r=VA(e,t);return r==null||typeof r.padding!=`string`?0:eM(e,`xAxis`,t,n,r.padding)},nM=(e,t,n)=>{var r=WA(e,t);return r==null||typeof r.padding!=`string`?0:eM(e,`yAxis`,t,n,r.padding)},rM=J(VA,tM,(e,t)=>{if(e==null)return{left:0,right:0};var{padding:n}=e;return typeof n==`string`?{left:t,right:t}:{left:(n.left??0)+t,right:(n.right??0)+t}}),iM=J(WA,nM,(e,t)=>{if(e==null)return{top:0,bottom:0};var{padding:n}=e;return typeof n==`string`?{top:t,bottom:t}:{top:(n.top??0)+t,bottom:(n.bottom??0)+t}}),aM=J([X_,rM,av,iv,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:a}=r;return i?[a.left,n.width-a.right]:[e.left+t.left,e.left+e.width-t.right]}),oM=J([X_,Z,iM,av,iv,(e,t,n)=>n],(e,t,n,r,i,a)=>{var{padding:o}=i;return a?[r.height-o.bottom,o.top]:t===`horizontal`?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),sM=(e,t,n,r)=>{switch(t){case`xAxis`:return aM(e,n,r);case`yAxis`:return oM(e,n,r);case`zAxis`:return KA(e,n)?.range;case`angleAxis`:return sw(e);case`radiusAxis`:return lw(e,n);default:return}},cM=J([qA,sM],WC),lM=J([Jj,Qj],Pw),uM=J([qA,Jj,lM,cM],_A),dM=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:a}=n;if(g_(e,r)&&(i===`number`||a!==`auto`))return t.map(e=>e.value)}},fM=J([Z,dj,YA,pw],dM),pM=J([uM],Mw),J([uM],foe),J([uM,fj],xA),J([ej,wj,pw],Tj),mM=(e,t)=>t,hM=(e,t,n)=>n,gM=J(B_,mM,hM,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(IA)),_M=J(V_,mM,hM,(e,t,n)=>e.filter(e=>e.orientation===t).filter(e=>e.mirror===n).sort(IA)),vM=(e,t)=>({width:e.width,height:t.height}),yM=(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height}),bM=J(X_,VA,vM),xM=(e,t,n)=>{switch(t){case`top`:return e.top;case`bottom`:return n-e.bottom;default:return 0}},SM=(e,t,n)=>{switch(t){case`left`:return e.left;case`right`:return n-e.right;default:return 0}},CM=J(I_,X_,gM,mM,hM,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=vM(t,n);o??=xM(t,r,e);var c=r===`top`&&!i||r===`bottom`&&i;a[n.id]=o-Number(c)*s.height,o+=(c?-1:1)*s.height}),a}),wM=J(F_,X_,_M,mM,hM,(e,t,n,r,i)=>{var a={},o;return n.forEach(n=>{var s=yM(t,n);o??=SM(t,r,e);var c=r===`left`&&!i||r===`right`&&i;a[n.id]=o-Number(c)*s.width,o+=(c?-1:1)*s.width}),a}),TM=(e,t)=>{var n=VA(e,t);if(n!=null)return CM(e,n.orientation,n.mirror)},EM=J([X_,VA,TM,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:e.left,y:0}:{x:e.left,y:i}}}),DM=(e,t)=>{var n=WA(e,t);if(n!=null)return wM(e,n.orientation,n.mirror)},OM=J([X_,WA,DM,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var i=n?.[r];return i==null?{x:0,y:e.top}:{x:i,y:e.top}}}),kM=J(X_,WA,(e,t)=>({width:typeof t.width==`number`?t.width:60,height:e.height})),AM=(e,t,n)=>{switch(t){case`xAxis`:return bM(e,n).width;case`yAxis`:return kM(e,n).height;default:return}},jM=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:a,dataKey:o}=n,s=g_(e,r),c=t.map(e=>e.value),l=c.filter(e=>e!=null);if(o&&s&&a===`category`&&i&&Nf(l))return c}},MM=J([Z,dj,qA,pw],jM),NM=J([Z,JA,Jj,pM,MM,fM,sM,Xj,pw],(e,t,n,r,i,a,o,s,c)=>{if(t!=null){var l=g_(e,c);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:c,categoricalDomain:a,duplicateDomain:i,isCategorical:l,niceTicks:s,range:o,realScaleType:n,scale:r}}}),PM=(e,t,n,r,i,a,o,s,c)=>{if(!(t==null||r==null)){var l=g_(e,c),{type:u,ticks:d,tickCount:f}=t,p=n===`scaleBand`&&typeof r.bandwidth==`function`?r.bandwidth()/2:2,m=u===`category`&&r.bandwidth?r.bandwidth()/p:0;m=c===`angleAxis`&&a!=null&&a.length>=2?Ef(a[0]-a[1])*2*m:m;var h=d||i;return h?h.map((e,t)=>{var n=o?o.indexOf(e):e,i=r.map(n);return Y(i)?{index:t,coordinate:i+m,value:e,offset:m}:null}).filter(Cf):l&&s?s.map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Cf):r.ticks?r.ticks(f).map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:e,index:t,offset:m}:null}).filter(Cf):r.domain().map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+m,value:o?o[e]:e,index:t,offset:m}:null}).filter(Cf)}},FM=J([Z,YA,Jj,pM,Xj,sM,MM,fM,pw],PM),IM=(e,t,n,r,i,a,o)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=g_(e,o),{tickCount:c}=t,l=0;return l=o===`angleAxis`&&r?.length>=2?Ef(r[0]-r[1])*2*l:l,s&&a?a.map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Cf):n.ticks?n.ticks(c).map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:e,index:t,offset:l}:null}).filter(Cf):n.domain().map((e,t)=>{var r=n.map(e);return Y(r)?{coordinate:r+l,value:i?i[e]:e,index:t,offset:l}:null}).filter(Cf)}},LM=J([Z,YA,pM,sM,MM,fM,pw],IM),RM=J(qA,pM,(e,t)=>{if(!(e==null||t==null))return wA(wA({},e),{},{scale:t})}),zM=J([J([qA,Jj,qj,cM],_A)],Mw),BM=J((e,t,n)=>KA(e,n),zM,(e,t)=>{if(!(e==null||t==null))return wA(wA({},e),{},{scale:t})}),VM=J([Z,B_,V_],(e,t,n)=>{switch(e){case`horizontal`:return t.some(e=>e.reversed)?`right-to-left`:`left-to-right`;case`vertical`:return n.some(e=>e.reversed)?`bottom-to-top`:`top-to-bottom`;case`centric`:case`radial`:return`left-to-right`;default:return}}),HM=(e,t,n)=>e.renderedTicks[t]?.[n],J([HM],e=>{if(!(!e||e.length===0))return t=>{var n=1/0,r=e[0];for(var i of e){var a=Math.abs(i.coordinate-t);a<n&&(n=a,r=i)}return r?.value}})}));function WM(e,t,n){if(e==null)return t;var r=e?`axis`:`item`;return n==null?t:n.includes(r)?r:t}function GM(e,t){return WM(t,qM(e),JM(e))}function KM(e){return q(t=>GM(t,e))}var qM,JM,YM=o((()=>{Jp(),qM=e=>e.options.defaultTooltipEventType,JM=e=>e.options.validateTooltipEventTypes})),XM,ZM=o((()=>{K(),XM=(e,t)=>{var n,r=Number(t);if(!(Df(r)||t==null))return r>=0?e==null||(n=e[r])==null?void 0:n.value:void 0}})),QM,goe=o((()=>{QM=e=>e.tooltip.settings})),$M,eN,tN,nN,rN,iN,aN,oN,sN,cN,lN,uN,dN,fN,pN,mN,hN=o((()=>{Yg(),Ly(),$M={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},eN={itemInteraction:{click:$M,hover:$M},axisInteraction:{click:$M,hover:$M},keyboardInteraction:$M,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:`hover`,axisId:0,active:!1,defaultIndex:void 0}},tN=hg({name:`tooltip`,initialState:eN,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(Cy(t.payload))},prepare:cg()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Qm(e).tooltipItemPayloads.indexOf(Cy(n));i>-1&&(e.tooltipItemPayloads[i]=Cy(r))},prepare:cg()},removeTooltipEntrySettings:{reducer(e,t){var n=Qm(e).tooltipItemPayloads.indexOf(Cy(t.payload));n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:cg()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.syncInteraction.sourceViewBox=void 0,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:nN,replaceTooltipEntrySettings:rN,removeTooltipEntrySettings:iN,setTooltipSettingsState:aN,setActiveMouseOverItemIndex:oN,mouseLeaveItem:sN,mouseLeaveChart:cN,setActiveClickItemIndex:lN,setMouseOverAxisIndex:uN,setMouseClickAxisIndex:dN,setSyncInteraction:fN,setKeyboardInteraction:pN}=tN.actions,mN=tN.reducer}));function gN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gN(Object(n),!0).forEach(function(t){_oe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _oe(e,t,n){return(t=voe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function voe(e){var t=yoe(e,`string`);return typeof t==`symbol`?t:t+``}function yoe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function boe(e,t,n){return t===`axis`?n===`click`?e.axisInteraction.click:e.axisInteraction.hover:n===`click`?e.itemInteraction.click:e.itemInteraction.hover}function xoe(e){return e.index!=null}var vN,yN=o((()=>{hN(),vN=(e,t,n,r)=>{if(t==null)return $M;var i=boe(e,t,n);if(i==null)return $M;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var a=e.settings.active===!0;if(xoe(i)){if(a)return _N(_N({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return _N(_N({},$M),{},{coordinate:i.coordinate})}}));function Soe(e){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Coe(e,t){var n=Soe(e),r=t[0],i=t[1];return n===void 0?!1:n>=Math.min(r,i)&&n<=Math.max(r,i)}function woe(e,t,n){if(n==null||t==null)return!0;var r=X(e,t);return r==null||!uC(n)?!0:Coe(r,n)}var bN,xN=o((()=>{o_(),P_(),pC(),bN=(e,t,n,r)=>{var i=e?.index;if(i==null)return null;var a=Number(i);if(!Y(a))return i;var o=0,s=1/0;t.length>0&&(s=t.length-1);var c=Math.max(o,Math.min(a,s)),l=t[c];return l==null||woe(l,n,r)?String(c):null}})),SN,CN=o((()=>{SN=(e,t,n,r,i,a,o)=>{if(a!=null){var s=o[0]?.getPosition(a);if(s!=null)return s;var c=i?.[Number(a)];if(c)switch(n){case`horizontal`:return{x:c.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:c.coordinate}}}}})),wN,TN=o((()=>{wN=(e,t,n,r)=>{if(t===`axis`)return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i=n===`hover`?e.itemInteraction.hover.graphicalItemId:e.itemInteraction.click.graphicalItemId;if(e.syncInteraction.active&&i==null)return e.tooltipItemPayloads;if(i==null&&(r!=null||e.keyboardInteraction.active)){var a=e.tooltipItemPayloads[0];return a==null?[]:[a]}return e.tooltipItemPayloads.filter(e=>e.settings?.graphicalItemId===i)}})),EN,DN=o((()=>{EN=e=>e.options.tooltipPayloadSearcher})),ON,kN=o((()=>{ON=e=>e.tooltip}));function AN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AN(Object(n),!0).forEach(function(t){Toe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AN(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Toe(e,t,n){return(t=Eoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eoe(e){var t=Doe(e,`string`);return typeof t==`symbol`?t:t+``}function Doe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Ooe(e){if(typeof e==`string`||typeof e==`number`)return e}function koe(e){if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`)return e}function Aoe(e){if(typeof e==`string`||typeof e==`number`)return e;if(typeof e==`function`)return t=>e(t)}function MN(e){if(typeof e==`string`)return e}function joe(e){if(!(typeof e!=`object`||!e))return{name:`name`in e?Ooe(e.name):void 0,unit:`unit`in e?koe(e.unit):void 0,dataKey:`dataKey`in e?Aoe(e.dataKey):void 0,payload:`payload`in e?e.payload:void 0,color:`color`in e?MN(e.color):void 0,fill:`fill`in e?MN(e.fill):void 0}}function Moe(e,t){return e??t}var NN,PN=o((()=>{K(),P_(),i_(),NN=(e,t,n,r,i,a,o)=>{if(!(t==null||a==null)){var{chartData:s,computedData:c,dataStartIndex:l,dataEndIndex:u}=n;return e.reduce((e,n)=>{var{dataDefinedOnItem:d,settings:f}=n,p=Moe(d,s),m=Array.isArray(p)?r_(p,l,u):p,h=f?.dataKey??r,g=f?.nameKey,_=r&&Array.isArray(m)&&!Array.isArray(m[0])&&o===`axis`?Sf(m,r,i):a(m,t,c,g);return Array.isArray(_)?_.forEach(t=>{var n=joe(t),r=n?.name,i=n?.dataKey,a=n?.payload,o=jN(jN({},f),{},{name:r,unit:n?.unit,color:n?.color??f?.color,fill:n?.fill??f?.fill});e.push(d_({tooltipEntrySettings:o,dataKey:i,payload:a,value:X(a,i),name:r==null?void 0:String(r)}))}):e.push(d_({tooltipEntrySettings:f,dataKey:h,payload:_,value:X(_,h),name:X(_,g)??f?.name})),e},[])}}})),FN,IN,LN,RN,zN,BN,VN,HN,UN,WN,GN,KN,qN,JN,YN,XN,ZN,QN,$N,eP,tP,nP,rP,iP,aP,oP,sP,cP,lP,uP,dP,fP,pP,mP,hP,gP,_P,vP,yP,bP,xP,SP,CP=o((()=>{rm(),UM(),Wv(),P_(),lC(),LC(),K(),GC(),YM(),ZM(),goe(),yN(),xN(),CN(),z_(),$_(),TN(),DN(),kN(),PN(),jw(),kw(),bw(),Sw(),pC(),ww(),Dw(),Nw(),o_(),bA(),vA(),FN=J([pj,XA,MC],yA),IN=J([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),LN=J([Ow,Aw],DA),RN=J([IN,pj,LN],$A,{memoizeOptions:{resultEqualityCheck:Tw}}),zN=J([RN],e=>e.filter(xw)),BN=J([RN],ij,{memoizeOptions:{resultEqualityCheck:Tw}}),VN=J([RN],e=>e.some(e=>!e.data)),HN=J([BN,nC],sj),UN=J([zN,nC,pj],yw),WN=J([HN,pj,RN,nC,VN,BN],uj),GN=J([pj],bj),KN=J([GN,J([pj],e=>e.allowDataOverflow)],fC),qN=J([J([UN,J([RN],e=>e.filter(xw)),AC,jC],gj),nC,Ow,KN],vj),JN=J([HN,pj,J([RN],nj),wj,Ow,cC],Dj,{memoizeOptions:{resultEqualityCheck:Cw}}),YN=J([J([Aj,Ow,Aw],jj),Ow],Lj),XN=J([J([Nj,Ow,Aw],jj),Ow],zj),ZN=J([pj,GN,KN,qN,JN,J([YN,J([J([Fj,Ow,Aw],jj),Ow],Vj),XN],Ej),Z,Ow],Uj),QN=J([pj,Z,HN,WN,AC,Ow,ZN],Kj),$N=J([QN,pj,FN],Yj),eP=J([pj,QN,$N,Ow],Zj),tP=e=>sM(e,Ow(e),Aw(e),!1),nP=J([pj,tP],WC),rP=J([pj,FN,eP,nP],_A),iP=J([rP],Mw),aP=J([Z,WN,pj,Ow],jM),oP=J([Z,WN,pj,Ow],dM),sP=(e,t,n,r,i,a,o,s)=>{if(t){var{type:c}=t,l=g_(e,s);if(r){var u=n===`scaleBand`&&r.bandwidth?r.bandwidth()/2:2,d=c===`category`&&r.bandwidth?r.bandwidth()/u:0;return d=s===`angleAxis`&&i!=null&&i?.length>=2?Ef(i[0]-i[1])*2*d:d,l&&o?o.map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+d,value:e,index:t,offset:d}:null}).filter(Cf):r.domain().map((e,t)=>{var n=r.map(e);return Y(n)?{coordinate:n+d,value:a?a[e]:e,index:t,offset:d}:null}).filter(Cf)}}},cP=J([Z,pj,FN,iP,tP,aP,oP,Ow],sP),lP=J([qM,JM,QM],(e,t,n)=>WM(n.shared,e,t)),uP=e=>e.tooltip.settings.trigger,dP=e=>e.tooltip.settings.defaultIndex,fP=J([ON,lP,uP,dP],vN),pP=J([fP,HN,mj,QN],bN),mP=J([cP,pP],XM),hP=J([fP],e=>{if(e)return e.dataKey}),gP=J([fP],e=>{if(e)return e.graphicalItemId}),_P=J([ON,lP,uP,dP],wN),vP=J([F_,I_,Z,X_,cP,dP,_P],SN),yP=J([fP,vP],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),bP=J([fP],e=>e?.active??!1),xP=J([_P,pP,nC,mj,mP,EN,lP],NN),SP=J([xP],e=>{if(e!=null){var t=e.map(e=>e.payload).filter(e=>e!=null);return Array.from(new Set(t))}})}));function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function TP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wP(Object(n),!0).forEach(function(t){Noe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Noe(e,t,n){return(t=Poe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Poe(e){var t=Foe(e,`string`);return typeof t==`symbol`?t:t+``}function Foe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var EP,DP,Ioe=o((()=>{Jp(),P_(),UM(),CP(),EP=()=>q(pj),DP=()=>{var e=EP(),t=q(cP),n=q(iP);return j_(!e||!n?void 0:TP(TP({},e),{},{scale:n}),t)}}));function OP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OP(Object(n),!0).forEach(function(t){Loe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Loe(e,t,n){return(t=Roe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Roe(e){var t=zoe(e,`string`);return typeof t==`symbol`?t:t+``}function zoe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Boe(e,t){var{relativeX:n,relativeY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var AP,jP,MP,Voe=o((()=>{HS(),K(),AP=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`horizontal`)return{x:i.coordinate,y:r.relativeY};if(e===`vertical`)return{x:r.relativeX,y:i.coordinate}}return{x:0,y:0}},jP=(e,t,n,r)=>{var i=t.find(e=>e&&e.index===n);if(i){if(e===`centric`){var a=i.coordinate,{radius:o}=r;return kP(kP(kP({},r),FS(r.cx,r.cy,o,a)),{},{angle:a,radius:o})}var s=i.coordinate,{angle:c}=r;return kP(kP(kP({},r),FS(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}},MP=(e,t,n,r,i)=>{var a=t?.length??0;if(a<=1||e==null)return 0;if(r===`angleAxis`&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var o=0;o<a;o++){var s=o>0?n[o-1]?.coordinate:n[a-1]?.coordinate,c=n[o]?.coordinate,l=o>=a-1?n[0]?.coordinate:n[o+1]?.coordinate,u=void 0;if(!(s==null||c==null||l==null))if(Ef(c-s)!==Ef(l-c)){var d=[];if(Ef(l-c)===Ef(i[1]-i[0])){u=l;var f=c+i[1]-i[0];d[0]=Math.min(f,(f+s)/2),d[1]=Math.max(f,(f+s)/2)}else{u=s;var p=l+i[1]-i[0];d[0]=Math.min(c,(p+c)/2),d[1]=Math.max(c,(p+c)/2)}var m=[Math.min(c,(u+c)/2),Math.max(c,(u+c)/2)];if(e>m[0]&&e<=m[1]||e>=d[0]&&e<=d[1])return n[o]?.index}else{var h=Math.min(s,l),g=Math.max(s,l);if(e>(h+c)/2&&e<=(g+c)/2)return n[o]?.index}}else if(t)for(var _=0;_<a;_++){var v=t[_];if(v!=null){var y=t[_+1],b=t[_-1];if(_===0&&y!=null&&e<=(v.coordinate+y.coordinate)/2||_===a-1&&b!=null&&e>(v.coordinate+b.coordinate)/2||_>0&&_<a-1&&b!=null&&y!=null&&e>(v.coordinate+b.coordinate)/2&&e<=(v.coordinate+y.coordinate)/2)return v.index}}return-1}})),NP,PP,FP,IP,LP,RP,zP,BP,VP,HP,UP,WP,GP,KP,qP,JP,YP,XP,ZP=o((()=>{rm(),NP=u(om()),Jp(),P_(),lC(),CP(),UM(),LC(),Wv(),$_(),z_(),ZM(),yN(),xN(),CN(),TN(),DN(),kN(),PN(),Voe(),HS(),PP=()=>q(MC),FP=(e,t)=>t,IP=(e,t,n)=>n,LP=(e,t,n,r)=>r,RP=J(cP,e=>(0,NP.default)(e,e=>e.coordinate)),zP=J([ON,FP,IP,LP],vN),BP=J([zP,HN,mj,QN],bN),VP=(e,t,n)=>{if(t!=null){var r=ON(e);return t===`axis`?n===`hover`?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n===`hover`?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},HP=J([ON,FP,IP,LP],wN),UP=J([F_,I_,Z,X_,cP,LP,HP],SN),WP=J([zP,UP],(e,t)=>e.coordinate??t),GP=J([cP,BP],XM),KP=J([HP,BP,nC,mj,GP,EN,FP],NN),qP=J([zP,BP],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),JP=(e,t,n,r,i,a,o)=>{if(!(!e||!n||!r||!i)&&Boe(e,o)){var s=MP(M_(e,t),a,i,n,r),c=AP(t,i,s,e);return{activeIndex:String(s),activeCoordinate:c}}},YP=(e,t,n,r,i,a,o)=>{if(!(!e||!r||!i||!a||!n)){var s=VS(e,n);if(s){var c=MP(N_(s,t),o,a,r,i),l=jP(t,a,c,s);return{activeIndex:String(c),activeCoordinate:l}}}},XP=(e,t,n,r,i,a,o,s)=>{if(!(!e||!t||!r||!i||!a))return t===`horizontal`||t===`vertical`?JP(e,t,r,i,a,o,s):YP(e,t,n,r,i,a,o)}})),QP,$P,eF=o((()=>{rm(),Dw(),zC(),QP=J(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),$P=J(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(e=>parseInt(e,10)).concat(Object.values(RC));return Array.from(new Set(t)).sort((e,t)=>e-t)},{memoizeOptions:{resultEqualityCheck:Ew}})}));function tF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?tF(Object(n),!0).forEach(function(t){Hoe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tF(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Hoe(e,t,n){return(t=Uoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uoe(e){var t=Woe(e,`string`);return typeof t==`symbol`?t:t+``}function Woe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Goe(e){return iF.has(e)}var rF,iF,aF,oF,sF,cF,lF,uF,dF=o((()=>{Yg(),Ly(),zC(),rF={zIndexMap:Object.values(RC).reduce((e,t)=>nF(nF({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),{})},iF=new Set(Object.values(RC)),aF=hg({name:`zIndex`,initialState:rF,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:cg()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(--e.zIndexMap[n].consumers,e.zIndexMap[n].consumers<=0&&!Goe(n)&&delete e.zIndexMap[n])},prepare:cg()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:i}=t.payload;e.zIndexMap[n]?i?e.zIndexMap[n].panoramaElement=Cy(r):e.zIndexMap[n].element=Cy(r):e.zIndexMap[n]={consumers:0,element:i?void 0:Cy(r),panoramaElement:i?Cy(r):void 0}},prepare:cg()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:cg()}}}),{registerZIndexPortal:oF,unregisterZIndexPortal:sF,registerZIndexPortalElement:cF,unregisterZIndexPortalElement:lF}=aF.actions,uF=aF.reducer}));function fF(e){var{zIndex:t,children:n}=e,r=Vv()&&t!==void 0&&t!==0,i=nv(),a=(0,pF.useRef)(void 0),o=(0,pF.useRef)(new Set),s=Wp(),c=q(e=>QP(e,t,i));if((0,pF.useLayoutEffect)(()=>{if(!r){var e=o.current;e.forEach(e=>{s(sF({zIndex:e}))}),e.clear(),a.current=void 0;return}if(o.current.has(t)||(s(oF({zIndex:t})),o.current.add(t)),c){a.current=c;var n=o.current;n.forEach(e=>{e!==t&&(s(sF({zIndex:e})),n.delete(e))})}},[s,t,r,c]),(0,pF.useLayoutEffect)(()=>{var e=o.current;return()=>{e.forEach(e=>{s(sF({zIndex:e}))}),e.clear()}},[s]),!r)return n;var l=c??a.current;return l?(0,mF.createPortal)(n,l):null}var pF,mF,hF=o((()=>{pF=u(f()),mF=g(),Jp(),eF(),dF(),Wv(),rv()}));function gF(){return gF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gF.apply(null,arguments)}function _F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_F(Object(n),!0).forEach(function(t){yF(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yF(e,t,n){return(t=bF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bF(e){var t=xF(e,`string`);return typeof t==`symbol`?t:t+``}function xF(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function SF(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return(0,EF.isValidElement)(t)?(0,EF.cloneElement)(t,r):(0,EF.createElement)(n,r)}function CF(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:a,layout:o,cursor:s,tooltipEventType:c,chartName:l}=e,u=t,d=n,f=r;if(!s||!u||l!==`ScatterChart`&&c!==`axis`)return null;var p,m,h;if(l===`ScatterChart`)p=u,m=vx,h=RC.cursorLine;else if(l===`BarChart`)p=Jne(o,u,i,a),m=OS,h=RC.cursorRectangle;else if(o===`radial`&&Zf(u)){var{cx:g,cy:_,radius:v,startAngle:y,endAngle:b}=US(u);p={cx:g,cy:_,startAngle:y,endAngle:b,innerRadius:v,outerRadius:v},m=$S,h=RC.cursorLine}else p={points:bre(o,u,i)},m=dx,h=RC.cursorLine;var x=typeof s==`object`&&`className`in s?s.className:void 0,S=vF(vF(vF(vF({stroke:`#ccc`,pointerEvents:`none`},i),p),ru(s)),{},{payload:d,payloadIndex:f,className:H(`recharts-tooltip-cursor`,x)});return TF.createElement(fF,{zIndex:e.zIndex??h},TF.createElement(SF,{cursor:s,cursorComp:m,cursorProps:S}))}function wF(e){var t=DP(),n=Nv(),r=Lv(),i=PP();return t==null||n==null||r==null||i==null?null:TF.createElement(CF,gF({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var TF,EF,DF=o((()=>{TF=u(f()),EF=u(f()),Xl(),np(),fx(),qne(),Yne(),kS(),WS(),eC(),xre(),Wv(),Ioe(),ZP(),ou(),hF(),zC()})),OF,kF,AF,jF=o((()=>{OF=u(f()),kF=(0,OF.createContext)(null),AF=()=>(0,OF.useContext)(kF)})),MF=s(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),NF,PF,FF=o((()=>{NF=u(MF(),1),PF=NF.default})),IF,LF,RF,zF=o((()=>{FF(),IF=new PF,LF=`recharts.syncEvent.tooltip`,RF=`recharts.syncEvent.brush`})),BF,VF,HF,UF,WF=o((()=>{Yg(),K(),BF=(e,t)=>{if(t&&Array.isArray(e)){var n=Number.parseInt(t,10);if(!Df(n))return e[n]}},VF=hg({name:`options`,initialState:{chartName:``,tooltipPayloadSearcher:()=>void 0,eventEmitter:void 0,defaultTooltipEventType:`axis`},reducers:{createEventEmitter:e=>{e.eventEmitter??=Symbol(`rechartsEventEmitter`)}}}),HF=VF.reducer,{createEventEmitter:UF}=VF.actions}));function GF(e){return e.tooltip.syncInteraction}var KF=o((()=>{})),qF,JF,YF,XF,ZF,QF,$F=o((()=>{Yg(),Ly(),qF={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},JF=hg({name:`chartData`,initialState:qF,reducers:{setChartData(e,t){if(e.chartData=Cy(t.payload),t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:YF,setDataStartEndIndexes:XF,setComputedData:ZF}=JF.actions,QF=JF.reducer}));function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eI(Object(n),!0).forEach(function(t){nI(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nI(e,t,n){return(t=rI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rI(e){var t=iI(e,`string`);return typeof t==`symbol`?t:t+``}function iI(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aI(e,t){if(e==null)return{};var n,r,i=oI(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oI(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sI(){var e=q(NC),t=q(FC),n=Wp(),r=q(PC),i=q(cP),a=Lv(),o=jv();(0,dI.useEffect)(()=>{if(e==null)return wf;var s=(s,c,l)=>{if(t!==l&&e===s){if(c.payload.active===!1){n(fN({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(r===`index`){var u;if(o&&c!=null&&(u=c.payload)!=null&&u.coordinate&&c.payload.sourceViewBox){var d=c.payload.coordinate,{x:f,y:p}=d,m=aI(d,fI),{x:h,y:g,width:_,height:v}=c.payload.sourceViewBox,y=tI(tI({},m),{},{x:o.x+(_?(f-h)/_:0)*o.width,y:o.y+(v?(p-g)/v:0)*o.height});n(tI(tI({},c),{},{payload:tI(tI({},c.payload),{},{coordinate:y})}))}else n(c);return}if(i!=null){var b;typeof r==`function`?b=i[r(i,{activeTooltipIndex:c.payload.index==null?void 0:Number(c.payload.index),isTooltipActive:c.payload.active,activeIndex:c.payload.index==null?void 0:Number(c.payload.index),activeLabel:c.payload.label,activeDataKey:c.payload.dataKey,activeCoordinate:c.payload.coordinate})]:r===`value`&&(b=i.find(e=>String(e.value)===c.payload.label));var{coordinate:x}=c.payload;if(x==null||o==null){n(fN({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}if(b==null){n(fN({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:void 0}));return}var{x:S,y:C}=x,w=Math.min(S,o.x+o.width),T=Math.min(C,o.y+o.height),E={x:a===`horizontal`?b.coordinate:w,y:a===`horizontal`?T:b.coordinate};n(fN({active:c.payload.active,coordinate:E,dataKey:c.payload.dataKey,index:String(b.index),label:c.payload.label,sourceViewBox:c.payload.sourceViewBox,graphicalItemId:c.payload.graphicalItemId}))}}};return IF.on(LF,s),()=>{IF.off(LF,s)}},[q(e=>e.rootProps.className),n,t,e,r,i,a,o])}function cI(){var e=q(NC),t=q(FC),n=Wp();(0,dI.useEffect)(()=>{if(e==null)return wf;var r=(r,i,a)=>{t!==a&&e===r&&n(XF(i))};return IF.on(RF,r),()=>{IF.off(RF,r)}},[n,t,e])}function lI(){var e=Wp();(0,dI.useEffect)(()=>{e(UF())},[e]),sI(),cI()}function uI(e,t,n,r,i,a){var o=q(n=>VP(n,e,t)),s=q(gP),c=q(FC),l=q(NC),u=q(PC),d=q(GF)?.sourceViewBox!=null,f=jv();(0,dI.useEffect)(()=>{if(!d&&l!=null&&c!=null){var e=fN({active:a,coordinate:n,dataKey:o,index:i,label:typeof r==`number`?String(r):r,sourceViewBox:f,graphicalItemId:s});IF.emit(LF,l,e,c)}},[d,n,o,s,i,r,c,l,u,a,f])}var dI,fI,pI=o((()=>{dI=u(f()),Jp(),LC(),zF(),WF(),hN(),ZP(),CP(),KF(),Wv(),$F(),K(),fI=[`x`,`y`]}));function mI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?mI(Object(n),!0).forEach(function(t){Koe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Koe(e,t,n){return(t=qoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qoe(e){var t=Joe(e,`string`);return typeof t==`symbol`?t:t+``}function Joe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Yoe(e){return e.dataKey}function Xoe(e,t){return _I.isValidElement(e)?_I.cloneElement(e,t):typeof e==`function`?_I.createElement(e,t):_I.createElement(Lb,t)}function gI(e){var t=ip(e,xI),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:a,content:o,filterNull:s,isAnimationActive:c,offset:l,payloadUniqBy:u,position:d,reverseDirection:f,useTranslate3d:p,wrapperStyle:m,cursor:h,shared:g,trigger:_,defaultIndex:v,portal:y,axisId:b}=t,x=Wp(),S=typeof v==`number`?String(v):v;(0,vI.useEffect)(()=>{x(aN({shared:g,trigger:_,axisId:b,active:n,defaultIndex:S}))},[x,g,_,b,n,S]);var C=jv(),w=Zb(),T=KM(g),{activeIndex:E,isActive:D}=q(e=>qP(e,T,_,S))??{},O=q(e=>KP(e,T,_,S)),k=q(e=>GP(e,T,_,S)),A=q(e=>WP(e,T,_,S)),j=O,M=AF(),N=n??D??!1,[ee,te]=hm([j,N]),ne=T===`axis`?k:void 0;uI(T,_,A,ne,E,N);var re=y??M;if(re==null||C==null||T==null)return null;var ie=j??bI;N||(ie=bI),s&&ie.length&&(ie=jp(ie.filter(e=>e.value!=null&&(e.hide!==!0||t.includeHidden)),u,Yoe));var ae=ie.length>0,oe=hI(hI({},t),{},{payload:ie,label:ne,active:N,activeIndex:E,coordinate:A,accessibilityLayer:w}),se=_I.createElement(Xb,{allowEscapeViewBox:r,animationDuration:i,animationEasing:a,isAnimationActive:c,active:N,coordinate:A,hasPayload:ae,offset:l,position:d,reverseDirection:f,useTranslate3d:p,viewBox:C,wrapperStyle:m,lastBoundingBox:ee,innerRef:te,hasPortalFromProps:!!y},Xoe(o,oe));return _I.createElement(_I.Fragment,null,(0,yI.createPortal)(se,re),N&&_I.createElement(wF,{cursor:h,tooltipEventType:T,coordinate:A,payload:ie,index:E}))}var _I,vI,yI,bI,xI,Zoe=o((()=>{_I=u(f()),vI=u(f()),yI=g(),Dne(),Lne(),Np(),Wv(),Qb(),vm(),DF(),ZP(),jF(),Jp(),hN(),pI(),YM(),ap(),bI=[],xI={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:`ease`,axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:`auto`,itemSorter:`name`,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:` : `,trigger:`hover`,useTranslate3d:!1,wrapperStyle:{}}})),SI,CI=o((()=>{SI=e=>null,SI.displayName=`Cell`}));function Qoe(e,t,n){return(t=$oe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e){var t=ese(e,`string`);return typeof t==`symbol`?t:t+``}function ese(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wI,tse=o((()=>{wI=class{constructor(e){Qoe(this,`cache`,new Map),this.maxSize=e}get(e){var t=this.cache.get(e);return t!==void 0&&(this.cache.delete(e),this.cache.set(e,t)),t}set(e,t){if(this.cache.has(e))this.cache.delete(e);else if(this.cache.size>=this.maxSize){var n=this.cache.keys().next().value;n!=null&&this.cache.delete(n)}this.cache.set(e,t)}clear(){this.cache.clear()}size(){return this.cache.size}}}));function TI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TI(Object(n),!0).forEach(function(t){rse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rse(e,t,n){return(t=ise(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ise(e){var t=ase(e,`string`);return typeof t==`symbol`?t:t+``}function ase(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ose(e,t){return`${e}|${t.fontSize||``}|${t.fontFamily||``}|${t.fontWeight||``}|${t.fontStyle||``}|${t.letterSpacing||``}|${t.textTransform||``}`}var EI,DI,OI,kI,AI,jI,MI=o((()=>{Ub(),tse(),EI=nse({},{cacheSize:2e3,enableCache:!0}),DI=new wI(EI.cacheSize),OI={position:`absolute`,top:`-20000px`,left:0,padding:0,margin:0,border:`none`,whiteSpace:`pre`},kI=`recharts_measurement_span`,AI=(e,t)=>{try{var n=document.getElementById(kI);n||(n=document.createElement(`span`),n.setAttribute(`id`,kI),n.setAttribute(`aria-hidden`,`true`),document.body.appendChild(n)),Object.assign(n.style,OI,t),n.textContent=`${e}`;var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},jI=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e==null||Hb.isSsr)return{width:0,height:0};if(!EI.enableCache)return AI(e,t);var n=ose(e,t),r=DI.get(n);if(r)return r;var i=AI(e,t);return DI.set(n,i),i}}));function sse(e,t,n){return(t=cse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cse(e){var t=lse(e,`string`);return typeof t==`symbol`?t:t+``}function lse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function use(e){return VI.includes(e)}function dse(e,t){return e*BI[t]}function NI(e){if(e==null||e.includes(HI))return HI;for(var t=e;t.includes(`*`)||t.includes(`/`);){var[,n,r,i]=II.exec(t)??[],a=UI.parse(n??``),o=UI.parse(i??``),s=r===`*`?a.multiply(o):a.divide(o);if(s.isNaN())return HI;t=t.replace(II,s.toString())}for(;t.includes(`+`)||/.-\d+(?:\.\d+)?/.test(t);){var[,c,l,u]=LI.exec(t)??[],d=UI.parse(c??``),f=UI.parse(u??``),p=l===`+`?d.add(f):d.subtract(f);if(p.isNaN())return HI;t=t.replace(LI,p.toString())}return t}function fse(e){for(var t=e,n;(n=WI.exec(t))!=null;){var[,r]=n;t=t.replace(WI,NI(r))}return t}function pse(e){var t=e.replace(/\s+/g,``);return t=fse(t),t=NI(t),t}function mse(e){try{return pse(e)}catch{return HI}}function PI(e){var t=mse(e.slice(5,-1));return t===HI?``:t}var FI,II,LI,RI,zI,BI,VI,HI,UI,WI,hse=o((()=>{K(),II=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,LI=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,RI=/^(px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q)$/,zI=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,BI={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},VI=[`cm`,`mm`,`pt`,`pc`,`in`,`Q`,`px`],HI=`NaN`,UI=class e{static parse(t){var[,n,r]=zI.exec(t)??[];return n==null?e.NaN:new e(parseFloat(n),r??``)}constructor(e,t){this.num=e,this.unit=t,this.num=e,this.unit=t,Df(e)&&(this.unit=``),t!==``&&!RI.test(t)&&(this.num=NaN,this.unit=``),use(t)&&(this.num=dse(e,t),this.unit=`px`)}add(t){return this.unit===t.unit?new e(this.num+t.num,this.unit):new e(NaN,``)}subtract(t){return this.unit===t.unit?new e(this.num-t.num,this.unit):new e(NaN,``)}multiply(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==``&&t.unit!==``&&this.unit!==t.unit?new e(NaN,``):new e(this.num/t.num,this.unit||t.unit)}toString(){return`${this.num}${this.unit}`}isNaN(){return Df(this.num)}},FI=UI,sse(UI,`NaN`,new FI(NaN,``)),WI=/\(([^()]*)\)/}));function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GI.apply(null,arguments)}function KI(e,t){if(e==null)return{};var n,r,i=gse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function qI(e){return e===`start`||e===`middle`||e===`end`||e===`inherit`}function _se(e){return Ff(e)||typeof e==`string`||typeof e==`number`||typeof e==`boolean`}var JI,YI,XI,ZI,QI,$I,eL,tL,nL,rL,iL,aL,oL,sL,cL,lL,uL=o((()=>{JI=u(f()),YI=u(f()),Xl(),K(),Ub(),MI(),hse(),uu(),ap(),o_(),XI=[`x`,`y`,`lineHeight`,`capHeight`,`fill`,`scaleToFit`,`textAnchor`,`verticalAnchor`],ZI=[`dx`,`dy`,`angle`,`className`,`breakAll`],QI=/[ \f\n\r\t\v\u2028\u2029]+/,$I=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];return Ff(t)||(i=n?t.toString().split(``):t.toString().split(QI)),{wordsWithComputedWidth:i.map(e=>({word:e,width:jI(e,r).width})),spaceWidth:n?0:jI(`\xA0`,r).width}}catch{return null}},eL=(e,t,n,r)=>e.reduce((e,i)=>{var{word:a,width:o}=i,s=e[e.length-1];if(s&&o!=null&&(t==null||r||s.width+o+n<Number(t)))s.words.push(a),s.width+=o+n;else{var c={words:[a],width:o};e.push(c)}return e},[]),tL=e=>e.reduce((e,t)=>e.width>t.width?e:t),nL=`…`,rL=(e,t,n,r,i,a,o,s)=>{var c=$I({breakAll:n,style:r,children:e.slice(0,t)+nL});if(!c)return[!1,[]];var l=eL(c.wordsWithComputedWidth,a,o,s);return[l.length>i||tL(l).width>Number(a),l]},iL=(e,t,n,r,i)=>{var{maxLines:a,children:o,style:s,breakAll:c}=e,l=G(a),u=String(o),d=eL(t,r,n,i);if(!l||i||!(d.length>a||tL(d).width>Number(r)))return d;for(var f=0,p=u.length-1,m=0,h;f<=p&&m<=u.length-1;){var g=Math.floor((f+p)/2),[_,v]=rL(u,g-1,c,s,a,r,n,i),[y]=rL(u,g,c,s,a,r,n,i);if(!_&&!y&&(f=g+1),_&&y&&(p=g-1),!_&&y){h=v;break}m++}return h||d},aL=e=>[{words:Ff(e)?[]:e.toString().split(QI),width:void 0}],oL=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:a,maxLines:o}=e;if((t||n)&&!Hb.isSsr){var s,c,l=$I({breakAll:a,children:r,style:i});if(l){var{wordsWithComputedWidth:u,spaceWidth:d}=l;s=u,c=d}else return aL(r);return iL({breakAll:a,children:r,maxLines:o,style:i},s,c,t,!!n)}return aL(r)},sL=`#808080`,cL={angle:0,breakAll:!1,capHeight:`0.71em`,fill:sL,lineHeight:`1em`,scaleToFit:!1,textAnchor:`start`,verticalAnchor:`end`,x:0,y:0},lL=(0,YI.forwardRef)((e,t)=>{var n=ip(e,cL),{x:r,y:i,lineHeight:a,capHeight:o,fill:s,scaleToFit:c,textAnchor:l,verticalAnchor:u}=n,d=KI(n,XI),f=(0,YI.useMemo)(()=>oL({breakAll:d.breakAll,children:d.children,maxLines:d.maxLines,scaleToFit:c,style:d.style,width:d.width}),[d.breakAll,d.children,d.maxLines,c,d.style,d.width]),{dx:p,dy:m,angle:h,className:g,breakAll:_}=d,v=KI(d,ZI);if(!kf(r)||!kf(i)||f.length===0)return null;var y=Number(r)+(G(p)?p:0),b=Number(i)+(G(m)?m:0);if(!Y(y)||!Y(b))return null;var x;switch(u){case`start`:x=PI(`calc(${o})`);break;case`middle`:x=PI(`calc(${(f.length-1)/2} * -${a} + (${o} / 2))`);break;default:x=PI(`calc(${f.length-1} * -${a})`);break}var S=[],C=f[0];if(c&&C!=null){var w=C.width,{width:T}=d;S.push(`scale(${G(T)&&G(w)?T/w:1})`)}return h&&S.push(`rotate(${h}, ${y}, ${b})`),S.length&&(v.transform=S.join(` `)),JI.createElement(`text`,GI({},su(v),{ref:t,x:y,y:b,className:H(`recharts-text`,g),textAnchor:l,fill:s.includes(`url`)?sL:s}),f.map((e,t)=>{var n=e.words.join(_?``:` `);return JI.createElement(`tspan`,{x:y,dy:t===0?x:a,key:`${n}-${t}`},n)}))}),lL.displayName=`Text`}));function dL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dL(Object(n),!0).forEach(function(t){vse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vse(e,t,n){return(t=yse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yse(e){var t=bse(e,`string`);return typeof t==`symbol`?t:t+``}function bse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var pL,xse=o((()=>{K(),Wv(),pL=e=>{var{viewBox:t,position:n,offset:r=0,parentViewBox:i,clamp:a}=e,{x:o,y:s,height:c,upperWidth:l,lowerWidth:u}=kv(t),d=o,f=o+(l-u)/2,p=(d+f)/2,m=(l+u)/2,h=d+l/2,g=c>=0?1:-1,_=g*r,v=g>0?`end`:`start`,y=g>0?`start`:`end`,b=l>=0?1:-1,x=b*r,S=b>0?`end`:`start`,C=b>0?`start`:`end`,w=i;if(n===`top`){var T={x:d+l/2,y:s-_,horizontalAnchor:`middle`,verticalAnchor:v};return a&&w&&(T.height=Math.max(s-w.y,0),T.width=l),T}if(n===`bottom`){var E={x:f+u/2,y:s+c+_,horizontalAnchor:`middle`,verticalAnchor:y};return a&&w&&(E.height=Math.max(w.y+w.height-(s+c),0),E.width=u),E}if(n===`left`){var D={x:p-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`};return a&&w&&(D.width=Math.max(D.x-w.x,0),D.height=c),D}if(n===`right`){var O={x:p+m+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`};return a&&w&&(O.width=Math.max(w.x+w.width-O.x,0),O.height=c),O}var k=a&&w?{width:m,height:c}:{};return n===`insideLeft`?fL({x:p+x,y:s+c/2,horizontalAnchor:C,verticalAnchor:`middle`},k):n===`insideRight`?fL({x:p+m-x,y:s+c/2,horizontalAnchor:S,verticalAnchor:`middle`},k):n===`insideTop`?fL({x:d+l/2,y:s+_,horizontalAnchor:`middle`,verticalAnchor:y},k):n===`insideBottom`?fL({x:f+u/2,y:s+c-_,horizontalAnchor:`middle`,verticalAnchor:v},k):n===`insideTopLeft`?fL({x:d+x,y:s+_,horizontalAnchor:C,verticalAnchor:y},k):n===`insideTopRight`?fL({x:d+l-x,y:s+_,horizontalAnchor:S,verticalAnchor:y},k):n===`insideBottomLeft`?fL({x:f+x,y:s+c-_,horizontalAnchor:C,verticalAnchor:v},k):n===`insideBottomRight`?fL({x:f+u-x,y:s+c-_,horizontalAnchor:S,verticalAnchor:v},k):n&&typeof n==`object`&&(G(n.x)||Of(n.x))&&(G(n.y)||Of(n.y))?fL({x:o+Mf(n.x,m),y:s+Mf(n.y,c),horizontalAnchor:`end`,verticalAnchor:`end`},k):fL({x:h,y:s+c/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},k)}}));function mL(e,t){if(e==null)return{};var n,r,i=Sse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hL(Object(n),!0).forEach(function(t){Cse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cse(e,t,n){return(t=wse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wse(e){var t=Tse(e,`string`);return typeof t==`symbol`?t:t+``}function Tse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _L(){return _L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_L.apply(null,arguments)}function Ese(e){if(!FL(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function vL(e){var t=ip(e,IL),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=kL(),f=EL(),p=n==null?i===`center`?f:d??f:FL(n)?n:kv(n),m,h,g=Ese(p);if(!p||Ff(a)&&Ff(o)&&!(0,xL.isValidElement)(s)&&typeof s!=`function`)return null;var _=gL(gL({},t),{},{viewBox:p});if((0,xL.isValidElement)(s)){var{labelRef:v}=_;return(0,xL.cloneElement)(s,mL(_,SL))}if(typeof s==`function`){var{content:y}=_;if(m=(0,xL.createElement)(s,mL(_,CL)),(0,xL.isValidElement)(m))return m}else m=AL(t);var b=su(t);if(FL(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return NL(t,i,m,b,p);h=PL(p,t.offset,t.position)}else{if(!g)return null;var x=pL({viewBox:g,position:i,offset:t.offset,parentViewBox:FL(r)?void 0:r,clamp:!0});h=gL(gL({x:x.x,y:x.y,textAnchor:x.horizontalAnchor,verticalAnchor:x.verticalAnchor},x.width===void 0?{}:{width:x.width}),x.height===void 0?{}:{height:x.height})}return bL.createElement(fF,{zIndex:t.zIndex},bL.createElement(lL,_L({ref:u,className:H(`recharts-label`,c)},b,h,{textAnchor:qI(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}function yL(e){var{label:t,labelRef:n}=e;return LL(t,EL(),n)||null}function Dse(e){var{label:t}=e;return LL(t,kL())||null}var bL,xL,SL,CL,wL,TL,EL,DL,OL,kL,AL,jL,ML,NL,PL,FL,IL,LL,RL=o((()=>{bL=u(f()),xL=u(f()),Xl(),uL(),K(),HS(),Wv(),Jp(),fw(),ap(),uu(),hF(),zC(),xse(),SL=[`labelRef`],CL=[`content`],wL=(0,xL.createContext)(null),TL=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o,children:s}=e,c=(0,xL.useMemo)(()=>({x:t,y:n,upperWidth:r,lowerWidth:i,width:a,height:o}),[t,n,r,i,a,o]);return bL.createElement(wL.Provider,{value:c},s)},EL=()=>{var e=(0,xL.useContext)(wL),t=jv();return e||(t?kv(t):void 0)},DL=(0,xL.createContext)(null),OL=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o,clockWise:s,children:c}=e,l=(0,xL.useMemo)(()=>({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:a,endAngle:o,clockWise:s}),[t,n,r,i,a,o,s]);return bL.createElement(DL.Provider,{value:l},c)},kL=()=>{var e=(0,xL.useContext)(DL),t=q(dw);return e||t},AL=e=>{var{value:t,formatter:n}=e,r=Ff(e.children)?t:e.children;return typeof n==`function`?n(r):r},jL=e=>e!=null&&typeof e==`function`,ML=(e,t)=>Ef(t-e)*Math.min(Math.abs(t-e),360),NL=(e,t,n,r,i)=>{var{offset:a,className:o}=e,{cx:s,cy:c,innerRadius:l,outerRadius:u,startAngle:d,endAngle:f,clockWise:p}=i,m=(l+u)/2,h=ML(d,f),g=h>=0?1:-1,_,v;switch(t){case`insideStart`:_=d+g*a,v=p;break;case`insideEnd`:_=f-g*a,v=!p;break;case`end`:_=f+g*a,v=p;break;default:throw Error(`Unsupported position ${t}`)}v=h<=0?v:!v;var y=FS(s,c,m,_),b=FS(s,c,m,_+(v?1:-1)*359),x=`M${y.x},${y.y}
132
132
  A${m},${m},0,1,${v?0:1},
133
- ${b.x},${b.y}`,S=of(e.id)?$d(`recharts-radial-line-`):e.id;return N.createElement(`text`,UL({},r,{dominantBaseline:`central`,className:W(`recharts-radial-bar-label`,o)}),N.createElement(`defs`,null,N.createElement(`path`,{id:S,d:x})),N.createElement(`textPath`,{xlinkHref:`#${S}`},n))},$L=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c}=e,l=(s+c)/2;if(n===`outside`){var{x:u,y:d}=XS(r,i,o+t,l);return{x:u,y:d,textAnchor:u>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var{x:f,y:p}=XS(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},eR=e=>e!=null&&`cx`in e&&K(e.cx),tR={angle:0,offset:5,zIndex:tw.label,position:`middle`,textBreakAll:!1};function nR(e){if(!eR(e))return e;var{cx:t,cy:n,outerRadius:r}=e,i=r*2;return{x:t-r,y:n-r,width:i,upperWidth:i,lowerWidth:i,height:i}}function rR(e){var t=Ff(e,tR),{viewBox:n,parentViewBox:r,position:i,value:a,children:o,content:s,className:c=``,textBreakAll:l,labelRef:u}=t,d=JL(),f=KL(),p=n==null?i===`center`?f:d??f:eR(n)?n:Nv(n),m,h,g=nR(p);if(!p||of(a)&&of(o)&&!(0,N.isValidElement)(s)&&typeof s!=`function`)return null;var _=zL(zL({},t),{},{viewBox:p});if((0,N.isValidElement)(s)){var{labelRef:v}=_;return(0,N.cloneElement)(s,IL(_,PL))}if(typeof s==`function`){var{content:y}=_;if(m=(0,N.createElement)(s,IL(_,FL)),(0,N.isValidElement)(m))return m}else m=YL(t);var b=eu(t);if(eR(p)){if(i===`insideStart`||i===`insideEnd`||i===`end`)return QL(t,i,m,b,p);h=$L(p,t.offset,t.position)}else{if(!g)return null;var x=NL({viewBox:g,position:i,offset:t.offset,parentViewBox:eR(r)?void 0:r,clamp:!0});h=zL(zL({x:x.x,y:x.y,textAnchor:x.horizontalAnchor,verticalAnchor:x.verticalAnchor},x.width===void 0?{}:{width:x.width}),x.height===void 0?{}:{height:x.height})}return N.createElement(MF,{zIndex:t.zIndex},N.createElement(DL,UL({ref:u,className:W(`recharts-label`,c)},b,h,{textAnchor:gL(b.textAnchor)?b.textAnchor:h.textAnchor,breakAll:l}),m))}rR.displayName=`Label`;var iR=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?N.createElement(rR,UL({key:`label-implicit`},r)):Zd(e)?N.createElement(rR,UL({key:`label-implicit`,value:e},r)):(0,N.isValidElement)(e)?e.type===rR?(0,N.cloneElement)(e,zL({key:`label-implicit`},r)):N.createElement(rR,UL({key:`label-implicit`,content:e},r)):XL(e)?N.createElement(rR,UL({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?N.createElement(rR,UL({},e,{key:`label-implicit`},r)):null};function aR(e){var{label:t,labelRef:n}=e;return iR(t,KL(),n)||null}var oR=[`valueAccessor`],sR=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`];function cR(){return cR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cR.apply(null,arguments)}function lR(e,t){if(e==null)return{};var n,r,i=uR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function uR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var dR=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(_L(t))return t},fR=(0,N.createContext)(void 0),pR=fR.Provider,mR=(0,N.createContext)(void 0),hR=mR.Provider;function gR(){return(0,N.useContext)(fR)}function _R(){return(0,N.useContext)(mR)}function vR(e){var{valueAccessor:t=dR}=e,n=lR(e,oR),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=lR(n,sR),l=gR(),u=_R(),d=l||u;return!d||!d.length?null:N.createElement(MF,{zIndex:s??tw.label},N.createElement(G,{className:`recharts-label-list`},d.map((e,i)=>{var s=of(r)?t(e,i):X(e.payload,r),l=of(a)?{}:{id:`${a}-${i}`};return N.createElement(rR,cR({key:`label-${i}`},eu(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}vR.displayName=`LabelList`;function yR(e){var{label:t}=e;return t?t===!0?N.createElement(vR,{key:`labelList-implicit`}):N.isValidElement(t)||XL(t)?N.createElement(vR,{key:`labelList-implicit`,content:t}):typeof t==`object`?N.createElement(vR,cR({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}var bR=[`points`,`className`,`baseLinePoints`,`connectNulls`],xR;function SR(){return SR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SR.apply(null,arguments)}function CR(e,t){if(e==null)return{};var n,r,i=wR(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TR(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var ER=e=>e!=null&&e.x===+e.x&&e.y===+e.y,DR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];e.forEach(e=>{var n=t[t.length-1];ER(e)?n&&n.push(e):n&&n.length>0&&t.push([])});var n=e[0],r=t[t.length-1];ER(n)&&r&&r.push(n);var i=t[t.length-1];return i&&i.length<=0&&(t=t.slice(0,-1)),t},OR=(e,t)=>{var n=DR(e);t&&(n=[n.reduce((e,t)=>[...e,...t],[])]);var r=n.map(e=>e.reduce((e,t,n)=>Kd(xR||=TR([``,``,``,`,`,``]),e,n===0?`M`:`L`,t.x,t.y),``)).join(``);return n.length===1?`${r}Z`:r},kR=(e,t,n)=>{var r=OR(e,n);return`${r.slice(-1)===`Z`?r.slice(0,-1):r}L${OR(Array.from(t).reverse(),n).slice(1)}`},AR=e=>{var{points:t,className:n,baseLinePoints:r,connectNulls:i}=e,a=CR(e,bR);if(!t||!t.length)return null;var o=W(`recharts-polygon`,n);if(r&&r.length){var s=a.stroke&&a.stroke!==`none`,c=kR(t,r,i);return N.createElement(`g`,{className:o},N.createElement(`path`,SR({},eu(a),{fill:c.slice(-1)===`Z`?a.fill:`none`,stroke:`none`,d:c})),s?N.createElement(`path`,SR({},eu(a),{fill:`none`,d:OR(t,i)})):null,s?N.createElement(`path`,SR({},eu(a),{fill:`none`,d:OR(r,i)})):null)}var l=OR(t,i);return N.createElement(`path`,SR({},eu(a),{fill:l.slice(-1)===`Z`?a.fill:`none`,className:o,d:l}))};function jR(){return jR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jR.apply(null,arguments)}var MR=e=>{var{cx:t,cy:n,r,className:i}=e,a=W(`recharts-dot`,i);return K(t)&&K(n)&&K(r)?N.createElement(`circle`,jR({},Ql(e),Ef(e),{className:a,cx:t,cy:n,r})):null},NR=e=>e.graphicalItems.polarItems,PR=J([NR,uj,J([Sw,Cw],mj)],_j),FR=J([J([PR],Sj),TC],Tj),IR=J([FR,uj,PR],Dj);J([FR,uj,PR],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>({value:X(e,t.dataKey??n.dataKey),errorDomain:[]}))).filter(Boolean):t?.dataKey==null?e.map(e=>({value:e,errorDomain:[]})):e.map(e=>({value:X(e,t.dataKey),errorDomain:[]})));var LR=()=>void 0,RR=J([uj,Z,FR,IR,JC,Sw,J([uj,Gj,Kj,LR,J([FR,uj,PR,Jj,Sw,kC],Zj),LR,Z,Sw],gM)],yM);J([xM,J([uj,RR,J([RR,fj,xM],SM),Sw],wM)],Nw);var zR=fg({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Vy(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Vy(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:BR,removeRadiusAxis:VR,addAngleAxis:HR,removeAngleAxis:UR}=zR.actions,WR=zR.reducer;function GR(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}function KR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KR(Object(n),!0).forEach(function(t){JR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JR(e,t,n){return(t=YR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YR(e){var t=XR(e,`string`);return typeof t==`symbol`?t:t+``}function XR(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ZR=J([NR,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`pie`).find(e=>e.id===t)),QR=[],$R=(e,t,n)=>n?.length===0?QR:n,ez=J([TC,ZR,$R],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i=t?.data!=null&&t.data.length>0?t.data:r;if((!i||!i.length)&&n!=null&&(i=n.map(e=>qR(qR({},t.presentationProps),e.props))),i!=null)return i}}),tz=J([ez,ZR,$R],(e,t,n)=>{if(!(e==null||t==null))return e.map((e,r)=>{var i,a=X(e,t.nameKey,t.name),o=n!=null&&(i=n[r])!=null&&(i=i.props)!=null&&i.fill?n[r].props.fill:typeof e==`object`&&e&&`fill`in e?e.fill:t.fill;return{value:j_(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),nz=J([ez,ZR,$R,$_],(e,t,n,r)=>{if(!(t==null||e==null))return MB({offset:r,pieSettings:t,displayedData:e,cells:n})}),rz=o((e=>{var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116;if(typeof Symbol==`function`&&Symbol.for){var p=Symbol.for;t=p(`react.element`),n=p(`react.portal`),r=p(`react.fragment`),i=p(`react.strict_mode`),a=p(`react.profiler`),o=p(`react.provider`),s=p(`react.context`),c=p(`react.forward_ref`),l=p(`react.suspense`),u=p(`react.suspense_list`),d=p(`react.memo`),f=p(`react.lazy`),p(`react.block`),p(`react.server.block`),p(`react.fundamental`),p(`react.debug_trace_mode`),p(`react.legacy_hidden`)}function m(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:case o:return e;default:return p}}case n:return p}}}e.isFragment=function(e){return m(e)===r}})),iz=o(((e,t)=>{t.exports=rz()}))(),az=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,oz=null,sz=null,cz=e=>{if(e===oz&&Array.isArray(sz))return sz;var t=[];return N.Children.forEach(e,e=>{of(e)||((0,iz.isFragment)(e)?t=t.concat(cz(e.props.children)):t.push(e))}),sz=t,oz=e,t};function lz(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>az(e)):[az(t)],cz(e).forEach(e=>{var t=(0,qd.default)(e,`type.displayName`)||(0,qd.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var uz=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0,dz=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),fz=o(((e,t)=>{t.exports=dz().isPlainObject})),pz,mz,hz,gz,_z;function vz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vz(Object(n),!0).forEach(function(t){bz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bz(e,t,n){return(t=xz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xz(e){var t=Sz(e,`string`);return typeof t==`symbol`?t:t+``}function Sz(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Cz(){return Cz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cz.apply(null,arguments)}function wz(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var Tz=(e,t,n,r,i)=>{var a=n-r,o=Kd(pz||=wz([`M `,`,`,``]),e,t);return o+=Kd(mz||=wz([`L `,`,`,``]),e+n,t),o+=Kd(hz||=wz([`L `,`,`,``]),e+n-a/2,t+i),o+=Kd(gz||=wz([`L `,`,`,``]),e+n-a/2-r,t+i),o+=Kd(_z||=wz([`L `,`,`,` Z`]),e,t),o},Ez={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},Dz=e=>{var t=Ff(e,Ez),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,N.useRef)(null),[p,m]=(0,N.useState)(-1),h=(0,N.useRef)(i),g=(0,N.useRef)(a),_=(0,N.useRef)(o),v=(0,N.useRef)(n),y=(0,N.useRef)(r),b=vS(e,`trapezoid-`);if((0,N.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=W(`recharts-trapezoid`,s);if(!d)return N.createElement(`g`,null,N.createElement(`path`,Cz({},eu(t),{className:x,d:Tz(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=zx([`strokeDasharray`],l,c);return N.createElement(_S,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=nf(S,i,e),c=nf(C,a,e),l=nf(w,o,e),u=nf(T,n,e),d=nf(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return N.createElement(`path`,Cz({},eu(t),{className:x,d:Tz(u,d,s,c,l),ref:f,style:yz(yz({},p),t.style)}))})},Oz=l(fz()),kz=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`];function Az(e,t){if(e==null)return{};var n,r,i=jz(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Mz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Nz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Mz(Object(n),!0).forEach(function(t){Pz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Pz(e,t,n){return(t=Fz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fz(e){var t=Iz(e,`string`);return typeof t==`symbol`?t:t+``}function Iz(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Lz(e,t){return Nz(Nz({},t),e)}function Rz(e,t){return e===`symbols`}function zz(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return N.createElement(HS,n);case`trapezoid`:return N.createElement(Dz,n);case`sector`:return N.createElement(vC,n);case`symbols`:if(Rz(t,n))return N.createElement(wf,n);break;case`curve`:return N.createElement(bx,n);default:return null}}function Bz(e){return(0,N.isValidElement)(e)?e.props:e}function Vz(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=Az(e,kz),o;if((0,N.isValidElement)(t))o=(0,N.cloneElement)(t,Nz(Nz({},a),Bz(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,Oz.default)(t)&&typeof t!=`boolean`){var s=Lz(t,a);o=N.createElement(zz,{shapeType:n,elementProps:s})}else{var c=a;o=N.createElement(zz,{shapeType:n,elementProps:c})}return a.isActive?N.createElement(G,{className:r},o):N.createElement(G,{className:i},o)}var Hz=(e,t,n)=>{var r=jp();return(i,a)=>o=>{e?.(i,a,o),r(SN({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},Uz=e=>{var t=jp();return(n,r)=>i=>{e?.(n,r,i),t(CN())}},Wz=(e,t,n)=>{var r=jp();return(i,a)=>o=>{e?.(i,a,o),r(TN({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}};function Gz(e){var{tooltipEntrySettings:t}=e,n=jp(),r=rv(),i=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{r||(i.current===null?n(vN(t)):i.current!==t&&n(yN({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,N.useLayoutEffect)(()=>()=>{i.current&&=(n(bN(i.current)),null)},[n]),null}function Kz(e){var{legendPayload:t}=e,n=jp(),r=rv(),i=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{r||(i.current===null?n(Gy(t)):i.current!==t&&n(Ky({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,N.useLayoutEffect)(()=>()=>{i.current&&=(n(qy(i.current)),null)},[n]),null}function qz(e){var{legendPayload:t}=e,n=jp(),r=q(Z),i=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{r!==`centric`&&r!==`radial`||(i.current===null?n(Gy(t)):i.current!==t&&n(Ky({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,N.useLayoutEffect)(()=>()=>{i.current&&=(n(qy(i.current)),null)},[n]),null}var Jz=N.useId??(()=>{var[e]=N.useState(()=>$d(`uid-`));return e});function Yz(e,t){var n=Jz();return t||(e?`${e}-${n}`:n)}var Xz=(0,N.createContext)(void 0),Zz=e=>{var{id:t,type:n,children:r}=e,i=Yz(`recharts-${n}`,t);return N.createElement(Xz.Provider,{value:i},r(i))},Qz=fg({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Vy(t.payload))},prepare:Qh()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Rh(e).cartesianItems.indexOf(Vy(n));i>-1&&(e.cartesianItems[i]=Vy(r))},prepare:Qh()},removeCartesianGraphicalItem:{reducer(e,t){var n=Rh(e).cartesianItems.indexOf(Vy(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:Qh()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Vy(t.payload))},prepare:Qh()},removePolarGraphicalItem:{reducer(e,t){var n=Rh(e).polarItems.indexOf(Vy(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:Qh()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Rh(e).polarItems.indexOf(Vy(n));i>-1&&(e.polarItems[i]=Vy(r))},prepare:Qh()}}}),{addCartesianGraphicalItem:$z,replaceCartesianGraphicalItem:eB,removeCartesianGraphicalItem:tB,addPolarGraphicalItem:nB,removePolarGraphicalItem:rB,replacePolarGraphicalItem:iB}=Qz.actions,aB=Qz.reducer,oB=(0,N.memo)(e=>{var t=jp(),n=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{n.current===null?t($z(e)):n.current!==e&&t(eB({prev:n.current,next:e})),n.current=e},[t,e]),(0,N.useLayoutEffect)(()=>()=>{n.current&&=(t(tB(n.current)),null)},[t]),null}),sB=(0,N.memo)(e=>{var t=jp(),n=(0,N.useRef)(null);return(0,N.useLayoutEffect)(()=>{n.current===null?t(nB(e)):n.current!==e&&t(iB({prev:n.current,next:e})),n.current=e},[t,e]),(0,N.useLayoutEffect)(()=>()=>{n.current&&=(t(rB(n.current)),null)},[t]),null}),cB=[`key`],lB=[`onMouseEnter`,`onClick`,`onMouseLeave`],uB=[`id`],dB=[`id`];function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(null,arguments)}function pB(e,t){if(e==null)return{};var n,r,i=mB(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function mB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function hB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function gB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?hB(Object(n),!0).forEach(function(t){_B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function _B(e,t,n){return(t=vB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e){var t=yB(e,`string`);return typeof t==`symbol`?t:t+``}function yB(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function bB(e){var t=(0,N.useMemo)(()=>lz(e.children,EI),[e.children]),n=q(n=>tz(n,e.id,t));return n==null?null:N.createElement(qz,{legendPayload:n})}function xB(e){if(!(e==null||typeof e==`boolean`||typeof e==`function`)){if(N.isValidElement(e)){var t=e.props?.fill;return typeof t==`string`?t:void 0}var{fill:n}=e;return typeof n==`string`?n:void 0}}var SB=N.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:c,tooltipType:l,id:u,activeShape:d}=e,f=xB(d),p={dataDefinedOnItem:r.map(e=>{var t=e.tooltipPayload;return f==null||t==null?t:t.map(e=>gB(gB({},e),{},{color:f,fill:f}))}),getPosition:e=>r[Number(e)]?.tooltipPosition,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:j_(s,t),hide:c,type:l,color:o,unit:``,graphicalItemId:u}};return N.createElement(Gz,{tooltipEntrySettings:p})}),CB=(e,t)=>e>t?`start`:e<t?`end`:`middle`,wB=(e,t,n)=>ef(typeof t==`function`?t(e):t,n,n*.8),TB=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=ZS(a,o);return{cx:i+ef(e.cx,a,a/2),cy:r+ef(e.cy,o,o/2),innerRadius:ef(e.innerRadius,s,0),outerRadius:wB(n,e.outerRadius,s),maxRadius:e.maxRadius||Math.sqrt(a*a+o*o)/2}},EB=(e,t)=>Jd(t-e)*Math.min(Math.abs(t-e),360),DB=(e,t)=>{if(N.isValidElement(e))return N.cloneElement(e,t);if(typeof e==`function`)return e(t);var n=W(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className),{key:r}=t,i=pB(t,cB);return N.createElement(bx,fB({},i,{type:`linear`,className:n}))},OB=(e,t,n)=>{if(N.isValidElement(e))return N.cloneElement(e,t);var r=n;if(typeof e==`function`&&(r=e(t),N.isValidElement(r)))return r;var i=W(`recharts-pie-label-text`,GR(e));return N.createElement(DL,fB({},t,{alignmentBaseline:`middle`,className:i}),r)};function kB(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=Ql(n),c=$l(i),l=$l(a),u=typeof i==`object`&&`offsetRadius`in i&&typeof i.offsetRadius==`number`&&i.offsetRadius||20,d=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=XS(e.cx,e.cy,e.outerRadius+u,n),d=gB(gB(gB(gB({},s),e),{},{stroke:`none`},c),{},{index:t,textAnchor:CB(r.x,e.cx)},r),f=gB(gB(gB(gB({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:t,points:[XS(e.cx,e.cy,e.outerRadius,n),r],key:`line`});return N.createElement(MF,{zIndex:tw.label,key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`},N.createElement(G,null,a&&DB(a,f),OB(i,d,X(e,o))))});return N.createElement(G,{className:`recharts-pie-labels`},d)}function AB(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i==`object`&&i&&`position`in i?N.createElement(yR,{label:i}):N.createElement(kB,{sectors:t,props:n,showLabels:r})}function jB(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:a,id:o}=e,s=q(kP),c=q(jP),l=q(MP),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,p=pB(i,lB),m=Hz(u,i.dataKey,o),h=Uz(f),g=Wz(d,i.dataKey,o);return t==null||t.length===0?null:N.createElement(N.Fragment,null,t.map((e,u)=>{if(e?.startAngle===0&&e?.endAngle===0&&t.length!==1)return null;var d=l==null||l===o,f=String(u)===s&&(c==null||i.dataKey===c)&&d,_=n&&f?n:s?r:null,v=gB(gB({},e),{},{stroke:e.stroke,tabIndex:-1,[V_]:u,[H_]:o});return N.createElement(G,fB({key:`sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${u}`,tabIndex:-1,className:`recharts-pie-sector`},Of(p,e,u),{onMouseEnter:m(e,u),onMouseLeave:h(e,u),onClick:g(e,u)}),N.createElement(Vz,fB({option:a??_,index:u,shapeType:`sector`,isActive:f},v)))}))}function MB(e){var{pieSettings:t,displayedData:n,cells:r,offset:i}=e,{cornerRadius:a,startAngle:o,endAngle:s,dataKey:c,nameKey:l,tooltipType:u}=t,d=Math.abs(t.minAngle),f=EB(o,s),p=Math.abs(f),m=n.length<=1?0:t.paddingAngle??0,h=n.filter(e=>X(e,c,0)!==0).length,g=(p>=360?h:h-1)*m,_=n.reduce((e,t)=>{var n=X(t,c,0);return e+(K(n)?n:0)},0),v=d>0&&_>0&&n.some(e=>{var t=X(e,c,0),n=(K(t)?t:0)/_;return t!==0&&n*p<d})?d:0,y=p-h*v-g,b;if(_>0){var x;b=n.map((e,n)=>{var s=X(e,c,0),d=X(e,l,n),p=TB(t,i,e),h=(K(s)?s:0)/_,g,b=gB(gB({},e),r&&r[n]&&r[n].props),S=b!=null&&`fill`in b&&typeof b.fill==`string`?b.fill:t.fill;g=n?x.endAngle+Jd(f)*m*(s===0?0:1):o;var C=g+Jd(f)*((s===0?0:v)+h*y),w=(g+C)/2,T=(p.innerRadius+p.outerRadius)/2,E=[{name:d,value:s,payload:b,dataKey:c,type:u,color:S,fill:S,graphicalItemId:t.id}],D=XS(p.cx,p.cy,T,w);return x=gB(gB(gB(gB({},t.presentationProps),{},{percent:h,cornerRadius:typeof a==`string`?parseFloat(a):a,name:d,tooltipPayload:E,midAngle:w,middleRadius:T,tooltipPosition:D},b),p),{},{value:s,dataKey:c,startAngle:g,endAngle:C,payload:b,paddingAngle:s===0?0:Jd(f)*m}),x})}return b}function NB(e){var{showLabels:t,sectors:n,children:r}=e,i=(0,N.useMemo)(()=>!t||!n?[]:n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})),[n,t]);return N.createElement(hR,{value:t?i:void 0},r)}function PB(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,activeShape:l,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,p=vS(t,`recharts-pie-`),m=n.current,[h,g]=(0,N.useState)(!1),_=(0,N.useCallback)(()=>{typeof f==`function`&&f(),g(!1)},[f]),v=(0,N.useCallback)(()=>{typeof d==`function`&&d(),g(!0)},[d]);return N.createElement(NB,{showLabels:!h,sectors:i},N.createElement(_S,{animationId:p,begin:o,duration:s,isActive:a,easing:c,onAnimationStart:v,onAnimationEnd:_,key:p},e=>{var a=[],o=(i&&i[0])?.startAngle??0;return i?.forEach((t,n)=>{var r=m&&m[n],i=n>0?(0,qd.default)(t,`paddingAngle`,0):0;if(r){var s=nf(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),c=gB(gB({},t),{},{startAngle:o+i,endAngle:o+s+i});a.push(c),o=c.endAngle}else{var{endAngle:l,startAngle:u}=t,d=nf(0,l-u,e),f=gB(gB({},t),{},{startAngle:o+i,endAngle:o+d+i});a.push(f),o=f.endAngle}}),n.current=a,N.createElement(G,null,N.createElement(jB,{sectors:a,activeShape:l,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),N.createElement(AB,{showLabels:!h,sectors:i,props:t}),t.children)}var FB={animationBegin:400,animationDuration:1500,animationEasing:`ease`,cx:`50%`,cy:`50%`,dataKey:`value`,endAngle:360,fill:`#808080`,hide:!1,innerRadius:0,isAnimationActive:`auto`,label:!1,labelLine:!0,legendType:`rect`,minAngle:0,nameKey:`name`,outerRadius:`80%`,paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:`#fff`,zIndex:tw.area};function IB(e){var{id:t}=e,n=pB(e,uB),{hide:r,className:i,rootTabIndex:a}=e,o=(0,N.useMemo)(()=>lz(e.children,EI),[e.children]),s=q(e=>nz(e,t,o)),c=(0,N.useRef)(null),l=W(`recharts-pie`,i);return r||s==null?(c.current=null,N.createElement(G,{tabIndex:a,className:l})):N.createElement(MF,{zIndex:e.zIndex},N.createElement(SB,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),N.createElement(G,{tabIndex:a,className:l},N.createElement(PB,{props:gB(gB({},n),{},{sectors:s}),previousSectorsRef:c,id:t})))}function LB(e){var t=Ff(e,FB),{id:n}=t,r=pB(t,dB),i=Ql(r);return N.createElement(Zz,{id:n,type:`pie`},e=>N.createElement(N.Fragment,null,N.createElement(sB,{type:`pie`,id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),N.createElement(bB,fB({},r,{id:e})),N.createElement(IB,fB({},r,{id:e}))))}var RB=LB;RB.displayName=`Pie`;var zB=[`points`];function BB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BB(Object(n),!0).forEach(function(t){HB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HB(e,t,n){return(t=UB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UB(e){var t=WB(e,`string`);return typeof t==`symbol`?t:t+``}function WB(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function GB(){return GB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GB.apply(null,arguments)}function KB(e,t){if(e==null)return{};var n,r,i=qB(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function JB(e){var{option:t,dotProps:n,className:r}=e;if((0,N.isValidElement)(t))return(0,N.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=W(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=KB(a,zB);return N.createElement(MR,GB({},s,{className:i}))}function YB(e,t){return e==null?!1:t?!0:e.length===1}function XB(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:o,needClip:s,clipPathId:c,zIndex:l=tw.scatter}=e;if(!YB(t,n))return null;var u=uz(n),d=tu(n),f=t.map((e,r)=>{var s=VB(VB(VB({r:3},o),d),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return N.createElement(JB,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),p={};return s&&c!=null&&(p.clipPath=`url(#clipPath-${u?``:`dots-`}${c})`),N.createElement(MF,{zIndex:l},N.createElement(G,GB({className:r},p),f))}function ZB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZB(Object(n),!0).forEach(function(t){$B(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $B(e,t,n){return(t=eV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(e){var t=tV(e,`string`);return typeof t==`symbol`?t:t+``}function tV(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nV=fg({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Vy(t.payload)},prepare:Qh()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=Vy(r))},prepare:Qh()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:Qh()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Vy(t.payload)},prepare:Qh()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=Vy(r))},prepare:Qh()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:Qh()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Vy(t.payload)},prepare:Qh()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=Vy(r))},prepare:Qh()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:Qh()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&r===a[1]&&r!==i.width&&Math.abs(r-(a[0]??0))<=1)return;var o=[...a,r].slice(-3);e.yAxis[n]=QB(QB({},i),{},{width:r,widthHistory:o})}}}}),{addXAxis:rV,replaceXAxis:iV,removeXAxis:aV,addYAxis:oV,replaceYAxis:sV,removeYAxis:cV,addZAxis:lV,replaceZAxis:uV,removeZAxis:dV,updateYAxisWidth:fV}=nV.actions,pV=nV.reducer,mV=J([J([$_],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),P_,F_],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),hV=()=>q(mV),gV=()=>q(IP);function _V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_V(Object(n),!0).forEach(function(t){yV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yV(e,t,n){return(t=bV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bV(e){var t=xV(e,`string`);return typeof t==`symbol`?t:t+``}function xV(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var SV=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=vV(vV(vV({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),$l(i)),Ef(i)),c=(0,N.isValidElement)(i)?(0,N.cloneElement)(i,s):typeof i==`function`?i(s):N.createElement(MR,s);return N.createElement(G,{className:`recharts-active-dot`,clipPath:o},c)};function CV(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:o=tw.activeDot}=e,s=q(kP),c=gV();if(t==null||c==null)return null;var l=t.find(e=>c.includes(e.payload));return of(l)?null:N.createElement(MF,{zIndex:o},N.createElement(SV,{point:l,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var wV=(e,t,n)=>{var r=n??e;if(!of(r))return ef(r,t,0)},TV=(e,t,n)=>{var r={},i=e.filter(Ew),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map(e=>e.dataKey),barSize:wV(t,n,i[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:wV(t,n,e.barSize)}));return[...s,...c]};function EV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EV(Object(n),!0).forEach(function(t){OV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OV(e,t,n){return(t=kV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){var t=AV(e,`string`);return typeof t==`symbol`?t:t+``}function AV(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jV(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=ef(e,n,0,!0),s,c=[];if(Y(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:((n-d)/2>>0)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=ef(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m>>=0);var h=Y(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var MV=(e,t,n,r,i,a,o)=>{var s=of(o)?t:o,c=jV(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>DV(DV({},e),{},{position:DV(DV({},e.position),{},{offset:e.position.offset-i/2})}))),c},NV=(e,t)=>{var n=ww(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===n)}}}},PV=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}};function FV(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&Y(e.zIndex)?e.zIndex:t}var IV=e=>{var{chartData:t}=e,n=jp(),r=rv();return(0,N.useEffect)(()=>r?()=>{}:(n(eI(t)),()=>{n(eI(void 0))}),[t,n,r]),null},LV={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},RV=fg({name:`brush`,initialState:LV,reducers:{setBrushSettings(e,t){return t.payload==null?LV:t.payload}}}),{setBrushSettings:zV}=RV.actions,BV=RV.reducer;function VV(e){return(e%180+180)%180}var HV=function(e){var{width:t,height:n}=e,r=VV(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)},UV=fg({name:`referenceElements`,initialState:{dots:[],areas:[],lines:[]},reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Rh(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Rh(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Vy(t.payload))},removeLine:(e,t)=>{var n=Rh(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:WV,removeDot:GV,addArea:KV,removeArea:qV,addLine:JV,removeLine:YV}=UV.actions,XV=UV.reducer,ZV=(0,N.createContext)(void 0),QV=e=>{var{children:t}=e,[n]=(0,N.useState)(`${$d(`recharts`)}-clip`),r=hV();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return N.createElement(ZV.Provider,{value:n},N.createElement(`defs`,null,N.createElement(`clipPath`,{id:n},N.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)};function $V(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}function eH(e,t,n){return HV({width:e.width+t.width,height:e.height+t.height},n)}function tH(e,t,n){var r=n===`width`,{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function nH(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function rH(e,t){return $V(e,t+1)}function iH(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:$V(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||nH(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function aH(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var{start:o,end:s}=t,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||nH(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}function oH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oH(Object(n),!0).forEach(function(t){cH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cH(e,t,n){return(t=lH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lH(e){var t=uH(e,`string`);return typeof t==`symbol`?t:t+``}function uH(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dH(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:c}=t,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=sH(sH({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=sH(sH({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&nH(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=sH(sH({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function fH(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:c,end:l}=t;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=sH(sH({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&nH(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=sH(sH({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=sH(sH({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=sH(sH({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&nH(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=sH(sH({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function pH(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:c,tickFormatter:l,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(K(c)||Yb.isSsr)return rH(i,K(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?HI(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?eH(HI(i,{fontSize:t,letterSpacing:n}),m,d):HI(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?Jd(_.coordinate-g.coordinate):1,y=tH(a,v,p);return c===`equidistantPreserveStart`?iH(v,y,h,i,o):c===`equidistantPreserveEnd`?aH(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?fH(v,y,h,i,o,c===`preserveStartEnd`):dH(v,y,h,i,o),f.filter(e=>e.isShow))}var mH=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var s=n?n.getBoundingClientRect().width:0,c=i+a,l=o+c+s+(n?r:0);return Math.round(l)}return 0},hH=fg({name:`renderedTicks`,initialState:{xAxis:{},yAxis:{}},reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=Vy(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:gH,removeRenderedTicks:_H}=hH.actions,vH=hH.reducer,yH=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`];function bH(e,t){if(e==null)return{};var n,r,i=xH(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function SH(){return SH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SH.apply(null,arguments)}function CH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CH(Object(n),!0).forEach(function(t){TH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TH(e,t,n){return(t=EH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EH(e){var t=DH(e,`string`);return typeof t==`symbol`?t:t+``}function DH(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var OH={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:tw.axis};function kH(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var l=wH(wH(wH({},c),Ql(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=wH(wH({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=wH(wH({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return N.createElement(`line`,SH({},l,{className:W(`recharts-cartesian-axis-line`,(0,qd.default)(s,`className`))}))}function AH(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=K(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function jH(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function MH(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function NH(e){var{option:t,tickProps:n,value:r}=e,i,a=W(n.className,`recharts-cartesian-axis-tick-value`);if(N.isValidElement(t))i=N.cloneElement(t,wH(wH({},n),{},{className:a}));else if(typeof t==`function`)i=t(wH(wH({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=W(o,GR(t))),i=N.createElement(DL,SH({},n,{className:o}),r)}return i}function PH(e){var{ticks:t,axisType:n,axisId:r}=e,i=jp();return(0,N.useEffect)(()=>r==null||n==null?lf:(i(gH({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(_H({axisId:r,axisType:n}))}),[i,t,r,n]),null}var FH=(0,N.forwardRef)((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:o,unit:s,padding:c,tickTextProps:l,orientation:u,mirror:d,x:f,y:p,width:m,height:h,tickSize:g,tickMargin:_,fontSize:v,letterSpacing:y,getTicksConfig:b,events:x,axisType:S,axisId:C}=e,w=pH(wH(wH({},b),{},{ticks:n}),v,y),T=Ql(b),E=$l(r),D=gL(T.textAnchor)?T.textAnchor:jH(u,d),O=MH(u,d),k={};typeof i==`object`&&(k=i);var ee=wH(wH({},T),{},{fill:`none`},k),te=w.map(e=>wH({entry:e},AH(e,f,p,m,h,u,g,d,_))),ne=te.map(e=>{var{entry:t,line:n}=e;return N.createElement(G,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},i&&N.createElement(`line`,SH({},ee,n,{className:W(`recharts-cartesian-axis-tick-line`,(0,qd.default)(i,`className`))})))}),A=te.map((e,t)=>{var{entry:n,tick:i}=e,u=wH(wH({},wH(wH(wH(wH({verticalAnchor:O},T),{},{textAnchor:D,stroke:`none`,fill:a},i),{},{index:t,payload:n,visibleTicksCount:w.length,tickFormatter:o,padding:c},l),{},{angle:l?.angle??T.angle??0})),E);return N.createElement(G,SH({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},Of(x,n,t)),r&&N.createElement(NH,{option:r,tickProps:u,value:`${typeof o==`function`?o(n.value,t):n.value}${s||``}`}))});return N.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${S}-ticks`},N.createElement(PH,{ticks:w,axisId:C,axisType:S}),A.length>0&&N.createElement(MF,{zIndex:tw.label},N.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref:t},A)),ne.length>0&&N.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines`},ne))}),IH=(0,N.forwardRef)((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:o,ticks:s,axisType:c,axisId:l}=e,u=bH(e,yH),[d,f]=(0,N.useState)(``),[p,m]=(0,N.useState)(``),h=(0,N.useRef)(null);(0,N.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>mH({ticks:h.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var g=(0,N.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);h.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==d||a!==p)&&(f(i),m(a))}}},[d,p]);return o||r!=null&&r<=0||i!=null&&i<=0?null:N.createElement(MF,{zIndex:e.zIndex},N.createElement(G,{className:W(`recharts-cartesian-axis`,a)},N.createElement(kH,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Ql(e)}),N.createElement(FH,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),N.createElement(GL,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},N.createElement(aR,{label:e.label,labelRef:e.labelRef}),e.children)))}),LH=N.forwardRef((e,t)=>{var n=Ff(e,OH);return N.createElement(IH,SH({},n,{ref:t}))});LH.displayName=`CartesianAxis`;var RH=[`x1`,`y1`,`x2`,`y2`,`key`],zH=[`offset`],BH=[`xAxisId`,`yAxisId`],VH=[`xAxisId`,`yAxisId`];function HH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HH(Object(n),!0).forEach(function(t){WH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WH(e,t,n){return(t=GH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GH(e){var t=KH(e,`string`);return typeof t==`symbol`?t:t+``}function KH(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qH(){return qH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qH.apply(null,arguments)}function JH(e,t){if(e==null)return{};var n,r,i=YH(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function YH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var XH=e=>{var{fill:t}=e;if(!t||t===`none`)return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return N.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})};function ZH(e){var{option:t,lineItemProps:n}=e,r;if(N.isValidElement(t))r=N.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var{x1:i,y1:a,x2:o,y2:s,key:c}=n,l=Ql(JH(n,RH))??{},{offset:u}=l,d=JH(l,zH);r=N.createElement(`line`,qH({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function QH(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=JH(e,BH),c=i.map((e,i)=>{var a=UH(UH({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${i}`,index:i});return N.createElement(ZH,{key:`line-${i}`,option:r,lineItemProps:a})});return N.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},c)}function $H(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=JH(e,VH),c=i.map((e,i)=>{var a=UH(UH({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${i}`,index:i});return N.createElement(ZH,{option:r,lineItemProps:a,key:`line-${i}`})});return N.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},c)}function eU(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return N.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return N.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function tU(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var l=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,t)=>{var c=l[t+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=t%n.length;return N.createElement(`rect`,{key:`react-${t}`,x:e,y:a,width:u,height:s,stroke:`none`,fill:n[d],fillOpacity:r,className:`recharts-cartesian-grid-bg`})});return N.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},u)}var nU=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return h_(pH(UH(UH(UH({},OH),n),{},{ticks:g_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},rU=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return h_(pH(UH(UH(UH({},OH),n),{},{ticks:g_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},iU={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:tw.grid};function aU(e){var t=Lv(),n=Rv(),r=Iv(),i=UH(UH({},Ff(e,iU)),{},{x:K(e.x)?e.x:r.left,y:K(e.y)?e.y:r.top,width:K(e.width)?e.width:r.width,height:K(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:c,width:l,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,m=rv(),h=q(e=>rN(e,`xAxis`,a,m)),g=q(e=>rN(e,`yAxis`,o,m));if(!s_(l)||!s_(u)||!K(s)||!K(c))return null;var _=i.verticalCoordinatesGenerator||nU,v=i.horizontalCoordinatesGenerator||rU,{horizontalPoints:y,verticalPoints:b}=i;if((!y||!y.length)&&typeof v==`function`){var x=f&&f.length,S=v({yAxis:g?UH(UH({},g),{},{ticks:x?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},x?!0:d);dv(Array.isArray(S),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`),Array.isArray(S)&&(y=S)}if((!b||!b.length)&&typeof _==`function`){var C=p&&p.length,w=_({xAxis:h?UH(UH({},h),{},{ticks:C?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);dv(Array.isArray(w),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`),Array.isArray(w)&&(b=w)}return N.createElement(MF,{zIndex:i.zIndex},N.createElement(`g`,{className:`recharts-cartesian-grid`},N.createElement(XH,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),N.createElement(eU,qH({},i,{horizontalPoints:y})),N.createElement(tU,qH({},i,{verticalPoints:b})),N.createElement(QH,qH({},i,{offset:r,horizontalPoints:y,xAxis:h,yAxis:g})),N.createElement($H,qH({},i,{offset:r,verticalPoints:b,xAxis:h,yAxis:g}))))}aU.displayName=`CartesianGrid`;var oU=fg({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:sU,replaceErrorBar:cU,removeErrorBar:lU}=oU.actions,uU=oU.reducer,dU=[`children`];function fU(e,t){if(e==null)return{};var n,r,i=pU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mU=(0,N.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0});function hU(e){var{children:t}=e,n=fU(e,dU);return N.createElement(mU.Provider,{value:n},t)}function gU(e,t){var n=q(t=>ij(t,e)),r=q(e=>sj(e,t)),i=n?.allowDataOverflow??nj.allowDataOverflow,a=r?.allowDataOverflow??aj.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function _U(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=hV(),{needClipX:a,needClipY:o,needClip:s}=gU(t,n);if(!s||!i)return null;var{x:c,y:l,width:u,height:d}=i;return N.createElement(`clipPath`,{id:`clipPath-${r}`},N.createElement(`rect`,{x:a?c:c-u/2,y:o?l:l-d/2,width:a?u:u*2,height:o?d:d*2}))}var vU=(e,t,n,r)=>oN(e,`xAxis`,t,r),yU=(e,t,n,r)=>aN(e,`xAxis`,t,r),bU=(e,t,n,r)=>oN(e,`yAxis`,n,r),xU=(e,t,n,r)=>aN(e,`yAxis`,n,r),SU=J([Z,vU,bU,yU,xU],(e,t,n,r,i)=>m_(e,`xAxis`)?k_(t,r,!1):k_(n,i,!1)),CU=(e,t,n,r,i)=>i;function wU(e){return e.type===`line`}var TU=J([Z,vU,bU,yU,xU,J([hj,CU],(e,t)=>e.filter(wU).find(e=>e.id===t)),SU,EC],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return $U({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}});function EU(e){var t=$l(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}var DU=[`id`],OU=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],kU=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`];function AU(){return AU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AU.apply(null,arguments)}function jU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jU(Object(n),!0).forEach(function(t){NU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NU(e,t,n){return(t=PU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PU(e){var t=FU(e,`string`);return typeof t==`symbol`?t:t+``}function FU(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IU(e,t){if(e==null)return{};var n,r,i=LU(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function LU(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var RU=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:j_(n,t),payload:e}]},zU=N.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:lf,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:j_(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return N.createElement(Gz,{tooltipEntrySettings:d})}),BU=(e,t)=>`${t}px ${e}px`;function VU(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}var HU=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return BU(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...VU(n,i),...o,...d].map(e=>`${e}px`).join(`, `)};function UU(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=Ql(IU(r,DU));return N.createElement(XB,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function WU(e){var{showLabels:t,children:n,points:r}=e,i=(0,N.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return MU(MU({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return N.createElement(pR,{value:t?i:void 0},n)}function GU(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=MU(MU({},eu(IU(a,OU))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return N.createElement(N.Fragment,null,r?.length>1&&N.createElement(Vz,AU({shapeType:`curve`,option:u},d,{pathRef:n})),N.createElement(UU,{points:r,clipPathId:t,props:a}))}function KU(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function qU(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=vS(o,`recharts-line-`),y=(0,N.useRef)(v),[b,x]=(0,N.useState)(!1),S=!b,C=(0,N.useCallback)(()=>{typeof h==`function`&&h(),x(!1)},[h]),w=(0,N.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),T=KU(r.current),E=(0,N.useRef)(0);y.current!==v&&(E.current=a.current,y.current=v);var D=E.current;return N.createElement(WU,{points:o,showLabels:S},n.children,N.createElement(_S,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:w,key:v},e=>{var l=nf(D,T+D,e),u=Math.min(l,T),d=c?s?HU(u,T,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):BU(T,u):s==null?void 0:String(s);if(e>0&&T>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return MU(MU({},t),{},{x:nf(i.x,t.x,e),y:nf(i.y,t.y,e)})}return f?MU(MU({},t),{},{x:nf(p*2,t.x,e),y:nf(m/2,t.y,e)}):MU(MU({},t),{},{x:t.x,y:t.y})});return i.current=g,N.createElement(GU,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return N.createElement(GU,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),N.createElement(yR,{label:n.label}))}function JU(e){var{clipPathId:t,props:n}=e,r=(0,N.useRef)(null),i=(0,N.useRef)(0),a=(0,N.useRef)(null);return N.createElement(qU,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}var YU=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:X(e.payload,t)}),XU=class extends N.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=W(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=EU(t),_=uz(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return N.createElement(MF,{zIndex:f},N.createElement(G,{className:p},d&&N.createElement(`defs`,null,N.createElement(_U,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&N.createElement(`clipPath`,{id:`clipPath-dots-${m}`},N.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),N.createElement(hU,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:YU,errorBarOffset:0},N.createElement(JU,{props:this.props,clipPathId:m}))),N.createElement(CV,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},ZU={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:tw.line,type:`linear`};function QU(e){var t=Ff(e,ZU),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=IU(t,kU),{needClip:_}=gU(p,m),v=hV(),y=Bv(),b=rv(),x=q(e=>TU(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:w,y:T}=v;return N.createElement(XU,AU({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:w,top:T,needClip:_}))}function $U(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=X(e,o);if(t===`horizontal`)return{x:x_({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(of(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=of(l)?null:n.scale.map(l),d=x_({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function eW(e){var t=Ff(e,ZU),n=rv();return N.createElement(Zz,{id:t.id,type:`line`},e=>N.createElement(N.Fragment,null,N.createElement(Kz,{legendPayload:RU(t)}),N.createElement(zU,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),N.createElement(oB,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),N.createElement(QU,AU({},t,{id:e}))))}var tW=N.memo(eW,pb);tW.displayName=`Line`;function nW(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function rW(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var iW=(e,t,n)=>oN(e,`xAxis`,nW(e,t),n),aW=(e,t,n)=>aN(e,`xAxis`,nW(e,t),n),oW=(e,t,n)=>oN(e,`yAxis`,rW(e,t),n),sW=(e,t,n)=>aN(e,`yAxis`,rW(e,t),n),cW=J([Z,iW,oW,aW,sW],(e,t,n,r,i)=>m_(e,`xAxis`)?k_(t,r,!1):k_(n,i,!1)),lW=J([hj,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),uW=e=>m_(Z(e),`xAxis`)?`yAxis`:`xAxis`,dW=(e,t)=>uW(e)===`yAxis`?rW(e,t):nW(e,t),fW=J([Z,iW,oW,aW,sW,J([lW,(e,t,n)=>Vj(e,uW(e),dW(e,t),n)],(e,t)=>{if(!(e==null||t==null)){var{stackId:n}=e,r=ww(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),DC,cW,lW,ew],(e,t,n,r,i,a,o,s,c,l)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:p}=c,m=p&&p.length>0?p:u?.slice(d,f+1);if(m!=null)return RW({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}}),pW=[`id`],mW=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`];function hW(){return hW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hW.apply(null,arguments)}function gW(e,t){if(e==null)return{};var n,r,i=_W(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _W(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vW(Object(n),!0).forEach(function(t){bW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bW(e,t,n){return(t=xW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xW(e){var t=SW(e,`string`);return typeof t==`symbol`?t:t+``}function SW(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function CW(e,t){return e&&e!==`none`?e:t}var wW=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:CW(r,i),value:j_(n,t),payload:e}]},TW=N.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:lf,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:j_(o,t),hide:s,type:l,color:CW(r,a),unit:c,graphicalItemId:u}};return N.createElement(Gz,{tooltipEntrySettings:d})});function EW(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r,s=Ql(r);return N.createElement(XB,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function DW(e){var{showLabels:t,children:n,points:r}=e,i=r.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return yW(yW({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return N.createElement(pR,{value:t?i:void 0},n)}function OW(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:o,type:s,stroke:c,connectNulls:l,isRange:u}=a,{id:d}=a,f=gW(a,pW),p=Ql(f),m=eu(f);return N.createElement(N.Fragment,null,t?.length>1&&N.createElement(G,{clipPath:r?`url(#clipPath-${i})`:void 0},N.createElement(bx,hW({},m,{id:d,points:t,connectNulls:l,type:s,baseLine:n,layout:o,stroke:`none`,className:`recharts-area-area`})),c!==`none`&&N.createElement(bx,hW({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:t})),c!==`none`&&u&&Array.isArray(n)&&N.createElement(bx,hW({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:n}))),N.createElement(EW,{points:t,props:f,clipPathId:i}))}function kW(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.y,o=r[r.length-1]?.y;if(!Y(a)||!Y(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return K(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),K(c)?N.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function AW(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.x,o=r[r.length-1]?.x;if(!Y(a)||!Y(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return K(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),K(c)?N.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function jW(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n===`vertical`?N.createElement(kW,{alpha:t,points:r,baseLine:i,strokeWidth:a}):N.createElement(AW,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function MW(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:p}=r,m=vS((0,N.useMemo)(()=>({points:o,baseLine:s}),[o,s]),`recharts-area-`),h=Vv(),[g,_]=(0,N.useState)(!1),v=!g,y=(0,N.useCallback)(()=>{typeof p==`function`&&p(),_(!1)},[p]),b=(0,N.useCallback)(()=>{typeof f==`function`&&f(),_(!0)},[f]);if(h==null)return null;var x=i.current,S=a.current;return N.createElement(DW,{showLabels:v,points:o},r.children,N.createElement(_S,{animationId:m,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:y,onAnimationStart:b,key:m},e=>{if(x){var l=x.length/o.length,u=e===1?o:o.map((t,n)=>{var r=Math.floor(n*l);if(x[r]){var i=x[r];return yW(yW({},t),{},{x:nf(i.x,t.x,e),y:nf(i.y,t.y,e)})}return t}),d=K(s)?nf(S,s,e):of(s)||Yd(s)?nf(S,0,e):s.map((t,n)=>{var r=Math.floor(n*l);if(Array.isArray(S)&&S[r]){var i=S[r];return yW(yW({},t),{},{x:nf(i.x,t.x,e),y:nf(i.y,t.y,e)})}return t});return e>0&&(i.current=u,a.current=d),N.createElement(OW,{points:u,baseLine:d,needClip:t,clipPathId:n,props:r})}return e>0&&(i.current=o,a.current=s),N.createElement(G,null,c&&N.createElement(`defs`,null,N.createElement(`clipPath`,{id:`animationClipPath-${n}`},N.createElement(jW,{alpha:e,points:o,baseLine:s,layout:h,strokeWidth:r.strokeWidth}))),N.createElement(G,{clipPath:`url(#animationClipPath-${n})`},N.createElement(OW,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r})))}),N.createElement(yR,{label:r.label}))}function NW(e){var{needClip:t,clipPathId:n,props:r}=e,i=(0,N.useRef)(null),a=(0,N.useRef)();return N.createElement(MW,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}var PW=class extends N.PureComponent{render(){var{hide:e,dot:t,points:n,className:r,top:i,left:a,needClip:o,xAxisId:s,yAxisId:c,width:l,height:u,id:d,baseLine:f,zIndex:p}=this.props;if(e)return null;var m=W(`recharts-area`,r),h=d,{r:g,strokeWidth:_}=EU(t),v=uz(t),y=g*2+_,b=o?`url(#clipPath-${v?``:`dots-`}${h})`:void 0;return N.createElement(MF,{zIndex:p},N.createElement(G,{className:m},o&&N.createElement(`defs`,null,N.createElement(_U,{clipPathId:h,xAxisId:s,yAxisId:c}),!v&&N.createElement(`clipPath`,{id:`clipPath-dots-${h}`},N.createElement(`rect`,{x:a-y/2,y:i-y/2,width:l+y,height:u+y}))),N.createElement(NW,{needClip:o,clipPathId:h,props:this.props})),N.createElement(CV,{points:n,mainColor:CW(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}),this.props.isRange&&Array.isArray(f)&&N.createElement(CV,{points:f,mainColor:CW(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}))}},FW={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,xAxisId:0,yAxisId:0,zIndex:tw.area};function IW(e){var{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,connectNulls:a,dot:o,fill:s,fillOpacity:c,hide:l,isAnimationActive:u,legendType:d,stroke:f,xAxisId:p,yAxisId:m}=e,h=gW(e,mW),g=Bv(),_=$P(),{needClip:v}=gU(p,m),y=rv(),{points:b,isRange:x,baseLine:S}=q(t=>fW(t,e.id,y))??{},C=hV();if(g!==`horizontal`&&g!==`vertical`||C==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var{height:w,width:T,x:E,y:D}=C;return!b||!b.length?null:N.createElement(PW,hW({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:S,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:w,hide:l,layout:g,isAnimationActive:u,isRange:x,legendType:d,needClip:v,points:b,stroke:f,width:T,left:E,top:D,xAxisId:p,yAxisId:m}))}var LW=(e,t,n,r,i)=>{var a=n??t;if(K(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]};function RW(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:c,displayedData:l,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:p}=e,m=i&&i.length,h=LW(a,o,n,s,c),g=a===`horizontal`,_=!1,v=l.map((e,n)=>{var a;if(m)a=i[u+n];else{var o=X(e,r);Array.isArray(o)?(a=o,_=!0):a=[h,o]}var l=a?.[1]??null,v=l==null||m&&!t&&X(e,r)==null;return g?{x:x_({axis:s,ticks:d,bandSize:p,entry:e,index:n}),y:v?null:c.scale.map(l)??null,value:a,payload:e}:{x:v?null:s.scale.map(l)??null,y:x_({axis:c,ticks:f,bandSize:p,entry:e,index:n}),value:a,payload:e}});return{points:v,baseLine:(m||_?v.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?c.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:s.scale.map(t)??null,y:e.y,payload:e.payload}}):g?c.scale.map(h):s.scale.map(h))??0,isRange:_}}function zW(e){var t=Ff(e,FW),n=rv();return N.createElement(Zz,{id:t.id,type:`area`},e=>N.createElement(N.Fragment,null,N.createElement(Kz,{legendPayload:wW(t)}),N.createElement(TW,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),N.createElement(oB,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:b_(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),N.createElement(IW,hW({},t,{id:e}))))}var BW=N.memo(zW,pb);BW.displayName=`Area`;var VW=!0,HW=`Invariant failed`;function UW(e,t){if(!e){if(VW)throw Error(HW);var n=typeof t==`function`?t():t,r=n?`${HW}: ${n}`:HW;throw Error(r)}}function WW(){return WW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WW.apply(null,arguments)}function GW(e){return N.createElement(Vz,WW({shapeType:`rectangle`,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`},e))}var KW=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(K(e))return e;var i=K(n)||of(n);return i?e(n,r):(!i&&UW(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}},qW=(e,t,n)=>n,JW=J([hj,(e,t)=>t],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),YW=J([JW],e=>e?.maxBarSize),XW=(e,t,n,r)=>r,ZW=J([Z,hj,nW,rW,qW],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),QW=(e,t,n)=>{var r=Z(e),i=nW(e,t),a=rW(e,t);if(!(i==null||a==null))return r===`horizontal`?Vj(e,`yAxis`,a,n):Vj(e,`xAxis`,i,n)},$W=J([ZW,qC,(e,t)=>{var n=Z(e),r=nW(e,t),i=rW(e,t);if(!(r==null||i==null))return n===`horizontal`?eN(e,`xAxis`,r):eN(e,`yAxis`,i)}],TV),eG=(e,t,n)=>{var r=JW(e,t);if(r==null)return 0;var i=nW(e,t),a=rW(e,t);if(i==null||a==null)return 0;var o=Z(e),s=WC(e),{maxBarSize:c}=r,l=of(c)?s:c,u,d;return o===`horizontal`?(u=oN(e,`xAxis`,i,n),d=aN(e,`xAxis`,i,n)):(u=oN(e,`yAxis`,a,n),d=aN(e,`yAxis`,a,n)),k_(u,d,!0)??l??0},tG=(e,t,n)=>{var r=Z(e),i=nW(e,t),a=rW(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=oN(e,`xAxis`,i,n),s=aN(e,`xAxis`,i,n)):(o=oN(e,`yAxis`,a,n),s=aN(e,`yAxis`,a,n)),k_(o,s)}},nG=J([$_,tv,(e,t,n)=>{var r=nW(e,t);if(r!=null)return oN(e,`xAxis`,r,n)},(e,t,n)=>{var r=rW(e,t);if(r!=null)return oN(e,`yAxis`,r,n)},(e,t,n)=>{var r=nW(e,t);if(r!=null)return aN(e,`xAxis`,r,n)},(e,t,n)=>{var r=rW(e,t);if(r!=null)return aN(e,`yAxis`,r,n)},J([J([$W,WC,GC,KC,eG,tG,YW],MV),JW],PV),Z,DC,tG,J([QW,JW],NV),JW,XW],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=c;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var{data:g}=d,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return RG({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}}),rG=[`index`];function iG(){return iG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iG.apply(null,arguments)}function aG(e,t){if(e==null)return{};var n,r,i=oG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var sG=(0,N.createContext)(void 0),cG=e=>{var t=(0,N.useContext)(sG);if(t!=null)return t.stackId;if(e!=null)return b_(e)},lG=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,uG=e=>{var t=(0,N.useContext)(sG);if(t!=null){var{stackId:n}=t;return`url(#${lG(n,e)})`}},dG=e=>{var{index:t}=e,n=aG(e,rG),r=uG(t);return N.createElement(G,iG({className:`recharts-bar-stack-layer`,clipPath:r},n))},fG=[`onMouseEnter`,`onMouseLeave`,`onClick`],pG=[`value`,`background`,`tooltipPosition`],mG=[`id`],hG=[`onMouseEnter`,`onClick`,`onMouseLeave`];function gG(){return gG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gG.apply(null,arguments)}function _G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_G(Object(n),!0).forEach(function(t){yG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yG(e,t,n){return(t=bG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bG(e){var t=xG(e,`string`);return typeof t==`symbol`?t:t+``}function xG(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function SG(e,t){if(e==null)return{};var n,r,i=CG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wG=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:j_(n,t),payload:e}]},TG=N.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:void 0,getPosition:lf,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:j_(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:l}};return N.createElement(Gz,{tooltipEntrySettings:u})});function EG(e){var t=q(kP),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:c}=a,l=SG(a,fG),u=Hz(o,r,a.id),d=Uz(s),f=Wz(c,r,a.id);if(!i||n==null)return null;var p=$l(i);return N.createElement(MF,{zIndex:FV(i,tw.barBackground)},n.map((e,n)=>{var{value:a,background:o,tooltipPosition:s}=e,c=SG(e,pG);if(!o)return null;var m=u(e,n),h=d(e,n),g=f(e,n),_=vG(vG(vG(vG(vG({option:i,isActive:String(n)===t},c),{},{fill:`#eee`},o),p),Of(l,e,n)),{},{onMouseEnter:m,onMouseLeave:h,onClick:g,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return N.createElement(GW,gG({key:`background-bar-${n}`},_))}))}function DG(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return vG(vG({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return N.createElement(pR,{value:t?i:void 0},n)}function OG(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:o}=e,s=q(kP),c=q(jP),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),[u,d]=(0,N.useState)(!1),[f,p]=(0,N.useState)(!1);(0,N.useEffect)(()=>{var e;return l?(d(!0),e=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(e)}},[l]);var m=(0,N.useCallback)(()=>{l||d(!1)},[l]),h=l&&f,g=l||u,_=l?n===!0?t:n:t,v=N.createElement(GW,gG({},r,{name:String(r.name)},i,{isActive:h,option:_,index:a,dataKey:o,onTransitionEnd:m}));return g?N.createElement(MF,{zIndex:tw.activeBar},N.createElement(dG,{index:i.originalDataIndex},v)):v}function kG(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return N.createElement(GW,gG({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function AG(e){var{data:t,props:n}=e,r=Ql(n)??{},{id:i}=r,a=SG(r,mG),{shape:o,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=SG(n,hG),p=Hz(l,s,i),m=Uz(d),h=Wz(u,s,i);return t?N.createElement(N.Fragment,null,t.map((e,t)=>N.createElement(dG,gG({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},Of(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),c?N.createElement(OG,{shape:o,activeBar:c,baseProps:a,entry:e,index:t,dataKey:s}):N.createElement(kG,{shape:o,baseProps:a,entry:e,index:t,dataKey:s})))):null}function jG(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,onAnimationEnd:l,onAnimationStart:u}=t,d=n.current,f=vS(t,`recharts-bar-`),[p,m]=(0,N.useState)(!1),h=!p,g=(0,N.useCallback)(()=>{typeof l==`function`&&l(),m(!1)},[l]),_=(0,N.useCallback)(()=>{typeof u==`function`&&u(),m(!0)},[u]);return N.createElement(DG,{showLabels:h,rects:r},N.createElement(_S,{animationId:f,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:g,onAnimationStart:_,key:f},e=>{var a=e===1?r:r?.map((t,n)=>{var r=d&&d[n];if(r)return vG(vG({},t),{},{x:nf(r.x,t.x,e),y:nf(r.y,t.y,e),width:nf(r.width,t.width,e),height:nf(r.height,t.height,e)});if(i===`horizontal`){var a=nf(0,t.height,e),o=nf(t.stackedBarStart,t.y,e);return vG(vG({},t),{},{y:o,height:a})}var s=nf(0,t.width,e),c=nf(t.stackedBarStart,t.x,e);return vG(vG({},t),{},{width:s,x:c})});return e>0&&(n.current=a??null),a==null?null:N.createElement(G,null,N.createElement(AG,{props:t,data:a}))}),N.createElement(yR,{label:t.label}),t.children)}function MG(e){var t=(0,N.useRef)(null);return N.createElement(jG,{previousRectanglesRef:t,props:e})}var NG=0,PG=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:X(e,t)}},FG=class extends N.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:a,needClip:o,background:s,id:c}=this.props;if(e||t==null)return null;var l=W(`recharts-bar`,r),u=c;return N.createElement(G,{className:l,id:c},o&&N.createElement(`defs`,null,N.createElement(_U,{clipPathId:u,xAxisId:i,yAxisId:a})),N.createElement(G,{className:`recharts-bar-rectangles`,clipPath:o?`url(#clipPath-${u})`:void 0},N.createElement(EG,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),N.createElement(MG,this.props)))}},IG={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:NG,xAxisId:0,yAxisId:0,zIndex:tw.bar};function LG(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u}=e,{needClip:d}=gU(t,n),f=Bv(),p=rv(),m=lz(e.children,EI),h=q(t=>nG(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,N.createElement(hU,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:PG,errorBarOffset:g},N.createElement(FG,gG({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function RG(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:o,xAxis:s,yAxis:c,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:m,parentViewBox:h,dataStartIndex:g}=e,_=t===`horizontal`?c:s,v=d?_.scale.domain():null,y=C_({numericAxis:_}),b=_.scale.map(y);return f.map((e,f)=>{var _,x,S,C,w,T;if(d){var E=d[f+g];if(E==null)return null;_=__(E,v)}else _=X(e,n),Array.isArray(_)||(_=[y,_]);var D=KW(r,NG)(_[1],f);if(t===`horizontal`){var O=c.scale.map(_[0]),k=c.scale.map(_[1]);if(O==null||k==null)return null;x=S_({axis:s,ticks:l,bandSize:o,offset:a.offset,entry:e,index:f}),S=k??O??void 0,C=a.size;var ee=O-k;if(w=Yd(ee)?0:ee,T={x,y:p.top,width:C,height:p.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var te=Jd(w||D)*(Math.abs(D)-Math.abs(w));S-=te,w+=te}}else{var ne=s.scale.map(_[0]),A=s.scale.map(_[1]);if(ne==null||A==null)return null;if(x=ne,S=S_({axis:c,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),C=A-ne,w=a.size,T={x:p.left,y:S,width:p.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var re=Jd(C||D)*(Math.abs(D)-Math.abs(C));C+=re}}return x==null||S==null||C==null||w==null||!i&&(C===0||w===0)?null:vG(vG({},e),{},{stackedBarStart:b,x,y:S,width:C,height:w,value:d?_:_[1],payload:e,background:T,tooltipPosition:{x:x+C/2,y:S+w/2},parentViewBox:h,originalDataIndex:f},m&&m[f]&&m[f].props)}).filter(Boolean)}function zG(e){var t=Ff(e,IG),n=cG(t.stackId),r=rv();return N.createElement(Zz,{id:t.id,type:`bar`},e=>N.createElement(N.Fragment,null,N.createElement(Kz,{legendPayload:wG(t)}),N.createElement(TG,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),N.createElement(oB,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),N.createElement(MF,{zIndex:t.zIndex},N.createElement(LG,gG({},t,{id:e})))))}var BG=N.memo(zG,pb);BG.displayName=`Bar`;var VG=[`option`,`isActive`];function HG(){return HG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HG.apply(null,arguments)}function UG(e,t){if(e==null)return{};var n,r,i=WG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function WG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GG(e){var{option:t,isActive:n}=e,r=UG(e,VG);return typeof t==`string`?N.createElement(Vz,HG({option:N.createElement(wf,HG({type:t},r)),isActive:n,shapeType:`symbols`},r)):N.createElement(Vz,HG({option:t,isActive:n,shapeType:`symbols`},r))}var KG=J([(e,t,n,r,i,a,o)=>EC(e,void 0,void 0,o),(e,t,n,r,i,a,o)=>oN(e,`xAxis`,t,o),(e,t,n,r,i,a,o)=>aN(e,`xAxis`,t,o),(e,t,n,r,i,a,o)=>oN(e,`yAxis`,n,o),(e,t,n,r,i,a,o)=>aN(e,`yAxis`,n,o),(e,t,n,r)=>sN(e,`zAxis`,r,!1),J([hj,(e,t,n,r,i)=>i],(e,t)=>e.filter(e=>e.type===`scatter`).find(e=>e.id===t)),(e,t,n,r,i,a)=>a],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=e;if(o!=null){var d=o?.data!=null&&o.data.length>0?o.data:c?.slice(l,u+1);if(!(d==null||t==null||r==null||n==null||i==null||n?.length===0||i?.length===0))return uK({displayedData:d,xAxis:t,yAxis:r,zAxis:a,scatterSettings:o,xAxisTicks:n,yAxisTicks:i,cells:s})}}),qG=[`id`],JG=[`onMouseEnter`,`onClick`,`onMouseLeave`],YG=[`animationBegin`,`animationDuration`,`animationEasing`,`hide`,`isAnimationActive`,`legendType`,`lineJointType`,`lineType`,`shape`,`xAxisId`,`yAxisId`,`zAxisId`];function XG(e,t){if(e==null)return{};var n,r,i=ZG(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ZG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function QG(){return QG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QG.apply(null,arguments)}function $G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$G(Object(n),!0).forEach(function(t){tK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function tK(e,t,n){return(t=nK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nK(e){var t=rK(e,`string`);return typeof t==`symbol`?t:t+``}function rK(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var iK=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:j_(n,t),payload:e}]},aK=N.memo(e=>{var{dataKey:t,points:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:n?.map(e=>e.tooltipPayload),getPosition:e=>{var t;return n==null||(t=n[Number(e)])==null?void 0:t.tooltipPosition},settings:{stroke:r,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:j_(o,t),hide:s,type:c,color:a,unit:``,graphicalItemId:l}};return N.createElement(Gz,{tooltipEntrySettings:u})});function oK(e){var{points:t,props:n}=e,{line:r,lineType:i,lineJointType:a}=n;if(!r)return null;var o=Ql(n),s=$l(r),c,l;if(i===`joint`)c=t.map(e=>({x:e.cx??null,y:e.cy??null}));else if(i===`fitting`){var{xmin:u,xmax:d,a:f,b:p}=af(t),m=e=>f*e+p;c=[{x:u,y:m(u)},{x:d,y:m(d)}]}var h=eK(eK(eK({},o),{},{fill:`none`,stroke:o&&o.fill},s),{},{points:c});return l=N.isValidElement(r)?N.cloneElement(r,h):typeof r==`function`?r(h):N.createElement(bx,QG({},h,{type:a})),N.createElement(G,{className:`recharts-scatter-line`,key:`recharts-scatter-line`},l)}function sK(e){var{showLabels:t,points:n,children:r}=e,i=Pv(),a=(0,N.useMemo)(()=>n?.map(e=>{var t={x:e.x??0,y:e.y??0,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width};return eK(eK({},t),{},{value:void 0,payload:e.payload,viewBox:t,parentViewBox:i,fill:void 0})}),[i,n]);return N.createElement(pR,{value:t?a:void 0},r)}function cK(e){var{points:t,allOtherScatterProps:n}=e,{shape:r,activeShape:i,dataKey:a}=n,{id:o}=n,s=XG(n,qG),c=q(kP),{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=XG(n,JG),p=Hz(l,a,o),m=Uz(d),h=Wz(u,a,o);if(!kf(t))return null;var g=Ql(s);return N.createElement(N.Fragment,null,N.createElement(oK,{points:t,props:s}),t.map((e,t)=>{var n=i!=null&&i!==!1,a=n&&c===String(t),s=n&&a?i:r,l=eK(eK(eK({},g),e),{},{index:t,[H_]:String(o)});return N.createElement(MF,{key:`symbol-${e?.cx}-${e?.cy}-${e?.size}-${t}`,zIndex:a?tw.activeDot:void 0},N.createElement(G,QG({className:`recharts-scatter-symbol`},Of(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),N.createElement(GG,QG({option:s,isActive:a},l))))}))}function lK(e){var{previousPointsRef:t,props:n}=e,{points:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=n,c=t.current,l=vS(n,`recharts-scatter-`),[u,d]=(0,N.useState)(!1),f=(0,N.useCallback)(()=>{d(!1)},[]),p=(0,N.useCallback)(()=>{d(!0)},[]),m=!u;return N.createElement(sK,{showLabels:m,points:r},n.children,N.createElement(_S,{animationId:l,begin:a,duration:o,isActive:i,easing:s,onAnimationEnd:f,onAnimationStart:p,key:l},e=>{var i=e===1?r:r?.map((t,n)=>{var r=c&&c[n];return r?eK(eK({},t),{},{cx:t.cx==null?void 0:nf(r.cx,t.cx,e),cy:t.cy==null?void 0:nf(r.cy,t.cy,e),size:nf(r.size,t.size,e)}):eK(eK({},t),{},{size:nf(0,t.size,e)})});return e>0&&(t.current=i),N.createElement(G,null,N.createElement(cK,{points:i,allOtherScatterProps:n,showLabels:m}))}),N.createElement(yR,{label:n.label}))}function uK(e){var{displayedData:t,xAxis:n,yAxis:r,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:s,cells:c}=e,l=of(n.dataKey)?a.dataKey:n.dataKey,u=of(r.dataKey)?a.dataKey:r.dataKey,d=i&&i.dataKey,f=i?i.range:cj.range,p=f&&f[0],m=n.scale.bandwidth?n.scale.bandwidth():0,h=r.scale.bandwidth?r.scale.bandwidth():0;return t.map((e,t)=>{var f=X(e,l),g=X(e,u),_=!of(d)&&X(e,d)||`-`,v=[{name:of(n.dataKey)?a.name:n.name||String(n.dataKey),unit:n.unit||``,value:f,payload:e,dataKey:l,type:a.tooltipType,graphicalItemId:a.id},{name:of(r.dataKey)?a.name:r.name||String(r.dataKey),unit:r.unit||``,value:g,payload:e,dataKey:u,type:a.tooltipType,graphicalItemId:a.id}];_!==`-`&&i!=null&&v.push({name:i.name||i.dataKey,unit:i.unit||``,value:_,payload:e,dataKey:d,type:a.tooltipType,graphicalItemId:a.id});var y=x_({axis:n,ticks:o,bandSize:m,entry:e,index:t,dataKey:l}),b=x_({axis:r,ticks:s,bandSize:h,entry:e,index:t,dataKey:u}),x=_!==`-`&&i!=null?i.scale.map(_):p,S=x==null?0:Math.sqrt(Math.max(x,0)/Math.PI);return eK(eK({},e),{},{cx:y,cy:b,x:y==null?void 0:y-S,y:b==null?void 0:b-S,width:2*S,height:2*S,size:x,node:{x:f,y:g,z:_},tooltipPayload:v,tooltipPosition:{x:y,y:b},payload:e},c&&c[t]&&c[t].props)})}var dK=(e,t,n)=>({x:e.cx,y:e.cy,value:Number(n===`x`?e.node.x:e.node.y),errorVal:X(e,t)});function fK(e){var{hide:t,points:n,className:r,needClip:i,xAxisId:a,yAxisId:o,id:s}=e,c=(0,N.useRef)(null);if(t)return null;var l=W(`recharts-scatter`,r),u=s;return N.createElement(MF,{zIndex:e.zIndex},N.createElement(G,{className:l,clipPath:i?`url(#clipPath-${u})`:void 0,id:s},i&&N.createElement(`defs`,null,N.createElement(_U,{clipPathId:u,xAxisId:a,yAxisId:o})),N.createElement(hU,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:dK,errorBarOffset:0},N.createElement(G,{key:`recharts-scatter-symbols`},N.createElement(lK,{props:e,previousPointsRef:c})))))}var pK={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:`circle`,lineType:`joint`,lineJointType:`linear`,shape:`circle`,hide:!1,isAnimationActive:`auto`,animationBegin:0,animationDuration:400,animationEasing:`linear`,zIndex:tw.scatter};function mK(e){var t=Ff(e,pK),{animationBegin:n,animationDuration:r,animationEasing:i,hide:a,isAnimationActive:o,legendType:s,lineJointType:c,lineType:l,shape:u,xAxisId:d,yAxisId:f,zAxisId:p}=t,m=XG(t,YG),{needClip:h}=gU(d,f),g=(0,N.useMemo)(()=>lz(e.children,EI),[e.children]),_=rv(),v=q(t=>KG(t,d,f,p,e.id,g,_));return h==null||v==null?null:N.createElement(N.Fragment,null,N.createElement(aK,{dataKey:e.dataKey,points:v,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),N.createElement(fK,QG({},m,{xAxisId:d,yAxisId:f,zAxisId:p,lineType:l,lineJointType:c,legendType:s,shape:u,hide:a,isAnimationActive:o,animationBegin:n,animationDuration:r,animationEasing:i,points:v,needClip:h})))}function hK(e){var t=Ff(e,pK),n=rv();return N.createElement(Zz,{id:t.id,type:`scatter`},e=>N.createElement(N.Fragment,null,N.createElement(Kz,{legendPayload:iK(t)}),N.createElement(oB,{type:`scatter`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:n}),N.createElement(mK,QG({},t,{id:e}))))}var gK=N.memo(hK,pb);gK.displayName=`Scatter`;var _K=[`domain`,`range`],vK=[`domain`,`range`];function yK(e,t){if(e==null)return{};var n,r,i=bK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function xK(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function SK(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=yK(e,_K),{domain:a,range:o}=t,s=yK(t,vK);return!xK(n,a)||!xK(r,o)?!1:pb(i,s)}var CK=[`type`],wK=[`dangerouslySetInnerHTML`,`ticks`,`scale`],TK=[`id`,`scale`];function EK(){return EK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EK.apply(null,arguments)}function DK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DK(Object(n),!0).forEach(function(t){kK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kK(e,t,n){return(t=AK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AK(e){var t=jK(e,`string`);return typeof t==`symbol`?t:t+``}function jK(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MK(e,t){if(e==null)return{};var n,r,i=NK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function NK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function PK(e){var t=jp(),n=(0,N.useRef)(null),r=Vv(),{type:i}=e,a=MK(e,CK),o=aw(r,`xAxis`,i),s=(0,N.useMemo)(()=>{if(o!=null)return OK(OK({},a),{},{type:o})},[a,o]);return(0,N.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(rV(s)):n.current!==s&&t(iV({prev:n.current,next:s})),n.current=s)},[s,t]),(0,N.useLayoutEffect)(()=>()=>{n.current&&=(t(aV(n.current)),null)},[t]),null}var FK=e=>{var{xAxisId:t,className:n}=e,r=q(tv),i=rv(),a=`xAxis`,o=q(e=>iN(e,a,t,i)),s=q(e=>KM(e,t)),c=q(e=>ZM(e,t)),l=q(e=>rj(e,t));if(s==null||c==null||l==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,p=MK(e,wK),{id:m,scale:h}=l,g=MK(l,TK);return N.createElement(LH,EK({},p,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:W(`recharts-${a} ${a}`,n),viewBox:r,ticks:o,axisType:a,axisId:t}))},IK={allowDataOverflow:nj.allowDataOverflow,allowDecimals:nj.allowDecimals,allowDuplicatedCategory:nj.allowDuplicatedCategory,angle:nj.angle,axisLine:OH.axisLine,height:nj.height,hide:!1,includeHidden:nj.includeHidden,interval:nj.interval,label:!1,minTickGap:nj.minTickGap,mirror:nj.mirror,orientation:nj.orientation,padding:nj.padding,reversed:nj.reversed,scale:nj.scale,tick:nj.tick,tickCount:nj.tickCount,tickLine:OH.tickLine,tickSize:OH.tickSize,type:nj.type,niceTicks:nj.niceTicks,xAxisId:0},LK=N.memo(e=>{var t=Ff(e,IK);return N.createElement(N.Fragment,null,N.createElement(PK,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),N.createElement(FK,t))},SK);LK.displayName=`XAxis`;var RK=[`type`],zK=[`dangerouslySetInnerHTML`,`ticks`,`scale`],BK=[`id`,`scale`];function VK(){return VK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VK.apply(null,arguments)}function HK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HK(Object(n),!0).forEach(function(t){WK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WK(e,t,n){return(t=GK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GK(e){var t=KK(e,`string`);return typeof t==`symbol`?t:t+``}function KK(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function qK(e,t){if(e==null)return{};var n,r,i=JK(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function JK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function YK(e){var t=jp(),n=(0,N.useRef)(null),r=Vv(),{type:i}=e,a=qK(e,RK),o=aw(r,`yAxis`,i),s=(0,N.useMemo)(()=>{if(o!=null)return UK(UK({},a),{},{type:o})},[o,a]);return(0,N.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(oV(s)):n.current!==s&&t(sV({prev:n.current,next:s})),n.current=s)},[s,t]),(0,N.useLayoutEffect)(()=>()=>{n.current&&=(t(cV(n.current)),null)},[t]),null}function XK(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=(0,N.useRef)(null),o=(0,N.useRef)(null),s=q(tv),c=rv(),l=jp(),u=`yAxis`,d=q(e=>$M(e,t)),f=q(e=>QM(e,t)),p=q(e=>iN(e,u,t,c)),m=q(e=>oj(e,t));if((0,N.useLayoutEffect)(()=>{if(!(r!==`auto`||!d||XL(i)||(0,N.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(fV({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:h,ticks:g,scale:_}=e,v=qK(e,zK),{id:y,scale:b}=m,x=qK(m,BK);return N.createElement(LH,VK({},v,x,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:W(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var ZK={allowDataOverflow:aj.allowDataOverflow,allowDecimals:aj.allowDecimals,allowDuplicatedCategory:aj.allowDuplicatedCategory,angle:aj.angle,axisLine:OH.axisLine,hide:!1,includeHidden:aj.includeHidden,interval:aj.interval,label:!1,minTickGap:aj.minTickGap,mirror:aj.mirror,orientation:aj.orientation,padding:aj.padding,reversed:aj.reversed,scale:aj.scale,tick:aj.tick,tickCount:aj.tickCount,tickLine:OH.tickLine,tickSize:OH.tickSize,type:aj.type,niceTicks:aj.niceTicks,width:aj.width,yAxisId:0},QK=N.memo(e=>{var t=Ff(e,ZK);return N.createElement(N.Fragment,null,N.createElement(YK,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),N.createElement(XK,t))},SK);QK.displayName=`YAxis`;var $K={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}};function eq(e){var t=Ff(e,$K),{animationId:n,from:r,to:i,attributeName:a,isActive:o,canBegin:s,duration:c,easing:l,begin:u,onAnimationEnd:d,onAnimationStart:f,children:p}=t,m=Xb(),h=o===`auto`?!Yb.isSsr&&!m:o,g=pS(n+a,t.animationManager),[_,v]=(0,N.useState)(()=>h?r:i),y=(0,N.useRef)(!1),b=(0,N.useCallback)(()=>{v(r),f()},[r,f]);return(0,N.useEffect)(()=>{if(!h||!s)return lf;y.current=!0;var e=g.subscribe(v);return g.start([b,u,i,c,d]),()=>{g.stop(),e&&e(),d()}},[h,s,c,l,u,b,d,g,i,r]),h?s&&y.current?p({transition:zx([a],c,l),[a]:_}):p({[a]:r}):p({[a]:i})}var tq=J([(e,t)=>t,Z,xw,Aw,SP,wP,rF,$_],hF);function nq(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function rq(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(nq(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var iq=Gh(`mouseClick`),aq=Qg();aq.startListening({actionCreator:iq,effect:(e,t)=>{var n=e.payload,r=tq(t.getState(),rq(n));r?.activeIndex!=null&&t.dispatch(DN({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var oq=Gh(`mouseMove`),sq=Qg(),cq=null,lq=null,uq=null;sq.startListening({actionCreator:oq,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);cq!==null&&(cancelAnimationFrame(cq),cq=null),lq!==null&&(typeof r!=`number`||!a)&&(clearTimeout(lq),lq=null),uq=rq(n);var o=()=>{var e=t.getState(),n=fN(e,e.tooltip.settings.shared);if(!uq){cq=null,lq=null;return}if(n===`axis`){var r=tq(e,uq);r?.activeIndex==null?t.dispatch(wN()):t.dispatch(EN({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}cq=null,lq=null};if(!a){o();return}r===`raf`?cq=requestAnimationFrame(o):typeof r==`number`&&lq===null&&(lq=setTimeout(o,r))}});function dq(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var fq={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},pq=fg({name:`rootProps`,initialState:fq,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??fq.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),mq=pq.reducer,{updateOptions:hq}=pq.actions,gq=fg({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:_q}=gq.actions,vq=gq.reducer,yq=Gh(`keyDown`),bq=Gh(`focus`),xq=Gh(`blur`),Sq=Qg(),Cq=null,wq=null,Tq=null;Sq.startListening({actionCreator:yq,effect:(e,t)=>{Tq=e.payload,Cq!==null&&(cancelAnimationFrame(Cq),Cq=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);wq!==null&&(typeof n!=`number`||!i)&&(clearTimeout(wq),wq=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=Tq;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=HN(n,uP(e),Rj(e),yP(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=wP(e),c=uP(e),l=fN(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=cF(e,l,`hover`,String(n.index));t.dispatch(kN({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=cN(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=Rj(e),h=yP(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(HN(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(HN(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=cF(e,l,`hover`,String(p));t.dispatch(kN({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{Cq=null,wq=null}};if(!i){a();return}n===`raf`?Cq=requestAnimationFrame(a):typeof n==`number`&&wq===null&&(a(),Tq=null,wq=setTimeout(()=>{Tq?a():(wq=null,Cq=null)},n))}}),Sq.startListening({actionCreator:bq,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&r.index==null){var i=`0`,a=cF(n,fN(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(kN({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),Sq.startListening({actionCreator:xq,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(kN({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}});function Eq(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var Dq=Gh(`externalEvent`),Oq=Qg(),kq=new Map,Aq=new Map,jq=new Map;Oq.startListening({actionCreator:Dq,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=Eq(r);jq.set(i,{handler:n,reactEvent:a});var o=kq.get(i);o!==void 0&&(cancelAnimationFrame(o),kq.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=Aq.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),Aq.delete(i));var f=()=>{var e=jq.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:PP(a),activeDataKey:jP(a),activeIndex:kP(a),activeLabel:AP(a),activeTooltipIndex:kP(a),isTooltipActive:FP(a)};n&&n(o,r)}finally{kq.delete(i),Aq.delete(i),jq.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);kq.set(i,p)}else if(typeof s==`number`){if(!Aq.has(i)){f();var m=setTimeout(f,s);Aq.set(i,m)}}else f()}}});var Mq=J([J([KN],e=>e.tooltipItemPayloads),(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}}),Nq=Gh(`touchMove`),Pq=Qg(),Fq=null,Iq=null,Lq=null,Rq=null;Pq.startListening({actionCreator:Nq,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){Rq=Eq(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);Fq!==null&&(cancelAnimationFrame(Fq),Fq=null),Iq!==null&&(typeof r!=`number`||!a)&&(clearTimeout(Iq),Iq=null),Lq=Array.from(n.touches).map(e=>rq({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(Rq!=null){var e=t.getState(),n=fN(e,e.tooltip.settings.shared);if(n===`axis`){var r=Lq?.[0];if(r==null){Fq=null,Iq=null;return}var i=tq(e,r);i?.activeIndex!=null&&t.dispatch(EN({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=Rq.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(V_),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=oP(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=Mq(e,s,c);t.dispatch(SN({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}Fq=null,Iq=null}};if(!a){o();return}r===`raf`?Fq=requestAnimationFrame(o):typeof r==`number`&&Iq===null&&(o(),Rq=null,Iq=setTimeout(()=>{Rq?o():(Iq=null,Fq=null)},r))}}});var zq={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},Bq=fg({name:`eventSettings`,initialState:zq,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Vy(t.payload.throttledEvents))}}}),{setEventSettings:Vq}=Bq.actions,Hq=Bq.reducer,Uq=gm({brush:BV,cartesianAxis:pV,chartData:rI,errorBars:uU,eventSettings:Hq,graphicalItems:aB,layout:a_,legend:Jy,options:XF,polarAxis:WR,polarOptions:vq,referenceElements:XV,renderedTicks:vH,rootProps:mq,tooltip:AN,zIndex:jF}),Wq=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return ng({reducer:Uq,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([aq.middleware,sq.middleware,Sq.middleware,Oq.middleware,Pq.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(eg({type:`raf`}))},devTools:Yb.devToolsEnabled&&{serialize:{replacer:dq},name:`recharts-${t}`}})};function Gq(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=rv(),a=(0,N.useRef)(null);if(i)return n;a.current??=Wq(t,r);var o=Op;return N.createElement(ub,{context:o,store:a.current},n)}function Kq(e){var{layout:t,margin:n}=e,r=jp(),i=rv();return(0,N.useEffect)(()=>{i||(r(n_(t)),r(t_(n)))},[r,i,t,n]),null}var qq=(0,N.memo)(Kq,pb);function Jq(e){var t=jp();return(0,N.useEffect)(()=>{t(hq(e))},[t,e]),null}var Yq=(0,N.memo)(e=>{var t=jp();return(0,N.useEffect)(()=>{t(Vq(e))},[t,e]),null},pb);function Xq(e){var{zIndex:t,isPanorama:n}=e,r=(0,N.useRef)(null),i=jp();return(0,N.useLayoutEffect)(()=>(r.current&&i(kF({zIndex:t,element:r.current,isPanorama:n})),()=>{i(AF({zIndex:t,isPanorama:n}))}),[i,t,n]),N.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function Zq(e){var{children:t,isPanorama:n}=e,r=q(_F);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return N.createElement(N.Fragment,null,i.map(e=>N.createElement(Xq,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>N.createElement(Xq,{key:e,zIndex:e,isPanorama:n})))}var Qq=[`children`];function $q(e,t){if(e==null)return{};var n,r,i=eJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tJ(){return tJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tJ.apply(null,arguments)}var nJ={width:`100%`,height:`100%`,display:`block`},rJ=(0,N.forwardRef)((e,t)=>{var n=Lv(),r=Rv(),i=ax();if(!s_(n)||!s_(r))return null;var{children:a,otherAttributes:o,title:s,desc:c}=e,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),N.createElement(ou,tJ({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:nJ,ref:t}),a)}),iJ=e=>{var{children:t}=e,n=q(av);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return N.createElement(ou,{width:r,height:i,x:o,y:a},t)},aJ=(0,N.forwardRef)((e,t)=>{var{children:n}=e,r=$q(e,Qq);return rv()?N.createElement(iJ,null,N.createElement(Zq,{isPanorama:!0},n)):N.createElement(rJ,tJ({ref:t},r),N.createElement(Zq,{isPanorama:!1},n))});function oJ(){var e=jp(),[t,n]=(0,N.useState)(null),r=q(I_);return(0,N.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;Y(n)&&n!==r&&e(i_(n))}},[t,e,r]),n}function sJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?sJ(Object(n),!0).forEach(function(t){lJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lJ(e,t,n){return(t=uJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uJ(e){var t=dJ(e,`string`);return typeof t==`symbol`?t:t+``}function dJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fJ(){return fJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fJ.apply(null,arguments)}var pJ=()=>(mI(),null);function mJ(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var hJ=(0,N.forwardRef)((e,t)=>{var n=(0,N.useRef)(null),[r,i]=(0,N.useState)({containerWidth:mJ(e.style?.width),containerHeight:mJ(e.style?.height)}),a=(0,N.useCallback)((e,t)=>{i(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),o=(0,N.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var{width:r,height:i}=e.getBoundingClientRect();a(r,i);var o=new ResizeObserver(e=>{var t=e[0];if(t!=null){var{width:n,height:r}=t.contentRect;a(n,r)}});o.observe(e),n.current=o}},[t,a]);return(0,N.useEffect)(()=>()=>{n.current?.disconnect()},[a]),N.createElement(N.Fragment,null,N.createElement(Wv,{width:r.containerWidth,height:r.containerHeight}),N.createElement(`div`,fJ({ref:o},e)))}),gJ=(0,N.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,N.useState)({containerWidth:mJ(n),containerHeight:mJ(r)}),o=(0,N.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,N.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return N.createElement(N.Fragment,null,N.createElement(Wv,{width:i.containerWidth,height:i.containerHeight}),N.createElement(`div`,fJ({ref:s},e)))}),_J=(0,N.forwardRef)((e,t)=>{var{width:n,height:r}=e;return N.createElement(N.Fragment,null,N.createElement(Wv,{width:n,height:r}),N.createElement(`div`,fJ({ref:t},e)))}),vJ=(0,N.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?N.createElement(gJ,fJ({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?N.createElement(_J,fJ({},e,{width:n,height:r,ref:t})):N.createElement(N.Fragment,null,N.createElement(Wv,{width:n,height:r}),N.createElement(`div`,fJ({ref:t},e)))});function yJ(e){return e?hJ:vJ}var bJ=(0,N.forwardRef)((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:c,onMouseEnter:l,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:p,onTouchMove:m,onTouchStart:h,style:g,width:_,responsive:v,dispatchTouchEvents:y=!0}=e,b=(0,N.useRef)(null),x=jp(),[S,C]=(0,N.useState)(null),[w,T]=(0,N.useState)(null),E=oJ(),D=Av(),O=D?.width>0?D.width:_,k=D?.height>0?D.height:i,ee=(0,N.useCallback)(e=>{E(e),typeof t==`function`&&t(e),C(e),T(e),e!=null&&(b.current=e)},[E,t,C,T]),te=(0,N.useCallback)(e=>{x(iq(e)),x(Dq({handler:a,reactEvent:e}))},[x,a]),ne=(0,N.useCallback)(e=>{x(oq(e)),x(Dq({handler:l,reactEvent:e}))},[x,l]),A=(0,N.useCallback)(e=>{x(wN()),x(Dq({handler:u,reactEvent:e}))},[x,u]),re=(0,N.useCallback)(e=>{x(oq(e)),x(Dq({handler:d,reactEvent:e}))},[x,d]),ie=(0,N.useCallback)(()=>{x(bq())},[x]),ae=(0,N.useCallback)(()=>{x(xq())},[x]),oe=(0,N.useCallback)(e=>{x(yq(e.key))},[x]),se=(0,N.useCallback)(e=>{x(Dq({handler:o,reactEvent:e}))},[x,o]),ce=(0,N.useCallback)(e=>{x(Dq({handler:s,reactEvent:e}))},[x,s]),le=(0,N.useCallback)(e=>{x(Dq({handler:c,reactEvent:e}))},[x,c]),ue=(0,N.useCallback)(e=>{x(Dq({handler:f,reactEvent:e}))},[x,f]),j=(0,N.useCallback)(e=>{x(Dq({handler:h,reactEvent:e}))},[x,h]),de=(0,N.useCallback)(e=>{y&&x(Nq(e)),x(Dq({handler:m,reactEvent:e}))},[x,y,m]),fe=(0,N.useCallback)(e=>{x(Dq({handler:p,reactEvent:e}))},[x,p]),pe=yJ(v);return N.createElement(HF.Provider,{value:S},N.createElement(du.Provider,{value:w},N.createElement(pe,{width:O??g?.width,height:k??g?.height,className:W(`recharts-wrapper`,r),style:cJ({position:`relative`,cursor:`default`,width:O,height:k},g),onClick:te,onContextMenu:se,onDoubleClick:ce,onFocus:ie,onBlur:ae,onKeyDown:oe,onMouseDown:le,onMouseEnter:ne,onMouseLeave:A,onMouseMove:re,onMouseUp:ue,onTouchEnd:fe,onTouchMove:de,onTouchStart:j,ref:ee},N.createElement(pJ,null),n)))}),xJ=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`];function SJ(e,t){if(e==null)return{};var n,r,i=CJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function CJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var wJ=(0,N.forwardRef)((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=Ql(SJ(e,xJ));return c?N.createElement(N.Fragment,null,N.createElement(Wv,{width:n,height:r}),N.createElement(aJ,{otherAttributes:d,title:l,desc:u},a)):N.createElement(bJ,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},N.createElement(aJ,{otherAttributes:d,title:l,desc:u,ref:t},N.createElement(QV,null,a)))});function TJ(){return TJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TJ.apply(null,arguments)}function EJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EJ(Object(n),!0).forEach(function(t){OJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OJ(e,t,n){return(t=kJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kJ(e){var t=AJ(e,`string`);return typeof t==`symbol`?t:t+``}function AJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var jJ=DJ({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:{top:5,right:5,bottom:5,left:5},responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},zq),MJ=(0,N.forwardRef)(function(e,t){var n=Ff(e.categoricalChartProps,jJ),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,categoricalChartProps:s}=e,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return N.createElement(Gq,{preloadedState:{options:c},reduxStoreName:s.id??r},N.createElement(IV,{chartData:s.data}),N.createElement(qq,{layout:n.layout,margin:n.margin}),N.createElement(Yq,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),N.createElement(Jq,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),N.createElement(wJ,TJ({},n,{ref:t})))}),NJ=[`axis`],PJ=(0,N.forwardRef)((e,t)=>N.createElement(MJ,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:NJ,tooltipPayloadSearcher:JF,categoricalChartProps:e,ref:t})),FJ=[`axis`,`item`],IJ=(0,N.forwardRef)((e,t)=>N.createElement(MJ,{chartName:`BarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:FJ,tooltipPayloadSearcher:JF,categoricalChartProps:e,ref:t}));function LJ(e){var t=jp();return(0,N.useEffect)(()=>{t(_q(e))},[t,e]),null}var RJ=[`layout`];function zJ(){return zJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zJ.apply(null,arguments)}function BJ(e,t){if(e==null)return{};var n,r,i=VJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function VJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function HJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HJ(Object(n),!0).forEach(function(t){WJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function WJ(e,t,n){return(t=GJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GJ(e){var t=KJ(e,`string`);return typeof t==`symbol`?t:t+``}function KJ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var qJ=UJ({accessibilityLayer:!0,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:`index`,layout:`radial`,responsive:!1,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`},zq),JJ=(0,N.forwardRef)(function(e,t){var n=Ff(e.categoricalChartProps,qJ),{layout:r}=n,i=BJ(n,RJ),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=e,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return N.createElement(Gq,{preloadedState:{options:l},reduxStoreName:n.id??a},N.createElement(IV,{chartData:n.data}),N.createElement(qq,{layout:r,margin:n.margin}),N.createElement(Yq,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),N.createElement(Jq,{baseValue:void 0,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),N.createElement(LJ,{cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius}),N.createElement(wJ,zJ({},i,{ref:t})))});function YJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YJ(Object(n),!0).forEach(function(t){ZJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZJ(e,t,n){return(t=QJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QJ(e){var t=$J(e,`string`);return typeof t==`symbol`?t:t+``}function $J(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var eY=[`item`],tY=XJ(XJ({},qJ),{},{layout:`centric`,startAngle:0,endAngle:360}),nY=(0,N.forwardRef)((e,t)=>{var n=Ff(e,tY);return N.createElement(JJ,{chartName:`PieChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:eY,tooltipPayloadSearcher:JF,categoricalChartProps:n,ref:t})}),rY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof Buffer<`u`&&Buffer.isBuffer(e)}e.isBuffer=t})),iY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}e.isPrototype=t})),aY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=up();function n(e){return t.isTypedArray(e)}e.isTypedArray=n})),oY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=xC();function n(e){let n=t.toFinite(e),r=n%1;return r?n-r:n}e.toInteger=n})),sY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=oY();function n(e,n){if(e=t.toInteger(e),e<1||!Number.isSafeInteger(e))return[];let r=Array(e);for(let t=0;t<e;t++)r[t]=typeof n==`function`?n(t):t;return r}e.times=n})),cY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=rY(),n=iY(),r=Qf(),i=aY(),a=sY();function o(e){if(e==null)return[];switch(typeof e){case`object`:case`function`:return r.isArrayLike(e)?l(e):n.isPrototype(e)?c(e):s(e);default:return s(Object(e))}}function s(e){let t=[];for(let n in e)t.push(n);return t}function c(e){return s(e).filter(e=>e!==`constructor`)}function l(e){let n=a.times(e.length,e=>`${e}`),r=new Set(n);t.isBuffer(e)&&(r.add(`offset`),r.add(`parent`)),i.isTypedArray(e)&&(r.add(`buffer`),r.add(`byteLength`),r.add(`byteOffset`));let o=s(e).filter(e=>!r.has(e));return Array.isArray(e)?[...n,...o]:[...n.filter(t=>Object.hasOwn(e,t)),...o]}e.keysIn=o})),lY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Hd(),n=Ld(),r=Rd(),i=zd(),a=Vd();function o(e,t){if(e==null)return!0;switch(typeof t){case`symbol`:case`number`:case`object`:if(Array.isArray(t))return s(e,t);if(typeof t==`number`?t=i.toKey(t):typeof t==`object`&&(t=Object.is(t?.valueOf(),-0)?`-0`:String(t)),n.isUnsafeProperty(t))return!1;if(e?.[t]===void 0)return!0;try{return delete e[t],!0}catch{return!1}case`string`:if(e?.[t]===void 0&&r.isDeepKey(t))return s(e,a.toPath(t));if(n.isUnsafeProperty(t))return!1;try{return delete e[t],!0}catch{return!1}}}function s(e,r){let i=r.length===1?e:t.get(e,r.slice(0,-1)),a=r[r.length-1];if(i?.[a]===void 0)return!0;if(n.isUnsafeProperty(a))return!1;try{return delete i[a],!0}catch{return!1}}e.unset=o})),uY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=sp();function n(e){let n=[];for(;e;)n.push(...t.getSymbols(e)),e=Object.getPrototypeOf(e);return n}e.getSymbolsIn=n})),dY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Qf();function n(e,n=1){let r=[],i=Math.floor(n);if(!t.isArrayLike(e))return r;let a=(e,t)=>{for(let n=0;n<e.length;n++){let o=e[n];t<i&&(Array.isArray(o)||o?.[Symbol.isConcatSpreadable]||typeof o==`object`&&o&&Object.prototype.toString.call(o)===`[object Arguments]`)?a(Array.isArray(o)?o:Array.from(o),t+1):r.push(o)}};return a(Array.from(e),0),r}e.flatten=n})),fY=o((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=mp(),n=cY(),r=lY(),i=uY(),a=Rd(),o=dY(),s=dz();function c(e,...t){if(e==null)return{};t=o.flatten(t);let n=l(e,t);for(let e=0;e<t.length;e++){let i=t[e];switch(typeof i){case`object`:Array.isArray(i)||(i=Array.from(i));for(let e=0;e<i.length;e++){let t=i[e];r.unset(n,t)}break;case`string`:case`symbol`:case`number`:r.unset(n,i);break}}return n}function l(e,t){return t.some(e=>Array.isArray(e)||a.isDeepKey(e))?d(e):u(e)}function u(e){let t={},r=[...n.keysIn(e),...i.getSymbolsIn(e)];for(let n=0;n<r.length;n++){let i=r[n];t[i]=e[i]}return t}function d(e){let r={},a=[...n.keysIn(e),...i.getSymbolsIn(e)];for(let n=0;n<a.length;n++){let i=a[n];r[i]=t.cloneDeepWith(e[i],e=>{if(!s.isPlainObject(e))return e})}return r}e.omit=c})),pY=l(o(((e,t)=>{t.exports=fY().omit}))()),mY=[`width`,`height`,`className`,`style`,`children`,`type`];function hY(e,t){if(e==null)return{};var n,r,i=gY(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function gY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function _Y(){return _Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_Y.apply(null,arguments)}function vY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vY(Object(n),!0).forEach(function(t){bY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bY(e,t,n){return(t=xY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xY(e){var t=SY(e,`string`);return typeof t==`symbol`?t:t+``}function SY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var CY=`value`;function wY(e){return typeof e==`object`&&!!e&&`x`in e&&`y`in e&&`width`in e&&`height`in e&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.width==`number`&&typeof e.height==`number`}var TY=(e,t)=>{if(!(!e||!t))return(0,qd.default)(e,t)},EY=function(e){return`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:``}children[${e}]`},DY={chartName:`Treemap`,defaultTooltipEventType:`item`,validateTooltipEventTypes:[`item`],tooltipPayloadSearcher:TY,eventEmitter:void 0},OY=e=>{var{depth:t,node:n,index:r,dataKey:i,nameKey:a,nestedActiveTooltipIndex:o}=e,s=t===0?``:EY(r,o),{children:c}=n,l=t+1,u=c&&c.length?c.map((e,t)=>OY({depth:l,node:e,index:t,dataKey:i,nameKey:a,nestedActiveTooltipIndex:s})):null,d;if(u&&u.length)d=u.reduce((e,t)=>e+t.value,0);else{var f=n[i],p=typeof f==`number`?f:0;d=Yd(p)||p<=0?0:p}return yY(yY({},n),{},{children:u,name:X(n,a,``),[CY]:d,depth:t,index:r,tooltipIndex:s})},kY=e=>({x:e.x,y:e.y,width:e.width,height:e.height}),AY=(e,t)=>{var n=t<0?0:t;return e.map(e=>{var t=e[CY]*n;return yY(yY({},e),{},{area:Yd(t)||t<=0?0:t})})},jY=(e,t,n)=>{var r=t*t,i=e.area*e.area,{min:a,max:o}=e.reduce((e,t)=>({min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}),{min:1/0,max:0});return i?Math.max(r*o*n/i,i/(r*a*n)):1/0},MY=(e,t,n,r)=>{var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var a=n.x,o,s=0,c=e.length;s<c;s++)o=e[s],o!=null&&(o.x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width);return o!=null&&(o.width+=n.x+n.width-a),yY(yY({},n),{},{y:n.y+i,height:n.height-i})},NY=(e,t,n,r)=>{var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var a=n.y,o,s=0,c=e.length;s<c;s++)o=e[s],o!=null&&(o.x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height);return o&&(o.height+=n.y+n.height-a),yY(yY({},n),{},{x:n.x+i,width:n.width-i})},PY=(e,t,n,r)=>t===n.width?MY(e,t,n,r):NY(e,t,n,r),FY=(e,t)=>{var{children:n}=e;if(n&&n.length){var r=kY(e),i=[],a=1/0,o,s,c=Math.min(r.width,r.height),l=AY(n,r.width*r.height/e[CY]),u=l.slice();for(i.area=0;u.length>0;)[o]=u,o!=null&&(i.push(o),i.area+=o.area,s=jY(i,c,t),s<=a?(u.shift(),a=s):(i.area-=i.pop()?.area??0,r=PY(i,c,r,!1),c=Math.min(r.width,r.height),i.length=i.area=0,a=1/0));return i.length&&=(r=PY(i,c,r,!0),i.area=0),yY(yY({},e),{},{children:l.map(e=>FY(e,t))})}return e},IY=yY({aspectRatio:.5*(1+Math.sqrt(5)),dataKey:`value`,nameKey:`name`,type:`flat`,isAnimationActive:`auto`,isUpdateAnimationActive:`auto`,animationBegin:0,animationDuration:1500,animationEasing:`linear`},zq),LY={isAnimationFinished:!1,formatRoot:null,currentRoot:void 0,nestIndex:[],prevAspectRatio:IY.aspectRatio,prevDataKey:IY.dataKey};function RY(e){var{content:t,nodeProps:n,type:r,colorPanel:i,onMouseEnter:a,onMouseLeave:o,onClick:s}=e;if(N.isValidElement(t))return N.createElement(G,{onMouseEnter:a,onMouseLeave:o,onClick:s},N.cloneElement(t,n));if(typeof t==`function`)return N.createElement(G,{onMouseEnter:a,onMouseLeave:o,onClick:s},t(n));var{x:c,y:l,width:u,height:d,index:f}=n,p=null;u>10&&d>10&&n.children&&r===`nest`&&(p=N.createElement(AR,{points:[{x:c+2,y:l+d/2},{x:c+6,y:l+d/2+3},{x:c+2,y:l+d/2+6}]}));var m=null,h=HI(n.name);u>20&&d>20&&h.width<u&&h.height<d&&(m=N.createElement(`text`,{x:c+8,y:l+d/2+7,fontSize:14},n.name));var g=i||B_;return N.createElement(`g`,null,N.createElement(HS,_Y({fill:n.depth<2?g[f%g.length]:`rgba(255,255,255,0)`,stroke:`#fff`},(0,pY.default)(n,[`children`]),{onMouseEnter:a,onMouseLeave:o,onClick:s,"data-recharts-item-index":n.tooltipIndex})),p,m)}function zY(e){var t=jp(),n={x:e.nodeProps.x+e.nodeProps.width/2,y:e.nodeProps.y+e.nodeProps.height/2};return N.createElement(RY,_Y({},e,{onMouseEnter:()=>{t(SN({activeIndex:e.nodeProps.tooltipIndex,activeDataKey:e.dataKey,activeCoordinate:n,activeGraphicalItemId:e.id}))},onMouseLeave:()=>{},onClick:()=>{t(TN({activeIndex:e.nodeProps.tooltipIndex,activeDataKey:e.dataKey,activeCoordinate:n,activeGraphicalItemId:e.id}))}}))}var BY=N.memo(e=>{var{dataKey:t,nameKey:n,stroke:r,fill:i,currentRoot:a,id:o}=e,s={dataDefinedOnItem:a,getPosition:lf,settings:{stroke:r,strokeWidth:void 0,fill:i,dataKey:t,nameKey:n,name:void 0,hide:!1,type:void 0,color:i,unit:``,graphicalItemId:o}};return N.createElement(Gz,{tooltipEntrySettings:s})}),VY={top:0,right:0,bottom:0,left:0};function HY(e){var{content:t,nodeProps:n,isLeaf:r,treemapProps:i,onNestClick:a}=e,{id:o,isAnimationActive:s,animationBegin:c,animationDuration:l,animationEasing:u,isUpdateAnimationActive:d,type:f,colorPanel:p,dataKey:m,onAnimationStart:h,onAnimationEnd:g,onMouseEnter:_,onClick:v,onMouseLeave:y}=i,{width:b,height:x,x:S,y:C}=n,w=-S-b,T=0,E=e=>{(r||f===`nest`)&&typeof _==`function`&&_(n,e)},D=e=>{(r||f===`nest`)&&typeof y==`function`&&y(n,e)},O=()=>{f===`nest`&&a(n),(r||f===`nest`)&&typeof v==`function`&&v(n)},k=(0,N.useCallback)(()=>{typeof g==`function`&&g()},[g]),ee=(0,N.useCallback)(()=>{typeof h==`function`&&h()},[h]);return N.createElement(eq,{animationId:`treemap-${n.tooltipIndex}`,from:`translate(${w}px, ${T}px)`,to:`translate(0, 0)`,attributeName:`transform`,begin:c,easing:u,isActive:s,duration:l,onAnimationStart:ee,onAnimationEnd:k},e=>N.createElement(G,{onMouseEnter:E,onMouseLeave:D,onClick:O,style:yY(yY({},e),{},{transformOrigin:`${S} ${C}`})},N.createElement(zY,{id:o,content:t,dataKey:m,nodeProps:yY(yY({},n),{},{isAnimationActive:s,isUpdateAnimationActive:!d,width:b,height:x,x:S,y:C}),type:f,colorPanel:p})))}var UY=class extends N.PureComponent{constructor(){super(...arguments),bY(this,`state`,yY({},LY)),bY(this,`handleClick`,e=>{var{onClick:t,type:n}=this.props;if(n===`nest`&&e.children){var{width:r,height:i,dataKey:a,nameKey:o,aspectRatio:s}=this.props,c=OY({depth:0,node:yY(yY({},e),{},{x:0,y:0,width:r,height:i}),index:0,dataKey:a,nameKey:o,nestedActiveTooltipIndex:e.tooltipIndex}),l=FY(c,s),{nestIndex:u}=this.state;u.push(e),this.setState({formatRoot:l,currentRoot:c,nestIndex:u})}t&&t(e)}),bY(this,`handleTouchMove`,e=>{var t=e.touches[0];if(t!=null){var n=document.elementFromPoint(t.clientX,t.clientY);if(!(!n||!n.getAttribute||this.state.formatRoot==null)){var r=n.getAttribute(`data-recharts-item-index`),i=TY(this.state.formatRoot,r);if(wY(i)){var{dataKey:a,dispatch:o}=this.props;o(SN({activeIndex:r,activeDataKey:a,activeCoordinate:{x:i.x+i.width/2,y:i.y+i.height/2},activeGraphicalItemId:this.props.id}))}}}})}static getDerivedStateFromProps(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=OY({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,dataKey:e.dataKey,nameKey:e.nameKey}),r=FY(n,e.aspectRatio);return yY(yY({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}handleNestIndex(e,t){var{nestIndex:n}=this.state,{width:r,height:i,dataKey:a,nameKey:o,aspectRatio:s}=this.props,c=FY(OY({depth:0,node:yY(yY({},e),{},{x:0,y:0,width:r,height:i}),index:0,dataKey:a,nameKey:o,nestedActiveTooltipIndex:e.tooltipIndex}),s);n=n.slice(0,t+1),this.setState({formatRoot:c,currentRoot:e,nestIndex:n})}renderNode(e,t){var{content:n,type:r}=this.props,i=yY(yY(yY({},Ql(this.props)),t),{},{root:e}),a=!t.children||!t.children.length,{currentRoot:o}=this.state;return!(o?.children||[]).filter(e=>e.depth===t.depth&&e.name===t.name).length&&e.depth&&r===`nest`?null:N.createElement(G,{key:`recharts-treemap-node-${i.x}-${i.y}-${i.name}`,className:`recharts-treemap-depth-${t.depth}`},N.createElement(HY,{isLeaf:a,content:n,nodeProps:i,treemapProps:this.props,onNestClick:this.handleClick}),t.children&&t.children.length?t.children.map(e=>this.renderNode(t,e)):null)}renderAllNodes(){var{formatRoot:e}=this.state;return e?this.renderNode(e,e):null}renderNestIndex(){var{nameKey:e,nestIndexContent:t}=this.props,{nestIndex:n}=this.state;return N.createElement(`div`,{className:`recharts-treemap-nest-index-wrapper`,style:{marginTop:`8px`,textAlign:`center`}},n.map((n,r)=>{var i=(0,qd.default)(n,e,`root`),a=typeof i==`string`?i:`root`,o;return N.isValidElement(t)&&(o=N.cloneElement(t,n,r)),o=typeof t==`function`?t(n,r):a,N.createElement(`div`,{onClick:this.handleNestIndex.bind(this,n,r),key:`nest-index-${$d()}`,className:`recharts-treemap-nest-index-box`,style:{cursor:`pointer`,display:`inline-block`,padding:`0 7px`,background:`#000`,color:`#fff`,marginRight:`3px`}},o)}))}render(){var e=this.props,{width:t,height:n,className:r,style:i,children:a,type:o}=e,s=Ql(hY(e,mY));return N.createElement(N.Fragment,null,N.createElement(BY,{dataKey:this.props.dataKey,nameKey:this.props.nameKey,stroke:this.props.stroke,fill:this.props.fill,currentRoot:this.state.currentRoot,id:this.props.id}),N.createElement(ou,_Y({},s,{width:t,height:o===`nest`?n-30:n,onTouchMove:this.handleTouchMove}),this.renderAllNodes(),a),o===`nest`&&this.renderNestIndex())}};bY(UY,`displayName`,`Treemap`);function WY(e){var t=jp(),n=Lv(),r=Rv();if(!s_(n)||!s_(r))return null;var{id:i}=e;return N.createElement(Zz,{id:i,type:`treemap`},i=>N.createElement(UY,_Y({},e,{id:i,width:n,height:r,dispatch:t})))}function GY(e){var t=Ff(e,IY),{className:n,style:r,width:i,height:a,throttleDelay:o,throttledEvents:s}=t,[c,l]=(0,N.useState)(null);return N.createElement(Gq,{preloadedState:{options:DY},reduxStoreName:t.className??`Treemap`},N.createElement(Gv,{margin:VY}),N.createElement(Yq,{throttleDelay:o,throttledEvents:s}),N.createElement(bJ,{dispatchTouchEvents:!1,className:n,style:r,width:i,height:a,responsive:!1,ref:e=>{c==null&&e!=null&&l(e)},onMouseEnter:void 0,onMouseLeave:void 0,onClick:void 0,onMouseMove:void 0,onMouseDown:void 0,onMouseUp:void 0,onContextMenu:void 0,onDoubleClick:void 0,onTouchStart:void 0,onTouchMove:void 0,onTouchEnd:void 0},N.createElement(HF.Provider,{value:c},N.createElement(WY,t))))}var KY=[`item`],qY=(0,N.forwardRef)((e,t)=>N.createElement(MJ,{chartName:`ScatterChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:KY,tooltipPayloadSearcher:JF,categoricalChartProps:e,ref:t})),JY=[`axis`],YY=(0,N.forwardRef)((e,t)=>N.createElement(MJ,{chartName:`AreaChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:JY,tooltipPayloadSearcher:JF,categoricalChartProps:e,ref:t})),XY=[`bar`,`line`,`area`,`pie`,`scatter`,`kpiNumber`,`table`,`treemap`];function ZY(e,t,n){let r=t.measures||[],i=t.dimensions||[],a=t.timeDimensions?.filter(e=>e.granularity)||[],o=r.length>0,s=i.length>0,c=a.length>0;switch(e){case`table`:return!0;case`kpiNumber`:return o;case`bar`:case`line`:case`area`:return o&&(s||c);case`pie`:return o&&s&&n<=20;case`scatter`:return o&&(s||c);case`treemap`:return o&&s;default:return!0}}function QY(e,t){let n=e.measures||[],r=e.dimensions||[],i=e.timeDimensions?.filter(e=>e.granularity)||[],a=t.length,o=[...n],s,c=[];if(i.length>0)s=i[0].dimension;else if(r.length>0){s=r[0];for(let e=1;e<r.length;e++)c.push(r[e])}let l;return l=n.length>=1&&r.length===0&&i.length===0&&a<=1?`kpiNumber`:i.length>0&&n.length>=1?`line`:r.length>0&&n.length>=1?a<=10&&n.length===1&&r.length===1?`pie`:a<=30?`bar`:`table`:`table`,{chartType:l,xAxis:s,yAxis:o,series:c}}var $Y=o((e=>{var t=d(),n=Symbol.for(`react.element`),r=Object.prototype.hasOwnProperty,i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(e,t,o){var s,c={},l=null,u=null;for(s in o!==void 0&&(l=``+o),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)r.call(t,s)&&!a.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:i.current}}e.jsx=o,e.jsxs=o})),$=o(((e,t)=>{t.exports=$Y()}))(),eX={bar:`Bar`,line:`Line`,area:`Area`,pie:`Pie`,scatter:`Scatter`,kpiNumber:`KPI`,table:`Table`,treemap:`Treemap`};function tX({selected:e,query:t,rowCount:n,onSelect:r}){return(0,$.jsx)(`div`,{style:{display:`flex`,gap:4,flexWrap:`wrap`,marginBottom:12},children:XY.map(i=>{let a=ZY(i,t,n),o=i===e;return(0,$.jsx)(`button`,{onClick:()=>a&&r(i),disabled:!a,style:{padding:`4px 10px`,fontSize:12,borderRadius:6,border:`1px solid`,borderColor:o?`var(--dc-accent, #6366f1)`:`var(--dc-border, #e2e8f0)`,background:o?`var(--dc-accent, #6366f1)`:`var(--dc-surface, #fff)`,color:o?`#fff`:a?`var(--dc-text, #1e293b)`:`var(--dc-text-muted, #94a3b8)`,cursor:a?`pointer`:`not-allowed`,opacity:a?1:.5,fontWeight:o?600:400,transition:`all 0.15s`},children:eX[i]},i)})})}var nX=B([H(`light`),H(`dark`)]).describe(`Color theme preference for the host environment.`),rX=B([H(`inline`),H(`fullscreen`),H(`pip`)]).describe(`Display mode for UI presentation.`),iX=V(B([H(`--color-background-primary`),H(`--color-background-secondary`),H(`--color-background-tertiary`),H(`--color-background-inverse`),H(`--color-background-ghost`),H(`--color-background-info`),H(`--color-background-danger`),H(`--color-background-success`),H(`--color-background-warning`),H(`--color-background-disabled`),H(`--color-text-primary`),H(`--color-text-secondary`),H(`--color-text-tertiary`),H(`--color-text-inverse`),H(`--color-text-ghost`),H(`--color-text-info`),H(`--color-text-danger`),H(`--color-text-success`),H(`--color-text-warning`),H(`--color-text-disabled`),H(`--color-border-primary`),H(`--color-border-secondary`),H(`--color-border-tertiary`),H(`--color-border-inverse`),H(`--color-border-ghost`),H(`--color-border-info`),H(`--color-border-danger`),H(`--color-border-success`),H(`--color-border-warning`),H(`--color-border-disabled`),H(`--color-ring-primary`),H(`--color-ring-secondary`),H(`--color-ring-inverse`),H(`--color-ring-info`),H(`--color-ring-danger`),H(`--color-ring-success`),H(`--color-ring-warning`),H(`--font-sans`),H(`--font-mono`),H(`--font-weight-normal`),H(`--font-weight-medium`),H(`--font-weight-semibold`),H(`--font-weight-bold`),H(`--font-text-xs-size`),H(`--font-text-sm-size`),H(`--font-text-md-size`),H(`--font-text-lg-size`),H(`--font-heading-xs-size`),H(`--font-heading-sm-size`),H(`--font-heading-md-size`),H(`--font-heading-lg-size`),H(`--font-heading-xl-size`),H(`--font-heading-2xl-size`),H(`--font-heading-3xl-size`),H(`--font-text-xs-line-height`),H(`--font-text-sm-line-height`),H(`--font-text-md-line-height`),H(`--font-text-lg-line-height`),H(`--font-heading-xs-line-height`),H(`--font-heading-sm-line-height`),H(`--font-heading-md-line-height`),H(`--font-heading-lg-line-height`),H(`--font-heading-xl-line-height`),H(`--font-heading-2xl-line-height`),H(`--font-heading-3xl-line-height`),H(`--border-radius-xs`),H(`--border-radius-sm`),H(`--border-radius-md`),H(`--border-radius-lg`),H(`--border-radius-xl`),H(`--border-radius-full`),H(`--border-width-regular`),H(`--shadow-hairline`),H(`--shadow-sm`),H(`--shadow-md`),H(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
133
+ ${b.x},${b.y}`,S=Ff(e.id)?jf(`recharts-radial-line-`):e.id;return bL.createElement(`text`,_L({},r,{dominantBaseline:`central`,className:H(`recharts-radial-bar-label`,o)}),bL.createElement(`defs`,null,bL.createElement(`path`,{id:S,d:x})),bL.createElement(`textPath`,{xlinkHref:`#${S}`},n))},PL=(e,t,n)=>{var{cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:s,endAngle:c}=e,l=(s+c)/2;if(n===`outside`){var{x:u,y:d}=FS(r,i,o+t,l);return{x:u,y:d,textAnchor:u>=r?`start`:`end`,verticalAnchor:`middle`}}if(n===`center`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`middle`};if(n===`centerTop`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`start`};if(n===`centerBottom`)return{x:r,y:i,textAnchor:`middle`,verticalAnchor:`end`};var{x:f,y:p}=FS(r,i,(a+o)/2,l);return{x:f,y:p,textAnchor:`middle`,verticalAnchor:`middle`}},FL=e=>e!=null&&`cx`in e&&G(e.cx),IL={angle:0,offset:5,zIndex:RC.label,position:`middle`,textBreakAll:!1},vL.displayName=`Label`,LL=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?bL.createElement(vL,_L({key:`label-implicit`},r)):kf(e)?bL.createElement(vL,_L({key:`label-implicit`,value:e},r)):(0,xL.isValidElement)(e)?e.type===vL?(0,xL.cloneElement)(e,gL({key:`label-implicit`},r)):bL.createElement(vL,_L({key:`label-implicit`,content:e},r)):jL(e)?bL.createElement(vL,_L({key:`label-implicit`,content:e},r)):e&&typeof e==`object`?bL.createElement(vL,_L({},e,{key:`label-implicit`},r)):null}}));function zL(){return zL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zL.apply(null,arguments)}function BL(e,t){if(e==null)return{};var n,r,i=Ose(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ose(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kse(){return(0,WL.useContext)(JL)}function Ase(){return(0,WL.useContext)(XL)}function VL(e){var{valueAccessor:t=qL}=e,n=BL(e,GL),{dataKey:r,clockWise:i,id:a,textBreakAll:o,zIndex:s}=n,c=BL(n,KL),l=kse(),u=Ase(),d=l||u;return!d||!d.length?null:UL.createElement(fF,{zIndex:s??RC.label},UL.createElement(U,{className:`recharts-label-list`},d.map((e,i)=>{var s=Ff(r)?t(e,i):X(e.payload,r),l=Ff(a)?{}:{id:`${a}-${i}`};return UL.createElement(vL,zL({key:`label-${i}`},su(e),c,l,{fill:n.fill??e.fill,parentViewBox:e.parentViewBox,value:s,textBreakAll:o,viewBox:e.viewBox,index:i,zIndex:0}))})))}function HL(e){var{label:t}=e;return t?t===!0?UL.createElement(VL,{key:`labelList-implicit`}):UL.isValidElement(t)||jL(t)?UL.createElement(VL,{key:`labelList-implicit`,content:t}):typeof t==`object`?UL.createElement(VL,zL({key:`labelList-implicit`},t,{type:String(t.type)})):null:null}var UL,WL,GL,KL,qL,JL,YL,XL,ZL,QL=o((()=>{UL=u(f()),WL=u(f()),RL(),wu(),P_(),K(),uu(),hF(),zC(),uL(),GL=[`valueAccessor`],KL=[`dataKey`,`clockWise`,`id`,`textBreakAll`,`zIndex`],qL=e=>{var t=Array.isArray(e.value)?e.value[e.value.length-1]:e.value;if(_se(t))return t},JL=(0,WL.createContext)(void 0),YL=JL.Provider,XL=(0,WL.createContext)(void 0),ZL=XL.Provider,VL.displayName=`LabelList`}));function $L(){return $L=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$L.apply(null,arguments)}function jse(e,t){if(e==null)return{};var n,r,i=Mse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Nse(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var eR,tR,Pse,nR,rR,iR,aR,oR,sR=o((()=>{eR=u(f()),Xl(),uu(),xf(),tR=[`points`,`className`,`baseLinePoints`,`connectNulls`],nR=e=>e!=null&&e.x===+e.x&&e.y===+e.y,rR=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=[[]];e.forEach(e=>{var n=t[t.length-1];nR(e)?n&&n.push(e):n&&n.length>0&&t.push([])});var n=e[0],r=t[t.length-1];nR(n)&&r&&r.push(n);var i=t[t.length-1];return i&&i.length<=0&&(t=t.slice(0,-1)),t},iR=(e,t)=>{var n=rR(e);t&&(n=[n.reduce((e,t)=>[...e,...t],[])]);var r=n.map(e=>e.reduce((e,t,n)=>yf(Pse||=Nse([``,``,``,`,`,``]),e,n===0?`M`:`L`,t.x,t.y),``)).join(``);return n.length===1?`${r}Z`:r},aR=(e,t,n)=>{var r=iR(e,n);return`${r.slice(-1)===`Z`?r.slice(0,-1):r}L${iR(Array.from(t).reverse(),n).slice(1)}`},oR=e=>{var{points:t,className:n,baseLinePoints:r,connectNulls:i}=e,a=jse(e,tR);if(!t||!t.length)return null;var o=H(`recharts-polygon`,n);if(r&&r.length){var s=a.stroke&&a.stroke!==`none`,c=aR(t,r,i);return eR.createElement(`g`,{className:o},eR.createElement(`path`,$L({},su(a),{fill:c.slice(-1)===`Z`?a.fill:`none`,stroke:`none`,d:c})),s?eR.createElement(`path`,$L({},su(a),{fill:`none`,d:iR(t,i)})):null,s?eR.createElement(`path`,$L({},su(a),{fill:`none`,d:iR(r,i)})):null)}var l=iR(t,i);return eR.createElement(`path`,$L({},su(a),{fill:l.slice(-1)===`Z`?a.fill:`none`,className:o,d:l}))}}));function cR(){return cR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cR.apply(null,arguments)}var lR,uR,dR=o((()=>{lR=u(f()),Xl(),np(),ou(),K(),uR=e=>{var{cx:t,cy:n,r,className:i}=e,a=H(`recharts-dot`,i);return G(t)&&G(n)&&G(r)?lR.createElement(`circle`,cR({},nu(e),Qf(e),{className:a,cx:t,cy:n,r})):null}})),fR,pR,mR,hR,gR,_R,vR,yR,bR,xR,SR,CR,wR=o((()=>{rm(),lC(),UM(),Wv(),P_(),mw(),gw(),LC(),Fw(),fR=e=>e.graphicalItems.polarItems,pR=J([pw,hw],DA),mR=J([fR,qA,pR],$A),hR=J([mR],ij),gR=J([hR,rC],sj),_R=J([gR,qA,mR],lj),J([gR,qA,mR],(e,t,n)=>n.length>0?e.flatMap(e=>n.flatMap(n=>({value:X(e,t.dataKey??n.dataKey),errorDomain:[]}))).filter(Boolean):t?.dataKey==null?e.map(e=>({value:e,errorDomain:[]})):e.map(e=>({value:X(e,t.dataKey),errorDomain:[]}))),vR=()=>void 0,yR=J([qA,xj,Sj,vR,J([gR,qA,mR,wj,pw,sC],Dj),vR,Z,pw],Uj),bR=J([qA,Z,gR,_R,AC,pw,yR],Kj),xR=J([bR,YA,Jj],Yj),SR=J([qA,bR,xR,pw],Zj),CR=J([Jj,SR],Pw)})),TR,ER,DR,OR,kR,AR,jR,MR,NR=o((()=>{rm(),UM(),fw(),Wv(),wR(),mw(),Nw(),vA(),TR=(e,t,n)=>{switch(t){case`angleAxis`:return $C(e,n);case`radiusAxis`:return tw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},ER=(e,t,n)=>{switch(t){case`angleAxis`:return cw(e,n);case`radiusAxis`:return uw(e,n);default:throw Error(`Unexpected axis type: ${t}`)}},DR=J([TR,Jj,CR,ER],_A),OR=J([DR],Mw),kR=J([Z,_R,YA,pw],dM),AR=J([Z,TR,Jj,OR,xR,ER,MM,kR,pw],PM),jR=J([AR],e=>{if(e){var t=new Map;return e.forEach(e=>{var n=(e.coordinate+360)%360;t.has(n)||t.set(n,e)}),Array.from(t.values())}}),MR=J([Z,TR,OR,ER,MM,kR,pw],IM)})),PR,FR,IR,LR,Fse=o((()=>{rm(),NR(),PR=(e,t)=>AR(e,`angleAxis`,t,!1),FR=J([PR],e=>{if(e)return e.map(e=>e.coordinate)}),IR=(e,t)=>AR(e,`radiusAxis`,t,!1),LR=J([IR],e=>{if(e)return e.map(e=>e.coordinate)})}));function Ise(e,t){if(e==null)return{};var n,r,i=Lse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function RR(){return RR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RR.apply(null,arguments)}function zR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zR(Object(n),!0).forEach(function(t){Rse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rse(e,t,n){return(t=zse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zse(e){var t=Bse(e,`string`);return typeof t==`symbol`?t:t+``}function Bse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var VR,HR,UR,WR,GR,KR,qR,JR,YR,Vse=o((()=>{Xl(),VR=u(f()),HS(),Jp(),Fse(),fw(),ou(),hF(),zC(),ap(),HR=[`gridType`,`radialLines`,`angleAxisId`,`radiusAxisId`,`cx`,`cy`,`innerRadius`,`outerRadius`,`polarAngles`,`polarRadius`,`zIndex`],UR=(e,t,n,r)=>{var i=``;return r.forEach((r,a)=>{var o=FS(t,n,e,r);a?i+=`L ${o.x},${o.y}`:i+=`M ${o.x},${o.y}`}),i+=`Z`,i},WR=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,polarAngles:a,radialLines:o}=e;if(!a||!a.length||!o)return null;var s=BR({},nu(e));return VR.createElement(`g`,{className:`recharts-polar-grid-angle`},a.map(e=>{var a=FS(t,n,r,e),o=FS(t,n,i,e);return VR.createElement(`line`,RR({key:`line-${e}`},s,{x1:a.x,y1:a.y,x2:o.x,y2:o.y}))}))},GR=e=>{var{cx:t,cy:n,radius:r}=e,i=BR({},nu(e));return VR.createElement(`circle`,RR({},i,{className:H(`recharts-polar-grid-concentric-circle`,e.className),cx:t,cy:n,r}))},KR=e=>{var{radius:t}=e,n=BR({},nu(e));return VR.createElement(`path`,RR({},n,{className:H(`recharts-polar-grid-concentric-polygon`,e.className),d:UR(t,e.cx,e.cy,e.polarAngles)}))},qR=e=>{var{polarRadius:t,gridType:n}=e;if(!t||!t.length)return null;var r=Math.max(...t),i=e.fill&&e.fill!==`none`;return VR.createElement(`g`,{className:`recharts-polar-grid-concentric`},i&&n===`circle`&&VR.createElement(GR,RR({},e,{radius:r})),i&&n!==`circle`&&VR.createElement(KR,RR({},e,{radius:r})),t.map((t,r)=>{var i=r;return n===`circle`?VR.createElement(GR,RR({key:i},e,{fill:`none`,radius:t})):VR.createElement(KR,RR({key:i},e,{fill:`none`,radius:t}))}))},JR={angleAxisId:0,radiusAxisId:0,gridType:`polygon`,radialLines:!0,zIndex:RC.grid,stroke:`#ccc`,strokeWidth:1,fill:`none`},YR=e=>{var t=ip(e,JR),{gridType:n,radialLines:r,angleAxisId:i,radiusAxisId:a,cx:o,cy:s,innerRadius:c,outerRadius:l,polarAngles:u,polarRadius:d,zIndex:f}=t,p=Ise(t,HR),m=q(dw),h=q(e=>FR(e,i)),g=q(e=>LR(e,a)),_=Array.isArray(u)?u:h,v=Array.isArray(d)?d:g;if(_==null||v==null)return null;var y=BR({cx:m?.cx??o??0,cy:m?.cy??s??0,innerRadius:m?.innerRadius??c??0,outerRadius:m?.outerRadius??l??0,polarAngles:_,polarRadius:v,zIndex:f},p),{outerRadius:b}=y;return b<=0?null:VR.createElement(fF,{zIndex:y.zIndex},VR.createElement(`g`,{className:`recharts-polar-grid`},VR.createElement(qR,RR({gridType:n,radialLines:r},y,{polarAngles:_,polarRadius:v})),VR.createElement(WR,RR({gridType:n,radialLines:r},y,{polarAngles:_,polarRadius:v}))))},YR.displayName=`PolarGrid`})),Hse=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){if(e.length===0)return;let n=e[0],r=t(n,0,e);for(let i=1;i<e.length;i++){let a=e[i],o=t(a,i,e);o>r&&(r=o,n=a)}return n}e.maxBy=t})),Use=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Hse(),n=gp(),r=Ap();function i(e,i){if(e!=null)return t.maxBy(Array.from(e),r.iteratee(i??n.identity))}e.maxBy=i})),Wse=s(((e,t)=>{t.exports=Use().maxBy})),Gse=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e,t){if(e.length===0)return;let n=e[0],r=t(n,0,e);for(let i=1;i<e.length;i++){let a=e[i],o=t(a,i,e);o<r&&(r=o,n=a)}return n}e.minBy=t})),Kse=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Gse(),n=gp(),r=Ap();function i(e,i){if(e!=null)return t.minBy(Array.from(e),r.iteratee(i??n.identity))}e.minBy=i})),qse=s(((e,t)=>{t.exports=Kse().minBy})),XR,ZR,QR,$R,ez,tz,nz=o((()=>{Yg(),Ly(),XR=hg({name:`polarAxis`,initialState:{radiusAxis:{},angleAxis:{}},reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=Cy(t.payload)},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=Cy(t.payload)},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:ZR,removeRadiusAxis:QR,addAngleAxis:$R,removeAngleAxis:ez}=XR.actions,tz=XR.reducer}));function rz(e){return e&&typeof e==`object`&&`className`in e&&typeof e.className==`string`?e.className:``}var iz=o((()=>{}));function az(){return az=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},az.apply(null,arguments)}function oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oz(Object(n),!0).forEach(function(t){Jse(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jse(e,t,n){return(t=Yse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yse(e){var t=Xse(e,`string`);return typeof t==`symbol`?t:t+``}function Xse(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cz(e,t){if(e==null)return{};var n,r,i=Zse(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Zse(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Qse(e){var t=Wp(),n=Bv(),r=(0,dz.useMemo)(()=>{var{type:t}=e,r=cz(e,mz),i=KC(n,`radiusAxis`,t);if(i!=null)return sz(sz({},r),{},{type:i})},[e,n]);return(0,dz.useEffect)(()=>r==null?wf:(t(ZR(r)),()=>{t(QR(r))}),[t,r]),null}function lz(e){var t=ip(e,HC);return uz.createElement(uz.Fragment,null,uz.createElement(Qse,{domain:t.domain,id:t.radiusAxisId,scale:t.scale,type:t.type,dataKey:t.dataKey,unit:void 0,name:t.name,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDataOverflow:t.allowDataOverflow,reversed:t.reversed,includeHidden:t.includeHidden,allowDecimals:t.allowDecimals,niceTicks:t.niceTicks??`auto`,ticks:t.ticks,tickCount:t.tickCount,tick:t.tick}),uz.createElement(wz,t))}var uz,dz,fz,pz,mz,hz,gz,_z,vz,yz,bz,xz,Sz,Cz,wz,$se=o((()=>{uz=u(f()),dz=u(f()),fz=u(Wse()),pz=u(qse()),Xl(),uL(),RL(),wu(),HS(),np(),nz(),Jp(),NR(),fw(),UC(),ou(),ap(),hF(),Wv(),K(),qC(),iz(),mz=[`type`],hz=[`cx`,`cy`,`angle`,`axisLine`],gz=[`angle`,`tickFormatter`,`stroke`,`tick`],_z=`radiusAxis`,vz=(e,t,n,r)=>{var{coordinate:i}=e;return FS(n,r,i,t)},yz=e=>{var t;switch(e){case`left`:t=`end`;break;case`right`:t=`start`;break;default:t=`middle`;break}return t},bz=(e,t,n,r)=>{var i=(0,fz.default)(r,e=>e.coordinate||0);return{cx:t,cy:n,startAngle:e,endAngle:e,innerRadius:(0,pz.default)(r,e=>e.coordinate||0)?.coordinate||0,outerRadius:i?.coordinate||0,clockWise:!1}},xz=(e,t)=>{var{cx:n,cy:r,angle:i,axisLine:a}=e,o=cz(e,hz),s=t.reduce((e,t)=>[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)],[1/0,-1/0]),c=FS(n,r,s[0],i),l=FS(n,r,s[1],i),u=sz(sz(sz({},nu(o)),{},{fill:`none`},nu(a)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return uz.createElement(`line`,az({className:`recharts-polar-radius-axis-line`},u))},Sz=(e,t,n)=>uz.isValidElement(e)?uz.cloneElement(e,t):typeof e==`function`?e(t):uz.createElement(lL,az({},t,{className:`recharts-polar-radius-axis-tick-value`}),n),Cz=(e,t)=>{var{angle:n,tickFormatter:r,stroke:i,tick:a}=e,o=cz(e,gz),s=yz(e.orientation),c=nu(o),l=ru(a),u=t.map((t,o)=>{var u=vz(t,e.angle,e.cx,e.cy),d=sz(sz(sz(sz({textAnchor:s,transform:`rotate(${90-n}, ${u.x}, ${u.y})`},c),{},{stroke:`none`,fill:i},l),{},{index:o},u),{},{payload:t});return uz.createElement(U,az({className:H(`recharts-polar-radius-axis-tick`,rz(a)),key:`tick-${t.coordinate}`},ep(e,t,o)),Sz(a,d,r?r(t.value,o):t.value))});return uz.createElement(U,{className:`recharts-polar-radius-axis-ticks`},u)},wz=e=>{var{radiusAxisId:t}=e,n=q(dw),r=q(e=>OR(e,`radiusAxis`,t)),i=q(e=>AR(e,`radiusAxis`,t,!1));if(n==null||!i||!i.length||r==null)return null;var a=sz(sz({},e),{},{scale:r},n),{tick:o,axisLine:s}=a;return uz.createElement(fF,{zIndex:a.zIndex},uz.createElement(U,{className:H(`recharts-polar-radius-axis`,_z,a.className)},s&&xz(a,i),o&&Cz(a,i),uz.createElement(OL,bz(a.angle,a.cx,a.cy,i),uz.createElement(Dse,{label:a.label}),a.children)))},lz.displayName=`PolarRadiusAxis`}));function Tz(){return Tz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tz.apply(null,arguments)}function Ez(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Dz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ez(Object(n),!0).forEach(function(t){ece(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ez(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ece(e,t,n){return(t=tce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tce(e){var t=nce(e,`string`);return typeof t==`symbol`?t:t+``}function nce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Oz(e,t){if(e==null)return{};var n,r,i=rce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ice(e){var t=Wp(),n=Bv(),r=(0,jz.useMemo)(()=>{var{children:t,type:r}=e,i=Oz(e,Mz),a=KC(n,`angleAxis`,r);if(a!=null)return Dz(Dz({},i),{},{type:a})},[e,n]),i=r===q(e=>$C(e,r?.id));return(0,jz.useEffect)(()=>r==null?wf:(t($R(r)),()=>{t(ez(r))}),[t,r]),i?e.children:null}function kz(e){var t=ip(e,BC);return Az.createElement(ice,{id:t.angleAxisId,scale:t.scale,type:t.type,dataKey:t.dataKey,unit:void 0,name:t.name,allowDuplicatedCategory:!1,allowDataOverflow:!1,reversed:t.reversed,includeHidden:!1,allowDecimals:t.allowDecimals,tickCount:t.tickCount,niceTicks:t.niceTicks??`auto`,ticks:t.ticks,tick:t.tick,domain:t.domain},Az.createElement(Uz,t))}var Az,jz,Mz,Nz,Pz,Fz,Iz,Lz,Rz,zz,Bz,Vz,Hz,Uz,ace=o((()=>{Az=u(f()),jz=u(f()),Xl(),wu(),dR(),sR(),uL(),np(),HS(),nz(),Jp(),NR(),fw(),VC(),rv(),ou(),ap(),hF(),Wv(),K(),qC(),iz(),Mz=[`children`,`type`],Nz=[`ref`],Pz=1e-5,Fz=Math.cos(NS(45)),Iz=`angleAxis`,Lz=(e,t)=>{var{cx:n,cy:r,radius:i,orientation:a,tickSize:o}=t,s=o||8,c=FS(n,r,i,e.coordinate),l=FS(n,r,i+(a===`inner`?-1:1)*s,e.coordinate);return{x1:c.x,y1:c.y,x2:l.x,y2:l.y}},Rz=(e,t)=>{var n=Math.cos(NS(-e.coordinate));return n>Pz?t===`outer`?`start`:`end`:n<-Pz?t===`outer`?`end`:`start`:`middle`},zz=e=>{var t=Math.cos(NS(-e.coordinate)),n=Math.sin(NS(-e.coordinate));return Math.abs(t)<=Fz?n>0?`start`:`end`:`middle`},Bz=e=>{var{cx:t,cy:n,radius:r,axisLineType:i,axisLine:a,ticks:o}=e;if(!a)return null;var s=Dz(Dz({},nu(e)),{},{fill:`none`},nu(a));if(i===`circle`)return Az.createElement(uR,Tz({className:`recharts-polar-angle-axis-line`},s,{cx:t,cy:n,r}));var c=o.map(e=>FS(t,n,r,e.coordinate));return Az.createElement(oR,Tz({className:`recharts-polar-angle-axis-line`},s,{points:c}))},Vz=e=>{var{tick:t,tickProps:n,value:r}=e;return t?Az.isValidElement(t)?Az.cloneElement(t,n):typeof t==`function`?t(n):Az.createElement(lL,Tz({},n,{className:`recharts-polar-angle-axis-tick-value`}),r):null},Hz=e=>{var{tick:t,tickLine:n,tickFormatter:r,stroke:i,ticks:a}=e,o=nu(e),{ref:s}=o,c=Oz(o,Nz),l=ru(t),u=Dz(Dz({},c),{},{fill:`none`},nu(n)),d=a.map((a,o)=>{var s=Lz(a,e),d=Rz(a,e.orientation),f=zz(a),p=Dz(Dz(Dz({},c),{},{textAnchor:d,verticalAnchor:f,stroke:`none`,fill:i},l),{},{index:o,payload:a,x:s.x2,y:s.y2});return Az.createElement(U,Tz({className:H(`recharts-polar-angle-axis-tick`,rz(t)),key:`tick-${a.coordinate}`},ep(e,a,o)),n&&Az.createElement(`line`,Tz({className:`recharts-polar-angle-axis-tick-line`},u,s)),Az.createElement(Vz,{tick:t,tickProps:p,value:r?r(a.value,o):a.value}))});return Az.createElement(U,{className:`recharts-polar-angle-axis-ticks`},d)},Uz=e=>{var{angleAxisId:t}=e,n=q(dw),r=q(e=>OR(e,`angleAxis`,t)),i=nv(),a=q(e=>jR(e,`angleAxis`,t,i));if(n==null||!a||!a.length||r==null)return null;var o=Dz(Dz(Dz({},e),{},{scale:r},n),{},{radius:n.outerRadius,ticks:a});return Az.createElement(fF,{zIndex:o.zIndex},Az.createElement(U,{className:H(`recharts-polar-angle-axis`,Iz,o.className)},Az.createElement(Bz,o),Az.createElement(Hz,o)))},kz.displayName=`PolarAngleAxis`}));function Wz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Gz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wz(Object(n),!0).forEach(function(t){oce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oce(e,t,n){return(t=sce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sce(e){var t=cce(e,`string`);return typeof t==`symbol`?t:t+``}function cce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Kz,qz,Jz,Yz,Xz,Zz,Qz,lce=o((()=>{rm(),rH(),lC(),$_(),P_(),wR(),Kz=(e,t)=>t,qz=J([fR,Kz],(e,t)=>e.filter(e=>e.type===`pie`).find(e=>e.id===t)),Jz=[],Yz=(e,t,n)=>n?.length===0?Jz:n,Xz=J([rC,qz,Yz],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i=t?.data!=null&&t.data.length>0?t.data:r;if((!i||!i.length)&&n!=null&&(i=n.map(e=>Gz(Gz({},t.presentationProps),e.props))),i!=null)return i}}),Zz=J([Xz,qz,Yz],(e,t,n)=>{if(!(e==null||t==null))return e.map((e,r)=>{var i,a=X(e,t.nameKey,t.name),o=n!=null&&(i=n[r])!=null&&(i=i.props)!=null&&i.fill?n[r].props.fill:typeof e==`object`&&e&&`fill`in e?e.fill:t.fill;return{value:f_(a,t.dataKey),color:o,payload:e,type:t.legendType}})}),Qz=J([Xz,qz,Yz,X_],(e,t,n,r)=>{if(!(t==null||e==null))return IV({offset:r,pieSettings:t,displayedData:e,cells:n})})})),uce=s((e=>{var t=60103,n=60106,r=60107,i=60108,a=60114,o=60109,s=60110,c=60112,l=60113,u=60120,d=60115,f=60116;if(typeof Symbol==`function`&&Symbol.for){var p=Symbol.for;t=p(`react.element`),n=p(`react.portal`),r=p(`react.fragment`),i=p(`react.strict_mode`),a=p(`react.profiler`),o=p(`react.provider`),s=p(`react.context`),c=p(`react.forward_ref`),l=p(`react.suspense`),u=p(`react.suspense_list`),d=p(`react.memo`),f=p(`react.lazy`),p(`react.block`),p(`react.server.block`),p(`react.fundamental`),p(`react.debug_trace_mode`),p(`react.legacy_hidden`)}function m(e){if(typeof e==`object`&&e){var p=e.$$typeof;switch(p){case t:switch(e=e.type,e){case r:case a:case i:case l:case u:return e;default:switch(e&&=e.$$typeof,e){case s:case c:case f:case d:case o:return e;default:return p}}case n:return p}}}e.isFragment=function(e){return m(e)===r}})),dce=s(((e,t)=>{t.exports=uce()}));function $z(e,t){var n=[],r=[];return r=Array.isArray(t)?t.map(e=>rB(e)):[rB(t)],oB(e).forEach(e=>{var t=(0,eB.default)(e,`type.displayName`)||(0,eB.default)(e,`type.name`);t&&r.indexOf(t)!==-1&&n.push(e)}),n}var eB,tB,nB,rB,iB,aB,oB,sB,cB=o((()=>{eB=u(_f()),tB=u(f()),nB=dce(),K(),rB=e=>typeof e==`string`?e:e?e.displayName||e.name||`Component`:``,iB=null,aB=null,oB=e=>{if(e===iB&&Array.isArray(aB))return aB;var t=[];return tB.Children.forEach(e,e=>{Ff(e)||((0,nB.isFragment)(e)?t=t.concat(oB(e.props.children)):t.push(e))}),aB=t,iB=e,t},sB=e=>e&&typeof e==`object`&&`clipDot`in e?!!e.clipDot:!0})),lB=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}e.isPlainObject=t})),fce=s(((e,t)=>{t.exports=lB().isPlainObject}));function uB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uB(Object(n),!0).forEach(function(t){pce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pce(e,t,n){return(t=mce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mce(e){var t=hce(e,`string`);return typeof t==`symbol`?t:t+``}function hce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(null,arguments)}function pB(e,t){return t||=e.slice(0),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var mB,hB,gce,_ce,gB,_B,vB,yB,bB,xB,SB=o((()=>{mB=u(f()),hB=u(f()),Xl(),ap(),eS(),rS(),K(),Tx(),uu(),xf(),yB=(e,t,n,r,i)=>{var a=n-r,o=yf(gce||=pB([`M `,`,`,``]),e,t);return o+=yf(_ce||=pB([`L `,`,`,``]),e+n,t),o+=yf(gB||=pB([`L `,`,`,``]),e+n-a/2,t+i),o+=yf(_B||=pB([`L `,`,`,``]),e+n-a/2-r,t+i),o+=yf(vB||=pB([`L `,`,`,` Z`]),e,t),o},bB={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:`ease`},xB=e=>{var t=ip(e,bB),{x:n,y:r,upperWidth:i,lowerWidth:a,height:o,className:s}=t,{animationEasing:c,animationDuration:l,animationBegin:u,isUpdateAnimationActive:d}=t,f=(0,hB.useRef)(null),[p,m]=(0,hB.useState)(-1),h=(0,hB.useRef)(i),g=(0,hB.useRef)(a),_=(0,hB.useRef)(o),v=(0,hB.useRef)(n),y=(0,hB.useRef)(r),b=tS(e,`trapezoid-`);if((0,hB.useEffect)(()=>{if(f.current&&f.current.getTotalLength)try{var e=f.current.getTotalLength();e&&m(e)}catch{}},[]),n!==+n||r!==+r||i!==+i||a!==+a||o!==+o||i===0&&a===0||o===0)return null;var x=H(`recharts-trapezoid`,s);if(!d)return mB.createElement(`g`,null,mB.createElement(`path`,fB({},su(t),{className:x,d:yB(n,r,i,a,o)})));var S=h.current,C=g.current,w=_.current,T=v.current,E=y.current,D=`0px ${p===-1?1:p}px`,O=`${p}px ${p}px`,k=Sx([`strokeDasharray`],l,c);return mB.createElement(Yx,{animationId:b,key:b,canBegin:p>0,duration:l,easing:c,isActive:d,begin:u},e=>{var s=W(S,i,e),c=W(C,a,e),l=W(w,o,e),u=W(T,n,e),d=W(E,r,e);f.current&&(h.current=s,g.current=c,_.current=l,v.current=u,y.current=d);var p=e>0?{transition:k,strokeDasharray:O}:{strokeDasharray:D};return mB.createElement(`path`,fB({},su(t),{className:x,d:yB(u,d,s,c,l),ref:f,style:dB(dB({},p),t.style)}))})}}));function CB(e,t){if(e==null)return{};var n,r,i=wB(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TB(Object(n),!0).forEach(function(t){DB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DB(e,t,n){return(t=OB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OB(e){var t=kB(e,`string`);return typeof t==`symbol`?t:t+``}function kB(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AB(e,t){return EB(EB({},t),e)}function jB(e,t){return e===`symbols`}function MB(e){var{shapeType:t,elementProps:n}=e;switch(t){case`rectangle`:return FB.createElement(OS,n);case`trapezoid`:return FB.createElement(xB,n);case`sector`:return FB.createElement($S,n);case`symbols`:if(jB(t,n))return FB.createElement(Jf,n);break;case`curve`:return FB.createElement(dx,n);default:return null}}function NB(e){return(0,IB.isValidElement)(e)?e.props:e}function PB(e){var{option:t,shapeType:n,activeClassName:r=`recharts-active-shape`,inActiveClassName:i=`recharts-shape`}=e,a=CB(e,RB),o;if((0,IB.isValidElement)(t))o=(0,IB.cloneElement)(t,EB(EB({},a),NB(t)));else if(typeof t==`function`)o=t(a,a.index);else if((0,LB.default)(t)&&typeof t!=`boolean`){var s=AB(t,a);o=FB.createElement(MB,{shapeType:n,elementProps:s})}else{var c=a;o=FB.createElement(MB,{shapeType:n,elementProps:c})}return a.isActive?FB.createElement(U,{className:r},o):FB.createElement(U,{className:i},o)}var FB,IB,LB,RB,zB=o((()=>{FB=u(f()),IB=u(f()),LB=u(fce()),kS(),SB(),eC(),wu(),Yf(),fx(),RB=[`option`,`shapeType`,`activeClassName`,`inActiveClassName`]})),BB,VB,HB,UB=o((()=>{Jp(),hN(),BB=(e,t,n)=>{var r=Wp();return(i,a)=>o=>{e?.(i,a,o),r(oN({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}},VB=e=>{var t=Wp();return(n,r)=>i=>{e?.(n,r,i),t(sN())}},HB=(e,t,n)=>{var r=Wp();return(i,a)=>o=>{e?.(i,a,o),r(lN({activeIndex:String(a),activeDataKey:t,activeCoordinate:i.tooltipPosition,activeGraphicalItemId:n}))}}}));function WB(e){var{tooltipEntrySettings:t}=e,n=Wp(),r=nv(),i=(0,GB.useRef)(null);return(0,GB.useLayoutEffect)(()=>{r||(i.current===null?n(nN(t)):i.current!==t&&n(rN({prev:i.current,next:t})),i.current=t)},[t,n,r]),(0,GB.useLayoutEffect)(()=>()=>{i.current&&=(n(iN(i.current)),null)},[n]),null}var GB,KB=o((()=>{GB=u(f()),Jp(),hN(),rv()}));function qB(e){var{legendPayload:t}=e,n=Wp(),r=nv(),i=(0,YB.useRef)(null);return(0,YB.useLayoutEffect)(()=>{r||(i.current===null?n(Vy(t)):i.current!==t&&n(Hy({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,YB.useLayoutEffect)(()=>()=>{i.current&&=(n(Uy(i.current)),null)},[n]),null}function JB(e){var{legendPayload:t}=e,n=Wp(),r=q(Z),i=(0,YB.useRef)(null);return(0,YB.useLayoutEffect)(()=>{r!==`centric`&&r!==`radial`||(i.current===null?n(Vy(t)):i.current!==t&&n(Hy({prev:i.current,next:t})),i.current=t)},[n,r,t]),(0,YB.useLayoutEffect)(()=>()=>{i.current&&=(n(Uy(i.current)),null)},[n]),null}var YB,XB=o((()=>{YB=u(f()),rv(),Wv(),Jp(),Gy()})),ZB,QB,$B,eV=o((()=>{ZB=u(f()),K(),QB=()=>{var[e]=ZB.useState(()=>jf(`uid-`));return e},$B=ZB.useId??QB}));function tV(e,t){var n=$B();return t||(e?`${e}-${n}`:n)}var nV=o((()=>{eV()})),rV,iV,aV,oV,sV=o((()=>{rV=u(f()),iV=u(f()),nV(),aV=(0,iV.createContext)(void 0),oV=e=>{var{id:t,type:n,children:r}=e,i=tV(`recharts-${n}`,t);return rV.createElement(aV.Provider,{value:i},r(i))}})),cV,lV,uV,dV,fV,pV,mV,hV,gV=o((()=>{Yg(),Ly(),cV=hg({name:`graphicalItems`,initialState:{cartesianItems:[],polarItems:[]},reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(Cy(t.payload))},prepare:cg()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Qm(e).cartesianItems.indexOf(Cy(n));i>-1&&(e.cartesianItems[i]=Cy(r))},prepare:cg()},removeCartesianGraphicalItem:{reducer(e,t){var n=Qm(e).cartesianItems.indexOf(Cy(t.payload));n>-1&&e.cartesianItems.splice(n,1)},prepare:cg()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(Cy(t.payload))},prepare:cg()},removePolarGraphicalItem:{reducer(e,t){var n=Qm(e).polarItems.indexOf(Cy(t.payload));n>-1&&e.polarItems.splice(n,1)},prepare:cg()},replacePolarGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,i=Qm(e).polarItems.indexOf(Cy(n));i>-1&&(e.polarItems[i]=Cy(r))},prepare:cg()}}}),{addCartesianGraphicalItem:lV,replaceCartesianGraphicalItem:uV,removeCartesianGraphicalItem:dV,addPolarGraphicalItem:fV,removePolarGraphicalItem:pV,replacePolarGraphicalItem:mV}=cV.actions,hV=cV.reducer})),_V,vV,yV,bV,xV,SV=o((()=>{_V=u(f()),Jp(),gV(),vV=e=>{var t=Wp(),n=(0,_V.useRef)(null);return(0,_V.useLayoutEffect)(()=>{n.current===null?t(lV(e)):n.current!==e&&t(uV({prev:n.current,next:e})),n.current=e},[t,e]),(0,_V.useLayoutEffect)(()=>()=>{n.current&&=(t(dV(n.current)),null)},[t]),null},yV=(0,_V.memo)(vV),bV=e=>{var t=Wp(),n=(0,_V.useRef)(null);return(0,_V.useLayoutEffect)(()=>{n.current===null?t(fV(e)):n.current!==e&&t(mV({prev:n.current,next:e})),n.current=e},[t,e]),(0,_V.useLayoutEffect)(()=>()=>{n.current&&=(t(pV(n.current)),null)},[t]),null},xV=(0,_V.memo)(bV)}));function CV(){return CV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CV.apply(null,arguments)}function wV(e,t){if(e==null)return{};var n,r,i=TV(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function TV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function EV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EV(Object(n),!0).forEach(function(t){OV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OV(e,t,n){return(t=kV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kV(e){var t=AV(e,`string`);return typeof t==`symbol`?t:t+``}function AV(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jV(e){var t=(0,HV.useMemo)(()=>$z(e.children,SI),[e.children]),n=q(n=>Zz(n,e.id,t));return n==null?null:VV.createElement(JB,{legendPayload:n})}function MV(e){if(!(e==null||typeof e==`boolean`||typeof e==`function`)){if(VV.isValidElement(e)){var t=e.props?.fill;return typeof t==`string`?t:void 0}var{fill:n}=e;return typeof n==`string`?n:void 0}}function NV(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:a,dataKey:o}=n;if(!r||!i||!t)return null;var s=nu(n),c=ru(i),l=ru(a),u=typeof i==`object`&&`offsetRadius`in i&&typeof i.offsetRadius==`number`&&i.offsetRadius||20,d=t.map((e,t)=>{var n=(e.startAngle+e.endAngle)/2,r=FS(e.cx,e.cy,e.outerRadius+u,n),d=DV(DV(DV(DV({},s),e),{},{stroke:`none`},c),{},{index:t,textAnchor:YV(r.x,e.cx)},r),f=DV(DV(DV(DV({},s),e),{},{fill:`none`,stroke:e.fill},l),{},{index:t,points:[FS(e.cx,e.cy,e.outerRadius,n),r],key:`line`});return VV.createElement(fF,{zIndex:RC.label,key:`label-${e.startAngle}-${e.endAngle}-${e.midAngle}-${t}`},VV.createElement(U,null,a&&$V(a,f),eH(i,d,X(e,o))))});return VV.createElement(U,{className:`recharts-pie-labels`},d)}function PV(e){var{sectors:t,props:n,showLabels:r}=e,{label:i}=n;return typeof i==`object`&&i&&`position`in i?VV.createElement(HL,{label:i}):VV.createElement(NV,{sectors:t,props:n,showLabels:r})}function FV(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,shape:a,id:o}=e,s=q(pP),c=q(hP),l=q(gP),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,p=wV(i,GV),m=BB(u,i.dataKey,o),h=VB(f),g=HB(d,i.dataKey,o);return t==null||t.length===0?null:VV.createElement(VV.Fragment,null,t.map((e,u)=>{if(e?.startAngle===0&&e?.endAngle===0&&t.length!==1)return null;var d=l==null||l===o,f=String(u)===s&&(c==null||i.dataKey===c)&&d,_=n&&f?n:s?r:null,v=DV(DV({},e),{},{stroke:e.stroke,tabIndex:-1,[W_]:u,[G_]:o});return VV.createElement(U,CV({key:`sector-${e?.startAngle}-${e?.endAngle}-${e.midAngle}-${u}`,tabIndex:-1,className:`recharts-pie-sector`},ep(p,e,u),{onMouseEnter:m(e,u),onMouseLeave:h(e,u),onClick:g(e,u)}),VV.createElement(PB,CV({option:a??_,index:u,shapeType:`sector`,isActive:f},v)))}))}function IV(e){var{pieSettings:t,displayedData:n,cells:r,offset:i}=e,{cornerRadius:a,startAngle:o,endAngle:s,dataKey:c,nameKey:l,tooltipType:u}=t,d=Math.abs(t.minAngle),f=QV(o,s),p=Math.abs(f),m=n.length<=1?0:t.paddingAngle??0,h=n.filter(e=>X(e,c,0)!==0).length,g=(p>=360?h:h-1)*m,_=n.reduce((e,t)=>{var n=X(t,c,0);return e+(G(n)?n:0)},0),v=d>0&&_>0&&n.some(e=>{var t=X(e,c,0),n=(G(t)?t:0)/_;return t!==0&&n*p<d})?d:0,y=p-h*v-g,b;if(_>0){var x;b=n.map((e,n)=>{var s=X(e,c,0),d=X(e,l,n),p=ZV(t,i,e),h=(G(s)?s:0)/_,g,b=DV(DV({},e),r&&r[n]&&r[n].props),S=b!=null&&`fill`in b&&typeof b.fill==`string`?b.fill:t.fill;g=n?x.endAngle+Ef(f)*m*(s===0?0:1):o;var C=g+Ef(f)*((s===0?0:v)+h*y),w=(g+C)/2,T=(p.innerRadius+p.outerRadius)/2,E=[{name:d,value:s,payload:b,dataKey:c,type:u,color:S,fill:S,graphicalItemId:t.id}],D=FS(p.cx,p.cy,T,w);return x=DV(DV(DV(DV({},t.presentationProps),{},{percent:h,cornerRadius:typeof a==`string`?parseFloat(a):a,name:d,tooltipPayload:E,midAngle:w,middleRadius:T,tooltipPosition:D},b),p),{},{value:s,dataKey:c,startAngle:g,endAngle:C,payload:b,paddingAngle:s===0?0:Ef(f)*m}),x})}return b}function LV(e){var{showLabels:t,sectors:n,children:r}=e,i=(0,HV.useMemo)(()=>!t||!n?[]:n.map(e=>({value:e.value,payload:e.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill})),[n,t]);return VV.createElement(ZL,{value:t?i:void 0},r)}function RV(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,activeShape:l,inactiveShape:u,onAnimationStart:d,onAnimationEnd:f}=t,p=tS(t,`recharts-pie-`),m=n.current,[h,g]=(0,HV.useState)(!1),_=(0,HV.useCallback)(()=>{typeof f==`function`&&f(),g(!1)},[f]),v=(0,HV.useCallback)(()=>{typeof d==`function`&&d(),g(!0)},[d]);return VV.createElement(LV,{showLabels:!h,sectors:i},VV.createElement(Yx,{animationId:p,begin:o,duration:s,isActive:a,easing:c,onAnimationStart:v,onAnimationEnd:_,key:p},e=>{var a=[],o=(i&&i[0])?.startAngle??0;return i?.forEach((t,n)=>{var r=m&&m[n],i=n>0?(0,UV.default)(t,`paddingAngle`,0):0;if(r){var s=W(r.endAngle-r.startAngle,t.endAngle-t.startAngle,e),c=DV(DV({},t),{},{startAngle:o+i,endAngle:o+s+i});a.push(c),o=c.endAngle}else{var{endAngle:l,startAngle:u}=t,d=W(0,l-u,e),f=DV(DV({},t),{},{startAngle:o+i,endAngle:o+d+i});a.push(f),o=f.endAngle}}),n.current=a,VV.createElement(U,null,VV.createElement(FV,{sectors:a,activeShape:l,inactiveShape:u,allOtherPieProps:t,shape:t.shape,id:r}))}),VV.createElement(PV,{showLabels:!h,sectors:i,props:t}),t.children)}function zV(e){var{id:t}=e,n=wV(e,KV),{hide:r,className:i,rootTabIndex:a}=e,o=(0,HV.useMemo)(()=>$z(e.children,SI),[e.children]),s=q(e=>Qz(e,t,o)),c=(0,HV.useRef)(null),l=H(`recharts-pie`,i);return r||s==null?(c.current=null,VV.createElement(U,{tabIndex:a,className:l})):VV.createElement(fF,{zIndex:e.zIndex},VV.createElement(JV,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t,activeShape:e.activeShape}),VV.createElement(U,{tabIndex:a,className:l},VV.createElement(RV,{props:DV(DV({},n),{},{sectors:s}),previousSectorsRef:c,id:t})))}function BV(e){var t=ip(e,tH),{id:n}=t,r=wV(t,qV),i=nu(r);return VV.createElement(oV,{id:n,type:`pie`},e=>VV.createElement(VV.Fragment,null,VV.createElement(xV,{type:`pie`,id:e,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i,maxRadius:t.maxRadius}),VV.createElement(jV,CV({},r,{id:e})),VV.createElement(zV,CV({},r,{id:e}))))}var VV,HV,UV,WV,GV,KV,qV,JV,YV,XV,ZV,QV,$V,eH,tH,nH,rH=o((()=>{VV=u(f()),HV=u(f()),UV=u(_f()),Xl(),lce(),Jp(),wu(),fx(),uL(),CI(),cB(),HS(),K(),P_(),np(),zB(),UB(),KB(),CP(),XB(),K_(),rS(),ap(),sV(),SV(),ou(),eS(),QL(),hF(),zC(),iz(),WV=[`key`],GV=[`onMouseEnter`,`onClick`,`onMouseLeave`],KV=[`id`],qV=[`id`],JV=VV.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:a,fill:o,name:s,hide:c,tooltipType:l,id:u,activeShape:d}=e,f=MV(d),p={dataDefinedOnItem:r.map(e=>{var t=e.tooltipPayload;return f==null||t==null?t:t.map(e=>DV(DV({},e),{},{color:f,fill:f}))}),getPosition:e=>r[Number(e)]?.tooltipPosition,settings:{stroke:i,strokeWidth:a,fill:o,dataKey:t,nameKey:n,name:f_(s,t),hide:c,type:l,color:o,unit:``,graphicalItemId:u}};return VV.createElement(WB,{tooltipEntrySettings:p})}),YV=(e,t)=>e>t?`start`:e<t?`end`:`middle`,XV=(e,t,n)=>Mf(typeof t==`function`?t(e):t,n,n*.8),ZV=(e,t,n)=>{var{top:r,left:i,width:a,height:o}=t,s=IS(a,o);return{cx:i+Mf(e.cx,a,a/2),cy:r+Mf(e.cy,o,o/2),innerRadius:Mf(e.innerRadius,s,0),outerRadius:XV(n,e.outerRadius,s),maxRadius:e.maxRadius||Math.sqrt(a*a+o*o)/2}},QV=(e,t)=>Ef(t-e)*Math.min(Math.abs(t-e),360),$V=(e,t)=>{if(VV.isValidElement(e))return VV.cloneElement(e,t);if(typeof e==`function`)return e(t);var n=H(`recharts-pie-label-line`,typeof e==`boolean`?``:e.className),{key:r}=t,i=wV(t,WV);return VV.createElement(dx,CV({},i,{type:`linear`,className:n}))},eH=(e,t,n)=>{if(VV.isValidElement(e))return VV.cloneElement(e,t);var r=n;if(typeof e==`function`&&(r=e(t),VV.isValidElement(r)))return r;var i=H(`recharts-pie-label-text`,rz(e));return VV.createElement(lL,CV({},t,{alignmentBaseline:`middle`,className:i}),r)},tH={animationBegin:400,animationDuration:1500,animationEasing:`ease`,cx:`50%`,cy:`50%`,dataKey:`value`,endAngle:360,fill:`#808080`,hide:!1,innerRadius:0,isAnimationActive:`auto`,label:!1,labelLine:!0,legendType:`rect`,minAngle:0,nameKey:`name`,outerRadius:`80%`,paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:`#fff`,zIndex:RC.area},nH=BV,nH.displayName=`Pie`})),iH=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return e[e.length-1]}e.last=t})),aH=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return Array.isArray(e)?e:Array.from(e)}e.toArray=t})),oH=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=iH(),n=aH(),r=vp();function i(e){if(r.isArrayLike(e))return t.last(n.toArray(e))}e.last=i})),sH=s(((e,t)=>{t.exports=oH().last}));function cH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?cH(Object(n),!0).forEach(function(t){uH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uH(e,t,n){return(t=dH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dH(e){var t=fH(e,`string`);return typeof t==`symbol`?t:t+``}function fH(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pH(){return pH=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pH.apply(null,arguments)}function mH(e,t){if(e==null)return{};var n,r,i=hH(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hH(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function gH(e){var{option:t,dotProps:n,className:r}=e;if((0,bH.isValidElement)(t))return(0,bH.cloneElement)(t,n);if(typeof t==`function`)return t(n);var i=H(r,typeof t==`boolean`?``:t.className),a=n??{},{points:o}=a,s=mH(a,xH);return yH.createElement(uR,pH({},s,{className:i}))}function _H(e,t){return e==null?!1:t?!0:e.length===1}function vH(e){var{points:t,dot:n,className:r,dotClassName:i,dataKey:a,baseProps:o,needClip:s,clipPathId:c,zIndex:l=RC.scatter}=e;if(!_H(t,n))return null;var u=sB(n),d=cu(n),f=t.map((e,r)=>{var s=lH(lH(lH({r:3},o),d),{},{index:r,cx:e.x??void 0,cy:e.y??void 0,dataKey:a,value:e.value,payload:e.payload,points:t});return yH.createElement(gH,{key:`dot-${r}`,option:n,dotProps:s,className:i})}),p={};return s&&c!=null&&(p.clipPath=`url(#clipPath-${u?``:`dots-`}${c})`),yH.createElement(fF,{zIndex:l},yH.createElement(U,pH({className:r},p),f))}var yH,bH,xH,SH=o((()=>{yH=u(f()),bH=u(f()),Xl(),dR(),wu(),cB(),uu(),hF(),zC(),xH=[`points`]}));function CH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?CH(Object(n),!0).forEach(function(t){TH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function TH(e,t,n){return(t=EH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EH(e){var t=vce(e,`string`);return typeof t==`symbol`?t:t+``}function vce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var DH,OH,kH,AH,jH,MH,NH,yce,bce,xce,PH,FH,IH=o((()=>{Yg(),Ly(),DH=hg({name:`cartesianAxis`,initialState:{xAxis:{},yAxis:{},zAxis:{}},reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=Cy(t.payload)},prepare:cg()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=Cy(r))},prepare:cg()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:cg()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=Cy(t.payload)},prepare:cg()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=Cy(r))},prepare:cg()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:cg()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=Cy(t.payload)},prepare:cg()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=Cy(r))},prepare:cg()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:cg()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,i=e.yAxis[n];if(i){var a=i.widthHistory||[];if(a.length===3&&a[0]===a[2]&&r===a[1]&&r!==i.width&&Math.abs(r-(a[0]??0))<=1)return;var o=[...a,r].slice(-3);e.yAxis[n]=wH(wH({},i),{},{width:r,widthHistory:o})}}}}),{addXAxis:OH,replaceXAxis:kH,removeXAxis:AH,addYAxis:jH,replaceYAxis:MH,removeYAxis:NH,addZAxis:yce,replaceZAxis:bce,removeZAxis:xce,updateYAxisWidth:PH}=DH.actions,FH=DH.reducer})),LH,Sce=o((()=>{rm(),$_(),LH=J([X_],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right}))})),RH,Cce=o((()=>{rm(),Sce(),z_(),RH=J([LH,F_,I_],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}})})),zH,BH,VH=o((()=>{Jp(),CP(),Cce(),zH=()=>q(RH),BH=()=>q(SP)}));function HH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function UH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?HH(Object(n),!0).forEach(function(t){wce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wce(e,t,n){return(t=Tce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tce(e){var t=Ece(e,`string`);return typeof t==`symbol`?t:t+``}function Ece(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function WH(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i,clipPath:a,zIndex:o=RC.activeDot}=e,s=q(pP),c=BH();if(t==null||c==null)return null;var l=t.find(e=>c.includes(e.payload));return Ff(l)?null:GH.createElement(fF,{zIndex:o},GH.createElement(qH,{point:l,childIndex:Number(s),mainColor:n,dataKey:i,activeDot:r,clipPath:a}))}var GH,KH,qH,JH=o((()=>{GH=u(f()),KH=u(f()),np(),dR(),wu(),Jp(),CP(),VH(),K(),ou(),hF(),zC(),qH=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:a,clipPath:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=UH(UH(UH({},{index:n,dataKey:a,cx:t.x,cy:t.y,r:4,fill:r??`none`,strokeWidth:2,stroke:`#fff`,payload:t.payload,value:t.value}),ru(i)),Qf(i)),c=(0,KH.isValidElement)(i)?(0,KH.cloneElement)(i,s):typeof i==`function`?i(s):GH.createElement(uR,s);return GH.createElement(U,{className:`recharts-active-dot`,clipPath:o},c)}}));function YH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YH(Object(n),!0).forEach(function(t){Dce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Dce(e,t,n){return(t=Oce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oce(e){var t=kce(e,`string`);return typeof t==`symbol`?t:t+``}function kce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ZH,QH,$H,eU,tU,nU,rU,iU,aU,oU,sU,cU,lU,Ace=o((()=>{rm(),CU(),NR(),fw(),lC(),Wv(),P_(),wR(),ZH=(e,t)=>OR(e,`radiusAxis`,t),QH=J([ZH],e=>{if(e!=null)return{scale:e}}),$H=J([tw,ZH],(e,t)=>{if(!(e==null||t==null))return XH(XH({},e),{},{scale:t})}),eU=(e,t,n,r)=>AR(e,`radiusAxis`,t,r),tU=(e,t,n)=>$C(e,n),nU=(e,t,n)=>OR(e,`angleAxis`,n),rU=J([tU,nU],(e,t)=>{if(!(e==null||t==null))return XH(XH({},e),{},{scale:t})}),iU=(e,t,n,r)=>AR(e,`angleAxis`,n,r),aU=J([tU,nU,dw],(e,t,n)=>{if(!(n==null||t==null))return{scale:t,type:e.type,dataKey:e.dataKey,cx:n.cx,cy:n.cy}}),oU=(e,t,n,r,i)=>i,sU=J([Z,$H,eU,rU,iU],(e,t,n,r,i)=>g_(e,`radiusAxis`)?j_(t,n,!1):j_(r,i,!1)),cU=J([fR,oU],(e,t)=>{if(e!=null)return e.find(e=>e.type===`radar`&&t===e.id)?.dataKey}),lU=J([QH,aU,rC,cU,sU],(e,t,n,r,i)=>{var{chartData:a,dataStartIndex:o,dataEndIndex:s}=n;if(!(e==null||t==null||a==null||i==null||r==null))return Lce({radiusAxis:e,angleAxis:t,displayedData:a.slice(o,s+1),dataKey:r,bandSize:i})})}));function uU(){return uU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uU.apply(null,arguments)}function dU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dU(Object(n),!0).forEach(function(t){jce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jce(e,t,n){return(t=Mce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mce(e){var t=Nce(e,`string`);return typeof t==`symbol`?t:t+``}function Nce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Pce(e,t){if(e==null)return{};var n,r,i=Fce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pU(e,t){return e&&e!==`none`?e:t}function Ice(e){var{points:t,props:n}=e,{dot:r,dataKey:i}=n,{id:a}=n,o=nu(Pce(n,vU));return hU.createElement(vH,{points:t,dot:r,className:`recharts-radar-dots`,dotClassName:`recharts-radar-dot`,dataKey:i,baseProps:o})}function Lce(e){var{radiusAxis:t,angleAxis:n,displayedData:r,dataKey:i,bandSize:a}=e,{cx:o,cy:s}=n,c=!1,l=[],u=n.type===`number`?0:a??0;r.forEach((e,r)=>{var a=X(e,n.dataKey,r),d=X(e,i),f=(n.scale.map(a)??0)+u,p=Array.isArray(d)?(0,_U.default)(d):d,m=Ff(p)?0:t.scale.map(p)??0;Array.isArray(d)&&d.length>=2&&(c=!0),l.push(fU(fU({},FS(o,s,m,f)),{},{name:a,value:d,cx:o,cy:s,radius:m,angle:f,payload:e}))});var d=[];return c&&l.forEach(e=>{if(Array.isArray(e.value)){var n=e.value[0],r=Ff(n)?0:t.scale.map(n)??0;d.push(fU(fU({},e),{},{radius:r},FS(o,s,r,e.angle)))}else d.push(e)}),{points:l,isRange:c,baseLinePoints:d}}function Rce(e){var{showLabels:t,points:n,children:r}=e,i=n.map(e=>{var t={x:e.x,y:e.y,width:0,lowerWidth:0,upperWidth:0,height:0};return fU(fU({},t),{},{value:e.value??``,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return hU.createElement(YL,{value:t?i:void 0},r)}function zce(e){var{points:t,baseLinePoints:n,props:r}=e;if(t==null)return null;var{shape:i,isRange:a,connectNulls:o}=r,s=hU.isValidElement(i)?hU.cloneElement(i,fU(fU({},r),{},{points:t})):typeof i==`function`?i(fU(fU({},r),{},{points:t})):hU.createElement(oR,uU({},su(r),{onMouseEnter:e=>{var{onMouseEnter:t}=r;t&&t(r,e)},onMouseLeave:e=>{var{onMouseLeave:t}=r;t&&t(r,e)},points:t,baseLinePoints:a?n:void 0,connectNulls:o}));return hU.createElement(U,{className:`recharts-radar-polygon`},s,hU.createElement(Ice,{props:r,points:t}))}function Bce(e){var{props:t,previousPointsRef:n,previousBaseLinePointsRef:r}=e,{points:i,baseLinePoints:a,isAnimationActive:o,animationBegin:s,animationDuration:c,animationEasing:l,onAnimationEnd:u,onAnimationStart:d}=t,f=n.current,p=r.current,m=f?f.length/i.length:1,h=p?p.length/a.length:1,g=tS(t,`recharts-radar-`),[_,v]=(0,gU.useState)(!1),y=!_,b=(0,gU.useCallback)(()=>{typeof u==`function`&&u(),v(!1)},[u]),x=(0,gU.useCallback)(()=>{typeof d==`function`&&d(),v(!0)},[d]);return hU.createElement(Rce,{showLabels:y,points:i},hU.createElement(Yx,{animationId:g,begin:s,duration:c,isActive:o,easing:l,key:`radar-${g}`,onAnimationEnd:b,onAnimationStart:x},e=>{var o=e===1?i:i.map(xU(f,m,e)),s=e===1?a:a?.map(xU(p,h,e));return e>0&&(n.current=o,r.current=s),hU.createElement(zce,{points:o,baseLinePoints:s,props:t})}),hU.createElement(HL,{label:t.label}),t.children)}function Vce(e){var t=(0,gU.useRef)(void 0),n=(0,gU.useRef)(void 0);return hU.createElement(Bce,{props:e,previousPointsRef:t,previousBaseLinePointsRef:n})}function Hce(e){var{hide:t,className:n,points:r}=e;if(t)return null;var i=H(`recharts-radar`,n);return hU.createElement(fF,{zIndex:e.zIndex},hU.createElement(U,{className:i},hU.createElement(Vce,e)),hU.createElement(WH,{points:r,mainColor:pU(e.stroke,e.fill),itemDataKey:e.dataKey,activeDot:e.activeDot}))}function Uce(e){var t=nv(),n=q(n=>lU(n,e.radiusAxisId,e.angleAxisId,t,e.id));return n?.points==null?null:hU.createElement(Hce,uU({},e,{points:n?.points,baseLinePoints:n?.baseLinePoints,isRange:n?.isRange}))}function mU(e){var t=ip(e,SU);return hU.createElement(oV,{id:t.id,type:`radar`},e=>hU.createElement(hU.Fragment,null,hU.createElement(xV,{type:`radar`,id:e,data:void 0,dataKey:t.dataKey,hide:t.hide,angleAxisId:t.angleAxisId,radiusAxisId:t.radiusAxisId}),hU.createElement(JB,{legendPayload:yU(t)}),hU.createElement(bU,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,tooltipType:t.tooltipType,id:e}),hU.createElement(Uce,uU({},t,{id:e}))))}var hU,gU,_U,vU,yU,bU,xU,SU,CU=o((()=>{hU=u(f()),gU=u(f()),_U=u(sH()),Xl(),K(),HS(),P_(),sR(),wu(),QL(),SH(),JH(),KB(),Ace(),Jp(),rv(),XB(),rS(),sV(),SV(),ou(),eS(),uu(),ap(),hF(),zC(),vU=[`id`],yU=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:pU(r,i),value:f_(n,t),payload:e}]},bU=hU.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,tooltipType:s,id:c}=e,l={dataDefinedOnItem:void 0,getPosition:wf,settings:{stroke:n,strokeWidth:r,fill:i,nameKey:void 0,dataKey:t,name:f_(a,t),hide:o,type:s,color:pU(n,i),unit:``,graphicalItemId:c}};return hU.createElement(WB,{tooltipEntrySettings:l})}),xU=(e,t,n)=>(r,i)=>{var a=e&&e[Math.floor(i*t)];return a?fU(fU({},r),{},{x:W(a.x,r.x,n),y:W(a.y,r.y,n)}):fU(fU({},r),{},{x:W(r.cx,r.x,n),y:W(r.cy,r.y,n)})},SU={activeDot:!0,angleAxisId:0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,dot:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,radiusAxisId:0,zIndex:RC.area},mU.displayName=`Radar`}));function wU(){return wU=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wU.apply(null,arguments)}function TU(e){return typeof e==`string`?parseInt(e,10):e}function EU(e){return DU.createElement(PB,wU({shapeType:`sector`},e))}var DU,Wce=o((()=>{DU=u(f()),zB()})),OU,kU,AU=o((()=>{Sw(),K(),OU=(e,t,n)=>{var r=n??e;if(!Ff(r))return Mf(r,t,0)},kU=(e,t,n)=>{var r={},i=e.filter(xw),a=e.filter(e=>e.stackId==null),o=i.reduce((e,t)=>{var n=e[t.stackId];return n??=[],n.push(t),e[t.stackId]=n,e},r),s=Object.entries(o).map(e=>{var[r,i]=e;return{stackId:r,dataKeys:i.map(e=>e.dataKey),barSize:OU(t,n,i[0]?.barSize)}}),c=a.map(e=>({stackId:void 0,dataKeys:[e.dataKey].filter(e=>e!=null),barSize:OU(t,n,e.barSize)}));return[...s,...c]}}));function jU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jU(Object(n),!0).forEach(function(t){Gce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gce(e,t,n){return(t=Kce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kce(e){var t=qce(e,`string`);return typeof t==`symbol`?t:t+``}function qce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jce(e,t,n,r,i){var a=r.length;if(!(a<1)){var o=Mf(e,n,0,!0),s,c=[];if(Y(r[0]?.barSize)){var l=!1,u=n/a,d=r.reduce((e,t)=>e+(t.barSize||0),0);d+=(a-1)*o,d>=n&&(d-=(a-1)*o,o=0),d>=n&&u>0&&(l=!0,u*=.9,d=a*u);var f={offset:((n-d)/2>>0)-o,size:0};s=r.reduce((e,t)=>{var n={stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:f.offset+f.size+o,size:l?u:t.barSize??0}},r=[...e,n];return f=n.position,r},c)}else{var p=Mf(t,n,0,!0);n-2*p-(a-1)*o<=0&&(o=0);var m=(n-2*p-(a-1)*o)/a;m>1&&(m>>=0);var h=Y(i)?Math.min(m,i):m;s=r.reduce((e,t,n)=>[...e,{stackId:t.stackId,dataKeys:t.dataKeys,position:{offset:p+(m+o)*n+(m-h)/2,size:h}}],c)}return s}}var NU,PU=o((()=>{K(),o_(),NU=(e,t,n,r,i,a,o)=>{var s=Ff(o)?t:o,c=Jce(n,r,i===a?a:i,e,s);return i!==a&&c!=null&&(c=c.map(e=>MU(MU({},e),{},{position:MU(MU({},e.position),{},{offset:e.position.offset-i/2})}))),c}})),FU,IU=o((()=>{vw(),FU=(e,t)=>{var n=_w(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:a}=i;if(a)return a.find(e=>e.key===n)}}}}})),LU,RU=o((()=>{LU=(e,t)=>{if(!(e==null||t==null)){var n=e.find(e=>e.stackId===t.stackId&&t.dataKey!=null&&e.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}}));function zU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zU(Object(n),!0).forEach(function(t){Yce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Yce(e,t,n){return(t=Xce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xce(e){var t=Zce(e,`string`);return typeof t==`symbol`?t:t+``}function Zce(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var VU,HU,UU,WU,GU,KU,qU,JU,YU,XU,ZU,QU,$U,eW,tW,nW,rW,iW,aW,oW,sW,cW,lW,uW,dW,fW,pW,mW,hW,Qce=o((()=>{rm(),MW(),lC(),NR(),UM(),fw(),Wv(),P_(),LC(),wR(),K(),bw(),Sw(),AU(),PU(),IU(),RU(),VU=(e,t)=>tw(e,t),HU=(e,t)=>OR(e,`radiusAxis`,t),UU=J([VU,HU],(e,t)=>{if(!(e==null||t==null))return BU(BU({},e),{},{scale:t})}),WU=(e,t)=>MR(e,`radiusAxis`,t,!1),GU=(e,t,n)=>$C(e,n),KU=(e,t,n)=>OR(e,`angleAxis`,n),qU=J([GU,KU],(e,t)=>{if(!(e==null||t==null))return BU(BU({},e),{},{scale:t})}),JU=(e,t,n)=>AR(e,`angleAxis`,n,!1),YU=(e,t,n,r)=>r,XU=J([fR,YU],(e,t)=>{if(e.some(e=>e.type===`radialBar`&&t.dataKey===e.dataKey&&t.stackId===e.stackId))return t}),ZU=J([Z,UU,WU,qU,JU],(e,t,n,r,i)=>g_(e,`radiusAxis`)?j_(t,n,!1):j_(r,i,!1)),QU=J([qU,UU,Z],(e,t,n)=>{var r=n===`radial`?e:t;if(!(r==null||r.scale==null))return T_({numericAxis:r})}),$U=(e,t,n,r,i)=>i,eW=(e,t,n,r,i)=>n,tW=(e,t,n,r,i)=>t,nW=(e,t,n,r,i)=>r.maxBarSize,rW=e=>e.type===`radialBar`,iW=J([Z,fR,eW,tW],(e,t,n,r)=>t.filter(t=>e===`centric`?t.angleAxisId===n:t.radiusAxisId===r).filter(e=>e.hide===!1).filter(rW)),aW=()=>void 0,oW=J([iW,kC,aW],kU),sW=J([Z,EC,qU,JU,UU,WU,nW],(e,t,n,r,i,a,o)=>{var s=Ff(o)?t:o;return e===`centric`?j_(n,r,!0)??s??0:j_(i,a,!0)??s??0}),cW=J([oW,EC,DC,OC,sW,ZU,nW],NU),lW=J([cW,XU],LU),uW=J([mR],e=>e.filter(rW).filter(xw)),dW=J([J([uW,rC,pj],yw),uW,AC,jC],gj),fW=(e,t,n)=>Z(e)===`centric`?dW(e,`radiusAxis`,t):dW(e,`angleAxis`,n),pW=J([fW,XU],FU),mW=J([qU,JU,UU,WU,nC,XU,ZU,Z,QU,dw,$U,lW,pW],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=i;if(a==null||n==null||e==null||p==null||o==null||d==null||s!==`centric`&&s!==`radial`||r==null||l==null)return[];var{dataKey:g,minPointSize:_}=a,{cx:v,cy:y,startAngle:b,endAngle:x}=l;return lle({angleAxis:e,angleAxisTicks:t,bandSize:o,baseValue:c,cells:u,cx:v,cy:y,dataKey:g,dataStartIndex:m,displayedData:p.slice(m,h+1),endAngle:x,layout:s,minPointSize:_,pos:d,radiusAxis:n,radiusAxisTicks:r,stackedData:f,stackedDomain:f?(s===`centric`?n:e).scale.domain():null,startAngle:b})}),hW=J([rC,(e,t)=>t],(e,t)=>{var{chartData:n,dataStartIndex:r,dataEndIndex:i}=e;if(n==null)return[];var a=n.slice(r,i+1);return a.length===0?[]:a.map(e=>({type:t,value:e.name,color:e.fill,payload:e}))})}));function gW(e,t){return e&&typeof e==`object`&&`zIndex`in e&&typeof e.zIndex==`number`&&Y(e.zIndex)?e.zIndex:t}var _W=o((()=>{o_()}));function vW(){return vW=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vW.apply(null,arguments)}function yW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yW(Object(n),!0).forEach(function(t){$ce(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $ce(e,t,n){return(t=ele(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ele(e){var t=tle(e,`string`);return typeof t==`symbol`?t:t+``}function tle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xW(e,t){if(e==null)return{};var n,r,i=nle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function nle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function rle(e){var{showLabels:t,sectors:n,children:r}=e,i=n.map(e=>({value:e.value,payload:e.payload,parentViewBox:void 0,clockWise:!1,viewBox:{cx:e.cx,cy:e.cy,innerRadius:e.innerRadius,outerRadius:e.outerRadius,startAngle:e.startAngle,endAngle:e.endAngle,clockWise:!1},fill:e.fill}));return CW.createElement(ZL,{value:t?i:void 0},r)}function ile(e){var{sectors:t,allOtherRadialBarProps:n,showLabels:r}=e,{shape:i,activeShape:a,cornerRadius:o,id:s}=n,c=xW(n,TW),l=nu(c),u=q(pP),{onMouseEnter:d,onClick:f,onMouseLeave:p}=n,m=xW(n,EW),h=BB(d,n.dataKey,s),g=VB(p),_=HB(f,n.dataKey,s);return t==null?null:CW.createElement(rle,{showLabels:r,sectors:t},t.map((e,t)=>{var n=!!(a&&u===String(t)),r=h(e,t),s=g(e,t),d=_(e,t),f=bW(bW(bW(bW({},l),{},{cornerRadius:TU(o)},e),ep(m,e,t)),{},{onMouseEnter:r,onMouseLeave:s,onClick:d,className:`recharts-radial-bar-sector ${e.className}`,forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal,isActive:n,option:n?a:i,index:t});return n?CW.createElement(fF,{zIndex:RC.activeBar,key:`sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`},CW.createElement(EU,f)):CW.createElement(EU,vW({key:`sector-${e.cx}-${e.cy}-${e.innerRadius}-${e.outerRadius}-${e.startAngle}-${e.endAngle}-${t}`},f))}),CW.createElement(HL,{label:n.label}),n.children)}function ale(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationEnd:c,onAnimationStart:l}=t,u=tS(t,`recharts-radialbar-`),d=n.current,[f,p]=(0,wW.useState)(!1),m=(0,wW.useCallback)(()=>{typeof c==`function`&&c(),p(!1)},[c]),h=(0,wW.useCallback)(()=>{typeof l==`function`&&l(),p(!0)},[l]);return CW.createElement(Yx,{animationId:u,begin:a,duration:o,isActive:i,easing:s,onAnimationStart:h,onAnimationEnd:m,key:u},e=>{var i=e===1?r:(r??OW).map((t,n)=>{var r=d&&d[n];if(r)return bW(bW({},t),{},{startAngle:W(r.startAngle,t.startAngle,e),endAngle:W(r.endAngle,t.endAngle,e)});var{endAngle:i,startAngle:a}=t;return bW(bW({},t),{},{endAngle:W(a,i,e)})});return e>0&&(n.current=i??null),CW.createElement(ile,{sectors:i??OW,allOtherRadialBarProps:t,showLabels:!f})})}function ole(e){var t=(0,wW.useRef)(null);return CW.createElement(ale,{props:e,previousSectorsRef:t})}function sle(e){var t=q(t=>hW(t,e.legendType));return CW.createElement(JB,{legendPayload:t??[]})}function cle(e){var t=CW.useMemo(()=>$z(e.children,SI),[e.children]),n=CW.useMemo(()=>({data:void 0,hide:!1,id:e.id,dataKey:e.dataKey,minPointSize:e.minPointSize,stackId:l_(e.stackId),maxBarSize:e.maxBarSize,barSize:e.barSize,type:`radialBar`,angleAxisId:e.angleAxisId,radiusAxisId:e.radiusAxisId}),[e.id,e.dataKey,e.minPointSize,e.stackId,e.maxBarSize,e.barSize,e.angleAxisId,e.radiusAxisId]),r=q(r=>mW(r,e.radiusAxisId,e.angleAxisId,n,t))??OW;return CW.createElement(CW.Fragment,null,CW.createElement(kW,{dataKey:e.dataKey,sectors:r,stroke:e.stroke,strokeWidth:e.strokeWidth,name:e.name,hide:e.hide,fill:e.fill,tooltipType:e.tooltipType,id:e.id}),CW.createElement(AW,vW({},e,{sectors:r})))}function lle(e){var{displayedData:t,stackedData:n,dataStartIndex:r,stackedDomain:i,dataKey:a,baseValue:o,layout:s,radiusAxis:c,radiusAxisTicks:l,bandSize:u,pos:d,angleAxis:f,minPointSize:p,cx:m,cy:h,angleAxisTicks:g,cells:_,startAngle:v,endAngle:y}=e;return g==null||l==null?OW:(t??[]).map((e,t)=>{var b,x,S,C,w,T;if(n?b=y_(n[r+t],i):(b=X(e,a),Array.isArray(b)||(b=[o,b])),s===`radial`){if(C=f.scale.map(b[0])??v,w=f.scale.map(b[1])??y,x=w_({axis:c,ticks:l,bandSize:u,offset:d.offset,entry:e,index:t}),x!=null&&w!=null&&C!=null){S=x+d.size;var E=w-C;if(Math.abs(p)>0&&Math.abs(E)<Math.abs(p)){var D=Ef(E||p)*(Math.abs(p)-Math.abs(E));w+=D}T={background:{cx:m,cy:h,innerRadius:x,outerRadius:S,startAngle:v,endAngle:y}}}}else if(x=c.scale.map(b[0]),S=c.scale.map(b[1]),C=w_({axis:f,ticks:g,bandSize:u,offset:d.offset,entry:e,index:t}),x!=null&&S!=null&&C!=null){w=C+d.size;var O=S-x;if(Math.abs(p)>0&&Math.abs(O)<Math.abs(p)){var k=Ef(O||p)*(Math.abs(p)-Math.abs(O));S+=k}}return bW(bW(bW({},e),T),{},{payload:e,value:n?b:b[1],cx:m,cy:h,innerRadius:x,outerRadius:S,startAngle:C,endAngle:w},_&&_[t]&&_[t].props)})}function SW(e){var t=ip(e,jW);return CW.createElement(oV,{id:t.id,type:`radialBar`},e=>CW.createElement(CW.Fragment,null,CW.createElement(xV,{type:`radialBar`,id:e,data:void 0,dataKey:t.dataKey,hide:t.hide??jW.hide,angleAxisId:t.angleAxisId??jW.angleAxisId,radiusAxisId:t.radiusAxisId??jW.radiusAxisId,stackId:l_(t.stackId),barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize}),CW.createElement(sle,t),CW.createElement(cle,vW({},t,{id:e}))))}var CW,wW,TW,EW,DW,OW,kW,AW,jW,MW=o((()=>{CW=u(f()),wW=u(f()),Xl(),Wce(),wu(),cB(),QL(),CI(),K(),P_(),np(),UB(),KB(),Qce(),Jp(),CP(),XB(),rS(),sV(),SV(),ou(),eS(),ap(),hF(),zC(),_W(),TW=[`shape`,`activeShape`,`cornerRadius`,`id`],EW=[`onMouseEnter`,`onClick`,`onMouseLeave`],DW=[`value`,`background`],OW=[],kW=CW.memo(e=>{var{dataKey:t,sectors:n,stroke:r,strokeWidth:i,name:a,hide:o,fill:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:n,getPosition:wf,settings:{graphicalItemId:l,stroke:r,strokeWidth:i,fill:s,nameKey:void 0,dataKey:t,name:f_(a,t),hide:o,type:c,color:s,unit:``}};return CW.createElement(WB,{tooltipEntrySettings:u})}),AW=class extends wW.PureComponent{renderBackground(e){if(e==null)return null;var{cornerRadius:t}=this.props,n=ru(this.props.background);return CW.createElement(fF,{zIndex:gW(this.props.background,RC.barBackground)},e.map((e,r)=>{var{value:i,background:a}=e,o=xW(e,DW);if(!a)return null;var s=bW(bW(bW(bW(bW({cornerRadius:TU(t)},o),{},{fill:`#eee`},a),n),ep(this.props,e,r)),{},{index:r,className:H(`recharts-radial-bar-background-sector`,String(n?.className)),option:a,isActive:!1});return CW.createElement(EU,vW({key:`background-${o.cx}-${o.cy}-${o.innerRadius}-${o.outerRadius}-${o.startAngle}-${o.endAngle}-${r}`},s))}))}render(){var{hide:e,sectors:t,className:n,background:r}=this.props;if(e)return null;var i=H(`recharts-area`,n);return CW.createElement(fF,{zIndex:this.props.zIndex},CW.createElement(U,{className:i},r&&CW.createElement(U,{className:`recharts-radial-bar-background`},this.renderBackground(t)),CW.createElement(U,{className:`recharts-radial-bar-sectors`},CW.createElement(ole,this.props))))}},jW={angleAxisId:0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,background:!1,cornerIsExternal:!1,cornerRadius:0,forceCornerRadius:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:0,radiusAxisId:0,zIndex:RC.bar},SW.displayName=`RadialBar`})),NW,PW,FW=o((()=>{NW=u(f()),$F(),Jp(),rv(),PW=e=>{var{chartData:t}=e,n=Wp(),r=nv();return(0,NW.useEffect)(()=>r?()=>{}:(n(YF(t)),()=>{n(YF(void 0))}),[t,n,r]),null}})),IW,LW,ule,RW,dle=o((()=>{Yg(),IW={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},LW=hg({name:`brush`,initialState:IW,reducers:{setBrushSettings(e,t){return t.payload==null?IW:t.payload}}}),{setBrushSettings:ule}=LW.actions,RW=LW.reducer}));function fle(e){return(e%180+180)%180}var zW,BW,VW,HW=o((()=>{zW=(e,t)=>{var{x:n,y:r}=e,{x:i,y:a}=t;return{x:Math.min(n,i),y:Math.min(r,a),width:Math.abs(i-n),height:Math.abs(a-r)}},BW=e=>{var{x1:t,y1:n,x2:r,y2:i}=e;return zW({x:t,y:n},{x:r,y:i})},VW=function(e){var{width:t,height:n}=e,r=fle(arguments.length>1&&arguments[1]!==void 0?arguments[1]:0)*Math.PI/180,i=Math.atan(n/t),a=r>i&&r<Math.PI-i?n/Math.sin(r):t/Math.cos(r);return Math.abs(a)}})),UW,WW,ple,mle,hle,gle,GW,KW,qW,JW=o((()=>{Yg(),Ly(),UW={dots:[],areas:[],lines:[]},WW=hg({name:`referenceElements`,initialState:UW,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Qm(e).dots.findIndex(e=>e===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Qm(e).areas.findIndex(e=>e===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(Cy(t.payload))},removeLine:(e,t)=>{var n=Qm(e).lines.findIndex(e=>e===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:ple,removeDot:mle,addArea:hle,removeArea:gle,addLine:GW,removeLine:KW}=WW.actions,qW=WW.reducer})),YW,XW,ZW,QW,$W,eG=o((()=>{YW=u(f()),XW=u(f()),K(),VH(),ZW=(0,XW.createContext)(void 0),QW=e=>{var{children:t}=e,[n]=(0,XW.useState)(`${jf(`recharts`)}-clip`),r=zH();if(r==null)return null;var{x:i,y:a,width:o,height:s}=r;return YW.createElement(ZW.Provider,{value:n},YW.createElement(`defs`,null,YW.createElement(`clipPath`,{id:n},YW.createElement(`rect`,{x:i,y:a,height:s,width:o}))),t)},$W=()=>(0,XW.useContext)(ZW)})),tG,_le=o((()=>{tG=class{constructor(e){var{x:t,y:n}=e;this.xAxisScale=t,this.yAxisScale=n}map(e,t){var{position:n}=t;return{x:this.xAxisScale.map(e.x,{position:n})??0,y:this.yAxisScale.map(e.y,{position:n})??0}}mapWithFallback(e,t){var{position:n,fallback:r}=t,i=r===`rangeMin`?this.yAxisScale.rangeMin():r===`rangeMax`?this.yAxisScale.rangeMax():0,a=r===`rangeMin`?this.xAxisScale.rangeMin():r===`rangeMax`?this.xAxisScale.rangeMax():0;return{x:this.xAxisScale.map(e.x,{position:n})??a,y:this.yAxisScale.map(e.y,{position:n})??i}}isInRange(e){var{x:t,y:n}=e,r=t==null||this.xAxisScale.isInRange(t),i=n==null||this.yAxisScale.isInRange(n);return r&&i}}}));function nG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nG(Object(n),!0).forEach(function(t){vle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vle(e,t,n){return(t=yle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yle(e){var t=ble(e,`string`);return typeof t==`symbol`?t:t+``}function ble(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function iG(){return iG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iG.apply(null,arguments)}function xle(e){var t=Wp();return(0,sG.useEffect)(()=>(t(GW(e)),()=>{t(KW(e))})),null}function Sle(e){var{xAxisId:t,yAxisId:n,shape:r,className:i,ifOverflow:a}=e,o=nv(),s=$W(),c=q(e=>VA(e,t)),l=q(e=>WA(e,n)),u=q(e=>pM(e,`xAxis`,t,o)),d=q(e=>pM(e,`yAxis`,n,o)),f=jv();if(!s||!f||c==null||l==null||u==null||d==null)return null;var p=fG(u,d,f,e.position,c.orientation,l.orientation,e);if(!p)return null;var m=p[0],h=p[1];if(m==null||h==null)return null;var{x:g,y:_}=m,{x:v,y}=h,b=rG(rG({clipPath:a===`hidden`?`url(#${s})`:void 0},su(e)),{},{x1:g,y1:_,x2:v,y2:y}),x=BW({x1:g,y1:_,x2:v,y2:y});return oG.createElement(fF,{zIndex:e.zIndex},oG.createElement(U,{className:H(`recharts-reference-line`,i)},cG(r,b),oG.createElement(TL,iG({},x,{lowerWidth:x.width,upperWidth:x.width}),oG.createElement(yL,{label:e.label}),e.children)))}function aG(e){var t=ip(e,pG);return oG.createElement(oG.Fragment,null,oG.createElement(xle,{yAxisId:t.yAxisId,xAxisId:t.xAxisId,ifOverflow:t.ifOverflow,x:t.x,y:t.y,segment:t.segment}),oG.createElement(Sle,t))}var oG,sG,cG,lG,uG,dG,fG,pG,Cle=o((()=>{oG=u(f()),sG=u(f()),Xl(),wu(),RL(),K(),HW(),Wv(),JW(),Jp(),UM(),rv(),eG(),uu(),ap(),hF(),zC(),o_(),_le(),cG=(e,t)=>{var n;if(oG.isValidElement(e))n=oG.cloneElement(e,t);else if(typeof e==`function`)n=e(t);else{if(!Y(t.x1)||!Y(t.y1)||!Y(t.x2)||!Y(t.y2))return null;n=oG.createElement(`line`,iG({},t,{className:`recharts-reference-line-line`}))}return n},lG=(e,t,n,r,i,a)=>{var{x:o,width:s}=a,c=i.map(e,{position:n});if(!Y(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:o+s,y:c},{x:o,y:c}];return r===`left`?l.reverse():l},uG=(e,t,n,r,i,a)=>{var{y:o,height:s}=a,c=i.map(e,{position:n});if(!Y(c)||t===`discard`&&!i.isInRange(c))return null;var l=[{x:c,y:o+s},{x:c,y:o}];return r===`top`?l.reverse():l},dG=(e,t,n,r)=>{var i=[r.mapWithFallback(e[0],{position:n,fallback:`rangeMin`}),r.mapWithFallback(e[1],{position:n,fallback:`rangeMax`})];return t===`discard`&&i.some(e=>!r.isInRange(e))?null:i},fG=(e,t,n,r,i,a,o)=>{var{x:s,y:c,segment:l,ifOverflow:u}=o,d=kf(s);return kf(c)?lG(c,u,r,a,t,n):d?uG(s,u,r,i,e,n):l!=null&&l.length===2?dG(l,u,r,new tG({x:e,y:t})):null},pG={ifOverflow:`discard`,xAxisId:0,yAxisId:0,fill:`none`,label:!1,stroke:`#ccc`,fillOpacity:1,strokeWidth:1,position:`middle`,zIndex:RC.line},aG.displayName=`ReferenceLine`}));function mG(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var i=e[r];i!==void 0&&n.push(i)}return n}var hG=o((()=>{}));function wle(e,t,n){return VW({width:e.width+t.width,height:e.height+t.height},n)}function Tle(e,t,n){var r=n===`width`,{x:i,y:a,width:o,height:s}=e;return t===1?{start:r?i:a,end:r?i+o:a+s}:{start:r?i+o:a+s,end:r?i:a}}function gG(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function Ele(e,t){return mG(e,t+1)}var _G=o((()=>{HW(),hG()}));function Dle(e,t,n,r,i){for(var a=(r||[]).slice(),{start:o,end:s}=t,c=0,l=1,u=o,d=function(){var t=r?.[c];if(t===void 0)return{v:mG(r,l)};var a=c,d,f=()=>(d===void 0&&(d=n(t,a)),d),p=t.coordinate,m=c===0||gG(e,p,f,u,s);m||(c=0,u=o,l+=1),m&&(u=p+e*(f()/2+i),c+=l)},f;l<=a.length;)if(f=d(),f)return f.v;return[]}function Ole(e,t,n,r,i){var a=(r||[]).slice().length;if(a===0)return[];for(var{start:o,end:s}=t,c=1;c<=a;c++){for(var l=(a-1)%c,u=o,d=!0,f=function(){var t=r[m];if(t==null)return 0;var a=m,o,c=()=>(o===void 0&&(o=n(t,a)),o),f=t.coordinate,p=m===l||gG(e,f,c,u,s);if(!p)return d=!1,1;p&&(u=f+e*(c()/2+i))},p,m=l;m<a&&(p=f(),!(p!==0&&p===1));m+=c);if(d){for(var h=[],g=l;g<a;g+=c){var _=r[g];_!=null&&h.push(_)}return h}}return[]}var kle=o((()=>{_G(),hG()}));function vG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).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?vG(Object(n),!0).forEach(function(t){Ale(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ale(e,t,n){return(t=jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=Mle(e,`string`);return typeof t==`symbol`?t:t+``}function Mle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Nle(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,{start:s}=t,{end:c}=t,l=function(t){var r=a[t];if(r==null)return 1;var l=r,u,d=()=>(u===void 0&&(u=n(r,t)),u);if(t===o-1){var f=e*(l.coordinate+e*d()/2-c);a[t]=l=yG(yG({},l),{},{tickCoord:f>0?l.coordinate-f*e:l.coordinate})}else a[t]=l=yG(yG({},l),{},{tickCoord:l.coordinate});l.tickCoord!=null&&gG(e,l.tickCoord,d,s,c)&&(c=l.tickCoord-e*(d()/2+i),a[t]=yG(yG({},l),{},{isShow:!0}))},u=o-1;u>=0;u--)if(l(u))continue;return a}function Ple(e,t,n,r,i,a){var o=(r||[]).slice(),s=o.length,{start:c,end:l}=t;if(a){var u=r[s-1];if(u!=null){var d=n(u,s-1),f=e*(u.coordinate+e*d/2-l);o[s-1]=u=yG(yG({},u),{},{tickCoord:f>0?u.coordinate-f*e:u.coordinate}),u.tickCoord!=null&&gG(e,u.tickCoord,()=>d,c,l)&&(l=u.tickCoord-e*(d/2+i),o[s-1]=yG(yG({},u),{},{isShow:!0}))}}for(var p=a?s-1:s,m=function(t){var r=o[t];if(r==null)return 1;var a=r,s,u=()=>(s===void 0&&(s=n(r,t)),s);if(t===0){var d=e*(a.coordinate-e*u()/2-c);o[t]=a=yG(yG({},a),{},{tickCoord:d<0?a.coordinate-d*e:a.coordinate})}else o[t]=a=yG(yG({},a),{},{tickCoord:a.coordinate});a.tickCoord!=null&&gG(e,a.tickCoord,u,c,l)&&(c=a.tickCoord+e*(u()/2+i),o[t]=yG(yG({},a),{},{isShow:!0}))},h=0;h<p;h++)if(m(h))continue;return o}function bG(e,t,n){var{tick:r,ticks:i,viewBox:a,minTickGap:o,orientation:s,interval:c,tickFormatter:l,unit:u,angle:d}=e;if(!i||!i.length||!r)return[];if(G(c)||Hb.isSsr)return Ele(i,G(c)?c:0)??[];var f=[],p=s===`top`||s===`bottom`?`width`:`height`,m=u&&p===`width`?jI(u,{fontSize:t,letterSpacing:n}):{width:0,height:0},h=(e,r)=>{var i=typeof l==`function`?l(e.value,r):e.value;return p===`width`?wle(jI(i,{fontSize:t,letterSpacing:n}),m,d):jI(i,{fontSize:t,letterSpacing:n})[p]},g=i[0],_=i[1],v=i.length>=2&&g!=null&&_!=null?Ef(_.coordinate-g.coordinate):1,y=Tle(a,v,p);return c===`equidistantPreserveStart`?Dle(v,y,h,i,o):c===`equidistantPreserveEnd`?Ole(v,y,h,i,o):(f=c===`preserveStart`||c===`preserveStartEnd`?Ple(v,y,h,i,o,c===`preserveStartEnd`):Nle(v,y,h,i,o),f.filter(e=>e.isShow))}var xG=o((()=>{K(),MI(),Ub(),_G(),kle()})),SG,Fle=o((()=>{SG=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:a=0}=e,o=0;if(t){Array.from(t).forEach(e=>{if(e){var t=e.getBoundingClientRect();t.width>o&&(o=t.width)}});var s=n?n.getBoundingClientRect().width:0,c=i+a,l=o+c+s+(n?r:0);return Math.round(l)}return 0}})),CG,wG,TG,EG,DG,OG=o((()=>{Yg(),Ly(),CG={xAxis:{},yAxis:{}},wG=hg({name:`renderedTicks`,initialState:CG,reducers:{setRenderedTicks:(e,t)=>{var{axisType:n,axisId:r,ticks:i}=t.payload;e[n][r]=Cy(i)},removeRenderedTicks:(e,t)=>{var{axisType:n,axisId:r}=t.payload;delete e[n][r]}}}),{setRenderedTicks:TG,removeRenderedTicks:EG}=wG.actions,DG=wG.reducer}));function Ile(e,t){if(e==null)return{};var n,r,i=Lle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function kG(){return kG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kG.apply(null,arguments)}function AG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AG(Object(n),!0).forEach(function(t){Rle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Rle(e,t,n){return(t=zle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zle(e){var t=Ble(e,`string`);return typeof t==`symbol`?t:t+``}function Ble(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Vle(e){var{x:t,y:n,width:r,height:i,orientation:a,mirror:o,axisLine:s,otherSvgProps:c}=e;if(!s)return null;var l=jG(jG(jG({},c),nu(s)),{},{fill:`none`});if(a===`top`||a===`bottom`){var u=+(a===`top`&&!o||a===`bottom`&&o);l=jG(jG({},l),{},{x1:t,y1:n+u*i,x2:t+r,y2:n+u*i})}else{var d=+(a===`left`&&!o||a===`right`&&o);l=jG(jG({},l),{},{x1:t+d*r,y1:n,x2:t+d*r,y2:n+i})}return MG.createElement(`line`,kG({},l,{className:H(`recharts-cartesian-axis-line`,(0,PG.default)(s,`className`))}))}function Hle(e,t,n,r,i,a,o,s,c){var l,u,d,f,p,m,h=s?-1:1,g=e.tickSize||o,_=G(e.tickCoord)?e.tickCoord:e.coordinate;switch(a){case`top`:l=u=e.coordinate,f=n+ +!s*i,d=f-h*g,m=d-h*c,p=_;break;case`left`:d=f=e.coordinate,u=t+ +!s*r,l=u-h*g,p=l-h*c,m=_;break;case`right`:d=f=e.coordinate,u=t+ +s*r,l=u+h*g,p=l+h*c,m=_;break;default:l=u=e.coordinate,f=n+ +s*i,d=f+h*g,m=d+h*c,p=_;break}return{line:{x1:l,y1:d,x2:u,y2:f},tick:{x:p,y:m}}}function Ule(e,t){switch(e){case`left`:return t?`start`:`end`;case`right`:return t?`end`:`start`;default:return`middle`}}function Wle(e,t){switch(e){case`left`:case`right`:return`middle`;case`top`:return t?`start`:`end`;default:return t?`end`:`start`}}function Gle(e){var{option:t,tickProps:n,value:r}=e,i,a=H(n.className,`recharts-cartesian-axis-tick-value`);if(MG.isValidElement(t))i=MG.cloneElement(t,jG(jG({},n),{},{className:a}));else if(typeof t==`function`)i=t(jG(jG({},n),{},{className:a}));else{var o=`recharts-cartesian-axis-tick-value`;typeof t!=`boolean`&&(o=H(o,rz(t))),i=MG.createElement(lL,kG({},n,{className:o}),r)}return i}function Kle(e){var{ticks:t,axisType:n,axisId:r}=e,i=Wp();return(0,NG.useEffect)(()=>r==null||n==null?wf:(i(TG({ticks:t.map(e=>({value:e.value,coordinate:e.coordinate,offset:e.offset,index:e.index})),axisId:r,axisType:n})),()=>{i(EG({axisId:r,axisType:n}))}),[i,t,r,n]),null}var MG,NG,PG,FG,IG,LG,RG,zG,BG=o((()=>{MG=u(f()),NG=u(f()),PG=u(_f()),Xl(),wu(),uL(),RL(),K(),np(),xG(),ou(),Fle(),ap(),hF(),zC(),iz(),OG(),Jp(),FG=[`axisLine`,`width`,`height`,`className`,`hide`,`ticks`,`axisType`,`axisId`],IG={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:`bottom`,ticks:[],stroke:`#666`,tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:`preserveEnd`,zIndex:RC.axis},LG=(0,NG.forwardRef)((e,t)=>{var{ticks:n=[],tick:r,tickLine:i,stroke:a,tickFormatter:o,unit:s,padding:c,tickTextProps:l,orientation:u,mirror:d,x:f,y:p,width:m,height:h,tickSize:g,tickMargin:_,fontSize:v,letterSpacing:y,getTicksConfig:b,events:x,axisType:S,axisId:C}=e,w=bG(jG(jG({},b),{},{ticks:n}),v,y),T=nu(b),E=ru(r),D=qI(T.textAnchor)?T.textAnchor:Ule(u,d),O=Wle(u,d),k={};typeof i==`object`&&(k=i);var A=jG(jG({},T),{},{fill:`none`},k),j=w.map(e=>jG({entry:e},Hle(e,f,p,m,h,u,g,d,_))),M=j.map(e=>{var{entry:t,line:n}=e;return MG.createElement(U,{className:`recharts-cartesian-axis-tick`,key:`tick-${t.value}-${t.coordinate}-${t.tickCoord}`},i&&MG.createElement(`line`,kG({},A,n,{className:H(`recharts-cartesian-axis-tick-line`,(0,PG.default)(i,`className`))})))}),N=j.map((e,t)=>{var{entry:n,tick:i}=e,u=jG(jG({},jG(jG(jG(jG({verticalAnchor:O},T),{},{textAnchor:D,stroke:`none`,fill:a},i),{},{index:t,payload:n,visibleTicksCount:w.length,tickFormatter:o,padding:c},l),{},{angle:l?.angle??T.angle??0})),E);return MG.createElement(U,kG({className:`recharts-cartesian-axis-tick-label`,key:`tick-label-${n.value}-${n.coordinate}-${n.tickCoord}`},ep(x,n,t)),r&&MG.createElement(Gle,{option:r,tickProps:u,value:`${typeof o==`function`?o(n.value,t):n.value}${s||``}`}))});return MG.createElement(`g`,{className:`recharts-cartesian-axis-ticks recharts-${S}-ticks`},MG.createElement(Kle,{ticks:w,axisId:C,axisType:S}),N.length>0&&MG.createElement(fF,{zIndex:RC.label},MG.createElement(`g`,{className:`recharts-cartesian-axis-tick-labels recharts-${S}-tick-labels`,ref:t},N)),M.length>0&&MG.createElement(`g`,{className:`recharts-cartesian-axis-tick-lines recharts-${S}-tick-lines`},M))}),RG=(0,NG.forwardRef)((e,t)=>{var{axisLine:n,width:r,height:i,className:a,hide:o,ticks:s,axisType:c,axisId:l}=e,u=Ile(e,FG),[d,f]=(0,NG.useState)(``),[p,m]=(0,NG.useState)(``),h=(0,NG.useRef)(null);(0,NG.useImperativeHandle)(t,()=>({getCalculatedWidth:()=>SG({ticks:h.current,label:e.labelRef?.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}));var g=(0,NG.useCallback)(e=>{if(e){var t=e.getElementsByClassName(`recharts-cartesian-axis-tick-value`);h.current=t;var n=t[0];if(n){var r=window.getComputedStyle(n),i=r.fontSize,a=r.letterSpacing;(i!==d||a!==p)&&(f(i),m(a))}}},[d,p]);return o||r!=null&&r<=0||i!=null&&i<=0?null:MG.createElement(fF,{zIndex:e.zIndex},MG.createElement(U,{className:H(`recharts-cartesian-axis`,a)},MG.createElement(Vle,{x:e.x,y:e.y,width:r,height:i,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:nu(e)}),MG.createElement(LG,{ref:g,axisType:c,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:p,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y,axisId:l}),MG.createElement(TL,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},MG.createElement(yL,{label:e.label,labelRef:e.labelRef}),e.children)))}),zG=MG.forwardRef((e,t)=>{var n=ip(e,IG);return MG.createElement(RG,kG({},n,{ref:t}))}),zG.displayName=`CartesianAxis`}));function VG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VG(Object(n),!0).forEach(function(t){qle(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qle(e,t,n){return(t=Jle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jle(e){var t=Yle(e,`string`);return typeof t==`symbol`?t:t+``}function Yle(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UG(){return UG=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UG.apply(null,arguments)}function WG(e,t){if(e==null)return{};var n,r,i=Xle(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xle(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function GG(e){var{option:t,lineItemProps:n}=e,r;if(qG.isValidElement(t))r=qG.cloneElement(t,n);else if(typeof t==`function`)r=t(n);else{var{x1:i,y1:a,x2:o,y2:s,key:c}=n,l=nu(WG(n,JG))??{},{offset:u}=l,d=WG(l,YG);r=qG.createElement(`line`,UG({},d,{x1:i,y1:a,x2:o,y2:s,fill:`none`,key:c}))}return r}function Zle(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=WG(e,XG),c=i.map((e,i)=>{var a=HG(HG({},s),{},{x1:t,y1:e,x2:t+n,y2:e,key:`line-${i}`,index:i});return qG.createElement(GG,{key:`line-${i}`,option:r,lineItemProps:a})});return qG.createElement(`g`,{className:`recharts-cartesian-grid-horizontal`},c)}function Qle(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:a,yAxisId:o}=e,s=WG(e,ZG),c=i.map((e,i)=>{var a=HG(HG({},s),{},{x1:e,y1:t,x2:e,y2:t+n,key:`line-${i}`,index:i});return qG.createElement(GG,{option:r,lineItemProps:a,key:`line-${i}`})});return qG.createElement(`g`,{className:`recharts-cartesian-grid-vertical`},c)}function $le(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:a,height:o,horizontalPoints:s,horizontal:c=!0}=e;if(!c||!t||!t.length||s==null)return null;var l=s.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,s)=>{var c=l[s+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=s%t.length;return qG.createElement(`rect`,{key:`react-${s}`,y:e,x:r,height:u,width:a,stroke:`none`,fill:t[d],fillOpacity:n,className:`recharts-cartesian-grid-bg`})});return qG.createElement(`g`,{className:`recharts-cartesian-gridstripes-horizontal`},u)}function eue(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:a,width:o,height:s,verticalPoints:c}=e;if(!t||!n||!n.length)return null;var l=c.map(e=>Math.round(e+i-i)).sort((e,t)=>e-t);i!==l[0]&&l.unshift(0);var u=l.map((e,t)=>{var c=l[t+1],u=c==null?i+o-e:c-e;if(u<=0)return null;var d=t%n.length;return qG.createElement(`rect`,{key:`react-${t}`,x:e,y:a,width:u,height:s,stroke:`none`,fill:n[d],fillOpacity:r,className:`recharts-cartesian-grid-bg`})});return qG.createElement(`g`,{className:`recharts-cartesian-gridstripes-vertical`},u)}function KG(e){var t=Pv(),n=Fv(),r=Nv(),i=HG(HG({},ip(e,tK)),{},{x:G(e.x)?e.x:r.left,y:G(e.y)?e.y:r.top,width:G(e.width)?e.width:r.width,height:G(e.height)?e.height:r.height}),{xAxisId:a,yAxisId:o,x:s,y:c,width:l,height:u,syncWithTicks:d,horizontalValues:f,verticalValues:p}=i,m=nv(),h=q(e=>NM(e,`xAxis`,a,m)),g=q(e=>NM(e,`yAxis`,o,m));if(!a_(l)||!a_(u)||!G(s)||!G(c))return null;var _=i.verticalCoordinatesGenerator||$G,v=i.horizontalCoordinatesGenerator||eK,{horizontalPoints:y,verticalPoints:b}=i;if((!y||!y.length)&&typeof v==`function`){var x=f&&f.length,S=v({yAxis:g?HG(HG({},g),{},{ticks:x?f:g.ticks}):void 0,width:t??l,height:n??u,offset:r},x?!0:d);cv(Array.isArray(S),`horizontalCoordinatesGenerator should return Array but instead it returned [${typeof S}]`),Array.isArray(S)&&(y=S)}if((!b||!b.length)&&typeof _==`function`){var C=p&&p.length,w=_({xAxis:h?HG(HG({},h),{},{ticks:C?p:h.ticks}):void 0,width:t??l,height:n??u,offset:r},C?!0:d);cv(Array.isArray(w),`verticalCoordinatesGenerator should return Array but instead it returned [${typeof w}]`),Array.isArray(w)&&(b=w)}return qG.createElement(fF,{zIndex:i.zIndex},qG.createElement(`g`,{className:`recharts-cartesian-grid`},qG.createElement(QG,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),qG.createElement($le,UG({},i,{horizontalPoints:y})),qG.createElement(eue,UG({},i,{verticalPoints:b})),qG.createElement(Zle,UG({},i,{offset:r,horizontalPoints:y,xAxis:h,yAxis:g})),qG.createElement(Qle,UG({},i,{offset:r,verticalPoints:b,xAxis:h,yAxis:g}))))}var qG,JG,YG,XG,ZG,QG,$G,eK,tK,tue=o((()=>{qG=u(f()),lv(),K(),P_(),xG(),BG(),Wv(),UM(),Jp(),rv(),ap(),ou(),o_(),hF(),zC(),JG=[`x1`,`y1`,`x2`,`y2`,`key`],YG=[`offset`],XG=[`xAxisId`,`yAxisId`],ZG=[`xAxisId`,`yAxisId`],QG=e=>{var{fill:t}=e;if(!t||t===`none`)return null;var{fillOpacity:n,x:r,y:i,width:a,height:o,ry:s}=e;return qG.createElement(`rect`,{x:r,y:i,ry:s,width:a,height:o,stroke:`none`,fill:t,fillOpacity:n,className:`recharts-cartesian-grid-bg`})},$G=(e,t)=>{var{xAxis:n,width:r,height:i,offset:a}=e;return __(bG(HG(HG(HG({},IG),n),{},{ticks:v_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.left,a.left+a.width,t)},eK=(e,t)=>{var{yAxis:n,width:r,height:i,offset:a}=e;return __(bG(HG(HG(HG({},IG),n),{},{ticks:v_(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),a.top,a.top+a.height,t)},tK={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:`#ccc`,fill:`none`,verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:RC.grid},KG.displayName=`CartesianGrid`})),nK,nue,rue,iue,rK,aue=o((()=>{Yg(),nK=hg({name:`errorBars`,initialState:{},reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:i}=t.payload;e[n]&&(e[n]=e[n].map(e=>e.dataKey===r.dataKey&&e.direction===r.direction?i:e))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(e=>e.dataKey!==r.dataKey||e.direction!==r.direction))}}}),{addErrorBar:nue,replaceErrorBar:rue,removeErrorBar:iue}=nK.actions,rK=nK.reducer}));function oue(e,t){if(e==null)return{};var n,r,i=sue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function iK(e){var{children:t}=e,n=oue(e,sK);return aK.createElement(cK.Provider,{value:n},t)}var aK,oK,sK,cK,lK=o((()=>{aK=u(f()),oK=u(f()),sK=[`children`],cK=(0,oK.createContext)({data:[],xAxisId:`xAxis-0`,yAxisId:`yAxis-0`,dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0})}));function uK(e,t){var n=q(t=>VA(t,e)),r=q(e=>WA(e,t)),i=n?.allowDataOverflow??zA.allowDataOverflow,a=r?.allowDataOverflow??HA.allowDataOverflow;return{needClip:i||a,needClipX:i,needClipY:a}}function dK(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=zH(),{needClipX:a,needClipY:o,needClip:s}=uK(t,n);if(!s||!i)return null;var{x:c,y:l,width:u,height:d}=i;return fK.createElement(`clipPath`,{id:`clipPath-${r}`},fK.createElement(`rect`,{x:a?c:c-u/2,y:o?l:l-d/2,width:a?u:u*2,height:o?d:d*2}))}var fK,pK=o((()=>{fK=u(f()),Jp(),UM(),VH()}));function cue(e){return e.type===`line`}var mK,hK,gK,_K,vK,yK,bK,xK,lue=o((()=>{rm(),HK(),lC(),Wv(),UM(),P_(),mK=(e,t,n,r)=>RM(e,`xAxis`,t,r),hK=(e,t,n,r)=>LM(e,`xAxis`,t,r),gK=(e,t,n,r)=>RM(e,`yAxis`,n,r),_K=(e,t,n,r)=>LM(e,`yAxis`,n,r),vK=J([Z,mK,gK,hK,_K],(e,t,n,r,i)=>g_(e,`xAxis`)?j_(t,r,!1):j_(n,i,!1)),yK=(e,t,n,r,i)=>i,bK=J([ZA,yK],(e,t)=>e.filter(cue).find(e=>e.id===t)),xK=J([Z,mK,gK,hK,_K,bK,vK,iC],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=s;if(!(a==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||o==null||e!==`horizontal`&&e!==`vertical`)){var{dataKey:d,data:f}=a,p=f!=null&&f.length>0?f:c?.slice(l,u+1);if(p!=null)return xue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:d,bandSize:o,displayedData:p})}})}));function SK(e){var t=ru(e),n=3,r=2;if(t!=null){var{r:i,strokeWidth:a}=t,o=Number(i),s=Number(a);return(Number.isNaN(o)||o<0)&&(o=n),(Number.isNaN(s)||s<0)&&(s=r),{r:o,strokeWidth:s}}return{r:n,strokeWidth:r}}var CK=o((()=>{ou()}));function wK(){return wK=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wK.apply(null,arguments)}function TK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TK(Object(n),!0).forEach(function(t){uue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uue(e,t,n){return(t=due(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function due(e){var t=fue(e,`string`);return typeof t==`symbol`?t:t+``}function fue(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DK(e,t){if(e==null)return{};var n,r,i=pue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mue(e,t){for(var n=e.length%2==0?e:[...e,0],r=[],i=0;i<t;++i)r.push(...n);return r}function hue(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:a,needClip:o}=r,{id:s}=r,c=nu(DK(r,jK));return kK.createElement(vH,{points:n,dot:i,className:`recharts-line-dots`,dotClassName:`recharts-line-dot`,dataKey:a,baseProps:c,needClip:o,clipPathId:t})}function gue(e){var{showLabels:t,children:n,points:r}=e,i=(0,AK.useMemo)(()=>r?.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return EK(EK({},t),{},{value:e.value,payload:e.payload,viewBox:t,parentViewBox:void 0,fill:void 0})}),[r]);return kK.createElement(YL,{value:t?i:void 0},n)}function OK(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:a}=e,{type:o,layout:s,connectNulls:c,needClip:l,shape:u}=a,d=EK(EK({},su(DK(a,MK))),{},{fill:`none`,className:`recharts-line-curve`,clipPath:l?`url(#clipPath-${t})`:void 0,points:r,type:o,layout:s,connectNulls:c,strokeDasharray:i??a.strokeDasharray});return kK.createElement(kK.Fragment,null,r?.length>1&&kK.createElement(PB,wK({shapeType:`curve`,option:u},d,{pathRef:n})),kK.createElement(hue,{points:r,clipPathId:t,props:a}))}function _ue(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function vue(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:a}=e,{points:o,strokeDasharray:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,animateNewValues:f,width:p,height:m,onAnimationEnd:h,onAnimationStart:g}=n,_=i.current,v=tS(o,`recharts-line-`),y=(0,AK.useRef)(v),[b,x]=(0,AK.useState)(!1),S=!b,C=(0,AK.useCallback)(()=>{typeof h==`function`&&h(),x(!1)},[h]),w=(0,AK.useCallback)(()=>{typeof g==`function`&&g(),x(!0)},[g]),T=_ue(r.current),E=(0,AK.useRef)(0);y.current!==v&&(E.current=a.current,y.current=v);var D=E.current;return kK.createElement(gue,{points:o,showLabels:S},n.children,kK.createElement(Yx,{animationId:v,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:C,onAnimationStart:w,key:v},e=>{var l=W(D,T+D,e),u=Math.min(l,T),d=c?s?LK(u,T,`${s}`.split(/[,\s]+/gim).map(e=>parseFloat(e))):IK(T,u):s==null?void 0:String(s);if(e>0&&T>0&&(i.current=o,a.current=Math.max(a.current,u)),_){var h=_.length/o.length,g=e===1?o:o.map((t,n)=>{var r=Math.floor(n*h);if(_[r]){var i=_[r];return EK(EK({},t),{},{x:W(i.x,t.x,e),y:W(i.y,t.y,e)})}return f?EK(EK({},t),{},{x:W(p*2,t.x,e),y:W(m/2,t.y,e)}):EK(EK({},t),{},{x:t.x,y:t.y})});return i.current=g,kK.createElement(OK,{props:n,points:g,clipPathId:t,pathRef:r,strokeDasharray:d})}return kK.createElement(OK,{props:n,points:o,clipPathId:t,pathRef:r,strokeDasharray:d})}),kK.createElement(HL,{label:n.label}))}function yue(e){var{clipPathId:t,props:n}=e,r=(0,AK.useRef)(null),i=(0,AK.useRef)(0),a=(0,AK.useRef)(null);return kK.createElement(vue,{props:n,clipPathId:t,previousPointsRef:r,longestAnimatedLengthRef:i,pathRef:a})}function bue(e){var t=ip(e,BK),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,connectNulls:s,dot:c,hide:l,isAnimationActive:u,label:d,legendType:f,xAxisId:p,yAxisId:m,id:h}=t,g=DK(t,NK),{needClip:_}=uK(p,m),v=zH(),y=Lv(),b=nv(),x=q(e=>xK(e,p,m,b,h));if(y!==`horizontal`&&y!==`vertical`||x==null||v==null)return null;var{height:S,width:C,x:w,y:T}=v;return kK.createElement(zK,wK({},g,{id:h,connectNulls:s,dot:c,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:a,animationEasing:o,isAnimationActive:u,hide:l,label:d,legendType:f,xAxisId:p,yAxisId:m,points:x,layout:y,height:S,width:C,left:w,top:T,needClip:_}))}function xue(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,dataKey:o,bandSize:s,displayedData:c}=e;return c.map((e,c)=>{var l=X(e,o);if(t===`horizontal`)return{x:u_({axis:n,ticks:i,bandSize:s,entry:e,index:c}),y:(Ff(l)?null:r.scale.map(l))??null,value:l,payload:e};var u=Ff(l)?null:n.scale.map(l),d=u_({axis:r,ticks:a,bandSize:s,entry:e,index:c});return u==null||d==null?null:{x:u,y:d,value:l,payload:e}}).filter(Boolean)}function Sue(e){var t=ip(e,BK),n=nv();return kK.createElement(oV,{id:t.id,type:`line`},e=>kK.createElement(kK.Fragment,null,kK.createElement(qB,{legendPayload:PK(t)}),kK.createElement(FK,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),kK.createElement(yV,{type:`line`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),kK.createElement(bue,wK({},t,{id:e}))))}var kK,AK,jK,MK,NK,PK,FK,IK,LK,RK,zK,BK,VK,HK=o((()=>{kK=u(f()),AK=u(f()),Xl(),wu(),QL(),SH(),K(),cB(),P_(),JH(),KB(),lK(),pK(),Wv(),rv(),lue(),Jp(),XB(),rS(),ap(),VH(),sV(),SV(),ou(),eS(),uu(),CK(),zB(),hF(),zC(),lb(),jK=[`id`],MK=[`type`,`layout`,`connectNulls`,`needClip`,`shape`],NK=[`activeDot`,`animateNewValues`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`hide`,`isAnimationActive`,`label`,`legendType`,`xAxisId`,`yAxisId`,`id`],PK=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:f_(n,t),payload:e}]},FK=kK.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:wf,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:f_(o,t),hide:s,type:l,color:r,unit:c,graphicalItemId:u}};return kK.createElement(WB,{tooltipEntrySettings:d})}),IK=(e,t)=>`${t}px ${e}px`,LK=(e,t,n)=>{var r=n.reduce((e,t)=>e+t,0);if(!r)return IK(t,e);for(var i=Math.floor(e/r),a=e%r,o=[],s=0,c=0;s<n.length;c+=(l=n[s])??0,++s){var l,u=n[s];if(u!=null&&c+u>a){o=[...n.slice(0,s),a-c];break}}var d=o.length%2==0?[0,t]:[t];return[...mue(n,i),...o,...d].map(e=>`${e}px`).join(`, `)},RK=(e,t)=>({x:e.x??void 0,y:e.y??void 0,value:e.value,errorVal:X(e.payload,t)}),zK=class extends AK.Component{render(){var{hide:e,dot:t,points:n,className:r,xAxisId:i,yAxisId:a,top:o,left:s,width:c,height:l,id:u,needClip:d,zIndex:f}=this.props;if(e)return null;var p=H(`recharts-line`,r),m=u,{r:h,strokeWidth:g}=SK(t),_=sB(t),v=h*2+g,y=d?`url(#clipPath-${_?``:`dots-`}${m})`:void 0;return kK.createElement(fF,{zIndex:f},kK.createElement(U,{className:p},d&&kK.createElement(`defs`,null,kK.createElement(dK,{clipPathId:m,xAxisId:i,yAxisId:a}),!_&&kK.createElement(`clipPath`,{id:`clipPath-dots-${m}`},kK.createElement(`rect`,{x:s-v/2,y:o-v/2,width:c+v,height:l+v}))),kK.createElement(iK,{xAxisId:i,yAxisId:a,data:n,dataPointFormatter:RK,errorBarOffset:0},kK.createElement(yue,{props:this.props,clipPathId:m}))),kK.createElement(WH,{activeDot:this.props.activeDot,points:n,mainColor:this.props.stroke,itemDataKey:this.props.dataKey,clipPath:y}))}},BK={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!0,fill:`#fff`,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,xAxisId:0,yAxisId:0,zIndex:RC.line,type:`linear`},VK=kK.memo(Sue,sb),VK.displayName=`Line`}));function UK(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.xAxisId??0}function WK(e,t){return e.graphicalItems.cartesianItems.find(e=>e.id===t)?.yAxisId??0}var GK=o((()=>{IH()})),KK,qK,JK,YK,XK,ZK,QK,$K,eq,tq,nq,rq,Cue=o((()=>{rm(),yq(),UM(),Wv(),lC(),P_(),vw(),LC(),GK(),KK=(e,t,n)=>RM(e,`xAxis`,UK(e,t),n),qK=(e,t,n)=>LM(e,`xAxis`,UK(e,t),n),JK=(e,t,n)=>RM(e,`yAxis`,WK(e,t),n),YK=(e,t,n)=>LM(e,`yAxis`,WK(e,t),n),XK=J([Z,KK,JK,qK,YK],(e,t,n,r,i)=>g_(e,`xAxis`)?j_(t,r,!1):j_(n,i,!1)),ZK=(e,t)=>t,QK=J([ZA,ZK],(e,t)=>e.filter(e=>e.type===`area`).find(e=>e.id===t)),$K=e=>g_(Z(e),`xAxis`)?`yAxis`:`xAxis`,eq=(e,t)=>$K(e)===`yAxis`?WK(e,t):UK(e,t),tq=(e,t,n)=>_j(e,$K(e),eq(e,t),n),nq=J([QK,tq],(e,t)=>{if(!(e==null||t==null)){var{stackId:n}=e,r=_w(e);if(!(n==null||r==null)){var i=(t[n]?.stackedData)?.find(e=>e.key===r);if(i!=null)return i.map(e=>[e[0],e[1]])}}}),rq=J([Z,KK,JK,qK,YK,nq,aC,XK,QK,IC],(e,t,n,r,i,a,o,s,c,l)=>{var{chartData:u,dataStartIndex:d,dataEndIndex:f}=o;if(!(c==null||e!==`horizontal`&&e!==`vertical`||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{data:p}=c,m=p&&p.length>0?p:u?.slice(d,f+1);if(m!=null)return Iue({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataStartIndex:d,areaSettings:c,stackedData:a,displayedData:m,chartBaseValue:l,bandSize:s})}})}));function iq(){return iq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iq.apply(null,arguments)}function aq(e,t){if(e==null)return{};var n,r,i=wue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function oq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?oq(Object(n),!0).forEach(function(t){Tue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tue(e,t,n){return(t=Eue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eue(e){var t=Due(e,`string`);return typeof t==`symbol`?t:t+``}function Due(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cq(e,t){return e&&e!==`none`?e:t}function Oue(e){var{clipPathId:t,points:n,props:r}=e,{needClip:i,dot:a,dataKey:o}=r,s=nu(r);return Q.createElement(vH,{points:n,dot:a,className:`recharts-area-dots`,dotClassName:`recharts-area-dot`,dataKey:o,baseProps:s,needClip:i,clipPathId:t})}function kue(e){var{showLabels:t,children:n,points:r}=e,i=r.map(e=>{var t={x:e.x??0,y:e.y??0,width:0,lowerWidth:0,upperWidth:0,height:0};return sq(sq({},t),{},{value:e.value,payload:e.payload,parentViewBox:void 0,viewBox:t,fill:void 0})});return Q.createElement(YL,{value:t?i:void 0},n)}function lq(e){var{points:t,baseLine:n,needClip:r,clipPathId:i,props:a}=e,{layout:o,type:s,stroke:c,connectNulls:l,isRange:u}=a,{id:d}=a,f=aq(a,dq),p=nu(f),m=su(f);return Q.createElement(Q.Fragment,null,t?.length>1&&Q.createElement(U,{clipPath:r?`url(#clipPath-${i})`:void 0},Q.createElement(dx,iq({},m,{id:d,points:t,connectNulls:l,type:s,baseLine:n,layout:o,stroke:`none`,className:`recharts-area-area`})),c!==`none`&&Q.createElement(dx,iq({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:t})),c!==`none`&&u&&Array.isArray(n)&&Q.createElement(dx,iq({},p,{className:`recharts-area-curve`,layout:o,type:s,connectNulls:l,fill:`none`,points:n}))),Q.createElement(Oue,{points:t,props:f,clipPathId:i}))}function Aue(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.y,o=r[r.length-1]?.y;if(!Y(a)||!Y(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.x||0));return G(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.x||0),c)),G(c)?Q.createElement(`rect`,{x:0,y:a<o?a:a-s,width:c+(i?parseInt(`${i}`,10):1),height:Math.floor(s)}):null}function jue(e){var{alpha:t,baseLine:n,points:r,strokeWidth:i}=e,a=r[0]?.x,o=r[r.length-1]?.x;if(!Y(a)||!Y(o))return null;var s=t*Math.abs(a-o),c=Math.max(...r.map(e=>e.y||0));return G(n)?c=Math.max(n,c):n&&Array.isArray(n)&&n.length&&(c=Math.max(...n.map(e=>e.y||0),c)),G(c)?Q.createElement(`rect`,{x:a<o?a:a-s,y:0,width:s,height:Math.floor(c+(i?parseInt(`${i}`,10):1))}):null}function Mue(e){var{alpha:t,layout:n,points:r,baseLine:i,strokeWidth:a}=e;return n===`vertical`?Q.createElement(Aue,{alpha:t,points:r,baseLine:i,strokeWidth:a}):Q.createElement(jue,{alpha:t,points:r,baseLine:i,strokeWidth:a})}function Nue(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a}=e,{points:o,baseLine:s,isAnimationActive:c,animationBegin:l,animationDuration:u,animationEasing:d,onAnimationStart:f,onAnimationEnd:p}=r,m=tS((0,uq.useMemo)(()=>({points:o,baseLine:s}),[o,s]),`recharts-area-`),h=Rv(),[g,_]=(0,uq.useState)(!1),v=!g,y=(0,uq.useCallback)(()=>{typeof p==`function`&&p(),_(!1)},[p]),b=(0,uq.useCallback)(()=>{typeof f==`function`&&f(),_(!0)},[f]);if(h==null)return null;var x=i.current,S=a.current;return Q.createElement(kue,{showLabels:v,points:o},r.children,Q.createElement(Yx,{animationId:m,begin:l,duration:u,isActive:c,easing:d,onAnimationEnd:y,onAnimationStart:b,key:m},e=>{if(x){var l=x.length/o.length,u=e===1?o:o.map((t,n)=>{var r=Math.floor(n*l);if(x[r]){var i=x[r];return sq(sq({},t),{},{x:W(i.x,t.x,e),y:W(i.y,t.y,e)})}return t}),d=G(s)?W(S,s,e):Ff(s)||Df(s)?W(S,0,e):s.map((t,n)=>{var r=Math.floor(n*l);if(Array.isArray(S)&&S[r]){var i=S[r];return sq(sq({},t),{},{x:W(i.x,t.x,e),y:W(i.y,t.y,e)})}return t});return e>0&&(i.current=u,a.current=d),Q.createElement(lq,{points:u,baseLine:d,needClip:t,clipPathId:n,props:r})}return e>0&&(i.current=o,a.current=s),Q.createElement(U,null,c&&Q.createElement(`defs`,null,Q.createElement(`clipPath`,{id:`animationClipPath-${n}`},Q.createElement(Mue,{alpha:e,points:o,baseLine:s,layout:h,strokeWidth:r.strokeWidth}))),Q.createElement(U,{clipPath:`url(#animationClipPath-${n})`},Q.createElement(lq,{points:o,baseLine:s,needClip:t,clipPathId:n,props:r})))}),Q.createElement(HL,{label:r.label}))}function Pue(e){var{needClip:t,clipPathId:n,props:r}=e,i=(0,uq.useRef)(null),a=(0,uq.useRef)();return Q.createElement(Nue,{needClip:t,clipPathId:n,props:r,previousPointsRef:i,previousBaselineRef:a})}function Fue(e){var{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,connectNulls:a,dot:o,fill:s,fillOpacity:c,hide:l,isAnimationActive:u,legendType:d,stroke:f,xAxisId:p,yAxisId:m}=e,h=aq(e,fq),g=Lv(),_=PP(),{needClip:v}=uK(p,m),y=nv(),{points:b,isRange:x,baseLine:S}=q(t=>rq(t,e.id,y))??{},C=zH();if(g!==`horizontal`&&g!==`vertical`||C==null||_!==`AreaChart`&&_!==`ComposedChart`)return null;var{height:w,width:T,x:E,y:D}=C;return!b||!b.length?null:Q.createElement(hq,iq({},h,{activeDot:t,animationBegin:n,animationDuration:r,animationEasing:i,baseLine:S,connectNulls:a,dot:o,fill:s,fillOpacity:c,height:w,hide:l,layout:g,isAnimationActive:u,isRange:x,legendType:d,needClip:v,points:b,stroke:f,width:T,left:E,top:D,xAxisId:p,yAxisId:m}))}function Iue(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:i,layout:a,chartBaseValue:o,xAxis:s,yAxis:c,displayedData:l,dataStartIndex:u,xAxisTicks:d,yAxisTicks:f,bandSize:p}=e,m=i&&i.length,h=_q(a,o,n,s,c),g=a===`horizontal`,_=!1,v=l.map((e,n)=>{var a;if(m)a=i[u+n];else{var o=X(e,r);Array.isArray(o)?(a=o,_=!0):a=[h,o]}var l=a?.[1]??null,v=l==null||m&&!t&&X(e,r)==null;return g?{x:u_({axis:s,ticks:d,bandSize:p,entry:e,index:n}),y:v?null:c.scale.map(l)??null,value:a,payload:e}:{x:v?null:s.scale.map(l)??null,y:u_({axis:c,ticks:f,bandSize:p,entry:e,index:n}),value:a,payload:e}});return{points:v,baseLine:(m||_?v.map(e=>{var t=Array.isArray(e.value)?e.value[0]:null;return g?{x:e.x,y:t!=null&&e.y!=null?c.scale.map(t)??null:null,payload:e.payload}:{x:t==null?null:s.scale.map(t)??null,y:e.y,payload:e.payload}}):g?c.scale.map(h):s.scale.map(h))??0,isRange:_}}function Lue(e){var t=ip(e,gq),n=nv();return Q.createElement(oV,{id:t.id,type:`area`},e=>Q.createElement(Q.Fragment,null,Q.createElement(qB,{legendPayload:pq(t)}),Q.createElement(mq,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),Q.createElement(yV,{type:`area`,id:e,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:l_(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),Q.createElement(Fue,iq({},t,{id:e}))))}var Q,uq,dq,fq,pq,mq,hq,gq,_q,vq,yq=o((()=>{Q=u(f()),uq=u(f()),Xl(),fx(),wu(),QL(),SH(),K(),P_(),cB(),JH(),KB(),pK(),Cue(),rv(),Wv(),ZP(),XB(),Jp(),rS(),ap(),o_(),VH(),sV(),SV(),ou(),eS(),CK(),uu(),hF(),zC(),lb(),dq=[`id`],fq=[`activeDot`,`animationBegin`,`animationDuration`,`animationEasing`,`connectNulls`,`dot`,`fill`,`fillOpacity`,`hide`,`isAnimationActive`,`legendType`,`stroke`,`xAxisId`,`yAxisId`],pq=e=>{var{dataKey:t,name:n,stroke:r,fill:i,legendType:a,hide:o}=e;return[{inactive:o,dataKey:t,type:a,color:cq(r,i),value:f_(n,t),payload:e}]},mq=Q.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,unit:c,tooltipType:l,id:u}=e,d={dataDefinedOnItem:n,getPosition:wf,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,nameKey:void 0,name:f_(o,t),hide:s,type:l,color:cq(r,a),unit:c,graphicalItemId:u}};return Q.createElement(WB,{tooltipEntrySettings:d})}),hq=class extends uq.PureComponent{render(){var{hide:e,dot:t,points:n,className:r,top:i,left:a,needClip:o,xAxisId:s,yAxisId:c,width:l,height:u,id:d,baseLine:f,zIndex:p}=this.props;if(e)return null;var m=H(`recharts-area`,r),h=d,{r:g,strokeWidth:_}=SK(t),v=sB(t),y=g*2+_,b=o?`url(#clipPath-${v?``:`dots-`}${h})`:void 0;return Q.createElement(fF,{zIndex:p},Q.createElement(U,{className:m},o&&Q.createElement(`defs`,null,Q.createElement(dK,{clipPathId:h,xAxisId:s,yAxisId:c}),!v&&Q.createElement(`clipPath`,{id:`clipPath-dots-${h}`},Q.createElement(`rect`,{x:a-y/2,y:i-y/2,width:l+y,height:u+y}))),Q.createElement(Pue,{needClip:o,clipPathId:h,props:this.props})),Q.createElement(WH,{points:n,mainColor:cq(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}),this.props.isRange&&Array.isArray(f)&&Q.createElement(WH,{points:f,mainColor:cq(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:b}))}},gq={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:`ease`,connectNulls:!1,dot:!1,fill:`#3182bd`,fillOpacity:.6,hide:!1,isAnimationActive:`auto`,legendType:`line`,stroke:`#3182bd`,strokeWidth:1,type:`linear`,label:!1,xAxisId:0,yAxisId:0,zIndex:RC.area},_q=(e,t,n,r,i)=>{var a=n??t;if(G(a))return a;var o=e===`horizontal`?i:r,s=o.scale.domain();if(o.type===`number`){var c=Math.max(s[0],s[1]),l=Math.min(s[0],s[1]);return a===`dataMin`?l:a===`dataMax`||c<0?c:Math.max(Math.min(s[0],s[1]),0)}return a===`dataMin`?s[0]:a===`dataMax`?s[1]:s[0]},vq=Q.memo(Lue,sb),vq.displayName=`Area`}));function Rue(e,t){if(!e){if(bq)throw Error(xq);var n=typeof t==`function`?t():t,r=n?`${xq}: ${n}`:xq;throw Error(r)}}var bq,xq,zue=o((()=>{bq=!0,xq=`Invariant failed`}));function Sq(){return Sq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sq.apply(null,arguments)}function Cq(e){return wq.createElement(PB,Sq({shapeType:`rectangle`,activeClassName:`recharts-active-bar`,inActiveClassName:`recharts-inactive-bar`},e))}var wq,Tq,Bue=o((()=>{wq=u(f()),zue(),zB(),K(),Tq=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(n,r)=>{if(G(e))return e;var i=G(n)||Ff(n);return i?e(n,r):(!i&&Rue(!1,`minPointSize callback function received a value with type of ${typeof n}. Currently only numbers or null/undefined are supported.`),t)}}})),Eq,Dq,Oq,kq,Aq,jq,Mq,Nq,Pq,Fq,Iq,Lq,Rq,zq,Bq,Vq,Hq,Uq,Wq,Vue=o((()=>{rm(),UM(),K(),P_(),_J(),Wv(),lC(),$_(),LC(),AU(),PU(),IU(),GK(),RU(),Eq=(e,t,n)=>n,Dq=(e,t)=>t,Oq=J([ZA,Dq],(e,t)=>e.filter(e=>e.type===`bar`).find(e=>e.id===t)),kq=J([Oq],e=>e?.maxBarSize),Aq=(e,t,n,r)=>r,jq=J([Z,ZA,UK,WK,Eq],(e,t,n,r,i)=>t.filter(t=>e===`horizontal`?t.xAxisId===n:t.yAxisId===r).filter(e=>e.isPanorama===i).filter(e=>e.hide===!1).filter(e=>e.type===`bar`)),Mq=(e,t,n)=>{var r=Z(e),i=UK(e,t),a=WK(e,t);if(!(i==null||a==null))return r===`horizontal`?_j(e,`yAxis`,a,n):_j(e,`xAxis`,i,n)},Nq=(e,t)=>{var n=Z(e),r=UK(e,t),i=WK(e,t);if(!(r==null||i==null))return n===`horizontal`?AM(e,`xAxis`,r):AM(e,`yAxis`,i)},Pq=J([jq,kC,Nq],kU),Fq=(e,t,n)=>{var r=Oq(e,t);if(r==null)return 0;var i=UK(e,t),a=WK(e,t);if(i==null||a==null)return 0;var o=Z(e),s=EC(e),{maxBarSize:c}=r,l=Ff(c)?s:c,u,d;return o===`horizontal`?(u=RM(e,`xAxis`,i,n),d=LM(e,`xAxis`,i,n)):(u=RM(e,`yAxis`,a,n),d=LM(e,`yAxis`,a,n)),j_(u,d,!0)??l??0},Iq=(e,t,n)=>{var r=Z(e),i=UK(e,t),a=WK(e,t);if(!(i==null||a==null)){var o,s;return r===`horizontal`?(o=RM(e,`xAxis`,i,n),s=LM(e,`xAxis`,i,n)):(o=RM(e,`yAxis`,a,n),s=LM(e,`yAxis`,a,n)),j_(o,s)}},Lq=J([Pq,EC,DC,OC,Fq,Iq,kq],NU),Rq=(e,t,n)=>{var r=UK(e,t);if(r!=null)return RM(e,`xAxis`,r,n)},zq=(e,t,n)=>{var r=WK(e,t);if(r!=null)return RM(e,`yAxis`,r,n)},Bq=(e,t,n)=>{var r=UK(e,t);if(r!=null)return LM(e,`xAxis`,r,n)},Vq=(e,t,n)=>{var r=WK(e,t);if(r!=null)return LM(e,`yAxis`,r,n)},Hq=J([Lq,Oq],LU),Uq=J([Mq,Oq],FU),Wq=J([X_,Q_,Rq,zq,Bq,Vq,Hq,Z,aC,Iq,Uq,Oq,Aq],(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{var{chartData:p,dataStartIndex:m,dataEndIndex:h}=c;if(!(d==null||o==null||t==null||s!==`horizontal`&&s!==`vertical`||n==null||r==null||i==null||a==null||l==null)){var{data:g}=d,_=g!=null&&g.length>0?g:p?.slice(m,h+1);if(_!=null)return rde({layout:s,barSettings:d,pos:o,parentViewBox:t,bandSize:l,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:a,stackedData:u,displayedData:_,offset:e,cells:f,dataStartIndex:m})}})}));function Gq(){return Gq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gq.apply(null,arguments)}function Hue(e,t){if(e==null)return{};var n,r,i=Uue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Uue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Kq,qq,Jq,Yq,Xq,Zq,Qq,$q,Wue=o((()=>{Kq=u(f()),qq=u(f()),P_(),wu(),Jq=[`index`],Yq=(0,qq.createContext)(void 0),Xq=e=>{var t=(0,qq.useContext)(Yq);if(t!=null)return t.stackId;if(e!=null)return l_(e)},Zq=(e,t)=>`recharts-bar-stack-clip-path-${e}-${t}`,Qq=e=>{var t=(0,qq.useContext)(Yq);if(t!=null){var{stackId:n}=t;return`url(#${Zq(n,e)})`}},$q=e=>{var{index:t}=e,n=Hue(e,Jq),r=Qq(t);return Kq.createElement(U,Gq({className:`recharts-bar-stack-layer`,clipPath:r},n))}}));function eJ(){return eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eJ.apply(null,arguments)}function tJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tJ(Object(n),!0).forEach(function(t){Gue(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gue(e,t,n){return(t=Kue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kue(e){var t=que(e,`string`);return typeof t==`symbol`?t:t+``}function que(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function rJ(e,t){if(e==null)return{};var n,r,i=Jue(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Yue(e){var t=q(pP),{data:n,dataKey:r,background:i,allOtherBarProps:a}=e,{onMouseEnter:o,onMouseLeave:s,onClick:c}=a,l=rJ(a,oJ),u=BB(o,r,a.id),d=VB(s),f=HB(c,r,a.id);if(!i||n==null)return null;var p=ru(i);return iJ.createElement(fF,{zIndex:gW(i,RC.barBackground)},n.map((e,n)=>{var{value:a,background:o,tooltipPosition:s}=e,c=rJ(e,sJ);if(!o)return null;var m=u(e,n),h=d(e,n),g=f(e,n),_=nJ(nJ(nJ(nJ(nJ({option:i,isActive:String(n)===t},c),{},{fill:`#eee`},o),p),ep(l,e,n)),{},{onMouseEnter:m,onMouseLeave:h,onClick:g,dataKey:r,index:n,className:`recharts-bar-background-rectangle`});return iJ.createElement(Cq,eJ({key:`background-bar-${n}`},_))}))}function Xue(e){var{showLabels:t,children:n,rects:r}=e,i=r?.map(e=>{var t={x:e.x,y:e.y,width:e.width,lowerWidth:e.width,upperWidth:e.width,height:e.height};return nJ(nJ({},t),{},{value:e.value,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})});return iJ.createElement(YL,{value:t?i:void 0},n)}function Zue(e){var{shape:t,activeBar:n,baseProps:r,entry:i,index:a,dataKey:o}=e,s=q(pP),c=q(hP),l=n&&String(i.originalDataIndex)===s&&(c==null||o===c),[u,d]=(0,aJ.useState)(!1),[f,p]=(0,aJ.useState)(!1);(0,aJ.useEffect)(()=>{var e;return l?(d(!0),e=requestAnimationFrame(()=>{p(!0)})):p(!1),()=>{cancelAnimationFrame(e)}},[l]);var m=(0,aJ.useCallback)(()=>{l||d(!1)},[l]),h=l&&f,g=l||u,_=l?n===!0?t:n:t,v=iJ.createElement(Cq,eJ({},r,{name:String(r.name)},i,{isActive:h,option:_,index:a,dataKey:o,onTransitionEnd:m}));return g?iJ.createElement(fF,{zIndex:RC.activeBar},iJ.createElement($q,{index:i.originalDataIndex},v)):v}function Que(e){var{shape:t,baseProps:n,entry:r,index:i,dataKey:a}=e;return iJ.createElement(Cq,eJ({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:i,dataKey:a}))}function $ue(e){var{data:t,props:n}=e,r=nu(n)??{},{id:i}=r,a=rJ(r,cJ),{shape:o,dataKey:s,activeBar:c}=n,{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=rJ(n,lJ),p=BB(l,s,i),m=VB(d),h=HB(u,s,i);return t?iJ.createElement(iJ.Fragment,null,t.map((e,t)=>iJ.createElement($q,eJ({index:e.originalDataIndex,key:`rectangle-${e?.x}-${e?.y}-${e?.value}-${t}`,className:`recharts-bar-rectangle`},ep(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),c?iJ.createElement(Zue,{shape:o,activeBar:c,baseProps:a,entry:e,index:t,dataKey:s}):iJ.createElement(Que,{shape:o,baseProps:a,entry:e,index:t,dataKey:s})))):null}function ede(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:a,animationBegin:o,animationDuration:s,animationEasing:c,onAnimationEnd:l,onAnimationStart:u}=t,d=n.current,f=tS(t,`recharts-bar-`),[p,m]=(0,aJ.useState)(!1),h=!p,g=(0,aJ.useCallback)(()=>{typeof l==`function`&&l(),m(!1)},[l]),_=(0,aJ.useCallback)(()=>{typeof u==`function`&&u(),m(!0)},[u]);return iJ.createElement(Xue,{showLabels:h,rects:r},iJ.createElement(Yx,{animationId:f,begin:o,duration:s,isActive:a,easing:c,onAnimationEnd:g,onAnimationStart:_,key:f},e=>{var a=e===1?r:r?.map((t,n)=>{var r=d&&d[n];if(r)return nJ(nJ({},t),{},{x:W(r.x,t.x,e),y:W(r.y,t.y,e),width:W(r.width,t.width,e),height:W(r.height,t.height,e)});if(i===`horizontal`){var a=W(0,t.height,e),o=W(t.stackedBarStart,t.y,e);return nJ(nJ({},t),{},{y:o,height:a})}var s=W(0,t.width,e),c=W(t.stackedBarStart,t.x,e);return nJ(nJ({},t),{},{width:s,x:c})});return e>0&&(n.current=a??null),a==null?null:iJ.createElement(U,null,iJ.createElement($ue,{props:t,data:a}))}),iJ.createElement(HL,{label:t.label}),t.children)}function tde(e){var t=(0,aJ.useRef)(null);return iJ.createElement(ede,{previousRectanglesRef:t,props:e})}function nde(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u}=e,{needClip:d}=uK(t,n),f=Lv(),p=nv(),m=$z(e.children,SI),h=q(t=>Wq(t,e.id,p,m));if(f!==`vertical`&&f!==`horizontal`)return null;var g,_=h?.[0];return g=_==null||_.height==null||_.width==null?0:f===`vertical`?_.height/2:_.width/2,iJ.createElement(iK,{xAxisId:t,yAxisId:n,data:h,dataPointFormatter:pJ,errorBarOffset:g},iJ.createElement(mJ,eJ({},e,{layout:f,needClip:d,data:h,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:a,activeBar:o,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:u})))}function rde(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r,hasCustomShape:i},pos:a,bandSize:o,xAxis:s,yAxis:c,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:p,cells:m,parentViewBox:h,dataStartIndex:g}=e,_=t===`horizontal`?c:s,v=d?_.scale.domain():null,y=T_({numericAxis:_}),b=_.scale.map(y);return f.map((e,f)=>{var _,x,S,C,w,T;if(d){var E=d[f+g];if(E==null)return null;_=y_(E,v)}else _=X(e,n),Array.isArray(_)||(_=[y,_]);var D=Tq(r,fJ)(_[1],f);if(t===`horizontal`){var O=c.scale.map(_[0]),k=c.scale.map(_[1]);if(O==null||k==null)return null;x=w_({axis:s,ticks:l,bandSize:o,offset:a.offset,entry:e,index:f}),S=k??O??void 0,C=a.size;var A=O-k;if(w=Df(A)?0:A,T={x,y:p.top,width:C,height:p.height},Math.abs(D)>0&&Math.abs(w)<Math.abs(D)){var j=Ef(w||D)*(Math.abs(D)-Math.abs(w));S-=j,w+=j}}else{var M=s.scale.map(_[0]),N=s.scale.map(_[1]);if(M==null||N==null)return null;if(x=M,S=w_({axis:c,ticks:u,bandSize:o,offset:a.offset,entry:e,index:f}),C=N-M,w=a.size,T={x:p.left,y:S,width:p.width,height:w},Math.abs(D)>0&&Math.abs(C)<Math.abs(D)){var ee=Ef(C||D)*(Math.abs(D)-Math.abs(C));C+=ee}}return x==null||S==null||C==null||w==null||!i&&(C===0||w===0)?null:nJ(nJ({},e),{},{stackedBarStart:b,x,y:S,width:C,height:w,value:d?_:_[1],payload:e,background:T,tooltipPosition:{x:x+C/2,y:S+w/2},parentViewBox:h,originalDataIndex:f},m&&m[f]&&m[f].props)}).filter(Boolean)}function ide(e){var t=ip(e,hJ),n=Xq(t.stackId),r=nv();return iJ.createElement(oV,{id:t.id,type:`bar`},e=>iJ.createElement(iJ.Fragment,null,iJ.createElement(qB,{legendPayload:uJ(t)}),iJ.createElement(dJ,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:e}),iJ.createElement(yV,{type:`bar`,id:e,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r,hasCustomShape:t.shape!=null}),iJ.createElement(fF,{zIndex:t.zIndex},iJ.createElement(nde,eJ({},t,{id:e})))))}var iJ,aJ,oJ,sJ,cJ,lJ,uJ,dJ,fJ,pJ,mJ,hJ,gJ,_J=o((()=>{iJ=u(f()),aJ=u(f()),Xl(),wu(),CI(),QL(),K(),cB(),P_(),np(),Bue(),UB(),KB(),lK(),pK(),Wv(),Vue(),Jp(),rv(),CP(),XB(),rS(),ap(),sV(),SV(),ou(),eS(),hF(),zC(),_W(),lb(),Wue(),oJ=[`onMouseEnter`,`onMouseLeave`,`onClick`],sJ=[`value`,`background`,`tooltipPosition`],cJ=[`id`],lJ=[`onMouseEnter`,`onClick`,`onMouseLeave`],uJ=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:f_(n,t),payload:e}]},dJ=iJ.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:a,hide:o,unit:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:void 0,getPosition:wf,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:f_(a,t),hide:o,type:c,color:i,unit:s,graphicalItemId:l}};return iJ.createElement(WB,{tooltipEntrySettings:u})}),fJ=0,pJ=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:X(e,t)}},mJ=class extends aJ.PureComponent{render(){var{hide:e,data:t,dataKey:n,className:r,xAxisId:i,yAxisId:a,needClip:o,background:s,id:c}=this.props;if(e||t==null)return null;var l=H(`recharts-bar`,r),u=c;return iJ.createElement(U,{className:l,id:c},o&&iJ.createElement(`defs`,null,iJ.createElement(dK,{clipPathId:u,xAxisId:i,yAxisId:a})),iJ.createElement(U,{className:`recharts-bar-rectangles`,clipPath:o?`url(#clipPath-${u})`:void 0},iJ.createElement(Yue,{data:t,dataKey:n,background:s,allOtherBarProps:this.props}),iJ.createElement(tde,this.props)))}},hJ={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:`ease`,background:!1,hide:!1,isAnimationActive:`auto`,label:!1,legendType:`rect`,minPointSize:fJ,xAxisId:0,yAxisId:0,zIndex:RC.bar},gJ=iJ.memo(ide,sb),gJ.displayName=`Bar`}));function vJ(){return vJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vJ.apply(null,arguments)}function ade(e,t){if(e==null)return{};var n,r,i=ode(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ode(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sde(e){var{option:t,isActive:n}=e,r=ade(e,bJ);return typeof t==`string`?yJ.createElement(PB,vJ({option:yJ.createElement(Jf,vJ({type:t},r)),isActive:n,shapeType:`symbols`},r)):yJ.createElement(PB,vJ({option:t,isActive:n,shapeType:`symbols`},r))}var yJ,bJ,cde=o((()=>{yJ=u(f()),Yf(),zB(),bJ=[`option`,`isActive`]})),xJ,SJ,CJ,wJ,TJ,EJ,DJ,OJ,kJ,AJ,lde=o((()=>{rm(),GJ(),lC(),UM(),xJ=(e,t,n,r,i,a,o)=>RM(e,`xAxis`,t,o),SJ=(e,t,n,r,i,a,o)=>LM(e,`xAxis`,t,o),CJ=(e,t,n,r,i,a,o)=>RM(e,`yAxis`,n,o),wJ=(e,t,n,r,i,a,o)=>LM(e,`yAxis`,n,o),TJ=(e,t,n,r)=>BM(e,`zAxis`,r,!1),EJ=(e,t,n,r,i)=>i,DJ=(e,t,n,r,i,a)=>a,OJ=(e,t,n,r,i,a,o)=>iC(e,void 0,void 0,o),kJ=J([ZA,EJ],(e,t)=>e.filter(e=>e.type===`scatter`).find(e=>e.id===t)),AJ=J([OJ,xJ,SJ,CJ,wJ,TJ,kJ,DJ],(e,t,n,r,i,a,o,s)=>{var{chartData:c,dataStartIndex:l,dataEndIndex:u}=e;if(o!=null){var d=o?.data!=null&&o.data.length>0?o.data:c?.slice(l,u+1);if(!(d==null||t==null||r==null||n==null||i==null||n?.length===0||i?.length===0))return vde({displayedData:d,xAxis:t,yAxis:r,zAxis:a,scatterSettings:o,xAxisTicks:n,yAxisTicks:i,cells:s})}})}));function jJ(e,t){if(e==null)return{};var n,r,i=ude(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ude(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function MJ(){return MJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MJ.apply(null,arguments)}function NJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function PJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?NJ(Object(n),!0).forEach(function(t){dde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function dde(e,t,n){return(t=fde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fde(e){var t=pde(e,`string`);return typeof t==`symbol`?t:t+``}function pde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mde(e){var{points:t,props:n}=e,{line:r,lineType:i,lineJointType:a}=n;if(!r)return null;var o=nu(n),s=ru(r),c,l;if(i===`joint`)c=t.map(e=>({x:e.cx??null,y:e.cy??null}));else if(i===`fitting`){var{xmin:u,xmax:d,a:f,b:p}=Pf(t),m=e=>f*e+p;c=[{x:u,y:m(u)},{x:d,y:m(d)}]}var h=PJ(PJ(PJ({},o),{},{fill:`none`,stroke:o&&o.fill},s),{},{points:c});return l=FJ.isValidElement(r)?FJ.cloneElement(r,h):typeof r==`function`?r(h):FJ.createElement(dx,MJ({},h,{type:a})),FJ.createElement(U,{className:`recharts-scatter-line`,key:`recharts-scatter-line`},l)}function hde(e){var{showLabels:t,points:n,children:r}=e,i=jv(),a=(0,IJ.useMemo)(()=>n?.map(e=>{var t={x:e.x??0,y:e.y??0,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width};return PJ(PJ({},t),{},{value:void 0,payload:e.payload,viewBox:t,parentViewBox:i,fill:void 0})}),[i,n]);return FJ.createElement(YL,{value:t?a:void 0},r)}function gde(e){var{points:t,allOtherScatterProps:n}=e,{shape:r,activeShape:i,dataKey:a}=n,{id:o}=n,s=jJ(n,LJ),c=q(pP),{onMouseEnter:l,onClick:u,onMouseLeave:d}=n,f=jJ(n,RJ),p=BB(l,a,o),m=VB(d),h=HB(u,a,o);if(!tp(t))return null;var g=nu(s);return FJ.createElement(FJ.Fragment,null,FJ.createElement(mde,{points:t,props:s}),t.map((e,t)=>{var n=i!=null&&i!==!1,a=n&&c===String(t),s=n&&a?i:r,l=PJ(PJ(PJ({},g),e),{},{index:t,[G_]:String(o)});return FJ.createElement(fF,{key:`symbol-${e?.cx}-${e?.cy}-${e?.size}-${t}`,zIndex:a?RC.activeDot:void 0},FJ.createElement(U,MJ({className:`recharts-scatter-symbol`},ep(f,e,t),{onMouseEnter:p(e,t),onMouseLeave:m(e,t),onClick:h(e,t)}),FJ.createElement(sde,MJ({option:s,isActive:a},l))))}))}function _de(e){var{previousPointsRef:t,props:n}=e,{points:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s}=n,c=t.current,l=tS(n,`recharts-scatter-`),[u,d]=(0,IJ.useState)(!1),f=(0,IJ.useCallback)(()=>{d(!1)},[]),p=(0,IJ.useCallback)(()=>{d(!0)},[]),m=!u;return FJ.createElement(hde,{showLabels:m,points:r},n.children,FJ.createElement(Yx,{animationId:l,begin:a,duration:o,isActive:i,easing:s,onAnimationEnd:f,onAnimationStart:p,key:l},e=>{var i=e===1?r:r?.map((t,n)=>{var r=c&&c[n];return r?PJ(PJ({},t),{},{cx:t.cx==null?void 0:W(r.cx,t.cx,e),cy:t.cy==null?void 0:W(r.cy,t.cy,e),size:W(r.size,t.size,e)}):PJ(PJ({},t),{},{size:W(0,t.size,e)})});return e>0&&(t.current=i),FJ.createElement(U,null,FJ.createElement(gde,{points:i,allOtherScatterProps:n,showLabels:m}))}),FJ.createElement(HL,{label:n.label}))}function vde(e){var{displayedData:t,xAxis:n,yAxis:r,zAxis:i,scatterSettings:a,xAxisTicks:o,yAxisTicks:s,cells:c}=e,l=Ff(n.dataKey)?a.dataKey:n.dataKey,u=Ff(r.dataKey)?a.dataKey:r.dataKey,d=i&&i.dataKey,f=i?i.range:GA.range,p=f&&f[0],m=n.scale.bandwidth?n.scale.bandwidth():0,h=r.scale.bandwidth?r.scale.bandwidth():0;return t.map((e,t)=>{var f=X(e,l),g=X(e,u),_=!Ff(d)&&X(e,d)||`-`,v=[{name:Ff(n.dataKey)?a.name:n.name||String(n.dataKey),unit:n.unit||``,value:f,payload:e,dataKey:l,type:a.tooltipType,graphicalItemId:a.id},{name:Ff(r.dataKey)?a.name:r.name||String(r.dataKey),unit:r.unit||``,value:g,payload:e,dataKey:u,type:a.tooltipType,graphicalItemId:a.id}];_!==`-`&&i!=null&&v.push({name:i.name||i.dataKey,unit:i.unit||``,value:_,payload:e,dataKey:d,type:a.tooltipType,graphicalItemId:a.id});var y=u_({axis:n,ticks:o,bandSize:m,entry:e,index:t,dataKey:l}),b=u_({axis:r,ticks:s,bandSize:h,entry:e,index:t,dataKey:u}),x=_!==`-`&&i!=null?i.scale.map(_):p,S=x==null?0:Math.sqrt(Math.max(x,0)/Math.PI);return PJ(PJ({},e),{},{cx:y,cy:b,x:y==null?void 0:y-S,y:b==null?void 0:b-S,width:2*S,height:2*S,size:x,node:{x:f,y:g,z:_},tooltipPayload:v,tooltipPosition:{x:y,y:b},payload:e},c&&c[t]&&c[t].props)})}function yde(e){var{hide:t,points:n,className:r,needClip:i,xAxisId:a,yAxisId:o,id:s}=e,c=(0,IJ.useRef)(null);if(t)return null;var l=H(`recharts-scatter`,r),u=s;return FJ.createElement(fF,{zIndex:e.zIndex},FJ.createElement(U,{className:l,clipPath:i?`url(#clipPath-${u})`:void 0,id:s},i&&FJ.createElement(`defs`,null,FJ.createElement(dK,{clipPathId:u,xAxisId:a,yAxisId:o})),FJ.createElement(iK,{xAxisId:a,yAxisId:o,data:n,dataPointFormatter:HJ,errorBarOffset:0},FJ.createElement(U,{key:`recharts-scatter-symbols`},FJ.createElement(_de,{props:e,previousPointsRef:c})))))}function bde(e){var t=ip(e,UJ),{animationBegin:n,animationDuration:r,animationEasing:i,hide:a,isAnimationActive:o,legendType:s,lineJointType:c,lineType:l,shape:u,xAxisId:d,yAxisId:f,zAxisId:p}=t,m=jJ(t,zJ),{needClip:h}=uK(d,f),g=(0,IJ.useMemo)(()=>$z(e.children,SI),[e.children]),_=nv(),v=q(t=>AJ(t,d,f,p,e.id,g,_));return h==null||v==null?null:FJ.createElement(FJ.Fragment,null,FJ.createElement(VJ,{dataKey:e.dataKey,points:v,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:e.id}),FJ.createElement(yde,MJ({},m,{xAxisId:d,yAxisId:f,zAxisId:p,lineType:l,lineJointType:c,legendType:s,shape:u,hide:a,isAnimationActive:o,animationBegin:n,animationDuration:r,animationEasing:i,points:v,needClip:h})))}function xde(e){var t=ip(e,UJ),n=nv();return FJ.createElement(oV,{id:t.id,type:`scatter`},e=>FJ.createElement(FJ.Fragment,null,FJ.createElement(qB,{legendPayload:BJ(t)}),FJ.createElement(yV,{type:`scatter`,id:e,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:t.zAxisId,dataKey:t.dataKey,hide:t.hide,name:t.name,tooltipType:t.tooltipType,isPanorama:n}),FJ.createElement(bde,MJ({},t,{id:e}))))}var FJ,IJ,LJ,RJ,zJ,BJ,VJ,HJ,UJ,WJ,GJ=o((()=>{FJ=u(f()),IJ=u(f()),Xl(),wu(),QL(),cB(),fx(),CI(),K(),P_(),np(),cde(),UB(),KB(),lK(),pK(),lde(),Jp(),UM(),rv(),CP(),XB(),K_(),rS(),ap(),sV(),SV(),ou(),eS(),Wv(),hF(),zC(),lb(),LJ=[`id`],RJ=[`onMouseEnter`,`onClick`,`onMouseLeave`],zJ=[`animationBegin`,`animationDuration`,`animationEasing`,`hide`,`isAnimationActive`,`legendType`,`lineJointType`,`lineType`,`shape`,`xAxisId`,`yAxisId`,`zAxisId`],BJ=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:a}=e;return[{inactive:a,dataKey:t,type:i,color:r,value:f_(n,t),payload:e}]},VJ=FJ.memo(e=>{var{dataKey:t,points:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,tooltipType:c,id:l}=e,u={dataDefinedOnItem:n?.map(e=>e.tooltipPayload),getPosition:e=>{var t;return n==null||(t=n[Number(e)])==null?void 0:t.tooltipPosition},settings:{stroke:r,strokeWidth:i,fill:a,nameKey:void 0,dataKey:t,name:f_(o,t),hide:s,type:c,color:a,unit:``,graphicalItemId:l}};return FJ.createElement(WB,{tooltipEntrySettings:u})}),HJ=(e,t,n)=>({x:e.cx,y:e.cy,value:Number(n===`x`?e.node.x:e.node.y),errorVal:X(e,t)}),UJ={xAxisId:0,yAxisId:0,zAxisId:0,label:!1,line:!1,legendType:`circle`,lineType:`joint`,lineJointType:`linear`,shape:`circle`,hide:!1,isAnimationActive:`auto`,animationBegin:0,animationDuration:400,animationEasing:`linear`,zIndex:RC.scatter},WJ=FJ.memo(xde,sb),WJ.displayName=`Scatter`}));function KJ(e,t){if(e==null)return{};var n,r,i=qJ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qJ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function JJ(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function YJ(e,t){if(e===t)return!0;var{domain:n,range:r}=e,i=KJ(e,XJ),{domain:a,range:o}=t,s=KJ(t,ZJ);return!JJ(n,a)||!JJ(r,o)?!1:sb(i,s)}var XJ,ZJ,QJ=o((()=>{lb(),XJ=[`domain`,`range`],ZJ=[`domain`,`range`]}));function $J(){return $J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$J.apply(null,arguments)}function eY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eY(Object(n),!0).forEach(function(t){nY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nY(e,t,n){return(t=rY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rY(e){var t=iY(e,`string`);return typeof t==`symbol`?t:t+``}function iY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aY(e,t){if(e==null)return{};var n,r,i=oY(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sY(e){var t=Wp(),n=(0,lY.useRef)(null),r=Rv(),{type:i}=e,a=aY(e,uY),o=KC(r,`xAxis`,i),s=(0,lY.useMemo)(()=>{if(o!=null)return tY(tY({},a),{},{type:o})},[a,o]);return(0,lY.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(OH(s)):n.current!==s&&t(kH({prev:n.current,next:s})),n.current=s)},[s,t]),(0,lY.useLayoutEffect)(()=>()=>{n.current&&=(t(AH(n.current)),null)},[t]),null}var cY,lY,uY,dY,fY,pY,mY,hY,gY,_Y=o((()=>{cY=u(f()),lY=u(f()),Xl(),BG(),Jp(),IH(),UM(),$_(),rv(),ap(),QJ(),Wv(),qC(),uY=[`type`],dY=[`dangerouslySetInnerHTML`,`ticks`,`scale`],fY=[`id`,`scale`],pY=e=>{var{xAxisId:t,className:n}=e,r=q(Q_),i=nv(),a=`xAxis`,o=q(e=>FM(e,a,t,i)),s=q(e=>bM(e,t)),c=q(e=>EM(e,t)),l=q(e=>BA(e,t));if(s==null||c==null||l==null)return null;var{dangerouslySetInnerHTML:u,ticks:d,scale:f}=e,p=aY(e,dY),{id:m,scale:h}=l,g=aY(l,fY);return cY.createElement(zG,$J({},p,g,{x:c.x,y:c.y,width:s.width,height:s.height,className:H(`recharts-${a} ${a}`,n),viewBox:r,ticks:o,axisType:a,axisId:t}))},mY={allowDataOverflow:zA.allowDataOverflow,allowDecimals:zA.allowDecimals,allowDuplicatedCategory:zA.allowDuplicatedCategory,angle:zA.angle,axisLine:IG.axisLine,height:zA.height,hide:!1,includeHidden:zA.includeHidden,interval:zA.interval,label:!1,minTickGap:zA.minTickGap,mirror:zA.mirror,orientation:zA.orientation,padding:zA.padding,reversed:zA.reversed,scale:zA.scale,tick:zA.tick,tickCount:zA.tickCount,tickLine:IG.tickLine,tickSize:IG.tickSize,type:zA.type,niceTicks:zA.niceTicks,xAxisId:0},hY=e=>{var t=ip(e,mY);return cY.createElement(cY.Fragment,null,cY.createElement(sY,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,niceTicks:t.niceTicks}),cY.createElement(pY,t))},gY=cY.memo(hY,YJ),gY.displayName=`XAxis`}));function vY(){return vY=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vY.apply(null,arguments)}function yY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yY(Object(n),!0).forEach(function(t){xY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xY(e,t,n){return(t=SY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SY(e){var t=CY(e,`string`);return typeof t==`symbol`?t:t+``}function CY(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wY(e,t){if(e==null)return{};var n,r,i=TY(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function TY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function EY(e){var t=Wp(),n=(0,kY.useRef)(null),r=Rv(),{type:i}=e,a=wY(e,AY),o=KC(r,`yAxis`,i),s=(0,kY.useMemo)(()=>{if(o!=null)return bY(bY({},a),{},{type:o})},[o,a]);return(0,kY.useLayoutEffect)(()=>{s!=null&&(n.current===null?t(jH(s)):n.current!==s&&t(MH({prev:n.current,next:s})),n.current=s)},[s,t]),(0,kY.useLayoutEffect)(()=>()=>{n.current&&=(t(NH(n.current)),null)},[t]),null}function DY(e){var{yAxisId:t,className:n,width:r,label:i}=e,a=(0,kY.useRef)(null),o=(0,kY.useRef)(null),s=q(Q_),c=nv(),l=Wp(),u=`yAxis`,d=q(e=>kM(e,t)),f=q(e=>OM(e,t)),p=q(e=>FM(e,u,t,c)),m=q(e=>UA(e,t));if((0,kY.useLayoutEffect)(()=>{if(!(r!==`auto`||!d||jL(i)||(0,kY.isValidElement)(i)||m==null)){var e=a.current;if(e){var n=e.getCalculatedWidth();Math.round(d.width)!==Math.round(n)&&l(PH({id:t,width:n}))}}},[p,d,l,i,t,r,m]),d==null||f==null||m==null)return null;var{dangerouslySetInnerHTML:h,ticks:g,scale:_}=e,v=wY(e,jY),{id:y,scale:b}=m,x=wY(m,MY);return OY.createElement(zG,vY({},v,x,{ref:a,labelRef:o,x:f.x,y:f.y,tickTextProps:r===`auto`?{width:void 0}:{width:r},width:d.width,height:d.height,className:H(`recharts-${u} ${u}`,n),viewBox:s,ticks:p,axisType:u,axisId:t}))}var OY,kY,AY,jY,MY,NY,PY,FY,IY=o((()=>{OY=u(f()),kY=u(f()),Xl(),BG(),IH(),Jp(),UM(),$_(),rv(),RL(),ap(),QJ(),Wv(),qC(),AY=[`type`],jY=[`dangerouslySetInnerHTML`,`ticks`,`scale`],MY=[`id`,`scale`],NY={allowDataOverflow:HA.allowDataOverflow,allowDecimals:HA.allowDecimals,allowDuplicatedCategory:HA.allowDuplicatedCategory,angle:HA.angle,axisLine:IG.axisLine,hide:!1,includeHidden:HA.includeHidden,interval:HA.interval,label:!1,minTickGap:HA.minTickGap,mirror:HA.mirror,orientation:HA.orientation,padding:HA.padding,reversed:HA.reversed,scale:HA.scale,tick:HA.tick,tickCount:HA.tickCount,tickLine:IG.tickLine,tickSize:IG.tickSize,type:HA.type,niceTicks:HA.niceTicks,width:HA.width,yAxisId:0},PY=e=>{var t=ip(e,NY);return OY.createElement(OY.Fragment,null,OY.createElement(EY,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter,niceTicks:t.niceTicks}),OY.createElement(DY,t))},FY=OY.memo(PY,YJ),FY.displayName=`YAxis`}));function LY(e){var t=ip(e,zY),{animationId:n,from:r,to:i,attributeName:a,isActive:o,canBegin:s,duration:c,easing:l,begin:u,onAnimationEnd:d,onAnimationStart:f,children:p}=t,m=Wb(),h=o===`auto`?!Hb.isSsr&&!m:o,g=Gx(n+a,t.animationManager),[_,v]=(0,RY.useState)(()=>h?r:i),y=(0,RY.useRef)(!1),b=(0,RY.useCallback)(()=>{v(r),f()},[r,f]);return(0,RY.useEffect)(()=>{if(!h||!s)return wf;y.current=!0;var e=g.subscribe(v);return g.start([b,u,i,c,d]),()=>{g.stop(),e&&e(),d()}},[h,s,c,l,u,b,d,g,i,r]),h?s&&y.current?p({transition:Sx([a],c,l),[a]:_}):p({[a]:r}):p({[a]:i})}var RY,zY,BY=o((()=>{RY=u(f()),K(),ap(),Jx(),Tx(),Ub(),Kb(),zY={begin:0,duration:1e3,easing:`ease`,isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}}})),VY,HY,UY=o((()=>{rm(),Wv(),CP(),$_(),ZP(),fw(),kw(),VY=(e,t)=>t,HY=J([VY,Z,dw,Ow,nP,cP,RP,X_],XP)}));function WY(e){return`getBBox`in e.currentTarget&&typeof e.currentTarget.getBBox==`function`}function GY(e){var t=e.currentTarget.getBoundingClientRect(),n,r;if(WY(e)){var i=e.currentTarget.getBBox();n=i.width>0?t.width/i.width:1,r=i.height>0?t.height/i.height:1}else{var a=e.currentTarget;n=a.offsetWidth>0?t.width/a.offsetWidth:1,r=a.offsetHeight>0?t.height/a.offsetHeight:1}var o=(e,i)=>({relativeX:Math.round((e-t.left)/n),relativeY:Math.round((i-t.top)/r)});return`touches`in e?Array.from(e.touches).map(e=>o(e.clientX,e.clientY)):o(e.clientX,e.clientY)}var KY=o((()=>{})),qY,JY,YY,XY,ZY,QY,$Y,eX=o((()=>{Yg(),hN(),UY(),YM(),KY(),qY=qh(`mouseClick`),JY=Jg(),JY.startListening({actionCreator:qY,effect:(e,t)=>{var n=e.payload,r=HY(t.getState(),GY(n));r?.activeIndex!=null&&t.dispatch(dN({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}}),YY=qh(`mouseMove`),XY=Jg(),ZY=null,QY=null,$Y=null,XY.startListening({actionCreator:YY,effect:(e,t)=>{var n=e.payload,{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i?.includes(`mousemove`);ZY!==null&&(cancelAnimationFrame(ZY),ZY=null),QY!==null&&(typeof r!=`number`||!a)&&(clearTimeout(QY),QY=null),$Y=GY(n);var o=()=>{var e=t.getState(),n=GM(e,e.tooltip.settings.shared);if(!$Y){ZY=null,QY=null;return}if(n===`axis`){var r=HY(e,$Y);r?.activeIndex==null?t.dispatch(cN()):t.dispatch(uN({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}ZY=null,QY=null};if(!a){o();return}r===`raf`?ZY=requestAnimationFrame(o):typeof r==`number`&&QY===null&&(QY=setTimeout(o,r))}})}));function tX(e,t){return t instanceof HTMLElement?`HTMLElement <${t.tagName} class="${t.className}">`:t===window?`global.window`:e===`children`&&typeof t==`object`&&t?`<<CHILDREN>>`:t}var nX=o((()=>{})),rX,iX,aX,oX,sX=o((()=>{Yg(),rX={accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:`none`,syncId:void 0,syncMethod:`index`,baseValue:void 0,reverseStackOrder:!1},iX=hg({name:`rootProps`,initialState:rX,reducers:{updateOptions:(e,t)=>{e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=t.payload.barGap??rX.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),aX=iX.reducer,{updateOptions:oX}=iX.actions})),cX,lX,uX,dX=o((()=>{Yg(),cX=hg({name:`polarOptions`,initialState:null,reducers:{updatePolarOptions:(e,t)=>e===null?t.payload:(e.startAngle=t.payload.startAngle,e.endAngle=t.payload.endAngle,e.cx=t.payload.cx,e.cy=t.payload.cy,e.innerRadius=t.payload.innerRadius,e.outerRadius=t.payload.outerRadius,e)}}),{updatePolarOptions:lX}=cX.actions,uX=cX.reducer})),fX,pX,mX,hX,gX,_X,vX,yX=o((()=>{Yg(),hN(),CP(),ZP(),UM(),xN(),YM(),fX=qh(`keyDown`),pX=qh(`focus`),mX=qh(`blur`),hX=Jg(),gX=null,_X=null,vX=null,hX.startListening({actionCreator:fX,effect:(e,t)=>{vX=e.payload,gX!==null&&(cancelAnimationFrame(gX),gX=null);var{throttleDelay:n,throttledEvents:r}=t.getState().eventSettings,i=r===`all`||r.includes(`keydown`);_X!==null&&(typeof n!=`number`||!i)&&(clearTimeout(_X),_X=null);var a=()=>{try{var e=t.getState();if(e.rootProps.accessibilityLayer===!1)return;var{keyboardInteraction:n}=e.tooltip,r=vX;if(r!==`ArrowRight`&&r!==`ArrowLeft`&&r!==`Enter`)return;var i=bN(n,HN(e),mj(e),QN(e)),a=i==null?-1:Number(i),o=!Number.isFinite(a)||a<0,s=cP(e),c=HN(e),l=GM(e,e.tooltip.settings.shared);if(r===`Enter`){if(o)return;var u=UP(e,l,`hover`,String(n.index));t.dispatch(pN({active:!n.active,activeIndex:n.index,activeCoordinate:u}));return}var d=VM(e)===`left-to-right`?1:-1,f=r===`ArrowRight`?1:-1,p;if(o){var m=mj(e),h=QN(e),g=f*d,_=e=>({active:!1,index:String(e),dataKey:void 0,graphicalItemId:void 0,coordinate:void 0});if(p=-1,g>0){for(var v=0;v<c.length;v++)if(bN(_(v),c,m,h)!=null){p=v;break}}else for(var y=c.length-1;y>=0;y--)if(bN(_(y),c,m,h)!=null){p=y;break}if(p<0)return}else{p=a+f*d;var b=s?.length||c.length;if(b===0||p>=b||p<0)return}var x=UP(e,l,`hover`,String(p));t.dispatch(pN({active:!0,activeIndex:p.toString(),activeCoordinate:x}))}finally{gX=null,_X=null}};if(!i){a();return}n===`raf`?gX=requestAnimationFrame(a):typeof n==`number`&&_X===null&&(a(),vX=null,_X=setTimeout(()=>{vX?a():(_X=null,gX=null)},n))}}),hX.startListening({actionCreator:pX,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;if(!r.active&&r.index==null){var i=`0`,a=UP(n,GM(n,n.tooltip.settings.shared),`hover`,String(i));t.dispatch(pN({active:!0,activeIndex:i,activeCoordinate:a}))}}}}),hX.startListening({actionCreator:mX,effect:(e,t)=>{var n=t.getState();if(n.rootProps.accessibilityLayer!==!1){var{keyboardInteraction:r}=n.tooltip;r.active&&t.dispatch(pN({active:!1,activeIndex:r.index,activeCoordinate:r.coordinate}))}}})}));function bX(e){e.persist();var{currentTarget:t}=e;return new Proxy(e,{get:(e,n)=>{if(n===`currentTarget`)return t;var r=Reflect.get(e,n);return typeof r==`function`?r.bind(e):r}})}var xX=o((()=>{})),SX,CX,wX,TX,EX,DX=o((()=>{Yg(),CP(),xX(),SX=qh(`externalEvent`),CX=Jg(),wX=new Map,TX=new Map,EX=new Map,CX.startListening({actionCreator:SX,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){var i=r.type,a=bX(r);EX.set(i,{handler:n,reactEvent:a});var o=wX.get(i);o!==void 0&&(cancelAnimationFrame(o),wX.delete(i));var{throttleDelay:s,throttledEvents:c}=t.getState().eventSettings,l=c,u=l===`all`||l?.includes(i),d=TX.get(i);d!==void 0&&(typeof s!=`number`||!u)&&(clearTimeout(d),TX.delete(i));var f=()=>{var e=EX.get(i);try{if(!e)return;var{handler:n,reactEvent:r}=e,a=t.getState(),o={activeCoordinate:yP(a),activeDataKey:hP(a),activeIndex:pP(a),activeLabel:mP(a),activeTooltipIndex:pP(a),isTooltipActive:bP(a)};n&&n(o,r)}finally{wX.delete(i),TX.delete(i),EX.delete(i)}};if(!u){f();return}if(s===`raf`){var p=requestAnimationFrame(f);wX.set(i,p)}else if(typeof s==`number`){if(!TX.has(i)){f();var m=setTimeout(f,s);TX.set(i,m)}}else f()}}})})),OX,kX,AX=o((()=>{rm(),kN(),OX=J([ON],e=>e.tooltipItemPayloads),kX=J([OX,(e,t)=>t,(e,t,n)=>n],(e,t,n)=>{if(t!=null){var r=e.find(e=>e.settings.graphicalItemId===n);if(r!=null){var{getPosition:i}=r;if(i!=null)return i(t)}}})})),jX,MX,NX,PX,FX,IX,LX=o((()=>{Yg(),hN(),UY(),KY(),YM(),K_(),AX(),CP(),xX(),jX=qh(`touchMove`),MX=Jg(),NX=null,PX=null,FX=null,IX=null,MX.startListening({actionCreator:jX,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){IX=bX(n);var{throttleDelay:r,throttledEvents:i}=t.getState().eventSettings,a=i===`all`||i.includes(`touchmove`);NX!==null&&(cancelAnimationFrame(NX),NX=null),PX!==null&&(typeof r!=`number`||!a)&&(clearTimeout(PX),PX=null),FX=Array.from(n.touches).map(e=>GY({clientX:e.clientX,clientY:e.clientY,currentTarget:n.currentTarget}));var o=()=>{if(IX!=null){var e=t.getState(),n=GM(e,e.tooltip.settings.shared);if(n===`axis`){var r=FX?.[0];if(r==null){NX=null,PX=null;return}var i=HY(e,r);i?.activeIndex!=null&&t.dispatch(uN({activeIndex:i.activeIndex,activeDataKey:void 0,activeCoordinate:i.activeCoordinate}))}else if(n===`item`){var a=IX.touches[0];if(document.elementFromPoint==null||a==null)return;var o=document.elementFromPoint(a.clientX,a.clientY);if(!o||!o.getAttribute)return;var s=o.getAttribute(W_),c=o.getAttribute(`data-recharts-item-id`)??void 0,l=RN(e).find(e=>e.id===c);if(s==null||l==null||c==null)return;var{dataKey:u}=l,d=kX(e,s,c);t.dispatch(oN({activeDataKey:u,activeIndex:s,activeCoordinate:d,activeGraphicalItemId:c}))}NX=null,PX=null}};if(!a){o();return}r===`raf`?NX=requestAnimationFrame(o):typeof r==`number`&&PX===null&&(o(),IX=null,PX=setTimeout(()=>{IX?o():(PX=null,NX=null)},r))}}})})),RX,zX,BX,VX,HX=o((()=>{Yg(),Ly(),RX={throttleDelay:`raf`,throttledEvents:[`mousemove`,`touchmove`,`pointermove`,`scroll`,`wheel`]},zX=hg({name:`eventSettings`,initialState:RX,reducers:{setEventSettings:(e,t)=>{t.payload.throttleDelay!=null&&(e.throttleDelay=t.payload.throttleDelay),t.payload.throttledEvents!=null&&(e.throttledEvents=Cy(t.payload.throttledEvents))}}}),{setEventSettings:BX}=zX.actions,VX=zX.reducer})),UX,WX,GX=o((()=>{Yg(),WF(),hN(),$F(),n_(),eX(),nX(),IH(),gV(),JW(),dle(),Gy(),sX(),nz(),dX(),yX(),DX(),LX(),aue(),Ub(),dF(),HX(),OG(),UX=Sm({brush:RW,cartesianAxis:FH,chartData:QF,errorBars:rK,eventSettings:VX,graphicalItems:hV,layout:t_,legend:Wy,options:HF,polarAxis:tz,polarOptions:uX,referenceElements:qW,renderedTicks:DG,rootProps:aX,tooltip:mN,zIndex:uF}),WX=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:`Chart`;return Zh({reducer:UX,preloadedState:e,middleware:e=>e({serializableCheck:!1,immutableCheck:![`commonjs`,`es6`,`production`].includes(`es6`)}).concat([JY.middleware,XY.middleware,hX.middleware,CX.middleware,MX.middleware]),enhancers:e=>{var t=e;return typeof e==`function`&&(t=e()),t.concat(ug({type:`raf`}))},devTools:Hb.devToolsEnabled&&{serialize:{replacer:tX},name:`recharts-${t}`}})}}));function KX(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=nv(),a=(0,JX.useRef)(null);if(i)return n;a.current??=WX(t,r);var o=zp;return qX.createElement(ib,{context:o,store:a.current},n)}var qX,JX,YX=o((()=>{qX=u(f()),JX=u(f()),ab(),GX(),rv(),Bp()}));function XX(e){var{layout:t,margin:n}=e,r=Wp(),i=nv();return(0,ZX.useEffect)(()=>{i||(r(Qg(t)),r(Zg(n)))},[r,i,t,n]),null}var ZX,QX,$X=o((()=>{ZX=u(f()),rv(),n_(),Jp(),lb(),QX=(0,ZX.memo)(XX,sb)}));function eZ(e){var t=Wp();return(0,tZ.useEffect)(()=>{t(oX(e))},[t,e]),null}var tZ,nZ=o((()=>{tZ=u(f()),sX(),Jp()})),rZ,iZ,aZ,oZ=o((()=>{rZ=u(f()),Jp(),HX(),lb(),iZ=e=>{var t=Wp();return(0,rZ.useEffect)(()=>{t(BX(e))},[t,e]),null},aZ=(0,rZ.memo)(iZ,sb)}));function sZ(e){var{zIndex:t,isPanorama:n}=e,r=(0,uZ.useRef)(null),i=Wp();return(0,uZ.useLayoutEffect)(()=>(r.current&&i(cF({zIndex:t,element:r.current,isPanorama:n})),()=>{i(lF({zIndex:t,isPanorama:n}))}),[i,t,n]),lZ.createElement(`g`,{tabIndex:-1,ref:r,className:`recharts-zIndex-layer_${t}`})}function cZ(e){var{children:t,isPanorama:n}=e,r=q($P);if(!r||r.length===0)return t;var i=r.filter(e=>e<0),a=r.filter(e=>e>0);return lZ.createElement(lZ.Fragment,null,i.map(e=>lZ.createElement(sZ,{key:e,zIndex:e,isPanorama:n})),t,a.map(e=>lZ.createElement(sZ,{key:e,zIndex:e,isPanorama:n})))}var lZ,uZ,dZ=o((()=>{lZ=u(f()),uZ=u(f()),Jp(),dF(),eF()}));function fZ(e,t){if(e==null)return{};var n,r,i=pZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function pZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function mZ(){return mZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mZ.apply(null,arguments)}var hZ,gZ,_Z,vZ,yZ,bZ,xZ,SZ=o((()=>{hZ=u(f()),gZ=u(f()),Wv(),Qb(),rv(),vu(),Jp(),ov(),o_(),dZ(),_Z=[`children`],vZ={width:`100%`,height:`100%`,display:`block`},yZ=(0,gZ.forwardRef)((e,t)=>{var n=Pv(),r=Fv(),i=Zb();if(!a_(n)||!a_(r))return null;var{children:a,otherAttributes:o,title:s,desc:c}=e,l,u;return o!=null&&(l=typeof o.tabIndex==`number`?o.tabIndex:i?0:void 0,u=typeof o.role==`string`?o.role:i?`application`:void 0),hZ.createElement(_u,mZ({},o,{title:s,desc:c,role:u,tabIndex:l,width:n,height:r,style:vZ,ref:t}),a)}),bZ=e=>{var{children:t}=e,n=q(av);if(!n)return null;var{width:r,height:i,y:a,x:o}=n;return hZ.createElement(_u,{width:r,height:i,x:o,y:a},t)},xZ=(0,gZ.forwardRef)((e,t)=>{var{children:n}=e,r=fZ(e,_Z);return nv()?hZ.createElement(bZ,null,hZ.createElement(cZ,{isPanorama:!0},n)):hZ.createElement(yZ,mZ({ref:t},r),hZ.createElement(cZ,{isPanorama:!1},n))})}));function CZ(){var e=Wp(),[t,n]=(0,wZ.useState)(null),r=q(L_);return(0,wZ.useEffect)(()=>{if(t!=null){var n=t.getBoundingClientRect().width/t.offsetWidth;Y(n)&&n!==r&&e(e_(n))}},[t,e,r]),n}var wZ,TZ=o((()=>{wZ=u(f()),Jp(),z_(),n_(),o_()}));function EZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function DZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?EZ(Object(n),!0).forEach(function(t){OZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function OZ(e,t,n){return(t=kZ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kZ(e){var t=AZ(e,`string`);return typeof t==`symbol`?t:t+``}function AZ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function jZ(){return jZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jZ.apply(null,arguments)}function MZ(e){if(typeof e==`number`)return e;if(typeof e==`string`){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}function NZ(e){return e?LZ:BZ}var PZ,FZ,IZ,LZ,RZ,zZ,BZ,VZ,HZ=o((()=>{PZ=u(f()),FZ=u(f()),Xl(),hN(),Jp(),eX(),pI(),yX(),TZ(),DX(),LX(),jF(),Ou(),Wv(),Ov(),IZ=()=>(lI(),null),LZ=(0,FZ.forwardRef)((e,t)=>{var n=(0,FZ.useRef)(null),[r,i]=(0,FZ.useState)({containerWidth:MZ(e.style?.width),containerHeight:MZ(e.style?.height)}),a=(0,FZ.useCallback)((e,t)=>{i(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),o=(0,FZ.useCallback)(e=>{if(typeof t==`function`&&t(e),n.current!=null&&(n.current.disconnect(),n.current=null),e!=null&&typeof ResizeObserver<`u`){var{width:r,height:i}=e.getBoundingClientRect();a(r,i);var o=new ResizeObserver(e=>{var t=e[0];if(t!=null){var{width:n,height:r}=t.contentRect;a(n,r)}});o.observe(e),n.current=o}},[t,a]);return(0,FZ.useEffect)(()=>()=>{n.current?.disconnect()},[a]),PZ.createElement(PZ.Fragment,null,PZ.createElement(Hv,{width:r.containerWidth,height:r.containerHeight}),PZ.createElement(`div`,jZ({ref:o},e)))}),RZ=(0,FZ.forwardRef)((e,t)=>{var{width:n,height:r}=e,[i,a]=(0,FZ.useState)({containerWidth:MZ(n),containerHeight:MZ(r)}),o=(0,FZ.useCallback)((e,t)=>{a(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]),s=(0,FZ.useCallback)(e=>{if(typeof t==`function`&&t(e),e!=null){var{width:n,height:r}=e.getBoundingClientRect();o(n,r)}},[t,o]);return PZ.createElement(PZ.Fragment,null,PZ.createElement(Hv,{width:i.containerWidth,height:i.containerHeight}),PZ.createElement(`div`,jZ({ref:s},e)))}),zZ=(0,FZ.forwardRef)((e,t)=>{var{width:n,height:r}=e;return PZ.createElement(PZ.Fragment,null,PZ.createElement(Hv,{width:n,height:r}),PZ.createElement(`div`,jZ({ref:t},e)))}),BZ=(0,FZ.forwardRef)((e,t)=>{var{width:n,height:r}=e;return typeof n==`string`||typeof r==`string`?PZ.createElement(RZ,jZ({},e,{ref:t})):typeof n==`number`&&typeof r==`number`?PZ.createElement(zZ,jZ({},e,{width:n,height:r,ref:t})):PZ.createElement(PZ.Fragment,null,PZ.createElement(Hv,{width:n,height:r}),PZ.createElement(`div`,jZ({ref:t},e)))}),VZ=(0,FZ.forwardRef)((e,t)=>{var{children:n,className:r,height:i,onClick:a,onContextMenu:o,onDoubleClick:s,onMouseDown:c,onMouseEnter:l,onMouseLeave:u,onMouseMove:d,onMouseUp:f,onTouchEnd:p,onTouchMove:m,onTouchStart:h,style:g,width:_,responsive:v,dispatchTouchEvents:y=!0}=e,b=(0,FZ.useRef)(null),x=Wp(),[S,C]=(0,FZ.useState)(null),[w,T]=(0,FZ.useState)(null),E=CZ(),D=Tv(),O=D?.width>0?D.width:_,k=D?.height>0?D.height:i,A=(0,FZ.useCallback)(e=>{E(e),typeof t==`function`&&t(e),C(e),T(e),e!=null&&(b.current=e)},[E,t,C,T]),j=(0,FZ.useCallback)(e=>{x(qY(e)),x(SX({handler:a,reactEvent:e}))},[x,a]),M=(0,FZ.useCallback)(e=>{x(YY(e)),x(SX({handler:l,reactEvent:e}))},[x,l]),N=(0,FZ.useCallback)(e=>{x(cN()),x(SX({handler:u,reactEvent:e}))},[x,u]),ee=(0,FZ.useCallback)(e=>{x(YY(e)),x(SX({handler:d,reactEvent:e}))},[x,d]),te=(0,FZ.useCallback)(()=>{x(pX())},[x]),ne=(0,FZ.useCallback)(()=>{x(mX())},[x]),re=(0,FZ.useCallback)(e=>{x(fX(e.key))},[x]),ie=(0,FZ.useCallback)(e=>{x(SX({handler:o,reactEvent:e}))},[x,o]),ae=(0,FZ.useCallback)(e=>{x(SX({handler:s,reactEvent:e}))},[x,s]),oe=(0,FZ.useCallback)(e=>{x(SX({handler:c,reactEvent:e}))},[x,c]),se=(0,FZ.useCallback)(e=>{x(SX({handler:f,reactEvent:e}))},[x,f]),ce=(0,FZ.useCallback)(e=>{x(SX({handler:h,reactEvent:e}))},[x,h]),P=(0,FZ.useCallback)(e=>{y&&x(jX(e)),x(SX({handler:m,reactEvent:e}))},[x,y,m]),le=(0,FZ.useCallback)(e=>{x(SX({handler:p,reactEvent:e}))},[x,p]),ue=NZ(v);return PZ.createElement(kF.Provider,{value:S},PZ.createElement(Eu.Provider,{value:w},PZ.createElement(ue,{width:O??g?.width,height:k??g?.height,className:H(`recharts-wrapper`,r),style:DZ({position:`relative`,cursor:`default`,width:O,height:k},g),onClick:j,onContextMenu:ie,onDoubleClick:ae,onFocus:te,onBlur:ne,onKeyDown:re,onMouseDown:oe,onMouseEnter:M,onMouseLeave:N,onMouseMove:ee,onMouseUp:se,onTouchEnd:le,onTouchMove:P,onTouchStart:ce,ref:A},PZ.createElement(IZ,null),n)))})}));function UZ(e,t){if(e==null)return{};var n,r,i=WZ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function WZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var GZ,KZ,qZ,JZ,YZ=o((()=>{GZ=u(f()),KZ=u(f()),SZ(),HZ(),eG(),ou(),Wv(),qZ=[`width`,`height`,`responsive`,`children`,`className`,`style`,`compact`,`title`,`desc`],JZ=(0,KZ.forwardRef)((e,t)=>{var{width:n,height:r,responsive:i,children:a,className:o,style:s,compact:c,title:l,desc:u}=e,d=nu(UZ(e,qZ));return c?GZ.createElement(GZ.Fragment,null,GZ.createElement(Hv,{width:n,height:r}),GZ.createElement(xZ,{otherAttributes:d,title:l,desc:u},a)):GZ.createElement(VZ,{className:o,style:s,width:n,height:r,responsive:i??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},GZ.createElement(xZ,{otherAttributes:d,title:l,desc:u,ref:t},GZ.createElement(QW,null,a)))})}));function XZ(){return XZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XZ.apply(null,arguments)}function ZZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function QZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZZ(Object(n),!0).forEach(function(t){$Z(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $Z(e,t,n){return(t=eQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eQ(e){var t=tQ(e,`string`);return typeof t==`symbol`?t:t+``}function tQ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var nQ,rQ,iQ,aQ,oQ,sQ=o((()=>{nQ=u(f()),rQ=u(f()),YX(),FW(),$X(),nZ(),oZ(),YZ(),ap(),HX(),iQ={top:5,right:5,bottom:5,left:5},aQ=QZ({accessibilityLayer:!0,barCategoryGap:`10%`,barGap:4,layout:`horizontal`,margin:iQ,responsive:!1,reverseStackOrder:!1,stackOffset:`none`,syncMethod:`index`},RX),oQ=(0,rQ.forwardRef)(function(e,t){var n=ip(e.categoricalChartProps,aQ),{chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,categoricalChartProps:s}=e,c={chartName:r,defaultTooltipEventType:i,validateTooltipEventTypes:a,tooltipPayloadSearcher:o,eventEmitter:void 0};return nQ.createElement(KX,{preloadedState:{options:c},reduxStoreName:s.id??r},nQ.createElement(PW,{chartData:s.data}),nQ.createElement(QX,{layout:n.layout,margin:n.margin}),nQ.createElement(aZ,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),nQ.createElement(eZ,{baseValue:n.baseValue,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),nQ.createElement(JZ,XZ({},n,{ref:t})))})})),cQ,lQ,uQ,dQ,fQ=o((()=>{cQ=u(f()),lQ=u(f()),WF(),sQ(),uQ=[`axis`],dQ=(0,lQ.forwardRef)((e,t)=>cQ.createElement(oQ,{chartName:`LineChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:uQ,tooltipPayloadSearcher:BF,categoricalChartProps:e,ref:t}))}));function pQ(e){var t=Wp();return(0,mQ.useEffect)(()=>{t(lX(e))},[t,e]),null}var mQ,hQ=o((()=>{mQ=u(f()),Jp(),dX()}));function gQ(){return gQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gQ.apply(null,arguments)}function _Q(e,t){if(e==null)return{};var n,r,i=vQ(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vQ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function yQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yQ(Object(n),!0).forEach(function(t){xQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xQ(e,t,n){return(t=SQ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SQ(e){var t=CQ(e,`string`);return typeof t==`symbol`?t:t+``}function CQ(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var wQ,TQ,EQ,DQ,OQ,kQ,AQ=o((()=>{wQ=u(f()),TQ=u(f()),YX(),FW(),$X(),nZ(),oZ(),hQ(),YZ(),ap(),HX(),EQ=[`layout`],DQ={top:5,right:5,bottom:5,left:5},OQ=bQ({accessibilityLayer:!0,stackOffset:`none`,barCategoryGap:`10%`,barGap:4,margin:DQ,reverseStackOrder:!1,syncMethod:`index`,layout:`radial`,responsive:!1,cx:`50%`,cy:`50%`,innerRadius:0,outerRadius:`80%`},RX),kQ=(0,wQ.forwardRef)(function(e,t){var n=ip(e.categoricalChartProps,OQ),{layout:r}=n,i=_Q(n,EQ),{chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c}=e,l={chartName:a,defaultTooltipEventType:o,validateTooltipEventTypes:s,tooltipPayloadSearcher:c,eventEmitter:void 0};return TQ.createElement(KX,{preloadedState:{options:l},reduxStoreName:n.id??a},TQ.createElement(PW,{chartData:n.data}),TQ.createElement(QX,{layout:r,margin:n.margin}),TQ.createElement(aZ,{throttleDelay:n.throttleDelay,throttledEvents:n.throttledEvents}),TQ.createElement(eZ,{baseValue:void 0,accessibilityLayer:n.accessibilityLayer,barCategoryGap:n.barCategoryGap,maxBarSize:n.maxBarSize,stackOffset:n.stackOffset,barGap:n.barGap,barSize:n.barSize,syncId:n.syncId,syncMethod:n.syncMethod,className:n.className,reverseStackOrder:n.reverseStackOrder}),TQ.createElement(pQ,{cx:n.cx,cy:n.cy,startAngle:n.startAngle,endAngle:n.endAngle,innerRadius:n.innerRadius,outerRadius:n.outerRadius}),TQ.createElement(JZ,gQ({},i,{ref:t})))})}));function jQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jQ(Object(n),!0).forEach(function(t){NQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NQ(e,t,n){return(t=Sde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sde(e){var t=Cde(e,`string`);return typeof t==`symbol`?t:t+``}function Cde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var PQ,FQ,IQ,LQ,RQ,wde=o((()=>{PQ=u(f()),FQ=u(f()),WF(),AQ(),ap(),IQ=[`item`],LQ=MQ(MQ({},OQ),{},{layout:`centric`,startAngle:0,endAngle:360}),RQ=(0,FQ.forwardRef)((e,t)=>{var n=ip(e,LQ);return PQ.createElement(kQ,{chartName:`PieChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:IQ,tooltipPayloadSearcher:BF,categoricalChartProps:n,ref:t})})})),Tde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){return typeof Buffer<`u`&&Buffer.isBuffer(e)}e.isBuffer=t})),Ede=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});function t(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}e.isPrototype=t})),Dde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ep();function n(e){return t.isTypedArray(e)}e.isTypedArray=n})),Ode=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=tC();function n(e){let n=t.toFinite(e),r=n%1;return r?n-r:n}e.toInteger=n})),kde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Ode();function n(e,n){if(e=t.toInteger(e),e<1||!Number.isSafeInteger(e))return[];let r=Array(e);for(let t=0;t<e;t++)r[t]=typeof n==`function`?n(t):t;return r}e.times=n})),Ade=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Tde(),n=Ede(),r=vp(),i=Dde(),a=kde();function o(e){if(e==null)return[];switch(typeof e){case`object`:case`function`:return r.isArrayLike(e)?l(e):n.isPrototype(e)?c(e):s(e);default:return s(Object(e))}}function s(e){let t=[];for(let n in e)t.push(n);return t}function c(e){return s(e).filter(e=>e!==`constructor`)}function l(e){let n=a.times(e.length,e=>`${e}`),r=new Set(n);t.isBuffer(e)&&(r.add(`offset`),r.add(`parent`)),i.isTypedArray(e)&&(r.add(`buffer`),r.add(`byteLength`),r.add(`byteOffset`));let o=s(e).filter(e=>!r.has(e));return Array.isArray(e)?[...n,...o]:[...n.filter(t=>Object.hasOwn(e,t)),...o]}e.keysIn=o})),jde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=gf(),n=ff(),r=pf(),i=mf(),a=hf();function o(e,t){if(e==null)return!0;switch(typeof t){case`symbol`:case`number`:case`object`:if(Array.isArray(t))return s(e,t);if(typeof t==`number`?t=i.toKey(t):typeof t==`object`&&(t=Object.is(t?.valueOf(),-0)?`-0`:String(t)),n.isUnsafeProperty(t))return!1;if(e?.[t]===void 0)return!0;try{return delete e[t],!0}catch{return!1}case`string`:if(e?.[t]===void 0&&r.isDeepKey(t))return s(e,a.toPath(t));if(n.isUnsafeProperty(t))return!1;try{return delete e[t],!0}catch{return!1}}}function s(e,r){let i=r.length===1?e:t.get(e,r.slice(0,-1)),a=r[r.length-1];if(i?.[a]===void 0)return!0;if(n.isUnsafeProperty(a))return!1;try{return delete i[a],!0}catch{return!1}}e.unset=o})),Mde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Cp();function n(e){let n=[];for(;e;)n.push(...t.getSymbols(e)),e=Object.getPrototypeOf(e);return n}e.getSymbolsIn=n})),Nde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=vp();function n(e,n=1){let r=[],i=Math.floor(n);if(!t.isArrayLike(e))return r;let a=(e,t)=>{for(let n=0;n<e.length;n++){let o=e[n];t<i&&(Array.isArray(o)||o?.[Symbol.isConcatSpreadable]||typeof o==`object`&&o&&Object.prototype.toString.call(o)===`[object Arguments]`)?a(Array.isArray(o)?o:Array.from(o),t+1):r.push(o)}};return a(Array.from(e),0),r}e.flatten=n})),Pde=s((e=>{Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Op(),n=Ade(),r=jde(),i=Mde(),a=pf(),o=Nde(),s=lB();function c(e,...t){if(e==null)return{};t=o.flatten(t);let n=l(e,t);for(let e=0;e<t.length;e++){let i=t[e];switch(typeof i){case`object`:Array.isArray(i)||(i=Array.from(i));for(let e=0;e<i.length;e++){let t=i[e];r.unset(n,t)}break;case`string`:case`symbol`:case`number`:r.unset(n,i);break}}return n}function l(e,t){return t.some(e=>Array.isArray(e)||a.isDeepKey(e))?d(e):u(e)}function u(e){let t={},r=[...n.keysIn(e),...i.getSymbolsIn(e)];for(let n=0;n<r.length;n++){let i=r[n];t[i]=e[i]}return t}function d(e){let r={},a=[...n.keysIn(e),...i.getSymbolsIn(e)];for(let n=0;n<a.length;n++){let i=a[n];r[i]=t.cloneDeepWith(e[i],e=>{if(!s.isPlainObject(e))return e})}return r}e.omit=c})),zQ=s(((e,t)=>{t.exports=Pde().omit}));function Fde(e,t){if(e==null)return{};var n,r,i=Ide(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ide(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function BQ(){return BQ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BQ.apply(null,arguments)}function VQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function HQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?VQ(Object(n),!0).forEach(function(t){UQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function UQ(e,t,n){return(t=Lde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lde(e){var t=Rde(e,`string`);return typeof t==`symbol`?t:t+``}function Rde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function zde(e){return typeof e==`object`&&!!e&&`x`in e&&`y`in e&&`width`in e&&`height`in e&&typeof e.x==`number`&&typeof e.y==`number`&&typeof e.width==`number`&&typeof e.height==`number`}function Bde(e){var{content:t,nodeProps:n,type:r,colorPanel:i,onMouseEnter:a,onMouseLeave:o,onClick:s}=e;if(WQ.isValidElement(t))return WQ.createElement(U,{onMouseEnter:a,onMouseLeave:o,onClick:s},WQ.cloneElement(t,n));if(typeof t==`function`)return WQ.createElement(U,{onMouseEnter:a,onMouseLeave:o,onClick:s},t(n));var{x:c,y:l,width:u,height:d,index:f}=n,p=null;u>10&&d>10&&n.children&&r===`nest`&&(p=WQ.createElement(oR,{points:[{x:c+2,y:l+d/2},{x:c+6,y:l+d/2+3},{x:c+2,y:l+d/2+6}]}));var m=null,h=jI(n.name);u>20&&d>20&&h.width<u&&h.height<d&&(m=WQ.createElement(`text`,{x:c+8,y:l+d/2+7,fontSize:14},n.name));var g=i||U_;return WQ.createElement(`g`,null,WQ.createElement(OS,BQ({fill:n.depth<2?g[f%g.length]:`rgba(255,255,255,0)`,stroke:`#fff`},(0,KQ.default)(n,[`children`]),{onMouseEnter:a,onMouseLeave:o,onClick:s,"data-recharts-item-index":n.tooltipIndex})),p,m)}function Vde(e){var t=Wp(),n={x:e.nodeProps.x+e.nodeProps.width/2,y:e.nodeProps.y+e.nodeProps.height/2};return WQ.createElement(Bde,BQ({},e,{onMouseEnter:()=>{t(oN({activeIndex:e.nodeProps.tooltipIndex,activeDataKey:e.dataKey,activeCoordinate:n,activeGraphicalItemId:e.id}))},onMouseLeave:()=>{},onClick:()=>{t(lN({activeIndex:e.nodeProps.tooltipIndex,activeDataKey:e.dataKey,activeCoordinate:n,activeGraphicalItemId:e.id}))}}))}function Hde(e){var{content:t,nodeProps:n,isLeaf:r,treemapProps:i,onNestClick:a}=e,{id:o,isAnimationActive:s,animationBegin:c,animationDuration:l,animationEasing:u,isUpdateAnimationActive:d,type:f,colorPanel:p,dataKey:m,onAnimationStart:h,onAnimationEnd:g,onMouseEnter:_,onClick:v,onMouseLeave:y}=i,{width:b,height:x,x:S,y:C}=n,w=-S-b,T=0,E=e=>{(r||f===`nest`)&&typeof _==`function`&&_(n,e)},D=e=>{(r||f===`nest`)&&typeof y==`function`&&y(n,e)},O=()=>{f===`nest`&&a(n),(r||f===`nest`)&&typeof v==`function`&&v(n)},k=(0,GQ.useCallback)(()=>{typeof g==`function`&&g()},[g]),A=(0,GQ.useCallback)(()=>{typeof h==`function`&&h()},[h]);return WQ.createElement(LY,{animationId:`treemap-${n.tooltipIndex}`,from:`translate(${w}px, ${T}px)`,to:`translate(0, 0)`,attributeName:`transform`,begin:c,easing:u,isActive:s,duration:l,onAnimationStart:A,onAnimationEnd:k},e=>WQ.createElement(U,{onMouseEnter:E,onMouseLeave:D,onClick:O,style:HQ(HQ({},e),{},{transformOrigin:`${S} ${C}`})},WQ.createElement(Vde,{id:o,content:t,dataKey:m,nodeProps:HQ(HQ({},n),{},{isAnimationActive:s,isUpdateAnimationActive:!d,width:b,height:x,x:S,y:C}),type:f,colorPanel:p})))}function Ude(e){var t=Wp(),n=Pv(),r=Fv();if(!a_(n)||!a_(r))return null;var{id:i}=e;return WQ.createElement(oV,{id:i,type:`treemap`},i=>WQ.createElement(d$,BQ({},e,{id:i,width:n,height:r,dispatch:t})))}function Wde(e){var t=ip(e,s$),{className:n,style:r,width:i,height:a,throttleDelay:o,throttledEvents:s}=t,[c,l]=(0,GQ.useState)(null);return WQ.createElement(KX,{preloadedState:{options:QQ},reduxStoreName:t.className??`Treemap`},WQ.createElement(Uv,{margin:u$}),WQ.createElement(aZ,{throttleDelay:o,throttledEvents:s}),WQ.createElement(VZ,{dispatchTouchEvents:!1,className:n,style:r,width:i,height:a,responsive:!1,ref:e=>{c==null&&e!=null&&l(e)},onMouseEnter:void 0,onMouseLeave:void 0,onClick:void 0,onMouseMove:void 0,onMouseDown:void 0,onMouseUp:void 0,onContextMenu:void 0,onDoubleClick:void 0,onTouchStart:void 0,onTouchMove:void 0,onTouchEnd:void 0},WQ.createElement(kF.Provider,{value:c},WQ.createElement(Ude,t))))}var WQ,GQ,KQ,qQ,JQ,YQ,XQ,ZQ,QQ,$Q,e$,t$,n$,r$,i$,a$,o$,s$,c$,l$,u$,d$,Gde=o((()=>{WQ=u(f()),GQ=u(f()),KQ=u(zQ()),qQ=u(_f()),wu(),vu(),sR(),kS(),P_(),K_(),K(),MI(),Wv(),jF(),HZ(),hN(),KB(),YX(),oZ(),Jp(),o_(),ou(),BY(),ap(),sV(),HX(),JQ=[`width`,`height`,`className`,`style`,`children`,`type`],YQ=`value`,XQ=(e,t)=>{if(!(!e||!t))return(0,qQ.default)(e,t)},ZQ=function(e){return`${arguments.length>1&&arguments[1]!==void 0?arguments[1]:``}children[${e}]`},QQ={chartName:`Treemap`,defaultTooltipEventType:`item`,validateTooltipEventTypes:[`item`],tooltipPayloadSearcher:XQ,eventEmitter:void 0},$Q=e=>{var{depth:t,node:n,index:r,dataKey:i,nameKey:a,nestedActiveTooltipIndex:o}=e,s=t===0?``:ZQ(r,o),{children:c}=n,l=t+1,u=c&&c.length?c.map((e,t)=>$Q({depth:l,node:e,index:t,dataKey:i,nameKey:a,nestedActiveTooltipIndex:s})):null,d;if(u&&u.length)d=u.reduce((e,t)=>e+t.value,0);else{var f=n[i],p=typeof f==`number`?f:0;d=Df(p)||p<=0?0:p}return HQ(HQ({},n),{},{children:u,name:X(n,a,``),[YQ]:d,depth:t,index:r,tooltipIndex:s})},e$=e=>({x:e.x,y:e.y,width:e.width,height:e.height}),t$=(e,t)=>{var n=t<0?0:t;return e.map(e=>{var t=e[YQ]*n;return HQ(HQ({},e),{},{area:Df(t)||t<=0?0:t})})},n$=(e,t,n)=>{var r=t*t,i=e.area*e.area,{min:a,max:o}=e.reduce((e,t)=>({min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}),{min:1/0,max:0});return i?Math.max(r*o*n/i,i/(r*a*n)):1/0},r$=(e,t,n,r)=>{var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var a=n.x,o,s=0,c=e.length;s<c;s++)o=e[s],o!=null&&(o.x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width);return o!=null&&(o.width+=n.x+n.width-a),HQ(HQ({},n),{},{y:n.y+i,height:n.height-i})},i$=(e,t,n,r)=>{var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var a=n.y,o,s=0,c=e.length;s<c;s++)o=e[s],o!=null&&(o.x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height);return o&&(o.height+=n.y+n.height-a),HQ(HQ({},n),{},{x:n.x+i,width:n.width-i})},a$=(e,t,n,r)=>t===n.width?r$(e,t,n,r):i$(e,t,n,r),o$=(e,t)=>{var{children:n}=e;if(n&&n.length){var r=e$(e),i=[],a=1/0,o,s,c=Math.min(r.width,r.height),l=t$(n,r.width*r.height/e[YQ]),u=l.slice();for(i.area=0;u.length>0;)[o]=u,o!=null&&(i.push(o),i.area+=o.area,s=n$(i,c,t),s<=a?(u.shift(),a=s):(i.area-=i.pop()?.area??0,r=a$(i,c,r,!1),c=Math.min(r.width,r.height),i.length=i.area=0,a=1/0));return i.length&&=(r=a$(i,c,r,!0),i.area=0),HQ(HQ({},e),{},{children:l.map(e=>o$(e,t))})}return e},s$=HQ({aspectRatio:.5*(1+Math.sqrt(5)),dataKey:`value`,nameKey:`name`,type:`flat`,isAnimationActive:`auto`,isUpdateAnimationActive:`auto`,animationBegin:0,animationDuration:1500,animationEasing:`linear`},RX),c$={isAnimationFinished:!1,formatRoot:null,currentRoot:void 0,nestIndex:[],prevAspectRatio:s$.aspectRatio,prevDataKey:s$.dataKey},l$=WQ.memo(e=>{var{dataKey:t,nameKey:n,stroke:r,fill:i,currentRoot:a,id:o}=e,s={dataDefinedOnItem:a,getPosition:wf,settings:{stroke:r,strokeWidth:void 0,fill:i,dataKey:t,nameKey:n,name:void 0,hide:!1,type:void 0,color:i,unit:``,graphicalItemId:o}};return WQ.createElement(WB,{tooltipEntrySettings:s})}),u$={top:0,right:0,bottom:0,left:0},d$=class extends GQ.PureComponent{constructor(){super(...arguments),UQ(this,`state`,HQ({},c$)),UQ(this,`handleClick`,e=>{var{onClick:t,type:n}=this.props;if(n===`nest`&&e.children){var{width:r,height:i,dataKey:a,nameKey:o,aspectRatio:s}=this.props,c=$Q({depth:0,node:HQ(HQ({},e),{},{x:0,y:0,width:r,height:i}),index:0,dataKey:a,nameKey:o,nestedActiveTooltipIndex:e.tooltipIndex}),l=o$(c,s),{nestIndex:u}=this.state;u.push(e),this.setState({formatRoot:l,currentRoot:c,nestIndex:u})}t&&t(e)}),UQ(this,`handleTouchMove`,e=>{var t=e.touches[0];if(t!=null){var n=document.elementFromPoint(t.clientX,t.clientY);if(!(!n||!n.getAttribute||this.state.formatRoot==null)){var r=n.getAttribute(`data-recharts-item-index`),i=XQ(this.state.formatRoot,r);if(zde(i)){var{dataKey:a,dispatch:o}=this.props;o(oN({activeIndex:r,activeDataKey:a,activeCoordinate:{x:i.x+i.width/2,y:i.y+i.height/2},activeGraphicalItemId:this.props.id}))}}}})}static getDerivedStateFromProps(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=$Q({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,dataKey:e.dataKey,nameKey:e.nameKey}),r=o$(n,e.aspectRatio);return HQ(HQ({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}handleNestIndex(e,t){var{nestIndex:n}=this.state,{width:r,height:i,dataKey:a,nameKey:o,aspectRatio:s}=this.props,c=o$($Q({depth:0,node:HQ(HQ({},e),{},{x:0,y:0,width:r,height:i}),index:0,dataKey:a,nameKey:o,nestedActiveTooltipIndex:e.tooltipIndex}),s);n=n.slice(0,t+1),this.setState({formatRoot:c,currentRoot:e,nestIndex:n})}renderNode(e,t){var{content:n,type:r}=this.props,i=HQ(HQ(HQ({},nu(this.props)),t),{},{root:e}),a=!t.children||!t.children.length,{currentRoot:o}=this.state;return!(o?.children||[]).filter(e=>e.depth===t.depth&&e.name===t.name).length&&e.depth&&r===`nest`?null:WQ.createElement(U,{key:`recharts-treemap-node-${i.x}-${i.y}-${i.name}`,className:`recharts-treemap-depth-${t.depth}`},WQ.createElement(Hde,{isLeaf:a,content:n,nodeProps:i,treemapProps:this.props,onNestClick:this.handleClick}),t.children&&t.children.length?t.children.map(e=>this.renderNode(t,e)):null)}renderAllNodes(){var{formatRoot:e}=this.state;return e?this.renderNode(e,e):null}renderNestIndex(){var{nameKey:e,nestIndexContent:t}=this.props,{nestIndex:n}=this.state;return WQ.createElement(`div`,{className:`recharts-treemap-nest-index-wrapper`,style:{marginTop:`8px`,textAlign:`center`}},n.map((n,r)=>{var i=(0,qQ.default)(n,e,`root`),a=typeof i==`string`?i:`root`,o;return WQ.isValidElement(t)&&(o=WQ.cloneElement(t,n,r)),o=typeof t==`function`?t(n,r):a,WQ.createElement(`div`,{onClick:this.handleNestIndex.bind(this,n,r),key:`nest-index-${jf()}`,className:`recharts-treemap-nest-index-box`,style:{cursor:`pointer`,display:`inline-block`,padding:`0 7px`,background:`#000`,color:`#fff`,marginRight:`3px`}},o)}))}render(){var e=this.props,{width:t,height:n,className:r,style:i,children:a,type:o}=e,s=nu(Fde(e,JQ));return WQ.createElement(WQ.Fragment,null,WQ.createElement(l$,{dataKey:this.props.dataKey,nameKey:this.props.nameKey,stroke:this.props.stroke,fill:this.props.fill,currentRoot:this.state.currentRoot,id:this.props.id}),WQ.createElement(_u,BQ({},s,{width:t,height:o===`nest`?n-30:n,onTouchMove:this.handleTouchMove}),this.renderAllNodes(),a),o===`nest`&&this.renderNestIndex())}},UQ(d$,`displayName`,`Treemap`)}));function f$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?f$(Object(n),!0).forEach(function(t){Kde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Kde(e,t,n){return(t=qde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qde(e){var t=Jde(e,`string`);return typeof t==`symbol`?t:t+``}function Jde(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var m$,h$,g$,_$,v$,Yde=o((()=>{m$=u(f()),h$=u(f()),WF(),ap(),AQ(),g$=[`axis`],_$=p$(p$({},OQ),{},{layout:`centric`,startAngle:90,endAngle:-270}),v$=(0,h$.forwardRef)((e,t)=>{var n=ip(e,_$);return m$.createElement(kQ,{chartName:`RadarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:g$,tooltipPayloadSearcher:BF,categoricalChartProps:n,ref:t})})})),y$,b$,x$,S$,Xde=o((()=>{y$=u(f()),b$=u(f()),WF(),sQ(),x$=[`item`],S$=(0,b$.forwardRef)((e,t)=>y$.createElement(oQ,{chartName:`ScatterChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:x$,tooltipPayloadSearcher:BF,categoricalChartProps:e,ref:t}))}));function C$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?C$(Object(n),!0).forEach(function(t){Zde(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Zde(e,t,n){return(t=Qde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qde(e){var t=$de(e,`string`);return typeof t==`symbol`?t:t+``}function $de(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var T$,E$,D$,O$,k$,efe=o((()=>{T$=u(f()),E$=u(f()),WF(),ap(),AQ(),D$=[`axis`,`item`],O$=w$(w$({},OQ),{},{layout:`radial`,startAngle:0,endAngle:360}),k$=(0,E$.forwardRef)((e,t)=>{var n=ip(e,O$);return T$.createElement(kQ,{chartName:`RadialBarChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:D$,tooltipPayloadSearcher:BF,categoricalChartProps:n,ref:t})})})),A$,j$,M$,N$,tfe=o((()=>{A$=u(f()),j$=u(f()),WF(),sQ(),M$=[`axis`],N$=(0,j$.forwardRef)((e,t)=>A$.createElement(oQ,{chartName:`ComposedChart`,defaultTooltipEventType:`axis`,validateTooltipEventTypes:M$,tooltipPayloadSearcher:BF,categoricalChartProps:e,ref:t}))}));function P$(){return P$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P$.apply(null,arguments)}function nfe(e){return F$.createElement(PB,P$({shapeType:`trapezoid`},e))}var F$,rfe=o((()=>{F$=u(f()),zB()}));function I$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function L$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?I$(Object(n),!0).forEach(function(t){ife(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ife(e,t,n){return(t=afe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function afe(e){var t=ofe(e,`string`);return typeof t==`symbol`?t:t+``}function ofe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var R$,z$,sfe=o((()=>{rm(),t1(),$_(),lC(),R$=(e,t)=>t,z$=J([X_,R$,rC],(e,t,n)=>{var{data:r,dataKey:i,nameKey:a,tooltipType:o,lastShapeType:s,reversed:c,customWidth:l,cells:u,presentationProps:d,id:f}=t,{chartData:p}=n,m;if(r!=null&&r.length>0?m=r:p!=null&&p.length>0&&(m=p),m&&m.length)m=m.map((e,t)=>L$(L$(L$({payload:e},d),e),u&&u[t]&&u[t].props));else if(u&&u.length)m=u.map(e=>L$(L$({},d),e.props));else return[];return _fe({dataKey:i,nameKey:a,displayedData:m,tooltipType:o,lastShapeType:s,reversed:c,offset:e,customWidth:l,graphicalItemId:f})})}));function B$(){return B$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B$.apply(null,arguments)}function V$(e,t){if(e==null)return{};var n,r,i=cfe(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function cfe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function H$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function U$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?H$(Object(n),!0).forEach(function(t){lfe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function lfe(e,t,n){return(t=ufe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ufe(e){var t=dfe(e,`string`);return typeof t==`symbol`?t:t+``}function dfe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ffe(e){var{showLabels:t,trapezoids:n,children:r}=e,i=(0,G$.useMemo)(()=>{if(t)return n?.map(e=>{var t=e.labelViewBox;return U$(U$({},t),{},{value:e.name,payload:e.payload,parentViewBox:e.parentViewBox,viewBox:t,fill:e.fill})})},[t,n]);return W$.createElement(YL,{value:i},r)}function pfe(e){var{trapezoids:t,allOtherFunnelProps:n}=e,r=q(e=>BP(e,`item`,e.tooltip.settings.trigger,void 0)),{onMouseEnter:i,onClick:a,onMouseLeave:o,shape:s,activeShape:c}=n,l=V$(n,q$),u=BB(i,n.dataKey,n.id),d=VB(o),f=HB(a,n.dataKey,n.id);return W$.createElement(W$.Fragment,null,t.map((e,t)=>{var n=!!c&&r===String(t),i=n?c:s,a=U$(U$({},e),{},{option:i,isActive:n,stroke:e.stroke}),{id:o}=a,p=V$(a,J$);return W$.createElement(U,B$({key:`trapezoid-${e?.x}-${e?.y}-${e?.name}-${e?.value}`,className:`recharts-funnel-trapezoid`},ep(l,e,t),{onMouseEnter:u(e,t),onMouseLeave:d(e,t),onClick:f(e,t)}),W$.createElement(nfe,p))}))}function mfe(e){var{previousTrapezoidsRef:t,props:n}=e,{trapezoids:r,isAnimationActive:i,animationBegin:a,animationDuration:o,animationEasing:s,onAnimationEnd:c,onAnimationStart:l}=n,u=t.current,[d,f]=(0,G$.useState)(!1),p=!d,m=tS(r,`recharts-funnel-`),h=(0,G$.useCallback)(()=>{typeof c==`function`&&c(),f(!1)},[c]),g=(0,G$.useCallback)(()=>{typeof l==`function`&&l(),f(!0)},[l]);return W$.createElement(ffe,{showLabels:p,trapezoids:r},W$.createElement(Yx,{animationId:m,begin:a,duration:o,isActive:i,easing:s,key:m,onAnimationStart:g,onAnimationEnd:h},e=>{var i=e===1?r:r.map((t,n)=>{var r=u&&u[n];return r?U$(U$({},t),{},{x:W(r.x,t.x,e),y:W(r.y,t.y,e),upperWidth:W(r.upperWidth,t.upperWidth,e),lowerWidth:W(r.lowerWidth,t.lowerWidth,e),height:W(r.height,t.height,e)}):U$(U$({},t),{},{x:W(t.x+t.upperWidth/2,t.x,e),y:W(t.y+t.height/2,t.y,e),upperWidth:W(0,t.upperWidth,e),lowerWidth:W(0,t.lowerWidth,e),height:W(0,t.height,e)})});return e>0&&(t.current=i),W$.createElement(U,null,W$.createElement(pfe,{trapezoids:i,allOtherFunnelProps:n}))}),W$.createElement(HL,{label:n.label}),n.children)}function hfe(e){var t=(0,G$.useRef)(void 0);return W$.createElement(mfe,{props:e,previousTrapezoidsRef:t})}function gfe(e){var t=zH(),{stroke:n,fill:r,legendType:i,hide:a,isAnimationActive:o,animationBegin:s,animationDuration:c,animationEasing:l,nameKey:u,lastShapeType:d,id:f}=e,p=V$(e,Y$),m=nu(e),h=$z(e.children,SI),g=(0,G$.useMemo)(()=>({dataKey:e.dataKey,nameKey:u,data:e.data,tooltipType:e.tooltipType,lastShapeType:d,reversed:e.reversed,customWidth:e.width,cells:h,presentationProps:m,id:f}),[e.dataKey,u,e.data,e.tooltipType,d,e.reversed,e.width,h,m,f]),_=q(e=>z$(e,g));if(a||!_||!_.length||!t)return null;var{height:v,width:y}=t,b=H(`recharts-trapezoids`,e.className);return W$.createElement(W$.Fragment,null,W$.createElement(Z$,{dataKey:e.dataKey,nameKey:e.nameKey,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,data:e.data,trapezoids:_,id:f}),W$.createElement(U,{className:b},W$.createElement(hfe,B$({},p,{id:f,stroke:n,fill:r,nameKey:u,lastShapeType:d,animationBegin:s,animationDuration:c,animationEasing:l,isAnimationActive:o,hide:a,legendType:i,height:v,width:y,trapezoids:_}))))}function _fe(e){var{dataKey:t,nameKey:n,displayedData:r,tooltipType:i,lastShapeType:a,reversed:o,offset:s,customWidth:c,graphicalItemId:l}=e,{realHeight:u,realWidth:d,offsetX:f,offsetY:p}=Q$(c,s),m=r.map(e=>{var n=X(e,t,0);return typeof n==`number`?n:0}),h=Math.max.apply(null,m),g=r.length,_=u/g,v={x:s.left,y:s.top,width:s.width,height:s.height},y=r.map((e,o)=>{var s=X(e,t,0),c=String(X(e,n,o)),u=s,m;if(o!==g-1){var y=X(r[o+1],t,0);if(typeof y==`number`)m=y;else if(Array.isArray(y)){var[b,x]=y;typeof b==`number`&&(u=b),typeof x==`number`&&(m=x)}}else if(s instanceof Array&&s.length===2){var[S,C]=s;typeof S==`number`&&(u=S),typeof C==`number`&&(m=C)}else m=a===`rectangle`?u:0;var w=(h-u)*d/(2*h)+f,T=_*o+p,E=u/h*d,D=m/h*d,O=[{name:c,value:u,payload:e,dataKey:t,type:i,graphicalItemId:l}],k={x:w+E/2,y:T+_/2},A={x:w,y:T,upperWidth:E,lowerWidth:D,width:Math.max(E,D),height:_};return U$(U$(U$({},A),{},{name:c,val:u,tooltipPayload:O,tooltipPosition:k},typeof e==`object`&&e?(0,K$.default)(e,[`width`]):{}),{},{payload:e,parentViewBox:v,labelViewBox:A})});return o&&(y=y.map((e,t)=>{var n={x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*_+(g-1-t)*_,upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,width:Math.max(e.lowerWidth,e.upperWidth),height:_};return U$(U$(U$({},e),n),{},{tooltipPosition:U$(U$({},e.tooltipPosition),{},{y:e.y-t*_+(g-1-t)*_+_/2}),labelViewBox:n})})),y}function vfe(e){var t=ip(e,$$),{id:n}=t,r=V$(t,X$);return W$.createElement(oV,{id:n,type:`funnel`},e=>W$.createElement(gfe,B$({},r,{id:e})))}var W$,G$,K$,q$,J$,Y$,X$,Z$,Q$,$$,e1,t1=o((()=>{W$=u(f()),G$=u(f()),K$=u(zQ()),Xl(),ZP(),Jp(),wu(),QL(),K(),P_(),np(),rfe(),UB(),KB(),sfe(),cB(),CI(),ap(),VH(),ou(),eS(),rS(),sV(),q$=[`onMouseEnter`,`onClick`,`onMouseLeave`,`shape`,`activeShape`],J$=[`id`],Y$=[`stroke`,`fill`,`legendType`,`hide`,`isAnimationActive`,`animationBegin`,`animationDuration`,`animationEasing`,`nameKey`,`lastShapeType`,`id`],X$=[`id`],Z$=W$.memo(e=>{var{dataKey:t,nameKey:n,stroke:r,strokeWidth:i,fill:a,name:o,hide:s,tooltipType:c,data:l,trapezoids:u,id:d}=e,f={dataDefinedOnItem:l,getPosition:e=>u[Number(e)]?.tooltipPosition,settings:{stroke:r,strokeWidth:i,fill:a,dataKey:t,name:o,nameKey:n,hide:s,type:c,color:a,unit:``,graphicalItemId:d}};return W$.createElement(WB,{tooltipEntrySettings:f})}),Q$=(e,t)=>{var{width:n,height:r,left:i,top:a}=t;return{realWidth:Mf(e,n,n),realHeight:r,offsetX:i,offsetY:a}},$$={animationBegin:400,animationDuration:1500,animationEasing:`ease`,fill:`#808080`,hide:!1,isAnimationActive:`auto`,lastShapeType:`triangle`,legendType:`rect`,nameKey:`name`,reversed:!1,stroke:`#fff`},e1=vfe,e1.displayName=`Funnel`})),n1,r1,i1,a1,yfe=o((()=>{n1=u(f()),r1=u(f()),WF(),sQ(),i1=[`item`],a1=(0,r1.forwardRef)((e,t)=>n1.createElement(oQ,{chartName:`FunnelChart`,defaultTooltipEventType:`item`,validateTooltipEventTypes:i1,tooltipPayloadSearcher:BF,categoricalChartProps:e,ref:t}))})),o1=o((()=>{xne(),Zoe(),Ov(),CI(),QL(),Vse(),$se(),ace(),rH(),CU(),MW(),Cle(),tue(),HK(),yq(),_J(),GJ(),_Y(),IY(),fQ(),wde(),Gde(),Yde(),Xde(),efe(),tfe(),t1(),yfe()})),bfe=s((e=>{var t=f(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),s1=s(((e,t)=>{t.exports=bfe()}));function c1({size:e=`md`,className:t=``}){return(0,l1.jsx)(`div`,{className:`dc:animate-spin dc:rounded-full dc:border-b-2 ${u1[e]} ${t}`,style:{borderBottomColor:`var(--dc-primary)`},role:`status`,"aria-label":`Loading`})}var l1,u1,xfe=o((()=>{l1=s1(),u1={xs:`dc:h-3 dc:w-3`,sm:`dc:h-6 dc:w-6`,md:`dc:h-8 dc:w-8`,lg:`dc:h-12 dc:w-12`}}));function d1({children:e,height:t=`100%`}){let n=(0,f1.useRef)(null),[r,i]=(0,f1.useState)(!1),[a,o]=(0,f1.useState)({width:0,height:0}),s=(0,f1.useRef)({width:0,height:0}),c=(0,f1.useRef)(!1),l=(0,f1.useRef)(null),u=(0,f1.useRef)(null);(0,f1.useLayoutEffect)(()=>{let e=!0,t=null,r=()=>{if(u.current=null,!e)return;let t=l.current;if(l.current=null,!t)return;let n=Math.round(t.width),r=Math.round(t.height);if(n<=0||r<=0)return;let a=s.current.width!==n||s.current.height!==r,d=!c.current;!a&&!d||(s.current={width:n,height:r},c.current=!0,(0,f1.startTransition)(()=>{a&&o({width:n,height:r}),d&&i(!0)}))},a=(e,t)=>{l.current={width:e,height:t},u.current===null&&(u.current=requestAnimationFrame(r))};return t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&a(e,n)}}),n.current&&(t.observe(n.current),(()=>{if(!e||!n.current)return;let t=n.current.getBoundingClientRect(),r=Math.max(n.current.clientWidth,t.width),i=Math.max(n.current.clientHeight,t.height);r>0&&i>0&&a(r,i)})()),()=>{e=!1,u.current!==null&&(cancelAnimationFrame(u.current),u.current=null),t?.disconnect()}},[]);try{return t===`100%`?(0,p1.jsx)(`div`,{ref:n,className:`dc:w-full dc:h-full dc:flex-1 dc:flex dc:flex-col dc:relative`,style:{minHeight:`250px`,minWidth:`100px`,overflow:`hidden`,userSelect:`none`},children:r&&a.width>0&&a.height>0?(0,p1.jsx)(Dv,{width:a.width,height:a.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,p1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,p1.jsx)(c1,{size:`sm`})})}):(0,p1.jsx)(`div`,{ref:n,className:`dc:w-full dc:flex dc:flex-col dc:relative`,style:{height:typeof t==`number`?`${t}px`:t,width:`100%`,minHeight:`200px`,minWidth:`100px`,userSelect:`none`,overflow:`hidden`},children:r&&a.width>0&&a.height>0?(0,p1.jsx)(Dv,{width:a.width,height:a.height-16,debounce:100,style:{marginTop:`16px`},children:e}):(0,p1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,children:(0,p1.jsx)(c1,{size:`sm`})})})}catch(e){return(0,p1.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4 dc:text-center dc:border dc:border-dashed dc:rounded-lg`,style:{height:t,borderColor:`var(--dc-border)`,backgroundColor:`var(--dc-surface)`},children:[(0,p1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1 text-dc-text-muted`,children:`Unable to display chart`}),(0,p1.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:e instanceof Error?e.message:`Failed to create responsive container`})]})}}var f1,p1,m1=o((()=>{f1=u(f(),1),o1(),xfe(),p1=s1()}));function h1(e){return e!=null&&!isNaN(Number(e))}function g1(e){if(e==null)return null;let t=typeof e==`string`?parseFloat(e):Number(e);return isNaN(t)?null:t}function _1(e){if(e==null)return`No data`;let t=typeof e==`number`?e:parseFloat(e);return isNaN(t)?String(e):Number.isInteger(t)?t.toLocaleString():parseFloat(t.toFixed(2)).toLocaleString()}function v1(e,t,n){if(e==null)return`No data`;let r=typeof e==`number`?e:parseFloat(String(e));if(isNaN(r))return String(e);if(!isFinite(r))return r>0?`∞`:`-∞`;let i=n||(typeof navigator<`u`?navigator.language:`en-US`);if(!t)return _1(e);let{unit:a,abbreviate:o=!0,decimals:s,customPrefix:c,customSuffix:l}=t,u=r,d=``;if(o){let e=Math.abs(r);e>=1e9?(u=r/1e9,d=`B`):e>=1e6?(u=r/1e6,d=`M`):e>=1e3&&(u=r/1e3,d=`K`)}let f=s===void 0?Number.isInteger(u)?0:2:s;switch(a){case`currency`:{let e=Sfe(i);if(o&&d){let t=new Intl.NumberFormat(i,{style:`currency`,currency:e,minimumFractionDigits:f,maximumFractionDigits:f}).format(u),n=new Intl.NumberFormat(i,{style:`currency`,currency:e}).formatToParts(u);return n[n.length-1]?.type===`currency`?t.replace(/(\s*[^\d\s]+)$/,d+`$1`):t+d}return new Intl.NumberFormat(i,{style:`currency`,currency:e,minimumFractionDigits:f,maximumFractionDigits:f}).format(u)}case`percent`:{let e=Math.abs(u)<=1&&!o?u*100:u;return new Intl.NumberFormat(i,{minimumFractionDigits:f,maximumFractionDigits:f}).format(e)+d+`%`}case`custom`:{let e=c||``,t=l||``;return e+new Intl.NumberFormat(i,{minimumFractionDigits:f,maximumFractionDigits:f}).format(u)+d+t}default:return new Intl.NumberFormat(i,{minimumFractionDigits:f,maximumFractionDigits:f}).format(u)+d}}function Sfe(e){return{US:`USD`,CA:`CAD`,GB:`GBP`,UK:`GBP`,AU:`AUD`,NZ:`NZD`,EU:`EUR`,DE:`EUR`,FR:`EUR`,IT:`EUR`,ES:`EUR`,NL:`EUR`,BE:`EUR`,AT:`EUR`,IE:`EUR`,PT:`EUR`,FI:`EUR`,JP:`JPY`,CN:`CNY`,KR:`KRW`,IN:`INR`,BR:`BRL`,MX:`MXN`,CH:`CHF`,SE:`SEK`,NO:`NOK`,DK:`DKK`,PL:`PLN`,RU:`RUB`,ZA:`ZAR`,SG:`SGD`,HK:`HKD`,TW:`TWD`,TH:`THB`,MY:`MYR`,PH:`PHP`,ID:`IDR`,VN:`VND`,AE:`AED`,SA:`SAR`,IL:`ILS`,TR:`TRY`}[e.split(`-`)[1]?.toUpperCase()]||`USD`}function y1(e,t){if(!e)return`Unknown`;let n=String(e);if(n.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}:\d{2}/)){let e=n;n.includes(` `)&&(e=n.replace(` `,`T`).replace(`+00`,`Z`).replace(/\+\d{2}:\d{2}$/,`Z`)),!e.endsWith(`Z`)&&!e.includes(`+`)&&(e+=`Z`);let r=new Date(e);if(isNaN(r.getTime()))return n;let i=r.getUTCFullYear(),a=String(r.getUTCMonth()+1).padStart(2,`0`),o=String(r.getUTCDate()).padStart(2,`0`),s=r.getUTCHours(),c=r.getUTCMinutes();if(t)switch(t.toLowerCase()){case`year`:return`${i}`;case`quarter`:return`${i}-Q${Math.floor(r.getUTCMonth()/3)+1}`;case`month`:return`${i}-${a}`;case`week`:return`${i}-${a}-${o}`;case`day`:return`${i}-${a}-${o}`;case`hour`:return`${i}-${a}-${o} ${String(s).padStart(2,`0`)}:00`;case`minute`:return`${i}-${a}-${o} ${String(s).padStart(2,`0`)}:${String(c).padStart(2,`0`)}`;default:break}let l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return o===`01`&&s===0&&c===0&&l===0&&u===0?a===`01`||a===`04`||a===`07`||a===`10`?`${i}-Q${Math.floor(r.getUTCMonth()/3)+1}`:`${i}-${a}`:s===0&&c===0&&l===0&&u===0?`${i}-${a}-${o}`:c===0&&l===0&&u===0?`${i}-${a}-${o} ${String(s).padStart(2,`0`)}:00`:`${i}-${a}-${o} ${String(s).padStart(2,`0`)}:${String(c).padStart(2,`0`)}`}return n}function b1(e,t){try{if(e?.timeDimensions){let n=e.timeDimensions.find(e=>t===e.dimension||t.startsWith(e.dimension.replace(`.`,`_`))||t===`${e.dimension}_${e.granularity}`);if(n?.granularity)return n.granularity}let n=t.match(/_([a-z]+)$/);if(n){let e=n[1];if([`year`,`quarter`,`month`,`week`,`day`,`hour`,`minute`,`second`].includes(e))return e}return}catch{return}}function Cfe(e,t,n,r,i=e=>e){if(!e||e.length===0)return[];let a=b1(r,t);return e.map(e=>{let r={name:y1(e[t],a)||e[t]||`Unknown`};return n.forEach(t=>{let n=i(t);n===`__proto__`||n===`constructor`||n===`prototype`||(r[n]=g1(e[t]))}),r})}function x1(e,t,n,r,i,a=e=>e){if(!e||e.length===0)return{data:[],seriesKeys:[],hasDimensions:!1};let o=r||{},s=[...o.dimensions||[],...o.timeDimensions?.map(e=>e.dimension)||[]],c=o.measures||[],l=n.filter(e=>c.includes(e)),u=(i||[]).filter(e=>s.includes(e));if(u.length>0){let n={};return e.forEach(e=>{let i=b1(r,t),o=y1(e[t],i)||e[t]||`Unknown`;o===`__proto__`||o===`constructor`||o===`prototype`||(n[o]||(n[o]={name:String(o)}),l.forEach(t=>{let r=a(t);if(r===`__proto__`||r===`constructor`||r===`prototype`)return;let i=g1(e[t]);if(i!==null){let e=n[o][r];n[o][r]=e==null?i:e+i}else r in n[o]||(n[o][r]=null)}),u.forEach(t=>{let r=e[t];if(r!=null){let t=String(r),i=l[0]||c.find(e=>e.includes(`totalCost`)||e.includes(`count`)||e.includes(`sum`))||c[0];if(i){if(t===`__proto__`||t===`constructor`||t===`prototype`)return;let r=g1(e[i]);if(r!==null){let e=n[o][t];n[o][t]=e==null?r:e+r}else t in n[o]||(n[o][t]=null)}}}))}),{data:Object.values(n),seriesKeys:Array.from(new Set(e.flatMap(e=>u.map(t=>{let n=e[t];return n==null?null:String(n)}).filter(e=>e!==null)))),hasDimensions:!0}}return{data:Cfe(e,t,n,r,a),seriesKeys:n.map(e=>a(e)),hasDimensions:!1}}var S1=o((()=>{}));function C1({formatter:e,labelFormatter:t}){return(0,w1.jsx)(gI,{formatter:e||T1,labelFormatter:t,contentStyle:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)`,padding:`8px 12px`}})}var w1,T1,E1=o((()=>{f(),o1(),S1(),w1=s1(),T1=(e,t)=>e==null?[`No data`,t]:[_1(e),t]})),D1,O1,k1=o((()=>{f(),D1=s1(),O1=({x:e=0,y:t=0,payload:n,tickFormatter:r,index:i=0})=>{if(!n)return null;let a=r?r(n.value,i):String(n.value);return(0,D1.jsx)(`g`,{transform:`translate(${e},${t})`,children:(0,D1.jsx)(`text`,{x:0,y:0,dy:16,textAnchor:`end`,fill:`currentColor`,fontSize:12,transform:`rotate(-45)`,children:a})})}})),A1,j1,M1,N1,P1=o((()=>{A1=[`#3b82f6`,`#10b981`,`#f59e0b`,`#ef4444`,`#8b5cf6`,`#f97316`,`#06b6d4`,`#84cc16`],j1=[`#440154`,`#414487`,`#2a788e`,`#22a884`,`#7ad151`,`#fde725`],M1=`#10b981`,N1={top:5,right:30,left:20,bottom:5}}));function F1(e){if(!e||typeof e!=`string`)return[];let t=e.trim();if(!t)return[];try{let e=t.split(`,`).map(e=>e.trim()).filter(e=>e!==``).map(e=>{let t=parseFloat(e);if(isNaN(t))throw Error(`Invalid numeric value: ${e}`);return t});return e.length>0?e:[]}catch(e){return console.warn(`Failed to parse target values:`,e),[]}}function I1(e,t){if(e.length===0||t<=0)return[];if(e.length===1)return Array(t).fill(e[0]);let n=[],r=Math.floor(t/e.length),i=t%e.length,a=0;for(let t=0;t<e.length;t++){let o=r+(t<i?1:0);for(let r=0;r<o;r++)n[a++]=e[t]}return n}function wfe(e,t){return t===0?e===0?0:e>0?100:-100:(e-t)/t*100}function Tfe(e,t=1){return`${e>=0?`+`:``}${e.toFixed(t)}%`}var L1=o((()=>{}));function Efe(){let e=(0,R1.useContext)(z1);if(!e)throw Error(`useCubeMeta must be used within CubeMetaProvider`);return e}var R1,z1,B1=o((()=>{R1=u(f(),1),z1=(0,R1.createContext)(null)}));function V1(){let e=(0,H1.useContext)(z1);if(!e)throw Error(`useCubeFieldLabel must be used within CubeProvider`);return(0,H1.useMemo)(()=>e.getFieldLabel,[e.getFieldLabel])}var H1,U1=o((()=>{H1=u(f(),1),B1()})),W1,G1,K1,Dfe=o((()=>{W1=u(f(),1),o1(),m1(),E1(),k1(),P1(),S1(),L1(),U1(),G1=s1(),K1=W1.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let[c,l]=(0,W1.useState)(null),u=V1(),d=n?.stackType??(n?.stacked?`normal`:`none`),f=d!==`none`,p=d===`percent`,m={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0},h=n?.leftYAxisFormat,g=n?.rightYAxisFormat,{xAxisField:_,yAxisFields:v,seriesFields:y,configError:b}=(0,W1.useMemo)(()=>{let e,n=[],r=[],i=null;return t?.xAxis&&t?.yAxis?(e=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,n=Array.isArray(t.yAxis)?t.yAxis:[t.yAxis],r=t.series||[]):t?.x&&t?.y?(e=t.x,n=Array.isArray(t.y)?t.y:[t.y]):i=`Invalid or missing chart axis configuration`,!i&&(!e||!n||n.length===0)&&(i=`Missing required X-axis or Y-axis fields`),{xAxisField:e,yAxisFields:n,seriesFields:r,configError:i}},[t]),{data:x,seriesKeys:S}=(0,W1.useMemo)(()=>b||!e||e.length===0||!_?{data:[],seriesKeys:[]}:x1(e,_,v,r,y,u),[e,_,v,r,y,u,b]),C=(0,W1.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),w=(0,W1.useMemo)(()=>{let e={};return v.forEach(t=>{let n=u(t);e[n]=t}),e},[v,u]),T=v.some(e=>C[e]===`right`),E=v.filter(e=>(C[e]||`left`)===`left`),D=v.filter(e=>C[e]===`right`),{chartData:O,skippedCount:k}=(0,W1.useMemo)(()=>{if(x.length===0||S.length===0)return{chartData:[],skippedCount:0};let e=x.filter(e=>S.some(t=>h1(e[t])));return{chartData:e,skippedCount:x.length-e.length}},[x,S]);try{if(!e||e.length===0)return(0,G1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,G1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,G1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,G1.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in bar chart`})]})});if(b)return(0,G1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,G1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,G1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,G1.jsx)(`div`,{className:`dc:text-xs`,children:b})]})});let t=f&&!T,r=p&&!T,d=r?`expand`:void 0,_=S.length===1&&O.some(e=>{let t=e[S[0]];return typeof t==`number`&&t<0}),v=S.length===1&&!_&&!y.length&&O.length>1,x=m.showLegend,A={...N1,left:40,right:T?40:20},j=I1(F1(n?.target||``),O.length),M=O;return j.length>0&&(M=O.map((e,t)=>({...e,__target:j[t]||null}))),!O||O.length===0?(0,G1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,G1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,G1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,G1.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for bar chart after transformation`})]})}):(0,G1.jsxs)(`div`,{className:`dc:relative dc:w-full`,style:{height:i},children:[(0,G1.jsx)(d1,{height:k>0?`calc(100% - 20px)`:`100%`,children:(0,G1.jsxs)(N$,{data:M,margin:A,stackOffset:d,accessibilityLayer:!1,children:[m.showGrid&&(0,G1.jsx)(KG,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,G1.jsx)(gY,{dataKey:`name`,type:`category`,tick:(0,G1.jsx)(O1,{}),height:60}),(0,G1.jsx)(FY,{yAxisId:`left`,orientation:`left`,tick:{fontSize:12},tickFormatter:r?e=>`${(e*100).toFixed(0)}%`:h?e=>v1(e,h):void 0,domain:r?[0,1]:void 0,label:r?void 0:E.length>0?{value:h?.label||u(E[0]),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),T&&(0,G1.jsx)(FY,{yAxisId:`right`,orientation:`right`,tick:{fontSize:12},tickFormatter:g?e=>v1(e,g):void 0,label:D.length>0?{value:g?.label||u(D[0]),angle:90,position:`right`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),m.showTooltip&&(0,G1.jsx)(C1,{formatter:(e,t)=>{if(e==null)return[`No data`,t];if(t===`Target`)return[v1(e,h),`Target Value`];if(r&&typeof e==`number`)return[`${(e*100).toFixed(1)}%`,t];let n=w[t];return[v1(e,(n&&C[n]===`right`?`right`:`left`)==`right`?g:h),t]}}),x&&(0,G1.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`25px`},iconType:`rect`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>l(String(e.dataKey||``)),onMouseLeave:()=>l(null)}),S.map((e,n)=>{let r=w[e];return(0,G1.jsxs)(gJ,{dataKey:e,yAxisId:r&&C[r]===`right`?`right`:`left`,stackId:t?`stack`:void 0,fill:_?M1:a?.colors&&a.colors[n%a.colors.length]||A1[n%A1.length],fillOpacity:c?c===e?1:.3:1,cursor:s?`pointer`:void 0,onClick:(t,n,i)=>{o&&s&&t&&o({dataPoint:M[n]||t,clickedField:r||e,xValue:t.name,position:{x:i.clientX,y:i.clientY},nativeEvent:i})},children:[_&&O.map((t,n)=>{let r=t[e];return(0,G1.jsx)(SI,{fill:typeof r==`number`&&r<0?`#ef4444`:`#10b981`,fillOpacity:c?c===e?1:.3:1},`cell-${n}`)}),v&&O.map((t,n)=>{let r=a?.colors||A1;return(0,G1.jsx)(SI,{fill:r[n%r.length],fillOpacity:c?c===e?1:.3:1},`cat-${n}`)})]},e)}),j.length>0&&(0,G1.jsxs)(G1.Fragment,{children:[(0,G1.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,stroke:`#ffffff`,strokeWidth:2,dot:!1,activeDot:!1,connectNulls:!1}),(0,G1.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,name:`Target`,stroke:`#8B5CF6`,strokeWidth:2,strokeDasharray:`2 3`,dot:!1,activeDot:!1,connectNulls:!1})]})]})}),k>0&&(0,G1.jsxs)(`div`,{className:`dc:text-xs text-dc-text-muted dc:text-center dc:mt-1`,children:[k,` data point`,k===1?``:`s`,` with no values hidden`]})]})}catch(e){return(0,G1.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,G1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,G1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Bar Chart Error`}),(0,G1.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,G1.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function q1(e){return e.length>0&&`__periodIndex`in e[0]}function J1(e){if(!q1(e))return[];let t=new Set;for(let n of e)n.__period&&t.add(n.__period);return Array.from(t)}function Ofe(e){if(!q1(e))return[];let t=new Set;for(let n of e)typeof n.__periodIndex==`number`&&t.add(n.__periodIndex);return Array.from(t).sort((e,t)=>e-t)}function Y1(e,t){return t===0?`Current`:`Prior`}function kfe(e,t,n){if(e.length===0)return[];let r=[`__period`,`__periodIndex`,`__periodDayIndex`],i=e[0],a=[];for(let e of Object.keys(i))!t.includes(e)&&e!==n&&!r.includes(e)&&a.push(e);return a}function Afe(e,t){let n=new Map;for(let e of t)n.set(e,new Set);for(let r of e)for(let e of t)r[e]!==void 0&&r[e]!==null&&n.get(e).add(r[e]);return n}function jfe(e,t,n,r){if(!q1(e))return{data:e,seriesKeys:t,xAxisKey:n};let i=J1(e),a=Ofe(e),o=kfe(e,t,n),s=o.length>0,c=s?Afe(e,o):null,l=new Map;for(let a of e){let e=a.__periodDayIndex,c=a.__periodIndex;l.has(e)||l.set(e,{__periodDayIndex:e,__displayDate:c===0?a[n]:void 0});let u=l.get(e);!u.__displayDate&&a[n]&&(u.__displayDate=a[n]);let d=``;s&&(d=o.map(e=>{let t=a[e];return r?r(String(t)):String(t)}).join(` / `));let f=Y1(i[c]||``,c);for(let e of t){let t=r?r(e):e,n=d?`${d} - ${t} (${f})`:`${t} (${f})`;u[n]=a[e]}}let u=Array.from(l.values()).sort((e,t)=>e.__periodDayIndex-t.__periodDayIndex),d=[];if(s&&c){let e=Mfe(o,c,r);for(let n of e)for(let e of t){let t=r?r(e):e;for(let e=0;e<a.length;e++){let r=Y1(i[e]||``,e);d.push(`${n} - ${t} (${r})`)}}}else for(let e of t){let t=r?r(e):e;for(let e=0;e<a.length;e++){let n=Y1(i[e]||``,e);d.push(`${t} (${n})`)}}return{data:u,seriesKeys:d,xAxisKey:`__periodDayIndex`}}function Mfe(e,t,n){if(e.length===0)return[];if(e.length===1){let r=e[0];return Array.from(t.get(r)||[]).map(e=>n?n(String(e)):String(e))}let r=[],i=e.map(e=>Array.from(t.get(e)||[]));function a(e,t){if(e===i.length){let e=t.map(e=>n?n(String(e)):String(e));r.push(e.join(` / `));return}for(let n of i[e])a(e+1,[...t,n])}return a(0,[]),r}function Nfe(e,t){if(t.length<2)return!1;for(let n=1;n<t.length;n++){let r=Y1(t[n],n);if(e.includes(`(${r})`))return!0}return e.includes(`(Prior`)}function Pfe(e=`dashed`){switch(e){case`solid`:return;case`dashed`:return`5 5`;case`dotted`:return`2 2`;default:return`5 5`}}var Ffe=o((()=>{})),X1,Z1,Q1,Ife=o((()=>{X1=u(f(),1),o1(),m1(),E1(),k1(),P1(),S1(),L1(),Ffe(),U1(),Z1=s1(),Q1=X1.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let[c,l]=(0,X1.useState)(null),u=V1(),d=(0,X1.useMemo)(()=>t?.yAxis?Array.isArray(t.yAxis)?t.yAxis:[t.yAxis]:t?.y?Array.isArray(t.y)?t.y:[t.y]:[],[t?.yAxis,t?.y]),f=(0,X1.useMemo)(()=>t?.yAxisAssignment||{},[t?.yAxisAssignment]),p=(0,X1.useMemo)(()=>{let e={};return d.forEach(t=>{let n=u(t);e[n]=t}),e},[d,u]);try{let m={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},h=n?.leftYAxisFormat,g=n?.rightYAxisFormat;if(!e||e.length===0)return(0,Z1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,Z1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in line chart`})]})});let _,v=[];if(t?.xAxis&&t?.yAxis)_=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,v=t.series||[];else if(t?.x&&t?.y)_=t.x;else return(0,Z1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,Z1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs`,children:`Invalid or missing chart axis configuration`})]})});if(!_||d.length===0)return(0,Z1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,Z1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs`,children:`Missing required X-axis or Y-axis fields`})]})});let y=q1(e),b=n?.priorPeriodStyle||`dashed`,x=n?.priorPeriodOpacity??.5,S=y?J1(e):[],C,w,T=`name`;if(y){let t=jfe(e,d,_,u);C=t.data,w=t.seriesKeys,T=`__periodDayIndex`}else{let t=x1(e,_,d,r,v,u);C=t.data,w=t.seriesKeys}let E=e=>{if(p[e])return p[e];if(e.length>1e3)return;let t=e.replace(/\s*\((Current|Prior)\)$/,``).split(` - `);return p[t[t.length-1]]},D=d.some(e=>f[e]===`right`),O=d.filter(e=>(f[e]||`left`)===`left`),k=d.filter(e=>f[e]===`right`),A=m.showLegend,j={...N1,left:40,right:D?40:20},M=I1(F1(n?.target||``),C.length),N=C;return M.length>0&&(N=C.map((e,t)=>({...e,__target:M[t]||null}))),!C||C.length===0?(0,Z1.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,Z1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for line chart after transformation`})]})}):(0,Z1.jsx)(d1,{height:i,children:(0,Z1.jsxs)(dQ,{data:N,margin:j,accessibilityLayer:!1,children:[m.showGrid&&(0,Z1.jsx)(KG,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,Z1.jsx)(gY,{dataKey:T,type:`category`,tick:(0,Z1.jsx)(O1,{tickFormatter:y?(e,t)=>{let n=C[t];if(n?.__displayDate){let e=b1(r,_);return y1(n.__displayDate,e)}return`Period ${Number(e)+1}`}:void 0}),height:60}),(0,Z1.jsx)(FY,{yAxisId:`left`,orientation:`left`,tick:{fontSize:12},tickFormatter:h?e=>v1(e,h):void 0,label:O.length>0?{value:h?.label||u(O[0]),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),D&&(0,Z1.jsx)(FY,{yAxisId:`right`,orientation:`right`,tick:{fontSize:12},tickFormatter:g?e=>v1(e,g):void 0,label:k.length>0?{value:g?.label||u(k[0]),angle:90,position:`right`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),m.showTooltip&&(0,Z1.jsx)(C1,{formatter:(e,t)=>{if(e==null)return[`No data`,t];if(t===`Target`)return[v1(e,h),`Target Value`];let n=E(t);return[v1(e,(n&&f[n]===`right`?`right`:`left`)==`right`?g:h),t]},labelFormatter:y?(e,t)=>{if(t&&t.length>0){let e=t[0]?.payload;if(e?.__displayDate){let t=b1(r,_);return y1(e.__displayDate,t)}}return`Period ${Number(e)+1}`}:void 0}),A&&(0,Z1.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`25px`},iconType:`line`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>l(String(e.dataKey||``)),onMouseLeave:()=>l(null)}),w.map((e,t)=>{let n=E(e),r=n&&f[n]===`right`?`right`:`left`,i=y&&Nfe(e,S),l=i?Pfe(b):void 0,u=i?x:1,d=a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length];return(0,Z1.jsx)(VK,{type:`monotone`,dataKey:e,yAxisId:r,stroke:d,strokeWidth:i?1.5:2,strokeDasharray:l,dot:i?!1:t=>{let{cx:r,cy:i,payload:a,key:c}=t;if(r===void 0||i===void 0)return null;let l=t=>{t.stopPropagation(),t.preventDefault(),o&&o({dataPoint:a,clickedField:n||e,xValue:a.name,position:{x:t.clientX,y:t.clientY},nativeEvent:t})};return s&&o?(0,Z1.jsxs)(`g`,{children:[(0,Z1.jsx)(`circle`,{cx:r,cy:i,r:6,fill:`var(--dc-surface)`,style:{pointerEvents:`none`}}),(0,Z1.jsx)(`circle`,{cx:r,cy:i,r:4,fill:`var(--dc-surface)`,stroke:d,strokeWidth:2,cursor:`pointer`,onClick:e=>{l(e)}})]},c):(0,Z1.jsx)(`circle`,{cx:r,cy:i,r:3,fill:d},c)},activeDot:!1,strokeOpacity:c?c===e?1:.3:u,connectNulls:m.connectNulls},e)}),M.length>0&&(0,Z1.jsxs)(Z1.Fragment,{children:[(0,Z1.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,stroke:`#ffffff`,strokeWidth:2,dot:!1,activeDot:!1,connectNulls:!1}),(0,Z1.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,name:`Target`,stroke:`#8B5CF6`,strokeWidth:2,strokeDasharray:`2 3`,dot:!1,activeDot:!1,connectNulls:!1})]})]})})}catch(e){return(0,Z1.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,Z1.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z1.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Line Chart Error`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,Z1.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})})),$1,e0,t0,Lfe=o((()=>{$1=u(f(),1),o1(),m1(),E1(),k1(),P1(),S1(),L1(),U1(),e0=s1(),t0=$1.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let[c,l]=(0,$1.useState)(null),u=V1();try{let d=n?.stackType??(n?.stacked?`normal`:`none`),f=d!==`none`,p=d===`percent`,m={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,connectNulls:n?.connectNulls??!1},h=n?.leftYAxisFormat,g=n?.rightYAxisFormat;if(!e||e.length===0)return(0,e0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,e0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,e0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,e0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in area chart`})]})});let _,v,y=[];if(t?.xAxis&&t?.yAxis)_=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,v=Array.isArray(t.yAxis)?t.yAxis:[t.yAxis],y=t.series||[];else if(t?.x&&t?.y)_=t.x,v=Array.isArray(t.y)?t.y:[t.y];else return(0,e0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,e0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,e0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,e0.jsx)(`div`,{className:`dc:text-xs`,children:`Invalid or missing chart axis configuration`})]})});if(!_||!v||v.length===0)return(0,e0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,e0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,e0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,e0.jsx)(`div`,{className:`dc:text-xs`,children:`Missing required X-axis or Y-axis fields`})]})});let{data:b,seriesKeys:x}=x1(e,_,v,r,y,u),S=t?.yAxisAssignment||{},C={};v.forEach(e=>{let t=u(e);C[t]=e});let w=v.some(e=>S[e]===`right`),T=v.filter(e=>(S[e]||`left`)===`left`),E=v.filter(e=>S[e]===`right`),D=f&&!w,O=p&&!w,k=m.showLegend,A={...N1,left:40,right:w?40:20},j=I1(F1(n?.target||``),b.length),M=b;return j.length>0&&(M=b.map((e,t)=>({...e,__target:j[t]||null}))),!b||b.length===0?(0,e0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,e0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,e0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,e0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for area chart after transformation`})]})}):(0,e0.jsx)(d1,{height:i,children:(0,e0.jsxs)(N$,{data:M,margin:A,stackOffset:O?`expand`:void 0,accessibilityLayer:!1,children:[m.showGrid&&(0,e0.jsx)(KG,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,e0.jsx)(gY,{dataKey:`name`,type:`category`,tick:(0,e0.jsx)(O1,{}),height:60}),(0,e0.jsx)(FY,{yAxisId:`left`,orientation:`left`,tick:{fontSize:12},tickFormatter:O?e=>`${(e*100).toFixed(0)}%`:h?e=>v1(e,h):void 0,domain:O?[0,1]:void 0,label:O?void 0:T.length>0?{value:h?.label||u(T[0]),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),w&&(0,e0.jsx)(FY,{yAxisId:`right`,orientation:`right`,tick:{fontSize:12},tickFormatter:g?e=>v1(e,g):void 0,label:E.length>0?{value:g?.label||u(E[0]),angle:90,position:`right`,style:{textAnchor:`middle`,fontSize:`12px`}}:void 0}),m.showTooltip&&(0,e0.jsx)(C1,{formatter:(e,t)=>{if(e==null)return[`No data`,t];if(t===`Target`)return[v1(e,h),`Target Value`];if(O&&typeof e==`number`)return[`${(e*100).toFixed(1)}%`,t];let n=C[t];return[v1(e,(n&&S[n]===`right`?`right`:`left`)==`right`?g:h),t]}}),k&&(0,e0.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`rect`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>l(String(e.dataKey||``)),onMouseLeave:()=>l(null)}),x.map((e,t)=>{let n=C[e],r=n&&S[n]===`right`?`right`:`left`,i=a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length];return(0,e0.jsx)(vq,{type:`monotone`,dataKey:e,yAxisId:r,stackId:D?`stack`:void 0,stroke:i,fill:i,fillOpacity:c?c===e?.6:.1:.3,strokeWidth:2,strokeOpacity:c?c===e?1:.3:1,connectNulls:m.connectNulls,dot:t=>{let{cx:r,cy:a,payload:c,key:l}=t;if(!s||r===void 0||a===void 0)return null;let u=t=>{t.stopPropagation(),t.preventDefault(),o&&o({dataPoint:c,clickedField:n||e,xValue:c.name,position:{x:t.clientX,y:t.clientY},nativeEvent:t})};return(0,e0.jsxs)(`g`,{children:[(0,e0.jsx)(`circle`,{cx:r,cy:a,r:6,fill:`var(--dc-surface)`,style:{pointerEvents:`none`}}),(0,e0.jsx)(`circle`,{cx:r,cy:a,r:4,fill:`var(--dc-surface)`,stroke:i,strokeWidth:2,cursor:`pointer`,onClick:e=>{u(e)}})]},l)},activeDot:!1},e)}),j.length>0&&(0,e0.jsxs)(e0.Fragment,{children:[(0,e0.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,stroke:`#ffffff`,strokeWidth:2,dot:!1,activeDot:!1,connectNulls:!1}),(0,e0.jsx)(VK,{type:`monotone`,dataKey:`__target`,yAxisId:`left`,name:`Target`,stroke:`#8B5CF6`,strokeWidth:2,strokeDasharray:`2 3`,dot:!1,activeDot:!1,connectNulls:!1})]})]})})}catch(e){return(0,e0.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,e0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,e0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Area Chart Error`}),(0,e0.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,e0.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})})),n0,r0,i0,Rfe=o((()=>{n0=u(f(),1),o1(),m1(),E1(),P1(),S1(),U1(),r0=s1(),i0=n0.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let[c,l]=(0,n0.useState)(null),u=V1();try{let d={showLegend:n?.showLegend??!0,showTooltip:n?.showTooltip??!0,leftYAxisFormat:n?.leftYAxisFormat,innerRadius:n?.innerRadius||`0%`};if(!e||e.length===0)return(0,r0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,r0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,r0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,r0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in pie chart`})]})});let f,p,m,h=[];if(t?.xAxis&&t?.yAxis)p=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,m=Array.isArray(t.yAxis)?t.yAxis:[t.yAxis],h=t.series||[];else if(t?.x&&t?.y)p=t.x,m=Array.isArray(t.y)?t.y:[t.y];else return(0,r0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,r0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,r0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,r0.jsx)(`div`,{className:`dc:text-xs`,children:`chartConfig.x/y or chartConfig.xAxis/yAxis required for pie chart`})]})});if(!p||!m||m.length===0)return(0,r0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,r0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,r0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,r0.jsx)(`div`,{className:`dc:text-xs`,children:`Missing required X-axis or Y-axis fields`})]})});if(h.length>0){let{data:t}=x1(e,p,m,r,h,u);if(f=[],t.length>0){let e=t[0];Object.keys(e).forEach(t=>{t!==`name`&&typeof e[t]==`number`&&f.push({name:String(t),value:e[t]})})}}else{let t=b1(r,p);f=e.map(e=>{let n=y1(e[p],t)||String(e[p])||`Unknown`;return typeof e[p]==`boolean`?n=e[p]?`Active`:`Inactive`:(n===`true`||n===`false`)&&(n=n===`true`?`Active`:`Inactive`),{name:n,value:typeof e[m[0]]==`string`?parseFloat(e[m[0]]):e[m[0]]||0}})}let g=f.length;return f=f.filter(e=>e.value!=null&&!isNaN(e.value)&&e.value!==0&&e.value>0),f.length===0?(0,r0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,r0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,r0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,r0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:g>0?`Filtered out ${g} data points (zero or invalid values)`:`No data points to display in pie chart`})]})}):(0,r0.jsx)(d1,{height:i,children:(0,r0.jsxs)(RQ,{accessibilityLayer:!1,children:[(0,r0.jsx)(nH,{data:f,cx:`50%`,cy:`50%`,innerRadius:d.innerRadius===`0%`?void 0:d.innerRadius,outerRadius:`70%`,dataKey:`value`,label:d.showLegend?void 0:({name:e,percent:t})=>`${e} ${((t||0)*100).toFixed(0)}%`,cursor:s?`pointer`:void 0,onClick:(e,t,n)=>{o&&s&&e&&o({dataPoint:e,clickedField:m[0],xValue:e.name,position:{x:n.clientX,y:n.clientY},nativeEvent:n})},children:f.map((e,t)=>(0,r0.jsx)(SI,{fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length],fillOpacity:c?c===f[t].name?1:.3:1},`cell-${t}`))}),d.showTooltip&&(0,r0.jsx)(C1,{formatter:d.leftYAxisFormat?(e,t)=>[v1(e,d.leftYAxisFormat),t]:void 0}),d.showLegend&&(0,r0.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>l(String(e.value||``)),onMouseLeave:()=>l(null)})]})})}catch(e){return(0,r0.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,r0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,r0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Pie Chart Error`}),(0,r0.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,r0.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})})),a0,o0,s0,zfe=o((()=>{a0=u(f(),1),o1(),m1(),P1(),S1(),U1(),o0=s1(),s0=a0.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let[o,s]=(0,a0.useState)(null),c=V1();try{let l={showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0},u=n?.xAxisFormat,d=n?.leftYAxisFormat;if(!e||e.length===0)return(0,o0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,o0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,o0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,o0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in scatter chart`})]})});let f,p,m=[];if(t?.xAxis&&t?.yAxis){f=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,p=Array.isArray(t.yAxis)?t.yAxis[0]:t.yAxis;let e=t.series;m=e?Array.isArray(e)?e:[e]:[]}else if(t?.x&&t?.y)f=t.x,p=Array.isArray(t.y)?t.y[0]:t.y;else return(0,o0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,o0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,o0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,o0.jsx)(`div`,{className:`dc:text-xs`,children:`Invalid or missing chart axis configuration`})]})});if(!f||!p)return(0,o0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,o0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,o0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,o0.jsx)(`div`,{className:`dc:text-xs`,children:`Missing required X-axis or Y-axis fields`})]})});let h=(r?.timeDimensions||[]).map(e=>e.dimension),g,_={};if(m.length>0){let t=m[0];e.forEach(e=>{let n=String(e[t]||`Default`);_[n]||(_[n]=[]);let i=b1(r,f),a=y1(e[f],i)||e[f],o=g1(e[p]),s=typeof a==`string`?parseFloat(a):a;if(h1(s)&&o!==null){let t={};h.forEach(n=>{if(e[n]){let i=b1(r,n);t[n]=y1(e[n],i)}}),_[n].push({x:s,y:o,name:n,timeValues:t,originalItem:e})}}),g=Object.keys(_).flatMap(e=>_[e])}else{let t=b1(r,f);g=e.map(e=>{let n=y1(e[f],t)||e[f],i=g1(e[p]),a=typeof n==`string`?parseFloat(n):n,o={};return h.forEach(t=>{if(e[t]){let n=b1(r,t);o[t]=y1(e[t],n)}}),{x:a,y:i,name:`Point`,timeValues:o,originalItem:e,isValid:h1(a)&&i!==null}}).filter(e=>e.isValid)}if(!g||g.length===0)return(0,o0.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,o0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,o0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,o0.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for scatter chart after transformation`})]})});let v=Object.keys(_),y=v.length>1&&v.length<=20,b=l.showLegend&&y;return(0,o0.jsx)(d1,{height:i,children:(0,o0.jsxs)(S$,{margin:{...N1,left:40},accessibilityLayer:!1,children:[l.showGrid&&(0,o0.jsx)(KG,{strokeDasharray:`3 3`}),(0,o0.jsx)(gY,{type:`number`,dataKey:`x`,name:u?.label||c(f),tick:{fontSize:12},tickFormatter:u?e=>v1(e,u):void 0}),(0,o0.jsx)(FY,{type:`number`,dataKey:`y`,name:d?.label||c(p),tick:{fontSize:12},tickFormatter:d?e=>v1(e,d):void 0,label:{value:d?.label||c(p),angle:-90,position:`left`,style:{textAnchor:`middle`,fontSize:`12px`}}}),l.showTooltip&&(0,o0.jsx)(gI,{cursor:{strokeDasharray:`3 3`},content:({active:e,payload:t})=>{if(!e||!t||t.length===0)return null;let n=t[0]?.payload;return n?(0,o0.jsxs)(`div`,{style:{backgroundColor:`white`,border:`1px solid #e5e7eb`,borderRadius:`0.5rem`,fontSize:`0.875rem`,color:`#1f2937`,boxShadow:`0 4px 6px -1px rgba(0, 0, 0, 0.1)`,padding:`8px 12px`},children:[(0,o0.jsx)(`div`,{style:{fontWeight:600,marginBottom:`4px`},children:n.name}),n.timeValues&&Object.keys(n.timeValues).length>0&&(0,o0.jsx)(`div`,{style:{marginBottom:`4px`,color:`#6b7280`},children:Object.entries(n.timeValues).map(([e,t])=>(0,o0.jsxs)(`div`,{children:[c(e),`: `,t]},e))}),(0,o0.jsxs)(`div`,{children:[u?.label||c(f),`: `,v1(n.x,u)]}),(0,o0.jsxs)(`div`,{children:[d?.label||c(p),`: `,v1(n.y,d)]})]}):null}}),b&&(0,o0.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>s(String(e.dataKey||``)),onMouseLeave:()=>s(null)}),y?v.map((e,t)=>(0,o0.jsx)(WJ,{name:e,data:_[e],fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length],fillOpacity:o?o===e?1:.3:1},e)):(0,o0.jsx)(WJ,{name:`Data`,data:g,fill:a?.colors&&a.colors[0]||A1[0]})]})})}catch(e){return(0,o0.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,o0.jsxs)(`div`,{className:`dc:text-center`,children:[(0,o0.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Scatter Chart Error`}),(0,o0.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,o0.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function Bfe(e){return e}var Vfe=o((()=>{}));function Hfe(e){return`translate(`+e+`,0)`}function Ufe(e){return`translate(0,`+e+`)`}function Wfe(e){return t=>+e(t)}function Gfe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function Kfe(){return!this.__axis}function c0(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===d0||e===m0?-1:1,u=e===m0||e===f0?`x`:`y`,d=e===d0||e===p0?Hfe:Ufe;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):Bfe),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?Gfe:Wfe)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===d0?`0em`:e===p0?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,h0).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,h0).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===m0||e===f0?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(Kfe).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===f0?`start`:e===m0?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function l0(e){return c0(p0,e)}function u0(e){return c0(m0,e)}var d0,f0,p0,m0,h0,qfe=o((()=>{Vfe(),d0=1,f0=2,p0=3,m0=4,h0=1e-6})),Jfe=o((()=>{qfe()}));function g0(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new _0(n)}function _0(e){this._=e}function Yfe(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function Xfe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function v0(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=y0,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var y0,Zfe=o((()=>{y0={value:()=>{}},_0.prototype=g0.prototype={constructor:_0,on:function(e,t){var n=this._,r=Yfe(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Xfe(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=v0(n[i],e.name,t);else if(t==null)for(i in n)n[i]=v0(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new _0(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}}})),b0=o((()=>{Zfe()})),x0,S0,C0=o((()=>{x0=`http://www.w3.org/1999/xhtml`,S0={svg:`http://www.w3.org/2000/svg`,xhtml:x0,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function w0(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),S0.hasOwnProperty(t)?{space:S0[t],local:e}:e}var T0=o((()=>{C0()}));function Qfe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function $fe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function E0(e){var t=w0(e);return(t.local?$fe:Qfe)(t)}var D0=o((()=>{T0(),C0()}));function epe(){}function O0(e){return e==null?epe:function(){return this.querySelector(e)}}var k0=o((()=>{}));function tpe(e){typeof e!=`function`&&(e=O0(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new Z0(r,this._parents)}var npe=o((()=>{e2(),k0()}));function rpe(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var ipe=o((()=>{}));function ape(){return[]}function A0(e){return e==null?ape:function(){return this.querySelectorAll(e)}}var j0=o((()=>{}));function ope(e){return function(){return rpe(e.apply(this,arguments))}}function spe(e){e=typeof e==`function`?ope(e):A0(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new Z0(r,i)}var cpe=o((()=>{e2(),ipe(),j0()}));function M0(e){return function(){return this.matches(e)}}function N0(e){return function(t){return t.matches(e)}}var P0=o((()=>{}));function lpe(e){return function(){return F0.call(this.children,e)}}function upe(){return this.firstElementChild}function dpe(e){return this.select(e==null?upe:lpe(typeof e==`function`?e:N0(e)))}var F0,fpe=o((()=>{P0(),F0=Array.prototype.find}));function ppe(){return Array.from(this.children)}function mpe(e){return function(){return I0.call(this.children,e)}}function hpe(e){return this.selectAll(e==null?ppe:mpe(typeof e==`function`?e:N0(e)))}var I0,gpe=o((()=>{P0(),I0=Array.prototype.filter}));function _pe(e){typeof e!=`function`&&(e=M0(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z0(r,this._parents)}var vpe=o((()=>{e2(),P0()}));function L0(e){return Array(e.length)}var R0=o((()=>{}));function ype(){return new Z0(this._enter||this._groups.map(L0),this._parents)}function z0(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var B0=o((()=>{R0(),e2(),z0.prototype={constructor:z0,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}}}));function bpe(e){return function(){return e}}var xpe=o((()=>{}));function Spe(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new z0(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Cpe(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new z0(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function wpe(e){return e.__data__}function Tpe(e,t){if(!arguments.length)return Array.from(this,wpe);var n=t?Cpe:Spe,r=this._parents,i=this._groups;typeof e!=`function`&&(e=bpe(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=Epe(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new Z0(o,r),o._enter=s,o._exit=c,o}function Epe(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var Dpe=o((()=>{e2(),B0(),xpe()}));function Ope(){return new Z0(this._exit||this._groups.map(L0),this._parents)}var kpe=o((()=>{R0(),e2()}));function Ape(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var jpe=o((()=>{}));function Mpe(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new Z0(s,this._parents)}var Npe=o((()=>{e2()}));function Ppe(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var Fpe=o((()=>{}));function Ipe(e){e||=Lpe;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new Z0(i,this._parents).order()}function Lpe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Rpe=o((()=>{e2()}));function zpe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var Bpe=o((()=>{}));function Vpe(){return Array.from(this)}var Hpe=o((()=>{}));function Upe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}var Wpe=o((()=>{}));function Gpe(){let e=0;for(let t of this)++e;return e}var Kpe=o((()=>{}));function qpe(){return!this.node()}var Jpe=o((()=>{}));function Ype(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}var Xpe=o((()=>{}));function Zpe(e){return function(){this.removeAttribute(e)}}function Qpe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function $pe(e,t){return function(){this.setAttribute(e,t)}}function eme(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function tme(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function nme(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function rme(e,t){var n=w0(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Qpe:Zpe:typeof t==`function`?n.local?nme:tme:n.local?eme:$pe)(n,t))}var ime=o((()=>{T0()}));function V0(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var H0=o((()=>{}));function ame(e){return function(){this.style.removeProperty(e)}}function ome(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sme(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cme(e,t,n){return arguments.length>1?this.each((t==null?ame:typeof t==`function`?sme:ome)(e,t,n??``)):U0(this.node(),e)}function U0(e,t){return e.style.getPropertyValue(t)||V0(e).getComputedStyle(e,null).getPropertyValue(t)}var W0=o((()=>{H0()}));function lme(e){return function(){delete this[e]}}function ume(e,t){return function(){this[e]=t}}function dme(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function fme(e,t){return arguments.length>1?this.each((t==null?lme:typeof t==`function`?dme:ume)(e,t)):this.node()[e]}var pme=o((()=>{}));function G0(e){return e.trim().split(/^|\s+/)}function K0(e){return e.classList||new q0(e)}function q0(e){this._node=e,this._names=G0(e.getAttribute(`class`)||``)}function J0(e,t){for(var n=K0(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Y0(e,t){for(var n=K0(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function mme(e){return function(){J0(this,e)}}function hme(e){return function(){Y0(this,e)}}function gme(e,t){return function(){(t.apply(this,arguments)?J0:Y0)(this,e)}}function _me(e,t){var n=G0(e+``);if(arguments.length<2){for(var r=K0(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?gme:t?mme:hme)(n,t))}var vme=o((()=>{q0.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function yme(){this.textContent=``}function bme(e){return function(){this.textContent=e}}function xme(e){return function(){this.textContent=e.apply(this,arguments)??``}}function Sme(e){return arguments.length?this.each(e==null?yme:(typeof e==`function`?xme:bme)(e)):this.node().textContent}var Cme=o((()=>{}));function wme(){this.innerHTML=``}function Tme(e){return function(){this.innerHTML=e}}function Eme(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function Dme(e){return arguments.length?this.each(e==null?wme:(typeof e==`function`?Eme:Tme)(e)):this.node().innerHTML}var Ome=o((()=>{}));function kme(){this.nextSibling&&this.parentNode.appendChild(this)}function Ame(){return this.each(kme)}var jme=o((()=>{}));function Mme(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nme(){return this.each(Mme)}var Pme=o((()=>{}));function Fme(e){var t=typeof e==`function`?e:E0(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var Ime=o((()=>{D0()}));function Lme(){return null}function Rme(e,t){var n=typeof e==`function`?e:E0(e),r=t==null?Lme:typeof t==`function`?t:O0(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var zme=o((()=>{D0(),k0()}));function Bme(){var e=this.parentNode;e&&e.removeChild(this)}function Vme(){return this.each(Bme)}var Hme=o((()=>{}));function Ume(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wme(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Gme(e){return this.select(e?Wme:Ume)}var Kme=o((()=>{}));function qme(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var Jme=o((()=>{}));function Yme(e){return function(t){e.call(this,t,this.__data__)}}function Xme(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Zme(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Qme(e,t,n){return function(){var r=this.__on,i,a=Yme(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function $me(e,t,n){var r=Xme(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Qme:Zme,i=0;i<a;++i)this.each(s(r[i],t,n));return this}var ehe=o((()=>{}));function X0(e,t,n){var r=V0(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function the(e,t){return function(){return X0(this,e,t)}}function nhe(e,t){return function(){return X0(this,e,t.apply(this,arguments))}}function rhe(e,t){return this.each((typeof t==`function`?nhe:the)(e,t))}var ihe=o((()=>{H0()}));function*ahe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var ohe=o((()=>{}));function Z0(e,t){this._groups=e,this._parents=t}function Q0(){return new Z0([[document.documentElement]],$0)}function she(){return this}var $0,e2=o((()=>{npe(),cpe(),fpe(),gpe(),vpe(),Dpe(),B0(),kpe(),jpe(),Npe(),Fpe(),Rpe(),Bpe(),Hpe(),Wpe(),Kpe(),Jpe(),Xpe(),ime(),W0(),pme(),vme(),Cme(),Ome(),jme(),Pme(),Ime(),zme(),Hme(),Kme(),Jme(),ehe(),ihe(),ohe(),$0=[null],Z0.prototype=Q0.prototype={constructor:Z0,select:tpe,selectAll:spe,selectChild:dpe,selectChildren:hpe,filter:_pe,data:Tpe,enter:ype,exit:Ope,join:Ape,merge:Mpe,selection:she,order:Ppe,sort:Ipe,call:zpe,nodes:Vpe,node:Upe,size:Gpe,empty:qpe,each:Ype,attr:rme,style:cme,property:fme,classed:_me,text:Sme,html:Dme,raise:Ame,lower:Nme,append:Fme,insert:Rme,remove:Vme,clone:Gme,datum:qme,on:$me,dispatch:rhe,[Symbol.iterator]:ahe}}));function t2(e){return typeof e==`string`?new Z0([[document.querySelector(e)]],[document.documentElement]):new Z0([[e]],$0)}var che=o((()=>{e2()})),n2=o((()=>{P0(),T0(),che(),e2(),k0(),j0(),W0()})),lhe=o((()=>{}));function r2(){return h2||=(v2(uhe),_2.now()+g2)}function uhe(){h2=0}function i2(){this._call=this._time=this._next=null}function a2(e,t,n){var r=new i2;return r.restart(e,t,n),r}function dhe(){r2(),++c2;for(var e=f2,t;e;)(t=h2-e._time)>=0&&e._call.call(void 0,t),e=e._next;--c2}function o2(){h2=(m2=_2.now())+g2,c2=l2=0;try{dhe()}finally{c2=0,phe(),h2=0}}function fhe(){var e=_2.now(),t=e-m2;t>d2&&(g2-=t,m2=e)}function phe(){for(var e,t=f2,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:f2=n);p2=e,s2(r)}function s2(e){c2||(l2&&=clearTimeout(l2),e-h2>24?(e<1/0&&(l2=setTimeout(o2,e-_2.now()-g2)),u2&&=clearInterval(u2)):(u2||=(m2=_2.now(),setInterval(fhe,d2)),c2=1,v2(o2)))}var c2,l2,u2,d2,f2,p2,m2,h2,g2,_2,v2,y2=o((()=>{c2=0,l2=0,u2=0,d2=1e3,m2=0,h2=0,g2=0,_2=typeof performance==`object`&&performance.now?performance:Date,v2=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},i2.prototype=a2.prototype={constructor:i2,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?r2():+n)+(t==null?0:+t),!this._next&&p2!==this&&(p2?p2._next=this:f2=this,p2=this),this._call=e,this._time=n,s2()},stop:function(){this._call&&(this._call=null,this._time=1/0,s2())}}}));function b2(e,t,n){var r=new i2;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var mhe=o((()=>{y2()})),x2=o((()=>{y2(),mhe()}));function S2(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;hhe(e,n,{name:t,index:r,group:i,on:E2,tween:D2,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function C2(e,t){var n=T2(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function w2(e,t){var n=T2(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function T2(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function hhe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=a2(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return b2(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(b2(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}var E2,D2,O2=o((()=>{b0(),x2(),E2=g0(`start`,`end`,`cancel`,`interrupt`),D2=[]}));function ghe(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var _he=o((()=>{O2()}));function vhe(e){return this.each(function(){ghe(this,e)})}var yhe=o((()=>{_he()}));function bhe(e,t){var n,r;return function(){var i=w2(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function xhe(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=w2(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function She(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=T2(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?bhe:xhe)(n,e,t))}function k2(e,t,n){var r=e._id;return e.each(function(){var e=w2(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return T2(e,r).value[t]}}var A2=o((()=>{O2()}));function j2(e,t){var n;return(typeof t==`number`?DE:t instanceof GT?TE:(n=GT(t))?(t=n,TE):kE)(e,t)}var M2=o((()=>{bE(),UE()}));function Che(e){return function(){this.removeAttribute(e)}}function whe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function The(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ehe(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function Dhe(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ohe(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function khe(e,t){var n=w0(e),r=n===`transform`?HE:j2;return this.attrTween(e,typeof t==`function`?(n.local?Ohe:Dhe)(n,r,k2(this,`attr.`+e,t)):t==null?(n.local?whe:Che)(n):(n.local?Ehe:The)(n,r,t))}var Ahe=o((()=>{UE(),n2(),A2(),M2()}));function jhe(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Mhe(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Nhe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Mhe(e,i)),n}return i._value=t,i}function Phe(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&jhe(e,i)),n}return i._value=t,i}function Fhe(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=w0(e);return this.tween(n,(r.local?Nhe:Phe)(r,t))}var Ihe=o((()=>{n2()}));function Lhe(e,t){return function(){C2(this,e).delay=+t.apply(this,arguments)}}function Rhe(e,t){return t=+t,function(){C2(this,e).delay=t}}function zhe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Lhe:Rhe)(t,e)):T2(this.node(),t).delay}var Bhe=o((()=>{O2()}));function Vhe(e,t){return function(){w2(this,e).duration=+t.apply(this,arguments)}}function Hhe(e,t){return t=+t,function(){w2(this,e).duration=t}}function Uhe(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Vhe:Hhe)(t,e)):T2(this.node(),t).duration}var Whe=o((()=>{O2()}));function Ghe(e,t){if(typeof t!=`function`)throw Error();return function(){w2(this,e).ease=t}}function Khe(e){var t=this._id;return arguments.length?this.each(Ghe(t,e)):T2(this.node(),t).ease}var qhe=o((()=>{O2()}));function Jhe(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();w2(this,e).ease=n}}function Yhe(e){if(typeof e!=`function`)throw Error();return this.each(Jhe(this._id,e))}var Xhe=o((()=>{O2()}));function Zhe(e){typeof e!=`function`&&(e=M0(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new F2(r,this._parents,this._name,this._id)}var Qhe=o((()=>{n2(),z2()}));function $he(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new F2(o,this._parents,this._name,this._id)}var ege=o((()=>{z2()}));function tge(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function nge(e,t,n){var r,i,a=tge(t)?C2:w2;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function rge(e,t){var n=this._id;return arguments.length<2?T2(this.node(),n).on.on(e):this.each(nge(n,e,t))}var ige=o((()=>{O2()}));function age(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function oge(){return this.on(`end.remove`,age(this._id))}var sge=o((()=>{}));function cge(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=O0(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,S2(l[f],t,n,f,l,T2(u,n)));return new F2(a,this._parents,t,n)}var lge=o((()=>{n2(),z2(),O2()}));function uge(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=A0(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=T2(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&S2(p,t,n,h,f,m);a.push(f),o.push(u)}return new F2(a,o,t,n)}var dge=o((()=>{n2(),z2(),O2()}));function fge(){return new N2(this._groups,this._parents)}var N2,pge=o((()=>{n2(),N2=Q0.prototype.constructor}));function mge(e,t){var n,r,i;return function(){var a=U0(this,e),o=(this.style.removeProperty(e),U0(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function P2(e){return function(){this.style.removeProperty(e)}}function hge(e,t,n){var r,i=n+``,a;return function(){var o=U0(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function gge(e,t,n){var r,i,a;return function(){var o=U0(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),U0(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function _ge(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=w2(this,e),l=c.on,u=c.value[a]==null?s||=P2(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function vge(e,t,n){var r=(e+=``)==`transform`?VE:j2;return t==null?this.styleTween(e,mge(e,r)).on(`end.style.`+e,P2(e)):typeof t==`function`?this.styleTween(e,gge(e,r,k2(this,`style.`+e,t))).each(_ge(this._id,e)):this.styleTween(e,hge(e,r,t),n).on(`end.style.`+e,null)}var yge=o((()=>{UE(),n2(),O2(),A2(),M2()}));function bge(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function xge(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&bge(e,a,n)),r}return a._value=t,a}function Sge(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,xge(e,t,n??``))}var Cge=o((()=>{}));function wge(e){return function(){this.textContent=e}}function Tge(e){return function(){this.textContent=e(this)??``}}function Ege(e){return this.tween(`text`,typeof e==`function`?Tge(k2(this,`text`,e)):wge(e==null?``:e+``))}var Dge=o((()=>{A2()}));function Oge(e){return function(t){this.textContent=e.call(this,t)}}function kge(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Oge(r)),t}return r._value=e,r}function Age(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,kge(e))}var jge=o((()=>{}));function Mge(){for(var e=this._name,t=this._id,n=I2(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=T2(c,t);S2(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new F2(r,this._parents,e,n)}var Nge=o((()=>{z2(),O2()}));function Pge(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=w2(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Fge=o((()=>{O2()}));function F2(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Ige(e){return Q0().transition(e)}function I2(){return++L2}var L2,R2,z2=o((()=>{n2(),Ahe(),Ihe(),Bhe(),Whe(),qhe(),Xhe(),Qhe(),ege(),ige(),sge(),lge(),dge(),pge(),yge(),Cge(),Dge(),jge(),Nge(),A2(),Fge(),L2=0,R2=Q0.prototype,F2.prototype=Ige.prototype={constructor:F2,select:cge,selectAll:uge,selectChild:R2.selectChild,selectChildren:R2.selectChildren,filter:Zhe,merge:$he,selection:fge,transition:Mge,call:R2.call,nodes:R2.nodes,node:R2.node,size:R2.size,empty:R2.empty,each:R2.each,on:rge,attr:khe,attrTween:Fhe,style:vge,styleTween:Sge,text:Ege,textTween:Age,remove:oge,tween:She,delay:zhe,duration:Uhe,ease:Khe,easeVarying:Yhe,end:Pge,[Symbol.iterator]:R2[Symbol.iterator]}}));function Lge(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Rge=o((()=>{})),B2=o((()=>{Rge()}));function zge(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Bge(e){var t,n;e instanceof F2?(t=e._id,e=e._name):(t=I2(),(n=V2).time=r2(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&S2(c,e,t,l,o,n||zge(c,t));return new F2(r,this._parents,e,t)}var V2,Vge=o((()=>{z2(),O2(),B2(),x2(),V2={time:null,delay:0,duration:250,ease:Lge}})),Hge=o((()=>{n2(),yhe(),Vge(),Q0.prototype.interrupt=vhe,Q0.prototype.transition=Bge})),H2=o((()=>{Hge()}));function U2(e){return{type:e}}var Uge,Wge,Gge,Kge=o((()=>{H2(),{abs:Uge,max:Wge,min:Gge}=Math,[`w`,`e`].map(U2),[`n`,`s`].map(U2),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(U2)})),qge=o((()=>{Kge()})),Jge=o((()=>{})),Yge=o((()=>{})),Xge=o((()=>{})),Zge=o((()=>{})),Qge=o((()=>{})),$ge=o((()=>{})),e_e=o((()=>{}));function t_e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function W2(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var G2=o((()=>{}));function n_e(e){return e=W2(Math.abs(e)),e?e[1]:NaN}var r_e=o((()=>{G2()}));function i_e(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var a_e=o((()=>{}));function o_e(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var s_e=o((()=>{}));function K2(e){if(!(t=J2.exec(e)))throw Error(`invalid format: `+e);var t;return new q2({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]})}function q2(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+``}var J2,c_e=o((()=>{J2=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,K2.prototype=q2.prototype,q2.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 l_e(e){out: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 out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var u_e=o((()=>{}));function d_e(e,t){var n=W2(e,t);if(!n)return Y2=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Y2=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+W2(e,Math.max(0,t+a-1))[0]}var Y2,X2=o((()=>{G2()}));function Z2(e,t){var n=W2(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var f_e=o((()=>{G2()})),Q2,p_e=o((()=>{G2(),X2(),f_e(),Q2={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:t_e,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)=>Z2(e*100,t),r:Z2,s:d_e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function $2(e){return e}var m_e=o((()=>{}));function h_e(e){var t=e.grouping===void 0||e.thousands===void 0?$2:i_e(e4.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?$2:o_e(e4.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=K2(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Q2[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Q2[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=l_e(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&Y2!==void 0?t4[8+Y2/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(n_e(t)/3)))*3,r=10**-n,i=l((e=K2(e),e.type=`f`,e),{suffix:t4[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var e4,t4,g_e=o((()=>{r_e(),a_e(),s_e(),c_e(),u_e(),p_e(),X2(),m_e(),e4=Array.prototype.map,t4=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function __e(e){return n4=h_e(e),v_e=n4.format,y_e=n4.formatPrefix,n4}var n4,v_e,y_e,b_e=o((()=>{g_e(),__e({thousands:`,`,grouping:[3],currency:[`$`,``]})})),x_e=o((()=>{b_e()})),S_e=o((()=>{})),C_e=o((()=>{})),w_e=o((()=>{})),T_e=o((()=>{})),E_e=o((()=>{}));function r4(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>r4(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(i4.setTime(+t),a4.setTime(+r),e(i4),e(a4),Math.floor(n(i4,a4))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var i4,a4,o4=o((()=>{i4=new Date,a4=new Date})),s4,c4,l4,u4,d4,f4=o((()=>{s4=1e3,c4=s4*60,l4=c4*60,u4=l4*24,d4=u4*7,u4*30,u4*365})),p4,m4,h4,D_e=o((()=>{o4(),f4(),p4=r4(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c4)/u4,e=>e.getDate()-1),p4.range,m4=r4(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/u4,e=>e.getUTCDate()-1),m4.range,h4=r4(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/u4,e=>Math.floor(e/u4)),h4.range}));function g4(e){return r4(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*c4)/d4)}function _4(e){return r4(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/d4)}var v4,y4,b4,x4,S4,C4,w4,T4,E4,D4,O4,k4,A4,j4,O_e=o((()=>{o4(),f4(),v4=g4(0),y4=g4(1),b4=g4(2),x4=g4(3),S4=g4(4),C4=g4(5),w4=g4(6),v4.range,y4.range,b4.range,x4.range,S4.range,C4.range,w4.range,T4=_4(0),E4=_4(1),D4=_4(2),O4=_4(3),k4=_4(4),A4=_4(5),j4=_4(6),T4.range,E4.range,D4.range,O4.range,k4.range,A4.range,j4.range})),M4,N4,k_e=o((()=>{o4(),M4=r4(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()),M4.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:r4(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)}),M4.range,N4=r4(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()),N4.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:r4(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)}),N4.range})),P4=o((()=>{D_e(),O_e(),k_e()}));function F4(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 I4(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 L4(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function A_e(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=z4(i),u=B4(i),d=z4(a),f=B4(a),p=z4(o),m=B4(o),h=z4(s),g=B4(s),_=z4(c),v=B4(c),y={a:N,A:ee,b:te,B:ne,c:null,d:G4,e:G4,f:Z_e,g:sve,G:lve,H:J_e,I:Y_e,j:X_e,L:K4,m:Q_e,M:$_e,p:re,q:ie,Q:Q4,s:$4,S:eve,u:tve,U:nve,V:rve,w:ive,W:ave,x:null,X:null,y:ove,Y:cve,Z:uve,"%":Z4},b={a:ae,A:oe,b:se,B:ce,c:null,d:J4,e:J4,f:mve,g:wve,G:Eve,H:dve,I:fve,j:pve,L:Y4,m:hve,M:gve,p:P,q:le,Q:Q4,s:$4,S:_ve,u:vve,U:yve,V:bve,w:xve,W:Sve,x:null,X:null,y:Cve,Y:Tve,Z:Dve,"%":Z4},x={a:E,A:D,b:O,B:k,c:A,d:U4,e:U4,f:W_e,g:H4,G:V4,H:W4,I:W4,j:B_e,L:U_e,m:z_e,M:V_e,p:T,q:R_e,Q:K_e,s:q_e,S:H_e,u:N_e,U:P_e,V:F_e,w:M_e,W:I_e,x:j,X:M,y:H4,Y:V4,Z:L_e,"%":G_e};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=e3[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=L4(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=I4(L4(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?E4.ceil(a):E4(a),a=m4.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=F4(L4(r.y,0,1)),o=a.getDay(),a=o>4||o===0?y4.ceil(a):y4(a),a=p4.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:`W`in r?1:0),o=`Z`in r?I4(L4(r.y,0,1)).getUTCDay():F4(L4(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,I4(r)):F4(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in e3?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,n,r){return w(e,t,n,r)}function j(e,t,r){return w(e,n,t,r)}function M(e,t,n){return w(e,r,t,n)}function N(e){return o[e.getDay()]}function ee(e){return a[e.getDay()]}function te(e){return c[e.getMonth()]}function ne(e){return s[e.getMonth()]}function re(e){return i[+(e.getHours()>=12)]}function ie(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function P(e){return i[+(e.getUTCHours()>=12)]}function le(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}function R4(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function j_e(e){return e.replace(r3,`\\$&`)}function z4(e){return RegExp(`^(?:`+e.map(j_e).join(`|`)+`)`,`i`)}function B4(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function M_e(e,t,n){var r=t3.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function N_e(e,t,n){var r=t3.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function P_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function F_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function I_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function V4(e,t,n){var r=t3.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function H4(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function L_e(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 R_e(e,t,n){var r=t3.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function z_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function U4(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function B_e(e,t,n){var r=t3.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function W4(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function V_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function H_e(e,t,n){var r=t3.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function U_e(e,t,n){var r=t3.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function W_e(e,t,n){var r=t3.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function G_e(e,t,n){var r=n3.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function K_e(e,t,n){var r=t3.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function q_e(e,t,n){var r=t3.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function G4(e,t){return R4(e.getDate(),t,2)}function J_e(e,t){return R4(e.getHours(),t,2)}function Y_e(e,t){return R4(e.getHours()%12||12,t,2)}function X_e(e,t){return R4(1+p4.count(M4(e),e),t,3)}function K4(e,t){return R4(e.getMilliseconds(),t,3)}function Z_e(e,t){return K4(e,t)+`000`}function Q_e(e,t){return R4(e.getMonth()+1,t,2)}function $_e(e,t){return R4(e.getMinutes(),t,2)}function eve(e,t){return R4(e.getSeconds(),t,2)}function tve(e){var t=e.getDay();return t===0?7:t}function nve(e,t){return R4(v4.count(M4(e)-1,e),t,2)}function q4(e){var t=e.getDay();return t>=4||t===0?S4(e):S4.ceil(e)}function rve(e,t){return e=q4(e),R4(S4.count(M4(e),e)+(M4(e).getDay()===4),t,2)}function ive(e){return e.getDay()}function ave(e,t){return R4(y4.count(M4(e)-1,e),t,2)}function ove(e,t){return R4(e.getFullYear()%100,t,2)}function sve(e,t){return e=q4(e),R4(e.getFullYear()%100,t,2)}function cve(e,t){return R4(e.getFullYear()%1e4,t,4)}function lve(e,t){var n=e.getDay();return e=n>=4||n===0?S4(e):S4.ceil(e),R4(e.getFullYear()%1e4,t,4)}function uve(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+R4(t/60|0,`0`,2)+R4(t%60,`0`,2)}function J4(e,t){return R4(e.getUTCDate(),t,2)}function dve(e,t){return R4(e.getUTCHours(),t,2)}function fve(e,t){return R4(e.getUTCHours()%12||12,t,2)}function pve(e,t){return R4(1+m4.count(N4(e),e),t,3)}function Y4(e,t){return R4(e.getUTCMilliseconds(),t,3)}function mve(e,t){return Y4(e,t)+`000`}function hve(e,t){return R4(e.getUTCMonth()+1,t,2)}function gve(e,t){return R4(e.getUTCMinutes(),t,2)}function _ve(e,t){return R4(e.getUTCSeconds(),t,2)}function vve(e){var t=e.getUTCDay();return t===0?7:t}function yve(e,t){return R4(T4.count(N4(e)-1,e),t,2)}function X4(e){var t=e.getUTCDay();return t>=4||t===0?k4(e):k4.ceil(e)}function bve(e,t){return e=X4(e),R4(k4.count(N4(e),e)+(N4(e).getUTCDay()===4),t,2)}function xve(e){return e.getUTCDay()}function Sve(e,t){return R4(E4.count(N4(e)-1,e),t,2)}function Cve(e,t){return R4(e.getUTCFullYear()%100,t,2)}function wve(e,t){return e=X4(e),R4(e.getUTCFullYear()%100,t,2)}function Tve(e,t){return R4(e.getUTCFullYear()%1e4,t,4)}function Eve(e,t){var n=e.getUTCDay();return e=n>=4||n===0?k4(e):k4.ceil(e),R4(e.getUTCFullYear()%1e4,t,4)}function Dve(){return`+0000`}function Z4(){return`%`}function Q4(e){return+e}function $4(e){return Math.floor(e/1e3)}var e3,t3,n3,r3,Ove=o((()=>{P4(),e3={"-":``,_:` `,0:`0`},t3=/^\s*\d+/,n3=/^%/,r3=/[\\^$*+?|[\]().{}]/g}));function kve(e){return i3=A_e(e),Ave=i3.format,jve=i3.parse,Mve=i3.utcFormat,Nve=i3.utcParse,i3}var i3,Ave,jve,Mve,Nve,Pve=o((()=>{Ove(),kve({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`]})})),Fve=o((()=>{Pve()}));function a3(e,t,n){this.k=e,this.x=t,this.y=n}function Ive(e){for(;!e.__zoom;)if(!(e=e.parentNode))return o3;return e.__zoom}var o3,s3=o((()=>{a3.prototype={constructor:a3,scale:function(e){return e===1?this:new a3(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new a3(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},o3=new a3(1,0,0),Ive.prototype=a3.prototype})),Lve=o((()=>{H2(),s3()})),Rve=o((()=>{Lve(),s3()})),c3=o((()=>{ET(),Jfe(),qge(),Jge(),bE(),Yge(),Xge(),b0(),lhe(),Zge(),B2(),Qge(),e_e(),x_e(),S_e(),C_e(),UE(),Zu(),w_e(),$ge(),T_e(),pA(),E_e(),n2(),uf(),P4(),Fve(),x2(),H2(),Rve()})),l3,u3,d3,zve=o((()=>{l3=u(f(),1),o1(),c3(),m1(),E1(),P1(),S1(),U1(),u3=s1(),d3=l3.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let[c,l]=(0,l3.useState)(null),u=V1();try{let d={showTooltip:n?.showTooltip??!0,showLegend:n?.showLegend??!0,leftYAxisFormat:n?.leftYAxisFormat};if(!e||e.length===0)return(0,u3.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,u3.jsxs)(`div`,{className:`dc:text-center`,children:[(0,u3.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,u3.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in treemap chart`})]})});let f,p=!1,m;if(t?.xAxis&&t?.yAxis){let n=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,i=Array.isArray(t.yAxis)?t.yAxis[0]:t.yAxis;m=Array.isArray(t.series)?t.series[0]:t.series;let o=b1(r,n);if(m){let t=e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t}).filter(e=>!isNaN(e));if(p=t.length===e.length&&t.every(e=>typeof e==`number`),p){let r=Math.min(...t),a=Math.max(...t),s=GD().domain([r,a]).range(j1);f=e.map(e=>{let t=s(typeof e[m]==`string`?parseFloat(e[m]):e[m]);return{name:y1(e[n],o)||String(e[n])||`Unknown`,size:typeof e[i]==`string`?parseFloat(e[i]):e[i]||0,fill:t,series:String(e[m])}})}else{let t=[...new Set(e.map(e=>String(e[m])))],r=AT().domain(t).range(a?.colors||A1);f=e.map(e=>({name:y1(e[n],o)||String(e[n])||`Unknown`,size:typeof e[i]==`string`?parseFloat(e[i]):e[i]||0,fill:r(String(e[m])),series:String(e[m])}))}}else f=e.map((e,t)=>({name:y1(e[n],o)||String(e[n])||`Unknown`,size:typeof e[i]==`string`?parseFloat(e[i]):e[i]||0,fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length]}))}else{let t=e[0],n=Object.keys(t),r=n.find(e=>typeof t[e]==`string`||e.toLowerCase().includes(`name`)||e.toLowerCase().includes(`label`)||e.toLowerCase().includes(`category`))||n[0],o=n.find(e=>e.toLowerCase().includes(`size`))||n.find(e=>typeof t[e]==`number`&&e!==r)||n[1];if(!o)return(0,u3.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,u3.jsxs)(`div`,{className:`dc:text-center`,children:[(0,u3.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,u3.jsx)(`div`,{className:`dc:text-xs`,children:`No numeric field found for treemap chart size`})]})});f=e.map((e,t)=>{let n=e[r];return n=typeof n==`boolean`?n?`Active`:`Inactive`:n===`true`||n===`false`?n===`true`?`Active`:`Inactive`:String(n),{name:n,size:typeof e[o]==`string`?parseFloat(e[o]):e[o]||0,fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length]}})}if(f=f.filter(e=>e.size!=null&&e.size>0),f.length===0)return(0,u3.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,u3.jsxs)(`div`,{className:`dc:text-center`,children:[(0,u3.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,u3.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for treemap chart after transformation`})]})});let h=e=>{let{x:n,y:i,width:u,height:p,index:m,name:h,size:g}=e;return u<20||p<20?null:(0,u3.jsxs)(`g`,{children:[(0,u3.jsx)(`rect`,{x:n,y:i,width:u,height:p,style:{fill:f[m]?.fill||a?.colors&&a.colors[m%a.colors.length]||A1[m%A1.length],fillOpacity:c===null?.8:c===m?1:.6,stroke:`#fff`,strokeWidth:2,cursor:s?`pointer`:`default`,pointerEvents:`all`},onMouseEnter:()=>l(m),onMouseLeave:()=>l(null),onClick:s&&o?e=>{e.stopPropagation();let n=f[m];n&&o&&o({dataPoint:n,clickedField:r?.measures?.[0]||t?.yAxis?.[0]||``,xValue:h,position:{x:e.clientX,y:e.clientY},nativeEvent:e})}:void 0}),(0,u3.jsx)(`foreignObject`,{x:n,y:i,width:u,height:p,style:{pointerEvents:`none`,overflow:`visible`},children:(0,u3.jsxs)(`div`,{style:{width:`100%`,height:`100%`,display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`4px`,boxSizing:`border-box`,color:`#ffffff`,textShadow:`0 1px 2px rgba(0,0,0,0.8)`,fontFamily:`system-ui, -apple-system, sans-serif`,overflow:`hidden`},children:[u>40&&p>30&&(0,u3.jsx)(`div`,{style:{fontSize:`${Math.max(10,Math.min(u/8,p/8,16))}px`,fontWeight:`600`,textAlign:`center`,lineHeight:`1.2`,marginBottom:u>60&&p>45?`4px`:`0`,wordBreak:`break-word`,hyphens:`auto`},children:h}),u>60&&p>45&&(0,u3.jsx)(`div`,{style:{fontSize:`${Math.max(8,Math.min(u/10,p/10,14))}px`,textAlign:`center`,opacity:.9},children:d.leftYAxisFormat?v1(g,d.leftYAxisFormat):typeof g==`number`?g.toLocaleString():g})]})})]})},g=f.some(e=>`series`in e)?[...new Set(f.map(e=>e.series).filter(Boolean))]:[],_=[];if(d.showLegend&&m)if(p){let t=Math.min(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t})),n=Math.max(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t}));_=j1.map((e,r)=>{let i=r/(j1.length-1),a=t+(n-t)*i;return{value:d.leftYAxisFormat?v1(a,d.leftYAxisFormat):a.toFixed(2),type:`rect`,color:e}})}else g.length>1&&(_=g.map((e,t)=>({value:e,type:`rect`,color:A1[t%A1.length]})));let v=d.showLegend&&_.length>0;return(0,u3.jsxs)(`div`,{className:`dc:w-full`,style:{height:v?typeof i==`string`&&i.includes(`%`)?i:typeof i==`number`?i+60:`calc(${i} + 60px)`:i},children:[(0,u3.jsx)(d1,{height:v?`calc(100% - 50px)`:`100%`,children:(0,u3.jsx)(Wde,{data:f,dataKey:`size`,aspectRatio:4/3,stroke:`#fff`,content:(0,u3.jsx)(h,{}),children:d.showTooltip&&(0,u3.jsx)(C1,{formatter:d.leftYAxisFormat?(e,t)=>[v1(e,d.leftYAxisFormat),t]:void 0})})}),v&&(0,u3.jsx)(`div`,{className:`dc:flex dc:justify-center dc:items-center dc:mt-4 dc:pb-2`,children:p?(0,u3.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,u3.jsx)(`div`,{className:`dc:text-xs dc:font-semibold text-dc-text-primary dc:mb-2`,children:m?u(m):``}),(0,u3.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,u3.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:d.leftYAxisFormat?v1(Math.min(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t})),d.leftYAxisFormat):Math.min(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t})).toFixed(2)}),(0,u3.jsx)(`div`,{className:`dc:h-4 dc:rounded-sm`,style:{width:`200px`,background:`linear-gradient(to right, ${j1.join(`, `)})`}}),(0,u3.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:d.leftYAxisFormat?v1(Math.max(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t})),d.leftYAxisFormat):Math.max(...e.map(e=>{let t=e[m];return typeof t==`string`?parseFloat(t):t})).toFixed(2)})]})]}):(0,u3.jsx)(`div`,{className:`dc:flex dc:flex-wrap dc:justify-center dc:gap-4`,children:_.map((e,t)=>(0,u3.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-2`,children:[(0,u3.jsx)(`div`,{className:`dc:w-3 dc:h-3 rounded-xs`,style:{backgroundColor:e.color}}),(0,u3.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:e.value})]},t))})})]})}catch(e){return(0,u3.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,u3.jsxs)(`div`,{className:`dc:text-center`,children:[(0,u3.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`TreeMap Chart Error`}),(0,u3.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,u3.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function Bve(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return Object.keys(n).concat(Object.keys(r)).forEach(a),i}function Vve(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function f3(e,t){let n=Vve(e,t);for(let r in I3)r in P3?r in e&&!(r in n)&&(n[r]=P3[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function Hve(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=f3(r[e]||i[e],a)}return o(t),n.forEach(o),f3(e,a)}function p3(e,t){let n=[];if(typeof e!=`object`||typeof e.icons!=`object`)return n;e.not_found instanceof Array&&e.not_found.forEach(e=>{t(e,null),n.push(e)});let r=Bve(e);for(let i in r){let a=r[i];a&&(t(i,Hve(e,i,a)),n.push(i))}return n}function m3(e,t){for(let n in t)if(n in e&&typeof e[n]!=typeof t[n])return!1;return!0}function h3(e){if(typeof e!=`object`||!e)return null;let t=e;if(typeof t.prefix!=`string`||!e.icons||typeof e.icons!=`object`||!m3(e,L3))return null;let n=t.icons;for(let e in n){let t=n[e];if(!e||typeof t.body!=`string`||!m3(t,I3))return null}let r=t.aliases||Object.create(null);for(let e in r){let t=r[e],i=t.parent;if(!e||typeof i!=`string`||!n[i]&&!r[i]||!m3(t,I3))return null}return t}function Uve(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function g3(e,t){let n=R3[e]||(R3[e]=Object.create(null));return n[t]||(n[t]=Uve(e,t))}function _3(e,t){return h3(t)?p3(t,(t,n)=>{n?e.icons[t]=n:e.missing.add(t)}):[]}function Wve(e,t,n){try{if(typeof n.body==`string`)return e.icons[t]={...n},!0}catch{}return!1}function v3(e){return typeof e==`boolean`&&(H3=e),H3}function y3(e){let t=typeof e==`string`?B3(e,!0,H3):e;if(t){let e=g3(t.provider,t.prefix),n=t.name;return e.icons[n]||(e.missing.has(n)?null:void 0)}}function Gve(e,t){let n=B3(e,!0,H3);if(!n)return!1;let r=g3(n.provider,n.prefix);return t?Wve(r,n.name,t):(r.missing.add(n.name),!0)}function Kve(e,t){if(typeof e!=`object`)return!1;if(typeof t!=`string`&&(t=e.provider||``),H3&&!t&&!e.prefix){let t=!1;return h3(e)&&(e.prefix=``,p3(e,(e,n)=>{Gve(e,n)&&(t=!0)})),t}let n=e.prefix;return V3({prefix:n,name:`a`})?!!_3(g3(t,n),e):!1}function b3(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(G3);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=K3.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function qve(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Jve(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Yve(e,t,n){let r=qve(e);return Jve(r.defs,t+r.content+n)}function Xve(e,t){let n={...F3,...e},r={...W3,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Yve(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=b3(d,c/l)):(u=o===`auto`?c:o,d=s===null?b3(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{q3(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}function Zve(e,t=Y3){let n=[],r;for(;r=J3.exec(e);)n.push(r[1]);if(!n.length)return e;let i=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(n=>{let r=typeof t==`function`?t(n):t+(X3++).toString(),a=n.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+a+`)([")]|\\.[a-z])`,`g`),`$1`+r+i+`$3`)}),e=e.replace(new RegExp(i,`g`),``),e}function Qve(e,t){Z3[e]=t}function x3(e){return Z3[e]||Z3[``]}function S3(e){let t;if(typeof e.resources==`string`)t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||`/`,maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}function $ve(e,t){let n=S3(t);return n===null?!1:(Q3[e]=n,!0)}function C3(e){return Q3[e]}function eye(e,t){let n=C3(e);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let e=0;n.resources.forEach(t=>{e=Math.max(e,t.length)});let i=t+`.json?icons=`;r=n.maxURL-e-n.path.length-i.length}return r}function tye(e){return e===404}function nye(e){if(typeof e==`string`){let t=C3(e);if(t)return t.path}return`/`}function w3(e,t){e.forEach(e=>{let n=e.loaderCallbacks;n&&(e.loaderCallbacks=n.filter(e=>e.id!==t))})}function rye(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;let t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let n=!1,r=e.provider,i=e.prefix;t.forEach(t=>{let a=t.icons,o=a.pending.length;a.pending=a.pending.filter(t=>{if(t.prefix!==i)return!0;let o=t.name;if(e.icons[o])a.loaded.push({provider:r,prefix:i,name:o});else if(e.missing.has(o))a.missing.push({provider:r,prefix:i,name:o});else return n=!0,!0;return!1}),a.pending.length!==o&&(n||w3([e],t.id),t.callback(a.loaded.slice(0),a.missing.slice(0),a.pending.slice(0),t.abort))})}))}function iye(e,t,n){let r=o6++,i=w3.bind(null,n,r);if(!t.pending.length)return i;let a={id:r,icons:t,callback:e,abort:i};return n.forEach(e=>{(e.loaderCallbacks||=[]).push(a)}),i}function aye(e){let t={loaded:[],missing:[],pending:[]},n=Object.create(null);e.sort((e,t)=>e.provider===t.provider?e.prefix===t.prefix?e.name.localeCompare(t.name):e.prefix.localeCompare(t.prefix):e.provider.localeCompare(t.provider));let r={provider:``,prefix:``,name:``};return e.forEach(e=>{if(r.name===e.name&&r.prefix===e.prefix&&r.provider===e.provider)return;r=e;let i=e.provider,a=e.prefix,o=e.name,s=n[i]||(n[i]=Object.create(null)),c=s[a]||(s[a]=g3(i,a)),l;l=o in c.icons?t.loaded:a===``||c.missing.has(o)?t.missing:t.pending;let u={provider:i,prefix:a,name:o};l.push(u)}),t}function oye(e,t=!0,n=!1){let r=[];return e.forEach(e=>{let i=typeof e==`string`?B3(e,t,n):e;i&&r.push(i)}),r}function sye(e,t,n,r){let i=e.resources.length,a=e.random?Math.floor(Math.random()*i):e.index,o;if(e.random){let t=e.resources.slice(0);for(o=[];t.length>1;){let e=Math.floor(Math.random()*t.length);o.push(t[e]),t=t.slice(0,e).concat(t.slice(e+1))}o=o.concat(t)}else o=e.resources.slice(a).concat(e.resources.slice(0,a));let s=Date.now(),c=`pending`,l=0,u,d=null,f=[],p=[];typeof r==`function`&&p.push(r);function m(){d&&=(clearTimeout(d),null)}function h(){c===`pending`&&(c=`aborted`),m(),f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function g(e,t){t&&(p=[]),typeof e==`function`&&p.push(e)}function _(){return{startTime:s,payload:t,status:c,queriesSent:l,queriesPending:f.length,subscribe:g,abort:h}}function v(){c=`failed`,p.forEach(e=>{e(void 0,u)})}function y(){f.forEach(e=>{e.status===`pending`&&(e.status=`aborted`)}),f=[]}function b(t,n,r){let i=n!==`success`;switch(f=f.filter(e=>e!==t),c){case`pending`:break;case`failed`:if(i||!e.dataAfterTimeout)return;break;default:return}if(n===`abort`){u=r,v();return}if(i){u=r,f.length||(o.length?x():v());return}if(m(),y(),!e.random){let n=e.resources.indexOf(t.resource);n!==-1&&n!==e.index&&(e.index=n)}c=`completed`,p.forEach(e=>{e(r)})}function x(){if(c!==`pending`)return;m();let r=o.shift();if(r===void 0){if(f.length){d=setTimeout(()=>{m(),c===`pending`&&(y(),v())},e.timeout);return}v();return}let i={status:`pending`,resource:r,callback:(e,t)=>{b(i,e,t)}};f.push(i),l++,d=setTimeout(x,e.rotate),n(r,t,i.callback)}return setTimeout(x),_}function T3(e){let t={...s6,...e},n=[];function r(){n=n.filter(e=>e().status===`pending`)}function i(e,i,a){let o=sye(t,e,i,(e,t)=>{r(),a&&a(e,t)});return n.push(o),o}function a(e){return n.find(t=>e(t))||null}return{query:i,find:a,setIndex:e=>{t.index=e},getIndex:()=>t.index,cleanup:r}}function E3(){}function cye(e){if(!c6[e]){let t=C3(e);if(!t)return;c6[e]={config:t,redundancy:T3(t)}}return c6[e]}function lye(e,t,n){let r,i;if(typeof e==`string`){let t=x3(e);if(!t)return n(void 0,424),E3;i=t.send;let a=cye(e);a&&(r=a.redundancy)}else{let t=S3(e);if(t){r=T3(t);let n=x3(e.resources?e.resources[0]:``);n&&(i=n.send)}}return!r||!i?(n(void 0,424),E3):r.query(t,i,n)().abort}function D3(){}function uye(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,rye(e)}))}function dye(e){let t=[],n=[];return e.forEach(e=>{(e.match(z3)?t:n).push(e)}),{valid:t,invalid:n}}function O3(e,t,n){function r(){let n=e.pendingIcons;t.forEach(t=>{n&&n.delete(t),e.icons[t]||e.missing.add(t)})}if(n&&typeof n==`object`)try{if(!_3(e,n).length){r();return}}catch(e){console.error(e)}r(),uye(e)}function k3(e,t){e instanceof Promise?e.then(e=>{t(e)}).catch(()=>{t(null)}):t(e)}function fye(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;let{provider:t,prefix:n}=e,r=e.iconsToLoad;if(delete e.iconsToLoad,!r||!r.length)return;let i=e.loadIcon;if(e.loadIcons&&(r.length>1||!i)){k3(e.loadIcons(r,n,t),t=>{O3(e,r,t)});return}if(i){r.forEach(r=>{k3(i(r,n,t),t=>{O3(e,[r],t?{prefix:n,icons:{[r]:t}}:null)})});return}let{valid:a,invalid:o}=dye(r);if(o.length&&O3(e,o,null),!a.length)return;let s=n.match(z3)?x3(t):null;if(!s){O3(e,a,null);return}s.prepare(t,n,a).forEach(n=>{lye(t,n,t=>{O3(e,n.icons,t)})})}))}function pye(e,t){let n={...e};for(let e in t){let r=t[e],i=typeof r;e in U3?(r===null||r&&(i===`string`||i===`number`))&&(n[e]=r):i===typeof n[e]&&(n[e]=e===`rotate`?r%4:r)}return n}function mye(e,t){t.split(u6).forEach(t=>{switch(t.trim()){case`horizontal`:e.hFlip=!0;break;case`vertical`:e.vFlip=!0;break}})}function hye(e,t=0){let n=e.replace(/^-?[0-9.]*/,``);function r(e){for(;e<0;)e+=4;return e%4}if(n===``){let t=parseInt(e);return isNaN(t)?0:r(t)}else if(n!==e){let t=0;switch(n){case`%`:t=25;break;case`deg`:t=90}if(t){let i=parseFloat(e.slice(0,e.length-n.length));return isNaN(i)?0:(i/=t,i%1==0?r(i):0)}}return t}function gye(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}function _ye(e){return e.replace(/"/g,`'`).replace(/%/g,`%25`).replace(/#/g,`%23`).replace(/</g,`%3C`).replace(/>/g,`%3E`).replace(/\s+/g,` `)}function vye(e){return`data:image/svg+xml,`+_ye(e)}function yye(e){return`url("`+vye(e)+`")`}function bye(){try{d6=window.trustedTypes.createPolicy(`iconify`,{createHTML:e=>e})}catch{d6=null}}function xye(e){return d6===void 0&&bye(),d6?d6.createHTML(e):e}function A3(e){return e+(e.match(/^[-0-9.]+$/)?`px`:``)}function j3(e){let[t,n]=(0,M3.useState)(!!e.ssr),[r,i]=(0,M3.useState)({});function a(t){if(t){let t=e.icon;if(typeof t==`object`)return{name:``,data:t};let n=y3(t);if(n)return{name:t,data:n}}return{name:``}}let[o,s]=(0,M3.useState)(a(!!e.ssr));function c(){let e=r.callback;e&&(e(),i({}))}function l(e){if(JSON.stringify(o)!==JSON.stringify(e))return c(),s(e),!0}function u(){var t;let n=e.icon;if(typeof n==`object`){l({name:``,data:n});return}let r=y3(n);l({name:n,data:r})&&(r===void 0?i({callback:l6([n],u)}):r&&((t=e.onLoad)==null||t.call(e,n)))}(0,M3.useEffect)(()=>(n(!0),c),[]),(0,M3.useEffect)(()=>{t&&u()},[e.icon,t]);let{name:d,data:f}=o;return f?b6({...F3,...f},e,d):e.children?e.children:e.fallback?e.fallback:(0,M3.createElement)(`span`,{})}var M3,N3,P3,F3,I3,L3,R3,z3,B3,V3,H3,U3,W3,G3,K3,q3,J3,Y3,X3,Z3,Q3,$3,e6,t6,n6,r6,i6,a6,o6,s6,c6,l6,u6,d6,f6,p6,m6,h6,g6,_6,v6,y6,b6,x6,S6=o((()=>{for(M3=u(f(),1),N3=Object.freeze({left:0,top:0,width:16,height:16}),P3=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),F3=Object.freeze({...N3,...P3}),I3=Object.freeze({...F3,body:``,hidden:!1}),L3={provider:``,aliases:{},not_found:{},...N3},R3=Object.create(null),z3=/^[a-z0-9]+(-[a-z0-9]+)*$/,B3=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!V3(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!V3(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!V3(e,n)?null:e}return null},V3=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1,H3=!1,U3=Object.freeze({width:null,height:null}),W3=Object.freeze({...U3,...P3}),G3=/(-?[0-9.]*[0-9]+[0-9.]*)/g,K3=/^-?[0-9.]*[0-9]+[0-9.]*$/g,q3=e=>e===`unset`||e===`undefined`||e===`none`,J3=/\sid="(\S+)"/g,Y3=`IconifyId`+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),X3=0,Z3=Object.create(null),Q3=Object.create(null),$3=[`https://api.simplesvg.com`,`https://api.unisvg.com`],e6=[];$3.length>0;)$3.length===1||Math.random()>.5?e6.push($3.shift()):e6.push($3.pop());Q3[``]=S3({resources:[`https://api.iconify.design`].concat(e6)}),t6=()=>{let e;try{if(e=fetch,typeof e==`function`)return e}catch{}},n6=t6(),r6=(e,t,n)=>{let r=[],i=eye(e,t),a=`icons`,o={type:a,provider:e,prefix:t,icons:[]},s=0;return n.forEach((n,c)=>{s+=n.length+1,s>=i&&c>0&&(r.push(o),o={type:a,provider:e,prefix:t,icons:[]},s=n.length),o.icons.push(n)}),r.push(o),r},i6=(e,t,n)=>{if(!n6){n(`abort`,424);return}let r=nye(t.provider);switch(t.type){case`icons`:{let e=t.prefix,n=t.icons.join(`,`),i=new URLSearchParams({icons:n});r+=e+`.json?`+i.toString();break}case`custom`:{let e=t.uri;r+=e.slice(0,1)===`/`?e.slice(1):e;break}default:n(`abort`,400);return}let i=503;n6(e+r).then(e=>{let t=e.status;if(t!==200){setTimeout(()=>{n(tye(t)?`abort`:`next`,t)});return}return i=501,e.json()}).then(e=>{if(typeof e!=`object`||!e){setTimeout(()=>{e===404?n(`abort`,e):n(`next`,i)});return}setTimeout(()=>{n(`success`,e)})}).catch(()=>{n(`next`,i)})},a6={prepare:r6,send:i6},o6=0,s6={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1},c6=Object.create(null),l6=(e,t)=>{let n=aye(oye(e,!0,v3()));if(!n.pending.length){let e=!0;return t&&setTimeout(()=>{e&&t(n.loaded,n.missing,n.pending,D3)}),()=>{e=!1}}let r=Object.create(null),i=[],a,o;return n.pending.forEach(e=>{let{provider:t,prefix:n}=e;if(n===o&&t===a)return;a=t,o=n,i.push(g3(t,n));let s=r[t]||(r[t]=Object.create(null));s[n]||(s[n]=[])}),n.pending.forEach(e=>{let{provider:t,prefix:n,name:i}=e,a=g3(t,n),o=a.pendingIcons||=new Set;o.has(i)||(o.add(i),r[t][n].push(i))}),i.forEach(e=>{let t=r[e.provider][e.prefix];t.length&&fye(e,t)}),t?iye(t,n,i):D3},u6=/[\s,]+/,f6={...W3,inline:!1},p6={xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,"aria-hidden":!0,role:`img`},m6={display:`inline-block`},h6={backgroundColor:`currentColor`},g6={backgroundColor:`transparent`},_6={Image:`var(--svg)`,Repeat:`no-repeat`,Size:`100% 100%`},v6={WebkitMask:h6,mask:h6,background:g6};for(let e in v6){let t=v6[e];for(let n in _6)t[e+n]=_6[n]}if(y6={...f6,inline:!0},b6=(e,t,n)=>{let r=t.inline?y6:f6,i=pye(r,t),a=t.mode||`svg`,o={},s=t.style||{},c={...a===`svg`?p6:{}};if(n){let e=B3(n,!1,!0);if(e){let t=[`iconify`];for(let n of[`provider`,`prefix`])e[n]&&t.push(`iconify--`+e[n]);c.className=t.join(` `)}}for(let e in t){let n=t[e];if(n!==void 0)switch(e){case`icon`:case`style`:case`children`:case`onLoad`:case`mode`:case`ssr`:case`fallback`:break;case`_ref`:c.ref=n;break;case`className`:c[e]=(c[e]?c[e]+` `:``)+n;break;case`inline`:case`hFlip`:case`vFlip`:i[e]=n===!0||n===`true`||n===1;break;case`flip`:typeof n==`string`&&mye(i,n);break;case`color`:o.color=n;break;case`rotate`:typeof n==`string`?i[e]=hye(n):typeof n==`number`&&(i[e]=n);break;case`ariaHidden`:case`aria-hidden`:n!==!0&&n!==`true`&&delete c[`aria-hidden`];break;default:r[e]===void 0&&(c[e]=n)}}let l=Xve(e,i),u=l.attributes;if(i.inline&&(o.verticalAlign=`-0.125em`),a===`svg`){c.style={...o,...s},Object.assign(c,u);let e=0,n=t.id;return typeof n==`string`&&(n=n.replace(/-/g,`_`)),c.dangerouslySetInnerHTML={__html:xye(Zve(l.body,n?()=>n+`ID`+ e++:`iconifyReact`))},(0,M3.createElement)(`svg`,c)}let{body:d,width:f,height:p}=e,m=a===`mask`||(a===`bg`?!1:d.indexOf(`currentColor`)!==-1),h=gye(d,{...u,width:f+``,height:p+``});return c.style={...o,"--svg":yye(h),width:A3(u.width),height:A3(u.height),...m6,...m?h6:g6,...s},(0,M3.createElement)(`span`,c)},v3(!0),Qve(``,a6),typeof document<`u`&&typeof window<`u`){let e=window;if(e.IconifyPreload!==void 0){let t=e.IconifyPreload,n=`Invalid IconifyPreload syntax.`;typeof t==`object`&&t&&(t instanceof Array?t:[t]).forEach(e=>{try{(typeof e!=`object`||!e||e instanceof Array||typeof e.icons!=`object`||typeof e.prefix!=`string`||!Kve(e))&&console.error(n)}catch{console.error(n)}})}if(e.IconifyProviders!==void 0){let t=e.IconifyProviders;if(typeof t==`object`&&t)for(let e in t){let n=`IconifyProviders[`+e+`] is invalid.`;try{let r=t[e];if(typeof r!=`object`||!r||r.resources===void 0)continue;$ve(e,r)||console.error(n)}catch{console.error(n)}}}}x6=(0,M3.forwardRef)((e,t)=>j3({...e,_ref:t})),(0,M3.forwardRef)((e,t)=>j3({inline:!0,...e,_ref:t}))})),C6,w6=o((()=>{C6={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0-18 0m9-3h.01"/><path d="M11 12h1v4h1"/></g>`}}));function T6({values:e,min:t,max:n,color:r=`#1f2937`,bucketCount:i=12,height:a=32,formatValue:o=e=>e.toString(),width:s,showAverageIndicator:c=!0,targetValue:l}){let u=Array(i).fill(0),d=n-t;e.forEach(e=>{if(d===0)u[Math.floor(i/2)]++;else{let n=Math.floor((e-t)/d*(i-1));n=Math.max(0,Math.min(i-1,n)),u[n]++}});let f=Math.max(...u),p=e.reduce((e,t)=>e+t,0)/e.length,m=d===0?50:(p-t)/d*100,h=l!==void 0&&d>0?(l-t)/d*100:null;return(0,E6.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center`,children:[(0,E6.jsxs)(`div`,{className:`dc:relative dc:flex dc:items-end dc:justify-center dc:space-x-0.5`,style:{height:`${a}px`,width:s?`${s}px`:`200px`,minWidth:`200px`},children:[u.map((e,t)=>{let n=f>0?e/f:0,i=.1;return(0,E6.jsx)(`div`,{className:`dc:flex-1 dc:rounded-t-sm dc:transition-all dc:duration-300 dc:ease-out`,style:{height:`${(e>0?Math.max(i,n):i)*a}px`,backgroundColor:r,opacity:e>0?.7+n*.3:.2},title:`${e} values in this range`},t)}),c&&(0,E6.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:bottom-0 dc:pointer-events-none`,style:{left:`${m}%`,transform:`translateX(-50%)`,width:`2px`,backgroundColor:`#ef4444`,opacity:.8,zIndex:10},title:`Average: ${o(p)}`,children:(0,E6.jsx)(`div`,{className:`dc:absolute dc:-top-1`,style:{left:`50%`,transform:`translateX(-50%)`,width:`0`,height:`0`,borderLeft:`4px solid transparent`,borderRight:`4px solid transparent`,borderTop:`6px solid #ef4444`}})}),h!==null&&l!==void 0&&(0,E6.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:bottom-0 dc:pointer-events-none`,style:{left:`${Math.max(0,Math.min(100,h))}%`,transform:`translateX(-50%)`,width:`2px`,backgroundColor:`#10b981`,opacity:.8,zIndex:11},title:`Target: ${o(l)}`,children:(0,E6.jsx)(`div`,{className:`dc:absolute dc:-top-1`,style:{left:`50%`,transform:`translateX(-50%)`,width:`0`,height:`0`,borderLeft:`4px solid transparent`,borderRight:`4px solid transparent`,borderTop:`6px solid #10b981`}})})]}),(0,E6.jsxs)(`div`,{className:`dc:flex dc:justify-between dc:mt-2 dc:text-xs text-dc-text-muted`,style:{width:s?`${s}px`:`200px`,minWidth:`200px`},children:[(0,E6.jsx)(`span`,{children:o(t)}),(0,E6.jsx)(`span`,{children:o(n)})]}),(0,E6.jsxs)(`div`,{className:`dc:text-center dc:mt-1 dc:text-xs text-dc-text-muted`,children:[`Average of `,e.length,` values`]})]})}var E6,D6=o((()=>{E6=s1()}));function Sye(e,t){let n=new Date(e);switch(t.toLowerCase()){case`day`:n.setHours(23,59,59,999);break;case`week`:{let e=6-n.getDay();n.setDate(n.getDate()+e),n.setHours(23,59,59,999);break}case`month`:n.setMonth(n.getMonth()+1,0),n.setHours(23,59,59,999);break;case`quarter`:{let e=n.getMonth(),t=Math.floor(e/3)*3+2;n.setMonth(t+1,0),n.setHours(23,59,59,999);break}case`year`:n.setMonth(11,31),n.setHours(23,59,59,999);break;default:n.setHours(23,59,59,999)}return n}function Cye(e,t,n){if(!e||!t||!n)return!0;let r=e[t];if(!r)return!0;let i=new Date(r);return isNaN(i.getTime())?!0:Sye(i,n)<=new Date}function wye(e,t){if(!e?.timeDimensions||e.timeDimensions.length===0)return null;if(t){let n=e.timeDimensions.find(e=>e.dimension===t||e.dimension?.includes(t)||t?.includes(e.dimension));if(n?.granularity)return n.granularity}return e.timeDimensions[0]?.granularity||null}function O6(e,t,n,r,i=!1){let a={filteredData:e,excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:null};if(e.length<2)return a;let o=wye(n,t);if(i)return{filteredData:e.slice(0,-1),excludedIncompletePeriod:!1,skippedLastPeriod:!0,granularity:o};if(!r||!t||!n?.timeDimensions||n.timeDimensions.length===0)return{...a,granularity:o};if(!o)return a;let s=e[e.length-1];return Cye(s,t,o)?{...a,granularity:o}:{filteredData:e.slice(0,-1),excludedIncompletePeriod:!0,skippedLastPeriod:!1,granularity:o}}var k6=o((()=>{})),A6,j6,M6,Tye=o((()=>{A6=u(f(),1),S6(),w6(),U1(),D6(),L1(),k6(),j6=s1(),M6=A6.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let[o,s]=(0,A6.useState)(32),[c,l]=(0,A6.useState)(250),u=(0,A6.useRef)(null),d=(0,A6.useRef)(null),f=V1(),p=(0,A6.useMemo)(()=>t?.yAxis?typeof t.yAxis==`string`?[t.yAxis]:Array.isArray(t.yAxis)?t.yAxis:[]:[],[t?.yAxis]),m=p[0]||``,h=r?.timeDimensions?.[0]?.dimension||void 0,g=(0,A6.useMemo)(()=>{if(!e||e.length===0)return[];let t=[...e];return h&&(t=t.sort((e,t)=>{let n=e[h],r=t[h];return n<r?-1:n>r?1:0})),t},[e,h]),{useLastCompletePeriod:_=!0,skipLastPeriod:v=!1}=n,{filteredData:y,excludedIncompletePeriod:b,skippedLastPeriod:x,granularity:S}=(0,A6.useMemo)(()=>g.length===0?{filteredData:[],excludedIncompletePeriod:!1,skippedLastPeriod:!1,granularity:void 0}:O6(g,h,r,_,v),[g,h,r,_,v]),C=y,w=(0,A6.useMemo)(()=>!m||C.length===0?[]:C.map(e=>{if(e[m]!==void 0)return e[m];let t=Object.keys(e).filter(t=>typeof e[t]==`number`&&!isNaN(e[t]));if(t.length>0)return e[t[0]]}).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e)),[C,m]),{avg:T,min:E,max:D}=(0,A6.useMemo)(()=>w.length===0?{avg:0,min:0,max:0}:{avg:w.reduce((e,t)=>e+t,0)/w.length,min:Math.min(...w),max:Math.max(...w)},[w]),O=(0,A6.useCallback)(e=>{if(n.formatValue)return n.formatValue(e);if(e==null)return`—`;let t=n.decimals??0,r=n.prefix??``,i;return i=Math.abs(e)>=1e9?(e/1e9).toFixed(t)+`B`:Math.abs(e)>=1e6?(e/1e6).toFixed(t)+`M`:Math.abs(e)>=1e3?(e/1e3).toFixed(t)+`K`:e.toFixed(t),r+i},[n]),k=w.length===1?w[0]:T,A=w.length>1,j=(0,A6.useMemo)(()=>{if(n.valueColorIndex!==void 0&&a?.colors){let e=n.valueColorIndex;if(e>=0&&e<a.colors.length)return a.colors[e]}return a?.colors?.[0]||`#1f2937`},[n.valueColorIndex,a?.colors]),M=(0,A6.useMemo)(()=>F1(n?.target||``),[n?.target]),N=M.length>0?M[0]:null,ee=N!==null&&w.length>0?wfe(k,N):null,te=(0,A6.useMemo)(()=>{if(ee===null)return`#6B7280`;if(ee>=0){let e=n.positiveColorIndex??1;return a?.colors?.[e]||`#10B981`}else{let e=n.negativeColorIndex??7;return a?.colors?.[e]||`#EF4444`}},[ee,n.positiveColorIndex,n.negativeColorIndex,a?.colors]);return(0,A6.useEffect)(()=>{let e=()=>{if(u.current){let e=u.current.getBoundingClientRect(),t=e.width,n=e.height;if(t>0&&n>0){let e=t/5,r=n/4;s(Math.max(24,Math.min(Math.min(e,r),120))),setTimeout(()=>{if(d.current){let e=d.current.getBoundingClientRect().width;l(Math.max(e,Math.min(t*.6,300)))}},10)}}},t=setTimeout(e,50),n=new ResizeObserver(()=>{setTimeout(e,10)});return u.current&&n.observe(u.current),()=>{clearTimeout(t),n.disconnect()}},[e,t]),!e||e.length===0?(0,j6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0},children:(0,j6.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,j6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,j6.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display`})]})}):p.length===0?(0,j6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0,backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},children:(0,j6.jsxs)(`div`,{className:`dc:text-center`,children:[(0,j6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,j6.jsx)(`div`,{className:`dc:text-xs`,children:`No measure fields configured`})]})}):w.length===0?(0,j6.jsxs)(`div`,{ref:u,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0},children:[(0,j6.jsx)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`},children:f(m)}),(0,j6.jsx)(`div`,{className:`dc:font-bold dc:leading-none text-dc-text-muted`,style:{fontSize:`${o}px`},children:`—`}),(0,j6.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted dc:mt-2`,children:`No data`})]}):(0,j6.jsxs)(`div`,{ref:u,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0},children:[(0,j6.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-3 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,j6.jsx)(`span`,{children:(()=>{let e=f(m);return e&&e.length>1?e:m})()}),(b||x)&&(0,j6.jsx)(`span`,{title:x?`Excludes last ${S||`period`}`:`Excludes current incomplete ${S}`,className:`dc:cursor-help`,children:(0,j6.jsx)(x6,{icon:C6,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})})]}),(0,j6.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:gap-4 dc:mb-3`,children:[(0,j6.jsx)(`div`,{ref:d,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${o}px`,color:j},children:O(k)}),N!==null&&ee!==null&&(0,j6.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-start`,children:[(0,j6.jsx)(`div`,{className:`dc:font-semibold`,style:{fontSize:`${Math.max(12,o*.3)}px`,color:te,lineHeight:`1.2`},children:Tfe(ee,1)}),(0,j6.jsxs)(`div`,{className:`text-dc-text-muted dc:text-xs`,style:{opacity:.7,fontSize:`${Math.max(10,o*.2)}px`},children:[`vs `,O(N)]})]})]}),n.suffix&&!n.formatValue&&(0,j6.jsx)(`div`,{className:`text-dc-text-muted dc:text-center`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),A&&(0,j6.jsx)(`div`,{className:`dc:mt-4`,children:(0,j6.jsx)(T6,{values:w,min:E,max:D,color:j,formatValue:O,height:24,width:c,targetValue:N||void 0})})]})})}));function Eye({values:e,lastValue:t,positiveColor:n,negativeColor:r,formatValue:i,width:a,height:o}){let s=Math.max(10,Math.floor(a/10)),c=e.length>s?e.slice(-s):e,l=c.map(e=>e-t),u=Math.min(...l,0),d=Math.max(...l,0);if(Math.max(Math.abs(u),Math.abs(d))===0||l.length===0)return(0,P6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center bg-dc-bg-secondary dc:rounded-sm dc:border border-dc-border`,style:{width:`${a}px`,height:`${o}px`},children:(0,P6.jsx)(`span`,{className:`dc:text-xs text-dc-text-muted`,children:`No variance data`})});let f=a-(c.length-1)*2,p=Math.max(4,f/c.length),m=d-u,h=m>0?d/m*100:50;return(0,P6.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-2`,children:[(0,P6.jsxs)(`div`,{className:`dc:relative`,style:{width:`${a}px`,height:`${o}px`},children:[(0,P6.jsx)(`div`,{className:`dc:absolute dc:left-0 dc:right-0`,style:{height:`1px`,top:`${h}%`,backgroundColor:`var(--dc-border)`,zIndex:1}}),l.map((e,t)=>{let a=Math.abs(e)/m,s=Math.max(2,a*(o-4)),l=e>=0,u=t===c.length-1,d=l?n:r;return(0,P6.jsx)(`div`,{className:`dc:absolute rounded-xs`,style:{left:`${t*(p+2)}px`,width:`${p}px`,height:`${s}px`,backgroundColor:d,opacity:u?1:.6,...l?{bottom:`${100-h}%`}:{top:`${h}%`},zIndex:2},title:`${i(c[t])}: ${e>=0?`+`:``}${i(e)} vs current`},t)})]}),(0,P6.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:justify-between dc:text-xs text-dc-text-muted`,style:{height:`${o}px`},children:[(0,P6.jsxs)(`span`,{children:[`+`,i(d)]}),(0,P6.jsxs)(`span`,{children:[``,i(u)]})]})]})}var N6,P6,F6,Dye=o((()=>{N6=u(f(),1),S6(),w6(),U1(),k6(),P6=s1(),F6=N6.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let[o,s]=(0,N6.useState)(32),[c,l]=(0,N6.useState)(250),u=(0,N6.useRef)(null),d=(0,N6.useRef)(null),f=V1();if((0,N6.useEffect)(()=>{let e=()=>{if(u.current){let e=u.current.getBoundingClientRect(),t=e.width,n=e.height;if(t>0&&n>0){let e=t/4,r=n/4;s(Math.max(28,Math.min(Math.min(e,r),140))),setTimeout(()=>{if(d.current){let e=d.current.getBoundingClientRect().width,n=t-100,r=Math.max(e,Math.min(n,t*.7));l(Math.max(100,r))}},10)}}},t=setTimeout(e,50),n=new ResizeObserver(()=>{setTimeout(e,10)});return u.current&&n.observe(u.current),()=>{clearTimeout(t),n.disconnect()}},[e,t]),!e||e.length===0)return(0,P6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0},children:(0,P6.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,P6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,P6.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display`})]})});let p=[],m=[];if(t?.yAxis&&(p=Array.isArray(t.yAxis)?t.yAxis:[t.yAxis]),t?.xAxis&&(m=Array.isArray(t.xAxis)?t.xAxis:[t.xAxis]),p.length===0)return(0,P6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0,backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},children:(0,P6.jsxs)(`div`,{className:`dc:text-center`,children:[(0,P6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,P6.jsx)(`div`,{className:`dc:text-xs`,children:`No measure field configured`})]})});let h=p[0],g=m[0],_=[...e];g&&(_=_.sort((e,t)=>{let n=e[g],r=t[g];return n<r?-1:n>r?1:0}));let{useLastCompletePeriod:v=!0,skipLastPeriod:y=!1}=n,{filteredData:b,excludedIncompletePeriod:x,skippedLastPeriod:S,granularity:C}=O6(_,g,r,v,y),w=b.map(e=>e[h]).filter(e=>e!=null&&!isNaN(Number(e))).map(e=>Number(e));if(w.length<2)return(0,P6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0,backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`},children:(0,P6.jsxs)(`div`,{className:`dc:text-center`,children:[(0,P6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Insufficient Data`}),(0,P6.jsx)(`div`,{className:`dc:text-xs`,children:`Delta calculation requires at least 2 data points`}),(0,P6.jsxs)(`div`,{className:`dc:text-xs`,children:[`Current data points: `,w.length]})]})});let T=w[w.length-1],E=w[w.length-2],D=T-E,O=E===0?0:D/Math.abs(E)*100,k=D>=0,A=e=>{if(n.formatValue)return n.formatValue(e);if(e==null)return`—`;let t=n.decimals??0,r=n.prefix??``,i;return i=Math.abs(e)>=1e9?(e/1e9).toFixed(t)+`B`:Math.abs(e)>=1e6?(e/1e6).toFixed(t)+`M`:Math.abs(e)>=1e3?(e/1e3).toFixed(t)+`K`:e.toFixed(t),r+i},j=()=>{if(n.positiveColorIndex!==void 0&&a?.colors){let e=n.positiveColorIndex;if(e>=0&&e<a.colors.length)return a.colors[e]}return`#10b981`},M=()=>{if(n.negativeColorIndex!==void 0&&a?.colors){let e=n.negativeColorIndex;if(e>=0&&e<a.colors.length)return a.colors[e]}return`#ef4444`},N=j(),ee=M(),te=k?N:ee;return(0,P6.jsxs)(`div`,{ref:u,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:i===`100%`?`100%`:i,minHeight:i===`100%`?`200px`:void 0},children:[(0,P6.jsxs)(`div`,{className:`text-dc-text-secondary dc:font-bold dc:text-center dc:mb-2 dc:flex dc:items-center dc:justify-center dc:gap-1`,style:{fontSize:`14px`,lineHeight:`1.2`},children:[(0,P6.jsx)(`span`,{children:(()=>{let e=f(h);return e&&e.length>1?e:h})()}),(x||S)&&(0,P6.jsx)(`span`,{title:S?`Excludes last ${C||`period`}`:`Excludes current incomplete ${C}`,className:`dc:cursor-help`,children:(0,P6.jsx)(x6,{icon:C6,className:`dc:w-4 dc:h-4 text-dc-text-muted dc:opacity-70`})})]}),(0,P6.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:space-x-4 dc:mb-2`,children:[(0,P6.jsx)(`div`,{ref:d,className:`dc:font-bold dc:leading-none`,style:{fontSize:`${o}px`,color:`var(--dc-text)`},children:A(T)}),(0,P6.jsxs)(`div`,{className:`dc:flex dc:items-center dc:space-x-1`,children:[(0,P6.jsx)(`div`,{className:`dc:font-bold`,style:{color:te,fontSize:`${o*.35}px`},children:k?`▲`:`▼`}),(0,P6.jsxs)(`div`,{className:`dc:text-left`,children:[(0,P6.jsxs)(`div`,{className:`dc:font-bold dc:leading-tight`,style:{fontSize:`${o*.35}px`,color:te},children:[k?`+`:``,A(D)]}),(0,P6.jsxs)(`div`,{className:`dc:font-semibold dc:leading-tight`,style:{fontSize:`${o*.28}px`,color:te,opacity:.8},children:[k?`+`:``,O.toFixed(1),`%`]})]})]})]}),n.suffix&&!n.formatValue&&(0,P6.jsx)(`div`,{className:`text-dc-text-muted dc:text-center dc:mb-3`,style:{fontSize:`14px`,lineHeight:`1.2`,opacity:.8},children:n.suffix}),n.showHistogram!==!1&&w.length>2&&(0,P6.jsx)(`div`,{className:`dc:mt-2 dc:w-full dc:flex dc:justify-center dc:overflow-hidden`,children:(0,P6.jsx)(Eye,{values:w,lastValue:T,positiveColor:N,negativeColor:ee,formatValue:A,width:c,height:64})})]})})})),I6,L6,R6,Oye=o((()=>{I6=u(f(),1),U1(),D6(),L6=s1(),R6=I6.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,colorPalette:i}){let[a,o]=(0,I6.useState)(28),[s,c]=(0,I6.useState)(0),l=(0,I6.useRef)(null),u=(0,I6.useRef)(null),d=V1();if((0,I6.useEffect)(()=>{let e=()=>{if(l.current){let e=l.current.getBoundingClientRect(),t=e.width,n=e.height;if(t>0&&n>0){let e=t/8,r=n/5;o(Math.max(18,Math.min(Math.min(e,r),80)))}}u.current&&c(u.current.getBoundingClientRect().width)},t=setTimeout(e,100),n=new ResizeObserver(()=>{clearTimeout(t),setTimeout(e,50)});return l.current&&n.observe(l.current),()=>{clearTimeout(t),n.disconnect()}},[e,t]),!e||e.length===0)return(0,L6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:(0,L6.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,L6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,L6.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display`})]})});let f=[];if(t?.yAxis&&(typeof t.yAxis==`string`?f=[t.yAxis]:Array.isArray(t.yAxis)&&(f=t.yAxis)),f.length===0)return(0,L6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-danger-bg)`,color:`var(--dc-danger)`,borderColor:`var(--dc-danger-border)`},children:(0,L6.jsxs)(`div`,{className:`dc:text-center`,children:[(0,L6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,L6.jsx)(`div`,{className:`dc:text-xs`,children:`No measure fields configured`})]})});let p=f[0],m=e.map(e=>{if(e[p]!==void 0)return e[p];let t=Object.keys(e);if(t.length>0)return e[t[0]]}).filter(e=>e!=null);if(m.length===0)return(0,L6.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full dc:h-full`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0,backgroundColor:`var(--dc-warning-bg)`,color:`var(--dc-warning)`,borderColor:`var(--dc-warning-border)`},children:(0,L6.jsxs)(`div`,{className:`dc:text-center`,children:[(0,L6.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,L6.jsx)(`div`,{className:`dc:text-xs`,children:`All values are null or invalid`})]})});let h=m.map(e=>Number(e)).filter(e=>!isNaN(e)),g,_=null,v=null,y=!1;h.length>0?m.length===1?g=m[0]:(g=h.reduce((e,t)=>e+t,0)/h.length,_=Math.min(...h),v=Math.max(...h),y=!0):g=m.length===1?m[0]:m.join(`, `);let b=e=>{if(n.formatValue)return n.formatValue(e);if(e==null)return`—`;let t=n.decimals??2;return Math.abs(e)>=1e9?(e/1e9).toFixed(t)+`B`:Math.abs(e)>=1e6?(e/1e6).toFixed(t)+`M`:Math.abs(e)>=1e3?(e/1e3).toFixed(t)+`K`:e.toFixed(t)},x=((e,t)=>{try{let n={value:typeof t==`number`?b(t):String(t),rawValue:t,field:p,fieldLabel:d(p),min:_===null?``:b(_),max:v===null?``:b(v),count:m.length};return e.replace(/\$\{(\w+)\}/g,(e,t)=>t in n?String(n[t]):e)}catch{return String(t)}})(n.template||"${fieldLabel}: ${value}",g),S=(()=>{if(n.valueColorIndex!==void 0&&i?.colors){let e=n.valueColorIndex;if(e>=0&&e<i.colors.length)return i.colors[e]}return i?.colors?.[0]||`#1f2937`})();return(0,L6.jsxs)(`div`,{ref:l,className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full dc:h-full dc:p-4`,style:{height:r===`100%`?`100%`:r,minHeight:r===`100%`?`200px`:void 0},children:[(0,L6.jsx)(`div`,{ref:u,className:`dc:font-bold dc:leading-tight dc:text-center`,style:{fontSize:`${a}px`,color:S},children:x}),y&&_!==null&&v!==null&&(0,L6.jsx)(`div`,{className:`dc:mt-4`,children:(0,L6.jsx)(T6,{values:m,min:_,max:v,color:S,formatValue:b,height:24,width:s||200})})]})})})),z6,B6=o((()=>{z6=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}})),V6,H6,U6=o((()=>{B6(),V6=class extends z6{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},H6=new V6}));function kye(e){setTimeout(e,0)}var W6,G6,K6,q6=o((()=>{W6={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},G6=class{#e=W6;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},K6=new G6}));function J6(){}function Aye(e,t){return typeof e==`function`?e(t):e}function jye(e){return typeof e==`number`&&e>=0&&e!==1/0}function Mye(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Y6(e,t){return typeof e==`function`?e(t):e}function Nye(e,t){return typeof e==`function`?e(t):e}function X6(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==Q6(o,t.options))return!1}else if(!e8(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function Z6(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if($6(t.options.mutationKey)!==$6(a))return!1}else if(!e8(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function Q6(e,t){return(t?.queryKeyHashFn||$6)(e)}function $6(e){return JSON.stringify(e,(e,t)=>r8(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function e8(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>e8(e[n],t[n])):!1}function t8(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=n8(e)&&n8(t);if(!r&&!(r8(e)&&r8(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:s8.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=t8(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function n8(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function r8(e){if(!i8(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!i8(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function i8(e){return Object.prototype.toString.call(e)===`[object Object]`}function Pye(e){return new Promise(t=>{K6.setTimeout(t,e)})}function Fye(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:t8(e,t)}function Iye(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function Lye(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}function a8(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===c8?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Rye(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var o8,s8,c8,l8=o((()=>{q6(),o8=typeof window>`u`||`Deno`in globalThis,s8=Object.prototype.hasOwnProperty,c8=Symbol()})),u8,d8=o((()=>{l8(),u8=(()=>{let e=()=>o8;return{isServer(){return e()},setIsServer(t){e=t}}})()}));function zye(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var Bye=o((()=>{}));function Vye(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=f8,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var f8,p8,m8=o((()=>{q6(),f8=kye,p8=Vye()})),h8,g8,_8=o((()=>{B6(),h8=class extends z6{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}},g8=new h8}));function Hye(e){return Math.min(1e3*2**e,3e4)}function v8(e){return(e??`online`)===`online`?g8.isOnline():!0}function y8(e){let t=!1,n=0,r,i=zye(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new b8(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>H6.isFocused()&&(e.networkMode===`always`||g8.isOnline())&&e.canRun(),u=()=>v8(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(u8.isServer()?0:3),o=e.retryDelay??Hye,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),Pye(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var b8,x8=o((()=>{U6(),_8(),Bye(),d8(),l8(),b8=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}}})),S8,C8=o((()=>{q6(),d8(),l8(),S8=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),jye(this.gcTime)&&(this.#e=K6.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(u8.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e&&=(K6.clearTimeout(this.#e),void 0)}}}));function Uye(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:v8(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function w8(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function T8(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var E8,Wye=o((()=>{l8(),m8(),x8(),C8(),E8=class extends S8{#e;#t;#n;#r;#i;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=T8(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=T8(this.options);e.data!==void 0&&(this.setState(w8(e.data,e.dataUpdatedAt)),this.#e=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#n.remove(this)}setData(e,t){let n=Fye(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#c({type:`setState`,state:e,setStateOptions:t})}cancel(e){let t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(J6).catch(J6):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#e}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Nye(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===c8||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Y6(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!Mye(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#o||this.#s()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#n.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#s(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#i?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},i=()=>{let e=a8(this.options,t),n=(()=>{let e={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#o=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:i};return r(e),e})();this.options.behavior?.onFetch(a,this),this.#t=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta}),this.#i=y8({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof b8&&e.revert&&this.setState({...this.#t,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#i.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#n.config.onSuccess?.(e,this),this.#n.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof b8){if(e.silent)return this.#i.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#n.config.onError?.(e,this),this.#n.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#c(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Uye(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...w8(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}})(this.state),p8.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#n.notify({query:this,type:`updated`,action:e})})}}}));function D8(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{Rye(e,()=>t.signal,()=>n=!0)},u=a8(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject();if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?Lye:Iye;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?Gye:O8,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:O8(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function O8(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gye(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Kye=o((()=>{l8()}));function qye(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var k8,Jye=o((()=>{m8(),C8(),x8(),k8=class extends S8{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||qye(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=y8({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){this.state=(t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}})(this.state),p8.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}}}));function A8(e){return e.options.scope?.id}var j8,Yye=o((()=>{m8(),Jye(),l8(),B6(),j8=class extends z6{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new k8({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=A8(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=A8(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=A8(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=A8(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){p8.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>Z6(t,e))}findAll(e={}){return this.getAll().filter(t=>Z6(e,t))}notify(e){p8.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return p8.batch(()=>Promise.all(e.map(e=>e.continue().catch(J6))))}}})),M8,Xye=o((()=>{l8(),Wye(),m8(),B6(),M8=class extends z6{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??Q6(r,t),a=this.get(i);return a||(a=new E8({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){p8.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>X6(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>X6(e,t)):t}notify(e){p8.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){p8.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){p8.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}}})),N8,Zye=o((()=>{l8(),Xye(),Yye(),U6(),_8(),m8(),Kye(),N8=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new M8,this.#t=e.mutationCache||new j8,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=H6.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=g8.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Y6(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=Aye(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return p8.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;p8.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return p8.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=p8.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(J6).catch(J6)}invalidateQueries(e,t={}){return p8.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=p8.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(J6)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(J6)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(Y6(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(J6).catch(J6)}fetchInfiniteQuery(e){return e.behavior=D8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(J6).catch(J6)}ensureInfiniteQueryData(e){return e.behavior=D8(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return g8.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set($6(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{e8(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set($6(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{e8(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=Q6(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===c8&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}}})),Qye=o((()=>{})),$ye=o((()=>{Zye(),Qye()})),ebe=o((()=>{})),tbe=o((()=>{$ye(),ebe()})),P8,nbe=o((()=>{P8={label:`Bar Chart`,description:`Compare values across categories`,useCase:`Best for comparing discrete categories, showing rankings, or displaying changes over time`,clickableElements:{bar:!0},dropZones:[{key:`xAxis`,label:`X-Axis (Categories)`,description:`Dimensions and time dimensions for grouping`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop dimensions & time dimensions here`},{key:`yAxis`,label:`Y-Axis (Values)`,description:`Measures for bar heights`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop measures here`,enableDualAxis:!0},{key:`series`,label:`Series (Split into Multiple Series)`,description:`Dimensions to create separate data series`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`Drop dimensions here to split data into series`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`stackType`,label:`Stacking`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`None`},{value:`normal`,label:`Stacked`},{value:`percent`,label:`Stacked 100%`}],description:`How to stack multiple bar series`},{key:`target`,label:`Target Values`,type:`string`,placeholder:`e.g., 100 or 50,75 for spread`,description:`Single value or comma-separated values to spread across X-axis`},{key:`leftYAxisFormat`,label:`Left Y-Axis Format`,type:`axisFormat`,description:`Number formatting for left Y-axis`},{key:`rightYAxisFormat`,label:`Right Y-Axis Format`,type:`axisFormat`,description:`Number formatting for right Y-axis`}]}})),F8,rbe=o((()=>{F8={label:`Line Chart`,description:`Show trends and changes over time`,useCase:`Best for continuous data, trends, time series, and showing relationships between multiple series`,clickableElements:{point:!0},dropZones:[{key:`xAxis`,label:`X-Axis (Time/Categories)`,description:`Time dimensions or dimensions for X-axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop time dimensions or dimensions here`},{key:`yAxis`,label:`Y-Axis (Values)`,description:`Measures for line values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop measures here`,enableDualAxis:!0},{key:`series`,label:`Series (Multiple Lines)`,description:`Dimensions to create separate lines`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`Drop dimensions here for multiple lines`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`connectNulls`,label:`Connect Nulls`,type:`boolean`,defaultValue:!1,description:`Draw continuous line through missing data points`},{key:`target`,label:`Target Values`,type:`string`,placeholder:`e.g., 100 or 50,75 for spread`,description:`Single value or comma-separated values to spread across X-axis`},{key:`priorPeriodStyle`,label:`Prior Period Line Style`,type:`select`,defaultValue:`dashed`,options:[{value:`dashed`,label:`Dashed`},{value:`dotted`,label:`Dotted`},{value:`solid`,label:`Solid`}],description:`Line style for prior period in comparison mode`},{key:`priorPeriodOpacity`,label:`Prior Period Opacity`,type:`number`,defaultValue:.5,min:.1,max:1,step:.1,description:`Opacity for prior period lines (0.1 to 1)`},{key:`leftYAxisFormat`,label:`Left Y-Axis Format`,type:`axisFormat`,description:`Number formatting for left Y-axis`},{key:`rightYAxisFormat`,label:`Right Y-Axis Format`,type:`axisFormat`,description:`Number formatting for right Y-axis`}]}})),I8,ibe=o((()=>{I8={label:`Area Chart`,description:`Emphasize magnitude of change over time`,useCase:`Best for showing cumulative totals, volume changes, or stacked comparisons over time`,dropZones:[{key:`xAxis`,label:`X-Axis (Time/Categories)`,description:`Time dimensions or dimensions for X-axis`,mandatory:!0,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop time dimensions or dimensions here`},{key:`yAxis`,label:`Y-Axis (Values)`,description:`Measures for area values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop measures here`,enableDualAxis:!0},{key:`series`,label:`Series (Stack Areas)`,description:`Dimensions to create stacked areas`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`Drop dimensions here for stacked areas`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`stackType`,label:`Stacking`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`None`},{value:`normal`,label:`Stacked`},{value:`percent`,label:`Stacked 100%`}],description:`How to stack multiple area series`},{key:`connectNulls`,label:`Connect Nulls`,type:`boolean`,defaultValue:!1,description:`Draw continuous line through missing data points`},{key:`target`,label:`Target Values`,type:`string`,placeholder:`e.g., 100 or 50,75 for spread`,description:`Single value or comma-separated values to spread across X-axis`},{key:`leftYAxisFormat`,label:`Left Y-Axis Format`,type:`axisFormat`,description:`Number formatting for left Y-axis`},{key:`rightYAxisFormat`,label:`Right Y-Axis Format`,type:`axisFormat`,description:`Number formatting for right Y-axis`}]}})),L8,abe=o((()=>{L8={label:`Pie Chart`,description:`Show proportions of a whole`,useCase:`Best for showing percentage distribution or composition of a total (limit to 5-7 slices)`,clickableElements:{slice:!0},dropZones:[{key:`xAxis`,label:`Categories`,description:`Dimension for pie slices`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop a dimension for categories`},{key:`yAxis`,label:`Values`,description:`Measure for slice sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for values`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`Inner Radius`,type:`select`,description:`Hollow center size (0% = solid pie, higher = donut style)`,defaultValue:`0%`,options:[{value:`0%`,label:`None (Pie)`},{value:`20%`,label:`20%`},{value:`40%`,label:`40%`},{value:`60%`,label:`60%`},{value:`80%`,label:`80%`}]},{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for values`}]}})),R8,obe=o((()=>{R8={label:`Scatter Plot`,description:`Reveal correlations between variables`,useCase:`Best for identifying patterns, correlations, outliers, and relationships between two measures`,dropZones:[{key:`xAxis`,label:`X-Axis`,description:`Measure or dimension for X position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`Drop a field for X-axis`},{key:`yAxis`,label:`Y-Axis`,description:`Measure for Y position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for Y-axis`},{key:`series`,label:`Series (Color Groups)`,description:`Dimension to color points by category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop a dimension to color points`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`X-Axis Format`,type:`axisFormat`,description:`Number formatting for X-axis`},{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for Y-axis`}]}})),z8,sbe=o((()=>{z8={label:`Bubble Chart`,description:`Compare three dimensions of data`,useCase:`Best for showing relationships between three variables (X, Y, and size), market analysis`,dropZones:[{key:`xAxis`,label:`X-Axis`,description:`Horizontal axis position`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`Drop a field for X-axis position`},{key:`yAxis`,label:`Y-Axis`,description:`Vertical axis position`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for Y-axis position`},{key:`sizeField`,label:`Bubble Radius`,description:`Size of bubbles based on this measure`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for bubble size`},{key:`series`,label:`Bubble Labels`,description:`Field to use for bubble labels and identification`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop a dimension for bubble labels`},{key:`colorField`,label:`Bubble Colour`,description:`Color bubbles by this field (optional)`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`measure`],emptyText:`Drop a field for bubble color (optional)`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`minBubbleSize`,`maxBubbleSize`,`bubbleOpacity`,`hideHeader`],displayOptionsConfig:[{key:`xAxisFormat`,label:`X-Axis Format`,type:`axisFormat`,description:`Number formatting for X-axis`},{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for Y-axis and values`}]}})),B8,cbe=o((()=>{B8={label:`Radar Chart`,description:`Compare multiple metrics across categories`,useCase:`Best for multivariate comparisons, performance metrics, strengths/weaknesses analysis`,dropZones:[{key:`xAxis`,label:`Axes (Categories)`,description:`Dimensions for radar axes`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`Drop dimensions for radar axes`},{key:`yAxis`,label:`Values`,description:`Measures for radar values`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop measures for values`},{key:`series`,label:`Series (Multiple Shapes)`,description:`Dimensions to create multiple radar shapes`,mandatory:!1,acceptTypes:[`dimension`],emptyText:`Drop dimensions for multiple shapes`}],displayOptions:[`showLegend`,`showGrid`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for values`}]}})),V8,lbe=o((()=>{V8={label:`Radial Bar Chart`,description:`Circular progress and KPI visualization`,useCase:`Best for showing progress toward goals, KPIs, or comparing percentages in a compact form`,dropZones:[{key:`xAxis`,label:`Categories`,description:`Dimensions for radial segments`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`Drop dimensions for categories`},{key:`yAxis`,label:`Values`,description:`Measures for radial bar lengths`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for values`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for values`}]}})),H8,ube=o((()=>{H8={label:`TreeMap`,description:`Visualize hierarchical data with nested rectangles`,useCase:`Best for showing part-to-whole relationships in hierarchical data, disk usage, budget allocation`,dropZones:[{key:`xAxis`,label:`Categories`,description:`Dimensions for treemap rectangles`,mandatory:!0,acceptTypes:[`dimension`],emptyText:`Drop dimensions for categories`},{key:`yAxis`,label:`Size`,description:`Measure for rectangle sizes`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for size`},{key:`series`,label:`Color Groups`,description:`Dimension to color rectangles by category`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop a dimension for color grouping`}],displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for size values`}],clickableElements:{cell:!0}}})),U8,dbe=o((()=>{U8={label:`Data Table`,description:`Display detailed tabular data`,useCase:`Best for precise values, detailed analysis, sortable/filterable data exploration`,dropZones:[{key:`xAxis`,label:`Columns`,description:`All fields to display as columns`,mandatory:!1,acceptTypes:[`dimension`,`timeDimension`,`measure`],emptyText:`Drop fields to display as columns (or leave empty for all)`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for numeric values`}]}})),W8,fbe=o((()=>{W8={label:`Activity Grid`,description:`GitHub-style activity grid showing temporal patterns across different time scales`,useCase:`Best for visualizing activity patterns over time. Supports hour (3hr blocks × days), day (days × weeks), week (weeks × months), month (months × quarters), and quarter (quarters × years) granularities`,dropZones:[{key:`dateField`,label:`Time Dimension`,description:`Time field that determines grid structure (granularity affects layout)`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`],emptyText:`Drop a time dimension (granularity affects grid structure)`},{key:`valueField`,label:`Activity Measure`,description:`Measure used for activity intensity (color coding)`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure for activity intensity`}],displayOptions:[`showLabels`,`showTooltip`,`hideHeader`],displayOptionsConfig:[{key:`fitToWidth`,label:`Fit to Width`,type:`boolean`,defaultValue:!1,description:`Automatically size blocks to fill portlet width and height while maintaining aspect ratio`}],validate:e=>{let{dateField:t,valueField:n}=e;return!t||Array.isArray(t)&&t.length===0?{isValid:!1,message:`Time dimension is required for activity grid`}:!n||Array.isArray(n)&&n.length===0?{isValid:!1,message:`Activity measure is required for intensity mapping`}:{isValid:!0}},clickableElements:{cell:!0}}})),G8,pbe=o((()=>{G8={label:`KPI Number`,description:`Display key performance indicators as large numbers`,useCase:`Perfect for showing important metrics like revenue, user count, or other key business metrics in a prominent, easy-to-read format`,dropZones:[{key:`yAxis`,label:`Value`,description:`Measure to display as KPI number`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure here`}],displayOptionsConfig:[{key:`target`,label:`Target Value`,type:`string`,placeholder:`e.g., 100`,description:`Target value to compare against (first value used if multiple provided)`},{key:`prefix`,label:`Prefix`,type:`string`,placeholder:`e.g., $, €, #`,description:`Text to display before the number`},{key:`suffix`,label:`Suffix`,type:`string`,placeholder:`e.g., %, units, items`,description:`Text to display after the number`},{key:`decimals`,label:`Decimal Places`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`Number of decimal places to display`},{key:`valueColorIndex`,label:`Value Color`,type:`paletteColor`,defaultValue:0,description:`Color from the dashboard palette for the KPI value text`},{key:`useLastCompletePeriod`,label:`Use Last Complete Period`,type:`boolean`,defaultValue:!0,description:`Exclude current incomplete period from aggregation (e.g., partial week/month)`},{key:`skipLastPeriod`,label:`Skip Last Period`,type:`boolean`,defaultValue:!1,description:`Always exclude the last period regardless of completeness`}],displayOptions:[`hideHeader`]}})),K8,mbe=o((()=>{K8={label:`KPI Delta`,description:`Display change between latest and previous values with trend indicators`,useCase:`Perfect for showing performance changes over time, such as revenue growth, user acquisition changes, or other metrics where the trend and delta are more important than the absolute value`,dropZones:[{key:`yAxis`,label:`Value`,description:`Measure to track changes for`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure here`},{key:`xAxis`,label:`Dimension (optional)`,description:`Dimension for ordering data (typically time)`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop a dimension for ordering`}],displayOptionsConfig:[{key:`prefix`,label:`Prefix`,type:`string`,placeholder:`e.g., $, €, #`,description:`Text to display before the number`},{key:`suffix`,label:`Suffix`,type:`string`,placeholder:`e.g., %, units, items`,description:`Text to display after the number`},{key:`decimals`,label:`Decimal Places`,type:`number`,defaultValue:1,min:0,max:10,step:1,description:`Number of decimal places to display`},{key:`positiveColorIndex`,label:`Positive Change Color`,type:`paletteColor`,defaultValue:2,description:`Color for positive changes (increases)`},{key:`negativeColorIndex`,label:`Negative Change Color`,type:`paletteColor`,defaultValue:3,description:`Color for negative changes (decreases)`},{key:`showHistogram`,label:`Show Variance Histogram`,type:`boolean`,defaultValue:!0,description:`Display historical variance chart below the delta`},{key:`useLastCompletePeriod`,label:`Use Last Complete Period`,type:`boolean`,defaultValue:!0,description:`Exclude current incomplete period from delta calculation (e.g., partial week/month)`},{key:`skipLastPeriod`,label:`Skip Last Period`,type:`boolean`,defaultValue:!1,description:`Always exclude the last period regardless of completeness`}],displayOptions:[`hideHeader`],validate:e=>!e.yAxis||Array.isArray(e.yAxis)&&e.yAxis.length===0?{isValid:!1,message:`A measure is required for KPI Delta charts`}:{isValid:!0}}})),q8,hbe=o((()=>{q8={label:`KPI Text`,description:`Display key performance indicators as customizable text`,useCase:`Perfect for showing metrics with custom formatting, combining multiple values, or displaying contextual KPI information using templates`,dropZones:[{key:`yAxis`,label:`Value`,description:`Measure to display in the KPI text template`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure here`}],displayOptionsConfig:[{key:`template`,label:`Text Template`,type:`string`,placeholder:"e.g., Total Revenue: ${value}",description:"Template for displaying the text. Use ${value} to insert the measure value."},{key:`decimals`,label:`Decimal Places`,type:`number`,defaultValue:0,min:0,max:10,step:1,description:`Number of decimal places to display for numeric values`},{key:`valueColorIndex`,label:`Value Color`,type:`paletteColor`,defaultValue:0,description:`Color from the dashboard palette for the KPI value text`}],displayOptions:[`hideHeader`]}})),J8,gbe=o((()=>{J8={label:`Markdown`,description:`Display custom markdown content with formatting`,useCase:`Perfect for adding documentation, notes, section headers, instructions, or formatted text to dashboards`,skipQuery:!0,dropZones:[],displayOptionsConfig:[{key:`content`,label:`Markdown Content`,type:`string`,placeholder:`# Welcome
134
+
135
+ Add your **markdown** content here:
136
+
137
+ - Lists with bullets
138
+ - [Links](https://example.com)
139
+ - *Italic* and **bold** text
140
+
141
+ ---
142
+
143
+ Use --- for horizontal rules.`,description:`Enter markdown text. Supports headers (#), bold (**text**), italic (*text*), links ([text](url)), lists (- item), and horizontal rules (---).`},{key:`accentColorIndex`,label:`Accent Color`,type:`paletteColor`,defaultValue:0,description:`Color from the dashboard palette for headers, bullets, and links`},{key:`fontSize`,label:`Font Size`,type:`select`,defaultValue:`medium`,options:[{value:`small`,label:`Small`},{value:`medium`,label:`Medium`},{value:`large`,label:`Large`}],description:`Overall text size for the markdown content`},{key:`alignment`,label:`Text Alignment`,type:`select`,defaultValue:`left`,options:[{value:`left`,label:`Left`},{value:`center`,label:`Center`},{value:`right`,label:`Right`}],description:`Horizontal alignment of the markdown content`},{key:`hideHeader`,label:`Hide Header`,type:`boolean`,defaultValue:!0,description:`Hide the portlet header bar (title and action buttons)`},{key:`transparentBackground`,label:`Transparent Background`,type:`boolean`,defaultValue:!1,description:`Remove card background, border, and shadow for seamless integration as section headers`},{key:`autoHeight`,label:`Auto Height`,type:`boolean`,defaultValue:!0,description:`In row and mobile layouts, size to markdown content instead of fixed row height`},{key:`accentBorder`,label:`Accent Border`,type:`select`,defaultValue:`none`,options:[{value:`none`,label:`None`},{value:`left`,label:`Left`},{value:`top`,label:`Top`},{value:`bottom`,label:`Bottom`}],description:`Add an accent-colored border on one side of the content`}]}})),Y8,_be=o((()=>{Y8={label:`Funnel Chart`,description:`Show conversion through sequential steps`,useCase:`Best for visualizing user journey funnels, sales pipelines, or multi-step processes`,dropZones:[{key:`xAxis`,label:`Step Name`,description:`Step names (auto-populated from funnel steps)`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Steps defined in funnel config`},{key:`yAxis`,label:`Step Count`,description:`Count at each step (auto-calculated)`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`Counts calculated from funnel execution`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`funnelStyle`,label:`Funnel Style`,type:`buttonGroup`,defaultValue:`bars`,options:[{value:`bars`,label:`Bars`},{value:`funnel`,label:`Funnel`}],description:`Visualization style`},{key:`funnelOrientation`,label:`Orientation`,type:`buttonGroup`,defaultValue:`horizontal`,options:[{value:`horizontal`,label:`Horizontal`},{value:`vertical`,label:`Vertical`}]},{key:`hideSummaryFooter`,label:`Hide Summary Footer`,type:`boolean`,defaultValue:!1,description:`Hide the summary footer showing steps count and overall conversion`},{key:`showFunnelConversion`,label:`Show Conversion Rate`,type:`boolean`,defaultValue:!0,description:`Display step-to-step conversion percentage`},{key:`showFunnelAvgTime`,label:`Show Avg Time`,type:`boolean`,defaultValue:!1,description:`Display average time to convert`},{key:`showFunnelMedianTime`,label:`Show Median Time`,type:`boolean`,defaultValue:!1,description:`Display median time to convert`},{key:`showFunnelP90Time`,label:`Show P90 Time`,type:`boolean`,defaultValue:!1,description:`Display 90th percentile time to convert`}]}})),X8,vbe=o((()=>{X8={label:`Sankey Chart`,description:`Show flow between states or steps`,useCase:`Best for visualizing user journey flows, path analysis, or state transitions`,dropZones:[{key:`xAxis`,label:`Event Type`,description:`Event dimension that categorizes flow nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Auto-populated from flow config`},{key:`yAxis`,label:`Flow Count`,description:`Count of entities following each path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`Calculated from flow execution`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`linkOpacity`,label:`Link Opacity`,type:`buttonGroup`,defaultValue:`0.5`,options:[{value:`0.3`,label:`Light`},{value:`0.5`,label:`Medium`},{value:`0.7`,label:`Dark`}],description:`Opacity of flow links`},{key:`showNodeLabels`,label:`Show Node Labels`,type:`boolean`,defaultValue:!0,description:`Display labels on flow nodes`},{key:`hideSummaryFooter`,label:`Hide Summary Footer`,type:`boolean`,defaultValue:!0,description:`Hide the statistics footer below the chart`}]}})),Z8,ybe=o((()=>{Z8={label:`Sunburst Chart`,description:`Show hierarchical flow as radial rings`,useCase:`Best for visualizing forward paths from a starting event in a compact radial layout`,dropZones:[{key:`xAxis`,label:`Event Type`,description:`Event dimension that categorizes flow nodes`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Auto-populated from flow config`},{key:`yAxis`,label:`Flow Count`,description:`Count of entities following each path`,mandatory:!1,maxItems:1,acceptTypes:[`measure`],emptyText:`Calculated from flow execution`}],displayOptions:[`hideHeader`],displayOptionsConfig:[{key:`innerRadius`,label:`Inner Radius`,type:`number`,defaultValue:40,min:0,max:100,step:10,description:`Size of the center hole (0 for full circle)`},{key:`hideSummaryFooter`,label:`Hide Summary Footer`,type:`boolean`,defaultValue:!0,description:`Hide the statistics footer below the chart`}]}})),Q8,bbe=o((()=>{Q8={label:`Heatmap`,description:`Visualize intensity across two dimensions`,useCase:`Best for showing patterns in matrix data like correlations, schedules, or category comparisons`,dropZones:[{key:`xAxis`,label:`Columns (X-Axis)`,description:`Dimension for column categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop one dimension here`},{key:`yAxis`,label:`Rows (Y-Axis)`,description:`Dimension for row categories`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop one dimension here`},{key:`valueField`,label:`Value (Color Intensity)`,description:`Measure that determines cell color`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop one measure here`}],displayOptions:[`showLegend`,`showTooltip`],displayOptionsConfig:[{key:`showLabels`,label:`Show Cell Values`,type:`boolean`,defaultValue:!1,description:`Display values inside each cell`},{key:`cellShape`,label:`Cell Shape`,type:`select`,defaultValue:`rect`,options:[{value:`rect`,label:`Rectangle`},{value:`circle`,label:`Circle`}]},{key:`xAxisFormat`,label:`X-Axis Format`,type:`axisFormat`,description:`Number formatting for X-axis labels`},{key:`yAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for Y-axis labels`},{key:`valueFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for cell values and legend`}],validate:e=>e.xAxis?.length?e.yAxis?.length?e.valueField?.length?{isValid:!0}:{isValid:!1,message:`Value measure required`}:{isValid:!1,message:`Y-axis dimension required`}:{isValid:!1,message:`X-axis dimension required`}}})),$8,xbe=o((()=>{$8={label:`Retention Matrix`,dropZones:[],displayOptionsConfig:[{key:`showLegend`,label:`Show Legend`,type:`boolean`,defaultValue:!0,description:`Show the color intensity legend`},{key:`showTooltip`,label:`Show Tooltip`,type:`boolean`,defaultValue:!0,description:`Show tooltip on hover with detailed stats`}],description:`Cohort retention matrix visualization`,useCase:`Visualize user retention over time by cohort`}})),e5,Sbe=o((()=>{e5={label:`Retention Chart`,dropZones:[],displayOptionsConfig:[{key:`retentionDisplayMode`,label:`Display Mode`,type:`select`,defaultValue:`line`,options:[{value:`line`,label:`Line Chart`},{value:`heatmap`,label:`Heatmap Table`},{value:`combined`,label:`Combined`}],description:`Choose how to visualize retention data`},{key:`showLegend`,label:`Show Legend`,type:`boolean`,defaultValue:!0,description:`Show the legend for breakdown segments`},{key:`showGrid`,label:`Show Grid`,type:`boolean`,defaultValue:!0,description:`Show grid lines on the chart`},{key:`showTooltip`,label:`Show Tooltip`,type:`boolean`,defaultValue:!0,description:`Show tooltip on hover with detailed stats`}],description:`Combined retention visualization with line chart and heatmap modes`,useCase:`Visualize user retention over time with optional breakdown segmentation`}})),t5,Cbe=o((()=>{t5={label:`Box Plot`,description:`Show statistical distribution (median, IQR, whiskers) across categories`,useCase:`Best for P&L spread per symbol, trade size distribution, latency distribution across platforms`,displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`X-Axis (Groups)`,description:`Dimension to group boxes by (e.g. symbol, platform)`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop a dimension here`},{key:`yAxis`,label:`Y-Axis (Measures)`,description:`Drop 1 measure for auto mode, 3 for avg/stddev/median mode, or 5 for min/q1/median/q3/max mode`,mandatory:!0,maxItems:5,acceptTypes:[`measure`],emptyText:`Drop 1, 3, or 5 measures here`}],displayOptionsConfig:[{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for the value axis`}]}})),n5,wbe=o((()=>{n5={label:`Waterfall Chart`,description:`Show cumulative effect of sequential positive and negative values`,useCase:`Best for P&L decomposition, cash flow analysis, budget variance, or any sequential contribution breakdown`,clickableElements:{bar:!0},displayOptions:[`showTooltip`,`hideHeader`],dropZones:[{key:`xAxis`,label:`X-Axis (Categories)`,description:`Dimension labels for each bar segment (e.g. symbol, transaction type)`,mandatory:!0,maxItems:1,acceptTypes:[`dimension`,`timeDimension`],emptyText:`Drop a dimension here`},{key:`yAxis`,label:`Y-Axis (Value)`,description:`Single measure whose values are summed cumulatively`,mandatory:!0,maxItems:1,acceptTypes:[`measure`],emptyText:`Drop a measure here`}],displayOptionsConfig:[{key:`showTotal`,label:`Show Total Bar`,type:`boolean`,defaultValue:!0,description:`Append a final bar showing the running total`},{key:`showConnectorLine`,label:`Show Connector Line`,type:`boolean`,defaultValue:!0,description:`Draw a dashed step-line connecting bar tops`},{key:`showDataLabels`,label:`Show Data Labels`,type:`boolean`,defaultValue:!1,description:`Display the value above each bar segment`},{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for the Y-axis`}]}})),r5,Tbe=o((()=>{r5={label:`Candlestick Chart`,description:`Financial candlestick chart showing open/close body and high/low wicks`,useCase:`Best for EOD quotes (bid/ask spread per date/symbol), markout distribution bands, or OHLC price data`,clickableElements:{bar:!0},displayOptions:[`hideHeader`],dropZones:[{key:`xAxis`,label:`X-Axis (Time / Category)`,description:`Time dimension or category for each candle (e.g. date, symbol)`,mandatory:!0,maxItems:1,acceptTypes:[`timeDimension`,`dimension`],emptyText:`Drop a time or dimension here`},{key:`yAxis`,label:`OHLC Measures (open, close, high, low)`,description:`Drop 2–4 measures in order: open, close, high, low (OHLC mode). For range mode drop 2: high, low.`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop 2+ measures here`}],displayOptionsConfig:[{key:`rangeMode`,label:`Chart Mode`,type:`select`,defaultValue:`ohlc`,options:[{value:`ohlc`,label:`OHLC (open, close, high, low)`},{value:`range`,label:`Range (high, low / bid, ask)`}],description:`OHLC: 4 measures. Range: 2 measures (high + low).`},{key:`bullColor`,label:`Bullish Colour`,type:`color`,defaultValue:`#22c55e`,description:`Candle colour when close ≥ open`},{key:`bearColor`,label:`Bearish Colour`,type:`color`,defaultValue:`#ef4444`,description:`Candle colour when close < open`},{key:`showWicks`,label:`Show Wicks`,type:`boolean`,defaultValue:!0,description:`Draw high/low wicks above and below the body`},{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for the price axis`}]}})),i5,Ebe=o((()=>{i5={label:`Measure Profile`,description:`Plot N measures as sequential X-axis points to visualise a profile or shape across intervals`,useCase:`Best for markout interval analysis (e.g. avgMinus2m → avgAtEvent → avgPlus2h), metric profiles, or any pattern across ordered measures`,displayOptions:[`showLegend`,`showTooltip`,`hideHeader`],dropZones:[{key:`yAxis`,label:`Measures (X-Axis Order)`,description:`Add 2 or more measures — they become the X-axis categories in the order listed`,mandatory:!0,acceptTypes:[`measure`],emptyText:`Drop 2+ measures here (displayed left → right)`},{key:`series`,label:`Series (Split into Multiple Lines)`,description:`Dimension to split data into separate profile lines (e.g. symbol, platform)`,mandatory:!1,maxItems:1,acceptTypes:[`dimension`],emptyText:`Drop a dimension here to create multiple lines`}],displayOptionsConfig:[{key:`showReferenceLineAtZero`,label:`Show Zero Reference Line`,type:`boolean`,defaultValue:!0,description:`Draw a dashed line at Y = 0`},{key:`showDataLabels`,label:`Show Data Labels`,type:`boolean`,defaultValue:!1,description:`Display value at each data point`},{key:`showLegend`,label:`Show Legend`,type:`boolean`,defaultValue:!0,description:`Show series legend (only visible with a Series dimension)`},{key:`lineType`,label:`Line Interpolation`,type:`select`,defaultValue:`monotone`,options:[{value:`monotone`,label:`Smooth (monotone)`},{value:`linear`,label:`Linear`},{value:`step`,label:`Step`}],description:`How data points are connected`},{key:`leftYAxisFormat`,label:`Y-Axis Format`,type:`axisFormat`,description:`Number formatting for the Y-axis`}]}})),a5,Dbe=o((()=>{a5={label:`Gauge Chart`,description:`Half-circle arc gauge for a single KPI value versus a maximum target`,useCase:`Best for high-water marks vs equity, margin utilisation, or any single value progress toward a goal`,clickableElements:{},displayOptions:[`hideHeader`],dropZones:[{key:`yAxis`,label:`Value Measure`,description:`Current value to display on the gauge (e.g. current equity, margin used)`,mandatory:!0,maxItems:2,acceptTypes:[`measure`],emptyText:`Drop 1 measure here (optional 2nd for dynamic max)`}],displayOptionsConfig:[{key:`minValue`,label:`Minimum Value`,type:`number`,defaultValue:0,description:`Lower bound of the gauge arc (default 0)`},{key:`maxValue`,label:`Maximum Value (static)`,type:`number`,description:`Upper bound of the gauge. Leave empty to use yAxis[1] or default 100`},{key:`thresholds`,label:`Threshold Bands`,type:`string`,placeholder:`[{"value":0.33,"color":"#22c55e"},{"value":0.66,"color":"#f59e0b"},{"value":1,"color":"#ef4444"}]`,description:`Array of {value (0–1 fraction), color} bands shown as outer arc markers`},{key:`showCenterLabel`,label:`Show Centre Label`,type:`boolean`,defaultValue:!0,description:`Display current value and field name in the centre of the gauge`},{key:`showPercentage`,label:`Show as Percentage`,type:`boolean`,defaultValue:!1,description:`Display value as % of max instead of raw number`},{key:`leftYAxisFormat`,label:`Value Format`,type:`axisFormat`,description:`Number formatting for the displayed value and axis labels`}]}})),o5,Obe=o((()=>{nbe(),rbe(),ibe(),abe(),obe(),sbe(),cbe(),lbe(),ube(),dbe(),fbe(),pbe(),mbe(),hbe(),gbe(),_be(),vbe(),ybe(),bbe(),xbe(),Sbe(),Cbe(),wbe(),Tbe(),Ebe(),Dbe(),o5={bar:P8,line:F8,area:I8,pie:L8,scatter:R8,bubble:z8,radar:B8,radialBar:V8,treemap:H8,table:U8,activityGrid:W8,kpiNumber:G8,kpiDelta:K8,kpiText:q8,markdown:J8,funnel:Y8,sankey:X8,sunburst:Z8,heatmap:Q8,retentionHeatmap:$8,retentionCombined:e5,boxPlot:t5,waterfall:n5,candlestick:r5,measureProfile:i5,gauge:a5}})),s5,c5,l5,kbe=o((()=>{s5=u(f(),1),o1(),m1(),E1(),P1(),S1(),c5=s1(),l5=s5.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let[o,s]=(0,s5.useState)(null);try{let c={showLegend:n?.showLegend??!0,showTooltip:n?.showTooltip??!0,showGrid:n?.showGrid??!0,leftYAxisFormat:n?.leftYAxisFormat};if(!e||e.length===0)return(0,c5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,c5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,c5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,c5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in radar chart`})]})});let l,u=[];if(t?.xAxis&&t?.yAxis){let{data:n,seriesKeys:i}=x1(e,Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,Array.isArray(t.yAxis)?t.yAxis:[t.yAxis],r,t.series||[]);l=n,u=i}else{let t=e[0],n=Object.keys(t),a=n.find(e=>typeof t[e]==`string`||e.toLowerCase().includes(`subject`)||e.toLowerCase().includes(`name`)||e.toLowerCase().includes(`category`))||n[0],o=n.filter(e=>typeof t[e]==`number`&&e!==a);if(o.length===0)return(0,c5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,c5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,c5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,c5.jsx)(`div`,{className:`dc:text-xs`,children:`No numeric fields found for radar chart values`})]})});if(a){let t=b1(r,a);l=e.map(e=>{let n={name:y1(e[a],t)||String(e[a])||`Unknown`};return o.forEach(t=>{let r=t.split(`.`).pop()||t;n[r]=typeof e[t]==`string`?parseFloat(e[t]):e[t]||0}),n}),u=o.map(e=>e.split(`.`).pop()||e)}else l=e.map(e=>({name:String(e[n[0]]||`Unknown`),value:typeof e[o[0]]==`string`?parseFloat(e[o[0]]):e[o[0]]||0})),u=[`value`]}return!l||l.length===0?(0,c5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,c5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,c5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,c5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for radar chart after transformation`})]})}):(0,c5.jsx)(d1,{height:i,children:(0,c5.jsxs)(v$,{data:l,margin:{top:20,right:80,bottom:20,left:80},accessibilityLayer:!1,children:[c.showGrid&&(0,c5.jsx)(YR,{}),(0,c5.jsx)(kz,{dataKey:`name`,tick:{fontSize:12},className:`text-dc-text-muted`}),(0,c5.jsx)(lz,{tick:{fontSize:10},className:`text-dc-text-muted`,tickFormatter:c.leftYAxisFormat?e=>v1(e,c.leftYAxisFormat):void 0}),c.showTooltip&&(0,c5.jsx)(C1,{formatter:c.leftYAxisFormat?(e,t)=>[v1(e,c.leftYAxisFormat),t]:void 0}),c.showLegend&&u.length>1&&(0,c5.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`rect`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>s(String(e.dataKey||``)),onMouseLeave:()=>s(null)}),u.map((e,t)=>(0,c5.jsx)(mU,{name:e,dataKey:e,stroke:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length],fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length],fillOpacity:o?o===e?.6:.1:.3,strokeOpacity:o?o===e?1:.3:1,strokeWidth:2},e))]})})}catch(e){return(0,c5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,c5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,c5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Radar Chart Error`}),(0,c5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,c5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})})),u5,d5,f5,Abe=o((()=>{u5=u(f(),1),o1(),m1(),E1(),P1(),S1(),d5=s1(),f5=u5.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let[o,s]=(0,u5.useState)(null);try{let c={showLegend:n?.showLegend??!0,showTooltip:n?.showTooltip??!0,leftYAxisFormat:n?.leftYAxisFormat};if(!e||e.length===0)return(0,d5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,d5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,d5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,d5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in radial bar chart`})]})});let l;if(t?.xAxis&&t?.yAxis){let n=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,i=Array.isArray(t.yAxis)?t.yAxis[0]:t.yAxis,o=b1(r,n);l=e.map((e,t)=>({name:y1(e[n],o)||String(e[n])||`Unknown`,value:typeof e[i]==`string`?parseFloat(e[i]):e[i]||0,fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length]}))}else{let t=e[0],n=Object.keys(t),r=n.find(e=>typeof t[e]==`string`||e.toLowerCase().includes(`name`)||e.toLowerCase().includes(`label`)||e.toLowerCase().includes(`category`))||n[0],o=n.find(e=>typeof t[e]==`number`&&e!==r)||n[1];if(!o)return(0,d5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,d5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,d5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,d5.jsx)(`div`,{className:`dc:text-xs`,children:`No numeric field found for radial bar chart values`})]})});l=e.map((e,t)=>{let n=e[r];return n=typeof n==`boolean`?n?`Active`:`Inactive`:n===`true`||n===`false`?n===`true`?`Active`:`Inactive`:String(n),{name:n,value:typeof e[o]==`string`?parseFloat(e[o]):e[o]||0,fill:a?.colors&&a.colors[t%a.colors.length]||A1[t%A1.length]}})}return l=l.filter(e=>e.value!=null&&e.value!==0),l.length===0?(0,d5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,d5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,d5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,d5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No valid data points for radial bar chart after transformation`})]})}):(0,d5.jsx)(d1,{height:i,children:(0,d5.jsxs)(k$,{data:l,innerRadius:`10%`,outerRadius:`80%`,margin:{top:20,right:30,bottom:20,left:30},accessibilityLayer:!1,children:[c.showTooltip&&(0,d5.jsx)(C1,{formatter:c.leftYAxisFormat?(e,t)=>[v1(e,c.leftYAxisFormat),t]:void 0}),c.showLegend&&(0,d5.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`10px`},iconType:`circle`,iconSize:8,layout:`horizontal`,align:`center`,verticalAlign:`bottom`,onMouseEnter:e=>s(String(e.value||``)),onMouseLeave:()=>s(null)}),(0,d5.jsx)(SW,{dataKey:`value`,cornerRadius:4,label:{position:`insideStart`,fill:`#fff`,fontSize:12,formatter:c.leftYAxisFormat?e=>v1(e,c.leftYAxisFormat):void 0},children:l.map((e,t)=>(0,d5.jsx)(SI,{fill:e.fill,fillOpacity:o?o===e.name?1:.3:1},`cell-${t}`))})]})})}catch(e){return(0,d5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:i},children:(0,d5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,d5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Radial Bar Chart Error`}),(0,d5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,d5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function p5(){if(typeof window>`u`)return`light`;let e=localStorage.getItem(`theme`);if(e===`dark`||e===`neon`||e===`light`)return e;let t=document.documentElement.getAttribute(`data-theme`);return t===`dark`||t===`neon`?t:document.documentElement.classList.contains(`dark`)||document.body.classList.contains(`dark`)?`dark`:document.documentElement.classList.contains(`neon`)||document.body.classList.contains(`neon`)?`neon`:window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function jbe(e){typeof window>`u`||(document.documentElement.classList.remove(`dark`,`neon`),document.documentElement.setAttribute(`data-theme`,e),(e===`dark`||e===`neon`)&&document.documentElement.classList.add(e),localStorage.setItem(`theme`,e))}function m5(e){if(typeof window>`u`)return()=>{};let t=new MutationObserver(()=>{e(p5())});t.observe(document.documentElement,{attributes:!0,attributeFilter:[`class`,`data-theme`]});let n=window.matchMedia(`(prefers-color-scheme: dark)`),r=()=>e(p5());return n.addEventListener(`change`,r),()=>{t.disconnect(),n.removeEventListener(`change`,r)}}var h5=o((()=>{}));function Mbe(){return{theme:(0,g5.useSyncExternalStore)(_5.subscribe.bind(_5),p5,p5),setTheme:(0,g5.useCallback)(e=>{jbe(e),_5.notify()},[])}}var g5,_5,Nbe=o((()=>{g5=u(f(),1),h5(),_5={listeners:new Set,subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)},notify(){this.listeners.forEach(e=>e())}},m5(()=>{_5.notify()})})),v5,y5,b5,Pbe=o((()=>{v5=u(f(),1),c3(),P1(),S1(),U1(),Nbe(),y5=s1(),b5=v5.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a}){let o=(0,v5.useRef)(null),s=(0,v5.useRef)(null),[c,l]=(0,v5.useState)({width:0,height:0}),[u,d]=(0,v5.useState)(!1),{theme:f}=Mbe(),p=V1(),m=(0,v5.useMemo)(()=>({showLegend:n?.showLegend??!0,showGrid:n?.showGrid??!0,showTooltip:n?.showTooltip??!0,minBubbleSize:n?.minBubbleSize??5,maxBubbleSize:n?.maxBubbleSize??50,bubbleOpacity:n?.bubbleOpacity??.7,xAxisFormat:n?.xAxisFormat,leftYAxisFormat:n?.leftYAxisFormat}),[n?.showLegend,n?.showGrid,n?.showTooltip,n?.minBubbleSize,n?.maxBubbleSize,n?.bubbleOpacity,n?.xAxisFormat,n?.leftYAxisFormat]);return(0,v5.useLayoutEffect)(()=>{let e=0,t,n,r=()=>{if(s.current){let{width:e,height:t}=s.current.getBoundingClientRect();if(e>0&&t>0)return l({width:e,height:t}),d(!0),!0}return!1};if(!r()&&e<10){let i=()=>{!r()&&e<10&&(e++,n=setTimeout(()=>{t=requestAnimationFrame(i)},50*e))};t=requestAnimationFrame(i)}return()=>{t&&cancelAnimationFrame(t),n&&clearTimeout(n)}},[]),(0,v5.useEffect)(()=>{let e=null,t=()=>{if(s.current){let{width:e,height:t}=s.current.getBoundingClientRect();e>0&&t>0&&(l({width:e,height:t}),u||d(!0))}};return s.current&&(e=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&(l({width:e,height:n}),u||d(!0))}}),e.observe(s.current),t()),window.addEventListener(`resize`,t),()=>{e&&e.disconnect(),window.removeEventListener(`resize`,t)}},[u]),(0,v5.useEffect)(()=>{if(!e||e.length===0||!o.current||!u||c.width===0||(t2(o.current).selectAll(`*`).remove(),!t?.xAxis||!t?.yAxis||!t?.series))return;let n=Array.isArray(t.xAxis)?t.xAxis[0]:t.xAxis,i=Array.isArray(t.yAxis)?t.yAxis[0]:t.yAxis,s=Array.isArray(t.series)?t.series[0]:t.series,l=Array.isArray(t.sizeField)?t.sizeField[0]:t.sizeField||i,d=Array.isArray(t.colorField)?t.colorField[0]:t.colorField;if(!n||!i||!s||!l)return;let h=b1(r,n),g=r?.timeDimensions?.some(e=>e.dimension===n)||!1,_=e.map(e=>{let t=e[n],r,a;if(g&&t){let e=String(t),n;if(e.match(/^\d{4}-\d{2}-\d{2}[T ]/)){let t=e;e.includes(` `)&&(t=e.replace(` `,`T`).replace(`+00`,`Z`).replace(/\+\d{2}:\d{2}$/,`Z`)),!t.endsWith(`Z`)&&!t.includes(`+`)&&(t+=`Z`),n=new Date(t)}else n=new Date(e);r=isNaN(n.getTime())?parseFloat(e):n.getTime(),a=y1(t,h)}else{let e=y1(t,h)||t;r=typeof e==`string`?parseFloat(e):e,a=String(e)}let o=g1(e[i]),c=g1(e[l]),u=e[s];return{x:r,xLabel:a,y:o,size:c===null?0:Math.abs(c),color:d?e[d]:u,series:u,label:`${u||`Unknown`}`,isValid:h1(r)&&o!==null&&c!==null&&c>0}}).filter(e=>e.isValid&&e.size>0);if(_.length===0)return;let v={...N1,left:N1.left+30,bottom:m.showLegend&&d?100:40},y=c.width-v.left-v.right,b=c.height-v.top-v.bottom,x=t2(o.current).attr(`width`,c.width).attr(`height`,c.height),S=x.append(`g`).attr(`transform`,`translate(${v.left},${v.top})`),C=xD().domain(Yw(_,e=>e.x)).range([0,y]).nice(),w=xD().domain(Yw(_,e=>e.y)).range([b,0]).nice(),T=BD().domain([0,mT(_,e=>e.size)]).range([m.minBubbleSize,m.maxBubbleSize]),E,D=!1,O=[];if(d&&_.length>0){let e=_.map(e=>{let t=e.color;return typeof t==`string`?parseFloat(t):t}).filter(e=>!isNaN(e));if(D=e.length===_.length&&e.every(e=>typeof e==`number`),D){let t=Math.min(...e),n=Math.max(...e);E=GD().domain([t,n]).range(a?.gradient||j1)}else O=[...new Set(_.map(e=>String(e.color)))],E=AT().domain(O).range(a?.colors||A1)}else E=AT().domain([`default`]).range([A1[0]]);let k=(e,t)=>getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t,A=f!==`light`,j=A?k(`--dc-text-muted`,`#cbd5e1`):k(`--dc-text-secondary`,`#374151`),M=A?k(`--dc-border`,`#475569`):`#9ca3af`;if(m.showGrid){let e=S.append(`g`).attr(`class`,`grid`).attr(`transform`,`translate(0,${b})`).call(l0(C).tickSize(-b).tickFormat(()=>``));e.selectAll(`line`).style(`stroke`,M).style(`stroke-dasharray`,`3,3`).style(`opacity`,.3),e.select(`.domain`).style(`stroke`,`none`);let t=S.append(`g`).attr(`class`,`grid`).call(u0(w).tickSize(-y).tickFormat(()=>``));t.selectAll(`line`).style(`stroke`,M).style(`stroke-dasharray`,`3,3`).style(`opacity`,.3),t.select(`.domain`).style(`stroke`,`none`)}let N=l0(C);g?N.tickFormat(e=>{let t=new Date(e);if(isNaN(t.getTime()))return String(e);switch(h?.toLowerCase()){case`year`:return String(t.getUTCFullYear());case`quarter`:{let e=Math.floor(t.getUTCMonth()/3)+1;return`${t.getUTCFullYear()}-Q${e}`}case`month`:return`${t.getUTCFullYear()}-${String(t.getUTCMonth()+1).padStart(2,`0`)}`;case`week`:case`day`:return`${t.getUTCFullYear()}-${String(t.getUTCMonth()+1).padStart(2,`0`)}-${String(t.getUTCDate()).padStart(2,`0`)}`;case`hour`:return`${String(t.getUTCMonth()+1).padStart(2,`0`)}-${String(t.getUTCDate()).padStart(2,`0`)} ${String(t.getUTCHours()).padStart(2,`0`)}:00`;default:return`${t.getUTCFullYear()}-${String(t.getUTCMonth()+1).padStart(2,`0`)}`}}):m.xAxisFormat&&N.tickFormat(e=>v1(e,m.xAxisFormat));let ee=S.append(`g`).attr(`transform`,`translate(0,${b})`).call(N);ee.selectAll(`text`).style(`fill`,j),ee.selectAll(`line, path`).style(`stroke`,M),ee.append(`text`).attr(`x`,y/2).attr(`y`,35).attr(`fill`,j).style(`text-anchor`,`middle`).style(`font-size`,`12px`).text(m.xAxisFormat?.label||p(n));let te=u0(w);m.leftYAxisFormat&&te.tickFormat(e=>v1(e,m.leftYAxisFormat));let ne=S.append(`g`).call(te);ne.selectAll(`text`).style(`fill`,j),ne.selectAll(`line, path`).style(`stroke`,M),ne.append(`text`).attr(`transform`,`rotate(-90)`).attr(`y`,-35).attr(`x`,-b/2).attr(`fill`,j).style(`text-anchor`,`middle`).style(`font-size`,`12px`).text(m.leftYAxisFormat?.label||p(i));let re=t2(`body`).append(`div`).attr(`class`,`bubble-chart-tooltip`).style(`position`,`absolute`).style(`padding`,`8px`).style(`background`,`rgba(0, 0, 0, 0.8)`).style(`color`,`white`).style(`border-radius`,`4px`).style(`font-size`,`12px`).style(`pointer-events`,`none`).style(`opacity`,0).style(`z-index`,1e3),ie=S.selectAll(`.bubble`).data(_).enter().append(`circle`).attr(`class`,`bubble`).attr(`cx`,e=>C(e.x)).attr(`cy`,e=>w(e.y)).attr(`r`,e=>T(e.size)).style(`fill`,e=>d&&e.color!==void 0?E(D?e.color:String(e.color)):A1[0]).style(`opacity`,m.bubbleOpacity).style(`stroke`,`#fff`).style(`stroke-width`,1).style(`cursor`,`pointer`);if(m.showTooltip&&ie.on(`mouseover`,function(e,t){t2(this).transition().duration(200).style(`opacity`,1).attr(`r`,T(t.size)*1.1);let r=[`<strong>${t.series||`Unknown`}</strong>`,`${p(n)}: ${t.xLabel||(m.xAxisFormat?v1(t.x,m.xAxisFormat):t.x)}`,`${p(i)}: ${m.leftYAxisFormat?v1(t.y,m.leftYAxisFormat):t.y}`,`${p(l)}: ${m.leftYAxisFormat?v1(t.size,m.leftYAxisFormat):t.size}`,d&&t.color?`${p(d)}: ${t.color}`:``].filter(Boolean).join(`<br>`);re.html(r).style(`left`,e.pageX+10+`px`).style(`top`,e.pageY-10+`px`).transition().duration(200).style(`opacity`,1)}).on(`mousemove`,function(e){re.style(`left`,e.pageX+10+`px`).style(`top`,e.pageY-10+`px`)}).on(`mouseout`,function(e,t){t2(this).transition().duration(200).style(`opacity`,m.bubbleOpacity).attr(`r`,T(t.size)),re.transition().duration(200).style(`opacity`,0)}),m.showLegend&&d)if(D){let e=Math.min(..._.map(e=>e.color)),t=Math.max(..._.map(e=>e.color)),n=S.append(`g`).attr(`class`,`color-legend`).attr(`transform`,`translate(${y/2-200/2}, ${b+60})`),r=x.append(`defs`).append(`linearGradient`).attr(`id`,`color-scale-gradient`).attr(`x1`,`0%`).attr(`y1`,`0%`).attr(`x2`,`100%`).attr(`y2`,`0%`),i=a?.gradient||j1;i.forEach((e,t)=>{r.append(`stop`).attr(`offset`,`${t/(i.length-1)*100}%`).attr(`stop-color`,e)}),n.append(`rect`).attr(`width`,200).attr(`height`,20).style(`fill`,`url(#color-scale-gradient)`).style(`stroke`,`#ccc`).style(`stroke-width`,1),n.append(`text`).attr(`x`,0).attr(`y`,35).attr(`text-anchor`,`start`).style(`font-size`,`11px`).style(`fill`,j).text(m.leftYAxisFormat?v1(e,m.leftYAxisFormat):e.toFixed(2)),n.append(`text`).attr(`x`,200).attr(`y`,35).attr(`text-anchor`,`end`).style(`font-size`,`11px`).style(`fill`,j).text(m.leftYAxisFormat?v1(t,m.leftYAxisFormat):t.toFixed(2)),n.append(`text`).attr(`x`,200/2).attr(`y`,-5).attr(`text-anchor`,`middle`).style(`font-size`,`12px`).style(`font-weight`,`bold`).style(`fill`,j).text(p(d))}else{let e=O;if(e.length>0){let t=S.append(`g`).attr(`class`,`legend`).attr(`transform`,`translate(${y/2-e.length*80/2}, ${b+60})`).selectAll(`.legend-item`).data(e).enter().append(`g`).attr(`class`,`legend-item`).attr(`transform`,(e,t)=>`translate(${t*80}, 0)`).style(`cursor`,`pointer`);t.append(`circle`).attr(`cx`,5).attr(`cy`,5).attr(`r`,5).style(`fill`,e=>E(e)).style(`opacity`,m.bubbleOpacity),t.append(`text`).attr(`x`,15).attr(`y`,5).attr(`dy`,`.35em`).style(`font-size`,`11px`).style(`fill`,j).text(e=>String(e)),t.on(`mouseover`,function(e,t){ie.transition().duration(200).style(`opacity`,e=>d&&String(e.color)===t?1:.2)}).on(`mouseout`,function(){ie.transition().duration(200).style(`opacity`,m.bubbleOpacity)})}}return()=>{re.remove()}},[e,t,m,r,c,u,a,f,p]),!e||e.length===0?(0,y5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:i},children:(0,y5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,y5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,y5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in bubble chart`})]})}):t?.xAxis&&t?.yAxis&&t?.series?(0,y5.jsx)(`div`,{className:`dc:w-full dc:flex-1 dc:flex dc:flex-col dc:relative`,style:{height:i,minHeight:`250px`,overflow:`hidden`},children:(0,y5.jsxs)(`div`,{ref:s,className:`dc:w-full dc:h-full dc:relative`,children:[(0,y5.jsx)(`svg`,{ref:o,className:`dc:w-full dc:h-full`}),!u&&(0,y5.jsx)(`div`,{className:`dc:absolute dc:inset-0 dc:flex dc:items-center dc:justify-center`,children:(0,y5.jsx)(`div`,{className:`text-dc-text-muted dc:text-sm`,children:`Measuring chart dimensions...`})})]})}):(0,y5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:i},children:(0,y5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,y5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Required`}),(0,y5.jsx)(`div`,{className:`dc:text-xs`,children:`Bubble chart requires xAxis, yAxis, series, and sizeField dimensions`}),(0,y5.jsx)(`div`,{className:`dc:text-xs dc:mt-1`,children:`Optional: colorField for bubble coloring`})]})})})})),x5,S5,C5,Fbe=o((()=>{x5=u(f(),1),c3(),P1(),S1(),U1(),h5(),S5=s1(),C5=x5.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=`100%`,colorPalette:a,onDataPointClick:o,drillEnabled:s}){let c=(0,x5.useRef)(null),l=(0,x5.useRef)(null),[u,d]=(0,x5.useState)({width:0,height:0}),[f,p]=(0,x5.useState)(!1),[m,h]=(0,x5.useState)(`light`),g=V1();(0,x5.useEffect)(()=>(h(p5()),m5(e=>{h(e)})),[]);let _=(0,x5.useMemo)(()=>({showTooltip:n?.showTooltip??!0,showLabels:n?.showLabels??!0,fitToWidth:n?.fitToWidth??!1}),[n?.showTooltip,n?.showLabels,n?.fitToWidth]);(0,x5.useLayoutEffect)(()=>{let e=0,t,n,r=()=>{if(l.current){let{width:e,height:t}=l.current.getBoundingClientRect();if(e>0&&t>0)return d({width:e,height:t}),p(!0),!0}return!1};if(!r()&&e<10){let i=()=>{!r()&&e<10&&(e++,n=setTimeout(()=>{t=requestAnimationFrame(i)},50*e))};t=requestAnimationFrame(i)}return()=>{t&&cancelAnimationFrame(t),n&&clearTimeout(n)}},[]),(0,x5.useEffect)(()=>{let e=null,t=()=>{if(l.current){let{width:e,height:t}=l.current.getBoundingClientRect();e>0&&t>0&&(d({width:e,height:t}),f||p(!0))}};return l.current&&(e=new ResizeObserver(()=>t()),e.observe(l.current),t()),window.addEventListener(`resize`,t),()=>{e&&e.disconnect(),window.removeEventListener(`resize`,t)}},[f]);let v=e=>Math.floor(e.getMonth()/3)+1,y=e=>e.getMonth()%3+1,b=e=>{let t=e.getDate();return Math.floor((t-1)/7)+1},x=(0,x5.useCallback)(e=>{switch(e?.toLowerCase()){case`year`:return null;case`quarter`:return{extractX:e=>e.getFullYear(),extractY:e=>v(e)-1,xLabels:[],yLabels:[`Q1`,`Q2`,`Q3`,`Q4`],xFormat:e=>`'${e.toString().slice(-2)}`,yFormat:e=>[`Q1`,`Q2`,`Q3`,`Q4`][e]||``,cellWidth:16,cellHeight:16};case`month`:return{extractX:e=>{let t=e.getFullYear(),n=v(e);return t*10+n},extractY:e=>y(e)-1,xLabels:[],yLabels:[`Month 1`,`Month 2`,`Month 3`],xFormat:e=>`Q${e%10}`,yFormat:e=>[`Month 1`,`Month 2`,`Month 3`][e]||``,cellWidth:16,cellHeight:16,hasHierarchicalLabels:!0,getYearFromX:e=>Math.floor(e/10)};case`week`:return{extractX:e=>{let t=e.getFullYear(),n=e.getMonth()+1;return t*100+n},extractY:e=>b(e)-1,xLabels:[],yLabels:[`Week 1`,`Week 2`,`Week 3`,`Week 4`,`Week 5`],xFormat:e=>[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`][e%100-1]||``,yFormat:e=>[`Week 1`,`Week 2`,`Week 3`,`Week 4`,`Week 5`][e]||``,cellWidth:16,cellHeight:16,hasHierarchicalLabels:!0,getYearFromX:e=>Math.floor(e/100)};case`day`:return{extractX:e=>{let{year:t,week:n}=S(e);return t*100+n},extractY:e=>e.getDay(),xLabels:[],yLabels:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],xFormat:e=>`${e%100}`,yFormat:e=>[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`][e]||``,cellWidth:16,cellHeight:16,hasHierarchicalLabels:!0,getYearFromX:e=>Math.floor(e/100)};case`hour`:return{extractX:e=>{let t=e.getFullYear(),n=e.getMonth()+1,r=e.getDate();return t*1e4+n*100+r},extractY:e=>Math.floor(e.getHours()/3),xLabels:[],yLabels:[`00-03`,`03-06`,`06-09`,`09-12`,`12-15`,`15-18`,`18-21`,`21-00`],xFormat:e=>`${e%100}`,yFormat:e=>[`00-03`,`03-06`,`06-09`,`09-12`,`12-15`,`15-18`,`18-21`,`21-00`][e]||``,cellWidth:16,cellHeight:16,hasHierarchicalLabels:!0,getYearFromX:e=>Math.floor(e/100)};default:return null}},[]),S=e=>{let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),n=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-n);let r=t.getUTCFullYear(),i=new Date(Date.UTC(r,0,1));return{year:r,week:Math.ceil(((t.getTime()-i.getTime())/864e5+1)/7)}};if((0,x5.useEffect)(()=>{if(!e||e.length===0||!c.current||!f||u.width===0||(t2(c.current).selectAll(`*`).remove(),!t?.dateField||!t?.valueField))return;let n=Array.isArray(t.dateField)?t.dateField[0]:t.dateField,i=Array.isArray(t.valueField)?t.valueField[0]:t.valueField;if(!n||!i)return;let l=(()=>{if(!r?.timeDimensions||r.timeDimensions.length===0)return`day`;let e=r.timeDimensions.find(e=>e.dimension===n||e.dimension.includes(n));if(e&&e.granularity)return e.granularity;let t=r.timeDimensions[0];return t&&t.granularity?t.granularity:`day`})(),d=x(l);if(!d)return;let p=e.map(e=>{let t=e[n],r=typeof e[i]==`string`?parseFloat(e[i]):e[i]||0,a;if(typeof t==`string`){let e=t;t.includes(` `)&&(e=t.replace(` `,`T`).replace(`+00`,`Z`).replace(/\+\d{2}:\d{2}$/,`Z`)),!e.endsWith(`Z`)&&!e.includes(`+`)&&(e+=`Z`),a=new Date(e)}else a=new Date(t);return isNaN(a.getTime())?null:{x:d.extractX(a),y:d.extractY(a),value:r,date:a,label:y1(t,l)}}).filter(e=>e!==null);if(p.length===0)return;let h=mT(p,e=>e.y)||0,v=gT(p,e=>e.y)||0,y=[...new Set(p.map(e=>e.x))].sort(),b=y.length*d.cellWidth+(y.length-1)*4,S=(h-v+1)*d.cellHeight+(h-v)*4,C={...N1,left:60,bottom:10,top:d.hasHierarchicalLabels?40:25,right:10},w=u.width-C.left-C.right,T=u.height-C.top-C.bottom,E,D;if(_.fitToWidth){let e=w/b,t=T/S,n=Math.min(e,t);E=d.cellWidth*n,D=d.cellHeight*n}else{let e={width:16,height:16},t=w/b,n=T/S,r=Math.min(t,n);E=Math.max(e.width,Math.min(24,d.cellWidth*r)),D=Math.max(e.height,Math.min(24,d.cellHeight*r)),l===`week`&&E<e.width&&(E=e.width)}let O=y.length*E+(y.length-1)*4,k=O>w?O+C.left+C.right:u.width,A=t2(c.current).attr(`width`,k).attr(`height`,u.height).append(`g`).attr(`transform`,`translate(${C.left},${C.top})`),j=p.map(e=>e.value),M=gT(j)||0,N=mT(j)||1,ee=GD().domain([M,N]).range(a?.gradient||j1),te=new Map;p.forEach(e=>{let t=`${e.x}-${e.y}`;te.set(t,e)});let ne=(e,t)=>getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t,re=m!==`light`,ie=re?ne(`--dc-text-muted`,`#cbd5e1`):ne(`--dc-text-secondary`,`#374151`),ae=ne(`--dc-border`,`#e5e7eb`),oe=re?ne(`--dc-bg-secondary`,`#1e293b`):ne(`--dc-bg-secondary`,`#f3f4f6`),se=re?ne(`--dc-border`,`#334155`):ne(`--dc-bg`,`#ffffff`),ce=t2(`body`).append(`div`).attr(`class`,`activity-grid-tooltip`).style(`position`,`absolute`).style(`padding`,`8px`).style(`background`,`rgba(0, 0, 0, 0.8)`).style(`color`,`white`).style(`border-radius`,`4px`).style(`font-size`,`12px`).style(`pointer-events`,`none`).style(`opacity`,0).style(`z-index`,1e3),P=new Map;y.forEach((e,t)=>{P.set(e,t)});for(let e of y)for(let t=v;t<=h;t++){let r=`${e}-${t}`,a=te.get(r),c=P.get(e)||0,l=A.append(`rect`).attr(`x`,c*(E+4)).attr(`y`,(t-v)*(D+4)).attr(`width`,E).attr(`height`,D).attr(`rx`,2).attr(`ry`,2).style(`fill`,a?ee(a.value):oe).style(`stroke`,se).style(`stroke-width`,1);_.showTooltip?l.style(`cursor`,s?`pointer`:`default`).on(`mouseover`,function(e){if(t2(this).style(`stroke`,`#000`).style(`stroke-width`,2),a){let t=[`<strong>${a.label}</strong>`,`${g(i)}: ${a.value}`].join(`<br>`);ce.html(t).style(`left`,e.pageX+10+`px`).style(`top`,e.pageY-10+`px`).transition().duration(200).style(`opacity`,1)}}).on(`mousemove`,function(e){ce.style(`left`,e.pageX+10+`px`).style(`top`,e.pageY-10+`px`)}).on(`mouseout`,function(){t2(this).style(`stroke`,se).style(`stroke-width`,1),ce.transition().duration(200).style(`opacity`,0)}):s&&l.style(`cursor`,`pointer`),s&&o&&a&&l.on(`click`,function(e){o({dataPoint:{[i]:a.value,[n]:a.date},clickedField:i,xValue:a.label,position:{x:e.pageX,y:e.pageY},nativeEvent:e})})}if(_.showLabels){if(d.hasHierarchicalLabels&&d.getYearFromX){let e=new Map;for(let t of y){let n=d.getYearFromX(t);e.has(n)||e.set(n,[]),e.get(n).push(t)}for(let e of y){let t=P.get(e)||0;A.append(`text`).attr(`x`,t*(E+4)+E/2).attr(`y`,-8).attr(`text-anchor`,`middle`).style(`font-size`,`10px`).style(`fill`,ie).text(d.xFormat(e))}for(let[t,n]of e)if(n.length>0){let e=Math.min(...n.map(e=>P.get(e)||0)),r=Math.max(...n.map(e=>P.get(e)||0)),i=(e+r)/2,a;if(t>9999){let e=Math.floor(t/100);a=`${[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`][t%100-1]} '${e.toString().slice(-2)}`}else a=`'${t.toString().slice(-2)}`;A.append(`text`).attr(`x`,i*(E+4)+E/2).attr(`y`,-25).attr(`text-anchor`,`middle`).style(`font-size`,`12px`).style(`font-weight`,`bold`).style(`fill`,ie).text(a),n.length>1&&A.append(`line`).attr(`x1`,e*(E+4)).attr(`x2`,r*(E+4)+E).attr(`y1`,-20).attr(`y2`,-20).style(`stroke`,ae).style(`stroke-width`,1).style(`opacity`,.3)}}else{let e=Math.max(1,Math.floor(y.length/10));for(let t=0;t<y.length;t+=e){let e=y[t];A.append(`text`).attr(`x`,t*(E+4)+E/2).attr(`y`,-8).attr(`text-anchor`,`middle`).style(`font-size`,`10px`).style(`fill`,ie).text(d.xFormat(e))}}for(let e=v;e<=h;e++)A.append(`text`).attr(`x`,-8).attr(`y`,(e-v)*(D+4)+D/2).attr(`text-anchor`,`end`).attr(`dy`,`.35em`).style(`font-size`,`10px`).style(`fill`,ie).text(d.yFormat(e))}return()=>{ce.remove()}},[e,t,n,r,u,f,_,a,m,g,x,s,o]),!e||e.length===0)return(0,S5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:i},children:(0,S5.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,S5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,S5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in activity grid`})]})});if(!(t?.dateField&&t?.valueField))return(0,S5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:i},children:(0,S5.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,S5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Required`}),(0,S5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Activity grid requires a time dimension and a measure`})]})});let C=Array.isArray(t.dateField)?t.dateField[0]:t.dateField;return(r?.timeDimensions?.find(e=>e.dimension===C||e.dimension.includes(C))?.granularity||`day`)?.toLowerCase()===`year`?(0,S5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:i},children:(0,S5.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,S5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Granularity Too High`}),(0,S5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Activity grids work best with hour, day, week, month, or quarter granularity`}),(0,S5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary dc:mt-1`,children:`Please choose a lower granularity for your time dimension`})]})}):(0,S5.jsx)(`div`,{className:`dc:w-full dc:flex dc:flex-col dc:relative`,style:{height:i,minHeight:`250px`,overflow:`hidden`,width:`100%`},children:(0,S5.jsxs)(`div`,{ref:l,className:`dc:w-full dc:h-full dc:relative dc:overflow-x-auto`,style:{width:`100%`},children:[(0,S5.jsx)(`svg`,{ref:c,className:`dc:h-full`}),!f&&(0,S5.jsx)(`div`,{className:`dc:absolute dc:inset-0 dc:flex dc:items-center dc:justify-center`,children:(0,S5.jsx)(`div`,{className:`text-dc-text-muted dc:text-sm`,children:`Measuring chart dimensions...`})})]})})})}));function w5(e){if(e==null)return`-`;if(e<60)return`${Math.round(e)}s`;if(e<3600){let t=e/60;return t<10?`${t.toFixed(1)}m`:`${Math.round(t)}m`}if(e<86400){let t=e/3600;return t<10?`${t.toFixed(1)}h`:`${Math.round(t)}h`}let t=e/86400;return t<10?`${t.toFixed(1)}d`:`${Math.round(t)}d`}var Ibe=o((()=>{}));function T5(e,t){let n=t||O5;return n[e%n.length]}function Lbe(e){if(!e||e.length===0)return!1;let t=e[0];return typeof t==`object`&&!!t&&`name`in t&&`value`in t&&`percentage`in t}function E5(e,t,n,r){let i=[];return t&&e.avgSecondsToConvert!=null&&i.push(`Avg: ${w5(e.avgSecondsToConvert)}`),n&&e.medianSecondsToConvert!=null&&i.push(`Med: ${w5(e.medianSecondsToConvert)}`),r&&e.p90SecondsToConvert!=null&&i.push(`P90: ${w5(e.p90SecondsToConvert)}`),i}var D5,$,O5,k5,Rbe=o((()=>{D5=u(f(),1),o1(),P1(),Ibe(),$=s1(),O5=[`#3B82F6`,`#60A5FA`,`#93C5FD`,`#BFDBFE`,`#DBEAFE`],k5=D5.memo(function({data:e,height:t=`100%`,colorPalette:n,displayConfig:r}){let i=r?.funnelStepLabels,a=(r?.funnelOrientation||`horizontal`)===`vertical`,o=r?.funnelStyle??`bars`,s=r?.showFunnelConversion??!0,c=r?.showFunnelAvgTime??r?.showFunnelTimeMetrics??!1,l=r?.showFunnelMedianTime??!1,u=r?.showFunnelP90Time??!1,d=(0,D5.useMemo)(()=>!e||e.length===0?[]:Lbe(e)?e:e.map((e,t)=>{let n=e,r=Object.keys(n).find(e=>e.toLowerCase().includes(`step`)||e.toLowerCase().includes(`name`)||e===`__stepName`),i=r?String(n[r]):`Step ${t+1}`,a=Object.keys(n).find(e=>e.toLowerCase().includes(`count`)||e.toLowerCase().includes(`value`)||e===`__count`),o=a&&Number(n[a])||0,s=Object.keys(n).find(e=>e.toLowerCase().includes(`percent`)||e===`__percentage`),c=s&&Number(n[s])||0,l=Object.keys(n).find(e=>e.toLowerCase().includes(`conversion`)||e===`__conversionRate`);return{name:i,value:o,percentage:c,conversionRate:l&&Number(n[l])||null,stepIndex:t}}),[e]),f=d[0]?.value||0;if(!e||e.length===0||d.length===0)return(0,$.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:t},children:(0,$.jsxs)(`div`,{className:`dc:text-center`,children:[(0,$.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No funnel data`}),(0,$.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Configure a funnel with at least 2 steps and a binding key`})]})});let p=n?.colors||A1;return o===`funnel`?(0,$.jsxs)(`div`,{className:`dc:relative dc:w-full dc:h-full dc:flex dc:flex-col`,style:{height:t},children:[(0,$.jsx)(`div`,{className:`dc:flex-1`,children:(0,$.jsx)(Dv,{width:`100%`,height:`100%`,children:(0,$.jsxs)(a1,{layout:a?`horizontal`:`vertical`,accessibilityLayer:!1,children:[(0,$.jsx)(gI,{formatter:e=>typeof e==`number`?e.toLocaleString():String(e),contentStyle:{backgroundColor:`var(--dc-surface)`,border:`1px solid var(--dc-border)`,borderRadius:`4px`}}),(0,$.jsxs)(e1,{dataKey:`value`,nameKey:`name`,data:d,isAnimationActive:!0,children:[d.map((e,t)=>(0,$.jsx)(SI,{fill:T5(t,p)},`cell-${t}`)),(0,$.jsx)(VL,{position:`right`,dataKey:`name`,fill:`var(--dc-text)`,style:{fontSize:`12px`}}),(0,$.jsx)(VL,{position:`center`,dataKey:`percentage`,formatter:e=>typeof e==`number`?`${e.toFixed(1)}%`:String(e),fill:`#fff`,style:{fontSize:`11px`,fontWeight:500}})]})]})})}),!r?.hideSummaryFooter&&(0,$.jsx)(`div`,{className:`dc:flex-shrink-0 dc:px-4 dc:py-2 dc:border-t border-dc-border bg-dc-surface-secondary`,children:(0,$.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-between dc:text-sm`,children:[(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[(0,$.jsx)(`span`,{className:`dc:font-medium`,children:d.length}),` steps`]}),(0,$.jsxs)(`div`,{className:`text-dc-text`,children:[(0,$.jsx)(`span`,{className:`text-dc-text-muted`,children:`Overall:`}),` `,(0,$.jsx)(`span`,{className:`dc:font-medium`,children:f>0?`${((d[d.length-1]?.value||0)/f*100).toFixed(1)}%`:`0%`})]}),(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[d[d.length-1]?.value.toLocaleString()||0,` / `,f.toLocaleString(),` completed`]})]})})]}):a?(0,$.jsxs)(`div`,{className:`dc:relative dc:w-full dc:h-full dc:flex dc:flex-col`,style:{height:t},children:[(0,$.jsx)(`div`,{className:`dc:flex-1 dc:flex dc:items-end dc:justify-center dc:gap-4 dc:px-4 dc:py-3 dc:overflow-hidden`,children:d.map((e,t)=>{let n=f>0?e.value/f*100:0,r=t>0?d[t-1]:null,a=r&&r.value>0?e.value/r.value*100:null,o=i?.[t]||e.name,m=E5(e,c,l,u),h=m.length;return(0,$.jsxs)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:gap-2 dc:flex-1 dc:max-w-32 dc:h-full`,children:[(0,$.jsx)(`div`,{className:`${h>0?h>1?`dc:min-h-16`:`dc:min-h-10`:`dc:h-5`} dc:flex-shrink-0 dc:text-center`,children:a===null?(0,$.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`—`}):(0,$.jsxs)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:[s&&(0,$.jsxs)(`span`,{children:[`→ `,a.toFixed(1),`%`]}),h>0&&(0,$.jsx)(`div`,{className:`text-dc-text-muted dc:mt-0.5 dc:space-y-0.5`,children:m.map((e,t)=>(0,$.jsxs)(`div`,{children:[`⏱ `,e]},t))})]})}),(0,$.jsxs)(`div`,{className:`dc:flex-1 dc:w-full dc:relative dc:min-h-12`,children:[(0,$.jsx)(`div`,{className:`dc:absolute dc:inset-0 bg-dc-surface-secondary dc:rounded-sm`}),(0,$.jsx)(`div`,{className:`dc:absolute dc:bottom-0 dc:left-0 dc:right-0 dc:rounded-sm dc:transition-all dc:duration-300`,style:{height:`${Math.max(n,5)}%`,backgroundColor:T5(t,p)}}),(0,$.jsx)(`div`,{className:`dc:absolute dc:bottom-0 dc:left-0 dc:right-0 dc:flex dc:items-end dc:justify-center dc:pb-1 dc:pointer-events-none`,style:{height:`${Math.max(n,20)}%`},children:(0,$.jsxs)(`span`,{className:`dc:text-xs dc:font-medium text-white dc:drop-shadow-sm`,children:[e.percentage?.toFixed(1)??n.toFixed(1),`%`]})})]}),(0,$.jsxs)(`div`,{className:`dc:flex-shrink-0 dc:text-center`,children:[(0,$.jsx)(`div`,{className:`dc:text-sm dc:font-medium text-dc-text dc:truncate`,title:o,children:o}),(0,$.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:e.value.toLocaleString()})]})]},e.name)})}),!r?.hideSummaryFooter&&(0,$.jsx)(`div`,{className:`dc:flex-shrink-0 dc:px-4 dc:py-2 dc:border-t border-dc-border bg-dc-surface-secondary`,children:(0,$.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-between dc:text-sm`,children:[(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[(0,$.jsx)(`span`,{className:`dc:font-medium`,children:d.length}),` steps`]}),(0,$.jsxs)(`div`,{className:`text-dc-text`,children:[(0,$.jsx)(`span`,{className:`text-dc-text-muted`,children:`Overall:`}),` `,(0,$.jsx)(`span`,{className:`dc:font-medium`,children:f>0?`${((d[d.length-1]?.value||0)/f*100).toFixed(1)}%`:`0%`})]}),(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[d[d.length-1]?.value.toLocaleString()||0,` / `,f.toLocaleString(),` completed`]})]})})]}):(0,$.jsxs)(`div`,{className:`dc:relative dc:w-full dc:h-full dc:flex dc:flex-col`,style:{height:t},children:[(0,$.jsx)(`div`,{className:`dc:flex-1 dc:flex dc:flex-col dc:justify-center dc:gap-2 dc:px-4 dc:py-3 dc:overflow-hidden`,children:d.map((e,t)=>{let n=f>0?e.value/f*100:0,r=t>0?d[t-1]:null,a=r&&r.value>0?e.value/r.value*100:null,o=i?.[t]||e.name,m=E5(e,c,l,u),h=m.length;return(0,$.jsxs)(`div`,{className:`dc:flex dc:items-center dc:gap-3`,children:[(0,$.jsxs)(`div`,{className:`dc:w-24 dc:flex-shrink-0 dc:text-right`,children:[(0,$.jsx)(`div`,{className:`dc:text-sm dc:font-medium text-dc-text dc:truncate`,title:o,children:o}),(0,$.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:e.value.toLocaleString()})]}),(0,$.jsxs)(`div`,{className:`dc:flex-1 dc:relative`,children:[(0,$.jsx)(`div`,{className:`dc:w-full dc:h-8 bg-dc-surface-secondary dc:rounded-sm`}),(0,$.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:left-0 dc:h-8 dc:rounded-sm dc:transition-all dc:duration-300`,style:{width:`${Math.max(n,2)}%`,backgroundColor:T5(t,p)}}),(0,$.jsx)(`div`,{className:`dc:absolute dc:top-0 dc:left-0 dc:h-8 dc:flex dc:items-center dc:px-2 dc:pointer-events-none`,style:{width:`${Math.max(n,20)}%`},children:(0,$.jsxs)(`span`,{className:`dc:text-xs dc:font-medium text-white dc:drop-shadow-sm`,children:[e.percentage?.toFixed(1)??n.toFixed(1),`%`]})})]}),(0,$.jsx)(`div`,{className:`${h>0?h>1?`dc:w-36`:`dc:w-28`:`dc:w-16`} dc:flex-shrink-0 dc:text-left`,children:a===null?(0,$.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`—`}):(0,$.jsxs)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:[s&&(0,$.jsxs)(`span`,{children:[`↓ `,a.toFixed(1),`%`]}),h>0&&(0,$.jsx)(`div`,{className:`text-dc-text-muted dc:mt-0.5 dc:space-y-0.5`,children:m.map((e,t)=>(0,$.jsxs)(`div`,{children:[`⏱ `,e]},t))})]})})]},e.name)})}),!r?.hideSummaryFooter&&(0,$.jsx)(`div`,{className:`dc:flex-shrink-0 dc:px-4 dc:py-2 dc:border-t border-dc-border bg-dc-surface-secondary`,children:(0,$.jsxs)(`div`,{className:`dc:flex dc:items-center dc:justify-between dc:text-sm`,children:[(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[(0,$.jsx)(`span`,{className:`dc:font-medium`,children:d.length}),` steps`]}),(0,$.jsxs)(`div`,{className:`text-dc-text`,children:[(0,$.jsx)(`span`,{className:`text-dc-text-muted`,children:`Overall:`}),` `,(0,$.jsx)(`span`,{className:`dc:font-medium`,children:f>0?`${((d[d.length-1]?.value||0)/f*100).toFixed(1)}%`:`0%`})]}),(0,$.jsxs)(`div`,{className:`text-dc-text-muted`,children:[d[d.length-1]?.value.toLocaleString()||0,` / `,f.toLocaleString(),` completed`]})]})})]})})}));function A5(e){if(e==null)return null;let t=typeof e==`number`?e:parseFloat(String(e));return isNaN(t)?null:t}function zbe(e,t,n,r,i,a,o,s){let c=A5(e[t]),l=A5(e[n]),u=A5(e[r]),d=A5(e[i]),f=A5(e[a]);return c===null||l===null||u===null||d===null||f===null?null:{label:o,min:c,q1:l,median:u,q3:d,max:f,color:s}}function Bbe(e,t,n,r,i,a){let o=A5(e[t]),s=A5(e[n]),c=A5(e[r]);if(o===null||s===null||c===null)return null;let l=Math.abs(s);return{label:i,min:o-2*l,q1:o-l,median:c,q3:o+l,max:o+2*l,color:a}}function Vbe({x:e,boxWidth:t,minY:n,q1Y:r,medianY:i,q3Y:a,maxY:o,color:s,label:c}){let l=t/2,u=e,d=t*.4;return(0,M5.jsxs)(`g`,{"data-testid":`box-${c}`,children:[(0,M5.jsx)(`line`,{x1:u,y1:n,x2:u,y2:o,stroke:s,strokeWidth:1.5}),(0,M5.jsx)(`line`,{x1:u-d/2,y1:n,x2:u+d/2,y2:n,stroke:s,strokeWidth:1.5}),(0,M5.jsx)(`line`,{x1:u-d/2,y1:o,x2:u+d/2,y2:o,stroke:s,strokeWidth:1.5}),(0,M5.jsx)(`rect`,{x:u-l,y:Math.min(r,a),width:t,height:Math.abs(a-r)||2,fill:s,fillOpacity:.3,stroke:s,strokeWidth:1.5}),(0,M5.jsx)(`line`,{x1:u-l,y1:i,x2:u+l,y2:i,stroke:s,strokeWidth:2.5,"data-testid":`median-${c}`})]})}function Hbe({scale:e,domainMin:t,domainMax:n,width:r,tickCount:i=5,format:a}){let o=(0,j5.useMemo)(()=>{let e=n-t;if(e===0)return[t];let r=e/(i-1);return Array.from({length:i},(e,n)=>t+n*r)},[t,n,i]);return(0,M5.jsxs)(`g`,{"data-testid":`y-axis`,children:[o.map((t,n)=>(0,M5.jsxs)(`g`,{transform:`translate(0, ${e(t)})`,children:[(0,M5.jsx)(`line`,{x1:0,x2:-6,stroke:`currentColor`,strokeWidth:1}),(0,M5.jsx)(`text`,{x:-10,textAnchor:`end`,dominantBaseline:`middle`,fontSize:11,fill:`currentColor`,className:`text-dc-text-secondary`,children:a?a(t):t.toLocaleString()}),(0,M5.jsx)(`line`,{x1:0,x2:r,stroke:`currentColor`,strokeOpacity:.1,strokeWidth:1})]},n)),(0,M5.jsx)(`line`,{y1:e(o[0]),y2:e(o[o.length-1]),stroke:`currentColor`,strokeWidth:1})]})}var j5,M5,N5,P5,Ube=o((()=>{j5=u(f(),1),P1(),S1(),M5=s1(),N5=50,P5=j5.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,colorPalette:i,onDataPointClick:a,drillEnabled:o}){let s=(0,j5.useRef)(null),[c,l]=(0,j5.useState)({width:0,height:0});(0,j5.useLayoutEffect)(()=>{let e=s.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&l({width:e,height:n})}});t.observe(e);let n=e.getBoundingClientRect();return n.width>0&&n.height>0&&l({width:n.width,height:n.height}),()=>t.disconnect()},[]);let u=n?.leftYAxisFormat,{xField:d,mode:f,fields:p,configError:m}=(0,j5.useMemo)(()=>{let e=Array.isArray(t?.xAxis)?t.xAxis[0]:t?.xAxis??t?.x,n=Array.isArray(t?.yAxis)?t.yAxis:[];return!e||n.length===0?{xField:e,mode:`none`,fields:{},configError:`BoxPlot requires an X-Axis dimension and at least one measure in Y-Axis`}:n.length>=5?{xField:e,mode:`5measure`,fields:{minField:n[0],q1Field:n[1],medianField:n[2],q3Field:n[3],maxField:n[4]},configError:null}:n.length>=3?{xField:e,mode:`3measure`,fields:{avgField:n[0],stddevField:n[1],medianField:n[2]},configError:null}:n.length===2?{xField:e,mode:`none`,fields:{},configError:`BoxPlot requires 1 measure (auto), 3 (avg/stddev/median), or 5 (min/q1/median/q3/max)`}:{xField:e,mode:`auto`,fields:{valueField:n[0]},configError:null}},[t]),h=(0,j5.useMemo)(()=>{if(m||!e||e.length===0||f===`none`)return[];let t=e.slice(0,N5),n=i?.colors??A1,r=[];for(let e=0;e<t.length;e++){let i=t[e],a=d?String(i[d]??`Row ${e+1}`):`Row ${e+1}`,o=n[e%n.length],s=null;if(f===`5measure`)s=zbe(i,p.minField,p.q1Field,p.medianField,p.q3Field,p.maxField,a,o);else if(f===`3measure`)s=Bbe(i,p.avgField,p.stddevField,p.medianField,a,o);else{let e=A5(i[p.valueField]);e!==null&&(s={label:a,min:e,q1:e,median:e,q3:e,max:e,color:o})}s&&r.push(s)}return r},[e,d,f,p,i,m]);if(!e||e.length===0)return(0,M5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,M5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,M5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,M5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in box plot chart`})]})});if(m)return(0,M5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:r},children:(0,M5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,M5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,M5.jsx)(`div`,{className:`dc:text-xs`,children:m})]})});if(h.length===0)return(0,M5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,M5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,M5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,M5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Could not compute box plot statistics from the provided data`})]})});try{let t={top:20,right:20,bottom:60,left:60},n=c.width||600,i=typeof r==`number`?r:c.height||400,l=Math.max(n-t.left-t.right,50),f=Math.max(i-t.top-t.bottom,50),p=h.flatMap(e=>[e.min,e.max]),m=Math.min(...p),g=Math.max(...p),_=(g-m)*.1||1,v=m-_,y=g+_,b=y-v,x=e=>b===0?f/2:f-(e-v)/b*f,S=l/h.length,C=Math.min(S*.6,40),w=e.length>N5;return(0,M5.jsxs)(`div`,{ref:s,className:`dc:relative dc:w-full`,style:{height:r},children:[(0,M5.jsx)(`svg`,{width:`100%`,height:w?`calc(100% - 20px)`:`100%`,viewBox:`0 0 ${n} ${typeof i==`number`?i:400}`,preserveAspectRatio:`none`,"data-testid":`boxplot-svg`,children:(0,M5.jsxs)(`g`,{transform:`translate(${t.left}, ${t.top})`,children:[(0,M5.jsx)(Hbe,{scale:x,domainMin:v,domainMax:y,width:l,tickCount:5,format:u?e=>v1(e,u):void 0}),h.map((e,t)=>{let n=S*t+S/2;return(0,M5.jsxs)(`g`,{onClick:t=>{a&&o&&a({dataPoint:{...e},clickedField:d??``,xValue:e.label,position:{x:t.clientX,y:t.clientY},nativeEvent:t})},cursor:o?`pointer`:void 0,children:[(0,M5.jsx)(`title`,{children:`${e.label}: min=${e.min}, Q1=${e.q1}, median=${e.median}, Q3=${e.q3}, max=${e.max}`}),(0,M5.jsx)(Vbe,{x:n,boxWidth:C,minY:x(e.min),q1Y:x(e.q1),medianY:x(e.median),q3Y:x(e.q3),maxY:x(e.max),color:e.color,label:e.label}),(0,M5.jsx)(`text`,{x:n,y:f+20,textAnchor:`middle`,fontSize:11,fill:`currentColor`,className:`text-dc-text-secondary`,"data-testid":`x-label-${e.label}`,children:e.label})]},`${e.label}-${t}`)})]})}),w&&(0,M5.jsxs)(`div`,{className:`dc:text-xs text-dc-warning dc:text-center dc:mt-1`,children:[`Data truncated to `,N5,` groups (original: `,e.length,`)`]})]})}catch(e){return(0,M5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:r},children:(0,M5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,M5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Box Plot Chart Error`}),(0,M5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,M5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function Wbe(e,t,n,r,i){let a=0,o=e.map((e,r)=>{let i=String(e[t]??`Row ${r+1}`),o=e[n],s=typeof o==`number`?o:parseFloat(String(o??``)),c=isNaN(s)?0:s,l=c<0,u=l?a+c:a,d={label:i,value:Math.abs(c),runningBase:u,isTotal:!1,isNegative:l,displayValue:c,originalIndex:r};return a+=c,d});if(r){let e=i(n)||`Total`;o.push({label:e,value:Math.abs(a),runningBase:a>=0?0:a,isTotal:!0,isNegative:a<0,displayValue:a,originalIndex:o.length})}return o}function Gbe(e){let{x:t=0,y:n=0,width:r=0,value:i=0,isNegative:a,displayValue:o}=e;if(o==null)return null;let s=Number(o),c=a||s<0?n+i+14:n-6;return(0,I5.jsxs)(`text`,{x:t+r/2,y:c,fill:`currentColor`,textAnchor:`middle`,fontSize:11,children:[s>=0?`+`:``,s.toLocaleString()]})}var F5,I5,L5,R5,z5,B5,V5,Kbe=o((()=>{F5=u(f(),1),o1(),m1(),E1(),k1(),P1(),S1(),U1(),I5=s1(),L5=`#22c55e`,R5=`#ef4444`,z5=`#6366f1`,B5=`#94a3b8`,V5=F5.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,onDataPointClick:i,drillEnabled:a}){let o=V1(),s=n?.showTotal??!0,c=n?.showConnectorLine??!0,l=n?.showDataLabels??!1,u=n?.leftYAxisFormat,{xAxisField:d,yAxisField:f,configError:p}=(0,F5.useMemo)(()=>{let e=Array.isArray(t?.xAxis)?t.xAxis[0]:t?.x,n=Array.isArray(t?.yAxis)?t.yAxis[0]:t?.y?.[0];return{xAxisField:e,yAxisField:n,configError:!e||!n?`Waterfall chart requires an X-axis dimension and a Y-axis measure`:null}},[t]),m=(0,F5.useMemo)(()=>p||!e||e.length===0||!d||!f?[]:Wbe(e,d,f,s,o),[e,d,f,s,o,p]),h=(0,F5.useMemo)(()=>!c||m.length===0?[]:m.map(e=>{let t=e.isNegative?e.runningBase:e.runningBase+e.value;return{label:e.label,_connector:t}}),[m,c]),g=(0,F5.useMemo)(()=>m.map((e,t)=>({...e,_connector:h[t]?._connector})),[m,h]);try{return!e||e.length===0?(0,I5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,I5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,I5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,I5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in waterfall chart`})]})}):p?(0,I5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:r},children:(0,I5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,I5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,I5.jsx)(`div`,{className:`dc:text-xs`,children:p})]})}):(0,I5.jsx)(`div`,{className:`dc:relative dc:w-full`,style:{height:r},children:(0,I5.jsx)(d1,{height:`100%`,children:(0,I5.jsxs)(N$,{data:g,margin:{...N1,left:40},accessibilityLayer:!1,children:[(0,I5.jsx)(KG,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,I5.jsx)(gY,{dataKey:`label`,type:`category`,tick:(0,I5.jsx)(O1,{}),height:60}),(0,I5.jsx)(FY,{tick:{fontSize:12},tickFormatter:u?e=>v1(e,u):void 0}),(0,I5.jsx)(C1,{formatter:(e,t,n)=>{if(t===`_connector`)return[``,``];let r=n?.payload;if(!r)return[e,t];let i=r.displayValue??e;return[u?v1(i,u):i?.toLocaleString?.()??i,r.isTotal?`Total`:r.isNegative?`Decrease`:`Increase`]},labelFormatter:e=>e}),(0,I5.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`8px`},payload:[{value:`Increase`,type:`rect`,color:L5},{value:`Decrease`,type:`rect`,color:R5},...s?[{value:`Total`,type:`rect`,color:z5}]:[]]}),(0,I5.jsx)(gJ,{dataKey:`runningBase`,stackId:`wf`,fill:`transparent`,legendType:`none`,isAnimationActive:!1}),(0,I5.jsxs)(gJ,{dataKey:`value`,stackId:`wf`,isAnimationActive:!1,cursor:a?`pointer`:void 0,onClick:(e,t,n)=>{i&&a&&e&&!e.isTotal&&i({dataPoint:e,clickedField:f,xValue:e.label,position:{x:n.clientX,y:n.clientY},nativeEvent:n})},children:[l&&(0,I5.jsx)(VL,{dataKey:`displayValue`,content:e=>(0,I5.jsx)(Gbe,{...e,runningBase:g[e.index]?.runningBase,isNegative:g[e.index]?.isNegative,displayValue:g[e.index]?.displayValue})}),g.map((e,t)=>(0,I5.jsx)(SI,{fill:e.isTotal?z5:e.isNegative?R5:L5},`cell-${t}`))]}),c&&(0,I5.jsx)(VK,{type:`stepAfter`,dataKey:`_connector`,stroke:B5,strokeWidth:1.5,strokeDasharray:`4 2`,dot:!1,activeDot:!1,legendType:`none`,isAnimationActive:!1})]})})})}catch(e){return(0,I5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:r},children:(0,I5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,I5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Waterfall Chart Error`}),(0,I5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,I5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function H5(e){if(e==null)return null;let t=typeof e==`number`?e:parseFloat(String(e));return isNaN(t)?null:t}function qbe({x:e,candleWidth:t,openY:n,closeY:r,highY:i,lowY:a,isBullish:o,bullColor:s,bearColor:c,showWicks:l,label:u}){let d=o?s:c,f=Math.min(n,r),p=Math.max(n,r),m=Math.max(p-f,1),h=t/2;return(0,W5.jsxs)(`g`,{"data-testid":`candle-${u}`,children:[(0,W5.jsx)(`rect`,{x:e-h,y:f,width:t,height:m,fill:d,"data-testid":`candle-body-${u}`,"data-bullish":o}),l&&(0,W5.jsxs)(W5.Fragment,{children:[(0,W5.jsx)(`line`,{x1:e,y1:i,x2:e,y2:f,stroke:q5,strokeWidth:1,"data-testid":`wick-high-${u}`}),(0,W5.jsx)(`line`,{x1:e,y1:p,x2:e,y2:a,stroke:q5,strokeWidth:1,"data-testid":`wick-low-${u}`})]})]})}function Jbe({domainMin:e,domainMax:t,innerHeight:n,tickCount:r,format:i}){let a=(0,U5.useMemo)(()=>{let n=(t-e)/(r-1);return Array.from({length:r},(t,r)=>e+r*n)},[e,t,r]),o=r=>n-(r-e)/(t-e)*n;return(0,W5.jsxs)(`g`,{"data-testid":`y-axis`,children:[(0,W5.jsx)(`line`,{y1:0,y2:n,stroke:`currentColor`,strokeWidth:1}),a.map((e,t)=>(0,W5.jsxs)(`g`,{transform:`translate(0, ${o(e)})`,children:[(0,W5.jsx)(`line`,{x1:0,x2:-6,stroke:`currentColor`,strokeWidth:1}),(0,W5.jsx)(`text`,{x:-10,textAnchor:`end`,dominantBaseline:`middle`,fontSize:11,fill:`currentColor`,className:`text-dc-text-secondary`,children:i?i(e):e.toLocaleString()}),(0,W5.jsx)(`line`,{x1:0,x2:`100%`,stroke:`currentColor`,strokeOpacity:.1,strokeWidth:1})]},t))]})}var U5,W5,G5,K5,q5,J5,Y5,Ybe=o((()=>{U5=u(f(),1),S1(),W5=s1(),G5=`#22c55e`,K5=`#ef4444`,q5=`#94a3b8`,J5=200,Y5=U5.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,onDataPointClick:i,drillEnabled:a}){let o=(0,U5.useRef)(null),[s,c]=(0,U5.useState)({width:0,height:0});(0,U5.useLayoutEffect)(()=>{let e=o.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&c({width:e,height:n})}});t.observe(e);let n=e.getBoundingClientRect();return n.width>0&&n.height>0&&c({width:n.width,height:n.height}),()=>t.disconnect()},[]);let l=n?.bullColor??G5,u=n?.bearColor??K5,d=n?.showWicks??!0,f=n?.rangeMode??`ohlc`,p=n?.leftYAxisFormat,{xField:m,openField:h,closeField:g,highField:_,lowField:v,configError:y}=(0,U5.useMemo)(()=>{let e=Array.isArray(t?.xAxis)?t.xAxis[0]:t?.xAxis??t?.x,n=Array.isArray(t?.yAxis)?t.yAxis:[],r=n[0]??``,i=(f===`range`?n[0]:n[1])??``,a=(f===`range`?n[0]:n[2])??``,o=(f===`range`?n[1]:n[3])??``;return e?f===`range`&&(!a||!o)?{xField:e,openField:r,closeField:i,highField:a,lowField:o,configError:`Range mode requires at least 2 measures (high, low) in Y-Axis`}:f===`ohlc`&&(!r||!i)?{xField:e,openField:r,closeField:i,highField:a,lowField:o,configError:`OHLC mode requires at least 2 measures (open, close) in Y-Axis`}:{xField:e,openField:r,closeField:i,highField:a,lowField:o,configError:null}:{xField:e,openField:r,closeField:i,highField:a,lowField:o,configError:`Candlestick chart requires an X-Axis (time or category dimension)`}},[t,f]),b=(0,U5.useMemo)(()=>{if(y||!e||e.length===0)return[];let t=e.slice(0,J5),n=[];for(let e=0;e<t.length;e++){let r=t[e],i=String(r[m]??`Bar ${e+1}`),a=H5(r[h]),o=H5(r[g]);if(a===null||o===null)continue;let s=a,c=o,l=_?H5(r[_])??Math.max(s,c):Math.max(s,c),u=v?H5(r[v])??Math.min(s,c):Math.min(s,c);f===`range`&&(s=u,c=l),n.push({label:i,open:s,close:c,high:Math.max(s,c,l),low:Math.min(s,c,u),isBullish:c>=s,originalIndex:e})}return n},[e,m,h,g,_,v,f,y]);try{if(!e||e.length===0)return(0,W5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,W5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,W5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,W5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in candlestick chart`})]})});if(y)return(0,W5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:r},children:(0,W5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,W5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,W5.jsx)(`div`,{className:`dc:text-xs`,children:y})]})});let t={top:20,right:20,bottom:60,left:70},n=s.width||600,c=typeof r==`number`?r:s.height||400,f=Math.max(n-t.left-t.right,50),h=Math.max((typeof c==`number`?c:parseInt(String(c))||400)-t.top-t.bottom,50),g=b.flatMap(e=>[e.low,e.high]),_=Math.min(...g),v=Math.max(...g),x=(v-_)*.05||1,S=_-x,C=v+x,w=e=>h-(e-S)/(C-S)*h,T=f/b.length,E=Math.min(T*.7,20),D=e.length>J5;return(0,W5.jsxs)(`div`,{ref:o,className:`dc:relative dc:w-full`,style:{height:r},children:[(0,W5.jsx)(`svg`,{width:`100%`,height:D?`calc(100% - 20px)`:`100%`,viewBox:`0 0 ${n} ${typeof c==`number`?c:400}`,"data-testid":`candlestick-svg`,children:(0,W5.jsxs)(`g`,{transform:`translate(${t.left}, ${t.top})`,children:[(0,W5.jsx)(Jbe,{domainMin:S,domainMax:C,innerHeight:h,tickCount:5,format:p?e=>v1(e,p):void 0}),b.map((e,t)=>{let n=T*t+T/2;return(0,W5.jsxs)(`g`,{onClick:t=>{i&&a&&i({dataPoint:{...e},clickedField:m??``,xValue:e.label,position:{x:t.clientX,y:t.clientY},nativeEvent:t})},cursor:a?`pointer`:void 0,children:[(0,W5.jsx)(`title`,{children:`${e.label}: O=${e.open} H=${e.high} L=${e.low} C=${e.close}`}),(0,W5.jsx)(qbe,{x:n,candleWidth:E,openY:w(e.open),closeY:w(e.close),highY:w(e.high),lowY:w(e.low),isBullish:e.isBullish,bullColor:l,bearColor:u,showWicks:d,label:e.label}),(0,W5.jsx)(`text`,{x:n,y:h+20,textAnchor:`middle`,fontSize:10,fill:`currentColor`,className:`text-dc-text-secondary`,"data-testid":`x-label-${e.label}`,children:e.label})]},e.label+t)})]})}),D&&(0,W5.jsxs)(`div`,{className:`dc:text-xs text-dc-warning dc:text-center dc:mt-1`,children:[`Showing first `,J5,` candles (total: `,e.length,`)`]})]})}catch(e){return(0,W5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:r},children:(0,W5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,W5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Candlestick Chart Error`}),(0,W5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,W5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function Xbe(e,t,n,r){if(!e||e.length===0||t.length===0)return{profileData:[],seriesKeys:[]};if(n){let i=Array.from(new Set(e.map(e=>String(e[n]??`Unknown`))));return{profileData:t.map(t=>{let a={measureKey:t,measureLabel:r(t)};for(let r of i){let i=e.filter(e=>String(e[n]??`Unknown`)===r).map(e=>{let n=e[t];return typeof n==`number`?n:parseFloat(String(n??``))}).filter(e=>!isNaN(e));a[r]=i.length>0?i.reduce((e,t)=>e+t,0)/i.length:null}return a}),seriesKeys:i}}else{let n=`_value`;return{profileData:t.map(t=>{let i=e.map(e=>{let n=e[t];return typeof n==`number`?n:parseFloat(String(n??``))}).filter(e=>!isNaN(e));return{measureKey:t,measureLabel:r(t),[n]:i.length>0?i.reduce((e,t)=>e+t,0)/i.length:null}}),seriesKeys:[n]}}}var X5,Z5,Q5,Zbe=o((()=>{X5=u(f(),1),o1(),m1(),E1(),k1(),P1(),S1(),U1(),Z5=s1(),Q5=X5.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`,colorPalette:i,drillEnabled:a}){let o=V1(),s=n?.showReferenceLineAtZero??!0,c=n?.showDataLabels??!1,l=n?.lineType??`monotone`,u=n?.leftYAxisFormat,{yAxisFields:d,seriesField:f,configError:p}=(0,X5.useMemo)(()=>{let e=Array.isArray(t?.yAxis)?t.yAxis:[];return{yAxisFields:e,seriesField:Array.isArray(t?.series)?t.series[0]:t?.series??void 0,configError:e.length<2?`Measure Profile chart requires at least 2 measures in Y-Axis`:null}},[t]),{profileData:m,seriesKeys:h}=(0,X5.useMemo)(()=>p||!e||e.length===0?{profileData:[],seriesKeys:[]}:Xbe(e,d,f,o),[e,d,f,o,p]),g=(n?.showLegend??!0)&&h.length>1;try{return!e||e.length===0?(0,Z5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,Z5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,Z5.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in measure profile chart`})]})}):p?(0,Z5.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:r},children:(0,Z5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,Z5.jsx)(`div`,{className:`dc:text-xs`,children:p})]})}):(0,Z5.jsx)(`div`,{className:`dc:relative dc:w-full`,style:{height:r},children:(0,Z5.jsx)(d1,{height:`100%`,children:(0,Z5.jsxs)(dQ,{data:m,margin:{...N1,left:40},accessibilityLayer:!1,children:[(0,Z5.jsx)(KG,{strokeDasharray:`3 3`,style:{pointerEvents:`none`}}),(0,Z5.jsx)(gY,{dataKey:`measureLabel`,type:`category`,tick:(0,Z5.jsx)(O1,{}),height:60}),(0,Z5.jsx)(FY,{tick:{fontSize:12},tickFormatter:u?e=>v1(e,u):void 0}),(0,Z5.jsx)(C1,{formatter:(e,t)=>e==null?[`No data`,t]:[u?v1(e,u):e?.toLocaleString?.()??e,t===`_value`?o(d[0]?.split(`.`)[0])||`Value`:t]}),s&&(0,Z5.jsx)(aG,{y:0,stroke:`var(--dc-border, #94a3b8)`,strokeDasharray:`4 2`}),g&&(0,Z5.jsx)(Ab,{wrapperStyle:{fontSize:`12px`,paddingTop:`8px`}}),h.map((e,t)=>(0,Z5.jsx)(VK,{type:l,dataKey:e,name:e===`_value`?o(d[0]?.split(`.`)[0])||`Value`:e,stroke:i?.colors&&i.colors[t%i.colors.length]||A1[t%A1.length],strokeWidth:2,dot:c?{r:4}:{r:3},activeDot:{r:5},label:c?{position:`top`,fontSize:10}:void 0,isAnimationActive:!1,cursor:a?`pointer`:void 0},e))]})})})}catch(e){return(0,Z5.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:r},children:(0,Z5.jsxs)(`div`,{className:`dc:text-center`,children:[(0,Z5.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Measure Profile Chart Error`}),(0,Z5.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,Z5.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})}));function $5(e){if(e==null)return null;let t=typeof e==`number`?e:parseFloat(String(e));return isNaN(t)?null:t}function e7(e,t,n){return Math.max(t,Math.min(n,e))}function t7(e,t,n){let r=n===t?1:n-t;return a7+e7((e-t)/r,0,1)*(o7-a7)}function Qbe(e,t){let n=[...t].sort((e,t)=>e.value-t.value),r=c7;for(let t of n)e>=t.value&&(r=t.color);return r}function n7(e,t,n,r){return td()({innerRadius:e,outerRadius:t,startAngle:n,endAngle:r})??``}function $be({angle:e,radius:t}){let n=t*.72,r=t*.06,i=Math.cos(e-Math.PI/2)*n,a=Math.sin(e-Math.PI/2)*n;return(0,i7.jsxs)(`g`,{"data-testid":`gauge-needle`,children:[(0,i7.jsx)(`circle`,{r,fill:`currentColor`,className:`text-dc-text-secondary`}),(0,i7.jsx)(`line`,{x1:0,y1:0,x2:i,y2:a,stroke:`currentColor`,strokeWidth:3,strokeLinecap:`round`,className:`text-dc-text-secondary`})]})}var r7,i7,a7,o7,s7,c7,l7,exe=o((()=>{r7=u(f(),1),uf(),S1(),U1(),i7=s1(),a7=-Math.PI*.75,o7=Math.PI*.75,s7=`#e2e8f0`,c7=`#6366f1`,l7=r7.memo(function({data:e,chartConfig:t,displayConfig:n={},height:r=`100%`}){let i=V1(),a=(0,r7.useRef)(null),[o,s]=(0,r7.useState)({width:0,height:0});(0,r7.useLayoutEffect)(()=>{let e=a.current;if(!e)return;let t=new ResizeObserver(e=>{for(let t of e){let{width:e,height:n}=t.contentRect;e>0&&n>0&&s({width:e,height:n})}});t.observe(e);let n=e.getBoundingClientRect();return n.width>0&&n.height>0&&s({width:n.width,height:n.height}),()=>t.disconnect()},[]);let{valueField:c,maxField:l,configError:u}=(0,r7.useMemo)(()=>{let e=Array.isArray(t?.yAxis)?t.yAxis:[],n=e[0]??``,r=e[1]??``;return n?{valueField:n,maxField:r,configError:null}:{valueField:n,maxField:r,configError:`Gauge requires at least 1 measure in Y-Axis (current value)`}},[t]),d=(0,r7.useMemo)(()=>{let e=n?.thresholds,t=null;if(Array.isArray(e))t=e;else if(typeof e==`string`&&e.trim())try{let n=JSON.parse(e);Array.isArray(n)&&(t=n)}catch(e){return console.warn(`GaugeChart: invalid threshold JSON`,e),[]}return t?t.filter(e=>typeof e==`object`&&!!e&&typeof e.value==`number`&&typeof e.color==`string`):[]},[n?.thresholds]),f=d.length===0?[]:[...d].sort((e,t)=>e.value-t.value).map((e,t,n)=>{let r=t===0?a7:t7(n[t-1].value,0,1),i=t7(e.value,0,1);return{color:e.color,start:r,end:i}});try{if(!e||e.length===0)return(0,i7.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,i7.jsxs)(`div`,{className:`dc:text-center`,children:[(0,i7.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,i7.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data points to display in gauge chart`})]})});if(u)return(0,i7.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-warning`,style:{height:r},children:(0,i7.jsxs)(`div`,{className:`dc:text-center`,children:[(0,i7.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Configuration Error`}),(0,i7.jsx)(`div`,{className:`dc:text-xs`,children:u})]})});let t=e[0],s=$5(t[c]);if(s===null)return(0,i7.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full text-dc-text-muted`,style:{height:r},children:(0,i7.jsxs)(`div`,{className:`dc:text-center`,children:[(0,i7.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No valid data`}),(0,i7.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Gauge value is not a valid number`})]})});let p=n?.minValue??0,m=l?$5(t[l]):null,h=n?.maxValue??m??100,g=h===p?p+1:h,_=e7(s,p,g),v=(_-p)/(g-p),y=d.length>0?Qbe(v,d):c7,b=n?.showCenterLabel??!0,x=n?.showPercentage??!1,S=n?.leftYAxisFormat,C=o.width||300,w=typeof r==`number`?r:o.height||200,T=Math.min(C/2,w*.9)*.85,E=T,D=T*.6,O=C/2,k=w*.7,A=n7(D,E,a7,o7),j=n7(D,E,a7,t7(_,p,g)),M=t7(_,p,g),N=S?v1(s,S):s.toLocaleString(),ee=x?`${(v*100).toFixed(1)}%`:N,te=i(c);return(0,i7.jsx)(`div`,{ref:a,className:`dc:relative dc:w-full`,style:{height:r},children:(0,i7.jsx)(`svg`,{width:`100%`,height:`100%`,viewBox:`0 0 ${C} ${w}`,preserveAspectRatio:`xMidYMid meet`,"data-testid":`gauge-svg`,children:(0,i7.jsxs)(`g`,{transform:`translate(${O}, ${k})`,children:[(0,i7.jsx)(`path`,{d:A,fill:s7,"data-testid":`gauge-track`}),f.map((e,t)=>(0,i7.jsx)(`path`,{d:n7(E+4,E+8,e.start,e.end),fill:e.color,"data-testid":`gauge-band-${t}`},t)),(0,i7.jsx)(`path`,{d:j,fill:y,"data-testid":`gauge-fill`,"data-fraction":v.toFixed(4)}),(0,i7.jsx)($be,{angle:M,radius:T}),b&&(0,i7.jsxs)(`g`,{"data-testid":`gauge-label`,children:[(0,i7.jsx)(`text`,{textAnchor:`middle`,dominantBaseline:`middle`,fontSize:T*.22,fontWeight:`bold`,fill:`currentColor`,dy:T*.12,"data-testid":`gauge-value-text`,children:ee}),(0,i7.jsx)(`text`,{textAnchor:`middle`,fontSize:T*.13,fill:`currentColor`,className:`text-dc-text-secondary`,dy:T*.34,children:te})]}),(0,i7.jsx)(`text`,{x:Math.cos(a7-Math.PI/2)*(E+14),y:Math.sin(a7-Math.PI/2)*(E+14),textAnchor:`middle`,fontSize:T*.12,fill:`currentColor`,className:`text-dc-text-secondary`,"data-testid":`gauge-min-label`,children:S?v1(p,S):p.toLocaleString()}),(0,i7.jsx)(`text`,{x:Math.cos(o7-Math.PI/2)*(E+14),y:Math.sin(o7-Math.PI/2)*(E+14),textAnchor:`middle`,fontSize:T*.12,fill:`currentColor`,className:`text-dc-text-secondary`,"data-testid":`gauge-max-label`,children:S?v1(g,S):g.toLocaleString()})]})})})}catch(e){return(0,i7.jsx)(`div`,{className:`dc:flex dc:flex-col dc:items-center dc:justify-center dc:w-full text-dc-error dc:p-4`,style:{height:r},children:(0,i7.jsxs)(`div`,{className:`dc:text-center`,children:[(0,i7.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`Gauge Chart Error`}),(0,i7.jsx)(`div`,{className:`dc:text-xs dc:mb-2`,children:e instanceof Error?e.message:`Unknown rendering error`}),(0,i7.jsx)(`div`,{className:`dc:text-xs text-dc-text-muted`,children:`Check the data and configuration`})]})})}})})),u7,txe=o((()=>{u7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m4.5 19.5l15-15m-15 0l15 15"/>`}})),d7,nxe=o((()=>{d7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 4v16m8-8H4"/>`}})),f7,rxe=o((()=>{f7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15.232 5.232l3.536 3.536m-2.036-5.036a2.5 2.5 0 1 1 3.536 3.536L6.5 21.036H3v-3.572L16.732 3.732Z"/>`}})),p7,ixe=o((()=>{p7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 7l-.867 12.142A2 2 0 0 1 16.138 21H7.862a2 2 0 0 1-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v3M4 7h16"/>`}})),m7,axe=o((()=>{m7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.5 12c0-1.232.046-2.453.138-3.662a4.006 4.006 0 0 1 3.7-3.7a48.678 48.678 0 0 1 7.324 0a4.006 4.006 0 0 1 3.7 3.7c.017.22.032.441.046.662M4.5 12l-3-3m3 3l3-3m12 3c0 1.232-.046 2.453-.138 3.662a4.006 4.006 0 0 1-3.7 3.7a48.657 48.657 0 0 1-7.324 0a4.006 4.006 0 0 1-3.7-3.7c-.017-.22-.032-.441-.046-.662M19.5 12l-3 3m3-3l3 3"/>`}})),h7,oxe=o((()=>{h7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.25 7.5V6.108c0-1.135.845-2.098 1.976-2.192c.373-.03.748-.057 1.123-.08M15.75 18H18a2.25 2.25 0 0 0 2.25-2.25V6.108c0-1.135-.845-2.098-1.976-2.192a48.424 48.424 0 0 0-1.123-.08M15.75 18.75v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5A3.375 3.375 0 0 0 6.375 7.5H5.25m11.9-3.664A2.251 2.251 0 0 0 15 2.25h-1.5a2.251 2.251 0 0 0-2.15 1.586m5.8 0c.065.21.1.433.1.664v.75h-6V4.5c0-.231.035-.454.1-.664M6.75 7.5H4.875c-.621 0-1.125.504-1.125 1.125v12c0 .621.504 1.125 1.125 1.125h9.75c.621 0 1.125-.504 1.125-1.125V16.5a9 9 0 0 0-9-9Z"/>`}})),g7,sxe=o((()=>{g7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 0 0 2 2h6M8 7V5a2 2 0 0 1 2-2h4.586a1 1 0 0 1 .707.293l4.414 4.414a1 1 0 0 1 .293.707V15a2 2 0 0 1-2 2h-2M8 7H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2"/>`}})),_7,cxe=o((()=>{_7={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 0 0-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 0 0-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 0 0-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 0 0-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 0 0 1.066-2.573c-.94-1.543.826-3.31 2.37-2.37c.996.608 2.296.07 2.572-1.065Z"/><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"/></g>`}})),v7,lxe=o((()=>{v7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 3c2.755 0 5.455.232 8.083.678c.533.09.917.556.917 1.096v1.044a2.25 2.25 0 0 1-.659 1.591l-5.432 5.432a2.25 2.25 0 0 0-.659 1.591v2.927a2.25 2.25 0 0 1-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 0 0-.659-1.591L3.659 7.409A2.25 2.25 0 0 1 3 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 0 0 1 12 3Z"/>`}})),y7,uxe=o((()=>{y7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8.684 13.342C8.886 12.938 9 12.482 9 12c0-.482-.114-.938-.316-1.342m0 2.684a3 3 0 1 1 0-2.684m0 2.684l6.632 3.316m-6.632-6l6.632-3.316m0 0a3 3 0 1 0 5.367-2.684a3 3 0 0 0-5.367 2.684Zm0 9.316a3 3 0 1 0 5.368 2.684a3 3 0 0 0-5.368-2.684Z"/>`}})),b7,dxe=o((()=>{b7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m5 15l7-7l7 7"/>`}})),x7,fxe=o((()=>{x7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m19 9l-7 7l-7-7"/>`}})),S7,pxe=o((()=>{S7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m15 19l-7-7l7-7"/>`}})),C7,mxe=o((()=>{C7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 5l7 7l-7 7"/>`}})),w7,hxe=o((()=>{w7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m21 21l-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"/>`}})),T7,gxe=o((()=>{T7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.75 6.75h16.5M3.75 12h16.5m-16.5 5.25h16.5"/>`}})),E7,_xe=o((()=>{E7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 12l2 2l4-4m6 2a9 9 0 1 1-18 0a9 9 0 0 1 18 0Z"/>`}})),D7,vxe=o((()=>{D7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M12 10.5v3.75m-9.303 3.376C1.83 19.126 2.914 21 4.645 21h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 4.88c-.866-1.501-3.032-1.501-3.898 0L2.697 17.626ZM12 17.25h.007v.008H12v-.008Z"/>`}})),O7,yxe=o((()=>{O7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4m0 4h.01M21 12a9 9 0 1 1-18 0a9 9 0 0 1 18 0Z"/>`}})),k7,bxe=o((()=>{k7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 3v4M3 5h4M6 17v4m-2-2h4m5-16l2.286 6.857L21 12l-5.714 2.143L13 21l-2.286-6.857L5 12l5.714-2.143L13 3Z"/>`}})),A7,xxe=o((()=>{A7={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"/><path d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7c-4.477 0-8.268-2.943-9.542-7Z"/></g>`}})),j7,Sxe=o((()=>{j7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12c1.292 4.338 5.31 7.5 10.066 7.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 0 1-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"/>`}})),M7,Cxe=o((()=>{M7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M10.5 6h9.75M10.5 6a1.5 1.5 0 1 1-3 0m3 0a1.5 1.5 0 1 0-3 0M3.75 6H7.5m3 12h9.75m-9.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-3.75 0H7.5m9-6h3.75m-3.75 0a1.5 1.5 0 0 1-3 0m3 0a1.5 1.5 0 0 0-3 0m-9.75 0h9.75"/>`}})),N7,wxe=o((()=>{N7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M9 17.25v1.007a3 3 0 0 1-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0 1 15 18.257V17.25m6-12V15a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 15V5.25m18 0A2.25 2.25 0 0 0 18.75 3H5.25A2.25 2.25 0 0 0 3 5.25m18 0V12a2.25 2.25 0 0 1-2.25 2.25H5.25A2.25 2.25 0 0 1 3 12V5.25"/>`}})),P7,Txe=o((()=>{P7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3.375 19.5h17.25m-17.25 0a1.125 1.125 0 0 1-1.125-1.125M3.375 19.5h7.5c.621 0 1.125-.504 1.125-1.125m-9.75 0V5.625m0 12.75v-1.5c0-.621.504-1.125 1.125-1.125m18.375 2.625V5.625m0 12.75c0 .621-.504 1.125-1.125 1.125m1.125-1.125v-1.5c0-.621-.504-1.125-1.125-1.125m0 3.75h-7.5A1.125 1.125 0 0 1 12 18.375m9.75-12.75c0-.621-.504-1.125-1.125-1.125H3.375c-.621 0-1.125.504-1.125 1.125m19.5 0v1.5c0 .621-.504 1.125-1.125 1.125M2.25 5.625v1.5c0 .621.504 1.125 1.125 1.125m0 0h17.25m-17.25 0h7.5c.621 0 1.125.504 1.125 1.125M3.375 8.25c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125m17.25-3.75h-7.5c-.621 0-1.125.504-1.125 1.125m8.625-1.125c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125v1.5c0 .621.504 1.125 1.125 1.125M12 10.875v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 10.875c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125M13.125 12h7.5m-7.5 0c-.621 0-1.125.504-1.125 1.125M20.625 12c.621 0 1.125.504 1.125 1.125v1.5c0 .621-.504 1.125-1.125 1.125m-17.25 0h7.5M12 14.625v-1.5m0 1.5c0 .621-.504 1.125-1.125 1.125M12 14.625c0 .621.504 1.125 1.125 1.125m-2.25 0c.621 0 1.125.504 1.125 1.125m0 1.5v-1.5m0 0c0-.621.504-1.125 1.125-1.125m0 0h7.5"/>`}})),F7,Exe=o((()=>{F7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 0 0-5.656 0l-4 4a4 4 0 1 0 5.656 5.656l1.102-1.101m-.758-4.899a4 4 0 0 0 5.656 0l4-4a4 4 0 0 0-5.656-5.656l-1.1 1.1"/>`}})),I7,L7=o((()=>{I7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m14 5l7 7m0 0l-7 7m7-7H3"/>`}})),R7,Dxe=o((()=>{R7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 1 1-8 0a4 4 0 0 1 8 0Z"/>`}})),z7,Oxe=o((()=>{z7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 0 1 8.646 3.646A9.003 9.003 0 0 0 12 21a9.003 9.003 0 0 0 8.354-5.646Z"/>`}})),B7,kxe=o((()=>{B7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6.75 12a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Zm6 0a.75.75 0 1 1-1.5 0a.75.75 0 0 1 1.5 0Z"/>`}})),V7,Axe=o((()=>{V7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5.586a1 1 0 0 1 .707.293l5.414 5.414a1 1 0 0 1 .293.707V19a2 2 0 0 1-2 2Z"/>`}})),H7,jxe=o((()=>{H7={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/>`}})),U7,Mxe=o((()=>{U7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M17.25 6.75L22.5 12l-5.25 5.25m-10.5 0L1.5 12l5.25-5.25m7.5-3l-4.5 16.5"/>`}})),W7,Nxe=o((()=>{W7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75v-.008Z"/>`}})),G7,Pxe=o((()=>{G7={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 9a2 2 0 0 1 2-2h.93a2 2 0 0 0 1.664-.89l.812-1.22A2 2 0 0 1 10.07 4h3.86a2 2 0 0 1 1.664.89l.812 1.22A2 2 0 0 0 18.07 7H19a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V9Z"/><path d="M15 13a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z"/></g>`}})),K7,Fxe=o((()=>{K7={width:24,height:24,hidden:!0,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M3 16.5v2.25A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75V16.5M16.5 12L12 16.5m0 0L7.5 12m4.5 4.5V3"/>`}})),q7,Ixe=o((()=>{q7={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M1 8.25a1.25 1.25 0 1 1 2.5 0v7.5a1.25 1.25 0 1 1-2.5 0v-7.5ZM11 3V1.7c0-.268.14-.526.395-.607A2 2 0 0 1 14 3c0 .995-.182 1.948-.514 2.826c-.204.54.166 1.174.744 1.174h2.52c1.243 0 2.261 1.01 2.146 2.247a23.864 23.864 0 0 1-1.341 5.974C17.153 16.323 16.072 17 14.9 17h-3.192a3 3 0 0 1-1.341-.317l-2.734-1.366A3 3 0 0 0 6.292 15H5V8h.963c.685 0 1.258-.483 1.612-1.068a4.011 4.011 0 0 1 2.166-1.73c.432-.143.853-.386 1.011-.814c.16-.432.248-.9.248-1.388Z"/>`}})),J7,Lxe=o((()=>{J7={width:20,height:20,hidden:!0,body:`<path fill="currentColor" d="M18.905 12.75a1.25 1.25 0 0 1-2.5 0v-7.5a1.25 1.25 0 1 1 2.5 0v7.5Zm-10 4.25v1.3c0 .268-.14.526-.395.607A2 2 0 0 1 5.905 17c0-.995.182-1.948.514-2.826c.204-.54-.166-1.174-.744-1.174h-2.52c-1.242 0-2.26-1.01-2.146-2.247c.193-2.08.652-4.082 1.341-5.974C2.752 3.678 3.833 3 5.005 3h3.192a3 3 0 0 1 1.342.317l2.733 1.366A3 3 0 0 0 13.613 5h1.292v7h-.963c-.684 0-1.258.482-1.612 1.068a4.012 4.012 0 0 1-2.165 1.73c-.433.143-.854.386-1.012.814c-.16.432-.248.9-.248 1.388Z"/>`}})),Y7,Rxe=o((()=>{Y7={width:20,height:20,body:`<path fill="currentColor" d="M2 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-5Zm6-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1V7Zm6-3a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V4Z"/>`}})),X7,zxe=o((()=>{X7={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M17.707 9.293a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414 0l-7-7A.997.997 0 0 1 2 10V5a3 3 0 0 1 3-3h5c.256 0 .512.098.707.293l7 7ZM5 6a1 1 0 1 0 0-2a1 1 0 0 0 0 2Z" clip-rule="evenodd"/>`}})),Z7,Bxe=o((()=>{Z7={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M6 2a1 1 0 0 0-1 1v1H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1V3a1 1 0 1 0-2 0v1H7V3a1 1 0 0 0-1-1Zm0 5a1 1 0 0 0 0 2h8a1 1 0 1 0 0-2H6Z" clip-rule="evenodd"/>`}})),Q7,Vxe=o((()=>{Q7={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M2.5 3A1.5 1.5 0 0 0 1 4.5v4A1.5 1.5 0 0 0 2.5 10h6A1.5 1.5 0 0 0 10 8.5v-4A1.5 1.5 0 0 0 8.5 3h-6Zm11 2A1.5 1.5 0 0 0 12 6.5v7a1.5 1.5 0 0 0 1.5 1.5h4a1.5 1.5 0 0 0 1.5-1.5v-7A1.5 1.5 0 0 0 17.5 5h-4Zm-10 7A1.5 1.5 0 0 0 2 13.5v2A1.5 1.5 0 0 0 3.5 17h6a1.5 1.5 0 0 0 1.5-1.5v-2A1.5 1.5 0 0 0 9.5 12h-6Z" clip-rule="evenodd"/>`}})),$7,Hxe=o((()=>{$7={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16ZM9.555 7.168A1 1 0 0 0 8 8v4a1 1 0 0 0 1.555.832l3-2a1 1 0 0 0 0-1.664l-3-2Z" clip-rule="evenodd"/>`}})),e9,Uxe=o((()=>{e9={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M16.707 5.293a1 1 0 0 1 0 1.414l-8 8a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L8 12.586l7.293-7.293a1 1 0 0 1 1.414 0Z" clip-rule="evenodd"/>`}})),t9,Wxe=o((()=>{t9={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 2a1 1 0 0 1 1 1v1.323l3.954 1.582l1.599-.8a1 1 0 0 1 .894 1.79l-1.233.616l1.738 5.42a1 1 0 0 1-.285 1.05A3.989 3.989 0 0 1 15 15a3.989 3.989 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.715-5.349L11 6.477V16h2a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2h2V6.477L6.237 7.582l1.715 5.349a1 1 0 0 1-.285 1.05A3.989 3.989 0 0 1 5 15a3.989 3.989 0 0 1-2.667-1.019a1 1 0 0 1-.285-1.05l1.738-5.42l-1.233-.617a1 1 0 0 1 .894-1.788l1.599.799L9 4.323V3a1 1 0 0 1 1-1Zm-5 8.274l-.818 2.552c.25.112.526.174.818.174c.292 0 .569-.062.818-.174L5 10.274Zm10 0l-.818 2.552c.25.112.526.174.818.174c.292 0 .569-.062.818-.174L15 10.274Z" clip-rule="evenodd"/>`}})),n9,Gxe=o((()=>{n9={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm.75-11.25a.75.75 0 0 0-1.5 0v4.59L7.3 9.24a.75.75 0 0 0-1.1 1.02l3.25 3.5a.75.75 0 0 0 1.1 0l3.25-3.5a.75.75 0 1 0-1.1-1.02l-1.95 2.1V6.75Z" clip-rule="evenodd"/>`}})),r9,Kxe=o((()=>{r9={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm-.75-4.75a.75.75 0 0 0 1.5 0V8.66l1.95 2.1a.75.75 0 1 0 1.1-1.02l-3.25-3.5a.75.75 0 0 0-1.1 0L6.2 9.74a.75.75 0 1 0 1.1 1.02l1.95-2.1v4.59Z" clip-rule="evenodd"/>`}})),i9,qxe=o((()=>{i9={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M12.577 4.878a.75.75 0 0 1 .919-.53l4.78 1.281a.75.75 0 0 1 .531.919l-1.281 4.78a.75.75 0 0 1-1.449-.387l.81-3.022a19.407 19.407 0 0 0-5.594 5.203a.75.75 0 0 1-1.139.093L7 10.06l-4.72 4.72a.75.75 0 0 1-1.06-1.061l5.25-5.25a.75.75 0 0 1 1.06 0l3.074 3.073a20.923 20.923 0 0 1 5.545-4.931l-3.042-.815a.75.75 0 0 1-.53-.919Z" clip-rule="evenodd"/>`}})),a9,Jxe=o((()=>{a9={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M7 2a1 1 0 0 0-.707 1.707L7 4.414v3.758a1 1 0 0 1-.293.707l-4 4C.817 14.769 2.156 18 4.828 18h10.343c2.673 0 4.012-3.231 2.122-5.121l-4-4A1 1 0 0 1 13 8.172V4.414l.707-.707A1 1 0 0 0 13 2H7Zm2 6.172V4h2v4.172a3 3 0 0 0 .879 2.12l1.027 1.028a4 4 0 0 0-2.171.102l-.47.156a4 4 0 0 1-2.53 0l-.563-.187a1.993 1.993 0 0 0-.114-.035l1.063-1.063A3 3 0 0 0 9 8.172Z" clip-rule="evenodd"/>`}})),o9,Yxe=o((()=>{o9={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M2 4.75A.75.75 0 0 1 2.75 4h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 4.75Zm0 10.5a.75.75 0 0 1 .75-.75h7.5a.75.75 0 0 1 0 1.5h-7.5a.75.75 0 0 1-.75-.75ZM2 10a.75.75 0 0 1 .75-.75h14.5a.75.75 0 0 1 0 1.5H2.75A.75.75 0 0 1 2 10Z" clip-rule="evenodd"/>`}})),s9,Xxe=o((()=>{s9={width:20,height:20,body:`<g fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"><path d="M6.625 2.655A9 9 0 0 1 19 11a1 1 0 1 1-2 0a7 7 0 0 0-9.625-6.492a1 1 0 1 1-.75-1.853ZM4.662 4.959A1 1 0 0 1 4.75 6.37A6.97 6.97 0 0 0 3 11a1 1 0 1 1-2 0a8.97 8.97 0 0 1 2.25-5.953a1 1 0 0 1 1.412-.088Z"/><path d="M5 11a5 5 0 1 1 10 0a1 1 0 1 1-2 0a3 3 0 1 0-6 0c0 1.677-.345 3.276-.968 4.729a1 1 0 1 1-1.838-.789A9.964 9.964 0 0 0 5 11Zm8.921 2.012a1 1 0 0 1 .831 1.145a19.86 19.86 0 0 1-.545 2.436a1 1 0 1 1-1.92-.558c.207-.713.371-1.445.49-2.192a1 1 0 0 1 1.144-.83Z"/><path d="M10 10a1 1 0 0 1 1 1c0 2.236-.46 4.368-1.29 6.304a1 1 0 0 1-1.838-.789A13.952 13.952 0 0 0 9 11a1 1 0 0 1 1-1Z"/></g>`}})),c9,Zxe=o((()=>{c9={width:20,height:20,hidden:!0,body:`<path fill="currentColor" fill-rule="evenodd" d="M4.25 2A2.25 2.25 0 0 0 2 4.25v11.5A2.25 2.25 0 0 0 4.25 18h11.5A2.25 2.25 0 0 0 18 15.75V4.25A2.25 2.25 0 0 0 15.75 2H4.25ZM15 5.75a.75.75 0 0 0-1.5 0v8.5a.75.75 0 0 0 1.5 0v-8.5Zm-8.5 6a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0v-2.5ZM8.584 9a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5a.75.75 0 0 1 .75-.75Zm3.58-1.25a.75.75 0 0 0-1.5 0v6.5a.75.75 0 0 0 1.5 0v-6.5Z" clip-rule="evenodd"/>`}})),l9,Qxe=o((()=>{l9={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16a8 8 0 0 0 0 16Zm1-11a1 1 0 1 0-2 0v2H7a1 1 0 1 0 0 2h2v2a1 1 0 1 0 2 0v-2h2a1 1 0 1 0 0-2h-2V7Z" clip-rule="evenodd"/>`}})),u9,$xe=o((()=>{u9={width:20,height:20,body:`<path fill="currentColor" fill-rule="evenodd" d="M9.243 3.03a1 1 0 0 1 .727 1.213L9.53 6h2.94l.56-2.243a1 1 0 1 1 1.94.486L14.53 6H17a1 1 0 1 1 0 2h-2.97l-1 4H15a1 1 0 1 1 0 2h-2.47l-.56 2.242a1 1 0 1 1-1.94-.485L10.47 14H7.53l-.56 2.242a1 1 0 1 1-1.94-.485L5.47 14H3a1 1 0 1 1 0-2h2.97l1-4H5a1 1 0 1 1 0-2h2.47l.56-2.243a1 1 0 0 1 1.213-.727ZM9.03 8l-1 4h2.938l1-4H9.031Z" clip-rule="evenodd"/>`}})),d9,eSe=o((()=>{d9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 20h14"/>`}})),f9,tSe=o((()=>{f9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 19h16M4 15l4-6l4 2l4-5l4 4"/>`}})),p9,nSe=o((()=>{p9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m4 19l4-6l4 2l4-5l4 4v5H4m0-7l3-4l4 2l5-6l4 4"/>`}})),m9,rSe=o((()=>{m9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M10 3.2A9 9 0 1 0 20.8 14a1 1 0 0 0-1-1H13a2 2 0 0 1-2-2V4a.9.9 0 0 0-1-.8"/><path d="M15 3.5A9 9 0 0 1 20.5 9H16a1 1 0 0 1-1-1V3.5"/></g>`}})),h9,iSe=o((()=>{h9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M3 3v18h18"/><path d="M7 15a2 2 0 1 0 4 0a2 2 0 1 0-4 0m4-10a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5 7a2 2 0 1 0 4 0a2 2 0 1 0-4 0m5-9l-6 1.5m-.887 2.15l2.771 3.695M16 12.5l-5 2"/></g>`}})),g9,aSe=o((()=>{g9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 16a3 3 0 1 0 6 0a3 3 0 1 0-6 0m11 3a2 2 0 1 0 4 0a2 2 0 1 0-4 0M10 7.5a4.5 4.5 0 1 0 9 0a4.5 4.5 0 1 0-9 0"/>`}})),_9,oSe=o((()=>{_9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m12 3l9.5 7L18 21H6L2.5 10z"/><path d="m12 7.5l5.5 4L15 17H8.5l-2-5.5z"/><path d="m2.5 10l9.5 3l9.5-3"/><path d="M12 3v10l6 8M6 21l6-8"/></g>`}})),v9,sSe=o((()=>{v9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11 12a1 1 0 1 0 2 0a1 1 0 1 0-2 0"/><path d="M15.51 15.56A5 5 0 1 0 12 17"/><path d="M18.832 17.86A9 9 0 1 0 12 21m0-9v9"/></g>`}})),y9,cSe=o((()=>{y9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm8-2v16m-8-5h8m0-3h8m-4 0v8m0-4h4"/>`}})),b9,x9,S9,lSe=o((()=>{b9={body:`<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
144
+ <rect x="3" y="4" width="5" height="3" rx="0.75"/>
145
+ <rect x="16" y="4" width="5" height="3" rx="0.75"/>
146
+ <rect x="16" y="10.5" width="5" height="3" rx="0.75"/>
147
+ <rect x="16" y="17" width="5" height="3" rx="0.75"/>
148
+ <path d="M8 5.5 C11 5.5, 13 5.5, 16 5.5"/>
149
+ <path d="M8 5.5 C10 5.5, 11 7, 12 9 C13 11, 14 12, 16 12"/>
150
+ <path d="M8 5.5 C10 5.5, 11 10, 12 14 C13 17, 14 18.5, 16 18.5"/>
151
+ </g>`,width:24,height:24},x9={body:`<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
152
+ <rect x="2" y="3" width="20" height="4" rx="1"/>
153
+ <rect x="4" y="10" width="16" height="4" rx="1"/>
154
+ <rect x="6" y="17" width="12" height="4" rx="1"/>
155
+ </g>`,width:24,height:24},S9={body:`<g fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
156
+ \x3C!-- Grid cells representing retention matrix -->
157
+ <rect x="3" y="3" width="4" height="4" rx="0.5"/>
158
+ <rect x="10" y="3" width="4" height="4" rx="0.5"/>
159
+ <rect x="17" y="3" width="4" height="4" rx="0.5"/>
160
+ <rect x="3" y="10" width="4" height="4" rx="0.5"/>
161
+ <rect x="10" y="10" width="4" height="4" rx="0.5"/>
162
+ <rect x="17" y="10" width="4" height="4" rx="0.5"/>
163
+ <rect x="3" y="17" width="4" height="4" rx="0.5"/>
164
+ <rect x="10" y="17" width="4" height="4" rx="0.5"/>
165
+ <rect x="17" y="17" width="4" height="4" rx="0.5"/>
166
+ </g>`,width:24,height:24}})),C9,uSe=o((()=>{C9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M8.848 14.667L5.5 17.5M12 3v5m4 4h5M3 12a9 9 0 1 0 18 0a9 9 0 1 0-18 0m11.219 3.328L17 19.5"/><path d="M8 12a4 4 0 1 0 8 0a4 4 0 1 0-8 0"/></g>`}})),w9,dSe=o((()=>{w9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5zm0 5h18M10 3v18"/>`}})),T9,fSe=o((()=>{T9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11.795 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4m-1 3v4h4"/><path d="M14 18a4 4 0 1 0 8 0a4 4 0 1 0-8 0m1-15v4M7 3v4m-4 4h16"/></g>`}})),E9,pSe=o((()=>{E9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 17V7l7 10V7m4 10h5m-5-7a2.5 3 0 1 0 5 0a2.5 3 0 1 0-5 0"/>`}})),D9,mSe=o((()=>{D9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m3 17l6-6l4 4l8-8"/><path d="M14 7h7v7"/></g>`}})),O9,hSe=o((()=>{O9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 20h3m7 0h7M6.9 15h6.9m-3.6-8.7L16 20M5 20l6-16h2l7 16"/>`}})),k9,gSe=o((()=>{k9={width:24,height:24,body:`<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M14 3v4a1 1 0 0 0 1 1h4"/><path d="M17 21H7a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7l5 5v11a2 2 0 0 1-2 2zM9 9h1m-1 4h6m-6 4h6"/></g>`}})),A9,_Se=o((()=>{A9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m8 9l4-4l4 4m0 6l-4 4l-4-4"/>`}})),j9,vSe=o((()=>{j9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0M4 12a2 2 0 1 0 4 0a2 2 0 1 0-4 0m0 6a2 2 0 1 0 4 0a2 2 0 1 0-4 0m12 0a2 2 0 1 0 4 0a2 2 0 1 0-4 0m-8 0h8m2 2v1m0-18v1M6 20v1m0-11V3m6 0v18m6-13v8M8 12h13m0-6h-1m-4 0H3m0 6h1m16 6h1M3 18h1m2-4v2"/>`}})),M9,ySe=o((()=>{M9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 20l-5.447-2.724A1 1 0 0 1 3 16.382V5.618a1 1 0 0 1 1.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0 0 21 18.382V7.618a1 1 0 0 0-.553-.894L15 4m0 13V4m0 0L9 7"/>`}})),N9,bSe=o((()=>{N9={width:24,height:24,body:`<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m20 7l-8-4l-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4"/>`}})),P9,xSe=o((()=>{txe(),nxe(),rxe(),ixe(),axe(),oxe(),sxe(),cxe(),lxe(),uxe(),dxe(),fxe(),pxe(),mxe(),hxe(),gxe(),_xe(),vxe(),yxe(),bxe(),xxe(),Sxe(),Cxe(),wxe(),Txe(),Exe(),L7(),Dxe(),Oxe(),kxe(),Axe(),jxe(),Mxe(),Nxe(),Pxe(),Fxe(),Ixe(),Lxe(),Rxe(),zxe(),Bxe(),Vxe(),Hxe(),Uxe(),Wxe(),Gxe(),Kxe(),qxe(),Jxe(),Yxe(),Xxe(),Zxe(),Qxe(),$xe(),eSe(),tSe(),nSe(),rSe(),iSe(),aSe(),oSe(),sSe(),cSe(),lSe(),uSe(),dSe(),fSe(),pSe(),mSe(),hSe(),gSe(),w6(),_Se(),vSe(),ySe(),bSe(),P9={close:{icon:u7,category:`action`},add:{icon:d7,category:`action`},edit:{icon:f7,category:`action`},delete:{icon:p7,category:`action`},refresh:{icon:m7,category:`action`},copy:{icon:h7,category:`action`},duplicate:{icon:g7,category:`action`},settings:{icon:_7,category:`action`},filter:{icon:v7,category:`action`},share:{icon:y7,category:`action`},expand:{icon:x7,category:`action`},collapse:{icon:b7,category:`action`},search:{icon:w7,category:`action`},menu:{icon:T7,category:`action`},run:{icon:$7,category:`action`},check:{icon:e9,category:`action`},link:{icon:F7,category:`action`},eye:{icon:A7,category:`action`},eyeOff:{icon:j7,category:`action`},adjustments:{icon:M7,category:`action`},desktop:{icon:N7,category:`action`},table:{icon:P7,category:`action`},sun:{icon:R7,category:`action`},moon:{icon:z7,category:`action`},ellipsisHorizontal:{icon:B7,category:`action`},documentText:{icon:V7,category:`action`},bookOpen:{icon:H7,category:`action`},codeBracket:{icon:U7,category:`action`},swatch:{icon:W7,category:`action`},camera:{icon:G7,category:`action`},thumbUp:{icon:q7,category:`action`},thumbDown:{icon:J7,category:`action`},schemaGraph:{icon:M9,category:`action`},cube:{icon:N9,category:`action`},download:{icon:K7,category:`action`},measure:{icon:Y7,category:`field`},dimension:{icon:X7,category:`field`},timeDimension:{icon:Z7,category:`field`},segment:{icon:Q7,category:`field`},chartBar:{icon:d9,category:`chart`},chartLine:{icon:f9,category:`chart`},chartArea:{icon:p9,category:`chart`},chartPie:{icon:m9,category:`chart`},chartScatter:{icon:h9,category:`chart`},chartBubble:{icon:g9,category:`chart`},chartRadar:{icon:_9,category:`chart`},chartRadialBar:{icon:v9,category:`chart`},chartTreemap:{icon:y9,category:`chart`},chartTable:{icon:w9,category:`chart`},chartActivityGrid:{icon:T9,category:`chart`},chartKpiNumber:{icon:E9,category:`chart`},chartKpiDelta:{icon:D9,category:`chart`},chartKpiText:{icon:O9,category:`chart`},chartMarkdown:{icon:k9,category:`chart`},chartFunnel:{icon:x9,category:`chart`},chartSankey:{icon:b9,category:`chart`},chartSunburst:{icon:C9,category:`chart`},chartHeatmap:{icon:j9,category:`chart`},chartRetention:{icon:S9,category:`chart`},measureCount:{icon:o9,category:`measure`},measureCountDistinct:{icon:s9,category:`measure`},measureCountDistinctApprox:{icon:c9,category:`measure`},measureSum:{icon:l9,category:`measure`},measureAvg:{icon:t9,category:`measure`},measureMin:{icon:n9,category:`measure`},measureMax:{icon:r9,category:`measure`},measureRunningTotal:{icon:i9,category:`measure`},measureCalculated:{icon:a9,category:`measure`},measureNumber:{icon:u9,category:`measure`},success:{icon:E7,category:`state`},warning:{icon:D7,category:`state`},error:{icon:O7,category:`state`},info:{icon:C6,category:`state`},loading:{icon:m7,category:`state`},sparkles:{icon:k7,category:`state`},chevronUp:{icon:b7,category:`navigation`},chevronDown:{icon:x7,category:`navigation`},chevronLeft:{icon:S7,category:`navigation`},chevronRight:{icon:C7,category:`navigation`},chevronUpDown:{icon:A9,category:`navigation`},arrowUp:{icon:r9,category:`navigation`},arrowDown:{icon:n9,category:`navigation`},arrowRight:{icon:I7,category:`navigation`},arrowPath:{icon:m7,category:`navigation`}}}));function F9(e){let t=B9.get(e);if(t)return t;let n=R9[e];if(!n)return console.warn(`Icon "${e}" not found in registry, using fallback`),({className:e,...t})=>(0,L9.jsx)(x6,{icon:R9.info.icon,className:e,...t});let r=({className:e,...t})=>(0,L9.jsx)(x6,{icon:n.icon,className:e,...t});return B9.set(e,r),r}function SSe(e){return F9({count:`measureCount`,countDistinct:`measureCountDistinct`,countDistinctApprox:`measureCountDistinctApprox`,sum:`measureSum`,avg:`measureAvg`,min:`measureMin`,max:`measureMax`,runningTotal:`measureRunningTotal`,calculated:`measureCalculated`,number:`measureNumber`}[e||``]||`measureCount`)}function I9(e){let t={bar:`chartBar`,line:`chartLine`,area:`chartArea`,pie:`chartPie`,scatter:`chartScatter`,bubble:`chartBubble`,radar:`chartRadar`,radialBar:`chartRadialBar`,treemap:`chartTreemap`,table:`chartTable`,activityGrid:`chartActivityGrid`,kpiNumber:`chartKpiNumber`,kpiDelta:`chartKpiDelta`,kpiText:`chartKpiText`,markdown:`chartMarkdown`,funnel:`chartFunnel`,sankey:`chartSankey`,sunburst:`chartSunburst`,heatmap:`chartHeatmap`}[e];if(t)return F9(t);if(z9){let t=z9(e);if(t)return t}return F9(`chartBar`)}var L9,R9,z9,B9,CSe=o((()=>{S6(),xSe(),L9=s1(),R9={...P9},z9=null,B9=new Map})),V9,wSe=o((()=>{f(),tbe(),B1(),s1(),V9=()=>new N8({defaultOptions:{queries:{staleTime:300*1e3,gcTime:900*1e3,retry:3,refetchOnWindowFocus:!1}}}),V9()})),H9=o((()=>{CSe()}));function TSe(e){if(!e)return[];let t=[];return e.dimensions&&t.push(...e.dimensions),e.timeDimensions&&e.timeDimensions.forEach(e=>{t.includes(e.dimension)||t.push(e.dimension)}),e.measures&&t.push(...e.measures),t}function ESe(e,t){if(!e?.timeDimensions?.length)return null;let n=e.timeDimensions.find(e=>e.granularity);if(!n?.granularity||!e.measures?.length)return null;let r,i;if(t&&t.length>0){r=t.filter(t=>!(t===n.dimension||e.measures?.includes(t)));let a=t.filter(t=>e.measures?.includes(t));i=a.length>0?a:e.measures}else r=e.dimensions||[],i=e.measures;return i.length===0?null:{timeDimension:n.dimension,granularity:n.granularity,dimensions:r,measures:i}}function DSe(e,t,n){let r=new Set;return e.forEach(e=>{let i=e[t];if(i!=null){let e=y1(i,n);r.add(e)}}),Array.from(r).sort()}function OSe(e,t,n){let r=[];return e.measures.length>1&&r.push({key:`__measure__`,label:`Measure`,isTimeColumn:!1,isMeasureColumn:!0}),e.dimensions.forEach(e=>{r.push({key:e,label:n(e),isTimeColumn:!1})}),t.forEach(e=>{r.push({key:e,label:e,isTimeColumn:!0})}),r}function kSe(e,t){let n=new Map;return e.forEach(e=>{let r=t.dimensions.length>0?t.dimensions.map(t=>String(e[t]??``)).join(`|`):`__all__`;n.has(r)||n.set(r,new Map);let i=e[t.timeDimension];if(i!=null){let a=y1(i,t.granularity);n.get(r).set(a,e)}}),n}function ASe(e,t,n,r){let i=kSe(e,t),a=Array.from(i.keys()),o=[],s=t.measures.length,c=a.length;return t.measures.forEach(e=>{a.forEach((a,l)=>{let u=i.get(a),d=s>1?`${e}|${a}`:a,f={},p=a===`__all__`?[]:a.split(`|`);t.dimensions.forEach((e,t)=>{f[e]=p[t]??``}),s>1&&(f.__measure__=r(e)),n.forEach(t=>{f[t]=u.get(t)?.[e]??null});let m=l===0,h=m&&s>1?c:void 0;o.push({id:d,measureField:e,values:f,isFirstInGroup:m,dimensionRowSpan:h})})}),o}function jSe(e,t,n,r){if(!e||e.length===0)return{isPivoted:!0,columns:[],rows:[]};let i=DSe(e,t.timeDimension,t.granularity);return{isPivoted:!0,columns:OSe(t,i,n),rows:ASe(e,t,i,n)}}function MSe(e,t){if(t?.cubes)for(let n of t.cubes){let t=n.measures.find(t=>t.name===e);if(t)return t.type}}var NSe=o((()=>{S1()}));function PSe({pivotedData:e,height:t,meta:n,leftYAxisFormat:r}){let{columns:i,rows:a}=e;return i.length===0||a.length===0?(0,G9.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:t},children:(0,G9.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,G9.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,G9.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data to display in table`})]})}):(0,G9.jsx)(`div`,{className:`dc:w-full dc:overflow-auto`,style:{height:t},children:(0,G9.jsxs)(`table`,{className:`dc:min-w-full dc:divide-y border-dc-border`,children:[(0,G9.jsx)(`thead`,{className:`bg-dc-surface-secondary dc:sticky dc:top-0`,children:(0,G9.jsx)(`tr`,{children:i.map(e=>(0,G9.jsx)(`th`,{className:`dc:px-3 dc:py-2 dc:text-xs dc:font-medium text-dc-text-muted dc:uppercase dc:tracking-wider dc:whitespace-nowrap ${e.isTimeColumn?`dc:text-right`:`dc:text-left`}`,children:e.label},e.key))})}),(0,G9.jsx)(`tbody`,{className:`bg-dc-surface dc:divide-y border-dc-border`,children:a.map(e=>(0,G9.jsx)(FSe,{row:e,columns:i,meta:n,leftYAxisFormat:r},e.id))})]})})}function FSe({row:e,columns:t,meta:n,leftYAxisFormat:r}){let i=SSe(MSe(e.measureField,n));return(0,G9.jsx)(`tr`,{className:`hover:bg-dc-surface-secondary`,children:t.map(t=>{let n=e.values[t.key];return t.isMeasureColumn?e.isFirstInGroup===!1?null:(0,G9.jsx)(`td`,{className:`dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text dc:align-top`,rowSpan:e.dimensionRowSpan,children:(0,G9.jsxs)(`div`,{className:`dc:flex dc:items-center`,children:[(0,G9.jsx)(i,{className:`dc:w-3.5 dc:h-3.5 dc:mr-1.5 text-dc-text-muted dc:shrink-0`}),(0,G9.jsx)(`span`,{children:n})]})},t.key):t.isTimeColumn?(0,G9.jsx)(`td`,{className:`dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm dc:text-right text-dc-text`,children:U9(n,r)},t.key):(0,G9.jsx)(`td`,{className:`dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text`,children:U9(n)},t.key)})})}function U9(e,t){return e==null?`-`:typeof e==`number`?t?v1(e,t):Number.isInteger(e)?e.toLocaleString():parseFloat(e.toFixed(2)).toLocaleString():typeof e==`boolean`?e?`Yes`:`No`:String(e)}function ISe({data:e,chartConfig:t,queryObject:n,height:r,getFieldLabel:i,leftYAxisFormat:a}){let o=Object.keys(e[0]||{}),s=(0,W9.useMemo)(()=>{if(t?.xAxis&&t.xAxis.length>0)return t.xAxis.filter(e=>o.includes(e));let e=TSe(n);if(e.length>0){let t=e.filter(e=>o.includes(e)),n=o.filter(e=>!t.includes(e));return[...t,...n]}return o},[t?.xAxis,n,o]);return s.length===0?(0,G9.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:r},children:(0,G9.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,G9.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No columns available`}),(0,G9.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`Data structure is invalid`})]})}):(0,G9.jsx)(`div`,{className:`dc:w-full dc:overflow-auto`,style:{height:r},children:(0,G9.jsxs)(`table`,{className:`dc:min-w-full dc:divide-y border-dc-border`,children:[(0,G9.jsx)(`thead`,{className:`bg-dc-surface-secondary dc:sticky dc:top-0`,children:(0,G9.jsx)(`tr`,{children:s.map(e=>(0,G9.jsx)(`th`,{className:`dc:px-3 dc:py-2 dc:text-left dc:text-xs dc:font-medium text-dc-text-muted dc:uppercase dc:tracking-wider`,children:i(e)},e))})}),(0,G9.jsx)(`tbody`,{className:`bg-dc-surface dc:divide-y border-dc-border`,children:e.map((e,t)=>(0,G9.jsx)(`tr`,{className:`hover:bg-dc-surface-secondary`,children:s.map(t=>(0,G9.jsx)(`td`,{className:`dc:px-3 dc:py-2 dc:whitespace-nowrap dc:text-sm text-dc-text`,children:LSe(e[t],a)},t))},t))})]})})}function LSe(e,t){return e==null?``:typeof e==`number`?t?v1(e,t):e.toLocaleString():typeof e==`boolean`?e?`Yes`:`No`:String(e)}var W9,G9,K9,RSe=o((()=>{W9=u(f(),1),wSe(),H9(),NSe(),S1(),G9=s1(),K9=W9.memo(function({data:e,chartConfig:t,displayConfig:n={},queryObject:r,height:i=300}){let{getFieldLabel:a,meta:o}=Efe(),s=(0,W9.useMemo)(()=>ESe(r,t?.xAxis),[r,t?.xAxis]),c=n?.pivotTimeDimension!==!1,l=(0,W9.useMemo)(()=>!s||!c?null:jSe(e,s,a,o),[e,s,c,a,o]);return!e||e.length===0?(0,G9.jsx)(`div`,{className:`dc:flex dc:items-center dc:justify-center dc:w-full`,style:{height:i},children:(0,G9.jsxs)(`div`,{className:`dc:text-center text-dc-text-muted`,children:[(0,G9.jsx)(`div`,{className:`dc:text-sm dc:font-semibold dc:mb-1`,children:`No data available`}),(0,G9.jsx)(`div`,{className:`dc:text-xs text-dc-text-secondary`,children:`No data to display in table`})]})}):l?.isPivoted&&l.columns.length>0?(0,G9.jsx)(PSe,{pivotedData:l,height:i,meta:o,leftYAxisFormat:n?.leftYAxisFormat}):(0,G9.jsx)(ISe,{data:e,chartConfig:t,queryObject:r,height:i,getFieldLabel:a,leftYAxisFormat:n?.leftYAxisFormat})})}));Dfe(),Ife(),Lfe(),Rfe(),zfe(),zve(),Tye(),Dye(),Oye(),Obe(),kbe(),Abe(),Pbe(),Fbe(),Rbe(),Ube(),Kbe(),Ybe(),Zbe(),exe(),RSe();function zSe(e,t,n){let r=t.measures||[],i=t.dimensions||[],a=t.timeDimensions?.filter(e=>e.granularity)||[],o=r.length>0,s=i.length>0,c=a.length>0;switch(e){case`table`:case`markdown`:return!0;case`kpiNumber`:case`kpiDelta`:case`kpiText`:case`gauge`:case`measureProfile`:return o;case`bar`:case`line`:case`area`:case`waterfall`:case`boxPlot`:case`candlestick`:return o&&(s||c);case`pie`:case`radialBar`:case`sunburst`:return o&&s&&n<=20;case`scatter`:case`bubble`:return o&&(s||c);case`treemap`:case`funnel`:return o&&s;case`radar`:return o&&s;case`heatmap`:return o&&s;case`sankey`:return o&&i.length>=2;case`activityGrid`:return o&&c;default:return!0}}function BSe(e,t){let n=e.measures||[],r=e.dimensions||[],i=e.timeDimensions?.filter(e=>e.granularity)||[],a=t.length,o=[...n],s=[],c=[];if(i.length>0)s.push(i[0].dimension);else if(r.length>0){s.push(r[0]);for(let e=1;e<r.length;e++)c.push(r[e])}let l;return l=n.length>=1&&r.length===0&&i.length===0&&a<=1?`kpiNumber`:i.length>0&&n.length>=1?`line`:r.length>0&&n.length>=1?a<=10&&n.length===1&&r.length===1?`pie`:a<=30?`bar`:`table`:`table`,{chartType:l,xAxis:s,yAxis:o,series:c}}H9();var q9=s1(),VSe=[`bar`,`line`,`area`,`pie`,`scatter`,`treemap`,`kpiNumber`,`kpiDelta`,`kpiText`,`table`,`radar`,`radialBar`,`bubble`,`funnel`,`waterfall`,`gauge`,`boxPlot`,`candlestick`,`activityGrid`,`measureProfile`];function J9(e){return o5[e]?.label||e}function HSe({selected:e,query:t,rowCount:n,onSelect:r}){let[i,a]=(0,Hi.useState)(!1),o=I9(e),s=J9(e);return(0,q9.jsxs)(`div`,{style:{position:`relative`},children:[(0,q9.jsxs)(`button`,{type:`button`,onClick:()=>a(!i),style:{display:`flex`,alignItems:`center`,gap:6,padding:`4px 10px`,fontSize:12,fontWeight:500,borderRadius:6,border:`1px solid var(--dc-border, #e2e8f0)`,background:`var(--dc-surface, #fff)`,color:`var(--dc-text, #1e293b)`,cursor:`pointer`},children:[(0,q9.jsx)(o,{style:{width:14,height:14,color:`var(--dc-text-secondary, #64748b)`}}),(0,q9.jsx)(`span`,{children:s}),(0,q9.jsx)(`svg`,{width:`10`,height:`10`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,style:{marginLeft:2,color:`var(--dc-text-muted, #94a3b8)`,transform:i?`rotate(180deg)`:void 0,transition:`transform 0.15s`},children:(0,q9.jsx)(`path`,{strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M19 9l-7 7-7-7`})})]}),i&&(0,q9.jsx)(`div`,{style:{position:`absolute`,right:0,zIndex:10,marginTop:4,minWidth:260,maxHeight:320,overflowY:`auto`,background:`var(--dc-surface, #fff)`,border:`1px solid var(--dc-border, #e2e8f0)`,borderRadius:8,boxShadow:`0 4px 12px rgba(0,0,0,0.1)`,padding:6},children:(0,q9.jsx)(`div`,{style:{display:`grid`,gridTemplateColumns:`1fr 1fr`,gap:3},children:VSe.map(i=>{let o=zSe(i,t,n),s=i===e,c=I9(i),l=J9(i);return(0,q9.jsxs)(`button`,{type:`button`,onClick:()=>{o&&(r(i),a(!1))},disabled:!o,style:{display:`flex`,alignItems:`center`,gap:5,padding:`4px 8px`,fontSize:11,fontWeight:s?600:400,borderRadius:4,border:`1px solid`,borderColor:s?`var(--dc-primary, #3b82f6)`:`var(--dc-border, #e2e8f0)`,background:s?`var(--dc-surface-secondary, #f9fafb)`:`var(--dc-surface, #fff)`,color:o?s?`var(--dc-primary, #3b82f6)`:`var(--dc-text, #1e293b)`:`var(--dc-text-muted, #94a3b8)`,cursor:o?`pointer`:`not-allowed`,opacity:o?1:.5,textAlign:`left`},children:[(0,q9.jsx)(c,{style:{width:14,height:14,flexShrink:0}}),(0,q9.jsx)(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:l})]},i)})})})]})}var USe=z([B(`light`),B(`dark`)]).describe(`Color theme preference for the host environment.`),Y9=z([B(`inline`),B(`fullscreen`),B(`pip`)]).describe(`Display mode for UI presentation.`),WSe=so(z([B(`--color-background-primary`),B(`--color-background-secondary`),B(`--color-background-tertiary`),B(`--color-background-inverse`),B(`--color-background-ghost`),B(`--color-background-info`),B(`--color-background-danger`),B(`--color-background-success`),B(`--color-background-warning`),B(`--color-background-disabled`),B(`--color-text-primary`),B(`--color-text-secondary`),B(`--color-text-tertiary`),B(`--color-text-inverse`),B(`--color-text-ghost`),B(`--color-text-info`),B(`--color-text-danger`),B(`--color-text-success`),B(`--color-text-warning`),B(`--color-text-disabled`),B(`--color-border-primary`),B(`--color-border-secondary`),B(`--color-border-tertiary`),B(`--color-border-inverse`),B(`--color-border-ghost`),B(`--color-border-info`),B(`--color-border-danger`),B(`--color-border-success`),B(`--color-border-warning`),B(`--color-border-disabled`),B(`--color-ring-primary`),B(`--color-ring-secondary`),B(`--color-ring-inverse`),B(`--color-ring-info`),B(`--color-ring-danger`),B(`--color-ring-success`),B(`--color-ring-warning`),B(`--font-sans`),B(`--font-mono`),B(`--font-weight-normal`),B(`--font-weight-medium`),B(`--font-weight-semibold`),B(`--font-weight-bold`),B(`--font-text-xs-size`),B(`--font-text-sm-size`),B(`--font-text-md-size`),B(`--font-text-lg-size`),B(`--font-heading-xs-size`),B(`--font-heading-sm-size`),B(`--font-heading-md-size`),B(`--font-heading-lg-size`),B(`--font-heading-xl-size`),B(`--font-heading-2xl-size`),B(`--font-heading-3xl-size`),B(`--font-text-xs-line-height`),B(`--font-text-sm-line-height`),B(`--font-text-md-line-height`),B(`--font-text-lg-line-height`),B(`--font-heading-xs-line-height`),B(`--font-heading-sm-line-height`),B(`--font-heading-md-line-height`),B(`--font-heading-lg-line-height`),B(`--font-heading-xl-line-height`),B(`--font-heading-2xl-line-height`),B(`--font-heading-3xl-line-height`),B(`--border-radius-xs`),B(`--border-radius-sm`),B(`--border-radius-md`),B(`--border-radius-lg`),B(`--border-radius-xl`),B(`--border-radius-full`),B(`--border-width-regular`),B(`--shadow-hairline`),B(`--shadow-sm`),B(`--shadow-md`),B(`--shadow-lg`)]).describe(`CSS variable keys available to MCP apps for theming.`).describe(`Style variables for theming MCP apps.
134
167
 
135
168
  Individual style keys are optional - hosts may provide any subset of these values.
136
169
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
137
170
 
138
171
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
139
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),B([P(),Wa()]).describe(`Style variables for theming MCP apps.
172
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`),z([F(),Ga()]).describe(`Style variables for theming MCP apps.
140
173
 
141
174
  Individual style keys are optional - hosts may provide any subset of these values.
142
175
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
@@ -148,18 +181,18 @@ Individual style keys are optional - hosts may provide any subset of these value
148
181
  Values are strings containing CSS values (colors, sizes, font stacks, etc.).
149
182
 
150
183
  Note: This type uses \`Record<K, string | undefined>\` rather than \`Partial<Record<K, string>>\`
151
- for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);z({method:H(`ui/open-link`),params:z({url:P().describe(`URL to open in the host's browser`)})}),z({isError:I().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),z({isError:I().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),z({isError:I().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough(),z({method:H(`ui/notifications/sandbox-proxy-ready`),params:z({})});var aX=z({connectDomains:R(P()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
184
+ for compatibility with Zod schema generation. Both are functionally equivalent for validation.`);R({method:B(`ui/open-link`),params:R({url:F().describe(`URL to open in the host's browser`)})}),R({isError:Ua().optional().describe(`True if the host failed to open the URL (e.g., due to security policy).`)}).passthrough(),R({isError:Ua().optional().describe(`True if the download failed (e.g., user cancelled or host denied).`)}).passthrough(),R({isError:Ua().optional().describe(`True if the host rejected or failed to deliver the message.`)}).passthrough(),R({method:B(`ui/notifications/sandbox-proxy-ready`),params:R({})});var X9=R({connectDomains:L(F()).optional().describe(`Origins for network requests (fetch/XHR/WebSocket).
152
185
 
153
186
  - Maps to CSP \`connect-src\` directive
154
- - Empty or omitted → no network connections (secure default)`),resourceDomains:R(P()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:R(P()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:R(P()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),oX=z({camera:z({}).optional().describe(`Request camera access.
187
+ - Empty or omitted → no network connections (secure default)`),resourceDomains:L(F()).optional().describe("Origins for static resources (images, scripts, stylesheets, fonts, media).\n\n- Maps to CSP `img-src`, `script-src`, `style-src`, `font-src`, `media-src` directives\n- Wildcard subdomains supported: `https://*.example.com`\n- Empty or omitted → no network resources (secure default)"),frameDomains:L(F()).optional().describe("Origins for nested iframes.\n\n- Maps to CSP `frame-src` directive\n- Empty or omitted → no nested iframes allowed (`frame-src 'none'`)"),baseUriDomains:L(F()).optional().describe("Allowed base URIs for the document.\n\n- Maps to CSP `base-uri` directive\n- Empty or omitted → only same origin allowed (`base-uri 'self'`)")}),Z9=R({camera:R({}).optional().describe(`Request camera access.
155
188
 
156
- Maps to Permission Policy \`camera\` feature.`),microphone:z({}).optional().describe(`Request microphone access.
189
+ Maps to Permission Policy \`camera\` feature.`),microphone:R({}).optional().describe(`Request microphone access.
157
190
 
158
- Maps to Permission Policy \`microphone\` feature.`),geolocation:z({}).optional().describe(`Request geolocation access.
191
+ Maps to Permission Policy \`microphone\` feature.`),geolocation:R({}).optional().describe(`Request geolocation access.
159
192
 
160
- Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:z({}).optional().describe(`Request clipboard write access.
193
+ Maps to Permission Policy \`geolocation\` feature.`),clipboardWrite:R({}).optional().describe(`Request clipboard write access.
161
194
 
162
- Maps to Permission Policy \`clipboard-write\` feature.`)});z({method:H(`ui/notifications/size-changed`),params:z({width:F().optional().describe(`New width in pixels.`),height:F().optional().describe(`New height in pixels.`)})}),z({method:H(`ui/notifications/tool-input`),params:z({arguments:V(P(),L().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),z({method:H(`ui/notifications/tool-input-partial`),params:z({arguments:V(P(),L().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),z({method:H(`ui/notifications/tool-cancelled`),params:z({reason:P().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})});var sX=z({fonts:P().optional()}),cX=z({variables:iX.optional().describe(`CSS variables for theming the app.`),css:sX.optional().describe(`CSS blocks that apps can inject.`)});z({method:H(`ui/resource-teardown`),params:z({})}),V(P(),L());var lX=z({text:z({}).optional().describe(`Host supports text content blocks.`),image:z({}).optional().describe(`Host supports image content blocks.`),audio:z({}).optional().describe(`Host supports audio content blocks.`),resource:z({}).optional().describe(`Host supports resource content blocks.`),resourceLink:z({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:z({}).optional().describe(`Host supports structured content.`)});z({method:H(`ui/notifications/request-teardown`),params:z({}).optional()});var uX=z({experimental:z({}).optional().describe(`Experimental features (structure TBD).`),openLinks:z({}).optional().describe(`Host supports opening external URLs.`),downloadFile:z({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:z({listChanged:I().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:z({listChanged:I().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:z({}).optional().describe(`Host accepts log messages.`),sandbox:z({permissions:oX.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:aX.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:lX.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:lX.optional().describe(`Host supports receiving content messages (ui/message) from the view.`)}),dX=z({experimental:z({}).optional().describe(`Experimental features (structure TBD).`),tools:z({listChanged:I().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:R(rX).optional().describe(`Display modes the app supports.`)});z({method:H(`ui/notifications/initialized`),params:z({}).optional()}),z({csp:aX.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:oX.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:P().optional().describe(`Dedicated origin for view sandbox.
195
+ Maps to Permission Policy \`clipboard-write\` feature.`)});R({method:B(`ui/notifications/size-changed`),params:R({width:I().optional().describe(`New width in pixels.`),height:I().optional().describe(`New height in pixels.`)})}),R({method:B(`ui/notifications/tool-input`),params:R({arguments:so(F(),Ya().describe(`Complete tool call arguments as key-value pairs.`)).optional().describe(`Complete tool call arguments as key-value pairs.`)})}),R({method:B(`ui/notifications/tool-input-partial`),params:R({arguments:so(F(),Ya().describe(`Partial tool call arguments (incomplete, may change).`)).optional().describe(`Partial tool call arguments (incomplete, may change).`)})}),R({method:B(`ui/notifications/tool-cancelled`),params:R({reason:F().optional().describe(`Optional reason for the cancellation (e.g., "user action", "timeout").`)})});var GSe=R({fonts:F().optional()}),KSe=R({variables:WSe.optional().describe(`CSS variables for theming the app.`),css:GSe.optional().describe(`CSS blocks that apps can inject.`)});R({method:B(`ui/resource-teardown`),params:R({})}),so(F(),Ya());var Q9=R({text:R({}).optional().describe(`Host supports text content blocks.`),image:R({}).optional().describe(`Host supports image content blocks.`),audio:R({}).optional().describe(`Host supports audio content blocks.`),resource:R({}).optional().describe(`Host supports resource content blocks.`),resourceLink:R({}).optional().describe(`Host supports resource link content blocks.`),structuredContent:R({}).optional().describe(`Host supports structured content.`)});R({method:B(`ui/notifications/request-teardown`),params:R({}).optional()});var qSe=R({experimental:R({}).optional().describe(`Experimental features (structure TBD).`),openLinks:R({}).optional().describe(`Host supports opening external URLs.`),downloadFile:R({}).optional().describe(`Host supports file downloads via ui/download-file.`),serverTools:R({listChanged:Ua().optional().describe(`Host supports tools/list_changed notifications.`)}).optional().describe(`Host can proxy tool calls to the MCP server.`),serverResources:R({listChanged:Ua().optional().describe(`Host supports resources/list_changed notifications.`)}).optional().describe(`Host can proxy resource reads to the MCP server.`),logging:R({}).optional().describe(`Host accepts log messages.`),sandbox:R({permissions:Z9.optional().describe(`Permissions granted by the host (camera, microphone, geolocation).`),csp:X9.optional().describe(`CSP domains approved by the host.`)}).optional().describe(`Sandbox configuration applied by the host.`),updateModelContext:Q9.optional().describe(`Host accepts context updates (ui/update-model-context) to be included in the model's context for future turns.`),message:Q9.optional().describe(`Host supports receiving content messages (ui/message) from the view.`)}),JSe=R({experimental:R({}).optional().describe(`Experimental features (structure TBD).`),tools:R({listChanged:Ua().optional().describe(`App supports tools/list_changed notifications.`)}).optional().describe(`App exposes MCP-style tools that the host can call.`),availableDisplayModes:L(Y9).optional().describe(`Display modes the app supports.`)});R({method:B(`ui/notifications/initialized`),params:R({}).optional()}),R({csp:X9.optional().describe(`Content Security Policy configuration for UI resources.`),permissions:Z9.optional().describe(`Sandbox permissions requested by the UI resource.`),domain:F().optional().describe(`Dedicated origin for view sandbox.
163
196
 
164
197
  Useful when views need stable, dedicated origins for OAuth callbacks, CORS policies, or API key allowlists.
165
198
 
@@ -167,17 +200,18 @@ Useful when views need stable, dedicated origins for OAuth callbacks, CORS polic
167
200
  - Hash-based subdomains (e.g., \`{hash}.claudemcpcontent.com\`)
168
201
  - URL-derived subdomains (e.g., \`www-example-com.oaiusercontent.com\`)
169
202
 
170
- If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:I().optional().describe(`Visual boundary preference - true if view prefers a visible border.
203
+ If omitted, host uses default sandbox origin (typically per-conversation).`),prefersBorder:Ua().optional().describe(`Visual boundary preference - true if view prefers a visible border.
171
204
 
172
205
  Boolean requesting whether a visible border and background is provided by the host. Specifying an explicit value for this is recommended because hosts' defaults may vary.
173
206
 
174
207
  - \`true\`: request visible border + background
175
208
  - \`false\`: request no visible border + background
176
- - omitted: host decides border`)}),z({method:H(`ui/request-display-mode`),params:z({mode:rX.describe(`The display mode being requested.`)})}),z({mode:rX.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough();var fX=B([H(`model`),H(`app`)]).describe(`Tool visibility scope - who can access the tool.`);z({resourceUri:P().optional(),visibility:R(fX).optional().describe(`Who can access this tool. Default: ["model", "app"]
209
+ - omitted: host decides border`)}),R({method:B(`ui/request-display-mode`),params:R({mode:Y9.describe(`The display mode being requested.`)})}),R({mode:Y9.describe(`The display mode that was actually set. May differ from requested if not supported.`)}).passthrough();var YSe=z([B(`model`),B(`app`)]).describe(`Tool visibility scope - who can access the tool.`);R({resourceUri:F().optional(),visibility:L(YSe).optional().describe(`Who can access this tool. Default: ["model", "app"]
177
210
  - "model": Tool visible to and callable by the agent
178
- - "app": Tool callable by the app from this server only`)}),z({mimeTypes:R(P()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),z({method:H(`ui/download-file`),params:z({contents:R(B([vc,yc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),z({method:H(`ui/message`),params:z({role:H(`user`).describe(`Message role, currently only "user" is supported.`),content:R(bc).describe(`Message content blocks (text, image, etc.).`)})}),z({method:H(`ui/notifications/sandbox-resource-ready`),params:z({html:P().describe(`HTML content to load into the inner iframe.`),sandbox:P().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:aX.optional().describe(`CSP configuration from resource metadata.`),permissions:oX.optional().describe(`Sandbox permissions from resource metadata.`)})}),z({method:H(`ui/notifications/tool-result`),params:Oc.describe(`Standard MCP tool execution result.`)});var pX=z({toolInfo:z({id:Jo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Tc.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:nX.optional().describe(`Current color theme preference.`),styles:cX.optional().describe(`Style configuration for theming the app.`),displayMode:rX.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:R(rX).optional().describe(`Display modes the host supports.`),containerDimensions:B([z({height:F().describe(`Fixed container height in pixels.`)}),z({maxHeight:B([F(),Wa()]).optional().describe(`Maximum container height in pixels.`)})]).and(B([z({width:F().describe(`Fixed container width in pixels.`)}),z({maxWidth:B([F(),Wa()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
179
- container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:P().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:P().optional().describe(`User's timezone in IANA format.`),userAgent:P().optional().describe(`Host application identifier.`),platform:B([H(`web`),H(`desktop`),H(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:z({touch:I().optional().describe(`Whether the device supports touch input.`),hover:I().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:z({top:F().describe(`Top safe area inset in pixels.`),right:F().describe(`Right safe area inset in pixels.`),bottom:F().describe(`Bottom safe area inset in pixels.`),left:F().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough();z({method:H(`ui/notifications/host-context-changed`),params:pX.describe(`Partial context update containing only changed fields.`)}),z({method:H(`ui/update-model-context`),params:z({content:R(bc).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:V(P(),L().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),z({method:H(`ui/initialize`),params:z({appInfo:us.describe(`App identification (name and version).`),appCapabilities:dX.describe(`Features and capabilities this app provides.`),protocolVersion:P().describe(`Protocol version this app supports.`)})}),z({protocolVersion:P().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:us.describe(`Host application identification and version.`),hostCapabilities:uX.describe(`Features and capabilities provided by the host.`),hostContext:pX.describe(`Rich context about the host environment.`)}).passthrough();function mX(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function hX(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function gX(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var _X={"--color-background-primary":`--dc-surface`,"--color-background-secondary":`--dc-surface-secondary`,"--color-text-primary":`--dc-text`,"--color-text-secondary":`--dc-text-secondary`,"--color-text-tertiary":`--dc-text-muted`,"--color-border-primary":`--dc-border`,"--color-border-secondary":`--dc-border`,"--color-accent-primary":`--dc-accent`,"--color-accent-secondary":`--dc-accent-hover`,"--color-status-error":`--dc-error`,"--color-status-success":`--dc-success`,"--color-status-warning":`--dc-warning`};function vX(e){if(e.theme&&mX(e.theme),e.styles?.variables&&(hX(e.styles.variables),yX()),e.styles?.css?.fonts&&gX(e.styles.css.fonts),e.safeAreaInsets){let{top:t,right:n,bottom:r,left:i}=e.safeAreaInsets;document.body.style.padding=`${t}px ${n}px ${r}px ${i}px`}}function yX(){let e=document.documentElement,t=getComputedStyle(e);for(let[n,r]of Object.entries(_X)){let i=t.getPropertyValue(n).trim();i&&e.style.setProperty(r,i)}}function bX(){let e=document.documentElement;window.matchMedia(`(prefers-color-scheme: dark)`).matches?(e.style.setProperty(`--dc-surface`,`#1a1a2e`),e.style.setProperty(`--dc-surface-secondary`,`#16213e`),e.style.setProperty(`--dc-text`,`#e0e0e0`),e.style.setProperty(`--dc-text-secondary`,`#a0a0a0`),e.style.setProperty(`--dc-text-muted`,`#707070`),e.style.setProperty(`--dc-border`,`#2a2a4a`),e.style.setProperty(`--dc-accent`,`#6366f1`)):(e.style.setProperty(`--dc-surface`,`#ffffff`),e.style.setProperty(`--dc-surface-secondary`,`#f8fafc`),e.style.setProperty(`--dc-text`,`#1e293b`),e.style.setProperty(`--dc-text-secondary`,`#64748b`),e.style.setProperty(`--dc-text-muted`,`#94a3b8`),e.style.setProperty(`--dc-border`,`#e2e8f0`),e.style.setProperty(`--dc-accent`,`#6366f1`))}var xX=[`#6366f1`,`#06b6d4`,`#f59e0b`,`#10b981`,`#ef4444`,`#8b5cf6`,`#ec4899`,`#14b8a6`,`#f97316`,`#3b82f6`];function SX(e){let t=e.split(`.`);return(t.length>1?t[1]:t[0]).replace(/([A-Z])/g,` $1`).replace(/^./,e=>e.toUpperCase()).trim()}function CX(e){return e==null?`-`:typeof e==`number`&&e>=1e3?e.toLocaleString():String(e)}function wX(e,t){if(!e.length||!t.yAxis.length)return(0,$.jsx)(`div`,{children:`No data`});let n=e[e.length-1];return(0,$.jsx)(`div`,{style:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,padding:`24px 0`},children:t.yAxis.map((e,r)=>{let i=n[e],a=typeof i==`number`?i:parseFloat(i);return(0,$.jsxs)(`div`,{style:{textAlign:`center`,marginBottom:r<t.yAxis.length-1?16:0},children:[(0,$.jsx)(`div`,{style:{fontSize:11,color:`var(--dc-text-secondary, #64748b)`,marginBottom:4,textTransform:`uppercase`,letterSpacing:`0.05em`},children:SX(e)}),(0,$.jsx)(`div`,{style:{fontSize:36,fontWeight:700,fontVariantNumeric:`tabular-nums`,color:`var(--dc-text, #1e293b)`},children:isNaN(a)?CX(i):a.toLocaleString()})]},e)})})}function TX(e){if(!e.length)return(0,$.jsx)(`div`,{children:`No data`});let t=Object.keys(e[0]);return(0,$.jsx)(`div`,{style:{overflowX:`auto`,maxHeight:400},children:(0,$.jsxs)(`table`,{className:`dc-mcp-table`,children:[(0,$.jsx)(`thead`,{children:(0,$.jsx)(`tr`,{children:t.map(e=>(0,$.jsx)(`th`,{children:SX(e)},e))})}),(0,$.jsx)(`tbody`,{children:e.map((e,n)=>(0,$.jsx)(`tr`,{children:t.map(t=>{let n=e[t];return(0,$.jsx)(`td`,{className:typeof n==`number`?`numeric`:``,children:CX(n)},t)})},n))})]})})}function EX({data:e,sel:t,chartType:n}){let{xAxis:r,yAxis:i}=t;if(n===`kpiNumber`)return wX(e,t);if(n===`table`||!r||!i.length)return TX(e);let a=(0,N.useMemo)(()=>e.map(e=>{let t={...e};for(let e of i){let n=t[e];if(typeof n==`string`){let r=parseFloat(n);isNaN(r)||(t[e]=r)}}return t}),[e,i]),o={tick:{fontSize:11,fill:`var(--dc-text-secondary, #64748b)`},axisLine:{stroke:`var(--dc-border, #e2e8f0)`},tickLine:!1},s=(0,$.jsx)(LK,{dataKey:r,...o,tickFormatter:e=>{let t=String(e);return t.length>16?t.slice(0,14)+`...`:t}}),c=(0,$.jsx)(QK,{...o,width:60,tickFormatter:e=>e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}),l=(0,$.jsx)(aU,{strokeDasharray:`3 3`,stroke:`var(--dc-border, #e2e8f0)`,opacity:.5}),u=(0,$.jsx)(TI,{contentStyle:{background:`var(--dc-surface, #fff)`,border:`1px solid var(--dc-border, #e2e8f0)`,borderRadius:8,fontSize:12}}),d=i.length>1?(0,$.jsx)(Mb,{wrapperStyle:{fontSize:12}}):null;switch(n){case`bar`:return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsxs)(IJ,{data:a,margin:{top:8,right:8,bottom:8,left:0},children:[l,s,c,u,d,i.map((e,t)=>(0,$.jsx)(BG,{dataKey:e,name:SX(e),fill:xX[t%xX.length],radius:[4,4,0,0]},e))]})});case`line`:return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsxs)(PJ,{data:a,margin:{top:8,right:8,bottom:8,left:0},children:[l,s,c,u,d,i.map((e,t)=>(0,$.jsx)(tW,{type:`monotone`,dataKey:e,name:SX(e),stroke:xX[t%xX.length],strokeWidth:2,dot:a.length<=30},e))]})});case`area`:return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsxs)(YY,{data:a,margin:{top:8,right:8,bottom:8,left:0},children:[l,s,c,u,d,i.map((e,t)=>(0,$.jsx)(BW,{type:`monotone`,dataKey:e,name:SX(e),stroke:xX[t%xX.length],fill:xX[t%xX.length],fillOpacity:.15},e))]})});case`pie`:{let e=i[0];return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsxs)(nY,{children:[u,(0,$.jsx)(RB,{data:a,dataKey:e,nameKey:r,cx:`50%`,cy:`50%`,outerRadius:`75%`,label:e=>`${e.name??``} ${((e.percent??0)*100).toFixed(0)}%`,labelLine:!0,children:a.map((e,t)=>(0,$.jsx)(EI,{fill:xX[t%xX.length]},t))}),(0,$.jsx)(Mb,{wrapperStyle:{fontSize:12}})]})})}case`scatter`:{let e=i.length>=2?i[0]:r,t=i.length>=2?i[1]:i[0];return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsxs)(qY,{margin:{top:8,right:24,bottom:8,left:0},children:[l,(0,$.jsx)(LK,{dataKey:e,type:i.length>=2?`number`:`category`,name:SX(e||``),...o,tickFormatter:e=>{if(typeof e==`number`)return e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e);let t=String(e);return t.length>16?t.slice(0,14)+`...`:t}}),(0,$.jsx)(QK,{dataKey:t,type:`number`,name:SX(t||``),...o,width:60,tickFormatter:e=>e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}),u,(0,$.jsx)(gK,{data:a,fill:xX[0],name:r?SX(r):`Data`,children:a.map((e,t)=>(0,$.jsx)(EI,{fill:xX[t%xX.length]},t))})]})})}case`treemap`:{let e=i[0];return(0,$.jsx)(Mv,{width:`100%`,height:320,children:(0,$.jsx)(GY,{data:a.map((t,n)=>({name:String(t[r]||`Item ${n+1}`),size:typeof t[e]==`number`?t[e]:0,fill:xX[n%xX.length]})),dataKey:`size`,nameKey:`name`,stroke:`var(--dc-surface, #fff)`})})}default:return TX(e)}}function DX(){let[e,t]=(0,N.useState)(null),[n,r]=(0,N.useState)(`table`),[i,a]=(0,N.useState)(null),[o,s]=(0,N.useState)(null),c=(0,N.useRef)(null),[l,u]=(0,N.useState)(null),[d,f]=(0,N.useState)(!1),[p,m]=(0,N.useState)(null),h=(0,N.useCallback)((e,n)=>{try{let i;if(e&&typeof e==`object`&&`content`in e){let t=e.content.find(e=>e.type===`text`);if(t?.text)i=JSON.parse(t.text);else{u(`No text content in result`);return}}else i=e&&typeof e==`object`&&`data`in e?e:typeof e==`string`?JSON.parse(e):e;if(i&&`results`in i&&Array.isArray(i.results)){let e=i.results[0];e&&(i={data:e.data||[],query:e.query||i.query,annotation:e.annotation})}if(!i?.data||!Array.isArray(i.data)){u(`Invalid result format: missing data array`);return}t(i),u(null);let o=QY(i.query||{},i.data);n?(s(n),n.type?r(n.type):r(o.chartType),a({chartType:n.type||o.chartType,xAxis:n.xAxis||o.xAxis,yAxis:n.yAxis||o.yAxis,series:o.series})):(a(o),r(o.chartType))}catch(e){u(`Failed to parse result: ${e instanceof Error?e.message:String(e)}`)}},[]),{app:g,isConnected:_,error:v}=Gl({appInfo:{name:`Drizzle Cube Visualization`,version:`1.0.0`},capabilities:{},onAppCreated:e=>{m(e),e.ontoolinput=e=>{f(!0);let t=e?.arguments?.chart??null;c.current=t,t&&s(t);let n=e?.structuredContent;n&&(f(!1),h(n,t))},e.ontoolresult=e=>{f(!1),h(e,c.current)},e.onhostcontextchanged=e=>{vX(e)}}});(0,N.useEffect)(()=>{bX()},[]);let y=(0,N.useCallback)(e=>{r(e)},[]);if(v)return(0,$.jsxs)(`div`,{style:{padding:16,color:`var(--dc-error, #ef4444)`},children:[(0,$.jsx)(`strong`,{children:`Connection error:`}),` `,v.message]});if(l)return(0,$.jsxs)(`div`,{style:{padding:16,color:`var(--dc-error, #ef4444)`},children:[(0,$.jsx)(`strong`,{children:`Error:`}),` `,l]});if(d||!_)return(0,$.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:32,color:`var(--dc-text-secondary, #64748b)`},children:[(0,$.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,style:{animation:`spin 1s linear infinite`,marginRight:8},children:(0,$.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`3`,fill:`none`,strokeDasharray:`31.4 31.4`,strokeLinecap:`round`})}),_?`Loading...`:`Connecting...`,(0,$.jsx)(`style`,{children:`@keyframes spin { to { transform: rotate(360deg) } }`})]});if(!e)return(0,$.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:32,color:`var(--dc-text-muted, #94a3b8)`},children:`Waiting for query results...`});let b=e.query||{};return(0,$.jsxs)(`div`,{children:[o?.title&&(0,$.jsx)(`div`,{style:{fontSize:14,fontWeight:600,color:`var(--dc-text, #1e293b)`,marginBottom:8},children:o.title}),(0,$.jsx)(tX,{selected:n,query:b,rowCount:e.data.length,onSelect:y}),i&&(0,$.jsx)(EX,{data:e.data,sel:i,chartType:n}),(0,$.jsxs)(`div`,{style:{marginTop:12,fontSize:11,color:`var(--dc-text-muted, #94a3b8)`},children:[e.data.length,` row`,e.data.length===1?``:`s`,b.measures?.length?` | ${b.measures.length} measure${b.measures.length===1?``:`s`}`:``,b.dimensions?.length?` | ${b.dimensions.length} dimension${b.dimensions.length===1?``:`s`}`:``]})]})}(0,Ui.createRoot)(document.getElementById(`root`)).render((0,$.jsx)(DX,{}));</script>
180
- <style rel="stylesheet" crossorigin>*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);background:var(--dc-surface,#fff);color:var(--dc-text,#1e293b);-webkit-font-smoothing:antialiased;line-height:1.5}#root{min-height:100vh;padding:12px}.dc-mcp-table{border-collapse:collapse;width:100%;font-size:13px}.dc-mcp-table th{text-align:left;border-bottom:2px solid var(--dc-border,#e2e8f0);color:var(--dc-text-secondary,#64748b);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;padding:6px 10px;font-size:11px;font-weight:600}.dc-mcp-table td{border-bottom:1px solid var(--dc-border,#e2e8f0);color:var(--dc-text,#1e293b);padding:5px 10px}.dc-mcp-table tr:last-child td{border-bottom:none}.dc-mcp-table tr:hover td{background:var(--dc-surface-secondary,#f8fafc)}.dc-mcp-table td.numeric{text-align:right;font-variant-numeric:tabular-nums}
211
+ - "app": Tool callable by the app from this server only`)}),R({mimeTypes:L(F()).optional().describe('Array of supported MIME types for UI resources.\nMust include `"text/html;profile=mcp-app"` for MCP Apps support.')}),R({method:B(`ui/download-file`),params:R({contents:L(z([xc,Sc])).describe(`Resource contents to download — embedded (inline data) or linked (host fetches). Uses standard MCP resource types.`)})}),R({method:B(`ui/message`),params:R({role:B(`user`).describe(`Message role, currently only "user" is supported.`),content:L(V).describe(`Message content blocks (text, image, etc.).`)})}),R({method:B(`ui/notifications/sandbox-resource-ready`),params:R({html:F().describe(`HTML content to load into the inner iframe.`),sandbox:F().optional().describe(`Optional override for the inner iframe's sandbox attribute.`),csp:X9.optional().describe(`CSP configuration from resource metadata.`),permissions:Z9.optional().describe(`Sandbox permissions from resource metadata.`)})}),R({method:B(`ui/notifications/tool-result`),params:jc.describe(`Standard MCP tool execution result.`)});var $9=R({toolInfo:R({id:Zo.optional().describe(`JSON-RPC id of the tools/call request.`),tool:Oc.describe(`Tool definition including name, inputSchema, etc.`)}).optional().describe(`Metadata of the tool call that instantiated this App.`),theme:USe.optional().describe(`Current color theme preference.`),styles:KSe.optional().describe(`Style configuration for theming the app.`),displayMode:Y9.optional().describe(`How the UI is currently displayed.`),availableDisplayModes:L(Y9).optional().describe(`Display modes the host supports.`),containerDimensions:z([R({height:I().describe(`Fixed container height in pixels.`)}),R({maxHeight:z([I(),Ga()]).optional().describe(`Maximum container height in pixels.`)})]).and(z([R({width:I().describe(`Fixed container width in pixels.`)}),R({maxWidth:z([I(),Ga()]).optional().describe(`Maximum container width in pixels.`)})])).optional().describe(`Container dimensions. Represents the dimensions of the iframe or other
212
+ container holding the app. Specify either width or maxWidth, and either height or maxHeight.`),locale:F().optional().describe(`User's language and region preference in BCP 47 format.`),timeZone:F().optional().describe(`User's timezone in IANA format.`),userAgent:F().optional().describe(`Host application identifier.`),platform:z([B(`web`),B(`desktop`),B(`mobile`)]).optional().describe(`Platform type for responsive design decisions.`),deviceCapabilities:R({touch:Ua().optional().describe(`Whether the device supports touch input.`),hover:Ua().optional().describe(`Whether the device supports hover interactions.`)}).optional().describe(`Device input capabilities.`),safeAreaInsets:R({top:I().describe(`Top safe area inset in pixels.`),right:I().describe(`Right safe area inset in pixels.`),bottom:I().describe(`Bottom safe area inset in pixels.`),left:I().describe(`Left safe area inset in pixels.`)}).optional().describe(`Mobile safe area boundaries in pixels.`)}).passthrough();R({method:B(`ui/notifications/host-context-changed`),params:$9.describe(`Partial context update containing only changed fields.`)}),R({method:B(`ui/update-model-context`),params:R({content:L(V).optional().describe(`Context content blocks (text, image, etc.).`),structuredContent:so(F(),Ya().describe(`Structured content for machine-readable context data.`)).optional().describe(`Structured content for machine-readable context data.`)})}),R({method:B(`ui/initialize`),params:R({appInfo:ps.describe(`App identification (name and version).`),appCapabilities:JSe.describe(`Features and capabilities this app provides.`),protocolVersion:F().describe(`Protocol version this app supports.`)})}),R({protocolVersion:F().describe(`Negotiated protocol version string (e.g., "2025-11-21").`),hostInfo:ps.describe(`Host application identification and version.`),hostCapabilities:qSe.describe(`Features and capabilities provided by the host.`),hostContext:$9.describe(`Rich context about the host environment.`)}).passthrough();function XSe(e){let t=document.documentElement;t.setAttribute(`data-theme`,e),t.style.colorScheme=e}function ZSe(e,t=document.documentElement){for(let[n,r]of Object.entries(e))r!==void 0&&t.style.setProperty(n,r)}function QSe(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var $Se={"--color-background-primary":`--dc-surface`,"--color-background-secondary":`--dc-surface-secondary`,"--color-text-primary":`--dc-text`,"--color-text-secondary":`--dc-text-secondary`,"--color-text-tertiary":`--dc-text-muted`,"--color-border-primary":`--dc-border`,"--color-border-secondary":`--dc-border`,"--color-accent-primary":`--dc-accent`,"--color-accent-secondary":`--dc-accent-hover`,"--color-status-error":`--dc-error`,"--color-status-success":`--dc-success`,"--color-status-warning":`--dc-warning`};function eCe(e){if(e.theme&&XSe(e.theme),e.styles?.variables&&(ZSe(e.styles.variables),tCe()),e.styles?.css?.fonts&&QSe(e.styles.css.fonts),e.safeAreaInsets){let{top:t,right:n,bottom:r,left:i}=e.safeAreaInsets;document.body.style.padding=`${t}px ${n}px ${r}px ${i}px`}}function tCe(){let e=document.documentElement,t=getComputedStyle(e);for(let[n,r]of Object.entries($Se)){let i=t.getPropertyValue(n).trim();i&&e.style.setProperty(r,i)}}function nCe(){let e=document.documentElement;window.matchMedia(`(prefers-color-scheme: dark)`).matches?(e.style.setProperty(`--dc-surface`,`#1a1a2e`),e.style.setProperty(`--dc-surface-secondary`,`#16213e`),e.style.setProperty(`--dc-text`,`#e0e0e0`),e.style.setProperty(`--dc-text-secondary`,`#a0a0a0`),e.style.setProperty(`--dc-text-muted`,`#707070`),e.style.setProperty(`--dc-border`,`#2a2a4a`),e.style.setProperty(`--dc-accent`,`#6366f1`)):(e.style.setProperty(`--dc-surface`,`#ffffff`),e.style.setProperty(`--dc-surface-secondary`,`#f8fafc`),e.style.setProperty(`--dc-text`,`#1e293b`),e.style.setProperty(`--dc-text-secondary`,`#64748b`),e.style.setProperty(`--dc-text-muted`,`#94a3b8`),e.style.setProperty(`--dc-border`,`#e2e8f0`),e.style.setProperty(`--dc-accent`,`#6366f1`))}B1();var rCe={bar:K1,line:Q1,area:t0,pie:i0,scatter:s0,treemap:d3,kpiNumber:M6,kpiDelta:F6,kpiText:R6,table:K9,radar:l5,radialBar:f5,bubble:b5,funnel:k5,waterfall:V5,gauge:l7,boxPlot:P5,candlestick:Y5,activityGrid:C5,measureProfile:Q5};function iCe(e){let t={};for(let[n,r]of Object.entries(e?.measures||{}))t[n]=r.title||n.split(`.`)[1]||n;for(let[n,r]of Object.entries(e?.dimensions||{}))t[n]=r.title||n.split(`.`)[1]||n;for(let[n,r]of Object.entries(e?.timeDimensions||{}))t[n]=r.title||n.split(`.`)[1]||n;return t}function aCe(e){let t=e.split(`.`);return(t.length>1?t[1]:t[0]).replace(/([A-Z])/g,` $1`).replace(/^./,e=>e.toUpperCase()).trim()}function oCe(e,t){let n={xAxis:t.xAxis,yAxis:t.yAxis,series:t.series},r={};return e.chartConfig&&(n={...n,...e.chartConfig}),e.displayConfig&&(r={...r,...e.displayConfig}),e.xAxis&&(n.xAxis=[e.xAxis]),e.yAxis&&(n.yAxis=e.yAxis),{chartConfig:n,displayConfig:r}}function sCe(){let[e,t]=(0,Hi.useState)(null),[n,r]=(0,Hi.useState)(`table`),[i,a]=(0,Hi.useState)(null),[o,s]=(0,Hi.useState)(null),c=(0,Hi.useRef)(null),[l,u]=(0,Hi.useState)(null),[d,f]=(0,Hi.useState)(!1),[p,m]=(0,Hi.useState)(null),h=(0,Hi.useMemo)(()=>e?.annotation?iCe(e.annotation):{},[e?.annotation]),g=(0,Hi.useMemo)(()=>({meta:null,labelMap:h,metaLoading:!1,metaError:null,getFieldLabel:e=>h[e]||aCe(e),refetchMeta:()=>{}}),[h]),_=(0,Hi.useCallback)((e,n)=>{try{let i;if(e&&typeof e==`object`&&`content`in e){let t=e.content.find(e=>e.type===`text`);if(t?.text)i=JSON.parse(t.text);else{u(`No text content in result`);return}}else i=e&&typeof e==`object`&&`data`in e?e:typeof e==`string`?JSON.parse(e):e;if(i&&`results`in i&&Array.isArray(i.results)){let e=i.results[0];e&&(i={data:e.data||[],query:e.query||i.query,annotation:e.annotation})}if(!i?.data||!Array.isArray(i.data)){u(`Invalid result format: missing data array`);return}t(i),u(null);let o=BSe(i.query||{},i.data);if(n){s(n);let e=n.type||o.chartType;r(e),a({chartType:e,xAxis:n.xAxis?[n.xAxis]:n.chartConfig?.xAxis||o.xAxis,yAxis:n.yAxis||n.chartConfig?.yAxis||o.yAxis,series:n.chartConfig?.series||o.series})}else a(o),r(o.chartType)}catch(e){u(`Failed to parse result: ${e instanceof Error?e.message:String(e)}`)}},[]),{app:v,isConnected:y,error:b}=Jl({appInfo:{name:`Drizzle Cube Visualization`,version:`1.0.0`},capabilities:{},onAppCreated:e=>{m(e),e.ontoolinput=e=>{f(!0);let t=e?.arguments?.chart??null;c.current=t,t&&s(t);let n=e?.structuredContent;n&&(f(!1),_(n,t))},e.ontoolresult=e=>{f(!1),_(e,c.current)},e.onhostcontextchanged=e=>{eCe(e)}}});(0,Hi.useEffect)(()=>{nCe()},[]);let x=(0,Hi.useCallback)(e=>{r(e)},[]);if(b)return(0,q9.jsxs)(`div`,{style:{padding:16,color:`var(--dc-error, #ef4444)`},children:[(0,q9.jsx)(`strong`,{children:`Connection error:`}),` `,b.message]});if(l)return(0,q9.jsxs)(`div`,{style:{padding:16,color:`var(--dc-error, #ef4444)`},children:[(0,q9.jsx)(`strong`,{children:`Error:`}),` `,l]});if(d||!y)return(0,q9.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:32,color:`var(--dc-text-secondary, #64748b)`},children:[(0,q9.jsx)(`svg`,{width:`20`,height:`20`,viewBox:`0 0 24 24`,style:{animation:`spin 1s linear infinite`,marginRight:8},children:(0,q9.jsx)(`circle`,{cx:`12`,cy:`12`,r:`10`,stroke:`currentColor`,strokeWidth:`3`,fill:`none`,strokeDasharray:`31.4 31.4`,strokeLinecap:`round`})}),y?`Loading...`:`Connecting...`,(0,q9.jsx)(`style`,{children:`@keyframes spin { to { transform: rotate(360deg) } }`})]});if(!e)return(0,q9.jsx)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`center`,padding:32,color:`var(--dc-text-muted, #94a3b8)`},children:`Waiting for query results...`});let S=e.query||{},{chartConfig:C,displayConfig:w}=i&&o?oCe(o,i):{chartConfig:i?{xAxis:i.xAxis,yAxis:i.yAxis,series:i.series}:void 0,displayConfig:{}},T=rCe[n]||K9;return(0,q9.jsx)(z1.Provider,{value:g,children:(0,q9.jsxs)(`div`,{children:[(0,q9.jsxs)(`div`,{style:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,marginBottom:8},children:[o?.title?(0,q9.jsx)(`div`,{style:{fontSize:14,fontWeight:600,color:`var(--dc-text, #1e293b)`},children:o.title}):(0,q9.jsx)(`div`,{}),(0,q9.jsx)(HSe,{selected:n,query:S,rowCount:e.data.length,onSelect:x})]}),(0,q9.jsx)(`div`,{style:{height:360,marginTop:8},children:(0,q9.jsx)(T,{data:e.data,chartConfig:C,displayConfig:w,queryObject:S,height:360})}),(0,q9.jsxs)(`div`,{style:{marginTop:12,fontSize:11,color:`var(--dc-text-muted, #94a3b8)`},children:[e.data.length,` row`,e.data.length===1?``:`s`,S.measures?.length?` | ${S.measures.length} measure${S.measures.length===1?``:`s`}`:``,S.dimensions?.length?` | ${S.dimensions.length} dimension${S.dimensions.length===1?``:`s`}`:``]})]})})}(0,Ui.createRoot)(document.getElementById(`root`)).render((0,q9.jsx)(sCe,{}));</script>
213
+ <style rel="stylesheet" crossorigin>/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
214
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-divide-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-backdrop-blur:initial;--tw-backdrop-brightness:initial;--tw-backdrop-contrast:initial;--tw-backdrop-grayscale:initial;--tw-backdrop-hue-rotate:initial;--tw-backdrop-invert:initial;--tw-backdrop-opacity:initial;--tw-backdrop-saturate:initial;--tw-backdrop-sepia:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--dc-font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--dc-color-black:#000;--dc-color-white:#fff;--dc-spacing:.25rem;--dc-container-xs:20rem;--dc-container-sm:24rem;--dc-container-md:28rem;--dc-container-lg:32rem;--dc-container-2xl:42rem;--dc-container-4xl:56rem;--dc-container-5xl:64rem;--dc-container-6xl:72rem;--dc-container-7xl:80rem;--dc-text-xs:.75rem;--dc-text-xs--line-height:calc(1 / .75);--dc-text-sm:.875rem;--dc-text-sm--line-height:calc(1.25 / .875);--dc-text-base:1rem;--dc-text-base--line-height:calc(1.5 / 1);--dc-text-lg:1.125rem;--dc-text-lg--line-height:calc(1.75 / 1.125);--dc-text-xl:1.25rem;--dc-text-xl--line-height:calc(1.75 / 1.25);--dc-text-2xl:1.5rem;--dc-text-2xl--line-height:calc(2 / 1.5);--dc-text-3xl:1.875rem;--dc-text-3xl--line-height:calc(2.25 / 1.875);--dc-text-4xl:2.25rem;--dc-text-4xl--line-height:calc(2.5 / 2.25);--dc-text-5xl:3rem;--dc-text-5xl--line-height:1;--dc-font-weight-normal:400;--dc-font-weight-medium:500;--dc-font-weight-semibold:600;--dc-font-weight-bold:700;--dc-tracking-normal:0em;--dc-tracking-wide:.025em;--dc-tracking-wider:.05em;--dc-leading-tight:1.25;--dc-leading-relaxed:1.625;--dc-radius-sm:.25rem;--dc-radius-md:.375rem;--dc-radius-lg:.5rem;--dc-shadow-sm:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--dc-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--dc-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--dc-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--dc-shadow-2xl:0 25px 50px -12px #00000040;--dc-drop-shadow-sm:0 1px 2px #00000026;--dc-ease-out:cubic-bezier(0, 0, .2, 1);--dc-ease-in-out:cubic-bezier(.4, 0, .2, 1);--dc-animate-spin:spin 1s linear infinite;--dc-animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--dc-blur-md:12px;--dc-default-transition-duration:.15s;--dc-default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}}@layer base,components;@layer utilities{.dc\:pointer-events-none{pointer-events:none}.dc\:sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.dc\:absolute{position:absolute}.dc\:fixed{position:fixed}.dc\:relative{position:relative}.dc\:sticky{position:sticky}.dc\:inset-0{inset:calc(var(--dc-spacing) * 0)}.dc\:-top-0\.5{top:calc(var(--dc-spacing) * -.5)}.dc\:-top-1{top:calc(var(--dc-spacing) * -1)}.dc\:-top-5{top:calc(var(--dc-spacing) * -5)}.dc\:top-0{top:calc(var(--dc-spacing) * 0)}.dc\:top-0\.5{top:calc(var(--dc-spacing) * .5)}.dc\:top-1{top:calc(var(--dc-spacing) * 1)}.dc\:top-1\/2{top:50%}.dc\:top-full{top:100%}.dc\:-right-0\.5{right:calc(var(--dc-spacing) * -.5)}.dc\:right-0{right:calc(var(--dc-spacing) * 0)}.dc\:right-0\.5{right:calc(var(--dc-spacing) * .5)}.dc\:right-1{right:calc(var(--dc-spacing) * 1)}.dc\:right-4{right:calc(var(--dc-spacing) * 4)}.dc\:right-full{right:100%}.dc\:bottom-0{bottom:calc(var(--dc-spacing) * 0)}.dc\:left-0{left:calc(var(--dc-spacing) * 0)}.dc\:left-2{left:calc(var(--dc-spacing) * 2)}.dc\:left-4{left:calc(var(--dc-spacing) * 4)}.dc\:left-full{left:100%}.dc\:z-10{z-index:10}.dc\:z-20{z-index:20}.dc\:z-30{z-index:30}.dc\:z-40{z-index:40}.dc\:z-50{z-index:50}.dc\:z-\[60\]{z-index:60}.dc\:float-right{float:right}.dc\:m-0{margin:calc(var(--dc-spacing) * 0)}.dc\:-mx-2{margin-inline:calc(var(--dc-spacing) * -2)}.dc\:mx-1{margin-inline:calc(var(--dc-spacing) * 1)}.dc\:mx-4{margin-inline:calc(var(--dc-spacing) * 4)}.dc\:mx-auto{margin-inline:auto}.dc\:my-0\.5{margin-block:calc(var(--dc-spacing) * .5)}.dc\:my-1{margin-block:calc(var(--dc-spacing) * 1)}.dc\:my-2{margin-block:calc(var(--dc-spacing) * 2)}.dc\:my-3{margin-block:calc(var(--dc-spacing) * 3)}.dc\:my-4{margin-block:calc(var(--dc-spacing) * 4)}.dc\:mt-0\.5{margin-top:calc(var(--dc-spacing) * .5)}.dc\:mt-1{margin-top:calc(var(--dc-spacing) * 1)}.dc\:mt-2{margin-top:calc(var(--dc-spacing) * 2)}.dc\:mt-3{margin-top:calc(var(--dc-spacing) * 3)}.dc\:mt-4{margin-top:calc(var(--dc-spacing) * 4)}.dc\:mt-6{margin-top:calc(var(--dc-spacing) * 6)}.dc\:-mr-2{margin-right:calc(var(--dc-spacing) * -2)}.dc\:mr-0\.5{margin-right:calc(var(--dc-spacing) * .5)}.dc\:mr-1{margin-right:calc(var(--dc-spacing) * 1)}.dc\:mr-1\.5{margin-right:calc(var(--dc-spacing) * 1.5)}.dc\:mr-2{margin-right:calc(var(--dc-spacing) * 2)}.dc\:mr-3{margin-right:calc(var(--dc-spacing) * 3)}.dc\:mb-0{margin-bottom:calc(var(--dc-spacing) * 0)}.dc\:mb-1{margin-bottom:calc(var(--dc-spacing) * 1)}.dc\:mb-1\.5{margin-bottom:calc(var(--dc-spacing) * 1.5)}.dc\:mb-2{margin-bottom:calc(var(--dc-spacing) * 2)}.dc\:mb-3{margin-bottom:calc(var(--dc-spacing) * 3)}.dc\:mb-4{margin-bottom:calc(var(--dc-spacing) * 4)}.dc\:mb-16{margin-bottom:calc(var(--dc-spacing) * 16)}.dc\:-ml-2{margin-left:calc(var(--dc-spacing) * -2)}.dc\:ml-0\.5{margin-left:calc(var(--dc-spacing) * .5)}.dc\:ml-1{margin-left:calc(var(--dc-spacing) * 1)}.dc\:ml-1\.5{margin-left:calc(var(--dc-spacing) * 1.5)}.dc\:ml-2{margin-left:calc(var(--dc-spacing) * 2)}.dc\:ml-4{margin-left:calc(var(--dc-spacing) * 4)}.dc\:ml-5{margin-left:calc(var(--dc-spacing) * 5)}.dc\:ml-6{margin-left:calc(var(--dc-spacing) * 6)}.dc\:ml-auto{margin-left:auto}.dc\:line-clamp-2{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.dc\:block{display:block}.dc\:flex{display:flex}.dc\:grid{display:grid}.dc\:hidden{display:none}.dc\:inline-block{display:inline-block}.dc\:inline-flex{display:inline-flex}.dc\:h-0\.5{height:calc(var(--dc-spacing) * .5)}.dc\:h-1\.5{height:calc(var(--dc-spacing) * 1.5)}.dc\:h-2{height:calc(var(--dc-spacing) * 2)}.dc\:h-2\.5{height:calc(var(--dc-spacing) * 2.5)}.dc\:h-3{height:calc(var(--dc-spacing) * 3)}.dc\:h-3\.5{height:calc(var(--dc-spacing) * 3.5)}.dc\:h-4{height:calc(var(--dc-spacing) * 4)}.dc\:h-5{height:calc(var(--dc-spacing) * 5)}.dc\:h-6{height:calc(var(--dc-spacing) * 6)}.dc\:h-8{height:calc(var(--dc-spacing) * 8)}.dc\:h-10{height:calc(var(--dc-spacing) * 10)}.dc\:h-12{height:calc(var(--dc-spacing) * 12)}.dc\:h-64{height:calc(var(--dc-spacing) * 64)}.dc\:h-96{height:calc(var(--dc-spacing) * 96)}.dc\:h-\[60vh\]{height:60vh}.dc\:h-\[90vh\]{height:90vh}.dc\:h-full{height:100%}.dc\:h-px{height:1px}.dc\:max-h-20{max-height:calc(var(--dc-spacing) * 20)}.dc\:max-h-32{max-height:calc(var(--dc-spacing) * 32)}.dc\:max-h-40{max-height:calc(var(--dc-spacing) * 40)}.dc\:max-h-48{max-height:calc(var(--dc-spacing) * 48)}.dc\:max-h-56{max-height:calc(var(--dc-spacing) * 56)}.dc\:max-h-60{max-height:calc(var(--dc-spacing) * 60)}.dc\:max-h-64{max-height:calc(var(--dc-spacing) * 64)}.dc\:max-h-72{max-height:calc(var(--dc-spacing) * 72)}.dc\:max-h-80{max-height:calc(var(--dc-spacing) * 80)}.dc\:max-h-\[40\%\]{max-height:40%}.dc\:max-h-\[80vh\]{max-height:80vh}.dc\:max-h-\[85vh\]{max-height:85vh}.dc\:max-h-\[90vh\]{max-height:90vh}.dc\:min-h-0{min-height:calc(var(--dc-spacing) * 0)}.dc\:min-h-10{min-height:calc(var(--dc-spacing) * 10)}.dc\:min-h-12{min-height:calc(var(--dc-spacing) * 12)}.dc\:min-h-16{min-height:calc(var(--dc-spacing) * 16)}.dc\:min-h-\[30px\]{min-height:30px}.dc\:min-h-\[48px\]{min-height:48px}.dc\:min-h-\[50vh\]{min-height:50vh}.dc\:min-h-\[100px\]{min-height:100px}.dc\:min-h-\[200px\]{min-height:200px}.dc\:min-h-\[400px\]{min-height:400px}.dc\:w-1{width:calc(var(--dc-spacing) * 1)}.dc\:w-1\.5{width:calc(var(--dc-spacing) * 1.5)}.dc\:w-2{width:calc(var(--dc-spacing) * 2)}.dc\:w-2\.5{width:calc(var(--dc-spacing) * 2.5)}.dc\:w-3{width:calc(var(--dc-spacing) * 3)}.dc\:w-3\.5{width:calc(var(--dc-spacing) * 3.5)}.dc\:w-4{width:calc(var(--dc-spacing) * 4)}.dc\:w-5{width:calc(var(--dc-spacing) * 5)}.dc\:w-6{width:calc(var(--dc-spacing) * 6)}.dc\:w-8{width:calc(var(--dc-spacing) * 8)}.dc\:w-10{width:calc(var(--dc-spacing) * 10)}.dc\:w-12{width:calc(var(--dc-spacing) * 12)}.dc\:w-16{width:calc(var(--dc-spacing) * 16)}.dc\:w-20{width:calc(var(--dc-spacing) * 20)}.dc\:w-24{width:calc(var(--dc-spacing) * 24)}.dc\:w-28{width:calc(var(--dc-spacing) * 28)}.dc\:w-36{width:calc(var(--dc-spacing) * 36)}.dc\:w-48{width:calc(var(--dc-spacing) * 48)}.dc\:w-52{width:calc(var(--dc-spacing) * 52)}.dc\:w-60{width:calc(var(--dc-spacing) * 60)}.dc\:w-72{width:calc(var(--dc-spacing) * 72)}.dc\:w-\[90vw\]{width:90vw}.dc\:w-\[180px\]{width:180px}.dc\:w-\[280px\]{width:280px}.dc\:w-full{width:100%}.dc\:w-px{width:1px}.dc\:max-w-2xl{max-width:var(--dc-container-2xl)}.dc\:max-w-4xl{max-width:var(--dc-container-4xl)}.dc\:max-w-5xl{max-width:var(--dc-container-5xl)}.dc\:max-w-6xl{max-width:var(--dc-container-6xl)}.dc\:max-w-7xl{max-width:var(--dc-container-7xl)}.dc\:max-w-32{max-width:calc(var(--dc-spacing) * 32)}.dc\:max-w-\[85\%\]{max-width:85%}.dc\:max-w-\[100px\]{max-width:100px}.dc\:max-w-\[150px\]{max-width:150px}.dc\:max-w-\[200px\]{max-width:200px}.dc\:max-w-\[280px\]{max-width:280px}.dc\:max-w-\[320px\]{max-width:320px}.dc\:max-w-\[1400px\]{max-width:1400px}.dc\:max-w-full{max-width:100%}.dc\:max-w-lg{max-width:var(--dc-container-lg)}.dc\:max-w-md{max-width:var(--dc-container-md)}.dc\:max-w-none{max-width:none}.dc\:max-w-sm{max-width:var(--dc-container-sm)}.dc\:max-w-xs{max-width:var(--dc-container-xs)}.dc\:min-w-0{min-width:calc(var(--dc-spacing) * 0)}.dc\:min-w-\[2rem\]{min-width:2rem}.dc\:min-w-\[60px\]{min-width:60px}.dc\:min-w-\[70px\]{min-width:70px}.dc\:min-w-\[80px\]{min-width:80px}.dc\:min-w-\[100px\]{min-width:100px}.dc\:min-w-\[120px\]{min-width:120px}.dc\:min-w-\[180px\]{min-width:180px}.dc\:min-w-\[200px\]{min-width:200px}.dc\:min-w-\[220px\]{min-width:220px}.dc\:min-w-\[260px\]{min-width:260px}.dc\:min-w-\[280px\]{min-width:280px}.dc\:min-w-full{min-width:100%}.dc\:min-w-max{min-width:max-content}.dc\:flex-1{flex:1}.dc\:flex-shrink-0,.dc\:shrink-0{flex-shrink:0}.dc\:border-collapse{border-collapse:collapse}.dc\:-translate-x-16{--tw-translate-x:calc(var(--dc-spacing) * -16);translate:var(--tw-translate-x) var(--tw-translate-y)}.dc\:translate-x-0{--tw-translate-x:calc(var(--dc-spacing) * 0);translate:var(--tw-translate-x) var(--tw-translate-y)}.dc\:translate-x-16{--tw-translate-x:calc(var(--dc-spacing) * 16);translate:var(--tw-translate-x) var(--tw-translate-y)}.dc\:-translate-y-1\/2{--tw-translate-y:calc(calc(1 / 2 * 100%) * -1);translate:var(--tw-translate-x) var(--tw-translate-y)}.dc\:scale-110{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dc\:rotate-180{rotate:180deg}.dc\:transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.dc\:animate-pulse{animation:var(--dc-animate-pulse)}.dc\:animate-spin{animation:var(--dc-animate-spin)}.dc\:cursor-col-resize{cursor:col-resize}.dc\:cursor-default{cursor:default}.dc\:cursor-grab{cursor:grab}.dc\:cursor-grabbing{cursor:grabbing}.dc\:cursor-help{cursor:help}.dc\:cursor-move{cursor:move}.dc\:cursor-not-allowed{cursor:not-allowed}.dc\:cursor-pointer{cursor:pointer}.dc\:cursor-wait{cursor:wait}.dc\:resize-none{resize:none}.dc\:resize-y{resize:vertical}.dc\:list-inside{list-style-position:inside}.dc\:list-decimal{list-style-type:decimal}.dc\:list-disc{list-style-type:disc}.dc\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.dc\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.dc\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.dc\:flex-col{flex-direction:column}.dc\:flex-wrap{flex-wrap:wrap}.dc\:items-center{align-items:center}.dc\:items-end{align-items:flex-end}.dc\:items-start{align-items:flex-start}.dc\:justify-between{justify-content:space-between}.dc\:justify-center{justify-content:center}.dc\:justify-end{justify-content:flex-end}.dc\:justify-start{justify-content:flex-start}.dc\:gap-0\.5{gap:calc(var(--dc-spacing) * .5)}.dc\:gap-1{gap:calc(var(--dc-spacing) * 1)}.dc\:gap-1\.5{gap:calc(var(--dc-spacing) * 1.5)}.dc\:gap-2{gap:calc(var(--dc-spacing) * 2)}.dc\:gap-3{gap:calc(var(--dc-spacing) * 3)}.dc\:gap-4{gap:calc(var(--dc-spacing) * 4)}.dc\:gap-6{gap:calc(var(--dc-spacing) * 6)}:where(.dc\:space-y-0\.5>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * .5) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * .5) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * 1) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * 1) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-y-3>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * 3) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * 3) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-y-4>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * 4) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * 4) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-y-6>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--dc-spacing) * 6) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--dc-spacing) * 6) * calc(1 - var(--tw-space-y-reverse)))}:where(.dc\:space-x-0\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * .5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * .5) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:space-x-1>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * 1) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * 1) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:space-x-1\.5>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * 1.5) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * 1.5) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:space-x-2>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * 2) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * 2) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:space-x-3>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * 3) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * 3) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:space-x-4>:not(:last-child)){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--dc-spacing) * 4) * var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--dc-spacing) * 4) * calc(1 - var(--tw-space-x-reverse)))}:where(.dc\:divide-y>:not(:last-child)){--tw-divide-y-reverse:0;border-bottom-style:var(--tw-border-style);border-top-style:var(--tw-border-style);border-top-width:calc(1px * var(--tw-divide-y-reverse));border-bottom-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)))}.dc\:truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.dc\:overflow-auto{overflow:auto}.dc\:overflow-hidden{overflow:hidden}.dc\:overflow-visible{overflow:visible}.dc\:overflow-x-auto{overflow-x:auto}.dc\:overflow-y-auto{overflow-y:auto}.dc\:rounded{border-radius:.25rem}.dc\:rounded-full{border-radius:3.40282e38px}.dc\:rounded-lg{border-radius:var(--dc-radius-lg)}.dc\:rounded-md{border-radius:var(--dc-radius-md)}.dc\:rounded-none{border-radius:0}.dc\:rounded-sm{border-radius:var(--dc-radius-sm)}.dc\:rounded-t-lg{border-top-left-radius:var(--dc-radius-lg);border-top-right-radius:var(--dc-radius-lg)}.dc\:rounded-t-sm{border-top-left-radius:var(--dc-radius-sm);border-top-right-radius:var(--dc-radius-sm)}.dc\:rounded-b-lg{border-bottom-right-radius:var(--dc-radius-lg);border-bottom-left-radius:var(--dc-radius-lg)}.dc\:rounded-br-sm{border-bottom-right-radius:var(--dc-radius-sm)}.dc\:rounded-bl-sm{border-bottom-left-radius:var(--dc-radius-sm)}.dc\:border{border-style:var(--tw-border-style);border-width:1px}.dc\:border-2{border-style:var(--tw-border-style);border-width:2px}.dc\:border-x{border-inline-style:var(--tw-border-style);border-inline-width:1px}.dc\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.dc\:border-t-2{border-top-style:var(--tw-border-style);border-top-width:2px}.dc\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.dc\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.dc\:border-b-2{border-bottom-style:var(--tw-border-style);border-bottom-width:2px}.dc\:border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.dc\:border-l-4{border-left-style:var(--tw-border-style);border-left-width:4px}.dc\:border-dashed{--tw-border-style:dashed;border-style:dashed}.dc\:border-none{--tw-border-style:none;border-style:none}.dc\:border-solid{--tw-border-style:solid;border-style:solid}.dc\:border-current{border-color:currentColor}.dc\:bg-black\/50{background-color:var(--dc-color-black)}@supports (color:color-mix(in lab, red, red)){.dc\:bg-black\/50{background-color:color-mix(in oklab, var(--dc-color-black) 50%, transparent)}}.dc\:bg-transparent{background-color:#0000}.dc\:p-0\.5{padding:calc(var(--dc-spacing) * .5)}.dc\:p-1{padding:calc(var(--dc-spacing) * 1)}.dc\:p-1\.5{padding:calc(var(--dc-spacing) * 1.5)}.dc\:p-2{padding:calc(var(--dc-spacing) * 2)}.dc\:p-3{padding:calc(var(--dc-spacing) * 3)}.dc\:p-4{padding:calc(var(--dc-spacing) * 4)}.dc\:p-6{padding:calc(var(--dc-spacing) * 6)}.dc\:p-8{padding:calc(var(--dc-spacing) * 8)}.dc\:px-1{padding-inline:calc(var(--dc-spacing) * 1)}.dc\:px-1\.5{padding-inline:calc(var(--dc-spacing) * 1.5)}.dc\:px-2{padding-inline:calc(var(--dc-spacing) * 2)}.dc\:px-2\.5{padding-inline:calc(var(--dc-spacing) * 2.5)}.dc\:px-3{padding-inline:calc(var(--dc-spacing) * 3)}.dc\:px-4{padding-inline:calc(var(--dc-spacing) * 4)}.dc\:px-6{padding-inline:calc(var(--dc-spacing) * 6)}.dc\:py-0\.5{padding-block:calc(var(--dc-spacing) * .5)}.dc\:py-1{padding-block:calc(var(--dc-spacing) * 1)}.dc\:py-1\.5{padding-block:calc(var(--dc-spacing) * 1.5)}.dc\:py-2{padding-block:calc(var(--dc-spacing) * 2)}.dc\:py-2\.5{padding-block:calc(var(--dc-spacing) * 2.5)}.dc\:py-3{padding-block:calc(var(--dc-spacing) * 3)}.dc\:py-4{padding-block:calc(var(--dc-spacing) * 4)}.dc\:py-6{padding-block:calc(var(--dc-spacing) * 6)}.dc\:py-8{padding-block:calc(var(--dc-spacing) * 8)}.dc\:py-12{padding-block:calc(var(--dc-spacing) * 12)}.dc\:pt-1{padding-top:calc(var(--dc-spacing) * 1)}.dc\:pt-2{padding-top:calc(var(--dc-spacing) * 2)}.dc\:pt-3{padding-top:calc(var(--dc-spacing) * 3)}.dc\:pt-4{padding-top:calc(var(--dc-spacing) * 4)}.dc\:pt-6{padding-top:calc(var(--dc-spacing) * 6)}.dc\:pr-1{padding-right:calc(var(--dc-spacing) * 1)}.dc\:pr-2{padding-right:calc(var(--dc-spacing) * 2)}.dc\:pr-3{padding-right:calc(var(--dc-spacing) * 3)}.dc\:pb-1{padding-bottom:calc(var(--dc-spacing) * 1)}.dc\:pb-2{padding-bottom:calc(var(--dc-spacing) * 2)}.dc\:pb-3{padding-bottom:calc(var(--dc-spacing) * 3)}.dc\:pb-4{padding-bottom:calc(var(--dc-spacing) * 4)}.dc\:pb-24{padding-bottom:calc(var(--dc-spacing) * 24)}.dc\:pl-2{padding-left:calc(var(--dc-spacing) * 2)}.dc\:pl-3{padding-left:calc(var(--dc-spacing) * 3)}.dc\:pl-7{padding-left:calc(var(--dc-spacing) * 7)}.dc\:pl-8{padding-left:calc(var(--dc-spacing) * 8)}.dc\:text-center{text-align:center}.dc\:text-left{text-align:left}.dc\:text-right{text-align:right}.dc\:align-top{vertical-align:top}.dc\:font-mono{font-family:var(--dc-font-mono)}.dc\:text-2xl{font-size:var(--dc-text-2xl);line-height:var(--tw-leading,var(--dc-text-2xl--line-height))}.dc\:text-3xl{font-size:var(--dc-text-3xl);line-height:var(--tw-leading,var(--dc-text-3xl--line-height))}.dc\:text-4xl{font-size:var(--dc-text-4xl);line-height:var(--tw-leading,var(--dc-text-4xl--line-height))}.dc\:text-5xl{font-size:var(--dc-text-5xl);line-height:var(--tw-leading,var(--dc-text-5xl--line-height))}.dc\:text-base{font-size:var(--dc-text-base);line-height:var(--tw-leading,var(--dc-text-base--line-height))}.dc\:text-lg{font-size:var(--dc-text-lg);line-height:var(--tw-leading,var(--dc-text-lg--line-height))}.dc\:text-sm{font-size:var(--dc-text-sm);line-height:var(--tw-leading,var(--dc-text-sm--line-height))}.dc\:text-xl{font-size:var(--dc-text-xl);line-height:var(--tw-leading,var(--dc-text-xl--line-height))}.dc\:text-xs{font-size:var(--dc-text-xs);line-height:var(--tw-leading,var(--dc-text-xs--line-height))}.dc\:text-\[9px\]{font-size:9px}.dc\:text-\[10px\]{font-size:10px}.dc\:text-\[11px\]{font-size:11px}.dc\:leading-none{--tw-leading:1;line-height:1}.dc\:leading-relaxed{--tw-leading:var(--dc-leading-relaxed);line-height:var(--dc-leading-relaxed)}.dc\:leading-tight{--tw-leading:var(--dc-leading-tight);line-height:var(--dc-leading-tight)}.dc\:font-bold{--tw-font-weight:var(--dc-font-weight-bold);font-weight:var(--dc-font-weight-bold)}.dc\:font-medium{--tw-font-weight:var(--dc-font-weight-medium);font-weight:var(--dc-font-weight-medium)}.dc\:font-normal{--tw-font-weight:var(--dc-font-weight-normal);font-weight:var(--dc-font-weight-normal)}.dc\:font-semibold{--tw-font-weight:var(--dc-font-weight-semibold);font-weight:var(--dc-font-weight-semibold)}.dc\:tracking-normal{--tw-tracking:var(--dc-tracking-normal);letter-spacing:var(--dc-tracking-normal)}.dc\:tracking-wide{--tw-tracking:var(--dc-tracking-wide);letter-spacing:var(--dc-tracking-wide)}.dc\:tracking-wider{--tw-tracking:var(--dc-tracking-wider);letter-spacing:var(--dc-tracking-wider)}.dc\:break-words{overflow-wrap:break-word}.dc\:text-ellipsis{text-overflow:ellipsis}.dc\:whitespace-nowrap{white-space:nowrap}.dc\:whitespace-pre-wrap{white-space:pre-wrap}.dc\:text-white{color:var(--dc-color-white)}.dc\:capitalize{text-transform:capitalize}.dc\:normal-case{text-transform:none}.dc\:uppercase{text-transform:uppercase}.dc\:italic{font-style:italic}.dc\:tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,) var(--tw-slashed-zero,) var(--tw-numeric-figure,) var(--tw-numeric-spacing,) var(--tw-numeric-fraction,)}.dc\:underline{text-decoration-line:underline}.dc\:opacity-0{opacity:0}.dc\:opacity-25{opacity:.25}.dc\:opacity-30{opacity:.3}.dc\:opacity-40{opacity:.4}.dc\:opacity-50{opacity:.5}.dc\:opacity-60{opacity:.6}.dc\:opacity-70{opacity:.7}.dc\:opacity-75{opacity:.75}.dc\:opacity-80{opacity:.8}.dc\:opacity-90{opacity:.9}.dc\:opacity-100{opacity:1}.dc\:shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a), 0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:shadow-sm{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:shadow-xl{--tw-shadow:0 20px 25px -5px var(--tw-shadow-color,#0000001a), 0 8px 10px -6px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:shadow-xs{--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:ring-1{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:ring-2{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:ring-offset-1{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.dc\:drop-shadow-sm{--tw-drop-shadow-size:drop-shadow(0 1px 2px var(--tw-drop-shadow-color,#00000026));--tw-drop-shadow:drop-shadow(var(--dc-drop-shadow-sm));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.dc\:grayscale{--tw-grayscale:grayscale(100%);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.dc\:backdrop-blur-md{--tw-backdrop-blur:blur(var(--dc-blur-md));-webkit-backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,);backdrop-filter:var(--tw-backdrop-blur,) var(--tw-backdrop-brightness,) var(--tw-backdrop-contrast,) var(--tw-backdrop-grayscale,) var(--tw-backdrop-hue-rotate,) var(--tw-backdrop-invert,) var(--tw-backdrop-opacity,) var(--tw-backdrop-saturate,) var(--tw-backdrop-sepia,)}.dc\:transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--dc-default-transition-timing-function));transition-duration:var(--tw-duration,var(--dc-default-transition-duration))}.dc\:transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--dc-default-transition-timing-function));transition-duration:var(--tw-duration,var(--dc-default-transition-duration))}.dc\:transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--dc-default-transition-timing-function));transition-duration:var(--tw-duration,var(--dc-default-transition-duration))}.dc\:transition-transform{transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--dc-default-transition-timing-function));transition-duration:var(--tw-duration,var(--dc-default-transition-duration))}.dc\:duration-150{--tw-duration:.15s;transition-duration:.15s}.dc\:duration-200{--tw-duration:.2s;transition-duration:.2s}.dc\:duration-300{--tw-duration:.3s;transition-duration:.3s}.dc\:ease-in-out{--tw-ease:var(--dc-ease-in-out);transition-timing-function:var(--dc-ease-in-out)}.dc\:ease-out{--tw-ease:var(--dc-ease-out);transition-timing-function:var(--dc-ease-out)}.dc\:outline-none{--tw-outline-style:none;outline-style:none}.dc\:select-none{-webkit-user-select:none;user-select:none}.dc\:ring-inset{--tw-ring-inset:inset}@media (hover:hover){.dc\:group-hover\:opacity-100:is(:where(.dc\:group):hover *){opacity:1}}.dc\:first\:rounded-l-sm:first-child{border-top-left-radius:var(--dc-radius-sm);border-bottom-left-radius:var(--dc-radius-sm)}.dc\:last\:mb-0:last-child{margin-bottom:calc(var(--dc-spacing) * 0)}.dc\:last\:rounded-r-sm:last-child{border-top-right-radius:var(--dc-radius-sm);border-bottom-right-radius:var(--dc-radius-sm)}.dc\:last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}@media (hover:hover){.dc\:hover\:scale-110:hover{--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x) var(--tw-scale-y)}.dc\:hover\:underline:hover{text-decoration-line:underline}.dc\:hover\:opacity-60:hover{opacity:.6}.dc\:hover\:opacity-80:hover{opacity:.8}.dc\:hover\:opacity-90:hover{opacity:.9}.dc\:hover\:opacity-100:hover{opacity:1}.dc\:hover\:shadow-md:hover{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a), 0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}}.dc\:focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.dc\:focus\:ring-current:focus{--tw-ring-color:currentcolor}.dc\:focus\:ring-offset-1:focus{--tw-ring-offset-width:1px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.dc\:focus\:ring-offset-2:focus{--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.dc\:focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}.dc\:active\:cursor-grabbing:active{cursor:grabbing}.dc\:disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.dc\:disabled\:opacity-30:disabled{opacity:.3}.dc\:disabled\:opacity-40:disabled{opacity:.4}.dc\:disabled\:opacity-50:disabled{opacity:.5}@media (width>=40rem){.dc\:sm\:inline{display:inline}.dc\:sm\:w-32{width:calc(var(--dc-spacing) * 32)}.dc\:sm\:w-40{width:calc(var(--dc-spacing) * 40)}.dc\:sm\:flex-initial{flex:0 auto}.dc\:sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.dc\:sm\:flex-row{flex-direction:row}.dc\:sm\:items-center{align-items:center}.dc\:sm\:justify-start{justify-content:flex-start}.dc\:sm\:opacity-0{opacity:0}@media (hover:hover){.dc\:sm\:group-hover\:opacity-100:is(:where(.dc\:group):hover *){opacity:1}}}@media (width>=48rem){.dc\:md\:block{display:block}.dc\:md\:flex{display:flex}.dc\:md\:hidden{display:none}.dc\:md\:h-\[80vh\]{height:80vh}.dc\:md\:h-\[90vh\]{height:90vh}.dc\:md\:max-h-\[700px\]{max-height:700px}.dc\:md\:w-80{width:calc(var(--dc-spacing) * 80)}.dc\:md\:w-\[900px\]{width:900px}.dc\:md\:w-\[min\(90vw\,1400px\)\]{width:min(90vw,1400px)}.dc\:md\:max-w-\[900px\]{max-width:900px}.dc\:md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.dc\:md\:items-center{align-items:center}.dc\:md\:justify-center{justify-content:center}.dc\:md\:gap-3{gap:calc(var(--dc-spacing) * 3)}.dc\:md\:rounded-lg{border-radius:var(--dc-radius-lg)}.dc\:md\:px-4{padding-inline:calc(var(--dc-spacing) * 4)}.dc\:md\:px-6{padding-inline:calc(var(--dc-spacing) * 6)}.dc\:md\:py-3{padding-block:calc(var(--dc-spacing) * 3)}.dc\:md\:py-4{padding-block:calc(var(--dc-spacing) * 4)}.dc\:md\:pt-6{padding-top:calc(var(--dc-spacing) * 6)}.dc\:md\:pb-4{padding-bottom:calc(var(--dc-spacing) * 4)}}@media (width>=64rem){.dc\:lg\:col-span-2{grid-column:span 2/span 2}.dc\:lg\:flex{display:flex}.dc\:lg\:inline{display:inline}.dc\:lg\:h-\[var\(--dc-max-h\)\]{height:var(--dc-max-h)}.dc\:lg\:h-auto{height:auto}.dc\:lg\:h-full{height:100%}.dc\:lg\:max-h-\[var\(--dc-max-h\)\]{max-height:var(--dc-max-h)}.dc\:lg\:w-96{width:calc(var(--dc-spacing) * 96)}.dc\:lg\:flex-1{flex:1}.dc\:lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.dc\:lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.dc\:lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.dc\:lg\:flex-row{flex-direction:row}.dc\:lg\:overflow-hidden{overflow:hidden}.dc\:lg\:border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.dc\:lg\:border-b-0{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}.bg-dc-surface{background-color:var(--dc-surface)}.bg-dc-surface-secondary{background-color:var(--dc-surface-secondary)}.bg-dc-surface-tertiary{background-color:var(--dc-surface-tertiary)}.bg-dc-surface-hover{background-color:var(--dc-surface-hover)}.text-dc-text{color:var(--dc-text)}.text-dc-text-secondary{color:var(--dc-text-secondary)}.text-dc-text-muted{color:var(--dc-text-muted)}.text-dc-text-disabled{color:var(--dc-text-disabled)}.border-dc-border{border-color:var(--dc-border)}.border-dc-border-secondary{border-color:var(--dc-border-secondary)}.border-dc-border-hover{border-color:var(--dc-border-hover)}.bg-dc-primary{background-color:var(--dc-primary)}.bg-dc-primary-hover{background-color:var(--dc-primary-hover)}.text-dc-primary{color:var(--dc-primary)}.text-dc-primary-content{color:var(--dc-primary-content)}.border-dc-primary{border-color:var(--dc-primary)}.ring-dc-primary{--tw-ring-color:var(--dc-primary)}.bg-dc-success{background-color:var(--dc-success)}.bg-dc-success-bg{background-color:var(--dc-success-bg)}.text-dc-success{color:var(--dc-success)}.border-dc-success{border-color:var(--dc-success)}.border-dc-success-border{border-color:var(--dc-success-border)}.bg-dc-warning{background-color:var(--dc-warning)}.bg-dc-warning-bg{background-color:var(--dc-warning-bg)}.text-dc-warning{color:var(--dc-warning)}.border-dc-warning{border-color:var(--dc-warning)}.border-dc-warning-border{border-color:var(--dc-warning-border)}.bg-dc-error{background-color:var(--dc-error)}.bg-dc-error-bg{background-color:var(--dc-error-bg)}.text-dc-error{color:var(--dc-error)}.border-dc-error{border-color:var(--dc-error)}.border-dc-error-border{border-color:var(--dc-error-border)}.bg-dc-info{background-color:var(--dc-info)}.bg-dc-info-bg{background-color:var(--dc-info-bg)}.text-dc-info{color:var(--dc-info)}.border-dc-info{border-color:var(--dc-info)}.border-dc-info-border{border-color:var(--dc-info-border)}.bg-dc-danger{background-color:var(--dc-danger)}.bg-dc-danger-bg{background-color:var(--dc-danger-bg)}.bg-dc-danger-hover{background-color:var(--dc-danger-hover)}.text-dc-danger{color:var(--dc-danger)}.border-dc-danger{border-color:var(--dc-danger)}.bg-dc-accent{background-color:var(--dc-accent)}.bg-dc-accent-bg{background-color:var(--dc-accent-bg)}.bg-dc-accent-hover{background-color:var(--dc-accent-hover)}.text-dc-accent{color:var(--dc-accent)}.text-dc-accent-text{color:var(--dc-accent-text)}.border-dc-accent{border-color:var(--dc-accent)}.border-dc-accent-border{border-color:var(--dc-accent-border)}.ring-dc-accent{--tw-ring-color:var(--dc-accent)}.bg-dc-card-bg{background-color:var(--dc-card-bg)}.bg-dc-card-bg-hover{background-color:var(--dc-card-bg-hover)}.border-dc-card-border{border-color:var(--dc-card-border)}.border-dc-card-border-hover{border-color:var(--dc-card-border-hover)}.bg-dc-muted{background-color:var(--dc-muted)}.bg-dc-muted-bg{background-color:var(--dc-muted-bg)}.text-dc-muted{color:var(--dc-muted)}.border-dc-muted{border-color:var(--dc-muted)}.border-dc-muted-border{border-color:var(--dc-muted-border)}.bg-dc-dimension{background-color:var(--dc-dimension-bg)}.text-dc-dimension,.text-dc-dimension-text{color:var(--dc-dimension-text)}.border-dc-dimension{border-color:var(--dc-dimension-border)}.bg-dc-time-dimension{background-color:var(--dc-time-dimension-bg)}.text-dc-time-dimension,.text-dc-time-dimension-text{color:var(--dc-time-dimension-text)}.border-dc-time-dimension{border-color:var(--dc-time-dimension-border)}.bg-dc-measure{background-color:var(--dc-measure-bg)}.text-dc-measure,.text-dc-measure-text{color:var(--dc-measure-text)}.border-dc-measure{border-color:var(--dc-measure-border)}.bg-dc-filter{background-color:var(--dc-filter-bg)}.text-dc-filter,.text-dc-filter-text{color:var(--dc-filter-text)}.border-dc-filter{border-color:var(--dc-filter-border)}.hover\:bg-dc-surface-hover:hover{background-color:var(--dc-surface-hover)}.hover\:border-dc-border-hover:hover{border-color:var(--dc-border-hover)}.hover\:bg-dc-primary-hover:hover{background-color:var(--dc-primary-hover)}.hover\:bg-dc-danger-hover:hover{background-color:var(--dc-danger-hover)}.hover\:bg-dc-accent-hover:hover{background-color:var(--dc-accent-hover)}.hover\:border-dc-accent:hover{border-color:var(--dc-accent)}.hover\:bg-dc-card-bg-hover:hover{background-color:var(--dc-card-bg-hover)}.hover\:border-dc-card-border-hover:hover{border-color:var(--dc-card-border-hover)}.hover\:text-dc-primary:hover{color:var(--dc-primary)}.hover\:text-dc-accent:hover{color:var(--dc-accent)}.hover\:text-dc-danger:hover{color:var(--dc-danger)}.focus\:ring-dc-primary:focus{--tw-ring-color:var(--dc-primary)}.focus\:ring-dc-accent:focus{--tw-ring-color:var(--dc-accent)}.focus\:border-dc-primary:focus{border-color:var(--dc-primary)}.focus\:border-dc-accent:focus{border-color:var(--dc-accent)}.placeholder-dc-text-muted::placeholder{color:var(--dc-text-muted)}.placeholder-dc-text-disabled::placeholder{color:var(--dc-text-disabled)}}:root{--dc-surface:#fff;--dc-surface-secondary:#f9fafb;--dc-surface-tertiary:#f3f4f6;--dc-surface-hover:#f3f4f6;--dc-text:#111827;--dc-text-secondary:#374151;--dc-text-muted:#6b7280;--dc-text-disabled:#9ca3af;--dc-border:#e5e7eb;--dc-border-secondary:#d1d5db;--dc-border-hover:#d1d5db;--dc-primary:#3b82f6;--dc-primary-hover:#2563eb;--dc-primary-content:#fff;--dc-success:#10b981;--dc-success-bg:#d1fae5;--dc-success-border:#6ee7b7;--dc-warning:#f59e0b;--dc-warning-bg:#fef3c7;--dc-warning-border:#fcd34d;--dc-error:#ef4444;--dc-error-bg:#fee2e2;--dc-error-border:#fca5a5;--dc-info:#3b82f6;--dc-info-bg:#dbeafe;--dc-info-border:#93c5fd;--dc-danger:#dc2626;--dc-danger-hover:#b91c1c;--dc-danger-bg:#fee2e2;--dc-dimension-bg:#bbf7d0;--dc-dimension-text:#15803d;--dc-dimension-border:#86efac;--dc-time-dimension-bg:#bfdbfe;--dc-time-dimension-text:#1d4ed8;--dc-time-dimension-border:#60a5fa;--dc-measure-bg:#fde68a;--dc-measure-text:#b45309;--dc-measure-border:#fbbf24;--dc-filter-bg:#e9d5ff;--dc-filter-text:#7c3aed;--dc-filter-border:#c084fc;--dc-overlay:#000000bf;--dc-overlay-light:#00000080;--dc-shadow-sm:0 1px 2px 0 #0000000d;--dc-shadow:0 1px 3px 0 #0000001a, 0 1px 2px -1px #0000001a;--dc-shadow-md:0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;--dc-shadow-lg:0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;--dc-shadow-xl:0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;--dc-shadow-2xl:0 25px 50px -12px #00000040;--dc-card-bg:#fff;--dc-card-bg-hover:#f9fafb;--dc-card-border:#e5e7eb;--dc-card-border-hover:#d1d5db;--dc-accent:#3b82f6;--dc-accent-hover:#2563eb;--dc-accent-bg:#eff6ff;--dc-accent-border:#93c5fd;--dc-accent-text:#fff;--dc-muted:#6b7280;--dc-muted-bg:#f3f4f6;--dc-muted-border:#e5e7eb;--dc-ai-gradient-start:#faf5ff;--dc-ai-gradient-end:#eef2ff}[data-theme=dark],.dark,html.dark{--dc-surface:#1e293b;--dc-surface-secondary:#334155;--dc-surface-tertiary:#475569;--dc-surface-hover:#475569;--dc-text:#f1f5f9;--dc-text-secondary:#e2e8f0;--dc-text-muted:#cbd5e1;--dc-text-disabled:#94a3b8;--dc-border:#475569;--dc-border-secondary:#64748b;--dc-border-hover:#64748b;--dc-primary:#60a5fa;--dc-primary-hover:#3b82f6;--dc-primary-content:#0c4a6e;--dc-success:#34d399;--dc-success-bg:#064e3b;--dc-success-border:#059669;--dc-warning:#fbbf24;--dc-warning-bg:#78350f;--dc-warning-border:#d97706;--dc-error:#f87171;--dc-error-bg:#7f1d1d;--dc-error-border:#dc2626;--dc-info:#60a5fa;--dc-info-bg:#1e3a8a;--dc-info-border:#2563eb;--dc-danger:#ef4444;--dc-danger-hover:#dc2626;--dc-danger-bg:#7f1d1d;--dc-dimension-bg:#22c55e66;--dc-dimension-text:#4ade80;--dc-dimension-border:#22c55e;--dc-time-dimension-bg:#3b82f666;--dc-time-dimension-text:#60a5fa;--dc-time-dimension-border:#3b82f6;--dc-measure-bg:#f59e0b66;--dc-measure-text:#fbbf24;--dc-measure-border:#f59e0b;--dc-filter-bg:#8b5cf666;--dc-filter-text:#c084fc;--dc-filter-border:#a855f7;--dc-overlay:#000000d9;--dc-overlay-light:#0009;--dc-shadow-sm:0 1px 2px 0 #0000004d;--dc-shadow:0 1px 3px 0 #0006, 0 1px 2px -1px #0006;--dc-shadow-md:0 4px 6px -1px #0006, 0 2px 4px -2px #0006;--dc-shadow-lg:0 10px 15px -3px #0006, 0 4px 6px -4px #0006;--dc-shadow-xl:0 20px 25px -5px #0006, 0 8px 10px -6px #0006;--dc-shadow-2xl:0 25px 50px -12px #00000080;--dc-card-bg:#1e293b;--dc-card-bg-hover:#334155;--dc-card-border:#475569;--dc-card-border-hover:#64748b;--dc-accent:#60a5fa;--dc-accent-hover:#3b82f6;--dc-accent-bg:#1e3a8a;--dc-accent-border:#2563eb;--dc-accent-text:#fff;--dc-muted:#94a3b8;--dc-muted-bg:#334155;--dc-muted-border:#475569;--dc-ai-gradient-start:#8b5cf626;--dc-ai-gradient-end:#6366f126}[data-theme=neon],html.neon{--dc-surface:#0a0118;--dc-surface-secondary:#1a0f2e;--dc-surface-tertiary:#2a1f3e;--dc-surface-hover:#3a2f4e;--dc-text:#fff;--dc-text-secondary:#e0e0ff;--dc-text-muted:#b0b0d0;--dc-text-disabled:#808090;--dc-border:#f0f;--dc-border-secondary:#0ff;--dc-border-hover:#0f0;--dc-primary:#0ff;--dc-primary-hover:#0cc;--dc-primary-content:#000;--dc-success:#0f0;--dc-success-bg:#00ff0026;--dc-success-border:#0f0;--dc-warning:#ff0;--dc-warning-bg:#ffff0026;--dc-warning-border:#ff0;--dc-error:#f06;--dc-error-bg:#ff006626;--dc-error-border:#f06;--dc-info:#0ff;--dc-info-bg:#00ffff26;--dc-info-border:#0ff;--dc-danger:#ff1493;--dc-danger-hover:#cc1077;--dc-danger-bg:#ff149326;--dc-dimension-bg:#00ff0059;--dc-dimension-text:#0f0;--dc-dimension-border:#0f0;--dc-time-dimension-bg:#00ffff59;--dc-time-dimension-text:#0ff;--dc-time-dimension-border:#0ff;--dc-measure-bg:#ff00ff59;--dc-measure-text:#f0f;--dc-measure-border:#f0f;--dc-filter-bg:#a855f759;--dc-filter-text:#a855f7;--dc-filter-border:#a855f7;--dc-overlay:#0a0118f2;--dc-overlay-light:#0a0118bf;--dc-shadow-sm:0 0 4px #ff00ff4d;--dc-shadow:0 0 8px #f0f6, 0 0 12px #0ff3;--dc-shadow-md:0 0 12px #ff00ff80, 0 0 20px #00ffff4d;--dc-shadow-lg:0 0 20px #f0f9, 0 0 30px #0ff6;--dc-shadow-xl:0 0 30px #ff00ffb3, 0 0 50px #00ffff80;--dc-shadow-2xl:0 0 50px #f0fc, 0 0 80px #0ff9;--dc-card-bg:#1a0f2e;--dc-card-bg-hover:#2a1f3e;--dc-card-border:#f0f;--dc-card-border-hover:#0ff;--dc-accent:#0ff;--dc-accent-hover:#0cc;--dc-accent-bg:#00ffff26;--dc-accent-border:#0ff;--dc-accent-text:#0a0118;--dc-muted:#b0b0d0;--dc-muted-bg:#2a1f3e;--dc-muted-border:#f0f;--dc-ai-gradient-start:#00ffff1a;--dc-ai-gradient-end:#ff00ff1a}@keyframes dc-msg-in{0%{opacity:0}to{opacity:1}}@keyframes dc-icon-pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.6;transform:scale(1.2)}}@keyframes dc-strip-nudge{0%,to{width:48px}40%{width:72px}}.recharts-surface:focus,.recharts-wrapper:focus,.recharts-area:focus,.recharts-area-area:focus,.recharts-area-curve:focus,.recharts-line:focus,.recharts-line-curve:focus,.recharts-bar:focus,.recharts-pie:focus,.recharts-sector:focus,.recharts-layer:focus,.recharts-wrapper svg:focus,.recharts-wrapper g:focus,.recharts-wrapper path:focus,.recharts-wrapper rect:focus,.recharts-wrapper circle:focus{outline:none}.hljs{background-color:var(--dc-surface-secondary)!important;color:var(--dc-text)!important;padding:.5em!important}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-section,.hljs-link{color:var(--dc-primary)}.hljs-string,.hljs-attr{color:var(--dc-success)}.hljs-number{color:var(--dc-warning)}.hljs-comment,.hljs-quote{color:var(--dc-text-muted);font-style:italic}.hljs-title,.hljs-class .hljs-title,.hljs-function .hljs-title{color:var(--dc-accent)}.hljs-variable,.hljs-attribute,.hljs-property{color:var(--dc-text-secondary)}.hljs-built_in,.hljs-name{color:var(--dc-info)}.hljs-meta,.hljs-meta-keyword{color:var(--dc-muted)}.hljs-addition{color:var(--dc-success);background-color:var(--dc-success-bg)}.hljs-deletion{color:var(--dc-error);background-color:var(--dc-error-bg)}*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font-sans,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);background:var(--dc-surface,#fff);color:var(--dc-text,#1e293b);-webkit-font-smoothing:antialiased;line-height:1.5}#root{min-height:100vh;padding:12px}.dc-mcp-table{border-collapse:collapse;width:100%;font-size:13px}.dc-mcp-table th{text-align:left;border-bottom:2px solid var(--dc-border,#e2e8f0);color:var(--dc-text-secondary,#64748b);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;padding:6px 10px;font-size:11px;font-weight:600}.dc-mcp-table td{border-bottom:1px solid var(--dc-border,#e2e8f0);color:var(--dc-text,#1e293b);padding:5px 10px}.dc-mcp-table tr:last-child td{border-bottom:none}.dc-mcp-table tr:hover td{background:var(--dc-surface-secondary,#f8fafc)}.dc-mcp-table td.numeric{text-align:right;font-variant-numeric:tabular-nums}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-divide-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-backdrop-blur{syntax:"*";inherits:false}@property --tw-backdrop-brightness{syntax:"*";inherits:false}@property --tw-backdrop-contrast{syntax:"*";inherits:false}@property --tw-backdrop-grayscale{syntax:"*";inherits:false}@property --tw-backdrop-hue-rotate{syntax:"*";inherits:false}@property --tw-backdrop-invert{syntax:"*";inherits:false}@property --tw-backdrop-opacity{syntax:"*";inherits:false}@property --tw-backdrop-saturate{syntax:"*";inherits:false}@property --tw-backdrop-sepia{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
181
215
  /*$vite$:1*/</style>
182
216
  </head>
183
217
  <body>