From 162582a354dade82738f509354289d57bc2a1e66 Mon Sep 17 00:00:00 2001 From: TheDanniCraft Date: Mon, 7 Oct 2024 08:11:01 +0000 Subject: [PATCH] =?UTF-8?q?Deploy=20preview=20for=20PR=2031=20=F0=9F=9B=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pr-preview/pr-31/404.html | 4 +- .../static/chunks/23-442081fd6f84b2e7.js | 2 + .../static/chunks/23-992f069280adafe6.js | 2 - .../static/chunks/523-3384292735ce1859.js | 54 +------------------ .../chunks/framework-00a8ba1a63cfdc9e.js | 34 +----------- .../static/chunks/main-000b02a70d72ec7a.js | 1 - .../static/chunks/main-e4982b806e9bb6db.js | 1 + .../_buildManifest.js | 0 .../_ssgManifest.js | 0 pr-preview/pr-31/index.html | 4 +- pr-preview/pr-31/index.txt | 4 +- 11 files changed, 11 insertions(+), 95 deletions(-) create mode 100644 pr-preview/pr-31/_next/static/chunks/23-442081fd6f84b2e7.js delete mode 100644 pr-preview/pr-31/_next/static/chunks/23-992f069280adafe6.js delete mode 100644 pr-preview/pr-31/_next/static/chunks/main-000b02a70d72ec7a.js create mode 100644 pr-preview/pr-31/_next/static/chunks/main-e4982b806e9bb6db.js rename pr-preview/pr-31/_next/static/{QdB81z5D4t38jS0RRBsRQ => q-s_zUomBH_YlJaVfncQP}/_buildManifest.js (100%) rename pr-preview/pr-31/_next/static/{QdB81z5D4t38jS0RRBsRQ => q-s_zUomBH_YlJaVfncQP}/_ssgManifest.js (100%) diff --git a/pr-preview/pr-31/404.html b/pr-preview/pr-31/404.html index 53f78b4..48d088e 100644 --- a/pr-preview/pr-31/404.html +++ b/pr-preview/pr-31/404.html @@ -1,7 +1,7 @@ -404: This page could not be found.Wiresense404: This page could not be found.Wiresense

404

This page could not be found.

\ No newline at end of file +

404

This page could not be found.

\ No newline at end of file diff --git a/pr-preview/pr-31/_next/static/chunks/23-442081fd6f84b2e7.js b/pr-preview/pr-31/_next/static/chunks/23-442081fd6f84b2e7.js new file mode 100644 index 0000000..ade4f33 --- /dev/null +++ b/pr-preview/pr-31/_next/static/chunks/23-442081fd6f84b2e7.js @@ -0,0 +1,2 @@ +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[23],{29492:function(e,t){"use strict";function n(){return""}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDeploymentIdQueryOrEmptyString",{enumerable:!0,get:function(){return n}})},57108:function(){"trimStart"in String.prototype||(String.prototype.trimStart=String.prototype.trimLeft),"trimEnd"in String.prototype||(String.prototype.trimEnd=String.prototype.trimRight),"description"in Symbol.prototype||Object.defineProperty(Symbol.prototype,"description",{configurable:!0,get:function(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}}),Array.prototype.flat||(Array.prototype.flat=function(e,t){return t=this.concat.apply([],this),e>1&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(22707),o=n(18157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,"/frontend/pr-preview/pr-31"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75684:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.12",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(95751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10353:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return x}});let u=n(99920),l=n(41452),a=n(57437);n(57108);let i=u._(n(34040)),c=l._(n(2265)),s=n(6671),f=n(36590),d=u._(n(16124)),p=n(74590),h=n(42128),y=n(21427);n(63243);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(65820),(0,n(75684).appBootstrap)(()=>{let{hydrate:e}=n(10353);n(95751),n(39275),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(29492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467),a=n(51507),i=n(53174),c=n(68056),s=n(42114),f=n(76130),d=n(50322),p=n(74092),h=n(4897),y=n(41012),_=n(36585),v=n(30315),b=n(91108),g=n(77325),m=n(97599),R=n(49404),P=n(8e4),j="undefined"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,urlParts:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,urlParts:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,U,k]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{U({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[U]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return U({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[U]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{U({...e,type:a.ACTION_SERVER_ACTION})})},[U]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{let n;if(!(0,p.isBot)(window.navigator.userAgent)){try{n=new URL((0,h.addBasePath)(e),window.location.href)}catch(t){throw Error("Cannot prefetch '"+e+"' because it cannot be converted to a URL.")}M(n)||(0,u.startTransition)(()=>{var e;U({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})}},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{U({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[U,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[U]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{U({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[U]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:k}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(55592),o=n(44936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(57437),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(99920),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(42128),i=n(44936),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(52496),o=n(67909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=n(99920),o=n(41452),u=n(57437),l=o._(n(2265)),a=r._(n(54887)),i=n(44467),c=n(41283),s=n(91108),f=n(76130),d=n(16237),p=n(86180),h=n(36585),y=n(16585),_=n(44640),v=n(81784),b=n(35914),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0),(0,l.use)(s.unresolvedThenable)}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b}=e,g=(0,l.useContext)(i.LayoutRouterContext);if(!g)throw Error("invariant expected layout router to be mounted");let{childNodes:m,tree:R,url:S,loading:E}=g,w=m.get(t);w||(w=new Map,m.set(t,w));let T=R[1][t][0],M=(0,_.getSegmentValue)(T),x=[T];return(0,u.jsx)(u.Fragment,{children:x.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!E,loading:null==E?void 0:E[0],loadingStyles:null==E?void 0:E[1],loadingScripts:null==E?void 0:E[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:S,tree:R,childNodes:w,segmentPath:n,cacheKey:g,isActive:M===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(24286),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(44467),u=n(68056),l=n(44640),a=n(8e4),i=n(52152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(24804);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(67909),o=n(52496);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(52496);n(72301);let i=n(44467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(93449),o=n(57614);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(67909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84785:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67909:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(58512),l=n(99440),a=n(84785),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(70038);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(13821),o=n(41133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(8e4),o=n(16237),u=n(74922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(82269),o=n(8e4),u=n(16237),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53174:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(53174),o=n(13821),u=n(96626),l=n(86004),a=n(51507),i=n(74922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,urlParts:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=f.join("/"),v=!p,b={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:v?new Map:d,lazyDataResolved:!1,loading:s[3]},g=p?(0,r.createHrefFromUrl)(p):_;(0,i.addRefreshMarkerToActiveParallelSegments)(c,g);let m=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(b,void 0,c,s,h);let R={buildId:n,tree:c,cache:b,prefetchCache:m,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:g,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(""+p.pathname+p.search,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:R.tree,prefetchCache:R.prefetchCache,nextUrl:R.nextUrl})}return R}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(8e4);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(77325),o=n(95751),u=n(74590),l=n(51507),a=n(54736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(74213),o=n(13821),u=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(81784),o=n(51507);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(96626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(51294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(8e4),o=n(16237),u=n(81784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(53174),o=n(41283),u=n(51507),l=n(59218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,O);if(document.getElementById("__next-page-redirect"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u,g=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59218:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(77325),o=n(43858),u=n(86004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(41283),o=n(53174),u=n(69684),l=n(10139),a=n(51294),i=n(36416),c=n(13821),s=n(95751),f=n(40774),d=n(35914),p=n(74922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b,canonicalUrl:h.canonicalUrl||e.canonicalUrl}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(53174),o=n(96626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(93060),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(74590),o=n(77325),u=n(4897),l=n(53174),a=n(51294),i=n(69684),c=n(10139),s=n(36416),f=n(13821),d=n(95751),p=n(35914),h=n(40774),y=n(74922),{createFromFetch:_,encodeReply:v}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);if(o.inFlightServerAction=null,g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}for(let n of b){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v,canonicalUrl:o.canonicalUrl||e.canonicalUrl}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,_=s}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(53174),o=n(69684),u=n(10139),l=n(51294),a=n(39607),i=n(36416),c=n(95751),s=n(40774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(39607),o=n(41283),u=n(8e4);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n,canonicalUrl:s}=e,[,f,d,p]=n,h=[];if(d&&d!==s&&"refresh"===p&&!i.has(d)){i.add(d);let e=(0,o.fetchServerResponse)(new URL(d,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});h.push(e)}for(let e in f){let n=a({state:t,updatedTree:f[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c,canonicalUrl:s});h.push(n)}await Promise.all(h)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51507:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(51507),o=n(51294),u=n(98289),l=n(6131),a=n(75239),i=n(59218),c=n(51129),s=n(64549),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(16237);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(44936),o=n(62441),u=n(67991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(77685);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(41452)._(n(2265)),o=n(51507),u=n(21427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(55121);function o(e){return(0,r.pathHasPrefix)(e,"/frontend/pr-preview/pr-31")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18157:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(67741),o=n(31465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(55592);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return o}}),n(49404);let r="/frontend/pr-preview/pr-31";function o(e){return 0===r.length||(e=e.slice(r.length)).startsWith("/")||(e="/"+e),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99176:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if("function"==typeof m)l=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},85689:function(e,t,n){"use strict";e.exports=n(99176)},11358:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return r},isFullStringUrl:function(){return o},parseUrl:function(){return u}});let n="http://n";function r(e){return new URL(e,n).pathname}function o(e){return/https?:\/\//.test(e)}function u(e){let t;try{t=new URL(e,n)}catch{}return t}},62441:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(57910),l=n(85108),a=n(11358),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: +${t}`))}function v(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},24286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(82269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},63243:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},82269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},67991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},44467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(99920)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},54736:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},36590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext({})},68056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},55592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},78558:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},21427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(41452),o=n(51507),u=n(80643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},22707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},3330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(78558),o=n(8e4);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},86180:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},74092:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},31465:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},55121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},67741:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},8e4:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},8005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(41452)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},72301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},8293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34040:function(e,t,n){"use strict";var r=n(54887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54887:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(84417)},97950:function(e,t,n){"use strict";var r=n(54887),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":E(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var O=d.byteOffset+p;if(-11&&t.some(Array.isArray)?t.flat(e-1):t},Array.prototype.flatMap=function(e,t){return this.map(e,t).flat()}),Promise.prototype.finally||(Promise.prototype.finally=function(e){if("function"!=typeof e)return this.then(e,e);var t=this.constructor||Promise;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})}),Object.fromEntries||(Object.fromEntries=function(e){return Array.from(e).reduce(function(e,t){return e[t[0]]=t[1],e},{})}),Array.prototype.at||(Array.prototype.at=function(e){var t=Math.trunc(e)||0;if(t<0&&(t+=this.length),!(t<0||t>=this.length))return this[t]}),Object.hasOwn||(Object.hasOwn=function(e,t){if(null==e)throw TypeError("Cannot convert undefined or null to object");return Object.prototype.hasOwnProperty.call(Object(e),t)})},4897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addBasePath",{enumerable:!0,get:function(){return u}});let r=n(22707),o=n(18157);function u(e,t){return(0,o.normalizePathTrailingSlash)((0,r.addPathPrefix)(e,"/frontend/pr-preview/pr-31"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75684:function(e,t){"use strict";function n(e){var t,n;t=self.__next_s,n=()=>{e()},t&&t.length?t.reduce((e,t)=>{let[n,r]=t;return e.then(()=>new Promise((e,t)=>{let o=document.createElement("script");if(r)for(let e in r)"children"!==e&&o.setAttribute(e,r[e]);n?(o.src=n,o.onload=()=>e(),o.onerror=t):r&&(o.innerHTML=r.children,setTimeout(e)),document.head.appendChild(o)}))},Promise.resolve()).catch(e=>{console.error(e)}).then(()=>{n()}):n()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"appBootstrap",{enumerable:!0,get:function(){return n}}),window.next={version:"14.2.3",appDir:!0},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"callServer",{enumerable:!0,get:function(){return o}});let r=n(95751);async function o(e,t){let n=(0,r.getServerActionDispatcher)();if(!n)throw Error("Invariant: missing action dispatcher.");return new Promise((r,o)=>{n({actionId:e,actionArgs:t,resolve:r,reject:o})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10353:function(e,t,n){"use strict";let r,o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hydrate",{enumerable:!0,get:function(){return x}});let u=n(99920),l=n(41452),a=n(57437);n(57108);let i=u._(n(34040)),c=l._(n(2265)),s=n(6671),f=n(36590),d=u._(n(16124)),p=n(74590),h=n(42128),y=n(21427);n(63243);let _=window.console.error;window.console.error=function(){for(var e=arguments.length,t=Array(e),n=0;n{if((0,h.isNextRouterError)(e.error)){e.preventDefault();return}});let v=document,b=new TextEncoder,g=!1,m=!1,R=null;function P(e){if(0===e[0])r=[];else if(1===e[0]){if(!r)throw Error("Unexpected server data: missing bootstrap script.");o?o.enqueue(b.encode(e[1])):r.push(e[1])}else 2===e[0]&&(R=e[1])}let j=function(){o&&!m&&(o.close(),m=!0,r=void 0),g=!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",j,!1):j();let O=self.__next_f=self.__next_f||[];O.forEach(P),O.push=P;let S=new ReadableStream({start(e){r&&(r.forEach(t=>{e.enqueue(b.encode(t))}),g&&!m&&(e.close(),m=!0,r=void 0)),o=e}}),E=(0,s.createFromReadableStream)(S,{callServer:p.callServer});function w(){return(0,c.use)(E)}let T=c.default.StrictMode;function M(e){let{children:t}=e;return t}function x(){let e=(0,y.createMutableActionQueue)(),t=(0,a.jsx)(T,{children:(0,a.jsx)(f.HeadManagerContext.Provider,{value:{appDir:!0},children:(0,a.jsx)(y.ActionQueueContext.Provider,{value:e,children:(0,a.jsx)(M,{children:(0,a.jsx)(w,{})})})})}),n=window.__next_root_layout_missing_tags,r=!!(null==n?void 0:n.length),o={onRecoverableError:d.default};"__next_error__"===document.documentElement.id||r?i.default.createRoot(v,o).render(t):c.default.startTransition(()=>i.default.hydrateRoot(v,t,{...o,formState:R}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},11028:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(65820),(0,n(75684).appBootstrap)(()=>{let{hydrate:e}=n(10353);n(95751),n(39275),e()}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},65820:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(29492);{let e=n.u;n.u=function(){for(var t=arguments.length,n=Array(t),r=0;r(l(function(){var e;let t=document.getElementsByName(u)[0];if(null==t?void 0:null==(e=t.shadowRoot)?void 0:e.childNodes[0])return t.shadowRoot.childNodes[0];{let e=document.createElement(u);e.style.cssText="position:absolute";let t=document.createElement("div");return t.ariaLive="assertive",t.id="__next-route-announcer__",t.role="alert",t.style.cssText="position:absolute;border:0;height:1px;margin:-1px;padding:0;width:1px;clip:rect(0 0 0 0);overflow:hidden;white-space:nowrap;word-wrap:normal",e.attachShadow({mode:"open"}).appendChild(t),document.body.appendChild(e),t}}()),()=>{let e=document.getElementsByTagName(u)[0];(null==e?void 0:e.isConnected)&&document.body.removeChild(e)}),[]);let[a,i]=(0,r.useState)(""),c=(0,r.useRef)();return(0,r.useEffect)(()=>{let e="";if(document.title)e=document.title;else{let t=document.querySelector("h1");t&&(e=t.innerText||t.textContent||"")}void 0!==c.current&&c.current!==e&&i(e),c.current=e},[t]),n?(0,o.createPortal)(a,n):null}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION:function(){return r},FLIGHT_PARAMETERS:function(){return i},NEXT_DID_POSTPONE_HEADER:function(){return s},NEXT_ROUTER_PREFETCH_HEADER:function(){return u},NEXT_ROUTER_STATE_TREE:function(){return o},NEXT_RSC_UNION_QUERY:function(){return c},NEXT_URL:function(){return l},RSC_CONTENT_TYPE_HEADER:function(){return a},RSC_HEADER:function(){return n}});let n="RSC",r="Next-Action",o="Next-Router-State-Tree",u="Next-Router-Prefetch",l="Next-Url",a="text/x-component",i=[[n],[o],[u]],c="_rsc",s="x-nextjs-postponed";("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},95751:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createEmptyCacheNode:function(){return C},default:function(){return I},getServerActionDispatcher:function(){return E},urlToUrlWithoutFlightMarker:function(){return T}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467),a=n(51507),i=n(53174),c=n(68056),s=n(42114),f=n(76130),d=n(50322),p=n(74092),h=n(4897),y=n(41012),_=n(36585),v=n(30315),b=n(91108),g=n(77325),m=n(97599),R=n(49404),P=n(8e4),j="undefined"==typeof window,O=j?null:new Map,S=null;function E(){return S}let w={};function T(e){let t=new URL(e,location.origin);if(t.searchParams.delete(g.NEXT_RSC_UNION_QUERY),t.pathname.endsWith(".txt")){let{pathname:e}=t,n=e.endsWith("/index.txt")?10:4;t.pathname=e.slice(0,-n)}return t}function M(e){return e.origin!==window.location.origin}function x(e){let{appRouterState:t,sync:n}=e;return(0,u.useInsertionEffect)(()=>{let{tree:e,pushRef:r,canonicalUrl:o}=t,u={...r.preserveCustomHistoryState?window.history.state:{},__NA:!0,__PRIVATE_NEXTJS_INTERNALS_TREE:e};r.pendingPush&&(0,i.createHrefFromUrl)(new URL(window.location.href))!==o?(r.pendingPush=!1,window.history.pushState(u,"",o)):window.history.replaceState(u,"",o),n(t)},[t,n]),null}function C(){return{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null}}function A(e){null==e&&(e={});let t=window.history.state,n=null==t?void 0:t.__NA;n&&(e.__NA=n);let r=null==t?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;return r&&(e.__PRIVATE_NEXTJS_INTERNALS_TREE=r),e}function N(e){let{headCacheNode:t}=e,n=null!==t?t.head:null,r=null!==t?t.prefetchHead:null,o=null!==r?r:n;return(0,u.useDeferredValue)(n,o)}function D(e){let t,{buildId:n,initialHead:r,initialTree:i,initialCanonicalUrl:f,initialSeedData:g,couldBeIntercepted:E,assetPrefix:T,missingSlots:C}=e,D=(0,u.useMemo)(()=>(0,d.createInitialRouterState)({buildId:n,initialSeedData:g,initialCanonicalUrl:f,initialTree:i,initialParallelRoutes:O,location:j?null:window.location,initialHead:r,couldBeIntercepted:E}),[n,g,f,i,r,E]),[I,k,U]=(0,s.useReducerWithReduxDevtools)(D);(0,u.useEffect)(()=>{O=null},[]);let{canonicalUrl:F}=(0,s.useUnwrapState)(I),{searchParams:L,pathname:H}=(0,u.useMemo)(()=>{let e=new URL(F,"undefined"==typeof window?"http://n":window.location.href);return{searchParams:e.searchParams,pathname:(0,R.hasBasePath)(e.pathname)?(0,m.removeBasePath)(e.pathname):e.pathname}},[F]),$=(0,u.useCallback)(e=>{let{previousTree:t,serverResponse:n}=e;(0,u.startTransition)(()=>{k({type:a.ACTION_SERVER_PATCH,previousTree:t,serverResponse:n})})},[k]),G=(0,u.useCallback)((e,t,n)=>{let r=new URL((0,h.addBasePath)(e),location.href);return k({type:a.ACTION_NAVIGATE,url:r,isExternalUrl:M(r),locationSearch:location.search,shouldScroll:null==n||n,navigateType:t})},[k]);S=(0,u.useCallback)(e=>{(0,u.startTransition)(()=>{k({...e,type:a.ACTION_SERVER_ACTION})})},[k]);let z=(0,u.useMemo)(()=>({back:()=>window.history.back(),forward:()=>window.history.forward(),prefetch:(e,t)=>{if((0,p.isBot)(window.navigator.userAgent))return;let n=new URL((0,h.addBasePath)(e),window.location.href);M(n)||(0,u.startTransition)(()=>{var e;k({type:a.ACTION_PREFETCH,url:n,kind:null!=(e=null==t?void 0:t.kind)?e:a.PrefetchKind.FULL})})},replace:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"replace",null==(n=t.scroll)||n)})},push:(e,t)=>{void 0===t&&(t={}),(0,u.startTransition)(()=>{var n;G(e,"push",null==(n=t.scroll)||n)})},refresh:()=>{(0,u.startTransition)(()=>{k({type:a.ACTION_REFRESH,origin:window.location.origin})})},fastRefresh:()=>{throw Error("fastRefresh can only be used in development mode. Please use refresh instead.")}}),[k,G]);(0,u.useEffect)(()=>{window.next&&(window.next.router=z)},[z]),(0,u.useEffect)(()=>{function e(e){var t;e.persisted&&(null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE)&&(w.pendingMpaPath=void 0,k({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:window.history.state.__PRIVATE_NEXTJS_INTERNALS_TREE}))}return window.addEventListener("pageshow",e),()=>{window.removeEventListener("pageshow",e)}},[k]);let{pushRef:B}=(0,s.useUnwrapState)(I);if(B.mpaNavigation){if(w.pendingMpaPath!==F){let e=window.location;B.pendingPush?e.assign(F):e.replace(F),w.pendingMpaPath=F}(0,u.use)(b.unresolvedThenable)}(0,u.useEffect)(()=>{let e=window.history.pushState.bind(window.history),t=window.history.replaceState.bind(window.history),n=e=>{var t;let n=window.location.href,r=null==(t=window.history.state)?void 0:t.__PRIVATE_NEXTJS_INTERNALS_TREE;(0,u.startTransition)(()=>{k({type:a.ACTION_RESTORE,url:new URL(null!=e?e:n,n),tree:r})})};window.history.pushState=function(t,r,o){return(null==t?void 0:t.__NA)||(null==t?void 0:t._N)||(t=A(t),o&&n(o)),e(t,r,o)},window.history.replaceState=function(e,r,o){return(null==e?void 0:e.__NA)||(null==e?void 0:e._N)||(e=A(e),o&&n(o)),t(e,r,o)};let r=e=>{let{state:t}=e;if(t){if(!t.__NA){window.location.reload();return}(0,u.startTransition)(()=>{k({type:a.ACTION_RESTORE,url:new URL(window.location.href),tree:t.__PRIVATE_NEXTJS_INTERNALS_TREE})})}};return window.addEventListener("popstate",r),()=>{window.history.pushState=e,window.history.replaceState=t,window.removeEventListener("popstate",r)}},[k]);let{cache:W,tree:K,nextUrl:V,focusAndScrollRef:Y}=(0,s.useUnwrapState)(I),X=(0,u.useMemo)(()=>(0,v.findHeadInCache)(W,K[1]),[W,K]),q=(0,u.useMemo)(()=>(function e(t,n){for(let r of(void 0===n&&(n={}),Object.values(t[1]))){let t=r[0],o=Array.isArray(t),u=o?t[1]:t;!u||u.startsWith(P.PAGE_SEGMENT_KEY)||(o&&("c"===t[2]||"oc"===t[2])?n[t[0]]=t[1].split("/"):o&&(n[t[0]]=t[1]),n=e(r,n))}return n})(K),[K]);if(null!==X){let[e,n]=X;t=(0,o.jsx)(N,{headCacheNode:e},n)}else t=null;let J=(0,o.jsxs)(_.RedirectBoundary,{children:[t,W.rsc,(0,o.jsx)(y.AppRouterAnnouncer,{tree:K})]});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(x,{appRouterState:(0,s.useUnwrapState)(I),sync:U}),(0,o.jsx)(c.PathParamsContext.Provider,{value:q,children:(0,o.jsx)(c.PathnameContext.Provider,{value:H,children:(0,o.jsx)(c.SearchParamsContext.Provider,{value:L,children:(0,o.jsx)(l.GlobalLayoutRouterContext.Provider,{value:{buildId:n,changeByServerResponse:$,tree:K,focusAndScrollRef:Y,nextUrl:V},children:(0,o.jsx)(l.AppRouterContext.Provider,{value:z,children:(0,o.jsx)(l.LayoutRouterContext.Provider,{value:{childNodes:W.parallelRoutes,tree:K,url:F,loading:W.loading},children:J})})})})})})]})}function I(e){let{globalErrorComponent:t,...n}=e;return(0,o.jsx)(f.ErrorBoundary,{errorComponent:t,children:(0,o.jsx)(D,{...n})})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},24804:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"bailoutToClientRendering",{enumerable:!0,get:function(){return u}});let r=n(55592),o=n(44936);function u(e){let t=o.staticGenerationAsyncStorage.getStore();if((null==t||!t.forceStatic)&&(null==t?void 0:t.isStaticGeneration))throw new r.BailoutToCSRError(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66513:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ClientPageRoot",{enumerable:!0,get:function(){return u}});let r=n(57437),o=n(8897);function u(e){let{Component:t,props:n}=e;return n.searchParams=(0,o.createDynamicallyTrackedSearchParams)(n.searchParams||{}),(0,r.jsx)(t,{...n})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},76130:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ErrorBoundary:function(){return h},ErrorBoundaryHandler:function(){return f},GlobalError:function(){return d},default:function(){return p}});let r=n(99920),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(42128),i=n(44936),c={error:{fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},text:{fontSize:"14px",fontWeight:400,lineHeight:"28px",margin:"0 8px"}};function s(e){let{error:t}=e,n=i.staticGenerationAsyncStorage.getStore();if((null==n?void 0:n.isRevalidate)||(null==n?void 0:n.isStaticGeneration))throw console.error(t),t;return null}class f extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isNextRouterError)(e))throw e;return{error:e}}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.error?{error:null,previousPathname:e.pathname}:{error:t.error,previousPathname:e.pathname}}render(){return this.state.error?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(s,{error:this.state.error}),this.props.errorStyles,this.props.errorScripts,(0,o.jsx)(this.props.errorComponent,{error:this.state.error,reset:this.reset})]}):this.props.children}constructor(e){super(e),this.reset=()=>{this.setState({error:null})},this.state={error:null,previousPathname:this.props.pathname}}}function d(e){let{error:t}=e,n=null==t?void 0:t.digest;return(0,o.jsxs)("html",{id:"__next_error__",children:[(0,o.jsx)("head",{}),(0,o.jsxs)("body",{children:[(0,o.jsx)(s,{error:t}),(0,o.jsx)("div",{style:c.error,children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{style:c.text,children:"Application error: a "+(n?"server":"client")+"-side exception has occurred (see the "+(n?"server logs":"browser console")+" for more information)."}),n?(0,o.jsx)("p",{style:c.text,children:"Digest: "+n}):null]})})]})]})}let p=d;function h(e){let{errorComponent:t,errorStyles:n,errorScripts:r,children:u}=e,a=(0,l.usePathname)();return t?(0,o.jsx)(f,{pathname:a,errorComponent:t,errorStyles:n,errorScripts:r,children:u}):(0,o.jsx)(o.Fragment,{children:u})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},57910:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DynamicServerError:function(){return r},isDynamicServerError:function(){return o}});let n="DYNAMIC_SERVER_USAGE";class r extends Error{constructor(e){super("Dynamic server usage: "+e),this.description=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&"string"==typeof e.digest&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42128:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNextRouterError",{enumerable:!0,get:function(){return u}});let r=n(52496),o=n(67909);function u(e){return e&&e.digest&&((0,o.isRedirectError)(e)||(0,r.isNotFoundError)(e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39275:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return S}});let r=n(99920),o=n(41452),u=n(57437),l=o._(n(2265)),a=r._(n(54887)),i=n(44467),c=n(41283),s=n(91108),f=n(76130),d=n(16237),p=n(86180),h=n(36585),y=n(16585),_=n(44640),v=n(81784),b=n(35914),g=["bottom","height","left","right","top","width","x","y"];function m(e,t){let n=e.getBoundingClientRect();return n.top>=0&&n.top<=t}class R extends l.default.Component{componentDidMount(){this.handlePotentialScroll()}componentDidUpdate(){this.props.focusAndScrollRef.apply&&this.handlePotentialScroll()}render(){return this.props.children}constructor(...e){super(...e),this.handlePotentialScroll=()=>{let{focusAndScrollRef:e,segmentPath:t}=this.props;if(e.apply){var n;if(0!==e.segmentPaths.length&&!e.segmentPaths.some(e=>t.every((t,n)=>(0,d.matchSegment)(t,e[n]))))return;let r=null,o=e.hashFragment;if(o&&(r="top"===o?document.body:null!=(n=document.getElementById(o))?n:document.getElementsByName(o)[0]),r||(r="undefined"==typeof window?null:a.default.findDOMNode(this)),!(r instanceof Element))return;for(;!(r instanceof HTMLElement)||function(e){if(["sticky","fixed"].includes(getComputedStyle(e).position))return!0;let t=e.getBoundingClientRect();return g.every(e=>0===t[e])}(r);){if(null===r.nextElementSibling)return;r=r.nextElementSibling}e.apply=!1,e.hashFragment=null,e.segmentPaths=[],(0,p.handleSmoothScroll)(()=>{if(o){r.scrollIntoView();return}let e=document.documentElement,t=e.clientHeight;!m(r,t)&&(e.scrollTop=0,m(r,t)||r.scrollIntoView())},{dontForceLayout:!0,onlyHashChange:e.onlyHashChange}),e.onlyHashChange=!1,r.focus()}}}}function P(e){let{segmentPath:t,children:n}=e,r=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!r)throw Error("invariant global layout router not mounted");return(0,u.jsx)(R,{segmentPath:t,focusAndScrollRef:r.focusAndScrollRef,children:n})}function j(e){let{parallelRouterKey:t,url:n,childNodes:r,segmentPath:o,tree:a,cacheKey:f}=e,p=(0,l.useContext)(i.GlobalLayoutRouterContext);if(!p)throw Error("invariant global layout router not mounted");let{buildId:h,changeByServerResponse:y,tree:_}=p,v=r.get(f);if(void 0===v){let e={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};v=e,r.set(f,e)}let g=null!==v.prefetchRsc?v.prefetchRsc:v.rsc,m=(0,l.useDeferredValue)(v.rsc,g),R="object"==typeof m&&null!==m&&"function"==typeof m.then?(0,l.use)(m):m;if(!R){let e=v.lazyData;if(null===e){let t=function e(t,n){if(t){let[r,o]=t,u=2===t.length;if((0,d.matchSegment)(n[0],r)&&n[1].hasOwnProperty(o)){if(u){let t=e(void 0,n[1][o]);return[n[0],{...n[1],[o]:[t[0],t[1],t[2],"refetch"]}]}return[n[0],{...n[1],[o]:e(t.slice(2),n[1][o])}]}}return n}(["",...o],_),r=(0,b.hasInterceptionRouteInCurrentTree)(_);v.lazyData=e=(0,c.fetchServerResponse)(new URL(n,location.origin),t,r?p.nextUrl:null,h),v.lazyDataResolved=!1}let t=(0,l.use)(e);v.lazyDataResolved||(setTimeout(()=>{(0,l.startTransition)(()=>{y({previousTree:_,serverResponse:t})})}),v.lazyDataResolved=!0,(0,l.use)(s.unresolvedThenable))}return(0,u.jsx)(i.LayoutRouterContext.Provider,{value:{tree:a[1][t],childNodes:v.parallelRoutes,url:n,loading:v.loading},children:R})}function O(e){let{children:t,hasLoading:n,loading:r,loadingStyles:o,loadingScripts:a}=e;return n?(0,u.jsx)(l.Suspense,{fallback:(0,u.jsxs)(u.Fragment,{children:[o,a,r]}),children:t}):(0,u.jsx)(u.Fragment,{children:t})}function S(e){let{parallelRouterKey:t,segmentPath:n,error:r,errorStyles:o,errorScripts:a,templateStyles:c,templateScripts:s,template:d,notFound:p,notFoundStyles:b,styles:g}=e,m=(0,l.useContext)(i.LayoutRouterContext);if(!m)throw Error("invariant expected layout router to be mounted");let{childNodes:R,tree:S,url:E,loading:w}=m,T=R.get(t);T||(T=new Map,R.set(t,T));let M=S[1][t][0],x=(0,_.getSegmentValue)(M),C=[M];return(0,u.jsxs)(u.Fragment,{children:[g,C.map(e=>{let l=(0,_.getSegmentValue)(e),g=(0,v.createRouterCacheKey)(e);return(0,u.jsxs)(i.TemplateContext.Provider,{value:(0,u.jsx)(P,{segmentPath:n,children:(0,u.jsx)(f.ErrorBoundary,{errorComponent:r,errorStyles:o,errorScripts:a,children:(0,u.jsx)(O,{hasLoading:!!w,loading:null==w?void 0:w[0],loadingStyles:null==w?void 0:w[1],loadingScripts:null==w?void 0:w[2],children:(0,u.jsx)(y.NotFoundBoundary,{notFound:p,notFoundStyles:b,children:(0,u.jsx)(h.RedirectBoundary,{children:(0,u.jsx)(j,{parallelRouterKey:t,url:E,tree:S,childNodes:T,segmentPath:n,cacheKey:g,isActive:x===l})})})})})}),children:[c,s,d]},(0,v.createRouterCacheKey)(e,!0))})]})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16237:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{canSegmentBeOverridden:function(){return u},matchSegment:function(){return o}});let r=n(24286),o=(e,t)=>"string"==typeof e?"string"==typeof t&&e===t:"string"!=typeof t&&e[0]===t[0]&&e[1]===t[1],u=(e,t)=>{var n;return!Array.isArray(e)&&!!Array.isArray(t)&&(null==(n=(0,r.getSegmentParam)(e))?void 0:n.param)===t[0]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},71169:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return i.ReadonlyURLSearchParams},RedirectType:function(){return i.RedirectType},ServerInsertedHTMLContext:function(){return c.ServerInsertedHTMLContext},notFound:function(){return i.notFound},permanentRedirect:function(){return i.permanentRedirect},redirect:function(){return i.redirect},useParams:function(){return p},usePathname:function(){return f},useRouter:function(){return d},useSearchParams:function(){return s},useSelectedLayoutSegment:function(){return y},useSelectedLayoutSegments:function(){return h},useServerInsertedHTML:function(){return c.useServerInsertedHTML}});let r=n(2265),o=n(44467),u=n(68056),l=n(44640),a=n(8e4),i=n(52152),c=n(8005);function s(){let e=(0,r.useContext)(u.SearchParamsContext),t=(0,r.useMemo)(()=>e?new i.ReadonlyURLSearchParams(e):null,[e]);if("undefined"==typeof window){let{bailoutToClientRendering:e}=n(24804);e("useSearchParams()")}return t}function f(){return(0,r.useContext)(u.PathnameContext)}function d(){let e=(0,r.useContext)(o.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function p(){return(0,r.useContext)(u.PathParamsContext)}function h(e){void 0===e&&(e="children");let t=(0,r.useContext)(o.LayoutRouterContext);return t?function e(t,n,r,o){let u;if(void 0===r&&(r=!0),void 0===o&&(o=[]),r)u=t[1][n];else{var i;let e=t[1];u=null!=(i=e.children)?i:Object.values(e)[0]}if(!u)return o;let c=u[0],s=(0,l.getSegmentValue)(c);return!s||s.startsWith(a.PAGE_SEGMENT_KEY)?o:(o.push(s),e(u,n,!1,o))}(t.tree,e):null}function y(e){void 0===e&&(e="children");let t=h(e);if(!t||0===t.length)return null;let n="children"===e?t[0]:t[t.length-1];return n===a.DEFAULT_SEGMENT_KEY?null:n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52152:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return l},RedirectType:function(){return r.RedirectType},notFound:function(){return o.notFound},permanentRedirect:function(){return r.permanentRedirect},redirect:function(){return r.redirect}});let r=n(67909),o=n(52496);class u extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}}class l extends URLSearchParams{append(){throw new u}delete(){throw new u}set(){throw new u}sort(){throw new u}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NotFoundBoundary",{enumerable:!0,get:function(){return s}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(52496);n(72301);let i=n(44467);class c extends u.default.Component{componentDidCatch(){}static getDerivedStateFromError(e){if((0,a.isNotFoundError)(e))return{notFoundTriggered:!0};throw e}static getDerivedStateFromProps(e,t){return e.pathname!==t.previousPathname&&t.notFoundTriggered?{notFoundTriggered:!1,previousPathname:e.pathname}:{notFoundTriggered:t.notFoundTriggered,previousPathname:e.pathname}}render(){return this.state.notFoundTriggered?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("meta",{name:"robots",content:"noindex"}),!1,this.props.notFoundStyles,this.props.notFound]}):this.props.children}constructor(e){super(e),this.state={notFoundTriggered:!!e.asNotFound,previousPathname:e.pathname}}}function s(e){let{notFound:t,notFoundStyles:n,asNotFound:r,children:a}=e,s=(0,l.usePathname)(),f=(0,u.useContext)(i.MissingSlotContext);return t?(0,o.jsx)(c,{pathname:s,notFound:t,notFoundStyles:n,asNotFound:r,missingSlots:f,children:a}):(0,o.jsx)(o.Fragment,{children:a})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},52496:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{isNotFoundError:function(){return o},notFound:function(){return r}});let n="NEXT_NOT_FOUND";function r(){let e=Error(n);throw e.digest=n,e}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},43858:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PromiseQueue",{enumerable:!0,get:function(){return c}});let r=n(93449),o=n(57614);var u=o._("_maxConcurrency"),l=o._("_runningCount"),a=o._("_queue"),i=o._("_processNext");class c{enqueue(e){let t,n;let o=new Promise((e,r)=>{t=e,n=r}),u=async()=>{try{r._(this,l)[l]++;let n=await e();t(n)}catch(e){n(e)}finally{r._(this,l)[l]--,r._(this,i)[i]()}};return r._(this,a)[a].push({promiseFn:o,task:u}),r._(this,i)[i](),o}bump(e){let t=r._(this,a)[a].findIndex(t=>t.promiseFn===e);if(t>-1){let e=r._(this,a)[a].splice(t,1)[0];r._(this,a)[a].unshift(e),r._(this,i)[i](!0)}}constructor(e=5){Object.defineProperty(this,i,{value:s}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,a,{writable:!0,value:void 0}),r._(this,u)[u]=e,r._(this,l)[l]=0,r._(this,a)[a]=[]}}function s(e){if(void 0===e&&(e=!1),(r._(this,l)[l]0){var t;null==(t=r._(this,a)[a].shift())||t.task()}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectBoundary:function(){return s},RedirectErrorBoundary:function(){return c}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(71169),a=n(67909);function i(e){let{redirect:t,reset:n,redirectType:r}=e,o=(0,l.useRouter)();return(0,u.useEffect)(()=>{u.default.startTransition(()=>{r===a.RedirectType.push?o.push(t,{}):o.replace(t,{}),n()})},[t,r,n,o]),null}class c extends u.default.Component{static getDerivedStateFromError(e){if((0,a.isRedirectError)(e))return{redirect:(0,a.getURLFromRedirectError)(e),redirectType:(0,a.getRedirectTypeFromError)(e)};throw e}render(){let{redirect:e,redirectType:t}=this.state;return null!==e&&null!==t?(0,o.jsx)(i,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null})}):this.props.children}constructor(e){super(e),this.state={redirect:null,redirectType:null}}}function s(e){let{children:t}=e,n=(0,l.useRouter)();return(0,o.jsx)(c,{router:n,children:t})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84785:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RedirectStatusCode",{enumerable:!0,get:function(){return n}}),(r=n||(n={}))[r.SeeOther=303]="SeeOther",r[r.TemporaryRedirect=307]="TemporaryRedirect",r[r.PermanentRedirect=308]="PermanentRedirect",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},67909:function(e,t,n){"use strict";var r,o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return r},getRedirectError:function(){return c},getRedirectStatusCodeFromError:function(){return y},getRedirectTypeFromError:function(){return h},getURLFromRedirectError:function(){return p},isRedirectError:function(){return d},permanentRedirect:function(){return f},redirect:function(){return s}});let u=n(58512),l=n(99440),a=n(84785),i="NEXT_REDIRECT";function c(e,t,n){void 0===n&&(n=a.RedirectStatusCode.TemporaryRedirect);let r=Error(i);r.digest=i+";"+t+";"+e+";"+n+";";let o=u.requestAsyncStorage.getStore();return o&&(r.mutableCookies=o.mutableCookies),r}function s(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.TemporaryRedirect)}function f(e,t){void 0===t&&(t="replace");let n=l.actionAsyncStorage.getStore();throw c(e,t,(null==n?void 0:n.isAction)?a.RedirectStatusCode.SeeOther:a.RedirectStatusCode.PermanentRedirect)}function d(e){if("object"!=typeof e||null===e||!("digest"in e)||"string"!=typeof e.digest)return!1;let[t,n,r,o]=e.digest.split(";",4),u=Number(o);return t===i&&("replace"===n||"push"===n)&&"string"==typeof r&&!isNaN(u)&&u in a.RedirectStatusCode}function p(e){return d(e)?e.digest.split(";",3)[2]:null}function h(e){if(!d(e))throw Error("Not a redirect error");return e.digest.split(";",2)[1]}function y(e){if(!d(e))throw Error("Not a redirect error");return Number(e.digest.split(";",4)[3])}(o=r||(r={})).push="push",o.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},61343:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(41452),o=n(57437),u=r._(n(2265)),l=n(44467);function a(){let e=(0,u.useContext)(l.TemplateContext);return(0,o.jsx)(o.Fragment,{children:e})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},58512:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getExpectedRequestStore:function(){return o},requestAsyncStorage:function(){return r.requestAsyncStorage}});let r=n(70038);function o(e){let t=r.requestAsyncStorage.getStore();if(t)return t;throw Error("`"+e+"` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},39607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyFlightData",{enumerable:!0,get:function(){return u}});let r=n(13821),o=n(41133);function u(e,t,n,u){let[l,a,i]=n.slice(-3);if(null===a)return!1;if(3===n.length){let n=a[2],o=a[3];t.loading=o,t.rsc=n,t.prefetchRsc=null,(0,r.fillLazyItemsTillLeafWithHead)(t,e,l,a,i,u)}else t.rsc=e.rsc,t.prefetchRsc=e.prefetchRsc,t.parallelRoutes=new Map(e.parallelRoutes),t.loading=e.loading,(0,o.fillCacheWithNewSubTreeData)(t,e,n,u);return!0}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},69684:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"applyRouterStatePatchToTree",{enumerable:!0,get:function(){return function e(t,n,r,a){let i;let[c,s,f,d,p]=n;if(1===t.length){let e=l(n,r,t);return(0,u.addRefreshMarkerToActiveParallelSegments)(e,a),e}let[h,y]=t;if(!(0,o.matchSegment)(h,c))return null;if(2===t.length)i=l(s[y],r,t);else if(null===(i=e(t.slice(2),s[y],r,a)))return null;let _=[t[0],{...s,[y]:i},f,d];return p&&(_[4]=!0),(0,u.addRefreshMarkerToActiveParallelSegments)(_,a),_}}});let r=n(8e4),o=n(16237),u=n(74922);function l(e,t,n){let[u,a]=e,[i,c]=t;if(i===r.DEFAULT_SEGMENT_KEY&&u!==r.DEFAULT_SEGMENT_KEY)return e;if((0,o.matchSegment)(u,i)){let t={};for(let e in a)void 0!==c[e]?t[e]=l(a[e],c[e],n):t[e]=a[e];for(let e in c)t[e]||(t[e]=c[e]);let r=[u,t];return e[2]&&(r[2]=e[2]),e[3]&&(r[3]=e[3]),e[4]&&(r[4]=e[4]),r}return t}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99559:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clearCacheNodeDataForSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l),s=t.parallelRoutes.get(l);s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s));let f=null==c?void 0:c.get(i),d=s.get(i);if(u){d&&d.lazyData&&d!==f||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}if(!d||!f){d||s.set(i,{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null});return}return d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved,loading:d.loading},s.set(i,d)),e(d,f,o.slice(2))}}});let r=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96626:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{computeChangedPath:function(){return s},extractPathFromFlightRouterState:function(){return c}});let r=n(82269),o=n(8e4),u=n(16237),l=e=>"/"===e[0]?e.slice(1):e,a=e=>"string"==typeof e?"children"===e?"":e:e[1];function i(e){return e.reduce((e,t)=>""===(t=l(t))||(0,o.isGroupSegment)(t)?e:e+"/"+t,"")||"/"}function c(e){var t;let n=Array.isArray(e[0])?e[0][1]:e[0];if(n===o.DEFAULT_SEGMENT_KEY||r.INTERCEPTION_ROUTE_MARKERS.some(e=>n.startsWith(e)))return;if(n.startsWith(o.PAGE_SEGMENT_KEY))return"";let u=[a(n)],l=null!=(t=e[1])?t:{},s=l.children?c(l.children):void 0;if(void 0!==s)u.push(s);else for(let[e,t]of Object.entries(l)){if("children"===e)continue;let n=c(t);void 0!==n&&u.push(n)}return i(u)}function s(e,t){let n=function e(t,n){let[o,l]=t,[i,s]=n,f=a(o),d=a(i);if(r.INTERCEPTION_ROUTE_MARKERS.some(e=>f.startsWith(e)||d.startsWith(e)))return"";if(!(0,u.matchSegment)(o,i)){var p;return null!=(p=c(n))?p:""}for(let t in l)if(s[t]){let n=e(l[t],s[t]);if(null!==n)return a(i)+"/"+n}return null}(e,t);return null==n||"/"===n?n:i(n.split("/"))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},53174:function(e,t){"use strict";function n(e,t){return void 0===t&&(t=!0),e.pathname+e.search+(t?e.hash:"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createHrefFromUrl",{enumerable:!0,get:function(){return n}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},50322:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createInitialRouterState",{enumerable:!0,get:function(){return c}});let r=n(53174),o=n(13821),u=n(96626),l=n(86004),a=n(51507),i=n(74922);function c(e){var t;let{buildId:n,initialTree:c,initialSeedData:s,initialCanonicalUrl:f,initialParallelRoutes:d,location:p,initialHead:h,couldBeIntercepted:y}=e,_=!p,v={lazyData:null,rsc:s[2],prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:_?new Map:d,lazyDataResolved:!1,loading:s[3]},b=p?(0,r.createHrefFromUrl)(p):f;(0,i.addRefreshMarkerToActiveParallelSegments)(c,b);let g=new Map;(null===d||0===d.size)&&(0,o.fillLazyItemsTillLeafWithHead)(v,void 0,c,s,h);let m={buildId:n,tree:c,cache:v,prefetchCache:g,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:{apply:!1,onlyHashChange:!1,hashFragment:null,segmentPaths:[]},canonicalUrl:b,nextUrl:null!=(t=(0,u.extractPathFromFlightRouterState)(c)||(null==p?void 0:p.pathname))?t:null};if(p){let e=new URL(p.pathname,p.origin),t=[["",c,null,null]];(0,l.createPrefetchCacheEntryForInitialLoad)({url:e,kind:a.PrefetchKind.AUTO,data:[t,void 0,!1,y],tree:m.tree,prefetchCache:m.prefetchCache,nextUrl:m.nextUrl})}return m}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},81784:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createRouterCacheKey",{enumerable:!0,get:function(){return o}});let r=n(8e4);function o(e,t){return(void 0===t&&(t=!1),Array.isArray(e))?e[0]+"|"+e[1]+"|"+e[2]:t&&e.startsWith(r.PAGE_SEGMENT_KEY)?r.PAGE_SEGMENT_KEY:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41283:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fetchServerResponse",{enumerable:!0,get:function(){return s}});let r=n(77325),o=n(95751),u=n(74590),l=n(51507),a=n(54736),{createFromFetch:i}=n(6671);function c(e){return[(0,o.urlToUrlWithoutFlightMarker)(e).toString(),void 0,!1,!1]}async function s(e,t,n,s,f){let d={[r.RSC_HEADER]:"1",[r.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(t))};f===l.PrefetchKind.AUTO&&(d[r.NEXT_ROUTER_PREFETCH_HEADER]="1"),n&&(d[r.NEXT_URL]=n);let p=(0,a.hexHash)([d[r.NEXT_ROUTER_PREFETCH_HEADER]||"0",d[r.NEXT_ROUTER_STATE_TREE],d[r.NEXT_URL]].join(","));try{var h;let t=new URL(e);t.pathname.endsWith("/")?t.pathname+="index.txt":t.pathname+=".txt",t.searchParams.set(r.NEXT_RSC_UNION_QUERY,p);let n=await fetch(t,{credentials:"same-origin",headers:d}),l=(0,o.urlToUrlWithoutFlightMarker)(n.url),a=n.redirected?l:void 0,f=n.headers.get("content-type")||"",y=!!n.headers.get(r.NEXT_DID_POSTPONE_HEADER),_=!!(null==(h=n.headers.get("vary"))?void 0:h.includes(r.NEXT_URL)),v=f===r.RSC_CONTENT_TYPE_HEADER;if(v||(v=f.startsWith("text/plain")),!v||!n.ok)return e.hash&&(l.hash=e.hash),c(l.toString());let[b,g]=await i(Promise.resolve(n),{callServer:u.callServer});if(s!==b)return c(n.url);return[g,a,y,_]}catch(t){return console.error("Failed to fetch RSC payload for "+e+". Falling back to browser navigation.",t),[e.toString(),void 0,!1,!1]}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},41133:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillCacheWithNewSubTreeData",{enumerable:!0,get:function(){return function e(t,n,l,a){let i=l.length<=5,[c,s]=l,f=(0,u.createRouterCacheKey)(s),d=n.parallelRoutes.get(c);if(!d)return;let p=t.parallelRoutes.get(c);p&&p!==d||(p=new Map(d),t.parallelRoutes.set(c,p));let h=d.get(f),y=p.get(f);if(i){if(!y||!y.lazyData||y===h){let e=l[3];y={lazyData:null,rsc:e[2],prefetchRsc:null,head:null,prefetchHead:null,loading:e[3],parallelRoutes:h?new Map(h.parallelRoutes):new Map,lazyDataResolved:!1},h&&(0,r.invalidateCacheByRouterState)(y,h,l[2]),(0,o.fillLazyItemsTillLeafWithHead)(y,h,l[2],e,l[4],a),p.set(f,y)}return}y&&h&&(y===h&&(y={lazyData:y.lazyData,rsc:y.rsc,prefetchRsc:y.prefetchRsc,head:y.head,prefetchHead:y.prefetchHead,parallelRoutes:new Map(y.parallelRoutes),lazyDataResolved:!1,loading:y.loading},p.set(f,y)),e(y,h,l.slice(2),a))}}});let r=n(74213),o=n(13821),u=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},13821:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"fillLazyItemsTillLeafWithHead",{enumerable:!0,get:function(){return function e(t,n,u,l,a,i){if(0===Object.keys(u[1]).length){t.head=a;return}for(let c in u[1]){let s;let f=u[1][c],d=f[0],p=(0,r.createRouterCacheKey)(d),h=null!==l&&void 0!==l[1][c]?l[1][c]:null;if(n){let r=n.parallelRoutes.get(c);if(r){let n;let u=(null==i?void 0:i.kind)==="auto"&&i.status===o.PrefetchCacheEntryStatus.reusable,l=new Map(r),s=l.get(p);n=null!==h?{lazyData:null,rsc:h[2],prefetchRsc:null,head:null,prefetchHead:null,loading:h[3],parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1}:u&&s?{lazyData:s.lazyData,rsc:s.rsc,prefetchRsc:s.prefetchRsc,head:s.head,prefetchHead:s.prefetchHead,parallelRoutes:new Map(s.parallelRoutes),lazyDataResolved:s.lazyDataResolved,loading:s.loading}:{lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map(null==s?void 0:s.parallelRoutes),lazyDataResolved:!1,loading:null},l.set(p,n),e(n,s,f,h||null,a,i),t.parallelRoutes.set(c,l);continue}}if(null!==h){let e=h[2],t=h[3];s={lazyData:null,rsc:e,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:t}}else s={lazyData:null,rsc:null,prefetchRsc:null,head:null,prefetchHead:null,parallelRoutes:new Map,lazyDataResolved:!1,loading:null};let y=t.parallelRoutes.get(c);y?y.set(p,s):t.parallelRoutes.set(c,new Map([[p,s]])),e(s,void 0,f,h,a,i)}}}});let r=n(81784),o=n(51507);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},36416:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleMutable",{enumerable:!0,get:function(){return u}});let r=n(96626);function o(e){return void 0!==e}function u(e,t){var n,u,l;let a=null==(u=t.shouldScroll)||u,i=e.nextUrl;if(o(t.patchedTree)){let n=(0,r.computeChangedPath)(e.tree,t.patchedTree);n?i=n:i||(i=e.canonicalUrl)}return{buildId:e.buildId,canonicalUrl:o(t.canonicalUrl)?t.canonicalUrl===e.canonicalUrl?e.canonicalUrl:t.canonicalUrl:e.canonicalUrl,pushRef:{pendingPush:o(t.pendingPush)?t.pendingPush:e.pushRef.pendingPush,mpaNavigation:o(t.mpaNavigation)?t.mpaNavigation:e.pushRef.mpaNavigation,preserveCustomHistoryState:o(t.preserveCustomHistoryState)?t.preserveCustomHistoryState:e.pushRef.preserveCustomHistoryState},focusAndScrollRef:{apply:!!a&&(!!o(null==t?void 0:t.scrollableSegments)||e.focusAndScrollRef.apply),onlyHashChange:!!t.hashFragment&&e.canonicalUrl.split("#",1)[0]===(null==(n=t.canonicalUrl)?void 0:n.split("#",1)[0]),hashFragment:a?t.hashFragment&&""!==t.hashFragment?decodeURIComponent(t.hashFragment.slice(1)):e.focusAndScrollRef.hashFragment:null,segmentPaths:a?null!=(l=null==t?void 0:t.scrollableSegments)?l:e.focusAndScrollRef.segmentPaths:[]},cache:t.cache?t.cache:e.cache,prefetchCache:t.prefetchCache?t.prefetchCache:e.prefetchCache,tree:o(t.patchedTree)?t.patchedTree:e.tree,nextUrl:i}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},40774:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSegmentMismatch",{enumerable:!0,get:function(){return o}});let r=n(51294);function o(e,t,n){return(0,r.handleExternalUrl)(e,{},e.canonicalUrl,!0)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9863:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheBelowFlightSegmentPath",{enumerable:!0,get:function(){return function e(t,n,o){let u=o.length<=2,[l,a]=o,i=(0,r.createRouterCacheKey)(a),c=n.parallelRoutes.get(l);if(!c)return;let s=t.parallelRoutes.get(l);if(s&&s!==c||(s=new Map(c),t.parallelRoutes.set(l,s)),u){s.delete(i);return}let f=c.get(i),d=s.get(i);d&&f&&(d===f&&(d={lazyData:d.lazyData,rsc:d.rsc,prefetchRsc:d.prefetchRsc,head:d.head,prefetchHead:d.prefetchHead,parallelRoutes:new Map(d.parallelRoutes),lazyDataResolved:d.lazyDataResolved},s.set(i,d)),e(d,f,o.slice(2)))}}});let r=n(81784);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74213:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"invalidateCacheByRouterState",{enumerable:!0,get:function(){return o}});let r=n(81784);function o(e,t,n){for(let o in n[1]){let u=n[1][o][0],l=(0,r.createRouterCacheKey)(u),a=t.parallelRoutes.get(o);if(a){let t=new Map(a);t.delete(l),e.parallelRoutes.set(o,t)}}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},10139:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isNavigatingToNewRootLayout",{enumerable:!0,get:function(){return function e(t,n){let r=t[0],o=n[0];if(Array.isArray(r)&&Array.isArray(o)){if(r[0]!==o[0]||r[2]!==o[2])return!0}else if(r!==o)return!0;if(t[4])return!n[4];if(n[4])return!0;let u=Object.values(t[1])[0],l=Object.values(n[1])[0];return!u||!l||e(u,l)}}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},93060:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{abortTask:function(){return c},listenForDynamicRequest:function(){return a},updateCacheNodeOnNavigation:function(){return function e(t,n,a,c,s){let f=n[1],d=a[1],p=c[1],h=t.parallelRoutes,y=new Map(h),_={},v=null;for(let t in d){let n;let a=d[t],c=f[t],b=h.get(t),g=p[t],m=a[0],R=(0,u.createRouterCacheKey)(m),P=void 0!==c?c[0]:void 0,j=void 0!==b?b.get(R):void 0;if(null!==(n=m===r.PAGE_SEGMENT_KEY?l(a,void 0!==g?g:null,s):m===r.DEFAULT_SEGMENT_KEY?void 0!==c?{route:c,node:null,children:null}:l(a,void 0!==g?g:null,s):void 0!==P&&(0,o.matchSegment)(m,P)&&void 0!==j&&void 0!==c?null!=g?e(j,c,a,g,s):function(e){let t=i(e,null,null);return{route:e,node:t,children:null}}(a):l(a,void 0!==g?g:null,s))){null===v&&(v=new Map),v.set(t,n);let e=n.node;if(null!==e){let n=new Map(b);n.set(R,e),y.set(t,n)}_[t]=n.route}else _[t]=a}if(null===v)return null;let b={lazyData:null,rsc:t.rsc,prefetchRsc:t.prefetchRsc,head:t.head,prefetchHead:t.prefetchHead,loading:t.loading,parallelRoutes:y,lazyDataResolved:!1};return{route:function(e,t){let n=[e[0],t];return 2 in e&&(n[2]=e[2]),3 in e&&(n[3]=e[3]),4 in e&&(n[4]=e[4]),n}(a,_),node:b,children:v}}},updateCacheNodeOnPopstateRestoration:function(){return function e(t,n){let r=n[1],o=t.parallelRoutes,l=new Map(o);for(let t in r){let n=r[t],a=n[0],i=(0,u.createRouterCacheKey)(a),c=o.get(t);if(void 0!==c){let r=c.get(i);if(void 0!==r){let o=e(r,n),u=new Map(c);u.set(i,o),l.set(t,u)}}}let a=t.rsc,i=d(a)&&"pending"===a.status;return{lazyData:null,rsc:a,head:t.head,prefetchHead:i?t.prefetchHead:null,prefetchRsc:i?t.prefetchRsc:null,loading:i?t.loading:null,parallelRoutes:l,lazyDataResolved:!1}}}});let r=n(8e4),o=n(16237),u=n(81784);function l(e,t,n){let r=i(e,t,n);return{route:e,node:r,children:null}}function a(e,t){t.then(t=>{for(let n of t[0]){let t=n.slice(0,-3),r=n[n.length-3],l=n[n.length-2],a=n[n.length-1];"string"!=typeof t&&function(e,t,n,r,l){let a=e;for(let e=0;e{c(e,t)})}function i(e,t,n){let r=e[1],o=null!==t?t[1]:null,l=new Map;for(let e in r){let t=r[e],a=null!==o?o[e]:null,c=t[0],s=(0,u.createRouterCacheKey)(c),f=i(t,void 0===a?null:a,n),d=new Map;d.set(s,f),l.set(e,d)}let a=0===l.size,c=null!==t?t[2]:null,s=null!==t?t[3]:null;return{lazyData:null,parallelRoutes:l,prefetchRsc:void 0!==c?c:null,prefetchHead:a?n:null,loading:void 0!==s?s:null,rsc:p(),head:a?p():null,lazyDataResolved:!1}}function c(e,t){let n=e.node;if(null===n)return;let r=e.children;if(null===r)s(e.route,n,t);else for(let e of r.values())c(e,t);e.node=null}function s(e,t,n){let r=e[1],o=t.parallelRoutes;for(let e in r){let t=r[e],l=o.get(e);if(void 0===l)continue;let a=t[0],i=(0,u.createRouterCacheKey)(a),c=l.get(i);void 0!==c&&s(t,c,n)}let l=t.rsc;d(l)&&(null===n?l.resolve(null):l.reject(n));let a=t.head;d(a)&&a.resolve(null)}let f=Symbol();function d(e){return e&&e.tag===f}function p(){let e,t;let n=new Promise((n,r)=>{e=n,t=r});return n.status="pending",n.resolve=t=>{"pending"===n.status&&(n.status="fulfilled",n.value=t,e(t))},n.reject=e=>{"pending"===n.status&&(n.status="rejected",n.reason=e,t(e))},n.tag=f,n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},86004:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createPrefetchCacheEntryForInitialLoad:function(){return c},getOrCreatePrefetchCacheEntry:function(){return i},prunePrefetchCache:function(){return f}});let r=n(53174),o=n(41283),u=n(51507),l=n(59218);function a(e,t){let n=(0,r.createHrefFromUrl)(e,!1);return t?t+"%"+n:n}function i(e){let t,{url:n,nextUrl:r,tree:o,buildId:l,prefetchCache:i,kind:c}=e,f=a(n,r),d=i.get(f);if(d)t=d;else{let e=a(n),r=i.get(e);r&&(t=r)}return t?(t.status=h(t),t.kind!==u.PrefetchKind.FULL&&c===u.PrefetchKind.FULL)?s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:null!=c?c:u.PrefetchKind.TEMPORARY}):(c&&t.kind===u.PrefetchKind.TEMPORARY&&(t.kind=c),t):s({tree:o,url:n,buildId:l,nextUrl:r,prefetchCache:i,kind:c||u.PrefetchKind.TEMPORARY})}function c(e){let{nextUrl:t,tree:n,prefetchCache:r,url:o,kind:l,data:i}=e,[,,,c]=i,s=c?a(o,t):a(o),f={treeAtTimeOfPrefetch:n,data:Promise.resolve(i),kind:l,prefetchTime:Date.now(),lastUsedTime:Date.now(),key:s,status:u.PrefetchCacheEntryStatus.fresh};return r.set(s,f),f}function s(e){let{url:t,kind:n,tree:r,nextUrl:i,buildId:c,prefetchCache:s}=e,f=a(t),d=l.prefetchQueue.enqueue(()=>(0,o.fetchServerResponse)(t,r,i,c,n).then(e=>{let[,,,n]=e;return n&&function(e){let{url:t,nextUrl:n,prefetchCache:r}=e,o=a(t),u=r.get(o);if(!u)return;let l=a(t,n);r.set(l,u),r.delete(o)}({url:t,nextUrl:i,prefetchCache:s}),e})),p={treeAtTimeOfPrefetch:r,data:d,kind:n,prefetchTime:Date.now(),lastUsedTime:null,key:f,status:u.PrefetchCacheEntryStatus.fresh};return s.set(f,p),p}function f(e){for(let[t,n]of e)h(n)===u.PrefetchCacheEntryStatus.expired&&e.delete(t)}let d=1e3*Number("30"),p=1e3*Number("300");function h(e){let{kind:t,prefetchTime:n,lastUsedTime:r}=e;return Date.now()<(null!=r?r:n)+d?r?u.PrefetchCacheEntryStatus.reusable:u.PrefetchCacheEntryStatus.fresh:"auto"===t&&Date.now(){let[n,f]=t,h=!1;if(S.lastUsedTime||(S.lastUsedTime=Date.now(),h=!0),"string"==typeof n)return _(e,R,n,O);if(document.getElementById("__next-page-redirect"))return _(e,R,j,O);let b=e.tree,g=e.cache,w=[];for(let t of n){let n=t.slice(0,-4),r=t.slice(-3)[0],c=["",...n],f=(0,u.applyRouterStatePatchToTree)(c,b,r,j);if(null===f&&(f=(0,u.applyRouterStatePatchToTree)(c,E,r,j)),null!==f){if((0,a.isNavigatingToNewRootLayout)(b,f))return _(e,R,j,O);let u=(0,d.createEmptyCacheNode)(),m=!1;for(let e of(S.status!==i.PrefetchCacheEntryStatus.stale||h?m=(0,s.applyFlightData)(g,u,t,S):(m=function(e,t,n,r){let o=!1;for(let u of(e.rsc=t.rsc,e.prefetchRsc=t.prefetchRsc,e.loading=t.loading,e.parallelRoutes=new Map(t.parallelRoutes),v(r).map(e=>[...n,...e])))(0,y.clearCacheNodeDataForSegmentPath)(e,t,u),o=!0;return o}(u,g,n,r),S.lastUsedTime=Date.now()),(0,l.shouldHardNavigate)(c,b)?(u.rsc=g.rsc,u.prefetchRsc=g.prefetchRsc,(0,o.invalidateCacheBelowFlightSegmentPath)(u,g,n),R.cache=u):m&&(R.cache=u),b=f,v(r))){let t=[...n,...e];t[t.length-1]!==p.DEFAULT_SEGMENT_KEY&&w.push(t)}}}return R.patchedTree=b,R.canonicalUrl=f?(0,r.createHrefFromUrl)(f):j,R.pendingPush=O,R.scrollableSegments=w,R.hashFragment=P,R.shouldScroll=m,(0,c.handleMutable)(e,R)},()=>e)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},59218:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{prefetchQueue:function(){return l},prefetchReducer:function(){return a}});let r=n(77325),o=n(43858),u=n(86004),l=new o.PromiseQueue(5);function a(e,t){(0,u.prunePrefetchCache)(e.prefetchCache);let{url:n}=t;return n.searchParams.delete(r.NEXT_RSC_UNION_QUERY),(0,u.getOrCreatePrefetchCacheEntry)({url:n,nextUrl:e.nextUrl,prefetchCache:e.prefetchCache,kind:t.kind,tree:e.tree,buildId:e.buildId}),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},75239:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"refreshReducer",{enumerable:!0,get:function(){return h}});let r=n(41283),o=n(53174),u=n(69684),l=n(10139),a=n(51294),i=n(36416),c=n(13821),s=n(95751),f=n(40774),d=n(35914),p=n(74922);function h(e,t){let{origin:n}=t,h={},y=e.canonicalUrl,_=e.tree;h.preserveCustomHistoryState=!1;let v=(0,s.createEmptyCacheNode)(),b=(0,d.hasInterceptionRouteInCurrentTree)(e.tree);return v.lazyData=(0,r.fetchServerResponse)(new URL(y,n),[_[0],_[1],_[2],"refetch"],b?e.nextUrl:null,e.buildId),v.lazyData.then(async n=>{let[r,s]=n;if("string"==typeof r)return(0,a.handleExternalUrl)(e,h,r,e.pushRef.pendingPush);for(let n of(v.lazyData=null,r)){if(3!==n.length)return console.log("REFRESH FAILED"),e;let[r]=n,i=(0,u.applyRouterStatePatchToTree)([""],_,r,e.canonicalUrl);if(null===i)return(0,f.handleSegmentMismatch)(e,t,r);if((0,l.isNavigatingToNewRootLayout)(_,i))return(0,a.handleExternalUrl)(e,h,y,e.pushRef.pendingPush);let d=s?(0,o.createHrefFromUrl)(s):void 0;s&&(h.canonicalUrl=d);let[g,m]=n.slice(-2);if(null!==g){let e=g[2];v.rsc=e,v.prefetchRsc=null,(0,c.fillLazyItemsTillLeafWithHead)(v,void 0,r,g,m),h.prefetchCache=new Map}await (0,p.refreshInactiveParallelSegments)({state:e,updatedTree:i,updatedCache:v,includeNextUrl:b}),h.cache=v,h.patchedTree=i,h.canonicalUrl=y,_=i}return(0,i.handleMutable)(e,h)},()=>e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},6131:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"restoreReducer",{enumerable:!0,get:function(){return u}});let r=n(53174),o=n(96626);function u(e,t){var n;let{url:u,tree:l}=t,a=(0,r.createHrefFromUrl)(u),i=l||e.tree,c=e.cache;return{buildId:e.buildId,canonicalUrl:a,pushRef:{pendingPush:!1,mpaNavigation:!1,preserveCustomHistoryState:!0},focusAndScrollRef:e.focusAndScrollRef,cache:c,prefetchCache:e.prefetchCache,tree:i,nextUrl:null!=(n=(0,o.extractPathFromFlightRouterState)(i))?n:u.pathname}}n(93060),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},64549:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverActionReducer",{enumerable:!0,get:function(){return g}});let r=n(74590),o=n(77325),u=n(4897),l=n(53174),a=n(51294),i=n(69684),c=n(10139),s=n(36416),f=n(13821),d=n(95751),p=n(35914),h=n(40774),y=n(74922),{createFromFetch:_,encodeReply:v}=n(6671);async function b(e,t,n){let l,{actionId:a,actionArgs:i}=n,c=await v(i),s=await fetch("",{method:"POST",headers:{Accept:o.RSC_CONTENT_TYPE_HEADER,[o.ACTION]:a,[o.NEXT_ROUTER_STATE_TREE]:encodeURIComponent(JSON.stringify(e.tree)),...t?{[o.NEXT_URL]:t}:{}},body:c}),f=s.headers.get("x-action-redirect");try{let e=JSON.parse(s.headers.get("x-action-revalidated")||"[[],0,0]");l={paths:e[0]||[],tag:!!e[1],cookie:e[2]}}catch(e){l={paths:[],tag:!1,cookie:!1}}let d=f?new URL((0,u.addBasePath)(f),new URL(e.canonicalUrl,window.location.href)):void 0;if(s.headers.get("content-type")===o.RSC_CONTENT_TYPE_HEADER){let e=await _(Promise.resolve(s),{callServer:r.callServer});if(f){let[,t]=null!=e?e:[];return{actionFlightData:t,redirectLocation:d,revalidatedParts:l}}let[t,[,n]]=null!=e?e:[];return{actionResult:t,actionFlightData:n,redirectLocation:d,revalidatedParts:l}}return{redirectLocation:d,revalidatedParts:l}}function g(e,t){let{resolve:n,reject:r}=t,o={},u=e.canonicalUrl,_=e.tree;o.preserveCustomHistoryState=!1;let v=e.nextUrl&&(0,p.hasInterceptionRouteInCurrentTree)(e.tree)?e.nextUrl:null;return o.inFlightServerAction=b(e,v,t),o.inFlightServerAction.then(async r=>{let{actionResult:p,actionFlightData:b,redirectLocation:g}=r;if(g&&(e.pushRef.pendingPush=!0,o.pendingPush=!0),!b)return(n(p),g)?(0,a.handleExternalUrl)(e,o,g.href,e.pushRef.pendingPush):e;if("string"==typeof b)return(0,a.handleExternalUrl)(e,o,b,e.pushRef.pendingPush);for(let n of(o.inFlightServerAction=null,b)){if(3!==n.length)return console.log("SERVER ACTION APPLY FAILED"),e;let[r]=n,s=(0,i.applyRouterStatePatchToTree)([""],_,r,g?(0,l.createHrefFromUrl)(g):e.canonicalUrl);if(null===s)return(0,h.handleSegmentMismatch)(e,t,r);if((0,c.isNavigatingToNewRootLayout)(_,s))return(0,a.handleExternalUrl)(e,o,u,e.pushRef.pendingPush);let[p,b]=n.slice(-2),m=null!==p?p[2]:null;if(null!==m){let t=(0,d.createEmptyCacheNode)();t.rsc=m,t.prefetchRsc=null,(0,f.fillLazyItemsTillLeafWithHead)(t,void 0,r,p,b),await (0,y.refreshInactiveParallelSegments)({state:e,updatedTree:s,updatedCache:t,includeNextUrl:!!v}),o.cache=t,o.prefetchCache=new Map}o.patchedTree=s,o.canonicalUrl=u,_=s}if(g){let e=(0,l.createHrefFromUrl)(g,!1);o.canonicalUrl=e}return n(p),(0,s.handleMutable)(e,o)},t=>(r(t),e))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98289:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"serverPatchReducer",{enumerable:!0,get:function(){return f}});let r=n(53174),o=n(69684),u=n(10139),l=n(51294),a=n(39607),i=n(36416),c=n(95751),s=n(40774);function f(e,t){let{serverResponse:n}=t,[f,d]=n,p={};if(p.preserveCustomHistoryState=!1,"string"==typeof f)return(0,l.handleExternalUrl)(e,p,f,e.pushRef.pendingPush);let h=e.tree,y=e.cache;for(let n of f){let i=n.slice(0,-4),[f]=n.slice(-3,-2),_=(0,o.applyRouterStatePatchToTree)(["",...i],h,f,e.canonicalUrl);if(null===_)return(0,s.handleSegmentMismatch)(e,t,f);if((0,u.isNavigatingToNewRootLayout)(h,_))return(0,l.handleExternalUrl)(e,p,e.canonicalUrl,e.pushRef.pendingPush);let v=d?(0,r.createHrefFromUrl)(d):void 0;v&&(p.canonicalUrl=v);let b=(0,c.createEmptyCacheNode)();(0,a.applyFlightData)(y,b,n),p.patchedTree=_,p.cache=b,y=b,h=_}return(0,i.handleMutable)(e,p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},74922:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{addRefreshMarkerToActiveParallelSegments:function(){return function e(t,n){let[r,o,,l]=t;for(let a in r.includes(u.PAGE_SEGMENT_KEY)&&"refresh"!==l&&(t[2]=n,t[3]="refresh"),o)e(o[a],n)}},refreshInactiveParallelSegments:function(){return l}});let r=n(39607),o=n(41283),u=n(8e4);async function l(e){let t=new Set;await a({...e,rootTree:e.updatedTree,fetchedSegments:t})}async function a(e){let{state:t,updatedTree:n,updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c=n}=e,[,s,f,d]=n,p=[];if(f&&f!==location.pathname+location.search&&"refresh"===d&&!i.has(f)){i.add(f);let e=(0,o.fetchServerResponse)(new URL(f,location.origin),[c[0],c[1],c[2],"refetch"],l?t.nextUrl:null,t.buildId).then(e=>{let t=e[0];if("string"!=typeof t)for(let e of t)(0,r.applyFlightData)(u,u,e)});p.push(e)}for(let e in s){let n=a({state:t,updatedTree:s[e],updatedCache:u,includeNextUrl:l,fetchedSegments:i,rootTree:c});p.push(n)}await Promise.all(p)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},51507:function(e,t){"use strict";var n,r,o,u;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ACTION_FAST_REFRESH:function(){return f},ACTION_NAVIGATE:function(){return a},ACTION_PREFETCH:function(){return s},ACTION_REFRESH:function(){return l},ACTION_RESTORE:function(){return i},ACTION_SERVER_ACTION:function(){return d},ACTION_SERVER_PATCH:function(){return c},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return n},isThenable:function(){return p}});let l="refresh",a="navigate",i="restore",c="server-patch",s="prefetch",f="fast-refresh",d="server-action";function p(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(o=n||(n={})).AUTO="auto",o.FULL="full",o.TEMPORARY="temporary",(u=r||(r={})).fresh="fresh",u.reusable="reusable",u.expired="expired",u.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},80643:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"reducer",{enumerable:!0,get:function(){return f}});let r=n(51507),o=n(51294),u=n(98289),l=n(6131),a=n(75239),i=n(59218),c=n(51129),s=n(64549),f="undefined"==typeof window?function(e,t){return e}:function(e,t){switch(t.type){case r.ACTION_NAVIGATE:return(0,o.navigateReducer)(e,t);case r.ACTION_SERVER_PATCH:return(0,u.serverPatchReducer)(e,t);case r.ACTION_RESTORE:return(0,l.restoreReducer)(e,t);case r.ACTION_REFRESH:return(0,a.refreshReducer)(e,t);case r.ACTION_FAST_REFRESH:return(0,c.fastRefreshReducer)(e,t);case r.ACTION_PREFETCH:return(0,i.prefetchReducer)(e,t);case r.ACTION_SERVER_ACTION:return(0,s.serverActionReducer)(e,t);default:throw Error("Unknown action")}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},54740:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"shouldHardNavigate",{enumerable:!0,get:function(){return function e(t,n){let[o,u]=n,[l,a]=t;return(0,r.matchSegment)(l,o)?!(t.length<=2)&&e(t.slice(2),u[a]):!!Array.isArray(l)}}});let r=n(16237);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},8897:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{createDynamicallyTrackedSearchParams:function(){return a},createUntrackedSearchParams:function(){return l}});let r=n(44936),o=n(62441),u=n(67991);function l(e){let t=r.staticGenerationAsyncStorage.getStore();return t&&t.forceStatic?{}:e}function a(e){let t=r.staticGenerationAsyncStorage.getStore();return t?t.forceStatic?{}:t.isStaticGeneration||t.dynamicShouldError?new Proxy({},{get:(e,n,r)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),u.ReflectAdapter.get(e,n,r)),has:(e,n)=>("string"==typeof n&&(0,o.trackDynamicDataAccessed)(t,"searchParams."+n),Reflect.has(e,n)),ownKeys:e=>((0,o.trackDynamicDataAccessed)(t,"searchParams"),Reflect.ownKeys(e))}):e:e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r.staticGenerationAsyncStorage}});let r=n(77685);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},85108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{StaticGenBailoutError:function(){return r},isStaticGenBailoutError:function(){return o}});let n="NEXT_STATIC_GEN_BAILOUT";class r extends Error{constructor(...e){super(...e),this.code=n}}function o(e){return"object"==typeof e&&null!==e&&"code"in e&&e.code===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},91108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"unresolvedThenable",{enumerable:!0,get:function(){return n}});let n={then:()=>{}};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},42114:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{useReducerWithReduxDevtools:function(){return i},useUnwrapState:function(){return a}});let r=n(41452)._(n(2265)),o=n(51507),u=n(21427);function l(e){if(e instanceof Map){let t={};for(let[n,r]of e.entries()){if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r._bundlerConfig){t[n]="FlightData";continue}}t[n]=l(r)}return t}if("object"==typeof e&&null!==e){let t={};for(let n in e){let r=e[n];if("function"==typeof r){t[n]="fn()";continue}if("object"==typeof r&&null!==r){if(r.$$typeof){t[n]=r.$$typeof.toString();continue}if(r.hasOwnProperty("_bundlerConfig")){t[n]="FlightData";continue}}t[n]=l(r)}return t}return Array.isArray(e)?e.map(l):e}function a(e){return(0,o.isThenable)(e)?(0,r.use)(e):e}let i="undefined"!=typeof window?function(e){let[t,n]=r.default.useState(e),o=(0,r.useContext)(u.ActionQueueContext);if(!o)throw Error("Invariant: Missing ActionQueueContext");let a=(0,r.useRef)(),i=(0,r.useRef)();return(0,r.useEffect)(()=>{if(!a.current&&!1!==i.current){if(void 0===i.current&&void 0===window.__REDUX_DEVTOOLS_EXTENSION__){i.current=!1;return}return a.current=window.__REDUX_DEVTOOLS_EXTENSION__.connect({instanceId:8e3,name:"next-router"}),a.current&&(a.current.init(l(e)),o&&(o.devToolsInstance=a.current)),()=>{a.current=void 0}}},[e,o]),[t,(0,r.useCallback)(t=>{o.state||(o.state=e),o.dispatch(t,n)},[o,e]),(0,r.useCallback)(e=>{a.current&&a.current.send({type:"RENDER_SYNC"},l(e))},[])]}:function(e){return[e,()=>{},()=>{}]};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},49404:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"hasBasePath",{enumerable:!0,get:function(){return o}});let r=n(55121);function o(e){return(0,r.pathHasPrefix)(e,"/frontend/pr-preview/pr-31")}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},18157:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizePathTrailingSlash",{enumerable:!0,get:function(){return u}});let r=n(67741),o=n(31465),u=e=>{if(!e.startsWith("/"))return e;let{pathname:t,query:n,hash:u}=(0,o.parsePath)(e);return""+(0,r.removeTrailingSlash)(t)+n+u};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},16124:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let r=n(55592);function o(e){let t="function"==typeof reportError?reportError:e=>{window.console.error(e)};(0,r.isBailoutToCSRError)(e)||t(e)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},97599:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeBasePath",{enumerable:!0,get:function(){return o}}),n(49404);let r="/frontend/pr-preview/pr-31";function o(e){return 0===r.length||(e=e.slice(r.length)).startsWith("/")||(e="/"+e),e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},99176:function(e,t){"use strict";function n(e,t){var n=e.length;for(e.push(t);0>>1,o=e[r];if(0>>1;ru(i,n))cu(s,i)?(e[r]=s,e[c]=n,r=c):(e[r]=i,e[a]=n,r=a);else if(cu(s,n))e[r]=s,e[c]=n,r=c;else break}}return t}function u(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var l,a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var s=[],f=[],d=1,p=null,h=3,y=!1,_=!1,v=!1,b="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,m="undefined"!=typeof setImmediate?setImmediate:null;function R(e){for(var t=r(f);null!==t;){if(null===t.callback)o(f);else if(t.startTime<=e)o(f),t.sortIndex=t.expirationTime,n(s,t);else break;t=r(f)}}function P(e){if(v=!1,R(e),!_){if(null!==r(s))_=!0,C();else{var t=r(f);null!==t&&A(P,t.startTime-e)}}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j=!1,O=-1,S=5,E=-1;function w(){return!(t.unstable_now()-Ee&&w());){var a=p.callback;if("function"==typeof a){p.callback=null,h=p.priorityLevel;var i=a(p.expirationTime<=e);if(e=t.unstable_now(),"function"==typeof i){p.callback=i,R(e),n=!0;break t}p===r(s)&&o(s),R(e)}else o(s);p=r(s)}if(null!==p)n=!0;else{var c=r(f);null!==c&&A(P,c.startTime-e),n=!1}}break e}finally{p=null,h=u,y=!1}n=void 0}}finally{n?l():j=!1}}}if("function"==typeof m)l=function(){m(T)};else if("undefined"!=typeof MessageChannel){var M=new MessageChannel,x=M.port2;M.port1.onmessage=T,l=function(){x.postMessage(null)}}else l=function(){b(T,0)};function C(){j||(j=!0,l())}function A(e,n){O=b(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){_||y||(_=!0,C())},t.unstable_forceFrameRate=function(e){0>e||125l?(e.sortIndex=u,n(f,e),null===r(s)&&e===r(f)&&(v?(g(O),O=-1):v=!0,A(P,u-l))):(e.sortIndex=a,n(s,e),_||y||(_=!0,C())),e},t.unstable_shouldYield=w,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},85689:function(e,t,n){"use strict";e.exports=n(99176)},11358:function(e,t){"use strict";function n(e){return new URL(e,"http://n").pathname}function r(e){return/https?:\/\//.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{getPathname:function(){return n},isFullStringUrl:function(){return r}})},62441:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{Postpone:function(){return d},createPostponedAbortSignal:function(){return b},createPrerenderState:function(){return c},formatDynamicAPIAccesses:function(){return _},markCurrentScopeAsDynamic:function(){return s},trackDynamicDataAccessed:function(){return f},trackDynamicFetch:function(){return p},usedDynamicAPIs:function(){return y}});let o=(r=n(2265))&&r.__esModule?r:{default:r},u=n(57910),l=n(85108),a=n(11358),i="function"==typeof o.default.unstable_postpone;function c(e){return{isDebugSkeleton:e,dynamicAccesses:[]}}function s(e,t){let n=(0,a.getPathname)(e.urlPathname);if(!e.isUnstableCacheCallback){if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}}function f(e,t){let n=(0,a.getPathname)(e.urlPathname);if(e.isUnstableCacheCallback)throw Error(`Route ${n} used "${t}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${t}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);if(e.dynamicShouldError)throw new l.StaticGenBailoutError(`Route ${n} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${t}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);if(e.prerenderState)h(e.prerenderState,t,n);else if(e.revalidate=0,e.isStaticGeneration){let r=new u.DynamicServerError(`Route ${n} couldn't be rendered statically because it used ${t}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);throw e.dynamicUsageDescription=t,e.dynamicUsageStack=r.stack,r}}function d({reason:e,prerenderState:t,pathname:n}){h(t,e,n)}function p(e,t){e.prerenderState&&h(e.prerenderState,t,e.urlPathname)}function h(e,t,n){v();let r=`Route ${n} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;e.dynamicAccesses.push({stack:e.isDebugSkeleton?Error().stack:void 0,expression:t}),o.default.unstable_postpone(r)}function y(e){return e.dynamicAccesses.length>0}function _(e){return e.dynamicAccesses.filter(e=>"string"==typeof e.stack&&e.stack.length>0).map(({expression:e,stack:t})=>(t=t.split("\n").slice(4).filter(e=>!(e.includes("node_modules/next/")||e.includes(" ()")||e.includes(" (node:"))).join("\n"),`Dynamic API Usage Debug - ${e}: -${t}`))}function v(){if(!i)throw Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js")}function b(e){v();let t=new AbortController;try{o.default.unstable_postpone(e)}catch(e){t.abort(e)}return t.signal}},24286:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentParam",{enumerable:!0,get:function(){return o}});let r=n(82269);function o(e){let t=r.INTERCEPTION_ROUTE_MARKERS.find(t=>e.startsWith(t));return(t&&(e=e.slice(t.length)),e.startsWith("[[...")&&e.endsWith("]]"))?{type:"optional-catchall",param:e.slice(5,-2)}:e.startsWith("[...")&&e.endsWith("]")?{type:t?"catchall-intercepted":"catchall",param:e.slice(4,-1)}:e.startsWith("[")&&e.endsWith("]")?{type:t?"dynamic-intercepted":"dynamic",param:e.slice(1,-1)}:null}},63243:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HMR_ACTIONS_SENT_TO_BROWSER",{enumerable:!0,get:function(){return n}}),(r=n||(n={})).ADDED_PAGE="addedPage",r.REMOVED_PAGE="removedPage",r.RELOAD_PAGE="reloadPage",r.SERVER_COMPONENT_CHANGES="serverComponentChanges",r.MIDDLEWARE_CHANGES="middlewareChanges",r.CLIENT_CHANGES="clientChanges",r.SERVER_ONLY_CHANGES="serverOnlyChanges",r.SYNC="sync",r.BUILT="built",r.BUILDING="building",r.DEV_PAGES_MANIFEST_UPDATE="devPagesManifestUpdate",r.TURBOPACK_MESSAGE="turbopack-message",r.SERVER_ERROR="serverError",r.TURBOPACK_CONNECTED="turbopack-connected"},82269:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{INTERCEPTION_ROUTE_MARKERS:function(){return o},extractInterceptionRouteInformation:function(){return l},isInterceptionRouteAppPath:function(){return u}});let r=n(3330),o=["(..)(..)","(.)","(..)","(...)"];function u(e){return void 0!==e.split("/").find(e=>o.find(t=>e.startsWith(t)))}function l(e){let t,n,u;for(let r of e.split("/"))if(n=o.find(e=>r.startsWith(e))){[t,u]=e.split(n,2);break}if(!t||!n||!u)throw Error(`Invalid interception route: ${e}. Must be in the format //(..|...|..)(..)/`);switch(t=(0,r.normalizeAppPath)(t),n){case"(.)":u="/"===t?`/${u}`:t+"/"+u;break;case"(..)":if("/"===t)throw Error(`Invalid interception route: ${e}. Cannot use (..) marker at the root level, use (.) instead.`);u=t.split("/").slice(0,-1).concat(u).join("/");break;case"(...)":u="/"+u;break;case"(..)(..)":let l=t.split("/");if(l.length<=2)throw Error(`Invalid interception route: ${e}. Cannot use (..)(..) marker at the root level or one level up.`);u=l.slice(0,-2).concat(u).join("/");break;default:throw Error("Invariant: unexpected marker")}return{interceptingRoute:t,interceptedRoute:u}}},67991:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ReflectAdapter",{enumerable:!0,get:function(){return n}});class n{static get(e,t,n){let r=Reflect.get(e,t,n);return"function"==typeof r?r.bind(e):r}static set(e,t,n,r){return Reflect.set(e,t,n,r)}static has(e,t){return Reflect.has(e,t)}static deleteProperty(e,t){return Reflect.deleteProperty(e,t)}}},44467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{AppRouterContext:function(){return o},GlobalLayoutRouterContext:function(){return l},LayoutRouterContext:function(){return u},MissingSlotContext:function(){return i},TemplateContext:function(){return a}});let r=n(99920)._(n(2265)),o=r.default.createContext(null),u=r.default.createContext(null),l=r.default.createContext(null),a=r.default.createContext(null),i=r.default.createContext(new Set)},54736:function(e,t){"use strict";function n(e){let t=5381;for(let n=0;n>>0}function r(e){return n(e).toString(36).slice(0,5)}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{djb2Hash:function(){return n},hexHash:function(){return r}})},36590:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"HeadManagerContext",{enumerable:!0,get:function(){return r}});let r=n(99920)._(n(2265)).default.createContext({})},68056:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PathParamsContext:function(){return l},PathnameContext:function(){return u},SearchParamsContext:function(){return o}});let r=n(2265),o=(0,r.createContext)(null),u=(0,r.createContext)(null),l=(0,r.createContext)(null)},55592:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{BailoutToCSRError:function(){return r},isBailoutToCSRError:function(){return o}});let n="BAILOUT_TO_CLIENT_SIDE_RENDERING";class r extends Error{constructor(e){super("Bail out to client-side rendering: "+e),this.reason=e,this.digest=n}}function o(e){return"object"==typeof e&&null!==e&&"digest"in e&&e.digest===n}},78558:function(e,t){"use strict";function n(e){return e.startsWith("/")?e:"/"+e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ensureLeadingSlash",{enumerable:!0,get:function(){return n}})},21427:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ActionQueueContext:function(){return a},createMutableActionQueue:function(){return s}});let r=n(41452),o=n(51507),u=n(80643),l=r._(n(2265)),a=l.default.createContext(null);function i(e,t){null!==e.pending&&(e.pending=e.pending.next,null!==e.pending?c({actionQueue:e,action:e.pending,setState:t}):e.needsRefresh&&(e.needsRefresh=!1,e.dispatch({type:o.ACTION_REFRESH,origin:window.location.origin},t)))}async function c(e){let{actionQueue:t,action:n,setState:r}=e,u=t.state;if(!u)throw Error("Invariant: Router state not initialized");t.pending=n;let l=n.payload,a=t.action(u,l);function c(e){n.discarded||(t.state=e,t.devToolsInstance&&t.devToolsInstance.send(l,e),i(t,r),n.resolve(e))}(0,o.isThenable)(a)?a.then(c,e=>{i(t,r),n.reject(e)}):c(a)}function s(){let e={state:null,dispatch:(t,n)=>(function(e,t,n){let r={resolve:n,reject:()=>{}};if(t.type!==o.ACTION_RESTORE){let e=new Promise((e,t)=>{r={resolve:e,reject:t}});(0,l.startTransition)(()=>{n(e)})}let u={payload:t,next:null,resolve:r.resolve,reject:r.reject};null===e.pending?(e.last=u,c({actionQueue:e,action:u,setState:n})):t.type===o.ACTION_NAVIGATE||t.type===o.ACTION_RESTORE?(e.pending.discarded=!0,e.last=u,e.pending.payload.type===o.ACTION_SERVER_ACTION&&(e.needsRefresh=!0),c({actionQueue:e,action:u,setState:n})):(null!==e.last&&(e.last.next=u),e.last=u)})(e,t,n),action:async(e,t)=>{if(null===e)throw Error("Invariant: Router state not initialized");return(0,u.reducer)(e,t)},pending:null,last:null};return e}},22707:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathPrefix",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:n,query:o,hash:u}=(0,r.parsePath)(e);return""+t+n+o+u}},3330:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{normalizeAppPath:function(){return u},normalizeRscURL:function(){return l}});let r=n(78558),o=n(8e4);function u(e){return(0,r.ensureLeadingSlash)(e.split("/").reduce((e,t,n,r)=>!t||(0,o.isGroupSegment)(t)||"@"===t[0]||("page"===t||"route"===t)&&n===r.length-1?e:e+"/"+t,""))}function l(e){return e.replace(/\.rsc($|\?)/,"$1")}},86180:function(e,t){"use strict";function n(e,t){if(void 0===t&&(t={}),t.onlyHashChange){e();return}let n=document.documentElement,r=n.style.scrollBehavior;n.style.scrollBehavior="auto",t.dontForceLayout||n.getClientRects(),e(),n.style.scrollBehavior=r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"handleSmoothScroll",{enumerable:!0,get:function(){return n}})},74092:function(e,t){"use strict";function n(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isBot",{enumerable:!0,get:function(){return n}})},31465:function(e,t){"use strict";function n(e){let t=e.indexOf("#"),n=e.indexOf("?"),r=n>-1&&(t<0||n-1?{pathname:e.substring(0,r?n:t),query:r?e.substring(n,t>-1?t:void 0):"",hash:t>-1?e.slice(t):""}:{pathname:e,query:"",hash:""}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"parsePath",{enumerable:!0,get:function(){return n}})},55121:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"pathHasPrefix",{enumerable:!0,get:function(){return o}});let r=n(31465);function o(e,t){if("string"!=typeof e)return!1;let{pathname:n}=(0,r.parsePath)(e);return n===t||n.startsWith(t+"/")}},67741:function(e,t){"use strict";function n(e){return e.replace(/\/$/,"")||"/"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removeTrailingSlash",{enumerable:!0,get:function(){return n}})},8e4:function(e,t){"use strict";function n(e){return"("===e[0]&&e.endsWith(")")}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{DEFAULT_SEGMENT_KEY:function(){return o},PAGE_SEGMENT_KEY:function(){return r},isGroupSegment:function(){return n}});let r="__PAGE__",o="__DEFAULT__"},8005:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return o},useServerInsertedHTML:function(){return u}});let r=n(41452)._(n(2265)),o=r.default.createContext(null);function u(e){let t=(0,r.useContext)(o);t&&t(e)}},72301:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},8293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"actionAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},66713:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return u}});let n=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");class r{disable(){throw n}getStore(){}run(){throw n}exit(){throw n}enterWith(){throw n}}let o=globalThis.AsyncLocalStorage;function u(){return o?new o:new r}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},70038:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},77685:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"staticGenerationAsyncStorage",{enumerable:!0,get:function(){return r}});let r=(0,n(66713).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},34040:function(e,t,n){"use strict";var r=n(54887);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54887:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(84417)},97950:function(e,t,n){"use strict";var r=n(54887),o={stream:!0},u=new Map;function l(e){var t=n(e);return"function"!=typeof t.then||"fulfilled"===t.status?null:(t.then(function(e){t.status="fulfilled",t.value=e},function(e){t.status="rejected",t.reason=e}),t)}function a(){}var i=new Map,c=n.u;n.u=function(e){var t=i.get(e);return void 0!==t?t:c(e)};var s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Dispatcher,f=Symbol.for("react.element"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h=Array.isArray,y=Object.getPrototypeOf,_=Object.prototype,v=new WeakMap;function b(e,t,n,r){this.status=e,this.value=t,this.reason=n,this._response=r}function g(e){switch(e.status){case"resolved_model":E(e);break;case"resolved_module":w(e)}switch(e.status){case"fulfilled":return e.value;case"pending":case"blocked":case"cyclic":throw e;default:throw e.reason}}function m(e,t){for(var n=0;nh?(_=h,h=3,p++):(_=0,h=3);continue;case 2:44===(m=d[p++])?h=4:v=v<<4|(96d.length&&(m=-1)}var O=d.byteOffset+p;if(-1(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=l.length)-(o=s.length)<0&&(o=u,r=s,s=l,l=r),n=0;o;)n=(l[--o]=l[o]+s[o]+n)/1e7|0,l[o]%=1e7;for(n&&(l.unshift(n),++i),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=i,c?A(e,p):e}function m(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function g(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^this.s<0?1:-1;for(e=0,n=(r=this.d.length)<(i=t.d.length)?r:i;et.d[e]^this.s<0?1:-1;return r===i?0:r>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return b(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return A(b(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,n=this.constructor,r=n.precision,i=r+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(o)?new n(0):(c=!1,e=b(j(this,i),j(t,i),i),c=!0,A(e,r))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?P(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this.constructor,r=n.precision;if(!(t=new n(t)).s)throw Error(u+"NaN");return this.s?(c=!1,e=b(this,t,0,1).times(t),c=!0,this.minus(e)):A(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return j(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):P(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=w(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,i,o,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(u+"NaN")}for(t=w(this),c=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=g(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(b(this,o,a+2)).times(.5),g(o.d).slice(0,a)===(e=g(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(A(o,n+1,0),o.times(o).eq(this)){r=o;break}}else if("9999"!=e)break;a+=4}return c=!0,A(r,n)},y.times=y.mul=function(t){var e,n,r,i,o,a,u,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,n=this.e+t.e,(l=p.length)<(s=h.length)&&(o=p,p=h,h=o,a=l,l=s,s=a),o=[],r=a=l+s;r--;)o.push(0);for(r=s;--r>=0;){for(e=0,i=l+r;i>r;)u=o[i]+h[r]*p[i-r-1]+e,o[i--]=u%1e7|0,e=u/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,c?A(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return(n=new r(n),void 0===t)?n:(m(t,0,1e9),void 0===e?e=r.rounding:m(e,0,8),A(n,t+w(n)+1,e))},y.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k(r=A(new i(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,i=this.constructor;return void 0===t?k(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k((r=A(new i(this),t+w(this)+1,e)).abs(),!1,t+w(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this.constructor;return A(new t(this),w(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(u+"Infinity");return s}if(s.eq(o))return s;if(r=p.precision,t.eq(o))return A(s,r);if(l=(e=t.e)>=(n=t.d.length-1),a=s.s,l){if((n=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(r/7+4),c=!1;n%2&&M((i=i.times(s)).d,e),0!==(n=f(n/2));)M((s=s.times(s)).d,e);return c=!0,t.s<0?new p(o).div(i):A(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,s.s=1,c=!1,i=t.times(j(s,r+12)),c=!0,(i=x(i)).s=a,i},y.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?(n=w(i),r=k(i,n<=o.toExpNeg||n>=o.toExpPos)):(m(t,1,1e9),void 0===e?e=o.rounding:m(e,0,8),n=w(i=A(new o(i),t,e)),r=k(i,t<=n||n<=o.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(m(t,1,1e9),void 0===e?e=n.rounding:m(e,0,8)),A(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=w(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var b=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%1e7|0,r=n/1e7|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var c,l,s,f,p,h,d,y,v,m,g,b,x,O,S,j,E,P,k=r.constructor,M=r.s==i.s?1:-1,T=r.d,_=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(u+"Division by zero");for(s=0,l=r.e-i.e,E=_.length,S=T.length,y=(d=new k(M)).d=[];_[s]==(T[s]||0);)++s;if(_[s]>(T[s]||0)&&--l,(b=null==o?o=k.precision:a?o+(w(r)-w(i))+1:o)<0)return new k(0);if(b=b/7+2|0,s=0,1==E)for(f=0,_=_[0],b++;(s1&&(_=t(_,f),T=t(T,f),E=_.length,S=T.length),O=E,m=(v=T.slice(0,E)).length;m=1e7/2&&++j;do f=0,(c=e(_,v,E,m))<0?(g=v[0],E!=m&&(g=1e7*g+(v[1]||0)),(f=g/j|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(_,f)).length,m=v.length,1==(c=e(p,v,h,m))&&(f--,n(p,E16)throw Error(s+w(t));if(!t.s)return new h(o);for(null==e?(c=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=u;;){if(r=A(r.times(t),u),n=n.times(++l),g((a=i.plus(b(r,n,u))).d).slice(0,u)===g(i.d).slice(0,u)){for(;f--;)i=A(i.times(i),u);return h.precision=d,null==e?(c=!0,A(i,d)):i}i=a}}function w(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function O(t,e,n){if(e>t.LN10.sd())throw c=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function S(t){for(var e="";t--;)e+="0";return e}function j(t,e){var n,r,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,x=m.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(c=!1,p=x):p=e,y.eq(10))return null==e&&(c=!0),O(m,p);if(p+=10,m.precision=p,r=(n=g(v)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(m,p+2,x).times(a+""),y=j(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=x,null==e?(c=!0,A(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=g((y=y.times(t)).d)).charAt(0),d++;for(a=w(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=l=y=b(y.minus(o),y.plus(o),p),h=A(y.times(y),p),i=3;;){if(l=A(l.times(h),p),g((f=s.plus(b(l,new m(i),p))).d).slice(0,p)===g(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(O(m,p+2,x).times(a+""))),s=b(s,new m(d),p),m.precision=x,null==e?(c=!0,A(s,x)):s;s=f,i+=2}}function E(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rd||t.e<-d))throw Error(s+n)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,n){var r,i,o,a,u,l,h,y,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,h=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return t;for(a=1,h=o=v[y];o>=10;o/=10)a++;r%=7,i=r-7+a}if(void 0!==n&&(u=h/(o=p(10,a-i-1))%10|0,l=e<0||void 0!==v[y+1]||h%o,l=n<4?(u||l)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?i>0?h/p(10,a-i):0:v[y-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return l?(o=w(t),v.length=1,e=e-o-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=p(10,7-r),v[y]=i>0?(h/p(10,a-i)%p(10,i)|0)*o:0),l)for(;;){if(0==y){1e7==(v[0]+=o)&&(v[0]=1,++t.e);break}if(v[y]+=o,1e7!=v[y])break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(c&&(t.e>d||t.e<-d))throw Error(s+w(t));return t}function P(t,e){var n,r,i,o,a,u,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?A(e,d):e;if(l=t.d,p=e.d,r=e.e,s=t.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,u=p.length):(n=p,r=s,u=l.length),a>(i=Math.max(Math.ceil(d/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(u=p.length))&&(u=i),i=0;i0;--i)l[u++]=0;for(i=p.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=S(r))),t.s<0?"-"+o:o}function M(t,e){if(t.length>e)return t.length=e,!0}function T(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(l+n+": "+r)}if(void 0!==(r=t[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(l+n+": "+r)}return this}(a=function t(e){var n,r,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return E(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))E(this,t);else throw Error(l+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=T,void 0===e&&(e={}),e)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];n{let t=0,e=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function i(t){let e=[];for(let n=0,r=t.length;n{let r=new Image;r.decode=()=>e(r),r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function u(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function l(t,e,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(t),u(i)}let s=(t,e)=>{if(t instanceof e)return!0;let n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||s(n,e))};function f(t,e,n){let o=window.getComputedStyle(t,n),a=o.getPropertyValue("content");if(""===a||"none"===a)return;let c=r();try{e.className=`${e.className} ${c}`}catch(t){return}let u=document.createElement("style");u.appendChild(function(t,e,n){let r=`.${t}:${e}`,o=n.cssText?function(t){let e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}(n):i(n).map(t=>{let e=n.getPropertyValue(t),r=n.getPropertyPriority(t);return`${t}: ${e}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${o}}`)}(c,n,o)),e.appendChild(u)}let p="application/font-woff",h="image/jpeg",d={woff:p,woff2:p,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:h,jpeg:h,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function y(t){return d[(function(t){let e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""})(t).toLowerCase()]||""}function v(t){return -1!==t.search(/^(data:)/)}function m(t,e){return`data:${e};base64,${t}`}async function g(t,e,n){let r=await fetch(t,e);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((t,e)=>{let o=new FileReader;o.onerror=e,o.onloadend=()=>{try{t(n({res:r,result:o.result}))}catch(t){e(t)}},o.readAsDataURL(i)})}let b={};async function x(t,e,n){var r,i,o;let a,c;let u=(r=t,i=e,o=n.includeQueryParams,c=r.replace(/\?.*/,""),o&&(c=r),/ttf|otf|eot|woff2?/i.test(c)&&(c=c.replace(/.*\//,"")),i?`[${i}]${c}`:c);if(null!=b[u])return b[u];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());try{let r=await g(t,n.fetchRequestInit,({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),n.split(/,/)[1]));a=m(r,e)}catch(r){a=n.imagePlaceholder||"";let e=`Failed to fetch resource: ${t}`;r&&(e="string"==typeof r?r:r.message),e&&console.warn(e)}return b[u]=a,a}async function w(t){let e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):c(e)}async function O(t,e){if(t.currentSrc){let e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.clientWidth,e.height=t.clientHeight,null==n||n.drawImage(t,0,0,e.width,e.height),c(e.toDataURL())}let n=t.poster,r=y(n);return c(await x(n,r,e))}async function S(t){var e;try{if(null===(e=null==t?void 0:t.contentDocument)||void 0===e?void 0:e.body)return await k(t.contentDocument.body,{},!0)}catch(t){}return t.cloneNode(!1)}async function j(t,e){return s(t,HTMLCanvasElement)?w(t):s(t,HTMLVideoElement)?O(t,e):s(t,HTMLIFrameElement)?S(t):t.cloneNode(!1)}let E=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function A(t,e,n){var r,o;let a=[];return E(t)&&t.assignedNodes?a=i(t.assignedNodes()):s(t,HTMLIFrameElement)&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?a=i(t.contentDocument.body.childNodes):a=i((null!==(o=t.shadowRoot)&&void 0!==o?o:t).childNodes),0===a.length||s(t,HTMLVideoElement)||await a.reduce((t,r)=>t.then(()=>k(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}async function P(t,e){let n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;let r={};for(let i=0;ij(t,e)).then(n=>A(t,n,e)).then(e=>{var n,r;return n=t,s(r=e,Element)&&(!function(t,e){let n=e.style;if(!n)return;let r=window.getComputedStyle(t);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):i(r).forEach(i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let t=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${t}px`}s(t,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))})}(n,r),f(n,r,":before"),f(n,r,":after"),s(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),s(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(t,e){if(s(t,HTMLSelectElement)){let n=Array.from(e.children).find(e=>t.value===e.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(t=>P(t,e)):null}let M=/url\((['"]?)([^'"]+?)\1\)/g,T=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,_=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function C(t,e,n,r,i){try{let o;let a=n?function(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}(e,n):e,c=y(e);if(i){let t=await i(a);o=m(t,c)}else o=await x(a,c,r);return t.replace(function(t){let e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}(e),`$1${o}$3`)}catch(t){}return t}function I(t){return -1!==t.search(M)}async function D(t,e,n){if(!I(t))return t;let r=function(t,{preferredFontFormat:e}){return e?t.replace(_,t=>{for(;;){let[n,,r]=T.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}}):t}(t,n);return(function(t){let e=[];return t.replace(M,(t,n,r)=>(e.push(r),t)),e.filter(t=>!v(t))})(r).reduce((t,r)=>t.then(t=>C(t,r,e,n)),Promise.resolve(r))}async function N(t,e,n){var r;let i=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(i){let r=await D(i,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function B(t,e){await N("background",t,e)||await N("background-image",t,e),await N("mask",t,e)||await N("mask-image",t,e)}async function L(t,e){let n=s(t,HTMLImageElement);if(!(n&&!v(t.src))&&!(s(t,SVGImageElement)&&!v(t.href.baseVal)))return;let r=n?t.src:t.href.baseVal,i=await x(r,y(r),e);await new Promise((e,r)=>{t.onload=e,t.onerror=r,t.decode&&(t.decode=e),"lazy"===t.loading&&(t.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}async function R(t,e){let n=i(t.childNodes).map(t=>z(t,e));await Promise.all(n).then(()=>t)}async function z(t,e){s(t,Element)&&(await B(t,e),await L(t,e),await R(t,e))}let $={};async function U(t){let e=$[t];if(null!=e)return e;let n=await fetch(t);return e={url:t,cssText:await n.text()},$[t]=e,e}async function F(t,e){let n=t.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),g(o,e.fetchRequestInit,({result:t})=>(n=n.replace(i,`url(${t})`),[i,t]))})).then(()=>n)}function W(t){if(null==t)return[];let e=[],n=t.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let t=r.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=i.exec(n);if(null===t){if(null===(t=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;e.push(t[0])}return e}async function q(t,e){let n=[],r=[];return t.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((t,i)=>{if(t.type===CSSRule.IMPORT_RULE){let o=i+1,a=t.href,c=U(a).then(t=>F(t,e)).then(t=>W(t).forEach(t=>{try{n.insertRule(t,t.startsWith("@import")?o+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});r.push(c)}})}catch(o){let i=t.find(t=>null==t.href)||document.styleSheets[0];null!=n.href&&r.push(U(n.href).then(t=>F(t,e)).then(t=>W(t).forEach(t=>{i.insertRule(t,n.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(t.forEach(t=>{if("cssRules"in t)try{i(t.cssRules||[]).forEach(t=>{n.push(t)})}catch(e){console.error(`Error while reading CSS rules from ${t.href}`,e)}}),n))}async function H(t,e){if(null==t.ownerDocument)throw Error("Provided element is not within a Document");let n=i(t.ownerDocument.styleSheets);return(await q(n,e)).filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>I(t.style.getPropertyValue("src")))}async function V(t,e){let n=await H(t,e);return(await Promise.all(n.map(t=>{let n=t.parentStyleSheet?t.parentStyleSheet.href:null;return D(t.cssText,n,e)}))).join("\n")}async function X(t,e){let n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await V(t,e);if(n){let e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function Z(t,e={}){let{width:n,height:r}=a(t,e),i=await k(t,e,!0);return await X(i,e),await z(i,e),!function(t,e){let{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);let r=e.style;null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]})}(i,e),await l(i,n,r)}async function G(t,e={}){let{width:n,height:r}=a(t,e),i=await Z(t,e),o=await c(i),u=document.createElement("canvas"),l=u.getContext("2d"),s=e.pixelRatio||function(){let t,e;try{e=process}catch(t){}let n=e&&e.env?e.env.devicePixelRatio:null;return n&&Number.isNaN(t=parseInt(n,10))&&(t=1),t||window.devicePixelRatio||1}(),f=e.canvasWidth||n,p=e.canvasHeight||r;return u.width=f*s,u.height=p*s,!e.skipAutoScale&&(u.width>16384||u.height>16384)&&(u.width>16384&&u.height>16384?u.width>u.height?(u.height*=16384/u.width,u.width=16384):(u.width*=16384/u.height,u.height=16384):u.width>16384?(u.height*=16384/u.width,u.width=16384):(u.width*=16384/u.height,u.height=16384)),u.style.width=`${f}`,u.style.height=`${p}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,u.width,u.height)),l.drawImage(o,0,0,u.width,u.height),u}async function Y(t,e={}){return(await G(t,e)).toDataURL()}},74417:function(t,e,n){var r=n(19044)(n(2381),"DataView");t.exports=r},70266:function(t,e,n){var r=n(89829),i=n(60734),o=n(35283),a=n(97283),c=n(54778);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},10079:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(s)?n>1?t(s,n-1,o,a,c):r(c,s):a||(c[c.length]=s)}return c}},60404:function(t,e,n){var r=n(72994)();t.exports=r},97385:function(t,e,n){var r=n(60404),i=n(63815);t.exports=function(t,e){return t&&r(t,e,i)}},29013:function(t,e,n){var r=n(57442),i=n(83863);t.exports=function(t,e){e=r(e,t);for(var n=0,o=e.length;null!=t&&ne}},80444:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},48911:function(t,e,n){var r=n(21933),i=n(74680),o=n(13708);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},35194:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},43277:function(t,e,n){var r=n(36529),i=n(50561);t.exports=function t(e,n,o,a,c){return e===n||(null!=e&&null!=n&&(i(e)||i(n))?r(e,n,o,a,t,c):e!=e&&n!=n)}},36529:function(t,e,n){var r=n(45989),i=n(48648),o=n(88264),a=n(44024),c=n(14995),u=n(60443),l=n(46551),s=n(78470),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var g=u(t),b=u(e),x=g?p:c(t),w=b?p:c(e);x=x==f?h:x,w=w==f?h:w;var O=x==h,S=w==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new r),g||s(t)?i(t,e,n,y,v,m):o(t,e,x,n,y,v,m);if(!(1&n)){var E=O&&d.call(t,"__wrapped__"),A=S&&d.call(e,"__wrapped__");if(E||A){var P=E?t.value():t,k=A?e.value():e;return m||(m=new r),v(P,k,n,y,m)}}return!!j&&(m||(m=new r),a(t,e,n,y,v,m))}},29912:function(t,e,n){var r=n(45989),i=n(43277);t.exports=function(t,e,n,o){var a=n.length,c=a,u=!o;if(null==t)return!c;for(t=Object(t);a--;){var l=n[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++ai?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l=i?t:r(t,e,n)}},43425:function(t,e,n){var r=n(41108);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),c=void 0!==e,u=null===e,l=e==e,s=r(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||i&&c&&l||!n&&l||!o)return 1;if(!i&&!a&&!s&&t=u)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}},45704:function(t,e,n){var r=n(2381)["__core-js_shared__"];t.exports=r},23045:function(t,e,n){var r=n(17806);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,c=Object(n);(e?a--:++a-1?c[u?e[l]:l]:void 0}}},39105:function(t,e,n){var r=n(44901),i=n(60679),o=n(42126);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?es))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d-1&&t%1==0&&t-1}},97126:function(t,e,n){var r=n(22162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},59752:function(t,e,n){var r=n(70266),i=n(57115),o=n(77970);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},20170:function(t,e,n){var r=n(58035);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},41069:function(t,e,n){var r=n(58035);t.exports=function(t){return r(this,t).get(t)}},28690:function(t,e,n){var r=n(58035);t.exports=function(t){return r(this,t).has(t)}},27323:function(t,e,n){var r=n(58035);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},14774:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},91378:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},95325:function(t,e,n){var r=n(89830);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},91850:function(t,e,n){var r=n(19044)(Object,"create");t.exports=r},93022:function(t,e,n){var r=n(23794)(Object.keys,Object);t.exports=r},28079:function(t,e,n){t=n.nmd(t);var r=n(93330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,c=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},68391:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},23794:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},95694:function(t,e,n){var r=n(98266),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,c=i(o.length-e,0),u=Array(c);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},24683:function(t,e,n){var r=n(57115);t.exports=function(){this.__data__=new r,this.size=0}},34813:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},35115:function(t){t.exports=function(t){return this.__data__.get(t)}},28199:function(t){t.exports=function(t){return this.__data__.has(t)}},58644:function(t,e,n){var r=n(57115),i=n(77970),o=n(8705);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},13708:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r=e||n<0||v&&r>=s}function x(){var t,n,r,o=i();if(b(o))return w(o);p=setTimeout(x,(t=o-h,n=o-d,r=e-t,v?c(r,s-n):r))}function w(t){return(p=void 0,m&&u)?g(t):(u=l=void 0,f)}function O(){var t,n=i(),r=b(n);if(u=arguments,l=this,h=n,r){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?g(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),g(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(o(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(i())},O}},27087:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},55118:function(t,e,n){var r=n(90516),i=n(20334),o=n(37942),a=n(60443),c=n(60679);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&c(t,e,n)&&(e=void 0),u(t,o(e,3))}},80203:function(t,e,n){var r=n(43310)(n(11030));t.exports=r},11030:function(t,e,n){var r=n(21933),i=n(37942),o=n(38979),a=Math.max;t.exports=function(t,e,n){var c=null==t?0:t.length;if(!c)return -1;var u=null==n?0:o(n);return u<0&&(u=a(c+u,0)),r(t,i(e,3),u)}},73720:function(t,e,n){var r=n(55648),i=n(7851);t.exports=function(t,e){return r(i(t,e),1)}},97019:function(t,e,n){var r=n(29013);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},59628:function(t,e,n){var r=n(80444),i=n(48101);t.exports=function(t,e){return null!=t&&i(t,e,r)}},15502:function(t){t.exports=function(t){return t}},6727:function(t,e,n){var r=n(35194),i=n(50561),o=Object.prototype,a=o.hasOwnProperty,c=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},60443:function(t){var e=Array.isArray;t.exports=e},17806:function(t,e,n){var r=n(14380),i=n(44664);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},64337:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},46551:function(t,e,n){t=n.nmd(t);var r=n(2381),i=n(35423),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,c=a&&a.exports===o?r.Buffer:void 0,u=c?c.isBuffer:void 0;t.exports=u||i},12916:function(t,e,n){var r=n(43277);t.exports=function(t,e){return r(t,e)}},14380:function(t,e,n){var r=n(12731),i=n(63117);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},44664:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},50299:function(t,e,n){var r=n(60555);t.exports=function(t){return r(t)&&t!=+t}},49972:function(t){t.exports=function(t){return null==t}},60555:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},63117:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},50561:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},32999:function(t,e,n){var r=n(12731),i=n(98118),o=n(50561),a=Object.prototype,c=Function.prototype.toString,u=a.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},71519:function(t,e,n){var r=n(12731),i=n(60443),o=n(50561);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},41108:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},78470:function(t,e,n){var r=n(13272),i=n(66127),o=n(28079),a=o&&o.isTypedArray,c=a?i(a):r;t.exports=c},63815:function(t,e,n){var r=n(16347),i=n(84238),o=n(17806);t.exports=function(t){return o(t)?r(t):i(t)}},96579:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7851:function(t,e,n){var r=n(68165),i=n(37942),o=n(28519),a=n(60443);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},47759:function(t,e,n){var r=n(85330),i=n(97385),o=n(37942);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},47766:function(t,e,n){var r=n(77613),i=n(23985),o=n(15502);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},89830:function(t,e,n){var r=n(8705);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},89770:function(t,e,n){var r=n(77613),i=n(49182),o=n(15502);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},47710:function(t){t.exports=function(){}},49423:function(t,e,n){var r=n(2381);t.exports=function(){return r.Date.now()}},82794:function(t,e,n){var r=n(31358),i=n(65903),o=n(59757),a=n(83863);t.exports=function(t){return o(t)?r(a(t)):i(t)}},37105:function(t,e,n){var r=n(39105)();t.exports=r},13632:function(t,e,n){var r=n(17232),i=n(37942),o=n(73802),a=n(60443),c=n(60679);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&c(t,e,n)&&(e=void 0),u(t,i(e,3))}},60229:function(t,e,n){var r=n(55648),i=n(66738),o=n(48674),a=n(60679),c=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=c},61810:function(t){t.exports=function(){return[]}},35423:function(t){t.exports=function(){return!1}},48527:function(t,e,n){var r=n(22170),i=n(63117);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},42126:function(t,e,n){var r=n(49666),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},38979:function(t,e,n){var r=n(42126);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},49666:function(t,e,n){var r=n(19334),i=n(63117),o=n(41108),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):c.test(t)?a:+t}},61250:function(t,e,n){var r=n(13963);t.exports=function(t){return null==t?"":r(t)}},90374:function(t,e,n){var r=n(37942),i=n(32874);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},62637:function(t,e,n){var r=n(58191)("toUpperCase");t.exports=r},99949:function(t,e,n){"use strict";var r=n(88877);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},41448:function(t,e,n){t.exports=n(99949)()},88877:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74332:function(t,e){"use strict";/** @license React v16.13.1 - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=(n&&Symbol.for("react.suspense_list"),n?Symbol.for("react.memo"):60115),y=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope"),e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case s:case f:case o:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case d:case u:return t;default:return e}}case i:return e}}}(t)===o}},12659:function(t,e,n){"use strict";t.exports=n(74332)},29128:function(t,e,n){"use strict";n.d(e,{w:function(){return dI}});var r,i,o,a,c,u,l,s,f,p,h,d,y,v,m,g,b,x,w,O,S,j={};n.r(j),n.d(j,{scaleBand:function(){return rJ},scaleDiverging:function(){return function t(){var e=oi(cx()(iY));return e.copy=function(){return cm(e,t())},rV.apply(e,arguments)}},scaleDivergingLog:function(){return function t(){var e=oh(cx()).domain([.1,1,10]);return e.copy=function(){return cm(e,t()).base(e.base())},rV.apply(e,arguments)}},scaleDivergingPow:function(){return cw},scaleDivergingSqrt:function(){return cO},scaleDivergingSymlog:function(){return function t(){var e=ov(cx());return e.copy=function(){return cm(e,t()).constant(e.constant())},rV.apply(e,arguments)}},scaleIdentity:function(){return function t(e){var n;function r(t){return null==t||isNaN(t=+t)?n:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,iZ),r):e.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,iZ):[0,1],oi(r)}},scaleImplicit:function(){return rY},scaleLinear:function(){return oo},scaleLog:function(){return function t(){let e=oh(i1()).domain([1,10]);return e.copy=()=>i0(e,t()).base(e.base()),rH.apply(e,arguments),e}},scaleOrdinal:function(){return rK},scalePoint:function(){return rQ},scalePow:function(){return ow},scaleQuantile:function(){return function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=Array(e-1);++t=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[ii(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e=i?[o[i-1],r]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length&&(e=t),c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([n,r]).range(a).unknown(e)},rH.apply(oi(c),arguments)}},scaleRadial:function(){return function t(){var e,n=i2(),r=[0,1],i=!1;function o(t){var r,o=Math.sign(r=n(t))*Math.sqrt(Math.abs(r));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return n.invert(oS(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,iZ)).map(oS)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},rH.apply(o,arguments),oi(o)}},scaleSequential:function(){return function t(){var e=oi(cv()(iY));return e.copy=function(){return cm(e,t())},rV.apply(e,arguments)}},scaleSequentialLog:function(){return function t(){var e=oh(cv()).domain([1,10]);return e.copy=function(){return cm(e,t()).base(e.base())},rV.apply(e,arguments)}},scaleSequentialPow:function(){return cg},scaleSequentialQuantile:function(){return function t(){var e=[],n=iY;function r(t){if(null!=t&&!isNaN(t=+t))return n((ii(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();for(let n of(e=[],t))null==n||isNaN(n=+n)||e.push(n);return e.sort(r7),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map((t,r)=>n(r/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(n,r)=>(function(t,e,n){if(!(!(r=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||r<2)return oE(t);if(e>=1)return oj(t);var r,i=(r-1)*e,o=Math.floor(i),a=oj((function t(e,n,r=0,i=1/0,o){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(e.length-1,i)),!(r<=n&&n<=i))return e;for(o=void 0===o?oA:function(t=r7){if(t===r7)return oA;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);i>r;){if(i-r>600){let a=i-r+1,c=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*l*(a-l)/a)*(c-a/2<0?-1:1),f=Math.max(r,Math.floor(n-c*l/a+s)),p=Math.min(i,Math.floor(n+(a-c)*l/a+s));t(e,n,f,p,o)}let a=e[n],c=r,u=i;for(oP(e,r,n),o(e[i],a)>0&&oP(e,r,i);co(e[c],a);)++c;for(;o(e[u],a)>0;)--u}0===o(e[r],a)?oP(e,r,u):oP(e,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return e})(t,o).subarray(0,o+1));return a+(oE(t.subarray(o+1))-a)*(i-o)}})(e,r/t))},r.copy=function(){return t(n).domain(e)},rV.apply(r,arguments)}},scaleSequentialSqrt:function(){return cb},scaleSequentialSymlog:function(){return function t(){var e=ov(cv());return e.copy=function(){return cm(e,t()).constant(e.constant())},rV.apply(e,arguments)}},scaleSqrt:function(){return oO},scaleSymlog:function(){return function t(){var e=ov(i1());return e.copy=function(){return i0(e,t()).constant(e.constant())},rH.apply(e,arguments)}},scaleThreshold:function(){return function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[ii(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((n=Array.from(t)).length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},rH.apply(o,arguments)}},scaleTime:function(){return cd},scaleUtc:function(){return cy},tickFormat:function(){return or}});var E=n(57437),A=n(2265),P=n(41448),k=n.n(P),M=Object.getOwnPropertyNames,T=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty;function C(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function I(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var c=t(e,n,r);return i.delete(e),i.delete(n),c}}function D(t){return M(t).concat(T(t))}var N=Object.hasOwn||function(t,e){return _.call(t,e)};function B(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var L="_owner",R=Object.getOwnPropertyDescriptor,z=Object.keys;function $(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function U(t,e){return B(t.getTime(),e.getTime())}function F(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),c=0;(r=a.next())&&!r.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=r.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];!l&&!o[s]&&(l=n.equals(p,y,c,s,t,e,n)&&n.equals(h,v,p,y,t,e,n))&&(o[s]=!0),s++}if(!l)return!1;c++}return!0}function W(t,e,n){var r,i=z(t),o=i.length;if(z(e).length!==o)return!1;for(;o-- >0;)if((r=i[o])===L&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!N(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function q(t,e,n){var r,i,o,a=D(t),c=a.length;if(D(e).length!==c)return!1;for(;c-- >0;)if((r=a[c])===L&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!N(e,r)||!n.equals(t[r],e[r],r,r,t,e,n)||(i=R(t,r),o=R(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function H(t,e){return B(t.valueOf(),e.valueOf())}function V(t,e){return t.source===e.source&&t.flags===e.flags}function X(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)!u&&!o[l]&&(u=n.equals(r.value,i.value,r.value,i.value,t,e,n))&&(o[l]=!0),l++;if(!u)return!1}return!0}function Z(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var G=Array.isArray,Y="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,K=Object.assign,J=Object.prototype.toString.call.bind(Object.prototype.toString),Q=tt();function tt(t){void 0===t&&(t={});var e,n,r,i,o,a,c,u,l,s=t.circular,f=t.createInternalComparator,p=t.createState,h=t.strict,d=(n=(e=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?q:$,areDatesEqual:U,areMapsEqual:r?C(F,q):F,areObjectsEqual:r?q:W,arePrimitiveWrappersEqual:H,areRegExpsEqual:V,areSetsEqual:r?C(X,q):X,areTypedArraysEqual:r?q:Z};if(n&&(i=K({},i,n(i))),e){var o=I(i.areArraysEqual),a=I(i.areMapsEqual),c=I(i.areObjectsEqual),u=I(i.areSetsEqual);i=K({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t)).areArraysEqual,r=e.areDatesEqual,i=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,l=e.areTypedArraysEqual,function(t,e,s){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var f=t.constructor;if(f!==e.constructor)return!1;if(f===Object)return o(t,e,s);if(G(t))return n(t,e,s);if(null!=Y&&Y(t))return l(t,e,s);if(f===Date)return r(t,e,s);if(f===RegExp)return c(t,e,s);if(f===Map)return i(t,e,s);if(f===Set)return u(t,e,s);var p=J(t);return"[object Date]"===p?r(t,e,s):"[object RegExp]"===p?c(t,e,s):"[object Map]"===p?i(t,e,s):"[object Set]"===p?u(t,e,s):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&o(t,e,s):"[object Arguments]"===p?o(t,e,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,s)}),y=f?f(d):function(t,e,n,r,i,o,a){return d(t,e,a)};return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var c=r(),u=c.cache;return n(t,a,{cache:void 0===u?e?new WeakMap:void 0:u,equals:i,meta:c.meta,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:void 0!==s&&s,comparator:d,createState:p,equals:y,strict:void 0!==h&&h})}function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){if(n<0&&(n=i),i-n>e)t(i),n=-1;else{var o;o=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tv(o,c),h=tv(a,u),d=(t=o,e=c,function(n){var r;return ty([].concat(function(t){if(Array.isArray(t))return th(t)}(r=td(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||tp(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i,o=p(n)-e,a=d(n);if(1e-4>Math.abs(o-e)||a<1e-4)break;n=(i=n-o/a)>1?1:i<0?0:i}return h(n)};return y.isStepper=!1,y},tg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,c=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,c=r*a/1e3+t;return 1e-4>Math.abs(c-e)&&1e-4>Math.abs(o)?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c},tb=function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n[i-1]:r,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(tI(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var h=ts(p,o,c),d=tB(tB(tB({},f.style),u),{},{transition:h});return[].concat(tI(t),[d,o,s]).filter(tu)},[a,Math.max(void 0===c?0:c,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,n,r;this.manager=(e=function(){return null},n=!1,r=function t(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var i=function(t){if(Array.isArray(t))return t}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return tr(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(t,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);if("number"==typeof o){te(t.bind(null,a),o);return}t(o),te(t.bind(null,a));return}"object"===tn(r)&&e(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(t){n=!1,r(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var i=t.begin,o=t.duration,a=t.attributeName,c=t.to,u=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?tL({},a,c):c,y=ts(Object.keys(d),o,u);h.start([l,i,tB(tB({},d),{},{transition:y}),o,s])}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),r=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tC)),o=A.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!r||0===o||n<=0)return e;var c=function(t){var e=t.props,n=e.style,r=e.className;return(0,A.cloneElement)(t,tB(tB({},i),{},{style:tB(tB({},void 0===n?{}:n),a),className:r}))};return 1===o?c(A.Children.only(e)):A.createElement("div",null,A.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(n)?n:0},el=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}(i,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=eo(i);return t=e?Reflect.construct(n,arguments,eo(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===t9(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ei(t)}(this,t)});function i(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),ea(ei(t=r.call(this)),"handleEnter",function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)}),ea(ei(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(en(en({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return eu(e)+eu(n)+eu(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,t8));return A.createElement(t6,et({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return A.createElement(tW,t.state,A.Children.only(n))})}}],function(t,e){for(var n=0;n=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[r-1]=(t[r]+i[r-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Array.prototype.slice;let eR=Math.PI,ez=2*eR,e$=ez-1e-6;function eU(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return eU;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e1e-6){if(Math.abs(s*c-u*l)>1e-6&&i){let p=n-o,h=r-a,d=c*c+u*u,y=Math.sqrt(d),v=Math.sqrt(f),m=i*Math.tan((eR-Math.acos((d+f-(p*p+h*h))/(2*y*v)))/2),g=m/v,b=m/y;Math.abs(g-1)>1e-6&&this._append`L${t+g*l},${e+g*s}`,this._append`A${i},${i},0,0,${+(s*p>l*h)},${this._x1=t+b*c},${this._y1=e+b*u}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw Error(`negative radius: ${n}`);let a=n*Math.cos(r),c=n*Math.sin(r),u=t+a,l=e+c,s=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%ez+ez),f>e$?this._append`A${n},${n},0,1,${s},${t-a},${e-c}A${n},${n},0,1,${s},${this._x1=u},${this._y1=l}`:f>1e-6&&this._append`A${n},${n},0,${+(f>=eR)},${s},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function eW(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new eF(e)}function eq(t){return t[0]}function eH(t){return t[1]}function eV(t,e){var n=eL(!0),r=null,i=eA,o=null,a=eW(c);function c(c){var u,l,s,f=(c=eB(c)).length,p=!1;for(null==r&&(o=i(s=a())),u=0;u<=f;++u)!(u=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}}v&&(m[s]=+t(h,s,l),g[s]=+e(h,s,l),c.point(r?+r(h,s,l):m[s],n?+n(h,s,l):g[s]))}if(d)return c=null,d+""||null}function s(){return eV().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?eq:eL(+t),e="function"==typeof e?e:void 0===e?eL(0):eL(+e),n="function"==typeof n?n:void 0===n?eH:eL(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:eL(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:eL(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:eL(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:eL(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:eL(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}eF.prototype;var eZ=n(62637),eG=n.n(eZ),eY=n(63117),eK=n.n(eY);function eJ(t){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var eQ=["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"],e0=["points","pathLength"],e1={svg:["viewBox","children"],polygon:e0,polyline:e0},e2=["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"],e3=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,A.isValidElement)(t)&&(n=t.props),!eK()(n))return null;var r={};return Object.keys(n).forEach(function(t){e2.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})}),r},e5=function(t,e,n){if(!eK()(t)||"object"!==eJ(t))return null;var r=null;return Object.keys(t).forEach(function(i){var o=t[i];e2.includes(i)&&"function"==typeof o&&(r||(r={}),r[i]=function(t){return o(e,n,t),null})}),r},e4=n(97019),e6=n.n(e4),e7=n(71519),e8=n.n(e7),e9=n(12659),nt=n(50299),ne=n.n(nt),nn=n(60555),nr=n.n(nn),ni=function(t){return 0===t?0:t>0?1:-1},no=function(t){return e8()(t)&&t.indexOf("%")===t.length-1},na=function(t){return nr()(t)&&!ne()(t)},nc=function(t){return na(t)||e8()(t)},nu=0,nl=function(t){var e=++nu;return"".concat(t||"").concat(e)},ns=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!na(t)&&!e8()(t))return r;if(no(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return ne()(n)&&(n=r),i&&n>e&&(n=e),n},nf=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},np=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nb(t){return(nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var nx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},nw=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},nO=null,nS=null,nj=function t(e){if(e===nO&&Array.isArray(nS))return nS;var n=[];return A.Children.forEach(e,function(e){ed()(e)||((0,e9.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),nS=n,nO=e,n};function nE(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map(function(t){return nw(t)}):[nw(e)],nj(t).forEach(function(t){var e=e6()(t,"type.displayName")||e6()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)}),n}function nA(t,e){var n=nE(t,e);return n&&n[0]}var nP=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!!na(n)&&!(n<=0)&&!!na(r)&&!(r<=0)},nk=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],nM=function(t,e,n,r){var i,o=null!==(i=null==e1?void 0:e1[r])&&void 0!==i?i:[];return!ep()(t)&&(r&&o.includes(e)||eQ.includes(e))||n&&e2.includes(e)},nT=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,A.isValidElement)(t)&&(r=t.props),!eK()(r))return null;var i={};return Object.keys(r).forEach(function(t){var o;nM(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])}),i},n_=function t(e,n){if(e===n)return!0;var r=A.Children.count(e);if(r!==A.Children.count(n))return!1;if(0===r)return!0;if(1===r)return nC(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i=0)n.push(t);else if(t){var o=nw(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!r[o])){var l=c(t,o,i);n.push(l),r[o]=!0}}}),n},nD=function(t){var e=t&&t.type;return e&&nx[e]?nx[e]:null};function nN(t){return(nN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nB(){return(nB=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,nZ),o=(0,em.Z)("recharts-layer",r);return A.createElement("g",nG({className:o},nT(i,!0),{ref:e}),n)}),nK=n(96579),nJ=n.n(nK),nQ={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return nQ[t]},set:function(t,e){if("string"==typeof t)nQ[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(e){nQ[e]=t[e]})}}};function n0(t){return(n0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function n2(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||nQ.isSsr)return{width:0,height:0};var r=(Object.keys(e=n2({},n)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:r});if(n3.widthCache[i])return n3.widthCache[i];try{var o=document.getElementById(n4);o||((o=document.createElement("span")).setAttribute("id",n4),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=n2(n2({},n5),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return n3.widthCache[i]=u,++n3.cacheCount>2e3&&(n3.cacheCount=0,n3.widthCache={}),u}catch(t){return{width:0,height:0}}};function n7(t){return(n7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n8(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n9(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rv(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,c=t[t.length-1];return c&&(null==r||i||c.width+a+na||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(r),e]},d=0,y=c.length-1,v=0;d<=y&&v<=c.length-1;){var m=Math.floor((d+y)/2),g=ry(h(m-1),2),b=g[0],x=g[1],w=ry(h(m),1)[0];if(b||w||(d=m+1),b&&w&&(y=m-1),!b&&w){o=x;break}v++}return o||p},rx=function(t){return[{words:ed()(t)?[]:t.toString().split(rm)}]},rw=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!nQ.isSsr){var c=rg({breakAll:o,children:r,style:i});return c?rb({breakAll:o,children:r,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,n):rx(r)}return rx(r)},rO="#808080",rS=function(t){var e,n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.lineHeight,c=void 0===a?"1em":a,u=t.capHeight,l=void 0===u?"0.71em":u,s=t.scaleToFit,f=void 0!==s&&s,p=t.textAnchor,h=t.verticalAnchor,d=t.fill,y=void 0===d?rO:d,v=rd(t,rf),m=(0,A.useMemo)(function(){return rw({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),g=v.dx,b=v.dy,x=v.angle,w=v.className,O=v.breakAll,S=rd(v,rp);if(!nc(r)||!nc(o))return null;var j=r+(na(g)?g:0),E=o+(na(b)?b:0);switch(void 0===h?"end":h){case"start":e=rs("calc(".concat(l,")"));break;case"middle":e=rs("calc(".concat((m.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:e=rs("calc(".concat(m.length-1," * -").concat(c,")"))}var P=[];if(f){var k=m[0].width,M=v.width;P.push("scale(".concat((na(M)?M/k:1)/k,")"))}return x&&P.push("rotate(".concat(x,", ").concat(j,", ").concat(E,")")),P.length&&(S.transform=P.join(" ")),A.createElement("text",rh({},nT(S,!0),{x:j,y:E,className:(0,em.Z)("recharts-text",w),textAnchor:void 0===p?"start":p,fill:y.includes("url")?rO:y}),m.map(function(t,n){var r=t.words.join(O?"":" ");return A.createElement("tspan",{x:j,dy:0===n?e:c,key:r},r)}))};function rj(t){return(rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rA(t){for(var e=1;eo&&(c=2*Math.PI-c),{radius:a,angle:180*c/Math.PI,angleInRadian:c}},r_=function(t){var e=t.startAngle,n=t.endAngle,r=Math.min(Math.floor(e/360),Math.floor(n/360));return{startAngle:e-360*r,endAngle:n-360*r}},rC=function(t,e){var n,r=rT({x:t.x,y:t.y},e),i=r.radius,o=r.angle,a=e.innerRadius,c=e.outerRadius;if(ic)return!1;if(0===i)return!0;var u=r_(e),l=u.startAngle,s=u.endAngle,f=o;if(l<=s){for(;f>s;)f-=360;for(;f=l&&f<=s}else{for(;f>l;)f-=360;for(;f=s&&f<=l}return n?rA(rA({},e),{},{radius:i,angle:f+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null};function rI(t){return(rI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var rD=["offset"];function rN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1;"insideStart"===o?(r=h+g*c,i=y):"insideEnd"===o?(r=d-g*c,i=!y):"end"===o&&(r=d+g*c,i=y),i=m<=0?i:!i;var b=rk(l,s,v,r),x=rk(l,s,v,r+(i?1:-1)*359),w="M".concat(b.x,",").concat(b.y,"\n A").concat(v,",").concat(v,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),O=ed()(t.id)?nl("recharts-radial-line-"):t.id;return A.createElement("text",rR({},n,{dominantBaseline:"central",className:(0,em.Z)("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:O,d:w})),A.createElement("textPath",{xlinkHref:"#".concat(O)},e))},rU=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,c=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===r){var l=rk(i,o,c+n,u),s=l.x;return{x:s,y:l.y,textAnchor:s>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=rk(i,o,(a+c)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},rF=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e.x,a=e.y,c=e.width,u=e.height,l=u>=0?1:-1,s=l*r,f=l>0?"end":"start",p=l>0?"start":"end",h=c>=0?1:-1,d=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return rL(rL({},{x:o+c/2,y:a-l*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(a-n.y,0),width:c}:{});if("bottom"===i)return rL(rL({},{x:o+c/2,y:a+u+s,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(a+u),0),width:c}:{});if("left"===i){var m={x:o-d,y:a+u/2,textAnchor:y,verticalAnchor:"middle"};return rL(rL({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var g={x:o+c+d,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return rL(rL({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:u}:{})}var b=n?{width:c,height:u}:{};return"insideLeft"===i?rL({x:o+d,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},b):"insideRight"===i?rL({x:o+c-d,y:a+u/2,textAnchor:y,verticalAnchor:"middle"},b):"insideTop"===i?rL({x:o+c/2,y:a+s,textAnchor:"middle",verticalAnchor:p},b):"insideBottom"===i?rL({x:o+c/2,y:a+u-s,textAnchor:"middle",verticalAnchor:f},b):"insideTopLeft"===i?rL({x:o+d,y:a+s,textAnchor:v,verticalAnchor:p},b):"insideTopRight"===i?rL({x:o+c-d,y:a+s,textAnchor:y,verticalAnchor:p},b):"insideBottomLeft"===i?rL({x:o+d,y:a+u-s,textAnchor:v,verticalAnchor:f},b):"insideBottomRight"===i?rL({x:o+c-d,y:a+u-s,textAnchor:y,verticalAnchor:f},b):eK()(i)&&(na(i.x)||no(i.x))&&(na(i.y)||no(i.y))?rL({x:o+ns(i.x,c),y:a+ns(i.y,u),textAnchor:"end",verticalAnchor:"end"},b):rL({x:o+c/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},b)};function rW(t){var e,n=t.offset,r=rL({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,rD)),i=r.viewBox,o=r.position,a=r.value,c=r.children,u=r.content,l=r.className,s=r.textBreakAll;if(!i||ed()(a)&&ed()(c)&&!(0,A.isValidElement)(u)&&!ep()(u))return null;if((0,A.isValidElement)(u))return(0,A.cloneElement)(u,r);if(ep()(u)){if(e=(0,A.createElement)(u,r),(0,A.isValidElement)(e))return e}else e=rz(r);var f="cx"in i&&na(i.cx),p=nT(r,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return r$(r,e,p);var h=f?rU(r):rF(r);return A.createElement(rS,rR({className:(0,em.Z)("recharts-label",void 0===l?"":l)},p,h,{breakAll:s}),e)}rW.displayName="Label";var rq=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(na(d)&&na(y)){if(na(s)&&na(f))return{x:s,y:f,width:d,height:y};if(na(p)&&na(h))return{x:p,y:h,width:d,height:y}}return na(s)&&na(f)?{x:s,y:f,width:0,height:0}:na(e)&&na(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};function rH(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function rV(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}rW.parseViewBox=rq,rW.renderCallByParent=function(t,e){var n,r,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=rq(t),c=nE(o,rW).map(function(t,n){return(0,A.cloneElement)(t,{viewBox:e||a,key:"label-".concat(n)})});return i?[(n=t.label,r=e||a,n?!0===n?A.createElement(rW,{key:"label-implicit",viewBox:r}):nc(n)?A.createElement(rW,{key:"label-implicit",viewBox:r,value:n}):(0,A.isValidElement)(n)?n.type===rW?(0,A.cloneElement)(n,{key:"label-implicit",viewBox:r}):A.createElement(rW,{key:"label-implicit",content:n,viewBox:r}):ep()(n)?A.createElement(rW,{key:"label-implicit",content:n,viewBox:r}):eK()(n)?A.createElement(rW,rR({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return rN(t)}(c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return rN(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rN(t,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):c};class rX extends Map{constructor(t,e=rG){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(rZ(this,t))}has(t){return super.has(rZ(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function rZ({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function rG(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rY=Symbol("implicit");function rK(){var t=new rX,e=[],n=[],r=rY;function i(i){let o=t.get(i);if(void 0===o){if(r!==rY)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();for(let r of(e=[],t=new rX,n))t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return rK(e,n).unknown(r)},rH.apply(i,arguments),i}function rJ(){var t,e,n=rK().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var n=r().length,f=a=r0?10:u>=r1?5:u>=r2?2:1;return(c<0?(r=Math.round(t*(o=Math.pow(10,-c)/l)),i=Math.round(e*o),r/oe&&--i,o=-o):(r=Math.round(t/(o=Math.pow(10,c)*l)),i=Math.round(e/o),r*oe&&--i),i0))return[];if(t===e)return[t];let r=e=i))return[];let c=o-i+1,u=Array(c);if(r){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function r8(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function r9(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i>>1;0>n(t[e],r)?i=e+1:o=e}while(ir7(t(e),n),r=(e,n)=>t(e)-n):(e=t===r7||t===r8?t:it,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){let a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i>>1;0>=n(t[e],r)?i=e+1:o=e}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ij(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ij(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ih.exec(t))?new iA(e[1],e[2],e[3],1):(e=id.exec(t))?new iA(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=iy.exec(t))?ij(e[1],e[2],e[3],e[4]):(e=iv.exec(t))?ij(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=im.exec(t))?iC(e[1],e[2]/100,e[3]/100,1):(e=ig.exec(t))?iC(e[1],e[2]/100,e[3]/100,e[4]):ib.hasOwnProperty(t)?iS(ib[t]):"transparent"===t?new iA(NaN,NaN,NaN,0):null}function iS(t){return new iA(t>>16&255,t>>8&255,255&t,1)}function ij(t,e,n,r){return r<=0&&(t=e=n=NaN),new iA(t,e,n,r)}function iE(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof ic||(i=iO(i)),i)?new iA((i=i.rgb()).r,i.g,i.b,i.opacity):new iA:new iA(t,e,n,null==r?1:r)}function iA(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function iP(){return`#${i_(this.r)}${i_(this.g)}${i_(this.b)}`}function ik(){let t=iM(this.opacity);return`${1===t?"rgb(":"rgba("}${iT(this.r)}, ${iT(this.g)}, ${iT(this.b)}${1===t?")":`, ${t})`}`}function iM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function iT(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function i_(t){return((t=iT(t))<16?"0":"")+t.toString(16)}function iC(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new iD(t,e,n,r)}function iI(t){if(t instanceof iD)return new iD(t.h,t.s,t.l,t.opacity);if(t instanceof ic||(t=iO(t)),!t)return new iD;if(t instanceof iD)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(n-r)/c+(n0&&u<1?0:a,new iD(a,c,u,t.opacity)}function iD(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function iN(t){return(t=(t||0)%360)<0?t+360:t}function iB(t){return Math.max(0,Math.min(1,t||0))}function iL(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function iR(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}io(ic,iO,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ix,formatHex:ix,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return iI(this).formatHsl()},formatRgb:iw,toString:iw}),io(iA,iE,ia(ic,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new iA(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new iA(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new iA(iT(this.r),iT(this.g),iT(this.b),iM(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:iP,formatHex:iP,formatHex8:function(){return`#${i_(this.r)}${i_(this.g)}${i_(this.b)}${i_((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ik,toString:ik})),io(iD,function(t,e,n,r){return 1==arguments.length?iI(t):new iD(t,e,n,null==r?1:r)},ia(ic,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new iD(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new iD(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new iA(iL(t>=240?t-240:t+120,i,r),iL(t,i,r),iL(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new iD(iN(this.h),iB(this.s),iB(this.l),iM(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 t=iM(this.opacity);return`${1===t?"hsl(":"hsla("}${iN(this.h)}, ${100*iB(this.s)}%, ${100*iB(this.l)}%${1===t?")":`, ${t})`}`}}));var iz=t=>()=>t;function i$(t,e){var n=e-t;return n?function(e){return t+e*n}:iz(isNaN(t)?e:t)}var iU=function t(e){var n,r=1==(n=+(n=e))?i$:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):iz(isNaN(t)?e:t)};function i(t,e){var n=r((t=iE(t)).r,(e=iE(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=i$(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function iF(t){return function(e){var n,r,i=e.length,o=Array(i),a=Array(i),c=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,c=rc&&(a=e.slice(c,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,s.push({i:u,x:iW(i,o)})),c=iH.lastIndex;return ce&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?iQ:iJ,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),c,u)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(c,a.map(t),iW)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,iZ),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=iX,s()},f.clamp=function(t){return arguments.length?(l=!!t||iY,s()):l!==iY},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function i2(){return i1()(iY,iY)}var i3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i5(t){var e;if(!(e=i3.exec(t)))throw Error("invalid format: "+t);return new i4({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function i4(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function i6(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i7(t){return(t=i6(Math.abs(t)))?t[1]:NaN}function i8(t,e){var n=i6(t,e);if(!n)return t+"";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")}i5.prototype=i4.prototype,i4.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var i9={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>i8(100*t,e),r:i8,s:function(t,e){var n=i6(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(m=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+i6(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ot(t){return t}var oe=Array.prototype.map,on=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function or(t,e,n,r){var i,o,a=r6(t,e,n);switch((r=i5(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i7(c)/3)))-i7(Math.abs(a))))||(r.precision=o),x(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,i7(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=a)))-i7(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-i7(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return b(r)}function oi(t){var e=t.domain;return t.ticks=function(t){var n=e();return r5(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return or(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l0;){if((i=r4(u,l,n))===r)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else if(i<0)u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i;else break;r=i}return t},t}function oo(){var t=i2();return t.copy=function(){return i0(t,oo())},rH.apply(t,arguments),oi(t)}function oa(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a-t(-e,n)}function oh(t){let e,n;let r=t(oc,ou),i=r.domain,o=10;function a(){var a,c;return e=(a=o)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),t=>Math.log(t)/a),n=10===(c=o)?of:c===Math.E?Math.exp:t=>Math.pow(c,t),i()[0]<0?(e=op(e),n=op(n),t(ol,os)):t(oc,ou),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=t=>{let r,a;let c=i(),u=c[0],l=c[c.length-1],s=l0){for(;f<=p;++f)for(r=1;rl)break;d.push(a)}}else for(;f<=p;++f)for(r=o-1;r>=1;--r)if(!((a=f>0?r/n(-f):r*n(f))l)break;d.push(a)}2*d.length{if(null==t&&(t=10),null==i&&(i=10===o?"s":","),"function"!=typeof i&&(o%1||null!=(i=i5(i)).precision||(i.trim=!0),i=b(i)),t===1/0)return i;let a=Math.max(1,o*t/r.ticks().length);return t=>{let r=t/n(Math.round(e(t)));return r*oi(oa(i(),{floor:t=>n(Math.floor(e(t))),ceil:t=>n(Math.ceil(e(t)))})),r}function od(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function oy(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ov(t){var e=1,n=t(od(1),oy(e));return n.constant=function(n){return arguments.length?t(od(e=+n),oy(e)):e},oi(n)}function om(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function og(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ob(t){return t<0?-t*t:t*t}function ox(t){var e=t(iY,iY),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(iY,iY):.5===n?t(og,ob):t(om(n),om(1/n)):n},oi(e)}function ow(){var t=ox(i1());return t.copy=function(){return i0(t,ow()).exponent(t.exponent())},rH.apply(t,arguments),t}function oO(){return ow.apply(null,arguments).exponent(.5)}function oS(t){return Math.sign(t)*t*t}function oj(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function oE(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function oA(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function oP(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}b=(g=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thousands?ot:(e=oe.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?ot:(r=oe.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),l=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function p(t){var e=(t=i5(t)).fill,n=t.align,r=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,b=t.type;"n"===b?(y=!0,b="g"):i9[b]||(void 0===v&&(v=12),g=!0,b="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var x="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?a:/[%p]/.test(b)?l:"",O=i9[b],S=/[defgprs%]/.test(b);function j(t){var o,a,l,p=x,j=w;if("c"===b)j=O(t)+j,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:O(Math.abs(t),v),g&&(t=function(t){e:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==r&&(E=!1),p=(E?"("===r?r:s:"-"===r||"("===r?"":r)+p,j=("s"===b?on[8+m/3]:"")+j+(E&&"("===r?")":""),S){for(o=-1,a=t.length;++o(l=t.charCodeAt(o))||l>57){j=(46===l?c+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}}y&&!h&&(t=i(t,1/0));var A=p.length+t.length+j.length,P=A>1)+p+t+j+P.slice(A);break;default:t=P+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:p,formatPrefix:function(t,e){var n=p(((t=i5(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(i7(e)/3))),i=Math.pow(10,-r),o=on[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,x=g.formatPrefix;let ok=new Date,oM=new Date;function oT(t,e,n,r){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{let e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{let a;let c=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n0))return c;do c.push(a=new Date(+n)),e(n,o),t(n);while(aoT(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}}),n&&(i.count=(e,r)=>(ok.setTime(+e),oM.setTime(+r),t(ok),t(oM),Math.floor(n(ok,oM))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let o_=oT(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);o_.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?oT(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):o_:null,o_.range;let oC=oT(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());oC.range;let oI=oT(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());oI.range;let oD=oT(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());oD.range;let oN=oT(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());oN.range;let oB=oT(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());oB.range;let oL=oT(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);oL.range;let oR=oT(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);oR.range;let oz=oT(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function o$(t){return oT(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}oz.range;let oU=o$(0),oF=o$(1),oW=o$(2),oq=o$(3),oH=o$(4),oV=o$(5),oX=o$(6);function oZ(t){return oT(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}oU.range,oF.range,oW.range,oq.range,oH.range,oV.range,oX.range;let oG=oZ(0),oY=oZ(1),oK=oZ(2),oJ=oZ(3),oQ=oZ(4),o0=oZ(5),o1=oZ(6);oG.range,oY.range,oK.range,oJ.range,oQ.range,o0.range,o1.range;let o2=oT(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());o2.range;let o3=oT(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());o3.range;let o5=oT(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());o5.every=t=>isFinite(t=Math.floor(t))&&t>0?oT(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,o5.range;let o4=oT(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function o6(t,e,n,r,i,o){let a=[[oC,1,1e3],[oC,5,5e3],[oC,15,15e3],[oC,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function c(e,n,r){let i=Math.abs(n-e)/r,o=r9(([,,t])=>t).right(a,i);if(o===a.length)return t.every(r6(e/31536e6,n/31536e6,r));if(0===o)return o_.every(Math.max(r6(e,n,r),1));let[c,u]=a[i/a[o-1][2]isFinite(t=Math.floor(t))&&t>0?oT(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,o4.range;let[o7,o8]=o6(o4,o3,oG,oz,oB,oD),[o9,at]=o6(o5,o2,oU,oL,oN,oI);function ae(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function an(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ar(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ai={"-":"",_:" ",0:"0"},ao=/^\s*\d+/,aa=/^%/,ac=/[\\^$*+?|[\]().{}]/g;function au(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),e]))}function ap(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ah(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ad(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ay(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function av(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function am(t,e,n){var r=ao.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ag(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ab(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ax(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function aw(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function aO(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function aS(t,e,n){var r=ao.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function aj(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function aE(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function aA(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function aP(t,e,n){var r=ao.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ak(t,e,n){var r=ao.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function aM(t,e,n){var r=aa.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function aT(t,e,n){var r=ao.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function a_(t,e,n){var r=ao.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function aC(t,e){return au(t.getDate(),e,2)}function aI(t,e){return au(t.getHours(),e,2)}function aD(t,e){return au(t.getHours()%12||12,e,2)}function aN(t,e){return au(1+oL.count(o5(t),t),e,3)}function aB(t,e){return au(t.getMilliseconds(),e,3)}function aL(t,e){return aB(t,e)+"000"}function aR(t,e){return au(t.getMonth()+1,e,2)}function az(t,e){return au(t.getMinutes(),e,2)}function a$(t,e){return au(t.getSeconds(),e,2)}function aU(t){var e=t.getDay();return 0===e?7:e}function aF(t,e){return au(oU.count(o5(t)-1,t),e,2)}function aW(t){var e=t.getDay();return e>=4||0===e?oH(t):oH.ceil(t)}function aq(t,e){return t=aW(t),au(oH.count(o5(t),t)+(4===o5(t).getDay()),e,2)}function aH(t){return t.getDay()}function aV(t,e){return au(oF.count(o5(t)-1,t),e,2)}function aX(t,e){return au(t.getFullYear()%100,e,2)}function aZ(t,e){return au((t=aW(t)).getFullYear()%100,e,2)}function aG(t,e){return au(t.getFullYear()%1e4,e,4)}function aY(t,e){var n=t.getDay();return au((t=n>=4||0===n?oH(t):oH.ceil(t)).getFullYear()%1e4,e,4)}function aK(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+au(e/60|0,"0",2)+au(e%60,"0",2)}function aJ(t,e){return au(t.getUTCDate(),e,2)}function aQ(t,e){return au(t.getUTCHours(),e,2)}function a0(t,e){return au(t.getUTCHours()%12||12,e,2)}function a1(t,e){return au(1+oR.count(o4(t),t),e,3)}function a2(t,e){return au(t.getUTCMilliseconds(),e,3)}function a3(t,e){return a2(t,e)+"000"}function a5(t,e){return au(t.getUTCMonth()+1,e,2)}function a4(t,e){return au(t.getUTCMinutes(),e,2)}function a6(t,e){return au(t.getUTCSeconds(),e,2)}function a7(t){var e=t.getUTCDay();return 0===e?7:e}function a8(t,e){return au(oG.count(o4(t)-1,t),e,2)}function a9(t){var e=t.getUTCDay();return e>=4||0===e?oQ(t):oQ.ceil(t)}function ct(t,e){return t=a9(t),au(oQ.count(o4(t),t)+(4===o4(t).getUTCDay()),e,2)}function ce(t){return t.getUTCDay()}function cn(t,e){return au(oY.count(o4(t)-1,t),e,2)}function cr(t,e){return au(t.getUTCFullYear()%100,e,2)}function ci(t,e){return au((t=a9(t)).getUTCFullYear()%100,e,2)}function co(t,e){return au(t.getUTCFullYear()%1e4,e,4)}function ca(t,e){var n=t.getUTCDay();return au((t=n>=4||0===n?oQ(t):oQ.ceil(t)).getUTCFullYear()%1e4,e,4)}function cc(){return"+0000"}function cu(){return"%"}function cl(t){return+t}function cs(t){return Math.floor(+t/1e3)}function cf(t){return new Date(t)}function cp(t){return t instanceof Date?+t:+new Date(+t)}function ch(t,e,n,r,i,o,a,c,u,l){var s=i2(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(u(t)1)for(var n,r,i,o=1,a=t[e[0]],c=a.length;o=0;)n[e]=e;return n}function cE(t,e){return t[e]}function cA(t){let e=[];return e.key=t,e}O=(w=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=as(i),s=af(i),f=as(o),p=af(o),h=as(a),d=af(a),y=as(c),v=af(c),m=as(u),g=af(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:aC,e:aC,f:aL,g:aZ,G:aY,H:aI,I:aD,j:aN,L:aB,m:aR,M:az,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:cl,s:cs,S:a$,u:aU,U:aF,V:aq,w:aH,W:aV,x:null,X:null,y:aX,Y:aG,Z:aK,"%":cu},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:aJ,e:aJ,f:a3,g:ci,G:ca,H:aQ,I:a0,j:a1,L:a2,m:a5,M:a4,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:cl,s:cs,S:a6,u:a7,U:a8,V:ct,w:ce,W:cn,x:null,X:null,y:cr,Y:co,Z:cc,"%":cu},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:aO,e:aO,f:ak,g:ag,G:am,H:aj,I:aj,j:aS,L:aP,m:aw,M:aE,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:ax,Q:aT,s:a_,S:aA,u:ah,U:ad,V:ay,w:ap,W:av,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:ag,Y:am,Z:ab,"%":aM};function O(t,e){return function(n){var r,i,o,a=[],c=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=an(ar(o.y,0,1))).getUTCDay())>4||0===i?oY.ceil(r):oY(r),r=oR.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=ae(ar(o.y,0,1))).getDay())>4||0===i?oF.ceil(r):oF(r),r=oL.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?an(ar(o.y,0,1)).getUTCDay():ae(ar(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,an(o)):ae(o)}}function j(t,e,n,r){for(var i,o,a=0,c=e.length,u=n.length;a=u)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=w[(i=e.charAt(a++))in ai?e.charAt(a++):i])||(r=o(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,w.parse,S=w.utcFormat,w.utcParse;var cP=n(47766),ck=n.n(cP),cM=n(89770),cT=n.n(cM),c_=n(73720),cC=n.n(c_),cI=n(60229),cD=n.n(cI),cN=n(11431),cB=n.n(cN);function cL(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=e?n.apply(void 0,i):t(e-a,cU(function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=Array(e);nr&&(i=r,o=n),[i,o]}function c0(t,e,n){if(t.lte(0))return new(cB())(0);var r=cZ.getDigitCount(t.toNumber()),i=new(cB())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new(cB())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new(cB())(Math.ceil(c))}function c1(t,e,n){var r=1,i=new(cB())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(cB())(10).pow(cZ.getDigitCount(t)-1),i=new(cB())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(cB())(Math.floor(t)))}else 0===t?i=new(cB())(Math.floor((e-1)/2)):n||(i=new(cB())(Math.floor(t)));var a=Math.floor((e-1)/2);return cH(cq(function(t){return i.add(new(cB())(t-a).mul(r)).toNumber()}),cW)(0,e)}var c2=cX(function(t){var e=cY(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),c=cY(cQ([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(cG(cW(0,i-1).map(function(){return 1/0}))):[].concat(cG(cW(0,i-1).map(function(){return-1/0})),[l]);return n>r?cV(s):s}if(u===l)return c1(u,i,o);var f=function t(e,n,r,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-e)/(r-1)))return{step:new(cB())(0),tickMin:new(cB())(0),tickMax:new(cB())(0)};var c=c0(new(cB())(n).sub(e).div(r-1),i,a),u=Math.ceil((o=e<=0&&n>=0?new(cB())(0):(o=new(cB())(e).add(n).div(2)).sub(new(cB())(o).mod(c))).sub(e).div(c).toNumber()),l=Math.ceil(new(cB())(n).sub(o).div(c).toNumber()),s=u+l+1;return s>r?t(e,n,r,i,a+1):(s0?l+(r-s):l,u=n>0?u:u+(r-s)),{step:c,tickMin:o.sub(new(cB())(u).mul(c)),tickMax:o.add(new(cB())(l).mul(c))})}(u,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=cZ.rangeStep(h,d.add(new(cB())(.1).mul(p)),p);return n>r?cV(y):y});cX(function(t){var e=cY(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),c=cY(cQ([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[n,r];if(u===l)return c1(u,i,o);var s=c0(new(cB())(l).sub(u).div(a-1),o,0),f=cH(cq(function(t){return new(cB())(u).add(new(cB())(t).mul(s)).toNumber()}),cW)(0,a).filter(function(t){return t>=u&&t<=l});return n>r?cV(f):f});var c3=cX(function(t,e){var n=cY(t,2),r=n[0],i=n[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=cY(cQ([r,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=c0(new(cB())(u).sub(c).div(Math.max(e,2)-1),o,0),s=[].concat(cG(cZ.rangeStep(new(cB())(c),new(cB())(u).sub(new(cB())(.99).mul(l)),l)),[u]);return r>i?cV(s):s});function c5(t,e){if(!t)throw Error("Invariant failed")}var c4=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c6(){return(c6=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,c4),!1);"x"===t.direction&&"number"!==c.type&&c5(!1);var s=o.map(function(t){var o,s,f=a(t,i),p=f.x,h=f.y,d=f.value,y=f.errorVal;if(!y)return null;var v=[];if(Array.isArray(y)){var m=function(t){if(Array.isArray(t))return t}(y)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{for(o=(n=n.call(t)).next;!(u=(r=o.call(n)).done)&&(c.push(r.value),2!==c.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(y,2)||function(t,e){if(t){if("string"==typeof t)return c7(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c7(t,2)}}(y,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=m[0],s=m[1]}else o=s=y;if("vertical"===n){var g=c.scale,b=h+e,x=b+r,w=b-r,O=g(d-o),S=g(d+s);v.push({x1:S,y1:x,x2:S,y2:w}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:x,x2:O,y2:w})}else if("horizontal"===n){var j=u.scale,E=p+e,P=E-r,k=E+r,M=j(d-o),T=j(d+s);v.push({x1:P,y1:T,x2:k,y2:T}),v.push({x1:E,y1:M,x2:E,y2:T}),v.push({x1:P,y1:M,x2:k,y2:M})}return A.createElement(nY,c6({className:"recharts-errorBar",key:"bar-".concat(v.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},l),v.map(function(t){return A.createElement("line",c6({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return A.createElement(nY,{className:"recharts-errorBars"},s)}c8.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},c8.displayName="ErrorBar";var c9=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ut),s=i||{width:n,height:r,x:0,y:0},f=(0,em.Z)("recharts-surface",o);return A.createElement("svg",ue({},nT(l,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,u),e)}let ur=Math.cos,ui=Math.sin,uo=Math.sqrt,ua=Math.PI,uc=2*ua;var uu={draw(t,e){let n=uo(e/ua);t.moveTo(n,0),t.arc(0,0,n,0,uc)}};let ul=uo(1/3),us=2*ul,uf=ui(ua/10)/ui(7*ua/10),up=ui(uc/10)*uf,uh=-ur(uc/10)*uf,ud=uo(3),uy=uo(3)/2,uv=1/uo(12),um=(uv/2+1)*3;function ug(t){return(ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}uo(3),uo(3);var ub=["type","size","sizeType"];function ux(){return(ux=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ub)),{},{type:r,size:o,sizeType:c}),l=u.className,s=u.cx,f=u.cy,p=nT(u,!0);return s===+s&&f===+f&&o===+o?A.createElement("path",ux({},p,{className:(0,em.Z)("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(f,")"),d:(e=uS["symbol".concat(eG()(r))]||uu,(function(t,e){let n=null,r=eW(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:eL(t||uu),e="function"==typeof e?e:eL(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:eL(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i})().type(e).size(uE(o,c,r))())})):null};function uP(t){return(uP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uk(){return(uk=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var p=e.inactive?a:e.color;return A.createElement("li",uk({className:s,style:u,key:"legend-item-".concat(n)},e5(t.props,e,n)),A.createElement(un,{width:r,height:r,viewBox:c,style:l},t.renderIcon(e)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,e,n):f))})}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;return e&&e.length?A.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],function(t,e){for(var n=0;n1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?uF({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),uF(uF({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=uF(uF({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return A.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if("function"==typeof t)return A.createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,u$);return A.createElement(uN,n)}(n,uF(uF({},this.props),{},{payload:uR(c,a,uY)})))}}],n=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&na(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],e&&uW(r.prototype,e),n&&uW(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function uJ(t){return(uJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u0(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var c=i.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,s=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if(ni(s-l)!==ni(f-s)){var h=[];if(ni(f-s)===ni(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){o=r[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){o=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o},le=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},ln=function(t){var e=t.barSize,n=t.totalSize,r=t.stackGroups,i=void 0===r?{}:r;if(!i)return{};for(var o={},a=Object.keys(i),c=0,u=a.length;c=0});if(v&&v.length){var m=v[0].props.barSize,g=v[0].props[y];o[g]||(o[g]=[]);var b=ed()(m)?e:m;o[g].push({item:v[0],stackList:v.slice(1),barSize:ed()(b)?void 0:ns(b,n,0)})}}return o},lr=function(t){var e,n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,c=t.maxBarSize,u=a.length;if(u<1)return null;var l=ns(n,i,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/u,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(u-1)*l)>=i&&(h-=(u-1)*l,l=0),h>=i&&p>0&&(f=!0,p*=.9,h=u*p);var d={offset:((i-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},r=[].concat(u6(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:d})}),r},s)}else{var y=ns(r,i,0,!0);i-2*y-(u-1)*l<=0&&(l=0);var v=(i-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=c===+c?Math.min(v,c):v;e=a.reduce(function(t,e,n){var r=[].concat(u6(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:r[r.length-1].position})}),r},s)}return e},li=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,c=u1({children:i,legendWidth:o-(a.left||0)-(a.right||0)});if(c){var u=r||{},l=u.width,s=u.height,f=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&na(t[f]))return u5(u5({},t),{},u4({},f,t[f]+(l||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&na(t[p]))return u5(u5({},t),{},u4({},p,t[p]+(s||0)))}return t},lo=function(t,e,n,r,i){var o=nE(e.props.children,c8).filter(function(t){var e;return e=t.props.direction,!!ed()(i)||("horizontal"===r?"yAxis"===i:"vertical"===r||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(o&&o.length){var a=o.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=u8(e,n);if(ed()(r))return t;var i=Array.isArray(r)?[cT()(r),ck()(r)]:[r,r],o=a.reduce(function(t,n){var r=u8(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},la=function(t,e,n,r,i){var o=e.map(function(e){return lo(t,e,n,i,r)}).filter(function(t){return!ed()(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},lc=function(t,e,n,r,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===n&&o&&lo(t,e,o,r)||u9(t,o,n,i)});if("number"===n)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var n=0,r=e.length;n=2?2*ni(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:r(i?i.indexOf(t):t)+u,value:t,offset:u}}).filter(function(t){return!ne()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+u,value:t,offset:u}}):r.domain().map(function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}})},lf=new WeakMap,lp=function(t,e){if("function"!=typeof e)return t;lf.has(t)||lf.set(t,new WeakMap);var n=lf.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},lh=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:rJ(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:oo(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:rQ(),realScaleType:"point"}:"category"===i?{scale:rJ(),realScaleType:"band"}:{scale:oo(),realScaleType:"linear"};if(e8()(r)){var c="scale".concat(eG()(r));return{scale:(j[c]||rQ)(),realScaleType:j[c]?c:"point"}}return ep()(r)?{scale:r}:{scale:rQ(),realScaleType:"point"}},ld=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),c=t(e[n-1]);(ao||co)&&t.domain([e[0],e[n-1]])}},ly=function(t,e){if(!t)return null;for(var n=0,r=t.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},lg=function(t,e,n){var r=e.map(function(t){return t.props.dataKey}),i=lm[n];return(function(){var t=eL([]),e=cj,n=cS,r=cE;function i(i){var o,a,c=Array.from(t.apply(this,arguments),cA),u=c.length,l=-1;for(let t of i)for(o=0,++l;o=0?0:i<0?i:r}return n[0]},lj=function(t,e){var n=t.props.stackId;if(nc(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null},lE=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i].stackedData.reduce(function(t,r){var i=r.slice(e,n+1).reduce(function(t,e){return[cT()(e.concat([t[0]]).filter(na)),ck()(e.concat([t[1]]).filter(na))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},lA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lk=function(t,e,n){if(ep()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(na(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(lA.test(t[0])){var i=+lA.exec(t[0])[1];r[0]=e[0]-i}else ep()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(na(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(lP.test(t[1])){var o=+lP.exec(t[1])[1];r[1]=e[1]+o}else ep()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},lM=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=cD()(e,function(t){return t.coordinate}),o=1/0,a=1,c=i.length;at.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var l$=function(t){return Array.isArray(t.value)?nJ()(t.value):t.value};function lU(t){var e=t.valueAccessor,n=void 0===e?l$:e,r=lz(t,lI),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=lz(r,lD);return i&&i.length?A.createElement(nY,{className:"recharts-label-list"},i.map(function(t,e){var r=ed()(o)?n(t,e):u8(t&&t.payload,o),i=ed()(c)?{}:{id:"".concat(c,"-").concat(e)};return A.createElement(rW,lB({},nT(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:rW.parseViewBox(ed()(a)?t:lR(lR({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))})):null}lU.displayName="LabelList",lU.renderCallByParent=function(t,e){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=nE(t.children,lU).map(function(t,n){return(0,A.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return r?[(n=t.label)?!0===n?A.createElement(lU,{key:"labelList-implicit",data:e}):A.isValidElement(n)||ep()(n)?A.createElement(lU,{key:"labelList-implicit",data:e,content:n}):eK()(n)?A.createElement(lU,lB({data:e},n,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return lN(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return lN(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lN(t,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i};var lF=["type","layout","connectNulls","ref"];function lW(t){return(lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lq(){return(lq=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);na){u=[].concat(lX(i.slice(0,l)),[a-s]);break}var f=u.length%2==0?[0,c]:[c];return[].concat(lX(r.repeat(i,Math.floor(e/o))),lX(u),f).map(function(t){return"".concat(t,"px")}).join(", ")}),l0(lJ(t),"id",nl("recharts-line-")),l0(lJ(t),"pathRef",function(e){t.mainCurve=e}),l0(lJ(t),"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),l0(lJ(t),"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lQ(t,e)}(r,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,a=n.layout,c=nE(n.children,c8);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:u8(t.payload,e)}};return A.createElement(nY,{clipPath:t?"url(#clipPath-".concat(e,")"):null},c.map(function(t){return A.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})}))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=nT(this.props,!1),l=nT(o,!0),s=a.map(function(t,e){var n=lV(lV(lV({key:"dot-".concat(e),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return r.renderDotItem(o,n)}),f={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return A.createElement(nY,lq({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls,u=lV(lV(lV({},nT((i.ref,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(i,lF)),!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:o,layout:a,connectNulls:c});return A.createElement(nH,lq({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,d=this.state,y=d.prevPoints,v=d.totalLength;return A.createElement(tW,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var a,c=r.t;if(y){var u=y.length/i.length,l=i.map(function(t,e){var n=Math.floor(e*u);if(y[n]){var r=y[n],i=nh(r.x,t.x),o=nh(r.y,t.y);return lV(lV({},t),{},{x:i(c),y:o(c)})}if(f){var a=nh(2*p,t.x),l=nh(h/2,t.y);return lV(lV({},t),{},{x:a(c),y:l(c)})}return lV(lV({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(l,t,e)}var s=nh(0,v)(c);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});a=n.getStrokeDasharray(s,v,d)}else a=n.generateSimpleStrokeDasharray(v,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:a})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!ev()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=(0,em.Z)("recharts-line",o),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,x=ed()(h)?this.id:h,w=null!==(t=nT(r,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=w.r,S=w.strokeWidth,j=(r&&"object"===nb(r)&&"cx"in r&&"cy"in r&&"r"in r?r:{}).clipDot,E=void 0===j||j,P=2*(void 0===O?3:O)+(void 0===S?2:S);return A.createElement(nY,{className:v},m||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(x)},A.createElement("rect",{x:m?l:l-s/2,y:g?u:u-f/2,width:m?s:2*s,height:g?f:2*f})),!E&&A.createElement("clipPath",{id:"clipPath-dots-".concat(x)},A.createElement("rect",{x:l-P/2,y:u-P/2,width:s+P,height:f+P}))):null,!y&&this.renderCurve(b,x),this.renderErrorBar(b,x),(y||r)&&this.renderDots(b,E,x),(!p||d)&&lU.renderCallByParent(this.props,i))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(lX(t),[0]):t,r=[],i=0;it.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+n-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+c*s[1])),o+="L ".concat(t+n,",").concat(e+r-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-u*s[2],",").concat(e+r)),o+="L ".concat(t+u*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n,",").concat(e+c*p,"\n L ").concat(t+n,",").concat(e+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+r-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},sf=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,c=e.height;return!!(Math.abs(a)>0&&Math.abs(c)>0)&&n>=Math.min(i,i+a)&&n<=Math.max(i,i+a)&&r>=Math.min(o,o+c)&&r<=Math.max(o,o+c)},sp={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sh=function(t){var e,n=sl(sl({},sp),t),r=(0,A.useRef)(),i=function(t){if(Array.isArray(t))return t}(e=(0,A.useState)(-1))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{for(o=(n=n.call(t)).next;!(u=(r=o.call(n)).done)&&(c.push(r.value),2!==c.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,2)||function(t,e){if(t){if("string"==typeof t)return sc(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1];(0,A.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&a(t)}catch(t){}},[]);var c=n.x,u=n.y,l=n.width,s=n.height,f=n.radius,p=n.className,h=n.animationEasing,d=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,m=n.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||s!==+s||0===l||0===s)return null;var g=(0,em.Z)("recharts-rectangle",p);return m?A.createElement(tW,{canBegin:o>0,from:{width:l,height:s,x:c,y:u},to:{width:l,height:s,x:c,y:u},duration:d,animationEasing:h,isActive:m},function(t){var e=t.width,i=t.height,a=t.x,c=t.y;return A.createElement(tW,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:d,isActive:v,easing:h},A.createElement("path",sa({},nT(n,!0),{className:g,d:ss(a,c,e,i,f),ref:r})))}):A.createElement("path",sa({},nT(n,!0),{className:g,d:ss(c,u,l,s,f)}))};function sd(t){return(sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sy(){return(sy=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:c,y:u},to:{upperWidth:l,lowerWidth:s,height:f,x:c,y:u},duration:d,animationEasing:h,isActive:v},function(t){var e=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return A.createElement(tW,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:d,easing:h},A.createElement("path",sy({},nT(n,!0),{className:m,d:sb(c,u,e,i,a),ref:r})))}):A.createElement("g",null,A.createElement("path",sy({},nT(n,!0),{className:m,d:sb(c,u,l,s,f)})))};function sO(t){return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sS(){return(sS=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(a>u),",\n ").concat(s.x,",").concat(s.y,"\n ");if(i>0){var p=rk(n,r,i,a),h=rk(n,r,i,u);f+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(c)>180),",").concat(+(a<=u),",\n ").concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},sk=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=ni(l-u),f=sA({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=sA({cx:e,cy:n,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):sP({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=sA({cx:e,cy:n,radius:r,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=sA({cx:e,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=E.circleTangency,P=E.lineTangency,k=E.theta,M=c?Math.abs(u-l):Math.abs(u-l)-j-k;if(M<0&&0===o)return"".concat(x,"L").concat(e,",").concat(n,"Z");x+="L".concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(n,"Z");return x},sM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sT=function(t){var e,n=sE(sE({},sM),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,c=n.cornerRadius,u=n.forceCornerRadius,l=n.cornerIsExternal,s=n.startAngle,f=n.endAngle,p=n.className;if(a0&&360>Math.abs(s-f)?sk({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):sP({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:f}),A.createElement("path",sS({},nT(n,!0),{className:h,d:e,role:"img"}))},s_=["option","shapeType","propTransformer","activeClassName","isActive"];function sC(t){return(sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function sD(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,s_);if((0,A.isValidElement)(n))e=(0,A.cloneElement)(n,sD(sD({},c),(0,A.isValidElement)(n)?n.props:n));else if(ep()(n))e=n(c);else if(sn()(n)&&!si()(n)){var u=(void 0===i?function(t,e){return sD(sD({},e),t)}:i)(n,c);e=A.createElement(sN,{shapeType:r,elementProps:u})}else e=A.createElement(sN,{shapeType:r,elementProps:c});return a?A.createElement(nY,{className:void 0===o?"recharts-active-shape":o},e):e}function sL(t,e){return null!=e&&"trapezoids"in t.props}function sR(t,e){return null!=e&&"sectors"in t.props}function sz(t,e){return null!=e&&"points"in t.props}function s$(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function sU(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function sF(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}var sW=["x","y"];function sq(t){return(sq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sH(){return(sH=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,sW),o=parseInt("".concat(n),10),a=parseInt("".concat(r),10),c=parseInt("".concat(e.height||i.height),10),u=parseInt("".concat(e.width||i.width),10);return sX(sX(sX(sX(sX({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:c,width:u,name:e.name,radius:e.radius})}function sG(t){return A.createElement(sB,sH({shapeType:"rectangle",propTransformer:sZ,activeClassName:"recharts-active-bar"},t))}var sY=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof t)return t;var i="number"==typeof n;return i?t(n,r):(i||c5(!1),e)}},sK=["value","background"];function sJ(t){return(sJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sQ(){return(sQ=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,sK);if(!a)return null;var u=s1(s1(s1(s1(s1({},c),{},{fill:"#eee"},a),o),e5(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return A.createElement(sG,sQ({option:t.props.background,isActive:n===i},u))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,a=n.layout,c=nE(n.children,c8);if(!c)return null;var u="vertical"===a?r[0].height/2:r[0].width/2,l=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:u8(t,e)}};return A.createElement(nY,{clipPath:t?"url(#clipPath-".concat(e,")"):null},c.map(function(t){return A.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!n||!n.length)return null;var h=this.state.isAnimationFinished,d=(0,em.Z)("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=ed()(p)?this.id:p;return A.createElement(nY,{className:d},y||v?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(g)},A.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,A.createElement(nY,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&lU.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&s2(r.prototype,e),n&&s2(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var n=0;n0&&Math.abs(b)0&&Math.abs(m)1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],e=[{key:"create",value:function(t){return new n(t)}}],t&&fe(n.prototype,t),e&&fe(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();fi(fc,"EPS",1e-4);var fu=function(t){var e=Object.keys(t).reduce(function(e,n){return fr(fr({},e),{},fi({},n,fc.create(t[n])))},{});return fr(fr({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return l7()(t,function(t,n){return e[n].apply(t,{bandAware:r,position:i})})},isInRange:function(t){return l9()(t,function(t,n){return e[n].isInRange(t)})}})},fl=function(t){var e=t.width,n=t.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r%180+180)%180*Math.PI/180,o=Math.atan(n/e);return Math.abs(i>o&&it.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&(t=fN()(t,v,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=w.current.getBoundingClientRect();return P(n.width,n.height),e.observe(w.current),function(){e.disconnect()}},[P,v]);var k=(0,A.useMemo)(function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;c9(no(c)||no(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",c,l),c9(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=no(c)?t:c,i=no(l)?e:l;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),c9(n>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,i,c,l,f,p,r);var o=!Array.isArray(d)&&(0,e9.isElement)(d)&&nw(d.type).endsWith("Chart");return A.Children.map(d,function(t){return(0,e9.isElement)(t)?(0,A.cloneElement)(t,fR({width:n,height:i},o?{style:fR({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t})},[r,d,l,h,p,f,j,c]);return A.createElement("div",{id:m?"".concat(m):void 0,className:(0,em.Z)("recharts-responsive-container",g),style:fR(fR({},void 0===x?{}:x),{},{width:c,height:l,minWidth:f,minHeight:p,maxHeight:h}),ref:w},k)}),fU=n(37105),fF=n.n(fU);function fW(t){return(fW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fq(){return(fq=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nu[r]+l?Math.max(s,u[r]):Math.max(f,u[r])}function f1(t){return(f1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f3(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,n,r,i,o,a,c,u,l,s,f,p,h,d,y,v,m,g,b=this,x=this.props,w=x.active,O=x.allowEscapeViewBox,S=x.animationDuration,j=x.animationEasing,E=x.children,P=x.coordinate,k=x.hasPayload,M=x.isAnimationActive,T=x.offset,_=x.position,C=x.reverseDirection,I=x.useTranslate3d,D=x.viewBox,N=x.wrapperStyle,B=(f=(t={allowEscapeViewBox:O,coordinate:P,offsetTopLeft:T,position:_,reverseDirection:C,tooltipBox:this.state.lastBoundingBox,useTranslate3d:I,viewBox:D}).allowEscapeViewBox,p=t.coordinate,h=t.offsetTopLeft,d=t.position,y=t.reverseDirection,v=t.tooltipBox,m=t.useTranslate3d,g=t.viewBox,v.height>0&&v.width>0&&p?(n=(e={translateX:l=f0({allowEscapeViewBox:f,coordinate:p,key:"x",offsetTopLeft:h,position:d,reverseDirection:y,tooltipDimension:v.width,viewBox:g,viewBoxDimension:g.width}),translateY:s=f0({allowEscapeViewBox:f,coordinate:p,key:"y",offsetTopLeft:h,position:d,reverseDirection:y,tooltipDimension:v.height,viewBox:g,viewBoxDimension:g.height}),useTranslate3d:m}).translateX,r=e.translateY,u={transform:e.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")}):u=fQ,{cssProperties:u,cssClasses:(o=(i={translateX:l,translateY:s,coordinate:p}).coordinate,a=i.translateX,c=i.translateY,(0,em.Z)(fJ,fK(fK(fK(fK({},"".concat(fJ,"-right"),na(a)&&o&&na(o.x)&&a>=o.x),"".concat(fJ,"-left"),na(a)&&o&&na(o.x)&&a=o.y),"".concat(fJ,"-top"),na(c)&&o&&na(o.y)&&c0;return A.createElement(pt,{allowEscapeViewBox:i,animationDuration:o,animationEasing:a,isAnimationActive:s,active:r,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:g},(t=pr(pr({},this.props),{},{payload:b}),A.isValidElement(c)?A.cloneElement(c,t):"function"==typeof c?A.createElement(c,t):A.createElement(fG,t)))}}],function(t,e){for(var n=0;n0&&e.handleDrag(t.changedTouches[0])}),pA(pj(e),"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})}),e.detachDragEndListener()}),pA(pj(e),"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),pA(pj(e),"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),pA(pj(e),"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),pA(pj(e),"handleSlideDragStart",function(t){var n=pM(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(pj(e),"startX"),endX:e.handleTravellerDragStart.bind(pj(e),"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pE(t,e)}(r,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=r.getIndexInRange(i,Math.min(e,n)),l=r.getIndexInRange(i,Math.max(e,n));return{startIndex:u-u%a,endIndex:l===c?c:l-l%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=u8(n[t],i,t);return ep()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+c-u-i,a+c-u-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=pM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,n=e.brushMoveStartX,r=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[r],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-n;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[r]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex,b=function(){var t=h.length-1;return"startX"===r&&(i>o?m%p==0:g%p==0)||io?g%p==0:m%p==0)||i>o&&g===t};this.setState(pA(pA({},r,a+y),"brushMoveStartX",t.pageX),function(){f&&b()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(-1!==l&&!(l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(pA({},e,s),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return A.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=A.Children.only(a);return u?A.cloneElement(u,{x:e,y:n,width:r,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n,i,o=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,y=Math.max(t,this.props.x),v=px(px({},nT(this.props,!1)),{},{x:y,y:c,width:u,height:l}),m=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[d])||void 0===i?void 0:i.name);return A.createElement(nY,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth;return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(t,e)+a,y:r,width:Math.max(Math.abs(e-t)-a,0),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return A.createElement(nY,{className:"recharts-brush-texts"},A.createElement(rS,pg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),A.createElement(rS,pg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},s),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,h=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!na(i)||!na(o)||!na(a)||!na(c)||a<=0||c<=0)return null;var v=(0,em.Z)("recharts-brush",n),m=1===A.Children.count(r),g=pv("userSelect","none");return A.createElement(nY,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||u)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,a=Math.floor(n+i/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),A.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return A.isValidElement(t)?A.cloneElement(t,e):ep()(t)?t(e):r.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return px({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?pk({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=t.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);t[o]>e?i=o:r=o}return e>=t[i]?i:r}}],e&&pw(r.prototype,e),n&&pw(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function p_(t){return(p_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pC(){return(pC=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,p0));return na(n)&&na(i)&&na(s)&&na(p)&&na(a)&&na(u)?A.createElement("path",p1({},nT(d,!0),{className:(0,em.Z)("recharts-cross",h),d:"M".concat(n,",").concat(a,"v").concat(p,"M").concat(u,",").concat(i,"h").concat(s)})):null};function p5(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[rk(e,n,r,i),rk(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function p4(t){return(p4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p7(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ho(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ho=function(){return!!t})()}function ha(t){return(ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hc(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hu(t,e){return(hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function hl(t){return function(t){if(Array.isArray(t))return hf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hs(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hs(t,e){if(t){if("string"==typeof t)return hf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hf(t,e)}}function hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?o:t&&t.length&&na(r)&&na(i)?t.slice(r,i+1):[]};function hO(t){return"number"===t?[0,"auto"]:void 0}var hS=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=hw(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;return(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),l=o.dataKey&&!o.allowDuplicatedCategory?nd(void 0===s?a:s,o.dataKey,r):s&&s[n]||a[n])?[].concat(hl(i),[l_(c,l)]):i},[])},hj=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o="horizontal"===n?i.x:"vertical"===n?i.y:"centric"===n?i.angle:i.radius,a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=lt(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=hS(t,e,l,s),p=hx(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},hE=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=lu(l,i);return n.reduce(function(e,n){var h=n.props,d=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,g=h.scale,b=h.ticks,x=h.includeHidden,w=n.props[o];if(e[w])return e;var O=hw(t.data,{graphicalItems:r.filter(function(t){return t.props[o]===w}),dataStartIndex:c,dataEndIndex:u}),S=O.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&na(r)&&na(i))return!0}return!1})(n.props.domain,v,d)&&(A=lk(n.props.domain,null,v),p&&("number"===d||"auto"!==g)&&(k=u9(O,y,"category")));var j=hO(d);if(!A||0===A.length){var E,A,P,k,M,T=null!==(M=n.props.domain)&&void 0!==M?M:j;if(y){if(A=u9(O,y,d),"category"===d&&p){var _=np(A);m&&_?(P=A,A=fF()(0,S)):m||(A=lT(T,A,n).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(hl(t),[e])},[]))}else if("category"===d)A=m?A.filter(function(t){return""!==t&&!ed()(t)}):lT(T,A,n).reduce(function(t,e){return t.indexOf(e)>=0||""===e||ed()(e)?t:[].concat(hl(t),[e])},[]);else if("number"===d){var C=la(O,r.filter(function(t){return t.props[o]===w&&(x||!t.props.hide)}),y,i,l);C&&(A=C)}p&&("number"===d||"auto"!==g)&&(k=u9(O,y,"category"))}else A=p?fF()(0,S):a&&a[w]&&a[w].hasStack&&"number"===d?"expand"===f?[0,1]:lE(a[w].stackGroups,c,u):lc(O,r.filter(function(t){return t.props[o]===w&&(x||!t.props.hide)}),d,l,!0);"number"===d?(A=pH(s,A,w,i,b),T&&(A=lk(T,A,v))):"category"===d&&T&&A.every(function(t){return T.indexOf(t)>=0})&&(A=T)}return hh(hh({},e),{},hd({},w,hh(hh({},n.props),{},{axisType:i,domain:A,categoricalDomain:k,duplicateDomain:P,originalDomain:null!==(E=n.props.domain)&&void 0!==E?E:j,isCategorical:p,layout:l})))},{})},hA=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=hw(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=lu(l,i),d=-1;return n.reduce(function(t,e){var y,v=e.props[o],m=hO("number");return t[v]?t:(d++,y=h?fF()(0,p):a&&a[v]&&a[v].hasStack?pH(s,y=lE(a[v].stackGroups,c,u),v,i):pH(s,y=lk(m,lc(f,n.filter(function(t){return t.props[o]===v&&!t.props.hide}),"number",l),r.defaultProps.allowDataOverflow),v,i),hh(hh({},t),{},hd({},v,hh(hh({axisType:i},r.defaultProps),{},{hide:!0,orientation:e6()(hv,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))},{})},hP=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=nE(l,i),p={};return f&&f.length?p=hE(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=hA(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},hk=function(t){var e=nf(t),n=ls(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:cD()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:lM(e,n)}},hM=function(t){var e=t.children,n=t.defaultShowTooltip,r=nA(e,pT),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},hT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},h_=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,c=void 0===a?{}:a,u=n.width,l=n.height,s=n.children,f=n.margin||{},p=nA(s,pT),h=nA(s,uK),d=Object.keys(c).reduce(function(t,e){var n=c[e],r=n.orientation;return n.mirror||n.hide?t:hh(hh({},t),{},hd({},r,t[r]+n.width))},{left:f.left||0,right:f.right||0}),y=Object.keys(o).reduce(function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:hh(hh({},t),{},hd({},r,e6()(t,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=hh(hh({},y),d),m=v.bottom;p&&(v.bottom+=p.props.height||pT.defaultProps.height),h&&e&&(v=li(v,r,n,e));var g=u-v.left-v.right,b=l-v.top-v.bottom;return hh(hh({brushBottom:m},v),{},{width:Math.max(g,0),height:Math.max(b,0)})};function hC(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;it*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function hD(t){return(hD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hB(t){for(var e=1;e=2?ni(l[1].coordinate-l[0].coordinate):1,w=(r="width"===m,i=s.x,o=s.y,a=s.width,c=s.height,1===x?{start:r?i:o,end:r?i+a:o+c}:{start:r?i+a:o+c,end:r?i:o});return"equidistantPreserveStart"===h?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c;s<=a.length;)if(o=function(){var e,o=null==r?void 0:r[l];if(void 0===o)return{v:hC(r,s)};var a=l,p=function(){return void 0===e&&(e=n(o,a)),e},h=o.coordinate,d=0===l||hI(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),l+=s)}())return o.v;return[]}(x,w,b,l,f):("preserveStart"===h||"preserveStartEnd"===h?function(t,e,n,r,i,o){var a=(r||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=r[c-1],f=n(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=hB(hB({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),hI(t,s.tickCoord,function(){return f},u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=hB(hB({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var r,o=a[e],c=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=hB(hB({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=hB(hB({},o),{},{tickCoord:o.coordinate});hI(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=hB(hB({},o),{},{isShow:!0}))},y=0;y0?l.coordinate-f*t:l.coordinate})}else o[e]=l=hB(hB({},l),{},{tickCoord:l.coordinate});hI(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=hB(hB({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(x,w,b,l,f)).filter(function(t){return t.isShow})}var hR=["viewBox"],hz=["viewBox"],h$=["ticks"];function hU(t){return(hU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hF(){return(hF=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function hV(t,e){for(var n=0;n0?this.props:l)),r<=0||i<=0||!s||!s.length)?null:A.createElement(nY,{className:(0,em.Z)("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),rW.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,n){return A.isValidElement(t)?A.cloneElement(t,e):ep()(t)?t(e):A.createElement(rS,hF({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],e&&hV(r.prototype,e),n&&hV(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.Component);function hQ(){return(hQ=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&(j=Math.min((t||0)-(E[e-1]||0),j))}),Number.isFinite(j)){var A=j/S,P="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(u=A*P/2),"no-gap"===y.padding){var k=ns(t.barCategoryGap,A*P),M=A*P/2;u=M-k-(M-k)/P*k}}}l="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:y.range,w&&(l=[l[1],l[0]]);var T=lh(y,i,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),ld(_);var I=lx(_,fr(fr({},y),{},{realScaleType:C}));"xAxis"===r?(d="top"===v&&!x||"bottom"===v&&x,p=n.left,h=s[O]-d*y.height):"yAxis"===r&&(d="left"===v&&!x||"right"===v&&x,p=s[O]-d*y.width,h=n.top);var D=fr(fr(fr({},y),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return D.bandSize=lM(D,I),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,fr(fr({},o),{},fi({},a,D))},{})}}).chartName,a=r.GraphicalChild,u=void 0===(c=r.defaultTooltipEventType)?"axis":c,s=void 0===(l=r.validateTooltipEventTypes)?["axis"]:l,f=r.axisComponents,p=r.legendContent,h=r.formatAxisMap,d=r.defaultProps,y=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,s=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=hT(l),y=d.numericAxisName,v=d.cateAxisName,m=!!n&&!!n.length&&n.some(function(t){var e=nw(t&&t.type);return e&&e.indexOf("Bar")>=0}),g=[];return n.forEach(function(n,d){var b=hw(t.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:c}),x=n.props,w=x.dataKey,O=x.maxBarSize,S=n.props["".concat(y,"Id")],j=n.props["".concat(v,"Id")],E=f.reduce(function(t,r){var i=e["".concat(r.axisType,"Map")],o=n.props["".concat(r.axisType,"Id")];i&&i[o]||"zAxis"===r.axisType||c5(!1);var a=i[o];return hh(hh({},t),{},hd(hd({},r.axisType,a),"".concat(r.axisType,"Ticks"),ls(a)))},{}),A=E[v],P=E["".concat(v,"Ticks")],k=r&&r[S]&&r[S].hasStack&&lj(n,r[S].stackGroups),M=nw(n.type).indexOf("Bar")>=0,T=lM(A,P),_=[],C=m&&ln({barSize:u,stackGroups:r,totalSize:"xAxis"===v?E[v].width:"yAxis"===v?E[v].height:void 0});if(M){var I,D,N=ed()(O)?h:O,B=null!==(I=null!==(D=lM(A,P,!0))&&void 0!==D?D:N)&&void 0!==I?I:0;_=lr({barGap:s,barCategoryGap:p,bandSize:B!==T?B:T,sizeList:C[j],maxBarSize:N}),B!==T&&(_=_.map(function(t){return hh(hh({},t),{},{position:hh(hh({},t.position),{},{offset:t.position.offset-B/2})})}))}var L=n&&n.type&&n.type.getComposedData;L&&g.push({props:hh(hh({},L(hh(hh({},E),{},{displayedData:b,props:t,dataKey:w,item:n,bandSize:T,barPosition:_,offset:i,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},hd(hd(hd({key:n.key||"item-".concat(d)},y,E[y]),v,E[v]),"animationId",o)),childIndex:nj(t.children).indexOf(n),item:n})}),g},v=function(t,e){var n=t.props,r=t.dataStartIndex,i=t.dataEndIndex,c=t.updateId;if(!nP({props:n}))return null;var u=n.children,l=n.layout,s=n.stackOffset,p=n.data,d=n.reverseStackOrder,v=hT(l),m=v.numericAxisName,g=v.cateAxisName,b=nE(u,a),x=lb(p,b,"".concat(m,"Id"),"".concat(g,"Id"),s,d),w=f.reduce(function(t,e){var o="".concat(e.axisType,"Map");return hh(hh({},t),{},hd({},o,hP(n,hh(hh({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&x,dataStartIndex:r,dataEndIndex:i}))))},{}),O=h_(hh(hh({},w),{},{props:n,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(w).forEach(function(t){w[t]=h(n,w[t],O,t.replace("Map",""),o)});var S=hk(w["".concat(g,"Map")]),j=y(n,hh(hh({},w),{},{dataStartIndex:r,dataEndIndex:i,updateId:c,graphicalItems:b,stackGroups:x,offset:O}));return hh(hh({formattedGraphicalItems:j,graphicalItems:b,offset:O,stackGroups:x},S),w)},i=function(t){var e;function n(t){var e,r,i,a,c;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),a=n,c=[t],a=ha(a),i=function(t,e){if(e&&("object"===he(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return hc(t)}(this,ho()?Reflect.construct(a,c||[],ha(this).constructor):a.apply(this,c)),hd(hc(i),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),hd(hc(i),"accessibilityManager",new pJ),hd(hc(i),"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(hh({legendBBox:t},v({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},hh(hh({},i.state),{},{legendBBox:t}))))}}),hd(hc(i),"handleReceiveSyncEvent",function(t,e,n){i.props.syncId===t&&(n!==i.eventEmitterSymbol||"function"==typeof i.props.syncMethod)&&i.applySyncEvent(e)}),hd(hc(i),"handleBrushChange",function(t){var e=t.startIndex,n=t.endIndex;if(e!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState(function(){return hh({dataStartIndex:e,dataEndIndex:n},v({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}}),hd(hc(i),"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var n=hh(hh({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;ep()(r)&&r(n,t)}}),hd(hc(i),"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),n=e?hh(hh({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;ep()(r)&&r(n,t)}),hd(hc(i),"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),hd(hc(i),"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),hd(hc(i),"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),hd(hc(i),"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;ep()(n)&&n(e,t)}),hd(hc(i),"handleOuterEvent",function(t){var e,n=nD(t),r=e6()(i.props,"".concat(n));n&&ep()(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)}),hd(hc(i),"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var n=hh(hh({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;ep()(r)&&r(n,t)}}),hd(hc(i),"handleMouseDown",function(t){var e=i.props.onMouseDown;ep()(e)&&e(i.getMouseInfo(t),t)}),hd(hc(i),"handleMouseUp",function(t){var e=i.props.onMouseUp;ep()(e)&&e(i.getMouseInfo(t),t)}),hd(hc(i),"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),hd(hc(i),"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),hd(hc(i),"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),hd(hc(i),"triggerSyncEvent",function(t){void 0!==i.props.syncId&&pX.emit(pZ,i.props.syncId,t,i.eventEmitterSymbol)}),hd(hc(i),"applySyncEvent",function(t){var e=i.props,n=e.layout,r=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(hh({dataStartIndex:a,dataEndIndex:c},v({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)s=r(h,t);else if("value"===r){s=-1;for(var d=0;d=0){if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=nd(h,S,s),P=d&&y&&nd(y,S,s)}else E=null==h?void 0:h[l],P=d&&y&&y[l];if(x||b){var j=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[(0,A.cloneElement)(t,hh(hh(hh({},r.props),w),{},{activeIndex:j})),null,null]}if(!ed()(E))return[O].concat(hl(i.renderActivePoints({item:r,activePoint:E,basePoint:P,childIndex:l,isRange:d})))}else{var E,P,k,M=(null!==(k=i.getItemByXY(i.state.activeCoordinate))&&void 0!==k?k:{graphicalItem:O}).graphicalItem,T=M.item,_=void 0===T?t:T,C=M.childIndex,I=hh(hh(hh({},r.props),w),{},{activeIndex:C});return[(0,A.cloneElement)(_,I),null,null]}}return d?[O,null,null]:[O,null]}),hd(hc(i),"renderCustomized",function(t,e,n){return(0,A.cloneElement)(t,hh(hh({key:"recharts-customized-".concat(n)},i.props),i.state))}),hd(hc(i),"renderMap",{CartesianGrid:{handler:hb,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:hb},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:hb},YAxis:{handler:hb},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:nl("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=fN()(i.triggeredAfterMouseMove,null!==(r=t.throttleDelay)&&void 0!==r?r:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hu(t,e)}(n,t),e=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,n=t.data,r=t.height,i=t.layout,o=nA(e,ps);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=hS(this.state,n,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+r)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=hh(hh({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(t){n_([nA(t.children,ps)],[nA(this.props.children,ps)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=nA(this.props.children,ps);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:u}return u}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},o=n.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var c=this.state,u=c.xAxisMap,l=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&l){var s=nf(u).scale,f=nf(l).scale,p=s&&s.invert?s.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return hh(hh({},i),{},{xValue:p,yValue:h})}var d=hj(this.state,this.props.data,this.props.layout,a);return d?hh(hh({},i),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;return u&&l?rC({x:i,y:o},nf(u)):null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=nA(t,ps),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),hh(hh({},e3(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pX.on(pZ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pX.removeListener(pZ,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var de=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,r=t.x,i=t.y,o=t.width,a=t.height;return A.createElement("rect",{x:r,y:i,width:o,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function dn(t,e){var n;if(A.isValidElement(t))n=A.cloneElement(t,e);else if(ep()(t))n=t(e);else{var r=e.x1,i=e.y1,o=e.x2,a=e.y2,c=e.key,u=nT(dt(e,h5),!1),l=(u.offset,dt(u,h4));n=A.createElement("line",h9({},l,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:c}))}return n}function dr(t){var e=t.x,n=t.width,r=t.horizontal,i=void 0===r||r,o=t.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(r,o){return dn(i,h8(h8({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o}))});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function di(t){var e=t.y,n=t.height,r=t.vertical,i=void 0===r||r,o=t.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(r,o){return dn(i,h8(h8({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o}))});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function da(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,i=t.y,o=t.width,a=t.height,c=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var l=c.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==l[0]&&l.unshift(0);var s=l.map(function(t,c){var u=l[c+1]?l[c+1]-t:i+a-t;if(u<=0)return null;var s=c%e.length;return A.createElement("rect",{key:"react-".concat(c),y:t,x:r,height:u,width:o,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function dc(t){var e=t.vertical,n=t.verticalFill,r=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var l=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==l[0]&&l.unshift(0);var s=l.map(function(t,e){var u=l[e+1]?l[e+1]-t:i+a-t;if(u<=0)return null;var s=e%n.length;return A.createElement("rect",{key:"react-".concat(e),x:t,y:o,width:u,height:c,stroke:"none",fill:n[s],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}var du=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return ll(hL(h8(h8(h8({},hJ.defaultProps),n),{},{ticks:ls(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},dl=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return ll(hL(h8(h8(h8({},hJ.defaultProps),n),{},{ticks:ls(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},ds={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function df(t){var e,n,r,i,o,a,c=fE(),u=fA(),l=(0,A.useContext)(fm),s=h8(h8({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:ds.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:ds.fill,horizontal:null!==(r=t.horizontal)&&void 0!==r?r:ds.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:ds.horizontalFill,vertical:null!==(o=t.vertical)&&void 0!==o?o:ds.vertical,verticalFill:null!==(a=t.verticalFill)&&void 0!==a?a:ds.verticalFill,x:na(t.x)?t.x:l.left,y:na(t.y)?t.y:l.top,width:na(t.width)?t.width:l.width,height:na(t.height)?t.height:l.height}),f=s.x,p=s.y,h=s.width,d=s.height,y=s.syncWithTicks,v=s.horizontalValues,m=s.verticalValues,g=nf((0,A.useContext)(fd)),b=fS();if(!na(h)||h<=0||!na(d)||d<=0||!na(f)||f!==+f||!na(p)||p!==+p)return null;var x=s.verticalCoordinatesGenerator||du,w=s.horizontalCoordinatesGenerator||dl,O=s.horizontalPoints,S=s.verticalPoints;if((!O||!O.length)&&ep()(w)){var j=v&&v.length,E=w({yAxis:b?h8(h8({},b),{},{ticks:j?v:b.ticks}):void 0,width:c,height:u,offset:l},!!j||y);c9(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h6(E),"]")),Array.isArray(E)&&(O=E)}if((!S||!S.length)&&ep()(x)){var P=m&&m.length,k=x({xAxis:g?h8(h8({},g),{},{ticks:P?m:g.ticks}):void 0,width:c,height:u,offset:l},!!P||y);c9(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h6(k),"]")),Array.isArray(k)&&(S=k)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(de,{fill:s.fill,fillOpacity:s.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height}),A.createElement(dr,h9({},s,{offset:l,horizontalPoints:O,xAxis:g,yAxis:b})),A.createElement(di,h9({},s,{offset:l,verticalPoints:S,xAxis:g,yAxis:b})),A.createElement(da,h9({},s,{horizontalPoints:O})),A.createElement(dc,h9({},s,{verticalPoints:S})))}df.displayName="CartesianGrid";var dp=n(15593),dh=n(45027),dd=n(73147),dy=n(50591),dv=n(15274),dm=n(63361),dg=n(66969),db=n(31831),dx=n(27011),dw=n(3380);function dO(t){return t?t.reduce((t,e)=>{let n=e.name.search(/\./);return n>=0?t[e.name.substring(n+1)]=e.label:t[e.name]=e.label,t},{}):{}}var dS={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};let dj={},dE=(0,dd.factory)((t,e)=>{let n=(0,dy.useProps)("ChartLegend",dj,t),{classNames:r,className:i,style:o,styles:a,unstyled:c,vars:u,payload:l,onHighlight:s,legendPosition:f,mod:p,series:h,showColor:d,centered:y,...v}=n,m=(0,dg.useStyles)({name:"ChartLegend",classes:dS,props:n,className:i,style:o,classNames:r,styles:a,unstyled:c});if(!l)return null;let g=l.filter(t=>"none"!==t.color).map(t=>{let e=t.dataKey.split(".").pop();return{...t,dataKey:e,payload:{...t.payload,name:e,dataKey:e}}}),b=dO(h),x=g.map((t,e)=>(0,E.jsxs)("div",{...m("legendItem"),onMouseEnter:()=>s(t.dataKey),onMouseLeave:()=>s(null),"data-without-color":!1===d||void 0,children:[(0,E.jsx)(dw.ColorSwatch,{color:t.color,size:12,...m("legendItemColor"),withShadow:!1}),(0,E.jsx)("p",{...m("legendItemName"),children:b[t.dataKey]||t.dataKey})]},e));return(0,E.jsx)(db.Box,{ref:e,mod:[{position:f,centered:y},p],...m("legend"),...v,children:x})});dE.displayName="@mantine/charts/ChartLegend";var dA={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItem:"m_3de8964e",tooltipItemColor:"m_b30369b5",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function dP(t,e){return"radial"===e||"scatter"===e?Array.isArray(t.value)?t.value[1]-t.value[0]:t.value:Array.isArray(t.payload[t.dataKey])?t.payload[t.dataKey][1]-t.payload[t.dataKey][0]:t.payload[t.name]}let dk={type:"area",showColor:!0},dM=(0,dd.factory)((t,e)=>{var n,r;let i=(0,dy.useProps)("ChartTooltip",dk,t),{classNames:o,className:a,style:c,styles:u,unstyled:l,vars:s,payload:f,label:p,unit:h,type:d,segmentId:y,mod:v,series:m,valueFormatter:g,showColor:b,...x}=i,w=(0,dv.useMantineTheme)(),O=(0,dg.useStyles)({name:"ChartTooltip",classes:dA,props:i,className:a,style:c,classNames:o,styles:u,unstyled:l});if(!f)return null;let S=function(t,e){let n=t.filter(t=>"none"!==t.fill||!t.color).map(t=>{let e=t.name.search(/\./);if(e>=0){let n=t.name.substring(0,e),r={...t.payload[n]},i=Object.entries(t.payload).reduce((t,e)=>{let[r,i]=e;return r===n?t:{...t,[r]:i}},{});return{...t,name:t.name.substring(e+1),payload:{...i,...r}}}return t});return e?n.filter(t=>t.name===e):n}(f,y),j="scatter"===d?null===(r=f[0])||void 0===r?void 0:null===(n=r.payload)||void 0===n?void 0:n.name:null,A=dO(m),P=p||j,k=S.map(t=>{var e;return(0,E.jsxs)("div",{"data-type":d,...O("tooltipItem"),children:[(0,E.jsxs)("div",{...O("tooltipItemBody"),children:[b&&(0,E.jsx)(dw.ColorSwatch,{color:(0,dh.getThemeColor)(t.color,w),size:12,...O("tooltipItemColor"),withShadow:!1}),(0,E.jsx)("div",{...O("tooltipItemName"),children:A[t.name]||t.name})]}),(0,E.jsxs)("div",{...O("tooltipItemData"),children:["function"==typeof g?g(dP(t,d)):dP(t,d),h||t.unit]})]},null!==(e=null==t?void 0:t.key)&&void 0!==e?e:t.name)});return(0,E.jsxs)(db.Box,{...O("tooltip"),mod:[{type:d},v],ref:e,...x,children:[P&&(0,E.jsx)("div",{...O("tooltipLabel"),children:P}),(0,E.jsx)("div",{...O("tooltipBody"),children:k})]})});dM.displayName="@mantine/charts/ChartTooltip";var dT={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"};let d_={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},dC=(0,dp.createVarsResolver)((t,e)=>{let{textColor:n,gridColor:r}=e;return{root:{"--chart-text-color":n?(0,dh.getThemeColor)(n,t):void 0,"--chart-grid-color":r?(0,dh.getThemeColor)(r,t):void 0}}}),dI=(0,dd.factory)((t,e)=>{let n=(0,dy.useProps)("LineChart",d_,t),{classNames:r,className:i,style:o,styles:a,unstyled:c,vars:u,data:l,withLegend:s,legendProps:f,series:p,onMouseLeave:h,dataKey:d,withTooltip:y,withXAxis:v,withYAxis:m,gridAxis:g,tickLine:b,xAxisProps:x,yAxisProps:w,unit:O,tooltipAnimationDuration:S,strokeDasharray:j,gridProps:P,tooltipProps:k,referenceLines:M,withDots:T,dotProps:_,activeDotProps:C,strokeWidth:I,lineChartProps:D,connectNulls:N,fillOpacity:B,curveType:L,orientation:R,dir:z,valueFormatter:$,children:U,lineProps:F,xAxisLabel:W,yAxisLabel:q,type:H,gradientStops:V,withRightYAxis:X,rightYAxisLabel:Z,rightYAxisProps:G,...Y}=n,K=(0,dv.useMantineTheme)(),[J,Q]=(0,A.useState)(null),tt=null!==J,{resolvedClassNames:te,resolvedStyles:tn}=(0,dm.useResolvedStylesApi)({classNames:r,styles:a,props:n}),tr=(0,dg.useStyles)({name:"LineChart",classes:dT,props:n,className:i,style:o,classNames:r,styles:a,unstyled:c,vars:u,varsResolver:dC}),ti=(0,dx.useId)(),to="line-chart-gradient-".concat(ti),ta=null==V?void 0:V.map(t=>(0,E.jsx)("stop",{offset:"".concat(t.offset,"%"),stopColor:(0,dh.getThemeColor)(t.color,K)},t.color)),tc=p.map(t=>{let e=(0,dh.getThemeColor)(t.color,K),n=tt&&J!==t.name;return(0,A.createElement)(l2,{...tr("line"),key:t.name,name:t.name,dataKey:t.name,dot:!!T&&{fillOpacity:n?0:1,strokeOpacity:n?0:1,strokeWidth:1,fill:"gradient"===H?"var(--mantine-color-gray-7)":e,stroke:"gradient"===H?"white":e,..._},activeDot:!!T&&{fill:"gradient"===H?"var(--mantine-color-gray-7)":e,stroke:"gradient"===H?"white":e,...C},fill:e,stroke:"gradient"===H?"url(#".concat(to,")"):e,strokeWidth:I,isAnimationActive:!1,fillOpacity:n?0:B,strokeOpacity:n?.5:B,connectNulls:N,type:L,strokeDasharray:t.strokeDasharray,yAxisId:t.yAxisId||"left",..."function"==typeof F?F(t):F})}),tu=null==M?void 0:M.map((t,e)=>{var n;let r=(0,dh.getThemeColor)(t.color,K);return(0,E.jsx)(fI,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:null!==(n=t.labelPosition)&&void 0!==n?n:"insideBottomLeft"},...tr("referenceLine")},e)}),tl={axisLine:!1,..."vertical"===R?{dataKey:d,type:"category"}:{type:"number"},tickLine:!!("none"!==g&&("y"===b||"xy"===b))&&{stroke:"currentColor"},allowDecimals:!0,unit:O,tickFormatter:$,...tr("axis")};return(0,E.jsx)(db.Box,{ref:e,...tr("root"),onMouseLeave:t=>{Q(null),null==h||h(t)},dir:z||"ltr",...Y,children:(0,E.jsx)(f$,{...tr("container"),children:(0,E.jsxs)(h3,{data:l,layout:R,margin:{bottom:W?30:void 0,left:q?10:void 0,right:q?5:void 0},...D,children:["gradient"===H&&(0,E.jsx)("defs",{children:(0,E.jsx)("linearGradient",{id:to,x1:"0",y1:"0",x2:"0",y2:"1",children:ta})}),s&&(0,E.jsx)(uK,{verticalAlign:"top",content:t=>(0,E.jsx)(dE,{payload:t.payload,onHighlight:Q,legendPosition:(null==f?void 0:f.verticalAlign)||"top",classNames:te,styles:tn,series:p,showColor:"gradient"!==H}),...f}),(0,E.jsxs)(h0,{hide:!v,..."vertical"===R?{type:"number"}:{dataKey:d},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!("none"!==g&&("x"===b||"xy"===b))&&{stroke:"currentColor"},minTickGap:5,...tr("axis"),...x,children:[W&&(0,E.jsx)(rW,{position:"insideBottom",offset:-20,fontSize:12,...tr("axisLabel"),children:W}),null==x?void 0:x.children]}),(0,E.jsxs)(h2,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!m,...tl,...w,children:[q&&(0,E.jsx)(rW,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...tr("axisLabel"),children:q}),null==w?void 0:w.children]}),(0,E.jsxs)(h2,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!X,...tl,...G,children:[Z&&(0,E.jsx)(rW,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...tr("axisLabel"),children:Z}),null==w?void 0:w.children]}),(0,E.jsx)(df,{strokeDasharray:j,vertical:"y"===g||"xy"===g,horizontal:"x"===g||"xy"===g,...tr("grid"),...P}),y&&(0,E.jsx)(ps,{animationDuration:S,isAnimationActive:0!==S,position:"vertical"===R?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:j},content:t=>{let{label:e,payload:n}=t;return(0,E.jsx)(dM,{label:e,payload:n,unit:O,classNames:te,styles:tn,series:p,valueFormatter:$,showColor:"gradient"!==H})},...k}),tc,tu,U]})})})});dI.displayName="@mantine/charts/LineChart",dI.classes=dT},51888:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});var r=n(2265);function i(t){let{mode:e="controlled",clearErrorOnChange:n=!0,initialValue:i,initialError:o=null,initialTouched:a=!1,onValueChange:c,validateOnChange:u=!1,validateOnBlur:l=!1,validate:s,resolveValidationError:f,type:p="input"}=t,[h,d]=(0,r.useState)(i),y=(0,r.useRef)(h),[v,m]=(0,r.useState)(0),[g,b]=(0,r.useState)(o||null),x=(0,r.useRef)(a||!1),[,w]=(0,r.useState)(x.current),[O,S]=(0,r.useState)(!1),j=(0,r.useMemo)(()=>f||(t=>t),[f]),E=(0,r.useCallback)(function(t){let{updateState:n="controlled"===e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x.current=t,n&&w(t)},[]),A=(0,r.useCallback)(async function(t){let{updateKey:r="uncontrolled"===e,updateState:i="controlled"===e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.current!==t&&(y.current=t,null==c||c(t),n&&null!==g&&b(null),i&&d(t),r&&m(t=>t+1),u&&_())},[g,n]),P=(0,r.useCallback)(()=>{A(i),b(null),E(!1)},[i]),k=(0,r.useCallback)(()=>y.current,[]),M=(0,r.useCallback)(()=>x.current,[]),T=(0,r.useCallback)(()=>y.current!==i,[i]),_=(0,r.useCallback)(async()=>{let t=null==s?void 0:s(y.current);if(!(t instanceof Promise))return b(t),t;S(!0);try{let e=await t;S(!1),b(e)}catch(e){S(!1);let t=j(e);return b(t),t}},[]);return{key:v,getValue:k,setValue:A,reset:P,getInputProps:function(){var t;let{withError:n=!0,withFocus:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={onChange:(t=t=>A(t,{updateKey:!1}),e=>{if(e){if("function"==typeof e)t(e);else if("object"==typeof e&&"nativeEvent"in e){let{currentTarget:n}=e;n instanceof HTMLInputElement?"checkbox"===n.type?t(n.checked):t(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&t(n.value)}else t(e)}else t(e)})};return n&&(i.error=g),"checkbox"===p?i["controlled"===e?"checked":"defaultChecked"]=y.current:i["controlled"===e?"value":"defaultValue"]=y.current,r&&(i.onFocus=()=>{E(!0)},i.onBlur=()=>{var t;(t=!!l)&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes("".replace(/[.][0-9]/g,".".concat("__MANTINE_FORM_INDEX__"))))&&_()}),i},isValidating:O,validate:_,error:g,setError:b,isTouched:M,isDirty:T,resetTouched:(0,r.useCallback)(()=>E(!1),[])}}},55487:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(2265),i={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */let o=(t,e,n,o)=>{let a=(0,r.forwardRef)((n,a)=>{let{color:c="currentColor",size:u=24,stroke:l=2,title:s,className:f,children:p,...h}=n;return(0,r.createElement)("svg",{ref:a,...i[t],width:u,height:u,className:["tabler-icon","tabler-icon-".concat(e),f].join(" "),..."filled"===t?{fill:c}:{strokeWidth:l,stroke:c},...h},[s&&(0,r.createElement)("title",{key:"svg-title"},s),...o.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(p)?p:[p]])});return a.displayName="".concat(n),a}},59629:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","brand-chrome","IconBrandChrome",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M12 9h8.4",key:"svg-2"}],["path",{d:"M14.598 13.5l-4.2 7.275",key:"svg-3"}],["path",{d:"M9.402 13.5l-4.2 -7.275",key:"svg-4"}]])},91920:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","brand-firefox","IconBrandFirefox",[["path",{d:"M4.028 7.82a9 9 0 1 0 12.823 -3.4c-1.636 -1.02 -3.064 -1.02 -4.851 -1.02h-1.647",key:"svg-0"}],["path",{d:"M4.914 9.485c-1.756 -1.569 -.805 -5.38 .109 -6.17c.086 .896 .585 1.208 1.111 1.685c.88 -.275 1.313 -.282 1.867 0c.82 -.91 1.694 -2.354 2.628 -2.093c-1.082 1.741 -.07 3.733 1.371 4.173c-.17 .975 -1.484 1.913 -2.76 2.686c-1.296 .938 -.722 1.85 0 2.234c.949 .506 3.611 -1 4.545 .354c-1.698 .102 -1.536 3.107 -3.983 2.727c2.523 .957 4.345 .462 5.458 -.34c1.965 -1.52 2.879 -3.542 2.879 -5.557c-.014 -1.398 .194 -2.695 -1.26 -4.75",key:"svg-1"}]])},96552:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("filled","brand-github-filled","IconBrandGithubFilled",[["path",{d:"M5.315 2.1c.791 -.113 1.9 .145 3.333 .966l.272 .161l.16 .1l.397 -.083a13.3 13.3 0 0 1 4.59 -.08l.456 .08l.396 .083l.161 -.1c1.385 -.84 2.487 -1.17 3.322 -1.148l.164 .008l.147 .017l.076 .014l.05 .011l.144 .047a1 1 0 0 1 .53 .514a5.2 5.2 0 0 1 .397 2.91l-.047 .267l-.046 .196l.123 .163c.574 .795 .93 1.728 1.03 2.707l.023 .295l.007 .272c0 3.855 -1.659 5.883 -4.644 6.68l-.245 .061l-.132 .029l.014 .161l.008 .157l.004 .365l-.002 .213l-.003 3.834a1 1 0 0 1 -.883 .993l-.117 .007h-6a1 1 0 0 1 -.993 -.883l-.007 -.117v-.734c-1.818 .26 -3.03 -.424 -4.11 -1.878l-.535 -.766c-.28 -.396 -.455 -.579 -.589 -.644l-.048 -.019a1 1 0 0 1 .564 -1.918c.642 .188 1.074 .568 1.57 1.239l.538 .769c.76 1.079 1.36 1.459 2.609 1.191l.001 -.678l-.018 -.168a5.03 5.03 0 0 1 -.021 -.824l.017 -.185l.019 -.12l-.108 -.024c-2.976 -.71 -4.703 -2.573 -4.875 -6.139l-.01 -.31l-.004 -.292a5.6 5.6 0 0 1 .908 -3.051l.152 -.222l.122 -.163l-.045 -.196a5.2 5.2 0 0 1 .145 -2.642l.1 -.282l.106 -.253a1 1 0 0 1 .529 -.514l.144 -.047l.154 -.03z",key:"svg-0"}]])},79842:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","camera","IconCamera",[["path",{d:"M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},43487:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","device-floppy","IconDeviceFloppy",[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]])},45896:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},88220:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","plug-connected","IconPlugConnected",[["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z",key:"svg-0"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z",key:"svg-1"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-2"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-3"}],["path",{d:"M10 11l-2 2",key:"svg-4"}],["path",{d:"M13 14l-2 2",key:"svg-5"}]])},84926:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});/** - * @license @tabler/icons-react v3.16.0 - MIT - * - * This source code is licensed under the MIT license. - * See the LICENSE file in the root directory of this source tree. - */var r=(0,n(55487).Z)("outline","plug-connected-x","IconPlugConnectedX",[["path",{d:"M20 16l-4 4",key:"svg-0"}],["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z",key:"svg-1"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z",key:"svg-2"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-3"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-4"}],["path",{d:"M10 11l-2 2",key:"svg-5"}],["path",{d:"M13 14l-2 2",key:"svg-6"}],["path",{d:"M16 16l4 4",key:"svg-7"}]])}}]); \ No newline at end of file +(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[523],{11431:function(t,e,n){var r;!function(i){"use strict";var o,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},c=!0,u="[DecimalError] ",l=u+"Invalid argument: ",s=u+"Exponent out of range: ",f=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,d=f(1286742750677284.5),y={};function v(t,e){var n,r,i,o,a,u,l,s,f=t.constructor,p=f.precision;if(!t.s||!e.s)return e.s||(e=new f(t)),c?A(e,p):e;if(l=t.d,s=e.d,a=t.e,i=e.e,l=l.slice(),o=a-i){for(o<0?(r=l,o=-o,u=s.length):(r=s,i=a,u=l.length),o>(u=(a=Math.ceil(p/7))>u?a+1:u+1)&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((u=l.length)-(o=s.length)<0&&(o=u,r=s,s=l,l=r),n=0;o;)n=(l[--o]=l[o]+s[o]+n)/1e7|0,l[o]%=1e7;for(n&&(l.unshift(n),++i),u=l.length;0==l[--u];)l.pop();return e.d=l,e.e=i,c?A(e,p):e}function m(t,e,n){if(t!==~~t||tn)throw Error(l+t)}function g(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;et.e^this.s<0?1:-1;for(e=0,n=(r=this.d.length)<(i=t.d.length)?r:i;et.d[e]^this.s<0?1:-1;return r===i?0:r>i^this.s<0?1:-1},y.decimalPlaces=y.dp=function(){var t=this.d.length-1,e=(t-this.e)*7;if(t=this.d[t])for(;t%10==0;t/=10)e--;return e<0?0:e},y.dividedBy=y.div=function(t){return b(this,new this.constructor(t))},y.dividedToIntegerBy=y.idiv=function(t){var e=this.constructor;return A(b(this,new e(t),0,1),e.precision)},y.equals=y.eq=function(t){return!this.cmp(t)},y.exponent=function(){return w(this)},y.greaterThan=y.gt=function(t){return this.cmp(t)>0},y.greaterThanOrEqualTo=y.gte=function(t){return this.cmp(t)>=0},y.isInteger=y.isint=function(){return this.e>this.d.length-2},y.isNegative=y.isneg=function(){return this.s<0},y.isPositive=y.ispos=function(){return this.s>0},y.isZero=function(){return 0===this.s},y.lessThan=y.lt=function(t){return 0>this.cmp(t)},y.lessThanOrEqualTo=y.lte=function(t){return 1>this.cmp(t)},y.logarithm=y.log=function(t){var e,n=this.constructor,r=n.precision,i=r+5;if(void 0===t)t=new n(10);else if((t=new n(t)).s<1||t.eq(o))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(o)?new n(0):(c=!1,e=b(j(this,i),j(t,i),i),c=!0,A(e,r))},y.minus=y.sub=function(t){return t=new this.constructor(t),this.s==t.s?P(this,t):v(this,(t.s=-t.s,t))},y.modulo=y.mod=function(t){var e,n=this.constructor,r=n.precision;if(!(t=new n(t)).s)throw Error(u+"NaN");return this.s?(c=!1,e=b(this,t,0,1).times(t),c=!0,this.minus(e)):A(new n(this),r)},y.naturalExponential=y.exp=function(){return x(this)},y.naturalLogarithm=y.ln=function(){return j(this)},y.negated=y.neg=function(){var t=new this.constructor(this);return t.s=-t.s||0,t},y.plus=y.add=function(t){return t=new this.constructor(t),this.s==t.s?v(this,t):P(this,(t.s=-t.s,t))},y.precision=y.sd=function(t){var e,n,r;if(void 0!==t&&!!t!==t&&1!==t&&0!==t)throw Error(l+t);if(e=w(this)+1,n=7*(r=this.d.length-1)+1,r=this.d[r]){for(;r%10==0;r/=10)n--;for(r=this.d[0];r>=10;r/=10)n++}return t&&e>n?e:n},y.squareRoot=y.sqrt=function(){var t,e,n,r,i,o,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(u+"NaN")}for(t=w(this),c=!1,0==(i=Math.sqrt(+this))||i==1/0?(((e=g(this.d)).length+t)%2==0&&(e+="0"),i=Math.sqrt(e),t=f((t+1)/2)-(t<0||t%2),r=new l(e=i==1/0?"5e"+t:(e=i.toExponential()).slice(0,e.indexOf("e")+1)+t)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(b(this,o,a+2)).times(.5),g(o.d).slice(0,a)===(e=g(r.d)).slice(0,a)){if(e=e.slice(a-3,a+1),i==a&&"4999"==e){if(A(o,n+1,0),o.times(o).eq(this)){r=o;break}}else if("9999"!=e)break;a+=4}return c=!0,A(r,n)},y.times=y.mul=function(t){var e,n,r,i,o,a,u,l,s,f=this.constructor,p=this.d,h=(t=new f(t)).d;if(!this.s||!t.s)return new f(0);for(t.s*=this.s,n=this.e+t.e,(l=p.length)<(s=h.length)&&(o=p,p=h,h=o,a=l,l=s,s=a),o=[],r=a=l+s;r--;)o.push(0);for(r=s;--r>=0;){for(e=0,i=l+r;i>r;)u=o[i]+h[r]*p[i-r-1]+e,o[i--]=u%1e7|0,e=u/1e7|0;o[i]=(o[i]+e)%1e7|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=n,c?A(t,f.precision):t},y.toDecimalPlaces=y.todp=function(t,e){var n=this,r=n.constructor;return(n=new r(n),void 0===t)?n:(m(t,0,1e9),void 0===e?e=r.rounding:m(e,0,8),A(n,t+w(n)+1,e))},y.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=k(r,!0):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k(r=A(new i(r),t+1,e),!0,t+1)),n},y.toFixed=function(t,e){var n,r,i=this.constructor;return void 0===t?k(this):(m(t,0,1e9),void 0===e?e=i.rounding:m(e,0,8),n=k((r=A(new i(this),t+w(this)+1,e)).abs(),!1,t+w(r)+1),this.isneg()&&!this.isZero()?"-"+n:n)},y.toInteger=y.toint=function(){var t=this.constructor;return A(new t(this),w(this)+1,t.rounding)},y.toNumber=function(){return+this},y.toPower=y.pow=function(t){var e,n,r,i,a,l,s=this,p=s.constructor,h=+(t=new p(t));if(!t.s)return new p(o);if(!(s=new p(s)).s){if(t.s<1)throw Error(u+"Infinity");return s}if(s.eq(o))return s;if(r=p.precision,t.eq(o))return A(s,r);if(l=(e=t.e)>=(n=t.d.length-1),a=s.s,l){if((n=h<0?-h:h)<=9007199254740991){for(i=new p(o),e=Math.ceil(r/7+4),c=!1;n%2&&M((i=i.times(s)).d,e),0!==(n=f(n/2));)M((s=s.times(s)).d,e);return c=!0,t.s<0?new p(o).div(i):A(i,r)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&t.d[Math.max(e,n)]?-1:1,s.s=1,c=!1,i=t.times(j(s,r+12)),c=!0,(i=x(i)).s=a,i},y.toPrecision=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?(n=w(i),r=k(i,n<=o.toExpNeg||n>=o.toExpPos)):(m(t,1,1e9),void 0===e?e=o.rounding:m(e,0,8),n=w(i=A(new o(i),t,e)),r=k(i,t<=n||n<=o.toExpNeg,t)),r},y.toSignificantDigits=y.tosd=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(m(t,1,1e9),void 0===e?e=n.rounding:m(e,0,8)),A(new n(this),t,e)},y.toString=y.valueOf=y.val=y.toJSON=function(){var t=w(this),e=this.constructor;return k(this,t<=e.toExpNeg||t>=e.toExpPos)};var b=function(){function t(t,e){var n,r=0,i=t.length;for(t=t.slice();i--;)n=t[i]*e+r,t[i]=n%1e7|0,r=n/1e7|0;return r&&t.unshift(r),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n){for(var r=0;n--;)t[n]-=r,r=t[n]1;)t.shift()}return function(r,i,o,a){var c,l,s,f,p,h,d,y,v,m,g,b,x,O,S,j,E,P,k=r.constructor,M=r.s==i.s?1:-1,T=r.d,_=i.d;if(!r.s)return new k(r);if(!i.s)throw Error(u+"Division by zero");for(s=0,l=r.e-i.e,E=_.length,S=T.length,y=(d=new k(M)).d=[];_[s]==(T[s]||0);)++s;if(_[s]>(T[s]||0)&&--l,(b=null==o?o=k.precision:a?o+(w(r)-w(i))+1:o)<0)return new k(0);if(b=b/7+2|0,s=0,1==E)for(f=0,_=_[0],b++;(s1&&(_=t(_,f),T=t(T,f),E=_.length,S=T.length),O=E,m=(v=T.slice(0,E)).length;m=1e7/2&&++j;do f=0,(c=e(_,v,E,m))<0?(g=v[0],E!=m&&(g=1e7*g+(v[1]||0)),(f=g/j|0)>1?(f>=1e7&&(f=1e7-1),h=(p=t(_,f)).length,m=v.length,1==(c=e(p,v,h,m))&&(f--,n(p,E16)throw Error(s+w(t));if(!t.s)return new h(o);for(null==e?(c=!1,u=d):u=e,a=new h(.03125);t.abs().gte(.1);)t=t.times(a),f+=5;for(u+=Math.log(p(2,f))/Math.LN10*2+5|0,n=r=i=new h(o),h.precision=u;;){if(r=A(r.times(t),u),n=n.times(++l),g((a=i.plus(b(r,n,u))).d).slice(0,u)===g(i.d).slice(0,u)){for(;f--;)i=A(i.times(i),u);return h.precision=d,null==e?(c=!0,A(i,d)):i}i=a}}function w(t){for(var e=7*t.e,n=t.d[0];n>=10;n/=10)e++;return e}function O(t,e,n){if(e>t.LN10.sd())throw c=!0,n&&(t.precision=n),Error(u+"LN10 precision limit exceeded");return A(new t(t.LN10),e)}function S(t){for(var e="";t--;)e+="0";return e}function j(t,e){var n,r,i,a,l,s,f,p,h,d=1,y=t,v=y.d,m=y.constructor,x=m.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new m(0);if(null==e?(c=!1,p=x):p=e,y.eq(10))return null==e&&(c=!0),O(m,p);if(p+=10,m.precision=p,r=(n=g(v)).charAt(0),!(15e14>Math.abs(a=w(y))))return f=O(m,p+2,x).times(a+""),y=j(new m(r+"."+n.slice(1)),p-10).plus(f),m.precision=x,null==e?(c=!0,A(y,x)):y;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=g((y=y.times(t)).d)).charAt(0),d++;for(a=w(y),r>1?(y=new m("0."+n),a++):y=new m(r+"."+n.slice(1)),s=l=y=b(y.minus(o),y.plus(o),p),h=A(y.times(y),p),i=3;;){if(l=A(l.times(h),p),g((f=s.plus(b(l,new m(i),p))).d).slice(0,p)===g(s.d).slice(0,p))return s=s.times(2),0!==a&&(s=s.plus(O(m,p+2,x).times(a+""))),s=b(s,new m(d),p),m.precision=x,null==e?(c=!0,A(s,x)):s;s=f,i+=2}}function E(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);)++r;for(i=e.length;48===e.charCodeAt(i-1);)--i;if(e=e.slice(r,i)){if(i-=r,n=n-r-1,t.e=f(n/7),t.d=[],r=(n+1)%7,n<0&&(r+=7),rd||t.e<-d))throw Error(s+n)}else t.s=0,t.e=0,t.d=[0];return t}function A(t,e,n){var r,i,o,a,u,l,h,y,v=t.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=e-a)<0)r+=7,i=e,h=v[y=0];else{if((y=Math.ceil((r+1)/7))>=(o=v.length))return t;for(a=1,h=o=v[y];o>=10;o/=10)a++;r%=7,i=r-7+a}if(void 0!==n&&(u=h/(o=p(10,a-i-1))%10|0,l=e<0||void 0!==v[y+1]||h%o,l=n<4?(u||l)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||l||6==n&&(r>0?i>0?h/p(10,a-i):0:v[y-1])%10&1||n==(t.s<0?8:7))),e<1||!v[0])return l?(o=w(t),v.length=1,e=e-o-1,v[0]=p(10,(7-e%7)%7),t.e=f(-e/7)||0):(v.length=1,v[0]=t.e=t.s=0),t;if(0==r?(v.length=y,o=1,y--):(v.length=y+1,o=p(10,7-r),v[y]=i>0?(h/p(10,a-i)%p(10,i)|0)*o:0),l)for(;;){if(0==y){1e7==(v[0]+=o)&&(v[0]=1,++t.e);break}if(v[y]+=o,1e7!=v[y])break;v[y--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(c&&(t.e>d||t.e<-d))throw Error(s+w(t));return t}function P(t,e){var n,r,i,o,a,u,l,s,f,p,h=t.constructor,d=h.precision;if(!t.s||!e.s)return e.s?e.s=-e.s:e=new h(t),c?A(e,d):e;if(l=t.d,p=e.d,r=e.e,s=t.e,l=l.slice(),a=s-r){for((f=a<0)?(n=l,a=-a,u=p.length):(n=p,r=s,u=l.length),a>(i=Math.max(Math.ceil(d/7),u)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=l.length)<(u=p.length))&&(u=i),i=0;i0;--i)l[u++]=0;for(i=p.length;i>a;){if(l[--i]0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=S(r))),t.s<0?"-"+o:o}function M(t,e){if(t.length>e)return t.length=e,!0}function T(t){if(!t||"object"!=typeof t)throw Error(u+"Object expected");var e,n,r,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(e=0;e=i[e+1]&&r<=i[e+2])this[n]=r;else throw Error(l+n+": "+r)}if(void 0!==(r=t[n="LN10"])){if(r==Math.LN10)this[n]=new this(r);else throw Error(l+n+": "+r)}return this}(a=function t(e){var n,r,i;function o(t){if(!(this instanceof o))return new o(t);if(this.constructor=o,t instanceof o){this.s=t.s,this.e=t.e,this.d=(t=t.d)?t.slice():t;return}if("number"==typeof t){if(0*t!=0)throw Error(l+t);if(t>0)this.s=1;else if(t<0)t=-t,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(t===~~t&&t<1e7){this.e=0,this.d=[t];return}return E(this,t.toString())}if("string"!=typeof t)throw Error(l+t);if(45===t.charCodeAt(0)?(t=t.slice(1),this.s=-1):this.s=1,h.test(t))E(this,t);else throw Error(l+t)}if(o.prototype=y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=t,o.config=o.set=T,void 0===e&&(e={}),e)for(n=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];n{let t=0,e=()=>`0000${(1679616*Math.random()<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function i(t){let e=[];for(let n=0,r=t.length;n{let r=new Image;r.decode=()=>e(r),r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}async function u(t){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(t)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function l(t,e,n){let r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(t),u(i)}let s=(t,e)=>{if(t instanceof e)return!0;let n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||s(n,e))};function f(t,e,n){let o=window.getComputedStyle(t,n),a=o.getPropertyValue("content");if(""===a||"none"===a)return;let c=r();try{e.className=`${e.className} ${c}`}catch(t){return}let u=document.createElement("style");u.appendChild(function(t,e,n){let r=`.${t}:${e}`,o=n.cssText?function(t){let e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}(n):i(n).map(t=>{let e=n.getPropertyValue(t),r=n.getPropertyPriority(t);return`${t}: ${e}${r?" !important":""};`}).join(" ");return document.createTextNode(`${r}{${o}}`)}(c,n,o)),e.appendChild(u)}let p="application/font-woff",h="image/jpeg",d={woff:p,woff2:p,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:h,jpeg:h,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function y(t){return d[(function(t){let e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""})(t).toLowerCase()]||""}function v(t){return -1!==t.search(/^(data:)/)}function m(t,e){return`data:${e};base64,${t}`}async function g(t,e,n){let r=await fetch(t,e);if(404===r.status)throw Error(`Resource "${r.url}" not found`);let i=await r.blob();return new Promise((t,e)=>{let o=new FileReader;o.onerror=e,o.onloadend=()=>{try{t(n({res:r,result:o.result}))}catch(t){e(t)}},o.readAsDataURL(i)})}let b={};async function x(t,e,n){var r,i,o;let a,c;let u=(r=t,i=e,o=n.includeQueryParams,c=r.replace(/\?.*/,""),o&&(c=r),/ttf|otf|eot|woff2?/i.test(c)&&(c=c.replace(/.*\//,"")),i?`[${i}]${c}`:c);if(null!=b[u])return b[u];n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+new Date().getTime());try{let r=await g(t,n.fetchRequestInit,({res:t,result:n})=>(e||(e=t.headers.get("Content-Type")||""),n.split(/,/)[1]));a=m(r,e)}catch(r){a=n.imagePlaceholder||"";let e=`Failed to fetch resource: ${t}`;r&&(e="string"==typeof r?r:r.message),e&&console.warn(e)}return b[u]=a,a}async function w(t){let e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):c(e)}async function O(t,e){if(t.currentSrc){let e=document.createElement("canvas"),n=e.getContext("2d");return e.width=t.clientWidth,e.height=t.clientHeight,null==n||n.drawImage(t,0,0,e.width,e.height),c(e.toDataURL())}let n=t.poster,r=y(n);return c(await x(n,r,e))}async function S(t){var e;try{if(null===(e=null==t?void 0:t.contentDocument)||void 0===e?void 0:e.body)return await k(t.contentDocument.body,{},!0)}catch(t){}return t.cloneNode(!1)}async function j(t,e){return s(t,HTMLCanvasElement)?w(t):s(t,HTMLVideoElement)?O(t,e):s(t,HTMLIFrameElement)?S(t):t.cloneNode(!1)}let E=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function A(t,e,n){var r,o;let a=[];return E(t)&&t.assignedNodes?a=i(t.assignedNodes()):s(t,HTMLIFrameElement)&&(null===(r=t.contentDocument)||void 0===r?void 0:r.body)?a=i(t.contentDocument.body.childNodes):a=i((null!==(o=t.shadowRoot)&&void 0!==o?o:t).childNodes),0===a.length||s(t,HTMLVideoElement)||await a.reduce((t,r)=>t.then(()=>k(r,n)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}async function P(t,e){let n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;let r={};for(let i=0;ij(t,e)).then(n=>A(t,n,e)).then(e=>{var n,r;return n=t,s(r=e,Element)&&(!function(t,e){let n=e.style;if(!n)return;let r=window.getComputedStyle(t);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):i(r).forEach(i=>{let o=r.getPropertyValue(i);if("font-size"===i&&o.endsWith("px")){let t=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1;o=`${t}px`}s(t,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))})}(n,r),f(n,r,":before"),f(n,r,":after"),s(n,HTMLTextAreaElement)&&(r.innerHTML=n.value),s(n,HTMLInputElement)&&r.setAttribute("value",n.value),function(t,e){if(s(t,HTMLSelectElement)){let n=Array.from(e.children).find(e=>t.value===e.getAttribute("value"));n&&n.setAttribute("selected","")}}(n,r)),r}).then(t=>P(t,e)):null}let M=/url\((['"]?)([^'"]+?)\1\)/g,T=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,_=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;async function C(t,e,n,r,i){try{let o;let a=n?function(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;let n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}(e,n):e,c=y(e);if(i){let t=await i(a);o=m(t,c)}else o=await x(a,c,r);return t.replace(function(t){let e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}(e),`$1${o}$3`)}catch(t){}return t}function I(t){return -1!==t.search(M)}async function D(t,e,n){if(!I(t))return t;let r=function(t,{preferredFontFormat:e}){return e?t.replace(_,t=>{for(;;){let[n,,r]=T.exec(t)||[];if(!r)return"";if(r===e)return`src: ${n};`}}):t}(t,n);return(function(t){let e=[];return t.replace(M,(t,n,r)=>(e.push(r),t)),e.filter(t=>!v(t))})(r).reduce((t,r)=>t.then(t=>C(t,r,e,n)),Promise.resolve(r))}async function N(t,e,n){var r;let i=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(i){let r=await D(i,null,n);return e.style.setProperty(t,r,e.style.getPropertyPriority(t)),!0}return!1}async function B(t,e){await N("background",t,e)||await N("background-image",t,e),await N("mask",t,e)||await N("mask-image",t,e)}async function L(t,e){let n=s(t,HTMLImageElement);if(!(n&&!v(t.src))&&!(s(t,SVGImageElement)&&!v(t.href.baseVal)))return;let r=n?t.src:t.href.baseVal,i=await x(r,y(r),e);await new Promise((e,r)=>{t.onload=e,t.onerror=r,t.decode&&(t.decode=e),"lazy"===t.loading&&(t.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})}async function R(t,e){let n=i(t.childNodes).map(t=>z(t,e));await Promise.all(n).then(()=>t)}async function z(t,e){s(t,Element)&&(await B(t,e),await L(t,e),await R(t,e))}let $={};async function U(t){let e=$[t];if(null!=e)return e;let n=await fetch(t);return e={url:t,cssText:await n.text()},$[t]=e,e}async function F(t,e){let n=t.cssText,r=/url\(["']?([^"')]+)["']?\)/g;return Promise.all((n.match(/url\([^)]+\)/g)||[]).map(async i=>{let o=i.replace(r,"$1");return o.startsWith("https://")||(o=new URL(o,t.url).href),g(o,e.fetchRequestInit,({result:t})=>(n=n.replace(i,`url(${t})`),[i,t]))})).then(()=>n)}function W(t){if(null==t)return[];let e=[],n=t.replace(/(\/\*[\s\S]*?\*\/)/gi,""),r=RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let t=r.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(r,"");let i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,o=RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let t=i.exec(n);if(null===t){if(null===(t=o.exec(n)))break;i.lastIndex=o.lastIndex}else o.lastIndex=i.lastIndex;e.push(t[0])}return e}async function q(t,e){let n=[],r=[];return t.forEach(n=>{if("cssRules"in n)try{i(n.cssRules||[]).forEach((t,i)=>{if(t.type===CSSRule.IMPORT_RULE){let o=i+1,a=t.href,c=U(a).then(t=>F(t,e)).then(t=>W(t).forEach(t=>{try{n.insertRule(t,t.startsWith("@import")?o+=1:n.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});r.push(c)}})}catch(o){let i=t.find(t=>null==t.href)||document.styleSheets[0];null!=n.href&&r.push(U(n.href).then(t=>F(t,e)).then(t=>W(t).forEach(t=>{i.insertRule(t,n.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(t.forEach(t=>{if("cssRules"in t)try{i(t.cssRules||[]).forEach(t=>{n.push(t)})}catch(e){console.error(`Error while reading CSS rules from ${t.href}`,e)}}),n))}async function H(t,e){if(null==t.ownerDocument)throw Error("Provided element is not within a Document");let n=i(t.ownerDocument.styleSheets);return(await q(n,e)).filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>I(t.style.getPropertyValue("src")))}async function V(t,e){let n=await H(t,e);return(await Promise.all(n.map(t=>{let n=t.parentStyleSheet?t.parentStyleSheet.href:null;return D(t.cssText,n,e)}))).join("\n")}async function X(t,e){let n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await V(t,e);if(n){let e=document.createElement("style"),r=document.createTextNode(n);e.appendChild(r),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function Z(t,e={}){let{width:n,height:r}=a(t,e),i=await k(t,e,!0);return await X(i,e),await z(i,e),!function(t,e){let{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);let r=e.style;null!=r&&Object.keys(r).forEach(t=>{n[t]=r[t]})}(i,e),await l(i,n,r)}async function G(t,e={}){let{width:n,height:r}=a(t,e),i=await Z(t,e),o=await c(i),u=document.createElement("canvas"),l=u.getContext("2d"),s=e.pixelRatio||function(){let t,e;try{e=process}catch(t){}let n=e&&e.env?e.env.devicePixelRatio:null;return n&&Number.isNaN(t=parseInt(n,10))&&(t=1),t||window.devicePixelRatio||1}(),f=e.canvasWidth||n,p=e.canvasHeight||r;return u.width=f*s,u.height=p*s,!e.skipAutoScale&&(u.width>16384||u.height>16384)&&(u.width>16384&&u.height>16384?u.width>u.height?(u.height*=16384/u.width,u.width=16384):(u.width*=16384/u.height,u.height=16384):u.width>16384?(u.height*=16384/u.width,u.width=16384):(u.width*=16384/u.height,u.height=16384)),u.style.width=`${f}`,u.style.height=`${p}`,e.backgroundColor&&(l.fillStyle=e.backgroundColor,l.fillRect(0,0,u.width,u.height)),l.drawImage(o,0,0,u.width,u.height),u}async function Y(t,e={}){return(await G(t,e)).toDataURL()}},74417:function(t,e,n){var r=n(19044)(n(2381),"DataView");t.exports=r},70266:function(t,e,n){var r=n(89829),i=n(60734),o=n(35283),a=n(97283),c=n(54778);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1}},10079:function(t){t.exports=function(t,e,n){for(var r=-1,i=null==t?0:t.length;++r0&&o(s)?n>1?t(s,n-1,o,a,c):r(c,s):a||(c[c.length]=s)}return c}},60404:function(t,e,n){var r=n(72994)();t.exports=r},97385:function(t,e,n){var r=n(60404),i=n(63815);t.exports=function(t,e){return t&&r(t,e,i)}},29013:function(t,e,n){var r=n(57442),i=n(83863);t.exports=function(t,e){e=r(e,t);for(var n=0,o=e.length;null!=t&&ne}},80444:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},48911:function(t,e,n){var r=n(21933),i=n(74680),o=n(13708);t.exports=function(t,e,n){return e==e?o(t,e,n):r(t,i,n)}},35194:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},43277:function(t,e,n){var r=n(36529),i=n(50561);t.exports=function t(e,n,o,a,c){return e===n||(null!=e&&null!=n&&(i(e)||i(n))?r(e,n,o,a,t,c):e!=e&&n!=n)}},36529:function(t,e,n){var r=n(45989),i=n(48648),o=n(88264),a=n(44024),c=n(14995),u=n(60443),l=n(46551),s=n(78470),f="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,y,v,m){var g=u(t),b=u(e),x=g?p:c(t),w=b?p:c(e);x=x==f?h:x,w=w==f?h:w;var O=x==h,S=w==h,j=x==w;if(j&&l(t)){if(!l(e))return!1;g=!0,O=!1}if(j&&!O)return m||(m=new r),g||s(t)?i(t,e,n,y,v,m):o(t,e,x,n,y,v,m);if(!(1&n)){var E=O&&d.call(t,"__wrapped__"),A=S&&d.call(e,"__wrapped__");if(E||A){var P=E?t.value():t,k=A?e.value():e;return m||(m=new r),v(P,k,n,y,m)}}return!!j&&(m||(m=new r),a(t,e,n,y,v,m))}},29912:function(t,e,n){var r=n(45989),i=n(43277);t.exports=function(t,e,n,o){var a=n.length,c=a,u=!o;if(null==t)return!c;for(t=Object(t);a--;){var l=n[a];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++ai?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=200){var y=e?null:c(t);if(y)return u(y);p=!1,s=a,d=new r}else d=e?[]:h;t:for(;++l=i?t:r(t,e,n)}},43425:function(t,e,n){var r=n(41108);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),c=void 0!==e,u=null===e,l=e==e,s=r(e);if(!u&&!s&&!a&&t>e||a&&c&&l&&!u&&!s||i&&c&&l||!n&&l||!o)return 1;if(!i&&!a&&!s&&t=u)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}},45704:function(t,e,n){var r=n(2381)["__core-js_shared__"];t.exports=r},23045:function(t,e,n){var r=n(17806);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,a=e?o:-1,c=Object(n);(e?a--:++a-1?c[u?e[l]:l]:void 0}}},39105:function(t,e,n){var r=n(44901),i=n(60679),o=n(42126);t.exports=function(t){return function(e,n,a){return a&&"number"!=typeof a&&i(e,n,a)&&(n=a=void 0),e=o(e),void 0===n?(n=e,e=0):n=o(n),a=void 0===a?es))return!1;var p=u.get(t),h=u.get(e);if(p&&h)return p==e&&h==t;var d=-1,y=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++d-1&&t%1==0&&t-1}},97126:function(t,e,n){var r=n(22162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},59752:function(t,e,n){var r=n(70266),i=n(57115),o=n(77970);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},20170:function(t,e,n){var r=n(58035);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},41069:function(t,e,n){var r=n(58035);t.exports=function(t){return r(this,t).get(t)}},28690:function(t,e,n){var r=n(58035);t.exports=function(t){return r(this,t).has(t)}},27323:function(t,e,n){var r=n(58035);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},14774:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},91378:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},95325:function(t,e,n){var r=n(89830);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},91850:function(t,e,n){var r=n(19044)(Object,"create");t.exports=r},93022:function(t,e,n){var r=n(23794)(Object.keys,Object);t.exports=r},28079:function(t,e,n){t=n.nmd(t);var r=n(93330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i&&r.process,c=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=c},68391:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},23794:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},95694:function(t,e,n){var r=n(98266),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,c=i(o.length-e,0),u=Array(c);++a0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},24683:function(t,e,n){var r=n(57115);t.exports=function(){this.__data__=new r,this.size=0}},34813:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},35115:function(t){t.exports=function(t){return this.__data__.get(t)}},28199:function(t){t.exports=function(t){return this.__data__.has(t)}},58644:function(t,e,n){var r=n(57115),i=n(77970),o=n(8705);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(a)}return n.set(t,e),this.size=n.size,this}},13708:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r=e||n<0||v&&r>=s}function x(){var t,n,r,o=i();if(b(o))return w(o);p=setTimeout(x,(t=o-h,n=o-d,r=e-t,v?c(r,s-n):r))}function w(t){return(p=void 0,m&&u)?g(t):(u=l=void 0,f)}function O(){var t,n=i(),r=b(n);if(u=arguments,l=this,h=n,r){if(void 0===p)return d=t=h,p=setTimeout(x,e),y?g(t):f;if(v)return clearTimeout(p),p=setTimeout(x,e),g(h)}return void 0===p&&(p=setTimeout(x,e)),f}return e=o(e)||0,r(n)&&(y=!!n.leading,s=(v="maxWait"in n)?a(o(n.maxWait)||0,e):s,m="trailing"in n?!!n.trailing:m),O.cancel=function(){void 0!==p&&clearTimeout(p),d=0,u=h=l=p=void 0},O.flush=function(){return void 0===p?f:w(i())},O}},27087:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},55118:function(t,e,n){var r=n(90516),i=n(20334),o=n(37942),a=n(60443),c=n(60679);t.exports=function(t,e,n){var u=a(t)?r:i;return n&&c(t,e,n)&&(e=void 0),u(t,o(e,3))}},80203:function(t,e,n){var r=n(43310)(n(11030));t.exports=r},11030:function(t,e,n){var r=n(21933),i=n(37942),o=n(38979),a=Math.max;t.exports=function(t,e,n){var c=null==t?0:t.length;if(!c)return -1;var u=null==n?0:o(n);return u<0&&(u=a(c+u,0)),r(t,i(e,3),u)}},73720:function(t,e,n){var r=n(55648),i=n(7851);t.exports=function(t,e){return r(i(t,e),1)}},97019:function(t,e,n){var r=n(29013);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},59628:function(t,e,n){var r=n(80444),i=n(48101);t.exports=function(t,e){return null!=t&&i(t,e,r)}},15502:function(t){t.exports=function(t){return t}},6727:function(t,e,n){var r=n(35194),i=n(50561),o=Object.prototype,a=o.hasOwnProperty,c=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&a.call(t,"callee")&&!c.call(t,"callee")};t.exports=u},60443:function(t){var e=Array.isArray;t.exports=e},17806:function(t,e,n){var r=n(14380),i=n(44664);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},64337:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return!0===t||!1===t||i(t)&&"[object Boolean]"==r(t)}},46551:function(t,e,n){t=n.nmd(t);var r=n(2381),i=n(35423),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,c=a&&a.exports===o?r.Buffer:void 0,u=c?c.isBuffer:void 0;t.exports=u||i},12916:function(t,e,n){var r=n(43277);t.exports=function(t,e){return r(t,e)}},14380:function(t,e,n){var r=n(12731),i=n(63117);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},44664:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},50299:function(t,e,n){var r=n(60555);t.exports=function(t){return r(t)&&t!=+t}},49972:function(t){t.exports=function(t){return null==t}},60555:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return"number"==typeof t||i(t)&&"[object Number]"==r(t)}},63117:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},50561:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},32999:function(t,e,n){var r=n(12731),i=n(98118),o=n(50561),a=Object.prototype,c=Function.prototype.toString,u=a.hasOwnProperty,l=c.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=u.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},71519:function(t,e,n){var r=n(12731),i=n(60443),o=n(50561);t.exports=function(t){return"string"==typeof t||!i(t)&&o(t)&&"[object String]"==r(t)}},41108:function(t,e,n){var r=n(12731),i=n(50561);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},78470:function(t,e,n){var r=n(13272),i=n(66127),o=n(28079),a=o&&o.isTypedArray,c=a?i(a):r;t.exports=c},63815:function(t,e,n){var r=n(16347),i=n(84238),o=n(17806);t.exports=function(t){return o(t)?r(t):i(t)}},96579:function(t){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},7851:function(t,e,n){var r=n(68165),i=n(37942),o=n(28519),a=n(60443);t.exports=function(t,e){return(a(t)?r:o)(t,i(e,3))}},47759:function(t,e,n){var r=n(85330),i=n(97385),o=n(37942);t.exports=function(t,e){var n={};return e=o(e,3),i(t,function(t,i,o){r(n,i,e(t,i,o))}),n}},47766:function(t,e,n){var r=n(77613),i=n(23985),o=n(15502);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},89830:function(t,e,n){var r=n(8705);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},89770:function(t,e,n){var r=n(77613),i=n(49182),o=n(15502);t.exports=function(t){return t&&t.length?r(t,o,i):void 0}},47710:function(t){t.exports=function(){}},49423:function(t,e,n){var r=n(2381);t.exports=function(){return r.Date.now()}},82794:function(t,e,n){var r=n(31358),i=n(65903),o=n(59757),a=n(83863);t.exports=function(t){return o(t)?r(a(t)):i(t)}},37105:function(t,e,n){var r=n(39105)();t.exports=r},13632:function(t,e,n){var r=n(17232),i=n(37942),o=n(73802),a=n(60443),c=n(60679);t.exports=function(t,e,n){var u=a(t)?r:o;return n&&c(t,e,n)&&(e=void 0),u(t,i(e,3))}},60229:function(t,e,n){var r=n(55648),i=n(66738),o=n(48674),a=n(60679),c=o(function(t,e){if(null==t)return[];var n=e.length;return n>1&&a(t,e[0],e[1])?e=[]:n>2&&a(e[0],e[1],e[2])&&(e=[e[0]]),i(t,r(e,1),[])});t.exports=c},61810:function(t){t.exports=function(){return[]}},35423:function(t){t.exports=function(){return!1}},48527:function(t,e,n){var r=n(22170),i=n(63117);t.exports=function(t,e,n){var o=!0,a=!0;if("function"!=typeof t)throw TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),r(t,e,{leading:o,maxWait:e,trailing:a})}},42126:function(t,e,n){var r=n(49666),i=1/0;t.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*17976931348623157e292:t==t?t:0:0===t?t:0}},38979:function(t,e,n){var r=n(42126);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},49666:function(t,e,n){var r=n(19334),i=n(63117),o=n(41108),a=0/0,c=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,s=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return a;if(i(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=i(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||l.test(t)?s(t.slice(2),n?2:8):c.test(t)?a:+t}},61250:function(t,e,n){var r=n(13963);t.exports=function(t){return null==t?"":r(t)}},90374:function(t,e,n){var r=n(37942),i=n(32874);t.exports=function(t,e){return t&&t.length?i(t,r(e,2)):[]}},62637:function(t,e,n){var r=n(58191)("toUpperCase");t.exports=r},99949:function(t,e,n){"use strict";var r=n(88877);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,a){if(a!==r){var c=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},41448:function(t,e,n){t.exports=n(99949)()},88877:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74332:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,d=(n&&Symbol.for("react.suspense_list"),n?Symbol.for("react.memo"):60115),y=n?Symbol.for("react.lazy"):60116;n&&Symbol.for("react.block"),n&&Symbol.for("react.fundamental"),n&&Symbol.for("react.responder"),n&&Symbol.for("react.scope"),e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isFragment=function(t){return function(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case s:case f:case o:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case l:case p:case y:case d:case u:return t;default:return e}}case i:return e}}}(t)===o}},12659:function(t,e,n){"use strict";t.exports=n(74332)},29128:function(t,e,n){"use strict";n.d(e,{w:function(){return dI}});var r,i,o,a,c,u,l,s,f,p,h,d,y,v,m,g,b,x,w,O,S,j={};n.r(j),n.d(j,{scaleBand:function(){return rJ},scaleDiverging:function(){return function t(){var e=oi(cx()(iY));return e.copy=function(){return cm(e,t())},rV.apply(e,arguments)}},scaleDivergingLog:function(){return function t(){var e=oh(cx()).domain([.1,1,10]);return e.copy=function(){return cm(e,t()).base(e.base())},rV.apply(e,arguments)}},scaleDivergingPow:function(){return cw},scaleDivergingSqrt:function(){return cO},scaleDivergingSymlog:function(){return function t(){var e=ov(cx());return e.copy=function(){return cm(e,t()).constant(e.constant())},rV.apply(e,arguments)}},scaleIdentity:function(){return function t(e){var n;function r(t){return null==t||isNaN(t=+t)?n:t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,iZ),r):e.slice()},r.unknown=function(t){return arguments.length?(n=t,r):n},r.copy=function(){return t(e).unknown(n)},e=arguments.length?Array.from(e,iZ):[0,1],oi(r)}},scaleImplicit:function(){return rY},scaleLinear:function(){return oo},scaleLog:function(){return function t(){let e=oh(i1()).domain([1,10]);return e.copy=()=>i0(e,t()).base(e.base()),rH.apply(e,arguments),e}},scaleOrdinal:function(){return rK},scalePoint:function(){return rQ},scalePow:function(){return ow},scaleQuantile:function(){return function t(){var e,n=[],r=[],i=[];function o(){var t=0,e=Math.max(1,r.length);for(i=Array(e-1);++t=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,o=Math.floor(i),a=+n(t[o],o,t);return a+(+n(t[o+1],o+1,t)-a)*(i-o)}}(n,t/e);return a}function a(t){return null==t||isNaN(t=+t)?e:r[ii(i,t)]}return a.invertExtent=function(t){var e=r.indexOf(t);return e<0?[NaN,NaN]:[e>0?i[e-1]:n[0],e=i?[o[i-1],r]:[o[e-1],o[e]]},c.unknown=function(t){return arguments.length&&(e=t),c},c.thresholds=function(){return o.slice()},c.copy=function(){return t().domain([n,r]).range(a).unknown(e)},rH.apply(oi(c),arguments)}},scaleRadial:function(){return function t(){var e,n=i2(),r=[0,1],i=!1;function o(t){var r,o=Math.sign(r=n(t))*Math.sqrt(Math.abs(r));return isNaN(o)?e:i?Math.round(o):o}return o.invert=function(t){return n.invert(oS(t))},o.domain=function(t){return arguments.length?(n.domain(t),o):n.domain()},o.range=function(t){return arguments.length?(n.range((r=Array.from(t,iZ)).map(oS)),o):r.slice()},o.rangeRound=function(t){return o.range(t).round(!0)},o.round=function(t){return arguments.length?(i=!!t,o):i},o.clamp=function(t){return arguments.length?(n.clamp(t),o):n.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t(n.domain(),r).round(i).clamp(n.clamp()).unknown(e)},rH.apply(o,arguments),oi(o)}},scaleSequential:function(){return function t(){var e=oi(cv()(iY));return e.copy=function(){return cm(e,t())},rV.apply(e,arguments)}},scaleSequentialLog:function(){return function t(){var e=oh(cv()).domain([1,10]);return e.copy=function(){return cm(e,t()).base(e.base())},rV.apply(e,arguments)}},scaleSequentialPow:function(){return cg},scaleSequentialQuantile:function(){return function t(){var e=[],n=iY;function r(t){if(null!=t&&!isNaN(t=+t))return n((ii(e,t,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();for(let n of(e=[],t))null==n||isNaN(n=+n)||e.push(n);return e.sort(r7),r},r.interpolator=function(t){return arguments.length?(n=t,r):n},r.range=function(){return e.map((t,r)=>n(r/(e.length-1)))},r.quantiles=function(t){return Array.from({length:t+1},(n,r)=>(function(t,e,n){if(!(!(r=(t=Float64Array.from(function*(t,e){if(void 0===e)for(let e of t)null!=e&&(e=+e)>=e&&(yield e);else{let n=-1;for(let r of t)null!=(r=e(r,++n,t))&&(r=+r)>=r&&(yield r)}}(t,void 0))).length)||isNaN(e=+e))){if(e<=0||r<2)return oE(t);if(e>=1)return oj(t);var r,i=(r-1)*e,o=Math.floor(i),a=oj((function t(e,n,r=0,i=1/0,o){if(n=Math.floor(n),r=Math.floor(Math.max(0,r)),i=Math.floor(Math.min(e.length-1,i)),!(r<=n&&n<=i))return e;for(o=void 0===o?oA:function(t=r7){if(t===r7)return oA;if("function"!=typeof t)throw TypeError("compare is not a function");return(e,n)=>{let r=t(e,n);return r||0===r?r:(0===t(n,n))-(0===t(e,e))}}(o);i>r;){if(i-r>600){let a=i-r+1,c=n-r+1,u=Math.log(a),l=.5*Math.exp(2*u/3),s=.5*Math.sqrt(u*l*(a-l)/a)*(c-a/2<0?-1:1),f=Math.max(r,Math.floor(n-c*l/a+s)),p=Math.min(i,Math.floor(n+(a-c)*l/a+s));t(e,n,f,p,o)}let a=e[n],c=r,u=i;for(oP(e,r,n),o(e[i],a)>0&&oP(e,r,i);co(e[c],a);)++c;for(;o(e[u],a)>0;)--u}0===o(e[r],a)?oP(e,r,u):oP(e,++u,i),u<=n&&(r=u+1),n<=u&&(i=u-1)}return e})(t,o).subarray(0,o+1));return a+(oE(t.subarray(o+1))-a)*(i-o)}})(e,r/t))},r.copy=function(){return t(n).domain(e)},rV.apply(r,arguments)}},scaleSequentialSqrt:function(){return cb},scaleSequentialSymlog:function(){return function t(){var e=ov(cv());return e.copy=function(){return cm(e,t()).constant(e.constant())},rV.apply(e,arguments)}},scaleSqrt:function(){return oO},scaleSymlog:function(){return function t(){var e=ov(i1());return e.copy=function(){return i0(e,t()).constant(e.constant())},rH.apply(e,arguments)}},scaleThreshold:function(){return function t(){var e,n=[.5],r=[0,1],i=1;function o(t){return null!=t&&t<=t?r[ii(n,t,0,i)]:e}return o.domain=function(t){return arguments.length?(i=Math.min((n=Array.from(t)).length,r.length-1),o):n.slice()},o.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return t().domain(n).range(r).unknown(e)},rH.apply(o,arguments)}},scaleTime:function(){return cd},scaleUtc:function(){return cy},tickFormat:function(){return or}});var E=n(57437),A=n(2265),P=n(41448),k=n.n(P),M=Object.getOwnPropertyNames,T=Object.getOwnPropertySymbols,_=Object.prototype.hasOwnProperty;function C(t,e){return function(n,r,i){return t(n,r,i)&&e(n,r,i)}}function I(t){return function(e,n,r){if(!e||!n||"object"!=typeof e||"object"!=typeof n)return t(e,n,r);var i=r.cache,o=i.get(e),a=i.get(n);if(o&&a)return o===n&&a===e;i.set(e,n),i.set(n,e);var c=t(e,n,r);return i.delete(e),i.delete(n),c}}function D(t){return M(t).concat(T(t))}var N=Object.hasOwn||function(t,e){return _.call(t,e)};function B(t,e){return t||e?t===e:t===e||t!=t&&e!=e}var L="_owner",R=Object.getOwnPropertyDescriptor,z=Object.keys;function $(t,e,n){var r=t.length;if(e.length!==r)return!1;for(;r-- >0;)if(!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function U(t,e){return B(t.getTime(),e.getTime())}function F(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.entries(),c=0;(r=a.next())&&!r.done;){for(var u=e.entries(),l=!1,s=0;(i=u.next())&&!i.done;){var f=r.value,p=f[0],h=f[1],d=i.value,y=d[0],v=d[1];!l&&!o[s]&&(l=n.equals(p,y,c,s,t,e,n)&&n.equals(h,v,p,y,t,e,n))&&(o[s]=!0),s++}if(!l)return!1;c++}return!0}function W(t,e,n){var r,i=z(t),o=i.length;if(z(e).length!==o)return!1;for(;o-- >0;)if((r=i[o])===L&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!N(e,r)||!n.equals(t[r],e[r],r,r,t,e,n))return!1;return!0}function q(t,e,n){var r,i,o,a=D(t),c=a.length;if(D(e).length!==c)return!1;for(;c-- >0;)if((r=a[c])===L&&(t.$$typeof||e.$$typeof)&&t.$$typeof!==e.$$typeof||!N(e,r)||!n.equals(t[r],e[r],r,r,t,e,n)||(i=R(t,r),o=R(e,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable)))return!1;return!0}function H(t,e){return B(t.valueOf(),e.valueOf())}function V(t,e){return t.source===e.source&&t.flags===e.flags}function X(t,e,n){if(t.size!==e.size)return!1;for(var r,i,o={},a=t.values();(r=a.next())&&!r.done;){for(var c=e.values(),u=!1,l=0;(i=c.next())&&!i.done;)!u&&!o[l]&&(u=n.equals(r.value,i.value,r.value,i.value,t,e,n))&&(o[l]=!0),l++;if(!u)return!1}return!0}function Z(t,e){var n=t.length;if(e.length!==n)return!1;for(;n-- >0;)if(t[n]!==e[n])return!1;return!0}var G=Array.isArray,Y="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,K=Object.assign,J=Object.prototype.toString.call.bind(Object.prototype.toString),Q=tt();function tt(t){void 0===t&&(t={});var e,n,r,i,o,a,c,u,l,s=t.circular,f=t.createInternalComparator,p=t.createState,h=t.strict,d=(n=(e=function(t){var e=t.circular,n=t.createCustomConfig,r=t.strict,i={areArraysEqual:r?q:$,areDatesEqual:U,areMapsEqual:r?C(F,q):F,areObjectsEqual:r?q:W,arePrimitiveWrappersEqual:H,areRegExpsEqual:V,areSetsEqual:r?C(X,q):X,areTypedArraysEqual:r?q:Z};if(n&&(i=K({},i,n(i))),e){var o=I(i.areArraysEqual),a=I(i.areMapsEqual),c=I(i.areObjectsEqual),u=I(i.areSetsEqual);i=K({},i,{areArraysEqual:o,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:u})}return i}(t)).areArraysEqual,r=e.areDatesEqual,i=e.areMapsEqual,o=e.areObjectsEqual,a=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,u=e.areSetsEqual,l=e.areTypedArraysEqual,function(t,e,s){if(t===e)return!0;if(null==t||null==e||"object"!=typeof t||"object"!=typeof e)return t!=t&&e!=e;var f=t.constructor;if(f!==e.constructor)return!1;if(f===Object)return o(t,e,s);if(G(t))return n(t,e,s);if(null!=Y&&Y(t))return l(t,e,s);if(f===Date)return r(t,e,s);if(f===RegExp)return c(t,e,s);if(f===Map)return i(t,e,s);if(f===Set)return u(t,e,s);var p=J(t);return"[object Date]"===p?r(t,e,s):"[object RegExp]"===p?c(t,e,s):"[object Map]"===p?i(t,e,s):"[object Set]"===p?u(t,e,s):"[object Object]"===p?"function"!=typeof t.then&&"function"!=typeof e.then&&o(t,e,s):"[object Arguments]"===p?o(t,e,s):("[object Boolean]"===p||"[object Number]"===p||"[object String]"===p)&&a(t,e,s)}),y=f?f(d):function(t,e,n,r,i,o,a){return d(t,e,a)};return function(t){var e=t.circular,n=t.comparator,r=t.createState,i=t.equals,o=t.strict;if(r)return function(t,a){var c=r(),u=c.cache;return n(t,a,{cache:void 0===u?e?new WeakMap:void 0:u,equals:i,meta:c.meta,strict:o})};if(e)return function(t,e){return n(t,e,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var a={cache:void 0,equals:i,meta:void 0,strict:o};return function(t,e){return n(t,e,a)}}({circular:void 0!==s&&s,comparator:d,createState:p,equals:y,strict:void 0!==h&&h})}function te(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1;requestAnimationFrame(function r(i){if(n<0&&(n=i),i-n>e)t(i),n=-1;else{var o;o=r,"undefined"!=typeof requestAnimationFrame&&requestAnimationFrame(o)}})}function tn(t){return(tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tr(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n=0&&t<=1}),"[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s",r);var p=tv(o,c),h=tv(a,u),d=(t=o,e=c,function(n){var r;return ty([].concat(function(t){if(Array.isArray(t))return th(t)}(r=td(t,e).map(function(t,e){return t*e}).slice(1))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||tp(r)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[0]),n)}),y=function(t){for(var e=t>1?1:t,n=e,r=0;r<8;++r){var i,o=p(n)-e,a=d(n);if(1e-4>Math.abs(o-e)||a<1e-4)break;n=(i=n-o/a)>1?1:i<0?0:i}return h(n)};return y.isStepper=!1,y},tg=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.stiff,n=void 0===e?100:e,r=t.damping,i=void 0===r?8:r,o=t.dt,a=void 0===o?17:o,c=function(t,e,r){var o=r+(-(t-e)*n-r*i)*a/1e3,c=r*a/1e3+t;return 1e-4>Math.abs(c-e)&&1e-4>Math.abs(o)?[e,0]:[c,o]};return c.isStepper=!0,c.dt=a,c},tb=function(){for(var t=arguments.length,e=Array(t),n=0;nt.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0?n[i-1]:r,p=l||Object.keys(u);if("function"==typeof c||"spring"===c)return[].concat(tI(t),[e.runJSAnimation.bind(e,{from:f.style,to:u,duration:o,easing:c}),o]);var h=ts(p,o,c),d=tB(tB(tB({},f.style),u),{},{transition:h});return[].concat(tI(t),[d,o,s]).filter(tu)},[a,Math.max(void 0===c?0:c,r)])),[t.onAnimationEnd]))}},{key:"runAnimation",value:function(t){if(!this.manager){var e,n,r;this.manager=(e=function(){return null},n=!1,r=function t(r){if(!n){if(Array.isArray(r)){if(!r.length)return;var i=function(t){if(Array.isArray(t))return t}(r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(r)||function(t,e){if(t){if("string"==typeof t)return tr(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return tr(t,void 0)}}(r)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i.slice(1);if("number"==typeof o){te(t.bind(null,a),o);return}t(o),te(t.bind(null,a));return}"object"===tn(r)&&e(r),"function"==typeof r&&r()}},{stop:function(){n=!0},start:function(t){n=!1,r(t)},subscribe:function(t){return e=t,function(){e=function(){return null}}}})}var i=t.begin,o=t.duration,a=t.attributeName,c=t.to,u=t.easing,l=t.onAnimationStart,s=t.onAnimationEnd,f=t.steps,p=t.children,h=this.manager;if(this.unSubscribe=h.subscribe(this.handleStyleChange),"function"==typeof u||"function"==typeof p||"spring"===u){this.runJSAnimation(t);return}if(f.length>1){this.runStepAnimation(t);return}var d=a?tL({},a,c):c,y=ts(Object.keys(d),o,u);h.start([l,i,tB(tB({},d),{},{transition:y}),o,s])}},{key:"render",value:function(){var t=this.props,e=t.children,n=(t.begin,t.duration),r=(t.attributeName,t.easing,t.isActive),i=(t.steps,t.from,t.to,t.canBegin,t.onAnimationEnd,t.shouldReAnimate,t.onAnimationReStart,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,tC)),o=A.Children.count(e),a=this.state.style;if("function"==typeof e)return e(a);if(!r||0===o||n<=0)return e;var c=function(t){var e=t.props,n=e.style,r=e.className;return(0,A.cloneElement)(t,tB(tB({},i),{},{style:tB(tB({},void 0===n?{}:n),a),className:r}))};return 1===o?c(A.Children.only(e)):A.createElement("div",null,A.Children.map(e,function(t){return c(t)}))}}],function(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=t.steps,n=t.duration;return e&&e.length?e.reduce(function(t,e){return t+(Number.isFinite(e.duration)&&e.duration>0?e.duration:0)},0):Number.isFinite(n)?n:0},el=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&er(t,e)}(i,t);var e,n,r=(e=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}(),function(){var t,n=eo(i);return t=e?Reflect.construct(n,arguments,eo(this).constructor):n.apply(this,arguments),function(t,e){if(e&&("object"===t9(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return ei(t)}(this,t)});function i(){var t;return!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,i),ea(ei(t=r.call(this)),"handleEnter",function(e,n){var r=t.props,i=r.appearOptions,o=r.enterOptions;t.handleStyleActive(n?i:o)}),ea(ei(t),"handleExit",function(){var e=t.props.leaveOptions;t.handleStyleActive(e)}),t.state={isActive:!1},t}return n=[{key:"handleStyleActive",value:function(t){if(t){var e=t.onAnimationEnd?function(){t.onAnimationEnd()}:null;this.setState(en(en({},t),{},{onAnimationEnd:e,isActive:!0}))}}},{key:"parseTimeout",value:function(){var t=this.props,e=t.appearOptions,n=t.enterOptions,r=t.leaveOptions;return eu(e)+eu(n)+eu(r)}},{key:"render",value:function(){var t=this,e=this.props,n=e.children,r=(e.appearOptions,e.enterOptions,e.leaveOptions,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,t8));return A.createElement(t6,et({},r,{onEnter:this.handleEnter,onExit:this.handleExit,timeout:this.parseTimeout()}),function(){return A.createElement(tW,t.state,A.Children.only(n))})}}],function(t,e){for(var n=0;n=0;--e)i[e]=(a[e]-i[e+1])/o[e];for(e=0,o[r-1]=(t[r]+i[r-1])/2;e=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}}this._x=t,this._y=e}},Array.prototype.slice;let eR=Math.PI,ez=2*eR,e$=ez-1e-6;function eU(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw Error(`invalid digits: ${t}`);if(e>15)return eU;let n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e1e-6){if(Math.abs(s*c-u*l)>1e-6&&i){let p=n-o,h=r-a,d=c*c+u*u,y=Math.sqrt(d),v=Math.sqrt(f),m=i*Math.tan((eR-Math.acos((d+f-(p*p+h*h))/(2*y*v)))/2),g=m/v,b=m/y;Math.abs(g-1)>1e-6&&this._append`L${t+g*l},${e+g*s}`,this._append`A${i},${i},0,0,${+(s*p>l*h)},${this._x1=t+b*c},${this._y1=e+b*u}`}else this._append`L${this._x1=t},${this._y1=e}`}}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw Error(`negative radius: ${n}`);let a=n*Math.cos(r),c=n*Math.sin(r),u=t+a,l=e+c,s=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${u},${l}`:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&this._append`L${u},${l}`,n&&(f<0&&(f=f%ez+ez),f>e$?this._append`A${n},${n},0,1,${s},${t-a},${e-c}A${n},${n},0,1,${s},${this._x1=u},${this._y1=l}`:f>1e-6&&this._append`A${n},${n},0,${+(f>=eR)},${s},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function eW(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{let t=Math.floor(n);if(!(t>=0))throw RangeError(`invalid digits: ${n}`);e=t}return t},()=>new eF(e)}function eq(t){return t[0]}function eH(t){return t[1]}function eV(t,e){var n=eL(!0),r=null,i=eA,o=null,a=eW(c);function c(c){var u,l,s,f=(c=eB(c)).length,p=!1;for(null==r&&(o=i(s=a())),u=0;u<=f;++u)!(u=f;--p)c.point(m[p],g[p]);c.lineEnd(),c.areaEnd()}}v&&(m[s]=+t(h,s,l),g[s]=+e(h,s,l),c.point(r?+r(h,s,l):m[s],n?+n(h,s,l):g[s]))}if(d)return c=null,d+""||null}function s(){return eV().defined(i).curve(a).context(o)}return t="function"==typeof t?t:void 0===t?eq:eL(+t),e="function"==typeof e?e:void 0===e?eL(0):eL(+e),n="function"==typeof n?n:void 0===n?eH:eL(+n),l.x=function(e){return arguments.length?(t="function"==typeof e?e:eL(+e),r=null,l):t},l.x0=function(e){return arguments.length?(t="function"==typeof e?e:eL(+e),l):t},l.x1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:eL(+t),l):r},l.y=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),n=null,l):e},l.y0=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),l):e},l.y1=function(t){return arguments.length?(n=null==t?null:"function"==typeof t?t:eL(+t),l):n},l.lineX0=l.lineY0=function(){return s().x(t).y(e)},l.lineY1=function(){return s().x(t).y(n)},l.lineX1=function(){return s().x(r).y(e)},l.defined=function(t){return arguments.length?(i="function"==typeof t?t:eL(!!t),l):i},l.curve=function(t){return arguments.length?(a=t,null!=o&&(c=a(o)),l):a},l.context=function(t){return arguments.length?(null==t?o=c=null:c=a(o=t),l):o},l}eF.prototype;var eZ=n(62637),eG=n.n(eZ),eY=n(63117),eK=n.n(eY);function eJ(t){return(eJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var eQ=["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"],e0=["points","pathLength"],e1={svg:["viewBox","children"],polygon:e0,polyline:e0},e2=["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"],e3=function(t,e){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var n=t;if((0,A.isValidElement)(t)&&(n=t.props),!eK()(n))return null;var r={};return Object.keys(n).forEach(function(t){e2.includes(t)&&(r[t]=e||function(e){return n[t](n,e)})}),r},e5=function(t,e,n){if(!eK()(t)||"object"!==eJ(t))return null;var r=null;return Object.keys(t).forEach(function(i){var o=t[i];e2.includes(i)&&"function"==typeof o&&(r||(r={}),r[i]=function(t){return o(e,n,t),null})}),r},e4=n(97019),e6=n.n(e4),e7=n(71519),e8=n.n(e7),e9=n(12659),nt=n(50299),ne=n.n(nt),nn=n(60555),nr=n.n(nn),ni=function(t){return 0===t?0:t>0?1:-1},no=function(t){return e8()(t)&&t.indexOf("%")===t.length-1},na=function(t){return nr()(t)&&!ne()(t)},nc=function(t){return na(t)||e8()(t)},nu=0,nl=function(t){var e=++nu;return"".concat(t||"").concat(e)},ns=function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!na(t)&&!e8()(t))return r;if(no(t)){var o=t.indexOf("%");n=e*parseFloat(t.slice(0,o))/100}else n=+t;return ne()(n)&&(n=r),i&&n>e&&(n=e),n},nf=function(t){if(!t)return null;var e=Object.keys(t);return e&&e.length?t[e[0]]:null},np=function(t){if(!Array.isArray(t))return!1;for(var e=t.length,n={},r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function nb(t){return(nb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var nx={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},nw=function(t){return"string"==typeof t?t:t?t.displayName||t.name||"Component":""},nO=null,nS=null,nj=function t(e){if(e===nO&&Array.isArray(nS))return nS;var n=[];return A.Children.forEach(e,function(e){ed()(e)||((0,e9.isFragment)(e)?n=n.concat(t(e.props.children)):n.push(e))}),nS=n,nO=e,n};function nE(t,e){var n=[],r=[];return r=Array.isArray(e)?e.map(function(t){return nw(t)}):[nw(e)],nj(t).forEach(function(t){var e=e6()(t,"type.displayName")||e6()(t,"type.name");-1!==r.indexOf(e)&&n.push(t)}),n}function nA(t,e){var n=nE(t,e);return n&&n[0]}var nP=function(t){if(!t||!t.props)return!1;var e=t.props,n=e.width,r=e.height;return!!na(n)&&!(n<=0)&&!!na(r)&&!(r<=0)},nk=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],nM=function(t,e,n,r){var i,o=null!==(i=null==e1?void 0:e1[r])&&void 0!==i?i:[];return!ep()(t)&&(r&&o.includes(e)||eQ.includes(e))||n&&e2.includes(e)},nT=function(t,e,n){if(!t||"function"==typeof t||"boolean"==typeof t)return null;var r=t;if((0,A.isValidElement)(t)&&(r=t.props),!eK()(r))return null;var i={};return Object.keys(r).forEach(function(t){var o;nM(null===(o=r)||void 0===o?void 0:o[t],t,e,n)&&(i[t]=r[t])}),i},n_=function t(e,n){if(e===n)return!0;var r=A.Children.count(e);if(r!==A.Children.count(n))return!1;if(0===r)return!0;if(1===r)return nC(Array.isArray(e)?e[0]:e,Array.isArray(n)?n[0]:n);for(var i=0;i=0)n.push(t);else if(t){var o=nw(t.type),a=e[o]||{},c=a.handler,u=a.once;if(c&&(!u||!r[o])){var l=c(t,o,i);n.push(l),r[o]=!0}}}),n},nD=function(t){var e=t&&t.type;return e&&nx[e]?nx[e]:null};function nN(t){return(nN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nB(){return(nB=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,nZ),o=(0,em.Z)("recharts-layer",r);return A.createElement("g",nG({className:o},nT(i,!0),{ref:e}),n)}),nK=n(96579),nJ=n.n(nK),nQ={isSsr:!("undefined"!=typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(t){return nQ[t]},set:function(t,e){if("string"==typeof t)nQ[t]=e;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(e){nQ[e]=t[e]})}}};function n0(t){return(n0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n1(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function n2(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};if(null==t||nQ.isSsr)return{width:0,height:0};var r=(Object.keys(e=n2({},n)).forEach(function(t){e[t]||delete e[t]}),e),i=JSON.stringify({text:t,copyStyle:r});if(n3.widthCache[i])return n3.widthCache[i];try{var o=document.getElementById(n4);o||((o=document.createElement("span")).setAttribute("id",n4),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=n2(n2({},n5),r);Object.assign(o.style,a),o.textContent="".concat(t);var c=o.getBoundingClientRect(),u={width:c.width,height:c.height};return n3.widthCache[i]=u,++n3.cacheCount>2e3&&(n3.cacheCount=0,n3.widthCache={}),u}catch(t){return{width:0,height:0}}};function n7(t){return(n7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n8(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n9(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n9(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ry(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(c.push(r.value),c.length!==e);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return rv(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rv(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rv(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&void 0!==arguments[0]?arguments[0]:[];return t.reduce(function(t,e){var o=e.word,a=e.width,c=t[t.length-1];return c&&(null==r||i||c.width+a+na||e.reduce(function(t,e){return t.width>e.width?t:e}).width>Number(r),e]},d=0,y=c.length-1,v=0;d<=y&&v<=c.length-1;){var m=Math.floor((d+y)/2),g=ry(h(m-1),2),b=g[0],x=g[1],w=ry(h(m),1)[0];if(b||w||(d=m+1),b&&w&&(y=m-1),!b&&w){o=x;break}v++}return o||p},rx=function(t){return[{words:ed()(t)?[]:t.toString().split(rm)}]},rw=function(t){var e=t.width,n=t.scaleToFit,r=t.children,i=t.style,o=t.breakAll,a=t.maxLines;if((e||n)&&!nQ.isSsr){var c=rg({breakAll:o,children:r,style:i});return c?rb({breakAll:o,children:r,maxLines:a,style:i},c.wordsWithComputedWidth,c.spaceWidth,e,n):rx(r)}return rx(r)},rO="#808080",rS=function(t){var e,n=t.x,r=void 0===n?0:n,i=t.y,o=void 0===i?0:i,a=t.lineHeight,c=void 0===a?"1em":a,u=t.capHeight,l=void 0===u?"0.71em":u,s=t.scaleToFit,f=void 0!==s&&s,p=t.textAnchor,h=t.verticalAnchor,d=t.fill,y=void 0===d?rO:d,v=rd(t,rf),m=(0,A.useMemo)(function(){return rw({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})},[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),g=v.dx,b=v.dy,x=v.angle,w=v.className,O=v.breakAll,S=rd(v,rp);if(!nc(r)||!nc(o))return null;var j=r+(na(g)?g:0),E=o+(na(b)?b:0);switch(void 0===h?"end":h){case"start":e=rs("calc(".concat(l,")"));break;case"middle":e=rs("calc(".concat((m.length-1)/2," * -").concat(c," + (").concat(l," / 2))"));break;default:e=rs("calc(".concat(m.length-1," * -").concat(c,")"))}var P=[];if(f){var k=m[0].width,M=v.width;P.push("scale(".concat((na(M)?M/k:1)/k,")"))}return x&&P.push("rotate(".concat(x,", ").concat(j,", ").concat(E,")")),P.length&&(S.transform=P.join(" ")),A.createElement("text",rh({},nT(S,!0),{x:j,y:E,className:(0,em.Z)("recharts-text",w),textAnchor:void 0===p?"start":p,fill:y.includes("url")?rO:y}),m.map(function(t,n){var r=t.words.join(O?"":" ");return A.createElement("tspan",{x:j,dy:0===n?e:c,key:r},r)}))};function rj(t){return(rj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rE(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function rA(t){for(var e=1;eo&&(c=2*Math.PI-c),{radius:a,angle:180*c/Math.PI,angleInRadian:c}},r_=function(t){var e=t.startAngle,n=t.endAngle,r=Math.min(Math.floor(e/360),Math.floor(n/360));return{startAngle:e-360*r,endAngle:n-360*r}},rC=function(t,e){var n,r=rT({x:t.x,y:t.y},e),i=r.radius,o=r.angle,a=e.innerRadius,c=e.outerRadius;if(ic)return!1;if(0===i)return!0;var u=r_(e),l=u.startAngle,s=u.endAngle,f=o;if(l<=s){for(;f>s;)f-=360;for(;f=l&&f<=s}else{for(;f>l;)f-=360;for(;f=s&&f<=l}return n?rA(rA({},e),{},{radius:i,angle:f+360*Math.min(Math.floor(e.startAngle/360),Math.floor(e.endAngle/360))}):null};function rI(t){return(rI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var rD=["offset"];function rN(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1;"insideStart"===o?(r=h+g*c,i=y):"insideEnd"===o?(r=d-g*c,i=!y):"end"===o&&(r=d+g*c,i=y),i=m<=0?i:!i;var b=rk(l,s,v,r),x=rk(l,s,v,r+(i?1:-1)*359),w="M".concat(b.x,",").concat(b.y,"\n A").concat(v,",").concat(v,",0,1,").concat(i?0:1,",\n ").concat(x.x,",").concat(x.y),O=ed()(t.id)?nl("recharts-radial-line-"):t.id;return A.createElement("text",rR({},n,{dominantBaseline:"central",className:(0,em.Z)("recharts-radial-bar-label",u)}),A.createElement("defs",null,A.createElement("path",{id:O,d:w})),A.createElement("textPath",{xlinkHref:"#".concat(O)},e))},rU=function(t){var e=t.viewBox,n=t.offset,r=t.position,i=e.cx,o=e.cy,a=e.innerRadius,c=e.outerRadius,u=(e.startAngle+e.endAngle)/2;if("outside"===r){var l=rk(i,o,c+n,u),s=l.x;return{x:s,y:l.y,textAnchor:s>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:o,textAnchor:"middle",verticalAnchor:"end"};var f=rk(i,o,(a+c)/2,u);return{x:f.x,y:f.y,textAnchor:"middle",verticalAnchor:"middle"}},rF=function(t){var e=t.viewBox,n=t.parentViewBox,r=t.offset,i=t.position,o=e.x,a=e.y,c=e.width,u=e.height,l=u>=0?1:-1,s=l*r,f=l>0?"end":"start",p=l>0?"start":"end",h=c>=0?1:-1,d=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===i)return rL(rL({},{x:o+c/2,y:a-l*r,textAnchor:"middle",verticalAnchor:f}),n?{height:Math.max(a-n.y,0),width:c}:{});if("bottom"===i)return rL(rL({},{x:o+c/2,y:a+u+s,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(a+u),0),width:c}:{});if("left"===i){var m={x:o-d,y:a+u/2,textAnchor:y,verticalAnchor:"middle"};return rL(rL({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===i){var g={x:o+c+d,y:a+u/2,textAnchor:v,verticalAnchor:"middle"};return rL(rL({},g),n?{width:Math.max(n.x+n.width-g.x,0),height:u}:{})}var b=n?{width:c,height:u}:{};return"insideLeft"===i?rL({x:o+d,y:a+u/2,textAnchor:v,verticalAnchor:"middle"},b):"insideRight"===i?rL({x:o+c-d,y:a+u/2,textAnchor:y,verticalAnchor:"middle"},b):"insideTop"===i?rL({x:o+c/2,y:a+s,textAnchor:"middle",verticalAnchor:p},b):"insideBottom"===i?rL({x:o+c/2,y:a+u-s,textAnchor:"middle",verticalAnchor:f},b):"insideTopLeft"===i?rL({x:o+d,y:a+s,textAnchor:v,verticalAnchor:p},b):"insideTopRight"===i?rL({x:o+c-d,y:a+s,textAnchor:y,verticalAnchor:p},b):"insideBottomLeft"===i?rL({x:o+d,y:a+u-s,textAnchor:v,verticalAnchor:f},b):"insideBottomRight"===i?rL({x:o+c-d,y:a+u-s,textAnchor:y,verticalAnchor:f},b):eK()(i)&&(na(i.x)||no(i.x))&&(na(i.y)||no(i.y))?rL({x:o+ns(i.x,c),y:a+ns(i.y,u),textAnchor:"end",verticalAnchor:"end"},b):rL({x:o+c/2,y:a+u/2,textAnchor:"middle",verticalAnchor:"middle"},b)};function rW(t){var e,n=t.offset,r=rL({offset:void 0===n?5:n},function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,rD)),i=r.viewBox,o=r.position,a=r.value,c=r.children,u=r.content,l=r.className,s=r.textBreakAll;if(!i||ed()(a)&&ed()(c)&&!(0,A.isValidElement)(u)&&!ep()(u))return null;if((0,A.isValidElement)(u))return(0,A.cloneElement)(u,r);if(ep()(u)){if(e=(0,A.createElement)(u,r),(0,A.isValidElement)(e))return e}else e=rz(r);var f="cx"in i&&na(i.cx),p=nT(r,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return r$(r,e,p);var h=f?rU(r):rF(r);return A.createElement(rS,rR({className:(0,em.Z)("recharts-label",void 0===l?"":l)},p,h,{breakAll:s}),e)}rW.displayName="Label";var rq=function(t){var e=t.cx,n=t.cy,r=t.angle,i=t.startAngle,o=t.endAngle,a=t.r,c=t.radius,u=t.innerRadius,l=t.outerRadius,s=t.x,f=t.y,p=t.top,h=t.left,d=t.width,y=t.height,v=t.clockWise,m=t.labelViewBox;if(m)return m;if(na(d)&&na(y)){if(na(s)&&na(f))return{x:s,y:f,width:d,height:y};if(na(p)&&na(h))return{x:p,y:h,width:d,height:y}}return na(s)&&na(f)?{x:s,y:f,width:0,height:0}:na(e)&&na(n)?{cx:e,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:u||0,outerRadius:l||c||a||0,clockWise:v}:t.viewBox?t.viewBox:{}};function rH(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}function rV(t,e){switch(arguments.length){case 0:break;case 1:"function"==typeof t?this.interpolator(t):this.range(t);break;default:this.domain(t),"function"==typeof e?this.interpolator(e):this.range(e)}return this}rW.parseViewBox=rq,rW.renderCallByParent=function(t,e){var n,r,i=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&i&&!t.label)return null;var o=t.children,a=rq(t),c=nE(o,rW).map(function(t,n){return(0,A.cloneElement)(t,{viewBox:e||a,key:"label-".concat(n)})});return i?[(n=t.label,r=e||a,n?!0===n?A.createElement(rW,{key:"label-implicit",viewBox:r}):nc(n)?A.createElement(rW,{key:"label-implicit",viewBox:r,value:n}):(0,A.isValidElement)(n)?n.type===rW?(0,A.cloneElement)(n,{key:"label-implicit",viewBox:r}):A.createElement(rW,{key:"label-implicit",content:n,viewBox:r}):ep()(n)?A.createElement(rW,{key:"label-implicit",content:n,viewBox:r}):eK()(n)?A.createElement(rW,rR({viewBox:r},n,{key:"label-implicit"})):null:null)].concat(function(t){if(Array.isArray(t))return rN(t)}(c)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(c)||function(t,e){if(t){if("string"==typeof t)return rN(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rN(t,void 0)}}(c)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):c};class rX extends Map{constructor(t,e=rG){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(rZ(this,t))}has(t){return super.has(rZ(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function rZ({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function rG(t){return null!==t&&"object"==typeof t?t.valueOf():t}let rY=Symbol("implicit");function rK(){var t=new rX,e=[],n=[],r=rY;function i(i){let o=t.get(i);if(void 0===o){if(r!==rY)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();for(let r of(e=[],t=new rX,n))t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return rK(e,n).unknown(r)},rH.apply(i,arguments),i}function rJ(){var t,e,n=rK().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,u=0,l=0,s=.5;function f(){var n=r().length,f=a=r0?10:u>=r1?5:u>=r2?2:1;return(c<0?(r=Math.round(t*(o=Math.pow(10,-c)/l)),i=Math.round(e*o),r/oe&&--i,o=-o):(r=Math.round(t/(o=Math.pow(10,c)*l)),i=Math.round(e/o),r*oe&&--i),i0))return[];if(t===e)return[t];let r=e=i))return[];let c=o-i+1,u=Array(c);if(r){if(a<0)for(let t=0;te?1:t>=e?0:NaN}function r8(t,e){return null==t||null==e?NaN:et?1:e>=t?0:NaN}function r9(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i>>1;0>n(t[e],r)?i=e+1:o=e}while(ir7(t(e),n),r=(e,n)=>t(e)-n):(e=t===r7||t===r8?t:it,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){let a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i>>1;0>=n(t[e],r)?i=e+1:o=e}while(i>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?ij(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?ij(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=ih.exec(t))?new iA(e[1],e[2],e[3],1):(e=id.exec(t))?new iA(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=iy.exec(t))?ij(e[1],e[2],e[3],e[4]):(e=iv.exec(t))?ij(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=im.exec(t))?iC(e[1],e[2]/100,e[3]/100,1):(e=ig.exec(t))?iC(e[1],e[2]/100,e[3]/100,e[4]):ib.hasOwnProperty(t)?iS(ib[t]):"transparent"===t?new iA(NaN,NaN,NaN,0):null}function iS(t){return new iA(t>>16&255,t>>8&255,255&t,1)}function ij(t,e,n,r){return r<=0&&(t=e=n=NaN),new iA(t,e,n,r)}function iE(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof ic||(i=iO(i)),i)?new iA((i=i.rgb()).r,i.g,i.b,i.opacity):new iA:new iA(t,e,n,null==r?1:r)}function iA(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function iP(){return`#${i_(this.r)}${i_(this.g)}${i_(this.b)}`}function ik(){let t=iM(this.opacity);return`${1===t?"rgb(":"rgba("}${iT(this.r)}, ${iT(this.g)}, ${iT(this.b)}${1===t?")":`, ${t})`}`}function iM(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function iT(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function i_(t){return((t=iT(t))<16?"0":"")+t.toString(16)}function iC(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new iD(t,e,n,r)}function iI(t){if(t instanceof iD)return new iD(t.h,t.s,t.l,t.opacity);if(t instanceof ic||(t=iO(t)),!t)return new iD;if(t instanceof iD)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,u=(o+i)/2;return c?(a=e===o?(n-r)/c+(n0&&u<1?0:a,new iD(a,c,u,t.opacity)}function iD(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function iN(t){return(t=(t||0)%360)<0?t+360:t}function iB(t){return Math.max(0,Math.min(1,t||0))}function iL(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function iR(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}io(ic,iO,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:ix,formatHex:ix,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return iI(this).formatHsl()},formatRgb:iw,toString:iw}),io(iA,iE,ia(ic,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new iA(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new iA(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new iA(iT(this.r),iT(this.g),iT(this.b),iM(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:iP,formatHex:iP,formatHex8:function(){return`#${i_(this.r)}${i_(this.g)}${i_(this.b)}${i_((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:ik,toString:ik})),io(iD,function(t,e,n,r){return 1==arguments.length?iI(t):new iD(t,e,n,null==r?1:r)},ia(ic,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new iD(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new iD(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new iA(iL(t>=240?t-240:t+120,i,r),iL(t,i,r),iL(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new iD(iN(this.h),iB(this.s),iB(this.l),iM(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 t=iM(this.opacity);return`${1===t?"hsl(":"hsla("}${iN(this.h)}, ${100*iB(this.s)}%, ${100*iB(this.l)}%${1===t?")":`, ${t})`}`}}));var iz=t=>()=>t;function i$(t,e){var n=e-t;return n?function(e){return t+e*n}:iz(isNaN(t)?e:t)}var iU=function t(e){var n,r=1==(n=+(n=e))?i$:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):iz(isNaN(t)?e:t)};function i(t,e){var n=r((t=iE(t)).r,(e=iE(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),a=i$(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return i.gamma=t,i}(1);function iF(t){return function(e){var n,r,i=e.length,o=Array(i),a=Array(i),c=Array(i);for(n=0;n=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,c=rc&&(a=e.slice(c,a),l[u]?l[u]+=a:l[++u]=a),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,s.push({i:u,x:iW(i,o)})),c=iH.lastIndex;return ce&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=u>2?iQ:iJ,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),c,u)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(c,a.map(t),iW)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,iZ),s()):a.slice()},f.range=function(t){return arguments.length?(c=Array.from(t),s()):c.slice()},f.rangeRound=function(t){return c=Array.from(t),u=iX,s()},f.clamp=function(t){return arguments.length?(l=!!t||iY,s()):l!==iY},f.interpolate=function(t){return arguments.length?(u=t,s()):u},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,s()}}function i2(){return i1()(iY,iY)}var i3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i5(t){var e;if(!(e=i3.exec(t)))throw Error("invalid format: "+t);return new i4({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}function i4(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function i6(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function i7(t){return(t=i6(Math.abs(t)))?t[1]:NaN}function i8(t,e){var n=i6(t,e);if(!n)return t+"";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")}i5.prototype=i4.prototype,i4.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var i9={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>i8(100*t,e),r:i8,s:function(t,e){var n=i6(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(m=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+Array(1-o).join("0")+i6(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function ot(t){return t}var oe=Array.prototype.map,on=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function or(t,e,n,r){var i,o,a=r6(t,e,n);switch((r=i5(null==r?",f":r)).type){case"s":var c=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(o=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(i7(c)/3)))-i7(Math.abs(a))))||(r.precision=o),x(r,c);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=Math.max(0,i7(Math.abs(Math.max(Math.abs(t),Math.abs(e)))-(i=Math.abs(i=a)))-i7(i))+1)||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=Math.max(0,-i7(Math.abs(a))))||(r.precision=o-("%"===r.type)*2)}return b(r)}function oi(t){var e=t.domain;return t.ticks=function(t){var n=e();return r5(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return or(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,c=o.length-1,u=o[a],l=o[c],s=10;for(l0;){if((i=r4(u,l,n))===r)return o[a]=u,o[c]=l,e(o);if(i>0)u=Math.floor(u/i)*i,l=Math.ceil(l/i)*i;else if(i<0)u=Math.ceil(u*i)/i,l=Math.floor(l*i)/i;else break;r=i}return t},t}function oo(){var t=i2();return t.copy=function(){return i0(t,oo())},rH.apply(t,arguments),oi(t)}function oa(t,e){t=t.slice();var n,r=0,i=t.length-1,o=t[r],a=t[i];return a-t(-e,n)}function oh(t){let e,n;let r=t(oc,ou),i=r.domain,o=10;function a(){var a,c;return e=(a=o)===Math.E?Math.log:10===a&&Math.log10||2===a&&Math.log2||(a=Math.log(a),t=>Math.log(t)/a),n=10===(c=o)?of:c===Math.E?Math.exp:t=>Math.pow(c,t),i()[0]<0?(e=op(e),n=op(n),t(ol,os)):t(oc,ou),r}return r.base=function(t){return arguments.length?(o=+t,a()):o},r.domain=function(t){return arguments.length?(i(t),a()):i()},r.ticks=t=>{let r,a;let c=i(),u=c[0],l=c[c.length-1],s=l0){for(;f<=p;++f)for(r=1;rl)break;d.push(a)}}else for(;f<=p;++f)for(r=o-1;r>=1;--r)if(!((a=f>0?r/n(-f):r*n(f))l)break;d.push(a)}2*d.length{if(null==t&&(t=10),null==i&&(i=10===o?"s":","),"function"!=typeof i&&(o%1||null!=(i=i5(i)).precision||(i.trim=!0),i=b(i)),t===1/0)return i;let a=Math.max(1,o*t/r.ticks().length);return t=>{let r=t/n(Math.round(e(t)));return r*oi(oa(i(),{floor:t=>n(Math.floor(e(t))),ceil:t=>n(Math.ceil(e(t)))})),r}function od(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function oy(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ov(t){var e=1,n=t(od(1),oy(e));return n.constant=function(n){return arguments.length?t(od(e=+n),oy(e)):e},oi(n)}function om(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function og(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function ob(t){return t<0?-t*t:t*t}function ox(t){var e=t(iY,iY),n=1;return e.exponent=function(e){return arguments.length?1==(n=+e)?t(iY,iY):.5===n?t(og,ob):t(om(n),om(1/n)):n},oi(e)}function ow(){var t=ox(i1());return t.copy=function(){return i0(t,ow()).exponent(t.exponent())},rH.apply(t,arguments),t}function oO(){return ow.apply(null,arguments).exponent(.5)}function oS(t){return Math.sign(t)*t*t}function oj(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n=i)&&(n=i)}return n}function oE(t,e){let n;if(void 0===e)for(let e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function oA(t,e){return(null==t||!(t>=t))-(null==e||!(e>=e))||(te?1:0)}function oP(t,e,n){let r=t[e];t[e]=t[n],t[n]=r}b=(g=function(t){var e,n,r,i=void 0===t.grouping||void 0===t.thousands?ot:(e=oe.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,c=e[0],u=0;i>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),o.push(t.substring(i-=c,i+c)),!((u+=c+1)>r));)c=e[a=(a+1)%e.length];return o.reverse().join(n)}),o=void 0===t.currency?"":t.currency[0]+"",a=void 0===t.currency?"":t.currency[1]+"",c=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?ot:(r=oe.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return r[+t]})}),l=void 0===t.percent?"%":t.percent+"",s=void 0===t.minus?"−":t.minus+"",f=void 0===t.nan?"NaN":t.nan+"";function p(t){var e=(t=i5(t)).fill,n=t.align,r=t.sign,p=t.symbol,h=t.zero,d=t.width,y=t.comma,v=t.precision,g=t.trim,b=t.type;"n"===b?(y=!0,b="g"):i9[b]||(void 0===v&&(v=12),g=!0,b="g"),(h||"0"===e&&"="===n)&&(h=!0,e="0",n="=");var x="$"===p?o:"#"===p&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w="$"===p?a:/[%p]/.test(b)?l:"",O=i9[b],S=/[defgprs%]/.test(b);function j(t){var o,a,l,p=x,j=w;if("c"===b)j=O(t)+j,t="";else{var E=(t=+t)<0||1/t<0;if(t=isNaN(t)?f:O(Math.abs(t),v),g&&(t=function(t){e:for(var e,n=t.length,r=1,i=-1;r0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),E&&0==+t&&"+"!==r&&(E=!1),p=(E?"("===r?r:s:"-"===r||"("===r?"":r)+p,j=("s"===b?on[8+m/3]:"")+j+(E&&"("===r?")":""),S){for(o=-1,a=t.length;++o(l=t.charCodeAt(o))||l>57){j=(46===l?c+t.slice(o+1):t.slice(o))+j,t=t.slice(0,o);break}}}y&&!h&&(t=i(t,1/0));var A=p.length+t.length+j.length,P=A>1)+p+t+j+P.slice(A);break;default:t=P+p+t+j}return u(t)}return v=void 0===v?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),j.toString=function(){return t+""},j}return{format:p,formatPrefix:function(t,e){var n=p(((t=i5(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(i7(e)/3))),i=Math.pow(10,-r),o=on[8+r/3];return function(t){return n(i*t)+o}}}}({thousands:",",grouping:[3],currency:["$",""]})).format,x=g.formatPrefix;let ok=new Date,oM=new Date;function oT(t,e,n,r){function i(e){return t(e=0==arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{let e=i(t),n=i.ceil(t);return t-e(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{let a;let c=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n0))return c;do c.push(a=new Date(+n)),e(n,o),t(n);while(aoT(e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)},(t,r)=>{if(t>=t){if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););}}),n&&(i.count=(e,r)=>(ok.setTime(+e),oM.setTime(+r),t(ok),t(oM),Math.floor(n(ok,oM))),i.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null),i}let o_=oT(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);o_.every=t=>isFinite(t=Math.floor(t))&&t>0?t>1?oT(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):o_:null,o_.range;let oC=oT(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+1e3*e)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds());oC.range;let oI=oT(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getMinutes());oI.range;let oD=oT(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+6e4*e)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes());oD.range;let oN=oT(t=>{t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getHours());oN.range;let oB=oT(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+36e5*e)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours());oB.range;let oL=oT(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1);oL.range;let oR=oT(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1);oR.range;let oz=oT(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5));function o$(t){return oT(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(t,e)=>{t.setDate(t.getDate()+7*e)},(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/6048e5)}oz.range;let oU=o$(0),oF=o$(1),oW=o$(2),oq=o$(3),oH=o$(4),oV=o$(5),oX=o$(6);function oZ(t){return oT(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)},(t,e)=>(e-t)/6048e5)}oU.range,oF.range,oW.range,oq.range,oH.range,oV.range,oX.range;let oG=oZ(0),oY=oZ(1),oK=oZ(2),oJ=oZ(3),oQ=oZ(4),o0=oZ(5),o1=oZ(6);oG.range,oY.range,oK.range,oJ.range,oQ.range,o0.range,o1.range;let o2=oT(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());o2.range;let o3=oT(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());o3.range;let o5=oT(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());o5.every=t=>isFinite(t=Math.floor(t))&&t>0?oT(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)}):null,o5.range;let o4=oT(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());function o6(t,e,n,r,i,o){let a=[[oC,1,1e3],[oC,5,5e3],[oC,15,15e3],[oC,30,3e4],[o,1,6e4],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,36e5],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[e,1,2592e6],[e,3,7776e6],[t,1,31536e6]];function c(e,n,r){let i=Math.abs(n-e)/r,o=r9(([,,t])=>t).right(a,i);if(o===a.length)return t.every(r6(e/31536e6,n/31536e6,r));if(0===o)return o_.every(Math.max(r6(e,n,r),1));let[c,u]=a[i/a[o-1][2]isFinite(t=Math.floor(t))&&t>0?oT(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}):null,o4.range;let[o7,o8]=o6(o4,o3,oG,oz,oB,oD),[o9,at]=o6(o5,o2,oU,oL,oN,oI);function ae(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function an(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function ar(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}var ai={"-":"",_:" ",0:"0"},ao=/^\s*\d+/,aa=/^%/,ac=/[\\^$*+?|[\]().{}]/g;function au(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o[t.toLowerCase(),e]))}function ap(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function ah(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function ad(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function ay(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function av(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function am(t,e,n){var r=ao.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ag(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function ab(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function ax(t,e,n){var r=ao.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function aw(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function aO(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function aS(t,e,n){var r=ao.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function aj(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function aE(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function aA(t,e,n){var r=ao.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function aP(t,e,n){var r=ao.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function ak(t,e,n){var r=ao.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function aM(t,e,n){var r=aa.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function aT(t,e,n){var r=ao.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function a_(t,e,n){var r=ao.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function aC(t,e){return au(t.getDate(),e,2)}function aI(t,e){return au(t.getHours(),e,2)}function aD(t,e){return au(t.getHours()%12||12,e,2)}function aN(t,e){return au(1+oL.count(o5(t),t),e,3)}function aB(t,e){return au(t.getMilliseconds(),e,3)}function aL(t,e){return aB(t,e)+"000"}function aR(t,e){return au(t.getMonth()+1,e,2)}function az(t,e){return au(t.getMinutes(),e,2)}function a$(t,e){return au(t.getSeconds(),e,2)}function aU(t){var e=t.getDay();return 0===e?7:e}function aF(t,e){return au(oU.count(o5(t)-1,t),e,2)}function aW(t){var e=t.getDay();return e>=4||0===e?oH(t):oH.ceil(t)}function aq(t,e){return t=aW(t),au(oH.count(o5(t),t)+(4===o5(t).getDay()),e,2)}function aH(t){return t.getDay()}function aV(t,e){return au(oF.count(o5(t)-1,t),e,2)}function aX(t,e){return au(t.getFullYear()%100,e,2)}function aZ(t,e){return au((t=aW(t)).getFullYear()%100,e,2)}function aG(t,e){return au(t.getFullYear()%1e4,e,4)}function aY(t,e){var n=t.getDay();return au((t=n>=4||0===n?oH(t):oH.ceil(t)).getFullYear()%1e4,e,4)}function aK(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+au(e/60|0,"0",2)+au(e%60,"0",2)}function aJ(t,e){return au(t.getUTCDate(),e,2)}function aQ(t,e){return au(t.getUTCHours(),e,2)}function a0(t,e){return au(t.getUTCHours()%12||12,e,2)}function a1(t,e){return au(1+oR.count(o4(t),t),e,3)}function a2(t,e){return au(t.getUTCMilliseconds(),e,3)}function a3(t,e){return a2(t,e)+"000"}function a5(t,e){return au(t.getUTCMonth()+1,e,2)}function a4(t,e){return au(t.getUTCMinutes(),e,2)}function a6(t,e){return au(t.getUTCSeconds(),e,2)}function a7(t){var e=t.getUTCDay();return 0===e?7:e}function a8(t,e){return au(oG.count(o4(t)-1,t),e,2)}function a9(t){var e=t.getUTCDay();return e>=4||0===e?oQ(t):oQ.ceil(t)}function ct(t,e){return t=a9(t),au(oQ.count(o4(t),t)+(4===o4(t).getUTCDay()),e,2)}function ce(t){return t.getUTCDay()}function cn(t,e){return au(oY.count(o4(t)-1,t),e,2)}function cr(t,e){return au(t.getUTCFullYear()%100,e,2)}function ci(t,e){return au((t=a9(t)).getUTCFullYear()%100,e,2)}function co(t,e){return au(t.getUTCFullYear()%1e4,e,4)}function ca(t,e){var n=t.getUTCDay();return au((t=n>=4||0===n?oQ(t):oQ.ceil(t)).getUTCFullYear()%1e4,e,4)}function cc(){return"+0000"}function cu(){return"%"}function cl(t){return+t}function cs(t){return Math.floor(+t/1e3)}function cf(t){return new Date(t)}function cp(t){return t instanceof Date?+t:+new Date(+t)}function ch(t,e,n,r,i,o,a,c,u,l){var s=i2(),f=s.invert,p=s.domain,h=l(".%L"),d=l(":%S"),y=l("%I:%M"),v=l("%I %p"),m=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(t){return(u(t)1)for(var n,r,i,o=1,a=t[e[0]],c=a.length;o=0;)n[e]=e;return n}function cE(t,e){return t[e]}function cA(t){let e=[];return e.key=t,e}O=(w=function(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,c=t.months,u=t.shortMonths,l=as(i),s=af(i),f=as(o),p=af(o),h=as(a),d=af(a),y=as(c),v=af(c),m=as(u),g=af(u),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return u[t.getMonth()]},B:function(t){return c[t.getMonth()]},c:null,d:aC,e:aC,f:aL,g:aZ,G:aY,H:aI,I:aD,j:aN,L:aB,m:aR,M:az,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:cl,s:cs,S:a$,u:aU,U:aF,V:aq,w:aH,W:aV,x:null,X:null,y:aX,Y:aG,Z:aK,"%":cu},x={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return u[t.getUTCMonth()]},B:function(t){return c[t.getUTCMonth()]},c:null,d:aJ,e:aJ,f:a3,g:ci,G:ca,H:aQ,I:a0,j:a1,L:a2,m:a5,M:a4,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:cl,s:cs,S:a6,u:a7,U:a8,V:ct,w:ce,W:cn,x:null,X:null,y:cr,Y:co,Z:cc,"%":cu},w={a:function(t,e,n){var r=h.exec(e.slice(n));return r?(t.w=d.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=m.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return j(t,e,n,r)},d:aO,e:aO,f:ak,g:ag,G:am,H:aj,I:aj,j:aS,L:aP,m:aw,M:aE,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=s.get(r[0].toLowerCase()),n+r[0].length):-1},q:ax,Q:aT,s:a_,S:aA,u:ah,U:ad,V:ay,w:ap,W:av,x:function(t,e,r){return j(t,n,e,r)},X:function(t,e,n){return j(t,r,e,n)},y:ag,Y:am,Z:ab,"%":aM};function O(t,e){return function(n){var r,i,o,a=[],c=-1,u=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++c53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=an(ar(o.y,0,1))).getUTCDay())>4||0===i?oY.ceil(r):oY(r),r=oR.offset(r,(o.V-1)*7),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=ae(ar(o.y,0,1))).getDay())>4||0===i?oF.ceil(r):oF(r),r=oL.offset(r,(o.V-1)*7),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?an(ar(o.y,0,1)).getUTCDay():ae(ar(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,an(o)):ae(o)}}function j(t,e,n,r){for(var i,o,a=0,c=e.length,u=n.length;a=u)return -1;if(37===(i=e.charCodeAt(a++))){if(!(o=w[(i=e.charAt(a++))in ai?e.charAt(a++):i])||(r=o(t,n,r))<0)return -1}else if(i!=n.charCodeAt(r++))return -1}return r}return b.x=O(n,b),b.X=O(r,b),b.c=O(e,b),x.x=O(n,x),x.X=O(r,x),x.c=O(e,x),{format:function(t){var e=O(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=S(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=O(t+="",x);return e.toString=function(){return t},e},utcParse:function(t){var e=S(t+="",!0);return e.toString=function(){return t},e}}}({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"]})).format,w.parse,S=w.utcFormat,w.utcParse;var cP=n(47766),ck=n.n(cP),cM=n(89770),cT=n.n(cM),c_=n(73720),cC=n.n(c_),cI=n(60229),cD=n.n(cI),cN=n(11431),cB=n.n(cN);function cL(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n=e?n.apply(void 0,i):t(e-a,cU(function(){for(var t=arguments.length,e=Array(t),r=0;rt.length)&&(e=t.length);for(var n=0,r=Array(e);nr&&(i=r,o=n),[i,o]}function c0(t,e,n){if(t.lte(0))return new(cB())(0);var r=cZ.getDigitCount(t.toNumber()),i=new(cB())(10).pow(r),o=t.div(i),a=1!==r?.05:.1,c=new(cB())(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return e?c:new(cB())(Math.ceil(c))}function c1(t,e,n){var r=1,i=new(cB())(t);if(!i.isint()&&n){var o=Math.abs(t);o<1?(r=new(cB())(10).pow(cZ.getDigitCount(t)-1),i=new(cB())(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new(cB())(Math.floor(t)))}else 0===t?i=new(cB())(Math.floor((e-1)/2)):n||(i=new(cB())(Math.floor(t)));var a=Math.floor((e-1)/2);return cH(cq(function(t){return i.add(new(cB())(t-a).mul(r)).toNumber()}),cW)(0,e)}var c2=cX(function(t){var e=cY(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),c=cY(cQ([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0){var s=l===1/0?[u].concat(cG(cW(0,i-1).map(function(){return 1/0}))):[].concat(cG(cW(0,i-1).map(function(){return-1/0})),[l]);return n>r?cV(s):s}if(u===l)return c1(u,i,o);var f=function t(e,n,r,i){var o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((n-e)/(r-1)))return{step:new(cB())(0),tickMin:new(cB())(0),tickMax:new(cB())(0)};var c=c0(new(cB())(n).sub(e).div(r-1),i,a),u=Math.ceil((o=e<=0&&n>=0?new(cB())(0):(o=new(cB())(e).add(n).div(2)).sub(new(cB())(o).mod(c))).sub(e).div(c).toNumber()),l=Math.ceil(new(cB())(n).sub(o).div(c).toNumber()),s=u+l+1;return s>r?t(e,n,r,i,a+1):(s0?l+(r-s):l,u=n>0?u:u+(r-s)),{step:c,tickMin:o.sub(new(cB())(u).mul(c)),tickMax:o.add(new(cB())(l).mul(c))})}(u,l,a,o),p=f.step,h=f.tickMin,d=f.tickMax,y=cZ.rangeStep(h,d.add(new(cB())(.1).mul(p)),p);return n>r?cV(y):y});cX(function(t){var e=cY(t,2),n=e[0],r=e[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=Math.max(i,2),c=cY(cQ([n,r]),2),u=c[0],l=c[1];if(u===-1/0||l===1/0)return[n,r];if(u===l)return c1(u,i,o);var s=c0(new(cB())(l).sub(u).div(a-1),o,0),f=cH(cq(function(t){return new(cB())(u).add(new(cB())(t).mul(s)).toNumber()}),cW)(0,a).filter(function(t){return t>=u&&t<=l});return n>r?cV(f):f});var c3=cX(function(t,e){var n=cY(t,2),r=n[0],i=n[1],o=!(arguments.length>2)||void 0===arguments[2]||arguments[2],a=cY(cQ([r,i]),2),c=a[0],u=a[1];if(c===-1/0||u===1/0)return[r,i];if(c===u)return[c];var l=c0(new(cB())(u).sub(c).div(Math.max(e,2)-1),o,0),s=[].concat(cG(cZ.rangeStep(new(cB())(c),new(cB())(u).sub(new(cB())(.99).mul(l)),l)),[u]);return r>i?cV(s):s});function c5(t,e){if(!t)throw Error("Invariant failed")}var c4=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function c6(){return(c6=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,c4),!1);"x"===t.direction&&"number"!==c.type&&c5(!1);var s=o.map(function(t){var o,s,f=a(t,i),p=f.x,h=f.y,d=f.value,y=f.errorVal;if(!y)return null;var v=[];if(Array.isArray(y)){var m=function(t){if(Array.isArray(t))return t}(y)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{for(o=(n=n.call(t)).next;!(u=(r=o.call(n)).done)&&(c.push(r.value),2!==c.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(y,2)||function(t,e){if(t){if("string"==typeof t)return c7(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c7(t,2)}}(y,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();o=m[0],s=m[1]}else o=s=y;if("vertical"===n){var g=c.scale,b=h+e,x=b+r,w=b-r,O=g(d-o),S=g(d+s);v.push({x1:S,y1:x,x2:S,y2:w}),v.push({x1:O,y1:b,x2:S,y2:b}),v.push({x1:O,y1:x,x2:O,y2:w})}else if("horizontal"===n){var j=u.scale,E=p+e,P=E-r,k=E+r,M=j(d-o),T=j(d+s);v.push({x1:P,y1:T,x2:k,y2:T}),v.push({x1:E,y1:M,x2:E,y2:T}),v.push({x1:P,y1:M,x2:k,y2:M})}return A.createElement(nY,c6({className:"recharts-errorBar",key:"bar-".concat(v.map(function(t){return"".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))},l),v.map(function(t){return A.createElement("line",c6({},t,{key:"line-".concat(t.x1,"-").concat(t.x2,"-").concat(t.y1,"-").concat(t.y2)}))}))});return A.createElement(nY,{className:"recharts-errorBars"},s)}c8.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},c8.displayName="ErrorBar";var c9=function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ut),s=i||{width:n,height:r,x:0,y:0},f=(0,em.Z)("recharts-surface",o);return A.createElement("svg",ue({},nT(l,!0,"svg"),{className:f,width:n,height:r,style:a,viewBox:"".concat(s.x," ").concat(s.y," ").concat(s.width," ").concat(s.height)}),A.createElement("title",null,c),A.createElement("desc",null,u),e)}let ur=Math.cos,ui=Math.sin,uo=Math.sqrt,ua=Math.PI,uc=2*ua;var uu={draw(t,e){let n=uo(e/ua);t.moveTo(n,0),t.arc(0,0,n,0,uc)}};let ul=uo(1/3),us=2*ul,uf=ui(ua/10)/ui(7*ua/10),up=ui(uc/10)*uf,uh=-ur(uc/10)*uf,ud=uo(3),uy=uo(3)/2,uv=1/uo(12),um=(uv/2+1)*3;function ug(t){return(ug="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}uo(3),uo(3);var ub=["type","size","sizeType"];function ux(){return(ux=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,ub)),{},{type:r,size:o,sizeType:c}),l=u.className,s=u.cx,f=u.cy,p=nT(u,!0);return s===+s&&f===+f&&o===+o?A.createElement("path",ux({},p,{className:(0,em.Z)("recharts-symbols",l),transform:"translate(".concat(s,", ").concat(f,")"),d:(e=uS["symbol".concat(eG()(r))]||uu,(function(t,e){let n=null,r=eW(i);function i(){let i;if(n||(n=i=r()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),i)return n=null,i+""||null}return t="function"==typeof t?t:eL(t||uu),e="function"==typeof e?e:eL(void 0===e?64:+e),i.type=function(e){return arguments.length?(t="function"==typeof e?e:eL(e),i):t},i.size=function(t){return arguments.length?(e="function"==typeof t?t:eL(+t),i):e},i.context=function(t){return arguments.length?(n=null==t?null:t,i):n},i})().type(e).size(uE(o,c,r))())})):null};function uP(t){return(uP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uk(){return(uk=Object.assign?Object.assign.bind():function(t){for(var e=1;e');var p=e.inactive?a:e.color;return A.createElement("li",uk({className:s,style:u,key:"legend-item-".concat(n)},e5(t.props,e,n)),A.createElement(un,{width:r,height:r,viewBox:c,style:l},t.renderIcon(e)),A.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(f,e,n):f))})}},{key:"render",value:function(){var t=this.props,e=t.payload,n=t.layout,r=t.align;return e&&e.length?A.createElement("ul",{className:"recharts-default-legend",style:{padding:0,margin:0,textAlign:"horizontal"===n?r:"left"}},this.renderItems()):null}}],function(t,e){for(var n=0;n1||Math.abs(e.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=e.width,this.lastBoundingBox.height=e.height,t&&t(e)):(-1!==this.lastBoundingBox.width||-1!==this.lastBoundingBox.height)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,t&&t(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?uF({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(t){var e,n,r=this.props,i=r.layout,o=r.align,a=r.verticalAlign,c=r.margin,u=r.chartWidth,l=r.chartHeight;return t&&(void 0!==t.left&&null!==t.left||void 0!==t.right&&null!==t.right)||(e="center"===o&&"vertical"===i?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===o?{right:c&&c.right||0}:{left:c&&c.left||0}),t&&(void 0!==t.top&&null!==t.top||void 0!==t.bottom&&null!==t.bottom)||(n="middle"===a?{top:((l||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:c&&c.bottom||0}:{top:c&&c.top||0}),uF(uF({},e),n)}},{key:"render",value:function(){var t=this,e=this.props,n=e.content,r=e.width,i=e.height,o=e.wrapperStyle,a=e.payloadUniqBy,c=e.payload,u=uF(uF({position:"absolute",width:r||"auto",height:i||"auto"},this.getDefaultPosition(o)),o);return A.createElement("div",{className:"recharts-legend-wrapper",style:u,ref:function(e){t.wrapperNode=e}},function(t,e){if(A.isValidElement(t))return A.cloneElement(t,e);if("function"==typeof t)return A.createElement(t,e);e.ref;var n=function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,u$);return A.createElement(uN,n)}(n,uF(uF({},this.props),{},{payload:uR(c,a,uY)})))}}],n=[{key:"getWithHeight",value:function(t,e){var n=t.props.layout;return"vertical"===n&&na(t.props.height)?{height:t.props.height}:"horizontal"===n?{width:t.props.width||e}:null}}],e&&uW(r.prototype,e),n&&uW(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function uJ(t){return(uJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function uQ(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function u0(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(e=null==n?void 0:n.length)&&void 0!==e?e:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&1e-6>=Math.abs(Math.abs(i.range[1]-i.range[0])-360))for(var c=i.range,u=0;u0?r[u-1].coordinate:r[a-1].coordinate,s=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,p=void 0;if(ni(s-l)!==ni(f-s)){var h=[];if(ni(f-s)===ni(c[1]-c[0])){p=f;var d=s+c[1]-c[0];h[0]=Math.min(d,(d+l)/2),h[1]=Math.max(d,(d+l)/2)}else{p=l;var y=f+c[1]-c[0];h[0]=Math.min(s,(y+s)/2),h[1]=Math.max(s,(y+s)/2)}var v=[Math.min(s,(p+s)/2),Math.max(s,(p+s)/2)];if(t>v[0]&&t<=v[1]||t>=h[0]&&t<=h[1]){o=r[u].index;break}}else{var m=Math.min(l,f),g=Math.max(l,f);if(t>(m+s)/2&&t<=(g+s)/2){o=r[u].index;break}}}else for(var b=0;b0&&b(n[b].coordinate+n[b-1].coordinate)/2&&t<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&t>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o},le=function(t){var e,n=t.type.displayName,r=t.props,i=r.stroke,o=r.fill;switch(n){case"Line":e=i;break;case"Area":case"Radar":e=i&&"none"!==i?i:o;break;default:e=o}return e},ln=function(t){var e=t.barSize,n=t.totalSize,r=t.stackGroups,i=void 0===r?{}:r;if(!i)return{};for(var o={},a=Object.keys(i),c=0,u=a.length;c=0});if(v&&v.length){var m=v[0].props.barSize,g=v[0].props[y];o[g]||(o[g]=[]);var b=ed()(m)?e:m;o[g].push({item:v[0],stackList:v.slice(1),barSize:ed()(b)?void 0:ns(b,n,0)})}}return o},lr=function(t){var e,n=t.barGap,r=t.barCategoryGap,i=t.bandSize,o=t.sizeList,a=void 0===o?[]:o,c=t.maxBarSize,u=a.length;if(u<1)return null;var l=ns(n,i,0,!0),s=[];if(a[0].barSize===+a[0].barSize){var f=!1,p=i/u,h=a.reduce(function(t,e){return t+e.barSize||0},0);(h+=(u-1)*l)>=i&&(h-=(u-1)*l,l=0),h>=i&&p>0&&(f=!0,p*=.9,h=u*p);var d={offset:((i-h)/2>>0)-l,size:0};e=a.reduce(function(t,e){var n={item:e.item,position:{offset:d.offset+d.size+l,size:f?p:e.barSize}},r=[].concat(u6(t),[n]);return d=r[r.length-1].position,e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:d})}),r},s)}else{var y=ns(r,i,0,!0);i-2*y-(u-1)*l<=0&&(l=0);var v=(i-2*y-(u-1)*l)/u;v>1&&(v>>=0);var m=c===+c?Math.min(v,c):v;e=a.reduce(function(t,e,n){var r=[].concat(u6(t),[{item:e.item,position:{offset:y+(v+l)*n+(v-m)/2,size:m}}]);return e.stackList&&e.stackList.length&&e.stackList.forEach(function(t){r.push({item:t,position:r[r.length-1].position})}),r},s)}return e},li=function(t,e,n,r){var i=n.children,o=n.width,a=n.margin,c=u1({children:i,legendWidth:o-(a.left||0)-(a.right||0)});if(c){var u=r||{},l=u.width,s=u.height,f=c.align,p=c.verticalAlign,h=c.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==f&&na(t[f]))return u5(u5({},t),{},u4({},f,t[f]+(l||0)));if(("horizontal"===h||"vertical"===h&&"center"===f)&&"middle"!==p&&na(t[p]))return u5(u5({},t),{},u4({},p,t[p]+(s||0)))}return t},lo=function(t,e,n,r,i){var o=nE(e.props.children,c8).filter(function(t){var e;return e=t.props.direction,!!ed()(i)||("horizontal"===r?"yAxis"===i:"vertical"===r||"x"===e?"xAxis"===i:"y"!==e||"yAxis"===i)});if(o&&o.length){var a=o.map(function(t){return t.props.dataKey});return t.reduce(function(t,e){var r=u8(e,n);if(ed()(r))return t;var i=Array.isArray(r)?[cT()(r),ck()(r)]:[r,r],o=a.reduce(function(t,n){var r=u8(e,n,0),o=i[0]-Math.abs(Array.isArray(r)?r[0]:r),a=i[1]+Math.abs(Array.isArray(r)?r[1]:r);return[Math.min(o,t[0]),Math.max(a,t[1])]},[1/0,-1/0]);return[Math.min(o[0],t[0]),Math.max(o[1],t[1])]},[1/0,-1/0])}return null},la=function(t,e,n,r,i){var o=e.map(function(e){return lo(t,e,n,i,r)}).filter(function(t){return!ed()(t)});return o&&o.length?o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]):null},lc=function(t,e,n,r,i){var o=e.map(function(e){var o=e.props.dataKey;return"number"===n&&o&&lo(t,e,o,r)||u9(t,o,n,i)});if("number"===n)return o.reduce(function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]},[1/0,-1/0]);var a={};return o.reduce(function(t,e){for(var n=0,r=e.length;n=2?2*ni(a[0]-a[1])*u:u,e&&(t.ticks||t.niceTicks))?(t.ticks||t.niceTicks).map(function(t){return{coordinate:r(i?i.indexOf(t):t)+u,value:t,offset:u}}).filter(function(t){return!ne()(t.coordinate)}):t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(t,e){return{coordinate:r(t)+u,value:t,index:e,offset:u}}):r.ticks&&!n?r.ticks(t.tickCount).map(function(t){return{coordinate:r(t)+u,value:t,offset:u}}):r.domain().map(function(t,e){return{coordinate:r(t)+u,value:i?i[t]:t,index:e,offset:u}})},lf=new WeakMap,lp=function(t,e){if("function"!=typeof e)return t;lf.has(t)||lf.set(t,new WeakMap);var n=lf.get(t);if(n.has(e))return n.get(e);var r=function(){t.apply(void 0,arguments),e.apply(void 0,arguments)};return n.set(e,r),r},lh=function(t,e,n){var r=t.scale,i=t.type,o=t.layout,a=t.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:rJ(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:oo(),realScaleType:"linear"}:"category"===i&&e&&(e.indexOf("LineChart")>=0||e.indexOf("AreaChart")>=0||e.indexOf("ComposedChart")>=0&&!n)?{scale:rQ(),realScaleType:"point"}:"category"===i?{scale:rJ(),realScaleType:"band"}:{scale:oo(),realScaleType:"linear"};if(e8()(r)){var c="scale".concat(eG()(r));return{scale:(j[c]||rQ)(),realScaleType:j[c]?c:"point"}}return ep()(r)?{scale:r}:{scale:rQ(),realScaleType:"point"}},ld=function(t){var e=t.domain();if(e&&!(e.length<=2)){var n=e.length,r=t.range(),i=Math.min(r[0],r[1])-1e-4,o=Math.max(r[0],r[1])+1e-4,a=t(e[0]),c=t(e[n-1]);(ao||co)&&t.domain([e[0],e[n-1]])}},ly=function(t,e){if(!t)return null;for(var n=0,r=t.length;nr)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]=0?(t[a][n][0]=i,t[a][n][1]=i+c,i=t[a][n][1]):(t[a][n][0]=o,t[a][n][1]=o+c,o=t[a][n][1])}},expand:function(t,e){if((r=t.length)>0){for(var n,r,i,o=0,a=t[0].length;o0){for(var n,r=0,i=t[e[0]],o=i.length;r0&&(r=(n=t[e[0]]).length)>0){for(var n,r,i,o=0,a=1;a=0?(t[o][n][0]=i,t[o][n][1]=i+a,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}}},lg=function(t,e,n){var r=e.map(function(t){return t.props.dataKey}),i=lm[n];return(function(){var t=eL([]),e=cj,n=cS,r=cE;function i(i){var o,a,c=Array.from(t.apply(this,arguments),cA),u=c.length,l=-1;for(let t of i)for(o=0,++l;o=0?0:i<0?i:r}return n[0]},lj=function(t,e){var n=t.props.stackId;if(nc(n)){var r=e[n];if(r){var i=r.items.indexOf(t);return i>=0?r.stackedData[i]:null}}return null},lE=function(t,e,n){return Object.keys(t).reduce(function(r,i){var o=t[i].stackedData.reduce(function(t,r){var i=r.slice(e,n+1).reduce(function(t,e){return[cT()(e.concat([t[0]]).filter(na)),ck()(e.concat([t[1]]).filter(na))]},[1/0,-1/0]);return[Math.min(t[0],i[0]),Math.max(t[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]).map(function(t){return t===1/0||t===-1/0?0:t})},lA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lk=function(t,e,n){if(ep()(t))return t(e,n);if(!Array.isArray(t))return e;var r=[];if(na(t[0]))r[0]=n?t[0]:Math.min(t[0],e[0]);else if(lA.test(t[0])){var i=+lA.exec(t[0])[1];r[0]=e[0]-i}else ep()(t[0])?r[0]=t[0](e[0]):r[0]=e[0];if(na(t[1]))r[1]=n?t[1]:Math.max(t[1],e[1]);else if(lP.test(t[1])){var o=+lP.exec(t[1])[1];r[1]=e[1]+o}else ep()(t[1])?r[1]=t[1](e[1]):r[1]=e[1];return r},lM=function(t,e,n){if(t&&t.scale&&t.scale.bandwidth){var r=t.scale.bandwidth();if(!n||r>0)return r}if(t&&e&&e.length>=2){for(var i=cD()(e,function(t){return t.coordinate}),o=1/0,a=1,c=i.length;at.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var l$=function(t){return Array.isArray(t.value)?nJ()(t.value):t.value};function lU(t){var e=t.valueAccessor,n=void 0===e?l$:e,r=lz(t,lI),i=r.data,o=r.dataKey,a=r.clockWise,c=r.id,u=r.textBreakAll,l=lz(r,lD);return i&&i.length?A.createElement(nY,{className:"recharts-label-list"},i.map(function(t,e){var r=ed()(o)?n(t,e):u8(t&&t.payload,o),i=ed()(c)?{}:{id:"".concat(c,"-").concat(e)};return A.createElement(rW,lB({},nT(t,!0),l,i,{parentViewBox:t.parentViewBox,value:r,textBreakAll:u,viewBox:rW.parseViewBox(ed()(a)?t:lR(lR({},t),{},{clockWise:a})),key:"label-".concat(e),index:e}))})):null}lU.displayName="LabelList",lU.renderCallByParent=function(t,e){var n,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=nE(t.children,lU).map(function(t,n){return(0,A.cloneElement)(t,{data:e,key:"labelList-".concat(n)})});return r?[(n=t.label)?!0===n?A.createElement(lU,{key:"labelList-implicit",data:e}):A.isValidElement(n)||ep()(n)?A.createElement(lU,{key:"labelList-implicit",data:e,content:n}):eK()(n)?A.createElement(lU,lB({data:e},n,{key:"labelList-implicit"})):null:null].concat(function(t){if(Array.isArray(t))return lN(t)}(i)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t,e){if(t){if("string"==typeof t)return lN(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lN(t,void 0)}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):i};var lF=["type","layout","connectNulls","ref"];function lW(t){return(lW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lq(){return(lq=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);na){u=[].concat(lX(i.slice(0,l)),[a-s]);break}var f=u.length%2==0?[0,c]:[c];return[].concat(lX(r.repeat(i,Math.floor(e/o))),lX(u),f).map(function(t){return"".concat(t,"px")}).join(", ")}),l0(lJ(t),"id",nl("recharts-line-")),l0(lJ(t),"pathRef",function(e){t.mainCurve=e}),l0(lJ(t),"handleAnimationEnd",function(){t.setState({isAnimationFinished:!0}),t.props.onAnimationEnd&&t.props.onAnimationEnd()}),l0(lJ(t),"handleAnimationStart",function(){t.setState({isAnimationFinished:!1}),t.props.onAnimationStart&&t.props.onAnimationStart()}),t}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&lQ(t,e)}(r,t),e=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();this.setState({totalLength:t})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var t=this.getTotalLength();t!==this.state.totalLength&&this.setState({totalLength:t})}}},{key:"getTotalLength",value:function(){var t=this.mainCurve;try{return t&&t.getTotalLength&&t.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.points,i=n.xAxis,o=n.yAxis,a=n.layout,c=nE(n.children,c8);if(!c)return null;var u=function(t,e){return{x:t.x,y:t.y,value:t.value,errorVal:u8(t.payload,e)}};return A.createElement(nY,{clipPath:t?"url(#clipPath-".concat(e,")"):null},c.map(function(t){return A.cloneElement(t,{key:"bar-".concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,dataPointFormatter:u})}))}},{key:"renderDots",value:function(t,e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.dot,a=i.points,c=i.dataKey,u=nT(this.props,!1),l=nT(o,!0),s=a.map(function(t,e){var n=lV(lV(lV({key:"dot-".concat(e),r:3},u),l),{},{value:t.value,dataKey:c,cx:t.x,cy:t.y,index:e,payload:t.payload});return r.renderDotItem(o,n)}),f={clipPath:t?"url(#clipPath-".concat(e?"":"dots-").concat(n,")"):null};return A.createElement(nY,lq({className:"recharts-line-dots",key:"dots"},f),s)}},{key:"renderCurveStatically",value:function(t,e,n,r){var i=this.props,o=i.type,a=i.layout,c=i.connectNulls,u=lV(lV(lV({},nT((i.ref,function(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(i,lF)),!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:e?"url(#clipPath-".concat(n,")"):null,points:t},r),{},{type:o,layout:a,connectNulls:c});return A.createElement(nH,lq({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,e){var n=this,r=this.props,i=r.points,o=r.strokeDasharray,a=r.isAnimationActive,c=r.animationBegin,u=r.animationDuration,l=r.animationEasing,s=r.animationId,f=r.animateNewValues,p=r.width,h=r.height,d=this.state,y=d.prevPoints,v=d.totalLength;return A.createElement(tW,{begin:c,duration:u,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(r){var a,c=r.t;if(y){var u=y.length/i.length,l=i.map(function(t,e){var n=Math.floor(e*u);if(y[n]){var r=y[n],i=nh(r.x,t.x),o=nh(r.y,t.y);return lV(lV({},t),{},{x:i(c),y:o(c)})}if(f){var a=nh(2*p,t.x),l=nh(h/2,t.y);return lV(lV({},t),{},{x:a(c),y:l(c)})}return lV(lV({},t),{},{x:t.x,y:t.y})});return n.renderCurveStatically(l,t,e)}var s=nh(0,v)(c);if(o){var d="".concat(o).split(/[,\s]+/gim).map(function(t){return parseFloat(t)});a=n.getStrokeDasharray(s,v,d)}else a=n.generateSimpleStrokeDasharray(v,s);return n.renderCurveStatically(i,t,e,{strokeDasharray:a})})}},{key:"renderCurve",value:function(t,e){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!ev()(a,r))?this.renderCurveWithAnimation(t,e):this.renderCurveStatically(r,t,e)}},{key:"render",value:function(){var t,e=this.props,n=e.hide,r=e.dot,i=e.points,o=e.className,a=e.xAxis,c=e.yAxis,u=e.top,l=e.left,s=e.width,f=e.height,p=e.isAnimationActive,h=e.id;if(n||!i||!i.length)return null;var d=this.state.isAnimationFinished,y=1===i.length,v=(0,em.Z)("recharts-line",o),m=a&&a.allowDataOverflow,g=c&&c.allowDataOverflow,b=m||g,x=ed()(h)?this.id:h,w=null!==(t=nT(r,!1))&&void 0!==t?t:{r:3,strokeWidth:2},O=w.r,S=w.strokeWidth,j=(r&&"object"===nb(r)&&"cx"in r&&"cy"in r&&"r"in r?r:{}).clipDot,E=void 0===j||j,P=2*(void 0===O?3:O)+(void 0===S?2:S);return A.createElement(nY,{className:v},m||g?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(x)},A.createElement("rect",{x:m?l:l-s/2,y:g?u:u-f/2,width:m?s:2*s,height:g?f:2*f})),!E&&A.createElement("clipPath",{id:"clipPath-dots-".concat(x)},A.createElement("rect",{x:l-P/2,y:u-P/2,width:s+P,height:f+P}))):null,!y&&this.renderCurve(b,x),this.renderErrorBar(b,x),(y||r)&&this.renderDots(b,E,x),(!p||d)&&lU.renderCallByParent(this.props,i))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curPoints:t.points,prevPoints:e.curPoints}:t.points!==e.curPoints?{curPoints:t.points}:null}},{key:"repeat",value:function(t,e){for(var n=t.length%2!=0?[].concat(lX(t),[0]):t,r=[],i=0;it.length)&&(e=t.length);for(var n=0,r=Array(e);n=0?1:-1,u=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var s=[0,0,0,0],f=0;f<4;f++)s[f]=i[f]>a?a:i[f];o="M".concat(t,",").concat(e+c*s[0]),s[0]>0&&(o+="A ".concat(s[0],",").concat(s[0],",0,0,").concat(l,",").concat(t+u*s[0],",").concat(e)),o+="L ".concat(t+n-u*s[1],",").concat(e),s[1]>0&&(o+="A ".concat(s[1],",").concat(s[1],",0,0,").concat(l,",\n ").concat(t+n,",").concat(e+c*s[1])),o+="L ".concat(t+n,",").concat(e+r-c*s[2]),s[2]>0&&(o+="A ".concat(s[2],",").concat(s[2],",0,0,").concat(l,",\n ").concat(t+n-u*s[2],",").concat(e+r)),o+="L ".concat(t+u*s[3],",").concat(e+r),s[3]>0&&(o+="A ".concat(s[3],",").concat(s[3],",0,0,").concat(l,",\n ").concat(t,",").concat(e+r-c*s[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(t,",").concat(e+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+u*p,",").concat(e,"\n L ").concat(t+n-u*p,",").concat(e,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n,",").concat(e+c*p,"\n L ").concat(t+n,",").concat(e+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t+n-u*p,",").concat(e+r,"\n L ").concat(t+u*p,",").concat(e+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(t,",").concat(e+r-c*p," Z")}else o="M ".concat(t,",").concat(e," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},sf=function(t,e){if(!t||!e)return!1;var n=t.x,r=t.y,i=e.x,o=e.y,a=e.width,c=e.height;return!!(Math.abs(a)>0&&Math.abs(c)>0)&&n>=Math.min(i,i+a)&&n<=Math.max(i,i+a)&&r>=Math.min(o,o+c)&&r<=Math.max(o,o+c)},sp={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sh=function(t){var e,n=sl(sl({},sp),t),r=(0,A.useRef)(),i=function(t){if(Array.isArray(t))return t}(e=(0,A.useState)(-1))||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,c=[],u=!0,l=!1;try{for(o=(n=n.call(t)).next;!(u=(r=o.call(n)).done)&&(c.push(r.value),2!==c.length);u=!0);}catch(t){l=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,2)||function(t,e){if(t){if("string"==typeof t)return sc(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sc(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),o=i[0],a=i[1];(0,A.useEffect)(function(){if(r.current&&r.current.getTotalLength)try{var t=r.current.getTotalLength();t&&a(t)}catch(t){}},[]);var c=n.x,u=n.y,l=n.width,s=n.height,f=n.radius,p=n.className,h=n.animationEasing,d=n.animationDuration,y=n.animationBegin,v=n.isAnimationActive,m=n.isUpdateAnimationActive;if(c!==+c||u!==+u||l!==+l||s!==+s||0===l||0===s)return null;var g=(0,em.Z)("recharts-rectangle",p);return m?A.createElement(tW,{canBegin:o>0,from:{width:l,height:s,x:c,y:u},to:{width:l,height:s,x:c,y:u},duration:d,animationEasing:h,isActive:m},function(t){var e=t.width,i=t.height,a=t.x,c=t.y;return A.createElement(tW,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:d,isActive:v,easing:h},A.createElement("path",sa({},nT(n,!0),{className:g,d:ss(a,c,e,i,f),ref:r})))}):A.createElement("path",sa({},nT(n,!0),{className:g,d:ss(c,u,l,s,f)}))};function sd(t){return(sd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sy(){return(sy=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0,from:{upperWidth:0,lowerWidth:0,height:f,x:c,y:u},to:{upperWidth:l,lowerWidth:s,height:f,x:c,y:u},duration:d,animationEasing:h,isActive:v},function(t){var e=t.upperWidth,i=t.lowerWidth,a=t.height,c=t.x,u=t.y;return A.createElement(tW,{canBegin:o>0,from:"0px ".concat(-1===o?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:d,easing:h},A.createElement("path",sy({},nT(n,!0),{className:m,d:sb(c,u,e,i,a),ref:r})))}):A.createElement("g",null,A.createElement("path",sy({},nT(n,!0),{className:m,d:sb(c,u,l,s,f)})))};function sO(t){return(sO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sS(){return(sS=Object.assign?Object.assign.bind():function(t){for(var e=1;e180),",").concat(+(a>u),",\n ").concat(s.x,",").concat(s.y,"\n ");if(i>0){var p=rk(n,r,i,a),h=rk(n,r,i,u);f+="L ".concat(h.x,",").concat(h.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(c)>180),",").concat(+(a<=u),",\n ").concat(p.x,",").concat(p.y," Z")}else f+="L ".concat(n,",").concat(r," Z");return f},sk=function(t){var e=t.cx,n=t.cy,r=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,a=t.forceCornerRadius,c=t.cornerIsExternal,u=t.startAngle,l=t.endAngle,s=ni(l-u),f=sA({cx:e,cy:n,radius:i,angle:u,sign:s,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,h=f.lineTangency,d=f.theta,y=sA({cx:e,cy:n,radius:i,angle:l,sign:-s,cornerRadius:o,cornerIsExternal:c}),v=y.circleTangency,m=y.lineTangency,g=y.theta,b=c?Math.abs(u-l):Math.abs(u-l)-d-g;if(b<0)return a?"M ".concat(h.x,",").concat(h.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(-(2*o),",0\n "):sP({cx:e,cy:n,innerRadius:r,outerRadius:i,startAngle:u,endAngle:l});var x="M ".concat(h.x,",").concat(h.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(s<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(m.x,",").concat(m.y,"\n ");if(r>0){var w=sA({cx:e,cy:n,radius:r,angle:u,sign:s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=w.circleTangency,S=w.lineTangency,j=w.theta,E=sA({cx:e,cy:n,radius:r,angle:l,sign:-s,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),A=E.circleTangency,P=E.lineTangency,k=E.theta,M=c?Math.abs(u-l):Math.abs(u-l)-j-k;if(M<0&&0===o)return"".concat(x,"L").concat(e,",").concat(n,"Z");x+="L".concat(P.x,",").concat(P.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(A.x,",").concat(A.y,"\n A").concat(r,",").concat(r,",0,").concat(+(M>180),",").concat(+(s>0),",").concat(O.x,",").concat(O.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(s<0),",").concat(S.x,",").concat(S.y,"Z")}else x+="L".concat(e,",").concat(n,"Z");return x},sM={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sT=function(t){var e,n=sE(sE({},sM),t),r=n.cx,i=n.cy,o=n.innerRadius,a=n.outerRadius,c=n.cornerRadius,u=n.forceCornerRadius,l=n.cornerIsExternal,s=n.startAngle,f=n.endAngle,p=n.className;if(a0&&360>Math.abs(s-f)?sk({cx:r,cy:i,innerRadius:o,outerRadius:a,cornerRadius:Math.min(y,d/2),forceCornerRadius:u,cornerIsExternal:l,startAngle:s,endAngle:f}):sP({cx:r,cy:i,innerRadius:o,outerRadius:a,startAngle:s,endAngle:f}),A.createElement("path",sS({},nT(n,!0),{className:h,d:e,role:"img"}))},s_=["option","shapeType","propTransformer","activeClassName","isActive"];function sC(t){return(sC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sI(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function sD(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,s_);if((0,A.isValidElement)(n))e=(0,A.cloneElement)(n,sD(sD({},c),(0,A.isValidElement)(n)?n.props:n));else if(ep()(n))e=n(c);else if(sn()(n)&&!si()(n)){var u=(void 0===i?function(t,e){return sD(sD({},e),t)}:i)(n,c);e=A.createElement(sN,{shapeType:r,elementProps:u})}else e=A.createElement(sN,{shapeType:r,elementProps:c});return a?A.createElement(nY,{className:void 0===o?"recharts-active-shape":o},e):e}function sL(t,e){return null!=e&&"trapezoids"in t.props}function sR(t,e){return null!=e&&"sectors"in t.props}function sz(t,e){return null!=e&&"points"in t.props}function s$(t,e){var n,r,i=t.x===(null==e||null===(n=e.labelViewBox)||void 0===n?void 0:n.x)||t.x===e.x,o=t.y===(null==e||null===(r=e.labelViewBox)||void 0===r?void 0:r.y)||t.y===e.y;return i&&o}function sU(t,e){var n=t.endAngle===e.endAngle,r=t.startAngle===e.startAngle;return n&&r}function sF(t,e){var n=t.x===e.x,r=t.y===e.y,i=t.z===e.z;return n&&r&&i}var sW=["x","y"];function sq(t){return(sq="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sH(){return(sH=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,sW),o=parseInt("".concat(n),10),a=parseInt("".concat(r),10),c=parseInt("".concat(e.height||i.height),10),u=parseInt("".concat(e.width||i.width),10);return sX(sX(sX(sX(sX({},e),i),o?{x:o}:{}),a?{y:a}:{}),{},{height:c,width:u,name:e.name,radius:e.radius})}function sG(t){return A.createElement(sB,sH({shapeType:"rectangle",propTransformer:sZ,activeClassName:"recharts-active-bar"},t))}var sY=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(n,r){if("number"==typeof t)return t;var i="number"==typeof n;return i?t(n,r):(i||c5(!1),e)}},sK=["value","background"];function sJ(t){return(sJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sQ(){return(sQ=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(e,sK);if(!a)return null;var u=s1(s1(s1(s1(s1({},c),{},{fill:"#eee"},a),o),e5(t.props,e,n)),{},{onAnimationStart:t.handleAnimationStart,onAnimationEnd:t.handleAnimationEnd,dataKey:r,index:n,key:"background-bar-".concat(n),className:"recharts-bar-background-rectangle"});return A.createElement(sG,sQ({option:t.props.background,isActive:n===i},u))})}},{key:"renderErrorBar",value:function(t,e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.data,i=n.xAxis,o=n.yAxis,a=n.layout,c=nE(n.children,c8);if(!c)return null;var u="vertical"===a?r[0].height/2:r[0].width/2,l=function(t,e){var n=Array.isArray(t.value)?t.value[1]:t.value;return{x:t.x,y:t.y,value:n,errorVal:u8(t,e)}};return A.createElement(nY,{clipPath:t?"url(#clipPath-".concat(e,")"):null},c.map(function(t){return A.cloneElement(t,{key:"error-bar-".concat(e,"-").concat(t.props.dataKey),data:r,xAxis:i,yAxis:o,layout:a,offset:u,dataPointFormatter:l})}))}},{key:"render",value:function(){var t=this.props,e=t.hide,n=t.data,r=t.className,i=t.xAxis,o=t.yAxis,a=t.left,c=t.top,u=t.width,l=t.height,s=t.isAnimationActive,f=t.background,p=t.id;if(e||!n||!n.length)return null;var h=this.state.isAnimationFinished,d=(0,em.Z)("recharts-bar",r),y=i&&i.allowDataOverflow,v=o&&o.allowDataOverflow,m=y||v,g=ed()(p)?this.id:p;return A.createElement(nY,{className:d},y||v?A.createElement("defs",null,A.createElement("clipPath",{id:"clipPath-".concat(g)},A.createElement("rect",{x:y?a:a-u/2,y:v?c:c-l/2,width:y?u:2*u,height:v?l:2*l}))):null,A.createElement(nY,{className:"recharts-bar-rectangles",clipPath:m?"url(#clipPath-".concat(g,")"):null},f?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(m,g),(!s||h)&&lU.renderCallByParent(this.props,n))}}],n=[{key:"getDerivedStateFromProps",value:function(t,e){return t.animationId!==e.prevAnimationId?{prevAnimationId:t.animationId,curData:t.data,prevData:e.curData}:t.data!==e.curData?{curData:t.data}:null}}],e&&s2(r.prototype,e),n&&s2(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fe(t,e){for(var n=0;n0&&Math.abs(b)0&&Math.abs(m)1&&void 0!==arguments[1]?arguments[1]:{},n=e.bandAware,r=e.position;if(void 0!==t){if(r)switch(r){case"start":default:return this.scale(t);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}},{key:"isInRange",value:function(t){var e=this.range(),n=e[0],r=e[e.length-1];return n<=r?t>=n&&t<=r:t>=r&&t<=n}}],e=[{key:"create",value:function(t){return new n(t)}}],t&&fe(n.prototype,t),e&&fe(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n}();fi(fc,"EPS",1e-4);var fu=function(t){var e=Object.keys(t).reduce(function(e,n){return fr(fr({},e),{},fi({},n,fc.create(t[n])))},{});return fr(fr({},e),{},{apply:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return l7()(t,function(t,n){return e[n].apply(t,{bandAware:r,position:i})})},isInRange:function(t){return l9()(t,function(t,n){return e[n].isInRange(t)})}})},fl=function(t){var e=t.width,n=t.height,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(r%180+180)%180*Math.PI/180,o=Math.atan(n/e);return Math.abs(i>o&&it.length)&&(e=t.length);for(var n=0,r=Array(e);nt.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&(t=fN()(t,v,{trailing:!0,leading:!1}));var e=new ResizeObserver(t),n=w.current.getBoundingClientRect();return P(n.width,n.height),e.observe(w.current),function(){e.disconnect()}},[P,v]);var k=(0,A.useMemo)(function(){var t=j.containerWidth,e=j.containerHeight;if(t<0||e<0)return null;c9(no(c)||no(l),"The width(%s) and height(%s) are both fixed numbers,\n maybe you don't need to use a ResponsiveContainer.",c,l),c9(!r||r>0,"The aspect(%s) must be greater than zero.",r);var n=no(c)?t:c,i=no(l)?e:l;r&&r>0&&(n?i=n/r:i&&(n=i*r),h&&i>h&&(i=h)),c9(n>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n please check the style of container, or the props width(%s) and height(%s),\n or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n height and width.",n,i,c,l,f,p,r);var o=!Array.isArray(d)&&(0,e9.isElement)(d)&&nw(d.type).endsWith("Chart");return A.Children.map(d,function(t){return(0,e9.isElement)(t)?(0,A.cloneElement)(t,fR({width:n,height:i},o?{style:fR({height:"100%",width:"100%",maxHeight:i,maxWidth:n},t.props.style)}:{})):t})},[r,d,l,h,p,f,j,c]);return A.createElement("div",{id:m?"".concat(m):void 0,className:(0,em.Z)("recharts-responsive-container",g),style:fR(fR({},void 0===x?{}:x),{},{width:c,height:l,minWidth:f,minHeight:p,maxHeight:h}),ref:w},k)}),fU=n(37105),fF=n.n(fU);function fW(t){return(fW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fq(){return(fq=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nu[r]+l?Math.max(s,u[r]):Math.max(f,u[r])}function f1(t){return(f1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f2(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function f3(t){for(var e=1;e1||Math.abs(t.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:t.width,height:t.height}})}else(-1!==this.state.lastBoundingBox.width||-1!==this.state.lastBoundingBox.height)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var t,e;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(t=this.props.coordinate)||void 0===t?void 0:t.x)!==this.state.dismissedAtCoordinate.x||(null===(e=this.props.coordinate)||void 0===e?void 0:e.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var t,e,n,r,i,o,a,c,u,l,s,f,p,h,d,y,v,m,g,b=this,x=this.props,w=x.active,O=x.allowEscapeViewBox,S=x.animationDuration,j=x.animationEasing,E=x.children,P=x.coordinate,k=x.hasPayload,M=x.isAnimationActive,T=x.offset,_=x.position,C=x.reverseDirection,I=x.useTranslate3d,D=x.viewBox,N=x.wrapperStyle,B=(f=(t={allowEscapeViewBox:O,coordinate:P,offsetTopLeft:T,position:_,reverseDirection:C,tooltipBox:this.state.lastBoundingBox,useTranslate3d:I,viewBox:D}).allowEscapeViewBox,p=t.coordinate,h=t.offsetTopLeft,d=t.position,y=t.reverseDirection,v=t.tooltipBox,m=t.useTranslate3d,g=t.viewBox,v.height>0&&v.width>0&&p?(n=(e={translateX:l=f0({allowEscapeViewBox:f,coordinate:p,key:"x",offsetTopLeft:h,position:d,reverseDirection:y,tooltipDimension:v.width,viewBox:g,viewBoxDimension:g.width}),translateY:s=f0({allowEscapeViewBox:f,coordinate:p,key:"y",offsetTopLeft:h,position:d,reverseDirection:y,tooltipDimension:v.height,viewBox:g,viewBoxDimension:g.height}),useTranslate3d:m}).translateX,r=e.translateY,u={transform:e.useTranslate3d?"translate3d(".concat(n,"px, ").concat(r,"px, 0)"):"translate(".concat(n,"px, ").concat(r,"px)")}):u=fQ,{cssProperties:u,cssClasses:(o=(i={translateX:l,translateY:s,coordinate:p}).coordinate,a=i.translateX,c=i.translateY,(0,em.Z)(fJ,fK(fK(fK(fK({},"".concat(fJ,"-right"),na(a)&&o&&na(o.x)&&a>=o.x),"".concat(fJ,"-left"),na(a)&&o&&na(o.x)&&a=o.y),"".concat(fJ,"-top"),na(c)&&o&&na(o.y)&&c0;return A.createElement(pt,{allowEscapeViewBox:i,animationDuration:o,animationEasing:a,isAnimationActive:s,active:r,coordinate:u,hasPayload:x,offset:f,position:d,reverseDirection:y,useTranslate3d:v,viewBox:m,wrapperStyle:g},(t=pr(pr({},this.props),{},{payload:b}),A.isValidElement(c)?A.cloneElement(c,t):"function"==typeof c?A.createElement(c,t):A.createElement(fG,t)))}}],function(t,e){for(var n=0;n0&&e.handleDrag(t.changedTouches[0])}),pA(pj(e),"handleDragEnd",function(){e.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var t=e.props,n=t.endIndex,r=t.onDragEnd,i=t.startIndex;null==r||r({endIndex:n,startIndex:i})}),e.detachDragEndListener()}),pA(pj(e),"handleLeaveWrapper",function(){(e.state.isTravellerMoving||e.state.isSlideMoving)&&(e.leaveTimer=window.setTimeout(e.handleDragEnd,e.props.leaveTimeOut))}),pA(pj(e),"handleEnterSlideOrTraveller",function(){e.setState({isTextActive:!0})}),pA(pj(e),"handleLeaveSlideOrTraveller",function(){e.setState({isTextActive:!1})}),pA(pj(e),"handleSlideDragStart",function(t){var n=pM(t)?t.changedTouches[0]:t;e.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),e.attachDragEndListener()}),e.travellerDragStartHandlers={startX:e.handleTravellerDragStart.bind(pj(e),"startX"),endX:e.handleTravellerDragStart.bind(pj(e),"endX")},e.state={},e}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&pE(t,e)}(r,t),e=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(t){var e=t.startX,n=t.endX,i=this.state.scaleValues,o=this.props,a=o.gap,c=o.data.length-1,u=r.getIndexInRange(i,Math.min(e,n)),l=r.getIndexInRange(i,Math.max(e,n));return{startIndex:u-u%a,endIndex:l===c?c:l-l%a}}},{key:"getTextOfTick",value:function(t){var e=this.props,n=e.data,r=e.tickFormatter,i=e.dataKey,o=u8(n[t],i,t);return ep()(r)?r(o,t):o}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(t){var e=this.state,n=e.slideMoveStartX,r=e.startX,i=e.endX,o=this.props,a=o.x,c=o.width,u=o.travellerWidth,l=o.startIndex,s=o.endIndex,f=o.onChange,p=t.pageX-n;p>0?p=Math.min(p,a+c-u-i,a+c-u-r):p<0&&(p=Math.max(p,a-r,a-i));var h=this.getIndex({startX:r+p,endX:i+p});(h.startIndex!==l||h.endIndex!==s)&&f&&f(h),this.setState({startX:r+p,endX:i+p,slideMoveStartX:t.pageX})}},{key:"handleTravellerDragStart",value:function(t,e){var n=pM(e)?e.changedTouches[0]:e;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:t,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(t){var e=this.state,n=e.brushMoveStartX,r=e.movingTravellerId,i=e.endX,o=e.startX,a=this.state[r],c=this.props,u=c.x,l=c.width,s=c.travellerWidth,f=c.onChange,p=c.gap,h=c.data,d={startX:this.state.startX,endX:this.state.endX},y=t.pageX-n;y>0?y=Math.min(y,u+l-s-a):y<0&&(y=Math.max(y,u-a)),d[r]=a+y;var v=this.getIndex(d),m=v.startIndex,g=v.endIndex,b=function(){var t=h.length-1;return"startX"===r&&(i>o?m%p==0:g%p==0)||io?g%p==0:m%p==0)||i>o&&g===t};this.setState(pA(pA({},r,a+y),"brushMoveStartX",t.pageX),function(){f&&b()&&f(v)})}},{key:"handleTravellerMoveKeyboard",value:function(t,e){var n=this,r=this.state,i=r.scaleValues,o=r.startX,a=r.endX,c=this.state[e],u=i.indexOf(c);if(-1!==u){var l=u+t;if(-1!==l&&!(l>=i.length)){var s=i[l];"startX"===e&&s>=a||"endX"===e&&s<=o||this.setState(pA({},e,s),function(){n.props.onChange(n.getIndex({startX:n.state.startX,endX:n.state.endX}))})}}}},{key:"renderBackground",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.fill,a=t.stroke;return A.createElement("rect",{stroke:a,fill:o,x:e,y:n,width:r,height:i})}},{key:"renderPanorama",value:function(){var t=this.props,e=t.x,n=t.y,r=t.width,i=t.height,o=t.data,a=t.children,c=t.padding,u=A.Children.only(a);return u?A.cloneElement(u,{x:e,y:n,width:r,height:i,margin:c,compact:!0,data:o}):null}},{key:"renderTravellerLayer",value:function(t,e){var n,i,o=this,a=this.props,c=a.y,u=a.travellerWidth,l=a.height,s=a.traveller,f=a.ariaLabel,p=a.data,h=a.startIndex,d=a.endIndex,y=Math.max(t,this.props.x),v=px(px({},nT(this.props,!1)),{},{x:y,y:c,width:u,height:l}),m=f||"Min value: ".concat(null===(n=p[h])||void 0===n?void 0:n.name,", Max value: ").concat(null===(i=p[d])||void 0===i?void 0:i.name);return A.createElement(nY,{tabIndex:0,role:"slider","aria-label":m,"aria-valuenow":t,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[e],onTouchStart:this.travellerDragStartHandlers[e],onKeyDown:function(t){["ArrowLeft","ArrowRight"].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),o.handleTravellerMoveKeyboard("ArrowRight"===t.key?1:-1,e))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(s,v))}},{key:"renderSlide",value:function(t,e){var n=this.props,r=n.y,i=n.height,o=n.stroke,a=n.travellerWidth;return A.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:o,fillOpacity:.2,x:Math.min(t,e)+a,y:r,width:Math.max(Math.abs(e-t)-a,0),height:i})}},{key:"renderText",value:function(){var t=this.props,e=t.startIndex,n=t.endIndex,r=t.y,i=t.height,o=t.travellerWidth,a=t.stroke,c=this.state,u=c.startX,l=c.endX,s={pointerEvents:"none",fill:a};return A.createElement(nY,{className:"recharts-brush-texts"},A.createElement(rS,pg({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:r+i/2},s),this.getTextOfTick(e)),A.createElement(rS,pg({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+o+5,y:r+i/2},s),this.getTextOfTick(n)))}},{key:"render",value:function(){var t=this.props,e=t.data,n=t.className,r=t.children,i=t.x,o=t.y,a=t.width,c=t.height,u=t.alwaysShowText,l=this.state,s=l.startX,f=l.endX,p=l.isTextActive,h=l.isSlideMoving,d=l.isTravellerMoving,y=l.isTravellerFocused;if(!e||!e.length||!na(i)||!na(o)||!na(a)||!na(c)||a<=0||c<=0)return null;var v=(0,em.Z)("recharts-brush",n),m=1===A.Children.count(r),g=pv("userSelect","none");return A.createElement(nY,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),m&&this.renderPanorama(),this.renderSlide(s,f),this.renderTravellerLayer(s,"startX"),this.renderTravellerLayer(f,"endX"),(p||h||d||y||u)&&this.renderText())}}],n=[{key:"renderDefaultTraveller",value:function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.stroke,a=Math.floor(n+i/2)-1;return A.createElement(A.Fragment,null,A.createElement("rect",{x:e,y:n,width:r,height:i,fill:o,stroke:"none"}),A.createElement("line",{x1:e+1,y1:a,x2:e+r-1,y2:a,fill:"none",stroke:"#fff"}),A.createElement("line",{x1:e+1,y1:a+2,x2:e+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,e){return A.isValidElement(t)?A.cloneElement(t,e):ep()(t)?t(e):r.renderDefaultTraveller(e)}},{key:"getDerivedStateFromProps",value:function(t,e){var n=t.data,r=t.width,i=t.x,o=t.travellerWidth,a=t.updateId,c=t.startIndex,u=t.endIndex;if(n!==e.prevData||a!==e.prevUpdateId)return px({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?pk({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:u}):{scale:null,scaleValues:null});if(e.scale&&(r!==e.prevWidth||i!==e.prevX||o!==e.prevTravellerWidth)){e.scale.range([i,i+r-o]);var l=e.scale.domain().map(function(t){return e.scale(t)});return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:e.scale(t.startIndex),endX:e.scale(t.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(t,e){for(var n=t.length,r=0,i=n-1;i-r>1;){var o=Math.floor((r+i)/2);t[o]>e?i=o:r=o}return e>=t[i]?i:r}}],e&&pw(r.prototype,e),n&&pw(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.PureComponent);function p_(t){return(p_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pC(){return(pC=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}(t,p0));return na(n)&&na(i)&&na(s)&&na(p)&&na(a)&&na(u)?A.createElement("path",p1({},nT(d,!0),{className:(0,em.Z)("recharts-cross",h),d:"M".concat(n,",").concat(a,"v").concat(p,"M").concat(u,",").concat(i,"h").concat(s)})):null};function p5(t){var e=t.cx,n=t.cy,r=t.radius,i=t.startAngle,o=t.endAngle;return{points:[rk(e,n,r,i),rk(e,n,r,o)],cx:e,cy:n,radius:r,startAngle:i,endAngle:o}}function p4(t){return(p4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p6(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function p7(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function ho(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(ho=function(){return!!t})()}function ha(t){return(ha=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function hc(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function hu(t,e){return(hu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function hl(t){return function(t){if(Array.isArray(t))return hf(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||hs(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hs(t,e){if(t){if("string"==typeof t)return hf(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hf(t,e)}}function hf(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n0?o:t&&t.length&&na(r)&&na(i)?t.slice(r,i+1):[]};function hO(t){return"number"===t?[0,"auto"]:void 0}var hS=function(t,e,n,r){var i=t.graphicalItems,o=t.tooltipAxis,a=hw(e,t);return n<0||!i||!i.length||n>=a.length?null:i.reduce(function(i,c){var u,l,s=null!==(u=c.props.data)&&void 0!==u?u:e;return(s&&t.dataStartIndex+t.dataEndIndex!==0&&(s=s.slice(t.dataStartIndex,t.dataEndIndex+1)),l=o.dataKey&&!o.allowDuplicatedCategory?nd(void 0===s?a:s,o.dataKey,r):s&&s[n]||a[n])?[].concat(hl(i),[l_(c,l)]):i},[])},hj=function(t,e,n,r){var i=r||{x:t.chartX,y:t.chartY},o="horizontal"===n?i.x:"vertical"===n?i.y:"centric"===n?i.angle:i.radius,a=t.orderedTooltipTicks,c=t.tooltipAxis,u=t.tooltipTicks,l=lt(o,a,u,c);if(l>=0&&u){var s=u[l]&&u[l].value,f=hS(t,e,l,s),p=hx(n,a,l,i);return{activeTooltipIndex:l,activeLabel:s,activePayload:f,activeCoordinate:p}}return null},hE=function(t,e){var n=e.axes,r=e.graphicalItems,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=t.stackOffset,p=lu(l,i);return n.reduce(function(e,n){var h=n.props,d=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,g=h.scale,b=h.ticks,x=h.includeHidden,w=n.props[o];if(e[w])return e;var O=hw(t.data,{graphicalItems:r.filter(function(t){return t.props[o]===w}),dataStartIndex:c,dataEndIndex:u}),S=O.length;(function(t,e,n){if("number"===n&&!0===e&&Array.isArray(t)){var r=null==t?void 0:t[0],i=null==t?void 0:t[1];if(r&&i&&na(r)&&na(i))return!0}return!1})(n.props.domain,v,d)&&(A=lk(n.props.domain,null,v),p&&("number"===d||"auto"!==g)&&(k=u9(O,y,"category")));var j=hO(d);if(!A||0===A.length){var E,A,P,k,M,T=null!==(M=n.props.domain)&&void 0!==M?M:j;if(y){if(A=u9(O,y,d),"category"===d&&p){var _=np(A);m&&_?(P=A,A=fF()(0,S)):m||(A=lT(T,A,n).reduce(function(t,e){return t.indexOf(e)>=0?t:[].concat(hl(t),[e])},[]))}else if("category"===d)A=m?A.filter(function(t){return""!==t&&!ed()(t)}):lT(T,A,n).reduce(function(t,e){return t.indexOf(e)>=0||""===e||ed()(e)?t:[].concat(hl(t),[e])},[]);else if("number"===d){var C=la(O,r.filter(function(t){return t.props[o]===w&&(x||!t.props.hide)}),y,i,l);C&&(A=C)}p&&("number"===d||"auto"!==g)&&(k=u9(O,y,"category"))}else A=p?fF()(0,S):a&&a[w]&&a[w].hasStack&&"number"===d?"expand"===f?[0,1]:lE(a[w].stackGroups,c,u):lc(O,r.filter(function(t){return t.props[o]===w&&(x||!t.props.hide)}),d,l,!0);"number"===d?(A=pH(s,A,w,i,b),T&&(A=lk(T,A,v))):"category"===d&&T&&A.every(function(t){return T.indexOf(t)>=0})&&(A=T)}return hh(hh({},e),{},hd({},w,hh(hh({},n.props),{},{axisType:i,domain:A,categoricalDomain:k,duplicateDomain:P,originalDomain:null!==(E=n.props.domain)&&void 0!==E?E:j,isCategorical:p,layout:l})))},{})},hA=function(t,e){var n=e.graphicalItems,r=e.Axis,i=e.axisType,o=e.axisIdKey,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.layout,s=t.children,f=hw(t.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:u}),p=f.length,h=lu(l,i),d=-1;return n.reduce(function(t,e){var y,v=e.props[o],m=hO("number");return t[v]?t:(d++,y=h?fF()(0,p):a&&a[v]&&a[v].hasStack?pH(s,y=lE(a[v].stackGroups,c,u),v,i):pH(s,y=lk(m,lc(f,n.filter(function(t){return t.props[o]===v&&!t.props.hide}),"number",l),r.defaultProps.allowDataOverflow),v,i),hh(hh({},t),{},hd({},v,hh(hh({axisType:i},r.defaultProps),{},{hide:!0,orientation:e6()(hv,"".concat(i,".").concat(d%2),null),domain:y,originalDomain:m,isCategorical:h,layout:l}))))},{})},hP=function(t,e){var n=e.axisType,r=void 0===n?"xAxis":n,i=e.AxisComp,o=e.graphicalItems,a=e.stackGroups,c=e.dataStartIndex,u=e.dataEndIndex,l=t.children,s="".concat(r,"Id"),f=nE(l,i),p={};return f&&f.length?p=hE(t,{axes:f,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u}):o&&o.length&&(p=hA(t,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:s,stackGroups:a,dataStartIndex:c,dataEndIndex:u})),p},hk=function(t){var e=nf(t),n=ls(e,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:cD()(n,function(t){return t.coordinate}),tooltipAxis:e,tooltipAxisBandSize:lM(e,n)}},hM=function(t){var e=t.children,n=t.defaultShowTooltip,r=nA(e,pT),i=0,o=0;return t.data&&0!==t.data.length&&(o=t.data.length-1),r&&r.props&&(r.props.startIndex>=0&&(i=r.props.startIndex),r.props.endIndex>=0&&(o=r.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},hT=function(t){return"horizontal"===t?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===t?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===t?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},h_=function(t,e){var n=t.props,r=t.graphicalItems,i=t.xAxisMap,o=void 0===i?{}:i,a=t.yAxisMap,c=void 0===a?{}:a,u=n.width,l=n.height,s=n.children,f=n.margin||{},p=nA(s,pT),h=nA(s,uK),d=Object.keys(c).reduce(function(t,e){var n=c[e],r=n.orientation;return n.mirror||n.hide?t:hh(hh({},t),{},hd({},r,t[r]+n.width))},{left:f.left||0,right:f.right||0}),y=Object.keys(o).reduce(function(t,e){var n=o[e],r=n.orientation;return n.mirror||n.hide?t:hh(hh({},t),{},hd({},r,e6()(t,"".concat(r))+n.height))},{top:f.top||0,bottom:f.bottom||0}),v=hh(hh({},y),d),m=v.bottom;p&&(v.bottom+=p.props.height||pT.defaultProps.height),h&&e&&(v=li(v,r,n,e));var g=u-v.left-v.right,b=l-v.top-v.bottom;return hh(hh({brushBottom:m},v),{},{width:Math.max(g,0),height:Math.max(b,0)})};function hC(t,e,n){if(e<1)return[];if(1===e&&void 0===n)return t;for(var r=[],i=0;it*i)return!1;var o=n();return t*(e-t*o/2-r)>=0&&t*(e+t*o/2-i)<=0}function hD(t){return(hD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hN(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function hB(t){for(var e=1;e=2?ni(l[1].coordinate-l[0].coordinate):1,w=(r="width"===m,i=s.x,o=s.y,a=s.width,c=s.height,1===x?{start:r?i:o,end:r?i+a:o+c}:{start:r?i+a:o+c,end:r?i:o});return"equidistantPreserveStart"===h?function(t,e,n,r,i){for(var o,a=(r||[]).slice(),c=e.start,u=e.end,l=0,s=1,f=c;s<=a.length;)if(o=function(){var e,o=null==r?void 0:r[l];if(void 0===o)return{v:hC(r,s)};var a=l,p=function(){return void 0===e&&(e=n(o,a)),e},h=o.coordinate,d=0===l||hI(t,h,p,f,u);d||(l=0,f=c,s+=1),d&&(f=h+t*(p()/2+i),l+=s)}())return o.v;return[]}(x,w,b,l,f):("preserveStart"===h||"preserveStartEnd"===h?function(t,e,n,r,i,o){var a=(r||[]).slice(),c=a.length,u=e.start,l=e.end;if(o){var s=r[c-1],f=n(s,c-1),p=t*(s.coordinate+t*f/2-l);a[c-1]=s=hB(hB({},s),{},{tickCoord:p>0?s.coordinate-p*t:s.coordinate}),hI(t,s.tickCoord,function(){return f},u,l)&&(l=s.tickCoord-t*(f/2+i),a[c-1]=hB(hB({},s),{},{isShow:!0}))}for(var h=o?c-1:c,d=function(e){var r,o=a[e],c=function(){return void 0===r&&(r=n(o,e)),r};if(0===e){var s=t*(o.coordinate-t*c()/2-u);a[e]=o=hB(hB({},o),{},{tickCoord:s<0?o.coordinate-s*t:o.coordinate})}else a[e]=o=hB(hB({},o),{},{tickCoord:o.coordinate});hI(t,o.tickCoord,c,u,l)&&(u=o.tickCoord+t*(c()/2+i),a[e]=hB(hB({},o),{},{isShow:!0}))},y=0;y0?l.coordinate-f*t:l.coordinate})}else o[e]=l=hB(hB({},l),{},{tickCoord:l.coordinate});hI(t,l.tickCoord,s,c,u)&&(u=l.tickCoord-t*(s()/2+i),o[e]=hB(hB({},l),{},{isShow:!0}))},s=a-1;s>=0;s--)l(s);return o}(x,w,b,l,f)).filter(function(t){return t.isShow})}var hR=["viewBox"],hz=["viewBox"],h$=["ticks"];function hU(t){return(hU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hF(){return(hF=Object.assign?Object.assign.bind():function(t){for(var e=1;e=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function hV(t,e){for(var n=0;n0?this.props:l)),r<=0||i<=0||!s||!s.length)?null:A.createElement(nY,{className:(0,em.Z)("recharts-cartesian-axis",a),ref:function(e){t.layerReference=e}},n&&this.renderAxisLine(),this.renderTicks(s,this.state.fontSize,this.state.letterSpacing),rW.renderCallByParent(this.props))}}],n=[{key:"renderTickItem",value:function(t,e,n){return A.isValidElement(t)?A.cloneElement(t,e):ep()(t)?t(e):A.createElement(rS,hF({},e,{className:"recharts-cartesian-axis-tick-value"}),n)}}],e&&hV(r.prototype,e),n&&hV(r,n),Object.defineProperty(r,"prototype",{writable:!1}),r}(A.Component);function hQ(){return(hQ=Object.assign?Object.assign.bind():function(t){for(var e=1;e0&&(j=Math.min((t||0)-(E[e-1]||0),j))}),Number.isFinite(j)){var A=j/S,P="vertical"===y.layout?n.height:n.width;if("gap"===y.padding&&(u=A*P/2),"no-gap"===y.padding){var k=ns(t.barCategoryGap,A*P),M=A*P/2;u=M-k-(M-k)/P*k}}}l="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:y.range,w&&(l=[l[1],l[0]]);var T=lh(y,i,f),_=T.scale,C=T.realScaleType;_.domain(m).range(l),ld(_);var I=lx(_,fr(fr({},y),{},{realScaleType:C}));"xAxis"===r?(d="top"===v&&!x||"bottom"===v&&x,p=n.left,h=s[O]-d*y.height):"yAxis"===r&&(d="left"===v&&!x||"right"===v&&x,p=s[O]-d*y.width,h=n.top);var D=fr(fr(fr({},y),I),{},{realScaleType:C,x:p,y:h,scale:_,width:"xAxis"===r?n.width:y.width,height:"yAxis"===r?n.height:y.height});return D.bandSize=lM(D,I),y.hide||"xAxis"!==r?y.hide||(s[O]+=(d?-1:1)*D.width):s[O]+=(d?-1:1)*D.height,fr(fr({},o),{},fi({},a,D))},{})}}).chartName,a=r.GraphicalChild,u=void 0===(c=r.defaultTooltipEventType)?"axis":c,s=void 0===(l=r.validateTooltipEventTypes)?["axis"]:l,f=r.axisComponents,p=r.legendContent,h=r.formatAxisMap,d=r.defaultProps,y=function(t,e){var n=e.graphicalItems,r=e.stackGroups,i=e.offset,o=e.updateId,a=e.dataStartIndex,c=e.dataEndIndex,u=t.barSize,l=t.layout,s=t.barGap,p=t.barCategoryGap,h=t.maxBarSize,d=hT(l),y=d.numericAxisName,v=d.cateAxisName,m=!!n&&!!n.length&&n.some(function(t){var e=nw(t&&t.type);return e&&e.indexOf("Bar")>=0}),g=[];return n.forEach(function(n,d){var b=hw(t.data,{graphicalItems:[n],dataStartIndex:a,dataEndIndex:c}),x=n.props,w=x.dataKey,O=x.maxBarSize,S=n.props["".concat(y,"Id")],j=n.props["".concat(v,"Id")],E=f.reduce(function(t,r){var i=e["".concat(r.axisType,"Map")],o=n.props["".concat(r.axisType,"Id")];i&&i[o]||"zAxis"===r.axisType||c5(!1);var a=i[o];return hh(hh({},t),{},hd(hd({},r.axisType,a),"".concat(r.axisType,"Ticks"),ls(a)))},{}),A=E[v],P=E["".concat(v,"Ticks")],k=r&&r[S]&&r[S].hasStack&&lj(n,r[S].stackGroups),M=nw(n.type).indexOf("Bar")>=0,T=lM(A,P),_=[],C=m&&ln({barSize:u,stackGroups:r,totalSize:"xAxis"===v?E[v].width:"yAxis"===v?E[v].height:void 0});if(M){var I,D,N=ed()(O)?h:O,B=null!==(I=null!==(D=lM(A,P,!0))&&void 0!==D?D:N)&&void 0!==I?I:0;_=lr({barGap:s,barCategoryGap:p,bandSize:B!==T?B:T,sizeList:C[j],maxBarSize:N}),B!==T&&(_=_.map(function(t){return hh(hh({},t),{},{position:hh(hh({},t.position),{},{offset:t.position.offset-B/2})})}))}var L=n&&n.type&&n.type.getComposedData;L&&g.push({props:hh(hh({},L(hh(hh({},E),{},{displayedData:b,props:t,dataKey:w,item:n,bandSize:T,barPosition:_,offset:i,stackedData:k,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},hd(hd(hd({key:n.key||"item-".concat(d)},y,E[y]),v,E[v]),"animationId",o)),childIndex:nj(t.children).indexOf(n),item:n})}),g},v=function(t,e){var n=t.props,r=t.dataStartIndex,i=t.dataEndIndex,c=t.updateId;if(!nP({props:n}))return null;var u=n.children,l=n.layout,s=n.stackOffset,p=n.data,d=n.reverseStackOrder,v=hT(l),m=v.numericAxisName,g=v.cateAxisName,b=nE(u,a),x=lb(p,b,"".concat(m,"Id"),"".concat(g,"Id"),s,d),w=f.reduce(function(t,e){var o="".concat(e.axisType,"Map");return hh(hh({},t),{},hd({},o,hP(n,hh(hh({},e),{},{graphicalItems:b,stackGroups:e.axisType===m&&x,dataStartIndex:r,dataEndIndex:i}))))},{}),O=h_(hh(hh({},w),{},{props:n,graphicalItems:b}),null==e?void 0:e.legendBBox);Object.keys(w).forEach(function(t){w[t]=h(n,w[t],O,t.replace("Map",""),o)});var S=hk(w["".concat(g,"Map")]),j=y(n,hh(hh({},w),{},{dataStartIndex:r,dataEndIndex:i,updateId:c,graphicalItems:b,stackGroups:x,offset:O}));return hh(hh({formattedGraphicalItems:j,graphicalItems:b,offset:O,stackGroups:x},S),w)},i=function(t){var e;function n(t){var e,r,i,a,c;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,n),a=n,c=[t],a=ha(a),i=function(t,e){if(e&&("object"===he(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return hc(t)}(this,ho()?Reflect.construct(a,c||[],ha(this).constructor):a.apply(this,c)),hd(hc(i),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),hd(hc(i),"accessibilityManager",new pJ),hd(hc(i),"handleLegendBBoxUpdate",function(t){if(t){var e=i.state,n=e.dataStartIndex,r=e.dataEndIndex,o=e.updateId;i.setState(hh({legendBBox:t},v({props:i.props,dataStartIndex:n,dataEndIndex:r,updateId:o},hh(hh({},i.state),{},{legendBBox:t}))))}}),hd(hc(i),"handleReceiveSyncEvent",function(t,e,n){i.props.syncId===t&&(n!==i.eventEmitterSymbol||"function"==typeof i.props.syncMethod)&&i.applySyncEvent(e)}),hd(hc(i),"handleBrushChange",function(t){var e=t.startIndex,n=t.endIndex;if(e!==i.state.dataStartIndex||n!==i.state.dataEndIndex){var r=i.state.updateId;i.setState(function(){return hh({dataStartIndex:e,dataEndIndex:n},v({props:i.props,dataStartIndex:e,dataEndIndex:n,updateId:r},i.state))}),i.triggerSyncEvent({dataStartIndex:e,dataEndIndex:n})}}),hd(hc(i),"handleMouseEnter",function(t){var e=i.getMouseInfo(t);if(e){var n=hh(hh({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseEnter;ep()(r)&&r(n,t)}}),hd(hc(i),"triggeredAfterMouseMove",function(t){var e=i.getMouseInfo(t),n=e?hh(hh({},e),{},{isTooltipActive:!0}):{isTooltipActive:!1};i.setState(n),i.triggerSyncEvent(n);var r=i.props.onMouseMove;ep()(r)&&r(n,t)}),hd(hc(i),"handleItemMouseEnter",function(t){i.setState(function(){return{isTooltipActive:!0,activeItem:t,activePayload:t.tooltipPayload,activeCoordinate:t.tooltipPosition||{x:t.cx,y:t.cy}}})}),hd(hc(i),"handleItemMouseLeave",function(){i.setState(function(){return{isTooltipActive:!1}})}),hd(hc(i),"handleMouseMove",function(t){t.persist(),i.throttleTriggeredAfterMouseMove(t)}),hd(hc(i),"handleMouseLeave",function(t){i.throttleTriggeredAfterMouseMove.cancel();var e={isTooltipActive:!1};i.setState(e),i.triggerSyncEvent(e);var n=i.props.onMouseLeave;ep()(n)&&n(e,t)}),hd(hc(i),"handleOuterEvent",function(t){var e,n=nD(t),r=e6()(i.props,"".concat(n));n&&ep()(r)&&r(null!==(e=/.*touch.*/i.test(n)?i.getMouseInfo(t.changedTouches[0]):i.getMouseInfo(t))&&void 0!==e?e:{},t)}),hd(hc(i),"handleClick",function(t){var e=i.getMouseInfo(t);if(e){var n=hh(hh({},e),{},{isTooltipActive:!0});i.setState(n),i.triggerSyncEvent(n);var r=i.props.onClick;ep()(r)&&r(n,t)}}),hd(hc(i),"handleMouseDown",function(t){var e=i.props.onMouseDown;ep()(e)&&e(i.getMouseInfo(t),t)}),hd(hc(i),"handleMouseUp",function(t){var e=i.props.onMouseUp;ep()(e)&&e(i.getMouseInfo(t),t)}),hd(hc(i),"handleTouchMove",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.throttleTriggeredAfterMouseMove(t.changedTouches[0])}),hd(hc(i),"handleTouchStart",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseDown(t.changedTouches[0])}),hd(hc(i),"handleTouchEnd",function(t){null!=t.changedTouches&&t.changedTouches.length>0&&i.handleMouseUp(t.changedTouches[0])}),hd(hc(i),"triggerSyncEvent",function(t){void 0!==i.props.syncId&&pX.emit(pZ,i.props.syncId,t,i.eventEmitterSymbol)}),hd(hc(i),"applySyncEvent",function(t){var e=i.props,n=e.layout,r=e.syncMethod,o=i.state.updateId,a=t.dataStartIndex,c=t.dataEndIndex;if(void 0!==t.dataStartIndex||void 0!==t.dataEndIndex)i.setState(hh({dataStartIndex:a,dataEndIndex:c},v({props:i.props,dataStartIndex:a,dataEndIndex:c,updateId:o},i.state)));else if(void 0!==t.activeTooltipIndex){var u=t.chartX,l=t.chartY,s=t.activeTooltipIndex,f=i.state,p=f.offset,h=f.tooltipTicks;if(!p)return;if("function"==typeof r)s=r(h,t);else if("value"===r){s=-1;for(var d=0;d=0){if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(t){return"function"==typeof u.dataKey?u.dataKey(t.payload):null}:"payload.".concat(u.dataKey.toString());E=nd(h,S,s),P=d&&y&&nd(y,S,s)}else E=null==h?void 0:h[l],P=d&&y&&y[l];if(x||b){var j=void 0!==t.props.activeIndex?t.props.activeIndex:l;return[(0,A.cloneElement)(t,hh(hh(hh({},r.props),w),{},{activeIndex:j})),null,null]}if(!ed()(E))return[O].concat(hl(i.renderActivePoints({item:r,activePoint:E,basePoint:P,childIndex:l,isRange:d})))}else{var E,P,k,M=(null!==(k=i.getItemByXY(i.state.activeCoordinate))&&void 0!==k?k:{graphicalItem:O}).graphicalItem,T=M.item,_=void 0===T?t:T,C=M.childIndex,I=hh(hh(hh({},r.props),w),{},{activeIndex:C});return[(0,A.cloneElement)(_,I),null,null]}}return d?[O,null,null]:[O,null]}),hd(hc(i),"renderCustomized",function(t,e,n){return(0,A.cloneElement)(t,hh(hh({key:"recharts-customized-".concat(n)},i.props),i.state))}),hd(hc(i),"renderMap",{CartesianGrid:{handler:hb,once:!0},ReferenceArea:{handler:i.renderReferenceElement},ReferenceLine:{handler:hb},ReferenceDot:{handler:i.renderReferenceElement},XAxis:{handler:hb},YAxis:{handler:hb},Brush:{handler:i.renderBrush,once:!0},Bar:{handler:i.renderGraphicChild},Line:{handler:i.renderGraphicChild},Area:{handler:i.renderGraphicChild},Radar:{handler:i.renderGraphicChild},RadialBar:{handler:i.renderGraphicChild},Scatter:{handler:i.renderGraphicChild},Pie:{handler:i.renderGraphicChild},Funnel:{handler:i.renderGraphicChild},Tooltip:{handler:i.renderCursor,once:!0},PolarGrid:{handler:i.renderPolarGrid,once:!0},PolarAngleAxis:{handler:i.renderPolarAxis},PolarRadiusAxis:{handler:i.renderPolarAxis},Customized:{handler:i.renderCustomized}}),i.clipPathId="".concat(null!==(e=t.id)&&void 0!==e?e:nl("recharts"),"-clip"),i.throttleTriggeredAfterMouseMove=fN()(i.triggeredAfterMouseMove,null!==(r=t.throttleDelay)&&void 0!==r?r:1e3/60),i.state={},i}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&hu(t,e)}(n,t),e=[{key:"componentDidMount",value:function(){var t,e;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(t=this.props.margin.left)&&void 0!==t?t:0,top:null!==(e=this.props.margin.top)&&void 0!==e?e:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var t=this.props,e=t.children,n=t.data,r=t.height,i=t.layout,o=nA(e,ps);if(o){var a=o.props.defaultIndex;if("number"==typeof a&&!(a<0)&&!(a>this.state.tooltipTicks.length)){var c=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=hS(this.state,n,a,c),l=this.state.tooltipTicks[a].coordinate,s=(this.state.offset.top+r)/2,f="horizontal"===i?{x:l,y:s}:{y:l,x:s},p=this.state.formattedGraphicalItems.find(function(t){return"Scatter"===t.item.type.name});p&&(f=hh(hh({},f),p.props.points[a].tooltipPosition),u=p.props.points[a].tooltipPayload);var h={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:c,activePayload:u,activeCoordinate:f};this.setState(h),this.renderCursor(o),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(t,e){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==e.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==t.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==t.margin){var n,r;this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}})}return null}},{key:"componentDidUpdate",value:function(t){n_([nA(t.children,ps)],[nA(this.props.children,ps)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var t=nA(this.props.children,ps);if(t&&"boolean"==typeof t.props.shared){var e=t.props.shared?"axis":"item";return s.indexOf(e)>=0?e:u}return u}},{key:"getMouseInfo",value:function(t){if(!this.container)return null;var e=this.container,n=e.getBoundingClientRect(),r={top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(t.pageX-r.left),chartY:Math.round(t.pageY-r.top)},o=n.width/e.offsetWidth||1,a=this.inRange(i.chartX,i.chartY,o);if(!a)return null;var c=this.state,u=c.xAxisMap,l=c.yAxisMap;if("axis"!==this.getTooltipEventType()&&u&&l){var s=nf(u).scale,f=nf(l).scale,p=s&&s.invert?s.invert(i.chartX):null,h=f&&f.invert?f.invert(i.chartY):null;return hh(hh({},i),{},{xValue:p,yValue:h})}var d=hj(this.state,this.props.data,this.props.layout,a);return d?hh(hh({},i),d):null}},{key:"inRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=this.props.layout,i=t/n,o=e/n;if("horizontal"===r||"vertical"===r){var a=this.state.offset;return i>=a.left&&i<=a.left+a.width&&o>=a.top&&o<=a.top+a.height?{x:i,y:o}:null}var c=this.state,u=c.angleAxisMap,l=c.radiusAxisMap;return u&&l?rC({x:i,y:o},nf(u)):null}},{key:"parseEventsOfWrapper",value:function(){var t=this.props.children,e=this.getTooltipEventType(),n=nA(t,ps),r={};return n&&"axis"===e&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),hh(hh({},e3(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){pX.on(pZ,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pX.removeListener(pZ,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(t,e,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var de=function(t){var e=t.fill;if(!e||"none"===e)return null;var n=t.fillOpacity,r=t.x,i=t.y,o=t.width,a=t.height;return A.createElement("rect",{x:r,y:i,width:o,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function dn(t,e){var n;if(A.isValidElement(t))n=A.cloneElement(t,e);else if(ep()(t))n=t(e);else{var r=e.x1,i=e.y1,o=e.x2,a=e.y2,c=e.key,u=nT(dt(e,h5),!1),l=(u.offset,dt(u,h4));n=A.createElement("line",h9({},l,{x1:r,y1:i,x2:o,y2:a,fill:"none",key:c}))}return n}function dr(t){var e=t.x,n=t.width,r=t.horizontal,i=void 0===r||r,o=t.horizontalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(r,o){return dn(i,h8(h8({},t),{},{x1:e,y1:r,x2:e+n,y2:r,key:"line-".concat(o),index:o}))});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},a)}function di(t){var e=t.y,n=t.height,r=t.vertical,i=void 0===r||r,o=t.verticalPoints;if(!i||!o||!o.length)return null;var a=o.map(function(r,o){return dn(i,h8(h8({},t),{},{x1:r,y1:e,x2:r,y2:e+n,key:"line-".concat(o),index:o}))});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},a)}function da(t){var e=t.horizontalFill,n=t.fillOpacity,r=t.x,i=t.y,o=t.width,a=t.height,c=t.horizontalPoints,u=t.horizontal;if(!(void 0===u||u)||!e||!e.length)return null;var l=c.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==l[0]&&l.unshift(0);var s=l.map(function(t,c){var u=l[c+1]?l[c+1]-t:i+a-t;if(u<=0)return null;var s=c%e.length;return A.createElement("rect",{key:"react-".concat(c),y:t,x:r,height:u,width:o,stroke:"none",fill:e[s],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},s)}function dc(t){var e=t.vertical,n=t.verticalFill,r=t.fillOpacity,i=t.x,o=t.y,a=t.width,c=t.height,u=t.verticalPoints;if(!(void 0===e||e)||!n||!n.length)return null;var l=u.map(function(t){return Math.round(t+i-i)}).sort(function(t,e){return t-e});i!==l[0]&&l.unshift(0);var s=l.map(function(t,e){var u=l[e+1]?l[e+1]-t:i+a-t;if(u<=0)return null;var s=e%n.length;return A.createElement("rect",{key:"react-".concat(e),x:t,y:o,width:u,height:c,stroke:"none",fill:n[s],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},s)}var du=function(t,e){var n=t.xAxis,r=t.width,i=t.height,o=t.offset;return ll(hL(h8(h8(h8({},hJ.defaultProps),n),{},{ticks:ls(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,e)},dl=function(t,e){var n=t.yAxis,r=t.width,i=t.height,o=t.offset;return ll(hL(h8(h8(h8({},hJ.defaultProps),n),{},{ticks:ls(n,!0),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,e)},ds={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function df(t){var e,n,r,i,o,a,c=fE(),u=fA(),l=(0,A.useContext)(fm),s=h8(h8({},t),{},{stroke:null!==(e=t.stroke)&&void 0!==e?e:ds.stroke,fill:null!==(n=t.fill)&&void 0!==n?n:ds.fill,horizontal:null!==(r=t.horizontal)&&void 0!==r?r:ds.horizontal,horizontalFill:null!==(i=t.horizontalFill)&&void 0!==i?i:ds.horizontalFill,vertical:null!==(o=t.vertical)&&void 0!==o?o:ds.vertical,verticalFill:null!==(a=t.verticalFill)&&void 0!==a?a:ds.verticalFill,x:na(t.x)?t.x:l.left,y:na(t.y)?t.y:l.top,width:na(t.width)?t.width:l.width,height:na(t.height)?t.height:l.height}),f=s.x,p=s.y,h=s.width,d=s.height,y=s.syncWithTicks,v=s.horizontalValues,m=s.verticalValues,g=nf((0,A.useContext)(fd)),b=fS();if(!na(h)||h<=0||!na(d)||d<=0||!na(f)||f!==+f||!na(p)||p!==+p)return null;var x=s.verticalCoordinatesGenerator||du,w=s.horizontalCoordinatesGenerator||dl,O=s.horizontalPoints,S=s.verticalPoints;if((!O||!O.length)&&ep()(w)){var j=v&&v.length,E=w({yAxis:b?h8(h8({},b),{},{ticks:j?v:b.ticks}):void 0,width:c,height:u,offset:l},!!j||y);c9(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(h6(E),"]")),Array.isArray(E)&&(O=E)}if((!S||!S.length)&&ep()(x)){var P=m&&m.length,k=x({xAxis:g?h8(h8({},g),{},{ticks:P?m:g.ticks}):void 0,width:c,height:u,offset:l},!!P||y);c9(Array.isArray(k),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(h6(k),"]")),Array.isArray(k)&&(S=k)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement(de,{fill:s.fill,fillOpacity:s.fillOpacity,x:s.x,y:s.y,width:s.width,height:s.height}),A.createElement(dr,h9({},s,{offset:l,horizontalPoints:O,xAxis:g,yAxis:b})),A.createElement(di,h9({},s,{offset:l,verticalPoints:S,xAxis:g,yAxis:b})),A.createElement(da,h9({},s,{horizontalPoints:O})),A.createElement(dc,h9({},s,{verticalPoints:S})))}df.displayName="CartesianGrid";var dp=n(15593),dh=n(45027),dd=n(73147),dy=n(50591),dv=n(15274),dm=n(63361),dg=n(66969),db=n(31831),dx=n(27011),dw=n(3380);function dO(t){return t?t.reduce((t,e)=>{let n=e.name.search(/\./);return n>=0?t[e.name.substring(n+1)]=e.label:t[e.name]=e.label,t},{}):{}}var dS={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};let dj={},dE=(0,dd.factory)((t,e)=>{let n=(0,dy.useProps)("ChartLegend",dj,t),{classNames:r,className:i,style:o,styles:a,unstyled:c,vars:u,payload:l,onHighlight:s,legendPosition:f,mod:p,series:h,showColor:d,centered:y,...v}=n,m=(0,dg.useStyles)({name:"ChartLegend",classes:dS,props:n,className:i,style:o,classNames:r,styles:a,unstyled:c});if(!l)return null;let g=l.filter(t=>"none"!==t.color).map(t=>{let e=t.dataKey.split(".").pop();return{...t,dataKey:e,payload:{...t.payload,name:e,dataKey:e}}}),b=dO(h),x=g.map((t,e)=>(0,E.jsxs)("div",{...m("legendItem"),onMouseEnter:()=>s(t.dataKey),onMouseLeave:()=>s(null),"data-without-color":!1===d||void 0,children:[(0,E.jsx)(dw.ColorSwatch,{color:t.color,size:12,...m("legendItemColor"),withShadow:!1}),(0,E.jsx)("p",{...m("legendItemName"),children:b[t.dataKey]||t.dataKey})]},e));return(0,E.jsx)(db.Box,{ref:e,mod:[{position:f,centered:y},p],...m("legend"),...v,children:x})});dE.displayName="@mantine/charts/ChartLegend";var dA={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItem:"m_3de8964e",tooltipItemColor:"m_b30369b5",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function dP(t,e){return"radial"===e||"scatter"===e?Array.isArray(t.value)?t.value[1]-t.value[0]:t.value:Array.isArray(t.payload[t.dataKey])?t.payload[t.dataKey][1]-t.payload[t.dataKey][0]:t.payload[t.name]}let dk={type:"area",showColor:!0},dM=(0,dd.factory)((t,e)=>{var n,r;let i=(0,dy.useProps)("ChartTooltip",dk,t),{classNames:o,className:a,style:c,styles:u,unstyled:l,vars:s,payload:f,label:p,unit:h,type:d,segmentId:y,mod:v,series:m,valueFormatter:g,showColor:b,...x}=i,w=(0,dv.useMantineTheme)(),O=(0,dg.useStyles)({name:"ChartTooltip",classes:dA,props:i,className:a,style:c,classNames:o,styles:u,unstyled:l});if(!f)return null;let S=function(t,e){let n=t.filter(t=>"none"!==t.fill||!t.color).map(t=>{let e=t.name.search(/\./);if(e>=0){let n=t.name.substring(0,e),r={...t.payload[n]},i=Object.entries(t.payload).reduce((t,e)=>{let[r,i]=e;return r===n?t:{...t,[r]:i}},{});return{...t,name:t.name.substring(e+1),payload:{...i,...r}}}return t});return e?n.filter(t=>t.name===e):n}(f,y),j="scatter"===d?null===(r=f[0])||void 0===r?void 0:null===(n=r.payload)||void 0===n?void 0:n.name:null,A=dO(m),P=p||j,k=S.map(t=>{var e;return(0,E.jsxs)("div",{"data-type":d,...O("tooltipItem"),children:[(0,E.jsxs)("div",{...O("tooltipItemBody"),children:[b&&(0,E.jsx)(dw.ColorSwatch,{color:(0,dh.getThemeColor)(t.color,w),size:12,...O("tooltipItemColor"),withShadow:!1}),(0,E.jsx)("div",{...O("tooltipItemName"),children:A[t.name]||t.name})]}),(0,E.jsxs)("div",{...O("tooltipItemData"),children:["function"==typeof g?g(dP(t,d)):dP(t,d),h||t.unit]})]},null!==(e=null==t?void 0:t.key)&&void 0!==e?e:t.name)});return(0,E.jsxs)(db.Box,{...O("tooltip"),mod:[{type:d},v],ref:e,...x,children:[P&&(0,E.jsx)("div",{...O("tooltipLabel"),children:P}),(0,E.jsx)("div",{...O("tooltipBody"),children:k})]})});dM.displayName="@mantine/charts/ChartTooltip";var dT={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"};let d_={withXAxis:!0,withYAxis:!0,withTooltip:!0,tooltipAnimationDuration:0,fillOpacity:1,tickLine:"y",strokeDasharray:"5 5",gridAxis:"x",withDots:!0,connectNulls:!0,strokeWidth:2,curveType:"monotone",gradientStops:[{offset:0,color:"red"},{offset:100,color:"blue"}]},dC=(0,dp.createVarsResolver)((t,e)=>{let{textColor:n,gridColor:r}=e;return{root:{"--chart-text-color":n?(0,dh.getThemeColor)(n,t):void 0,"--chart-grid-color":r?(0,dh.getThemeColor)(r,t):void 0}}}),dI=(0,dd.factory)((t,e)=>{let n=(0,dy.useProps)("LineChart",d_,t),{classNames:r,className:i,style:o,styles:a,unstyled:c,vars:u,data:l,withLegend:s,legendProps:f,series:p,onMouseLeave:h,dataKey:d,withTooltip:y,withXAxis:v,withYAxis:m,gridAxis:g,tickLine:b,xAxisProps:x,yAxisProps:w,unit:O,tooltipAnimationDuration:S,strokeDasharray:j,gridProps:P,tooltipProps:k,referenceLines:M,withDots:T,dotProps:_,activeDotProps:C,strokeWidth:I,lineChartProps:D,connectNulls:N,fillOpacity:B,curveType:L,orientation:R,dir:z,valueFormatter:$,children:U,lineProps:F,xAxisLabel:W,yAxisLabel:q,type:H,gradientStops:V,withRightYAxis:X,rightYAxisLabel:Z,rightYAxisProps:G,...Y}=n,K=(0,dv.useMantineTheme)(),[J,Q]=(0,A.useState)(null),tt=null!==J,{resolvedClassNames:te,resolvedStyles:tn}=(0,dm.useResolvedStylesApi)({classNames:r,styles:a,props:n}),tr=(0,dg.useStyles)({name:"LineChart",classes:dT,props:n,className:i,style:o,classNames:r,styles:a,unstyled:c,vars:u,varsResolver:dC}),ti=(0,dx.useId)(),to="line-chart-gradient-".concat(ti),ta=null==V?void 0:V.map(t=>(0,E.jsx)("stop",{offset:"".concat(t.offset,"%"),stopColor:(0,dh.getThemeColor)(t.color,K)},t.color)),tc=p.map(t=>{let e=(0,dh.getThemeColor)(t.color,K),n=tt&&J!==t.name;return(0,A.createElement)(l2,{...tr("line"),key:t.name,name:t.name,dataKey:t.name,dot:!!T&&{fillOpacity:n?0:1,strokeOpacity:n?0:1,strokeWidth:1,fill:"gradient"===H?"var(--mantine-color-gray-7)":e,stroke:"gradient"===H?"white":e,..._},activeDot:!!T&&{fill:"gradient"===H?"var(--mantine-color-gray-7)":e,stroke:"gradient"===H?"white":e,...C},fill:e,stroke:"gradient"===H?"url(#".concat(to,")"):e,strokeWidth:I,isAnimationActive:!1,fillOpacity:n?0:B,strokeOpacity:n?.5:B,connectNulls:N,type:L,strokeDasharray:t.strokeDasharray,yAxisId:t.yAxisId||"left",..."function"==typeof F?F(t):F})}),tu=null==M?void 0:M.map((t,e)=>{var n;let r=(0,dh.getThemeColor)(t.color,K);return(0,E.jsx)(fI,{stroke:t.color?r:"var(--chart-grid-color)",strokeWidth:1,yAxisId:t.yAxisId||"left",...t,label:{value:t.label,fill:t.color?r:"currentColor",fontSize:12,position:null!==(n=t.labelPosition)&&void 0!==n?n:"insideBottomLeft"},...tr("referenceLine")},e)}),tl={axisLine:!1,..."vertical"===R?{dataKey:d,type:"category"}:{type:"number"},tickLine:!!("none"!==g&&("y"===b||"xy"===b))&&{stroke:"currentColor"},allowDecimals:!0,unit:O,tickFormatter:$,...tr("axis")};return(0,E.jsx)(db.Box,{ref:e,...tr("root"),onMouseLeave:t=>{Q(null),null==h||h(t)},dir:z||"ltr",...Y,children:(0,E.jsx)(f$,{...tr("container"),children:(0,E.jsxs)(h3,{data:l,layout:R,margin:{bottom:W?30:void 0,left:q?10:void 0,right:q?5:void 0},...D,children:["gradient"===H&&(0,E.jsx)("defs",{children:(0,E.jsx)("linearGradient",{id:to,x1:"0",y1:"0",x2:"0",y2:"1",children:ta})}),s&&(0,E.jsx)(uK,{verticalAlign:"top",content:t=>(0,E.jsx)(dE,{payload:t.payload,onHighlight:Q,legendPosition:(null==f?void 0:f.verticalAlign)||"top",classNames:te,styles:tn,series:p,showColor:"gradient"!==H}),...f}),(0,E.jsxs)(h0,{hide:!v,..."vertical"===R?{type:"number"}:{dataKey:d},tick:{transform:"translate(0, 10)",fontSize:12,fill:"currentColor"},stroke:"",interval:"preserveStartEnd",tickLine:!!("none"!==g&&("x"===b||"xy"===b))&&{stroke:"currentColor"},minTickGap:5,...tr("axis"),...x,children:[W&&(0,E.jsx)(rW,{position:"insideBottom",offset:-20,fontSize:12,...tr("axisLabel"),children:W}),null==x?void 0:x.children]}),(0,E.jsxs)(h2,{yAxisId:"left",orientation:"left",tick:{transform:"translate(-10, 0)",fontSize:12,fill:"currentColor"},hide:!m,...tl,...w,children:[q&&(0,E.jsx)(rW,{position:"insideLeft",angle:-90,textAnchor:"middle",fontSize:12,offset:-5,...tr("axisLabel"),children:q}),null==w?void 0:w.children]}),(0,E.jsxs)(h2,{yAxisId:"right",orientation:"right",tick:{transform:"translate(10, 0)",fontSize:12,fill:"currentColor"},hide:!X,...tl,...G,children:[Z&&(0,E.jsx)(rW,{position:"insideRight",angle:90,textAnchor:"middle",fontSize:12,offset:-5,...tr("axisLabel"),children:Z}),null==w?void 0:w.children]}),(0,E.jsx)(df,{strokeDasharray:j,vertical:"y"===g||"xy"===g,horizontal:"x"===g||"xy"===g,...tr("grid"),...P}),y&&(0,E.jsx)(ps,{animationDuration:S,isAnimationActive:0!==S,position:"vertical"===R?{}:{y:0},cursor:{stroke:"var(--chart-grid-color)",strokeWidth:1,strokeDasharray:j},content:t=>{let{label:e,payload:n}=t;return(0,E.jsx)(dM,{label:e,payload:n,unit:O,classNames:te,styles:tn,series:p,valueFormatter:$,showColor:"gradient"!==H})},...k}),tc,tu,U]})})})});dI.displayName="@mantine/charts/LineChart",dI.classes=dT},51888:function(t,e,n){"use strict";n.d(e,{U:function(){return i}});var r=n(2265);function i(t){let{mode:e="controlled",clearErrorOnChange:n=!0,initialValue:i,initialError:o=null,initialTouched:a=!1,onValueChange:c,validateOnChange:u=!1,validateOnBlur:l=!1,validate:s,resolveValidationError:f,type:p="input"}=t,[h,d]=(0,r.useState)(i),y=(0,r.useRef)(h),[v,m]=(0,r.useState)(0),[g,b]=(0,r.useState)(o||null),x=(0,r.useRef)(a||!1),[,w]=(0,r.useState)(x.current),[O,S]=(0,r.useState)(!1),j=(0,r.useMemo)(()=>f||(t=>t),[f]),E=(0,r.useCallback)(function(t){let{updateState:n="controlled"===e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};x.current=t,n&&w(t)},[]),A=(0,r.useCallback)(async function(t){let{updateKey:r="uncontrolled"===e,updateState:i="controlled"===e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y.current!==t&&(y.current=t,null==c||c(t),n&&null!==g&&b(null),i&&d(t),r&&m(t=>t+1),u&&_())},[g,n]),P=(0,r.useCallback)(()=>{A(i),b(null),E(!1)},[i]),k=(0,r.useCallback)(()=>y.current,[]),M=(0,r.useCallback)(()=>x.current,[]),T=(0,r.useCallback)(()=>y.current!==i,[i]),_=(0,r.useCallback)(async()=>{let t=null==s?void 0:s(y.current);if(!(t instanceof Promise))return b(t),t;S(!0);try{let e=await t;S(!1),b(e)}catch(e){S(!1);let t=j(e);return b(t),t}},[]);return{key:v,getValue:k,setValue:A,reset:P,getInputProps:function(){var t;let{withError:n=!0,withFocus:r=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i={onChange:(t=t=>A(t,{updateKey:!1}),e=>{if(e){if("function"==typeof e)t(e);else if("object"==typeof e&&"nativeEvent"in e){let{currentTarget:n}=e;n instanceof HTMLInputElement?"checkbox"===n.type?t(n.checked):t(n.value):(n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement)&&t(n.value)}else t(e)}else t(e)})};return n&&(i.error=g),"checkbox"===p?i["controlled"===e?"checked":"defaultChecked"]=y.current:i["controlled"===e?"value":"defaultValue"]=y.current,r&&(i.onFocus=()=>{E(!0)},i.onBlur=()=>{var t;(t=!!l)&&("boolean"==typeof t?t:!!Array.isArray(t)&&t.includes("".replace(/[.][0-9]/g,".".concat("__MANTINE_FORM_INDEX__"))))&&_()}),i},isValidating:O,validate:_,error:g,setError:b,isTouched:M,isDirty:T,resetTouched:(0,r.useCallback)(()=>E(!1),[])}}},55487:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(2265),i={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};let o=(t,e,n,o)=>{let a=(0,r.forwardRef)((n,a)=>{let{color:c="currentColor",size:u=24,stroke:l=2,title:s,className:f,children:p,...h}=n;return(0,r.createElement)("svg",{ref:a,...i[t],width:u,height:u,className:["tabler-icon","tabler-icon-".concat(e),f].join(" "),..."filled"===t?{fill:c}:{strokeWidth:l,stroke:c},...h},[s&&(0,r.createElement)("title",{key:"svg-title"},s),...o.map(t=>{let[e,n]=t;return(0,r.createElement)(e,n)}),...Array.isArray(p)?p:[p]])});return a.displayName="".concat(n),a}},59629:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","brand-chrome","IconBrandChrome",[["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M12 9h8.4",key:"svg-2"}],["path",{d:"M14.598 13.5l-4.2 7.275",key:"svg-3"}],["path",{d:"M9.402 13.5l-4.2 -7.275",key:"svg-4"}]])},91920:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","brand-firefox","IconBrandFirefox",[["path",{d:"M4.028 7.82a9 9 0 1 0 12.823 -3.4c-1.636 -1.02 -3.064 -1.02 -4.851 -1.02h-1.647",key:"svg-0"}],["path",{d:"M4.914 9.485c-1.756 -1.569 -.805 -5.38 .109 -6.17c.086 .896 .585 1.208 1.111 1.685c.88 -.275 1.313 -.282 1.867 0c.82 -.91 1.694 -2.354 2.628 -2.093c-1.082 1.741 -.07 3.733 1.371 4.173c-.17 .975 -1.484 1.913 -2.76 2.686c-1.296 .938 -.722 1.85 0 2.234c.949 .506 3.611 -1 4.545 .354c-1.698 .102 -1.536 3.107 -3.983 2.727c2.523 .957 4.345 .462 5.458 -.34c1.965 -1.52 2.879 -3.542 2.879 -5.557c-.014 -1.398 .194 -2.695 -1.26 -4.75",key:"svg-1"}]])},96552:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("filled","brand-github-filled","IconBrandGithubFilled",[["path",{d:"M5.315 2.1c.791 -.113 1.9 .145 3.333 .966l.272 .161l.16 .1l.397 -.083a13.3 13.3 0 0 1 4.59 -.08l.456 .08l.396 .083l.161 -.1c1.385 -.84 2.487 -1.17 3.322 -1.148l.164 .008l.147 .017l.076 .014l.05 .011l.144 .047a1 1 0 0 1 .53 .514a5.2 5.2 0 0 1 .397 2.91l-.047 .267l-.046 .196l.123 .163c.574 .795 .93 1.728 1.03 2.707l.023 .295l.007 .272c0 3.855 -1.659 5.883 -4.644 6.68l-.245 .061l-.132 .029l.014 .161l.008 .157l.004 .365l-.002 .213l-.003 3.834a1 1 0 0 1 -.883 .993l-.117 .007h-6a1 1 0 0 1 -.993 -.883l-.007 -.117v-.734c-1.818 .26 -3.03 -.424 -4.11 -1.878l-.535 -.766c-.28 -.396 -.455 -.579 -.589 -.644l-.048 -.019a1 1 0 0 1 .564 -1.918c.642 .188 1.074 .568 1.57 1.239l.538 .769c.76 1.079 1.36 1.459 2.609 1.191l.001 -.678l-.018 -.168a5.03 5.03 0 0 1 -.021 -.824l.017 -.185l.019 -.12l-.108 -.024c-2.976 -.71 -4.703 -2.573 -4.875 -6.139l-.01 -.31l-.004 -.292a5.6 5.6 0 0 1 .908 -3.051l.152 -.222l.122 -.163l-.045 -.196a5.2 5.2 0 0 1 .145 -2.642l.1 -.282l.106 -.253a1 1 0 0 1 .529 -.514l.144 -.047l.154 -.03z",key:"svg-0"}]])},79842:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","camera","IconCamera",[["path",{d:"M5 7h1a2 2 0 0 0 2 -2a1 1 0 0 1 1 -1h6a1 1 0 0 1 1 1a2 2 0 0 0 2 2h1a2 2 0 0 1 2 2v9a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-9a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M9 13a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]])},43487:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","device-floppy","IconDeviceFloppy",[["path",{d:"M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2",key:"svg-0"}],["path",{d:"M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M14 4l0 4l-6 0l0 -4",key:"svg-2"}]])},45896:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","download","IconDownload",[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]])},88220:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","plug-connected","IconPlugConnected",[["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z",key:"svg-0"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z",key:"svg-1"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-2"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-3"}],["path",{d:"M10 11l-2 2",key:"svg-4"}],["path",{d:"M13 14l-2 2",key:"svg-5"}]])},84926:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var r=(0,n(55487).Z)("outline","plug-connected-x","IconPlugConnectedX",[["path",{d:"M20 16l-4 4",key:"svg-0"}],["path",{d:"M7 12l5 5l-1.5 1.5a3.536 3.536 0 1 1 -5 -5l1.5 -1.5z",key:"svg-1"}],["path",{d:"M17 12l-5 -5l1.5 -1.5a3.536 3.536 0 1 1 5 5l-1.5 1.5z",key:"svg-2"}],["path",{d:"M3 21l2.5 -2.5",key:"svg-3"}],["path",{d:"M18.5 5.5l2.5 -2.5",key:"svg-4"}],["path",{d:"M10 11l-2 2",key:"svg-5"}],["path",{d:"M13 14l-2 2",key:"svg-6"}],["path",{d:"M16 16l4 4",key:"svg-7"}]])}}]); \ No newline at end of file diff --git a/pr-preview/pr-31/_next/static/chunks/framework-00a8ba1a63cfdc9e.js b/pr-preview/pr-31/_next/static/chunks/framework-00a8ba1a63cfdc9e.js index d39c3be..e052a19 100644 --- a/pr-preview/pr-31/_next/static/chunks/framework-00a8ba1a63cfdc9e.js +++ b/pr-preview/pr-31/_next/static/chunks/framework-00a8ba1a63cfdc9e.js @@ -1,33 +1 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[774],{64448:function(e,n,t){/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r,l,a,u,o,i,s=t(67294),c=t(63840);function f(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t